@ranger-testing/ranger-cli 2.4.3 → 2.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) 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/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudeOverrideSettings.js +1 -0
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  66. package/build/commands/utils/userApi.js +1 -1
  67. package/build/commands/utils/version.js +1 -1
  68. package/build/commands/verifyFeature.js +1 -1
  69. package/build/commands/verifyFeatureCli.js +1 -1
  70. package/build/commands/verifyInBrowser.js +1 -1
  71. package/package.json +1 -1
package/build/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x2c8e35=_0x4aba;(function(_0x109430,_0x589553){const _0xfad91c=_0x4aba,_0x3387ce=_0x109430();while(!![]){try{const _0x3f56c7=parseInt(_0xfad91c(0x21d))/0x1*(-parseInt(_0xfad91c(0x2cd))/0x2)+parseInt(_0xfad91c(0x222))/0x3*(parseInt(_0xfad91c(0x285))/0x4)+parseInt(_0xfad91c(0x247))/0x5+parseInt(_0xfad91c(0x1f1))/0x6+parseInt(_0xfad91c(0x200))/0x7*(parseInt(_0xfad91c(0x2e3))/0x8)+parseInt(_0xfad91c(0x2c0))/0x9*(-parseInt(_0xfad91c(0x1eb))/0xa)+-parseInt(_0xfad91c(0x1be))/0xb*(parseInt(_0xfad91c(0x2d4))/0xc);if(_0x3f56c7===_0x589553)break;else _0x3387ce['push'](_0x3387ce['shift']());}catch(_0x6cea94){_0x3387ce['push'](_0x3387ce['shift']());}}}(_0x11c8,0xe19c9));import _0x449056 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x27f099=_0x4aba,_0x2bb657={'kjGqF':function(_0x37a3a,_0x1e1e08){return _0x37a3a!==_0x1e1e08;},'VuZeL':function(_0x1f67dd,_0x1a1dc7){return _0x1f67dd(_0x1a1dc7);},'bPxxU':function(_0x3479df,_0xc22163){return _0x3479df(_0xc22163);},'fcQuS':function(_0x3ddc1c,_0x3515fc,_0x30f2d7){return _0x3ddc1c(_0x3515fc,_0x30f2d7);}};let _0x191ef9=process[_0x27f099(0x268)]();const _0x36d513=parse(_0x191ef9)['root'];while(_0x2bb657['kjGqF'](_0x191ef9,_0x36d513)){if(_0x2bb657['VuZeL'](existsSync,join(_0x191ef9,_0x27f099(0x28b)))||_0x2bb657['bPxxU'](existsSync,_0x2bb657['fcQuS'](join,_0x191ef9,'.env')))return _0x191ef9;_0x191ef9=dirname(_0x191ef9);}return process[_0x27f099(0x268)]();}_0x449056['config']({'path':join(findProjectRoot(),'.env')});import _0xc1633b from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';function _0x11c8(){const _0x13fa94=['isuCP','New\x20scenario\x20description','ranger\x20config\x20set','clean','uIvGH','CiMTz','sqSKy','cEvtZ','yqzQL','bwpue','feature\x20add-checklist-item','Feature\x20review\x20ID\x20to\x20restore','wxoJR','ranger\x20feature\x20get-feedback','\x20VERIFIED','GPbnJ','headed','SFUco','Remove\x20a\x20config\x20value','dwecZ','skip-chromium','number','63aDMWdP','wQTlT','WxpUf','PFLQE','project','jUcyS','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','vIUSj','Evlcd','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','env\x20list','resume\x20[id]','Number\x20of\x20feature\x20reviews\x20to\x20skip','2zxAHJW','Name\x20of\x20the\x20profile\x20to\x20update','wrAWV','feature\x20create','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','ranger\x20start','ktwmA','9647868VIRgLH','key','profile\x20config\x20unset','XdVKW','GnqzL','\x0aUnknown\x20command:\x20','current-branch','vCsgb','ardUx','set\x20<profile>\x20<key>\x20<value>','LFkbC','hzZHl','ranger\x20delete','ZKozd','qMeMv','8748760MjmCNO','Add\x20profile\x20configuration','KWWhf','feature','wUazf','epilogue','FsKOs','config','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','SanpS','feature\x20delete','gbYVt','json','Scenario\x20index\x20(1-based)','add\x20<profile-name>','PLhPl','Optional\x20feature\x20ID','start','startsWith','--scenario','AJKOJ','start\x20[token]','CirVq','mokuc','safe-mode','add\x20env\x20<env-name>','UKoNP','LFRgZ','update\x20<profile-name>','uxsdF','KdjCs','xsMaW','EnHld','tDPvM','Initialize\x20Ranger\x20in\x20your\x20project','PFvLW','setup-ci','DDxvY','Manage\x20profiles','TBrtJ','ranger\x20auth\x20encrypt','uXYfJ','Install\x20skills\x20for\x20OpenCode','UEYLM','twMpk','Config\x20value','command','allow-insecure-localhost','parse','Evaluation:\x20','log','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','hczsf','lwGKE','uHBiF','yjNmj','FkYBY','config\x20list','--profile','ranger\x20profile\x20config\x20set','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','show','list','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','11KvQMQU','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','ihGPI','task','ZcMhY','nFSRk','get\x20<profile>\x20<key>','KNjKT','Name\x20of\x20the\x20environment','gJOyd','partial','VCSiI','boolean','ranger\x20env\x20ls','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','RXsSd','trackCommandError','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','flag','get\x20<env>\x20<key>','profile','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','lMvEu','url','aEwAG','Nkokk','LrowW','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','lpeoA','RYCKt','array','feature\x20restore','item','bGgHv','NYDiP','KMmZZ','profile\x20use','positional','QCNxz','evaluation','session-id','string','WgacE','error','336060EZClYk','WbVRj','user','ZCpEo','\x20is\x20now\x20','update\x20<env-name>','1776774kdOfwp','crHrD','NEBUI','AqhPN','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','debug-outcome','ranger\x20restore','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','restore\x20<id>','rUHBx','argv','List\x20all\x20profiles','yLwOS','help','7MloZdf','model','Profile\x20name','strictCommands','xNzgV','Feature\x20review\x20description','vTABq','ssMcv','\x0aError:\x20','Scenario\x20number\x20to\x20edit\x20(1-based)','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','fail','pRbhk','Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true','report','\x20INCOMPLETE','get-feedback\x20[id]','WVwjO','yyPXT','cdp-endpoint','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','severity','tliAp','message','disable','encrypt\x20<profile>','meSnD','profile-name','You\x20must\x20specify\x20an\x20env\x20subcommand','819202OgMGCT','Reason:\x20','Mhoth','NIYRR','gDpWw','837156RoSKeb','base-url','update','rZPbn','skillup','unhandledRejection','ranger\x20feature\x20delete','name','ranger\x20profile\x20encrypt-auth','debug-address-comments','checklist','prxIj','HkelJ','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','Summary:\x20','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','Include\x20soft-deleted\x20feature\x20reviews','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','scenario','MeMrP','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','apsRA','Install\x20scope\x20for\x20skills','ranger\x20create','ranger\x20profile\x20config\x20get','bSqkG','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','gvJAu','eYMJO','rjGsA','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','unset\x20<profile>\x20<key>','PPmDU','kFGkb','lCBQr','evaluationReason','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','4173550LVUkpS','BlVMe','Feature\x20review\x20ID','blocked','includes','scriptName','gxukL','GIOLG','token','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','incomplete','BsrVf','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','description','demandCommand','notes','auth','list\x20<profile>','ranger\x20use','show\x20[id]','version','scope','slice','verified','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','offset','verify-feature','OVGBT','HeVvY','encrypt-auth\x20<profile>','Config\x20key','env-name','include-deleted','cwd','mCUYA','ranger\x20resume','env','IUMpj','unset\x20<env>\x20<key>','ranger\x20feature\x20show','TPPDs','ranger\x20verify-feature','ZtHim','Get\x20a\x20config\x20value','jdTvz','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','limit','exit','repeat','Restore\x20a\x20soft-deleted\x20feature\x20review','fpVEj','GMQhx','zepqV','option','status','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','feature\x20get-feedback','YuQQw','HyWCr','resume','force','hook','8SNrKAw','FsWMV','zTHkT','mlePO','Awcaa','profile\x20config\x20set','.ranger','add\x20env','kUxAp','create\x20<name>','sUqri','feature\x20show','ranger\x20config\x20get','Update\x20authentication\x20for\x20an\x20existing\x20profile','issues','NpHXU','ABMSm','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','delete','sXETS','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','ranger','alias','AvMQi','ROVsn','FYxbX','Feature\x20review\x20name','EGbEc','report\x20[id]','uKLqX','usage','AdGdm','CwnRJ','Unknown\x20error','DFyEP','get-review','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)'];_0x11c8=function(){return _0x13fa94;};return _0x11c8();}import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x2c8e35(0x227),async _0xc9763b=>{const _0x40f067=getCurrentCollector();_0x40f067&&await _0x40f067['trackCommandError'](_0xc9763b),process['exitCode']=0x1;});const rawArgs=process[_0x2c8e35(0x1fc)][_0x2c8e35(0x25d)](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP=_0x2c8e35(0x20d),PROFILE_CONFIG_HELP=_0x2c8e35(0x240);function warnRenamed(_0x2e7c9d,_0x458041){const _0x1b681b=_0x2c8e35;console['error']('\x0a'+_0x2e7c9d+_0x1b681b(0x1ef)+_0x458041+'\x0a');}function argUsed(_0x46ac44){const _0x40452a=_0x2c8e35;return rawArgs['some'](_0xafdead=>_0xafdead===_0x46ac44||_0xafdead[_0x40452a(0x2f5)](_0x46ac44+'='));}function warnFlagRenamed(_0x4ec379,_0xf0f1d4,_0x46d8cd){const _0x258754=_0x2c8e35,_0x539d98={'uIvGH':function(_0x1ced07,_0x22bc89,_0x332658){return _0x1ced07(_0x22bc89,_0x332658);}};argUsed(_0xf0f1d4)&&_0x539d98[_0x258754(0x2ae)](warnRenamed,_0x4ec379+'\x20'+_0xf0f1d4,_0x4ec379+'\x20'+_0x46d8cd);}async function runGoCommand(_0x4ff821,_0x29844d=![]){const _0x605104=_0x2c8e35,_0x169e8a={'TRkoJ':function(_0x5f38a7,_0x393768,_0x5eda76){return _0x5f38a7(_0x393768,_0x5eda76);},'PQdOU':_0x605104(0x270),'RVLCL':function(_0x59edf6,_0x5c44d1,_0x2aa591,_0x262fcf){return _0x59edf6(_0x5c44d1,_0x2aa591,_0x262fcf);},'DFyEP':'--env','lpeoA':_0x605104(0x1b8),'Evlcd':'ranger\x20go','jFORe':'--task','UpZFz':'--scenario','NErWx':function(_0x454632){return _0x454632();},'LFkbC':function(_0x41dfab,_0x7a2113){return _0x41dfab??_0x7a2113;},'RYCKt':_0x605104(0x1d1),'uGJJv':'debug-address-comments','cEvtZ':function(_0x1f9521,_0x586edd){return _0x1f9521+_0x586edd;},'ardUx':function(_0x57408e,_0x42fddd){return _0x57408e===_0x42fddd;},'prxIj':_0x605104(0x2b8),'fXbKw':'partial','wQTlT':'\x20BLOCKED','dwecZ':'\x20FAILED','LrxYr':'\x0aIssues:','LFRgZ':_0x605104(0x25e)};_0x29844d&&_0x169e8a['TRkoJ'](warnRenamed,_0x169e8a['PQdOU'],'ranger\x20go');_0x169e8a['RVLCL'](warnFlagRenamed,'ranger\x20go',_0x169e8a[_0x605104(0x2a7)],_0x169e8a[_0x605104(0x1db)]),warnFlagRenamed(_0x169e8a[_0x605104(0x2c8)],_0x169e8a['jFORe'],'--notes'),_0x169e8a['RVLCL'](warnFlagRenamed,_0x169e8a['Evlcd'],'--item',_0x169e8a['UpZFz']);const _0x5f42ba=await _0x169e8a['NErWx'](loadRangerConfig),_0x2765c7=_0x4ff821[_0x605104(0x201)],_0x245846=_0x5f42ba['model'],_0x4844e3=_0x169e8a[_0x605104(0x2de)](_0x2765c7,_0x245846),_0x5083b1=_0x2765c7?_0x169e8a[_0x605104(0x1dc)]:_0x245846?_0x605104(0x2ea):'default',_0x169865=await verifyFeature({'featureId':_0x4ff821[_0x605104(0x2e6)],'profile':_0x4ff821[_0x605104(0x1d3)]??_0x4ff821[_0x605104(0x26b)],'notes':_0x4ff821['notes']??_0x4ff821[_0x605104(0x1c1)],'scenario':_0x4ff821['scenario']??_0x4ff821['item'],'startPath':_0x4ff821['start-path'],'debugOutcome':_0x4ff821[_0x605104(0x1f6)],'debugAddressComments':_0x4ff821[_0x169e8a['uGJJv']],'headed':_0x4ff821['headed'],'verifyModel':_0x4844e3,'verifyModelInput':_0x4844e3,'verifyModelSource':_0x5083b1});console[_0x605104(0x1b0)](_0x169e8a[_0x605104(0x2b1)]('\x0a','='['repeat'](0x3c))),console[_0x605104(0x1b0)](_0x169e8a[_0x605104(0x2dc)](_0x169865['evaluation'],_0x605104(0x25e))?_0x169e8a[_0x605104(0x22d)]:_0x169865['evaluation']===_0x605104(0x251)?_0x605104(0x20f):_0x169e8a[_0x605104(0x2dc)](_0x169865['evaluation'],_0x169e8a['fXbKw'])?'\x20PARTIAL':_0x169e8a[_0x605104(0x2dc)](_0x169865['evaluation'],_0x605104(0x24a))?_0x169e8a[_0x605104(0x2c1)]:_0x169e8a[_0x605104(0x2bd)]),console[_0x605104(0x1b0)]('='[_0x605104(0x277)](0x3c)),console[_0x605104(0x1b0)](_0x605104(0x230)+_0x169865['summary']),console[_0x605104(0x1b0)](_0x605104(0x1af)+_0x169865['evaluation']),console[_0x605104(0x1b0)](_0x605104(0x21e)+_0x169865[_0x605104(0x245)]),_0x169865[_0x605104(0x293)]?.['length']&&(console['log'](_0x169e8a['LrxYr']),_0x169865['issues']['forEach']((_0x24f474,_0x5471ee)=>{const _0x5238a7=_0x605104;console[_0x5238a7(0x1b0)]('\x0a'+(_0x5471ee+0x1)+'.\x20['+_0x24f474[_0x5238a7(0x215)]+']\x20'+_0x24f474[_0x5238a7(0x254)]);})),process[_0x605104(0x276)](_0x169e8a['ardUx'](_0x169865[_0x605104(0x1e6)],_0x169e8a[_0x605104(0x2fe)])?0x0:0x1);}function _0x4aba(_0x40defb,_0x39eed3){_0x40defb=_0x40defb-0x1a1;const _0x11c858=_0x11c8();let _0x4aba96=_0x11c858[_0x40defb];return _0x4aba96;}_0xc1633b(process['argv'][_0x2c8e35(0x25d)](0x2))[_0x2c8e35(0x24c)](_0x2c8e35(0x29a))[_0x2c8e35(0x2a3)](TOP_LEVEL_HELP)[_0x2c8e35(0x25b)](getCurrentVersion())['command'](_0x2c8e35(0x28e),_0x2c8e35(0x1bd),_0x25618a=>{const _0x42ef74=_0x2c8e35,_0x7cfb36={'bzOun':_0x42ef74(0x1e8),'Haqav':_0x42ef74(0x29f),'MeMrP':'description','ZtHim':'Feature\x20review\x20description','SPWJe':'array'};return _0x25618a['positional'](_0x42ef74(0x229),{'type':_0x7cfb36['bzOun'],'description':_0x7cfb36['Haqav'],'demandOption':!![]})['option'](_0x7cfb36[_0x42ef74(0x235)],{'type':'string','alias':'d','description':_0x7cfb36[_0x42ef74(0x271)]})[_0x42ef74(0x27c)]('scenario',{'type':_0x7cfb36['SPWJe'],'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option']('checklist',{'type':_0x42ef74(0x1dd),'hidden':!![]});},async _0x500d3d=>{const _0x3ecc62=_0x2c8e35,_0x3ac363={'UhGCP':function(_0x1749e2,_0x1154d6,_0x215b0c,_0x15e0ef){return _0x1749e2(_0x1154d6,_0x215b0c,_0x15e0ef);},'OVGBT':_0x3ecc62(0x2f6),'uKLqX':function(_0xa8aeb7,_0x47dc14,_0xdf259b){return _0xa8aeb7(_0x47dc14,_0xdf259b);},'GPbnJ':'create'};_0x3ac363['UhGCP'](warnFlagRenamed,'ranger\x20create','--checklist',_0x3ac363[_0x3ecc62(0x262)]);const _0x15fec7=_0x500d3d[_0x3ecc62(0x234)]||_0x500d3d['checklist'];await _0x3ac363[_0x3ecc62(0x2a2)](withTelemetry,_0x3ac363[_0x3ecc62(0x2b9)],()=>featureCreate(_0x500d3d[_0x3ecc62(0x229)],{'description':_0x500d3d[_0x3ecc62(0x254)],'scenarios':_0x15fec7}));})['command'](_0x2c8e35(0x1bc),'List\x20all\x20feature\x20reviews',_0x5cb020=>{const _0x29715b=_0x2c8e35,_0x402cb0={'PPmDU':'current-branch','AqhPN':'boolean','Fnjcx':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','qxrjY':_0x29715b(0x2cc)};return _0x5cb020[_0x29715b(0x27c)](_0x402cb0[_0x29715b(0x242)],{'type':_0x402cb0[_0x29715b(0x1f4)],'description':_0x402cb0['Fnjcx']})[_0x29715b(0x27c)]('limit',{'type':_0x29715b(0x2bf),'alias':'l','description':_0x29715b(0x246),'default':0xa})[_0x29715b(0x27c)]('offset',{'type':_0x29715b(0x2bf),'alias':'o','description':_0x402cb0['qxrjY'],'default':0x0})['option']('include-deleted',{'type':_0x29715b(0x1ca),'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x3d3cca=>{const _0x20c46f=_0x2c8e35;await withTelemetry('list',()=>featureList({'currentBranch':_0x3d3cca[_0x20c46f(0x2da)],'limit':_0x3d3cca[_0x20c46f(0x275)],'offset':_0x3d3cca[_0x20c46f(0x260)],'includeDeleted':_0x3d3cca[_0x20c46f(0x267)]}));})[_0x2c8e35(0x1ac)]('show\x20[id]',_0x2c8e35(0x2a9),_0x4b5b3e=>{const _0x33a90d=_0x2c8e35,_0x48ee80={'rxsIv':'string'};return _0x4b5b3e[_0x33a90d(0x1e4)]('id',{'type':_0x48ee80['rxsIv'],'description':_0x33a90d(0x249)});},async _0x3046b9=>{const _0x1d8df=_0x2c8e35,_0x51062e={'sDJJG':_0x1d8df(0x1bb)};await withTelemetry(_0x51062e['sDJJG'],()=>featureShow(_0x3046b9['id']));})['command'](_0x2c8e35(0x2cb),_0x2c8e35(0x233),_0x5a20d6=>{const _0x364546=_0x2c8e35,_0x218f78={'bkGOq':_0x364546(0x1e8),'Mhoth':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'};return _0x5a20d6[_0x364546(0x1e4)]('id',{'type':_0x218f78['bkGOq'],'description':_0x218f78[_0x364546(0x21f)]});},async _0x1f2234=>{const _0x5ec060=_0x2c8e35,_0x427e3a={'ihGPI':_0x5ec060(0x282)};await withTelemetry(_0x427e3a[_0x5ec060(0x1c0)],()=>featureResume(_0x1f2234['id']));})[_0x2c8e35(0x1ac)]('add-scenario\x20<description>',_0x2c8e35(0x1f5),_0x128ee6=>{const _0x250a6c=_0x2c8e35,_0x3f8f2a={'cGAUC':_0x250a6c(0x254),'bSqkG':'string','kUxAp':'Scenario\x20description','isuCP':_0x250a6c(0x253)};return _0x128ee6[_0x250a6c(0x1e4)](_0x3f8f2a['cGAUC'],{'type':_0x3f8f2a['bSqkG'],'description':_0x3f8f2a[_0x250a6c(0x28d)],'demandOption':!![]})['option']('id',{'type':_0x3f8f2a[_0x250a6c(0x23b)],'description':_0x3f8f2a[_0x250a6c(0x2aa)]});},async _0x4be08a=>{const _0x2a7576=_0x2c8e35,_0x11d8d3={'gcYjL':function(_0xee8178,_0x2289fa,_0xe7b679){return _0xee8178(_0x2289fa,_0xe7b679);}};await _0x11d8d3['gcYjL'](withTelemetry,'add-scenario',()=>featureAddScenario(_0x4be08a[_0x2a7576(0x254)],_0x4be08a['id']));})['command']('edit-scenario\x20<description>','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x230d30=>{const _0x2245a2=_0x2c8e35,_0x5e621a={'Peptj':_0x2245a2(0x254),'owYTC':_0x2245a2(0x2ab),'MfLPk':'scenario','wxoJR':'number','adxHc':_0x2245a2(0x1e8),'eeXlI':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x230d30[_0x2245a2(0x1e4)](_0x5e621a['Peptj'],{'type':_0x2245a2(0x1e8),'description':_0x5e621a['owYTC'],'demandOption':!![]})['option'](_0x5e621a['MfLPk'],{'type':_0x5e621a[_0x2245a2(0x2b6)],'description':_0x2245a2(0x209),'demandOption':!![]})['option']('id',{'type':_0x5e621a['adxHc'],'description':_0x5e621a['eeXlI']});},async _0x496498=>{const _0x138049=_0x2c8e35,_0x5cb5e9={'kFGkb':'edit-scenario'};await withTelemetry(_0x5cb5e9[_0x138049(0x243)],()=>featureEditScenario(_0x496498[_0x138049(0x254)],{'id':_0x496498['id'],'scenario':_0x496498['scenario']}));})[_0x2c8e35(0x1ac)](_0x2c8e35(0x2a1),_0x2c8e35(0x1cc),_0xbc5574=>{const _0x3afa4a=_0x2c8e35,_0x5d8962={'ZRqOP':_0x3afa4a(0x249),'NYDiP':'exclude-scenario','FYxbX':'array','ZcMhY':_0x3afa4a(0x22f),'MBkLO':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown'};return _0xbc5574['positional']('id',{'type':_0x3afa4a(0x1e8),'description':_0x5d8962['ZRqOP']})[_0x3afa4a(0x27c)](_0x5d8962[_0x3afa4a(0x1e1)],{'type':_0x5d8962[_0x3afa4a(0x29e)],'description':_0x5d8962[_0x3afa4a(0x1c2)]})['option'](_0x3afa4a(0x2ef),{'type':_0x3afa4a(0x1ca),'description':_0x5d8962['MBkLO'],'default':![]});},async _0x1f4eed=>{const _0x434d88=_0x2c8e35,_0x44b3a4={'zepqV':'exclude-scenario'},_0x48c6b8=_0x1f4eed[_0x44b3a4[_0x434d88(0x27b)]],_0x3419ee=_0x48c6b8?_0x48c6b8['map'](_0x2b5834=>Number(_0x2b5834)):undefined;await withTelemetry(_0x434d88(0x20e),()=>featureReportPrDescription(_0x1f4eed['id'],{'excludeScenarios':_0x3419ee,'json':_0x1f4eed['json']}));})[_0x2c8e35(0x1ac)]('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x54b388=>{const _0x50d478=_0x2c8e35;return _0x54b388[_0x50d478(0x1e4)]('id',{'type':'string','description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x5d8ba3=>{const _0x3da1f3=_0x2c8e35,_0x19f740={'bITNt':function(_0x19a450,_0x1aaea8,_0x3062b5){return _0x19a450(_0x1aaea8,_0x3062b5);},'GMQhx':_0x3da1f3(0x2a8)};await _0x19f740['bITNt'](withTelemetry,_0x19f740[_0x3da1f3(0x27a)],()=>featureGetReview(_0x5d8ba3['id']));})[_0x2c8e35(0x1ac)]('delete\x20[id]',_0x2c8e35(0x2d1),_0x4fc70c=>{const _0x5c2201=_0x2c8e35;return _0x4fc70c[_0x5c2201(0x1e4)]('id',{'type':_0x5c2201(0x1e8),'description':_0x5c2201(0x249)});},async _0x41ba6e=>{const _0xe24ba4=_0x2c8e35,_0x236d10={'dlhTs':function(_0xc6dfb0,_0x23b612,_0x56655e){return _0xc6dfb0(_0x23b612,_0x56655e);}};await _0x236d10['dlhTs'](withTelemetry,_0xe24ba4(0x297),()=>featureDelete(_0x41ba6e['id']));})[_0x2c8e35(0x1ac)](_0x2c8e35(0x1fa),_0x2c8e35(0x278),_0x284c8c=>{const _0x26f7de=_0x2c8e35;return _0x284c8c[_0x26f7de(0x1e4)]('id',{'type':'string','description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x3d66a2=>{const _0x5f3a23=_0x2c8e35,_0x26b2bf={'LrowW':function(_0x4261c9,_0x265e68,_0x16d6fa){return _0x4261c9(_0x265e68,_0x16d6fa);},'WSPUl':'restore'};await _0x26b2bf[_0x5f3a23(0x1d9)](withTelemetry,_0x26b2bf['WSPUl'],()=>featureRestore(_0x3d66a2['id']));})['command']('setup\x20[token]',_0x2c8e35(0x305),_0x58ceff=>{const _0x30dda7=_0x2c8e35,_0x256675={'PLhPl':'token','TBrtJ':'boolean','VJRgt':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','lYGnP':_0x30dda7(0x1e8),'gDpWw':_0x30dda7(0x1ed),'LckPB':'project','uFCgO':_0x30dda7(0x1d6),'CKGth':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'};return _0x58ceff['positional'](_0x256675[_0x30dda7(0x2f2)],{'type':_0x30dda7(0x1e8),'description':_0x30dda7(0x250)})['option'](_0x30dda7(0x2be),{'type':_0x256675[_0x30dda7(0x1a5)],'description':_0x256675['VJRgt'],'default':![]})[_0x30dda7(0x27c)]('scope',{'type':_0x256675['lYGnP'],'choices':[_0x256675[_0x30dda7(0x221)],_0x256675['LckPB']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x256675['uFCgO'],{'type':_0x256675['lYGnP'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x30dda7(0x27c)](_0x30dda7(0x283),{'type':'boolean','description':_0x30dda7(0x2c9),'default':![]})[_0x30dda7(0x27c)]('opencode',{'type':'boolean','description':_0x30dda7(0x1f9),'default':![]})['option']('allow-insecure-localhost',{'type':_0x30dda7(0x1ca),'description':_0x256675['CKGth'],'default':![]});},async _0x192bef=>{const _0x33dd0c=_0x2c8e35,_0x1c7ea2={'TbODE':function(_0x2cd802,_0x5bc28f,_0x26b0c1){return _0x2cd802(_0x5bc28f,_0x26b0c1);}};await _0x1c7ea2['TbODE'](withTelemetry,_0x33dd0c(0x2f4),_0x29c25b=>start(_0x192bef['token'],{'skipChromium':_0x192bef[_0x33dd0c(0x2be)],'scope':_0x192bef[_0x33dd0c(0x25c)],'url':_0x192bef[_0x33dd0c(0x1d6)],'force':_0x192bef['force'],'opencode':_0x192bef['opencode'],'allowInsecureLocalhost':_0x192bef['allow-insecure-localhost']},_0x29c25b));})[_0x2c8e35(0x1ac)]('setup-ci\x20<token>',_0x2c8e35(0x214),_0xbb164=>{const _0x580ca9=_0x2c8e35,_0x48f6be={'ktwmA':'string','ZKozd':'profile','KdjCs':_0x580ca9(0x1d0),'CiMTz':'base-url','PFLQE':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','meSnD':_0x580ca9(0x2be),'olCdq':'boolean'};return _0xbb164[_0x580ca9(0x1e4)]('token',{'type':_0x48f6be['ktwmA'],'description':'Ranger\x20API\x20token','demandOption':!![]})[_0x580ca9(0x27c)](_0x48f6be[_0x580ca9(0x2e1)],{'type':_0x48f6be[_0x580ca9(0x2d3)],'description':_0x48f6be[_0x580ca9(0x301)]})[_0x580ca9(0x27c)](_0x48f6be[_0x580ca9(0x2af)],{'type':_0x48f6be['ktwmA'],'description':_0x48f6be[_0x580ca9(0x2c3)]})[_0x580ca9(0x27c)](_0x48f6be[_0x580ca9(0x21a)],{'type':_0x48f6be['olCdq'],'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x295844=>{const _0x3f3117=_0x2c8e35,_0x2f9c52={'KYhQb':_0x3f3117(0x1a2)};await withTelemetry(_0x2f9c52['KYhQb'],_0x18f64a=>setupCi(_0x295844[_0x3f3117(0x24f)],{'profile':_0x295844[_0x3f3117(0x1d3)],'baseUrl':_0x295844[_0x3f3117(0x223)],'skipChromium':_0x295844['skip-chromium']},_0x18f64a));})['command']('login','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x578d8f={'rXOvH':function(_0x3e2643,_0x173e85,_0x198d59){return _0x3e2643(_0x173e85,_0x198d59);}};await _0x578d8f['rXOvH'](withTelemetry,'login',()=>login());})['command'](_0x2c8e35(0x226),'Install\x20Ranger\x20skills',_0x419dc3=>{const _0x10f71d=_0x2c8e35,_0x4b0bf8={'TCxGG':'boolean','xamLe':_0x10f71d(0x25c),'PZebt':_0x10f71d(0x2c4)};return _0x419dc3['option']('opencode',{'type':_0x4b0bf8['TCxGG'],'description':_0x10f71d(0x1a8),'default':![]})['option'](_0x4b0bf8['xamLe'],{'type':_0x10f71d(0x1e8),'choices':['user',_0x4b0bf8['PZebt']],'description':_0x10f71d(0x238)});},async _0x2917a0=>{const _0x3822ec=_0x2c8e35,_0x225a59={'jdTvz':function(_0x1b7da7,_0x192570,_0x4d0df5){return _0x1b7da7(_0x192570,_0x4d0df5);},'KNjKT':'skillup'},_0x1e5fbb=Boolean(_0x2917a0['opencode']);await _0x225a59[_0x3822ec(0x273)](withTelemetry,_0x225a59[_0x3822ec(0x1c5)],()=>skillup({'autoInstall':_0x2917a0['scope'],'platform':_0x1e5fbb?'opencode':'claude'}));})['command'](_0x2c8e35(0x2ad),'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{await withTelemetry('clean',()=>clean());})['command']('profile',_0x2c8e35(0x1a4),_0x4a6fce=>{const _0xcdfce5=_0x2c8e35,_0x47adc3={'QCNxz':'profile-name','UEYLM':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','UKoNP':'skip-auth','PFvLW':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','LJqKj':_0xcdfce5(0x296),'WxpUf':_0xcdfce5(0x283),'hzZHl':'boolean','eZcyo':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','lCBQr':_0xcdfce5(0x1e8),'CFsVH':_0xcdfce5(0x231),'PrpMD':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','hMjLV':_0xcdfce5(0x1cd),'HkelJ':'profile\x20add','Ecsmh':'cdp-endpoint','HyWCr':function(_0x4e7cd7,_0x3a7348,_0x2b7a5e){return _0x4e7cd7(_0x3a7348,_0x2b7a5e);},'sXETS':_0xcdfce5(0x1d3),'uXYfJ':_0xcdfce5(0x202),'tCVLl':'profile\x20ls','FkYBY':_0xcdfce5(0x2ce),'SanpS':_0xcdfce5(0x1d4),'WVwjO':'profile\x20update','crHrD':_0xcdfce5(0x236),'vTABq':_0xcdfce5(0x265),'JqIER':_0xcdfce5(0x2d5),'eYMJO':'Config\x20key\x20to\x20remove','rUHBx':_0xcdfce5(0x28a),'jUcyS':'Set\x20a\x20config\x20value','GEilD':_0xcdfce5(0x258),'IVEjQ':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','vCsgb':'use\x20<profile-name>','AvMQi':'Switch\x20to\x20using\x20a\x20specific\x20profile','eVIaF':_0xcdfce5(0x2eb),'YVsiY':_0xcdfce5(0x2ff),'Xndpv':'Manage\x20profile\x20configuration','aEwAG':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x4a6fce['usage'](PROFILE_HELP)['command'](_0xcdfce5(0x2f1),_0xcdfce5(0x2e4),_0x56aaba=>{const _0x424080=_0xcdfce5;return _0x56aaba[_0x424080(0x1e4)](_0x47adc3[_0x424080(0x1e5)],{'type':'string','description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0x424080(0x27c)]('ci',{'type':'boolean','description':_0x47adc3[_0x424080(0x1a9)],'default':![]})['option'](_0x47adc3[_0x424080(0x2fd)],{'type':'boolean','description':_0x47adc3[_0x424080(0x1a1)],'default':![]})[_0x424080(0x27c)](_0x424080(0x1d6),{'type':'string','description':_0x47adc3['LJqKj']})[_0x424080(0x27c)](_0x47adc3[_0x424080(0x2c2)],{'type':_0x47adc3[_0x424080(0x2df)],'description':_0x47adc3['eZcyo'],'default':![]})['option'](_0x424080(0x213),{'type':_0x47adc3[_0x424080(0x244)],'description':_0x47adc3['CFsVH']})[_0x424080(0x27c)]('allow-insecure-localhost',{'type':_0x424080(0x1ca),'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]})[_0x424080(0x27c)](_0x424080(0x2fb),{'type':_0x424080(0x1ca),'description':_0x47adc3['PrpMD'],'default':![]})[_0x424080(0x27c)]('setup-header',{'type':_0x424080(0x1e8),'array':!![],'description':_0x47adc3['hMjLV']});},async _0x1124c5=>{const _0x3fe4d1=_0xcdfce5;await withTelemetry(_0x47adc3[_0x3fe4d1(0x22e)],_0x3fe193=>addEnv(_0x1124c5[_0x3fe4d1(0x21b)],{'ci':_0x1124c5['ci'],'skipAuth':_0x1124c5['skip-auth'],'url':_0x1124c5[_0x3fe4d1(0x1d6)],'force':_0x1124c5['force'],'cdpEndpoint':_0x1124c5[_0x3fe4d1(0x213)],'allowInsecureLocalhost':_0x1124c5['allow-insecure-localhost'],'safeMode':_0x1124c5['safe-mode'],'setupHeader':_0x1124c5['setup-header']},_0x3fe193),{'isElectron':Boolean(_0x1124c5[_0x47adc3['Ecsmh']])});})['command'](_0x47adc3[_0xcdfce5(0x2db)],_0x47adc3[_0xcdfce5(0x29c)],_0x2ca28e=>{const _0x49136c=_0xcdfce5;return _0x2ca28e[_0x49136c(0x1e4)](_0x49136c(0x21b),{'type':_0x47adc3[_0x49136c(0x244)],'description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x558a37=>{const _0x3f2926=_0xcdfce5;await _0x47adc3[_0x3f2926(0x281)](withTelemetry,_0x3f2926(0x1e3),()=>useEnv(_0x558a37['profile-name']));})['command'](_0xcdfce5(0x264),_0x47adc3['eVIaF'],_0x5c0a16=>{const _0x1102ea=_0xcdfce5;return _0x5c0a16['positional'](_0x47adc3[_0x1102ea(0x298)],{'type':_0x47adc3[_0x1102ea(0x244)],'description':_0x47adc3[_0x1102ea(0x1a7)],'demandOption':!![]});},async _0x215e24=>{const _0x232480=_0xcdfce5;await withTelemetry('profile\x20encrypt-auth',()=>authEncrypt(_0x215e24[_0x232480(0x1d3)]));})['command']('ls',_0xcdfce5(0x1fd),()=>{},async()=>{await withTelemetry(_0x47adc3['tCVLl'],()=>envList());})[_0xcdfce5(0x1ac)](_0x47adc3['YVsiY'],_0xcdfce5(0x292),_0x411ed5=>{const _0x21e839=_0xcdfce5;return _0x411ed5['positional']('profile-name',{'type':'string','description':_0x47adc3[_0x21e839(0x1b6)],'demandOption':!![]})['option']('allow-insecure-localhost',{'type':_0x47adc3[_0x21e839(0x2df)],'description':_0x47adc3[_0x21e839(0x2ec)]});},async _0x1e5da3=>{const _0x29896a=_0xcdfce5;await withTelemetry(_0x47adc3[_0x29896a(0x211)],_0x1275f5=>updateEnv(_0x1e5da3[_0x29896a(0x21b)],_0x1275f5,{'allowInsecureLocalhost':_0x1e5da3[_0x29896a(0x1ad)]}));})[_0xcdfce5(0x1ac)]('config',_0x47adc3['Xndpv'],_0x225224=>{const _0x82817b=_0xcdfce5,_0x524634={'veIIS':function(_0x360f90,_0x3abaa4,_0x38d5a1){return _0x47adc3['HyWCr'](_0x360f90,_0x3abaa4,_0x38d5a1);},'aFTTB':_0x47adc3[_0x82817b(0x1fb)],'xsMaW':'profile\x20config\x20get','qXTUr':'profile','AJKOJ':_0x47adc3['uXYfJ'],'twMpk':function(_0x566e5e,_0x2a351a,_0x4f1117){return _0x566e5e(_0x2a351a,_0x4f1117);}};return _0x225224['usage'](PROFILE_CONFIG_HELP)['command'](_0x82817b(0x2dd),_0x47adc3[_0x82817b(0x2c5)],_0x4d9157=>{const _0x44cdb2=_0x82817b;return _0x4d9157['positional'](_0x47adc3[_0x44cdb2(0x298)],{'type':_0x47adc3[_0x44cdb2(0x244)],'description':_0x44cdb2(0x202),'demandOption':!![]})['positional'](_0x44cdb2(0x2d5),{'type':_0x47adc3['lCBQr'],'description':_0x47adc3[_0x44cdb2(0x1f2)],'demandOption':!![]})['positional']('value',{'type':'string','description':_0x44cdb2(0x1ab),'demandOption':!![]});},async _0x1d5867=>{await _0x524634['veIIS'](withTelemetry,_0x524634['aFTTB'],()=>configSet(_0x1d5867['profile'],_0x1d5867['key'],_0x1d5867['value']));})['command'](_0x82817b(0x1c4),_0x82817b(0x272),_0x345979=>{const _0x1c7719=_0x82817b;return _0x345979['positional'](_0x47adc3[_0x1c7719(0x298)],{'type':_0x47adc3['lCBQr'],'description':'Profile\x20name','demandOption':!![]})['positional'](_0x1c7719(0x2d5),{'type':'string','description':_0x47adc3[_0x1c7719(0x206)],'demandOption':!![]});},async _0x3a5e3d=>{const _0x2a5210=_0x82817b;await withTelemetry(_0x524634[_0x2a5210(0x302)],()=>configGet(_0x3a5e3d['profile'],_0x3a5e3d[_0x2a5210(0x2d5)]));})[_0x82817b(0x1ac)](_0x47adc3['GEilD'],'List\x20all\x20config\x20for\x20a\x20profile',_0x52f647=>{const _0x5f43fa=_0x82817b;return _0x52f647[_0x5f43fa(0x1e4)](_0x524634['qXTUr'],{'type':_0x5f43fa(0x1e8),'description':_0x524634[_0x5f43fa(0x2f7)],'demandOption':!![]});},async _0x25b898=>{const _0x329e99=_0x82817b;await _0x47adc3[_0x329e99(0x281)](withTelemetry,'profile\x20config\x20list',()=>configList(_0x25b898['profile']));})['command'](_0x82817b(0x241),_0x82817b(0x2bc),_0x4b3ca0=>{const _0xdbe120=_0x82817b;return _0x4b3ca0['positional']('profile',{'type':_0xdbe120(0x1e8),'description':_0xdbe120(0x202),'demandOption':!![]})['positional'](_0x47adc3['JqIER'],{'type':_0xdbe120(0x1e8),'description':_0x47adc3[_0xdbe120(0x23e)],'demandOption':!![]});},async _0xfc302d=>{const _0x67bb86=_0x82817b;await _0x524634[_0x67bb86(0x1aa)](withTelemetry,_0x67bb86(0x2d6),()=>configUnset(_0xfc302d[_0x67bb86(0x1d3)],_0xfc302d[_0x67bb86(0x2d5)]));})['demandCommand'](0x1,_0x47adc3['IVEjQ']);})[_0xcdfce5(0x255)](0x1,_0x47adc3[_0xcdfce5(0x1d7)]);})['command']('status',_0x2c8e35(0x1da),()=>{},async()=>{const _0xbe76b9=_0x2c8e35;await withTelemetry(_0xbe76b9(0x27d),()=>status());})['command'](_0x2c8e35(0x224),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{await withTelemetry('update',()=>update());})[_0x2c8e35(0x1ac)]('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x8922dc=>{const _0x20c9f5=_0x2c8e35,_0xcb1473={'nFSRk':_0x20c9f5(0x2e6),'ssMcv':_0x20c9f5(0x1e8),'pRbhk':_0x20c9f5(0x2f3),'lwGKE':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','wOnZQ':_0x20c9f5(0x1bf),'FsWMV':_0x20c9f5(0x2bf),'AlhyB':'Scenario\x20index\x20(1-based)','mlePO':'start-path','IHxHo':_0x20c9f5(0x201),'hsRjf':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','rjGsA':_0x20c9f5(0x1ba),'zTHkT':'debug-outcome','RmHIA':_0x20c9f5(0x1c8),'uzpSL':_0x20c9f5(0x22b),'uPvPf':_0x20c9f5(0x1c1)};return _0x8922dc['option'](_0xcb1473[_0x20c9f5(0x1c3)],{'type':_0xcb1473['ssMcv'],'description':_0xcb1473[_0x20c9f5(0x20c)]})[_0x20c9f5(0x27c)](_0x20c9f5(0x1d3),{'type':_0x20c9f5(0x1e8),'description':_0xcb1473[_0x20c9f5(0x1b3)]})['option']('notes',{'type':_0xcb1473[_0x20c9f5(0x207)],'description':_0xcb1473['wOnZQ']})[_0x20c9f5(0x27c)](_0x20c9f5(0x234),{'type':_0xcb1473[_0x20c9f5(0x286)],'description':_0xcb1473['AlhyB']})['option'](_0xcb1473[_0x20c9f5(0x288)],{'type':_0xcb1473['ssMcv'],'description':_0x20c9f5(0x299)})[_0x20c9f5(0x27c)](_0xcb1473['IHxHo'],{'type':_0x20c9f5(0x1e8),'description':_0xcb1473['hsRjf']})['option']('headed',{'type':_0x20c9f5(0x1ca),'description':_0xcb1473[_0x20c9f5(0x23f)],'default':![]})['option'](_0xcb1473[_0x20c9f5(0x287)],{'type':_0xcb1473[_0x20c9f5(0x207)],'hidden':!![],'choices':[_0x20c9f5(0x25e),_0xcb1473['RmHIA'],'blocked','failed',_0x20c9f5(0x251)]})[_0x20c9f5(0x27c)](_0xcb1473['uzpSL'],{'type':'boolean','hidden':!![]})['option']('env',{'type':_0x20c9f5(0x1e8),'hidden':!![]})['option'](_0xcb1473['uPvPf'],{'type':_0xcb1473['ssMcv'],'hidden':!![]})[_0x20c9f5(0x27c)]('item',{'type':_0xcb1473[_0x20c9f5(0x286)],'hidden':!![]});},async _0x4298a3=>{const _0x14e669=_0x2c8e35,_0x12af8a={'HeVvY':function(_0x4eeb52,_0x4fbc35){return _0x4eeb52(_0x4fbc35);}};await _0x12af8a[_0x14e669(0x263)](runGoCommand,_0x4298a3);})['command'](_0x2c8e35(0x257),![],_0x1dc033=>{const _0x26acf2=_0x2c8e35,_0x52ed30={'NpHXU':_0x26acf2(0x1e8),'LALKR':'Profile\x20name','GnqzL':function(_0x4a5064,_0x606e62,_0x3228d8){return _0x4a5064(_0x606e62,_0x3228d8);},'BlVMe':_0x26acf2(0x1a6)};return _0x1dc033[_0x26acf2(0x1ac)](_0x26acf2(0x219),![],_0x14f52c=>{const _0x4a572c=_0x26acf2;return _0x14f52c[_0x4a572c(0x1e4)]('profile',{'type':_0x52ed30[_0x4a572c(0x294)],'description':_0x52ed30['LALKR'],'demandOption':!![]});},async _0x353f8c=>{const _0x5a33fb=_0x26acf2;_0x52ed30[_0x5a33fb(0x2d8)](warnRenamed,_0x52ed30[_0x5a33fb(0x248)],_0x5a33fb(0x22a)),await authEncrypt(_0x353f8c['profile']);})[_0x26acf2(0x255)](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})['command'](_0x2c8e35(0x2f8),![],_0x1ec752=>{const _0x2358eb=_0x2c8e35,_0x3bb31c={'yjNmj':_0x2358eb(0x24f),'gbYVt':_0x2358eb(0x250),'wcgqb':'skip-chromium','DDxvY':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','lekmr':'scope','JEKSk':'project','RTZCU':'url','qGBuP':'string','meutH':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','CwnRJ':'force','wQRKX':_0x2358eb(0x2c9)};return _0x1ec752['positional'](_0x3bb31c[_0x2358eb(0x1b5)],{'type':'string','description':_0x3bb31c[_0x2358eb(0x2ee)]})['option'](_0x3bb31c['wcgqb'],{'type':'boolean','description':_0x3bb31c[_0x2358eb(0x1a3)],'default':![]})['option'](_0x3bb31c['lekmr'],{'type':'string','choices':[_0x2358eb(0x1ed),_0x3bb31c['JEKSk']],'description':_0x2358eb(0x1b1)})['option'](_0x3bb31c['RTZCU'],{'type':_0x3bb31c['qGBuP'],'description':_0x3bb31c['meutH']})['option'](_0x3bb31c[_0x2358eb(0x2a5)],{'type':_0x2358eb(0x1ca),'description':_0x3bb31c['wQRKX'],'default':![]});},async _0x497b45=>{const _0x10794b=_0x2c8e35;warnRenamed(_0x10794b(0x2d2),'ranger\x20setup'),await withTelemetry('start',_0x41e2e8=>start(_0x497b45[_0x10794b(0x24f)],{'skipChromium':_0x497b45['skip-chromium'],'scope':_0x497b45[_0x10794b(0x25c)],'url':_0x497b45[_0x10794b(0x1d6)],'force':_0x497b45['force']},_0x41e2e8));})['command'](_0x2c8e35(0x261),![],_0x18367f=>{const _0x433ebc=_0x2c8e35,_0x3c2f35={'gvJAu':_0x433ebc(0x1e8),'uDshc':_0x433ebc(0x27e),'FsKOs':_0x433ebc(0x1df),'dcNfl':'profile','tjPjj':'scenario','gxukL':'start-path','IUMpj':_0x433ebc(0x299),'GIOLG':_0x433ebc(0x201),'DiAxP':_0x433ebc(0x2ba),'OHrLa':_0x433ebc(0x1ca),'NsNOq':_0x433ebc(0x1f6),'IoKOu':'partial','yLwOS':'incomplete'};return _0x18367f['option']('env',{'type':_0x3c2f35['gvJAu'],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})['option']('task',{'type':_0x3c2f35['gvJAu'],'description':_0x3c2f35['uDshc']})[_0x433ebc(0x27c)](_0x3c2f35[_0x433ebc(0x2e9)],{'type':'number','description':_0x433ebc(0x2f0)})['option'](_0x3c2f35['dcNfl'],{'type':_0x3c2f35[_0x433ebc(0x23d)],'hidden':!![]})['option'](_0x433ebc(0x256),{'type':_0x3c2f35['gvJAu'],'hidden':!![]})['option'](_0x3c2f35['tjPjj'],{'type':'number','hidden':!![]})['option'](_0x3c2f35[_0x433ebc(0x24d)],{'type':'string','description':_0x3c2f35[_0x433ebc(0x26c)]})[_0x433ebc(0x27c)](_0x3c2f35[_0x433ebc(0x24e)],{'type':_0x3c2f35[_0x433ebc(0x23d)],'hidden':!![]})[_0x433ebc(0x27c)](_0x3c2f35['DiAxP'],{'type':_0x3c2f35['OHrLa'],'hidden':!![],'default':![]})[_0x433ebc(0x27c)](_0x3c2f35['NsNOq'],{'type':'string','hidden':!![],'choices':['verified',_0x3c2f35['IoKOu'],'blocked','failed',_0x3c2f35[_0x433ebc(0x1fe)]]});},async _0x54f35a=>{const _0xae1f6a=_0x2c8e35,_0x484850={'VCSiI':function(_0x4683d6,_0x19c0cc,_0x2bf64a){return _0x4683d6(_0x19c0cc,_0x2bf64a);}};await _0x484850[_0xae1f6a(0x1c9)](runGoCommand,_0x54f35a,!![]);})['command'](_0x2c8e35(0x2fc),![],_0x42d69a=>{const _0x4c9737=_0x2c8e35,_0x252010={'aRzEE':'boolean','CirVq':'skip-auth'};return _0x42d69a[_0x4c9737(0x1e4)](_0x4c9737(0x266),{'type':'string','description':_0x4c9737(0x1f8),'demandOption':!![]})['option']('ci',{'type':_0x252010['aRzEE'],'description':_0x4c9737(0x2c6),'default':![]})['option'](_0x252010[_0x4c9737(0x2f9)],{'type':_0x4c9737(0x1ca),'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]});},async _0x202414=>{const _0x29f787=_0x2c8e35,_0x2c9ba5={'AdGdm':'ranger\x20add\x20env','gJOyd':_0x29f787(0x28c)};warnRenamed(_0x2c9ba5[_0x29f787(0x2a4)],'ranger\x20profile\x20add'),await withTelemetry(_0x2c9ba5[_0x29f787(0x1c7)],_0x227154=>addEnv(_0x202414[_0x29f787(0x266)],{'ci':_0x202414['ci'],'skipAuth':_0x202414['skip-auth']},_0x227154));})[_0x2c8e35(0x1ac)]('use\x20<env-name>',![],_0x7e9439=>{const _0x45c5ef=_0x2c8e35,_0x1d65e4={'lsXdx':'env-name','mokuc':_0x45c5ef(0x1c6)};return _0x7e9439['positional'](_0x1d65e4['lsXdx'],{'type':'string','description':_0x1d65e4[_0x45c5ef(0x2fa)],'demandOption':!![]});},async _0x1b6ce1=>{const _0x371f18=_0x2c8e35,_0x395e24={'yvoxP':function(_0x378e30,_0x535a27,_0x1a49af){return _0x378e30(_0x535a27,_0x1a49af);},'WbVRj':_0x371f18(0x259),'wUazf':'ranger\x20profile\x20use','kMCLF':'use'};_0x395e24['yvoxP'](warnRenamed,_0x395e24[_0x371f18(0x1ec)],_0x395e24[_0x371f18(0x2e7)]),await withTelemetry(_0x395e24['kMCLF'],()=>useEnv(_0x1b6ce1[_0x371f18(0x266)]));})['command']('config',![],_0x37745b=>{const _0x3c350a=_0x2c8e35,_0x47de27={'RXsSd':_0x3c350a(0x2d5),'SFUco':_0x3c350a(0x1e8),'EGbEc':'value','Awcaa':function(_0x13931b,_0x26c841,_0xa855c6){return _0x13931b(_0x26c841,_0xa855c6);},'wMOLm':_0x3c350a(0x2ac),'mQliF':_0x3c350a(0x26b),'xSrJs':_0x3c350a(0x265),'OKkVy':_0x3c350a(0x23a),'mCUYA':'config\x20get','tMEJi':'ranger\x20profile\x20config\x20list','Nkokk':_0x3c350a(0x1b7),'uHBiF':'Environment\x20name','TiKMa':'Config\x20key\x20to\x20remove','XaFxs':'ranger\x20profile\x20config\x20unset','KMmZZ':'config\x20unset','GiqLp':'set\x20<env>\x20<key>\x20<value>','NIYRR':_0x3c350a(0x26d),'yyPXT':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x37745b['command'](_0x47de27['GiqLp'],![],_0x5f081e=>{const _0x5ad234=_0x3c350a;return _0x5f081e['positional']('env',{'type':_0x5ad234(0x1e8),'description':'Environment\x20name','demandOption':!![]})['positional'](_0x47de27[_0x5ad234(0x1ce)],{'type':_0x47de27[_0x5ad234(0x2bb)],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})['positional'](_0x47de27[_0x5ad234(0x2a0)],{'type':_0x47de27[_0x5ad234(0x2bb)],'description':_0x5ad234(0x1ab),'demandOption':!![]});},async _0x210511=>{const _0x14fa8d=_0x3c350a;_0x47de27['Awcaa'](warnRenamed,_0x47de27['wMOLm'],_0x14fa8d(0x1b9)),await withTelemetry('config\x20set',()=>configSet(_0x210511[_0x14fa8d(0x26b)],_0x210511[_0x14fa8d(0x2d5)],_0x210511['value']));})['command'](_0x3c350a(0x1d2),![],_0x1a1a57=>{const _0xfa89dd=_0x3c350a;return _0x1a1a57['positional'](_0x47de27['mQliF'],{'type':_0xfa89dd(0x1e8),'description':'Environment\x20name','demandOption':!![]})['positional']('key',{'type':_0x47de27['SFUco'],'description':_0x47de27['xSrJs'],'demandOption':!![]});},async _0x21abe1=>{const _0x391e56=_0x3c350a;warnRenamed(_0x391e56(0x291),_0x47de27['OKkVy']),await _0x47de27[_0x391e56(0x289)](withTelemetry,_0x47de27[_0x391e56(0x269)],()=>configGet(_0x21abe1[_0x391e56(0x26b)],_0x21abe1[_0x391e56(0x2d5)]));})[_0x3c350a(0x1ac)]('list\x20<env>',![],_0x13d8c4=>{const _0x4b9cc6=_0x3c350a;return _0x13d8c4[_0x4b9cc6(0x1e4)](_0x47de27['mQliF'],{'type':'string','description':'Environment\x20name','demandOption':!![]});},async _0xe49952=>{const _0x4b7910=_0x3c350a;_0x47de27['Awcaa'](warnRenamed,'ranger\x20config\x20list',_0x47de27['tMEJi']),await withTelemetry(_0x47de27[_0x4b7910(0x1d8)],()=>configList(_0xe49952[_0x4b7910(0x26b)]));})['command'](_0x47de27[_0x3c350a(0x220)],![],_0x4f53bb=>{const _0x578a10=_0x3c350a;return _0x4f53bb[_0x578a10(0x1e4)](_0x47de27['mQliF'],{'type':_0x578a10(0x1e8),'description':_0x47de27[_0x578a10(0x1b4)],'demandOption':!![]})['positional']('key',{'type':_0x578a10(0x1e8),'description':_0x47de27['TiKMa'],'demandOption':!![]});},async _0x53569e=>{const _0x416ead=_0x3c350a;warnRenamed('ranger\x20config\x20unset',_0x47de27['XaFxs']),await withTelemetry(_0x47de27[_0x416ead(0x1e2)],()=>configUnset(_0x53569e['env'],_0x53569e['key']));})['demandCommand'](0x1,_0x47de27[_0x3c350a(0x212)]);})['command']('env',![],_0x15570e=>{const _0x104a02=_0x2c8e35,_0xb3a757={'AOADY':_0x104a02(0x2ca),'EYjBd':_0x104a02(0x266),'yqzQL':'string','sqSKy':'Name\x20of\x20the\x20environment\x20to\x20update','apsRA':function(_0x1db345,_0x422647,_0x4ffecb){return _0x1db345(_0x422647,_0x4ffecb);},'TPPDs':'ranger\x20profile\x20update','EnHld':'env\x20update'};return _0x15570e[_0x104a02(0x1ac)]('ls',![],()=>{},async()=>{const _0x3b975c=_0x104a02;warnRenamed(_0x3b975c(0x1cb),'ranger\x20profile\x20ls'),await withTelemetry(_0xb3a757['AOADY'],()=>envList());})['command'](_0x104a02(0x1f0),![],_0x1c5111=>{const _0x2f274d=_0x104a02;return _0x1c5111['positional'](_0xb3a757['EYjBd'],{'type':_0xb3a757[_0x2f274d(0x2b2)],'description':_0xb3a757[_0x2f274d(0x2b0)],'demandOption':!![]});},async _0x4f366e=>{const _0xa27a94=_0x104a02;_0xb3a757['apsRA'](warnRenamed,'ranger\x20env\x20update',_0xb3a757[_0xa27a94(0x26f)]),await _0xb3a757[_0xa27a94(0x237)](withTelemetry,_0xb3a757[_0xa27a94(0x303)],_0x3876de=>updateEnv(_0x4f366e['env-name'],_0x3876de));})['demandCommand'](0x1,_0x104a02(0x21c));})[_0x2c8e35(0x1ac)](_0x2c8e35(0x2e6),![],_0x53659b=>{const _0x13f602=_0x2c8e35,_0x4cb1de={'ABMSm':'string','ANivu':'Feature\x20review\x20name','FMmdx':'ranger\x20feature\x20create','kUnox':_0x13f602(0x239),'rGwJL':'--scenario','KWWhf':function(_0x5aaeff,_0x3d980c,_0x236d12){return _0x5aaeff(_0x3d980c,_0x236d12);},'wUqMD':_0x13f602(0x2da),'JnCfo':_0x13f602(0x2bf),'wrAWV':_0x13f602(0x246),'KPWHX':_0x13f602(0x260),'WfLqB':_0x13f602(0x2cc),'vIUSj':'include-deleted','hczsf':'boolean','ZCpEo':'feature\x20list','YuQQw':function(_0x5af346,_0x341091,_0x2e622e){return _0x5af346(_0x341091,_0x2e622e);},'QLUem':_0x13f602(0x290),'ugBXt':_0x13f602(0x20a),'bwpue':'feature\x20resume','VNCwn':'Scenario\x20description','WgacE':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','ROVsn':function(_0xe535ce,_0x321a22,_0x52b602){return _0xe535ce(_0x321a22,_0x52b602);},'tliAp':'ranger\x20feature\x20add-checklist-item','uNESh':'ranger\x20add-scenario','sUqri':_0x13f602(0x2b7),'YbESj':_0x13f602(0x27f),'NEBUI':function(_0x5df80,_0x383e61,_0x45960a){return _0x5df80(_0x383e61,_0x45960a);},'XGHwY':function(_0x4e69fe,_0x59bf55,_0x22d81e){return _0x4e69fe(_0x59bf55,_0x22d81e);},'BsrVf':_0x13f602(0x2ed),'COoRb':_0x13f602(0x2b5),'fpVEj':'ranger\x20feature\x20restore','bGgHv':_0x13f602(0x1f7),'EwSXu':_0x13f602(0x1de),'noUjn':_0x13f602(0x25a),'rZPbn':'delete\x20[id]','xNzgV':'restore\x20<id>'};return _0x53659b[_0x13f602(0x1ac)](_0x13f602(0x28e),![],_0x5c3642=>{const _0x48d9f0=_0x13f602;return _0x5c3642['positional'](_0x48d9f0(0x229),{'type':_0x4cb1de[_0x48d9f0(0x295)],'description':_0x4cb1de['ANivu'],'demandOption':!![]})[_0x48d9f0(0x27c)](_0x48d9f0(0x254),{'type':_0x4cb1de[_0x48d9f0(0x295)],'alias':'d','description':_0x48d9f0(0x205)})[_0x48d9f0(0x27c)]('checklist',{'type':_0x48d9f0(0x1dd),'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x48d9f0(0x234),{'type':'array','hidden':!![]});},async _0x2d0d0f=>{const _0x3578f7=_0x13f602;warnRenamed(_0x4cb1de['FMmdx'],_0x3578f7(0x239)),warnFlagRenamed(_0x4cb1de['kUnox'],'--checklist',_0x4cb1de['rGwJL']);const _0x437fe4=_0x2d0d0f['scenario']||_0x2d0d0f[_0x3578f7(0x22c)];await _0x4cb1de['KWWhf'](withTelemetry,_0x3578f7(0x2d0),()=>featureCreate(_0x2d0d0f[_0x3578f7(0x229)],{'description':_0x2d0d0f['description'],'scenarios':_0x437fe4}));})[_0x13f602(0x1ac)](_0x13f602(0x1bc),![],_0x357777=>{const _0x1745e8=_0x13f602;return _0x357777['option'](_0x4cb1de['wUqMD'],{'type':'boolean','description':_0x1745e8(0x23c)})['option']('limit',{'type':_0x4cb1de['JnCfo'],'alias':'l','description':_0x4cb1de[_0x1745e8(0x2cf)],'default':0xa})[_0x1745e8(0x27c)](_0x4cb1de['KPWHX'],{'type':'number','alias':'o','description':_0x4cb1de['WfLqB'],'default':0x0})['option'](_0x4cb1de[_0x1745e8(0x2c7)],{'type':_0x4cb1de[_0x1745e8(0x1b2)],'alias':'d','description':_0x1745e8(0x232),'default':![]});},async _0x1cd62d=>{const _0x52de9a=_0x13f602;_0x4cb1de[_0x52de9a(0x2e5)](warnRenamed,'ranger\x20feature\x20list','ranger\x20list'),await _0x4cb1de[_0x52de9a(0x2e5)](withTelemetry,_0x4cb1de[_0x52de9a(0x1ee)],()=>featureList({'currentBranch':_0x1cd62d[_0x52de9a(0x2da)],'limit':_0x1cd62d['limit'],'offset':_0x1cd62d['offset'],'includeDeleted':_0x1cd62d['include-deleted']}));})[_0x13f602(0x1ac)](_0x4cb1de['noUjn'],![],_0x5773cc=>{const _0xe501a3=_0x13f602;return _0x5773cc[_0xe501a3(0x1e4)]('id',{'type':'string','description':_0xe501a3(0x249)});},async _0x21e259=>{const _0x2e1d5a=_0x13f602;warnRenamed(_0x2e1d5a(0x26e),'ranger\x20show'),await _0x4cb1de[_0x2e1d5a(0x280)](withTelemetry,_0x4cb1de['QLUem'],()=>featureShow(_0x21e259['id']));})['command'](_0x13f602(0x2cb),![],_0x54e35c=>{const _0x1b29f5=_0x13f602;return _0x54e35c['positional']('id',{'type':_0x4cb1de[_0x1b29f5(0x295)],'description':_0x4cb1de['ugBXt']});},async _0x464536=>{const _0x12ffaa=_0x13f602;warnRenamed('ranger\x20feature\x20resume',_0x12ffaa(0x26a)),await withTelemetry(_0x4cb1de[_0x12ffaa(0x2b3)],()=>featureResume(_0x464536['id']));})[_0x13f602(0x1ac)]('add-checklist-item\x20<description>',![],_0x163c52=>{const _0x1e1aa3=_0x13f602;return _0x163c52[_0x1e1aa3(0x1e4)]('description',{'type':_0x4cb1de[_0x1e1aa3(0x295)],'description':_0x4cb1de['VNCwn'],'demandOption':!![]})['option']('id',{'type':_0x4cb1de[_0x1e1aa3(0x295)],'description':_0x4cb1de[_0x1e1aa3(0x1e9)]});},async _0x489e63=>{const _0x4112a6=_0x13f602;_0x4cb1de[_0x4112a6(0x29d)](warnRenamed,_0x4cb1de[_0x4112a6(0x216)],_0x4cb1de['uNESh']),await _0x4cb1de['KWWhf'](withTelemetry,_0x4112a6(0x2b4),()=>featureAddScenario(_0x489e63['description'],_0x489e63['id']));})['command'](_0x13f602(0x210),![],_0x279dd7=>{return _0x279dd7['positional']('id',{'type':'string','description':_0x4cb1de['WgacE']});},async _0x8b19f0=>{const _0x49b3a7=_0x13f602;warnRenamed(_0x4cb1de[_0x49b3a7(0x28f)],'ranger\x20get-review'),await _0x4cb1de[_0x49b3a7(0x280)](withTelemetry,_0x4cb1de['YbESj'],()=>featureGetReview(_0x8b19f0['id']));})[_0x13f602(0x1ac)](_0x4cb1de[_0x13f602(0x225)],![],_0x498ed9=>{const _0x2d462e=_0x13f602;return _0x498ed9[_0x2d462e(0x1e4)]('id',{'type':'string','description':_0x2d462e(0x249)});},async _0x5f5a28=>{const _0xb237b=_0x13f602;_0x4cb1de[_0xb237b(0x1f3)](warnRenamed,_0xb237b(0x228),_0xb237b(0x2e0)),await _0x4cb1de['XGHwY'](withTelemetry,_0x4cb1de[_0xb237b(0x252)],()=>featureDelete(_0x5f5a28['id']));})['command'](_0x4cb1de[_0x13f602(0x204)],![],_0x306d60=>{return _0x306d60['positional']('id',{'type':'string','description':_0x4cb1de['COoRb'],'demandOption':!![]});},async _0x52bec5=>{const _0x24f2a6=_0x13f602;warnRenamed(_0x4cb1de[_0x24f2a6(0x279)],_0x4cb1de[_0x24f2a6(0x1e0)]),await _0x4cb1de[_0x24f2a6(0x2e5)](withTelemetry,_0x4cb1de['EwSXu'],()=>featureRestore(_0x52bec5['id']));})[_0x13f602(0x255)](0x1,'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand');})[_0x2c8e35(0x1ac)](_0x2c8e35(0x284),![],_0x1c9196=>{const _0x35930c=_0x2c8e35,_0x5270c1={'XdVKW':'session-id','uxsdF':_0x35930c(0x1e8),'qMeMv':function(_0x2a33d6,_0x3be1d4,_0x3b6365){return _0x2a33d6(_0x3be1d4,_0x3b6365);},'ZNPQJ':_0x35930c(0x274),'yVQlY':'hook:disable','AkmuV':'enable','tDPvM':_0x35930c(0x218)};return _0x1c9196['command'](_0x5270c1['AkmuV'],'Enable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x2b5064=>{const _0x2d83ae=_0x35930c;return _0x2b5064[_0x2d83ae(0x27c)](_0x5270c1[_0x2d83ae(0x2d7)],{'type':_0x5270c1[_0x2d83ae(0x300)],'description':_0x2d83ae(0x274)});},async _0x421fdf=>{const _0x333003=_0x35930c;await _0x5270c1[_0x333003(0x2e2)](withTelemetry,'hook:enable',()=>hook('enable',_0x421fdf['session-id']));})['command'](_0x5270c1[_0x35930c(0x304)],'Disable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x52ddd2=>{const _0x4f4025=_0x35930c;return _0x52ddd2['option']('session-id',{'type':_0x5270c1[_0x4f4025(0x300)],'description':_0x5270c1['ZNPQJ']});},async _0x5e7863=>{const _0x538597=_0x35930c;await withTelemetry(_0x5270c1['yVQlY'],()=>hook('disable',_0x5e7863[_0x538597(0x1e7)]));})['option']('name',{'type':_0x5270c1['uxsdF'],'description':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'})['option'](_0x5270c1['XdVKW'],{'type':'string','description':_0x35930c(0x274)});},async _0xf2000a=>{const _0x278291=_0x2c8e35,_0x3ab6e6={'lMvEu':function(_0x55fb73,_0x2df9fb,_0x143e55){return _0x55fb73(_0x2df9fb,_0x143e55);}};_0xf2000a[_0x278291(0x229)]&&await _0x3ab6e6[_0x278291(0x1d5)](hook,_0xf2000a['name'],_0xf2000a['session-id']);})[_0x2c8e35(0x255)](0x1,'You\x20must\x20specify\x20a\x20command')[_0x2c8e35(0x203)]()[_0x2c8e35(0x20b)](async(_0x449434,_0x313b24,_0x324e90)=>{const _0x5227b3=_0x2c8e35,_0x12202b={'PmSHn':function(_0x2dc6ec,_0x3c3d6b){return _0x2dc6ec(_0x3c3d6b);},'ABydG':function(_0x3e7d3d,_0x57da4e){return _0x3e7d3d||_0x57da4e;}},_0x5bf4a6=_0x12202b['PmSHn'](sanitizeArgs,process['argv']['slice'](0x2)),_0x221048=getErrorType(_0x449434,_0x313b24);if(_0x449434&&_0x449434[_0x5227b3(0x24b)]('Unknown\x20command')){const _0x4b3788=process[_0x5227b3(0x1fc)][0x2];console[_0x5227b3(0x1ea)](_0x5227b3(0x2d9)+_0x4b3788),console['error'](_0x5227b3(0x25f));}else{if(_0x449434)console['error']('\x0a'+_0x449434+'\x0a');else _0x313b24&&console['error'](_0x5227b3(0x208)+_0x313b24[_0x5227b3(0x217)]+'\x0a');}await _0x12202b['PmSHn'](logDesirePath,{'rawCommand':_0x5bf4a6,'errorMessage':_0x449434||_0x313b24?.[_0x5227b3(0x217)],'errorType':_0x221048});const _0x44941a=getCurrentCollector();_0x44941a&&await _0x44941a[_0x5227b3(0x1cf)](_0x313b24||new Error(_0x12202b['ABydG'](_0x449434,_0x5227b3(0x2a6)))),process[_0x5227b3(0x276)](0x1);})[_0x2c8e35(0x2e8)]('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')[_0x2c8e35(0x1ff)]()[_0x2c8e35(0x29b)]('help','h')[_0x2c8e35(0x1ae)]();
2
+ function _0x4042(){const _0x597a6c=['scenario','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','Profile\x20name','some','QNBSd','nYQDf','auth','--task','ranger\x20feature\x20delete','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','NEIik','nyEpR','\x20VERIFIED','rQZZN','positional','parse','Get\x20a\x20config\x20value','jauGh','REdpu','lOmEQ','SiGhj','PTbPv','evaluation','ZcHGo','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','GYSgF','Config\x20value','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','skip-auth','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','Environment\x20name','yYQxx','jlifo','txCNr','rFTeI','SPJUj','version','enable','KHlNA','ltetl','slice','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','setup-header','oWcod','setup-ci\x20<token>','7978yHBBnJ','opencode','PBAGy','KBLrZ','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','5484162BbEmMJ','profile\x20config\x20get','offset','You\x20must\x20specify\x20an\x20auth\x20subcommand','boolean','iLNgm','ranger\x20verify-feature','fuWDA','sNvxf','forEach','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','feature','ranger\x20profile\x20use','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','ranger\x20setup','xBxON','qOzJE','config','iGubs','849510UbwBGe','env-name','ranger\x20profile\x20add','Feature\x20review\x20name','uNTag','clean','ranger\x20list','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','get\x20<profile>\x20<key>','ranger\x20delete','aVLXT','env\x20list','ranger\x20profile\x20config\x20get','cdp-endpoint','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','Number\x20of\x20feature\x20reviews\x20to\x20skip','tBswN','Name\x20of\x20the\x20profile','error','ranger\x20get-review','NvkJg','usage','description','Pxkim','lwfZi','poVns','ranger\x20profile\x20encrypt-auth','xQwuF','VVsrs','cVock','tSTWV','84632KryOPo','message','zEAWY','LjokP','zaEkI','show','MtsGo','zdCCy','Install\x20scope\x20for\x20skills','profile-name','abolz','15588630faBLtz','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','delete','update','force','GVgCp','1296WmevpT','WEOXU','set\x20<profile>\x20<key>\x20<value>','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','--env','Update\x20authentication\x20for\x20an\x20existing\x20profile','checklist','skip-chromium','MOsQF','base-url','AGEBW','mnjbf','notes','lazYZ','laSNy','Feature\x20review\x20ID\x20to\x20restore','trgOQ','ranger\x20profile\x20config\x20unset','summary','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','number','update\x20<profile-name>','unhandledRejection','ranger\x20add\x20env','Hfkxh','EmrsD','wPJEs','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','.\x20[','neMps','hook:enable','show\x20[id]','lSinV','7zYSMop','Mrwot','opYvl','command','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','feature\x20get-feedback','get-feedback\x20[id]','feature\x20add-checklist-item','Switch\x20to\x20using\x20a\x20specific\x20profile','alias','GboiV','Kcptt','WCbrP','UFpAk','ZcryI','restore\x20<id>','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','GbBQf','bhDhz','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.','RxFWa','ranger\x20create','pigDd','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','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','debug-outcome','setup-ci','Include\x20soft-deleted\x20feature\x20reviews','ranger\x20env\x20ls','array','MCDcM','value','ranger\x20profile\x20update','xQOuw','OQFOC','ZHiVN','debug-address-comments','oYsAH','EJGdY','Hnvwx','YXMNf','fail','demandCommand','start-path','cwd','failed','status','VxjSC','--scenario','ZCqof','VVoka','KHzPY','XzqiH','IUVsF','You\x20must\x20specify\x20an\x20env\x20subcommand','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','FkvUz','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','json','Scenario\x20index\x20(1-based)','vFrLd','xUqjQ','XQPGU','claude','JISyz','disable','profile','hAwVr','yDlsp','You\x20must\x20specify\x20a\x20config\x20subcommand','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','headed','AfClz','mjeER','TjPWu','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','length','token','496qvenUT','kaDCm','repeat','scope','incomplete','MghUP','ZWXui','nDPMo','qlvZC','FXFpz','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','MMaDF','current-branch','vDZqj','twdvI','You\x20must\x20specify\x20a\x20command','name','login','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','kdRlk','gxdyE','issues','tOElZ','create\x20<name>','edit-scenario\x20<description>','include-deleted','allow-insecure-localhost','lTsCp','gfMnp','Skip\x20Chromium\x20browser\x20installation','WmyNW','ranger\x20config\x20unset','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','--checklist','shQrQ','tuENk','nKHXk','ENjok','sFvFM','HTmQH','HxZUA','feature\x20delete','url','get\x20<env>\x20<key>','MTnCL','exclude-scenario','VFzTj','QBjJu','resume','yNTbx','RNRWO','251nFyLpO','.env','dbvRb','261822oUiDHm','verified','kcyPj','xhaVW','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','log','add\x20<profile-name>','TeuhO','limit','RQNqR','user','xADMC','46790uPeQma','model','BEqlA','caAyP','env','GccaB','root','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','ranger\x20config\x20get','feature\x20resume','safe-mode','haJoC','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','Name\x20of\x20the\x20environment','trackCommandError','hook','list\x20<profile>','list','project','config\x20get','string','ranger\x20feature\x20show','Add\x20profile\x20configuration','item','bdZCv','option','DNhvI','profile\x20encrypt-auth','ranger','ranger\x20go','LemQW','FUUHi','Config\x20key\x20to\x20remove','BhSMH','add\x20env','start\x20[token]','key','HBWtj','JkEcn','Set\x20a\x20config\x20value','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','AkZKX','encrypt\x20<profile>'];_0x4042=function(){return _0x597a6c;};return _0x4042();}const _0x3454eb=_0x2e42;(function(_0x2a5655,_0x4543bc){const _0x5b4953=_0x2e42,_0x2e52af=_0x2a5655();while(!![]){try{const _0x5b9ea1=-parseInt(_0x5b4953(0x29a))/0x1*(parseInt(_0x5b4953(0x1ac))/0x2)+-parseInt(_0x5b4953(0x1c4))/0x3+parseInt(_0x5b4953(0x267))/0x4*(parseInt(_0x5b4953(0x2aa))/0x5)+parseInt(_0x5b4953(0x1b1))/0x6*(parseInt(_0x5b4953(0x216))/0x7)+-parseInt(_0x5b4953(0x1e3))/0x8*(parseInt(_0x5b4953(0x1f4))/0x9)+parseInt(_0x5b4953(0x1ee))/0xa+parseInt(_0x5b4953(0x29d))/0xb;if(_0x5b9ea1===_0x4543bc)break;else _0x2e52af['push'](_0x2e52af['shift']());}catch(_0x4b38f4){_0x2e52af['push'](_0x2e52af['shift']());}}}(_0x4042,0xcf593));import _0x375257 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x42b80c=_0x2e42,_0x48d8d3={'QBjJu':function(_0x326c00,_0x518eb7){return _0x326c00(_0x518eb7);},'YPfwT':function(_0xb4427d,_0x5532cf){return _0xb4427d(_0x5532cf);},'xQwuF':'.ranger','CdMop':function(_0x108ee1,_0x3e32ed){return _0x108ee1(_0x3e32ed);},'lOmEQ':_0x42b80c(0x29b)};let _0x4642b1=process[_0x42b80c(0x242)]();const _0x570fa1=_0x48d8d3[_0x42b80c(0x296)](parse,_0x4642b1)[_0x42b80c(0x2b0)];while(_0x4642b1!==_0x570fa1){if(_0x48d8d3['YPfwT'](existsSync,join(_0x4642b1,_0x48d8d3[_0x42b80c(0x1df)]))||_0x48d8d3['CdMop'](existsSync,join(_0x4642b1,_0x48d8d3[_0x42b80c(0x2e8)])))return _0x4642b1;_0x4642b1=dirname(_0x4642b1);}return process['cwd']();}_0x375257[_0x3454eb(0x1c2)]({'path':join(findProjectRoot(),_0x3454eb(0x29b))});import _0x112ef3 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{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';function _0x2e42(_0x180ec4,_0x4a9ce3){_0x180ec4=_0x180ec4-0x1a7;const _0x40424f=_0x4042();let _0x2e4255=_0x40424f[_0x180ec4];return _0x2e4255;}import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x3454eb(0x20b),async _0x5080b1=>{const _0x596a6e=_0x3454eb,_0x2d78c9={'HBWtj':function(_0x2c3710){return _0x2c3710();}},_0x488a7b=_0x2d78c9[_0x596a6e(0x2cf)](getCurrentCollector);_0x488a7b&&await _0x488a7b[_0x596a6e(0x2b8)](_0x5080b1),process['exitCode']=0x1;});const rawArgs=process['argv']['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true',PROFILE_CONFIG_HELP=_0x3454eb(0x22e);function warnRenamed(_0x32e79a,_0x55b0a7){const _0x1695f1=_0x3454eb;console[_0x1695f1(0x1d6)]('\x0a'+_0x32e79a+'\x20is\x20now\x20'+_0x55b0a7+'\x0a');}function argUsed(_0x1cc722){const _0x2e947a=_0x3454eb;return rawArgs[_0x2e947a(0x2d8)](_0x33dfb1=>_0x33dfb1===_0x1cc722||_0x33dfb1['startsWith'](_0x1cc722+'='));}function warnFlagRenamed(_0x4ab3d9,_0x49b139,_0x3e6a47){const _0x27a5fd=_0x3454eb,_0x5d83a4={'wPJEs':function(_0x223af7,_0x57dbc9,_0x2c2be2){return _0x223af7(_0x57dbc9,_0x2c2be2);}};argUsed(_0x49b139)&&_0x5d83a4[_0x27a5fd(0x20f)](warnRenamed,_0x4ab3d9+'\x20'+_0x49b139,_0x4ab3d9+'\x20'+_0x3e6a47);}async function runGoCommand(_0x3e4500,_0x2d3efb=![]){const _0x5c5b13=_0x3454eb,_0x1e41a4={'yNTbx':function(_0x1c4074,_0x46b034){return _0x1c4074+_0x46b034;},'UgFGA':_0x5c5b13(0x2c7),'iGubs':_0x5c5b13(0x2dc),'jlifo':'--notes','lNUwm':'--item','dbvRb':function(_0x26b040){return _0x26b040();},'QHWTA':function(_0xc0eca6){return _0xc0eca6();},'rFTeI':function(_0x4049f7,_0x1edcff){return _0x4049f7(_0x1edcff);},'GHgvb':'debug-outcome','Kcptt':function(_0x4373fb,_0x41e8cb){return _0x4373fb+_0x41e8cb;},'xBxON':_0x5c5b13(0x29e),'ysiWu':_0x5c5b13(0x2e1),'QWovD':function(_0x467832,_0x33371d){return _0x467832===_0x33371d;},'mnzbd':_0x5c5b13(0x26b),'aFfUj':'\x20INCOMPLETE','MbyfK':'\x20BLOCKED','khsYn':'\x20FAILED'};_0x2d3efb&&warnRenamed(_0x5c5b13(0x1b7),_0x5c5b13(0x2c7));warnFlagRenamed(_0x5c5b13(0x2c7),_0x5c5b13(0x1f8),'--profile'),warnFlagRenamed(_0x1e41a4['UgFGA'],_0x1e41a4[_0x5c5b13(0x1c3)],_0x1e41a4[_0x5c5b13(0x2f5)]),warnFlagRenamed(_0x5c5b13(0x2c7),_0x1e41a4['lNUwm'],_0x5c5b13(0x246));const _0x3d4744=await _0x1e41a4[_0x5c5b13(0x29c)](loadRangerConfig),_0x292eb0=_0x1e41a4['QHWTA'](isByokEnabled),_0x380240=_0x3e4500['model'],_0x4008a4=_0x3d4744['model'],_0x3fc1d7=await _0x1e41a4[_0x5c5b13(0x2f7)](verifyFeature,{'featureId':_0x3e4500['feature'],'profile':_0x3e4500[_0x5c5b13(0x258)]??_0x3e4500['env'],'notes':_0x3e4500[_0x5c5b13(0x200)]??_0x3e4500['task'],'scenario':_0x3e4500['scenario']??_0x3e4500[_0x5c5b13(0x2c1)],'startPath':_0x3e4500['start-path'],'debugOutcome':_0x3e4500[_0x1e41a4['GHgvb']],'debugAddressComments':_0x3e4500['debug-address-comments'],'headed':_0x3e4500[_0x5c5b13(0x25e)],'byokEnabled':_0x292eb0,'flagVerifyModel':_0x380240,'configVerifyModel':_0x4008a4});console['log'](_0x1e41a4[_0x5c5b13(0x221)]('\x0a','='[_0x5c5b13(0x269)](0x3c))),console['log'](_0x3fc1d7[_0x5c5b13(0x2eb)]===_0x1e41a4[_0x5c5b13(0x1c0)]?_0x1e41a4['ysiWu']:_0x1e41a4['QWovD'](_0x3fc1d7[_0x5c5b13(0x2eb)],_0x1e41a4['mnzbd'])?_0x1e41a4['aFfUj']:_0x3fc1d7[_0x5c5b13(0x2eb)]==='partial'?'\x20PARTIAL':_0x1e41a4['QWovD'](_0x3fc1d7[_0x5c5b13(0x2eb)],'blocked')?_0x1e41a4['MbyfK']:_0x1e41a4['khsYn']),console[_0x5c5b13(0x2a3)]('='[_0x5c5b13(0x269)](0x3c)),console['log']('Summary:\x20'+_0x3fc1d7[_0x5c5b13(0x206)]),console['log']('Evaluation:\x20'+_0x3fc1d7[_0x5c5b13(0x2eb)]),console[_0x5c5b13(0x2a3)]('Reason:\x20'+_0x3fc1d7['evaluationReason']),_0x3fc1d7['issues']?.[_0x5c5b13(0x265)]&&(console['log']('\x0aIssues:'),_0x3fc1d7[_0x5c5b13(0x27c)][_0x5c5b13(0x1ba)]((_0xad8a1a,_0x29cb8e)=>{const _0x16352d=_0x5c5b13;console['log']('\x0a'+_0x1e41a4[_0x16352d(0x298)](_0x29cb8e,0x1)+_0x16352d(0x211)+_0xad8a1a['severity']+']\x20'+_0xad8a1a['description']);})),process['exit'](_0x3fc1d7['evaluation']===_0x1e41a4[_0x5c5b13(0x1c0)]?0x0:0x1);}_0x112ef3(process['argv']['slice'](0x2))['scriptName'](_0x3454eb(0x2c6))['usage'](TOP_LEVEL_HELP)[_0x3454eb(0x2f9)](getCurrentVersion())[_0x3454eb(0x219)](_0x3454eb(0x27e),'Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x3708bf=>{const _0x110a4d=_0x3454eb,_0x144101={'vaBwk':'name','EMKEi':_0x110a4d(0x2be),'tVtBy':'Feature\x20review\x20description','lSinV':'scenario','MOsQF':'array','REdpu':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'};return _0x3708bf['positional'](_0x144101['vaBwk'],{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x110a4d(0x1da),{'type':_0x144101['EMKEi'],'alias':'d','description':_0x144101['tVtBy']})['option'](_0x144101[_0x110a4d(0x215)],{'type':_0x144101['MOsQF'],'alias':'c','description':_0x144101[_0x110a4d(0x2e7)]})['option'](_0x110a4d(0x1fa),{'type':_0x144101[_0x110a4d(0x1fc)],'hidden':!![]});},async _0x16cb39=>{const _0x47fd96=_0x3454eb,_0x593d04={'mqKvy':function(_0x46b616,_0x3e18ea,_0x3d19d6,_0x1d4424){return _0x46b616(_0x3e18ea,_0x3d19d6,_0x1d4424);},'ujxED':'ranger\x20create','jauGh':'--scenario','HpFZM':function(_0x4f2d10,_0x5a9202,_0x11a867){return _0x4f2d10(_0x5a9202,_0x11a867);}};_0x593d04['mqKvy'](warnFlagRenamed,_0x593d04['ujxED'],_0x47fd96(0x288),_0x593d04[_0x47fd96(0x2e6)]);const _0x311ebc=_0x16cb39['scenario']||_0x16cb39['checklist'];await _0x593d04['HpFZM'](withTelemetry,'create',()=>featureCreate(_0x16cb39['name'],{'description':_0x16cb39['description'],'scenarios':_0x311ebc}));})[_0x3454eb(0x219)]('list','List\x20all\x20feature\x20reviews',_0x2b3111=>{const _0x238533=_0x3454eb,_0x4a10df={'VxjSC':'boolean','sFvFM':_0x238533(0x2b6),'CAIlh':_0x238533(0x1d3),'fxNPU':_0x238533(0x231)};return _0x2b3111[_0x238533(0x2c3)](_0x238533(0x273),{'type':_0x4a10df[_0x238533(0x245)],'description':_0x4a10df[_0x238533(0x28d)]})['option'](_0x238533(0x2a6),{'type':'number','alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})[_0x238533(0x2c3)](_0x238533(0x1b3),{'type':_0x238533(0x209),'alias':'o','description':_0x4a10df['CAIlh'],'default':0x0})['option']('include-deleted',{'type':'boolean','alias':'d','description':_0x4a10df['fxNPU'],'default':![]});},async _0x4da961=>{const _0xddc354=_0x3454eb,_0x139983={'XQPGU':function(_0xcb2950,_0x2599dd,_0x82d268){return _0xcb2950(_0x2599dd,_0x82d268);},'zaEkI':'list'};await _0x139983[_0xddc354(0x254)](withTelemetry,_0x139983[_0xddc354(0x1e7)],()=>featureList({'currentBranch':_0x4da961[_0xddc354(0x273)],'limit':_0x4da961['limit'],'offset':_0x4da961['offset'],'includeDeleted':_0x4da961[_0xddc354(0x280)]}));})[_0x3454eb(0x219)]('show\x20[id]',_0x3454eb(0x22d),_0x5d2691=>{const _0xa69780=_0x3454eb,_0x2f17a0={'GYSgF':'Feature\x20review\x20ID'};return _0x5d2691['positional']('id',{'type':_0xa69780(0x2be),'description':_0x2f17a0[_0xa69780(0x2ee)]});},async _0x4091ba=>{const _0x4d918a=_0x3454eb,_0x3a2c3f={'GbBQf':function(_0x3a1a0b,_0x4d17ad,_0x48fafc){return _0x3a1a0b(_0x4d17ad,_0x48fafc);}};await _0x3a2c3f[_0x4d918a(0x227)](withTelemetry,_0x4d918a(0x1e8),()=>featureShow(_0x4091ba['id']));})['command']('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x344786=>{const _0xc75bea=_0x3454eb;return _0x344786['positional']('id',{'type':'string','description':_0xc75bea(0x1be)});},async _0x642bb5=>{const _0x686524=_0x3454eb,_0x4e7928={'nmXHZ':_0x686524(0x297)};await withTelemetry(_0x4e7928['nmXHZ'],()=>featureResume(_0x642bb5['id']));})['command']('add-scenario\x20<description>','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x53c4d5=>{const _0x3c750c=_0x3454eb,_0x2164bf={'Uhsfb':'description','waqqB':'Scenario\x20description','TeuhO':_0x3c750c(0x2be)};return _0x53c4d5['positional'](_0x2164bf['Uhsfb'],{'type':'string','description':_0x2164bf['waqqB'],'demandOption':!![]})[_0x3c750c(0x2c3)]('id',{'type':_0x2164bf[_0x3c750c(0x2a5)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x55f253=>{const _0x4574eb=_0x3454eb,_0x17c867={'ZcHGo':function(_0x1b64ab,_0xe9c433,_0x1d002c){return _0x1b64ab(_0xe9c433,_0x1d002c);}};await _0x17c867[_0x4574eb(0x2ec)](withTelemetry,'add-scenario',()=>featureAddScenario(_0x55f253['description'],_0x55f253['id']));})[_0x3454eb(0x219)](_0x3454eb(0x27f),_0x3454eb(0x2f2),_0x278617=>{const _0x26852c=_0x3454eb,_0x2300c2={'SCXfR':_0x26852c(0x1da),'ZCqof':'Scenario\x20number\x20to\x20edit\x20(1-based)'};return _0x278617[_0x26852c(0x2e3)](_0x2300c2['SCXfR'],{'type':_0x26852c(0x2be),'description':'New\x20scenario\x20description','demandOption':!![]})['option'](_0x26852c(0x2d5),{'type':'number','description':_0x2300c2[_0x26852c(0x247)],'demandOption':!![]})['option']('id',{'type':_0x26852c(0x2be),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x27e68d=>{const _0xf68da1=_0x3454eb,_0x3c5f1e={'LjokP':function(_0x2d16da,_0x9c5c9c,_0x32d161){return _0x2d16da(_0x9c5c9c,_0x32d161);}};await _0x3c5f1e[_0xf68da1(0x1e6)](withTelemetry,'edit-scenario',()=>featureEditScenario(_0x27e68d[_0xf68da1(0x1da)],{'id':_0x27e68d['id'],'scenario':_0x27e68d['scenario']}));})['command']('report\x20[id]','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x200bcf=>{const _0x4aae8d=_0x3454eb,_0x993f2a={'lQJpB':_0x4aae8d(0x2be),'xeSJf':'Feature\x20review\x20ID','AkZKX':'exclude-scenario','cVock':_0x4aae8d(0x233),'OnAXJ':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','xUhZi':_0x4aae8d(0x250)};return _0x200bcf['positional']('id',{'type':_0x993f2a['lQJpB'],'description':_0x993f2a['xeSJf']})[_0x4aae8d(0x2c3)](_0x993f2a[_0x4aae8d(0x2d3)],{'type':_0x993f2a[_0x4aae8d(0x1e1)],'description':_0x993f2a['OnAXJ']})[_0x4aae8d(0x2c3)](_0x993f2a['xUhZi'],{'type':_0x4aae8d(0x1b5),'description':_0x4aae8d(0x1d2),'default':![]});},async _0x27d25b=>{const _0x3a9234=_0x3454eb,_0x4eb0a={'caAyP':_0x3a9234(0x294),'kcyPj':function(_0x23a9cf,_0x4059d4,_0x581569){return _0x23a9cf(_0x4059d4,_0x581569);},'XzqiH':'report'},_0x1da077=_0x27d25b[_0x4eb0a[_0x3a9234(0x2ad)]],_0x280484=_0x1da077?_0x1da077['map'](_0x3aac62=>Number(_0x3aac62)):undefined;await _0x4eb0a[_0x3a9234(0x29f)](withTelemetry,_0x4eb0a[_0x3a9234(0x24a)],()=>featureReportPrDescription(_0x27d25b['id'],{'excludeScenarios':_0x280484,'json':_0x27d25b[_0x3a9234(0x250)]}));})[_0x3454eb(0x219)]('get-review\x20[id]',_0x3454eb(0x2d2),_0x1048e3=>{const _0x910408=_0x3454eb,_0x10d8e6={'MELko':_0x910408(0x1ef)};return _0x1048e3[_0x910408(0x2e3)]('id',{'type':_0x910408(0x2be),'description':_0x10d8e6['MELko']});},async _0x2dc1dc=>{const _0x486143={'dxkSr':function(_0x16f5d2,_0x1c9e2f,_0x2a8063){return _0x16f5d2(_0x1c9e2f,_0x2a8063);}};await _0x486143['dxkSr'](withTelemetry,'get-review',()=>featureGetReview(_0x2dc1dc['id']));})[_0x3454eb(0x219)]('delete\x20[id]',_0x3454eb(0x2b1),_0x46d097=>{const _0x222e9e=_0x3454eb;return _0x46d097[_0x222e9e(0x2e3)]('id',{'type':_0x222e9e(0x2be),'description':'Feature\x20review\x20ID'});},async _0xddf63b=>{const _0x443462=_0x3454eb,_0x19eb91={'pigDd':function(_0x8232f1,_0x1e6c29,_0x588ec2){return _0x8232f1(_0x1e6c29,_0x588ec2);}};await _0x19eb91[_0x443462(0x22c)](withTelemetry,_0x443462(0x1f0),()=>featureDelete(_0xddf63b['id']));})[_0x3454eb(0x219)]('restore\x20<id>','Restore\x20a\x20soft-deleted\x20feature\x20review',_0x12dcf7=>{const _0x450685=_0x3454eb;return _0x12dcf7[_0x450685(0x2e3)]('id',{'type':'string','description':_0x450685(0x203),'demandOption':!![]});},async _0x5a1aff=>{const _0x173395={'ADCAs':function(_0x228ed4,_0x159ee8,_0xb8f6de){return _0x228ed4(_0x159ee8,_0xb8f6de);},'vdmhy':'restore'};await _0x173395['ADCAs'](withTelemetry,_0x173395['vdmhy'],()=>featureRestore(_0x5a1aff['id']));})['command']('setup\x20[token]','Initialize\x20Ranger\x20in\x20your\x20project',_0x241552=>{const _0x36d147=_0x3454eb,_0x2a5801={'QFaLB':_0x36d147(0x263),'TfFyf':_0x36d147(0x26a),'nYQDf':'user','QiCNc':'project','lazYZ':'url','BhSMH':_0x36d147(0x2be),'ZcryI':'force','vgEQr':'boolean','lwfZi':_0x36d147(0x281),'nyEpR':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'};return _0x241552[_0x36d147(0x2e3)]('token',{'type':_0x36d147(0x2be),'description':_0x2a5801['QFaLB']})['option'](_0x36d147(0x1fb),{'type':_0x36d147(0x1b5),'description':_0x36d147(0x262),'default':![]})[_0x36d147(0x2c3)](_0x2a5801['TfFyf'],{'type':'string','choices':[_0x2a5801[_0x36d147(0x2da)],_0x2a5801['QiCNc']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x2a5801[_0x36d147(0x201)],{'type':_0x2a5801[_0x36d147(0x2cb)],'description':_0x36d147(0x208)})['option'](_0x2a5801[_0x36d147(0x224)],{'type':_0x2a5801['vgEQr'],'description':_0x36d147(0x1b0),'default':![]})['option']('opencode',{'type':'boolean','description':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','default':![]})[_0x36d147(0x2c3)](_0x2a5801[_0x36d147(0x1dc)],{'type':'boolean','description':_0x2a5801[_0x36d147(0x2e0)],'default':![]});},async _0x2063b2=>{const _0x13f10e=_0x3454eb,_0xe2c68a={'ZWXui':function(_0x2fab25,_0x34886d,_0x565657){return _0x2fab25(_0x34886d,_0x565657);}};await _0xe2c68a[_0x13f10e(0x26d)](withTelemetry,'start',_0x18c89f=>start(_0x2063b2['token'],{'skipChromium':_0x2063b2[_0x13f10e(0x1fb)],'scope':_0x2063b2['scope'],'url':_0x2063b2[_0x13f10e(0x291)],'force':_0x2063b2[_0x13f10e(0x1f2)],'opencode':_0x2063b2['opencode'],'allowInsecureLocalhost':_0x2063b2['allow-insecure-localhost']},_0x18c89f));})['command'](_0x3454eb(0x1ab),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x4f868e=>{const _0xfe5fb=_0x3454eb,_0xf1ddee={'GISOm':_0xfe5fb(0x266),'MTnCL':'string','jmvmb':'Ranger\x20API\x20token','opYvl':_0xfe5fb(0x279),'tBswN':_0xfe5fb(0x1b5),'UTHqN':_0xfe5fb(0x284)};return _0x4f868e[_0xfe5fb(0x2e3)](_0xf1ddee['GISOm'],{'type':_0xf1ddee[_0xfe5fb(0x293)],'description':_0xf1ddee['jmvmb'],'demandOption':!![]})['option'](_0xfe5fb(0x258),{'type':'string','description':_0xf1ddee[_0xfe5fb(0x218)]})['option'](_0xfe5fb(0x1fd),{'type':_0xf1ddee[_0xfe5fb(0x293)],'description':_0xfe5fb(0x25d)})['option']('skip-chromium',{'type':_0xf1ddee[_0xfe5fb(0x1d4)],'description':_0xf1ddee['UTHqN'],'default':![]});},async _0x37200e=>{const _0x4f1171=_0x3454eb;await withTelemetry(_0x4f1171(0x230),_0x3f1280=>setupCi(_0x37200e[_0x4f1171(0x266)],{'profile':_0x37200e[_0x4f1171(0x258)],'baseUrl':_0x37200e[_0x4f1171(0x1fd)],'skipChromium':_0x37200e['skip-chromium']},_0x3f1280));})['command']('login',_0x3454eb(0x21a),()=>{},async()=>{const _0xedea81=_0x3454eb,_0x3e7ced={'aVLXT':function(_0x45321f,_0x1034a1,_0xd2fe98){return _0x45321f(_0x1034a1,_0xd2fe98);},'TjPWu':_0xedea81(0x278)};await _0x3e7ced[_0xedea81(0x1ce)](withTelemetry,_0x3e7ced[_0xedea81(0x261)],()=>login());})[_0x3454eb(0x219)]('skillup','Install\x20Ranger\x20skills',_0x232c3c=>{const _0x4a419b=_0x3454eb,_0x157a7c={'gxdyE':_0x4a419b(0x1b5),'jcDWq':'string','OLtPw':_0x4a419b(0x1eb)};return _0x232c3c['option'](_0x4a419b(0x1ad),{'type':_0x157a7c[_0x4a419b(0x27b)],'description':'Install\x20skills\x20for\x20OpenCode','default':![]})['option'](_0x4a419b(0x26a),{'type':_0x157a7c['jcDWq'],'choices':[_0x4a419b(0x2a8),'project'],'description':_0x157a7c['OLtPw']});},async _0x2b11e6=>{const _0x1b4ab1=_0x3454eb,_0x58dfb0={'neMps':function(_0x3ab6eb,_0x1e7dab){return _0x3ab6eb(_0x1e7dab);},'fZXRo':function(_0x3460da,_0x1cedfe,_0x448350){return _0x3460da(_0x1cedfe,_0x448350);}},_0x4f1bad=_0x58dfb0[_0x1b4ab1(0x212)](Boolean,_0x2b11e6[_0x1b4ab1(0x1ad)]);await _0x58dfb0['fZXRo'](withTelemetry,'skillup',()=>skillup({'autoInstall':_0x2b11e6[_0x1b4ab1(0x26a)],'platform':_0x4f1bad?_0x1b4ab1(0x1ad):_0x1b4ab1(0x255)}));})['command'](_0x3454eb(0x1c9),'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x172ba4=_0x3454eb,_0x52ea74={'gyEmV':_0x172ba4(0x1c9)};await withTelemetry(_0x52ea74['gyEmV'],()=>clean());})['command'](_0x3454eb(0x258),'Manage\x20profiles',_0x11d7a3=>{const _0x5598b3=_0x3454eb,_0x33569b={'GboiV':'profile-name','LkOsm':_0x5598b3(0x2f1),'iLNgm':'boolean','UgnPG':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','AfClz':'url','OQFOC':_0x5598b3(0x2be),'RQHKF':_0x5598b3(0x1bb),'BWExX':_0x5598b3(0x1b0),'ybmrg':'cdp-endpoint','lDinV':_0x5598b3(0x24f),'bhDhz':_0x5598b3(0x281),'Mrwot':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','QTzBH':_0x5598b3(0x2b4),'yDlsp':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','tuENk':_0x5598b3(0x210),'FXFpz':_0x5598b3(0x1d5),'NKccI':function(_0x367b37,_0x4d3946,_0x10982f){return _0x367b37(_0x4d3946,_0x10982f);},'uNTag':'profile\x20use','kdRlk':'Profile\x20name','JTVJT':function(_0x430ccc,_0x2626f1,_0x14bf3e){return _0x430ccc(_0x2626f1,_0x14bf3e);},'BjRyC':_0x5598b3(0x2c5),'blJIO':'profile\x20ls','xbemz':function(_0x12fffa,_0x4a5054,_0x2df2fc){return _0x12fffa(_0x4a5054,_0x2df2fc);},'ZHiVN':'profile','bmpOA':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','qOzJE':'profile\x20config\x20list','EmrsD':_0x5598b3(0x2d1),'laSNy':_0x5598b3(0x1cc),'LemQW':_0x5598b3(0x2e5),'SPJUj':_0x5598b3(0x2ba),'TtKDf':'List\x20all\x20config\x20for\x20a\x20profile','uynGD':'Remove\x20a\x20config\x20value','JkEcn':_0x5598b3(0x2a4),'MCDcM':_0x5598b3(0x21e),'UuvFN':'encrypt-auth\x20<profile>','AGEBW':_0x5598b3(0x226),'PFWLp':_0x5598b3(0x20a),'OxtIS':_0x5598b3(0x1f9),'SiGhj':'config','wUNtI':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x11d7a3['usage'](PROFILE_HELP)[_0x5598b3(0x219)](_0x33569b[_0x5598b3(0x2d0)],_0x5598b3(0x2c0),_0x19222f=>{const _0x191e27=_0x5598b3;return _0x19222f['positional'](_0x33569b[_0x191e27(0x220)],{'type':'string','description':_0x191e27(0x207),'demandOption':!![]})[_0x191e27(0x2c3)]('ci',{'type':_0x191e27(0x1b5),'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x33569b['LkOsm'],{'type':_0x33569b[_0x191e27(0x1b6)],'description':_0x33569b['UgnPG'],'default':![]})[_0x191e27(0x2c3)](_0x33569b[_0x191e27(0x25f)],{'type':_0x33569b['OQFOC'],'description':_0x33569b['RQHKF']})[_0x191e27(0x2c3)](_0x191e27(0x1f2),{'type':_0x33569b[_0x191e27(0x1b6)],'description':_0x33569b['BWExX'],'default':![]})[_0x191e27(0x2c3)](_0x33569b['ybmrg'],{'type':_0x33569b['OQFOC'],'description':_0x33569b['lDinV']})[_0x191e27(0x2c3)](_0x33569b[_0x191e27(0x228)],{'type':_0x33569b['iLNgm'],'description':_0x33569b[_0x191e27(0x217)],'default':![]})['option'](_0x33569b['QTzBH'],{'type':'boolean','description':_0x33569b[_0x191e27(0x25a)],'default':![]})['option']('setup-header',{'type':'string','array':!![],'description':_0x33569b[_0x191e27(0x28a)]});},async _0x420f7a=>{const _0x268a09=_0x5598b3;await withTelemetry('profile\x20add',_0x3bbfdf=>addEnv(_0x420f7a['profile-name'],{'ci':_0x420f7a['ci'],'skipAuth':_0x420f7a[_0x268a09(0x2f1)],'url':_0x420f7a['url'],'force':_0x420f7a[_0x268a09(0x1f2)],'cdpEndpoint':_0x420f7a[_0x268a09(0x1d1)],'allowInsecureLocalhost':_0x420f7a[_0x268a09(0x281)],'safeMode':_0x420f7a[_0x268a09(0x2b4)],'setupHeader':_0x420f7a[_0x268a09(0x1a9)]},_0x3bbfdf),{'isElectron':Boolean(_0x420f7a[_0x33569b['ybmrg']])});})['command']('use\x20<profile-name>',_0x33569b[_0x5598b3(0x234)],_0x320bc4=>{const _0x4b6945=_0x5598b3;return _0x320bc4['positional'](_0x33569b['GboiV'],{'type':_0x33569b['OQFOC'],'description':_0x33569b[_0x4b6945(0x270)],'demandOption':!![]});},async _0x45803b=>{const _0x4691de=_0x5598b3;await _0x33569b['NKccI'](withTelemetry,_0x33569b[_0x4691de(0x1c8)],()=>useEnv(_0x45803b['profile-name']));})[_0x5598b3(0x219)](_0x33569b['UuvFN'],_0x33569b[_0x5598b3(0x1fe)],_0x5efb55=>{const _0x2320fa=_0x5598b3;return _0x5efb55[_0x2320fa(0x2e3)]('profile',{'type':_0x33569b['OQFOC'],'description':_0x33569b['kdRlk'],'demandOption':!![]});},async _0x1461e2=>{await _0x33569b['JTVJT'](withTelemetry,_0x33569b['BjRyC'],()=>authEncrypt(_0x1461e2['profile']));})[_0x5598b3(0x219)]('ls','List\x20all\x20profiles',()=>{},async()=>{await withTelemetry(_0x33569b['blJIO'],()=>envList());})['command'](_0x33569b['PFWLp'],_0x33569b['OxtIS'],_0x4af1be=>{const _0x2f96a4=_0x5598b3;return _0x4af1be['positional'](_0x2f96a4(0x1ec),{'type':_0x2f96a4(0x2be),'description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]})[_0x2f96a4(0x2c3)](_0x2f96a4(0x281),{'type':_0x33569b[_0x2f96a4(0x1b6)],'description':_0x2f96a4(0x24d)});},async _0x44c2a9=>{await withTelemetry('profile\x20update',_0x316bef=>updateEnv(_0x44c2a9['profile-name'],_0x316bef,{'allowInsecureLocalhost':_0x44c2a9['allow-insecure-localhost']}));})['command'](_0x33569b[_0x5598b3(0x2e9)],'Manage\x20profile\x20configuration',_0x488788=>{const _0x1eb476=_0x5598b3,_0x18b72b={'rbHWK':_0x33569b[_0x1eb476(0x239)],'poVns':_0x33569b[_0x1eb476(0x27a)],'IUVsF':_0x33569b['bmpOA'],'Hfkxh':_0x1eb476(0x2ef),'tSTWV':_0x33569b[_0x1eb476(0x1c1)],'xUqjQ':_0x33569b['OQFOC']};return _0x488788[_0x1eb476(0x1d9)](PROFILE_CONFIG_HELP)[_0x1eb476(0x219)](_0x1eb476(0x1f6),_0x33569b[_0x1eb476(0x20e)],_0xbdaf13=>{const _0x5ccd9d=_0x1eb476;return _0xbdaf13[_0x5ccd9d(0x2e3)](_0x18b72b['rbHWK'],{'type':'string','description':_0x18b72b[_0x5ccd9d(0x1dd)],'demandOption':!![]})[_0x5ccd9d(0x2e3)](_0x5ccd9d(0x2ce),{'type':'string','description':_0x18b72b[_0x5ccd9d(0x24b)],'demandOption':!![]})['positional'](_0x5ccd9d(0x235),{'type':'string','description':_0x18b72b[_0x5ccd9d(0x20d)],'demandOption':!![]});},async _0x5df8c5=>{const _0x27083b=_0x1eb476;await withTelemetry('profile\x20config\x20set',()=>configSet(_0x5df8c5[_0x27083b(0x258)],_0x5df8c5[_0x27083b(0x2ce)],_0x5df8c5['value']));})['command'](_0x33569b[_0x1eb476(0x202)],_0x33569b[_0x1eb476(0x2c8)],_0x56fd95=>{const _0x52541a=_0x1eb476;return _0x56fd95['positional']('profile',{'type':'string','description':_0x33569b[_0x52541a(0x27a)],'demandOption':!![]})[_0x52541a(0x2e3)]('key',{'type':_0x33569b[_0x52541a(0x238)],'description':'Config\x20key','demandOption':!![]});},async _0xecc52b=>{const _0x22f562=_0x1eb476;await _0x33569b['xbemz'](withTelemetry,_0x22f562(0x1b2),()=>configGet(_0xecc52b['profile'],_0xecc52b[_0x22f562(0x2ce)]));})['command'](_0x33569b[_0x1eb476(0x2f8)],_0x33569b['TtKDf'],_0x436ae1=>{const _0x1dcbbc=_0x1eb476;return _0x436ae1['positional'](_0x33569b['ZHiVN'],{'type':_0x33569b['OQFOC'],'description':_0x33569b[_0x1dcbbc(0x27a)],'demandOption':!![]});},async _0x3f3d0a=>{const _0x1ebdfe=_0x1eb476;await withTelemetry(_0x18b72b[_0x1ebdfe(0x1e2)],()=>configList(_0x3f3d0a[_0x1ebdfe(0x258)]));})['command']('unset\x20<profile>\x20<key>',_0x33569b['uynGD'],_0x5b8cb0=>{const _0x47d043=_0x1eb476;return _0x5b8cb0[_0x47d043(0x2e3)](_0x18b72b['rbHWK'],{'type':_0x18b72b[_0x47d043(0x253)],'description':'Profile\x20name','demandOption':!![]})[_0x47d043(0x2e3)]('key',{'type':'string','description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0xa31dd0=>{const _0xb17614=_0x1eb476;await withTelemetry('profile\x20config\x20unset',()=>configUnset(_0xa31dd0[_0xb17614(0x258)],_0xa31dd0['key']));})[_0x1eb476(0x240)](0x1,_0x1eb476(0x2a2));})[_0x5598b3(0x240)](0x1,_0x33569b['wUNtI']);})[_0x3454eb(0x219)](_0x3454eb(0x244),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x19eb4a=_0x3454eb,_0x594372={'QNBSd':function(_0x5c84d5,_0x42cd18,_0x186d22){return _0x5c84d5(_0x42cd18,_0x186d22);}};await _0x594372[_0x19eb4a(0x2d9)](withTelemetry,_0x19eb4a(0x244),()=>status());})[_0x3454eb(0x219)](_0x3454eb(0x1f1),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x245998=_0x3454eb;await withTelemetry(_0x245998(0x1f1),()=>update());})['command']('go',_0x3454eb(0x264),_0x3f4245=>{const _0x3fdcd0=_0x3454eb,_0x4ab30f={'abolz':_0x3fdcd0(0x2be),'YXMNf':'number','lNAYa':_0x3fdcd0(0x251),'KHzPY':'start-path','pGzab':_0x3fdcd0(0x229),'kaDCm':'headed','YfUkv':_0x3fdcd0(0x271),'KHlNA':_0x3fdcd0(0x29e),'trgOQ':'partial','qViAT':'blocked','wDImB':_0x3fdcd0(0x2ae)};return _0x3f4245[_0x3fdcd0(0x2c3)]('feature',{'type':_0x3fdcd0(0x2be),'description':'Optional\x20feature\x20ID'})['option']('profile',{'type':_0x4ab30f[_0x3fdcd0(0x1ed)],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x3fdcd0(0x2c3)]('notes',{'type':_0x3fdcd0(0x2be),'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})['option']('scenario',{'type':_0x4ab30f[_0x3fdcd0(0x23e)],'description':_0x4ab30f['lNAYa']})[_0x3fdcd0(0x2c3)](_0x4ab30f[_0x3fdcd0(0x249)],{'type':_0x3fdcd0(0x2be),'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})[_0x3fdcd0(0x2c3)]('model',{'type':'string','description':_0x4ab30f['pGzab']})[_0x3fdcd0(0x2c3)](_0x4ab30f[_0x3fdcd0(0x268)],{'type':'boolean','description':_0x4ab30f['YfUkv'],'default':![]})[_0x3fdcd0(0x2c3)](_0x3fdcd0(0x22f),{'type':'string','hidden':!![],'choices':[_0x4ab30f[_0x3fdcd0(0x2fb)],_0x4ab30f[_0x3fdcd0(0x204)],_0x4ab30f['qViAT'],_0x3fdcd0(0x243),_0x3fdcd0(0x26b)]})[_0x3fdcd0(0x2c3)](_0x3fdcd0(0x23a),{'type':_0x3fdcd0(0x1b5),'hidden':!![]})[_0x3fdcd0(0x2c3)](_0x4ab30f['wDImB'],{'type':_0x4ab30f[_0x3fdcd0(0x1ed)],'hidden':!![]})[_0x3fdcd0(0x2c3)]('task',{'type':'string','hidden':!![]})['option']('item',{'type':'number','hidden':!![]});},async _0x2d35b1=>{const _0x113801=_0x3454eb,_0x2fec54={'twdvI':function(_0x37d50c,_0x269085){return _0x37d50c(_0x269085);}};await _0x2fec54[_0x113801(0x275)](runGoCommand,_0x2d35b1);})[_0x3454eb(0x219)](_0x3454eb(0x2db),![],_0x11ab22=>{const _0x12cec2=_0x3454eb,_0x33a14b={'xADMC':'ranger\x20auth\x20encrypt','jfHUu':_0x12cec2(0x2d4),'zIYaF':_0x12cec2(0x1b4)};return _0x11ab22[_0x12cec2(0x219)](_0x33a14b['jfHUu'],![],_0x4db4aa=>{const _0x396a2b=_0x12cec2;return _0x4db4aa[_0x396a2b(0x2e3)]('profile',{'type':'string','description':_0x396a2b(0x2d7),'demandOption':!![]});},async _0x4078ae=>{const _0x83417d=_0x12cec2;warnRenamed(_0x33a14b[_0x83417d(0x2a9)],_0x83417d(0x1de)),await authEncrypt(_0x4078ae['profile']);})['demandCommand'](0x1,_0x33a14b['zIYaF']);},()=>{})['command'](_0x3454eb(0x2cd),![],_0x21767d=>{const _0x589c03=_0x3454eb,_0x438e0a={'lTsCp':'string','bdZCv':'skip-chromium','HxZUA':_0x589c03(0x26a),'FkvUz':_0x589c03(0x2bc),'MtsGo':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','NvkJg':_0x589c03(0x291),'XARkm':'boolean','GccaB':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url'};return _0x21767d[_0x589c03(0x2e3)](_0x589c03(0x266),{'type':_0x438e0a['lTsCp'],'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})['option'](_0x438e0a[_0x589c03(0x2c2)],{'type':'boolean','description':_0x589c03(0x262),'default':![]})['option'](_0x438e0a[_0x589c03(0x28f)],{'type':_0x438e0a[_0x589c03(0x282)],'choices':[_0x589c03(0x2a8),_0x438e0a[_0x589c03(0x24e)]],'description':_0x438e0a[_0x589c03(0x1e9)]})['option'](_0x438e0a[_0x589c03(0x1d8)],{'type':_0x438e0a['lTsCp'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x589c03(0x1f2),{'type':_0x438e0a['XARkm'],'description':_0x438e0a[_0x589c03(0x2af)],'default':![]});},async _0x4f6f05=>{const _0x3e32a6=_0x3454eb,_0x5c3b05={'kfvPA':'ranger\x20start','hAwVr':_0x3e32a6(0x1bf)};warnRenamed(_0x5c3b05['kfvPA'],_0x5c3b05[_0x3e32a6(0x259)]),await withTelemetry('start',_0x339d21=>start(_0x4f6f05['token'],{'skipChromium':_0x4f6f05['skip-chromium'],'scope':_0x4f6f05['scope'],'url':_0x4f6f05[_0x3e32a6(0x291)],'force':_0x4f6f05['force']},_0x339d21));})['command']('verify-feature',![],_0x3462ba=>{const _0x5406a2=_0x3454eb,_0x1c51c9={'UFpAk':'string','DpzbA':_0x5406a2(0x2ed),'zdCCy':'number','tQoct':'notes','sNTvO':'scenario','PTbPv':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','oYsAH':_0x5406a2(0x2ab),'FkhRS':'debug-outcome','WCbrP':'partial','bePHE':'blocked','uUaLu':_0x5406a2(0x243),'GVgCp':_0x5406a2(0x26b)};return _0x3462ba['option'](_0x5406a2(0x2ae),{'type':_0x1c51c9[_0x5406a2(0x223)],'description':_0x5406a2(0x2d6)})[_0x5406a2(0x2c3)]('task',{'type':_0x5406a2(0x2be),'description':_0x1c51c9['DpzbA']})[_0x5406a2(0x2c3)](_0x5406a2(0x2c1),{'type':_0x1c51c9[_0x5406a2(0x1ea)],'description':'Scenario\x20index\x20(1-based)'})[_0x5406a2(0x2c3)]('profile',{'type':_0x1c51c9[_0x5406a2(0x223)],'hidden':!![]})[_0x5406a2(0x2c3)](_0x1c51c9['tQoct'],{'type':_0x1c51c9[_0x5406a2(0x223)],'hidden':!![]})['option'](_0x1c51c9['sNTvO'],{'type':_0x1c51c9[_0x5406a2(0x1ea)],'hidden':!![]})['option'](_0x5406a2(0x241),{'type':_0x5406a2(0x2be),'description':_0x1c51c9[_0x5406a2(0x2ea)]})['option'](_0x1c51c9[_0x5406a2(0x23b)],{'type':_0x5406a2(0x2be),'hidden':!![]})[_0x5406a2(0x2c3)](_0x5406a2(0x25e),{'type':'boolean','hidden':!![],'default':![]})['option'](_0x1c51c9['FkhRS'],{'type':_0x5406a2(0x2be),'hidden':!![],'choices':[_0x5406a2(0x29e),_0x1c51c9[_0x5406a2(0x222)],_0x1c51c9['bePHE'],_0x1c51c9['uUaLu'],_0x1c51c9[_0x5406a2(0x1f3)]]});},async _0x1b6f98=>{await runGoCommand(_0x1b6f98,!![]);})['command']('add\x20env\x20<env-name>',![],_0x2fd886=>{const _0x2771d3=_0x3454eb,_0x23a22c={'RNRWO':'env-name','xhaVW':'boolean'};return _0x2fd886['positional'](_0x23a22c[_0x2771d3(0x299)],{'type':_0x2771d3(0x2be),'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x2771d3(0x1b5),'description':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option']('skip-auth',{'type':_0x23a22c[_0x2771d3(0x2a0)],'description':_0x2771d3(0x2f0),'default':![]});},async _0x4b2cd6=>{const _0x137073=_0x3454eb,_0x4c4622={'rQZZN':_0x137073(0x20c),'FUUHi':function(_0xd44ebd,_0x4371e0,_0x43db4b){return _0xd44ebd(_0x4371e0,_0x43db4b);}};warnRenamed(_0x4c4622[_0x137073(0x2e2)],_0x137073(0x1c6)),await _0x4c4622[_0x137073(0x2c9)](withTelemetry,_0x137073(0x2cc),_0x4835e7=>addEnv(_0x4b2cd6[_0x137073(0x1c5)],{'ci':_0x4b2cd6['ci'],'skipAuth':_0x4b2cd6['skip-auth']},_0x4835e7));})[_0x3454eb(0x219)]('use\x20<env-name>',![],_0x4f707c=>{const _0x495889=_0x3454eb;return _0x4f707c['positional'](_0x495889(0x1c5),{'type':'string','description':_0x495889(0x2b7),'demandOption':!![]});},async _0x2995ff=>{const _0x158305=_0x3454eb,_0x2aaf6a={'vDZqj':function(_0x59b02b,_0x4c1c3e,_0x2c3ec2){return _0x59b02b(_0x4c1c3e,_0x2c3ec2);},'KBLrZ':'ranger\x20use'};_0x2aaf6a[_0x158305(0x274)](warnRenamed,_0x2aaf6a[_0x158305(0x1af)],_0x158305(0x1bd)),await _0x2aaf6a['vDZqj'](withTelemetry,'use',()=>useEnv(_0x2995ff[_0x158305(0x1c5)]));})[_0x3454eb(0x219)]('config',![],_0x44af88=>{const _0x3cf729=_0x3454eb,_0x340253={'sNvxf':_0x3cf729(0x2be),'IqCqf':'Config\x20value','NEIik':function(_0x5adfd2,_0x24bf26,_0x30876b){return _0x5adfd2(_0x24bf26,_0x30876b);},'nKHXk':'ranger\x20config\x20set','xQOuw':_0x3cf729(0x2f3),'QJSrN':'key','zEAWY':_0x3cf729(0x1d0),'DNhvI':'env','rpvCN':function(_0x2b4993,_0x357794,_0x1ee350){return _0x2b4993(_0x357794,_0x1ee350);},'qPkPA':'ranger\x20config\x20list','aHrhJ':'config\x20list','VVsrs':_0x3cf729(0x286),'mnjbf':_0x3cf729(0x205),'oWcod':function(_0x145cdf,_0x4b8461,_0x27f56d){return _0x145cdf(_0x4b8461,_0x27f56d);},'WmyNW':'set\x20<env>\x20<key>\x20<value>','jcTAs':_0x3cf729(0x25b)};return _0x44af88[_0x3cf729(0x219)](_0x340253[_0x3cf729(0x285)],![],_0x325157=>{const _0xf6b774=_0x3cf729;return _0x325157[_0xf6b774(0x2e3)](_0xf6b774(0x2ae),{'type':_0x340253['sNvxf'],'description':_0xf6b774(0x2f3),'demandOption':!![]})[_0xf6b774(0x2e3)](_0xf6b774(0x2ce),{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})['positional']('value',{'type':_0x340253['sNvxf'],'description':_0x340253['IqCqf'],'demandOption':!![]});},async _0x895f9=>{const _0x401170=_0x3cf729;_0x340253['NEIik'](warnRenamed,_0x340253[_0x401170(0x28b)],'ranger\x20profile\x20config\x20set'),await _0x340253[_0x401170(0x2df)](withTelemetry,'config\x20set',()=>configSet(_0x895f9[_0x401170(0x2ae)],_0x895f9['key'],_0x895f9['value']));})['command'](_0x3cf729(0x292),![],_0x124c2c=>{const _0x937519=_0x3cf729;return _0x124c2c[_0x937519(0x2e3)](_0x937519(0x2ae),{'type':_0x340253[_0x937519(0x1b9)],'description':_0x340253[_0x937519(0x237)],'demandOption':!![]})[_0x937519(0x2e3)](_0x340253['QJSrN'],{'type':_0x340253['sNvxf'],'description':'Config\x20key','demandOption':!![]});},async _0x2ae578=>{const _0x57fdf1=_0x3cf729;warnRenamed(_0x57fdf1(0x2b2),_0x340253[_0x57fdf1(0x1e5)]),await withTelemetry(_0x57fdf1(0x2bd),()=>configGet(_0x2ae578['env'],_0x2ae578['key']));})['command']('list\x20<env>',![],_0x2541f6=>{const _0x4df484=_0x3cf729;return _0x2541f6[_0x4df484(0x2e3)](_0x340253[_0x4df484(0x2c4)],{'type':'string','description':_0x4df484(0x2f3),'demandOption':!![]});},async _0x54b809=>{const _0x36c969=_0x3cf729;_0x340253['rpvCN'](warnRenamed,_0x340253['qPkPA'],'ranger\x20profile\x20config\x20list'),await _0x340253[_0x36c969(0x2df)](withTelemetry,_0x340253['aHrhJ'],()=>configList(_0x54b809[_0x36c969(0x2ae)]));})[_0x3cf729(0x219)]('unset\x20<env>\x20<key>',![],_0x5a47fa=>{const _0x29b627=_0x3cf729;return _0x5a47fa['positional'](_0x340253[_0x29b627(0x2c4)],{'type':_0x29b627(0x2be),'description':_0x29b627(0x2f3),'demandOption':!![]})['positional'](_0x340253['QJSrN'],{'type':_0x340253['sNvxf'],'description':_0x29b627(0x2ca),'demandOption':!![]});},async _0x312521=>{const _0x40942f=_0x3cf729;warnRenamed(_0x340253[_0x40942f(0x1e0)],_0x340253[_0x40942f(0x1ff)]),await _0x340253[_0x40942f(0x1aa)](withTelemetry,'config\x20unset',()=>configUnset(_0x312521['env'],_0x312521[_0x40942f(0x2ce)]));})['demandCommand'](0x1,_0x340253['jcTAs']);})[_0x3454eb(0x219)](_0x3454eb(0x2ae),![],_0x299b5a=>{const _0x223f73=_0x3454eb,_0x21bfab={'AjVWP':'ranger\x20profile\x20ls','YuXih':_0x223f73(0x1cf),'dLlcP':'env-name','shQrQ':'string','XIMgZ':'ranger\x20env\x20update','QjWaR':_0x223f73(0x236),'hoNES':function(_0x4e46c5,_0x5c22de,_0x2c1d3f){return _0x4e46c5(_0x5c22de,_0x2c1d3f);},'qlvZC':'env\x20update'};return _0x299b5a[_0x223f73(0x219)]('ls',![],()=>{},async()=>{const _0x5f2d80=_0x223f73;warnRenamed(_0x5f2d80(0x232),_0x21bfab['AjVWP']),await withTelemetry(_0x21bfab['YuXih'],()=>envList());})['command']('update\x20<env-name>',![],_0x4d43aa=>{const _0x180c3b=_0x223f73;return _0x4d43aa[_0x180c3b(0x2e3)](_0x21bfab['dLlcP'],{'type':_0x21bfab[_0x180c3b(0x289)],'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x59df2d=>{const _0x40db7f=_0x223f73;warnRenamed(_0x21bfab['XIMgZ'],_0x21bfab['QjWaR']),await _0x21bfab['hoNES'](withTelemetry,_0x21bfab[_0x40db7f(0x26f)],_0x2f13ec=>updateEnv(_0x59df2d[_0x40db7f(0x1c5)],_0x2f13ec));})[_0x223f73(0x240)](0x1,_0x223f73(0x24c));})[_0x3454eb(0x219)](_0x3454eb(0x1bc),![],_0x359462=>{const _0x34ba41=_0x3454eb,_0x587a7a={'txCNr':_0x34ba41(0x277),'HTmQH':_0x34ba41(0x2be),'XQmPZ':'Feature\x20review\x20description','ncqjh':_0x34ba41(0x233),'EJGdY':function(_0x52eff1,_0x4d646e,_0x41545f){return _0x52eff1(_0x4d646e,_0x41545f);},'gzQRE':'ranger\x20feature\x20create','mjeER':function(_0x357d2f,_0x3a6aae,_0x4606c8,_0x559c2b){return _0x357d2f(_0x3a6aae,_0x4606c8,_0x559c2b);},'wshlK':'ranger\x20create','hUksZ':_0x34ba41(0x246),'Ibotz':'feature\x20create','haJoC':'boolean','gfMnp':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','JISyz':'number','FGTvw':_0x34ba41(0x1f7),'pZenK':_0x34ba41(0x231),'Pxkim':_0x34ba41(0x1ca),'lhClx':'Feature\x20review\x20ID','WEOXU':_0x34ba41(0x2bf),'oOoQp':'ranger\x20show','MMaDF':'feature\x20show','dYjHP':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','MghUP':'ranger\x20feature\x20resume','PMBxZ':'ranger\x20resume','GWaIB':_0x34ba41(0x1da),'KbGwp':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','vFrLd':'ranger\x20feature\x20add-checklist-item','oMxzb':'ranger\x20add-scenario','nDPMo':_0x34ba41(0x21d),'ENjok':'ranger\x20feature\x20get-feedback','Hnvwx':_0x34ba41(0x1d7),'ltetl':_0x34ba41(0x2dd),'pzflH':_0x34ba41(0x290),'fuWDA':_0x34ba41(0x203),'RxFWa':'ranger\x20feature\x20restore','VFzTj':function(_0x924a78,_0x111769,_0x567600){return _0x924a78(_0x111769,_0x567600);},'RQNqR':'feature\x20restore','hUepN':_0x34ba41(0x2bb),'OJMGk':_0x34ba41(0x287)};return _0x359462['command'](_0x34ba41(0x27e),![],_0x155725=>{const _0x13c7a8=_0x34ba41;return _0x155725['positional'](_0x587a7a[_0x13c7a8(0x2f6)],{'type':_0x587a7a[_0x13c7a8(0x28e)],'description':_0x13c7a8(0x1c7),'demandOption':!![]})['option']('description',{'type':_0x587a7a[_0x13c7a8(0x28e)],'alias':'d','description':_0x587a7a['XQmPZ']})['option'](_0x13c7a8(0x1fa),{'type':'array','alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x13c7a8(0x2d5),{'type':_0x587a7a['ncqjh'],'hidden':!![]});},async _0x57d60a=>{const _0x21a429=_0x34ba41;_0x587a7a[_0x21a429(0x23c)](warnRenamed,_0x587a7a['gzQRE'],_0x21a429(0x22b)),_0x587a7a[_0x21a429(0x260)](warnFlagRenamed,_0x587a7a['wshlK'],'--checklist',_0x587a7a['hUksZ']);const _0x1d7284=_0x57d60a['scenario']||_0x57d60a['checklist'];await withTelemetry(_0x587a7a['Ibotz'],()=>featureCreate(_0x57d60a[_0x21a429(0x277)],{'description':_0x57d60a[_0x21a429(0x1da)],'scenarios':_0x1d7284}));})[_0x34ba41(0x219)](_0x587a7a['hUepN'],![],_0x148cb0=>{const _0x2c1942=_0x34ba41;return _0x148cb0['option']('current-branch',{'type':_0x587a7a[_0x2c1942(0x2b5)],'description':_0x587a7a[_0x2c1942(0x283)]})[_0x2c1942(0x2c3)](_0x2c1942(0x2a6),{'type':_0x587a7a['JISyz'],'alias':'l','description':_0x587a7a['FGTvw'],'default':0xa})['option']('offset',{'type':_0x587a7a[_0x2c1942(0x256)],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option']('include-deleted',{'type':_0x587a7a[_0x2c1942(0x2b5)],'alias':'d','description':_0x587a7a['pZenK'],'default':![]});},async _0x21cff4=>{const _0xd8ba2c=_0x34ba41;warnRenamed('ranger\x20feature\x20list',_0x587a7a[_0xd8ba2c(0x1db)]),await withTelemetry('feature\x20list',()=>featureList({'currentBranch':_0x21cff4[_0xd8ba2c(0x273)],'limit':_0x21cff4['limit'],'offset':_0x21cff4['offset'],'includeDeleted':_0x21cff4[_0xd8ba2c(0x280)]}));})['command'](_0x34ba41(0x214),![],_0x39bfd5=>{const _0x43424f=_0x34ba41;return _0x39bfd5[_0x43424f(0x2e3)]('id',{'type':_0x587a7a['HTmQH'],'description':_0x587a7a['lhClx']});},async _0x5ba44c=>{const _0x3748e4=_0x34ba41;warnRenamed(_0x587a7a[_0x3748e4(0x1f5)],_0x587a7a['oOoQp']),await withTelemetry(_0x587a7a[_0x3748e4(0x272)],()=>featureShow(_0x5ba44c['id']));})[_0x34ba41(0x219)]('resume\x20[id]',![],_0x85a0e7=>{const _0x40fdff=_0x34ba41;return _0x85a0e7[_0x40fdff(0x2e3)]('id',{'type':_0x587a7a['HTmQH'],'description':_0x587a7a['dYjHP']});},async _0x573a11=>{const _0x4761e7=_0x34ba41;_0x587a7a[_0x4761e7(0x23c)](warnRenamed,_0x587a7a[_0x4761e7(0x26c)],_0x587a7a['PMBxZ']),await withTelemetry(_0x4761e7(0x2b3),()=>featureResume(_0x573a11['id']));})[_0x34ba41(0x219)]('add-checklist-item\x20<description>',![],_0xbde5af=>{const _0x291d16=_0x34ba41;return _0xbde5af[_0x291d16(0x2e3)](_0x587a7a['GWaIB'],{'type':_0x587a7a['HTmQH'],'description':'Scenario\x20description','demandOption':!![]})[_0x291d16(0x2c3)]('id',{'type':_0x291d16(0x2be),'description':_0x587a7a['KbGwp']});},async _0x5b0ad2=>{const _0x4e7abe=_0x34ba41;_0x587a7a['EJGdY'](warnRenamed,_0x587a7a[_0x4e7abe(0x252)],_0x587a7a['oMxzb']),await _0x587a7a[_0x4e7abe(0x23c)](withTelemetry,_0x587a7a[_0x4e7abe(0x26e)],()=>featureAddScenario(_0x5b0ad2['description'],_0x5b0ad2['id']));})[_0x34ba41(0x219)](_0x34ba41(0x21c),![],_0x13026d=>{const _0x3c0854=_0x34ba41;return _0x13026d[_0x3c0854(0x2e3)]('id',{'type':_0x3c0854(0x2be),'description':_0x3c0854(0x1ef)});},async _0x54113e=>{const _0x18af13=_0x34ba41;warnRenamed(_0x587a7a[_0x18af13(0x28c)],_0x587a7a[_0x18af13(0x23d)]),await _0x587a7a[_0x18af13(0x23c)](withTelemetry,_0x18af13(0x21b),()=>featureGetReview(_0x54113e['id']));})['command']('delete\x20[id]',![],_0x545c46=>{return _0x545c46['positional']('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0xb74796=>{const _0x5f1103=_0x34ba41;_0x587a7a['EJGdY'](warnRenamed,_0x587a7a[_0x5f1103(0x2fc)],_0x5f1103(0x1cd)),await _0x587a7a[_0x5f1103(0x23c)](withTelemetry,_0x587a7a['pzflH'],()=>featureDelete(_0xb74796['id']));})[_0x34ba41(0x219)](_0x34ba41(0x225),![],_0x5d09bb=>{const _0x372371=_0x34ba41;return _0x5d09bb['positional']('id',{'type':_0x587a7a[_0x372371(0x28e)],'description':_0x587a7a[_0x372371(0x1b8)],'demandOption':!![]});},async _0x18cec7=>{const _0x9fbb0b=_0x34ba41;warnRenamed(_0x587a7a[_0x9fbb0b(0x22a)],'ranger\x20restore'),await _0x587a7a[_0x9fbb0b(0x295)](withTelemetry,_0x587a7a[_0x9fbb0b(0x2a7)],()=>featureRestore(_0x18cec7['id']));})[_0x34ba41(0x240)](0x1,_0x587a7a['OJMGk']);})['command'](_0x3454eb(0x2b9),![],_0x23dd6e=>{const _0x3ec994=_0x3454eb,_0x824140={'kfzEG':'session-id','Pfqwu':_0x3ec994(0x213),'PBAGy':_0x3ec994(0x2fa),'yYQxx':_0x3ec994(0x2de),'hDZvY':_0x3ec994(0x2a1),'OJauZ':'string','VVoka':_0x3ec994(0x1cb)};return _0x23dd6e['command'](_0x824140[_0x3ec994(0x1ae)],_0x824140[_0x3ec994(0x2f4)],_0x45b0ae=>{const _0x2b5cc4=_0x3ec994;return _0x45b0ae['option'](_0x824140['kfzEG'],{'type':_0x2b5cc4(0x2be),'description':_0x2b5cc4(0x1a8)});},async _0x3a7da0=>{const _0x2a2557=_0x3ec994;await withTelemetry(_0x824140['Pfqwu'],()=>hook(_0x2a2557(0x2fa),_0x3a7da0['session-id']));})['command']('disable',_0x824140['hDZvY'],_0x220ef3=>{const _0x2dbdd9=_0x3ec994;return _0x220ef3[_0x2dbdd9(0x2c3)](_0x824140['kfzEG'],{'type':_0x2dbdd9(0x2be),'description':_0x2dbdd9(0x1a8)});},async _0x593361=>{const _0xa9273e=_0x3ec994;await withTelemetry('hook:disable',()=>hook(_0xa9273e(0x257),_0x593361['session-id']));})[_0x3ec994(0x2c3)](_0x3ec994(0x277),{'type':_0x824140['OJauZ'],'description':_0x824140[_0x3ec994(0x248)]})['option'](_0x824140['kfzEG'],{'type':_0x824140['OJauZ'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x566fdb=>{const _0x477675=_0x3454eb,_0x348c7c={'kWYRF':function(_0x30081a,_0x5739bb,_0x3cc17f){return _0x30081a(_0x5739bb,_0x3cc17f);}};_0x566fdb[_0x477675(0x277)]&&await _0x348c7c['kWYRF'](hook,_0x566fdb[_0x477675(0x277)],_0x566fdb['session-id']);})['demandCommand'](0x1,_0x3454eb(0x276))['strictCommands']()[_0x3454eb(0x23f)](async(_0x309a1a,_0x292006,_0x9bd732)=>{const _0x573a53=_0x3454eb,_0x7a768d={'DEFvd':function(_0x2e8644,_0x17fc95){return _0x2e8644(_0x17fc95);},'BEqlA':function(_0x56fc73){return _0x56fc73();},'tOElZ':'Unknown\x20error'},_0x226545=_0x7a768d['DEFvd'](sanitizeArgs,process['argv'][_0x573a53(0x1a7)](0x2)),_0x3810eb=getErrorType(_0x309a1a,_0x292006);if(_0x309a1a&&_0x309a1a['includes']('Unknown\x20command')){const _0x181ba4=process['argv'][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x181ba4),console[_0x573a53(0x1d6)](_0x573a53(0x25c));}else{if(_0x309a1a)console[_0x573a53(0x1d6)]('\x0a'+_0x309a1a+'\x0a');else _0x292006&&console[_0x573a53(0x1d6)]('\x0aError:\x20'+_0x292006['message']+'\x0a');}await logDesirePath({'rawCommand':_0x226545,'errorMessage':_0x309a1a||_0x292006?.[_0x573a53(0x1e4)],'errorType':_0x3810eb});const _0x31383f=_0x7a768d[_0x573a53(0x2ac)](getCurrentCollector);_0x31383f&&await _0x31383f['trackCommandError'](_0x292006||new Error(_0x309a1a||_0x7a768d[_0x573a53(0x27d)])),process['exit'](0x1);})['epilogue']('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()[_0x3454eb(0x21f)]('help','h')[_0x3454eb(0x2e4)]();
@@ -1 +1 @@
1
- (function(_0x3490ec,_0x1fcc92){const _0x36d76d=_0x15cf,_0x498ff0=_0x3490ec();while(!![]){try{const _0x3b24f6=parseInt(_0x36d76d(0x234))/0x1+parseInt(_0x36d76d(0x23b))/0x2*(-parseInt(_0x36d76d(0x21a))/0x3)+-parseInt(_0x36d76d(0x20a))/0x4*(-parseInt(_0x36d76d(0x1cb))/0x5)+-parseInt(_0x36d76d(0x1e7))/0x6+-parseInt(_0x36d76d(0x238))/0x7+-parseInt(_0x36d76d(0x1ff))/0x8+parseInt(_0x36d76d(0x21d))/0x9*(parseInt(_0x36d76d(0x1df))/0xa);if(_0x3b24f6===_0x1fcc92)break;else _0x498ff0['push'](_0x498ff0['shift']());}catch(_0x3a0000){_0x498ff0['push'](_0x498ff0['shift']());}}}(_0x4365,0x70b64));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x33b1fe from'inquirer';import{chromium}from'playwright';function _0x4365(){const _0x1a3492=['skipAuth','LdOqC','keys','yFnWn','log','QrrWP','oHPOX','input','url','TypeError','cbSJt','dojxj','456771WwZcyE','--allow-insecure-localhost','config_write','shouldReplace','3617600teeeJx','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','overwrite','252286eWLryE','retry','test','includes','root\x20(.ranger/)','Use\x20','Invalid\x20URL','93640uMdjqZ','kwBPk','local','GrcuT','indexOf','kCZIO','Tvrjb','WalLs','bjcWo','uoSte','newContext','stringify','fJqpF','use_suggestion','continue','slice','legacy','You\x20can\x20try\x20again\x20with\x20one\x20of:','settings.json','abort','5669470yJrzTi','\x0a\x20\x20Profile\x20\x22','isProtocolError','setupHeader','cQUSG','VbQPx','prompt','location','5437020SQkxiv','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','jbCxN','mIcPW','name','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','cWRJp','VpshG','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x20\x20ranger\x20profile\x20add\x20','safeMode','HTTP\x20','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','isTTY','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','dPBaC','force','edVFB','catch','message','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','baseUrl','error','1482968EBvtIS','length','WtJpa','--disable-features=WebBluetooth','UxKvb','manual','setupHeaders','zlVJB','\x22\x20already\x20exists.\x20Overwrite?','⚠\x20Could\x20not\x20reach\x20','cdpEndpoint','116OKgulc','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','action','CEcda','EiqXk','push','browser_auth','assign','list','KxMlL','stdout','status','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','Continue\x20anyway','path','.enc','15rwWVnE','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','EbKJg','27uMuXdO','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','http://','HEAD','CEmFv','NODE_TLS_REJECT_UNAUTHORIZED','about:blank','\x22\x20configured','RkvzW','trackPhaseEnd','\x0a⚠️\x20\x20Profile\x20\x22'];_0x4365=function(){return _0x1a3492;};return _0x4365();}import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0x15cf(_0x223b20,_0x3da1d7){_0x223b20=_0x223b20-0x1c5;const _0x436590=_0x4365();let _0x15cfd8=_0x436590[_0x223b20];return _0x15cfd8;}import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x163caf){const _0x43ad7b=_0x15cf,_0x4c473f={'WtJpa':_0x43ad7b(0x220),'DpNzL':_0x43ad7b(0x204),'nyDKp':function(_0x391aba,_0x2075a7){return _0x391aba<_0x2075a7;},'cbSJt':_0x43ad7b(0x1ca),'IaAqj':_0x43ad7b(0x231)};try{const _0x2af792=new AbortController(),_0x211f54=setTimeout(()=>_0x2af792[_0x43ad7b(0x1de)](),0x1388),_0x160c71={'method':_0x4c473f[_0x43ad7b(0x201)],'signal':_0x2af792['signal'],'redirect':_0x4c473f['DpNzL']};/^https:\/\/localhost(:\d+)?/i['test'](_0x163caf)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0xfae64e=await fetch(_0x163caf,_0x160c71);delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'],clearTimeout(_0x211f54);if(_0x4c473f['nyDKp'](_0xfae64e[_0x43ad7b(0x215)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x43ad7b(0x1f2)+_0xfae64e[_0x43ad7b(0x215)]};}catch(_0x1780e5){delete process['env'][_0x43ad7b(0x222)];const _0x4fd79d=_0x1780e5,_0x36557b=_0x4fd79d[_0x43ad7b(0x1fa)]||String(_0x1780e5),_0x53554d=_0x36557b[_0x43ad7b(0x1c7)](_0x4c473f[_0x43ad7b(0x232)])||_0x4fd79d[_0x43ad7b(0x1eb)]===_0x4c473f['IaAqj']||_0x36557b['includes']('fetch\x20failed');return{'ok':![],'error':_0x36557b,'isProtocolError':_0x53554d};}}export async function addEnv(_0x2ec199,_0x2cb121={},_0x14f151){const _0x167d21=_0x15cf,_0x2a6403={'EiqXk':'Saving\x20authentication\x20state...','zlVJB':function(_0x5a9204){return _0x5a9204();},'chutk':_0x167d21(0x1cd),'BzYsk':function(_0x2cc9f0){return _0x2cc9f0();},'meIel':function(_0x156124,_0x4144c3){return _0x156124!==_0x4144c3;},'GrcuT':function(_0x4b2842,_0x3e1999){return _0x4b2842===_0x3e1999;},'bjcWo':_0x167d21(0x21b),'cPOrm':'--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.','XiTXV':'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','CEmFv':function(_0xcbd388,_0x426533){return _0xcbd388(_0x426533);},'WalLs':function(_0x1338e9,_0x532fac){return _0x1338e9===_0x532fac;},'UxKvb':_0x167d21(0x1db),'uoSte':_0x167d21(0x1c8),'Mgzjc':'confirm','aBqFW':_0x167d21(0x237),'fJqpF':'url_setup','RkvzW':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','OWWPb':_0x167d21(0x1fc),'qFHCm':_0x167d21(0x22f),'kNmIH':'baseUrl','LdOqC':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','orawo':'http://localhost:3000','QrrWP':_0x167d21(0x212),'epEXG':'What\x20would\x20you\x20like\x20to\x20do?','kwBPk':'use_suggestion','edVFB':_0x167d21(0x217),'cWRJp':function(_0x28f713,_0x512bcf){return _0x28f713(_0x512bcf);},'Vmvht':'continue','KxMlL':function(_0x211fb1,_0xe5f758){return _0x211fb1(_0xe5f758);},'CCyel':function(_0x5a497f,_0x1dc076,_0x593c94){return _0x5a497f(_0x1dc076,_0x593c94);},'dPBaC':function(_0x1c0050,_0x39bdf6){return _0x1c0050(_0x39bdf6);},'dojxj':function(_0x4ce4a4,_0x455637,_0x267142){return _0x4ce4a4(_0x455637,_0x267142);},'LCvFE':'auth.json','VbQPx':_0x167d21(0x210),'oHPOX':'\x0a📋\x20Authentication\x20Setup','DDJdO':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','kzaje':_0x167d21(0x1ec),'NceRR':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','RNTAV':function(_0x2b2c62,_0xba9790){return _0x2b2c62>_0xba9790;},'SWwCY':function(_0x21337c,_0x33befc){return _0x21337c||_0x33befc;},'VpshG':_0x167d21(0x223),'Tvrjb':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','EbKJg':_0x167d21(0x1dc),'dcKLJ':'Browser\x20closed\x20before\x20authentication\x20was\x20saved.','yFnWn':'utf-8','mIcPW':'Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','kCZIO':function(_0x4f4e3d,_0x1d7cde){return _0x4f4e3d>_0x1d7cde;},'vFLRl':_0x167d21(0x1dd),'CEcda':function(_0x14c2c9,_0x12e0fb,_0x361e3c){return _0x14c2c9(_0x12e0fb,_0x361e3c);},'jbCxN':function(_0x4812d6,_0x559675,_0x283af6){return _0x4812d6(_0x559675,_0x283af6);},'cQUSG':_0x167d21(0x1f5)},_0x4196cb=_0x2cb121['ci']??![],_0x459976=_0x4196cb?'ci':_0x2a6403['chutk'],_0x2bf6ed=join(getRangerDir(),_0x459976,_0x2ec199),_0x506d12={};if(_0x2cb121['setupHeader'])for(const _0x49b4de of _0x2cb121[_0x167d21(0x1e2)]){const _0xf531a3=_0x49b4de[_0x167d21(0x1cf)](':');if(_0xf531a3===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x49b4de+_0x167d21(0x1fb));const _0x1700e8=_0x49b4de['slice'](0x0,_0xf531a3)['trim'](),_0x146b08=_0x49b4de[_0x167d21(0x1da)](_0xf531a3+0x1)['trim']();_0x506d12[_0x1700e8]=_0x146b08;}const _0x1ca607=join(_0x2a6403['BzYsk'](getRangerDir),_0x459976);if(_0x2a6403['meIel'](_0x2cb121['cdpEndpoint'],undefined)&&_0x2a6403[_0x167d21(0x1ce)](_0x2cb121[_0x167d21(0x209)]['trim'](),''))throw new Error(_0x2a6403[_0x167d21(0x1d3)]);if(_0x2cb121[_0x167d21(0x209)]&&_0x2cb121['url'])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');if(_0x2cb121[_0x167d21(0x209)]&&_0x2cb121['ci'])throw new Error(_0x2a6403['cPOrm']);const _0x481ca0=Boolean(_0x2cb121['cdpEndpoint']),_0x5e112e=!_0x2cb121[_0x167d21(0x228)]&&!_0x481ca0,_0x415026=process['stdin'][_0x167d21(0x1f4)]&&process[_0x167d21(0x214)][_0x167d21(0x1f4)];if(!_0x415026&&!_0x2cb121['url']&&!_0x481ca0)throw new Error(_0x2a6403['XiTXV']);const _0x100b50=_0x2a6403['CEmFv'](findExistingEnv,_0x2ec199);let _0x1c4196=null;if(_0x100b50){if(!_0x415026)_0x1c4196=_0x100b50;else{if(_0x100b50[_0x167d21(0x1e6)]===_0x459976){const {overwrite:_0x1b12f0}=await _0x33b1fe[_0x167d21(0x1e5)]([{'type':'confirm','name':_0x167d21(0x23a),'message':'Profile\x20\x22'+_0x2ec199+_0x167d21(0x207),'default':![]}]);if(!_0x1b12f0){console['log']('Aborted.');return;}_0x1c4196=_0x100b50;}else{const _0x5e81e3=_0x2a6403[_0x167d21(0x1d2)](_0x100b50[_0x167d21(0x1e6)],_0x2a6403[_0x167d21(0x203)])?_0x2a6403[_0x167d21(0x1d4)]:_0x100b50[_0x167d21(0x1e6)];console['error'](_0x167d21(0x227)+_0x2ec199+'\x22\x20already\x20exists\x20in\x20'+_0x5e81e3+':\x20'+_0x100b50['path']),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x459976+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x517460}=await _0x33b1fe[_0x167d21(0x1e5)]([{'type':_0x2a6403['Mgzjc'],'name':_0x2a6403['aBqFW'],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x459976+'?','default':![]}]);if(!_0x517460){console[_0x167d21(0x22c)]('Aborted.');return;}_0x1c4196=_0x100b50;}}}_0x14f151?.['trackPhaseStart'](_0x2a6403['fJqpF']);let _0x1f4dc7='';if(_0x481ca0)console['log'](_0x167d21(0x1f3)),console[_0x167d21(0x22c)](_0x167d21(0x239)+_0x2cb121[_0x167d21(0x209)]),console['log'](_0x2a6403[_0x167d21(0x225)]);else{if(_0x2cb121['url']){_0x1f4dc7=_0x2cb121[_0x167d21(0x230)];const _0x4cfb02=await _0x2a6403[_0x167d21(0x221)](checkUrlReachability,_0x1f4dc7);if(!_0x4cfb02['ok']&&!_0x2cb121[_0x167d21(0x1f7)])throw new Error('Could\x20not\x20reach\x20'+_0x1f4dc7+':\x20'+_0x4cfb02[_0x167d21(0x1fe)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x4cfb02['ok']&&_0x2cb121[_0x167d21(0x1f7)]&&console[_0x167d21(0x22c)](_0x167d21(0x208)+_0x1f4dc7+':\x20'+_0x4cfb02[_0x167d21(0x1fe)]+'\x20(continuing\x20with\x20--force)');}else{console['log']('\x0a🌐\x20Profile\x20Setup\x0a'),console['log']('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console['log'](_0x2a6403['OWWPb']);let _0x1dac97=![];while(!![]){const _0xdd0ce3=await _0x33b1fe[_0x167d21(0x1e5)]([{'type':_0x2a6403['qFHCm'],'name':_0x2a6403['kNmIH'],'message':_0x1dac97?_0x167d21(0x20b):_0x2a6403[_0x167d21(0x229)],'default':_0x1f4dc7||_0x2a6403['orawo']}]);_0x1f4dc7=_0xdd0ce3[_0x167d21(0x1fd)];const _0x527ed0=await checkUrlReachability(_0x1f4dc7);if(_0x527ed0['ok'])break;const _0x16a01b=/^[a-zA-Z][\w+.-]*:\/\//[_0x167d21(0x1c6)](_0x1f4dc7),_0x47552d=_0x527ed0[_0x167d21(0x1e1)]&&!_0x16a01b,_0xacdebf=_0x47552d?_0x167d21(0x21f)+_0x1f4dc7:null;_0x1dac97=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x1f4dc7+':\x20'+_0x527ed0[_0x167d21(0x1fe)]);_0xacdebf&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0xacdebf+'?');const {action:_0x1e0bde}=await _0x33b1fe[_0x167d21(0x1e5)]([{'type':_0x2a6403[_0x167d21(0x22d)],'name':_0x167d21(0x20c),'message':_0x2a6403['epEXG'],'choices':[..._0xacdebf?[{'name':_0x167d21(0x1c9)+_0xacdebf,'value':_0x2a6403[_0x167d21(0x1cc)]}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x167d21(0x1c5)},{'name':_0x2a6403[_0x167d21(0x1f8)],'value':_0x167d21(0x1d9)}]}]);if(_0x1e0bde===_0x167d21(0x1d8)&&_0xacdebf){_0x1f4dc7=_0xacdebf;const _0x1451bf=await _0x2a6403[_0x167d21(0x1ed)](checkUrlReachability,_0x1f4dc7);if(_0x1451bf['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x1f4dc7+':\x20'+_0x1451bf['error']);}else{if(_0x1e0bde===_0x2a6403['Vmvht'])break;}}}}_0x14f151?.['trackPhaseEnd'](_0x2a6403[_0x167d21(0x1d7)]);const _0x54b53d={};if(_0x1c4196){const _0x776773=await _0x2a6403['KxMlL'](loadSettings,_0x2ec199);Object[_0x167d21(0x211)](_0x54b53d,_0x776773['setupHeaders']);}Object['assign'](_0x54b53d,_0x506d12),await _0x2a6403['CCyel'](mkdir,_0x1ca607,{'recursive':!![]});const _0x76f837=await _0x2a6403['dPBaC'](mkdtemp,join(_0x1ca607,'.tmp-'+_0x2ec199+'-')),_0xf0f10=_0x2a6403['dojxj'](join,_0x76f837,_0x2a6403['LCvFE']),_0x188465=Boolean(_0x1f4dc7)&&/^https:\/\/localhost(:\d+)?/i['test'](_0x1f4dc7);try{if(_0x5e112e){_0x14f151?.['trackPhaseStart'](_0x2a6403[_0x167d21(0x1e4)]),console[_0x167d21(0x22c)](_0x2a6403[_0x167d21(0x22e)]),console['log'](_0x2a6403['DDJdO']),console[_0x167d21(0x22c)](_0x2a6403['kzaje']);!_0x415026?(console[_0x167d21(0x22c)]('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log'](_0x2a6403['NceRR'])):console['log']('');await new Promise(_0x51fb3f=>setTimeout(_0x51fb3f,0xbb8));const _0x20d164=[];_0x2cb121[_0x167d21(0x1f1)]&&_0x20d164['push'](_0x167d21(0x202));const _0x3f6997=_0x2cb121['allowInsecureLocalhost']||_0x188465;_0x3f6997&&_0x20d164[_0x167d21(0x20f)](_0x167d21(0x235));const _0x2bb9f5=await chromium['launch']({'headless':![],..._0x20d164[_0x167d21(0x200)]>0x0?{'args':_0x20d164}:{}});try{const _0x34e287=_0x2a6403['RNTAV'](Object[_0x167d21(0x22a)](_0x54b53d)[_0x167d21(0x200)],0x0),_0x70de0e={'ignoreHTTPSErrors':!![]};_0x34e287&&(_0x70de0e['extraHTTPHeaders']=_0x54b53d);const _0x615a1=await _0x2bb9f5[_0x167d21(0x1d5)](_0x70de0e);await _0x2a6403[_0x167d21(0x1f6)](addProfileSetupBanner,_0x615a1);const _0x393fff=await _0x615a1['newPage']();await _0x393fff['goto'](_0x2a6403['SWwCY'](_0x1f4dc7,_0x2a6403[_0x167d21(0x1ee)]));let _0x3006de=![];await new Promise(_0x41dadb=>{_0x393fff['on']('close',async()=>{const _0x25b2c1=_0x15cf;try{console['log'](_0x2a6403[_0x25b2c1(0x20e)]),await _0x615a1['storageState']({'path':_0xf0f10}),_0x3006de=!![];}catch{}_0x2a6403[_0x25b2c1(0x206)](_0x41dadb);});});if(!_0x3006de){console['log']('\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.');!_0x2cb121['safeMode']&&(console['log'](_0x2a6403[_0x167d21(0x1d1)]),console['log'](_0x2a6403[_0x167d21(0x21c)]),console['log'](_0x167d21(0x1f0)+_0x2ec199+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x167d21(0x22c)]('\x20\x20ranger\x20profile\x20add\x20'+_0x2ec199+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x2a6403['dcKLJ']);}}finally{await _0x2bb9f5['close']()[_0x167d21(0x1f9)](()=>{});}if(_0x4196cb){const _0xd2651b=await _0x2a6403[_0x167d21(0x233)](readFile,_0xf0f10,_0x2a6403[_0x167d21(0x22b)]),_0x312038=await getToken();if(!_0x312038){console[_0x167d21(0x1fe)](_0x167d21(0x1ef)),await _0x2a6403[_0x167d21(0x213)](unlink,_0xf0f10)[_0x167d21(0x1f9)](()=>{});throw new Error(_0x2a6403[_0x167d21(0x1ea)]);}else{const _0x4fe9e3=encrypt(_0xd2651b,_0x312038);await writeFile(_0xf0f10+_0x167d21(0x219),_0x4fe9e3),await _0x2a6403[_0x167d21(0x213)](unlink,_0xf0f10),console[_0x167d21(0x22c)]('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0xf0f10+_0x167d21(0x219)),console[_0x167d21(0x22c)](_0x167d21(0x1e8)),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log']('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0xf0f10);_0x14f151?.[_0x167d21(0x226)](_0x2a6403[_0x167d21(0x1e4)]);}_0x14f151?.['trackPhaseStart'](_0x167d21(0x236));const _0x2e6da8={};_0x1f4dc7&&(_0x2e6da8['baseUrl']=_0x1f4dc7);_0x2cb121['cdpEndpoint']&&(_0x2e6da8[_0x167d21(0x209)]=_0x2cb121[_0x167d21(0x209)],_0x2e6da8['isElectron']=!![]);(_0x2cb121['allowInsecureLocalhost']||_0x188465)&&(_0x2e6da8['allowInsecureLocalhost']=!![]);_0x2cb121['safeMode']&&(_0x2e6da8['safeMode']=!![]);_0x2a6403[_0x167d21(0x1d0)](Object[_0x167d21(0x22a)](_0x54b53d)[_0x167d21(0x200)],0x0)&&(_0x2e6da8[_0x167d21(0x205)]=_0x54b53d);await _0x2a6403['CCyel'](writeFile,join(_0x76f837,'settings.json'),JSON[_0x167d21(0x1d6)](_0x2e6da8,null,0x2)),console['log']('✓\x20Created\x20settings:\x20'+_0x2a6403[_0x167d21(0x233)](join,_0x2bf6ed,_0x2a6403['vFLRl']));if(_0x1c4196?.[_0x167d21(0x1e6)]===_0x459976){const _0x28a195=_0x1c4196['path']+'.backup-'+Date['now']();await rename(_0x1c4196['path'],_0x28a195);try{await rename(_0x76f837,_0x2bf6ed);}catch(_0x1f9d3e){await _0x2a6403['CCyel'](rename,_0x28a195,_0x1c4196[_0x167d21(0x218)]);throw _0x1f9d3e;}try{await _0x2a6403['CEcda'](rm,_0x28a195,{'recursive':!![]});}catch{console['log'](_0x167d21(0x216)+_0x28a195);}}else{await _0x2a6403[_0x167d21(0x20d)](rename,_0x76f837,_0x2bf6ed);if(_0x1c4196)try{await _0x2a6403[_0x167d21(0x1e9)](rm,_0x1c4196[_0x167d21(0x218)],{'recursive':!![]}),console['log']('Removed\x20existing\x20profile\x20at\x20'+_0x1c4196['path']);}catch{console['log'](_0x167d21(0x21e)+_0x1c4196[_0x167d21(0x218)]);}}try{await _0x2a6403['dPBaC'](writeActiveProfileName,_0x2ec199),console[_0x167d21(0x22c)]('\x20\x20Set\x20active\x20profile:\x20'+_0x2ec199);}catch{console['log'](_0x2a6403[_0x167d21(0x1e3)]);}_0x14f151?.['trackPhaseEnd'](_0x167d21(0x236)),console[_0x167d21(0x22c)](_0x167d21(0x1e0)+_0x2ec199+_0x167d21(0x224));}catch(_0x29f6b6){await rm(_0x76f837,{'recursive':!![],'force':!![]});throw _0x29f6b6;}}
1
+ (function(_0x9bd4bb,_0x353e87){const _0x549265=_0x1fb7,_0x322105=_0x9bd4bb();while(!![]){try{const _0x2ff04c=-parseInt(_0x549265(0x163))/0x1*(-parseInt(_0x549265(0x102))/0x2)+-parseInt(_0x549265(0x14e))/0x3+parseInt(_0x549265(0x119))/0x4+-parseInt(_0x549265(0x15c))/0x5+-parseInt(_0x549265(0x146))/0x6*(parseInt(_0x549265(0x13b))/0x7)+-parseInt(_0x549265(0x15f))/0x8+parseInt(_0x549265(0x130))/0x9;if(_0x2ff04c===_0x353e87)break;else _0x322105['push'](_0x322105['shift']());}catch(_0x7d0853){_0x322105['push'](_0x322105['shift']());}}}(_0x3591,0x43917));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';function _0x1fb7(_0x3b81dc,_0x5b90e9){_0x3b81dc=_0x3b81dc-0xfa;const _0x35916a=_0x3591();let _0x1fb72b=_0x35916a[_0x3b81dc];return _0x1fb72b;}import _0x57d820 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}from'./utils/rangerRoot.js';function _0x3591(){const _0x48d03f=['storageState','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','ZcFoR','NODE_TLS_REJECT_UNAUTHORIZED','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','newContext','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','2655105nrorVD','catch','local','1006968ofWRce','\x20(continuing\x20with\x20--force)','DNJaX','qOkia','1hdQUZw','manual','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','GBCRk','UZhEs','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','rMUXB','--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.','Could\x20not\x20reach\x20','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','Hpbfq','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','name','flVIS','assign','stringify','fetch\x20failed','trackPhaseStart','trim','stdout','56894KPOZVV','What\x20would\x20you\x20like\x20to\x20do?','TypeError','abort','config_write','vFjwZ','✓\x20Auth\x20state\x20saved\x20to:\x20','message','vcbxr','cIBIl','OCvGW','allowInsecureLocalhost','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','cdpEndpoint','✓\x20Created\x20settings:\x20','sbEwl','tyGlK','LIEBR','http://localhost:3000','log','now','url','settings.json','1255800IDQUbU','close','Enter\x20a\x20different\x20URL','root\x20(.ranger/)','\x0a\x20\x20Could\x20not\x20reach\x20','list','isElectron','path','\x20\x20\x20Creating\x20it\x20in\x20','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','Delete\x20existing\x20and\x20create\x20new\x20in\x20','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','\x0a\x20\x20Profile\x20\x22','skipAuth','safeMode','push','trackPhaseEnd','Aborted.','UBtoZ','\x22\x20already\x20exists\x20in\x20','use_suggestion','newPage','Profile\x20\x22','8315865WysVye','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','input','jcRuz','\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','error','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','.backup-','continue','location','2224243HbrqcK','FTszt','PhDdZ','slice','pREeE','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','prompt','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','confirm','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','6iaCVMn','url_setup','test','keys','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','YxmML','includes','isTTY','44946kvpQNr','launch','setupHeader','env','wveIr','Nazmq','.tmp-'];_0x3591=function(){return _0x48d03f;};return _0x3591();}import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x13b154){const _0x1b2b33=_0x1fb7,_0x5c5507={'EhytV':function(_0x3560af,_0x528ed7,_0x1566b5){return _0x3560af(_0x528ed7,_0x1566b5);},'Nazmq':_0x1b2b33(0x164),'BWsUh':function(_0x1826ab,_0x80aa21,_0x16bbb7){return _0x1826ab(_0x80aa21,_0x16bbb7);},'VcVXJ':function(_0x161f3f,_0x1639f7){return _0x161f3f(_0x1639f7);},'Quhsg':function(_0x2594f9,_0x23ede2){return _0x2594f9<_0x23ede2;},'qqMtB':'Invalid\x20URL','wveIr':function(_0x366f45,_0x2a434e){return _0x366f45===_0x2a434e;},'flVIS':_0x1b2b33(0xfe)};try{const _0x5e9816=new AbortController(),_0x548bf4=_0x5c5507['EhytV'](setTimeout,()=>_0x5e9816[_0x1b2b33(0x105)](),0x1388),_0xd22e6={'method':'HEAD','signal':_0x5e9816['signal'],'redirect':_0x5c5507[_0x1b2b33(0x153)]};/^https:\/\/localhost(:\d+)?/i[_0x1b2b33(0x148)](_0x13b154)&&(process['env'][_0x1b2b33(0x158)]='0');const _0x3aec00=await _0x5c5507['BWsUh'](fetch,_0x13b154,_0xd22e6);delete process[_0x1b2b33(0x151)]['NODE_TLS_REJECT_UNAUTHORIZED'],_0x5c5507['VcVXJ'](clearTimeout,_0x548bf4);if(_0x5c5507['Quhsg'](_0x3aec00['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x3aec00['status']};}catch(_0x5081c8){delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x145afe=_0x5081c8,_0x3513f4=_0x145afe[_0x1b2b33(0x109)]||String(_0x5081c8),_0x1c4399=_0x3513f4[_0x1b2b33(0x14c)](_0x5c5507['qqMtB'])||_0x5c5507[_0x1b2b33(0x152)](_0x145afe[_0x1b2b33(0xfa)],_0x1b2b33(0x104))||_0x3513f4['includes'](_0x5c5507[_0x1b2b33(0xfb)]);return{'ok':![],'error':_0x3513f4,'isProtocolError':_0x1c4399};}}export async function addEnv(_0x53ee38,_0x9a6e0c={},_0xfd3ca2){const _0x5f4f08=_0x1fb7,_0x48ff18={'cIBIl':_0x5f4f08(0x11a),'ajENn':_0x5f4f08(0x15e),'SHnya':function(_0x147e3d,_0x4f0ec3,_0x5a0bb7,_0x34a14c){return _0x147e3d(_0x4f0ec3,_0x5a0bb7,_0x34a14c);},'rMUXB':function(_0x22cd03){return _0x22cd03();},'OCvGW':function(_0x59dce3,_0x454b46){return _0x59dce3===_0x454b46;},'vFjwZ':function(_0x6fdd4d){return _0x6fdd4d();},'COJkI':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','eJstb':'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','YzEJa':'confirm','LIEBR':'overwrite','Msegb':_0x5f4f08(0x11c),'LCRis':'shouldReplace','pREeE':'Aborted.','mORDa':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','ZcFoR':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','DNJaX':function(_0x2684df,_0x4136ee){return _0x2684df(_0x4136ee);},'qNGrt':'\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','vcbxr':_0x5f4f08(0x10e),'UZhEs':_0x5f4f08(0x139),'VtEjk':_0x5f4f08(0x12d),'sbEwl':function(_0x4f6581,_0x403a5c,_0xb80255){return _0x4f6581(_0x403a5c,_0xb80255);},'YxmML':'auth.json','EqYuQ':'\x0a📋\x20Authentication\x20Setup','GBCRk':_0x5f4f08(0x134),'eGOUA':_0x5f4f08(0x16f),'zntHy':'--allow-insecure-localhost','UBtoZ':function(_0x32f4bc,_0x3086a4){return _0x32f4bc>_0x3086a4;},'jcRuz':function(_0xa2eefd,_0x3d507b){return _0xa2eefd||_0x3d507b;},'liuMG':'about:blank','PhDdZ':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','qbrIN':_0x5f4f08(0x131),'iRtOc':_0x5f4f08(0x169),'FTszt':function(_0x243016,_0x40ad3c){return _0x243016+_0x40ad3c;},'tyGlK':'.enc','zMQGf':function(_0x5ad1c6,_0x2b2dcf){return _0x5ad1c6(_0x2b2dcf);},'whZyn':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','qOkia':_0x5f4f08(0x16d),'MseKj':'browser_auth','XMhkd':function(_0x1c917c,_0x568014){return _0x1c917c>_0x568014;},'uCBCK':function(_0x6c69a7,_0x2629d4,_0x337133){return _0x6c69a7(_0x2629d4,_0x337133);},'Hpbfq':'settings.json','WNiNl':function(_0x404ac5,_0x23095d){return _0x404ac5===_0x23095d;},'JYpwR':function(_0x1ab374,_0x58aea8,_0x124f26){return _0x1ab374(_0x58aea8,_0x124f26);},'nDvHh':function(_0x147d67,_0xa4b29e,_0x1f499d){return _0x147d67(_0xa4b29e,_0x1f499d);}},_0xc28d0=_0x9a6e0c['ci']??![],_0x562d1e=_0xc28d0?'ci':_0x48ff18['ajENn'],_0xe79a95=_0x48ff18['SHnya'](join,_0x48ff18[_0x5f4f08(0x16a)](getRangerDir),_0x562d1e,_0x53ee38),_0x2cf97f={};if(_0x9a6e0c[_0x5f4f08(0x150)])for(const _0x2daed2 of _0x9a6e0c[_0x5f4f08(0x150)]){const _0x35ab04=_0x2daed2['indexOf'](':');if(_0x48ff18['OCvGW'](_0x35ab04,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x2daed2+_0x5f4f08(0x142));const _0x17a936=_0x2daed2[_0x5f4f08(0x13e)](0x0,_0x35ab04)[_0x5f4f08(0x100)](),_0x145045=_0x2daed2[_0x5f4f08(0x13e)](_0x35ab04+0x1)['trim']();_0x2cf97f[_0x17a936]=_0x145045;}const _0x257050=join(_0x48ff18[_0x5f4f08(0x107)](getRangerDir),_0x562d1e);if(_0x9a6e0c[_0x5f4f08(0x10f)]!==undefined&&_0x48ff18['OCvGW'](_0x9a6e0c['cdpEndpoint'][_0x5f4f08(0x100)](),''))throw new Error(_0x5f4f08(0x165));if(_0x9a6e0c['cdpEndpoint']&&_0x9a6e0c['url'])throw new Error(_0x48ff18['COJkI']);if(_0x9a6e0c['cdpEndpoint']&&_0x9a6e0c['ci'])throw new Error(_0x5f4f08(0x16b));const _0x32c9b8=Boolean(_0x9a6e0c['cdpEndpoint']),_0x63ce3=!_0x9a6e0c[_0x5f4f08(0x126)]&&!_0x32c9b8,_0x116f2f=process['stdin'][_0x5f4f08(0x14d)]&&process[_0x5f4f08(0x101)]['isTTY'];if(!_0x116f2f&&!_0x9a6e0c[_0x5f4f08(0x117)]&&!_0x32c9b8)throw new Error(_0x48ff18['eJstb']);const _0x22df8b=findExistingEnv(_0x53ee38);let _0x4d3c91=null;if(_0x22df8b){if(!_0x116f2f)_0x4d3c91=_0x22df8b;else{if(_0x22df8b['location']===_0x562d1e){const {overwrite:_0x4bebe4}=await _0x57d820['prompt']([{'type':_0x48ff18['YzEJa'],'name':_0x48ff18[_0x5f4f08(0x113)],'message':_0x5f4f08(0x12f)+_0x53ee38+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x4bebe4){console['log'](_0x5f4f08(0x12a));return;}_0x4d3c91=_0x22df8b;}else{const _0x3dba16=_0x22df8b[_0x5f4f08(0x13a)]==='legacy'?_0x48ff18['Msegb']:_0x22df8b[_0x5f4f08(0x13a)];console[_0x5f4f08(0x136)]('\x0a⚠️\x20\x20Profile\x20\x22'+_0x53ee38+_0x5f4f08(0x12c)+_0x3dba16+':\x20'+_0x22df8b[_0x5f4f08(0x120)]),console[_0x5f4f08(0x136)](_0x5f4f08(0x121)+_0x562d1e+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x3691cd}=await _0x57d820['prompt']([{'type':_0x5f4f08(0x144),'name':_0x48ff18['LCRis'],'message':_0x5f4f08(0x123)+_0x562d1e+'?','default':![]}]);if(!_0x3691cd){console['log'](_0x48ff18[_0x5f4f08(0x13f)]);return;}_0x4d3c91=_0x22df8b;}}}_0xfd3ca2?.['trackPhaseStart'](_0x5f4f08(0x147));let _0x51021e='';if(_0x32c9b8)console[_0x5f4f08(0x115)](_0x48ff18['mORDa']),console[_0x5f4f08(0x115)](_0x5f4f08(0x145)+_0x9a6e0c['cdpEndpoint']),console['log'](_0x48ff18[_0x5f4f08(0x157)]);else{if(_0x9a6e0c['url']){_0x51021e=_0x9a6e0c['url'];const _0x80a308=await _0x48ff18['DNJaX'](checkUrlReachability,_0x51021e);if(!_0x80a308['ok']&&!_0x9a6e0c['force'])throw new Error(_0x5f4f08(0x16c)+_0x51021e+':\x20'+_0x80a308[_0x5f4f08(0x136)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x80a308['ok']&&_0x9a6e0c['force']&&console[_0x5f4f08(0x115)]('⚠\x20Could\x20not\x20reach\x20'+_0x51021e+':\x20'+_0x80a308['error']+_0x5f4f08(0x160));}else{console[_0x5f4f08(0x115)]('\x0a🌐\x20Profile\x20Setup\x0a'),console['log'](_0x48ff18['qNGrt']),console['log'](_0x5f4f08(0x140));let _0x119b4d=![];while(!![]){const _0x56558c=await _0x57d820['prompt']([{'type':_0x5f4f08(0x132),'name':'baseUrl','message':_0x119b4d?_0x48ff18[_0x5f4f08(0x10a)]:_0x5f4f08(0x124),'default':_0x51021e||_0x5f4f08(0x114)}]);_0x51021e=_0x56558c['baseUrl'];const _0x1af739=await checkUrlReachability(_0x51021e);if(_0x1af739['ok'])break;const _0x473a02=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x51021e),_0x3f360f=_0x1af739['isProtocolError']&&!_0x473a02,_0x5db29a=_0x3f360f?'http://'+_0x51021e:null;_0x119b4d=!![],console['log'](_0x5f4f08(0x11d)+_0x51021e+':\x20'+_0x1af739['error']);_0x5db29a&&console[_0x5f4f08(0x115)]('\x20\x20Did\x20you\x20mean\x20'+_0x5db29a+'?');const {action:_0x39d347}=await _0x57d820[_0x5f4f08(0x141)]([{'type':_0x5f4f08(0x11e),'name':'action','message':_0x5f4f08(0x103),'choices':[..._0x5db29a?[{'name':'Use\x20'+_0x5db29a,'value':_0x5f4f08(0x12d)}]:[],{'name':_0x5f4f08(0x11b),'value':'retry'},{'name':'Continue\x20anyway','value':_0x48ff18[_0x5f4f08(0x167)]}]}]);if(_0x48ff18['OCvGW'](_0x39d347,_0x48ff18['VtEjk'])&&_0x5db29a){_0x51021e=_0x5db29a;const _0x321d72=await _0x48ff18['DNJaX'](checkUrlReachability,_0x51021e);if(_0x321d72['ok'])break;console['log'](_0x5f4f08(0x143)+_0x51021e+':\x20'+_0x321d72['error']);}else{if(_0x48ff18[_0x5f4f08(0x10c)](_0x39d347,_0x5f4f08(0x139)))break;}}}}_0xfd3ca2?.[_0x5f4f08(0x129)]('url_setup');const _0x527c31={};if(_0x4d3c91){const _0x38326d=await _0x48ff18['DNJaX'](loadSettings,_0x53ee38);Object[_0x5f4f08(0xfc)](_0x527c31,_0x38326d['setupHeaders']);}Object['assign'](_0x527c31,_0x2cf97f),await _0x48ff18['sbEwl'](mkdir,_0x257050,{'recursive':!![]});const _0x41048b=await mkdtemp(join(_0x257050,_0x5f4f08(0x154)+_0x53ee38+'-')),_0x3011bf=_0x48ff18['sbEwl'](join,_0x41048b,_0x48ff18[_0x5f4f08(0x14b)]),_0x6d5ce9=_0x48ff18[_0x5f4f08(0x161)](Boolean,_0x51021e)&&/^https:\/\/localhost(:\d+)?/i['test'](_0x51021e);try{if(_0x63ce3){_0xfd3ca2?.[_0x5f4f08(0xff)]('browser_auth'),console['log'](_0x48ff18['EqYuQ']),console[_0x5f4f08(0x115)]('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console['log'](_0x5f4f08(0x14a));!_0x116f2f?(console['log'](_0x48ff18[_0x5f4f08(0x166)]),console['log'](_0x48ff18['eGOUA'])):console[_0x5f4f08(0x115)]('');await new Promise(_0x44946a=>setTimeout(_0x44946a,0xbb8));const _0x3c7265=[];_0x9a6e0c[_0x5f4f08(0x127)]&&_0x3c7265[_0x5f4f08(0x128)]('--disable-features=WebBluetooth');const _0x5a4f11=_0x9a6e0c[_0x5f4f08(0x10d)]||_0x6d5ce9;_0x5a4f11&&_0x3c7265[_0x5f4f08(0x128)](_0x48ff18['zntHy']);const _0x44da6f=await chromium[_0x5f4f08(0x14f)]({'headless':![],..._0x48ff18[_0x5f4f08(0x12b)](_0x3c7265['length'],0x0)?{'args':_0x3c7265}:{}});try{const _0x75f3de=Object[_0x5f4f08(0x149)](_0x527c31)['length']>0x0,_0x30a54b={'ignoreHTTPSErrors':!![]};_0x75f3de&&(_0x30a54b['extraHTTPHeaders']=_0x527c31);const _0x215c06=await _0x44da6f[_0x5f4f08(0x15a)](_0x30a54b);await addProfileSetupBanner(_0x215c06);const _0x35c5ca=await _0x215c06[_0x5f4f08(0x12e)]();await _0x35c5ca['goto'](_0x48ff18[_0x5f4f08(0x133)](_0x51021e,_0x48ff18['liuMG']));let _0xd97279=![];await new Promise(_0x2220e6=>{const _0x752df4=_0x5f4f08;_0x35c5ca['on'](_0x48ff18[_0x752df4(0x10b)],async()=>{const _0x40b761=_0x752df4;try{console['log']('Saving\x20authentication\x20state...'),await _0x215c06[_0x40b761(0x155)]({'path':_0x3011bf}),_0xd97279=!![];}catch{}_0x2220e6();});});if(!_0xd97279){console[_0x5f4f08(0x115)](_0x5f4f08(0x159));!_0x9a6e0c['safeMode']&&(console['log'](_0x48ff18[_0x5f4f08(0x13d)]),console[_0x5f4f08(0x115)]('You\x20can\x20try\x20again\x20with\x20one\x20of:'),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x53ee38+_0x5f4f08(0x156)),console[_0x5f4f08(0x115)]('\x20\x20ranger\x20profile\x20add\x20'+_0x53ee38+_0x5f4f08(0x122)));throw new Error(_0x48ff18['qbrIN']);}}finally{await _0x44da6f[_0x5f4f08(0x11a)]()[_0x5f4f08(0x15d)](()=>{});}if(_0xc28d0){const _0x26130e=await readFile(_0x3011bf,'utf-8'),_0x5b83bf=await getToken();if(!_0x5b83bf){console[_0x5f4f08(0x136)](_0x48ff18['iRtOc']),await _0x48ff18[_0x5f4f08(0x161)](unlink,_0x3011bf)[_0x5f4f08(0x15d)](()=>{});throw new Error(_0x5f4f08(0x137));}else{const _0x275579=_0x48ff18[_0x5f4f08(0x111)](encrypt,_0x26130e,_0x5b83bf);await _0x48ff18['sbEwl'](writeFile,_0x48ff18[_0x5f4f08(0x13c)](_0x3011bf,_0x48ff18[_0x5f4f08(0x112)]),_0x275579),await _0x48ff18['zMQGf'](unlink,_0x3011bf),console['log'](_0x5f4f08(0x135)+_0x3011bf+'.enc'),console['log'](_0x48ff18['whZyn']),console[_0x5f4f08(0x115)](_0x48ff18[_0x5f4f08(0x162)]);}}else console[_0x5f4f08(0x115)](_0x5f4f08(0x108)+_0x3011bf);_0xfd3ca2?.['trackPhaseEnd'](_0x48ff18['MseKj']);}_0xfd3ca2?.[_0x5f4f08(0xff)](_0x5f4f08(0x106));const _0x112b0f={};_0x51021e&&(_0x112b0f['baseUrl']=_0x51021e);_0x9a6e0c['cdpEndpoint']&&(_0x112b0f[_0x5f4f08(0x10f)]=_0x9a6e0c[_0x5f4f08(0x10f)],_0x112b0f[_0x5f4f08(0x11f)]=!![]);(_0x9a6e0c['allowInsecureLocalhost']||_0x6d5ce9)&&(_0x112b0f[_0x5f4f08(0x10d)]=!![]);_0x9a6e0c['safeMode']&&(_0x112b0f[_0x5f4f08(0x127)]=!![]);_0x48ff18['XMhkd'](Object[_0x5f4f08(0x149)](_0x527c31)['length'],0x0)&&(_0x112b0f['setupHeaders']=_0x527c31);await writeFile(_0x48ff18['uCBCK'](join,_0x41048b,_0x5f4f08(0x118)),JSON[_0x5f4f08(0xfd)](_0x112b0f,null,0x2)),console[_0x5f4f08(0x115)](_0x5f4f08(0x110)+_0x48ff18['sbEwl'](join,_0xe79a95,_0x48ff18[_0x5f4f08(0x16e)]));if(_0x48ff18['WNiNl'](_0x4d3c91?.[_0x5f4f08(0x13a)],_0x562d1e)){const _0x396f8c=_0x4d3c91['path']+_0x5f4f08(0x138)+Date[_0x5f4f08(0x116)]();await _0x48ff18[_0x5f4f08(0x111)](rename,_0x4d3c91[_0x5f4f08(0x120)],_0x396f8c);try{await rename(_0x41048b,_0xe79a95);}catch(_0x1cf922){await rename(_0x396f8c,_0x4d3c91[_0x5f4f08(0x120)]);throw _0x1cf922;}try{await _0x48ff18[_0x5f4f08(0x111)](rm,_0x396f8c,{'recursive':!![]});}catch{console['log'](_0x5f4f08(0x168)+_0x396f8c);}}else{await _0x48ff18['JYpwR'](rename,_0x41048b,_0xe79a95);if(_0x4d3c91)try{await _0x48ff18['nDvHh'](rm,_0x4d3c91[_0x5f4f08(0x120)],{'recursive':!![]}),console['log']('Removed\x20existing\x20profile\x20at\x20'+_0x4d3c91['path']);}catch{console[_0x5f4f08(0x115)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x4d3c91['path']);}}try{await writeActiveProfileName(_0x53ee38),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x53ee38);}catch{console[_0x5f4f08(0x115)](_0x5f4f08(0x15b));}_0xfd3ca2?.[_0x5f4f08(0x129)]('config_write'),console[_0x5f4f08(0x115)](_0x5f4f08(0x125)+_0x53ee38+'\x22\x20configured');}catch(_0x36170e){await _0x48ff18[_0x5f4f08(0x111)](rm,_0x41048b,{'recursive':!![],'force':!![]});throw _0x36170e;}}
@@ -1 +1 @@
1
- function _0x1dfe(_0x566f4c,_0x26ee23){_0x566f4c=_0x566f4c-0xf9;const _0x38b4d7=_0x38b4();let _0x1dfee8=_0x38b4d7[_0x566f4c];return _0x1dfee8;}(function(_0x19d763,_0x20d933){const _0x395e44=_0x1dfe,_0x3fb8ec=_0x19d763();while(!![]){try{const _0x4434cc=-parseInt(_0x395e44(0xfc))/0x1+parseInt(_0x395e44(0xfb))/0x2+parseInt(_0x395e44(0x103))/0x3+-parseInt(_0x395e44(0x100))/0x4*(parseInt(_0x395e44(0x104))/0x5)+parseInt(_0x395e44(0xfa))/0x6*(-parseInt(_0x395e44(0x10a))/0x7)+parseInt(_0x395e44(0x101))/0x8*(parseInt(_0x395e44(0xff))/0x9)+parseInt(_0x395e44(0x10b))/0xa;if(_0x4434cc===_0x20d933)break;else _0x3fb8ec['push'](_0x3fb8ec['shift']());}catch(_0x503000){_0x3fb8ec['push'](_0x3fb8ec['shift']());}}}(_0x38b4,0xc8477));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';function _0x38b4(){const _0x3446d1=['\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','1901742WpjYqD','186865XTOEmo','log','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','ErRHT','dwlyb','auth.json','7782971yOEEFl','25175210cxGiQV','KESVe','Profile\x20\x22','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','6bOzwWN','316972ZxSSBC','1633117XSYRbw','utf-8','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','1485621mwNErd','8Nqbgnl','16NyDkLc'];_0x38b4=function(){return _0x3446d1;};return _0x38b4();}export async function authEncrypt(_0x15af34){const _0x5b0f12=_0x1dfe,_0x43c4bf={'lqMhQ':function(_0x4fcd0d,_0x3f3e51,_0x4d629b){return _0x4fcd0d(_0x3f3e51,_0x4d629b);},'gPcZz':'.enc','KESVe':function(_0x2ff6e6,_0x2fe2e3){return _0x2ff6e6(_0x2fe2e3);},'VqPmq':function(_0x109837){return _0x109837();},'dwlyb':_0x5b0f12(0x106),'ErRHT':_0x5b0f12(0xfd),'lucDu':function(_0x3452c0,_0x3945cf,_0x36a826){return _0x3452c0(_0x3945cf,_0x36a826);},'jIqyi':function(_0x858c0d,_0x21d2c5){return _0x858c0d(_0x21d2c5);}},_0x1297b2=getEnvDir(_0x15af34),_0x985fe5=_0x43c4bf['lqMhQ'](join,_0x1297b2,_0x5b0f12(0x109)),_0x409110=_0x985fe5+_0x43c4bf['gPcZz'];if(!existsSync(_0x1297b2))throw new Error(_0x5b0f12(0x10d)+_0x15af34+_0x5b0f12(0xf9)+_0x15af34);if(!_0x43c4bf[_0x5b0f12(0x10c)](existsSync,_0x985fe5))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x985fe5+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x3d2386=await _0x43c4bf['VqPmq'](getToken);if(!_0x3d2386)throw new Error(_0x43c4bf[_0x5b0f12(0x108)]);const _0x2d887b=await readFile(_0x985fe5,_0x43c4bf[_0x5b0f12(0x107)]),_0x21840d=encrypt(_0x2d887b,_0x3d2386);await _0x43c4bf['lucDu'](writeFile,_0x409110,_0x21840d),console[_0x5b0f12(0x105)]('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x409110),console[_0x5b0f12(0x105)](_0x5b0f12(0xfe)),console[_0x5b0f12(0x105)](_0x5b0f12(0x102)),_0x43c4bf['jIqyi'](existsSync,_0x409110)&&(console[_0x5b0f12(0x105)]('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
1
+ (function(_0x46fc26,_0xc14569){const _0x1d177e=_0x1e91,_0xfafaf0=_0x46fc26();while(!![]){try{const _0x5569b6=-parseInt(_0x1d177e(0xaa))/0x1+-parseInt(_0x1d177e(0xa7))/0x2+parseInt(_0x1d177e(0xad))/0x3*(-parseInt(_0x1d177e(0xa1))/0x4)+-parseInt(_0x1d177e(0xae))/0x5+parseInt(_0x1d177e(0xa6))/0x6*(parseInt(_0x1d177e(0x9f))/0x7)+parseInt(_0x1d177e(0xac))/0x8+parseInt(_0x1d177e(0x9d))/0x9;if(_0x5569b6===_0xc14569)break;else _0xfafaf0['push'](_0xfafaf0['shift']());}catch(_0x1b0e32){_0xfafaf0['push'](_0xfafaf0['shift']());}}}(_0x1e7a,0x537bd));function _0x1e7a(){const _0x283e74=['tSgbS','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','7255656gMijeQ','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','102599xyTwnH','QQQNS','4qAwTRk','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','mALKw','log','108DHQThc','498738URClXA','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','.enc','358388CNIwUI','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','4923416nhYWMc','1211979ZJIycG','1658690eXzTCD'];_0x1e7a=function(){return _0x283e74;};return _0x1e7a();}import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';function _0x1e91(_0x267582,_0xc14e){_0x267582=_0x267582-0x9b;const _0x1e7ad7=_0x1e7a();let _0x1e9186=_0x1e7ad7[_0x267582];return _0x1e9186;}export async function authEncrypt(_0x2067fc){const _0x13ac28=_0x1e91,_0x4afb6e={'adrdW':function(_0x3a3f30,_0x22544c){return _0x3a3f30(_0x22544c);},'oIkSX':function(_0x3edf02,_0x47403c,_0x44dba0){return _0x3edf02(_0x47403c,_0x44dba0);},'NoLWA':_0x13ac28(0xa9),'QQQNS':function(_0x535dda,_0x357992){return _0x535dda(_0x357992);},'chfDi':function(_0x1fb034,_0x131865){return _0x1fb034(_0x131865);},'tSgbS':function(_0xfeaaa4){return _0xfeaaa4();},'mALKw':_0x13ac28(0x9e)},_0x32c217=_0x4afb6e['adrdW'](getEnvDir,_0x2067fc),_0x1f01f6=_0x4afb6e['oIkSX'](join,_0x32c217,'auth.json'),_0x45131f=_0x1f01f6+_0x4afb6e['NoLWA'];if(!_0x4afb6e[_0x13ac28(0xa0)](existsSync,_0x32c217))throw new Error('Profile\x20\x22'+_0x2067fc+_0x13ac28(0xa2)+_0x2067fc);if(!_0x4afb6e['chfDi'](existsSync,_0x1f01f6))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x1f01f6+_0x13ac28(0x9c));const _0x3b6cae=await _0x4afb6e[_0x13ac28(0x9b)](getToken);if(!_0x3b6cae)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x383438=await readFile(_0x1f01f6,'utf-8'),_0x499948=encrypt(_0x383438,_0x3b6cae);await writeFile(_0x45131f,_0x499948),console[_0x13ac28(0xa5)](_0x13ac28(0xa3)+_0x45131f),console[_0x13ac28(0xa5)](_0x4afb6e[_0x13ac28(0xa4)]),console[_0x13ac28(0xa5)](_0x13ac28(0xab)),existsSync(_0x45131f)&&(console['log']('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console[_0x13ac28(0xa5)](_0x13ac28(0xa8)));}
@@ -1 +1 @@
1
- const _0x4d95d4=_0x2e98;(function(_0x5e728b,_0x33db0b){const _0xde14cf=_0x2e98,_0x53a2fd=_0x5e728b();while(!![]){try{const _0x2d4b38=parseInt(_0xde14cf(0x148))/0x1+parseInt(_0xde14cf(0x14c))/0x2*(parseInt(_0xde14cf(0x14d))/0x3)+-parseInt(_0xde14cf(0x147))/0x4*(parseInt(_0xde14cf(0x163))/0x5)+parseInt(_0xde14cf(0x155))/0x6*(-parseInt(_0xde14cf(0x143))/0x7)+parseInt(_0xde14cf(0x150))/0x8*(-parseInt(_0xde14cf(0x12d))/0x9)+parseInt(_0xde14cf(0x15f))/0xa*(parseInt(_0xde14cf(0x131))/0xb)+parseInt(_0xde14cf(0x146))/0xc*(-parseInt(_0xde14cf(0x154))/0xd);if(_0x2d4b38===_0x33db0b)break;else _0x53a2fd['push'](_0x53a2fd['shift']());}catch(_0x59ef86){_0x53a2fd['push'](_0x53a2fd['shift']());}}}(_0x2511,0x6d00a));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';function _0x2511(){const _0x389d50=['RFgDQ','user','IMqHG','feature-tracker','poDzK','hXblG','eCyKZ','replace','log','win32','✓\x20Removed\x20.ranger/\x20directory','210erzDov','XEIxh','platform','24pSjyCK','3256kmbsaZ','849067ozNQwZ','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','EyDwS','bCIhs','6rtueiR','180273OoLGMP','uwyha','length','289016ZRNUEf','pipe','uYJjh','ranger','2676739iXRxoz','65490tbuMJs','project','iGBkB','uninstall','plugin','wwocy','QzyZY','filter','JGdOI','fHHmG','50YeOOUq','✓\x20Removed\x20project\x20skill:\x20','@ranger-testing/opencode-plugin','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','655xnRZkY','Nothing\x20to\x20clean\x20up.\x0a','mzijb','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','27ZWmshG','vuPkP','isArray','error','817091gZjiPJ','opencode.json','IcEpC','✓\x20Removed\x20stored\x20credentials','cKAck','jFRMW','cxQjT'];_0x2511=function(){return _0x389d50;};return _0x2511();}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 _0x2e98(_0x1a442a,_0x1a2e6a){_0x1a442a=_0x1a442a-0x12a;const _0x2511cc=_0x2511();let _0x2e989c=_0x2511cc[_0x1a442a];return _0x2e989c;}const skillsToRemove=[_0x4d95d4(0x153),_0x4d95d4(0x13b),'bug-bash','e2e-test-recommender'],opencodePluginName=_0x4d95d4(0x161);function parseJsonc(_0x148b2c){const _0xef9738=_0x4d95d4,_0x16449b=_0x148b2c['replace'](/\/\*[\s\S]*?\*\//g,''),_0x222611=_0x16449b['replace'](/^\s*\/\/.*$/gm,''),_0x39dc21=_0x222611[_0xef9738(0x13f)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x39dc21);}async function removeOpencodePluginConfig(_0x2099cc){const _0x3c25da=_0x4d95d4,_0x12f17f={'nPzEj':function(_0x97f377,_0x4ffb50){return _0x97f377!==_0x4ffb50;},'xNNrY':function(_0x16460a,_0x4e91e8){return _0x16460a(_0x4e91e8);},'eCyKZ':function(_0x2d1ba1,_0x32414d){return _0x2d1ba1(_0x32414d);},'WjeZr':function(_0x51c77d,_0x115b1a){return _0x51c77d===_0x115b1a;},'cxQjT':function(_0x3c35a5,_0x45b2b7,_0x448520){return _0x3c35a5(_0x45b2b7,_0x448520);},'uYJjh':function(_0x1971b9,_0x543087){return _0x1971b9+_0x543087;}};if(!_0x12f17f['xNNrY'](existsSync,_0x2099cc))return![];let _0xb7d91b;try{const _0x83760=await readFile(_0x2099cc,'utf-8');_0xb7d91b=_0x12f17f[_0x3c25da(0x13e)](parseJsonc,_0x83760);}catch{return![];}const _0x5c9515=Array[_0x3c25da(0x12f)](_0xb7d91b[_0x3c25da(0x159)])?_0xb7d91b['plugin']:[];if(_0x12f17f['WjeZr'](_0x5c9515['length'],0x0))return![];const _0xa53ed7=_0x5c9515[_0x3c25da(0x15c)](_0x2fe50c=>{if(_0x12f17f['nPzEj'](typeof _0x2fe50c,'string'))return!![];return _0x2fe50c!==opencodePluginName;});if(_0xa53ed7[_0x3c25da(0x14f)]===_0x5c9515[_0x3c25da(0x14f)])return![];return _0xa53ed7[_0x3c25da(0x14f)]===0x0?delete _0xb7d91b[_0x3c25da(0x159)]:_0xb7d91b['plugin']=_0xa53ed7,await _0x12f17f[_0x3c25da(0x137)](writeFile,_0x2099cc,_0x12f17f[_0x3c25da(0x152)](JSON['stringify'](_0xb7d91b,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x3ae331){const _0x3f213e=_0x4d95d4,_0x23e949={'AIigh':function(_0x1e08f5,_0x1fb7ef){return _0x1e08f5===_0x1fb7ef;},'mzijb':_0x3f213e(0x158),'KmDbz':'ranger@trailhead','jFRMW':'claude','nAluH':_0x3f213e(0x141)};return new Promise(_0x4a366a=>{const _0x15d21d=_0x3f213e,_0x39ed52=['plugin',_0x23e949[_0x15d21d(0x12b)],_0x23e949['KmDbz']];_0x3ae331&&_0x39ed52['push']('--scope',_0x3ae331);const _0x2ca4ac=spawn(_0x23e949[_0x15d21d(0x136)],_0x39ed52,{'stdio':_0x15d21d(0x151),'shell':process[_0x15d21d(0x145)]===_0x23e949['nAluH']});_0x2ca4ac['on']('close',_0x25949e=>{_0x4a366a(_0x23e949['AIigh'](_0x25949e,0x0));}),_0x2ca4ac['on'](_0x15d21d(0x130),()=>{_0x4a366a(![]);});});}async function removeMarketplace(){const _0x1dcac8={'NwpZk':function(_0x170e2e,_0x1eeac7){return _0x170e2e===_0x1eeac7;},'JFgNb':'claude','QzyZY':'plugin','sSBxQ':'marketplace','kqfVw':function(_0x10a373,_0x450c1a){return _0x10a373===_0x450c1a;},'MjIVl':'close'};return new Promise(_0x16d00d=>{const _0x1bc8cb=_0x2e98,_0x43aa84={'XEIxh':function(_0x500986,_0x5709ac){return _0x1dcac8['NwpZk'](_0x500986,_0x5709ac);}},_0x54a832=spawn(_0x1dcac8['JFgNb'],[_0x1dcac8[_0x1bc8cb(0x15b)],_0x1dcac8['sSBxQ'],'remove','trailhead'],{'stdio':'pipe','shell':_0x1dcac8['kqfVw'](process[_0x1bc8cb(0x145)],_0x1bc8cb(0x141))});_0x54a832['on'](_0x1dcac8['MjIVl'],_0x2f713b=>{const _0x3ff344=_0x1bc8cb;_0x16d00d(_0x43aa84[_0x3ff344(0x144)](_0x2f713b,0x0));}),_0x54a832['on'](_0x1bc8cb(0x130),()=>{_0x16d00d(![]);});});}export async function clean(){const _0x2e9dc6=_0x4d95d4,_0x3727ba={'MYiWm':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','iGBkB':_0x2e9dc6(0x134),'IcEpC':function(_0x547146,_0x1b4830){return _0x547146(_0x1b4830);},'vuPkP':function(_0x15e270,_0x5129c3){return _0x15e270(_0x5129c3);},'uwyha':_0x2e9dc6(0x142),'JGdOI':function(_0x379407,_0xba349a,_0xb174af){return _0x379407(_0xba349a,_0xb174af);},'EyDwS':function(_0x547f5b,_0x58b56d,_0x16d55f){return _0x547f5b(_0x58b56d,_0x16d55f);},'wwocy':function(_0x163e33,_0x57e9ce){return _0x163e33(_0x57e9ce);},'hXblG':function(_0x5cacba,_0x6d9e66){return _0x5cacba(_0x6d9e66);},'bCIhs':_0x2e9dc6(0x156),'poDzK':_0x2e9dc6(0x139),'fHHmG':function(_0x17eab7,_0x460227,_0x5be61e){return _0x17eab7(_0x460227,_0x5be61e);},'tHgBi':_0x2e9dc6(0x162),'IMqHG':function(_0x573822,_0x30e69f,_0x1b599e){return _0x573822(_0x30e69f,_0x1b599e);},'cKAck':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','oCOfl':'\x0a✅\x20Cleanup\x20complete!\x0a','RFgDQ':_0x2e9dc6(0x12a)};console[_0x2e9dc6(0x140)](_0x3727ba['MYiWm']);let _0x580599=![];try{await deleteAllCredentials(),console['log'](_0x3727ba[_0x2e9dc6(0x157)]),_0x580599=!![];}catch{}const _0x5a4f00=getCacheFile();existsSync(_0x5a4f00)&&(await _0x3727ba[_0x2e9dc6(0x133)](rm,_0x5a4f00),_0x580599=!![]);const _0x4899b9=getRangerDir();_0x3727ba['vuPkP'](existsSync,_0x4899b9)&&(await rm(_0x4899b9,{'recursive':!![]}),console[_0x2e9dc6(0x140)](_0x3727ba[_0x2e9dc6(0x14e)]),_0x580599=!![]);const _0x58206f=getProjectSkillsDir();for(const _0x56c643 of skillsToRemove){const _0x4d7f51=join(_0x58206f,_0x56c643);existsSync(_0x4d7f51)&&(await _0x3727ba[_0x2e9dc6(0x15d)](rm,_0x4d7f51,{'recursive':!![]}),console['log'](_0x2e9dc6(0x160)+_0x56c643),_0x580599=!![]);}const _0x1f9c24=getUserSkillsDir();for(const _0x406b36 of skillsToRemove){const _0x5ce2b9=_0x3727ba['EyDwS'](join,_0x1f9c24,_0x406b36);_0x3727ba[_0x2e9dc6(0x15a)](existsSync,_0x5ce2b9)&&(await rm(_0x5ce2b9,{'recursive':!![]}),console[_0x2e9dc6(0x140)]('✓\x20Removed\x20user\x20skill:\x20'+_0x406b36),_0x580599=!![]);}const _0x342ea7=_0x3727ba['hXblG'](getOpencodeSkillsDir,_0x3727ba[_0x2e9dc6(0x14b)]);for(const _0x3477cd of skillsToRemove){const _0x343e1d=_0x3727ba['EyDwS'](join,_0x342ea7,_0x3477cd);existsSync(_0x343e1d)&&(await rm(_0x343e1d,{'recursive':!![]}),console[_0x2e9dc6(0x140)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x3477cd),_0x580599=!![]);}const _0x5f1bc6=getOpencodeSkillsDir(_0x3727ba[_0x2e9dc6(0x13c)]);for(const _0x554352 of skillsToRemove){const _0x382b58=_0x3727ba[_0x2e9dc6(0x15e)](join,_0x5f1bc6,_0x554352);_0x3727ba[_0x2e9dc6(0x13d)](existsSync,_0x382b58)&&(await _0x3727ba['EyDwS'](rm,_0x382b58,{'recursive':!![]}),console['log'](_0x2e9dc6(0x12c)+_0x554352),_0x580599=!![]);}const _0x428619=_0x3727ba[_0x2e9dc6(0x14a)](join,getOpencodeConfigDir('project'),'opencode.json');await _0x3727ba[_0x2e9dc6(0x12e)](removeOpencodePluginConfig,_0x428619)&&(console['log'](_0x3727ba['tHgBi']),_0x580599=!![]);const _0xeb86cc=_0x3727ba[_0x2e9dc6(0x13a)](join,_0x3727ba[_0x2e9dc6(0x15a)](getOpencodeConfigDir,_0x2e9dc6(0x139)),_0x2e9dc6(0x132));await removeOpencodePluginConfig(_0xeb86cc)&&(console['log'](_0x2e9dc6(0x149)),_0x580599=!![]);const _0xd4671e=await uninstallClaudePlugin();_0xd4671e&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x580599=!![]);const _0xc05024=await _0x3727ba['hXblG'](uninstallClaudePlugin,_0x2e9dc6(0x156));_0xc05024&&(console['log'](_0x3727ba[_0x2e9dc6(0x135)]),_0x580599=!![]);const _0x50dd36=await removeMarketplace();_0x50dd36&&(console['log']('✓\x20Removed\x20trailhead\x20marketplace'),_0x580599=!![]),_0x580599?console['log'](_0x3727ba['oCOfl']):console[_0x2e9dc6(0x140)](_0x3727ba[_0x2e9dc6(0x138)]);}
1
+ const _0x54e0bd=_0x39ee;(function(_0x56d6d5,_0x33c2f4){const _0x3f0f56=_0x39ee,_0x3d2322=_0x56d6d5();while(!![]){try{const _0xd18e55=-parseInt(_0x3f0f56(0x13f))/0x1+-parseInt(_0x3f0f56(0x147))/0x2+parseInt(_0x3f0f56(0x15a))/0x3+parseInt(_0x3f0f56(0x162))/0x4+parseInt(_0x3f0f56(0x16a))/0x5*(parseInt(_0x3f0f56(0x16d))/0x6)+parseInt(_0x3f0f56(0x163))/0x7*(parseInt(_0x3f0f56(0x160))/0x8)+-parseInt(_0x3f0f56(0x154))/0x9*(parseInt(_0x3f0f56(0x169))/0xa);if(_0xd18e55===_0x33c2f4)break;else _0x3d2322['push'](_0x3d2322['shift']());}catch(_0x526e56){_0x3d2322['push'](_0x3d2322['shift']());}}}(_0x1c96,0x8c2fa));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';function _0x39ee(_0xd0609f,_0x1b465e){_0xd0609f=_0xd0609f-0x13d;const _0x1c962c=_0x1c96();let _0x39ee23=_0x1c962c[_0xd0609f];return _0x39ee23;}import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x54e0bd(0x146),'feature-tracker',_0x54e0bd(0x13d),'e2e-test-recommender'],opencodePluginName=_0x54e0bd(0x174);function _0x1c96(){const _0x5e17d6=['dQDBG','1964058hSipWo','user','OREvp','OPRgE','remove','kCLLh','32432rCxVgI','wQuvb','4481264fZMTQt','413WsGLAa','plugin','win32','ZieMM','chyoY','DmoXY','78480fKEwrq','12585OQbMJY','IpPSa','string','66GaZZhh','ASYok','--scope','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','filter','length','YChvq','@ranger-testing/opencode-plugin','stringify','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','marketplace','parse','bug-bash','✓\x20Removed\x20stored\x20credentials','824403lldGRT','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','YnFIr','log','upNro','tYaBG','platform','ranger','1160972rsjwsJ','✓\x20Removed\x20trailhead\x20marketplace','hoHFl','agdnC','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','close','QvUPF','aZoEI','claude','✓\x20Removed\x20user\x20skill:\x20','bteku','LMIFD','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','72xAQlux','trailhead','GiYnz','EIOWw','uninstall'];_0x1c96=function(){return _0x5e17d6;};return _0x1c96();}function parseJsonc(_0x49e029){const _0x34f70a=_0x54e0bd,_0x43699b=_0x49e029['replace'](/\/\*[\s\S]*?\*\//g,''),_0x39284b=_0x43699b['replace'](/^\s*\/\/.*$/gm,''),_0x5601eb=_0x39284b['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x34f70a(0x178)](_0x5601eb);}async function removeOpencodePluginConfig(_0x4fd537){const _0x2bc54d=_0x54e0bd,_0x56b1a1={'QPhbF':'utf-8','fzzEv':function(_0x5c9e87,_0x3decf9){return _0x5c9e87(_0x3decf9);},'agdnC':function(_0x4083d2,_0x287f8d){return _0x4083d2===_0x287f8d;},'RoaaC':function(_0x55932b,_0x205b65,_0x593572){return _0x55932b(_0x205b65,_0x593572);}};if(!existsSync(_0x4fd537))return![];let _0xc894a1;try{const _0x1b9812=await readFile(_0x4fd537,_0x56b1a1['QPhbF']);_0xc894a1=_0x56b1a1['fzzEv'](parseJsonc,_0x1b9812);}catch{return![];}const _0x3c5ea2=Array['isArray'](_0xc894a1['plugin'])?_0xc894a1['plugin']:[];if(_0x56b1a1[_0x2bc54d(0x14a)](_0x3c5ea2['length'],0x0))return![];const _0x16a095=_0x3c5ea2[_0x2bc54d(0x171)](_0x5c78a9=>{const _0x56f9b5=_0x2bc54d;if(typeof _0x5c78a9!==_0x56f9b5(0x16c))return!![];return _0x5c78a9!==opencodePluginName;});if(_0x16a095[_0x2bc54d(0x172)]===_0x3c5ea2[_0x2bc54d(0x172)])return![];return _0x56b1a1['agdnC'](_0x16a095['length'],0x0)?delete _0xc894a1['plugin']:_0xc894a1[_0x2bc54d(0x164)]=_0x16a095,await _0x56b1a1['RoaaC'](writeFile,_0x4fd537,JSON[_0x2bc54d(0x175)](_0xc894a1,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x243846){const _0x4c5a42=_0x54e0bd,_0x214a90={'tYaBG':function(_0x4a7b6b,_0x34b272){return _0x4a7b6b(_0x34b272);},'GiYnz':_0x4c5a42(0x164),'kCLLh':_0x4c5a42(0x158),'RVrQG':'ranger@trailhead','hoHFl':_0x4c5a42(0x16f),'wQuvb':_0x4c5a42(0x14f),'ASYok':function(_0x4b2834,_0x42abff){return _0x4b2834===_0x42abff;},'OPRgE':_0x4c5a42(0x165),'pDTrP':'close','sAAKg':'error'};return new Promise(_0x2a0ece=>{const _0xa86a3e=_0x4c5a42,_0x5b8bbf=[_0x214a90[_0xa86a3e(0x156)],_0x214a90[_0xa86a3e(0x15f)],_0x214a90['RVrQG']];_0x243846&&_0x5b8bbf['push'](_0x214a90[_0xa86a3e(0x149)],_0x243846);const _0x2f6acf=spawn(_0x214a90[_0xa86a3e(0x161)],_0x5b8bbf,{'stdio':'pipe','shell':_0x214a90[_0xa86a3e(0x16e)](process['platform'],_0x214a90[_0xa86a3e(0x15d)])});_0x2f6acf['on'](_0x214a90['pDTrP'],_0x4cd5c1=>{const _0x5ec3e0=_0xa86a3e;_0x214a90[_0x5ec3e0(0x144)](_0x2a0ece,_0x4cd5c1===0x0);}),_0x2f6acf['on'](_0x214a90['sAAKg'],()=>{_0x214a90['tYaBG'](_0x2a0ece,![]);});});}async function removeMarketplace(){const _0x9eb073=_0x54e0bd,_0x507f3b={'PDghc':function(_0x48487f,_0x595ff9){return _0x48487f(_0x595ff9);},'DmoXY':function(_0x9ec1,_0x586dba){return _0x9ec1(_0x586dba);},'aZoEI':'plugin','Qeijo':_0x9eb073(0x177),'fDWSF':_0x9eb073(0x15e),'Anayi':_0x9eb073(0x155),'qNjau':'pipe','OIIvn':_0x9eb073(0x14c)};return new Promise(_0xf249b=>{const _0x54c4fc=_0x9eb073,_0x456eb4={'HIyrt':function(_0x3ccc57,_0x4ca392){const _0x1b9f30=_0x39ee;return _0x507f3b[_0x1b9f30(0x168)](_0x3ccc57,_0x4ca392);}},_0x361f01=spawn(_0x54c4fc(0x14f),[_0x507f3b[_0x54c4fc(0x14e)],_0x507f3b['Qeijo'],_0x507f3b['fDWSF'],_0x507f3b['Anayi']],{'stdio':_0x507f3b['qNjau'],'shell':process[_0x54c4fc(0x145)]===_0x54c4fc(0x165)});_0x361f01['on'](_0x507f3b['OIIvn'],_0x3ce1b5=>{_0x456eb4['HIyrt'](_0xf249b,_0x3ce1b5===0x0);}),_0x361f01['on']('error',()=>{_0x507f3b['PDghc'](_0xf249b,![]);});});}export async function clean(){const _0x4948cf=_0x54e0bd,_0x5ed138={'bteku':_0x4948cf(0x140),'YChvq':function(_0x4c2d19){return _0x4c2d19();},'OREvp':_0x4948cf(0x13e),'aycPi':function(_0x566c26,_0x399e7f){return _0x566c26(_0x399e7f);},'OUvRh':function(_0x2d7b2a,_0xb8e60){return _0x2d7b2a(_0xb8e60);},'chyoY':function(_0x12e36f,_0xac55bc,_0x46a244){return _0x12e36f(_0xac55bc,_0x46a244);},'LMIFD':'✓\x20Removed\x20.ranger/\x20directory','TLCoP':function(_0x84df78){return _0x84df78();},'upNro':function(_0x24fa39){return _0x24fa39();},'YnFIr':function(_0x3123ab,_0x49fcf4){return _0x3123ab(_0x49fcf4);},'dQDBG':'project','EIOWw':function(_0x37ba09,_0x17e18f,_0x355b21){return _0x37ba09(_0x17e18f,_0x355b21);},'QvUPF':'opencode.json','beQsB':function(_0x286010,_0x48bb4a,_0x2e01d3){return _0x286010(_0x48bb4a,_0x2e01d3);},'ZieMM':function(_0x3140cd,_0x33c265){return _0x3140cd(_0x33c265);},'nBpON':_0x4948cf(0x15b),'IpPSa':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','jEbSn':_0x4948cf(0x14b),'glBEn':_0x4948cf(0x148)};console['log'](_0x5ed138[_0x4948cf(0x151)]);let _0x3e8f0b=![];try{await _0x5ed138[_0x4948cf(0x173)](deleteAllCredentials),console[_0x4948cf(0x142)](_0x5ed138[_0x4948cf(0x15c)]),_0x3e8f0b=!![];}catch{}const _0x24fab6=_0x5ed138['YChvq'](getCacheFile);_0x5ed138['aycPi'](existsSync,_0x24fab6)&&(await _0x5ed138['OUvRh'](rm,_0x24fab6),_0x3e8f0b=!![]);const _0x26bcb5=getRangerDir();existsSync(_0x26bcb5)&&(await _0x5ed138['chyoY'](rm,_0x26bcb5,{'recursive':!![]}),console['log'](_0x5ed138[_0x4948cf(0x152)]),_0x3e8f0b=!![]);const _0x2fc00c=_0x5ed138['TLCoP'](getProjectSkillsDir);for(const _0x506b02 of skillsToRemove){const _0x563d09=_0x5ed138['chyoY'](join,_0x2fc00c,_0x506b02);existsSync(_0x563d09)&&(await rm(_0x563d09,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x506b02),_0x3e8f0b=!![]);}const _0x1e5257=_0x5ed138[_0x4948cf(0x143)](getUserSkillsDir);for(const _0x2254ff of skillsToRemove){const _0xcd7ae0=join(_0x1e5257,_0x2254ff);existsSync(_0xcd7ae0)&&(await rm(_0xcd7ae0,{'recursive':!![]}),console['log'](_0x4948cf(0x150)+_0x2254ff),_0x3e8f0b=!![]);}const _0x54505a=_0x5ed138[_0x4948cf(0x141)](getOpencodeSkillsDir,_0x5ed138[_0x4948cf(0x159)]);for(const _0x17a59c of skillsToRemove){const _0x1b1497=_0x5ed138[_0x4948cf(0x167)](join,_0x54505a,_0x17a59c);_0x5ed138['YnFIr'](existsSync,_0x1b1497)&&(await rm(_0x1b1497,{'recursive':!![]}),console[_0x4948cf(0x142)](_0x4948cf(0x170)+_0x17a59c),_0x3e8f0b=!![]);}const _0x1f9e1d=_0x5ed138['aycPi'](getOpencodeSkillsDir,_0x4948cf(0x15b));for(const _0x1041b1 of skillsToRemove){const _0x115f0a=_0x5ed138[_0x4948cf(0x157)](join,_0x1f9e1d,_0x1041b1);existsSync(_0x115f0a)&&(await rm(_0x115f0a,{'recursive':!![]}),console[_0x4948cf(0x142)](_0x4948cf(0x153)+_0x1041b1),_0x3e8f0b=!![]);}const _0x3c9e47=_0x5ed138['EIOWw'](join,getOpencodeConfigDir(_0x5ed138[_0x4948cf(0x159)]),_0x5ed138['QvUPF']);await removeOpencodePluginConfig(_0x3c9e47)&&(console[_0x4948cf(0x142)]('✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0x3e8f0b=!![]);const _0x651b1c=_0x5ed138['beQsB'](join,_0x5ed138['ZieMM'](getOpencodeConfigDir,_0x5ed138['nBpON']),_0x5ed138[_0x4948cf(0x14d)]);await _0x5ed138[_0x4948cf(0x166)](removeOpencodePluginConfig,_0x651b1c)&&(console['log'](_0x5ed138[_0x4948cf(0x16b)]),_0x3e8f0b=!![]);const _0x4e6f36=await uninstallClaudePlugin();_0x4e6f36&&(console['log'](_0x5ed138['jEbSn']),_0x3e8f0b=!![]);const _0x461a36=await uninstallClaudePlugin(_0x5ed138['dQDBG']);_0x461a36&&(console['log'](_0x4948cf(0x176)),_0x3e8f0b=!![]);const _0x4f477b=await removeMarketplace();_0x4f477b&&(console[_0x4948cf(0x142)](_0x5ed138['glBEn']),_0x3e8f0b=!![]),_0x3e8f0b?console['log']('\x0a✅\x20Cleanup\x20complete!\x0a'):console['log']('Nothing\x20to\x20clean\x20up.\x0a');}