@ranger-testing/ranger-cli 2.5.1 → 2.5.2

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 (73) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -0
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/agentEnv.js +1 -1
  36. package/build/commands/utils/browserSessionsApi.js +1 -1
  37. package/build/commands/utils/claudeConfig.js +1 -1
  38. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  39. package/build/commands/utils/claudePlugin.js +1 -1
  40. package/build/commands/utils/crypto.js +1 -1
  41. package/build/commands/utils/desirePathLog.js +1 -1
  42. package/build/commands/utils/deviceAuth.js +1 -1
  43. package/build/commands/utils/environment.js +1 -1
  44. package/build/commands/utils/featureApi.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/tokenRefresh.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/package.json +1 -1
  70. package/build/commands/utils/featureReportGenerator.js +0 -1
  71. package/build/commands/utils/git.js +0 -1
  72. package/build/commands/utils/reportGenerator.js +0 -1
  73. package/build/commands/verifyInBrowser.js +0 -1
package/build/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x13ddac=_0x1e03;(function(_0x233756,_0x5edbd2){const _0x1b9102=_0x1e03,_0x366083=_0x233756();while(!![]){try{const _0x20204a=parseInt(_0x1b9102(0x164))/0x1+parseInt(_0x1b9102(0x2bd))/0x2+parseInt(_0x1b9102(0x16e))/0x3+parseInt(_0x1b9102(0x199))/0x4+-parseInt(_0x1b9102(0x177))/0x5*(-parseInt(_0x1b9102(0x186))/0x6)+parseInt(_0x1b9102(0x1fb))/0x7+-parseInt(_0x1b9102(0x2b2))/0x8;if(_0x20204a===_0x5edbd2)break;else _0x366083['push'](_0x366083['shift']());}catch(_0x11b51b){_0x366083['push'](_0x366083['shift']());}}}(_0x5f32,0x885e8));import _0x43f0c5 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x25a74a=_0x1e03,_0x4c42a3={'mnOHK':function(_0x2142c7,_0x38e710){return _0x2142c7!==_0x38e710;},'nxDdN':function(_0xacacee,_0x506f26){return _0xacacee(_0x506f26);},'GVZwS':function(_0x37fa84,_0x43168f,_0x3253a5){return _0x37fa84(_0x43168f,_0x3253a5);},'WNJBk':_0x25a74a(0x1e7),'WYXzV':function(_0x462b17,_0x53f06f,_0x2a430d){return _0x462b17(_0x53f06f,_0x2a430d);}};let _0x57ca06=process[_0x25a74a(0x18f)]();const _0x50ee48=parse(_0x57ca06)['root'];while(_0x4c42a3[_0x25a74a(0x162)](_0x57ca06,_0x50ee48)){if(_0x4c42a3[_0x25a74a(0x263)](existsSync,_0x4c42a3['GVZwS'](join,_0x57ca06,_0x4c42a3['WNJBk']))||existsSync(_0x4c42a3['WYXzV'](join,_0x57ca06,_0x25a74a(0x24d))))return _0x57ca06;_0x57ca06=_0x4c42a3['nxDdN'](dirname,_0x57ca06);}return process['cwd']();}_0x43f0c5['config']({'path':join(findProjectRoot(),'.env')});import _0x57e7e3 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{getToken}from'./commands/utils/keychain.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{isByokEnabled}from'./commands/utils/environment.js';function _0x5f32(){const _0x4d3080=['Scenario\x20index\x20(1-based)','bKxtm','tjbDz','wzXxc','QiYuc','get\x20<env>\x20<key>','resume','shNjY','gIPiS','use\x20<profile-name>','print-access-token','--checklist','ranger\x20env\x20update','message','fwqNY','map','key','unset\x20<env>\x20<key>','argv','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','Feature\x20review\x20description','clean','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','eBDMj','igvrn','euKcO','hNNfq','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','ranger\x20resume','name','hVbmj','UBVQy','nHcaV','EOdFT','usage','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','use','ranger\x20profile\x20update','positional','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','debug-address-comments','debug-outcome','show\x20[id]','zPXOI','xDkNB','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','repeat','LIQEb','Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','tOqvc','config','notes','You\x20must\x20specify\x20a\x20config\x20subcommand','list','ranger\x20profile\x20encrypt-auth','AChZz','cIHFZ','ySvbT','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','30284648ilRDSe','show','hHAGM','task','Reason:\x20','QJfTH','parse','jEKCf','asHIF','KIRsw','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','2122890KNOTcE','LRIsQ','eByJr','bDTOM','SdWeI','verified','IrnMS','DUcUF','BxQAv','config\x20set','evaluationReason','checklist','JcdWM','qcBrz','list\x20<profile>','skillup','WdOPN','lpBjO','ZNxhB','add-checklist-item\x20<description>','profile','lWZBB','mnOHK','edit-scenario','993321dTjhXE','GqKxZ','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','ShvSQ','login','Add\x20profile\x20configuration','xpPxi','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','start-path','zabqR','610446QbnFmO','XeQHa','zXsjn','UtwbR','description','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','ranger\x20feature\x20resume','Get\x20a\x20config\x20value','Name\x20of\x20the\x20environment\x20to\x20update','10zmhHsB','Install\x20scope\x20for\x20skills','\x20INCOMPLETE','QozXw','update','delete','HfoYd','ceMLq','set\x20<profile>\x20<key>\x20<value>','AeAnY','feature\x20list','pqlGI','limit','OEHqb','codCJ','2444346hRAqUU','AgZoj','AfjWO','lQZQA','json','ReSUN','skip-chromium','user','NySWI','cwd','help','Piqxx','uFmZe','ranger\x20use','vfCCu','ranger\x20restore','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','failed','exit','3602532LXNaQK','error','report','feature','Feature\x20review\x20ID\x20to\x20restore','option','ieQDt','BhgGE','project','config\x20get','AzZdc','current-branch','ranger\x20config\x20set','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','feature\x20get-feedback','EUlnw','incomplete','fLTdw','jKInd','okNuK','NyNyC','Manage\x20profile\x20configuration','gJDZX','profile\x20config\x20get','headed','startsWith','yFKoq','opencode','QIhlZ','Include\x20soft-deleted\x20feature\x20reviews','log','slice','Install\x20Ranger\x20skills','add\x20<profile-name>','ranger\x20delete','ranger\x20show','zRyVF','number','FdFjM','setup-ci\x20<token>','scenario','setup\x20[token]','List\x20all\x20feature\x20reviews','ranger\x20go','--notes','partial','token','force','ranger\x20start','OBaPD','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','boolean','NTFYA','OFdNd','kRVCf','gsBeg','auth','model','Akeuk','IoDyg','scope','severity','ZounN','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','hvazH','upFNw','Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true','profile\x20config\x20set','Config\x20key\x20to\x20remove','ranger\x20create','jbejH','Profile\x20name','skip-auth','AnZoN','LMkCD','exclude-scenario','value','.ranger','get-review\x20[id]','exitCode','Name\x20of\x20the\x20profile\x20to\x20update','length','PiVxI','add-scenario\x20<description>','aRPpZ','uSLnc','wlInm','HyMlG','JmBJb','ranger\x20env\x20ls','\x0aUnknown\x20command:\x20','idKTY','safe-mode','jNsQV','fail','ranger\x20add-scenario','ranger\x20setup','2593402EHTUmE','command','ranger','issues','Number\x20of\x20feature\x20reviews\x20to\x20skip','uakfG','env','profile\x20config\x20list','ranger\x20feature\x20create','FNQSV','use\x20<env-name>','You\x20must\x20specify\x20an\x20env\x20subcommand','\x0aError:\x20','xgSpT','You\x20must\x20specify\x20a\x20profile\x20subcommand','zevMq','allow-insecure-localhost','profile\x20ls','array','Nhhhc','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','scriptName','include-deleted','feature\x20add-checklist-item','List\x20all\x20profiles','add\x20env\x20<env-name>','QCeVz','wShGl','ehWHj','status','zuhlM','enable','ranger\x20add\x20env','YszrG','Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)','GvkIz','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','QRfic','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','kxoWj','blocked','Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20header.X-Test-Mode)\x0a\x20\x20setupHeader.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeader.x-bypass-turnstile)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20setupHeader.x-bypass-turnstile\x20\x27a1b2c3d4...\x27','YTqDS','add\x20env','rwyNC','RAXUO','xpPlD','AJKgX','SHaVz','ZYejf','Switch\x20to\x20using\x20a\x20specific\x20profile','xHxBc','url','profile-name','Config\x20value','aYPYF','ByqUp','ranger\x20config\x20get','cfOPF','string','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','laeBb','List\x20all\x20config\x20for\x20a\x20profile','\x20FAILED','hGCCK','iFiSL','unhandledRejection','base-url','summary','get\x20<profile>\x20<key>','--scenario','profile\x20add','report\x20[id]','dzMvn','Config\x20key','Feature\x20review\x20name','config\x20list','\x20BLOCKED','Summary:\x20','Environment\x20name','.env','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','--profile','AocGn','cdp-endpoint','EwMeP','zQSOT','Hqbzp','Feature\x20review\x20ID','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','item','LyFiI','pjaFw','includes','NJcBe','RMKSY','env-name','sxpdE','uFciS','demandCommand','disable','XmCju','nxDdN','ROfqd','Manage\x20profiles','evaluation','dTaZG','FaBnF','session-id','gqQDV','JXOkD','oDqGn','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','Set\x20a\x20config\x20value','zNjoV','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','tVgdX','HsSaY','trackCommandError','AiAGV','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)'];_0x5f32=function(){return _0x4d3080;};return _0x5f32();}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'](_0x13ddac(0x23f),async _0x279b6b=>{const _0x5d0eca=_0x13ddac,_0x29ecfb={'knanS':function(_0x1f8672){return _0x1f8672();}},_0x2a9eeb=_0x29ecfb['knanS'](getCurrentCollector);_0x2a9eeb&&await _0x2a9eeb['trackCommandError'](_0x279b6b),process[_0x5d0eca(0x1e9)]=0x1;});const rawArgs=process['argv']['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP=_0x13ddac(0x1dc),PROFILE_CONFIG_HELP=_0x13ddac(0x225);function _0x1e03(_0x4b0f5c,_0xd05aef){_0x4b0f5c=_0x4b0f5c-0x162;const _0x5f32a9=_0x5f32();let _0x1e03d1=_0x5f32a9[_0x4b0f5c];return _0x1e03d1;}function warnRenamed(_0xd67c5a,_0x120743){console['error']('\x0a'+_0xd67c5a+'\x20is\x20now\x20'+_0x120743+'\x0a');}function argUsed(_0x338c21){const _0xb90e80=_0x13ddac;return rawArgs['some'](_0x5b0b34=>_0x5b0b34===_0x338c21||_0x5b0b34[_0xb90e80(0x1b2)](_0x338c21+'='));}function warnFlagRenamed(_0x462c39,_0x2530e6,_0x5beb34){const _0x3cf25f={'GDoZG':function(_0x5db2c4,_0x33c6df,_0x2a4ea4){return _0x5db2c4(_0x33c6df,_0x2a4ea4);}};argUsed(_0x2530e6)&&_0x3cf25f['GDoZG'](warnRenamed,_0x462c39+'\x20'+_0x2530e6,_0x462c39+'\x20'+_0x5beb34);}async function runGoCommand(_0x2e506a,_0x3e6771=![]){const _0x24607e=_0x13ddac,_0x4c421e={'AzZdc':function(_0x11efdd,_0x4803ab){return _0x11efdd+_0x4803ab;},'lllUF':'--env','FdFjM':_0x24607e(0x24f),'nRUBJ':_0x24607e(0x1c4),'BhgGE':'--item','hHAGM':function(_0x5f115e,_0x43642e){return _0x5f115e(_0x43642e);},'igvrn':'verified','WdOPN':'\x20VERIFIED','AgZoj':function(_0x30e8ac,_0x2011f1){return _0x30e8ac===_0x2011f1;},'WyLFU':'incomplete','BXrrB':'partial','jEKCf':_0x24607e(0x24a),'sMsdE':_0x24607e(0x23c)};_0x3e6771&&warnRenamed('ranger\x20verify-feature','ranger\x20go');warnFlagRenamed('ranger\x20go',_0x4c421e['lllUF'],_0x4c421e[_0x24607e(0x1bf)]),warnFlagRenamed(_0x4c421e['nRUBJ'],'--task',_0x24607e(0x1c5)),warnFlagRenamed(_0x24607e(0x1c4),_0x4c421e[_0x24607e(0x1a0)],_0x24607e(0x243));const _0x403f27=await loadRangerConfig(),_0x521abb=isByokEnabled(),_0x2b7c67=_0x2e506a[_0x24607e(0x1d3)],_0x47a18f=_0x403f27['model'],_0x5e4ac8=await _0x4c421e[_0x24607e(0x2b4)](verifyFeature,{'featureId':_0x2e506a[_0x24607e(0x19c)],'profile':_0x2e506a['profile']??_0x2e506a[_0x24607e(0x201)],'notes':_0x2e506a[_0x24607e(0x2aa)]??_0x2e506a[_0x24607e(0x2b5)],'scenario':_0x2e506a[_0x24607e(0x1c1)]??_0x2e506a['item'],'startPath':_0x2e506a[_0x24607e(0x16c)],'debugOutcome':_0x2e506a[_0x24607e(0x2a0)],'debugAddressComments':_0x2e506a[_0x24607e(0x29f)],'headed':_0x2e506a['headed'],'byokEnabled':_0x521abb,'flagVerifyModel':_0x2b7c67,'configVerifyModel':_0x47a18f});console[_0x24607e(0x1b7)](_0x4c421e[_0x24607e(0x1a3)]('\x0a','='['repeat'](0x3c))),console['log'](_0x5e4ac8[_0x24607e(0x266)]===_0x4c421e[_0x24607e(0x28f)]?_0x4c421e[_0x24607e(0x2cd)]:_0x4c421e['AgZoj'](_0x5e4ac8['evaluation'],_0x4c421e['WyLFU'])?_0x24607e(0x179):_0x4c421e['AgZoj'](_0x5e4ac8['evaluation'],_0x4c421e['BXrrB'])?'\x20PARTIAL':_0x4c421e[_0x24607e(0x187)](_0x5e4ac8[_0x24607e(0x266)],_0x24607e(0x224))?_0x4c421e[_0x24607e(0x2b9)]:_0x4c421e['sMsdE']),console[_0x24607e(0x1b7)]('='[_0x24607e(0x2a5)](0x3c)),console['log'](_0x24607e(0x24b)+_0x5e4ac8[_0x24607e(0x241)]),console[_0x24607e(0x1b7)]('Evaluation:\x20'+_0x5e4ac8['evaluation']),console['log'](_0x24607e(0x2b6)+_0x5e4ac8[_0x24607e(0x2c7)]),_0x5e4ac8[_0x24607e(0x1fe)]?.[_0x24607e(0x1eb)]&&(console['log']('\x0aIssues:'),_0x5e4ac8[_0x24607e(0x1fe)]['forEach']((_0x30215b,_0x2053e4)=>{const _0x50ec5d=_0x24607e;console[_0x50ec5d(0x1b7)]('\x0a'+_0x4c421e[_0x50ec5d(0x1a3)](_0x2053e4,0x1)+'.\x20['+_0x30215b[_0x50ec5d(0x1d7)]+']\x20'+_0x30215b[_0x50ec5d(0x172)]);})),process[_0x24607e(0x198)](_0x5e4ac8[_0x24607e(0x266)]===_0x4c421e['igvrn']?0x0:0x1);}_0x57e7e3(process['argv']['slice'](0x2))[_0x13ddac(0x211)](_0x13ddac(0x1fd))['usage'](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0x13ddac(0x1fc)]('create\x20<name>',_0x13ddac(0x222),_0x4012da=>{const _0x367bc3=_0x13ddac,_0x2fb15d={'DBiZM':_0x367bc3(0x237),'uakfG':_0x367bc3(0x248),'oqiQp':_0x367bc3(0x172),'WGlxg':_0x367bc3(0x28b),'AocGn':'scenario','NToie':'array','QyvcB':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','jmslG':'checklist'};return _0x4012da['positional']('name',{'type':_0x2fb15d['DBiZM'],'description':_0x2fb15d[_0x367bc3(0x200)],'demandOption':!![]})['option'](_0x2fb15d['oqiQp'],{'type':_0x367bc3(0x237),'alias':'d','description':_0x2fb15d['WGlxg']})['option'](_0x2fb15d[_0x367bc3(0x250)],{'type':_0x2fb15d['NToie'],'alias':'c','description':_0x2fb15d['QyvcB']})['option'](_0x2fb15d['jmslG'],{'type':'array','hidden':!![]});},async _0x5ee36=>{const _0x4669bf=_0x13ddac,_0x9f5df7={'AfjWO':function(_0xd54a11,_0x477d9f,_0x4335ad,_0x5e939a){return _0xd54a11(_0x477d9f,_0x4335ad,_0x5e939a);},'WZvIm':_0x4669bf(0x1df),'rfwlC':_0x4669bf(0x282),'JXOkD':_0x4669bf(0x243),'HyMlG':'create'};_0x9f5df7[_0x4669bf(0x188)](warnFlagRenamed,_0x9f5df7['WZvIm'],_0x9f5df7['rfwlC'],_0x9f5df7[_0x4669bf(0x26b)]);const _0x445fca=_0x5ee36[_0x4669bf(0x1c1)]||_0x5ee36[_0x4669bf(0x2c8)];await withTelemetry(_0x9f5df7[_0x4669bf(0x1f1)],()=>featureCreate(_0x5ee36['name'],{'description':_0x5ee36['description'],'scenarios':_0x445fca}));})['command'](_0x13ddac(0x2ac),_0x13ddac(0x1c3),_0x4b8a33=>{const _0x361323=_0x13ddac,_0x5e4b77={'tjbDz':'current-branch','YszrG':_0x361323(0x1cb),'ReSUN':_0x361323(0x183),'xpPlD':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','IlwPS':'offset','jTASt':'boolean','lWZBB':_0x361323(0x1b6)};return _0x4b8a33[_0x361323(0x19e)](_0x5e4b77[_0x361323(0x279)],{'type':'boolean','description':_0x5e4b77[_0x361323(0x21d)]})[_0x361323(0x19e)](_0x5e4b77[_0x361323(0x18b)],{'type':_0x361323(0x1be),'alias':'l','description':_0x5e4b77[_0x361323(0x22a)],'default':0xa})['option'](_0x5e4b77['IlwPS'],{'type':_0x361323(0x1be),'alias':'o','description':_0x361323(0x1ff),'default':0x0})[_0x361323(0x19e)](_0x361323(0x212),{'type':_0x5e4b77['jTASt'],'alias':'d','description':_0x5e4b77[_0x361323(0x2d2)],'default':![]});},async _0x251780=>{const _0x34e149=_0x13ddac,_0x210fe0={'JcdWM':function(_0x407903,_0xaab6f9,_0x571482){return _0x407903(_0xaab6f9,_0x571482);},'ZNxhB':_0x34e149(0x2ac)};await _0x210fe0[_0x34e149(0x2c9)](withTelemetry,_0x210fe0[_0x34e149(0x2cf)],()=>featureList({'currentBranch':_0x251780[_0x34e149(0x1a4)],'limit':_0x251780[_0x34e149(0x183)],'offset':_0x251780['offset'],'includeDeleted':_0x251780[_0x34e149(0x212)]}));})['command'](_0x13ddac(0x2a1),'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x19d93c=>{const _0x54f2fd=_0x13ddac,_0x1adfbe={'UtwbR':'string','hNNfq':_0x54f2fd(0x255)};return _0x19d93c[_0x54f2fd(0x29d)]('id',{'type':_0x1adfbe[_0x54f2fd(0x171)],'description':_0x1adfbe[_0x54f2fd(0x291)]});},async _0x24d6a1=>{const _0x1ba31b=_0x13ddac;await withTelemetry(_0x1ba31b(0x2b3),()=>featureShow(_0x24d6a1['id']));})['command']('resume\x20[id]',_0x13ddac(0x28d),_0x32b96a=>{const _0x30ce80=_0x13ddac,_0x10356f={'mlUji':_0x30ce80(0x237),'euKcO':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'};return _0x32b96a[_0x30ce80(0x29d)]('id',{'type':_0x10356f['mlUji'],'description':_0x10356f[_0x30ce80(0x290)]});},async _0x2eeccf=>{const _0x139b0b=_0x13ddac,_0x9d1add={'gXZsO':function(_0x181928,_0x211b48,_0x2b1688){return _0x181928(_0x211b48,_0x2b1688);},'DPvxj':_0x139b0b(0x27d)};await _0x9d1add['gXZsO'](withTelemetry,_0x9d1add['DPvxj'],()=>featureResume(_0x2eeccf['id']));})[_0x13ddac(0x1fc)](_0x13ddac(0x1ed),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x1cc242=>{const _0x1062f7=_0x13ddac,_0x52b066={'yLZhK':_0x1062f7(0x172),'YTqDS':'string','idKTY':'Scenario\x20description','jKInd':_0x1062f7(0x196)};return _0x1cc242['positional'](_0x52b066['yLZhK'],{'type':_0x52b066[_0x1062f7(0x226)],'description':_0x52b066[_0x1062f7(0x1f5)],'demandOption':!![]})['option']('id',{'type':'string','description':_0x52b066[_0x1062f7(0x1ab)]});},async _0x3c01f3=>{const _0x34780d=_0x13ddac,_0x2e1e05={'hGCCK':function(_0x1ff519,_0x24bc78,_0x2eace2){return _0x1ff519(_0x24bc78,_0x2eace2);},'zuhlM':'add-scenario'};await _0x2e1e05[_0x34780d(0x23d)](withTelemetry,_0x2e1e05[_0x34780d(0x21a)],()=>featureAddScenario(_0x3c01f3['description'],_0x3c01f3['id']));})['command']('edit-scenario\x20<description>','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x4cc5c6=>{const _0xcf2f2=_0x13ddac,_0x3662e8={'tZLMM':'New\x20scenario\x20description','shNjY':'scenario','kGxZJ':'number','uFmZe':_0xcf2f2(0x237),'GCuCN':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x4cc5c6[_0xcf2f2(0x29d)](_0xcf2f2(0x172),{'type':'string','description':_0x3662e8['tZLMM'],'demandOption':!![]})[_0xcf2f2(0x19e)](_0x3662e8[_0xcf2f2(0x27e)],{'type':_0x3662e8['kGxZJ'],'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})[_0xcf2f2(0x19e)]('id',{'type':_0x3662e8[_0xcf2f2(0x192)],'description':_0x3662e8['GCuCN']});},async _0x2ac9fb=>{const _0x4ff34c=_0x13ddac,_0xcdabce={'kxoWj':_0x4ff34c(0x163)};await withTelemetry(_0xcdabce[_0x4ff34c(0x223)],()=>featureEditScenario(_0x2ac9fb['description'],{'id':_0x2ac9fb['id'],'scenario':_0x2ac9fb[_0x4ff34c(0x1c1)]}));})['command'](_0x13ddac(0x245),'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0xf9b821=>{const _0x10444b=_0x13ddac,_0x18c9ce={'OFdNd':_0x10444b(0x255),'KjxEr':'exclude-scenario','UJsJm':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','CPorA':_0x10444b(0x18a),'ovDSw':_0x10444b(0x1cd)};return _0xf9b821[_0x10444b(0x29d)]('id',{'type':_0x10444b(0x237),'description':_0x18c9ce[_0x10444b(0x1cf)]})['option'](_0x18c9ce['KjxEr'],{'type':_0x10444b(0x20d),'description':_0x18c9ce['UJsJm']})[_0x10444b(0x19e)](_0x18c9ce['CPorA'],{'type':_0x18c9ce['ovDSw'],'description':_0x10444b(0x20f),'default':![]});},async _0x3ddcbc=>{const _0x2469e3=_0x13ddac,_0x2b5890={'RMKSY':_0x2469e3(0x1e5),'TVzlP':function(_0x584cc4,_0x3ee468,_0x38a8c9){return _0x584cc4(_0x3ee468,_0x38a8c9);},'ZounN':_0x2469e3(0x19b)},_0x398d3c=_0x3ddcbc[_0x2b5890[_0x2469e3(0x25c)]],_0x99d11a=_0x398d3c?_0x398d3c[_0x2469e3(0x286)](_0x566da3=>Number(_0x566da3)):undefined;await _0x2b5890['TVzlP'](withTelemetry,_0x2b5890[_0x2469e3(0x1d8)],()=>featureReportPrDescription(_0x3ddcbc['id'],{'excludeScenarios':_0x99d11a,'json':_0x3ddcbc['json']}));})['command'](_0x13ddac(0x1e8),_0x13ddac(0x173),_0x395ffe=>{const _0x3fcc15=_0x13ddac,_0x127c3e={'QCeVz':_0x3fcc15(0x196)};return _0x395ffe['positional']('id',{'type':'string','description':_0x127c3e[_0x3fcc15(0x216)]});},async _0x34b32a=>{const _0x35192c=_0x13ddac,_0x5afcc6={'fLTdw':function(_0x4867ab,_0x514486,_0x3aab38){return _0x4867ab(_0x514486,_0x3aab38);},'MPaKg':'get-review'};await _0x5afcc6[_0x35192c(0x1aa)](withTelemetry,_0x5afcc6['MPaKg'],()=>featureGetReview(_0x34b32a['id']));})['command']('delete\x20[id]',_0x13ddac(0x29e),_0x204833=>{const _0x3ec617=_0x13ddac;return _0x204833[_0x3ec617(0x29d)]('id',{'type':'string','description':_0x3ec617(0x255)});},async _0x2321c8=>{const _0x1f235e=_0x13ddac,_0x4329f9={'XeQHa':function(_0x59317a,_0x438f4c,_0xada1d5){return _0x59317a(_0x438f4c,_0xada1d5);}};await _0x4329f9[_0x1f235e(0x16f)](withTelemetry,_0x1f235e(0x17c),()=>featureDelete(_0x2321c8['id']));})['command']('restore\x20<id>','Restore\x20a\x20soft-deleted\x20feature\x20review',_0x4f7337=>{return _0x4f7337['positional']('id',{'type':'string','description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x4bb731=>{await withTelemetry('restore',()=>featureRestore(_0x4bb731['id']));})[_0x13ddac(0x1fc)](_0x13ddac(0x1c2),'Initialize\x20Ranger\x20in\x20your\x20project',_0x32dd05=>{const _0x522415=_0x13ddac,_0x1ccbf3={'QJfTH':'string','pGZZC':'scope','yFKoq':_0x522415(0x18d),'gsBeg':'project','sebKu':_0x522415(0x1c8),'gxIWw':_0x522415(0x1cd),'zXsjn':_0x522415(0x1b4),'EZRDj':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'};return _0x32dd05[_0x522415(0x29d)]('token',{'type':_0x1ccbf3['QJfTH'],'description':_0x522415(0x28a)})[_0x522415(0x19e)](_0x522415(0x18c),{'type':'boolean','description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})['option'](_0x1ccbf3['pGZZC'],{'type':_0x522415(0x237),'choices':[_0x1ccbf3[_0x522415(0x1b3)],_0x1ccbf3[_0x522415(0x1d1)]],'description':_0x522415(0x275)})['option'](_0x522415(0x230),{'type':_0x1ccbf3[_0x522415(0x2b7)],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x1ccbf3['sebKu'],{'type':_0x1ccbf3['gxIWw'],'description':_0x522415(0x1a6),'default':![]})['option'](_0x1ccbf3[_0x522415(0x170)],{'type':'boolean','description':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','default':![]})['option'](_0x522415(0x20b),{'type':'boolean','description':_0x1ccbf3['EZRDj'],'default':![]});},async _0x398abf=>{const _0x5699a0=_0x13ddac,_0x593ae2={'ceMLq':'start'};await withTelemetry(_0x593ae2[_0x5699a0(0x17e)],_0x35ab8e=>start(_0x398abf['token'],{'skipChromium':_0x398abf[_0x5699a0(0x18c)],'scope':_0x398abf[_0x5699a0(0x1d6)],'url':_0x398abf[_0x5699a0(0x230)],'force':_0x398abf[_0x5699a0(0x1c8)],'opencode':_0x398abf['opencode'],'allowInsecureLocalhost':_0x398abf['allow-insecure-localhost']},_0x35ab8e));})['command'](_0x13ddac(0x1c0),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x1c45c1=>{const _0x42d2a1=_0x13ddac,_0x1f3a3b={'ZoQrT':'token','QIhlZ':_0x42d2a1(0x237),'pRkNK':'Ranger\x20API\x20token','zuUyD':_0x42d2a1(0x240),'iFiSL':_0x42d2a1(0x1cd)};return _0x1c45c1['positional'](_0x1f3a3b['ZoQrT'],{'type':_0x1f3a3b[_0x42d2a1(0x1b5)],'description':_0x1f3a3b['pRkNK'],'demandOption':!![]})['option'](_0x42d2a1(0x2d1),{'type':_0x1f3a3b['QIhlZ'],'description':_0x42d2a1(0x238)})[_0x42d2a1(0x19e)](_0x1f3a3b['zuUyD'],{'type':_0x42d2a1(0x237),'description':_0x42d2a1(0x220)})['option'](_0x42d2a1(0x18c),{'type':_0x1f3a3b[_0x42d2a1(0x23e)],'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x482fac=>{const _0x1e0a78=_0x13ddac,_0x5ad7e0={'agMIn':function(_0x3a16dc,_0x766644,_0x550a00){return _0x3a16dc(_0x766644,_0x550a00);}};await _0x5ad7e0['agMIn'](withTelemetry,'setup-ci',_0x395d27=>setupCi(_0x482fac[_0x1e0a78(0x1c7)],{'profile':_0x482fac[_0x1e0a78(0x2d1)],'baseUrl':_0x482fac[_0x1e0a78(0x240)],'skipChromium':_0x482fac[_0x1e0a78(0x18c)]},_0x395d27));})['command'](_0x13ddac(0x168),'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{await withTelemetry('login',()=>login());})['command'](_0x13ddac(0x2cc),_0x13ddac(0x1b9),_0x3dbb47=>{const _0x2f09ba=_0x13ddac,_0x2be464={'CYJOO':'Install\x20skills\x20for\x20OpenCode','oDqGn':_0x2f09ba(0x1d6),'qcBrz':'project','jNUbb':_0x2f09ba(0x178)};return _0x3dbb47[_0x2f09ba(0x19e)](_0x2f09ba(0x1b4),{'type':_0x2f09ba(0x1cd),'description':_0x2be464['CYJOO'],'default':![]})[_0x2f09ba(0x19e)](_0x2be464[_0x2f09ba(0x26c)],{'type':'string','choices':['user',_0x2be464[_0x2f09ba(0x2ca)]],'description':_0x2be464['jNUbb']});},async _0x49cdf1=>{const _0x283ab3=_0x13ddac,_0x1cc80e={'okNuK':function(_0x1d9fa0,_0xf86095,_0x5e00ac){return _0x1d9fa0(_0xf86095,_0x5e00ac);},'gHTTj':'skillup'},_0x1b72d0=Boolean(_0x49cdf1[_0x283ab3(0x1b4)]);await _0x1cc80e[_0x283ab3(0x1ac)](withTelemetry,_0x1cc80e['gHTTj'],()=>skillup({'autoInstall':_0x49cdf1[_0x283ab3(0x1d6)],'platform':_0x1b72d0?'opencode':'claude'}));})['command']('clean',_0x13ddac(0x2a4),()=>{},async()=>{const _0x74892c=_0x13ddac,_0x1047fc={'TfDNS':function(_0x47ace9,_0x37126b,_0x28c512){return _0x47ace9(_0x37126b,_0x28c512);}};await _0x1047fc['TfDNS'](withTelemetry,_0x74892c(0x28c),()=>clean());})[_0x13ddac(0x1fc)]('profile',_0x13ddac(0x265),_0x3cd36d=>{const _0x5d622c=_0x13ddac,_0x51171d={'lQZQA':'string','utMwp':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','HsSaY':_0x5d622c(0x1cd),'blKip':'skip-auth','eLrcC':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','iVXYG':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','esBZN':_0x5d622c(0x251),'AapHz':_0x5d622c(0x20b),'Akeuk':'setup-header','YPoJM':'HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','lpBjO':_0x5d622c(0x1a1),'UdxnP':_0x5d622c(0x244),'Hqbzp':_0x5d622c(0x231),'sRnJI':function(_0x232f73,_0xe1101a,_0x252904){return _0x232f73(_0xe1101a,_0x252904);},'aBIQw':'profile\x20use','Cfmhh':'Profile\x20name','pjaFw':_0x5d622c(0x292),'LMkCD':function(_0x35cee,_0x32cbd3,_0x1e8690){return _0x35cee(_0x32cbd3,_0x1e8690);},'ucwYY':'profile\x20update','tVgdX':'profile','DbpDK':_0x5d622c(0x1e6),'cuqCc':'key','htjSm':_0x5d622c(0x1de),'PmsGq':_0x5d622c(0x247),'BXGnO':_0x5d622c(0x17f),'xHxBc':_0x5d622c(0x26e),'ySvbT':_0x5d622c(0x242),'zRyVF':_0x5d622c(0x2cb),'KIRsw':_0x5d622c(0x23b),'QiYuc':_0x5d622c(0x280),'LJyxl':_0x5d622c(0x22e),'SdWeI':'encrypt-auth\x20<profile>','agGXn':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','nnNVz':_0x5d622c(0x214),'tiZFg':'Update\x20authentication\x20for\x20an\x20existing\x20profile','UaIPj':'config','gIPiS':_0x5d622c(0x209)};return _0x3cd36d[_0x5d622c(0x299)](PROFILE_HELP)['command'](_0x5d622c(0x1ba),_0x5d622c(0x169),_0x540df5=>{const _0xbf53e4=_0x5d622c;return _0x540df5['positional'](_0xbf53e4(0x231),{'type':_0x51171d[_0xbf53e4(0x189)],'description':_0x51171d['utMwp'],'demandOption':!![]})['option']('ci',{'type':_0x51171d[_0xbf53e4(0x272)],'description':_0xbf53e4(0x2a7),'default':![]})['option'](_0x51171d['blKip'],{'type':_0x51171d['HsSaY'],'description':_0x51171d['eLrcC'],'default':![]})[_0xbf53e4(0x19e)](_0xbf53e4(0x230),{'type':_0x51171d['lQZQA'],'description':_0x51171d['iVXYG']})[_0xbf53e4(0x19e)]('force',{'type':_0x51171d[_0xbf53e4(0x272)],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x51171d['esBZN'],{'type':_0xbf53e4(0x237),'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'})['option'](_0x51171d['AapHz'],{'type':'boolean','description':_0xbf53e4(0x292),'default':![]})['option'](_0xbf53e4(0x1f6),{'type':_0x51171d['HsSaY'],'description':_0xbf53e4(0x270),'default':![]})['option'](_0x51171d[_0xbf53e4(0x1d4)],{'type':_0x51171d['lQZQA'],'array':!![],'description':_0x51171d['YPoJM']})[_0xbf53e4(0x19e)]('scope',{'type':_0x51171d['lQZQA'],'choices':['user',_0x51171d[_0xbf53e4(0x2ce)]],'description':_0xbf53e4(0x21e)});},async _0x1232fa=>{const _0x3d6cee=_0x5d622c;await withTelemetry(_0x51171d['UdxnP'],_0x111759=>addEnv(_0x1232fa['profile-name'],{'ci':_0x1232fa['ci'],'skipAuth':_0x1232fa[_0x3d6cee(0x1e2)],'url':_0x1232fa[_0x3d6cee(0x230)],'force':_0x1232fa[_0x3d6cee(0x1c8)],'cdpEndpoint':_0x1232fa['cdp-endpoint'],'allowInsecureLocalhost':_0x1232fa[_0x3d6cee(0x20b)],'safeMode':_0x1232fa[_0x3d6cee(0x1f6)],'setupHeader':_0x1232fa['setup-header'],'scope':_0x1232fa[_0x3d6cee(0x1d6)]},_0x111759),{'isElectron':Boolean(_0x1232fa[_0x51171d['esBZN']])});})[_0x5d622c(0x1fc)](_0x51171d[_0x5d622c(0x27b)],_0x51171d['LJyxl'],_0x155a4b=>{const _0x2caf65=_0x5d622c;return _0x155a4b[_0x2caf65(0x29d)](_0x51171d[_0x2caf65(0x254)],{'type':'string','description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x5d11b4=>{await _0x51171d['sRnJI'](withTelemetry,_0x51171d['aBIQw'],()=>useEnv(_0x5d11b4['profile-name']));})[_0x5d622c(0x1fc)](_0x51171d[_0x5d622c(0x2c1)],_0x51171d['agGXn'],_0x51ec6a=>{const _0x12ac7d=_0x5d622c;return _0x51ec6a['positional'](_0x12ac7d(0x2d1),{'type':_0x12ac7d(0x237),'description':_0x51171d['Cfmhh'],'demandOption':!![]});},async _0x4929d2=>{await withTelemetry('profile\x20encrypt-auth',()=>authEncrypt(_0x4929d2['profile']));})['command']('ls',_0x51171d['nnNVz'],()=>{},async()=>{const _0x1a0bb2=_0x5d622c;await withTelemetry(_0x1a0bb2(0x20c),()=>envList());})['command']('update\x20<profile-name>',_0x51171d['tiZFg'],_0x2d7fea=>{const _0x406dbc=_0x5d622c;return _0x2d7fea[_0x406dbc(0x29d)](_0x51171d[_0x406dbc(0x254)],{'type':_0x51171d[_0x406dbc(0x189)],'description':_0x406dbc(0x1ea),'demandOption':!![]})[_0x406dbc(0x19e)](_0x51171d['AapHz'],{'type':_0x406dbc(0x1cd),'description':_0x51171d[_0x406dbc(0x259)]});},async _0x73eb66=>{const _0xde25a5=_0x5d622c;await _0x51171d[_0xde25a5(0x1e4)](withTelemetry,_0x51171d['ucwYY'],_0x3ba4ed=>updateEnv(_0x73eb66['profile-name'],_0x3ba4ed,{'allowInsecureLocalhost':_0x73eb66['allow-insecure-localhost']}));})['command'](_0x51171d['UaIPj'],_0x5d622c(0x1ae),_0x48a757=>{const _0x3b5d9b=_0x5d622c,_0x2bf812={'ZYejf':function(_0x15c7b6,_0x2270b3,_0x5922d7){const _0x16e97f=_0x1e03;return _0x51171d[_0x16e97f(0x1e4)](_0x15c7b6,_0x2270b3,_0x5922d7);},'XRHsd':'Profile\x20name','pqlGI':_0x51171d['PmsGq']};return _0x48a757['usage'](PROFILE_CONFIG_HELP)[_0x3b5d9b(0x1fc)](_0x51171d['BXGnO'],_0x51171d[_0x3b5d9b(0x22f)],_0x12d365=>{const _0x568070=_0x3b5d9b;return _0x12d365[_0x568070(0x29d)](_0x51171d[_0x568070(0x271)],{'type':_0x51171d[_0x568070(0x189)],'description':_0x51171d['Cfmhh'],'demandOption':!![]})['positional'](_0x568070(0x287),{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})['positional'](_0x51171d['DbpDK'],{'type':_0x568070(0x237),'description':_0x568070(0x232),'demandOption':!![]});},async _0x43afcc=>{const _0x350588=_0x3b5d9b;await _0x2bf812['ZYejf'](withTelemetry,_0x350588(0x1dd),()=>configSet(_0x43afcc[_0x350588(0x2d1)],_0x43afcc['key'],_0x43afcc[_0x350588(0x1e6)]));})['command'](_0x51171d[_0x3b5d9b(0x2b0)],_0x3b5d9b(0x175),_0x542f2a=>{const _0xb7fe41=_0x3b5d9b;return _0x542f2a[_0xb7fe41(0x29d)]('profile',{'type':'string','description':_0x2bf812['XRHsd'],'demandOption':!![]})['positional']('key',{'type':'string','description':_0x2bf812[_0xb7fe41(0x182)],'demandOption':!![]});},async _0x5a8fcb=>{const _0x5ece2a=_0x3b5d9b;await withTelemetry(_0x5ece2a(0x1b0),()=>configGet(_0x5a8fcb[_0x5ece2a(0x2d1)],_0x5a8fcb['key']));})[_0x3b5d9b(0x1fc)](_0x51171d[_0x3b5d9b(0x1bd)],_0x51171d[_0x3b5d9b(0x2bb)],_0x404f1f=>{const _0x3e9e93=_0x3b5d9b;return _0x404f1f[_0x3e9e93(0x29d)]('profile',{'type':_0x51171d[_0x3e9e93(0x189)],'description':_0x3e9e93(0x1e1),'demandOption':!![]});},async _0x2791e5=>{const _0x2e6fa8=_0x3b5d9b;await _0x2bf812[_0x2e6fa8(0x22d)](withTelemetry,_0x2e6fa8(0x202),()=>configList(_0x2791e5['profile']));})['command']('unset\x20<profile>\x20<key>','Remove\x20a\x20config\x20value',_0x4b9c79=>{const _0x1ff03b=_0x3b5d9b;return _0x4b9c79['positional'](_0x51171d['tVgdX'],{'type':'string','description':_0x51171d['Cfmhh'],'demandOption':!![]})[_0x1ff03b(0x29d)](_0x51171d['cuqCc'],{'type':_0x1ff03b(0x237),'description':_0x51171d['htjSm'],'demandOption':!![]});},async _0x3163cd=>{const _0x58180a=_0x3b5d9b;await withTelemetry('profile\x20config\x20unset',()=>configUnset(_0x3163cd['profile'],_0x3163cd[_0x58180a(0x287)]));})[_0x3b5d9b(0x260)](0x1,_0x3b5d9b(0x166));})[_0x5d622c(0x260)](0x1,_0x51171d[_0x5d622c(0x27f)]);})[_0x13ddac(0x1fc)]('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x5849dc=_0x13ddac,_0x5a1cd0={'SHaVz':_0x5849dc(0x219)};await withTelemetry(_0x5a1cd0[_0x5849dc(0x22c)],()=>status());})[_0x13ddac(0x1fc)](_0x13ddac(0x17b),_0x13ddac(0x26d),()=>{},async()=>{const _0x2b6132=_0x13ddac,_0x3d1818={'gntkY':_0x2b6132(0x17b)};await withTelemetry(_0x3d1818['gntkY'],()=>update());})['command']('print-access-token','Print\x20the\x20current\x20CLI\x20access\x20token',()=>{},async()=>{const _0x430b6c=_0x13ddac,_0x268960={'EOdFT':'No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.','dzDHm':_0x430b6c(0x281)};await withTelemetry(_0x268960['dzDHm'],async()=>{const _0x5efd1a=_0x430b6c,_0x352a0e=await getToken();if(!_0x352a0e)throw new Error(_0x268960[_0x5efd1a(0x298)]);console['log'](_0x352a0e);});})['command']('go',_0x13ddac(0x2bc),_0x4b7210=>{const _0xaf99a=_0x13ddac,_0x458b5a={'AnZoN':_0xaf99a(0x237),'FaBnF':'Optional\x20feature\x20ID','vfCCu':_0xaf99a(0x2d1),'LIQEb':_0xaf99a(0x2aa),'xDkNB':_0xaf99a(0x1c1),'ZTskw':_0xaf99a(0x1be),'rZNAJ':_0xaf99a(0x16b),'IrnMS':_0xaf99a(0x1b1),'vXUZA':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','bKxtm':'debug-outcome','tOqvc':'failed','QRfic':_0xaf99a(0x201),'eByJr':'item'};return _0x4b7210[_0xaf99a(0x19e)](_0xaf99a(0x19c),{'type':_0x458b5a[_0xaf99a(0x1e3)],'description':_0x458b5a[_0xaf99a(0x268)]})['option'](_0x458b5a[_0xaf99a(0x194)],{'type':_0x458b5a[_0xaf99a(0x1e3)],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0xaf99a(0x19e)](_0x458b5a[_0xaf99a(0x2a6)],{'type':_0xaf99a(0x237),'description':_0xaf99a(0x24e)})['option'](_0x458b5a[_0xaf99a(0x2a3)],{'type':_0x458b5a['ZTskw'],'description':_0xaf99a(0x277)})['option']('start-path',{'type':_0xaf99a(0x237),'description':_0x458b5a['rZNAJ']})['option']('model',{'type':'string','description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.'})['option'](_0x458b5a[_0xaf99a(0x2c3)],{'type':'boolean','description':_0x458b5a['vXUZA'],'default':![]})[_0xaf99a(0x19e)](_0x458b5a[_0xaf99a(0x278)],{'type':'string','hidden':!![],'choices':['verified',_0xaf99a(0x1c6),'blocked',_0x458b5a[_0xaf99a(0x2a8)],_0xaf99a(0x1a9)]})['option'](_0xaf99a(0x29f),{'type':'boolean','hidden':!![]})['option'](_0x458b5a[_0xaf99a(0x221)],{'type':'string','hidden':!![]})[_0xaf99a(0x19e)]('task',{'type':'string','hidden':!![]})[_0xaf99a(0x19e)](_0x458b5a[_0xaf99a(0x2bf)],{'type':_0xaf99a(0x1be),'hidden':!![]});},async _0x36be09=>{const _0x1fb570=_0x13ddac,_0x2ba768={'gqQDV':function(_0x560259,_0x4a8bb6){return _0x560259(_0x4a8bb6);}};await _0x2ba768[_0x1fb570(0x26a)](runGoCommand,_0x36be09);})['command'](_0x13ddac(0x1d2),![],_0x4f9e57=>{const _0x572b3c=_0x13ddac,_0x5aae8a={'jbejH':'string','codCJ':_0x572b3c(0x1e1),'cfOPF':'encrypt\x20<profile>'};return _0x4f9e57['command'](_0x5aae8a[_0x572b3c(0x236)],![],_0xcc6664=>{const _0x4f1e91=_0x572b3c;return _0xcc6664['positional'](_0x4f1e91(0x2d1),{'type':_0x5aae8a[_0x4f1e91(0x1e0)],'description':_0x5aae8a[_0x4f1e91(0x185)],'demandOption':!![]});},async _0x45345c=>{const _0x357f13=_0x572b3c;warnRenamed('ranger\x20auth\x20encrypt',_0x357f13(0x2ad)),await authEncrypt(_0x45345c[_0x357f13(0x2d1)]);})[_0x572b3c(0x260)](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})['command']('start\x20[token]',![],_0x234781=>{const _0x253865=_0x13ddac,_0x4d725a={'ShvSQ':'token','bmjqX':_0x253865(0x28a),'xmTNG':'skip-chromium','OEHqb':'scope','UvilM':'string','IoDyg':_0x253865(0x18d),'rghRt':_0x253865(0x275),'Nhhhc':'force'};return _0x234781['positional'](_0x4d725a[_0x253865(0x167)],{'type':_0x253865(0x237),'description':_0x4d725a['bmjqX']})[_0x253865(0x19e)](_0x4d725a['xmTNG'],{'type':_0x253865(0x1cd),'description':_0x253865(0x1d9),'default':![]})['option'](_0x4d725a[_0x253865(0x184)],{'type':_0x4d725a['UvilM'],'choices':[_0x4d725a[_0x253865(0x1d5)],'project'],'description':_0x4d725a['rghRt']})['option']('url',{'type':_0x4d725a['UvilM'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x4d725a[_0x253865(0x20e)],{'type':'boolean','description':_0x253865(0x1a6),'default':![]});},async _0x2ea7dd=>{const _0x2f1417=_0x13ddac,_0x2fc766={'qlCEA':_0x2f1417(0x1c9),'nlhrz':function(_0xe1a31e,_0x2c49b7,_0x274468){return _0xe1a31e(_0x2c49b7,_0x274468);}};warnRenamed(_0x2fc766['qlCEA'],_0x2f1417(0x1fa)),await _0x2fc766['nlhrz'](withTelemetry,'start',_0x5c1d11=>start(_0x2ea7dd['token'],{'skipChromium':_0x2ea7dd[_0x2f1417(0x18c)],'scope':_0x2ea7dd[_0x2f1417(0x1d6)],'url':_0x2ea7dd[_0x2f1417(0x230)],'force':_0x2ea7dd['force']},_0x5c1d11));})['command']('verify-feature',![],_0x3d0a61=>{const _0x37f8d2=_0x13ddac,_0x30d909={'zPXOI':'env','ZJkSR':_0x37f8d2(0x239),'XmCju':_0x37f8d2(0x237),'SvSHX':_0x37f8d2(0x277),'lqshD':'profile','wdYmr':'notes','PiVxI':'scenario','aRPpZ':_0x37f8d2(0x1be),'AChZz':_0x37f8d2(0x16c),'QozXw':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','EkZYe':_0x37f8d2(0x1b1),'nZLSb':_0x37f8d2(0x1cd),'qKwnl':_0x37f8d2(0x2c2)};return _0x3d0a61['option'](_0x30d909[_0x37f8d2(0x2a2)],{'type':'string','description':_0x30d909['ZJkSR']})[_0x37f8d2(0x19e)]('task',{'type':_0x30d909[_0x37f8d2(0x262)],'description':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)'})[_0x37f8d2(0x19e)](_0x37f8d2(0x257),{'type':_0x37f8d2(0x1be),'description':_0x30d909['SvSHX']})[_0x37f8d2(0x19e)](_0x30d909['lqshD'],{'type':_0x30d909['XmCju'],'hidden':!![]})['option'](_0x30d909['wdYmr'],{'type':_0x30d909[_0x37f8d2(0x262)],'hidden':!![]})['option'](_0x30d909[_0x37f8d2(0x1ec)],{'type':_0x30d909[_0x37f8d2(0x1ee)],'hidden':!![]})[_0x37f8d2(0x19e)](_0x30d909[_0x37f8d2(0x2ae)],{'type':_0x30d909['XmCju'],'description':_0x30d909[_0x37f8d2(0x17a)]})['option'](_0x37f8d2(0x1d3),{'type':'string','hidden':!![]})['option'](_0x30d909['EkZYe'],{'type':_0x30d909['nZLSb'],'hidden':!![],'default':![]})[_0x37f8d2(0x19e)](_0x37f8d2(0x2a0),{'type':_0x30d909[_0x37f8d2(0x262)],'hidden':!![],'choices':[_0x30d909['qKwnl'],'partial','blocked',_0x37f8d2(0x197),'incomplete']});},async _0x1feb6e=>{await runGoCommand(_0x1feb6e,!![]);})['command'](_0x13ddac(0x215),![],_0xf06c75=>{const _0x356cbb=_0x13ddac,_0x54e2bd={'BytjV':'string','uCtLK':_0x356cbb(0x29a),'DrAXg':'skip-auth','GvkIz':_0x356cbb(0x256)};return _0xf06c75['positional']('env-name',{'type':_0x54e2bd['BytjV'],'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x356cbb(0x1cd),'description':_0x54e2bd['uCtLK'],'default':![]})[_0x356cbb(0x19e)](_0x54e2bd['DrAXg'],{'type':_0x356cbb(0x1cd),'description':_0x54e2bd[_0x356cbb(0x21f)],'default':![]});},async _0x41c3a2=>{const _0x115f6e=_0x13ddac,_0x1a999d={'ieQDt':function(_0x15a58a,_0x5c89c0,_0x2994a8){return _0x15a58a(_0x5c89c0,_0x2994a8);},'upFNw':'ranger\x20profile\x20add','DHDsm':_0x115f6e(0x227)};_0x1a999d[_0x115f6e(0x19f)](warnRenamed,_0x115f6e(0x21c),_0x1a999d[_0x115f6e(0x1db)]),await _0x1a999d['ieQDt'](withTelemetry,_0x1a999d['DHDsm'],_0x19cb9a=>addEnv(_0x41c3a2[_0x115f6e(0x25d)],{'ci':_0x41c3a2['ci'],'skipAuth':_0x41c3a2[_0x115f6e(0x1e2)]},_0x19cb9a));})[_0x13ddac(0x1fc)](_0x13ddac(0x205),![],_0x2904f9=>{const _0x525a8b=_0x13ddac,_0x4b35db={'hlTqi':'env-name','CtVAz':'string','EwMeP':'Name\x20of\x20the\x20environment'};return _0x2904f9['positional'](_0x4b35db['hlTqi'],{'type':_0x4b35db['CtVAz'],'description':_0x4b35db[_0x525a8b(0x252)],'demandOption':!![]});},async _0x2a17e7=>{const _0xcca890=_0x13ddac,_0x534ac9={'hVbmj':function(_0x1a8803,_0x301ef2,_0x328a65){return _0x1a8803(_0x301ef2,_0x328a65);},'dzMvn':_0xcca890(0x193),'NySWI':'ranger\x20profile\x20use','jNsQV':function(_0x110803,_0x3b897f,_0x53d433){return _0x110803(_0x3b897f,_0x53d433);}};_0x534ac9[_0xcca890(0x295)](warnRenamed,_0x534ac9[_0xcca890(0x246)],_0x534ac9[_0xcca890(0x18e)]),await _0x534ac9[_0xcca890(0x1f7)](withTelemetry,_0xcca890(0x29b),()=>useEnv(_0x2a17e7[_0xcca890(0x25d)]));})[_0x13ddac(0x1fc)](_0x13ddac(0x2a9),![],_0x48eead=>{const _0x5913f5=_0x13ddac,_0x2afd77={'laeBb':'env','oIMbC':_0x5913f5(0x237),'OBaPD':'Config\x20value','aYPYF':_0x5913f5(0x1a5),'EUlnw':'ranger\x20profile\x20config\x20set','fwqNY':function(_0x5ff059,_0x53e7a1,_0xf40305){return _0x5ff059(_0x53e7a1,_0xf40305);},'ROfqd':_0x5913f5(0x24c),'wlInm':'Config\x20key','mEtti':function(_0x465c6e,_0x2c152e,_0x397484){return _0x465c6e(_0x2c152e,_0x397484);},'xpPxi':function(_0x496976,_0x617d1a,_0x41bd0e){return _0x496976(_0x617d1a,_0x41bd0e);},'wzXxc':'key','NGToL':'Config\x20key\x20to\x20remove','eBDMj':'ranger\x20config\x20unset','uSLnc':'config\x20unset','vPkpf':_0x5913f5(0x27c),'zabqR':'list\x20<env>','duGmW':_0x5913f5(0x288)};return _0x48eead['command']('set\x20<env>\x20<key>\x20<value>',![],_0x1146e9=>{const _0x5a972e=_0x5913f5;return _0x1146e9[_0x5a972e(0x29d)](_0x2afd77['laeBb'],{'type':'string','description':'Environment\x20name','demandOption':!![]})[_0x5a972e(0x29d)]('key',{'type':_0x2afd77['oIMbC'],'description':_0x5a972e(0x276),'demandOption':!![]})['positional'](_0x5a972e(0x1e6),{'type':_0x5a972e(0x237),'description':_0x2afd77[_0x5a972e(0x1ca)],'demandOption':!![]});},async _0x448a4f=>{const _0x1bf5a2=_0x5913f5;warnRenamed(_0x2afd77[_0x1bf5a2(0x233)],_0x2afd77[_0x1bf5a2(0x1a8)]),await _0x2afd77[_0x1bf5a2(0x285)](withTelemetry,_0x1bf5a2(0x2c6),()=>configSet(_0x448a4f['env'],_0x448a4f['key'],_0x448a4f['value']));})['command'](_0x2afd77['vPkpf'],![],_0x16d1aa=>{const _0x34fe66=_0x5913f5;return _0x16d1aa['positional'](_0x2afd77['laeBb'],{'type':_0x34fe66(0x237),'description':_0x2afd77[_0x34fe66(0x264)],'demandOption':!![]})[_0x34fe66(0x29d)](_0x34fe66(0x287),{'type':_0x34fe66(0x237),'description':_0x2afd77[_0x34fe66(0x1f0)],'demandOption':!![]});},async _0x1a9fa4=>{const _0x59cd03=_0x5913f5;_0x2afd77['mEtti'](warnRenamed,_0x59cd03(0x235),'ranger\x20profile\x20config\x20get'),await _0x2afd77['mEtti'](withTelemetry,_0x59cd03(0x1a2),()=>configGet(_0x1a9fa4['env'],_0x1a9fa4[_0x59cd03(0x287)]));})['command'](_0x2afd77[_0x5913f5(0x16d)],![],_0x133a6f=>{const _0xace2ca=_0x5913f5;return _0x133a6f[_0xace2ca(0x29d)](_0x2afd77['laeBb'],{'type':'string','description':_0x2afd77['ROfqd'],'demandOption':!![]});},async _0x3c3656=>{const _0xaeb3bc=_0x5913f5;_0x2afd77[_0xaeb3bc(0x16a)](warnRenamed,'ranger\x20config\x20list','ranger\x20profile\x20config\x20list'),await withTelemetry(_0xaeb3bc(0x249),()=>configList(_0x3c3656['env']));})['command'](_0x2afd77['duGmW'],![],_0x1633d9=>{const _0x5bf38c=_0x5913f5;return _0x1633d9['positional'](_0x2afd77[_0x5bf38c(0x23a)],{'type':'string','description':_0x2afd77['ROfqd'],'demandOption':!![]})[_0x5bf38c(0x29d)](_0x2afd77[_0x5bf38c(0x27a)],{'type':_0x5bf38c(0x237),'description':_0x2afd77['NGToL'],'demandOption':!![]});},async _0x3313ff=>{const _0x283f58=_0x5913f5;warnRenamed(_0x2afd77[_0x283f58(0x28e)],'ranger\x20profile\x20config\x20unset'),await withTelemetry(_0x2afd77[_0x283f58(0x1ef)],()=>configUnset(_0x3313ff[_0x283f58(0x201)],_0x3313ff[_0x283f58(0x287)]));})[_0x5913f5(0x260)](0x1,_0x5913f5(0x2ab));})['command']('env',![],_0xfdd01f=>{const _0x3680d9=_0x13ddac,_0x34697e={'LRIsQ':function(_0x49d6b5,_0x5a5c06,_0x508a34){return _0x49d6b5(_0x5a5c06,_0x508a34);},'bDTOM':'env-name','DUcUF':'string','NTFYA':_0x3680d9(0x176),'KLtZR':_0x3680d9(0x29c),'zevMq':'env\x20update','GZejn':'update\x20<env-name>'};return _0xfdd01f['command']('ls',![],()=>{},async()=>{const _0x4d4010=_0x3680d9;_0x34697e[_0x4d4010(0x2be)](warnRenamed,_0x4d4010(0x1f3),'ranger\x20profile\x20ls'),await _0x34697e[_0x4d4010(0x2be)](withTelemetry,'env\x20list',()=>envList());})['command'](_0x34697e['GZejn'],![],_0x5e39cf=>{const _0x15f0e4=_0x3680d9;return _0x5e39cf['positional'](_0x34697e[_0x15f0e4(0x2c0)],{'type':_0x34697e[_0x15f0e4(0x2c4)],'description':_0x34697e[_0x15f0e4(0x1ce)],'demandOption':!![]});},async _0x535b5d=>{const _0x273b37=_0x3680d9;warnRenamed(_0x273b37(0x283),_0x34697e['KLtZR']),await _0x34697e['LRIsQ'](withTelemetry,_0x34697e[_0x273b37(0x20a)],_0x4e7851=>updateEnv(_0x535b5d[_0x273b37(0x25d)],_0x4e7851));})[_0x3680d9(0x260)](0x1,_0x3680d9(0x206));})[_0x13ddac(0x1fc)](_0x13ddac(0x19c),![],_0x19a24e=>{const _0x206c07=_0x13ddac,_0x3ebba7={'MYGlS':'description','hvazH':_0x206c07(0x237),'Piqxx':'array','wShGl':_0x206c07(0x1c1),'rhGIZ':'ranger\x20create','zjOrA':'--checklist','kRVCf':function(_0x2122ca,_0x18bb43,_0x1086ec){return _0x2122ca(_0x18bb43,_0x1086ec);},'irvjZ':'boolean','RAXUO':_0x206c07(0x1cb),'OhaGU':'limit','tGIDO':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','WsPiR':'offset','xUWCI':_0x206c07(0x1be),'xgrNT':'Number\x20of\x20feature\x20reviews\x20to\x20skip','GGrUj':_0x206c07(0x212),'AiAGV':function(_0xe29416,_0xf2d015,_0x4a0d33){return _0xe29416(_0xf2d015,_0x4a0d33);},'BxQAv':_0x206c07(0x181),'kZHwP':_0x206c07(0x1bc),'zQSOT':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','xgSpT':_0x206c07(0x293),'zNjoV':'feature\x20resume','uFciS':_0x206c07(0x196),'AeAnY':_0x206c07(0x1f9),'dTaZG':_0x206c07(0x213),'mbSZO':function(_0x702fd8,_0x228be7,_0x2c85a1){return _0x702fd8(_0x228be7,_0x2c85a1);},'xYAXP':'ranger\x20feature\x20get-feedback','UBVQy':function(_0x53a401,_0x783fdf,_0x16413d){return _0x53a401(_0x783fdf,_0x16413d);},'NJcBe':_0x206c07(0x1a7),'xzgSW':function(_0x2db82e,_0x21128e,_0x28e84f){return _0x2db82e(_0x21128e,_0x28e84f);},'GqKxZ':_0x206c07(0x1bb),'NyNyC':function(_0x2975d2,_0x3586f8,_0x446a04){return _0x2975d2(_0x3586f8,_0x446a04);},'ehWHj':'feature\x20delete','AJKgX':'ranger\x20feature\x20restore','HfoYd':function(_0x44c513,_0x37f12b,_0x28ef48){return _0x44c513(_0x37f12b,_0x28ef48);},'yOEYR':'feature\x20restore','sdsIL':'create\x20<name>','tdIXR':_0x206c07(0x2a1),'ZPRfj':'delete\x20[id]','gJDZX':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x19a24e[_0x206c07(0x1fc)](_0x3ebba7['sdsIL'],![],_0x647be4=>{const _0x334bc7=_0x206c07;return _0x647be4['positional'](_0x334bc7(0x294),{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})[_0x334bc7(0x19e)](_0x3ebba7['MYGlS'],{'type':_0x3ebba7[_0x334bc7(0x1da)],'alias':'d','description':_0x334bc7(0x28b)})[_0x334bc7(0x19e)](_0x334bc7(0x2c8),{'type':_0x3ebba7[_0x334bc7(0x191)],'alias':'c','description':_0x334bc7(0x2b1)})[_0x334bc7(0x19e)](_0x3ebba7[_0x334bc7(0x217)],{'type':_0x334bc7(0x20d),'hidden':!![]});},async _0x3f66ef=>{const _0x4aae5b=_0x206c07;warnRenamed(_0x4aae5b(0x203),'ranger\x20create'),warnFlagRenamed(_0x3ebba7['rhGIZ'],_0x3ebba7['zjOrA'],_0x4aae5b(0x243));const _0xf03e92=_0x3f66ef[_0x4aae5b(0x1c1)]||_0x3f66ef[_0x4aae5b(0x2c8)];await _0x3ebba7[_0x4aae5b(0x1d0)](withTelemetry,'feature\x20create',()=>featureCreate(_0x3f66ef['name'],{'description':_0x3f66ef[_0x4aae5b(0x172)],'scenarios':_0xf03e92}));})['command'](_0x206c07(0x2ac),![],_0x42d9bf=>{const _0x370623=_0x206c07;return _0x42d9bf[_0x370623(0x19e)](_0x370623(0x1a4),{'type':_0x3ebba7['irvjZ'],'description':_0x3ebba7[_0x370623(0x229)]})[_0x370623(0x19e)](_0x3ebba7['OhaGU'],{'type':'number','alias':'l','description':_0x3ebba7['tGIDO'],'default':0xa})[_0x370623(0x19e)](_0x3ebba7['WsPiR'],{'type':_0x3ebba7['xUWCI'],'alias':'o','description':_0x3ebba7['xgrNT'],'default':0x0})['option'](_0x3ebba7['GGrUj'],{'type':_0x3ebba7['irvjZ'],'alias':'d','description':_0x370623(0x1b6),'default':![]});},async _0x4218b3=>{const _0x45ad49=_0x206c07;warnRenamed('ranger\x20feature\x20list','ranger\x20list'),await _0x3ebba7[_0x45ad49(0x274)](withTelemetry,_0x3ebba7[_0x45ad49(0x2c5)],()=>featureList({'currentBranch':_0x4218b3['current-branch'],'limit':_0x4218b3['limit'],'offset':_0x4218b3['offset'],'includeDeleted':_0x4218b3[_0x45ad49(0x212)]}));})[_0x206c07(0x1fc)](_0x3ebba7['tdIXR'],![],_0x349493=>{return _0x349493['positional']('id',{'type':_0x3ebba7['hvazH'],'description':'Feature\x20review\x20ID'});},async _0x27cbb2=>{const _0x2ac6f3=_0x206c07;_0x3ebba7[_0x2ac6f3(0x1d0)](warnRenamed,'ranger\x20feature\x20show',_0x3ebba7['kZHwP']),await withTelemetry('feature\x20show',()=>featureShow(_0x27cbb2['id']));})[_0x206c07(0x1fc)]('resume\x20[id]',![],_0x5a136c=>{const _0x229688=_0x206c07;return _0x5a136c['positional']('id',{'type':_0x3ebba7[_0x229688(0x1da)],'description':_0x3ebba7[_0x229688(0x253)]});},async _0x39c9d4=>{const _0x7d78d8=_0x206c07;warnRenamed(_0x7d78d8(0x174),_0x3ebba7[_0x7d78d8(0x208)]),await _0x3ebba7['kRVCf'](withTelemetry,_0x3ebba7[_0x7d78d8(0x26f)],()=>featureResume(_0x39c9d4['id']));})[_0x206c07(0x1fc)](_0x206c07(0x2d0),![],_0x4fecf1=>{const _0x1747d7=_0x206c07;return _0x4fecf1[_0x1747d7(0x29d)](_0x3ebba7['MYGlS'],{'type':_0x3ebba7['hvazH'],'description':'Scenario\x20description','demandOption':!![]})[_0x1747d7(0x19e)]('id',{'type':_0x3ebba7['hvazH'],'description':_0x3ebba7[_0x1747d7(0x25f)]});},async _0xe2af1=>{const _0x61a414=_0x206c07;_0x3ebba7[_0x61a414(0x1d0)](warnRenamed,'ranger\x20feature\x20add-checklist-item',_0x3ebba7[_0x61a414(0x180)]),await withTelemetry(_0x3ebba7[_0x61a414(0x267)],()=>featureAddScenario(_0xe2af1[_0x61a414(0x172)],_0xe2af1['id']));})[_0x206c07(0x1fc)]('get-feedback\x20[id]',![],_0x1a0ef8=>{const _0x194f21=_0x206c07;return _0x1a0ef8[_0x194f21(0x29d)]('id',{'type':_0x3ebba7[_0x194f21(0x1da)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x1f0344=>{const _0x629edc=_0x206c07;_0x3ebba7['mbSZO'](warnRenamed,_0x3ebba7['xYAXP'],'ranger\x20get-review'),await _0x3ebba7[_0x629edc(0x296)](withTelemetry,_0x3ebba7[_0x629edc(0x25b)],()=>featureGetReview(_0x1f0344['id']));})['command'](_0x3ebba7['ZPRfj'],![],_0x12a35e=>{const _0x14df62=_0x206c07;return _0x12a35e['positional']('id',{'type':_0x14df62(0x237),'description':_0x14df62(0x255)});},async _0x2f4368=>{const _0x5e0313=_0x206c07;_0x3ebba7['xzgSW'](warnRenamed,'ranger\x20feature\x20delete',_0x3ebba7[_0x5e0313(0x165)]),await _0x3ebba7[_0x5e0313(0x1ad)](withTelemetry,_0x3ebba7[_0x5e0313(0x218)],()=>featureDelete(_0x2f4368['id']));})['command']('restore\x20<id>',![],_0x2935d6=>{const _0x957b3f=_0x206c07;return _0x2935d6['positional']('id',{'type':_0x3ebba7['hvazH'],'description':_0x957b3f(0x19d),'demandOption':!![]});},async _0x2de6b2=>{const _0x34e42b=_0x206c07;warnRenamed(_0x3ebba7[_0x34e42b(0x22b)],_0x34e42b(0x195)),await _0x3ebba7[_0x34e42b(0x17d)](withTelemetry,_0x3ebba7['yOEYR'],()=>featureRestore(_0x2de6b2['id']));})['demandCommand'](0x1,_0x3ebba7[_0x206c07(0x1af)]);})[_0x13ddac(0x1fc)]('hook',![],_0x258d48=>{const _0x35c3a3=_0x13ddac,_0x33af2c={'JmBJb':_0x35c3a3(0x269),'ncbnv':_0x35c3a3(0x237),'rwyNC':'hook:enable','sxpdE':function(_0x34caa4,_0x95e4f0,_0x51e9e1){return _0x34caa4(_0x95e4f0,_0x51e9e1);},'ByqUp':'hook:disable','asHIF':_0x35c3a3(0x21b),'IIWgL':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','EyiMW':'disable','WtHHP':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','nHcaV':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','FNQSV':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'};return _0x258d48[_0x35c3a3(0x1fc)](_0x33af2c[_0x35c3a3(0x2ba)],_0x33af2c['IIWgL'],_0x5ed427=>{const _0x54cce1=_0x35c3a3;return _0x5ed427['option'](_0x33af2c[_0x54cce1(0x1f2)],{'type':_0x33af2c['ncbnv'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x242854=>{const _0x422743=_0x35c3a3;await withTelemetry(_0x33af2c[_0x422743(0x228)],()=>hook(_0x422743(0x21b),_0x242854[_0x422743(0x269)]));})[_0x35c3a3(0x1fc)](_0x33af2c['EyiMW'],_0x33af2c['WtHHP'],_0x2800cc=>{const _0x2c653a=_0x35c3a3;return _0x2800cc[_0x2c653a(0x19e)](_0x33af2c[_0x2c653a(0x1f2)],{'type':_0x2c653a(0x237),'description':_0x2c653a(0x210)});},async _0x27cf05=>{const _0x318fff=_0x35c3a3;await _0x33af2c[_0x318fff(0x25e)](withTelemetry,_0x33af2c[_0x318fff(0x234)],()=>hook(_0x318fff(0x261),_0x27cf05['session-id']));})[_0x35c3a3(0x19e)]('name',{'type':'string','description':_0x33af2c[_0x35c3a3(0x297)]})['option']('session-id',{'type':'string','description':_0x33af2c[_0x35c3a3(0x204)]});},async _0x700b3b=>{const _0x34353d=_0x13ddac,_0x34877e={'cIHFZ':function(_0x23faa9,_0x21e84d,_0x487fd9){return _0x23faa9(_0x21e84d,_0x487fd9);}};_0x700b3b[_0x34353d(0x294)]&&await _0x34877e[_0x34353d(0x2af)](hook,_0x700b3b[_0x34353d(0x294)],_0x700b3b['session-id']);})[_0x13ddac(0x260)](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()[_0x13ddac(0x1f8)](async(_0x1cba48,_0x3865d1,_0x53cdf5)=>{const _0x4eefc6=_0x13ddac,_0x3350b9={'LyFiI':function(_0x276ee8,_0x257169){return _0x276ee8(_0x257169);}},_0x410496=_0x3350b9[_0x4eefc6(0x258)](sanitizeArgs,process['argv'][_0x4eefc6(0x1b8)](0x2)),_0x5f30e1=getErrorType(_0x1cba48,_0x3865d1);if(_0x1cba48&&_0x1cba48[_0x4eefc6(0x25a)]('Unknown\x20command')){const _0x185141=process[_0x4eefc6(0x289)][0x2];console[_0x4eefc6(0x19a)](_0x4eefc6(0x1f4)+_0x185141),console[_0x4eefc6(0x19a)](_0x4eefc6(0x1cc));}else{if(_0x1cba48)console['error']('\x0a'+_0x1cba48+'\x0a');else _0x3865d1&&console[_0x4eefc6(0x19a)](_0x4eefc6(0x207)+_0x3865d1[_0x4eefc6(0x284)]+'\x0a');}await _0x3350b9[_0x4eefc6(0x258)](logDesirePath,{'rawCommand':_0x410496,'errorMessage':_0x1cba48||_0x3865d1?.[_0x4eefc6(0x284)],'errorType':_0x5f30e1});const _0x31bab7=getCurrentCollector();_0x31bab7&&await _0x31bab7[_0x4eefc6(0x273)](_0x3865d1||new Error(_0x1cba48||'Unknown\x20error')),process[_0x4eefc6(0x198)](0x1);})['epilogue']('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()['alias'](_0x13ddac(0x190),'h')[_0x13ddac(0x2b8)]();
2
+ const _0xb2634d=_0x3574;function _0x3574(_0x4d2d29,_0x5cd018){_0x4d2d29=_0x4d2d29-0x12c;const _0x436eaf=_0x436e();let _0x357416=_0x436eaf[_0x4d2d29];return _0x357416;}(function(_0x5f5d6f,_0x46553a){const _0x2e1e0f=_0x3574,_0x39d787=_0x5f5d6f();while(!![]){try{const _0x4c0ec0=parseInt(_0x2e1e0f(0x233))/0x1*(parseInt(_0x2e1e0f(0x25a))/0x2)+parseInt(_0x2e1e0f(0x25d))/0x3*(-parseInt(_0x2e1e0f(0x138))/0x4)+-parseInt(_0x2e1e0f(0x163))/0x5*(-parseInt(_0x2e1e0f(0x285))/0x6)+parseInt(_0x2e1e0f(0x222))/0x7*(parseInt(_0x2e1e0f(0x289))/0x8)+-parseInt(_0x2e1e0f(0x257))/0x9*(-parseInt(_0x2e1e0f(0x1dc))/0xa)+-parseInt(_0x2e1e0f(0x277))/0xb*(parseInt(_0x2e1e0f(0x24d))/0xc)+parseInt(_0x2e1e0f(0x211))/0xd*(-parseInt(_0x2e1e0f(0x165))/0xe);if(_0x4c0ec0===_0x46553a)break;else _0x39d787['push'](_0x39d787['shift']());}catch(_0x2e1c0c){_0x39d787['push'](_0x39d787['shift']());}}}(_0x436e,0x62f82));import _0x4c0eb9 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x22cdfb=_0x3574,_0x519b4a={'BXDtM':function(_0x2f8642,_0x5acc3b){return _0x2f8642!==_0x5acc3b;},'OCELz':function(_0x2b6906,_0x3229aa){return _0x2b6906(_0x3229aa);},'IwVaV':function(_0x3bd90d,_0x3cc469,_0x13523e){return _0x3bd90d(_0x3cc469,_0x13523e);},'XpGtW':'.env'};let _0x5370a1=process['cwd']();const _0x4bb84e=parse(_0x5370a1)['root'];while(_0x519b4a[_0x22cdfb(0x173)](_0x5370a1,_0x4bb84e)){if(_0x519b4a[_0x22cdfb(0x271)](existsSync,_0x519b4a[_0x22cdfb(0x245)](join,_0x5370a1,_0x22cdfb(0x1b8)))||existsSync(join(_0x5370a1,_0x519b4a[_0x22cdfb(0x17c)])))return _0x5370a1;_0x5370a1=_0x519b4a[_0x22cdfb(0x271)](dirname,_0x5370a1);}return process['cwd']();}_0x4c0eb9['config']({'path':join(findProjectRoot(),'.env')});import _0x18156d 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{mcpBootstrap}from'./commands/mcpBootstrap.js';import{getToken}from'./commands/utils/keychain.js';import{status}from'./commands/status.js';function _0x436e(){const _0x5b8dc2=['mEpkv','unset\x20<env>\x20<key>','wvKyC','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','positional','profile','12GaYTpC','fCKUI','bwgOE','profile\x20update','verify-feature','Feature\x20review\x20description','SLLSa','XReiT','Install\x20scope\x20for\x20skills','Manage\x20profile\x20configuration','297PhxFzj','OOfVR','ENIBX','542704eyWYmV','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','ranger\x20go','263787fZxodR','ASans','ranger\x20feature\x20resume','feature\x20add-checklist-item','nYOlA','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','length','ranger\x20profile\x20update','--checklist','Feature\x20review\x20ID\x20to\x20restore','Unknown\x20command','New\x20scenario\x20description','sjjRh','array','gLDfw','feature\x20resume','current-branch','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','resume\x20[id]','value','OCELz','profile\x20config\x20get','iFSla','skip-auth','env-name','list','8108111VCSTan','MaSnC','usage','command','Nqpxw','verified','dEhVA','ranger\x20profile\x20config\x20set','You\x20must\x20specify\x20a\x20config\x20subcommand','uJFLB','get\x20<profile>\x20<key>','QslSa','ranger\x20env\x20ls','startsWith','236052TVLroP','UGmmc','zDHQM','ranger\x20profile\x20add','1552GMlxwn','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','YOxSu','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','ibaZQ','glwFl','klbOT','setup-header','SPNIS','option','--env','project','ranger\x20create','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','partial','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','profile\x20config\x20set','BBBuU','ranger\x20config\x20get','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','KxTrG','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','add\x20env','ZOJXZ','--item','CnLfx','dpCBL','4mLaXvG','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','incomplete','failed','ranger\x20feature\x20create','Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)','allow-insecure-localhost','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','iUogH','scenario','eLJgv','encrypt-auth\x20<profile>','unhandledRejection','yhptS','blocked','Install\x20skills\x20for\x20OpenCode','set\x20<env>\x20<key>\x20<value>','cdp-endpoint','AIxKH','rQAtp','Rlhmj','stAob','feature\x20restore','model','ranger\x20feature\x20get-feedback','get-review\x20[id]','bvMep','bnxVO','update\x20<env-name>','Scenario\x20description','ranger','You\x20must\x20specify\x20an\x20auth\x20subcommand','add\x20env\x20<env-name>','aaUHd','demandCommand','uHgBG','JoZPT','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','json','tbUpf','safe-mode','report\x20[id]','65zsLFwq','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','14ZAzMxN','jVldA','qfKFm','ranger\x20get-review','lXEef','\x20BLOCKED','cLqEH','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','ranger\x20profile\x20encrypt-auth','kNVXN','cNMEz','cWhHT','Config\x20value','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','BXDtM','peByY','ZUVFF','exit','argv','trackCommandError','rUnjZ','nolql','issues','XpGtW','\x20is\x20now\x20','MqIeL','ranger\x20config\x20set','update\x20<profile-name>','eoXUP','Install\x20Ranger\x20skills','restore\x20<id>','ranger\x20verify-feature','evaluation','opencode','tcWgL','qRVwY','PdhGK','epzVd','nfvGT','rFrDK','rjOcn','SvHOm','disable','include-deleted','some','ranger\x20delete','tESlC','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','ranger\x20profile\x20config\x20get','item','resume','scope','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','Switch\x20to\x20using\x20a\x20specific\x20profile','MCTxZ','edit-scenario\x20<description>','report','You\x20must\x20specify\x20a\x20profile\x20subcommand','JpoaU','UhyGx','Config\x20key\x20to\x20remove','add-scenario','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','ranger\x20auth\x20encrypt','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','VKScF','gUhmh','List\x20all\x20feature\x20reviews','TTUYT','dCWKV','HqSxH','KJNyI','Unknown\x20error','description','Xxqyf','add-checklist-item\x20<description>','Number\x20of\x20feature\x20reviews\x20to\x20skip','ranger\x20profile\x20ls','dhfLX','gVTXt','show\x20[id]','skip-chromium','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','.ranger','offset','VbRjd','message','pIdwh','TCfSt','gQJot','qmLWo','start-path','Include\x20soft-deleted\x20feature\x20reviews','AHBep','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','token','Print\x20the\x20current\x20CLI\x20access\x20token','includes','VTNEF','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','\x20INCOMPLETE','number','phyeM','hook','\x20PARTIAL','Get\x20a\x20config\x20value','evaluationReason','FVXph','erabe','ranger\x20feature\x20list','Profile\x20name','peyQg','parse','sJPya','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','QZpFX','yQlHU','CMwPE','196730bhUtNR','WPuMc','GlkNo','encrypt\x20<profile>','lMLio','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','Config\x20key','version','boolean','show','config','mcp-bootstrap','LFnay','qjdZV','task','name','slice','zmsjf','status','lBMIf','fAden','pFflW','NFMgf','force','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','feature\x20get-feedback','AeYzT','login','fXsHC','Scenario\x20index\x20(1-based)','WsoWt','UJaQS','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','clean','ranger\x20start','delete\x20[id]','edit-scenario','feature\x20delete','alias','env','Initialize\x20Ranger\x20in\x20your\x20project','hIGAx','debug-outcome','enable','key','ZdcOB','notes','IytJn','dXsYe','Remove\x20a\x20config\x20value','uKsxQ','nqsTV','jVYlZ','3077269VbYRTs','error','limit','qKNqo','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','hook:disable','fJEhM','tPZYo','OOixY','FjtBd','start','Diwtj','VuzwT','gFBLr','log','update','session-id','1267NjJMzc','config\x20get','skillup','profile\x20config\x20unset','qCydO','sIBLx','ivQhn','string','profile\x20config\x20list','Set\x20a\x20config\x20value','help','repeat','url','xqgkH','FFSsp','base-url','Environment\x20name','1UfKSqv','Name\x20of\x20the\x20environment\x20to\x20update','cGztv','create','uppRe','Feature\x20review\x20ID','Manage\x20profiles','unset\x20<profile>\x20<key>','vNPTo','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','GGXXW','PFMuG','qlYWB','checklist','user','rtVOY','EaZXp','IwVaV','Name\x20of\x20the\x20environment'];_0x436e=function(){return _0x5b8dc2;};return _0x436e();}import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{isByokEnabled}from'./commands/utils/environment.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0xb2634d(0x145),async _0x499531=>{const _0x466664=getCurrentCollector();_0x466664&&await _0x466664['trackCommandError'](_0x499531),process['exitCode']=0x1;});const rawArgs=process['argv'][_0xb2634d(0x1ec)](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20setup\x20--mcp-bootstrap\x20\x20\x20\x20\x20\x20\x20Bootstrap\x20CLI\x20auth\x20via\x20MCP\x20auth\x20server\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true',PROFILE_CONFIG_HELP='Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20header.X-Test-Mode)\x0a\x20\x20setupHeader.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeader.x-bypass-turnstile)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20setupHeader.x-bypass-turnstile\x20\x27a1b2c3d4...\x27';function warnRenamed(_0x5a3eac,_0x362704){const _0x7d1ef5=_0xb2634d;console[_0x7d1ef5(0x212)]('\x0a'+_0x5a3eac+_0x7d1ef5(0x17d)+_0x362704+'\x0a');}function argUsed(_0x4c315c){const _0x34e2b2=_0xb2634d;return rawArgs[_0x34e2b2(0x191)](_0x5a807c=>_0x5a807c===_0x4c315c||_0x5a807c[_0x34e2b2(0x284)](_0x4c315c+'='));}function warnFlagRenamed(_0x429573,_0x3e5559,_0x52b0b7){const _0x27e08b=_0xb2634d,_0x38a722={'cGztv':function(_0x18993a,_0x429058,_0x4e9f6a){return _0x18993a(_0x429058,_0x4e9f6a);}};argUsed(_0x3e5559)&&_0x38a722[_0x27e08b(0x235)](warnRenamed,_0x429573+'\x20'+_0x3e5559,_0x429573+'\x20'+_0x52b0b7);}async function runGoCommand(_0x22ac07,_0x2898cb=![]){const _0x4e7cb8=_0xb2634d,_0x144eaf={'fJEhM':function(_0x2d1c88,_0x387c12){return _0x2d1c88+_0x387c12;},'gnEJb':function(_0x62fd8b,_0x4d7371,_0x5aa686){return _0x62fd8b(_0x4d7371,_0x5aa686);},'hZCvu':_0x4e7cb8(0x184),'OOixY':_0x4e7cb8(0x25c),'ObeQI':function(_0x2c7738,_0x432e6d,_0x349de5,_0x5b772){return _0x2c7738(_0x432e6d,_0x349de5,_0x5b772);},'vcLdQ':_0x4e7cb8(0x293),'SPNIS':'--notes','xqgkH':_0x4e7cb8(0x135),'zDHQM':function(_0x2ff6d1){return _0x2ff6d1();},'ibaZQ':_0x4e7cb8(0x1c0),'EaZXp':'verified','Xxqyf':function(_0x2a6b81,_0x35efba){return _0x2a6b81===_0x35efba;},'WsoWt':'incomplete','aATTM':_0x4e7cb8(0x1ca),'pmGRz':'partial','soxWf':_0x4e7cb8(0x1ce),'jVldA':_0x4e7cb8(0x147),'qfKFm':'\x20FAILED','yRjmc':'\x0aIssues:'};_0x2898cb&&_0x144eaf['gnEJb'](warnRenamed,_0x144eaf['hZCvu'],_0x144eaf['OOixY']);_0x144eaf['ObeQI'](warnFlagRenamed,_0x144eaf['OOixY'],_0x144eaf['vcLdQ'],'--profile'),warnFlagRenamed(_0x144eaf['OOixY'],'--task',_0x144eaf[_0x4e7cb8(0x291)]),warnFlagRenamed(_0x144eaf[_0x4e7cb8(0x219)],_0x144eaf[_0x4e7cb8(0x22f)],'--scenario');const _0x506b96=await loadRangerConfig(),_0x5ef4f3=_0x144eaf[_0x4e7cb8(0x287)](isByokEnabled),_0x27a227=_0x22ac07['model'],_0x5c8c8c=_0x506b96[_0x4e7cb8(0x150)],_0xc246a7=await verifyFeature({'featureId':_0x22ac07['feature'],'profile':_0x22ac07['profile']??_0x22ac07[_0x4e7cb8(0x203)],'notes':_0x22ac07[_0x4e7cb8(0x20a)]??_0x22ac07[_0x4e7cb8(0x1ea)],'scenario':_0x22ac07[_0x4e7cb8(0x142)]??_0x22ac07[_0x4e7cb8(0x196)],'startPath':_0x22ac07[_0x144eaf[_0x4e7cb8(0x28d)]],'debugOutcome':_0x22ac07['debug-outcome'],'debugAddressComments':_0x22ac07['debug-address-comments'],'headed':_0x22ac07['headed'],'byokEnabled':_0x5ef4f3,'flagVerifyModel':_0x27a227,'configVerifyModel':_0x5c8c8c});console[_0x4e7cb8(0x21f)]('\x0a'+'='[_0x4e7cb8(0x22d)](0x3c)),console[_0x4e7cb8(0x21f)](_0xc246a7['evaluation']===_0x144eaf[_0x4e7cb8(0x244)]?'\x20VERIFIED':_0x144eaf[_0x4e7cb8(0x1af)](_0xc246a7[_0x4e7cb8(0x185)],_0x144eaf[_0x4e7cb8(0x1fa)])?_0x144eaf['aATTM']:_0xc246a7[_0x4e7cb8(0x185)]===_0x144eaf['pmGRz']?_0x144eaf['soxWf']:_0xc246a7['evaluation']===_0x144eaf[_0x4e7cb8(0x166)]?_0x4e7cb8(0x16a):_0x144eaf[_0x4e7cb8(0x167)]),console[_0x4e7cb8(0x21f)]('='[_0x4e7cb8(0x22d)](0x3c)),console[_0x4e7cb8(0x21f)]('Summary:\x20'+_0xc246a7['summary']),console['log']('Evaluation:\x20'+_0xc246a7['evaluation']),console['log']('Reason:\x20'+_0xc246a7[_0x4e7cb8(0x1d0)]),_0xc246a7['issues']?.[_0x4e7cb8(0x263)]&&(console[_0x4e7cb8(0x21f)](_0x144eaf['yRjmc']),_0xc246a7[_0x4e7cb8(0x17b)]['forEach']((_0x54db4a,_0x5432a8)=>{const _0x406dc7=_0x4e7cb8;console[_0x406dc7(0x21f)]('\x0a'+_0x144eaf[_0x406dc7(0x217)](_0x5432a8,0x1)+'.\x20['+_0x54db4a['severity']+']\x20'+_0x54db4a['description']);})),process['exit'](_0xc246a7[_0x4e7cb8(0x185)]==='verified'?0x0:0x1);}_0x18156d(process[_0xb2634d(0x177)]['slice'](0x2))['scriptName'](_0xb2634d(0x157))[_0xb2634d(0x279)](TOP_LEVEL_HELP)[_0xb2634d(0x1e3)](getCurrentVersion())['command']('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x4c0865=>{const _0x5bea09=_0xb2634d,_0x2a6cfd={'KxTrG':_0x5bea09(0x229),'wkfkR':'Feature\x20review\x20name','pIdwh':'description','yhptS':'scenario','MCTxZ':_0x5bea09(0x241),'OAUKR':'array'};return _0x4c0865['positional']('name',{'type':_0x2a6cfd[_0x5bea09(0x131)],'description':_0x2a6cfd['wkfkR'],'demandOption':!![]})[_0x5bea09(0x292)](_0x2a6cfd[_0x5bea09(0x1bc)],{'type':_0x5bea09(0x229),'alias':'d','description':_0x5bea09(0x252)})['option'](_0x2a6cfd[_0x5bea09(0x146)],{'type':'array','alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x2a6cfd[_0x5bea09(0x19b)],{'type':_0x2a6cfd['OAUKR'],'hidden':!![]});},async _0x18bade=>{const _0x494193=_0xb2634d,_0x2f1670={'hSOLX':function(_0x38b499,_0xd0cfd4,_0x52b350,_0x1cc7a5){return _0x38b499(_0xd0cfd4,_0x52b350,_0x1cc7a5);},'ENIBX':_0x494193(0x265)};_0x2f1670['hSOLX'](warnFlagRenamed,'ranger\x20create',_0x2f1670[_0x494193(0x259)],'--scenario');const _0x377cd4=_0x18bade[_0x494193(0x142)]||_0x18bade[_0x494193(0x241)];await withTelemetry(_0x494193(0x236),()=>featureCreate(_0x18bade['name'],{'description':_0x18bade[_0x494193(0x1ae)],'scenarios':_0x377cd4}));})[_0xb2634d(0x27a)](_0xb2634d(0x276),_0xb2634d(0x1a8),_0x2c8d11=>{const _0x736b3d=_0xb2634d,_0x3a8f82={'urSeS':_0x736b3d(0x26d),'bwgOE':_0x736b3d(0x1e4),'PFMuG':_0x736b3d(0x1cb),'gSwTP':_0x736b3d(0x1b1),'epzVd':_0x736b3d(0x190),'TbnVn':_0x736b3d(0x1c1)};return _0x2c8d11[_0x736b3d(0x292)](_0x3a8f82['urSeS'],{'type':_0x3a8f82[_0x736b3d(0x24f)],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option']('limit',{'type':_0x3a8f82[_0x736b3d(0x23f)],'alias':'l','description':_0x736b3d(0x23d),'default':0xa})[_0x736b3d(0x292)](_0x736b3d(0x1b9),{'type':_0x3a8f82['PFMuG'],'alias':'o','description':_0x3a8f82['gSwTP'],'default':0x0})['option'](_0x3a8f82[_0x736b3d(0x18a)],{'type':_0x3a8f82['bwgOE'],'alias':'d','description':_0x3a8f82['TbnVn'],'default':![]});},async _0x1c00c8=>{const _0x14dda0=_0xb2634d,_0x496d15={'nolql':function(_0xbba1c7,_0x20574c,_0x4185a4){return _0xbba1c7(_0x20574c,_0x4185a4);},'Nqpxw':_0x14dda0(0x276)};await _0x496d15[_0x14dda0(0x17a)](withTelemetry,_0x496d15[_0x14dda0(0x27b)],()=>featureList({'currentBranch':_0x1c00c8[_0x14dda0(0x26d)],'limit':_0x1c00c8['limit'],'offset':_0x1c00c8[_0x14dda0(0x1b9)],'includeDeleted':_0x1c00c8[_0x14dda0(0x190)]}));})[_0xb2634d(0x27a)](_0xb2634d(0x1b5),_0xb2634d(0x1e1),_0x2895d6=>{const _0x1d46af=_0xb2634d;return _0x2895d6[_0x1d46af(0x24b)]('id',{'type':_0x1d46af(0x229),'description':_0x1d46af(0x238)});},async _0x2d5702=>{const _0x110a05=_0xb2634d,_0x2b499e={'cNMEz':_0x110a05(0x1e5)};await withTelemetry(_0x2b499e[_0x110a05(0x16f)],()=>featureShow(_0x2d5702['id']));})['command'](_0xb2634d(0x26f),_0xb2634d(0x15e),_0x23202f=>{const _0x4062fc=_0xb2634d,_0x2361e1={'fAden':'string'};return _0x23202f['positional']('id',{'type':_0x2361e1[_0x4062fc(0x1f0)],'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x57831d=>{const _0x547794=_0xb2634d,_0x3b1f79={'gQJot':function(_0x47f6ba,_0x3e5d09,_0x408e5c){return _0x47f6ba(_0x3e5d09,_0x408e5c);}};await _0x3b1f79[_0x547794(0x1be)](withTelemetry,_0x547794(0x197),()=>featureResume(_0x57831d['id']));})['command']('add-scenario\x20<description>','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x4a1779=>{const _0x2c0ebd=_0xb2634d,_0x395c86={'cgwyc':'Scenario\x20description'};return _0x4a1779['positional'](_0x2c0ebd(0x1ae),{'type':'string','description':_0x395c86['cgwyc'],'demandOption':!![]})['option']('id',{'type':_0x2c0ebd(0x229),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x23a221=>{const _0x5ba45c=_0xb2634d,_0x4ff412={'sIBLx':function(_0x45df8e,_0x7c2e13,_0x3cd4b9){return _0x45df8e(_0x7c2e13,_0x3cd4b9);}};await _0x4ff412[_0x5ba45c(0x227)](withTelemetry,_0x5ba45c(0x1a2),()=>featureAddScenario(_0x23a221[_0x5ba45c(0x1ae)],_0x23a221['id']));})[_0xb2634d(0x27a)](_0xb2634d(0x19c),'Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x33b131=>{const _0x2f5a3b=_0xb2634d,_0x57f37f={'kNVXN':'description','stAob':_0x2f5a3b(0x229)};return _0x33b131[_0x2f5a3b(0x24b)](_0x57f37f[_0x2f5a3b(0x16e)],{'type':'string','description':_0x2f5a3b(0x268),'demandOption':!![]})['option'](_0x2f5a3b(0x142),{'type':'number','description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})['option']('id',{'type':_0x57f37f[_0x2f5a3b(0x14e)],'description':_0x2f5a3b(0x1a5)});},async _0x54dc81=>{const _0x52c5ae=_0xb2634d,_0xa27d20={'uuQIO':_0x52c5ae(0x200)};await withTelemetry(_0xa27d20['uuQIO'],()=>featureEditScenario(_0x54dc81['description'],{'id':_0x54dc81['id'],'scenario':_0x54dc81['scenario']}));})[_0xb2634d(0x27a)](_0xb2634d(0x162),'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x1b471d=>{const _0x518db1=_0xb2634d,_0x1d1995={'iUogH':'exclude-scenario','VfieN':_0x518db1(0x15f),'ZdcOB':_0x518db1(0x1f4)};return _0x1b471d['positional']('id',{'type':_0x518db1(0x229),'description':_0x518db1(0x238)})[_0x518db1(0x292)](_0x1d1995[_0x518db1(0x141)],{'type':_0x518db1(0x26a),'description':_0x518db1(0x1c4)})['option'](_0x1d1995['VfieN'],{'type':_0x518db1(0x1e4),'description':_0x1d1995[_0x518db1(0x209)],'default':![]});},async _0x3b3aaf=>{const _0x403fe5=_0xb2634d,_0x124820={'qEDqP':'exclude-scenario','qjdZV':_0x403fe5(0x19d)},_0x31edae=_0x3b3aaf[_0x124820['qEDqP']],_0x1b5c26=_0x31edae?_0x31edae['map'](_0x241687=>Number(_0x241687)):undefined;await withTelemetry(_0x124820[_0x403fe5(0x1e9)],()=>featureReportPrDescription(_0x3b3aaf['id'],{'excludeScenarios':_0x1b5c26,'json':_0x3b3aaf[_0x403fe5(0x15f)]}));})[_0xb2634d(0x27a)](_0xb2634d(0x152),_0xb2634d(0x16c),_0x3ab061=>{const _0x2b537c=_0xb2634d,_0x44ed37={'ZQiyw':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x3ab061['positional']('id',{'type':_0x2b537c(0x229),'description':_0x44ed37['ZQiyw']});},async _0x32783f=>{const _0x468117=_0xb2634d,_0x247c72={'lBMIf':function(_0x2c80fc,_0x1be79c,_0x256098){return _0x2c80fc(_0x1be79c,_0x256098);},'aaUHd':'get-review'};await _0x247c72[_0x468117(0x1ef)](withTelemetry,_0x247c72[_0x468117(0x15a)],()=>featureGetReview(_0x32783f['id']));})[_0xb2634d(0x27a)]('delete\x20[id]',_0xb2634d(0x1fc),_0x124521=>{const _0x428144=_0xb2634d;return _0x124521[_0x428144(0x24b)]('id',{'type':_0x428144(0x229),'description':'Feature\x20review\x20ID'});},async _0x3a7912=>{const _0x2bcdd4=_0xb2634d,_0x4e09dd={'rFrDK':function(_0x23e88c,_0x2d2e1e,_0x213658){return _0x23e88c(_0x2d2e1e,_0x213658);},'xRVwp':'delete'};await _0x4e09dd[_0x2bcdd4(0x18c)](withTelemetry,_0x4e09dd['xRVwp'],()=>featureDelete(_0x3a7912['id']));})['command'](_0xb2634d(0x183),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x6f5f27=>{const _0x2dd3c4={'GDXkk':'string'};return _0x6f5f27['positional']('id',{'type':_0x2dd3c4['GDXkk'],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x4fa0f1=>{const _0x5666e1={'giRgQ':'restore'};await withTelemetry(_0x5666e1['giRgQ'],()=>featureRestore(_0x4fa0f1['id']));})['command']('setup\x20[token]',_0xb2634d(0x204),_0x3bbf21=>{const _0x44ba85=_0xb2634d,_0x31693e={'QZpFX':_0x44ba85(0x229),'oTjZj':_0x44ba85(0x1b6),'QslSa':_0x44ba85(0x1e4),'orRDi':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','uJFLB':_0x44ba85(0x198),'oadSA':'url','ewLIC':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','KeEDJ':'force','AeYzT':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','YYlQX':'opencode','IytJn':_0x44ba85(0x140),'MqIeL':_0x44ba85(0x199)};return _0x3bbf21['positional'](_0x44ba85(0x1c5),{'type':_0x31693e[_0x44ba85(0x1d9)],'description':_0x44ba85(0x28c)})['option'](_0x31693e['oTjZj'],{'type':_0x31693e[_0x44ba85(0x282)],'description':_0x31693e['orRDi'],'default':![]})['option'](_0x31693e[_0x44ba85(0x280)],{'type':_0x31693e['QZpFX'],'choices':['user','project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x31693e['oadSA'],{'type':'string','description':_0x31693e['ewLIC']})['option'](_0x31693e['KeEDJ'],{'type':'boolean','description':_0x31693e[_0x44ba85(0x1f6)],'default':![]})['option'](_0x31693e['YYlQX'],{'type':_0x31693e['QslSa'],'description':_0x31693e[_0x44ba85(0x20b)],'default':![]})['option']('allow-insecure-localhost',{'type':_0x31693e['QslSa'],'description':_0x31693e[_0x44ba85(0x17e)],'default':![]})['option'](_0x44ba85(0x1e7),{'type':'boolean','description':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','default':![]});},async _0x27a7f6=>{const _0x9c0b41=_0xb2634d,_0x5e94cd={'Fnyts':function(_0x21360d,_0x2f36b9,_0x1218a1){return _0x21360d(_0x2f36b9,_0x1218a1);},'cWhHT':'mcp-bootstrap','klbOT':function(_0x2b0889,_0x262967,_0x300060){return _0x2b0889(_0x262967,_0x300060);}};_0x27a7f6['mcp-bootstrap']&&await _0x5e94cd['Fnyts'](withTelemetry,_0x5e94cd[_0x9c0b41(0x170)],()=>mcpBootstrap()),await _0x5e94cd[_0x9c0b41(0x28f)](withTelemetry,'start',_0x10fb82=>start(_0x27a7f6[_0x9c0b41(0x1c5)],{'skipChromium':_0x27a7f6[_0x9c0b41(0x1b6)],'scope':_0x27a7f6['scope'],'url':_0x27a7f6['url'],'force':_0x27a7f6['force'],'opencode':_0x27a7f6[_0x9c0b41(0x186)],'allowInsecureLocalhost':_0x27a7f6[_0x9c0b41(0x13f)]},_0x10fb82));})['command']('setup-ci\x20<token>','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x19fae1=>{const _0x45c5e6=_0xb2634d,_0xa41530={'VTNEF':_0x45c5e6(0x1c5),'HciZz':'string','YwzhO':'Ranger\x20API\x20token','AIxKH':_0x45c5e6(0x1d8),'NFMgf':'base-url','QrUui':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','ZUVFF':_0x45c5e6(0x1b6),'Kfxqx':_0x45c5e6(0x1e4),'asoKo':'Skip\x20Chromium\x20browser\x20installation'};return _0x19fae1['positional'](_0xa41530[_0x45c5e6(0x1c8)],{'type':_0xa41530['HciZz'],'description':_0xa41530['YwzhO'],'demandOption':!![]})['option'](_0x45c5e6(0x24c),{'type':'string','description':_0xa41530[_0x45c5e6(0x14b)]})[_0x45c5e6(0x292)](_0xa41530[_0x45c5e6(0x1f2)],{'type':'string','description':_0xa41530['QrUui']})[_0x45c5e6(0x292)](_0xa41530[_0x45c5e6(0x175)],{'type':_0xa41530['Kfxqx'],'description':_0xa41530['asoKo'],'default':![]});},async _0x3e71d2=>{const _0x2d17ce=_0xb2634d;await withTelemetry('setup-ci',_0x574c62=>setupCi(_0x3e71d2['token'],{'profile':_0x3e71d2['profile'],'baseUrl':_0x3e71d2[_0x2d17ce(0x231)],'skipChromium':_0x3e71d2[_0x2d17ce(0x1b6)]},_0x574c62));})[_0xb2634d(0x27a)](_0xb2634d(0x1f7),_0xb2634d(0x139),()=>{},async()=>{const _0x502f27={'YAHRt':function(_0x48d4d7,_0xae1ec2,_0x2d5008){return _0x48d4d7(_0xae1ec2,_0x2d5008);},'rjajk':'login'};await _0x502f27['YAHRt'](withTelemetry,_0x502f27['rjajk'],()=>login());})[_0xb2634d(0x27a)](_0xb2634d(0x224),_0xb2634d(0x182),_0x4ee84d=>{const _0x55c120=_0xb2634d,_0x5b18b5={'WOkbo':'boolean','WcVbg':_0x55c120(0x229),'fCKUI':'project','CMwPE':_0x55c120(0x255)};return _0x4ee84d[_0x55c120(0x292)](_0x55c120(0x186),{'type':_0x5b18b5['WOkbo'],'description':_0x55c120(0x148),'default':![]})[_0x55c120(0x292)](_0x55c120(0x198),{'type':_0x5b18b5['WcVbg'],'choices':[_0x55c120(0x242),_0x5b18b5[_0x55c120(0x24e)]],'description':_0x5b18b5[_0x55c120(0x1db)]});},async _0x2f6a56=>{const _0x4c365e=_0xb2634d,_0x526554={'mmLnz':_0x4c365e(0x224)},_0x19f2cb=Boolean(_0x2f6a56[_0x4c365e(0x186)]);await withTelemetry(_0x526554['mmLnz'],()=>skillup({'autoInstall':_0x2f6a56['scope'],'platform':_0x19f2cb?'opencode':'claude'}));})['command'](_0xb2634d(0x1fd),'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x192540=_0xb2634d,_0x5b8924={'dhfLX':function(_0x39c0d4,_0xec3dd0,_0x249dda){return _0x39c0d4(_0xec3dd0,_0x249dda);},'rUnjZ':'clean'};await _0x5b8924[_0x192540(0x1b3)](withTelemetry,_0x5b8924[_0x192540(0x179)],()=>clean());})['command'](_0xb2634d(0x24c),_0xb2634d(0x239),_0x1614df=>{const _0x343951=_0xb2634d,_0x33bbed={'cLqEH':_0x343951(0x229),'cVUOa':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','IAbtQ':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','UJaQS':'url','JScJR':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','peByY':_0x343951(0x1f3),'rjOcn':_0x343951(0x25b),'HqSxH':'allow-insecure-localhost','ZOJXZ':_0x343951(0x199),'vZxLu':'boolean','paWBi':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','tESlC':_0x343951(0x290),'nqsTV':_0x343951(0x198),'WSVKP':_0x343951(0x242),'wIxrd':_0x343951(0x294),'bvMep':function(_0x11e93d,_0x4a675a,_0x420841,_0x5b8cc2){return _0x11e93d(_0x4a675a,_0x420841,_0x5b8cc2);},'eotZF':function(_0x10c6c9,_0x275bc1){return _0x10c6c9(_0x275bc1);},'jVYlZ':function(_0x56ce2e,_0x55b493,_0x5970e3){return _0x56ce2e(_0x55b493,_0x5970e3);},'WjHuv':'profile\x20ls','dfhxW':'profile-name','gUhmh':'Name\x20of\x20the\x20profile\x20to\x20update','VbRjd':function(_0x315c7a,_0x1bce80,_0x2c177f){return _0x315c7a(_0x1bce80,_0x2c177f);},'VyBaF':_0x343951(0x250),'lXEef':'profile','Xcpkp':_0x343951(0x1d4),'hTsfv':_0x343951(0x272),'cGEpd':_0x343951(0x22a),'fupFE':_0x343951(0x12c),'MlrHT':_0x343951(0x22b),'ejwfd':_0x343951(0x1cf),'KJNyI':_0x343951(0x23a),'erabe':'Add\x20profile\x20configuration','jWnVe':'use\x20<profile-name>','zhXZs':_0x343951(0x19a),'lJUlw':_0x343951(0x172),'dXsYe':'List\x20all\x20profiles','GlkNo':'config','hmFmH':_0x343951(0x19e)};return _0x1614df[_0x343951(0x279)](PROFILE_HELP)[_0x343951(0x27a)]('add\x20<profile-name>',_0x33bbed[_0x343951(0x1d2)],_0x3ed36e=>{const _0x56e96e=_0x343951;return _0x3ed36e[_0x56e96e(0x24b)]('profile-name',{'type':_0x33bbed[_0x56e96e(0x16b)],'description':_0x33bbed['cVUOa'],'demandOption':!![]})[_0x56e96e(0x292)]('ci',{'type':'boolean','description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0x56e96e(0x292)]('skip-auth',{'type':'boolean','description':_0x33bbed['IAbtQ'],'default':![]})['option'](_0x33bbed[_0x56e96e(0x1fb)],{'type':_0x33bbed[_0x56e96e(0x16b)],'description':_0x33bbed['JScJR']})['option'](_0x33bbed[_0x56e96e(0x174)],{'type':'boolean','description':_0x56e96e(0x130),'default':![]})['option'](_0x56e96e(0x14a),{'type':_0x33bbed[_0x56e96e(0x16b)],'description':_0x33bbed[_0x56e96e(0x18d)]})['option'](_0x33bbed[_0x56e96e(0x1ab)],{'type':_0x56e96e(0x1e4),'description':_0x33bbed[_0x56e96e(0x134)],'default':![]})['option']('safe-mode',{'type':_0x33bbed['vZxLu'],'description':_0x33bbed['paWBi'],'default':![]})['option'](_0x33bbed[_0x56e96e(0x193)],{'type':_0x33bbed[_0x56e96e(0x16b)],'array':!![],'description':_0x56e96e(0x26e)})['option'](_0x33bbed[_0x56e96e(0x20f)],{'type':_0x56e96e(0x229),'choices':[_0x33bbed['WSVKP'],_0x33bbed['wIxrd']],'description':_0x56e96e(0x13e)});},async _0x5f4480=>{const _0x171d92=_0x343951;await _0x33bbed[_0x171d92(0x153)](withTelemetry,'profile\x20add',_0x45336f=>addEnv(_0x5f4480['profile-name'],{'ci':_0x5f4480['ci'],'skipAuth':_0x5f4480[_0x171d92(0x274)],'url':_0x5f4480['url'],'force':_0x5f4480['force'],'cdpEndpoint':_0x5f4480['cdp-endpoint'],'allowInsecureLocalhost':_0x5f4480[_0x171d92(0x13f)],'safeMode':_0x5f4480[_0x171d92(0x161)],'setupHeader':_0x5f4480[_0x171d92(0x290)],'scope':_0x5f4480['scope']},_0x45336f),{'isElectron':_0x33bbed['eotZF'](Boolean,_0x5f4480[_0x171d92(0x14a)])});})[_0x343951(0x27a)](_0x33bbed['jWnVe'],_0x33bbed['zhXZs'],_0x1d2b99=>{const _0x260f5b=_0x343951;return _0x1d2b99[_0x260f5b(0x24b)]('profile-name',{'type':_0x260f5b(0x229),'description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x3bf9d3=>{const _0x244bdc=_0x343951;await _0x33bbed[_0x244bdc(0x210)](withTelemetry,'profile\x20use',()=>useEnv(_0x3bf9d3['profile-name']));})[_0x343951(0x27a)](_0x343951(0x144),_0x33bbed['lJUlw'],_0x5bc671=>{const _0x59dd7c=_0x343951;return _0x5bc671['positional'](_0x59dd7c(0x24c),{'type':_0x33bbed[_0x59dd7c(0x16b)],'description':'Profile\x20name','demandOption':!![]});},async _0x2a5569=>{await _0x33bbed['jVYlZ'](withTelemetry,'profile\x20encrypt-auth',()=>authEncrypt(_0x2a5569['profile']));})[_0x343951(0x27a)]('ls',_0x33bbed[_0x343951(0x20c)],()=>{},async()=>{await _0x33bbed['jVYlZ'](withTelemetry,_0x33bbed['WjHuv'],()=>envList());})[_0x343951(0x27a)](_0x343951(0x180),'Update\x20authentication\x20for\x20an\x20existing\x20profile',_0x16de35=>{const _0x224a21=_0x343951;return _0x16de35[_0x224a21(0x24b)](_0x33bbed['dfhxW'],{'type':_0x224a21(0x229),'description':_0x33bbed[_0x224a21(0x1a7)],'demandOption':!![]})['option'](_0x224a21(0x13f),{'type':_0x224a21(0x1e4),'description':_0x33bbed['ZOJXZ']});},async _0x13cecb=>{const _0x490825=_0x343951;await _0x33bbed['VbRjd'](withTelemetry,_0x33bbed['VyBaF'],_0x52e278=>updateEnv(_0x13cecb['profile-name'],_0x52e278,{'allowInsecureLocalhost':_0x13cecb[_0x490825(0x13f)]}));})['command'](_0x33bbed[_0x343951(0x1de)],_0x343951(0x256),_0x1e6ad6=>{const _0x327633=_0x343951,_0x260fdd={'ASans':'profile','qmLWo':'string','hDMZM':'Profile\x20name','OOfVR':_0x33bbed['fupFE'],'GImgY':_0x327633(0x270),'lKHFq':function(_0x3b2a6e,_0x58e5de,_0x53f785){return _0x3b2a6e(_0x58e5de,_0x53f785);},'MaSnC':function(_0x1168db,_0x429e92,_0x4bb7a9){return _0x1168db(_0x429e92,_0x4bb7a9);},'Rlhmj':_0x327633(0x225)};return _0x1e6ad6['usage'](PROFILE_CONFIG_HELP)['command']('set\x20<profile>\x20<key>\x20<value>',_0x33bbed['MlrHT'],_0x4327a5=>{const _0x2a4c19=_0x327633;return _0x4327a5[_0x2a4c19(0x24b)](_0x260fdd[_0x2a4c19(0x25e)],{'type':_0x260fdd[_0x2a4c19(0x1bf)],'description':_0x260fdd['hDMZM'],'demandOption':!![]})['positional'](_0x2a4c19(0x208),{'type':_0x2a4c19(0x229),'description':_0x260fdd[_0x2a4c19(0x258)],'demandOption':!![]})[_0x2a4c19(0x24b)](_0x260fdd['GImgY'],{'type':_0x260fdd['qmLWo'],'description':_0x2a4c19(0x171),'demandOption':!![]});},async _0x25aaae=>{const _0x312ed8=_0x327633;await _0x260fdd['lKHFq'](withTelemetry,_0x312ed8(0x12d),()=>configSet(_0x25aaae['profile'],_0x25aaae[_0x312ed8(0x208)],_0x25aaae[_0x312ed8(0x270)]));})['command'](_0x327633(0x281),_0x33bbed['ejwfd'],_0x1c3403=>{const _0x33ca67=_0x327633;return _0x1c3403[_0x33ca67(0x24b)](_0x33bbed['lXEef'],{'type':_0x33bbed[_0x33ca67(0x16b)],'description':_0x33bbed['Xcpkp'],'demandOption':!![]})['positional'](_0x33ca67(0x208),{'type':_0x33bbed[_0x33ca67(0x16b)],'description':_0x33ca67(0x1e2),'demandOption':!![]});},async _0x16c110=>{const _0x40a272=_0x327633;await _0x33bbed[_0x40a272(0x1ba)](withTelemetry,_0x33bbed['hTsfv'],()=>configGet(_0x16c110[_0x40a272(0x24c)],_0x16c110['key']));})['command']('list\x20<profile>','List\x20all\x20config\x20for\x20a\x20profile',_0x4fe4a7=>{const _0x27690a=_0x327633;return _0x4fe4a7[_0x27690a(0x24b)](_0x33bbed[_0x27690a(0x169)],{'type':_0x33bbed['cLqEH'],'description':_0x27690a(0x1d4),'demandOption':!![]});},async _0x234377=>{const _0x4fbe01=_0x327633;await withTelemetry(_0x33bbed['cGEpd'],()=>configList(_0x234377[_0x4fbe01(0x24c)]));})['command'](_0x33bbed[_0x327633(0x1ac)],_0x327633(0x20d),_0x5689fe=>{const _0x3189bc=_0x327633;return _0x5689fe['positional']('profile',{'type':_0x33bbed[_0x3189bc(0x16b)],'description':_0x33bbed['Xcpkp'],'demandOption':!![]})['positional']('key',{'type':_0x3189bc(0x229),'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x17126c=>{const _0x3a9239=_0x327633;await _0x260fdd[_0x3a9239(0x278)](withTelemetry,_0x260fdd[_0x3a9239(0x14d)],()=>configUnset(_0x17126c[_0x3a9239(0x24c)],_0x17126c[_0x3a9239(0x208)]));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand');})[_0x343951(0x15b)](0x1,_0x33bbed['hmFmH']);})[_0xb2634d(0x27a)](_0xb2634d(0x1ee),_0xb2634d(0x215),()=>{},async()=>{const _0x40cdc6=_0xb2634d,_0x5de3cb={'PxVXf':_0x40cdc6(0x1ee)};await withTelemetry(_0x5de3cb['PxVXf'],()=>status());})[_0xb2634d(0x27a)](_0xb2634d(0x220),_0xb2634d(0x194),()=>{},async()=>{const _0x572e80=_0xb2634d,_0x40908f={'fXsHC':'update'};await withTelemetry(_0x40908f[_0x572e80(0x1f8)],()=>update());})[_0xb2634d(0x27a)]('print-access-token',_0xb2634d(0x1c6),()=>{},async()=>{const _0x3ba333=_0xb2634d,_0x6eb152={'MLrEl':function(_0x2e548d){return _0x2e548d();},'gVTXt':function(_0x35621f,_0x36d1fe,_0x38e494){return _0x35621f(_0x36d1fe,_0x38e494);}};await _0x6eb152[_0x3ba333(0x1b4)](withTelemetry,'print-access-token',async()=>{const _0xb590e2=await _0x6eb152['MLrEl'](getToken);if(!_0xb590e2)throw new Error('No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.');console['log'](_0xb590e2);});})[_0xb2634d(0x27a)]('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x4469ad=>{const _0x5e5e9a=_0xb2634d,_0x5efd73={'nPsRv':'Optional\x20feature\x20ID','ivQhn':_0x5e5e9a(0x24c),'rSszU':'notes','sjjRh':'string','VDNdO':_0x5e5e9a(0x23c),'wILHi':'scenario','iFSla':_0x5e5e9a(0x1cb),'XReiT':'start-path','phyeM':_0x5e5e9a(0x150),'VVruq':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.','FFSsp':'boolean','bnxVO':_0x5e5e9a(0x206),'YDrnp':'blocked','XSyzy':'failed','wdleV':'debug-address-comments','kSCVG':_0x5e5e9a(0x203),'kEKQb':'item'};return _0x4469ad[_0x5e5e9a(0x292)]('feature',{'type':'string','description':_0x5efd73['nPsRv']})[_0x5e5e9a(0x292)](_0x5efd73[_0x5e5e9a(0x228)],{'type':_0x5e5e9a(0x229),'description':_0x5e5e9a(0x24a)})[_0x5e5e9a(0x292)](_0x5efd73['rSszU'],{'type':_0x5efd73[_0x5e5e9a(0x269)],'description':_0x5efd73['VDNdO']})[_0x5e5e9a(0x292)](_0x5efd73['wILHi'],{'type':_0x5efd73[_0x5e5e9a(0x273)],'description':_0x5e5e9a(0x1f9)})['option'](_0x5efd73[_0x5e5e9a(0x254)],{'type':_0x5efd73['sjjRh'],'description':_0x5e5e9a(0x164)})[_0x5e5e9a(0x292)](_0x5efd73[_0x5e5e9a(0x1cc)],{'type':_0x5e5e9a(0x229),'description':_0x5efd73['VVruq']})[_0x5e5e9a(0x292)]('headed',{'type':_0x5efd73[_0x5e5e9a(0x230)],'description':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','default':![]})['option'](_0x5efd73[_0x5e5e9a(0x154)],{'type':'string','hidden':!![],'choices':[_0x5e5e9a(0x27c),_0x5e5e9a(0x297),_0x5efd73['YDrnp'],_0x5efd73['XSyzy'],'incomplete']})['option'](_0x5efd73['wdleV'],{'type':_0x5e5e9a(0x1e4),'hidden':!![]})['option'](_0x5efd73['kSCVG'],{'type':_0x5e5e9a(0x229),'hidden':!![]})[_0x5e5e9a(0x292)]('task',{'type':'string','hidden':!![]})['option'](_0x5efd73['kEKQb'],{'type':_0x5efd73['iFSla'],'hidden':!![]});},async _0x95a5bf=>{const _0xc04cfb=_0xb2634d,_0x161b69={'rQAtp':function(_0x50f3de,_0xeec549){return _0x50f3de(_0xeec549);}};await _0x161b69[_0xc04cfb(0x14c)](runGoCommand,_0x95a5bf);})['command']('auth',![],_0x52771f=>{const _0x59a5da=_0xb2634d,_0x27e9a3={'tbUpf':_0x59a5da(0x1a4),'vzjoJ':function(_0x126f14,_0x5580c7){return _0x126f14(_0x5580c7);}};return _0x52771f[_0x59a5da(0x27a)](_0x59a5da(0x1df),![],_0x38263b=>{const _0x3b2675=_0x59a5da;return _0x38263b['positional']('profile',{'type':_0x3b2675(0x229),'description':'Profile\x20name','demandOption':!![]});},async _0x41fac5=>{const _0xaffd97=_0x59a5da;warnRenamed(_0x27e9a3[_0xaffd97(0x160)],_0xaffd97(0x16d)),await _0x27e9a3['vzjoJ'](authEncrypt,_0x41fac5['profile']);})['demandCommand'](0x1,_0x59a5da(0x158));},()=>{})[_0xb2634d(0x27a)]('start\x20[token]',![],_0x4cea0d=>{const _0x537d17=_0xb2634d,_0x2fba9e={'mVBaw':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','sJPya':'boolean','gYVdu':'scope','gLDfw':'project','pbXYb':_0x537d17(0x13a),'yqwpz':_0x537d17(0x229),'BBBuU':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'};return _0x4cea0d[_0x537d17(0x24b)]('token',{'type':_0x537d17(0x229),'description':_0x2fba9e['mVBaw']})[_0x537d17(0x292)](_0x537d17(0x1b6),{'type':_0x2fba9e[_0x537d17(0x1d7)],'description':_0x537d17(0x262),'default':![]})[_0x537d17(0x292)](_0x2fba9e['gYVdu'],{'type':_0x537d17(0x229),'choices':['user',_0x2fba9e[_0x537d17(0x26b)]],'description':_0x2fba9e['pbXYb']})['option'](_0x537d17(0x22e),{'type':_0x2fba9e['yqwpz'],'description':_0x2fba9e[_0x537d17(0x12e)]})[_0x537d17(0x292)]('force',{'type':_0x537d17(0x1e4),'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]});},async _0x33965a=>{const _0x387b43=_0xb2634d,_0x17d468={'HBNCg':function(_0x3fda89,_0x14e297,_0x31165c){return _0x3fda89(_0x14e297,_0x31165c);},'GpomA':_0x387b43(0x1fe),'xBoXM':function(_0x868ff9,_0x104d3b,_0x111dd9){return _0x868ff9(_0x104d3b,_0x111dd9);},'OUGSF':_0x387b43(0x21b)};_0x17d468['HBNCg'](warnRenamed,_0x17d468['GpomA'],'ranger\x20setup'),await _0x17d468['xBoXM'](withTelemetry,_0x17d468['OUGSF'],_0x5df492=>start(_0x33965a[_0x387b43(0x1c5)],{'skipChromium':_0x33965a[_0x387b43(0x1b6)],'scope':_0x33965a['scope'],'url':_0x33965a['url'],'force':_0x33965a['force']},_0x5df492));})['command'](_0xb2634d(0x251),![],_0x200012=>{const _0x4277d5=_0xb2634d,_0x5546cd={'qRVwY':'env','nfvGT':'string','MpjxO':_0x4277d5(0x24a),'UBqkR':_0x4277d5(0x1ea),'PdhGK':'Scenario\x20index\x20(1-based)','gmWvS':'notes','wUuuu':'headed','FVXph':'boolean','sSQkd':'debug-outcome','VuzwT':'verified','waLld':'partial'};return _0x200012['option'](_0x5546cd[_0x4277d5(0x188)],{'type':_0x5546cd['nfvGT'],'description':_0x5546cd['MpjxO']})[_0x4277d5(0x292)](_0x5546cd['UBqkR'],{'type':_0x5546cd['nfvGT'],'description':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)'})[_0x4277d5(0x292)]('item',{'type':'number','description':_0x5546cd[_0x4277d5(0x189)]})[_0x4277d5(0x292)]('profile',{'type':_0x5546cd[_0x4277d5(0x18b)],'hidden':!![]})['option'](_0x5546cd['gmWvS'],{'type':_0x4277d5(0x229),'hidden':!![]})[_0x4277d5(0x292)](_0x4277d5(0x142),{'type':'number','hidden':!![]})[_0x4277d5(0x292)](_0x4277d5(0x1c0),{'type':_0x5546cd['nfvGT'],'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})[_0x4277d5(0x292)](_0x4277d5(0x150),{'type':_0x5546cd[_0x4277d5(0x18b)],'hidden':!![]})[_0x4277d5(0x292)](_0x5546cd['wUuuu'],{'type':_0x5546cd[_0x4277d5(0x1d1)],'hidden':!![],'default':![]})[_0x4277d5(0x292)](_0x5546cd['sSQkd'],{'type':_0x4277d5(0x229),'hidden':!![],'choices':[_0x5546cd[_0x4277d5(0x21d)],_0x5546cd['waLld'],'blocked',_0x4277d5(0x13c),_0x4277d5(0x13b)]});},async _0x3edf75=>{await runGoCommand(_0x3edf75,!![]);})[_0xb2634d(0x27a)](_0xb2634d(0x159),![],_0x560b1c=>{const _0x117b18=_0xb2634d,_0x2598a5={'yQlHU':_0x117b18(0x229),'PwAEz':_0x117b18(0x1b7),'nYOlA':_0x117b18(0x1e4)};return _0x560b1c[_0x117b18(0x24b)](_0x117b18(0x275),{'type':_0x2598a5[_0x117b18(0x1da)],'description':_0x2598a5['PwAEz'],'demandOption':!![]})['option']('ci',{'type':_0x117b18(0x1e4),'description':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x117b18(0x274),{'type':_0x2598a5[_0x117b18(0x261)],'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]});},async _0x26db3e=>{const _0x42c5b0=_0xb2634d,_0x14f17a={'TCfSt':function(_0x4e8c5b,_0x1d5f71,_0xd20885){return _0x4e8c5b(_0x1d5f71,_0xd20885);},'wvKyC':_0x42c5b0(0x288)};_0x14f17a[_0x42c5b0(0x1bd)](warnRenamed,'ranger\x20add\x20env',_0x14f17a[_0x42c5b0(0x249)]),await withTelemetry(_0x42c5b0(0x133),_0x4edd17=>addEnv(_0x26db3e[_0x42c5b0(0x275)],{'ci':_0x26db3e['ci'],'skipAuth':_0x26db3e[_0x42c5b0(0x274)]},_0x4edd17));})['command']('use\x20<env-name>',![],_0x255714=>{const _0x2647e2=_0xb2634d,_0x53b8f2={'zApNv':'env-name','GGXXW':_0x2647e2(0x229),'Eosui':_0x2647e2(0x246)};return _0x255714['positional'](_0x53b8f2['zApNv'],{'type':_0x53b8f2[_0x2647e2(0x23e)],'description':_0x53b8f2['Eosui'],'demandOption':!![]});},async _0x585d7e=>{const _0x183251=_0xb2634d,_0x404801={'XBkZc':function(_0x46444d,_0x1967ae,_0x35e269){return _0x46444d(_0x1967ae,_0x35e269);},'fpWXA':'ranger\x20use','lMLio':'use'};_0x404801['XBkZc'](warnRenamed,_0x404801['fpWXA'],'ranger\x20profile\x20use'),await withTelemetry(_0x404801[_0x183251(0x1e0)],()=>useEnv(_0x585d7e[_0x183251(0x275)]));})['command'](_0xb2634d(0x1e6),![],_0x580edd=>{const _0x20617a=_0xb2634d,_0x18be21={'YOxSu':'env','JpoaU':_0x20617a(0x232),'vRFHN':'key','eLJgv':'value','pAteW':_0x20617a(0x171),'rtVOY':function(_0x1eb0f7,_0x17ff5a,_0x48b055){return _0x1eb0f7(_0x17ff5a,_0x48b055);},'tcWgL':_0x20617a(0x17f),'WPuMc':_0x20617a(0x229),'AHBep':'Config\x20key','tPZYo':_0x20617a(0x195),'peyQg':'ranger\x20profile\x20config\x20list','kSqxZ':'config\x20list','iyZlg':function(_0x4f9875,_0x1fd324,_0x414873){return _0x4f9875(_0x1fd324,_0x414873);},'hBJAL':'ranger\x20config\x20unset','Diwtj':function(_0x4816bd,_0x3ad02a,_0x2ffcfa){return _0x4816bd(_0x3ad02a,_0x2ffcfa);},'myaxb':'get\x20<env>\x20<key>'};return _0x580edd[_0x20617a(0x27a)](_0x20617a(0x149),![],_0x3b7bfa=>{const _0x184d77=_0x20617a;return _0x3b7bfa[_0x184d77(0x24b)](_0x18be21['YOxSu'],{'type':_0x184d77(0x229),'description':_0x18be21['JpoaU'],'demandOption':!![]})['positional'](_0x18be21['vRFHN'],{'type':_0x184d77(0x229),'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x184d77(0x24b)](_0x18be21[_0x184d77(0x143)],{'type':_0x184d77(0x229),'description':_0x18be21['pAteW'],'demandOption':!![]});},async _0x233bb8=>{const _0x568dd1=_0x20617a;_0x18be21['rtVOY'](warnRenamed,_0x18be21[_0x568dd1(0x187)],_0x568dd1(0x27e)),await withTelemetry('config\x20set',()=>configSet(_0x233bb8['env'],_0x233bb8['key'],_0x233bb8['value']));})[_0x20617a(0x27a)](_0x18be21['myaxb'],![],_0xcd1fa=>{const _0x1f2202=_0x20617a;return _0xcd1fa['positional']('env',{'type':_0x18be21['WPuMc'],'description':_0x18be21['JpoaU'],'demandOption':!![]})['positional'](_0x18be21['vRFHN'],{'type':_0x18be21[_0x1f2202(0x1dd)],'description':_0x18be21[_0x1f2202(0x1c2)],'demandOption':!![]});},async _0x7f4ed2=>{const _0x4fba86=_0x20617a;warnRenamed(_0x4fba86(0x12f),_0x18be21[_0x4fba86(0x218)]),await withTelemetry(_0x4fba86(0x223),()=>configGet(_0x7f4ed2[_0x4fba86(0x203)],_0x7f4ed2['key']));})[_0x20617a(0x27a)]('list\x20<env>',![],_0xb0fe3=>{const _0x462c49=_0x20617a;return _0xb0fe3['positional'](_0x462c49(0x203),{'type':_0x18be21[_0x462c49(0x1dd)],'description':_0x18be21[_0x462c49(0x19f)],'demandOption':!![]});},async _0x3afce3=>{const _0xddb6c7=_0x20617a;_0x18be21[_0xddb6c7(0x243)](warnRenamed,'ranger\x20config\x20list',_0x18be21[_0xddb6c7(0x1d5)]),await withTelemetry(_0x18be21['kSqxZ'],()=>configList(_0x3afce3[_0xddb6c7(0x203)]));})[_0x20617a(0x27a)](_0x20617a(0x248),![],_0x3aa44a=>{const _0x4ecda1=_0x20617a;return _0x3aa44a[_0x4ecda1(0x24b)](_0x18be21[_0x4ecda1(0x28b)],{'type':_0x18be21['WPuMc'],'description':_0x18be21[_0x4ecda1(0x19f)],'demandOption':!![]})['positional'](_0x18be21['vRFHN'],{'type':_0x18be21['WPuMc'],'description':_0x4ecda1(0x1a1),'demandOption':!![]});},async _0x474533=>{const _0x201fc8=_0x20617a;_0x18be21['iyZlg'](warnRenamed,_0x18be21['hBJAL'],'ranger\x20profile\x20config\x20unset'),await _0x18be21[_0x201fc8(0x21c)](withTelemetry,'config\x20unset',()=>configUnset(_0x474533['env'],_0x474533[_0x201fc8(0x208)]));})['demandCommand'](0x1,_0x20617a(0x27f));})['command'](_0xb2634d(0x203),![],_0x3d95c3=>{const _0x2037f4=_0xb2634d,_0x6841f={'unhNn':function(_0x243205,_0x5541fd,_0x3c29b8){return _0x243205(_0x5541fd,_0x3c29b8);},'dDLeR':'string','LEzbk':_0x2037f4(0x234),'dEhVA':function(_0x9187c4,_0x3a8d42,_0xe88a3d){return _0x9187c4(_0x3a8d42,_0xe88a3d);},'BGbnc':'ranger\x20env\x20update','dCWKV':_0x2037f4(0x155)};return _0x3d95c3['command']('ls',![],()=>{},async()=>{const _0x5d6df6=_0x2037f4;_0x6841f['unhNn'](warnRenamed,_0x5d6df6(0x283),_0x5d6df6(0x1b2)),await _0x6841f['unhNn'](withTelemetry,'env\x20list',()=>envList());})['command'](_0x6841f[_0x2037f4(0x1aa)],![],_0x32667c=>{const _0x192e35=_0x2037f4;return _0x32667c[_0x192e35(0x24b)](_0x192e35(0x275),{'type':_0x6841f['dDLeR'],'description':_0x6841f['LEzbk'],'demandOption':!![]});},async _0x36f878=>{const _0x3e219f=_0x2037f4;_0x6841f[_0x3e219f(0x27d)](warnRenamed,_0x6841f['BGbnc'],_0x3e219f(0x264)),await withTelemetry('env\x20update',_0x444d5c=>updateEnv(_0x36f878['env-name'],_0x444d5c));})['demandCommand'](0x1,'You\x20must\x20specify\x20an\x20env\x20subcommand');})['command']('feature',![],_0xec7f1d=>{const _0x253145=_0xb2634d,_0xaae21d={'TTUYT':'Feature\x20review\x20name','xxtqY':_0x253145(0x1ae),'glwFl':'Feature\x20review\x20description','zaITE':'checklist','FjtBd':_0x253145(0x1c9),'mEpkv':'array','oGGrN':_0x253145(0x295),'qKNqo':function(_0x3ac6af,_0x2bf780,_0x22e933,_0x5559be){return _0x3ac6af(_0x2bf780,_0x22e933,_0x5559be);},'VKScF':function(_0x3790b1,_0x2295f6,_0x21e152){return _0x3790b1(_0x2295f6,_0x21e152);},'KtoKE':'feature\x20create','bxvNa':_0x253145(0x26d),'aIpUN':_0x253145(0x213),'JQfRW':'number','iIcEt':_0x253145(0x23d),'feAoV':'include-deleted','vUfmZ':'ranger\x20list','SLLSa':'string','gFBLr':'ranger\x20feature\x20show','yZJia':'feature\x20show','gSecN':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','eoXUP':'ranger\x20resume','UGmmc':_0x253145(0x26c),'lDLoJ':_0x253145(0x1a5),'xKTbO':'ranger\x20feature\x20add-checklist-item','UhyGx':_0x253145(0x151),'FNNxt':_0x253145(0x168),'AgYOv':_0x253145(0x192),'ERjCj':_0x253145(0x201),'pFflW':_0x253145(0x266),'QECUM':'list','uppRe':_0x253145(0x1b5),'uKsxQ':_0x253145(0x1b0),'zmsjf':'get-feedback\x20[id]','CnLfx':_0x253145(0x183)};return _0xec7f1d['command']('create\x20<name>',![],_0xb76abd=>{const _0x33961a=_0x253145;return _0xb76abd[_0x33961a(0x24b)]('name',{'type':_0x33961a(0x229),'description':_0xaae21d[_0x33961a(0x1a9)],'demandOption':!![]})['option'](_0xaae21d['xxtqY'],{'type':'string','alias':'d','description':_0xaae21d[_0x33961a(0x28e)]})['option'](_0xaae21d['zaITE'],{'type':_0x33961a(0x26a),'alias':'c','description':_0xaae21d[_0x33961a(0x21a)]})['option'](_0x33961a(0x142),{'type':_0xaae21d[_0x33961a(0x247)],'hidden':!![]});},async _0x1bf564=>{const _0x5b0d46=_0x253145;warnRenamed(_0x5b0d46(0x13d),_0xaae21d['oGGrN']),_0xaae21d[_0x5b0d46(0x214)](warnFlagRenamed,'ranger\x20create',_0x5b0d46(0x265),'--scenario');const _0x5f37eb=_0x1bf564['scenario']||_0x1bf564[_0x5b0d46(0x241)];await _0xaae21d['VKScF'](withTelemetry,_0xaae21d['KtoKE'],()=>featureCreate(_0x1bf564[_0x5b0d46(0x1eb)],{'description':_0x1bf564['description'],'scenarios':_0x5f37eb}));})[_0x253145(0x27a)](_0xaae21d['QECUM'],![],_0x54a081=>{const _0x494da8=_0x253145;return _0x54a081[_0x494da8(0x292)](_0xaae21d['bxvNa'],{'type':_0x494da8(0x1e4),'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x494da8(0x292)](_0xaae21d['aIpUN'],{'type':_0xaae21d['JQfRW'],'alias':'l','description':_0xaae21d['iIcEt'],'default':0xa})[_0x494da8(0x292)]('offset',{'type':'number','alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x494da8(0x292)](_0xaae21d['feAoV'],{'type':_0x494da8(0x1e4),'alias':'d','description':_0x494da8(0x1c1),'default':![]});},async _0x4649e3=>{const _0x4f5c0c=_0x253145;warnRenamed(_0x4f5c0c(0x1d3),_0xaae21d['vUfmZ']),await withTelemetry('feature\x20list',()=>featureList({'currentBranch':_0x4649e3['current-branch'],'limit':_0x4649e3['limit'],'offset':_0x4649e3['offset'],'includeDeleted':_0x4649e3['include-deleted']}));})[_0x253145(0x27a)](_0xaae21d[_0x253145(0x237)],![],_0x3609eb=>{const _0x5b42c5=_0x253145;return _0x3609eb[_0x5b42c5(0x24b)]('id',{'type':_0xaae21d[_0x5b42c5(0x253)],'description':'Feature\x20review\x20ID'});},async _0x4caa1b=>{const _0x255194=_0x253145;_0xaae21d['VKScF'](warnRenamed,_0xaae21d[_0x255194(0x21e)],'ranger\x20show'),await withTelemetry(_0xaae21d['yZJia'],()=>featureShow(_0x4caa1b['id']));})[_0x253145(0x27a)](_0x253145(0x26f),![],_0x6b9e51=>{const _0x26ddab=_0x253145;return _0x6b9e51[_0x26ddab(0x24b)]('id',{'type':_0xaae21d['SLLSa'],'description':_0xaae21d['gSecN']});},async _0x4fbafd=>{const _0x1bfb65=_0x253145;warnRenamed(_0x1bfb65(0x25f),_0xaae21d[_0x1bfb65(0x181)]),await withTelemetry(_0xaae21d[_0x1bfb65(0x286)],()=>featureResume(_0x4fbafd['id']));})[_0x253145(0x27a)](_0xaae21d[_0x253145(0x20e)],![],_0x34b386=>{const _0x127557=_0x253145;return _0x34b386['positional'](_0x127557(0x1ae),{'type':_0xaae21d['SLLSa'],'description':_0x127557(0x156),'demandOption':!![]})[_0x127557(0x292)]('id',{'type':_0xaae21d[_0x127557(0x253)],'description':_0xaae21d['lDLoJ']});},async _0x1c94ad=>{const _0x1b89c1=_0x253145;warnRenamed(_0xaae21d['xKTbO'],'ranger\x20add-scenario'),await _0xaae21d['VKScF'](withTelemetry,_0x1b89c1(0x260),()=>featureAddScenario(_0x1c94ad[_0x1b89c1(0x1ae)],_0x1c94ad['id']));})['command'](_0xaae21d[_0x253145(0x1ed)],![],_0x11de19=>{const _0xc4de9d=_0x253145;return _0x11de19[_0xc4de9d(0x24b)]('id',{'type':'string','description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x277688=>{const _0x32e81a=_0x253145;_0xaae21d['VKScF'](warnRenamed,_0xaae21d[_0x32e81a(0x1a0)],_0xaae21d['FNNxt']),await _0xaae21d['VKScF'](withTelemetry,_0x32e81a(0x1f5),()=>featureGetReview(_0x277688['id']));})['command'](_0x253145(0x1ff),![],_0x60fd7b=>{const _0x5d60f8=_0x253145;return _0x60fd7b['positional']('id',{'type':_0xaae21d['SLLSa'],'description':_0x5d60f8(0x238)});},async _0x5ea6e6=>{const _0x36cda8=_0x253145;_0xaae21d[_0x36cda8(0x1a6)](warnRenamed,'ranger\x20feature\x20delete',_0xaae21d['AgYOv']),await withTelemetry(_0xaae21d['ERjCj'],()=>featureDelete(_0x5ea6e6['id']));})['command'](_0xaae21d[_0x253145(0x136)],![],_0x390dcb=>{const _0x55597a=_0x253145;return _0x390dcb['positional']('id',{'type':_0x55597a(0x229),'description':_0xaae21d[_0x55597a(0x1f1)],'demandOption':!![]});},async _0x23fb2b=>{const _0x57a932=_0x253145;warnRenamed('ranger\x20feature\x20restore','ranger\x20restore'),await _0xaae21d[_0x57a932(0x1a6)](withTelemetry,_0x57a932(0x14f),()=>featureRestore(_0x23fb2b['id']));})['demandCommand'](0x1,_0x253145(0x132));})['command'](_0xb2634d(0x1cd),![],_0x303da1=>{const _0x30070b=_0xb2634d,_0x24420f={'LFnay':'session-id','SvHOm':'string','MJROE':function(_0x3647b1,_0xe302bf,_0x309317){return _0x3647b1(_0xe302bf,_0x309317);},'vNPTo':_0x30070b(0x1a3),'qlYWB':_0x30070b(0x28a),'gyWzP':_0x30070b(0x1eb),'JhpSw':_0x30070b(0x1c3)};return _0x303da1[_0x30070b(0x27a)](_0x30070b(0x207),_0x24420f[_0x30070b(0x240)],_0x12b856=>{const _0x3fddd1=_0x30070b;return _0x12b856['option'](_0x24420f[_0x3fddd1(0x1e8)],{'type':_0x24420f['SvHOm'],'description':_0x3fddd1(0x1a3)});},async _0x1e934f=>{const _0x1a5340=_0x30070b;await _0x24420f['MJROE'](withTelemetry,'hook:enable',()=>hook('enable',_0x1e934f[_0x1a5340(0x221)]));})['command']('disable',_0x30070b(0x296),_0x4b98c5=>{const _0x37af3a=_0x30070b;return _0x4b98c5[_0x37af3a(0x292)]('session-id',{'type':'string','description':_0x24420f[_0x37af3a(0x23b)]});},async _0x15ea3e=>{const _0x1fb55f=_0x30070b;await withTelemetry(_0x1fb55f(0x216),()=>hook(_0x1fb55f(0x18f),_0x15ea3e['session-id']));})['option'](_0x24420f['gyWzP'],{'type':_0x24420f[_0x30070b(0x18e)],'description':_0x24420f['JhpSw']})[_0x30070b(0x292)](_0x24420f[_0x30070b(0x1e8)],{'type':_0x24420f[_0x30070b(0x18e)],'description':_0x30070b(0x1a3)});},async _0x3a6b5b=>{const _0x143824=_0xb2634d,_0x114829={'dpCBL':function(_0x42adc2,_0x4e4a7c,_0x37fae6){return _0x42adc2(_0x4e4a7c,_0x37fae6);},'uHgBG':'session-id'};_0x3a6b5b[_0x143824(0x1eb)]&&await _0x114829[_0x143824(0x137)](hook,_0x3a6b5b['name'],_0x3a6b5b[_0x114829[_0x143824(0x15c)]]);})[_0xb2634d(0x15b)](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()['fail'](async(_0x55804c,_0x2a7a74,_0x44b583)=>{const _0x4ccd5e=_0xb2634d,_0x16674c={'JoZPT':function(_0x5aa86b,_0x2ae359){return _0x5aa86b(_0x2ae359);},'hIGAx':function(_0x2c447f,_0x294010,_0x498487){return _0x2c447f(_0x294010,_0x498487);},'XWnGK':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','qCydO':function(_0x4c9beb){return _0x4c9beb();},'orRdH':function(_0x5c1dbd,_0x459ba7){return _0x5c1dbd||_0x459ba7;},'schCl':_0x4ccd5e(0x1ad)},_0x5071cc=_0x16674c[_0x4ccd5e(0x15d)](sanitizeArgs,process['argv']['slice'](0x2)),_0xd6e4f4=_0x16674c[_0x4ccd5e(0x205)](getErrorType,_0x55804c,_0x2a7a74);if(_0x55804c&&_0x55804c[_0x4ccd5e(0x1c7)](_0x4ccd5e(0x267))){const _0x2fdbec=process['argv'][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x2fdbec),console[_0x4ccd5e(0x212)](_0x16674c['XWnGK']);}else{if(_0x55804c)console['error']('\x0a'+_0x55804c+'\x0a');else _0x2a7a74&&console[_0x4ccd5e(0x212)]('\x0aError:\x20'+_0x2a7a74[_0x4ccd5e(0x1bb)]+'\x0a');}await _0x16674c[_0x4ccd5e(0x15d)](logDesirePath,{'rawCommand':_0x5071cc,'errorMessage':_0x55804c||_0x2a7a74?.['message'],'errorType':_0xd6e4f4});const _0x2170d6=_0x16674c[_0x4ccd5e(0x226)](getCurrentCollector);_0x2170d6&&await _0x2170d6[_0x4ccd5e(0x178)](_0x2a7a74||new Error(_0x16674c['orRdH'](_0x55804c,_0x16674c['schCl']))),process[_0x4ccd5e(0x176)](0x1);})['epilogue']('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')[_0xb2634d(0x22c)]()[_0xb2634d(0x202)]('help','h')[_0xb2634d(0x1d6)]();
@@ -1 +1 @@
1
- (function(_0xeb628f,_0x9752f8){const _0x392d6d=_0x4d97,_0x450b2d=_0xeb628f();while(!![]){try{const _0x4e86cd=-parseInt(_0x392d6d(0x178))/0x1+parseInt(_0x392d6d(0x1b4))/0x2+parseInt(_0x392d6d(0x1a7))/0x3*(parseInt(_0x392d6d(0x17f))/0x4)+parseInt(_0x392d6d(0x179))/0x5*(-parseInt(_0x392d6d(0x183))/0x6)+-parseInt(_0x392d6d(0x19b))/0x7+parseInt(_0x392d6d(0x1b1))/0x8+parseInt(_0x392d6d(0x190))/0x9;if(_0x4e86cd===_0x9752f8)break;else _0x450b2d['push'](_0x450b2d['shift']());}catch(_0x51d9b0){_0x450b2d['push'](_0x450b2d['shift']());}}}(_0xb153,0xc0f87));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';function _0x4d97(_0xda2961,_0x268566){_0xda2961=_0xda2961-0x169;const _0xb153b7=_0xb153();let _0x4d973f=_0xb153b7[_0xda2961];return _0x4d973f;}import _0x5ebda9 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';function _0xb153(){const _0x523e39=['location','assign','fetch\x20failed','PyzDj','\x22\x20configured','Aborted.','\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','Invalid\x20--setup-header\x20format:\x20\x22','catch','yQQpU','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','local','✓\x20Auth\x20state\x20saved\x20to:\x20','IpDmY','Delete\x20existing\x20and\x20create\x20new\x20in\x20','trackPhaseStart','prompt','trim','sQHpC','manual','retry','error','Could\x20not\x20reach\x20','KeaxR','Veqba','Profile\x20\x22','isTTY','trackPhaseEnd','hcaxL','\x20(continuing\x20with\x20--force)','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','http://','status','abort','legacy','path','ZwfsJ','setupHeaders','\x20\x20ranger\x20profile\x20add\x20','includes','UNqBY','✓\x20Created\x20settings:\x20','about:blank','scope','allowInsecureLocalhost','QpGEa','iLFLf','--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.','841035wLjFvY','125270zmZnpB','LCcWT','ukrwR','setupHeader','.backup-','baseUrl','91364zhMSHz','\x0a📋\x20Authentication\x20Setup','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','HEAD','318XaNNTl','url','env','cdpEndpoint','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','newContext','isProtocolError','HTmth','pmjrZ','AvWqO','Zsqly','continue','list','22333230UwPGqL','log','force','signal','\x0a\x20\x20Profile\x20\x22','.tmp-','name','Invalid\x20URL','length','stdout','settings.json','7939785sXmyBc','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','MILnR','NODE_TLS_REJECT_UNAUTHORIZED','bJzLW','psXTL','keys','aIpwo','stringify','.enc','stdin','⚠\x20Could\x20not\x20reach\x20','6OmEhHu','close','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','OjthG','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','slice','\x0a🌐\x20Profile\x20Setup\x0a','indexOf','safeMode','3695832iqdtwX','lHKff','LgdyY','2208856IJkYvZ','oYZMK','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','test','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','orGsa','DmZtY'];_0xb153=function(){return _0x523e39;};return _0xb153();}async function checkUrlReachability(_0x88abfd){const _0x2313bc=_0x4d97,_0x30bd98={'pmjrZ':_0x2313bc(0x182),'QpGEa':function(_0x23424e,_0x3f041c){return _0x23424e(_0x3f041c);},'hcaxL':function(_0x49102a,_0x40ee2d){return _0x49102a===_0x40ee2d;}};try{const _0x58667e=new AbortController(),_0x25d505=setTimeout(()=>_0x58667e[_0x2313bc(0x169)](),0x1388),_0x5c2fb1={'method':_0x30bd98[_0x2313bc(0x18b)],'signal':_0x58667e[_0x2313bc(0x193)],'redirect':_0x2313bc(0x1cf)};/^https:\/\/localhost(:\d+)?/i[_0x2313bc(0x1b8)](_0x88abfd)&&(process['env'][_0x2313bc(0x19e)]='0');const _0x16bd9c=await fetch(_0x88abfd,_0x5c2fb1);delete process[_0x2313bc(0x185)][_0x2313bc(0x19e)],_0x30bd98[_0x2313bc(0x175)](clearTimeout,_0x25d505);if(_0x16bd9c[_0x2313bc(0x1dc)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x16bd9c['status']};}catch(_0x28675f){delete process[_0x2313bc(0x185)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x31a894=_0x28675f,_0x278127=_0x31a894['message']||_0x30bd98[_0x2313bc(0x175)](String,_0x28675f),_0x509740=_0x278127['includes'](_0x2313bc(0x197))||_0x30bd98[_0x2313bc(0x1d8)](_0x31a894[_0x2313bc(0x196)],'TypeError')||_0x278127[_0x2313bc(0x16f)](_0x2313bc(0x1be));return{'ok':![],'error':_0x278127,'isProtocolError':_0x509740};}}export async function addEnv(_0x391652,_0x408218={},_0x3ef590){const _0x225a96=_0x4d97,_0x2b15e3={'CFRaC':'Saving\x20authentication\x20state...','psXTL':function(_0x3ccfdb){return _0x3ccfdb();},'UNqBY':_0x225a96(0x1a8),'SnmEd':_0x225a96(0x1c7),'AvWqO':function(_0x3ce7ec,_0x42dd27){return _0x3ce7ec===_0x42dd27;},'uOIpD':'user','uNpFj':function(_0x39bafc,_0xf44635,_0x2336f7,_0xdcc899){return _0x39bafc(_0xf44635,_0x2336f7,_0xdcc899);},'OjthG':function(_0xaa6c8b,_0x59b896){return _0xaa6c8b===_0x59b896;},'aIpwo':function(_0x5ead62,_0x1227b0){return _0x5ead62+_0x1227b0;},'ukrwR':function(_0x53ea82,_0x311e15,_0x4a4d68){return _0x53ea82(_0x311e15,_0x4a4d68);},'IpDmY':function(_0x5dc471,_0x565cc9){return _0x5dc471!==_0x565cc9;},'NDiIx':_0x225a96(0x181),'efRcW':function(_0x1363fa,_0x2db061){return _0x1363fa(_0x2db061);},'orGsa':function(_0x310021,_0x38f1c9,_0x1b9f9a){return _0x310021(_0x38f1c9,_0x1b9f9a);},'DmZtY':'Aborted.','FpCSt':_0x225a96(0x16a),'Veqba':'root\x20(.ranger/)','SXOTT':'confirm','ZwfsJ':'url_setup','lHKff':_0x225a96(0x1b9),'FTwVi':_0x225a96(0x1ae),'XcmsI':_0x225a96(0x1b7),'osafy':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','hbdiZ':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','oYZMK':'http://localhost:3000','KeaxR':'use_suggestion','LbznV':_0x225a96(0x1d0),'yQQpU':function(_0x545204,_0xaaa357){return _0x545204(_0xaaa357);},'LgdyY':_0x225a96(0x18e),'bJzLW':function(_0xdbf4f9,_0x588896,_0x258c38){return _0xdbf4f9(_0x588896,_0x258c38);},'iLFLf':'\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','rwPkn':'--disable-features=WebBluetooth','Zsqly':'--allow-insecure-localhost','JQAdU':function(_0x54bca3,_0x149fc7){return _0x54bca3(_0x149fc7);},'awpip':function(_0x41813c,_0x2ac5dd){return _0x41813c||_0x2ac5dd;},'Uhves':_0x225a96(0x187),'RvBtI':'You\x20can\x20try\x20again\x20with\x20one\x20of:','ovINe':'\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','LCcWT':function(_0x35487b,_0x1659a4){return _0x35487b(_0x1659a4);},'PyzDj':function(_0x265aa6,_0x30d2fa,_0x432468){return _0x265aa6(_0x30d2fa,_0x432468);},'AUJwC':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','HNofV':'browser_auth','sQHpC':'config_write','TRukx':function(_0x5b0307,_0x2b85f7){return _0x5b0307>_0x2b85f7;},'MILnR':function(_0x4c88ad,_0x3bf361,_0x1d2296){return _0x4c88ad(_0x3bf361,_0x1d2296);},'HTmth':function(_0x5750e5,_0x51e380){return _0x5750e5(_0x51e380);}},_0x57ac61=_0x408218['ci']??![],_0xf199ad=_0x57ac61?'ci':_0x2b15e3['SnmEd'],_0x3002b1=_0x2b15e3['AvWqO'](_0x408218[_0x225a96(0x173)],_0x2b15e3['uOIpD'])?_0x2b15e3['psXTL'](getRangerHomeDir):_0x2b15e3['psXTL'](getRangerDir),_0x18317f=_0x2b15e3['uNpFj'](join,_0x3002b1,_0xf199ad,_0x391652),_0xe8af1b={};if(_0x408218['setupHeader'])for(const _0xf939cb of _0x408218[_0x225a96(0x17c)]){const _0x1382a2=_0xf939cb[_0x225a96(0x1af)](':');if(_0x2b15e3[_0x225a96(0x1aa)](_0x1382a2,-0x1))throw new Error(_0x225a96(0x1c3)+_0xf939cb+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x4fd1f8=_0xf939cb[_0x225a96(0x1ad)](0x0,_0x1382a2)['trim'](),_0x25e9c5=_0xf939cb['slice'](_0x2b15e3[_0x225a96(0x1a2)](_0x1382a2,0x1))[_0x225a96(0x1cd)]();_0xe8af1b[_0x4fd1f8]=_0x25e9c5;}const _0x327c3a=_0x2b15e3[_0x225a96(0x17b)](join,_0x3002b1,_0xf199ad);if(_0x2b15e3[_0x225a96(0x1c9)](_0x408218['cdpEndpoint'],undefined)&&_0x408218[_0x225a96(0x186)][_0x225a96(0x1cd)]()==='')throw new Error(_0x2b15e3['NDiIx']);if(_0x408218[_0x225a96(0x186)]&&_0x408218['url'])throw new Error(_0x225a96(0x1a9));if(_0x408218['cdpEndpoint']&&_0x408218['ci'])throw new Error(_0x225a96(0x177));const _0x499ec3=_0x2b15e3['efRcW'](Boolean,_0x408218[_0x225a96(0x186)]),_0x4bdc07=!_0x408218['skipAuth']&&!_0x499ec3,_0x2f77f1=process[_0x225a96(0x1a5)][_0x225a96(0x1d6)]&&process[_0x225a96(0x199)][_0x225a96(0x1d6)];if(!_0x2f77f1&&!_0x408218[_0x225a96(0x184)]&&!_0x499ec3)throw new Error('Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000');const _0x2dd7f2=_0x2b15e3[_0x225a96(0x1ba)](findExistingEnv,_0x391652,{'rangerDir':_0x3002b1});let _0x38b5bd=null;if(_0x2dd7f2){if(!_0x2f77f1)_0x38b5bd=_0x2dd7f2;else{if(_0x2dd7f2['location']===_0xf199ad){const {overwrite:_0x40d5b8}=await _0x5ebda9['prompt']([{'type':'confirm','name':'overwrite','message':_0x225a96(0x1d5)+_0x391652+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x40d5b8){console['log'](_0x2b15e3[_0x225a96(0x1bb)]);return;}_0x38b5bd=_0x2dd7f2;}else{const _0x6a2d07=_0x2dd7f2['location']===_0x2b15e3['FpCSt']?_0x2b15e3[_0x225a96(0x1d4)]:_0x2dd7f2[_0x225a96(0x1bc)];console[_0x225a96(0x1d1)]('\x0a⚠️\x20\x20Profile\x20\x22'+_0x391652+'\x22\x20already\x20exists\x20in\x20'+_0x6a2d07+':\x20'+_0x2dd7f2['path']),console[_0x225a96(0x1d1)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0xf199ad+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x19cbbf}=await _0x5ebda9[_0x225a96(0x1cc)]([{'type':_0x2b15e3['SXOTT'],'name':'shouldReplace','message':_0x225a96(0x1ca)+_0xf199ad+'?','default':![]}]);if(!_0x19cbbf){console[_0x225a96(0x191)](_0x225a96(0x1c1));return;}_0x38b5bd=_0x2dd7f2;}}}_0x3ef590?.[_0x225a96(0x1cb)](_0x2b15e3['ZwfsJ']);let _0x1d6126='';if(_0x499ec3)console[_0x225a96(0x191)](_0x225a96(0x1da)),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x408218[_0x225a96(0x186)]),console['log'](_0x2b15e3[_0x225a96(0x1b2)]);else{if(_0x408218[_0x225a96(0x184)]){_0x1d6126=_0x408218[_0x225a96(0x184)];const _0xe403fd=await checkUrlReachability(_0x1d6126);if(!_0xe403fd['ok']&&!_0x408218[_0x225a96(0x192)])throw new Error(_0x225a96(0x1d2)+_0x1d6126+':\x20'+_0xe403fd[_0x225a96(0x1d1)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0xe403fd['ok']&&_0x408218[_0x225a96(0x192)]&&console[_0x225a96(0x191)](_0x225a96(0x1a6)+_0x1d6126+':\x20'+_0xe403fd['error']+_0x225a96(0x1d9));}else{console['log'](_0x2b15e3['FTwVi']),console['log'](_0x2b15e3['XcmsI']),console[_0x225a96(0x191)](_0x2b15e3['osafy']);let _0x39dd79=![];while(!![]){const _0x4cd4cd=await _0x5ebda9['prompt']([{'type':'input','name':'baseUrl','message':_0x39dd79?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x2b15e3['hbdiZ'],'default':_0x1d6126||_0x2b15e3[_0x225a96(0x1b5)]}]);_0x1d6126=_0x4cd4cd['baseUrl'];const _0xcad9a4=await checkUrlReachability(_0x1d6126);if(_0xcad9a4['ok'])break;const _0x1dd5df=/^[a-zA-Z][\w+.-]*:\/\//[_0x225a96(0x1b8)](_0x1d6126),_0x1d2a83=_0xcad9a4[_0x225a96(0x189)]&&!_0x1dd5df,_0x3a3e87=_0x1d2a83?_0x225a96(0x1db)+_0x1d6126:null;_0x39dd79=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x1d6126+':\x20'+_0xcad9a4[_0x225a96(0x1d1)]);_0x3a3e87&&console[_0x225a96(0x191)]('\x20\x20Did\x20you\x20mean\x20'+_0x3a3e87+'?');const {action:_0x146777}=await _0x5ebda9[_0x225a96(0x1cc)]([{'type':_0x225a96(0x18f),'name':'action','message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x3a3e87?[{'name':'Use\x20'+_0x3a3e87,'value':_0x2b15e3[_0x225a96(0x1d3)]}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x2b15e3['LbznV']},{'name':'Continue\x20anyway','value':'continue'}]}]);if(_0x2b15e3[_0x225a96(0x18c)](_0x146777,'use_suggestion')&&_0x3a3e87){_0x1d6126=_0x3a3e87;const _0x1dee54=await _0x2b15e3[_0x225a96(0x1c5)](checkUrlReachability,_0x1d6126);if(_0x1dee54['ok'])break;console[_0x225a96(0x191)](_0x225a96(0x1b6)+_0x1d6126+':\x20'+_0x1dee54[_0x225a96(0x1d1)]);}else{if(_0x146777===_0x2b15e3[_0x225a96(0x1b3)])break;}}}}_0x3ef590?.[_0x225a96(0x1d7)](_0x2b15e3[_0x225a96(0x16c)]);const _0x2db559={};if(_0x38b5bd){const _0x1bd08d=await loadSettings(_0x391652);Object['assign'](_0x2db559,_0x1bd08d['setupHeaders']);}Object[_0x225a96(0x1bd)](_0x2db559,_0xe8af1b),await mkdir(_0x327c3a,{'recursive':!![]});const _0x47ecf=await mkdtemp(_0x2b15e3[_0x225a96(0x19f)](join,_0x327c3a,_0x225a96(0x195)+_0x391652+'-')),_0x3cc5d4=join(_0x47ecf,'auth.json'),_0x1b4f7d=_0x2b15e3['efRcW'](Boolean,_0x1d6126)&&/^https:\/\/localhost(:\d+)?/i[_0x225a96(0x1b8)](_0x1d6126);try{if(_0x4bdc07){_0x3ef590?.[_0x225a96(0x1cb)]('browser_auth'),console[_0x225a96(0x191)](_0x225a96(0x180)),console['log'](_0x225a96(0x1ac)),console[_0x225a96(0x191)](_0x2b15e3[_0x225a96(0x176)]);!_0x2f77f1?(console[_0x225a96(0x191)](_0x225a96(0x1c2)),console['log']('\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a')):console[_0x225a96(0x191)]('');await new Promise(_0x4a1ba6=>setTimeout(_0x4a1ba6,0xbb8));const _0x36f423=[];_0x408218[_0x225a96(0x1b0)]&&_0x36f423['push'](_0x2b15e3['rwPkn']);const _0x54cee9=_0x408218['allowInsecureLocalhost']||_0x1b4f7d;_0x54cee9&&_0x36f423['push'](_0x2b15e3[_0x225a96(0x18d)]);const _0x3062e8=await chromium['launch']({'headless':![],..._0x36f423[_0x225a96(0x198)]>0x0?{'args':_0x36f423}:{}});try{const _0x32c194=Object[_0x225a96(0x1a1)](_0x2db559)[_0x225a96(0x198)]>0x0,_0xd00b1f={'ignoreHTTPSErrors':!![]};_0x32c194&&(_0xd00b1f['extraHTTPHeaders']=_0x2db559);const _0x3bfec5=await _0x3062e8[_0x225a96(0x188)](_0xd00b1f);await _0x2b15e3['JQAdU'](addProfileSetupBanner,_0x3bfec5);const _0x3bf8ba=await _0x3bfec5['newPage']();await _0x3bf8ba['goto'](_0x2b15e3['awpip'](_0x1d6126,_0x225a96(0x172)));let _0x4a434e=![];await new Promise(_0x15d6f4=>{const _0x462650=_0x225a96;_0x3bf8ba['on'](_0x2b15e3[_0x462650(0x170)],async()=>{try{console['log'](_0x2b15e3['CFRaC']),await _0x3bfec5['storageState']({'path':_0x3cc5d4}),_0x4a434e=!![];}catch{}_0x2b15e3['psXTL'](_0x15d6f4);});});if(!_0x4a434e){console['log'](_0x2b15e3['Uhves']);!_0x408218[_0x225a96(0x1b0)]&&(console['log']('This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a'),console[_0x225a96(0x191)](_0x2b15e3['RvBtI']),console[_0x225a96(0x191)]('\x20\x20ranger\x20profile\x20add\x20'+_0x391652+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x225a96(0x191)](_0x225a96(0x16e)+_0x391652+_0x225a96(0x19c)));throw new Error('Browser\x20closed\x20before\x20authentication\x20was\x20saved.');}}finally{await _0x3062e8['close']()['catch'](()=>{});}if(_0x57ac61){const _0x550af4=await readFile(_0x3cc5d4,'utf-8'),_0x2db4ff=await _0x2b15e3[_0x225a96(0x1a0)](getToken);if(!_0x2db4ff){console[_0x225a96(0x1d1)](_0x2b15e3['ovINe']),await _0x2b15e3[_0x225a96(0x17a)](unlink,_0x3cc5d4)[_0x225a96(0x1c4)](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x16a412=_0x2b15e3['PyzDj'](encrypt,_0x550af4,_0x2db4ff);await writeFile(_0x3cc5d4+_0x225a96(0x1a4),_0x16a412),await _0x2b15e3['efRcW'](unlink,_0x3cc5d4),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x3cc5d4+'.enc'),console[_0x225a96(0x191)](_0x2b15e3['AUJwC']),console[_0x225a96(0x191)](_0x225a96(0x1ab));}}else console['log'](_0x225a96(0x1c8)+_0x3cc5d4);_0x3ef590?.[_0x225a96(0x1d7)](_0x2b15e3['HNofV']);}_0x3ef590?.['trackPhaseStart'](_0x2b15e3[_0x225a96(0x1ce)]);const _0x55b7e8={};_0x1d6126&&(_0x55b7e8[_0x225a96(0x17e)]=_0x1d6126);_0x408218[_0x225a96(0x186)]&&(_0x55b7e8[_0x225a96(0x186)]=_0x408218[_0x225a96(0x186)],_0x55b7e8['isElectron']=!![]);(_0x408218[_0x225a96(0x174)]||_0x1b4f7d)&&(_0x55b7e8['allowInsecureLocalhost']=!![]);_0x408218[_0x225a96(0x1b0)]&&(_0x55b7e8[_0x225a96(0x1b0)]=!![]);_0x2b15e3['TRukx'](Object['keys'](_0x2db559)[_0x225a96(0x198)],0x0)&&(_0x55b7e8[_0x225a96(0x16d)]=_0x2db559);await _0x2b15e3[_0x225a96(0x17b)](writeFile,_0x2b15e3['ukrwR'](join,_0x47ecf,'settings.json'),JSON[_0x225a96(0x1a3)](_0x55b7e8,null,0x2)),console[_0x225a96(0x191)](_0x225a96(0x171)+_0x2b15e3[_0x225a96(0x19f)](join,_0x18317f,_0x225a96(0x19a)));if(_0x38b5bd?.['location']===_0xf199ad){const _0x13baf6=_0x38b5bd[_0x225a96(0x16b)]+_0x225a96(0x17d)+Date['now']();await rename(_0x38b5bd[_0x225a96(0x16b)],_0x13baf6);try{await rename(_0x47ecf,_0x18317f);}catch(_0x2443e1){await _0x2b15e3['ukrwR'](rename,_0x13baf6,_0x38b5bd[_0x225a96(0x16b)]);throw _0x2443e1;}try{await rm(_0x13baf6,{'recursive':!![]});}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x13baf6);}}else{await _0x2b15e3[_0x225a96(0x1bf)](rename,_0x47ecf,_0x18317f);if(_0x38b5bd)try{await _0x2b15e3[_0x225a96(0x19d)](rm,_0x38b5bd['path'],{'recursive':!![]}),console[_0x225a96(0x191)]('Removed\x20existing\x20profile\x20at\x20'+_0x38b5bd[_0x225a96(0x16b)]);}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x38b5bd['path']);}}try{await _0x2b15e3[_0x225a96(0x18a)](writeActiveProfileName,_0x391652),console[_0x225a96(0x191)]('\x20\x20Set\x20active\x20profile:\x20'+_0x391652);}catch{console[_0x225a96(0x191)](_0x225a96(0x1c6));}_0x3ef590?.[_0x225a96(0x1d7)](_0x2b15e3[_0x225a96(0x1ce)]),console['log'](_0x225a96(0x194)+_0x391652+_0x225a96(0x1c0));}catch(_0x2f293d){await rm(_0x47ecf,{'recursive':!![],'force':!![]});throw _0x2f293d;}}
1
+ (function(_0x114f83,_0x237491){const _0x3228ba=_0x13b4,_0x3cb8ce=_0x114f83();while(!![]){try{const _0x2cc3e7=parseInt(_0x3228ba(0xfb))/0x1+-parseInt(_0x3228ba(0x126))/0x2*(parseInt(_0x3228ba(0x11d))/0x3)+parseInt(_0x3228ba(0x12d))/0x4+parseInt(_0x3228ba(0xf6))/0x5*(-parseInt(_0x3228ba(0x11c))/0x6)+parseInt(_0x3228ba(0xcc))/0x7*(-parseInt(_0x3228ba(0x124))/0x8)+parseInt(_0x3228ba(0x11b))/0x9*(-parseInt(_0x3228ba(0x117))/0xa)+parseInt(_0x3228ba(0x131))/0xb*(parseInt(_0x3228ba(0x10c))/0xc);if(_0x2cc3e7===_0x237491)break;else _0x3cb8ce['push'](_0x3cb8ce['shift']());}catch(_0x168a21){_0x3cb8ce['push'](_0x3cb8ce['shift']());}}}(_0x67b6,0xd0b0c));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x2eb74e from'inquirer';import{chromium}from'playwright';function _0x13b4(_0x4e12d2,_0x186d27){_0x4e12d2=_0x4e12d2-0xbf;const _0x67b685=_0x67b6();let _0x13b408=_0x67b685[_0x4e12d2];return _0x13b408;}import{findExistingEnv,loadSettings}from'./utils/settings.js';function _0x67b6(){const _0x36a022=['\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','push','hznnR','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','404920DZEbXv','trackPhaseStart','XdYCA','mZThT','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','status','TGxCn','path','cdpEndpoint','\x20(continuing\x20with\x20--force)','baseUrl','test','\x0a📋\x20Authentication\x20Setup','--allow-insecure-localhost','isElectron','catch','Cuids','1035816zhNiAm','config_write','name','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','force','trackPhaseEnd','url_setup','taVIS','allowInsecureLocalhost','isProtocolError','overwrite','51710XksWns','tUgFC','stdout','.enc','1161GTfXDY','6WPtomq','304635MHIdKM','zdLpr','HEAD','.tmp-','length','shouldReplace','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','16GkzxSO','setupHeaders','32nCqcpN','CKxTG','close','legacy','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','\x0a\x20\x20Profile\x20\x22','log','336640vvHBtt','http://localhost:3000','goto','NODE_TLS_REJECT_UNAUTHORIZED','539AFtDEX','SIqJA','includes','isTTY','scope','TypeError','VKQVM','\x20\x20ranger\x20profile\x20add\x20','You\x20can\x20try\x20again\x20with\x20one\x20of:','zIzPq','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','Vzrvy','⚠\x20Could\x20not\x20reach\x20','pMeFB','Profile\x20\x22','auth.json','ODvku','error','\x0a🌐\x20Profile\x20Setup\x0a','wIqZb','IrIkX','Invalid\x20--setup-header\x20format:\x20\x22','2185547UeVmrW','trim','VMwxA','newContext','abort','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','sVWFG','stringify','\x20would\x20shadow\x20the\x20existing\x20profile.','use_suggestion','http://','about:blank','continue','url','zRoKM','Delete\x20existing\x20and\x20create\x20new\x20in\x20','storageState','message','MDGNS','Removed\x20existing\x20profile\x20at\x20','vsqbg','location','fetch\x20failed','manual','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','What\x20would\x20you\x20like\x20to\x20do?','NRIVE','setupHeader','Saving\x20authentication\x20state...','Enter\x20a\x20different\x20URL','confirm','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','now','browser_auth','\x20\x20Set\x20active\x20profile:\x20','settings.json','safeMode','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','prompt','EAEnt','okaEq','\x20\x20\x20Creating\x20it\x20in\x20','4738225ZGRyNI'];_0x67b6=function(){return _0x36a022;};return _0x67b6();}import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x3ba513){const _0x3a6e5c=_0x13b4,_0x15572c={'tDiES':function(_0x2f603a,_0x56e4ed){return _0x2f603a(_0x56e4ed);},'hznnR':_0x3a6e5c(0x136)};try{const _0x2e1c08=new AbortController(),_0x29152f=setTimeout(()=>_0x2e1c08[_0x3a6e5c(0xd0)](),0x1388),_0x19340c={'method':_0x3a6e5c(0x11f),'signal':_0x2e1c08['signal'],'redirect':_0x3a6e5c(0xe3)};/^https:\/\/localhost(:\d+)?/i[_0x3a6e5c(0x106)](_0x3ba513)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x259cf1=await fetch(_0x3ba513,_0x19340c);delete process['env'][_0x3a6e5c(0x130)],clearTimeout(_0x29152f);if(_0x259cf1[_0x3a6e5c(0x100)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x259cf1[_0x3a6e5c(0x100)]};}catch(_0x4104f9){delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x296242=_0x4104f9,_0x1028a7=_0x296242[_0x3a6e5c(0xdd)]||_0x15572c['tDiES'](String,_0x4104f9),_0x23dcd3=_0x1028a7[_0x3a6e5c(0x133)]('Invalid\x20URL')||_0x296242[_0x3a6e5c(0x10e)]===_0x15572c[_0x3a6e5c(0xf9)]||_0x1028a7[_0x3a6e5c(0x133)](_0x3a6e5c(0xe2));return{'ok':![],'error':_0x1028a7,'isProtocolError':_0x23dcd3};}}export async function addEnv(_0x239356,_0x17dc72={},_0x563921){const _0x15285c=_0x13b4,_0x15cb50={'qUMvq':function(_0x5e5d6c){return _0x5e5d6c();},'sBbqb':_0x15285c(0x128),'zRoKM':'local','TGxCn':'user','VMwxA':function(_0x48e309,_0x523cbd){return _0x48e309===_0x523cbd;},'MDGNS':function(_0xc24150,_0x2f77bf,_0x78362a){return _0xc24150(_0x2f77bf,_0x78362a);},'AgwMx':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','cRRab':function(_0x1687e6,_0x5db8a2){return _0x1687e6(_0x5db8a2);},'ClljX':function(_0x1d35f4,_0x5c6c23){return _0x1d35f4===_0x5c6c23;},'pMeFB':_0x15285c(0xea),'nzXMT':function(_0xc37011,_0x543d38){return _0xc37011===_0x543d38;},'HEWhq':'root\x20(.ranger/)','LhLwE':_0x15285c(0x122),'Yuooe':'Aborted.','WDRhx':_0x15285c(0x112),'uhWqd':_0x15285c(0xc8),'zAjWu':'\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','EovkV':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','mZThT':'input','RNgHW':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','yBRZF':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','VKQVM':_0x15285c(0x12e),'zdLpr':function(_0x2275a7,_0x1f3aa9){return _0x2275a7(_0x1f3aa9);},'XdYCA':'list','ICYUZ':'action','wIqZb':_0x15285c(0xd5),'NcoIf':_0x15285c(0xd8),'FMUUc':function(_0x4bc9c7,_0x166c80){return _0x4bc9c7(_0x166c80);},'zIzPq':function(_0x4543ca,_0x2290fb,_0xf1807a){return _0x4543ca(_0x2290fb,_0xf1807a);},'vsqbg':function(_0x24da90,_0x147479,_0x8f1563){return _0x24da90(_0x147479,_0x8f1563);},'ocvfJ':_0x15285c(0xe4),'htSHO':_0x15285c(0x10f),'qcvwK':_0x15285c(0x123),'sVWFG':'--disable-features=WebBluetooth','BTjBN':_0x15285c(0x108),'Vzrvy':function(_0x12b3ad,_0x2d955d){return _0x12b3ad>_0x2d955d;},'IrIkX':function(_0x44c5d9,_0x5a93b7){return _0x44c5d9(_0x5a93b7);},'Cuids':_0x15285c(0xd7),'WRuWv':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','oXNoK':_0x15285c(0x139),'SIqJA':'utf-8','taVIS':_0x15285c(0xf1),'NRIVE':function(_0x5e2834,_0x272f62){return _0x5e2834(_0x272f62);},'EAEnt':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','CKxTG':_0x15285c(0x10d),'tUgFC':function(_0x39509a,_0x43b1a2,_0x3cab98){return _0x39509a(_0x43b1a2,_0x3cab98);},'okaEq':'settings.json','yZGsF':function(_0x1f5526,_0x18f274){return _0x1f5526===_0x18f274;},'dGLKH':function(_0x571d97,_0x44d9af,_0x2f1688){return _0x571d97(_0x44d9af,_0x2f1688);},'rBCMw':function(_0x3e9a26,_0xa31d93,_0x3b12c2){return _0x3e9a26(_0xa31d93,_0x3b12c2);},'JRDCH':function(_0xcc4578,_0x36be33,_0x29571a){return _0xcc4578(_0x36be33,_0x29571a);},'ODvku':function(_0x20dc79,_0x425c75,_0x1130f7){return _0x20dc79(_0x425c75,_0x1130f7);},'FMJHc':function(_0x199146,_0x3242f4,_0x5c6dad){return _0x199146(_0x3242f4,_0x5c6dad);}},_0x1fe7b5=_0x17dc72['ci']??![],_0x4939b1=_0x1fe7b5?'ci':_0x15cb50[_0x15285c(0xda)],_0x165d8a=_0x17dc72[_0x15285c(0x135)]===_0x15cb50[_0x15285c(0x101)]?getRangerHomeDir():getRangerDir(),_0x32b55d=join(_0x165d8a,_0x4939b1,_0x239356),_0x1c91d3={};if(_0x17dc72[_0x15285c(0xe7)])for(const _0x494eef of _0x17dc72['setupHeader']){const _0x4740f9=_0x494eef['indexOf'](':');if(_0x15cb50[_0x15285c(0xce)](_0x4740f9,-0x1))throw new Error(_0x15285c(0xcb)+_0x494eef+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x58d99c=_0x494eef['slice'](0x0,_0x4740f9)['trim'](),_0x31f914=_0x494eef['slice'](_0x4740f9+0x1)[_0x15285c(0xcd)]();_0x1c91d3[_0x58d99c]=_0x31f914;}const _0x40b6a9=_0x15cb50[_0x15285c(0xde)](join,_0x165d8a,_0x4939b1);if(_0x17dc72['cdpEndpoint']!==undefined&&_0x17dc72['cdpEndpoint'][_0x15285c(0xcd)]()==='')throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x17dc72['cdpEndpoint']&&_0x17dc72[_0x15285c(0xd9)])throw new Error(_0x15cb50['AgwMx']);if(_0x17dc72[_0x15285c(0x103)]&&_0x17dc72['ci'])throw new Error('--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.');const _0x51f173=_0x15cb50['cRRab'](Boolean,_0x17dc72['cdpEndpoint']),_0x2d40a9=!_0x17dc72['skipAuth']&&!_0x51f173,_0x245b28=process['stdin'][_0x15285c(0x134)]&&process[_0x15285c(0x119)][_0x15285c(0x134)];if(!_0x245b28&&!_0x17dc72['url']&&!_0x51f173)throw new Error(_0x15285c(0xbf));const _0xc9af12=findExistingEnv(_0x239356,{'rangerDir':_0x165d8a});let _0x5c61ab=null;if(_0xc9af12){if(!_0x245b28)_0x5c61ab=_0xc9af12;else{if(_0x15cb50['ClljX'](_0xc9af12[_0x15285c(0xe1)],_0x4939b1)){const {overwrite:_0x230a20}=await _0x2eb74e[_0x15285c(0xf2)]([{'type':_0x15cb50['pMeFB'],'name':_0x15285c(0x116),'message':_0x15285c(0xc4)+_0x239356+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x230a20){console[_0x15285c(0x12c)]('Aborted.');return;}_0x5c61ab=_0xc9af12;}else{const _0x35d444=_0x15cb50['nzXMT'](_0xc9af12['location'],_0x15285c(0x129))?_0x15cb50['HEWhq']:_0xc9af12[_0x15285c(0xe1)];console[_0x15285c(0xc7)]('\x0a⚠️\x20\x20Profile\x20\x22'+_0x239356+'\x22\x20already\x20exists\x20in\x20'+_0x35d444+':\x20'+_0xc9af12[_0x15285c(0x102)]),console['error'](_0x15285c(0xf5)+_0x4939b1+_0x15285c(0xd4));const {shouldReplace:_0x45dd49}=await _0x2eb74e['prompt']([{'type':_0x15cb50[_0x15285c(0xc3)],'name':_0x15cb50['LhLwE'],'message':_0x15285c(0xdb)+_0x4939b1+'?','default':![]}]);if(!_0x45dd49){console[_0x15285c(0x12c)](_0x15cb50['Yuooe']);return;}_0x5c61ab=_0xc9af12;}}}_0x563921?.[_0x15285c(0xfc)](_0x15cb50['WDRhx']);let _0x5d4adc='';if(_0x51f173)console['log']('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console[_0x15285c(0x12c)](_0x15285c(0xff)+_0x17dc72['cdpEndpoint']),console['log']('\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a');else{if(_0x17dc72[_0x15285c(0xd9)]){_0x5d4adc=_0x17dc72[_0x15285c(0xd9)];const _0x2865b9=await _0x15cb50['cRRab'](checkUrlReachability,_0x5d4adc);if(!_0x2865b9['ok']&&!_0x17dc72['force'])throw new Error('Could\x20not\x20reach\x20'+_0x5d4adc+':\x20'+_0x2865b9['error']+_0x15285c(0xc0));!_0x2865b9['ok']&&_0x17dc72[_0x15285c(0x110)]&&console[_0x15285c(0x12c)](_0x15285c(0xc2)+_0x5d4adc+':\x20'+_0x2865b9['error']+_0x15285c(0x104));}else{console[_0x15285c(0x12c)](_0x15cb50['uhWqd']),console[_0x15285c(0x12c)](_0x15cb50['zAjWu']),console['log'](_0x15cb50['EovkV']);let _0x1353e4=![];while(!![]){const _0x7b3fe3=await _0x2eb74e[_0x15285c(0xf2)]([{'type':_0x15cb50[_0x15285c(0xfe)],'name':_0x15285c(0x105),'message':_0x1353e4?_0x15cb50['RNgHW']:_0x15cb50['yBRZF'],'default':_0x5d4adc||_0x15cb50[_0x15285c(0x137)]}]);_0x5d4adc=_0x7b3fe3[_0x15285c(0x105)];const _0x2fee45=await _0x15cb50[_0x15285c(0x11e)](checkUrlReachability,_0x5d4adc);if(_0x2fee45['ok'])break;const _0x323c90=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x5d4adc),_0x182896=_0x2fee45[_0x15285c(0x115)]&&!_0x323c90,_0xb891b8=_0x182896?_0x15285c(0xd6)+_0x5d4adc:null;_0x1353e4=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x5d4adc+':\x20'+_0x2fee45[_0x15285c(0xc7)]);_0xb891b8&&console[_0x15285c(0x12c)]('\x20\x20Did\x20you\x20mean\x20'+_0xb891b8+'?');const {action:_0x3b1dea}=await _0x2eb74e['prompt']([{'type':_0x15cb50[_0x15285c(0xfd)],'name':_0x15cb50['ICYUZ'],'message':_0x15285c(0xe5),'choices':[..._0xb891b8?[{'name':'Use\x20'+_0xb891b8,'value':_0x15cb50[_0x15285c(0xc9)]}]:[],{'name':_0x15285c(0xe9),'value':'retry'},{'name':'Continue\x20anyway','value':_0x15cb50['NcoIf']}]}]);if(_0x3b1dea==='use_suggestion'&&_0xb891b8){_0x5d4adc=_0xb891b8;const _0x35b4a4=await _0x15cb50['FMUUc'](checkUrlReachability,_0x5d4adc);if(_0x35b4a4['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x5d4adc+':\x20'+_0x35b4a4['error']);}else{if(_0x3b1dea==='continue')break;}}}}_0x563921?.[_0x15285c(0x111)]('url_setup');const _0xb6c8c4={};if(_0x5c61ab){const _0x2db0b3=await loadSettings(_0x239356);Object['assign'](_0xb6c8c4,_0x2db0b3[_0x15285c(0x125)]);}Object['assign'](_0xb6c8c4,_0x1c91d3),await mkdir(_0x40b6a9,{'recursive':!![]});const _0x45fd6d=await _0x15cb50['cRRab'](mkdtemp,_0x15cb50[_0x15285c(0x13a)](join,_0x40b6a9,_0x15285c(0x120)+_0x239356+'-')),_0x1f524a=_0x15cb50[_0x15285c(0xe0)](join,_0x45fd6d,_0x15285c(0xc5)),_0x599c6b=Boolean(_0x5d4adc)&&/^https:\/\/localhost(:\d+)?/i[_0x15285c(0x106)](_0x5d4adc);try{if(_0x2d40a9){_0x563921?.['trackPhaseStart'](_0x15285c(0xed)),console[_0x15285c(0x12c)](_0x15285c(0x107)),console['log'](_0x15cb50['ocvfJ']),console['log'](_0x15cb50['htSHO']);!_0x245b28?(console['log']('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console[_0x15285c(0x12c)](_0x15cb50['qcvwK'])):console['log']('');await new Promise(_0x3ba050=>setTimeout(_0x3ba050,0xbb8));const _0x5cf56a=[];_0x17dc72[_0x15285c(0xf0)]&&_0x5cf56a[_0x15285c(0xf8)](_0x15cb50[_0x15285c(0xd2)]);const _0x59eaba=_0x17dc72[_0x15285c(0x114)]||_0x599c6b;_0x59eaba&&_0x5cf56a['push'](_0x15cb50['BTjBN']);const _0x159bd4=await chromium['launch']({'headless':![],..._0x15cb50[_0x15285c(0xc1)](_0x5cf56a[_0x15285c(0x121)],0x0)?{'args':_0x5cf56a}:{}});try{const _0x156793=_0x15cb50[_0x15285c(0xc1)](Object['keys'](_0xb6c8c4)[_0x15285c(0x121)],0x0),_0x1931c2={'ignoreHTTPSErrors':!![]};_0x156793&&(_0x1931c2['extraHTTPHeaders']=_0xb6c8c4);const _0x1fe6e6=await _0x159bd4[_0x15285c(0xcf)](_0x1931c2);await _0x15cb50[_0x15285c(0xca)](addProfileSetupBanner,_0x1fe6e6);const _0x472871=await _0x1fe6e6['newPage']();await _0x472871[_0x15285c(0x12f)](_0x5d4adc||_0x15cb50[_0x15285c(0x10b)]);let _0x576602=![];await new Promise(_0x14f859=>{_0x472871['on'](_0x15cb50['sBbqb'],async()=>{const _0x530d43=_0x13b4;try{console['log'](_0x530d43(0xe8)),await _0x1fe6e6[_0x530d43(0xdc)]({'path':_0x1f524a}),_0x576602=!![];}catch{}_0x15cb50['qUMvq'](_0x14f859);});});if(!_0x576602){console['log'](_0x15285c(0xf7));!_0x17dc72['safeMode']&&(console['log'](_0x15cb50['WRuWv']),console['log'](_0x15cb50['oXNoK']),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x239356+_0x15285c(0xeb)),console['log'](_0x15285c(0x138)+_0x239356+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error('Browser\x20closed\x20before\x20authentication\x20was\x20saved.');}}finally{await _0x159bd4['close']()['catch'](()=>{});}if(_0x1fe7b5){const _0x1aab77=await readFile(_0x1f524a,_0x15cb50[_0x15285c(0x132)]),_0x29882a=await getToken();if(!_0x29882a){console['error'](_0x15cb50[_0x15285c(0x113)]),await unlink(_0x1f524a)[_0x15285c(0x10a)](()=>{});throw new Error(_0x15285c(0x12a));}else{const _0x74893=_0x15cb50[_0x15285c(0xde)](encrypt,_0x1aab77,_0x29882a);await _0x15cb50['zIzPq'](writeFile,_0x1f524a+'.enc',_0x74893),await _0x15cb50[_0x15285c(0xe6)](unlink,_0x1f524a),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x1f524a+_0x15285c(0x11a)),console['log'](_0x15cb50[_0x15285c(0xf3)]),console[_0x15285c(0x12c)]('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log']('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x1f524a);_0x563921?.['trackPhaseEnd']('browser_auth');}_0x563921?.[_0x15285c(0xfc)](_0x15cb50['CKxTG']);const _0x101582={};_0x5d4adc&&(_0x101582['baseUrl']=_0x5d4adc);_0x17dc72[_0x15285c(0x103)]&&(_0x101582['cdpEndpoint']=_0x17dc72[_0x15285c(0x103)],_0x101582[_0x15285c(0x109)]=!![]);(_0x17dc72['allowInsecureLocalhost']||_0x599c6b)&&(_0x101582[_0x15285c(0x114)]=!![]);_0x17dc72[_0x15285c(0xf0)]&&(_0x101582[_0x15285c(0xf0)]=!![]);_0x15cb50['Vzrvy'](Object['keys'](_0xb6c8c4)[_0x15285c(0x121)],0x0)&&(_0x101582['setupHeaders']=_0xb6c8c4);await _0x15cb50[_0x15285c(0x118)](writeFile,_0x15cb50[_0x15285c(0x13a)](join,_0x45fd6d,_0x15cb50[_0x15285c(0xf4)]),JSON[_0x15285c(0xd3)](_0x101582,null,0x2)),console[_0x15285c(0x12c)]('✓\x20Created\x20settings:\x20'+_0x15cb50['MDGNS'](join,_0x32b55d,_0x15285c(0xef)));if(_0x15cb50['yZGsF'](_0x5c61ab?.[_0x15285c(0xe1)],_0x4939b1)){const _0x5dc92b=_0x5c61ab[_0x15285c(0x102)]+'.backup-'+Date[_0x15285c(0xec)]();await _0x15cb50['dGLKH'](rename,_0x5c61ab['path'],_0x5dc92b);try{await rename(_0x45fd6d,_0x32b55d);}catch(_0x4a6bb6){await rename(_0x5dc92b,_0x5c61ab[_0x15285c(0x102)]);throw _0x4a6bb6;}try{await _0x15cb50['rBCMw'](rm,_0x5dc92b,{'recursive':!![]});}catch{console['log'](_0x15285c(0xd1)+_0x5dc92b);}}else{await _0x15cb50['JRDCH'](rename,_0x45fd6d,_0x32b55d);if(_0x5c61ab)try{await _0x15cb50[_0x15285c(0xc6)](rm,_0x5c61ab['path'],{'recursive':!![]}),console['log'](_0x15285c(0xdf)+_0x5c61ab[_0x15285c(0x102)]);}catch{console['log'](_0x15285c(0xfa)+_0x5c61ab['path']);}}try{await _0x15cb50['cRRab'](writeActiveProfileName,_0x239356),console[_0x15285c(0x12c)](_0x15285c(0xee)+_0x239356);}catch{console[_0x15285c(0x12c)]('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}_0x563921?.[_0x15285c(0x111)](_0x15cb50[_0x15285c(0x127)]),console[_0x15285c(0x12c)](_0x15285c(0x12b)+_0x239356+'\x22\x20configured');}catch(_0x383a70){await _0x15cb50['FMJHc'](rm,_0x45fd6d,{'recursive':!![],'force':!![]});throw _0x383a70;}}
@@ -1 +1 @@
1
- (function(_0x1c7881,_0x107586){const _0x55e93c=_0x3aaa,_0x134822=_0x1c7881();while(!![]){try{const _0x6974=parseInt(_0x55e93c(0xa7))/0x1*(parseInt(_0x55e93c(0x9d))/0x2)+-parseInt(_0x55e93c(0xa2))/0x3*(-parseInt(_0x55e93c(0xa1))/0x4)+-parseInt(_0x55e93c(0xab))/0x5*(-parseInt(_0x55e93c(0x9f))/0x6)+-parseInt(_0x55e93c(0xa4))/0x7+-parseInt(_0x55e93c(0xa5))/0x8+-parseInt(_0x55e93c(0x9e))/0x9*(parseInt(_0x55e93c(0xb0))/0xa)+-parseInt(_0x55e93c(0xae))/0xb*(parseInt(_0x55e93c(0x9b))/0xc);if(_0x6974===_0x107586)break;else _0x134822['push'](_0x134822['shift']());}catch(_0xeeb69c){_0x134822['push'](_0x134822['shift']());}}}(_0x24af,0xcb1ef));import{readFile,writeFile}from'fs/promises';import{join}from'path';function _0x24af(){const _0x440b33=['No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','5293785FoQDty','No\x20auth.json\x20found\x20at\x20','wsHtr','1540MUoUqw','log','460010hTHTRB','68976PwKEwG','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','861842NZlTAW','18cPOkFX','6QfxjPb','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','12ihjkBc','1374627XTLGdC','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','709744lXZKuI','8273664oNOJgL','auth.json','1IspsmE'];_0x24af=function(){return _0x440b33;};return _0x24af();}import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0x3aaa(_0x2fec73,_0x3d44d6){_0x2fec73=_0x2fec73-0x9b;const _0x24af77=_0x24af();let _0x3aaa72=_0x24af77[_0x2fec73];return _0x3aaa72;}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x37754c){const _0x7907b5=_0x3aaa,_0x440fc8={'VUlFi':function(_0x7da0cf,_0x172100){return _0x7da0cf(_0x172100);},'gnWLG':_0x7907b5(0xa8),'wsHtr':function(_0x49a1b2,_0x3c500c,_0x2aafd9){return _0x49a1b2(_0x3c500c,_0x2aafd9);},'pdKGu':'utf-8','EAlcF':_0x7907b5(0x9c)},_0x20f080=getEnvDir(_0x37754c),_0x2420cb=join(_0x20f080,_0x7907b5(0xa6)),_0x112051=_0x2420cb+'.enc';if(!_0x440fc8['VUlFi'](existsSync,_0x20f080))throw new Error('Profile\x20\x22'+_0x37754c+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x37754c);if(!existsSync(_0x2420cb))throw new Error(_0x7907b5(0xac)+_0x2420cb+_0x7907b5(0xa3));const _0x3269bb=await getToken();if(!_0x3269bb)throw new Error(_0x440fc8['gnWLG']);const _0x2efd50=await _0x440fc8[_0x7907b5(0xad)](readFile,_0x2420cb,_0x440fc8['pdKGu']),_0x119e20=encrypt(_0x2efd50,_0x3269bb);await writeFile(_0x112051,_0x119e20),console[_0x7907b5(0xaf)](_0x7907b5(0xaa)+_0x112051),console[_0x7907b5(0xaf)]('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x7907b5(0xaf)](_0x440fc8['EAlcF']),existsSync(_0x112051)&&(console[_0x7907b5(0xaf)](_0x7907b5(0xa9)),console['log'](_0x7907b5(0xa0)));}
1
+ function _0x4efa(_0x2d037d,_0x169e50){_0x2d037d=_0x2d037d-0x131;const _0x487321=_0x4873();let _0x4efa00=_0x487321[_0x2d037d];return _0x4efa00;}(function(_0x2313af,_0x3aa123){const _0x408e7b=_0x4efa,_0x5bd1ca=_0x2313af();while(!![]){try{const _0x420586=parseInt(_0x408e7b(0x136))/0x1+parseInt(_0x408e7b(0x145))/0x2+parseInt(_0x408e7b(0x13e))/0x3+-parseInt(_0x408e7b(0x131))/0x4*(-parseInt(_0x408e7b(0x132))/0x5)+-parseInt(_0x408e7b(0x137))/0x6*(-parseInt(_0x408e7b(0x134))/0x7)+-parseInt(_0x408e7b(0x138))/0x8*(-parseInt(_0x408e7b(0x141))/0x9)+-parseInt(_0x408e7b(0x13a))/0xa;if(_0x420586===_0x3aa123)break;else _0x5bd1ca['push'](_0x5bd1ca['shift']());}catch(_0x24a5c1){_0x5bd1ca['push'](_0x5bd1ca['shift']());}}}(_0x4873,0x91659));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0x4873(){const _0x15bbc9=['.enc','18ByfUbL','WDqyy','log','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','2089176bxJJWA','4qRzdlY','5581315KwGmym','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','4369295GcGBFW','utf-8','646889gPKqpB','6bDUmCm','1444984cbffsN','auth.json','40885040Agkxpo','Profile\x20\x22','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','YkZwR','2672634mvCthQ','No\x20auth.json\x20found\x20at\x20'];_0x4873=function(){return _0x15bbc9;};return _0x4873();}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x3d670f){const _0x326603=_0x4efa,_0x4a6348={'tZYLg':function(_0x452865,_0x402e75){return _0x452865(_0x402e75);},'YkZwR':function(_0x5481cd,_0x1ef1e9,_0x1ddc41){return _0x5481cd(_0x1ef1e9,_0x1ddc41);},'Oikut':_0x326603(0x139),'hUVsz':_0x326603(0x140),'WDqyy':function(_0x5285bc){return _0x5285bc();},'vmBcG':_0x326603(0x13c)},_0xe60844=_0x4a6348['tZYLg'](getEnvDir,_0x3d670f),_0x5e4a5c=_0x4a6348[_0x326603(0x13d)](join,_0xe60844,_0x4a6348['Oikut']),_0x3ce260=_0x5e4a5c+_0x4a6348['hUVsz'];if(!existsSync(_0xe60844))throw new Error(_0x326603(0x13b)+_0x3d670f+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x3d670f);if(!existsSync(_0x5e4a5c))throw new Error(_0x326603(0x13f)+_0x5e4a5c+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x46cd31=await _0x4a6348[_0x326603(0x142)](getToken);if(!_0x46cd31)throw new Error(_0x4a6348['vmBcG']);const _0x558610=await readFile(_0x5e4a5c,_0x326603(0x135)),_0x38f7de=_0x4a6348[_0x326603(0x13d)](encrypt,_0x558610,_0x46cd31);await writeFile(_0x3ce260,_0x38f7de),console[_0x326603(0x143)]('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x3ce260),console[_0x326603(0x143)](_0x326603(0x144)),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'),existsSync(_0x3ce260)&&(console[_0x326603(0x143)]('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console[_0x326603(0x143)](_0x326603(0x133)));}
@@ -1 +1 @@
1
- const _0x39cc5f=_0x2349;(function(_0x1265fd,_0x49f5b6){const _0x5641a9=_0x2349,_0x1c3aba=_0x1265fd();while(!![]){try{const _0x30d38a=parseInt(_0x5641a9(0x1c0))/0x1+-parseInt(_0x5641a9(0x1c8))/0x2+-parseInt(_0x5641a9(0x1cd))/0x3+-parseInt(_0x5641a9(0x1df))/0x4+parseInt(_0x5641a9(0x1b1))/0x5+parseInt(_0x5641a9(0x1d9))/0x6+parseInt(_0x5641a9(0x1bd))/0x7;if(_0x30d38a===_0x49f5b6)break;else _0x1c3aba['push'](_0x1c3aba['shift']());}catch(_0x6feb6b){_0x1c3aba['push'](_0x1c3aba['shift']());}}}(_0x4ae8,0x3fcb7));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';function _0x4ae8(){const _0x44675f=['eyhJU','string','log','vEiZm','platform','trailhead','UjDxN','2479160UCVaNI','AEzNU','pCnxV','error','HXjoe','UmckE','TuiED','ZlilM','CkXqZ','DsleF','marketplace','uVPtb','2536779bJkhoH','opencode.json','pipe','190965dbHDju','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','length','EfGDt','CTWGJ','jbQdn','WpbCC','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','35742UTjYmz','claude','ranger','win32','replace','1319637fseXHS','plugin','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','--scope','YNnat','gFyNp','UKZYo','isArray','utf-8','✓\x20Removed\x20trailhead\x20marketplace','uevvz','stringify','823926KCUfUC','Edqrm','OVXgF','JlvMt','e2e-test-recommender','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','1869848wtEADl','ranger@trailhead'];_0x4ae8=function(){return _0x44675f;};return _0x4ae8();}const skillsToRemove=[_0x39cc5f(0x1ca),'feature-tracker','bug-bash',_0x39cc5f(0x1dd)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x3c166c){const _0x4a9594=_0x39cc5f,_0x42993b=_0x3c166c[_0x4a9594(0x1cc)](/\/\*[\s\S]*?\*\//g,''),_0xef8fc8=_0x42993b['replace'](/^\s*\/\/.*$/gm,''),_0x4001ec=_0xef8fc8[_0x4a9594(0x1cc)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x4001ec);}async function removeOpencodePluginConfig(_0x5b4526){const _0x2c7cb2=_0x39cc5f,_0x48475d={'JlvMt':_0x2c7cb2(0x1e2),'PKWZF':function(_0x111f81,_0x343f26){return _0x111f81!==_0x343f26;},'GvKVO':function(_0x132f81,_0x505e8f){return _0x132f81(_0x505e8f);},'eyhJU':function(_0x2fead5,_0x2b97ac,_0x48c0e8){return _0x2fead5(_0x2b97ac,_0x48c0e8);},'vEiZm':_0x2c7cb2(0x1d5),'CTWGJ':function(_0x249ded,_0x464b53){return _0x249ded===_0x464b53;},'gFyNp':function(_0x5cdb42,_0x14358c){return _0x5cdb42===_0x14358c;}};if(!_0x48475d['GvKVO'](existsSync,_0x5b4526))return![];let _0x5e1a48;try{const _0x1fe0a8=await _0x48475d[_0x2c7cb2(0x1e1)](readFile,_0x5b4526,_0x48475d[_0x2c7cb2(0x1e4)]);_0x5e1a48=parseJsonc(_0x1fe0a8);}catch{return![];}const _0xf89ade=Array[_0x2c7cb2(0x1d4)](_0x5e1a48['plugin'])?_0x5e1a48[_0x2c7cb2(0x1ce)]:[];if(_0x48475d[_0x2c7cb2(0x1c4)](_0xf89ade['length'],0x0))return![];const _0xbf7db8=_0xf89ade['filter'](_0x72e717=>{const _0xc70901=_0x2c7cb2;if(typeof _0x72e717!==_0x48475d[_0xc70901(0x1dc)])return!![];return _0x48475d['PKWZF'](_0x72e717,opencodePluginName);});if(_0xbf7db8['length']===_0xf89ade['length'])return![];return _0x48475d[_0x2c7cb2(0x1d2)](_0xbf7db8[_0x2c7cb2(0x1c2)],0x0)?delete _0x5e1a48['plugin']:_0x5e1a48[_0x2c7cb2(0x1ce)]=_0xbf7db8,await writeFile(_0x5b4526,JSON[_0x2c7cb2(0x1d8)](_0x5e1a48,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x316277){const _0x13b133=_0x39cc5f,_0x1bf087={'uVPtb':function(_0x1bc596,_0x4cdf16){return _0x1bc596===_0x4cdf16;},'JqQZA':'claude','OAsiJ':_0x13b133(0x1bf),'GhYfx':'close'};return new Promise(_0x3abf46=>{const _0x254885=_0x13b133,_0x3aa396={'AEzNU':function(_0x9f502b,_0x15484d){return _0x9f502b(_0x15484d);},'ZlilM':function(_0x584b76,_0x279a36){const _0x1cc993=_0x2349;return _0x1bf087[_0x1cc993(0x1bc)](_0x584b76,_0x279a36);}},_0x5b50aa=['plugin','uninstall',_0x254885(0x1e0)];_0x316277&&_0x5b50aa['push'](_0x254885(0x1d0),_0x316277);const _0x190241=spawn(_0x1bf087['JqQZA'],_0x5b50aa,{'stdio':_0x1bf087['OAsiJ'],'shell':process['platform']===_0x254885(0x1cb)});_0x190241['on'](_0x1bf087['GhYfx'],_0x35b682=>{const _0xc99cbd=_0x254885;_0x3aa396[_0xc99cbd(0x1b2)](_0x3abf46,_0x3aa396[_0xc99cbd(0x1b8)](_0x35b682,0x0));}),_0x190241['on'](_0x254885(0x1b4),()=>{_0x3abf46(![]);});});}function _0x2349(_0x20300f,_0x14be65){_0x20300f=_0x20300f-0x1af;const _0x4ae80d=_0x4ae8();let _0x234981=_0x4ae80d[_0x20300f];return _0x234981;}async function removeMarketplace(){const _0x3fcaca=_0x39cc5f,_0x4f1967={'DsleF':function(_0x232c6e,_0x1b11bd){return _0x232c6e(_0x1b11bd);},'zDSKg':function(_0x20be7f,_0xbbb095){return _0x20be7f===_0xbbb095;},'TuiED':function(_0x119f73,_0x4c4bfa,_0x18dcb1,_0x2bf8aa){return _0x119f73(_0x4c4bfa,_0x18dcb1,_0x2bf8aa);},'ELJur':_0x3fcaca(0x1c9),'OVXgF':'plugin','UjDxN':'pipe','UmckE':'close','mFWVo':_0x3fcaca(0x1b4)};return new Promise(_0x1aa69f=>{const _0x3d0bfa=_0x3fcaca,_0x4bf2ce={'YNnat':function(_0x202f8e,_0x408be9){const _0x1b604a=_0x2349;return _0x4f1967[_0x1b604a(0x1ba)](_0x202f8e,_0x408be9);}},_0x4bc168=_0x4f1967[_0x3d0bfa(0x1b7)](spawn,_0x4f1967['ELJur'],[_0x4f1967[_0x3d0bfa(0x1db)],_0x3d0bfa(0x1bb),'remove',_0x3d0bfa(0x1af)],{'stdio':_0x4f1967[_0x3d0bfa(0x1b0)],'shell':_0x4f1967['zDSKg'](process[_0x3d0bfa(0x1e5)],_0x3d0bfa(0x1cb))});_0x4bc168['on'](_0x4f1967[_0x3d0bfa(0x1b6)],_0x3c9eaf=>{_0x4f1967['DsleF'](_0x1aa69f,_0x4f1967['zDSKg'](_0x3c9eaf,0x0));}),_0x4bc168['on'](_0x4f1967['mFWVo'],()=>{const _0x131bcb=_0x3d0bfa;_0x4bf2ce[_0x131bcb(0x1d1)](_0x1aa69f,![]);});});}export async function clean(){const _0x50f2a5=_0x39cc5f,_0xef0882={'jbQdn':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','UKZYo':function(_0x27b2e9){return _0x27b2e9();},'bwPYZ':'✓\x20Removed\x20stored\x20credentials','CkXqZ':function(_0x290338){return _0x290338();},'Edqrm':function(_0x118794,_0x124949){return _0x118794(_0x124949);},'gsyxN':'✓\x20Removed\x20.ranger/\x20directory','WpbCC':function(_0x5c1d93,_0x401e4e,_0x3dde07){return _0x5c1d93(_0x401e4e,_0x3dde07);},'HXjoe':function(_0x576f65,_0x397fc7,_0x2feb52){return _0x576f65(_0x397fc7,_0x2feb52);},'vYxTy':function(_0x3b17bf,_0x43ec2d,_0x118bf7){return _0x3b17bf(_0x43ec2d,_0x118bf7);},'ccnGR':'user','ZjYZn':function(_0x5c8e3e,_0x23caf2,_0xce1f80){return _0x5c8e3e(_0x23caf2,_0xce1f80);},'XewIF':'opencode.json','uevvz':_0x50f2a5(0x1c7),'EfGDt':function(_0x51fc9b,_0x19ee64){return _0x51fc9b(_0x19ee64);},'kkDcr':'project','pCnxV':_0x50f2a5(0x1de),'IGkJs':_0x50f2a5(0x1d6),'BUOtI':'\x0a✅\x20Cleanup\x20complete!\x0a','utWIV':'Nothing\x20to\x20clean\x20up.\x0a'};console[_0x50f2a5(0x1e3)](_0xef0882[_0x50f2a5(0x1c5)]);let _0x150025=![];try{await _0xef0882['UKZYo'](deleteAllCredentials),console[_0x50f2a5(0x1e3)](_0xef0882['bwPYZ']),_0x150025=!![];}catch{}const _0x4f2270=_0xef0882[_0x50f2a5(0x1b9)](getCacheFile);existsSync(_0x4f2270)&&(await _0xef0882['Edqrm'](rm,_0x4f2270),_0x150025=!![]);const _0x5bdb0d=getRangerDir();existsSync(_0x5bdb0d)&&(await rm(_0x5bdb0d,{'recursive':!![]}),console['log'](_0xef0882['gsyxN']),_0x150025=!![]);const _0x7a49df=_0xef0882['UKZYo'](getProjectSkillsDir);for(const _0x2ded3f of skillsToRemove){const _0x38cef1=_0xef0882['WpbCC'](join,_0x7a49df,_0x2ded3f);_0xef0882[_0x50f2a5(0x1da)](existsSync,_0x38cef1)&&(await _0xef0882[_0x50f2a5(0x1b5)](rm,_0x38cef1,{'recursive':!![]}),console[_0x50f2a5(0x1e3)]('✓\x20Removed\x20project\x20skill:\x20'+_0x2ded3f),_0x150025=!![]);}const _0x568454=_0xef0882[_0x50f2a5(0x1d3)](getUserSkillsDir);for(const _0x1a4d66 of skillsToRemove){const _0x63f735=_0xef0882['vYxTy'](join,_0x568454,_0x1a4d66);existsSync(_0x63f735)&&(await _0xef0882['WpbCC'](rm,_0x63f735,{'recursive':!![]}),console[_0x50f2a5(0x1e3)]('✓\x20Removed\x20user\x20skill:\x20'+_0x1a4d66),_0x150025=!![]);}const _0x165c3c=getOpencodeSkillsDir('project');for(const _0x67a9f7 of skillsToRemove){const _0x17ded1=join(_0x165c3c,_0x67a9f7);existsSync(_0x17ded1)&&(await _0xef0882[_0x50f2a5(0x1c6)](rm,_0x17ded1,{'recursive':!![]}),console[_0x50f2a5(0x1e3)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x67a9f7),_0x150025=!![]);}const _0x484700=getOpencodeSkillsDir(_0xef0882['ccnGR']);for(const _0x264319 of skillsToRemove){const _0x449ac6=_0xef0882['ZjYZn'](join,_0x484700,_0x264319);existsSync(_0x449ac6)&&(await rm(_0x449ac6,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x264319),_0x150025=!![]);}const _0x2c269=join(_0xef0882['Edqrm'](getOpencodeConfigDir,'project'),_0xef0882['XewIF']);await removeOpencodePluginConfig(_0x2c269)&&(console['log'](_0x50f2a5(0x1c1)),_0x150025=!![]);const _0x315813=join(getOpencodeConfigDir(_0xef0882['ccnGR']),_0x50f2a5(0x1be));await _0xef0882[_0x50f2a5(0x1da)](removeOpencodePluginConfig,_0x315813)&&(console[_0x50f2a5(0x1e3)](_0xef0882[_0x50f2a5(0x1d7)]),_0x150025=!![]);const _0x25eb23=await uninstallClaudePlugin();_0x25eb23&&(console[_0x50f2a5(0x1e3)](_0x50f2a5(0x1cf)),_0x150025=!![]);const _0x3dcc8e=await _0xef0882[_0x50f2a5(0x1c3)](uninstallClaudePlugin,_0xef0882['kkDcr']);_0x3dcc8e&&(console['log'](_0xef0882[_0x50f2a5(0x1b3)]),_0x150025=!![]);const _0x399ae5=await _0xef0882['UKZYo'](removeMarketplace);_0x399ae5&&(console[_0x50f2a5(0x1e3)](_0xef0882['IGkJs']),_0x150025=!![]),_0x150025?console[_0x50f2a5(0x1e3)](_0xef0882['BUOtI']):console['log'](_0xef0882['utWIV']);}
1
+ const _0x453d8b=_0x5471;(function(_0x375d16,_0x4b0d04){const _0x541a70=_0x5471,_0x5a442f=_0x375d16();while(!![]){try{const _0xb4569d=-parseInt(_0x541a70(0x19b))/0x1*(parseInt(_0x541a70(0x195))/0x2)+-parseInt(_0x541a70(0x1b2))/0x3+-parseInt(_0x541a70(0x1a9))/0x4+parseInt(_0x541a70(0x1b6))/0x5+-parseInt(_0x541a70(0x1a5))/0x6+parseInt(_0x541a70(0x199))/0x7+parseInt(_0x541a70(0x1aa))/0x8;if(_0xb4569d===_0x4b0d04)break;else _0x5a442f['push'](_0x5a442f['shift']());}catch(_0x456711){_0x5a442f['push'](_0x5a442f['shift']());}}}(_0x57b8,0xd10f8));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x5471(_0x38a3bf,_0x124410){_0x38a3bf=_0x38a3bf-0x195;const _0x57b8f1=_0x57b8();let _0x54710f=_0x57b8f1[_0x38a3bf];return _0x54710f;}import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x453d8b(0x1c3),'feature-tracker',_0x453d8b(0x1ac),_0x453d8b(0x1a0)],opencodePluginName=_0x453d8b(0x1b3);function parseJsonc(_0x2bb34f){const _0x28b6e1=_0x453d8b,_0x5493b6=_0x2bb34f['replace'](/\/\*[\s\S]*?\*\//g,''),_0x457165=_0x5493b6['replace'](/^\s*\/\/.*$/gm,''),_0x37de67=_0x457165['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x28b6e1(0x197)](_0x37de67);}function _0x57b8(){const _0x121a86=['pipe','uudZY','uninstall','e2e-test-recommender','QTvsE','log','EKCUO','\x0a✅\x20Cleanup\x20complete!\x0a','6286506omglyN','ueYYx','YqRur','WvMRr','6521204DJpkif','30947736CWEUuv','ddZEv','bug-bash','error','user','BfuOZ','oegsn','win32','3690591OkfZcJ','@ranger-testing/opencode-plugin','project','HwNsT','1699640AwOYry','ZLUNY','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','platform','aiGCc','length','udcck','push','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','uXmoP','trailhead','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','ranger','plugin','opencode.json','MJgRu','69254zcyuaN','DnFWW','parse','sAyyL','8013775GLNkaF','--scope','17sJYnLg','filter'];_0x57b8=function(){return _0x121a86;};return _0x57b8();}async function removeOpencodePluginConfig(_0x1afb36){const _0x625c05=_0x453d8b,_0xcfdc2c={'NMfDe':'string','BQHvH':function(_0x41e0c6,_0x5a9706){return _0x41e0c6(_0x5a9706);},'TdaIH':function(_0x41eccc,_0x11a293,_0x493150){return _0x41eccc(_0x11a293,_0x493150);},'YqRur':'utf-8','ZLUNY':function(_0x3f3372,_0x217b46){return _0x3f3372===_0x217b46;},'sAyyL':function(_0x1e8108,_0x555f77,_0x443d68){return _0x1e8108(_0x555f77,_0x443d68);},'Uexsw':function(_0x307429,_0x31b134){return _0x307429+_0x31b134;}};if(!_0xcfdc2c['BQHvH'](existsSync,_0x1afb36))return![];let _0x538523;try{const _0x5f2074=await _0xcfdc2c['TdaIH'](readFile,_0x1afb36,_0xcfdc2c[_0x625c05(0x1a7)]);_0x538523=parseJsonc(_0x5f2074);}catch{return![];}const _0x4f0101=Array['isArray'](_0x538523['plugin'])?_0x538523['plugin']:[];if(_0xcfdc2c[_0x625c05(0x1b7)](_0x4f0101['length'],0x0))return![];const _0x1ff01e=_0x4f0101[_0x625c05(0x19c)](_0x14656d=>{if(typeof _0x14656d!==_0xcfdc2c['NMfDe'])return!![];return _0x14656d!==opencodePluginName;});if(_0x1ff01e[_0x625c05(0x1bb)]===_0x4f0101[_0x625c05(0x1bb)])return![];return _0x1ff01e['length']===0x0?delete _0x538523['plugin']:_0x538523['plugin']=_0x1ff01e,await _0xcfdc2c[_0x625c05(0x198)](writeFile,_0x1afb36,_0xcfdc2c['Uexsw'](JSON['stringify'](_0x538523,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x508ae3){const _0xc20161=_0x453d8b,_0x43e25e={'EZFbl':function(_0x7a7e12,_0x216e97){return _0x7a7e12(_0x216e97);},'TsYya':function(_0x48aaa6,_0x5e3876){return _0x48aaa6(_0x5e3876);},'uudZY':function(_0x4aebca,_0x4235d8){return _0x4aebca===_0x4235d8;},'HwNsT':_0xc20161(0x1c4),'YlLXa':_0xc20161(0x19f),'NJYuw':'ranger@trailhead','oJplM':_0xc20161(0x19a),'pFJLm':function(_0x23d65c,_0x1b6f06,_0x5167e5,_0x3411cb){return _0x23d65c(_0x1b6f06,_0x5167e5,_0x3411cb);},'ZNbEE':'pipe','BfuOZ':'close'};return new Promise(_0x297678=>{const _0x62cd2b=_0xc20161,_0x4234ab={'WvMRr':function(_0x33181a,_0x23257c){return _0x43e25e['TsYya'](_0x33181a,_0x23257c);},'AhqFY':function(_0x4d2d90,_0x4ed3d6){const _0xd4e086=_0x5471;return _0x43e25e[_0xd4e086(0x19e)](_0x4d2d90,_0x4ed3d6);}},_0x527e01=[_0x43e25e[_0x62cd2b(0x1b5)],_0x43e25e['YlLXa'],_0x43e25e['NJYuw']];_0x508ae3&&_0x527e01[_0x62cd2b(0x1bd)](_0x43e25e['oJplM'],_0x508ae3);const _0x3a170e=_0x43e25e['pFJLm'](spawn,'claude',_0x527e01,{'stdio':_0x43e25e['ZNbEE'],'shell':_0x43e25e[_0x62cd2b(0x19e)](process[_0x62cd2b(0x1b9)],_0x62cd2b(0x1b1))});_0x3a170e['on'](_0x43e25e[_0x62cd2b(0x1af)],_0x36ab2d=>{const _0x4753c2=_0x62cd2b;_0x4234ab[_0x4753c2(0x1a8)](_0x297678,_0x4234ab['AhqFY'](_0x36ab2d,0x0));}),_0x3a170e['on'](_0x62cd2b(0x1ad),()=>{_0x43e25e['EZFbl'](_0x297678,![]);});});}async function removeMarketplace(){const _0x19dedb=_0x453d8b,_0x2b7d3d={'zwmYw':function(_0x4a9790,_0x212136){return _0x4a9790(_0x212136);},'Htzqa':function(_0x34bab7,_0x3832fc){return _0x34bab7===_0x3832fc;},'ueYYx':function(_0x11e530,_0x403ee4,_0x4e7ff9,_0x21344b){return _0x11e530(_0x403ee4,_0x4e7ff9,_0x21344b);},'TFMNF':'claude','DnFWW':'marketplace','gaPLo':_0x19dedb(0x1c0)};return new Promise(_0x364b82=>{const _0x4eed0e=_0x19dedb,_0xe0cd79=_0x2b7d3d[_0x4eed0e(0x1a6)](spawn,_0x2b7d3d['TFMNF'],['plugin',_0x2b7d3d[_0x4eed0e(0x196)],'remove',_0x2b7d3d['gaPLo']],{'stdio':_0x4eed0e(0x19d),'shell':process['platform']==='win32'});_0xe0cd79['on']('close',_0x69325a=>{_0x2b7d3d['zwmYw'](_0x364b82,_0x2b7d3d['Htzqa'](_0x69325a,0x0));}),_0xe0cd79['on']('error',()=>{_0x364b82(![]);});});}export async function clean(){const _0x53e6b6=_0x453d8b,_0x208967={'uXmoP':_0x53e6b6(0x1b8),'oegsn':'✓\x20Removed\x20stored\x20credentials','YPaiG':function(_0x2118e2){return _0x2118e2();},'ddZEv':function(_0x5c8525,_0xe092a2){return _0x5c8525(_0xe092a2);},'udcck':function(_0x41fb75,_0x56eb20,_0x22925e){return _0x41fb75(_0x56eb20,_0x22925e);},'QTvsE':function(_0x36519d,_0x1cf402){return _0x36519d(_0x1cf402);},'IlTlQ':function(_0x4a38ec,_0x4aaadb,_0x454b35){return _0x4a38ec(_0x4aaadb,_0x454b35);},'UrsVO':_0x53e6b6(0x1c5),'EKCUO':function(_0x33cddb,_0x275a79){return _0x33cddb(_0x275a79);},'wlknp':_0x53e6b6(0x1be),'SqFEk':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','ydIIw':function(_0x23800f){return _0x23800f();},'aiGCc':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','MJgRu':_0x53e6b6(0x1a4)};console['log'](_0x208967[_0x53e6b6(0x1bf)]);let _0x203e79=![];try{await deleteAllCredentials(),console['log'](_0x208967[_0x53e6b6(0x1b0)]),_0x203e79=!![];}catch{}const _0x2bf333=_0x208967['YPaiG'](getCacheFile);_0x208967['ddZEv'](existsSync,_0x2bf333)&&(await rm(_0x2bf333),_0x203e79=!![]);const _0x55c421=getRangerDir();_0x208967[_0x53e6b6(0x1ab)](existsSync,_0x55c421)&&(await rm(_0x55c421,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x203e79=!![]);const _0x25394f=_0x208967['YPaiG'](getProjectSkillsDir);for(const _0xc20588 of skillsToRemove){const _0x504855=_0x208967['udcck'](join,_0x25394f,_0xc20588);existsSync(_0x504855)&&(await _0x208967['udcck'](rm,_0x504855,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0xc20588),_0x203e79=!![]);}const _0x144153=getUserSkillsDir();for(const _0x313700 of skillsToRemove){const _0xbffc45=_0x208967[_0x53e6b6(0x1bc)](join,_0x144153,_0x313700);existsSync(_0xbffc45)&&(await rm(_0xbffc45,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x313700),_0x203e79=!![]);}const _0x30ceed=_0x208967[_0x53e6b6(0x1a1)](getOpencodeSkillsDir,'project');for(const _0x4f80f3 of skillsToRemove){const _0xf926c7=join(_0x30ceed,_0x4f80f3);_0x208967[_0x53e6b6(0x1ab)](existsSync,_0xf926c7)&&(await rm(_0xf926c7,{'recursive':!![]}),console[_0x53e6b6(0x1a2)](_0x53e6b6(0x1c2)+_0x4f80f3),_0x203e79=!![]);}const _0x3840f4=_0x208967[_0x53e6b6(0x1a1)](getOpencodeSkillsDir,'user');for(const _0x1f34ec of skillsToRemove){const _0x1e0cfa=_0x208967[_0x53e6b6(0x1bc)](join,_0x3840f4,_0x1f34ec);existsSync(_0x1e0cfa)&&(await _0x208967['IlTlQ'](rm,_0x1e0cfa,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x1f34ec),_0x203e79=!![]);}const _0x331989=_0x208967['IlTlQ'](join,_0x208967[_0x53e6b6(0x1a1)](getOpencodeConfigDir,_0x53e6b6(0x1b4)),_0x208967['UrsVO']);await _0x208967[_0x53e6b6(0x1a3)](removeOpencodePluginConfig,_0x331989)&&(console['log'](_0x208967['wlknp']),_0x203e79=!![]);const _0x49083d=join(getOpencodeConfigDir(_0x53e6b6(0x1ae)),_0x208967['UrsVO']);await removeOpencodePluginConfig(_0x49083d)&&(console['log'](_0x208967['SqFEk']),_0x203e79=!![]);const _0x22aa53=await _0x208967['ydIIw'](uninstallClaudePlugin);_0x22aa53&&(console[_0x53e6b6(0x1a2)](_0x53e6b6(0x1c1)),_0x203e79=!![]);const _0x12d2a7=await uninstallClaudePlugin('project');_0x12d2a7&&(console['log'](_0x208967[_0x53e6b6(0x1ba)]),_0x203e79=!![]);const _0x275152=await _0x208967['ydIIw'](removeMarketplace);_0x275152&&(console[_0x53e6b6(0x1a2)]('✓\x20Removed\x20trailhead\x20marketplace'),_0x203e79=!![]),_0x203e79?console[_0x53e6b6(0x1a2)](_0x208967[_0x53e6b6(0x1c6)]):console['log']('Nothing\x20to\x20clean\x20up.\x0a');}