@ranger-testing/ranger-cli 2.5.4-alpha.78800d3-3 → 2.5.4-alpha.a98f848-6
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/skills/ranger/SKILL.md +18 -4
- package/build/skills/ranger/create.md +6 -0
- package/build/skills/ranger/verify.md +23 -3
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x3f7e8a=_0x8fb0;(function(_0x17b644,_0x3b1c94){const _0x56cc17=_0x8fb0,_0xb367af=_0x17b644();while(!![]){try{const _0x36f0a2=-parseInt(_0x56cc17(0x203))/0x1+-parseInt(_0x56cc17(0x243))/0x2*(-parseInt(_0x56cc17(0x22f))/0x3)+-parseInt(_0x56cc17(0x258))/0x4*(-parseInt(_0x56cc17(0x2c3))/0x5)+parseInt(_0x56cc17(0x1cc))/0x6*(-parseInt(_0x56cc17(0x2d8))/0x7)+parseInt(_0x56cc17(0x269))/0x8+parseInt(_0x56cc17(0x2a2))/0x9+-parseInt(_0x56cc17(0x234))/0xa*(parseInt(_0x56cc17(0x2eb))/0xb);if(_0x36f0a2===_0x3b1c94)break;else _0xb367af['push'](_0xb367af['shift']());}catch(_0x496d18){_0xb367af['push'](_0xb367af['shift']());}}}(_0x5e0d,0x8e77d));import _0x2f5e9f from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x297b76=_0x8fb0,_0x575b55={'oAAgL':function(_0x5f40c1,_0x195509){return _0x5f40c1!==_0x195509;},'jcgjG':function(_0x2e555a,_0x5117aa,_0x61b725){return _0x2e555a(_0x5117aa,_0x61b725);},'wgSSj':'.ranger','eGBvE':function(_0xb1074b,_0x55eb31){return _0xb1074b(_0x55eb31);}};let _0x2e85d2=process['cwd']();const _0x279853=parse(_0x2e85d2)['root'];while(_0x575b55[_0x297b76(0x2df)](_0x2e85d2,_0x279853)){if(existsSync(_0x575b55[_0x297b76(0x33d)](join,_0x2e85d2,_0x575b55['wgSSj']))||existsSync(_0x575b55['jcgjG'](join,_0x2e85d2,'.env')))return _0x2e85d2;_0x2e85d2=_0x575b55['eGBvE'](dirname,_0x2e85d2);}return process['cwd']();}_0x2f5e9f['config']({'path':join(findProjectRoot(),_0x3f7e8a(0x211))});import _0x49a8f5 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook,ensureLocalEnv,ensureChromium,authenticate,migrateProfile}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{mcpBootstrap}from'./commands/mcpBootstrap.js';import{getToken}from'./commands/utils/keychain.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset,configReset}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';function _0x5e0d(){const _0x8fd146=['akhEe','Scenario\x20index\x20(1-based)','ePRNf','Authenticate\x20via\x20MCP\x20proxy','ranger\x20create','swnOx','feature\x20resume','base-url','GZXyD','Environment\x20name','ROjIt','epsMn','OWRAA','skip-auth','nKflN','Kcygl','login','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','ranger\x20profile\x20use','save-creds','tTJGV','jTNJL','force','ranger\x20profile\x20add','ranger\x20use','dCxAG','FrSrn','get\x20<profile>\x20<key>','bOeUi','Ranger\x20API\x20token','json','get\x20<env>\x20<key>','LlNCD','Profile\x20name','cVkHK','summary','create','kEEYW','\x20INCOMPLETE','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','vWyYU','issues','FGacm','all','sxgus','config\x20get','QWqPX','feature\x20create','966474zZZkrE','Set\x20up\x20a\x20local\x20browser\x20profile','MIclY','update\x20<profile-name>','Allow\x20localhost\x20content\x20in\x20deployed\x20environments','VZFJc','token','NpEBw','dry-run','headed','YeGvk','Include\x20soft-deleted\x20feature\x20reviews','env','some','.env','xULgB','show','organizationName','wZgAs','fYvXe','AbGxK','oDYAP','GAEbd','YfeRt','VFVxZ','Feature\x20review\x20ID','ZVyUP','scenario','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','debug-outcome','project','--scenario','UwdsJ','error','scriptName','kTeod','CGxVo','OPMwT','pCpYY','surpG','pfmyd','XjVLJ','WYJIb','debug-address-comments','209154yjGeVT','zGHoA','success','ZTiQt','tokenOrSubcommand','19450DqMvSs','quhKR','blocked','TQOMZ','repeat','dTiKV','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.','session-id','QLDYe','ranger\x20config\x20list','NODE_ENV','aKJlE','--profile','ytPNL','claude','6kjVBbE','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','PorVr','partial','KfJFZ','xHZBz','setup-header','jLORW','uwAfw','map','include-deleted','Skip\x20authentication\x20(install\x20deps\x20only\x20—\x20for\x20container/CI\x20image\x20builds)','You\x20must\x20specify\x20a\x20command','You\x20must\x20specify\x20an\x20auth\x20subcommand','ranger\x20feature\x20create','Number\x20of\x20feature\x20reviews\x20to\x20skip','demandCommand','Store\x20RANGER_TEST_USERNAME/PASSWORD\x20env\x20values\x20on\x20the\x20migrated\x20profile.','jzQuQ','Scenario\x20description','dUhvi','15452lUvdaH','ranger\x20delete','ptwWx','ksJDh','Get\x20a\x20config\x20value','cramu','Feature\x20review\x20description','strictCommands','ijliY','description','Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','SyTgL','encrypt\x20<profile>','setup:deps','start\x20[token]','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','opencode','7354216DJifZH','Set\x20a\x20config\x20value','qFrqU','mNlQd','icQcJ','command','task','feature\x20add-checklist-item','MCibx','LAdcO','get-review','add-scenario','UvaEU','ZiINB','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','current-branch','name','Skip\x20browser\x20authentication','Usage:\x20ranger\x20setup\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(default\x20when\x20no\x20subcommand\x20given)\x0a\x20\x20deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20browser\x20binary\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20skills\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20profiles\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x0aRun\x20`ranger\x20setup\x20<command>\x20--help`\x20for\x20details.\x0a\x0aExamples:\x0a\x20\x20ranger\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Interactive\x20first-time\x20setup\x0a\x20\x20ranger\x20setup\x20deps\x20--with-deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20+\x20OS\x20deps\x20(Dockerfile)\x0a\x20\x20ranger\x20setup\x20login\x20--mcp\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20via\x20MCP\x20proxy\x0a\x20\x20ranger\x20setup\x20skills\x20--scope\x20user\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20skills\x20at\x20user\x20level','cnPMd','ranger\x20config\x20set','profile\x20config\x20reset','List\x20all\x20feature\x20reviews','qEasq','log','Install\x20scope\x20for\x20skills','jcXAy','notes','GqjeF','Optional\x20feature\x20ID','SEKvU','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','Failed\x20to\x20exchange\x20MCP\x20refresh\x20token\x20for\x20a\x20CLI\x20token.','hovqW','mcp-bootstrap','kFkZN','nSZpB','AowZe','limit','bXSPV','OSfcL','setup:all','UZGwG','usage','fFDTt','ranger\x20auth\x20encrypt','KBfjY','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','DCJzE','message','setup:login','HwkSm','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','edit-scenario','XnFzp','THfdq','status','10201284jpRGZu','qHPkQ','ranger\x20env\x20ls','ranger\x20feature\x20resume','ranger\x20profile\x20encrypt-auth','incomplete','with-deps','VrFiY','setup-ci','FPMkY','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)','WCHJB','cedjm','NgFsP','rpAue','fULAf','--checklist','MXVjP','WaBeL','xeYvB','kRKIe','Authenticate\x20with\x20Ranger','Config\x20value','profile-name','profile\x20add','Cllqy','resume','LQMoG','epilogue','skip-chromium','pFulN','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','1015WlUmtA','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','Print\x20the\x20current\x20CLI\x20access\x20token','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','ranger\x20profile\x20config\x20unset','reset\x20<profile>','cdp-endpoint','qBIRl','list\x20<profile>','list','BpwnB','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','svEXW','test','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.','exclude-scenario','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','profile\x20config\x20set','yes','resume\x20[id]','ugJrI','392RSvLGT','kWypX','string','ranger\x20get-review','ranger\x20start','number','hook:enable','oAAgL','feature\x20get-feedback','FcokL','MEwkz','argv','auth','Skip\x20interactive\x20confirmation\x20prompts.','config\x20list','bduqj','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','qKpks','allow-insecure-localhost','5643rZCYvm','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','slice','jWRXQ','create\x20<name>','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','mElEo','YGNgg','exit','unhandledRejection','positional','item','pvMhx','Install\x20skills\x20for\x20OpenCode','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','ranger\x20env\x20update','pMJWT','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','start','Zoeqz','Evaluation:\x20','List\x20all\x20config\x20for\x20a\x20profile','ranger\x20list','TdtkC','value','qFIig','Update\x20authentication\x20for\x20an\x20existing\x20profile','parse','etoen','Ranger\x20API\x20token\x20(rngr_...)','UbNfc','array','sKRNq','JrfLZ','delete\x20[id]','vFyge','Migrate\x20all\x20local\x20profiles\x20that\x20match\x20a\x20configured\x20auth\x20environment.','New\x20scenario\x20description','evaluation','get-review\x20[id]','RHvGx','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','hook','mGeRJ','QDtlb','Config\x20key','skills','profile\x20migrate','JeQQE','offset','TVsHy','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','env\x20update','scope','KNFwL','list\x20<env>','delete','CVRXE','ranger\x20profile\x20config\x20set','user','Scenario\x20number\x20to\x20edit\x20(1-based)','Feature\x20review\x20name','RraSG','bAbYN','TjxbV','OoUxL','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','Name\x20of\x20the\x20environment','env-name','Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run.\x20Also\x20respects\x20RANGER_BASE_URL.','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Mkznl','disable','kPsFM','ranger\x20add-scenario','zjrEi','inCmD','USuMF','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','DITeR','help','\x0aIssues:','jcgjG','url','hXZMZ','dZwmy','ranger\x20profile\x20config\x20get','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','enable','unset\x20<env>\x20<key>','EbQWV','wywWl','CRJNt','QocFa','boolean','DTiXR','ranger\x20config\x20get','FCazN','epOwV','xcFAa','Restore\x20a\x20soft-deleted\x20feature\x20review','bnhmM','uBavU','checklist','profile','verified','You\x20must\x20specify\x20a\x20profile\x20subcommand','Name\x20of\x20the\x20environment\x20to\x20update','Switch\x20to\x20using\x20a\x20specific\x20profile','UEQfZ','FnfCy','model','✓\x20Authenticated\x20to\x20','alxCi','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','ranger\x20go','eQFpD','XYbiG','set\x20<env>\x20<key>\x20<value>','Config\x20key\x20to\x20remove','eOKIE','start-path','option','fHpMo','print-access-token','53388LuNBEQ','exitCode','nDGiZ','ranger\x20config\x20unset','VBgQo','EOIvX','key'];_0x5e0d=function(){return _0x8fd146;};return _0x5e0d();}import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{refreshCliToken}from'./commands/utils/tokenRefresh.js';import{getCurrentUser}from'./commands/utils/userApi.js';import{ensureClaudePlugin,ensureClaudeSkills}from'./commands/setup/claude.js';import{ensureOpencodePluginConfig}from'./commands/setup/opencode.js';import{installSkill}from'./commands/utils/skills.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x3f7e8a(0x2f4),async _0xf44936=>{const _0x323684=_0x3f7e8a,_0x2b5d10=getCurrentCollector();_0x2b5d10&&await _0x2b5d10['trackCommandError'](_0xf44936),process[_0x323684(0x1cd)]=0x1;});const rawArgs=process[_0x3f7e8a(0x2e3)][_0x3f7e8a(0x2ed)](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20setup\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(same\x20as\x20bare\x20setup)\x0a\x20\x20setup\x20deps\x20[--with-deps]\x20\x20\x20\x20Install\x20Chromium\x20browser\x0a\x20\x20setup\x20login\x20[--token\x20<t>]\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20setup\x20skills\x20[--scope\x20...]\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20setup\x20profiles\x20[--url\x20<u>]\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x20\x20setup\x20--mcp-bootstrap\x20\x20\x20\x20\x20\x20\x20Bootstrap\x20auth\x20via\x20MCP\x20auth\x20server\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset/reset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset/reset)\x0a\x20\x20migrate\x20[<profile>]\x20\x20\x20\x20\x20\x20\x20Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20migrate\x20--all\x20--dry-run',PROFILE_CONFIG_HELP='Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aProfile\x20config.\x20Routes\x20automatically\x20based\x20on\x20where\x20the\x20profile\x20lives:\x0a\x20\x20-\x20Local\x20profiles\x20write\x20to\x20.ranger/<env>/settings.json\x0a\x20\x20-\x20Cloud\x20profiles\x20write\x20a\x20local\x20overlay\x20in\x20~/.ranger/projects.json\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\x20(effective\x20value\x20for\x20cloud\x20profiles)\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x20\x20reset\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Clear\x20all\x20local\x20overrides\x20(cloud\x20profiles\x20only)\x0a\x0aKeys:\x0a\x20\x20baseUrl\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Base\x20URL\x20(most\x20common\x20override\x20for\x20cloud\x20profiles)\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\x20admin@staging.app.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20headers.X-Debug\x201';function warnRenamed(_0xb21b7f,_0x7d0d68){console['error']('\x0a'+_0xb21b7f+'\x20is\x20now\x20'+_0x7d0d68+'\x0a');}function argUsed(_0x3a8157){const _0x5f0cfb=_0x3f7e8a;return rawArgs[_0x5f0cfb(0x210)](_0x1ae211=>_0x1ae211===_0x3a8157||_0x1ae211['startsWith'](_0x3a8157+'='));}function _0x8fb0(_0x5c95e9,_0xdc738){_0x5c95e9=_0x5c95e9-0x1a9;const _0x5e0df0=_0x5e0d();let _0x8fb05c=_0x5e0df0[_0x5c95e9];return _0x8fb05c;}function warnFlagRenamed(_0xfedded,_0x577ea4,_0x37b250){const _0x34d532=_0x3f7e8a,_0x578f31={'AowZe':function(_0x16a48d,_0x5f31ff){return _0x16a48d(_0x5f31ff);},'icQcJ':function(_0x290347,_0x4a832e,_0x3019ab){return _0x290347(_0x4a832e,_0x3019ab);}};_0x578f31[_0x34d532(0x28e)](argUsed,_0x577ea4)&&_0x578f31[_0x34d532(0x26d)](warnRenamed,_0xfedded+'\x20'+_0x577ea4,_0xfedded+'\x20'+_0x37b250);}async function runGoCommand(_0x41e122,_0x32e2b2=![]){const _0x338289=_0x3f7e8a,_0x18c4ce={'sJvlf':'ranger\x20verify-feature','UvaEU':_0x338289(0x1c2),'VZFJc':'--env','MEwkz':_0x338289(0x240),'XyWbP':'--task','epOwV':function(_0x25e978,_0x2df13a,_0x4d0a8f,_0x263dc5){return _0x25e978(_0x2df13a,_0x4d0a8f,_0x263dc5);},'akhEe':function(_0x2abf39){return _0x2abf39();},'SwGua':function(_0x373fb2,_0x2e2f52){return _0x373fb2(_0x2e2f52);},'XbaXI':_0x338289(0x220),'Iuxix':'debug-address-comments','Bvcds':function(_0x28ec8a,_0x34c52f){return _0x28ec8a+_0x34c52f;},'SzoTM':_0x338289(0x1b8),'ofHVB':'\x20VERIFIED','EToUt':function(_0x31a535,_0xfc0422){return _0x31a535===_0xfc0422;},'xcFAa':'\x20PARTIAL','TQOMZ':'\x20FAILED','ulFFj':_0x338289(0x33c),'epsMn':function(_0x587199,_0x87c9ef){return _0x587199===_0x87c9ef;}};_0x32e2b2&&warnRenamed(_0x18c4ce['sJvlf'],_0x338289(0x1c2));warnFlagRenamed(_0x18c4ce[_0x338289(0x275)],_0x18c4ce[_0x338289(0x208)],_0x18c4ce[_0x338289(0x2e2)]),warnFlagRenamed('ranger\x20go',_0x18c4ce['XyWbP'],'--notes'),_0x18c4ce[_0x338289(0x1b1)](warnFlagRenamed,_0x338289(0x1c2),'--item',_0x338289(0x222));const _0x4e508c=await loadRangerConfig(),_0x55e611=_0x18c4ce[_0x338289(0x1d3)](isByokEnabled),_0x4d9095=_0x41e122[_0x338289(0x1be)],_0x1a56d8=_0x4e508c[_0x338289(0x1be)],_0x53d2bf=await _0x18c4ce['SwGua'](verifyFeature,{'featureId':_0x41e122['feature'],'profile':_0x41e122[_0x338289(0x1b7)]??_0x41e122['env'],'notes':_0x41e122[_0x338289(0x284)]??_0x41e122[_0x338289(0x26f)],'scenario':_0x41e122['scenario']??_0x41e122[_0x338289(0x2f6)],'startPath':_0x41e122['start-path'],'baseUrl':_0x41e122[_0x338289(0x1da)],'debugOutcome':_0x41e122[_0x18c4ce['XbaXI']],'debugAddressComments':_0x41e122[_0x18c4ce['Iuxix']],'headed':_0x41e122[_0x338289(0x20c)],'byokEnabled':_0x55e611,'flagVerifyModel':_0x4d9095,'configVerifyModel':_0x1a56d8});console[_0x338289(0x281)](_0x18c4ce['Bvcds']('\x0a','='['repeat'](0x3c))),console['log'](_0x53d2bf['evaluation']===_0x18c4ce['SzoTM']?_0x18c4ce['ofHVB']:_0x53d2bf[_0x338289(0x311)]===_0x338289(0x2a7)?_0x338289(0x1f9):_0x18c4ce['EToUt'](_0x53d2bf['evaluation'],'partial')?_0x18c4ce[_0x338289(0x1b2)]:_0x53d2bf[_0x338289(0x311)]===_0x338289(0x236)?'\x20BLOCKED':_0x18c4ce[_0x338289(0x237)]),console['log']('='[_0x338289(0x238)](0x3c)),console['log']('Summary:\x20'+_0x53d2bf[_0x338289(0x1f6)]),console[_0x338289(0x281)](_0x338289(0x2ff)+_0x53d2bf[_0x338289(0x311)]),console['log']('Reason:\x20'+_0x53d2bf['evaluationReason']),_0x53d2bf['issues']?.['length']&&(console[_0x338289(0x281)](_0x18c4ce['ulFFj']),_0x53d2bf[_0x338289(0x1fc)]['forEach']((_0x276660,_0x50ce02)=>{const _0x49273a=_0x338289;console[_0x49273a(0x281)]('\x0a'+(_0x50ce02+0x1)+'.\x20['+_0x276660['severity']+']\x20'+_0x276660['description']);})),process[_0x338289(0x2f3)](_0x18c4ce[_0x338289(0x1de)](_0x53d2bf[_0x338289(0x311)],_0x18c4ce['SzoTM'])?0x0:0x1);}export function buildParser(_0x5e8c3d){const _0x51ec5c=_0x3f7e8a,_0x589fb0={'OoUxL':'name','FPMkY':_0x51ec5c(0x328),'OgVOO':'description','zTMgz':_0x51ec5c(0x25e),'xHZBz':'array','LlNCD':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','fYvXe':function(_0x540b2a,_0x19c710,_0x5f58b4,_0x575c90){return _0x540b2a(_0x19c710,_0x5f58b4,_0x575c90);},'BLAoF':_0x51ec5c(0x222),'MIclY':function(_0x4f1e3e,_0x5d03be,_0x5e06ba){return _0x4f1e3e(_0x5d03be,_0x5e06ba);},'wyQkM':_0x51ec5c(0x1f7),'rpAue':'boolean','inCmD':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','jWRXQ':_0x51ec5c(0x288),'NpEBw':'number','SodzD':'include-deleted','ZVyUP':_0x51ec5c(0x2cc),'eQFpD':_0x51ec5c(0x21c),'XIkPl':_0x51ec5c(0x213),'UbNfc':'string','oDYAP':_0x51ec5c(0x21e),'Cllqy':_0x51ec5c(0x327),'rUFLE':_0x51ec5c(0x2ec),'sxgus':_0x51ec5c(0x29e),'nDobP':_0x51ec5c(0x1f1),'bnhmM':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','fHpMo':'report','PlIhl':_0x51ec5c(0x273),'ffkjp':_0x51ec5c(0x323),'xeYvB':'Feature\x20review\x20ID\x20to\x20restore','ZTiQt':function(_0xd2226c,_0x599236,_0x53f77b){return _0xd2226c(_0x599236,_0x53f77b);},'OpXZK':_0x51ec5c(0x28b),'EOIvX':_0x51ec5c(0x292),'ZiINB':_0x51ec5c(0x29b),'zjrEi':_0x51ec5c(0x320),'KNFwL':'user','GqjeF':_0x51ec5c(0x221),'WZVDw':_0x51ec5c(0x268),'ptwWx':_0x51ec5c(0x262),'YGNgg':'setup:skills','bOeUi':'skip-auth','tUDpc':'Install\x20OS-level\x20dependencies\x20for\x20Chromium','PorVr':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup','qFIig':'allow-insecure-localhost','CshQd':_0x51ec5c(0x308),'QDqre':_0x51ec5c(0x27a),'CVRXE':_0x51ec5c(0x1e9),'QjzZY':_0x51ec5c(0x1fe),'lHbzT':'Run\x20full\x20interactive\x20setup','kWypX':'deps','nKflN':'login','hBdne':_0x51ec5c(0x2b8),'KfJFZ':_0x51ec5c(0x319),'ugJrI':'Install\x20Claude\x20Code\x20plugin\x20and\x20skills','XjVLJ':'profiles','pMJWT':_0x51ec5c(0x2d3),'GZXyD':'url','TdtkC':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','dZwmy':function(_0x71ad1,_0x1c639b,_0x33975d){return _0x71ad1(_0x1c639b,_0x33975d);},'Xqbia':_0x51ec5c(0x1f0),'QDtlb':_0x51ec5c(0x2c4),'cramu':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','tTJGV':'skip-chromium','ePRNf':'Skip\x20Chromium\x20browser\x20installation','ZQsJT':_0x51ec5c(0x2aa),'TmJSh':function(_0x1af67d,_0x3d9ba6){return _0x1af67d(_0x3d9ba6);},'JrfLZ':function(_0x3a0964,_0x177d7b,_0x36b6fd){return _0x3a0964(_0x177d7b,_0x36b6fd);},'XuGmV':'clean','XyiHd':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','ijliY':_0x51ec5c(0x2ac),'BCAGD':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','TjxbV':'setup-header','WMjwp':_0x51ec5c(0x2ad),'VBgQo':function(_0x14b2a9,_0x3dd303){return _0x14b2a9(_0x3dd303);},'ksTtE':'Name\x20of\x20the\x20profile','oTGyr':'yes','MXVjP':'save-creds','KarcQ':_0x51ec5c(0x2d4),'qHPkQ':'key','qFrqU':_0x51ec5c(0x26a),'alxCi':_0x51ec5c(0x25c),'XDboz':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','CjUDc':'Name\x20of\x20the\x20profile\x20to\x20update','nDGiZ':'profile','pinxF':_0x51ec5c(0x2e8),'UZGwG':'add\x20<profile-name>','KBfjY':_0x51ec5c(0x1bb),'ytPNL':'List\x20all\x20profiles','svEXW':_0x51ec5c(0x206),'SEKvU':'config','pCpYY':'Manage\x20profile\x20configuration','OPMwT':_0x51ec5c(0x1b9),'uwAfw':_0x51ec5c(0x1cb),'sarlW':'feature','oSOVW':_0x51ec5c(0x284),'CRJNt':_0x51ec5c(0x244),'AWuDk':_0x51ec5c(0x2d1),'DITeR':_0x51ec5c(0x1da),'fWyno':'Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run\x20(e.g.,\x20https://localhost:3003).\x20Also\x20respects\x20RANGER_BASE_URL.','fULAf':'model','DuSpi':_0x51ec5c(0x20c),'TVsHy':'debug-outcome','BMxIY':'verified','rYLIh':'incomplete','Mkznl':_0x51ec5c(0x20f),'UwdsJ':'task','kRKIe':function(_0x27d28b,_0x1a8025){return _0x27d28b(_0x1a8025);},'bduqj':_0x51ec5c(0x264),'LvQVc':_0x51ec5c(0x209),'meVcr':_0x51ec5c(0x2dc),'PggtW':'ranger\x20setup','cVkHK':_0x51ec5c(0x2fd),'FGacm':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','sOLho':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','VpuQa':_0x51ec5c(0x1d4),'YfeRt':_0x51ec5c(0x330),'TvfbT':'blocked','LAdcO':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','qqXDi':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','gPSri':_0x51ec5c(0x1ea),'tjsVU':function(_0x1afb81,_0xc1cac5,_0x10bd20){return _0x1afb81(_0xc1cac5,_0x10bd20);},'gCpfH':_0x51ec5c(0x1eb),'PcXwC':_0x51ec5c(0x1e5),'FmRJL':function(_0xbc3da6,_0x41fa4b,_0xf04ef7){return _0xbc3da6(_0x41fa4b,_0xf04ef7);},'eOKIE':_0x51ec5c(0x1dc),'THfdq':_0x51ec5c(0x1cf),'Ijtty':_0x51ec5c(0x23d),'hbuCW':_0x51ec5c(0x1c5),'CVxRd':_0x51ec5c(0x1f2),'hdPTL':_0x51ec5c(0x322),'EmSsi':'You\x20must\x20specify\x20a\x20config\x20subcommand','cOfYL':'ranger\x20profile\x20update','Wnvuh':'checklist','VFVxZ':_0x51ec5c(0x202),'GAEbd':'ranger\x20feature\x20list','CzFdv':_0x51ec5c(0x301),'CldVs':function(_0x131065,_0xeffb86,_0x384096){return _0x131065(_0xeffb86,_0x384096);},'Kcygl':'feature\x20list','RraSG':'ranger\x20show','WYJIb':'feature\x20show','DTiXR':'ranger\x20feature\x20add-checklist-item','ygwJN':_0x51ec5c(0x335),'udBLZ':_0x51ec5c(0x270),'FrSrn':'ranger\x20restore','EOeuF':function(_0x48f86b,_0x3c42f4,_0x32107b){return _0x48f86b(_0x3c42f4,_0x32107b);},'mElEo':'feature\x20restore','BNXop':'current-branch','bXSPV':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','goSxR':'ranger\x20resume','qIkjs':_0x51ec5c(0x1d9),'hsqtp':'ranger\x20feature\x20get-feedback','mNlQd':'show\x20[id]','tyeAz':'add-checklist-item\x20<description>','KdIwn':'get-feedback\x20[id]','jLORW':_0x51ec5c(0x30d),'rwpSV':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','dCxAG':_0x51ec5c(0x343),'MCibx':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','mGeRJ':_0x51ec5c(0x23b),'cedjm':'Unknown\x20command','nSZpB':'ranger','OSfcL':'Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','LwIxm':_0x51ec5c(0x27f),'NgFsP':_0x51ec5c(0x1fa),'USuMF':_0x51ec5c(0x2d6),'sKRNq':'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','OWRAA':'Initialize\x20Ranger\x20in\x20your\x20project','hXZMZ':'setup-ci\x20<token>','Txdge':'Install\x20Ranger\x20skills','kFkZN':'Manage\x20profiles','xULgB':'status','hovqW':'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','QWqPX':_0x51ec5c(0x2c5),'gfEqA':_0x51ec5c(0x266),'BpgcY':'verify-feature','kEEYW':'use\x20<env-name>','qKpks':_0x51ec5c(0x315),'FcokL':function(_0x345b5e,_0x115141){return _0x345b5e+_0x115141;},'BvuAR':'\x20\x20https://docs.ranger.net\x0a','XJpgz':'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)'};return _0x49a8f5(_0x5e8c3d??process[_0x51ec5c(0x2e3)][_0x51ec5c(0x2ed)](0x2))[_0x51ec5c(0x225)](_0x589fb0[_0x51ec5c(0x28d)])[_0x51ec5c(0x294)](TOP_LEVEL_HELP)['version'](getCurrentVersion())['command'](_0x51ec5c(0x2ef),_0x589fb0[_0x51ec5c(0x291)],_0x58f349=>{const _0x1145b4=_0x51ec5c;return _0x58f349[_0x1145b4(0x2f5)](_0x589fb0[_0x1145b4(0x32c)],{'type':'string','description':_0x589fb0[_0x1145b4(0x2ab)],'demandOption':!![]})['option'](_0x589fb0['OgVOO'],{'type':_0x1145b4(0x2da),'alias':'d','description':_0x589fb0['zTMgz']})[_0x1145b4(0x1c9)]('scenario',{'type':_0x589fb0[_0x1145b4(0x248)],'alias':'c','description':_0x589fb0[_0x1145b4(0x1f3)]})[_0x1145b4(0x1c9)]('checklist',{'type':'array','hidden':!![]});},async _0x4a2a5a=>{const _0x1db90e=_0x51ec5c;_0x589fb0[_0x1db90e(0x216)](warnFlagRenamed,_0x1db90e(0x1d7),'--checklist',_0x589fb0['BLAoF']);const _0x396b97=_0x4a2a5a['scenario']||_0x4a2a5a[_0x1db90e(0x1b6)];await _0x589fb0['MIclY'](withTelemetry,_0x589fb0['wyQkM'],()=>featureCreate(_0x4a2a5a[_0x1db90e(0x279)],{'description':_0x4a2a5a['description'],'scenarios':_0x396b97}));})[_0x51ec5c(0x26e)]('list',_0x589fb0['LwIxm'],_0x10b8dd=>{const _0xcca51=_0x51ec5c;return _0x10b8dd[_0xcca51(0x1c9)]('current-branch',{'type':_0x589fb0[_0xcca51(0x2b1)],'description':_0x589fb0[_0xcca51(0x337)]})[_0xcca51(0x1c9)](_0xcca51(0x28f),{'type':'number','alias':'l','description':_0x589fb0[_0xcca51(0x2ee)],'default':0xa})[_0xcca51(0x1c9)](_0xcca51(0x31c),{'type':_0x589fb0[_0xcca51(0x20a)],'alias':'o','description':_0xcca51(0x252),'default':0x0})[_0xcca51(0x1c9)](_0x589fb0['SodzD'],{'type':'boolean','alias':'d','description':_0xcca51(0x20e),'default':![]});},async _0x42a50e=>{const _0x3d133f=_0x51ec5c;await _0x589fb0['MIclY'](withTelemetry,_0x589fb0[_0x3d133f(0x21d)],()=>featureList({'currentBranch':_0x42a50e['current-branch'],'limit':_0x42a50e['limit'],'offset':_0x42a50e['offset'],'includeDeleted':_0x42a50e['include-deleted']}));})[_0x51ec5c(0x26e)](_0x589fb0[_0x51ec5c(0x26c)],_0x589fb0[_0x51ec5c(0x2b0)],_0x5f570a=>{const _0x27fa73=_0x51ec5c;return _0x5f570a[_0x27fa73(0x2f5)]('id',{'type':_0x27fa73(0x2da),'description':_0x589fb0[_0x27fa73(0x1c3)]});},async _0x5d5a59=>{await withTelemetry(_0x589fb0['XIkPl'],()=>featureShow(_0x5d5a59['id']));})[_0x51ec5c(0x26e)](_0x589fb0[_0x51ec5c(0x338)],_0x51ec5c(0x277),_0x10e991=>{const _0x5be1f6=_0x51ec5c;return _0x10e991[_0x5be1f6(0x2f5)]('id',{'type':_0x5be1f6(0x2da),'description':_0x5be1f6(0x2c6)});},async _0x43c66c=>{const _0x3a0df4=_0x51ec5c;await _0x589fb0['MIclY'](withTelemetry,_0x3a0df4(0x2bd),()=>featureResume(_0x43c66c['id']));})['command']('add-scenario\x20<description>',_0x51ec5c(0x29d),_0x553a37=>{const _0x6b016e=_0x51ec5c;return _0x553a37['positional'](_0x6b016e(0x261),{'type':_0x589fb0['UbNfc'],'description':_0x6b016e(0x256),'demandOption':!![]})['option']('id',{'type':'string','description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x404fcd=>{const _0x1ca195=_0x51ec5c;await _0x589fb0['MIclY'](withTelemetry,_0x1ca195(0x274),()=>featureAddScenario(_0x404fcd[_0x1ca195(0x261)],_0x404fcd['id']));})['command']('edit-scenario\x20<description>',_0x51ec5c(0x2f0),_0x110683=>{const _0x134ee1=_0x51ec5c;return _0x110683['positional'](_0x589fb0['OgVOO'],{'type':_0x134ee1(0x2da),'description':_0x134ee1(0x310),'demandOption':!![]})[_0x134ee1(0x1c9)](_0x589fb0['oDYAP'],{'type':_0x589fb0['NpEBw'],'description':_0x589fb0[_0x134ee1(0x2bc)],'demandOption':!![]})[_0x134ee1(0x1c9)]('id',{'type':_0x589fb0['UbNfc'],'description':_0x589fb0['rUFLE']});},async _0x116f95=>{const _0x578c9c=_0x51ec5c;await withTelemetry(_0x589fb0[_0x578c9c(0x1ff)],()=>featureEditScenario(_0x116f95[_0x578c9c(0x261)],{'id':_0x116f95['id'],'scenario':_0x116f95['scenario']}));})['command']('report\x20[id]',_0x589fb0[_0x51ec5c(0x30b)],_0x359cfd=>{const _0x11a363=_0x51ec5c;return _0x359cfd['positional']('id',{'type':_0x589fb0['UbNfc'],'description':_0x589fb0[_0x11a363(0x1c3)]})['option']('exclude-scenario',{'type':_0x11a363(0x30a),'description':_0x11a363(0x31e)})[_0x11a363(0x1c9)](_0x589fb0['nDobP'],{'type':_0x589fb0[_0x11a363(0x2b1)],'description':_0x589fb0[_0x11a363(0x1b4)],'default':![]});},async _0x396436=>{const _0x2c04ff=_0x51ec5c,_0x5511d5=_0x396436[_0x2c04ff(0x2d2)],_0x80422f=_0x5511d5?_0x5511d5[_0x2c04ff(0x24c)](_0x4f4127=>Number(_0x4f4127)):undefined;await withTelemetry(_0x589fb0[_0x2c04ff(0x1ca)],()=>featureReportPrDescription(_0x396436['id'],{'excludeScenarios':_0x80422f,'json':_0x396436['json']}));})[_0x51ec5c(0x26e)](_0x51ec5c(0x312),'Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x4306fb=>{const _0x5cc6ba=_0x51ec5c;return _0x4306fb[_0x5cc6ba(0x2f5)]('id',{'type':_0x5cc6ba(0x2da),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x4d617e=>{await withTelemetry(_0x589fb0['PlIhl'],()=>featureGetReview(_0x4d617e['id']));})['command'](_0x589fb0['jLORW'],'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x3cc2fa=>{const _0x756fe7=_0x51ec5c;return _0x3cc2fa[_0x756fe7(0x2f5)]('id',{'type':'string','description':_0x756fe7(0x21c)});},async _0x2df8a4=>{await withTelemetry(_0x589fb0['ffkjp'],()=>featureDelete(_0x2df8a4['id']));})[_0x51ec5c(0x26e)]('restore\x20<id>',_0x51ec5c(0x1b3),_0x50978f=>{const _0x31f30f=_0x51ec5c;return _0x50978f[_0x31f30f(0x2f5)]('id',{'type':'string','description':_0x589fb0[_0x31f30f(0x2b6)],'demandOption':!![]});},async _0x14ad56=>{const _0x1d6d48=_0x51ec5c;await _0x589fb0[_0x1d6d48(0x232)](withTelemetry,'restore',()=>featureRestore(_0x14ad56['id']));})[_0x51ec5c(0x26e)]('setup\x20[tokenOrSubcommand]',_0x589fb0[_0x51ec5c(0x1df)],_0x36f052=>{const _0x29d914=_0x51ec5c,_0x4f8e92={'XnFzp':_0x589fb0['UbNfc'],'JeQQE':_0x589fb0[_0x29d914(0x2b1)],'PdWSD':_0x29d914(0x2d3),'gaCTC':_0x589fb0['bOeUi'],'HXjnO':'Skip\x20authentication','JsAQk':_0x589fb0['tUDpc'],'kPsFM':_0x29d914(0x326),'oazeN':_0x589fb0[_0x29d914(0x245)],'VvsKI':_0x29d914(0x1e4),'pfmyd':_0x589fb0['WZVDw'],'HfhwR':_0x589fb0[_0x29d914(0x304)],'DCJzE':_0x589fb0['OpXZK'],'tlExQ':'Alias\x20for\x20--mcp-bootstrap','uBavU':'with-deps','ofcJz':_0x29d914(0x265),'FCazN':_0x589fb0['CshQd'],'qEasq':function(_0x2599b6){return _0x2599b6();},'LQMoG':function(_0x2bb37f){return _0x2bb37f();},'aKJlE':function(_0x40c669,_0x4d34b9){return _0x40c669(_0x4d34b9);},'wZgAs':function(_0x412ee1,_0x205b31,_0x3001b4){return _0x412ee1(_0x205b31,_0x3001b4);},'vWyYU':_0x29d914(0x320),'nQNBU':_0x589fb0[_0x29d914(0x285)],'EbQWV':'Where\x20to\x20store\x20the\x20profile','mOekn':'url','Zoeqz':'Base\x20URL\x20of\x20the\x20running\x20app','VrFiY':_0x589fb0['QDqre'],'VGGQK':_0x589fb0[_0x29d914(0x324)],'SNUCb':_0x29d914(0x207)};return _0x36f052['usage'](_0x29d914(0x27b))[_0x29d914(0x2f5)]('tokenOrSubcommand',{'type':_0x589fb0[_0x29d914(0x309)],'description':'Subcommand\x20or\x20API\x20token\x20(rngr_...)'})[_0x29d914(0x26e)](_0x589fb0['QjzZY'],_0x589fb0['lHbzT'],_0x4fbce1=>{const _0x3dd7d9=_0x29d914;return _0x4fbce1['option']('token',{'type':_0x4f8e92['XnFzp'],'description':_0x3dd7d9(0x1f0)})[_0x3dd7d9(0x1c9)](_0x3dd7d9(0x2c0),{'type':_0x4f8e92[_0x3dd7d9(0x31b)],'description':_0x4f8e92['PdWSD'],'default':![]})[_0x3dd7d9(0x1c9)](_0x4f8e92['gaCTC'],{'type':_0x4f8e92['JeQQE'],'description':_0x4f8e92['HXjnO'],'default':![]})['option']('with-deps',{'type':'boolean','description':_0x4f8e92['JsAQk'],'default':![]})[_0x3dd7d9(0x1c9)]('scope',{'type':_0x4f8e92['XnFzp'],'choices':[_0x4f8e92[_0x3dd7d9(0x334)],'project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills'})['option'](_0x3dd7d9(0x33e),{'type':_0x4f8e92['XnFzp'],'description':_0x4f8e92['oazeN']})[_0x3dd7d9(0x1c9)]('force',{'type':_0x3dd7d9(0x1ad),'description':_0x4f8e92['VvsKI'],'default':![]})[_0x3dd7d9(0x1c9)](_0x4f8e92['pfmyd'],{'type':_0x4f8e92['JeQQE'],'description':_0x3dd7d9(0x262),'default':![]})['option'](_0x4f8e92['HfhwR'],{'type':_0x4f8e92[_0x3dd7d9(0x31b)],'description':_0x3dd7d9(0x207),'default':![]})['option'](_0x4f8e92[_0x3dd7d9(0x299)],{'type':_0x4f8e92['JeQQE'],'description':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server','default':![]})['option']('mcp',{'type':_0x3dd7d9(0x1ad),'description':_0x4f8e92['tlExQ'],'default':![]});},async _0x49a463=>{const _0x7b9069=_0x29d914;(_0x49a463[_0x7b9069(0x28b)]||_0x49a463['mcp'])&&await withTelemetry(_0x589fb0['OpXZK'],()=>mcpBootstrap()),await _0x589fb0[_0x7b9069(0x232)](withTelemetry,_0x589fb0[_0x7b9069(0x1d1)],_0x2fc810=>start(_0x49a463['token'],{'skipChromium':_0x49a463[_0x7b9069(0x2c0)],'skipAuth':_0x49a463['skip-auth'],'withDeps':_0x49a463[_0x7b9069(0x2a8)],'scope':_0x49a463['scope'],'url':_0x49a463['url'],'force':_0x49a463['force'],'opencode':_0x49a463['opencode'],'allowInsecureLocalhost':_0x49a463['allow-insecure-localhost']},_0x2fc810));})['command'](_0x589fb0[_0x29d914(0x2d9)],'Install\x20Chromium\x20browser\x20binary',_0x2056de=>{const _0x33fd31=_0x29d914;return _0x2056de[_0x33fd31(0x1c9)](_0x4f8e92[_0x33fd31(0x1b5)],{'type':'boolean','description':'Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','default':![]});},async _0xab13ff=>{const _0x502a9d=_0x29d914;await withTelemetry(_0x4f8e92['ofcJz'],()=>ensureChromium(_0xab13ff[_0x502a9d(0x2a8)]));})[_0x29d914(0x26e)](_0x589fb0[_0x29d914(0x1e1)],_0x589fb0['hBdne'],_0x3a06b1=>{const _0x27f19d=_0x29d914;return _0x3a06b1[_0x27f19d(0x1c9)](_0x27f19d(0x209),{'type':_0x4f8e92[_0x27f19d(0x29f)],'description':_0x4f8e92[_0x27f19d(0x1b0)]})['option']('mcp',{'type':_0x27f19d(0x1ad),'description':_0x27f19d(0x1d6),'default':![]});},async _0x103fa6=>{const _0x501f55=_0x29d914;await withTelemetry(_0x589fb0[_0x501f55(0x276)],async()=>{const _0x3c0d66=_0x501f55;if(_0x103fa6['mcp']){await _0x4f8e92[_0x3c0d66(0x280)](mcpBootstrap);const _0xca7319=await _0x4f8e92[_0x3c0d66(0x2be)](refreshCliToken);if(!_0xca7319)throw new Error(_0x3c0d66(0x289));const _0x1887be=await _0x4f8e92[_0x3c0d66(0x23f)](getCurrentUser,_0xca7319);if(!_0x1887be[_0x3c0d66(0x231)])throw new Error('Authenticated\x20via\x20MCP,\x20but\x20failed\x20to\x20verify:\x20'+_0x1887be['error']);console['log'](_0x3c0d66(0x1bf)+_0x1887be['user'][_0x3c0d66(0x214)]);return;}await _0x4f8e92[_0x3c0d66(0x23f)](authenticate,_0x103fa6[_0x3c0d66(0x209)]);});})['command'](_0x589fb0[_0x29d914(0x247)],_0x589fb0[_0x29d914(0x2d7)],_0x5ec4bc=>{const _0x5cd0ea=_0x29d914;return _0x5ec4bc[_0x5cd0ea(0x1c9)](_0x589fb0[_0x5cd0ea(0x336)],{'type':_0x589fb0['UbNfc'],'choices':[_0x589fb0[_0x5cd0ea(0x321)],_0x589fb0['GqjeF']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills'})[_0x5cd0ea(0x1c9)](_0x589fb0['WZVDw'],{'type':_0x5cd0ea(0x1ad),'description':_0x589fb0[_0x5cd0ea(0x25a)],'default':![]});},async _0x4a6e9e=>{const _0x301e23=_0x29d914;await withTelemetry(_0x589fb0[_0x301e23(0x2f2)],async()=>{const _0x3bdab9=_0x301e23,_0x3c11dd=_0x4a6e9e[_0x3bdab9(0x320)];if(_0x4a6e9e['opencode']){const _0x5a388c=await _0x4f8e92[_0x3bdab9(0x23f)](ensureOpencodePluginConfig,_0x3c11dd);_0x5a388c&&await _0x4f8e92[_0x3bdab9(0x215)](installSkill,'ranger',{'level':_0x5a388c[_0x3bdab9(0x320)],'cliVersion':getCurrentVersion(),'platform':_0x4f8e92[_0x3bdab9(0x22b)]});}else await _0x4f8e92[_0x3bdab9(0x23f)](ensureClaudePlugin,_0x3c11dd),await ensureClaudeSkills(_0x3c11dd);});})['command'](_0x589fb0[_0x29d914(0x22c)],_0x29d914(0x204),_0x5c77b1=>{const _0x5c66b1=_0x29d914;return _0x5c77b1['option'](_0x4f8e92[_0x5c66b1(0x1fb)],{'type':_0x5c66b1(0x2da),'choices':[_0x5c66b1(0x326),_0x4f8e92['nQNBU']],'description':_0x4f8e92[_0x5c66b1(0x1a9)]})[_0x5c66b1(0x1c9)](_0x4f8e92['mOekn'],{'type':_0x4f8e92[_0x5c66b1(0x29f)],'description':_0x4f8e92[_0x5c66b1(0x2fe)]})['option'](_0x4f8e92['gaCTC'],{'type':_0x4f8e92['JeQQE'],'description':_0x4f8e92[_0x5c66b1(0x2a9)],'default':![]})[_0x5c66b1(0x1c9)](_0x4f8e92['VGGQK'],{'type':_0x4f8e92['JeQQE'],'description':_0x4f8e92['VvsKI'],'default':![]})[_0x5c66b1(0x1c9)](_0x4f8e92['HfhwR'],{'type':_0x5c66b1(0x1ad),'description':_0x4f8e92['SNUCb'],'default':![]});},async _0x14bd01=>{const _0x2a2ef1=_0x29d914;await _0x4f8e92['wZgAs'](withTelemetry,'setup:profiles',_0x139741=>ensureLocalEnv({'url':_0x14bd01['url'],'force':_0x14bd01['force'],'allowInsecureLocalhost':_0x14bd01['allow-insecure-localhost'],'scope':_0x14bd01['scope']==='user'?_0x2a2ef1(0x326):undefined},_0x139741));})['option']('skip-chromium',{'type':'boolean','description':_0x589fb0['pMJWT'],'default':![]})[_0x29d914(0x1c9)](_0x589fb0[_0x29d914(0x336)],{'type':_0x29d914(0x2da),'choices':[_0x589fb0['KNFwL'],_0x589fb0['GqjeF']],'description':_0x29d914(0x267)})[_0x29d914(0x1c9)](_0x589fb0['GZXyD'],{'type':'string','description':_0x29d914(0x331)})[_0x29d914(0x1c9)](_0x29d914(0x1e9),{'type':'boolean','description':_0x29d914(0x1e4),'default':![]})['option'](_0x29d914(0x268),{'type':_0x589fb0['rpAue'],'description':_0x589fb0['ptwWx'],'default':![]})['option'](_0x589fb0['qFIig'],{'type':_0x589fb0['rpAue'],'description':_0x29d914(0x2c2),'default':![]})['option']('mcp-bootstrap',{'type':'boolean','description':_0x589fb0[_0x29d914(0x302)],'default':![]})['option'](_0x589fb0[_0x29d914(0x1ef)],{'type':_0x29d914(0x1ad),'description':_0x29d914(0x24e),'default':![]})[_0x29d914(0x1c9)](_0x29d914(0x2a8),{'type':_0x589fb0[_0x29d914(0x2b1)],'description':'Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','default':![]})[_0x29d914(0x1c9)]('token',{'type':_0x29d914(0x2da),'hidden':!![],'description':'API\x20token'});},async _0x3bc6b7=>{const _0x4034bc=_0x51ec5c,_0xf5a0a=_0x3bc6b7[_0x4034bc(0x233)],_0x34cba0=_0x3bc6b7['token']??_0xf5a0a;_0x3bc6b7[_0x4034bc(0x28b)]&&await _0x589fb0[_0x4034bc(0x232)](withTelemetry,'mcp-bootstrap',()=>mcpBootstrap()),await _0x589fb0[_0x4034bc(0x340)](withTelemetry,_0x4034bc(0x2fd),_0xb9d445=>start(_0x34cba0,{'skipChromium':_0x3bc6b7[_0x4034bc(0x2c0)],'skipAuth':_0x3bc6b7[_0x4034bc(0x1e0)],'withDeps':_0x3bc6b7['with-deps'],'scope':_0x3bc6b7[_0x4034bc(0x320)],'url':_0x3bc6b7['url'],'force':_0x3bc6b7[_0x4034bc(0x1e9)],'opencode':_0x3bc6b7[_0x4034bc(0x268)],'allowInsecureLocalhost':_0x3bc6b7['allow-insecure-localhost']},_0xb9d445));})[_0x51ec5c(0x26e)](_0x589fb0[_0x51ec5c(0x33f)],_0x51ec5c(0x2f9),_0x113bc0=>{const _0x247960=_0x51ec5c;return _0x113bc0[_0x247960(0x2f5)](_0x247960(0x209),{'type':_0x589fb0['UbNfc'],'description':_0x589fb0['Xqbia'],'demandOption':!![]})['option']('profile',{'type':'string','description':_0x589fb0[_0x247960(0x317)]})[_0x247960(0x1c9)](_0x247960(0x1da),{'type':_0x247960(0x2da),'description':_0x589fb0[_0x247960(0x25d)]})['option'](_0x589fb0[_0x247960(0x1e7)],{'type':'boolean','description':_0x589fb0[_0x247960(0x1d5)],'default':![]});},async _0x3e8bf9=>{const _0x38fec8=_0x51ec5c;await withTelemetry(_0x589fb0['ZQsJT'],_0x99e6c8=>setupCi(_0x3e8bf9[_0x38fec8(0x209)],{'profile':_0x3e8bf9['profile'],'baseUrl':_0x3e8bf9['base-url'],'skipChromium':_0x3e8bf9['skip-chromium']},_0x99e6c8));})['command'](_0x51ec5c(0x1e3),_0x51ec5c(0x32d),()=>{},async()=>{await withTelemetry(_0x589fb0['nKflN'],()=>login());})[_0x51ec5c(0x26e)]('skillup',_0x589fb0['Txdge'],_0x1ec44d=>{const _0x4c2c4d=_0x51ec5c;return _0x1ec44d['option'](_0x589fb0['WZVDw'],{'type':'boolean','description':_0x4c2c4d(0x2f8),'default':![]})['option'](_0x589fb0[_0x4c2c4d(0x336)],{'type':_0x589fb0[_0x4c2c4d(0x309)],'choices':[_0x589fb0[_0x4c2c4d(0x321)],'project'],'description':_0x4c2c4d(0x282)});},async _0x1f0691=>{const _0x28894c=_0x51ec5c,_0x43a61f=_0x589fb0['TmJSh'](Boolean,_0x1f0691['opencode']);await _0x589fb0[_0x28894c(0x340)](withTelemetry,'skillup',()=>skillup({'autoInstall':_0x1f0691['scope'],'platform':_0x43a61f?'opencode':_0x28894c(0x242)}));})['command']('clean',_0x51ec5c(0x2ce),()=>{},async()=>{const _0x12a335=_0x51ec5c;await _0x589fb0[_0x12a335(0x30c)](withTelemetry,_0x589fb0['XuGmV'],()=>clean());})[_0x51ec5c(0x26e)](_0x51ec5c(0x1b7),_0x589fb0[_0x51ec5c(0x28c)],_0x5665b2=>{const _0x54bb3a=_0x51ec5c,_0x45dcf4={'UEQfZ':_0x589fb0['UbNfc'],'fRVSU':_0x54bb3a(0x2ba),'rtYJG':_0x589fb0['CjUDc'],'kTeod':_0x589fb0['qFIig'],'vGfni':'boolean','LUIZq':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','ksJDh':_0x589fb0[_0x54bb3a(0x1ce)],'dTiKV':_0x589fb0['qHPkQ'],'YeGvk':_0x589fb0['pinxF'],'OHuSX':_0x54bb3a(0x2b9),'iyJKl':_0x54bb3a(0x1f4)};return _0x5665b2[_0x54bb3a(0x294)](PROFILE_HELP)['command'](_0x589fb0[_0x54bb3a(0x293)],'Add\x20profile\x20configuration',_0x561968=>{const _0x38483e=_0x54bb3a;return _0x561968[_0x38483e(0x2f5)](_0x38483e(0x2ba),{'type':_0x589fb0['UbNfc'],'description':_0x589fb0['XyiHd'],'demandOption':!![]})[_0x38483e(0x1c9)]('ci',{'type':_0x38483e(0x1ad),'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x589fb0['bOeUi'],{'type':_0x589fb0[_0x38483e(0x2b1)],'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]})[_0x38483e(0x1c9)](_0x589fb0[_0x38483e(0x1db)],{'type':_0x589fb0[_0x38483e(0x309)],'description':_0x38483e(0x342)})['option'](_0x38483e(0x1e9),{'type':'boolean','description':_0x38483e(0x1e4),'default':![]})[_0x38483e(0x1c9)]('cdp-endpoint',{'type':'string','description':_0x589fb0[_0x38483e(0x260)]})['option'](_0x38483e(0x2ea),{'type':_0x589fb0['rpAue'],'description':_0x38483e(0x2c2),'default':![]})['option']('safe-mode',{'type':_0x589fb0[_0x38483e(0x2b1)],'description':_0x589fb0['BCAGD'],'default':![]})['option'](_0x589fb0[_0x38483e(0x32b)],{'type':'string','array':!![],'description':'HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)'})['option'](_0x589fb0['zjrEi'],{'type':_0x589fb0['UbNfc'],'choices':[_0x589fb0['KNFwL'],'project'],'description':_0x589fb0['WMjwp']})['option']('yes',{'type':_0x38483e(0x1ad),'alias':'y','description':'Skip\x20interactive\x20confirmation\x20prompts\x20(e.g.\x20cloud-profile\x20auto-route).','default':![]});},async _0x4eb94c=>{const _0x4ce20e=_0x54bb3a;await _0x589fb0[_0x4ce20e(0x216)](withTelemetry,_0x4ce20e(0x2bb),_0x3a14d7=>addEnv(_0x4eb94c[_0x4ce20e(0x2ba)],{'ci':_0x4eb94c['ci'],'skipAuth':_0x4eb94c[_0x4ce20e(0x1e0)],'url':_0x4eb94c[_0x4ce20e(0x33e)],'force':_0x4eb94c[_0x4ce20e(0x1e9)],'cdpEndpoint':_0x4eb94c['cdp-endpoint'],'allowInsecureLocalhost':_0x4eb94c['allow-insecure-localhost'],'safeMode':_0x4eb94c['safe-mode'],'setupHeader':_0x4eb94c[_0x4ce20e(0x249)],'scope':_0x4eb94c['scope'],'yes':_0x4eb94c[_0x4ce20e(0x2d5)]},_0x3a14d7),{'isElectron':_0x589fb0[_0x4ce20e(0x1d0)](Boolean,_0x4eb94c[_0x4ce20e(0x2c9)])});})['command']('use\x20<profile-name>',_0x589fb0[_0x54bb3a(0x297)],_0x141a71=>{const _0x444ced=_0x54bb3a;return _0x141a71['positional']('profile-name',{'type':_0x589fb0[_0x444ced(0x309)],'description':_0x589fb0['ksTtE'],'demandOption':!![]});},async _0x1659fb=>{await withTelemetry('profile\x20use',()=>useEnv(_0x1659fb['profile-name']));})['command']('encrypt-auth\x20<profile>','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)',_0x3b5805=>{const _0x197825=_0x54bb3a;return _0x3b5805['positional'](_0x197825(0x1b7),{'type':_0x45dcf4[_0x197825(0x1bc)],'description':_0x197825(0x1f4),'demandOption':!![]});},async _0x4f5241=>{const _0x4ba51f=_0x54bb3a;await withTelemetry('profile\x20encrypt-auth',()=>authEncrypt(_0x4f5241[_0x4ba51f(0x1b7)]));})['command']('ls',_0x589fb0[_0x54bb3a(0x241)],()=>{},async()=>{const _0x32c73d=_0x54bb3a;await _0x589fb0[_0x32c73d(0x232)](withTelemetry,'profile\x20ls',()=>envList());})[_0x54bb3a(0x26e)](_0x589fb0[_0x54bb3a(0x2cf)],_0x54bb3a(0x305),_0x1829d0=>{const _0x5442d1=_0x54bb3a;return _0x1829d0[_0x5442d1(0x2f5)](_0x45dcf4['fRVSU'],{'type':_0x5442d1(0x2da),'description':_0x45dcf4['rtYJG'],'demandOption':!![]})[_0x5442d1(0x1c9)](_0x45dcf4[_0x5442d1(0x226)],{'type':_0x45dcf4['vGfni'],'description':_0x45dcf4['LUIZq']});},async _0xeda28c=>{const _0x1d8c3d=_0x54bb3a;await withTelemetry('profile\x20update',_0x423ba9=>updateEnv(_0xeda28c[_0x1d8c3d(0x2ba)],_0x423ba9,{'allowInsecureLocalhost':_0xeda28c['allow-insecure-localhost']}));})['command']('migrate\x20[profile-name]','Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)',_0x12afdc=>{const _0x22d146=_0x54bb3a;return _0x12afdc['positional'](_0x22d146(0x2ba),{'type':_0x589fb0['UbNfc'],'description':'Name\x20of\x20a\x20single\x20local\x20profile\x20to\x20migrate.\x20Omit\x20with\x20--all.'})[_0x22d146(0x1c9)]('all',{'type':'boolean','description':_0x22d146(0x30f),'default':![]})[_0x22d146(0x1c9)](_0x22d146(0x20b),{'type':_0x589fb0['rpAue'],'description':'Print\x20the\x20migration\x20plan\x20without\x20mutating\x20anything.','default':![]})[_0x22d146(0x1c9)](_0x589fb0['oTGyr'],{'type':_0x22d146(0x1ad),'alias':'y','description':_0x22d146(0x2e5),'default':![]})[_0x22d146(0x1c9)](_0x589fb0[_0x22d146(0x2b4)],{'type':_0x589fb0['rpAue'],'description':_0x22d146(0x254),'default':![]});},async _0x4ba049=>{const _0x2b869d=_0x54bb3a;await withTelemetry(_0x2b869d(0x31a),_0x2510b6=>migrateProfile({'profileName':_0x4ba049['profile-name'],'all':_0x4ba049['all'],'dryRun':_0x4ba049[_0x2b869d(0x20b)],'yes':_0x4ba049['yes'],'saveCreds':_0x4ba049[_0x2b869d(0x1e6)]},_0x2510b6));})['command'](_0x589fb0[_0x54bb3a(0x287)],_0x589fb0[_0x54bb3a(0x229)],_0x597252=>{const _0x24cbea=_0x54bb3a,_0x418cb2={'jTNJL':function(_0x3e996f,_0x1b39d4,_0x4c0e87){return _0x3e996f(_0x1b39d4,_0x4c0e87);},'jzQuQ':_0x589fb0['KarcQ'],'ROjIt':'string','bAbYN':_0x589fb0['qHPkQ'],'MQfuV':'Config\x20key','sqXXX':'Config\x20key\x20to\x20remove','etoen':'profile\x20config\x20unset','enfMn':function(_0x75c630,_0x181cb6,_0x56843c){return _0x589fb0['MIclY'](_0x75c630,_0x181cb6,_0x56843c);}};return _0x597252[_0x24cbea(0x294)](PROFILE_CONFIG_HELP)['command']('set\x20<profile>\x20<key>\x20<value>',_0x589fb0[_0x24cbea(0x26b)],_0x974227=>{const _0xec2515=_0x24cbea;return _0x974227[_0xec2515(0x2f5)](_0x45dcf4[_0xec2515(0x25b)],{'type':_0x45dcf4[_0xec2515(0x1bc)],'description':'Profile\x20name','demandOption':!![]})[_0xec2515(0x2f5)](_0x45dcf4[_0xec2515(0x239)],{'type':_0xec2515(0x2da),'description':_0x45dcf4[_0xec2515(0x20d)],'demandOption':!![]})['positional'](_0xec2515(0x303),{'type':_0x45dcf4['UEQfZ'],'description':_0x45dcf4['OHuSX'],'demandOption':!![]});},async _0x6f1016=>{const _0x2e2e6e=_0x24cbea;await _0x418cb2[_0x2e2e6e(0x1e8)](withTelemetry,_0x418cb2[_0x2e2e6e(0x255)],()=>configSet(_0x6f1016[_0x2e2e6e(0x1b7)],_0x6f1016['key'],_0x6f1016['value']));})[_0x24cbea(0x26e)](_0x24cbea(0x1ee),_0x589fb0[_0x24cbea(0x1c0)],_0x148331=>{const _0x5dd3cc=_0x24cbea;return _0x148331['positional'](_0x5dd3cc(0x1b7),{'type':_0x418cb2['ROjIt'],'description':_0x5dd3cc(0x1f4),'demandOption':!![]})['positional'](_0x418cb2['bAbYN'],{'type':_0x418cb2[_0x5dd3cc(0x1dd)],'description':_0x418cb2['MQfuV'],'demandOption':!![]});},async _0x2b3928=>{const _0x409073=_0x24cbea;await withTelemetry('profile\x20config\x20get',()=>configGet(_0x2b3928[_0x409073(0x1b7)],_0x2b3928['key']));})[_0x24cbea(0x26e)](_0x24cbea(0x2cb),_0x24cbea(0x300),_0x246e76=>{const _0x12d648=_0x24cbea;return _0x246e76['positional'](_0x45dcf4['ksJDh'],{'type':_0x45dcf4[_0x12d648(0x1bc)],'description':_0x45dcf4['iyJKl'],'demandOption':!![]});},async _0x3f6e8a=>{const _0x55b06c=_0x24cbea;await withTelemetry('profile\x20config\x20list',()=>configList(_0x3f6e8a[_0x55b06c(0x1b7)]));})[_0x24cbea(0x26e)]('unset\x20<profile>\x20<key>','Remove\x20a\x20config\x20value',_0x1f6da0=>{const _0x55b8f8=_0x24cbea;return _0x1f6da0[_0x55b8f8(0x2f5)](_0x55b8f8(0x1b7),{'type':_0x418cb2[_0x55b8f8(0x1dd)],'description':_0x55b8f8(0x1f4),'demandOption':!![]})['positional'](_0x418cb2[_0x55b8f8(0x32a)],{'type':'string','description':_0x418cb2['sqXXX'],'demandOption':!![]});},async _0x459d23=>{const _0x34b5a5=_0x24cbea;await withTelemetry(_0x418cb2[_0x34b5a5(0x307)],()=>configUnset(_0x459d23['profile'],_0x459d23[_0x34b5a5(0x1d2)]));})['command'](_0x24cbea(0x2c8),'Clear\x20all\x20config\x20overrides\x20for\x20a\x20profile\x20(cloud\x20profiles\x20only)',_0x129b4a=>{const _0x32ad7c=_0x24cbea;return _0x129b4a['positional'](_0x45dcf4[_0x32ad7c(0x25b)],{'type':_0x32ad7c(0x2da),'description':_0x45dcf4['iyJKl'],'demandOption':!![]});},async _0x25f4fa=>{const _0x4d3f69=_0x24cbea;await _0x418cb2['enfMn'](withTelemetry,_0x4d3f69(0x27e),()=>configReset(_0x25f4fa[_0x4d3f69(0x1b7)]));})['demandCommand'](0x1,_0x589fb0['XDboz']);})[_0x54bb3a(0x253)](0x1,_0x589fb0[_0x54bb3a(0x228)]);})['command'](_0x589fb0[_0x51ec5c(0x212)],_0x589fb0[_0x51ec5c(0x28a)],()=>{},async()=>{const _0x4853de=_0x51ec5c;await _0x589fb0[_0x4853de(0x340)](withTelemetry,_0x4853de(0x2a1),()=>status());})['command']('update',_0x51ec5c(0x1c1),()=>{},async()=>{await withTelemetry('update',()=>update());})[_0x51ec5c(0x26e)](_0x589fb0[_0x51ec5c(0x24b)],_0x589fb0[_0x51ec5c(0x201)],()=>{},async()=>{await withTelemetry(_0x589fb0['uwAfw'],async()=>{const _0x17a750=await getToken();if(!_0x17a750)throw new Error('No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.');console['log'](_0x17a750);});})['command']('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x3f9258=>{const _0x2434a4=_0x51ec5c;return _0x3f9258[_0x2434a4(0x1c9)](_0x589fb0['sarlW'],{'type':'string','description':_0x2434a4(0x286)})['option'](_0x589fb0['nDGiZ'],{'type':_0x2434a4(0x2da),'description':_0x2434a4(0x21f)})[_0x2434a4(0x1c9)](_0x589fb0['oSOVW'],{'type':_0x589fb0['UbNfc'],'description':_0x589fb0[_0x2434a4(0x1ab)]})['option'](_0x589fb0[_0x2434a4(0x218)],{'type':_0x589fb0[_0x2434a4(0x20a)],'description':'Scenario\x20index\x20(1-based)'})['option']('start-path',{'type':_0x589fb0[_0x2434a4(0x309)],'description':_0x589fb0['AWuDk']})['option'](_0x589fb0[_0x2434a4(0x33a)],{'type':_0x2434a4(0x2da),'description':_0x589fb0['fWyno']})['option'](_0x589fb0[_0x2434a4(0x2b2)],{'type':'string','description':_0x2434a4(0x23a)})['option'](_0x589fb0['DuSpi'],{'type':_0x2434a4(0x1ad),'description':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','default':![]})[_0x2434a4(0x1c9)](_0x589fb0[_0x2434a4(0x31d)],{'type':_0x589fb0['UbNfc'],'hidden':!![],'choices':[_0x589fb0['BMxIY'],_0x2434a4(0x246),_0x2434a4(0x236),'failed',_0x589fb0['rYLIh']]})['option'](_0x2434a4(0x22e),{'type':_0x589fb0[_0x2434a4(0x2b1)],'hidden':!![]})['option'](_0x589fb0[_0x2434a4(0x332)],{'type':_0x589fb0[_0x2434a4(0x309)],'hidden':!![]})['option'](_0x589fb0['UwdsJ'],{'type':_0x589fb0['UbNfc'],'hidden':!![]})['option']('item',{'type':_0x589fb0[_0x2434a4(0x20a)],'hidden':!![]});},async _0x33fd40=>{await runGoCommand(_0x33fd40);})[_0x51ec5c(0x26e)](_0x51ec5c(0x2e4),![],_0x14f59f=>{const _0x4e77ef=_0x51ec5c,_0x440c9d={'vCKgt':_0x589fb0[_0x4e77ef(0x1ce)],'zGHoA':function(_0x3da93c,_0x4ad084,_0x39e031){return _0x3da93c(_0x4ad084,_0x39e031);},'IqZlc':_0x4e77ef(0x2a6),'RHvGx':function(_0x30dcd7,_0x463141){const _0x2b9310=_0x4e77ef;return _0x589fb0[_0x2b9310(0x2b7)](_0x30dcd7,_0x463141);}};return _0x14f59f['command'](_0x589fb0[_0x4e77ef(0x2e7)],![],_0x4a35ee=>{const _0x2d290d=_0x4e77ef;return _0x4a35ee[_0x2d290d(0x2f5)](_0x440c9d['vCKgt'],{'type':'string','description':_0x2d290d(0x1f4),'demandOption':!![]});},async _0x5bf1a4=>{const _0x178b02=_0x4e77ef;_0x440c9d[_0x178b02(0x230)](warnRenamed,_0x178b02(0x296),_0x440c9d['IqZlc']),await _0x440c9d[_0x178b02(0x313)](authEncrypt,_0x5bf1a4[_0x178b02(0x1b7)]);})[_0x4e77ef(0x253)](0x1,_0x4e77ef(0x250));},()=>{})[_0x51ec5c(0x26e)](_0x589fb0['gfEqA'],![],_0x4a5a93=>{const _0x108be6=_0x51ec5c;return _0x4a5a93[_0x108be6(0x2f5)](_0x589fb0['LvQVc'],{'type':_0x108be6(0x2da),'description':_0x108be6(0x298)})[_0x108be6(0x1c9)](_0x108be6(0x2c0),{'type':_0x108be6(0x1ad),'description':_0x589fb0[_0x108be6(0x2fb)],'default':![]})['option']('scope',{'type':_0x108be6(0x2da),'choices':[_0x589fb0[_0x108be6(0x321)],_0x589fb0[_0x108be6(0x285)]],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})[_0x108be6(0x1c9)](_0x589fb0[_0x108be6(0x1db)],{'type':_0x589fb0[_0x108be6(0x309)],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x108be6(0x1c9)]('force',{'type':'boolean','description':_0x108be6(0x1e4),'default':![]})['option']('skip-auth',{'type':'boolean','description':'Skip\x20authentication','default':![]})['option'](_0x108be6(0x2a8),{'type':_0x589fb0[_0x108be6(0x2b1)],'description':_0x589fb0['tUDpc'],'default':![]});},async _0x390ab4=>{const _0x399a7e=_0x51ec5c;warnRenamed(_0x589fb0['meVcr'],_0x589fb0['PggtW']),await withTelemetry(_0x589fb0[_0x399a7e(0x1f5)],_0x37a085=>start(_0x390ab4['token'],{'skipChromium':_0x390ab4['skip-chromium'],'skipAuth':_0x390ab4['skip-auth'],'withDeps':_0x390ab4[_0x399a7e(0x2a8)],'scope':_0x390ab4['scope'],'url':_0x390ab4[_0x399a7e(0x33e)],'force':_0x390ab4[_0x399a7e(0x1e9)]},_0x37a085));})['command'](_0x589fb0['BpgcY'],![],_0x254903=>{const _0x2f27c8=_0x51ec5c;return _0x254903[_0x2f27c8(0x1c9)](_0x589fb0['Mkznl'],{'type':_0x2f27c8(0x2da),'description':_0x589fb0[_0x2f27c8(0x1fd)]})[_0x2f27c8(0x1c9)](_0x589fb0[_0x2f27c8(0x223)],{'type':_0x589fb0['UbNfc'],'description':_0x589fb0['sOLho']})[_0x2f27c8(0x1c9)](_0x2f27c8(0x2f6),{'type':'number','description':_0x589fb0['VpuQa']})['option'](_0x2f27c8(0x1b7),{'type':_0x2f27c8(0x2da),'hidden':!![]})['option'](_0x2f27c8(0x284),{'type':'string','hidden':!![]})['option'](_0x589fb0['oDYAP'],{'type':_0x589fb0['NpEBw'],'hidden':!![]})[_0x2f27c8(0x1c9)](_0x2f27c8(0x1c8),{'type':_0x2f27c8(0x2da),'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.'})[_0x2f27c8(0x1c9)](_0x589fb0['DITeR'],{'type':_0x589fb0[_0x2f27c8(0x309)],'description':_0x589fb0[_0x2f27c8(0x21a)]})[_0x2f27c8(0x1c9)](_0x589fb0['fULAf'],{'type':_0x2f27c8(0x2da),'hidden':!![]})[_0x2f27c8(0x1c9)](_0x589fb0['DuSpi'],{'type':_0x589fb0['rpAue'],'hidden':!![],'default':![]})[_0x2f27c8(0x1c9)](_0x589fb0[_0x2f27c8(0x31d)],{'type':_0x589fb0['UbNfc'],'hidden':!![],'choices':[_0x589fb0['BMxIY'],_0x2f27c8(0x246),_0x589fb0['TvfbT'],'failed',_0x589fb0['rYLIh']]});},async _0x54c691=>{await runGoCommand(_0x54c691,!![]);})[_0x51ec5c(0x26e)]('add\x20env\x20<env-name>',![],_0x5d65c0=>{const _0x1a6650=_0x51ec5c;return _0x5d65c0[_0x1a6650(0x2f5)]('env-name',{'type':_0x1a6650(0x2da),'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0x1a6650(0x1c9)]('ci',{'type':'boolean','description':_0x589fb0[_0x1a6650(0x272)],'default':![]})[_0x1a6650(0x1c9)]('skip-auth',{'type':_0x589fb0[_0x1a6650(0x2b1)],'description':_0x589fb0['qqXDi'],'default':![]});},async _0x1cdc81=>{const _0x57f59e=_0x51ec5c;_0x589fb0['MIclY'](warnRenamed,'ranger\x20add\x20env',_0x589fb0['gPSri']),await _0x589fb0['tjsVU'](withTelemetry,'add\x20env',_0x58c48e=>addEnv(_0x1cdc81['env-name'],{'ci':_0x1cdc81['ci'],'skipAuth':_0x1cdc81[_0x57f59e(0x1e0)]},_0x58c48e));})['command'](_0x589fb0[_0x51ec5c(0x1f8)],![],_0x163880=>{const _0x5b8b48=_0x51ec5c;return _0x163880['positional'](_0x5b8b48(0x32f),{'type':'string','description':_0x5b8b48(0x32e),'demandOption':!![]});},async _0x5dd332=>{const _0x2899f1=_0x51ec5c;_0x589fb0[_0x2899f1(0x340)](warnRenamed,_0x589fb0['gCpfH'],_0x589fb0['PcXwC']),await withTelemetry('use',()=>useEnv(_0x5dd332[_0x2899f1(0x32f)]));})['command']('config',![],_0x33357b=>{const _0x4256cc=_0x51ec5c,_0x2740ba={'pFulN':_0x589fb0['eOKIE'],'BpwnB':'key','surpG':_0x589fb0[_0x4256cc(0x309)],'PfDuo':_0x4256cc(0x303),'CGxVo':function(_0x2c17a6,_0x256c6e,_0x1f4a6f){return _0x2c17a6(_0x256c6e,_0x1f4a6f);},'AbGxK':_0x4256cc(0x1af),'lmxwe':_0x4256cc(0x341),'dUhvi':_0x589fb0['Ijtty'],'QLDYe':'ranger\x20profile\x20config\x20list','OgKGO':_0x4256cc(0x2e6)};return _0x33357b[_0x4256cc(0x26e)](_0x589fb0['hbuCW'],![],_0x38f561=>{const _0x31f85f=_0x4256cc;return _0x38f561[_0x31f85f(0x2f5)](_0x31f85f(0x20f),{'type':_0x31f85f(0x2da),'description':_0x2740ba[_0x31f85f(0x2c1)],'demandOption':!![]})[_0x31f85f(0x2f5)](_0x2740ba[_0x31f85f(0x2cd)],{'type':_0x2740ba[_0x31f85f(0x22a)],'description':_0x31f85f(0x2e8),'demandOption':!![]})['positional'](_0x2740ba['PfDuo'],{'type':_0x2740ba['surpG'],'description':'Config\x20value','demandOption':!![]});},async _0x5c8405=>{const _0xc52f45=_0x4256cc;_0x589fb0['FmRJL'](warnRenamed,_0xc52f45(0x27d),_0xc52f45(0x325)),await withTelemetry('config\x20set',()=>configSet(_0x5c8405['env'],_0x5c8405['key'],_0x5c8405['value']));})['command'](_0x589fb0['CVxRd'],![],_0x1f53a2=>{const _0x534ae9=_0x4256cc;return _0x1f53a2['positional'](_0x589fb0['Mkznl'],{'type':_0x589fb0[_0x534ae9(0x309)],'description':_0x589fb0[_0x534ae9(0x1c7)],'demandOption':!![]})['positional']('key',{'type':'string','description':_0x534ae9(0x318),'demandOption':!![]});},async _0x24ba33=>{const _0x26bfc1=_0x4256cc;_0x2740ba[_0x26bfc1(0x227)](warnRenamed,_0x2740ba[_0x26bfc1(0x217)],_0x2740ba['lmxwe']),await withTelemetry(_0x26bfc1(0x200),()=>configGet(_0x24ba33['env'],_0x24ba33['key']));})[_0x4256cc(0x26e)](_0x589fb0['hdPTL'],![],_0x3c3ece=>{const _0x1b747e=_0x4256cc;return _0x3c3ece[_0x1b747e(0x2f5)](_0x589fb0['Mkznl'],{'type':'string','description':_0x589fb0[_0x1b747e(0x1c7)],'demandOption':!![]});},async _0xc078c5=>{const _0x2e0f93=_0x4256cc;warnRenamed(_0x2740ba[_0x2e0f93(0x257)],_0x2740ba[_0x2e0f93(0x23c)]),await withTelemetry(_0x2740ba['OgKGO'],()=>configList(_0xc078c5[_0x2e0f93(0x20f)]));})[_0x4256cc(0x26e)](_0x4256cc(0x344),![],_0x4cf851=>{const _0xb912=_0x4256cc;return _0x4cf851[_0xb912(0x2f5)](_0xb912(0x20f),{'type':_0x589fb0['UbNfc'],'description':_0xb912(0x1dc),'demandOption':!![]})['positional'](_0x589fb0[_0xb912(0x2a3)],{'type':_0x589fb0['UbNfc'],'description':_0xb912(0x1c6),'demandOption':!![]});},async _0x56ddbb=>{const _0x6e297e=_0x4256cc;_0x589fb0['FmRJL'](warnRenamed,_0x589fb0[_0x6e297e(0x2a0)],_0x6e297e(0x2c7)),await withTelemetry('config\x20unset',()=>configUnset(_0x56ddbb['env'],_0x56ddbb[_0x6e297e(0x1d2)]));})[_0x4256cc(0x253)](0x1,_0x589fb0['EmSsi']);})['command']('env',![],_0x20f09=>{const _0x250a25=_0x51ec5c,_0x3a92b6={'cnPMd':function(_0x4f79b8,_0x394614,_0x396f4c){return _0x4f79b8(_0x394614,_0x396f4c);},'swnOx':'env\x20list','CNGvp':_0x250a25(0x2da),'jcXAy':_0x250a25(0x1ba)};return _0x20f09['command']('ls',![],()=>{},async()=>{const _0x7d9e2c=_0x250a25;_0x3a92b6[_0x7d9e2c(0x27c)](warnRenamed,_0x7d9e2c(0x2a4),'ranger\x20profile\x20ls'),await withTelemetry(_0x3a92b6[_0x7d9e2c(0x1d8)],()=>envList());})['command']('update\x20<env-name>',![],_0xb55b57=>{const _0x5f58e9=_0x250a25;return _0xb55b57['positional'](_0x5f58e9(0x32f),{'type':_0x3a92b6['CNGvp'],'description':_0x3a92b6[_0x5f58e9(0x283)],'demandOption':!![]});},async _0x2fbc0c=>{const _0x4dc4ce=_0x250a25;_0x589fb0['dZwmy'](warnRenamed,_0x4dc4ce(0x2fa),_0x589fb0['cOfYL']),await withTelemetry(_0x4dc4ce(0x31f),_0x420255=>updateEnv(_0x2fbc0c['env-name'],_0x420255));})[_0x250a25(0x253)](0x1,'You\x20must\x20specify\x20an\x20env\x20subcommand');})['command']('feature',![],_0x4f5d7f=>{const _0x963e7c=_0x51ec5c,_0x2ca47e={'fFDTt':_0x589fb0['BNXop'],'nLMMw':_0x589fb0['rpAue'],'vFyge':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','yLOox':_0x963e7c(0x2dd),'FnfCy':'offset','JBpqR':_0x963e7c(0x252),'wtgRK':_0x963e7c(0x24d),'quhKR':_0x589fb0[_0x963e7c(0x290)],'pvMhx':function(_0x36b37e,_0x37e431,_0xca628){return _0x36b37e(_0x37e431,_0xca628);},'wywWl':_0x963e7c(0x2a5),'WaBeL':_0x589fb0['goSxR'],'QocFa':_0x589fb0['qIkjs'],'QVUPg':_0x963e7c(0x2da),'XYbiG':_0x589fb0['rUFLE'],'WCHJB':_0x589fb0['hsqtp'],'JbVQL':_0x963e7c(0x2db),'qBIRl':_0x963e7c(0x2e0),'TOjYG':_0x963e7c(0x259),'HwkSm':'feature\x20delete'};return _0x4f5d7f[_0x963e7c(0x26e)](_0x963e7c(0x2ef),![],_0x103454=>{const _0x1b615e=_0x963e7c;return _0x103454['positional']('name',{'type':'string','description':_0x1b615e(0x328),'demandOption':!![]})[_0x1b615e(0x1c9)](_0x589fb0['OgVOO'],{'type':_0x1b615e(0x2da),'alias':'d','description':'Feature\x20review\x20description'})['option'](_0x589fb0['Wnvuh'],{'type':'array','alias':'c','description':_0x589fb0[_0x1b615e(0x1f3)]})[_0x1b615e(0x1c9)](_0x589fb0[_0x1b615e(0x218)],{'type':_0x589fb0[_0x1b615e(0x248)],'hidden':!![]});},async _0x3c02c=>{const _0x344586=_0x963e7c;warnRenamed(_0x344586(0x251),_0x344586(0x1d7)),_0x589fb0[_0x344586(0x216)](warnFlagRenamed,_0x344586(0x1d7),_0x344586(0x2b3),_0x589fb0['BLAoF']);const _0x331b7a=_0x3c02c[_0x344586(0x21e)]||_0x3c02c[_0x344586(0x1b6)];await withTelemetry(_0x589fb0[_0x344586(0x21b)],()=>featureCreate(_0x3c02c[_0x344586(0x279)],{'description':_0x3c02c[_0x344586(0x261)],'scenarios':_0x331b7a}));})[_0x963e7c(0x26e)]('list',![],_0x47cb92=>{const _0x2fc622=_0x963e7c;return _0x47cb92['option'](_0x2ca47e[_0x2fc622(0x295)],{'type':_0x2ca47e['nLMMw'],'description':_0x2ca47e[_0x2fc622(0x30e)]})[_0x2fc622(0x1c9)](_0x2fc622(0x28f),{'type':_0x2ca47e['yLOox'],'alias':'l','description':_0x2fc622(0x288),'default':0xa})['option'](_0x2ca47e[_0x2fc622(0x1bd)],{'type':'number','alias':'o','description':_0x2ca47e['JBpqR'],'default':0x0})[_0x2fc622(0x1c9)](_0x2ca47e['wtgRK'],{'type':_0x2ca47e['nLMMw'],'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x4e5102=>{const _0x176691=_0x963e7c;warnRenamed(_0x589fb0[_0x176691(0x219)],_0x589fb0['CzFdv']),await _0x589fb0['CldVs'](withTelemetry,_0x589fb0[_0x176691(0x1e2)],()=>featureList({'currentBranch':_0x4e5102[_0x176691(0x278)],'limit':_0x4e5102['limit'],'offset':_0x4e5102[_0x176691(0x31c)],'includeDeleted':_0x4e5102[_0x176691(0x24d)]}));})['command'](_0x589fb0[_0x963e7c(0x26c)],![],_0x4d12a1=>{const _0x41074f=_0x963e7c;return _0x4d12a1[_0x41074f(0x2f5)]('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0x42ffca=>{const _0x3613dd=_0x963e7c;warnRenamed('ranger\x20feature\x20show',_0x589fb0[_0x3613dd(0x329)]),await _0x589fb0[_0x3613dd(0x30c)](withTelemetry,_0x589fb0[_0x3613dd(0x22d)],()=>featureShow(_0x42ffca['id']));})['command']('resume\x20[id]',![],_0x5acb9e=>{const _0x40ade0=_0x963e7c;return _0x5acb9e['positional']('id',{'type':'string','description':_0x2ca47e[_0x40ade0(0x235)]});},async _0x224ac6=>{const _0x437670=_0x963e7c;_0x2ca47e[_0x437670(0x2f7)](warnRenamed,_0x2ca47e[_0x437670(0x1aa)],_0x2ca47e[_0x437670(0x2b5)]),await withTelemetry(_0x2ca47e[_0x437670(0x1ac)],()=>featureResume(_0x224ac6['id']));})[_0x963e7c(0x26e)](_0x589fb0['tyeAz'],![],_0x4a9085=>{const _0x4a043b=_0x963e7c;return _0x4a9085[_0x4a043b(0x2f5)](_0x4a043b(0x261),{'type':_0x2ca47e['QVUPg'],'description':_0x4a043b(0x256),'demandOption':!![]})[_0x4a043b(0x1c9)]('id',{'type':'string','description':_0x2ca47e[_0x4a043b(0x1c4)]});},async _0x476207=>{const _0x2f2055=_0x963e7c;warnRenamed(_0x589fb0[_0x2f2055(0x1ae)],_0x589fb0['ygwJN']),await withTelemetry(_0x589fb0['udBLZ'],()=>featureAddScenario(_0x476207[_0x2f2055(0x261)],_0x476207['id']));})[_0x963e7c(0x26e)](_0x589fb0['KdIwn'],![],_0x33a7ac=>{const _0x569dfa=_0x963e7c;return _0x33a7ac[_0x569dfa(0x2f5)]('id',{'type':_0x589fb0[_0x569dfa(0x309)],'description':_0x569dfa(0x2ec)});},async _0x9ec9a4=>{const _0x19e9f1=_0x963e7c;_0x2ca47e[_0x19e9f1(0x2f7)](warnRenamed,_0x2ca47e[_0x19e9f1(0x2ae)],_0x2ca47e['JbVQL']),await withTelemetry(_0x2ca47e[_0x19e9f1(0x2ca)],()=>featureGetReview(_0x9ec9a4['id']));})[_0x963e7c(0x26e)](_0x589fb0[_0x963e7c(0x24a)],![],_0x4467cf=>{const _0x40b77d=_0x963e7c;return _0x4467cf[_0x40b77d(0x2f5)]('id',{'type':'string','description':_0x40b77d(0x21c)});},async _0x1820da=>{const _0x90adb8=_0x963e7c;_0x2ca47e[_0x90adb8(0x2f7)](warnRenamed,'ranger\x20feature\x20delete',_0x2ca47e['TOjYG']),await withTelemetry(_0x2ca47e[_0x90adb8(0x29c)],()=>featureDelete(_0x1820da['id']));})[_0x963e7c(0x26e)]('restore\x20<id>',![],_0x33ca25=>{const _0x4ed181=_0x963e7c;return _0x33ca25[_0x4ed181(0x2f5)]('id',{'type':'string','description':_0x589fb0['xeYvB'],'demandOption':!![]});},async _0x307df9=>{const _0x40a608=_0x963e7c;warnRenamed('ranger\x20feature\x20restore',_0x589fb0[_0x40a608(0x1ed)]),await _0x589fb0['EOeuF'](withTelemetry,_0x589fb0[_0x40a608(0x2f1)],()=>featureRestore(_0x307df9['id']));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand');})['command'](_0x589fb0[_0x51ec5c(0x2e9)],![],_0x41377e=>{const _0x2dd578=_0x51ec5c,_0xf29fd9={'SyTgL':_0x589fb0['rwpSV'],'MroKe':_0x589fb0[_0x2dd578(0x309)]};return _0x41377e[_0x2dd578(0x26e)](_0x589fb0[_0x2dd578(0x1ec)],_0x589fb0[_0x2dd578(0x271)],_0x2a67e2=>{const _0x3b51fc=_0x2dd578;return _0x2a67e2[_0x3b51fc(0x1c9)](_0x3b51fc(0x23b),{'type':'string','description':_0xf29fd9[_0x3b51fc(0x263)]});},async _0x33ef79=>{const _0x1dde61=_0x2dd578;await withTelemetry(_0x1dde61(0x2de),()=>hook('enable',_0x33ef79['session-id']));})['command'](_0x2dd578(0x333),_0x2dd578(0x314),_0x4724cb=>{const _0x3dbe04=_0x2dd578;return _0x4724cb[_0x3dbe04(0x1c9)]('session-id',{'type':_0xf29fd9['MroKe'],'description':_0xf29fd9['SyTgL']});},async _0x2c318d=>{await _0x589fb0['EOeuF'](withTelemetry,'hook:disable',()=>hook('disable',_0x2c318d['session-id']));})[_0x2dd578(0x1c9)](_0x589fb0['OoUxL'],{'type':'string','description':_0x2dd578(0x339)})[_0x2dd578(0x1c9)](_0x589fb0[_0x2dd578(0x316)],{'type':_0x2dd578(0x2da),'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x48f9d6=>{const _0xeee245=_0x51ec5c;_0x48f9d6['name']&&await _0x589fb0[_0xeee245(0x205)](hook,_0x48f9d6['name'],_0x48f9d6[_0xeee245(0x23b)]);})[_0x51ec5c(0x253)](0x1,_0x51ec5c(0x24f))[_0x51ec5c(0x25f)]()['fail'](async(_0x2a6ad1,_0x5d1f5d,_0x3c9930)=>{const _0x165e5c=_0x51ec5c,_0x40a248=_0x589fb0[_0x165e5c(0x2b7)](sanitizeArgs,process[_0x165e5c(0x2e3)][_0x165e5c(0x2ed)](0x2)),_0xafde2c=getErrorType(_0x2a6ad1,_0x5d1f5d);if(_0x2a6ad1&&_0x2a6ad1['includes'](_0x589fb0[_0x165e5c(0x2af)])){const _0x17f785=process['argv'][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x17f785),console[_0x165e5c(0x224)](_0x165e5c(0x2fc));}else{if(_0x2a6ad1)console['error']('\x0a'+_0x2a6ad1+'\x0a');else _0x5d1f5d&&console['error']('\x0aError:\x20'+_0x5d1f5d[_0x165e5c(0x29a)]+'\x0a');}await _0x589fb0[_0x165e5c(0x2b7)](logDesirePath,{'rawCommand':_0x40a248,'errorMessage':_0x2a6ad1||_0x5d1f5d?.[_0x165e5c(0x29a)],'errorType':_0xafde2c});const _0x30fe88=getCurrentCollector();_0x30fe88&&await _0x30fe88['trackCommandError'](_0x5d1f5d||new Error(_0x2a6ad1||'Unknown\x20error')),process['exit'](0x1);})[_0x51ec5c(0x2bf)](_0x589fb0['FcokL'](_0x589fb0[_0x51ec5c(0x2e1)]('Documentation:\x0a',_0x589fb0['BvuAR']),_0x589fb0['XJpgz']))[_0x51ec5c(0x33b)]()['alias'](_0x51ec5c(0x33b),'h');}process['env'][_0x3f7e8a(0x23e)]!==_0x3f7e8a(0x2d0)&&buildParser()[_0x3f7e8a(0x306)]();
|
|
2
|
+
const _0x10ef54=_0x1deb;(function(_0x4c6d39,_0x1cbfa3){const _0x3893d2=_0x1deb,_0x6ec789=_0x4c6d39();while(!![]){try{const _0x55f641=-parseInt(_0x3893d2(0x34b))/0x1+-parseInt(_0x3893d2(0x1fa))/0x2*(-parseInt(_0x3893d2(0x355))/0x3)+parseInt(_0x3893d2(0x2c2))/0x4*(parseInt(_0x3893d2(0x342))/0x5)+-parseInt(_0x3893d2(0x35d))/0x6+parseInt(_0x3893d2(0x29c))/0x7*(-parseInt(_0x3893d2(0x337))/0x8)+parseInt(_0x3893d2(0x276))/0x9+parseInt(_0x3893d2(0x2ca))/0xa*(parseInt(_0x3893d2(0x34d))/0xb);if(_0x55f641===_0x1cbfa3)break;else _0x6ec789['push'](_0x6ec789['shift']());}catch(_0x37e8f1){_0x6ec789['push'](_0x6ec789['shift']());}}}(_0xeddc,0xaf4e5));import _0x4c53d0 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x552fc4=_0x1deb,_0x6d2eb3={'PwKDK':function(_0x5176d8,_0x81bfa1){return _0x5176d8!==_0x81bfa1;},'ucLvo':function(_0x2f1ee3,_0x201b0d,_0x569ab6){return _0x2f1ee3(_0x201b0d,_0x569ab6);},'OFpbq':'.ranger','QduxG':function(_0x237e27,_0x3f56b0){return _0x237e27(_0x3f56b0);},'rMGiy':_0x552fc4(0x2b5)};let _0x1cc5a6=process['cwd']();const _0x20c344=parse(_0x1cc5a6)[_0x552fc4(0x306)];while(_0x6d2eb3['PwKDK'](_0x1cc5a6,_0x20c344)){if(existsSync(_0x6d2eb3[_0x552fc4(0x285)](join,_0x1cc5a6,_0x6d2eb3[_0x552fc4(0x268)]))||_0x6d2eb3[_0x552fc4(0x29a)](existsSync,_0x6d2eb3['ucLvo'](join,_0x1cc5a6,_0x6d2eb3[_0x552fc4(0x371)])))return _0x1cc5a6;_0x1cc5a6=dirname(_0x1cc5a6);}return process[_0x552fc4(0x2ee)]();}_0x4c53d0['config']({'path':join(findProjectRoot(),_0x10ef54(0x2b5))});import _0x198c04 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook,ensureLocalEnv,ensureChromium,authenticate,migrateProfile}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{mcpBootstrap}from'./commands/mcpBootstrap.js';function _0xeddc(){const _0x388230=['Name\x20of\x20a\x20single\x20local\x20profile\x20to\x20migrate.\x20Omit\x20with\x20--all.','Optmf','Name\x20of\x20the\x20environment\x20to\x20update','--env','kIbPI','Name\x20of\x20the\x20profile\x20to\x20update','sGoNu','Dlpzz','VjzEH','pCuTH','ranger\x20feature\x20list','tZqOs','string','NHplm','WeULz','ExHoW','evaluation','exit','map','Rznqf','list','env\x20update','OXfxt','model','OOuBa','giecO','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','set\x20<profile>\x20<key>\x20<value>','skip-chromium','add-checklist-item\x20<description>','gQkln','TmaTA','ranger\x20feature\x20create','TYmyD','OSXYN','oFYwT','XCUUv','eUmTI','allow-insecure-localhost','42086iYiZSb','AqCks','unset\x20<env>\x20<key>','gTojp','ranger\x20delete','rvyit','option','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','trNoN','jGbYH','JiNno','Install\x20Chromium\x20browser\x20binary','xAKiS','epilogue','yes','KgSTG','wLzsY','qiwEq','Ranger\x20API\x20token\x20(rngr_...)','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','ranger\x20profile\x20config\x20set','get\x20<profile>\x20<key>','eiOeG','lyTbd','error','wNKCu','LlHDI','UngNx','show','token','Skip\x20interactive\x20confirmation\x20prompts\x20(e.g.\x20cloud-profile\x20auto-route).','QXhCk','uiSeT','skillup','--task','rQmhj','task','ranger\x20show','limit','mjZUh','Update\x20authentication\x20for\x20an\x20existing\x20profile','feature','rNYVz','profile\x20config\x20reset','headed','List\x20all\x20config\x20for\x20a\x20profile','RTmcK','LjhlO','incomplete','ranger\x20verify-feature','restore\x20<id>','API\x20token','Usage:\x20ranger\x20setup\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(default\x20when\x20no\x20subcommand\x20given)\x0a\x20\x20deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20browser\x20binary\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20skills\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20profiles\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x0aRun\x20`ranger\x20setup\x20<command>\x20--help`\x20for\x20details.\x0a\x0aExamples:\x0a\x20\x20ranger\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Interactive\x20first-time\x20setup\x0a\x20\x20ranger\x20setup\x20deps\x20--with-deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20+\x20OS\x20deps\x20(Dockerfile)\x0a\x20\x20ranger\x20setup\x20login\x20--mcp\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20via\x20MCP\x20proxy\x0a\x20\x20ranger\x20setup\x20skills\x20--scope\x20user\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20skills\x20at\x20user\x20level','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','config\x20list','delete\x20[id]','Manage\x20profile\x20configuration','sNCzm','WyAlH','ohrhe','not_configured','profile-name','--scenario','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','forEach','Manage\x20profiles','Skip\x20interactive\x20confirmation\x20prompts.','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','ranger\x20feature\x20delete','ogGcg','KZiCI','profile\x20config\x20list','failed','BcCbe','IqLUw','RZsov','setup:profiles','dry-run','gwghi','Failed\x20to\x20exchange\x20MCP\x20refresh\x20token\x20for\x20a\x20CLI\x20token.','rvAkF','hSDRp','VzafD','SnExY','Include\x20soft-deleted\x20feature\x20reviews','Login\x20failed:\x20','qwQUa','xZRdW','SxaGF','hHtHI','Skip\x20authentication','Set\x20up\x20a\x20local\x20browser\x20profile','slice','vnSzD','get-feedback\x20[id]','encrypt\x20<profile>','hook:disable','Unknown\x20command','SMXSt','Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run.\x20Also\x20respects\x20RANGER_BASE_URL.','JyKot','ranger\x20use','url','scriptName','PCiRu','cdp-endpoint','Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','base-url','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','OFpbq','TRMYs','poZaI','RANGER_TEST_PASSWORD','You\x20must\x20specify\x20a\x20profile\x20subcommand','Subcommand\x20or\x20API\x20token\x20(rngr_...)','ranger\x20profile\x20encrypt-auth','RwCaF','profile\x20use','checklist','UXjgv','get-review','IBgSN','Etudq','7575975jyKTQP','mmSRE','Get\x20a\x20config\x20value','use\x20<env-name>','rrmGM','jtbpr','YuIeB','cDOYv','update\x20<env-name>','Run\x20full\x20interactive\x20setup','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','Add\x20profile\x20configuration','jvQPO','RwAir','oGmKd','ucLvo','feature\x20create','uoSDR','nlEhZ','WeDbM','fkTUr','scope','AMoWo','Skip\x20browser\x20authentication','Config\x20key\x20to\x20remove','ranger','ranger\x20profile\x20config\x20unset','config\x20get','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','wmVNh','InTLD','debug-outcome','Profile\x20name','MZIOH','ranger\x20profile\x20add','print-access-token','QduxG','profile\x20config\x20get','7gkXqVT','update\x20<profile-name>','boolean','Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aProfile\x20config.\x20Routes\x20automatically\x20based\x20on\x20where\x20the\x20profile\x20lives:\x0a\x20\x20-\x20Local\x20profiles\x20write\x20to\x20.ranger/<env>/settings.json\x0a\x20\x20-\x20Cloud\x20profiles\x20write\x20a\x20local\x20overlay\x20in\x20~/.ranger/projects.json\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\x20(effective\x20value\x20for\x20cloud\x20profiles)\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x20\x20reset\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Clear\x20all\x20local\x20overrides\x20(cloud\x20profiles\x20only)\x0a\x0aKeys:\x0a\x20\x20baseUrl\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Base\x20URL\x20(most\x20common\x20override\x20for\x20cloud\x20profiles)\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20headers.<name>\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20headers.X-Test-Mode).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22header.<name>\x22\x20is\x20also\x20accepted\x20as\x20an\x20alias.\x0a\x20\x20setupHeaders.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeaders.x-bypass-turnstile).\x20\x22setupHeader.<name>\x22\x20alias\x20accepted.\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20headers.X-Debug\x201','feature\x20add-checklist-item','xRLgX','\x20is\x20now\x20','\x20INCOMPLETE','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.','profile\x20config\x20set','uYyFF','TCaHl','help','lIffR','aAvbp','rexKv','.\x20[','eIgNh','vBbrT','Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','iuJJO','Ranger\x20API\x20token','ranger\x20config\x20unset','XsRXo','QYBcn','.env','avhas','HRnEG','env-name','PErCo','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','VybXy','jQXFx','ZJLUA','array','You\x20must\x20specify\x20an\x20auth\x20subcommand','Base\x20URL\x20of\x20the\x20running\x20app','resume','24EMOaMe','Authenticate\x20via\x20MCP\x20proxy','zthTW','unset\x20<profile>\x20<key>','update','jwDeJ','parse','XGsdB','20260rGaqxs','XrUWv','OLUDQ','FUomt','ICClD','exclude-scenario','demandCommand','RANGER_PROFILE','json','Allow\x20localhost\x20content\x20in\x20deployed\x20environments','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','ZjkCO','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','clean','edit-scenario\x20<description>','hkAwn','Restore\x20a\x20soft-deleted\x20feature\x20review','QrwgK','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','No\x20auth\x20config\x20for\x20this\x20org;\x20profile\x20login\x20unavailable.','ranger\x20go','key','SzSEi','Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server','Tysih','setup:skills','profile\x20migrate','ranger\x20get-review','verified','--profile','Etbiy','fSMuO','ifRGt','zFnGo','sXbnG','include-deleted','cwd','Where\x20to\x20store\x20the\x20profile','SYbXw','Install\x20scope\x20for\x20plugin\x20and\x20skills','List\x20all\x20profiles','\x0aIssues:','yacmF','item','folrF','reset\x20<profile>','CIrEg','ScMrB','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','debug-address-comments','usage','blocked','profile\x20config\x20unset','status','UvVKF','current-branch','Feature\x20review\x20ID','BfFYt','Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)','root','add\x20<profile-name>','Authenticated\x20via\x20MCP,\x20but\x20failed\x20to\x20verify:\x20','FvZtL','xcvCU','hZHZg','wHYic','claude','offset','hjHWg','ranger\x20profile\x20ls','profile','repeat','ubqnj','report\x20[id]','Config\x20key\x20(e.g.,\x20userAgent,\x20headers.X-Custom)','profiles','Migrate\x20all\x20local\x20profiles\x20that\x20match\x20a\x20configured\x20auth\x20environment.','config\x20unset','InInX','KBDUC','feature\x20list','issues','aNkdm','Lriim','nPGKu','some','dIDje','You\x20must\x20specify\x20a\x20command','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','fVKLf','XxiZy','startsWith','iYShy','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','positional','sWwCO','Config\x20value','JjtWZ','Nwxml','IYITf','list\x20<profile>','lBflK','test_output','Name\x20of\x20the\x20environment','opencode','ranger\x20feature\x20restore','skip-auth','evaluationReason','3890200mLldWr','mMrue','oGCXc','LQaed','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','project','bSSen','tvTiX','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','Install\x20Ranger\x20skills','feature\x20restore','954895AeTlYa','fDlmi','Number\x20of\x20feature\x20reviews\x20to\x20skip','feature\x20show','mcp','scenario','with-deps','env','vjnYO','854630NjmdlW','AYiKT','275qVoOyf','Remove\x20a\x20config\x20value','session-id','KQPYe','user','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','ranger\x20profile\x20config\x20list','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','129uteUYr','add-scenario','Feature\x20review\x20description','flazk','message','force','ranger\x20feature\x20resume','name','5305140QYbneo','unhandledRejection','kdreT','Jngdv','enable','xnjYn','Scenario\x20number\x20to\x20edit\x20(1-based)','hook:enable','twHuj','notes','number','edit-scenario','✓\x20Authenticated\x20to\x20','log','mcp-bootstrap','profile\x20ls','setup:login','hook','iKTsr','QRfmA','rMGiy','Scenario\x20index\x20(1-based)','profile\x20add','ranger\x20start','description','login','save-creds','Unknown\x20error','wjcVH','config','create\x20<name>','Environment\x20name','start-path','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','Error:\x20`ranger\x20profile\x20login`\x20is\x20headless\x20—\x20set\x20RANGER_TEST_USERNAME\x20and\x20RANGER_TEST_PASSWORD\x20before\x20running.','add-scenario\x20<description>','HfNkp','partial','start','VaQIK','yfncr','\x20BLOCKED','TeVVa','HqOPH','all','jXgou','Install\x20skills\x20for\x20OpenCode','TCOhH','env\x20list','delete','ranger\x20config\x20set','You\x20must\x20specify\x20a\x20config\x20subcommand','command','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','ranger\x20config\x20get','JPmNQ'];_0xeddc=function(){return _0x388230;};return _0xeddc();}import{getToken}from'./commands/utils/keychain.js';import{serverSideLogin}from'./commands/utils/cloudProfile.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset,configReset}from'./commands/config.js';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 _0x1deb(_0x56940e,_0x3f13eb){_0x56940e=_0x56940e-0x1bf;const _0xeddc80=_0xeddc();let _0x1deb55=_0xeddc80[_0x56940e];return _0x1deb55;}import{refreshCliToken}from'./commands/utils/tokenRefresh.js';import{getCurrentUser}from'./commands/utils/userApi.js';import{ensureClaudePlugin,ensureClaudeSkills}from'./commands/setup/claude.js';import{ensureOpencodePluginConfig}from'./commands/setup/opencode.js';import{installSkill}from'./commands/utils/skills.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x10ef54(0x35e),async _0x2bc5e5=>{const _0x1e8679={'kVztQ':function(_0x24553f){return _0x24553f();}},_0x57f1fb=_0x1e8679['kVztQ'](getCurrentCollector);_0x57f1fb&&await _0x57f1fb['trackCommandError'](_0x2bc5e5),process['exitCode']=0x1;});const rawArgs=process['argv'][_0x10ef54(0x256)](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20setup\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(same\x20as\x20bare\x20setup)\x0a\x20\x20setup\x20deps\x20[--with-deps]\x20\x20\x20\x20Install\x20Chromium\x20browser\x0a\x20\x20setup\x20login\x20[--token\x20<t>]\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20setup\x20skills\x20[--scope\x20...]\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20setup\x20profiles\x20[--url\x20<u>]\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x20\x20setup\x20--mcp-bootstrap\x20\x20\x20\x20\x20\x20\x20Bootstrap\x20auth\x20via\x20MCP\x20auth\x20server\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset/reset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset/reset)\x0a\x20\x20migrate\x20[<profile>]\x20\x20\x20\x20\x20\x20\x20Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20migrate\x20--all\x20--dry-run',PROFILE_CONFIG_HELP=_0x10ef54(0x29f);function warnRenamed(_0x55258a,_0x4b76e3){const _0x89b9e8=_0x10ef54;console[_0x89b9e8(0x212)]('\x0a'+_0x55258a+_0x89b9e8(0x2a2)+_0x4b76e3+'\x0a');}function argUsed(_0x4d99be){const _0x4ef845=_0x10ef54;return rawArgs[_0x4ef845(0x320)](_0x5b0552=>_0x5b0552===_0x4d99be||_0x5b0552[_0x4ef845(0x326)](_0x4d99be+'='));}function warnFlagRenamed(_0xe53a52,_0x534a9e,_0x15d4b6){const _0x360781=_0x10ef54,_0x361012={'ZjkCO':function(_0x321b60,_0x5b4512){return _0x321b60(_0x5b4512);}};_0x361012[_0x360781(0x2d5)](argUsed,_0x534a9e)&&warnRenamed(_0xe53a52+'\x20'+_0x534a9e,_0xe53a52+'\x20'+_0x15d4b6);}async function runGoCommand(_0x28f2c0,_0x4afb04=![]){const _0x3d8a51=_0x10ef54,_0xefd929={'JbmaS':function(_0x14c4bd,_0xd4540){return _0x14c4bd+_0xd4540;},'mMrue':function(_0x308929,_0xc67459,_0x185bf){return _0x308929(_0xc67459,_0x185bf);},'vjnYO':_0x3d8a51(0x22b),'czVCn':function(_0x11444e,_0x5c5867,_0x4314c0,_0x15775e){return _0x11444e(_0x5c5867,_0x4314c0,_0x15775e);},'IqLUw':_0x3d8a51(0x2de),'suWKQ':_0x3d8a51(0x1d6),'BduhC':_0x3d8a51(0x2e7),'Etbiy':'--item','KNQkQ':_0x3d8a51(0x238),'jexoo':function(_0x2d4d5b){return _0x2d4d5b();},'LQaed':function(_0x31de61,_0x6c2d0a){return _0x31de61(_0x6c2d0a);},'XuBhj':'start-path','raZTJ':'base-url','XrUWv':function(_0x2d22c4,_0x3c855e){return _0x2d22c4+_0x3c855e;},'QrwgK':function(_0x3acff4,_0x54f74d){return _0x3acff4===_0x54f74d;},'XGsdB':'verified','KZiCI':'\x20VERIFIED','mmSRE':function(_0x56874a,_0x33c410){return _0x56874a===_0x33c410;},'IBgSN':function(_0x5e6484,_0x18c9df){return _0x5e6484===_0x18c9df;},'ExHoW':_0x3d8a51(0x1c0),'zFnGo':_0x3d8a51(0x2fe),'mjZUh':_0x3d8a51(0x1c4),'qRrak':'\x20FAILED'};_0x4afb04&&_0xefd929[_0x3d8a51(0x338)](warnRenamed,_0xefd929[_0x3d8a51(0x34a)],_0x3d8a51(0x2de));_0xefd929['czVCn'](warnFlagRenamed,_0xefd929[_0x3d8a51(0x244)],_0xefd929['suWKQ'],_0xefd929['BduhC']),warnFlagRenamed(_0xefd929['IqLUw'],_0x3d8a51(0x21c),'--notes'),warnFlagRenamed(_0xefd929['IqLUw'],_0xefd929[_0x3d8a51(0x2e8)],_0xefd929['KNQkQ']);const _0x465392=await _0xefd929['jexoo'](loadRangerConfig),_0x588fac=isByokEnabled(),_0x360826=_0x28f2c0['model'],_0x258210=_0x465392[_0x3d8a51(0x1ea)],_0x29a498=await _0xefd929[_0x3d8a51(0x33a)](verifyFeature,{'featureId':_0x28f2c0[_0x3d8a51(0x223)],'profile':_0x28f2c0['profile']??_0x28f2c0[_0x3d8a51(0x349)]??process['env'][_0x3d8a51(0x2d1)],'notes':_0x28f2c0['notes']??_0x28f2c0[_0x3d8a51(0x21e)],'scenario':_0x28f2c0[_0x3d8a51(0x347)]??_0x28f2c0[_0x3d8a51(0x2f5)],'startPath':_0x28f2c0[_0xefd929['XuBhj']],'baseUrl':_0x28f2c0[_0xefd929['raZTJ']],'debugOutcome':_0x28f2c0[_0x3d8a51(0x295)],'debugAddressComments':_0x28f2c0['debug-address-comments'],'headed':_0x28f2c0['headed'],'byokEnabled':_0x588fac,'flagVerifyModel':_0x360826,'configVerifyModel':_0x258210});console['log'](_0xefd929[_0x3d8a51(0x2cb)]('\x0a','='[_0x3d8a51(0x312)](0x3c))),console[_0x3d8a51(0x36a)](_0xefd929[_0x3d8a51(0x2db)](_0x29a498['evaluation'],_0xefd929[_0x3d8a51(0x2c9)])?_0xefd929[_0x3d8a51(0x240)]:_0xefd929[_0x3d8a51(0x277)](_0x29a498[_0x3d8a51(0x1e3)],_0x3d8a51(0x22a))?_0x3d8a51(0x2a3):_0xefd929[_0x3d8a51(0x274)](_0x29a498['evaluation'],_0xefd929[_0x3d8a51(0x1e2)])?'\x20PARTIAL':_0x29a498[_0x3d8a51(0x1e3)]===_0xefd929[_0x3d8a51(0x2eb)]?_0xefd929[_0x3d8a51(0x221)]:_0xefd929['qRrak']),console['log']('='[_0x3d8a51(0x312)](0x3c)),console['log']('Summary:\x20'+_0x29a498['summary']),console['log']('Evaluation:\x20'+_0x29a498[_0x3d8a51(0x1e3)]),console['log']('Reason:\x20'+_0x29a498[_0x3d8a51(0x336)]),_0x29a498[_0x3d8a51(0x31c)]?.['length']&&(console['log'](_0x3d8a51(0x2f3)),_0x29a498[_0x3d8a51(0x31c)][_0x3d8a51(0x23a)]((_0x305962,_0x2200cc)=>{const _0x53ed58=_0x3d8a51;console[_0x53ed58(0x36a)]('\x0a'+_0xefd929['JbmaS'](_0x2200cc,0x1)+_0x53ed58(0x2ac)+_0x305962['severity']+']\x20'+_0x305962['description']);})),process[_0x3d8a51(0x1e4)](_0x29a498['evaluation']===_0xefd929['XGsdB']?0x0:0x1);}export function buildParser(_0x363f26){const _0x5ca7c5=_0x10ef54,_0x44ba09={'lBflK':'name','JPmNQ':'string','Dlpzz':'Feature\x20review\x20name','vaWaU':_0x5ca7c5(0x357),'xnjYn':'array','JiNno':_0x5ca7c5(0x2ba),'xcNaV':_0x5ca7c5(0x271),'FvZtL':'Error:\x20`ranger\x20create`\x20requires\x20a\x20feature\x20review\x20name.\x0a','flazk':'--checklist','vBbrT':_0x5ca7c5(0x238),'aNkdm':function(_0x1256cf,_0x4313d4,_0x3e3abd){return _0x1256cf(_0x4313d4,_0x3e3abd);},'mXcnM':'limit','OOuBa':_0x5ca7c5(0x367),'RQojc':_0x5ca7c5(0x24e),'IqTMg':_0x5ca7c5(0x216),'MlmTd':_0x5ca7c5(0x2c1),'aAvbp':'Scenario\x20description','KQPYe':_0x5ca7c5(0x356),'OSXYN':_0x5ca7c5(0x347),'tBfor':_0x5ca7c5(0x363),'sGoNu':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','xAKiS':_0x5ca7c5(0x2d2),'xcvCU':_0x5ca7c5(0x29e),'CukFV':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','UfByq':'report','Vumxt':function(_0x40a374,_0x3aae29,_0x1991de){return _0x40a374(_0x3aae29,_0x1991de);},'NHplm':_0x5ca7c5(0x303),'HfNkp':function(_0x5a3155,_0x51633f,_0x434c28){return _0x5a3155(_0x51633f,_0x434c28);},'BcCbe':'Feature\x20review\x20ID\x20to\x20restore','ICClD':'restore','TeVVa':'setup:deps','gIZcd':'mcp','jvQPO':_0x5ca7c5(0x2c3),'InTLD':function(_0x5f5cf){return _0x5f5cf();},'PrJEI':_0x5ca7c5(0x36d),'rrmGM':_0x5ca7c5(0x33c),'nPGKu':_0x5ca7c5(0x2f1),'Lriim':_0x5ca7c5(0x333),'AYiKT':'Ranger\x20API\x20token','wLzsY':'skip-chromium','kthyr':_0x5ca7c5(0x335),'fpCro':_0x5ca7c5(0x254),'WyAlH':'scope','avhas':'user','SxaGF':'allow-insecure-localhost','UawrG':'mcp-bootstrap','HqOPH':_0x5ca7c5(0x2af),'AqCks':function(_0x284a54,_0xedfc27){return _0x284a54(_0xedfc27);},'uyiDG':_0x5ca7c5(0x28f),'EtKuX':_0x5ca7c5(0x2c0),'hHtHI':'tokenOrSubcommand','nTuIr':_0x5ca7c5(0x205),'lyTbd':_0x5ca7c5(0x376),'nlEhZ':'Authenticate\x20with\x20Ranger','hjHWg':'skills','iYShy':'Install\x20Claude\x20Code\x20plugin\x20and\x20skills','AMoWo':_0x5ca7c5(0x316),'xKIGH':'url','LLXKK':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','Sgeru':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','IYITf':'Skip\x20authentication\x20(install\x20deps\x20only\x20—\x20for\x20container/CI\x20image\x20builds)','GBOEA':_0x5ca7c5(0x348),'NwmDN':_0x5ca7c5(0x217),'yfncr':_0x5ca7c5(0x22d),'WeDbM':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','ndOld':'setup-ci','eILyW':_0x5ca7c5(0x1c9),'jPMeB':'Install\x20scope\x20for\x20skills','Kelal':function(_0x279938,_0x42e05f){return _0x279938(_0x42e05f);},'hZHZg':_0x5ca7c5(0x21b),'fbsNG':_0x5ca7c5(0x2d7),'LVMEy':_0x5ca7c5(0x237),'LlHDI':'force','RZsov':_0x5ca7c5(0x239),'InInX':'setup-header','uaDbd':'HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','CIrEg':_0x5ca7c5(0x218),'jzPLk':'profile\x20encrypt-auth','ZpGHg':_0x5ca7c5(0x2e4),'YuIeB':'value','QXhCk':'Profile\x20name','uoSDR':_0x5ca7c5(0x241),'khpZb':_0x5ca7c5(0x2ff),'UvVKF':'Set\x20a\x20config\x20value','WeULz':_0x5ca7c5(0x2c5),'MchHC':_0x5ca7c5(0x34e),'AVxXh':_0x5ca7c5(0x2f7),'dIDje':function(_0x4bfd76,_0x8df0b3,_0x16b7b1){return _0x4bfd76(_0x8df0b3,_0x16b7b1);},'xwTAZ':_0x5ca7c5(0x1d3),'iuJJO':_0x5ca7c5(0x1c7),'UafXO':'Print\x20the\x20migration\x20plan\x20without\x20mutating\x20anything.','cDOYv':'use\x20<profile-name>','TCaHl':'Switch\x20to\x20using\x20a\x20specific\x20profile','TRMYs':_0x5ca7c5(0x222),'mmUWc':'login\x20<name>','pCuTH':'migrate\x20[profile-name]','xToAD':'config','OLUDQ':_0x5ca7c5(0x232),'yacmF':_0x5ca7c5(0x26c),'LOBVH':_0x5ca7c5(0x300),'bSSen':'No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.','VjzEH':_0x5ca7c5(0x299),'fDlmi':_0x5ca7c5(0x223),'uYyFF':_0x5ca7c5(0x311),'oGmKd':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','UBsQS':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.','AKyFF':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','esfoR':'partial','cYxkf':'blocked','CSXmS':_0x5ca7c5(0x242),'qwQUa':_0x5ca7c5(0x2fc),'rJEHl':'task','csobG':_0x5ca7c5(0x2f5),'rNYVz':function(_0x165d77,_0x564d27){return _0x165d77(_0x564d27);},'BYnxm':_0x5ca7c5(0x259),'qUqJP':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','Tysih':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','jGbYH':_0x5ca7c5(0x374),'EYmvf':_0x5ca7c5(0x266),'rvAkF':_0x5ca7c5(0x1ea),'Qukzh':_0x5ca7c5(0x226),'twHuj':'env-name','wmVNh':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','RnSAe':_0x5ca7c5(0x328),'YDIsF':_0x5ca7c5(0x332),'ASGMO':function(_0x3c6c5a,_0x52e638,_0x5ec42b){return _0x3c6c5a(_0x52e638,_0x5ec42b);},'fkTUr':_0x5ca7c5(0x25f),'jQXFx':'env','rvyit':_0x5ca7c5(0x37c),'fVKLf':'Config\x20value','eUmTI':'Config\x20key','gQkln':'ranger\x20profile\x20config\x20get','puXZX':_0x5ca7c5(0x291),'vrmKr':_0x5ca7c5(0x353),'liRrH':function(_0x21fc16,_0x4eafbe,_0x3cac6b){return _0x21fc16(_0x4eafbe,_0x3cac6b);},'enVZY':_0x5ca7c5(0x20e),'zthTW':function(_0x2004e1,_0x21dff0,_0x431ab1){return _0x2004e1(_0x21dff0,_0x431ab1);},'LCwFC':_0x5ca7c5(0x318),'VybXy':'set\x20<env>\x20<key>\x20<value>','MZIOH':'list\x20<env>','jXgou':'ranger\x20env\x20update','RwAir':_0x5ca7c5(0x1e8),'wNKCu':_0x5ca7c5(0x310),'jtbpr':function(_0x1c63be,_0x1c21a7,_0x20942b){return _0x1c63be(_0x1c21a7,_0x20942b);},'AeNDH':'You\x20must\x20specify\x20an\x20env\x20subcommand','GlVJg':function(_0x17c873,_0x238167,_0x153dc3){return _0x17c873(_0x238167,_0x153dc3);},'roWqK':_0x5ca7c5(0x1f3),'rQmhj':'ranger\x20create','ogGcg':function(_0x3f3b9d,_0x3a74da,_0x35a8cd,_0x3a8bee){return _0x3f3b9d(_0x3a74da,_0x35a8cd,_0x3a8bee);},'GIZgH':function(_0x6f9a9e,_0x2c03fa,_0x3873c7){return _0x6f9a9e(_0x2c03fa,_0x3873c7);},'SIAPs':_0x5ca7c5(0x302),'jwDeJ':function(_0xcc5472,_0x281638,_0x3e5a43){return _0xcc5472(_0x281638,_0x3e5a43);},'TmaTA':_0x5ca7c5(0x31b),'snhqm':'ranger\x20feature\x20get-feedback','KwmPh':_0x5ca7c5(0x2e5),'kYjjB':'feature\x20get-feedback','XKBig':_0x5ca7c5(0x35b),'LjhlO':'description','rexKv':'ranger\x20restore','Jngdv':'show\x20[id]','yTySa':'resume\x20[id]','SnExY':_0x5ca7c5(0x1f0),'grFas':_0x5ca7c5(0x258),'yRcfS':_0x5ca7c5(0x22c),'SBNts':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','lIffR':_0x5ca7c5(0x34f),'qoVnX':_0x5ca7c5(0x265),'eIgNh':'enable','EzWPG':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','hkAwn':'disable','oFYwT':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','VzafD':function(_0x542796,_0x558431,_0x17a6e0){return _0x542796(_0x558431,_0x17a6e0);},'RjJWU':function(_0x422c94,_0x110911){return _0x422c94(_0x110911);},'sFuxM':_0x5ca7c5(0x25b),'ctCJm':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','IttIF':function(_0x520711,_0x123026){return _0x520711||_0x123026;},'ubqnj':function(_0x5a2ae4,_0x381e86){return _0x5a2ae4(_0x381e86);},'gwghi':'Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','KBDUC':_0x5ca7c5(0x292),'sXbnG':_0x5ca7c5(0x380),'oGCXc':'Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','xFauq':'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','VOcGY':'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','vcmKc':'setup\x20[tokenOrSubcommand]','tvTiX':'setup-ci\x20<token>','ohrhe':'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','xZRdW':_0x5ca7c5(0x340),'toJJU':'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','FUomt':_0x5ca7c5(0x23b),'FEOoU':'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','SYbXw':'verify-feature','ScMrB':_0x5ca7c5(0x36e),'tZqOs':function(_0x550bd7,_0x56c794){return _0x550bd7+_0x56c794;},'wjcVH':'\x20\x20https://docs.ranger.net\x0a','aCNWM':'help'};return _0x44ba09[_0x5ca7c5(0x313)](_0x198c04,_0x363f26??process['argv']['slice'](0x2))[_0x5ca7c5(0x261)](_0x5ca7c5(0x28f))['usage'](TOP_LEVEL_HELP)['version'](_0x44ba09['InTLD'](getCurrentVersion))[_0x5ca7c5(0x1cf)](_0x5ca7c5(0x37b),_0x44ba09[_0x5ca7c5(0x248)],_0x1d73b6=>{const _0x287955=_0x5ca7c5;return _0x1d73b6['positional'](_0x44ba09[_0x287955(0x330)],{'type':_0x44ba09[_0x287955(0x1d2)],'description':_0x44ba09['Dlpzz'],'demandOption':!![]})[_0x287955(0x200)](_0x287955(0x375),{'type':_0x44ba09[_0x287955(0x1d2)],'alias':'d','description':_0x44ba09['vaWaU']})[_0x287955(0x200)](_0x287955(0x347),{'type':_0x44ba09[_0x287955(0x362)],'alias':'c','description':_0x44ba09['JiNno']})[_0x287955(0x200)](_0x44ba09['xcNaV'],{'type':_0x44ba09[_0x287955(0x362)],'hidden':!![]});},async _0x1e6342=>{const _0x3a1044=_0x5ca7c5;if(!_0x1e6342[_0x3a1044(0x35c)]){console[_0x3a1044(0x212)](_0x44ba09[_0x3a1044(0x309)]+'Example:\x20ranger\x20create\x20my-feature'),process['exit'](0x1);return;}warnFlagRenamed('ranger\x20create',_0x44ba09['flazk'],_0x44ba09[_0x3a1044(0x2ae)]);const _0x211b2f=_0x1e6342['scenario']||_0x1e6342['checklist'];await _0x44ba09[_0x3a1044(0x31d)](withTelemetry,'create',()=>featureCreate(_0x1e6342['name'],{'description':_0x1e6342['description'],'scenarios':_0x211b2f}));})['command']('list','List\x20all\x20feature\x20reviews',_0xfbe24c=>{const _0x5e2399=_0x5ca7c5;return _0xfbe24c['option'](_0x5e2399(0x302),{'type':_0x5e2399(0x29e),'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option'](_0x44ba09['mXcnM'],{'type':_0x5e2399(0x367),'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option']('offset',{'type':_0x44ba09[_0x5e2399(0x1eb)],'alias':'o','description':_0x5e2399(0x344),'default':0x0})[_0x5e2399(0x200)](_0x5e2399(0x2ed),{'type':'boolean','alias':'d','description':_0x44ba09['RQojc'],'default':![]});},async _0x2b3831=>{const _0x1b6019=_0x5ca7c5;await withTelemetry(_0x1b6019(0x1e7),()=>featureList({'currentBranch':_0x2b3831['current-branch'],'limit':_0x2b3831[_0x1b6019(0x220)],'offset':_0x2b3831['offset'],'includeDeleted':_0x2b3831[_0x1b6019(0x2ed)]}));})['command']('show\x20[id]',_0x44ba09[_0x5ca7c5(0x31a)],_0x4211fc=>{const _0x4d724d=_0x5ca7c5;return _0x4211fc[_0x4d724d(0x329)]('id',{'type':_0x44ba09['JPmNQ'],'description':_0x4d724d(0x303)});},async _0x3716ff=>{await withTelemetry(_0x44ba09['IqTMg'],()=>featureShow(_0x3716ff['id']));})['command']('resume\x20[id]',_0x5ca7c5(0x2dc),_0x18649d=>{const _0x51ca20=_0x5ca7c5;return _0x18649d[_0x51ca20(0x329)]('id',{'type':_0x44ba09['JPmNQ'],'description':_0x51ca20(0x20d)});},async _0xd209ed=>{await withTelemetry(_0x44ba09['MlmTd'],()=>featureResume(_0xd209ed['id']));})['command'](_0x44ba09[_0x5ca7c5(0x2ec)],'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x411eba=>{const _0x25a47d=_0x5ca7c5;return _0x411eba['positional']('description',{'type':'string','description':_0x44ba09[_0x25a47d(0x2aa)],'demandOption':!![]})[_0x25a47d(0x200)]('id',{'type':_0x25a47d(0x1df),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x3b95f1=>{const _0x1bb19b=_0x5ca7c5;await _0x44ba09[_0x1bb19b(0x31d)](withTelemetry,_0x44ba09[_0x1bb19b(0x350)],()=>featureAddScenario(_0x3b95f1['description'],_0x3b95f1['id']));})['command'](_0x5ca7c5(0x2d8),_0x44ba09[_0x5ca7c5(0x339)],_0x5cb851=>{const _0x2f68fa=_0x5ca7c5;return _0x5cb851['positional'](_0x2f68fa(0x375),{'type':_0x44ba09['JPmNQ'],'description':'New\x20scenario\x20description','demandOption':!![]})['option'](_0x44ba09[_0x2f68fa(0x1f5)],{'type':_0x2f68fa(0x367),'description':_0x44ba09['tBfor'],'demandOption':!![]})[_0x2f68fa(0x200)]('id',{'type':_0x2f68fa(0x1df),'description':_0x44ba09['sGoNu']});},async _0x4545aa=>{const _0x2efabf=_0x5ca7c5;await withTelemetry(_0x2efabf(0x368),()=>featureEditScenario(_0x4545aa[_0x2efabf(0x375)],{'id':_0x4545aa['id'],'scenario':_0x4545aa['scenario']}));})[_0x5ca7c5(0x1cf)](_0x5ca7c5(0x314),_0x44ba09['xFauq'],_0x4c81fe=>{const _0xc4c88a=_0x5ca7c5;return _0x4c81fe['positional']('id',{'type':'string','description':'Feature\x20review\x20ID'})['option'](_0xc4c88a(0x2cf),{'type':_0xc4c88a(0x2be),'description':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'})['option'](_0x44ba09[_0xc4c88a(0x206)],{'type':_0x44ba09['xcvCU'],'description':_0x44ba09['CukFV'],'default':![]});},async _0x45dea6=>{const _0x4951c8=_0x5ca7c5,_0x3aecf5=_0x45dea6[_0x4951c8(0x2cf)],_0x23d0a1=_0x3aecf5?_0x3aecf5[_0x4951c8(0x1e5)](_0x4ae454=>Number(_0x4ae454)):undefined;await _0x44ba09[_0x4951c8(0x31d)](withTelemetry,_0x44ba09['UfByq'],()=>featureReportPrDescription(_0x45dea6['id'],{'excludeScenarios':_0x23d0a1,'json':_0x45dea6['json']}));})['command']('get-review\x20[id]',_0x5ca7c5(0x2fb),_0x239648=>{const _0x19ab1e=_0x5ca7c5;return _0x239648['positional']('id',{'type':_0x44ba09[_0x19ab1e(0x1d2)],'description':_0x44ba09[_0x19ab1e(0x1d9)]});},async _0x130526=>{const _0x1cff2f=_0x5ca7c5;await _0x44ba09['Vumxt'](withTelemetry,_0x1cff2f(0x273),()=>featureGetReview(_0x130526['id']));})[_0x5ca7c5(0x1cf)]('delete\x20[id]',_0x44ba09['VOcGY'],_0xac9ceb=>{const _0x3cd64d=_0x5ca7c5;return _0xac9ceb[_0x3cd64d(0x329)]('id',{'type':_0x3cd64d(0x1df),'description':_0x44ba09[_0x3cd64d(0x1e0)]});},async _0x2c89de=>{const _0x1b54ea=_0x5ca7c5;await _0x44ba09['HfNkp'](withTelemetry,_0x1b54ea(0x1cc),()=>featureDelete(_0x2c89de['id']));})['command'](_0x5ca7c5(0x22c),_0x5ca7c5(0x2da),_0x5f56e8=>{return _0x5f56e8['positional']('id',{'type':'string','description':_0x44ba09['BcCbe'],'demandOption':!![]});},async _0x49520d=>{const _0x45f37e=_0x5ca7c5;await _0x44ba09[_0x45f37e(0x1bf)](withTelemetry,_0x44ba09[_0x45f37e(0x2ce)],()=>featureRestore(_0x49520d['id']));})[_0x5ca7c5(0x1cf)](_0x44ba09['vcmKc'],'Initialize\x20Ranger\x20in\x20your\x20project',_0x3600bd=>{const _0x35d2f8=_0x5ca7c5,_0x598ce9={'kIbPI':_0x35d2f8(0x1df),'VqWxC':_0x44ba09[_0x35d2f8(0x34c)],'QRfmA':_0x44ba09['wLzsY'],'UXjgv':_0x35d2f8(0x29e),'Etudq':_0x44ba09['kthyr'],'Optmf':_0x44ba09['fpCro'],'XxiZy':'with-deps','SMXSt':'Install\x20OS-level\x20dependencies\x20for\x20Chromium','giecO':_0x44ba09[_0x35d2f8(0x234)],'UolDP':_0x44ba09[_0x35d2f8(0x2b6)],'VphDO':_0x44ba09[_0x35d2f8(0x27a)],'KgSTG':_0x44ba09[_0x35d2f8(0x31f)],'hXdDZ':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','TYmyD':_0x44ba09['SxaGF'],'sNCzm':_0x44ba09['UawrG'],'fEZcE':function(_0x61ab9d,_0x216cd5,_0x4c7ff6){const _0x5d7f23=_0x35d2f8;return _0x44ba09[_0x5d7f23(0x31d)](_0x61ab9d,_0x216cd5,_0x4c7ff6);},'HRnEG':'setup:all','BfFYt':_0x44ba09['HqOPH'],'iKTsr':function(_0x68a52f,_0x34c3b2){const _0x5cecd3=_0x35d2f8;return _0x44ba09[_0x5cecd3(0x1fb)](_0x68a52f,_0x34c3b2);},'eiOeG':function(_0x5f0237,_0x39d698,_0x3aeace){return _0x5f0237(_0x39d698,_0x3aeace);},'NvNtJ':_0x44ba09['uyiDG'],'PCiRu':function(_0x545f0c,_0x2764fa){return _0x545f0c(_0x2764fa);},'euuFS':function(_0x37e956,_0x594d37,_0x42711b){return _0x37e956(_0x594d37,_0x42711b);},'JPMYZ':_0x35d2f8(0x2e3),'fSMuO':_0x44ba09['EtKuX'],'toYFZ':_0x35d2f8(0x28d),'ZJLUA':_0x35d2f8(0x35a)};return _0x3600bd[_0x35d2f8(0x2fd)](_0x35d2f8(0x22e))['positional'](_0x44ba09[_0x35d2f8(0x253)],{'type':_0x35d2f8(0x1df),'description':_0x35d2f8(0x26d)})['command']('all',_0x35d2f8(0x27f),_0x1e57b4=>{const _0x55a7d9=_0x35d2f8;return _0x1e57b4['option']('token',{'type':_0x598ce9[_0x55a7d9(0x1d7)],'description':_0x598ce9['VqWxC']})['option'](_0x598ce9[_0x55a7d9(0x370)],{'type':_0x598ce9[_0x55a7d9(0x272)],'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})[_0x55a7d9(0x200)](_0x598ce9['Etudq'],{'type':_0x55a7d9(0x29e),'description':_0x598ce9[_0x55a7d9(0x1d4)],'default':![]})['option'](_0x598ce9[_0x55a7d9(0x325)],{'type':_0x598ce9['UXjgv'],'description':_0x598ce9[_0x55a7d9(0x25c)],'default':![]})['option'](_0x598ce9[_0x55a7d9(0x1ec)],{'type':_0x598ce9['kIbPI'],'choices':[_0x598ce9['UolDP'],_0x598ce9['VphDO']],'description':_0x598ce9[_0x55a7d9(0x209)]})['option']('url',{'type':_0x598ce9['kIbPI'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup'})['option'](_0x55a7d9(0x35a),{'type':'boolean','description':_0x598ce9['hXdDZ'],'default':![]})[_0x55a7d9(0x200)](_0x55a7d9(0x333),{'type':'boolean','description':_0x55a7d9(0x264),'default':![]})['option'](_0x598ce9['TYmyD'],{'type':_0x55a7d9(0x29e),'description':_0x55a7d9(0x2d3),'default':![]})['option']('mcp-bootstrap',{'type':_0x598ce9['UXjgv'],'description':_0x55a7d9(0x2e1),'default':![]})['option']('mcp',{'type':_0x598ce9[_0x55a7d9(0x272)],'description':'Alias\x20for\x20--mcp-bootstrap','default':![]});},async _0x1d3592=>{const _0x2cd034=_0x35d2f8;(_0x1d3592[_0x598ce9[_0x2cd034(0x233)]]||_0x1d3592['mcp'])&&await withTelemetry(_0x598ce9['sNCzm'],()=>mcpBootstrap()),await _0x598ce9['fEZcE'](withTelemetry,_0x598ce9[_0x2cd034(0x2b7)],_0x23c90a=>start(_0x1d3592['token'],{'skipChromium':_0x1d3592['skip-chromium'],'skipAuth':_0x1d3592[_0x2cd034(0x335)],'withDeps':_0x1d3592[_0x2cd034(0x348)],'scope':_0x1d3592[_0x2cd034(0x28b)],'url':_0x1d3592['url'],'force':_0x1d3592['force'],'opencode':_0x1d3592['opencode'],'allowInsecureLocalhost':_0x1d3592[_0x2cd034(0x1f9)]},_0x23c90a));})['command']('deps',_0x44ba09['nTuIr'],_0x42471d=>{const _0x5b4b35=_0x35d2f8;return _0x42471d['option']('with-deps',{'type':_0x598ce9['UXjgv'],'description':_0x598ce9[_0x5b4b35(0x304)],'default':![]});},async _0x12861b=>{const _0x1f15a7=_0x35d2f8;await withTelemetry(_0x44ba09[_0x1f15a7(0x1c5)],()=>ensureChromium(_0x12861b[_0x1f15a7(0x348)]));})[_0x35d2f8(0x1cf)](_0x44ba09['lyTbd'],_0x44ba09[_0x35d2f8(0x288)],_0x2844fd=>{const _0x5839cd=_0x35d2f8;return _0x2844fd[_0x5839cd(0x200)]('token',{'type':'string','description':_0x5839cd(0x20c)})['option'](_0x44ba09['gIZcd'],{'type':_0x5839cd(0x29e),'description':_0x44ba09[_0x5839cd(0x282)],'default':![]});},async _0x25e463=>{const _0x3edff1={'xRLgX':function(_0x5d1616){const _0x23b145=_0x1deb;return _0x44ba09[_0x23b145(0x294)](_0x5d1616);},'VaQIK':function(_0x143a4b,_0x1c7557){return _0x143a4b(_0x1c7557);},'Rznqf':function(_0x3bb911,_0x291cbe){return _0x3bb911(_0x291cbe);}};await withTelemetry(_0x44ba09['PrJEI'],async()=>{const _0x5bb41e=_0x1deb;if(_0x25e463[_0x5bb41e(0x346)]){await _0x3edff1['xRLgX'](mcpBootstrap);const _0x5d3eaf=await _0x3edff1[_0x5bb41e(0x2a1)](refreshCliToken);if(!_0x5d3eaf)throw new Error(_0x5bb41e(0x249));const _0x13f8d3=await _0x3edff1[_0x5bb41e(0x1c2)](getCurrentUser,_0x5d3eaf);if(!_0x13f8d3['success'])throw new Error(_0x5bb41e(0x308)+_0x13f8d3['error']);console['log'](_0x5bb41e(0x369)+_0x13f8d3['user']['organizationName']);return;}await _0x3edff1[_0x5bb41e(0x1e6)](authenticate,_0x25e463['token']);});})[_0x35d2f8(0x1cf)](_0x44ba09[_0x35d2f8(0x30f)],_0x44ba09[_0x35d2f8(0x327)],_0x5a0ab3=>{const _0x284b21=_0x35d2f8;return _0x5a0ab3[_0x284b21(0x200)](_0x284b21(0x28b),{'type':_0x44ba09[_0x284b21(0x1d2)],'choices':[_0x284b21(0x351),_0x44ba09[_0x284b21(0x27a)]],'description':_0x44ba09[_0x284b21(0x31f)]})['option'](_0x44ba09[_0x284b21(0x31e)],{'type':'boolean','description':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','default':![]});},async _0xe97736=>{await _0x598ce9['euuFS'](withTelemetry,_0x598ce9['JPMYZ'],async()=>{const _0x186c5e=_0x1deb,_0x263bcd=_0xe97736['scope'];if(_0xe97736['opencode']){const _0x370fb3=await _0x598ce9[_0x186c5e(0x36f)](ensureOpencodePluginConfig,_0x263bcd);_0x370fb3&&await _0x598ce9[_0x186c5e(0x210)](installSkill,_0x598ce9['NvNtJ'],{'level':_0x370fb3[_0x186c5e(0x28b)],'cliVersion':getCurrentVersion(),'platform':_0x186c5e(0x333)});}else await _0x598ce9[_0x186c5e(0x36f)](ensureClaudePlugin,_0x263bcd),await _0x598ce9[_0x186c5e(0x262)](ensureClaudeSkills,_0x263bcd);});})['command'](_0x44ba09[_0x35d2f8(0x28c)],_0x35d2f8(0x255),_0x4b7696=>{const _0x37ab8b=_0x35d2f8;return _0x4b7696[_0x37ab8b(0x200)]('scope',{'type':_0x598ce9[_0x37ab8b(0x1d7)],'choices':[_0x598ce9['UolDP'],_0x37ab8b(0x33c)],'description':_0x37ab8b(0x2ef)})[_0x37ab8b(0x200)]('url',{'type':_0x598ce9[_0x37ab8b(0x1d7)],'description':_0x598ce9[_0x37ab8b(0x2e9)]})['option'](_0x598ce9[_0x37ab8b(0x275)],{'type':_0x37ab8b(0x29e),'description':_0x598ce9['toYFZ'],'default':![]})['option'](_0x598ce9[_0x37ab8b(0x2bd)],{'type':_0x598ce9[_0x37ab8b(0x272)],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x598ce9[_0x37ab8b(0x1f4)],{'type':'boolean','description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments','default':![]});},async _0x548b92=>{const _0x2a64a0=_0x35d2f8;await _0x44ba09['aNkdm'](withTelemetry,_0x2a64a0(0x246),_0x425d8a=>ensureLocalEnv({'url':_0x548b92['url'],'force':_0x548b92[_0x2a64a0(0x35a)],'allowInsecureLocalhost':_0x548b92['allow-insecure-localhost'],'scope':_0x548b92['scope']===_0x2a64a0(0x351)?_0x2a64a0(0x351):undefined},_0x425d8a));})['option'](_0x44ba09[_0x35d2f8(0x20a)],{'type':'boolean','description':_0x35d2f8(0x37e),'default':![]})[_0x35d2f8(0x200)](_0x35d2f8(0x28b),{'type':_0x44ba09[_0x35d2f8(0x1d2)],'choices':['user',_0x44ba09['rrmGM']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x44ba09['xKIGH'],{'type':_0x35d2f8(0x1df),'description':_0x35d2f8(0x1d0)})['option'](_0x35d2f8(0x35a),{'type':_0x44ba09['xcvCU'],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x35d2f8(0x333),{'type':_0x44ba09['xcvCU'],'description':_0x35d2f8(0x264),'default':![]})[_0x35d2f8(0x200)](_0x44ba09[_0x35d2f8(0x252)],{'type':_0x44ba09['xcvCU'],'description':_0x44ba09['LLXKK'],'default':![]})['option'](_0x35d2f8(0x36b),{'type':_0x44ba09['xcvCU'],'description':_0x44ba09['Sgeru'],'default':![]})[_0x35d2f8(0x200)](_0x35d2f8(0x335),{'type':_0x44ba09[_0x35d2f8(0x30a)],'description':_0x44ba09[_0x35d2f8(0x32e)],'default':![]})[_0x35d2f8(0x200)](_0x44ba09['GBOEA'],{'type':_0x44ba09['xcvCU'],'description':_0x44ba09[_0x35d2f8(0x1c6)],'default':![]})[_0x35d2f8(0x200)](_0x44ba09['NwmDN'],{'type':_0x44ba09['JPmNQ'],'hidden':!![],'description':_0x44ba09[_0x35d2f8(0x1c3)]});},async _0x13806c=>{const _0x1794f7=_0x5ca7c5,_0x4fc101=_0x13806c['tokenOrSubcommand'],_0x591b5f=_0x13806c[_0x1794f7(0x217)]??_0x4fc101;_0x13806c[_0x1794f7(0x36b)]&&await withTelemetry(_0x1794f7(0x36b),()=>mcpBootstrap()),await _0x44ba09[_0x1794f7(0x1bf)](withTelemetry,'start',_0x58cae6=>start(_0x591b5f,{'skipChromium':_0x13806c['skip-chromium'],'skipAuth':_0x13806c[_0x1794f7(0x335)],'withDeps':_0x13806c['with-deps'],'scope':_0x13806c['scope'],'url':_0x13806c[_0x1794f7(0x260)],'force':_0x13806c['force'],'opencode':_0x13806c[_0x1794f7(0x333)],'allowInsecureLocalhost':_0x13806c[_0x1794f7(0x1f9)]},_0x58cae6));})['command'](_0x44ba09[_0x5ca7c5(0x33e)],_0x5ca7c5(0x267),_0x28a775=>{const _0x3afeba=_0x5ca7c5;return _0x28a775['positional'](_0x3afeba(0x217),{'type':_0x44ba09[_0x3afeba(0x1d2)],'description':_0x3afeba(0x2b1),'demandOption':!![]})['option']('profile',{'type':'string','description':_0x44ba09[_0x3afeba(0x289)]})['option']('base-url',{'type':_0x44ba09[_0x3afeba(0x1d2)],'description':_0x3afeba(0x23d)})['option'](_0x44ba09[_0x3afeba(0x20a)],{'type':_0x44ba09['xcvCU'],'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x2d8232=>{const _0x2a1760=_0x5ca7c5;await withTelemetry(_0x44ba09['ndOld'],_0x4d7fe0=>setupCi(_0x2d8232[_0x2a1760(0x217)],{'profile':_0x2d8232['profile'],'baseUrl':_0x2d8232['base-url'],'skipChromium':_0x2d8232[_0x2a1760(0x1ef)]},_0x4d7fe0));})['command'](_0x44ba09['lyTbd'],_0x44ba09[_0x5ca7c5(0x235)],()=>{},async()=>{const _0x574761=_0x5ca7c5;await withTelemetry(_0x44ba09[_0x574761(0x211)],()=>login());})[_0x5ca7c5(0x1cf)]('skillup',_0x44ba09[_0x5ca7c5(0x251)],_0x3b07fc=>{const _0x11f772=_0x5ca7c5;return _0x3b07fc[_0x11f772(0x200)](_0x44ba09['Lriim'],{'type':_0x44ba09['xcvCU'],'description':_0x44ba09['eILyW'],'default':![]})['option'](_0x44ba09['WyAlH'],{'type':'string','choices':[_0x11f772(0x351),_0x44ba09[_0x11f772(0x27a)]],'description':_0x44ba09['jPMeB']});},async _0x518dbf=>{const _0x7730ad=_0x5ca7c5,_0x3777b6=_0x44ba09['Kelal'](Boolean,_0x518dbf['opencode']);await withTelemetry(_0x44ba09[_0x7730ad(0x30b)],()=>skillup({'autoInstall':_0x518dbf[_0x7730ad(0x28b)],'platform':_0x3777b6?_0x7730ad(0x333):_0x7730ad(0x30d)}));})[_0x5ca7c5(0x1cf)](_0x5ca7c5(0x2d7),_0x44ba09['toJJU'],()=>{},async()=>{await _0x44ba09['HfNkp'](withTelemetry,_0x44ba09['fbsNG'],()=>clean());})[_0x5ca7c5(0x1cf)]([_0x44ba09[_0x5ca7c5(0x2a6)],'profiles'],_0x44ba09[_0x5ca7c5(0x2cd)],_0x3f2fc7=>{const _0x14254e=_0x5ca7c5,_0x30041f={'gTojp':_0x14254e(0x373),'PErCo':_0x14254e(0x263),'XCUUv':'profile-name','SSHBy':_0x44ba09['JPmNQ'],'VUGOC':_0x44ba09[_0x14254e(0x219)],'TCOhH':_0x14254e(0x36c),'Nwxml':_0x14254e(0x1d8),'wXKDL':'allow-insecure-localhost','vnSzD':'profile\x20update','BrsQF':_0x14254e(0x37f),'SzSEi':function(_0x49ef42,_0x15896b,_0x440608){const _0x111d7a=_0x14254e;return _0x44ba09[_0x111d7a(0x321)](_0x49ef42,_0x15896b,_0x440608);},'UQwTZ':_0x44ba09['xwTAZ'],'UCBCQ':_0x44ba09[_0x14254e(0x2b0)],'niQOA':_0x14254e(0x29e),'DPozB':_0x44ba09['UafXO'],'huAdr':_0x14254e(0x208),'SjTsG':_0x14254e(0x377),'RTmcK':'Store\x20RANGER_TEST_USERNAME/PASSWORD\x20env\x20values\x20on\x20the\x20migrated\x20profile.','trNoN':_0x14254e(0x311)};return _0x3f2fc7['usage'](PROFILE_HELP)['command'](_0x14254e(0x307),_0x14254e(0x281),_0x34ab56=>{const _0x5fa7a0=_0x14254e;return _0x34ab56['positional'](_0x44ba09['LVMEy'],{'type':_0x44ba09[_0x5fa7a0(0x1d2)],'description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x5fa7a0(0x29e),'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x5fa7a0(0x335),{'type':_0x5fa7a0(0x29e),'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]})[_0x5fa7a0(0x200)](_0x44ba09['xKIGH'],{'type':_0x44ba09[_0x5fa7a0(0x1d2)],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})[_0x5fa7a0(0x200)](_0x44ba09[_0x5fa7a0(0x214)],{'type':_0x44ba09['xcvCU'],'description':_0x44ba09['RZsov'],'default':![]})['option'](_0x5fa7a0(0x263),{'type':_0x5fa7a0(0x1df),'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'})['option'](_0x5fa7a0(0x1f9),{'type':'boolean','description':_0x5fa7a0(0x352),'default':![]})[_0x5fa7a0(0x200)]('safe-mode',{'type':_0x5fa7a0(0x29e),'description':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','default':![]})['option'](_0x44ba09[_0x5fa7a0(0x319)],{'type':'string','array':!![],'description':_0x44ba09['uaDbd']})[_0x5fa7a0(0x200)](_0x44ba09['WyAlH'],{'type':_0x44ba09[_0x5fa7a0(0x1d2)],'choices':[_0x44ba09[_0x5fa7a0(0x2b6)],_0x44ba09[_0x5fa7a0(0x27a)]],'description':_0x5fa7a0(0x305)})[_0x5fa7a0(0x200)](_0x5fa7a0(0x208),{'type':_0x5fa7a0(0x29e),'alias':'y','description':_0x44ba09[_0x5fa7a0(0x2f8)],'default':![]});},async _0x13caca=>{const _0x1e57b3=_0x14254e;await withTelemetry(_0x30041f[_0x1e57b3(0x1fd)],_0x29b9bc=>addEnv(_0x13caca['profile-name'],{'ci':_0x13caca['ci'],'skipAuth':_0x13caca[_0x1e57b3(0x335)],'url':_0x13caca['url'],'force':_0x13caca[_0x1e57b3(0x35a)],'cdpEndpoint':_0x13caca['cdp-endpoint'],'allowInsecureLocalhost':_0x13caca['allow-insecure-localhost'],'safeMode':_0x13caca['safe-mode'],'setupHeader':_0x13caca['setup-header'],'scope':_0x13caca['scope'],'yes':_0x13caca[_0x1e57b3(0x208)]},_0x29b9bc),{'isElectron':Boolean(_0x13caca[_0x30041f[_0x1e57b3(0x2b9)]])});})[_0x14254e(0x1cf)](_0x44ba09[_0x14254e(0x27d)],_0x44ba09[_0x14254e(0x2a7)],_0x324985=>{const _0x384011=_0x14254e;return _0x324985[_0x384011(0x329)](_0x30041f[_0x384011(0x1f7)],{'type':_0x30041f['SSHBy'],'description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x1d0ef9=>{const _0x57fb5b=_0x14254e;await withTelemetry(_0x57fb5b(0x270),()=>useEnv(_0x1d0ef9['profile-name']));})['command']('encrypt-auth\x20<profile>',_0x14254e(0x2d4),_0x435981=>{const _0x1ee40c=_0x14254e;return _0x435981['positional'](_0x1ee40c(0x311),{'type':_0x1ee40c(0x1df),'description':_0x30041f['VUGOC'],'demandOption':!![]});},async _0x57adf6=>{const _0x205d1d=_0x14254e;await _0x44ba09[_0x205d1d(0x31d)](withTelemetry,_0x44ba09['jzPLk'],()=>authEncrypt(_0x57adf6[_0x205d1d(0x311)]));})['command']('ls',_0x14254e(0x2f2),()=>{},async()=>{const _0x4e5ab4=_0x14254e;await withTelemetry(_0x30041f[_0x4e5ab4(0x1ca)],()=>envList());})['command'](_0x14254e(0x29d),_0x44ba09[_0x14254e(0x269)],_0x1a0e56=>{const _0x1a372d=_0x14254e;return _0x1a0e56[_0x1a372d(0x329)](_0x30041f[_0x1a372d(0x1f7)],{'type':_0x30041f['SSHBy'],'description':_0x30041f[_0x1a372d(0x32d)],'demandOption':!![]})['option'](_0x30041f['wXKDL'],{'type':_0x1a372d(0x29e),'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'});},async _0x25ef44=>{const _0x202f08=_0x14254e;await withTelemetry(_0x30041f[_0x202f08(0x257)],_0x4c8654=>updateEnv(_0x25ef44[_0x202f08(0x237)],_0x4c8654,{'allowInsecureLocalhost':_0x25ef44[_0x202f08(0x1f9)]}));})['command'](_0x44ba09['mmUWc'],![],_0x35c651=>{const _0x1294c5=_0x14254e;return _0x35c651[_0x1294c5(0x329)](_0x1294c5(0x35c),{'type':_0x44ba09[_0x1294c5(0x1d2)],'description':'Cloud\x20profile\x20name','demandOption':!![]});},async _0xe277c5=>{await withTelemetry('profile\x20login',async()=>{const _0x4d89c9=_0x1deb,_0x1c3c57=process['env']['RANGER_TEST_USERNAME'],_0x156bd0=process['env'][_0x4d89c9(0x26b)];(!_0x1c3c57||!_0x156bd0)&&(console['error'](_0x30041f['BrsQF']),process[_0x4d89c9(0x1e4)](0x1));const _0x44c78b=_0xe277c5['name'],_0x718727=await _0x30041f[_0x4d89c9(0x2e0)](serverSideLogin,_0x44c78b,{'force':!![]});_0x718727[_0x4d89c9(0x300)]===_0x4d89c9(0x236)&&(console['error'](_0x4d89c9(0x2dd)),process[_0x4d89c9(0x1e4)](0x1)),_0x718727['status']===_0x4d89c9(0x242)&&(console[_0x4d89c9(0x212)](_0x4d89c9(0x24f)+(_0x718727[_0x4d89c9(0x212)]??'unknown\x20error')),_0x718727['test_output']&&console['error'](_0x718727[_0x4d89c9(0x331)]),process[_0x4d89c9(0x1e4)](0x1)),console['log']('✓\x20Server-side\x20login\x20succeeded\x20for\x20\x27'+_0x44c78b+'\x27.\x20Session\x20written\x20to\x20cloud\x20profile.');});})[_0x14254e(0x1cf)](_0x44ba09[_0x14254e(0x1dc)],'Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)',_0x1e62db=>{const _0x2f58f2=_0x14254e;return _0x1e62db[_0x2f58f2(0x329)](_0x30041f['XCUUv'],{'type':_0x2f58f2(0x1df),'description':_0x30041f['UQwTZ']})[_0x2f58f2(0x200)](_0x30041f['UCBCQ'],{'type':_0x30041f['niQOA'],'description':_0x2f58f2(0x317),'default':![]})[_0x2f58f2(0x200)](_0x2f58f2(0x247),{'type':'boolean','description':_0x30041f['DPozB'],'default':![]})['option'](_0x30041f['huAdr'],{'type':'boolean','alias':'y','description':_0x2f58f2(0x23c),'default':![]})['option'](_0x30041f['SjTsG'],{'type':'boolean','description':_0x30041f[_0x2f58f2(0x228)],'default':![]});},async _0x279d87=>{const _0x43317d=_0x14254e;await withTelemetry(_0x44ba09['ZpGHg'],_0x1f32bd=>migrateProfile({'profileName':_0x279d87['profile-name'],'all':_0x279d87[_0x43317d(0x1c7)],'dryRun':_0x279d87['dry-run'],'yes':_0x279d87[_0x43317d(0x208)],'saveCreds':_0x279d87[_0x43317d(0x377)]},_0x1f32bd));})['command'](_0x44ba09['xToAD'],_0x44ba09[_0x14254e(0x2cc)],_0x25f03b=>{const _0x182771=_0x14254e,_0x456e9d={'uiSeT':_0x44ba09[_0x182771(0x1d2)],'StWss':'key','LLwJX':_0x44ba09[_0x182771(0x27c)],'folrF':_0x182771(0x311),'kdreT':_0x44ba09[_0x182771(0x219)],'adSeN':_0x44ba09[_0x182771(0x287)],'mADDT':_0x182771(0x28e),'MlNvU':_0x44ba09['khpZb']};return _0x25f03b['usage'](PROFILE_CONFIG_HELP)['command'](_0x182771(0x1ee),_0x44ba09[_0x182771(0x301)],_0x4a5df6=>{const _0x15cf7f=_0x182771;return _0x4a5df6['positional'](_0x15cf7f(0x311),{'type':_0x456e9d[_0x15cf7f(0x21a)],'description':_0x15cf7f(0x296),'demandOption':!![]})[_0x15cf7f(0x329)](_0x456e9d['StWss'],{'type':_0x456e9d[_0x15cf7f(0x21a)],'description':_0x15cf7f(0x315),'demandOption':!![]})['positional'](_0x456e9d['LLwJX'],{'type':_0x456e9d['uiSeT'],'description':_0x15cf7f(0x32b),'demandOption':!![]});},async _0x306d52=>{const _0x59c05c=_0x182771;await _0x30041f[_0x59c05c(0x2e0)](withTelemetry,_0x59c05c(0x2a5),()=>configSet(_0x306d52[_0x59c05c(0x311)],_0x306d52['key'],_0x306d52['value']));})[_0x182771(0x1cf)](_0x182771(0x20f),_0x182771(0x278),_0x2c67f0=>{const _0xa92222=_0x182771;return _0x2c67f0[_0xa92222(0x329)](_0x30041f[_0xa92222(0x202)],{'type':_0xa92222(0x1df),'description':_0x30041f['VUGOC'],'demandOption':!![]})[_0xa92222(0x329)](_0xa92222(0x2df),{'type':_0x30041f['SSHBy'],'description':'Config\x20key','demandOption':!![]});},async _0x27f6b0=>{const _0x521749=_0x182771;await _0x30041f[_0x521749(0x2e0)](withTelemetry,_0x521749(0x29b),()=>configGet(_0x27f6b0[_0x521749(0x311)],_0x27f6b0[_0x521749(0x2df)]));})[_0x182771(0x1cf)](_0x182771(0x32f),_0x182771(0x227),_0x36c834=>{const _0x1941f8=_0x182771;return _0x36c834['positional'](_0x456e9d[_0x1941f8(0x2f6)],{'type':_0x456e9d['uiSeT'],'description':_0x456e9d[_0x1941f8(0x35f)],'demandOption':!![]});},async _0x432076=>{const _0xcdeac9=_0x182771;await withTelemetry(_0x456e9d['adSeN'],()=>configList(_0x432076[_0xcdeac9(0x311)]));})[_0x182771(0x1cf)](_0x44ba09[_0x182771(0x1e1)],_0x44ba09['MchHC'],_0x354cd7=>{const _0x8dfcc6=_0x182771;return _0x354cd7[_0x8dfcc6(0x329)](_0x8dfcc6(0x311),{'type':_0x456e9d[_0x8dfcc6(0x21a)],'description':_0x456e9d[_0x8dfcc6(0x35f)],'demandOption':!![]})[_0x8dfcc6(0x329)]('key',{'type':_0x456e9d['uiSeT'],'description':_0x456e9d['mADDT'],'demandOption':!![]});},async _0x398604=>{const _0x191ab2=_0x182771;await withTelemetry(_0x456e9d['MlNvU'],()=>configUnset(_0x398604[_0x191ab2(0x311)],_0x398604[_0x191ab2(0x2df)]));})[_0x182771(0x1cf)](_0x44ba09['AVxXh'],'Clear\x20all\x20config\x20overrides\x20for\x20a\x20profile\x20(cloud\x20profiles\x20only)',_0x5ed465=>{const _0x4cac9a=_0x182771;return _0x5ed465['positional'](_0x4cac9a(0x311),{'type':_0x30041f['SSHBy'],'description':'Profile\x20name','demandOption':!![]});},async _0x5d4d49=>{const _0x2c2059=_0x182771;await withTelemetry(_0x2c2059(0x225),()=>configReset(_0x5d4d49['profile']));})[_0x182771(0x2d0)](0x1,_0x182771(0x354));})['demandCommand'](0x1,_0x44ba09[_0x14254e(0x2f4)]);})['command']('status',_0x44ba09['FEOoU'],()=>{},async()=>{await withTelemetry(_0x44ba09['LOBVH'],()=>status());})[_0x5ca7c5(0x1cf)](_0x5ca7c5(0x2c6),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{await withTelemetry('update',()=>update());})[_0x5ca7c5(0x1cf)](_0x44ba09[_0x5ca7c5(0x1db)],'Print\x20the\x20current\x20CLI\x20access\x20token',()=>{},async()=>{const _0x56f1cc=_0x5ca7c5,_0x356cbc={'JjtWZ':function(_0x2852fe){return _0x2852fe();},'OHhrQ':_0x44ba09[_0x56f1cc(0x33d)]};await withTelemetry(_0x44ba09[_0x56f1cc(0x1db)],async()=>{const _0x4bef2a=_0x56f1cc,_0x53ad1d=await _0x356cbc[_0x4bef2a(0x32c)](getToken);if(!_0x53ad1d)throw new Error(_0x356cbc['OHhrQ']);console['log'](_0x53ad1d);});})[_0x5ca7c5(0x1cf)]('go',_0x5ca7c5(0x280),_0x52a92c=>{const _0x57ea04=_0x5ca7c5;return _0x52a92c[_0x57ea04(0x200)](_0x44ba09[_0x57ea04(0x343)],{'type':_0x44ba09[_0x57ea04(0x1d2)],'description':'Optional\x20feature\x20ID'})[_0x57ea04(0x200)](_0x44ba09['uYyFF'],{'type':_0x44ba09['JPmNQ'],'description':_0x44ba09['oGmKd']})['option'](_0x57ea04(0x366),{'type':_0x44ba09[_0x57ea04(0x1d2)],'description':_0x57ea04(0x323)})['option']('scenario',{'type':_0x57ea04(0x367),'description':'Scenario\x20index\x20(1-based)'})[_0x57ea04(0x200)]('start-path',{'type':_0x44ba09['JPmNQ'],'description':_0x44ba09['UBsQS']})['option'](_0x57ea04(0x266),{'type':_0x44ba09[_0x57ea04(0x1d2)],'description':'Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run\x20(e.g.,\x20https://localhost:3003).\x20Also\x20respects\x20RANGER_BASE_URL.'})[_0x57ea04(0x200)]('model',{'type':'string','description':_0x57ea04(0x2a4)})['option'](_0x57ea04(0x226),{'type':_0x57ea04(0x29e),'description':_0x44ba09['AKyFF'],'default':![]})[_0x57ea04(0x200)](_0x57ea04(0x295),{'type':_0x44ba09[_0x57ea04(0x1d2)],'hidden':!![],'choices':[_0x57ea04(0x2e6),_0x44ba09['esfoR'],_0x44ba09['cYxkf'],_0x44ba09['CSXmS'],'incomplete']})['option'](_0x44ba09[_0x57ea04(0x250)],{'type':_0x44ba09[_0x57ea04(0x30a)],'hidden':!![]})['option'](_0x57ea04(0x349),{'type':_0x44ba09[_0x57ea04(0x1d2)],'hidden':!![]})[_0x57ea04(0x200)](_0x44ba09['rJEHl'],{'type':'string','hidden':!![]})[_0x57ea04(0x200)](_0x44ba09['csobG'],{'type':'number','hidden':!![]});},async _0x1375d1=>{const _0x217777=_0x5ca7c5;await _0x44ba09[_0x217777(0x224)](runGoCommand,_0x1375d1);})[_0x5ca7c5(0x1cf)]('auth',![],_0x53c4de=>{const _0x4d78c0=_0x5ca7c5;return _0x53c4de['command'](_0x44ba09['BYnxm'],![],_0x1034e7=>{const _0xe7513e=_0x1deb;return _0x1034e7['positional']('profile',{'type':_0xe7513e(0x1df),'description':_0x44ba09[_0xe7513e(0x219)],'demandOption':!![]});},async _0x447c7f=>{const _0x4b2d60=_0x1deb;warnRenamed('ranger\x20auth\x20encrypt',_0x4b2d60(0x26e)),await authEncrypt(_0x447c7f['profile']);})[_0x4d78c0(0x2d0)](0x1,_0x4d78c0(0x2bf));},()=>{})['command']('start\x20[token]',![],_0x317a85=>{const _0x25a491=_0x5ca7c5;return _0x317a85[_0x25a491(0x329)](_0x25a491(0x217),{'type':'string','description':_0x44ba09['qUqJP']})[_0x25a491(0x200)](_0x44ba09[_0x25a491(0x20a)],{'type':'boolean','description':_0x44ba09[_0x25a491(0x2e2)],'default':![]})[_0x25a491(0x200)](_0x44ba09[_0x25a491(0x234)],{'type':'string','choices':[_0x25a491(0x351),_0x44ba09[_0x25a491(0x27a)]],'description':_0x25a491(0x2d6)})['option'](_0x25a491(0x260),{'type':_0x44ba09[_0x25a491(0x1d2)],'description':_0x25a491(0x1d0)})[_0x25a491(0x200)]('force',{'type':_0x44ba09['xcvCU'],'description':_0x44ba09[_0x25a491(0x245)],'default':![]})['option'](_0x44ba09['kthyr'],{'type':'boolean','description':'Skip\x20authentication','default':![]})[_0x25a491(0x200)]('with-deps',{'type':_0x25a491(0x29e),'description':'Install\x20OS-level\x20dependencies\x20for\x20Chromium','default':![]});},async _0x357be3=>{const _0x5921c7=_0x5ca7c5;warnRenamed(_0x44ba09[_0x5921c7(0x203)],'ranger\x20setup'),await _0x44ba09['Vumxt'](withTelemetry,_0x5921c7(0x1c1),_0x25e35e=>start(_0x357be3[_0x5921c7(0x217)],{'skipChromium':_0x357be3[_0x5921c7(0x1ef)],'skipAuth':_0x357be3['skip-auth'],'withDeps':_0x357be3['with-deps'],'scope':_0x357be3['scope'],'url':_0x357be3['url'],'force':_0x357be3['force']},_0x25e35e));})['command'](_0x44ba09[_0x5ca7c5(0x2f0)],![],_0x1f8623=>{const _0x4e2a1d=_0x5ca7c5;return _0x1f8623[_0x4e2a1d(0x200)](_0x4e2a1d(0x349),{'type':'string','description':_0x44ba09[_0x4e2a1d(0x284)]})[_0x4e2a1d(0x200)](_0x44ba09['rJEHl'],{'type':_0x44ba09[_0x4e2a1d(0x1d2)],'description':_0x4e2a1d(0x22f)})[_0x4e2a1d(0x200)](_0x4e2a1d(0x2f5),{'type':_0x4e2a1d(0x367),'description':_0x4e2a1d(0x372)})[_0x4e2a1d(0x200)](_0x44ba09[_0x4e2a1d(0x2a6)],{'type':_0x44ba09['JPmNQ'],'hidden':!![]})['option']('notes',{'type':'string','hidden':!![]})[_0x4e2a1d(0x200)]('scenario',{'type':_0x4e2a1d(0x367),'hidden':!![]})['option'](_0x4e2a1d(0x37d),{'type':_0x4e2a1d(0x1df),'description':_0x44ba09['UBsQS']})[_0x4e2a1d(0x200)](_0x44ba09['EYmvf'],{'type':_0x4e2a1d(0x1df),'description':_0x4e2a1d(0x25d)})['option'](_0x44ba09[_0x4e2a1d(0x24a)],{'type':_0x4e2a1d(0x1df),'hidden':!![]})['option'](_0x44ba09['Qukzh'],{'type':_0x44ba09['xcvCU'],'hidden':!![],'default':![]})['option']('debug-outcome',{'type':'string','hidden':!![],'choices':['verified',_0x44ba09['esfoR'],_0x4e2a1d(0x2fe),_0x4e2a1d(0x242),'incomplete']});},async _0xb3db84=>{await runGoCommand(_0xb3db84,!![]);})['command']('add\x20env\x20<env-name>',![],_0x3beaa2=>{const _0x4559b0=_0x5ca7c5;return _0x3beaa2['positional'](_0x44ba09[_0x4559b0(0x365)],{'type':'string','description':_0x44ba09[_0x4559b0(0x293)],'demandOption':!![]})[_0x4559b0(0x200)]('ci',{'type':'boolean','description':_0x44ba09['RnSAe'],'default':![]})['option'](_0x44ba09['kthyr'],{'type':'boolean','description':_0x4559b0(0x1ed),'default':![]});},async _0x15c3e3=>{const _0x23ad50=_0x5ca7c5;_0x44ba09[_0x23ad50(0x1bf)](warnRenamed,'ranger\x20add\x20env',_0x23ad50(0x298)),await withTelemetry('add\x20env',_0x2f08f2=>addEnv(_0x15c3e3[_0x23ad50(0x2b8)],{'ci':_0x15c3e3['ci'],'skipAuth':_0x15c3e3['skip-auth']},_0x2f08f2));})['command'](_0x5ca7c5(0x279),![],_0x4f2dd3=>{const _0x3473bc=_0x5ca7c5;return _0x4f2dd3['positional'](_0x44ba09['twHuj'],{'type':_0x44ba09[_0x3473bc(0x1d2)],'description':_0x44ba09['YDIsF'],'demandOption':!![]});},async _0x3278b0=>{const _0x41c3ea=_0x5ca7c5;_0x44ba09['ASGMO'](warnRenamed,_0x44ba09[_0x41c3ea(0x28a)],'ranger\x20profile\x20use'),await _0x44ba09['aNkdm'](withTelemetry,'use',()=>useEnv(_0x3278b0['env-name']));})['command'](_0x5ca7c5(0x37a),![],_0x3f7a81=>{const _0x35f57f=_0x5ca7c5,_0x1f776b={'UngNx':function(_0x1512bf,_0x47924b,_0x5393e0){return _0x44ba09['liRrH'](_0x1512bf,_0x47924b,_0x5393e0);},'JyKot':_0x44ba09['enVZY'],'rJcyS':function(_0x5de7bb,_0x1dd980,_0x44e621){const _0x20be10=_0x1deb;return _0x44ba09[_0x20be10(0x2c4)](_0x5de7bb,_0x1dd980,_0x44e621);},'RwCaF':function(_0x1ab073,_0x22cb14,_0x3e8db0){return _0x1ab073(_0x22cb14,_0x3e8db0);},'rqkJQ':_0x44ba09['LCwFC']};return _0x3f7a81[_0x35f57f(0x1cf)](_0x44ba09[_0x35f57f(0x2bb)],![],_0x2ae79d=>{const _0x1e2e8e=_0x35f57f;return _0x2ae79d[_0x1e2e8e(0x329)](_0x44ba09[_0x1e2e8e(0x2bc)],{'type':_0x1e2e8e(0x1df),'description':_0x44ba09[_0x1e2e8e(0x1ff)],'demandOption':!![]})[_0x1e2e8e(0x329)]('key',{'type':_0x1e2e8e(0x1df),'description':_0x1e2e8e(0x315),'demandOption':!![]})['positional'](_0x44ba09[_0x1e2e8e(0x27c)],{'type':_0x44ba09['JPmNQ'],'description':_0x44ba09[_0x1e2e8e(0x324)],'demandOption':!![]});},async _0x56b594=>{const _0x5a6469=_0x35f57f;_0x1f776b[_0x5a6469(0x215)](warnRenamed,_0x5a6469(0x1cd),_0x1f776b[_0x5a6469(0x25e)]),await _0x1f776b['rJcyS'](withTelemetry,'config\x20set',()=>configSet(_0x56b594['env'],_0x56b594['key'],_0x56b594['value']));})[_0x35f57f(0x1cf)]('get\x20<env>\x20<key>',![],_0x771cfc=>{const _0x49ace6=_0x35f57f;return _0x771cfc[_0x49ace6(0x329)](_0x49ace6(0x349),{'type':_0x44ba09[_0x49ace6(0x1d2)],'description':_0x49ace6(0x37c),'demandOption':!![]})['positional'](_0x49ace6(0x2df),{'type':_0x49ace6(0x1df),'description':_0x44ba09[_0x49ace6(0x1f8)],'demandOption':!![]});},async _0x48482c=>{const _0x3b2d19=_0x35f57f;warnRenamed(_0x3b2d19(0x1d1),_0x44ba09[_0x3b2d19(0x1f1)]),await withTelemetry(_0x44ba09['puXZX'],()=>configGet(_0x48482c['env'],_0x48482c['key']));})['command'](_0x44ba09[_0x35f57f(0x297)],![],_0x113f4f=>{const _0x57eea7=_0x35f57f;return _0x113f4f[_0x57eea7(0x329)](_0x57eea7(0x349),{'type':_0x57eea7(0x1df),'description':_0x57eea7(0x37c),'demandOption':!![]});},async _0x438574=>{const _0x1b228c=_0x35f57f;_0x44ba09['Vumxt'](warnRenamed,'ranger\x20config\x20list',_0x44ba09['vrmKr']),await withTelemetry(_0x1b228c(0x230),()=>configList(_0x438574['env']));})['command'](_0x35f57f(0x1fc),![],_0x1dfc50=>{const _0x3214b7=_0x35f57f;return _0x1dfc50['positional'](_0x3214b7(0x349),{'type':_0x44ba09['JPmNQ'],'description':_0x44ba09['rvyit'],'demandOption':!![]})['positional']('key',{'type':_0x44ba09[_0x3214b7(0x1d2)],'description':_0x3214b7(0x28e),'demandOption':!![]});},async _0x98051=>{const _0xb38b7b=_0x35f57f;warnRenamed(_0xb38b7b(0x2b2),_0xb38b7b(0x290)),await _0x1f776b[_0xb38b7b(0x26f)](withTelemetry,_0x1f776b['rqkJQ'],()=>configUnset(_0x98051['env'],_0x98051['key']));})[_0x35f57f(0x2d0)](0x1,_0x35f57f(0x1ce));})[_0x5ca7c5(0x1cf)](_0x44ba09[_0x5ca7c5(0x2bc)],![],_0x1ea77b=>{const _0x304267=_0x5ca7c5,_0x133a00={'poZaI':_0x44ba09[_0x304267(0x213)],'VXsPI':function(_0x1a0b62,_0x5a7efe,_0x4ad427){const _0x52210a=_0x304267;return _0x44ba09[_0x52210a(0x27b)](_0x1a0b62,_0x5a7efe,_0x4ad427);}};return _0x1ea77b[_0x304267(0x1cf)]('ls',![],()=>{},async()=>{const _0x2c799d=_0x304267;warnRenamed('ranger\x20env\x20ls',_0x133a00[_0x2c799d(0x26a)]),await _0x133a00['VXsPI'](withTelemetry,_0x2c799d(0x1cb),()=>envList());})[_0x304267(0x1cf)](_0x304267(0x27e),![],_0x45921f=>{const _0x42bb7d=_0x304267;return _0x45921f[_0x42bb7d(0x329)](_0x42bb7d(0x2b8),{'type':_0x42bb7d(0x1df),'description':_0x42bb7d(0x1d5),'demandOption':!![]});},async _0x207ba0=>{const _0x2ba10c=_0x304267;warnRenamed(_0x44ba09[_0x2ba10c(0x1c8)],'ranger\x20profile\x20update'),await _0x44ba09[_0x2ba10c(0x31d)](withTelemetry,_0x44ba09[_0x2ba10c(0x283)],_0x14e3ab=>updateEnv(_0x207ba0[_0x2ba10c(0x2b8)],_0x14e3ab));})[_0x304267(0x2d0)](0x1,_0x44ba09['AeNDH']);})[_0x5ca7c5(0x1cf)]('feature',![],_0xd1098c=>{const _0x1b8f0a=_0x5ca7c5,_0x25ca88={'hSDRp':function(_0x4a18d3,_0x436a3f,_0x2cb63d){return _0x4a18d3(_0x436a3f,_0x2cb63d);},'sWwCO':'ranger\x20feature\x20show','ifRGt':_0x1b8f0a(0x21f),'UwcXQ':_0x1b8f0a(0x345),'OXrmL':_0x44ba09['XKBig'],'XsRXo':'ranger\x20resume','qiwEq':'feature\x20resume','wXPCW':_0x44ba09[_0x1b8f0a(0x229)],'QYBcn':'string','wHYic':_0x44ba09[_0x1b8f0a(0x2aa)],'OXfxt':function(_0x42448d,_0x383fce,_0x2ac364){return _0x42448d(_0x383fce,_0x2ac364);},'VZPrn':_0x44ba09[_0x1b8f0a(0x2ab)]};return _0xd1098c['command'](_0x1b8f0a(0x37b),![],_0xbb7a24=>{const _0x1b4f72=_0x1b8f0a;return _0xbb7a24[_0x1b4f72(0x329)](_0x1b4f72(0x35c),{'type':'string','description':_0x44ba09[_0x1b4f72(0x1da)],'demandOption':!![]})[_0x1b4f72(0x200)]('description',{'type':_0x1b4f72(0x1df),'alias':'d','description':'Feature\x20review\x20description'})['option'](_0x44ba09['xcNaV'],{'type':_0x44ba09['xnjYn'],'alias':'c','description':_0x44ba09[_0x1b4f72(0x204)]})[_0x1b4f72(0x200)]('scenario',{'type':_0x1b4f72(0x2be),'hidden':!![]});},async _0x1f8495=>{const _0x1ad58f=_0x1b8f0a;_0x44ba09['GlVJg'](warnRenamed,_0x44ba09['roWqK'],_0x44ba09[_0x1ad58f(0x21d)]),_0x44ba09[_0x1ad58f(0x23f)](warnFlagRenamed,_0x44ba09[_0x1ad58f(0x21d)],_0x44ba09[_0x1ad58f(0x358)],'--scenario');const _0x56d8ad=_0x1f8495[_0x1ad58f(0x347)]||_0x1f8495[_0x1ad58f(0x271)];await _0x44ba09['GIZgH'](withTelemetry,_0x1ad58f(0x286),()=>featureCreate(_0x1f8495[_0x1ad58f(0x35c)],{'description':_0x1f8495['description'],'scenarios':_0x56d8ad}));})[_0x1b8f0a(0x1cf)]('list',![],_0x2c9d11=>{const _0x570bbb=_0x1b8f0a;return _0x2c9d11['option'](_0x44ba09['SIAPs'],{'type':_0x44ba09['xcvCU'],'description':_0x570bbb(0x201)})[_0x570bbb(0x200)](_0x570bbb(0x220),{'type':_0x570bbb(0x367),'alias':'l','description':_0x570bbb(0x33b),'default':0xa})['option'](_0x570bbb(0x30e),{'type':_0x44ba09[_0x570bbb(0x1eb)],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x570bbb(0x200)]('include-deleted',{'type':_0x44ba09['xcvCU'],'alias':'d','description':_0x570bbb(0x24e),'default':![]});},async _0x8cc696=>{const _0xad67cf=_0x1b8f0a;_0x44ba09[_0xad67cf(0x2c7)](warnRenamed,_0xad67cf(0x1dd),'ranger\x20list'),await withTelemetry(_0x44ba09[_0xad67cf(0x1f2)],()=>featureList({'currentBranch':_0x8cc696['current-branch'],'limit':_0x8cc696['limit'],'offset':_0x8cc696['offset'],'includeDeleted':_0x8cc696[_0xad67cf(0x2ed)]}));})[_0x1b8f0a(0x1cf)](_0x44ba09[_0x1b8f0a(0x360)],![],_0x3a28a4=>{const _0x6075db=_0x1b8f0a;return _0x3a28a4['positional']('id',{'type':_0x6075db(0x1df),'description':_0x6075db(0x303)});},async _0x202aa3=>{const _0xf061fe=_0x1b8f0a;_0x25ca88[_0xf061fe(0x24b)](warnRenamed,_0x25ca88[_0xf061fe(0x32a)],_0x25ca88[_0xf061fe(0x2ea)]),await _0x25ca88['hSDRp'](withTelemetry,_0x25ca88['UwcXQ'],()=>featureShow(_0x202aa3['id']));})['command'](_0x44ba09['yTySa'],![],_0x399453=>{const _0x10de81=_0x1b8f0a;return _0x399453[_0x10de81(0x329)]('id',{'type':_0x10de81(0x1df),'description':_0x10de81(0x20d)});},async _0x136d2d=>{const _0x3781d0=_0x1b8f0a;_0x25ca88[_0x3781d0(0x24b)](warnRenamed,_0x25ca88['OXrmL'],_0x25ca88[_0x3781d0(0x2b3)]),await withTelemetry(_0x25ca88[_0x3781d0(0x20b)],()=>featureResume(_0x136d2d['id']));})['command'](_0x44ba09[_0x1b8f0a(0x24d)],![],_0x360228=>{const _0xeb2a4c=_0x1b8f0a;return _0x360228['positional'](_0x25ca88['wXPCW'],{'type':_0x25ca88['QYBcn'],'description':_0x25ca88[_0xeb2a4c(0x30c)],'demandOption':!![]})['option']('id',{'type':_0x25ca88[_0xeb2a4c(0x2b4)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x353f44=>{const _0x4e5f82=_0x1b8f0a;_0x25ca88[_0x4e5f82(0x1e9)](warnRenamed,'ranger\x20feature\x20add-checklist-item','ranger\x20add-scenario'),await withTelemetry(_0x4e5f82(0x2a0),()=>featureAddScenario(_0x353f44['description'],_0x353f44['id']));})[_0x1b8f0a(0x1cf)](_0x44ba09['grFas'],![],_0x36b59b=>{const _0x2c0b7b=_0x1b8f0a;return _0x36b59b['positional']('id',{'type':_0x25ca88[_0x2c0b7b(0x2b4)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x27d132=>{warnRenamed(_0x44ba09['snhqm'],_0x44ba09['KwmPh']),await withTelemetry(_0x44ba09['kYjjB'],()=>featureGetReview(_0x27d132['id']));})['command'](_0x1b8f0a(0x231),![],_0x5f4b8a=>{return _0x5f4b8a['positional']('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0x515c99=>{const _0x860702=_0x1b8f0a;warnRenamed(_0x860702(0x23e),_0x860702(0x1fe)),await withTelemetry('feature\x20delete',()=>featureDelete(_0x515c99['id']));})['command'](_0x44ba09['yRcfS'],![],_0x7dda57=>{const _0x21ec77=_0x1b8f0a;return _0x7dda57['positional']('id',{'type':_0x44ba09[_0x21ec77(0x1d2)],'description':_0x44ba09[_0x21ec77(0x243)],'demandOption':!![]});},async _0x4729b1=>{const _0x348ac0=_0x1b8f0a;_0x25ca88[_0x348ac0(0x24b)](warnRenamed,_0x348ac0(0x334),_0x25ca88['VZPrn']),await _0x25ca88[_0x348ac0(0x1e9)](withTelemetry,_0x348ac0(0x341),()=>featureRestore(_0x4729b1['id']));})[_0x1b8f0a(0x2d0)](0x1,_0x44ba09['SBNts']);})['command'](_0x44ba09[_0x5ca7c5(0x2f9)],![],_0x4fd106=>{const _0x51f5ae=_0x5ca7c5,_0x5b8696={'onCeH':_0x51f5ae(0x34f),'otvxN':_0x51f5ae(0x1df)};return _0x4fd106['command'](_0x44ba09[_0x51f5ae(0x2ad)],_0x44ba09['EzWPG'],_0x101f61=>{return _0x101f61['option'](_0x5b8696['onCeH'],{'type':_0x5b8696['otvxN'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x46b25b=>{const _0x5b0de8=_0x51f5ae;await withTelemetry(_0x5b0de8(0x364),()=>hook(_0x5b0de8(0x361),_0x46b25b['session-id']));})['command'](_0x44ba09[_0x51f5ae(0x2d9)],_0x51f5ae(0x33f),_0x56aabb=>{const _0x5adce2=_0x51f5ae;return _0x56aabb[_0x5adce2(0x200)](_0x44ba09[_0x5adce2(0x2a9)],{'type':'string','description':_0x44ba09['qoVnX']});},async _0x1a35f4=>{const _0x19bc19=_0x51f5ae;await withTelemetry(_0x19bc19(0x25a),()=>hook('disable',_0x1a35f4[_0x19bc19(0x34f)]));})['option'](_0x44ba09[_0x51f5ae(0x330)],{'type':_0x44ba09['JPmNQ'],'description':_0x44ba09[_0x51f5ae(0x1f6)]})['option'](_0x51f5ae(0x34f),{'type':'string','description':_0x44ba09['qoVnX']});},async _0xd5e7c=>{const _0x5e5dab=_0x5ca7c5;_0xd5e7c['name']&&await _0x44ba09[_0x5e5dab(0x24c)](hook,_0xd5e7c[_0x5e5dab(0x35c)],_0xd5e7c[_0x44ba09['lIffR']]);})[_0x5ca7c5(0x2d0)](0x1,_0x5ca7c5(0x322))['strictCommands']()['fail'](async(_0x3b709d,_0x43f48a,_0x1c66a6)=>{const _0x929888=_0x5ca7c5,_0x4da482=_0x44ba09['RjJWU'](sanitizeArgs,process['argv'][_0x929888(0x256)](0x2)),_0x464bff=getErrorType(_0x3b709d,_0x43f48a);if(_0x3b709d&&_0x3b709d['includes'](_0x44ba09['sFuxM'])){const _0x3a1fa7=process['argv'][0x2];console[_0x929888(0x212)]('\x0aUnknown\x20command:\x20'+_0x3a1fa7),console['error'](_0x44ba09['ctCJm']);}else{if(_0x3b709d)console['error']('\x0a'+_0x3b709d+'\x0a');else _0x43f48a&&console[_0x929888(0x212)]('\x0aError:\x20'+_0x43f48a[_0x929888(0x359)]+'\x0a');}await logDesirePath({'rawCommand':_0x4da482,'errorMessage':_0x3b709d||_0x43f48a?.[_0x929888(0x359)],'errorType':_0x464bff});const _0x4bd874=getCurrentCollector();_0x4bd874&&await _0x4bd874['trackCommandError'](_0x43f48a||new Error(_0x44ba09['IttIF'](_0x3b709d,_0x929888(0x378)))),process[_0x929888(0x1e4)](0x1);})[_0x5ca7c5(0x207)](_0x44ba09[_0x5ca7c5(0x1de)](_0x44ba09['tZqOs']('Documentation:\x0a',_0x44ba09[_0x5ca7c5(0x379)]),_0x5ca7c5(0x2fa)))[_0x5ca7c5(0x2a8)]()['alias'](_0x44ba09['aCNWM'],'h');}process['env']['NODE_ENV']!=='test'&&buildParser()[_0x10ef54(0x2c8)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x39af40,_0x51ebd3){const _0x36e04c=_0x44c6,_0x2940a5=_0x39af40();while(!![]){try{const _0x356da7=-parseInt(_0x36e04c(0x192))/0x1+parseInt(_0x36e04c(0x1a6))/0x2+-parseInt(_0x36e04c(0x1d4))/0x3+parseInt(_0x36e04c(0x19d))/0x4*(-parseInt(_0x36e04c(0x1a3))/0x5)+-parseInt(_0x36e04c(0x181))/0x6*(parseInt(_0x36e04c(0x20f))/0x7)+-parseInt(_0x36e04c(0x1b1))/0x8*(-parseInt(_0x36e04c(0x1b2))/0x9)+-parseInt(_0x36e04c(0x209))/0xa*(-parseInt(_0x36e04c(0x1ba))/0xb);if(_0x356da7===_0x51ebd3)break;else _0x2940a5['push'](_0x2940a5['shift']());}catch(_0x282451){_0x2940a5['push'](_0x2940a5['shift']());}}}(_0x1fea,0x26dbd));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x3acde3 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';function _0x44c6(_0x38c416,_0x38b7b3){_0x38c416=_0x38c416-0x181;const _0x1feada=_0x1fea();let _0x44c666=_0x1feada[_0x38c416];return _0x44c666;}import{getToken}from'./utils/keychain.js';function _0x1fea(){const _0x28dd66=['\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','about:blank','length','skipAuth','status','profile.add.autoRouted','\x20would\x20shadow\x20the\x20existing\x20profile.',')\x0a\x20\x20Save\x20\x27','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','GXzsN','overwrite','zZSxc','trackPhaseEnd','confirm','user_declined','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','launch','TypeError','NODE_TLS_REJECT_UNAUTHORIZED','QHeRk','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','safeMode','xUICp','prompt','some','env','zUwgf','no_match','eIDiD','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','\x27\x20to\x20the\x20cloud?','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','Found\x20auth\x20environment\x20\x27','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','JyIUg','ROLwS','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','eqwqX','action','PPijp','origin','trim','catch','KIcGe','Pdzmi','XQoKa','HGpDo','Saving\x20authentication\x20state...','path','list','\x27.\x0a','217740GgDwSo','close','continue','root\x20(.ranger/)','vezid','use_suggestion','287JBHwqW','isTTY','HwNQz','log','\x0a\x20\x20Could\x20not\x20reach\x20','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','12858PGgjFu','--disable-features=WebBluetooth','Invalid\x20--setup-header\x20format:\x20\x22','\x0a\x20\x20Profile\x20\x22','ssGYI','\x20\x20\x20Creating\x20it\x20in\x20','yes','\x22\x20already\x20exists.\x20Overwrite?','baseUrl','\x20\x20Next:\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--profile\x20','ofPcS','SKJdK','KBRWk','\x27\x20created,\x20linked\x20to\x20env\x20\x27','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','newPage','\x20\x20Set\x20active\x20profile:\x20','77965rqSJSa','environments','TqOmJ','setupHeader','WVKZl','mIbQE','dpLXo','message','JHQPm','profile.add.autoRouteSkipped','QCEiO','4nRmdeD','cdpEndpoint','trackPhaseStart','ETcoj','retry','saveToCloud','47020PyIQkL','setupHeaders','fetch\x20failed','94926LEghnS','FbEWI','FgvDJ','error','ZGPKi','config_write','newContext','allowInsecureLocalhost','uPgQj','.backup-','Could\x20not\x20reach\x20','21640AbjmWT','54bYNLYi','isProtocolError','assign','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','auth.json','CsGFQ','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','\x20\x20Did\x20you\x20mean\x20','143VYvpPn','WMlJJ','HqooE','url_setup','location','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','\x22\x20already\x20exists.\x20Choose\x20a\x20different\x20name\x20or\x20delete\x20the\x20existing\x20profile\x20first.','Use\x20','push','QtcIp','uHSav','uuFfM','No\x20auth\x20env\x20matches\x20this\x20URL.\x20Creating\x20local\x20profile.','name','\x0a⚠️\x20\x20Profile\x20\x22','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','daHwy','test','force','no_auth_config','TiDzV','Removed\x20existing\x20profile\x20at\x20','includes','url','What\x20would\x20you\x20like\x20to\x20do?','zfWir','37074vzofLD'];_0x1fea=function(){return _0x28dd66;};return _0x1fea();}import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';import{fetchAuthConfig,createCloudProfile,ApiError}from'./utils/cloudProfile.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';async function checkUrlReachability(_0x290b8c){const _0x37f9e4=_0x44c6,_0x4b047c={'jQLOC':function(_0x39ad30,_0x4cb759,_0x26f3ff){return _0x39ad30(_0x4cb759,_0x26f3ff);},'uPgQj':function(_0x592d11,_0x5dbb3){return _0x592d11(_0x5dbb3);},'zSFLA':_0x37f9e4(0x1a5)};try{const _0xd4091c=new AbortController(),_0x5f1a01=_0x4b047c['jQLOC'](setTimeout,()=>_0xd4091c['abort'](),0x1388),_0x39ea44={'method':'HEAD','signal':_0xd4091c['signal'],'redirect':'manual'};/^https:\/\/localhost(:\d+)?/i['test'](_0x290b8c)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0xaa8fd3=await fetch(_0x290b8c,_0x39ea44);delete process['env'][_0x37f9e4(0x1e8)],_0x4b047c[_0x37f9e4(0x1ae)](clearTimeout,_0x5f1a01);if(_0xaa8fd3[_0x37f9e4(0x1d9)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0xaa8fd3['status']};}catch(_0x33e515){delete process[_0x37f9e4(0x1ef)][_0x37f9e4(0x1e8)];const _0x1072a1=_0x33e515,_0x2d2851=_0x1072a1[_0x37f9e4(0x199)]||_0x4b047c['uPgQj'](String,_0x33e515),_0x5ccb5b=_0x2d2851[_0x37f9e4(0x1d0)]('Invalid\x20URL')||_0x1072a1[_0x37f9e4(0x1c7)]===_0x37f9e4(0x1e7)||_0x2d2851['includes'](_0x4b047c['zSFLA']);return{'ok':![],'error':_0x2d2851,'isProtocolError':_0x5ccb5b};}}async function tryAutoRouteCloudProfile(_0x2fcb65,_0x3f9e80,_0x41e55e,_0x2aadd1,_0x33846f){const _0x424414=_0x44c6,_0x1290f4={'rmwFC':function(_0x422244,_0xa41401){return _0x422244===_0xa41401;},'QCEiO':function(_0x1f107c){return _0x1f107c();},'XQoKa':'profile.add.autoRouteSkipped','CLbgA':function(_0x38be61,_0x4acc7e,_0x4a2a49){return _0x38be61(_0x4acc7e,_0x4a2a49);},'fTBVN':_0x424414(0x1e2),'wkejO':function(_0x31dd25,_0x5ed385){return _0x31dd25 instanceof _0x5ed385;},'HqooE':function(_0x32cb24,_0x31ff76){return _0x32cb24===_0x31ff76;},'gfDGL':_0x424414(0x1da)};let _0x4f44f6;try{_0x4f44f6=await _0x1290f4[_0x424414(0x19c)](fetchAuthConfig);}catch{return _0x33846f?.[_0x424414(0x1e1)](_0x1290f4['XQoKa'],{'reason':'no_auth_config','profileName':_0x2fcb65}),![];}if(!_0x4f44f6||!_0x4f44f6[_0x424414(0x193)]||Object['keys'](_0x4f44f6[_0x424414(0x193)])['length']===0x0)return _0x33846f?.['trackPhaseEnd'](_0x1290f4[_0x424414(0x203)],{'reason':_0x424414(0x1cd),'profileName':_0x2fcb65}),![];const _0x60c70b=_0x1290f4['CLbgA'](matchAuthEnvironment,_0x3f9e80,_0x4f44f6);if(!_0x60c70b)return console['log'](_0x424414(0x1c6)),_0x33846f?.[_0x424414(0x1e1)](_0x424414(0x19b),{'reason':_0x424414(0x1f1),'profileName':_0x2fcb65}),![];const _0x5e3f28=_0x4f44f6['environments'][_0x60c70b],_0x4e14b7=_0x5e3f28?.['domains']??[];if(_0x2aadd1&&!_0x41e55e[_0x424414(0x187)]){const {saveToCloud:_0xaf7b8b}=await _0x3acde3['prompt']([{'type':_0x1290f4['fTBVN'],'name':_0x424414(0x1a2),'message':_0x424414(0x1f6)+_0x60c70b+'\x27\x20matching\x20'+_0x3f9e80+'\x0a\x20\x20(domains:\x20'+_0x4e14b7['join'](',\x20')+_0x424414(0x1dc)+_0x2fcb65+_0x424414(0x1f4),'default':!![]}]);if(!_0xaf7b8b)return _0x33846f?.['trackPhaseEnd'](_0x1290f4['XQoKa'],{'reason':_0x424414(0x1e3),'profileName':_0x2fcb65}),![];}const _0x17a20e=_0x4e14b7[_0x424414(0x1ee)](_0x223456=>{const _0x205588=_0x424414;try{return _0x1290f4['rmwFC'](new URL(_0x223456)[_0x205588(0x1fe)],new URL(_0x3f9e80)['origin']);}catch{return![];}}),_0x53920f={};!_0x17a20e&&(_0x53920f[_0x424414(0x189)]=_0x3f9e80);try{await createCloudProfile(_0x2fcb65,_0x60c70b,_0x53920f);}catch(_0x1db24d){if(_0x1290f4['wkejO'](_0x1db24d,ApiError)&&_0x1290f4[_0x424414(0x1bc)](_0x1db24d[_0x424414(0x1d9)],0x199)){console[_0x424414(0x1a9)]('\x0a\x20\x20A\x20cloud\x20profile\x20named\x20\x22'+_0x2fcb65+_0x424414(0x1c0));throw _0x1db24d;}return console['log']('\x20\x20Could\x20not\x20reach\x20Ranger\x20API\x20to\x20create\x20a\x20cloud\x20profile\x20('+(_0x1db24d instanceof Error?_0x1db24d['message']:String(_0x1db24d))+').\x20Falling\x20back\x20to\x20local\x20profile.'),_0x33846f?.['trackPhaseEnd'](_0x1290f4[_0x424414(0x203)],{'reason':'no_auth_config','profileName':_0x2fcb65}),![];}return console[_0x424414(0x212)]('✓\x20Cloud\x20profile\x20\x27'+_0x2fcb65+_0x424414(0x18e)+_0x60c70b+_0x424414(0x208)+(_0x424414(0x18a)+_0x2fcb65)),_0x33846f?.[_0x424414(0x1e1)](_0x1290f4['gfDGL'],{'envKey':_0x60c70b,'profileName':_0x2fcb65}),!![];}export async function addEnv(_0x2dced6,_0x492aaa={},_0x526fad){const _0x23a0e5=_0x44c6,_0x28d35d={'TiDzV':function(_0x20ad41){return _0x20ad41();},'FgvDJ':'local','ROLwS':'user','roqsm':function(_0x58fe2d){return _0x58fe2d();},'IOhTP':function(_0x1893d5,_0x8229f1,_0x373b8d,_0x14bab2){return _0x1893d5(_0x8229f1,_0x373b8d,_0x14bab2);},'ZRMSP':function(_0x431623,_0x2d76db){return _0x431623===_0x2d76db;},'uuFfM':_0x23a0e5(0x1e4),'FbEWI':function(_0x5d4237,_0x200f59){return _0x5d4237(_0x200f59);},'JUcUW':function(_0x1bce75,_0x45cac4,_0x591b8c,_0x174460,_0x5796a4,_0x3ba3e7){return _0x1bce75(_0x45cac4,_0x591b8c,_0x174460,_0x5796a4,_0x3ba3e7);},'daHwy':'confirm','TqOmJ':_0x23a0e5(0x1df),'JzTFY':function(_0x24a3a4,_0x211613){return _0x24a3a4===_0x211613;},'Pdzmi':_0x23a0e5(0x20c),'MwJwz':'shouldReplace','OatCp':_0x23a0e5(0x1bd),'WMlJJ':'\x0a🌐\x20Profile\x20Setup\x0a','SKJdK':_0x23a0e5(0x215),'ZGPKi':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','CsGFQ':'input','GXzsN':_0x23a0e5(0x1c9),'KBRWk':function(_0x26351a,_0x28fd54){return _0x26351a||_0x28fd54;},'QtcIp':'http://localhost:3000','ofPcS':_0x23a0e5(0x20e),'zUwgf':_0x23a0e5(0x1a1),'tIfej':'Continue\x20anyway','BzTAq':_0x23a0e5(0x20b),'JHQPm':function(_0x27b5f3,_0x3d1ebc){return _0x27b5f3(_0x3d1ebc);},'PPijp':function(_0x27606d,_0x3ee415,_0xcaa737){return _0x27606d(_0x3ee415,_0xcaa737);},'HwNQz':function(_0x596952,_0x47eb59,_0x2069b5){return _0x596952(_0x47eb59,_0x2069b5);},'zGIBK':_0x23a0e5(0x1b6),'HGpDo':'browser_auth','eIDiD':_0x23a0e5(0x1dd),'vezid':'\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','oEbsz':_0x23a0e5(0x1b8),'JyIUg':_0x23a0e5(0x182),'vlKxv':function(_0x33db16,_0x44b801){return _0x33db16>_0x44b801;},'zZSxc':function(_0x5402b1,_0x156039){return _0x5402b1>_0x156039;},'ETcoj':function(_0x5c9214,_0x27a811){return _0x5c9214||_0x27a811;},'YjxOd':_0x23a0e5(0x1e5),'bDVuA':function(_0x431acd,_0x22683d){return _0x431acd(_0x22683d);},'uHSav':'Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','ZpJeb':function(_0x583bc7,_0x1591e5,_0x136415){return _0x583bc7(_0x1591e5,_0x136415);},'WVKZl':function(_0x7181e7,_0x393780,_0x2c2bcc){return _0x7181e7(_0x393780,_0x2c2bcc);},'JMTOX':'.enc','ssGYI':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','zfWir':'settings.json','VNLte':function(_0x1f4128,_0x52ff78,_0x46c475){return _0x1f4128(_0x52ff78,_0x46c475);},'xUICp':function(_0x5ce891,_0x30db21){return _0x5ce891===_0x30db21;},'QHeRk':function(_0x4f2c17,_0x5957d6,_0x5b2e24){return _0x4f2c17(_0x5957d6,_0x5b2e24);},'KIcGe':function(_0xb55c66,_0x1db19b,_0x4f4260){return _0xb55c66(_0x1db19b,_0x4f4260);},'MdtPK':function(_0xbf99d,_0x319bdc){return _0xbf99d(_0x319bdc);},'eqwqX':_0x23a0e5(0x1f7),'dpLXo':_0x23a0e5(0x1ab),'mIbQE':function(_0x3b076e,_0x1bf311,_0x525bed){return _0x3b076e(_0x1bf311,_0x525bed);}},_0x5d044e=_0x492aaa['ci']??![],_0x5135ab=_0x5d044e?'ci':_0x28d35d[_0x23a0e5(0x1a8)],_0x5a145d=_0x492aaa['scope']===_0x28d35d[_0x23a0e5(0x1f9)]?getRangerHomeDir():_0x28d35d['roqsm'](getRangerDir),_0x4e3a5e=_0x28d35d['IOhTP'](join,_0x5a145d,_0x5135ab,_0x2dced6),_0x3c9a6d={};if(_0x492aaa[_0x23a0e5(0x195)])for(const _0x3c0d00 of _0x492aaa[_0x23a0e5(0x195)]){const _0x3a5234=_0x3c0d00['indexOf'](':');if(_0x3a5234===-0x1)throw new Error(_0x23a0e5(0x183)+_0x3c0d00+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x46bafb=_0x3c0d00['slice'](0x0,_0x3a5234)[_0x23a0e5(0x1ff)](),_0x4e9ab7=_0x3c0d00['slice'](_0x3a5234+0x1)[_0x23a0e5(0x1ff)]();_0x3c9a6d[_0x46bafb]=_0x4e9ab7;}const _0x471b1a=join(_0x5a145d,_0x5135ab);if(_0x492aaa['cdpEndpoint']!==undefined&&_0x28d35d['ZRMSP'](_0x492aaa[_0x23a0e5(0x19e)][_0x23a0e5(0x1ff)](),''))throw new Error(_0x28d35d[_0x23a0e5(0x1c5)]);if(_0x492aaa[_0x23a0e5(0x19e)]&&_0x492aaa[_0x23a0e5(0x1d1)])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(_0x492aaa['cdpEndpoint']&&_0x492aaa['ci'])throw new Error('--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.');const _0x2d7900=_0x28d35d[_0x23a0e5(0x1a7)](Boolean,_0x492aaa[_0x23a0e5(0x19e)]),_0x3e4a14=!_0x492aaa[_0x23a0e5(0x1d8)]&&!_0x2d7900,_0x2b629d=process['stdin'][_0x23a0e5(0x210)]&&process['stdout']['isTTY'];if(!_0x2b629d&&!_0x492aaa['url']&&!_0x2d7900)throw new Error('Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000');if(!_0x5d044e&&!_0x492aaa[_0x23a0e5(0x1d8)]&&!_0x2d7900&&_0x492aaa[_0x23a0e5(0x1d1)]){const _0x4331a8=await _0x28d35d['JUcUW'](tryAutoRouteCloudProfile,_0x2dced6,_0x492aaa['url'],_0x492aaa,_0x2b629d,_0x526fad);if(_0x4331a8)return;}const _0x2e89ca=findExistingEnv(_0x2dced6,{'rangerDir':_0x5a145d});let _0x10296e=null;if(_0x2e89ca){if(!_0x2b629d)_0x10296e=_0x2e89ca;else{if(_0x28d35d['ZRMSP'](_0x2e89ca[_0x23a0e5(0x1be)],_0x5135ab)){const {overwrite:_0x2427da}=await _0x3acde3[_0x23a0e5(0x1ed)]([{'type':_0x28d35d['daHwy'],'name':_0x28d35d[_0x23a0e5(0x194)],'message':'Profile\x20\x22'+_0x2dced6+_0x23a0e5(0x188),'default':![]}]);if(!_0x2427da){console['log']('Aborted.');return;}_0x10296e=_0x2e89ca;}else{const _0x14659b=_0x28d35d['JzTFY'](_0x2e89ca[_0x23a0e5(0x1be)],'legacy')?_0x28d35d[_0x23a0e5(0x202)]:_0x2e89ca[_0x23a0e5(0x1be)];console['error'](_0x23a0e5(0x1c8)+_0x2dced6+'\x22\x20already\x20exists\x20in\x20'+_0x14659b+':\x20'+_0x2e89ca[_0x23a0e5(0x206)]),console[_0x23a0e5(0x1a9)](_0x23a0e5(0x186)+_0x5135ab+_0x23a0e5(0x1db));const {shouldReplace:_0x2322d0}=await _0x3acde3['prompt']([{'type':_0x28d35d[_0x23a0e5(0x1ca)],'name':_0x28d35d['MwJwz'],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x5135ab+'?','default':![]}]);if(!_0x2322d0){console[_0x23a0e5(0x212)]('Aborted.');return;}_0x10296e=_0x2e89ca;}}}_0x526fad?.['trackPhaseStart'](_0x28d35d['OatCp']);let _0x179e1b='';if(_0x2d7900)console[_0x23a0e5(0x212)](_0x23a0e5(0x1ea)),console[_0x23a0e5(0x212)]('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x492aaa['cdpEndpoint']),console[_0x23a0e5(0x212)](_0x23a0e5(0x1f3));else{if(_0x492aaa['url']){_0x179e1b=_0x492aaa[_0x23a0e5(0x1d1)];const _0xf5f85e=await _0x28d35d[_0x23a0e5(0x1a7)](checkUrlReachability,_0x179e1b);if(!_0xf5f85e['ok']&&!_0x492aaa[_0x23a0e5(0x1cc)])throw new Error(_0x23a0e5(0x1b0)+_0x179e1b+':\x20'+_0xf5f85e[_0x23a0e5(0x1a9)]+_0x23a0e5(0x1bf));!_0xf5f85e['ok']&&_0x492aaa[_0x23a0e5(0x1cc)]&&console[_0x23a0e5(0x212)]('⚠\x20Could\x20not\x20reach\x20'+_0x179e1b+':\x20'+_0xf5f85e[_0x23a0e5(0x1a9)]+'\x20(continuing\x20with\x20--force)');}else{console[_0x23a0e5(0x212)](_0x28d35d[_0x23a0e5(0x1bb)]),console['log'](_0x28d35d[_0x23a0e5(0x18c)]),console[_0x23a0e5(0x212)](_0x28d35d[_0x23a0e5(0x1aa)]);let _0x4aced3=![];while(!![]){const _0x388a71=await _0x3acde3['prompt']([{'type':_0x28d35d[_0x23a0e5(0x1b7)],'name':_0x23a0e5(0x189),'message':_0x4aced3?_0x28d35d[_0x23a0e5(0x1de)]:_0x23a0e5(0x216),'default':_0x28d35d[_0x23a0e5(0x18d)](_0x179e1b,_0x28d35d[_0x23a0e5(0x1c3)])}]);_0x179e1b=_0x388a71[_0x23a0e5(0x189)];const _0x4cf228=await checkUrlReachability(_0x179e1b);if(_0x4cf228['ok'])break;const _0x4286e8=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x179e1b),_0x3880fb=_0x4cf228[_0x23a0e5(0x1b3)]&&!_0x4286e8,_0x55e211=_0x3880fb?'http://'+_0x179e1b:null;_0x4aced3=!![],console['log'](_0x23a0e5(0x213)+_0x179e1b+':\x20'+_0x4cf228['error']);_0x55e211&&console['log'](_0x23a0e5(0x1b9)+_0x55e211+'?');const {action:_0x10b49e}=await _0x3acde3['prompt']([{'type':_0x23a0e5(0x207),'name':_0x23a0e5(0x1fc),'message':_0x23a0e5(0x1d2),'choices':[..._0x55e211?[{'name':_0x23a0e5(0x1c1)+_0x55e211,'value':_0x28d35d[_0x23a0e5(0x18b)]}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x28d35d[_0x23a0e5(0x1f0)]},{'name':_0x28d35d['tIfej'],'value':_0x28d35d['BzTAq']}]}]);if(_0x10b49e===_0x28d35d[_0x23a0e5(0x18b)]&&_0x55e211){_0x179e1b=_0x55e211;const _0x171e8f=await _0x28d35d[_0x23a0e5(0x1a7)](checkUrlReachability,_0x179e1b);if(_0x171e8f['ok'])break;console[_0x23a0e5(0x212)](_0x23a0e5(0x1b5)+_0x179e1b+':\x20'+_0x171e8f['error']);}else{if(_0x10b49e===_0x23a0e5(0x20b))break;}}}}_0x526fad?.['trackPhaseEnd'](_0x28d35d['OatCp']);const _0x381ead={};if(_0x10296e){const _0x150337=await _0x28d35d[_0x23a0e5(0x19a)](loadSettings,_0x2dced6);Object[_0x23a0e5(0x1b4)](_0x381ead,_0x150337['setupHeaders']);}Object['assign'](_0x381ead,_0x3c9a6d),await _0x28d35d[_0x23a0e5(0x1fd)](mkdir,_0x471b1a,{'recursive':!![]});const _0x2ed386=await _0x28d35d[_0x23a0e5(0x19a)](mkdtemp,_0x28d35d[_0x23a0e5(0x211)](join,_0x471b1a,'.tmp-'+_0x2dced6+'-')),_0x54ebaf=join(_0x2ed386,_0x28d35d['zGIBK']),_0x56d425=Boolean(_0x179e1b)&&/^https:\/\/localhost(:\d+)?/i[_0x23a0e5(0x1cb)](_0x179e1b);try{if(_0x3e4a14){_0x526fad?.[_0x23a0e5(0x19f)](_0x28d35d[_0x23a0e5(0x204)]),console['log']('\x0a📋\x20Authentication\x20Setup'),console['log'](_0x28d35d[_0x23a0e5(0x1f2)]),console['log']('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x2b629d?(console['log'](_0x28d35d[_0x23a0e5(0x20d)]),console['log'](_0x28d35d['oEbsz'])):console[_0x23a0e5(0x212)]('');await new Promise(_0x3e1d6a=>setTimeout(_0x3e1d6a,0xbb8));const _0xd1931e=[];_0x492aaa['safeMode']&&_0xd1931e[_0x23a0e5(0x1c2)](_0x28d35d[_0x23a0e5(0x1f8)]);const _0x148f21=_0x492aaa['allowInsecureLocalhost']||_0x56d425;_0x148f21&&_0xd1931e['push']('--allow-insecure-localhost');const _0x43e396=await chromium[_0x23a0e5(0x1e6)]({'headless':![],..._0x28d35d['vlKxv'](_0xd1931e['length'],0x0)?{'args':_0xd1931e}:{}});try{const _0x4c3558=_0x28d35d[_0x23a0e5(0x1e0)](Object['keys'](_0x381ead)['length'],0x0),_0x531b3d={'ignoreHTTPSErrors':!![]};_0x4c3558&&(_0x531b3d['extraHTTPHeaders']=_0x381ead);const _0x50dfe2=await _0x43e396[_0x23a0e5(0x1ac)](_0x531b3d);await _0x28d35d['JHQPm'](addProfileSetupBanner,_0x50dfe2);const _0x55fc4e=await _0x50dfe2[_0x23a0e5(0x190)]();await _0x55fc4e['goto'](_0x28d35d[_0x23a0e5(0x1a0)](_0x179e1b,_0x23a0e5(0x1d6)));let _0x271ba6=![];await new Promise(_0x4ead24=>{const _0x35053c=_0x23a0e5;_0x55fc4e['on'](_0x35053c(0x20a),async()=>{const _0x4650f7=_0x35053c;try{console['log'](_0x4650f7(0x205)),await _0x50dfe2['storageState']({'path':_0x54ebaf}),_0x271ba6=!![];}catch{}_0x28d35d[_0x4650f7(0x1ce)](_0x4ead24);});});if(!_0x271ba6){console[_0x23a0e5(0x212)](_0x23a0e5(0x1d5));!_0x492aaa['safeMode']&&(console[_0x23a0e5(0x212)](_0x28d35d['YjxOd']),console['log']('You\x20can\x20try\x20again\x20with\x20one\x20of:'),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x2dced6+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x23a0e5(0x212)]('\x20\x20ranger\x20profile\x20add\x20'+_0x2dced6+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x23a0e5(0x1f5));}}finally{await _0x43e396[_0x23a0e5(0x20a)]()[_0x23a0e5(0x200)](()=>{});}if(_0x5d044e){const _0x3e9922=await readFile(_0x54ebaf,'utf-8'),_0x16ea73=await _0x28d35d['roqsm'](getToken);if(!_0x16ea73){console['error'](_0x23a0e5(0x1fa)),await _0x28d35d['bDVuA'](unlink,_0x54ebaf)[_0x23a0e5(0x200)](()=>{});throw new Error(_0x28d35d[_0x23a0e5(0x1c4)]);}else{const _0x28d89a=_0x28d35d['ZpJeb'](encrypt,_0x3e9922,_0x16ea73);await _0x28d35d['WVKZl'](writeFile,_0x54ebaf+_0x28d35d['JMTOX'],_0x28d89a),await unlink(_0x54ebaf),console[_0x23a0e5(0x212)](_0x23a0e5(0x18f)+_0x54ebaf+'.enc'),console[_0x23a0e5(0x212)](_0x28d35d[_0x23a0e5(0x185)]),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log']('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x54ebaf);_0x526fad?.[_0x23a0e5(0x1e1)]('browser_auth');}_0x526fad?.[_0x23a0e5(0x19f)](_0x23a0e5(0x1ab));const _0x390e30={};_0x179e1b&&(_0x390e30[_0x23a0e5(0x189)]=_0x179e1b);_0x492aaa[_0x23a0e5(0x19e)]&&(_0x390e30[_0x23a0e5(0x19e)]=_0x492aaa['cdpEndpoint'],_0x390e30['isElectron']=!![]);(_0x492aaa[_0x23a0e5(0x1ad)]||_0x56d425)&&(_0x390e30['allowInsecureLocalhost']=!![]);_0x492aaa[_0x23a0e5(0x1eb)]&&(_0x390e30[_0x23a0e5(0x1eb)]=!![]);Object['keys'](_0x381ead)[_0x23a0e5(0x1d7)]>0x0&&(_0x390e30[_0x23a0e5(0x1a4)]=_0x381ead);await _0x28d35d['HwNQz'](writeFile,_0x28d35d[_0x23a0e5(0x196)](join,_0x2ed386,_0x28d35d['zfWir']),JSON['stringify'](_0x390e30,null,0x2)),console[_0x23a0e5(0x212)]('✓\x20Created\x20settings:\x20'+_0x28d35d['VNLte'](join,_0x4e3a5e,_0x28d35d[_0x23a0e5(0x1d3)]));if(_0x28d35d[_0x23a0e5(0x1ec)](_0x10296e?.[_0x23a0e5(0x1be)],_0x5135ab)){const _0x321618=_0x10296e[_0x23a0e5(0x206)]+_0x23a0e5(0x1af)+Date['now']();await _0x28d35d[_0x23a0e5(0x1e9)](rename,_0x10296e['path'],_0x321618);try{await _0x28d35d[_0x23a0e5(0x201)](rename,_0x2ed386,_0x4e3a5e);}catch(_0x11548f){await rename(_0x321618,_0x10296e[_0x23a0e5(0x206)]);throw _0x11548f;}try{await _0x28d35d[_0x23a0e5(0x201)](rm,_0x321618,{'recursive':!![]});}catch{console['log'](_0x23a0e5(0x217)+_0x321618);}}else{await rename(_0x2ed386,_0x4e3a5e);if(_0x10296e)try{await rm(_0x10296e[_0x23a0e5(0x206)],{'recursive':!![]}),console[_0x23a0e5(0x212)](_0x23a0e5(0x1cf)+_0x10296e['path']);}catch{console[_0x23a0e5(0x212)](_0x23a0e5(0x214)+_0x10296e['path']);}}try{await _0x28d35d['MdtPK'](writeActiveProfileName,_0x2dced6),console['log'](_0x23a0e5(0x191)+_0x2dced6);}catch{console[_0x23a0e5(0x212)](_0x28d35d[_0x23a0e5(0x1fb)]);}_0x526fad?.[_0x23a0e5(0x1e1)](_0x28d35d[_0x23a0e5(0x198)]),console['log'](_0x23a0e5(0x184)+_0x2dced6+'\x22\x20configured');}catch(_0xd55ef7){await _0x28d35d[_0x23a0e5(0x197)](rm,_0x2ed386,{'recursive':!![],'force':!![]});throw _0xd55ef7;}}
|
|
1
|
+
(function(_0x581fe7,_0x696521){const _0x3849b8=_0x21f5,_0x2e2a20=_0x581fe7();while(!![]){try{const _0x468d4b=-parseInt(_0x3849b8(0x145))/0x1+parseInt(_0x3849b8(0x128))/0x2*(parseInt(_0x3849b8(0x1a7))/0x3)+parseInt(_0x3849b8(0x173))/0x4*(-parseInt(_0x3849b8(0x157))/0x5)+-parseInt(_0x3849b8(0x13f))/0x6*(parseInt(_0x3849b8(0x1ad))/0x7)+-parseInt(_0x3849b8(0x166))/0x8*(-parseInt(_0x3849b8(0x172))/0x9)+-parseInt(_0x3849b8(0x12d))/0xa*(-parseInt(_0x3849b8(0x1b4))/0xb)+parseInt(_0x3849b8(0x140))/0xc*(parseInt(_0x3849b8(0x12a))/0xd);if(_0x468d4b===_0x696521)break;else _0x2e2a20['push'](_0x2e2a20['shift']());}catch(_0x52d22e){_0x2e2a20['push'](_0x2e2a20['shift']());}}}(_0x511f,0xb7804));import{mkdir,writeFile,readFile,readdir,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';function _0x511f(){const _0x41d664=['isTTY','saveToCloud','keys','\x20\x20Next:\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--profile\x20','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','profile.add.autoRouteSkipped','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','zLPfT','RxwYR','log','546TLllEV','12PphWwg','path','iQdEO','\x20would\x20shadow\x20the\x20existing\x20profile.','finally','367261hpzgqN','You\x20can\x20try\x20again\x20with\x20one\x20of:','Aborted.','Enter\x20a\x20different\x20URL','http://localhost:3000','input','wdwSB','QPufW','safeMode','dZNna','tkIcF','isProtocolError','signal','slice','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','dMMAc','abort','1790qcpSZT','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','QvkdX','setupHeader','EWkvv','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','off','fUrII','test','about:blank','use_suggestion','local','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','cdpEndpoint','80024DqvXyr','join','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','KANEQ','utf-8','\x0a📋\x20Authentication\x20Setup','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','root\x20(.ranger/)','Khocr','\x22\x20configured','EXxHd','hfrEd','954tBKUaC','16532wbsmzj','OGBdd','environments','owYrX','Saving\x20authentication\x20state...','Invalid\x20--setup-header\x20format:\x20\x22','oIRXk','auth.json','.tmp-','BNCsq','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','newContext','CKdAf','kayHf','\x20\x20ranger\x20profile\x20add\x20','oPPGL','env','length','now','browser_auth','\x22\x20already\x20exists.\x20Overwrite?','⚠\x20Could\x20not\x20reach\x20','vukMo','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','SIGINT','XMgdW','confirm','message','\x20\x20Did\x20you\x20mean\x20','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','stdout','origin','includes','\x22\x20already\x20exists\x20in\x20','ZXzMn','\x0a🌐\x20Profile\x20Setup\x0a','storageState','no_auth_config','\x27\x20to\x20the\x20cloud?','once','eOAwR','catch','allowInsecureLocalhost','upODT','push','trackPhaseEnd','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','shouldReplace','close','baseUrl','launch','cXYGG','72SxlCHu','zphxL','iAKOu','status','skipAuth','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','42798VgyKcn','prompt','elvAA','trim','qIqnq','retry','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','31196GjOjUy','stringify','error','\x0a\x20\x20(domains:\x20','ySgFJ','NODE_TLS_REJECT_UNAUTHORIZED','force','aVimf','mEXvw','RzGXZ','fetch\x20failed','Rfitf','url',')\x0a\x20\x20Save\x20\x27','TypeError','user_declined','setupHeaders','37342AxVOKJ','SYbfk','12666095BtVEJn','\x0a⚠️\x20\x20Profile\x20\x22','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','2370aPQaYX','http://','location','cVsAC','BbPlv','iPpCx','goto','\x20\x20Set\x20active\x20profile:\x20'];_0x511f=function(){return _0x41d664;};return _0x511f();}import{existsSync}from'fs';import _0x5cff3e from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';import{fetchAuthConfig,createCloudProfile,ApiError}from'./utils/cloudProfile.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';function _0x21f5(_0x455420,_0x21b2a0){_0x455420=_0x455420-0x121;const _0x511f50=_0x511f();let _0x21f5bf=_0x511f50[_0x455420];return _0x21f5bf;}import{isPathGitTracked}from'./utils/gitTracked.js';async function checkUrlReachability(_0x312952){const _0x2932d6=_0x21f5,_0x5eca62={'wMhTL':'manual','oPPGL':function(_0x596a5a,_0x5e92d9,_0x14d672){return _0x596a5a(_0x5e92d9,_0x14d672);},'Ownib':function(_0x4028b2,_0x36a14c){return _0x4028b2<_0x36a14c;}};try{const _0x5a2d2d=new AbortController(),_0x1571ec=setTimeout(()=>_0x5a2d2d[_0x2932d6(0x156)](),0x1388),_0x2188eb={'method':'HEAD','signal':_0x5a2d2d[_0x2932d6(0x151)],'redirect':_0x5eca62['wMhTL']};/^https:\/\/localhost(:\d+)?/i['test'](_0x312952)&&(process[_0x2932d6(0x183)][_0x2932d6(0x1b9)]='0');const _0x278bb5=await _0x5eca62[_0x2932d6(0x182)](fetch,_0x312952,_0x2188eb);delete process[_0x2932d6(0x183)]['NODE_TLS_REJECT_UNAUTHORIZED'],clearTimeout(_0x1571ec);if(_0x5eca62['Ownib'](_0x278bb5['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x278bb5[_0x2932d6(0x1aa)]};}catch(_0x4171ae){delete process['env'][_0x2932d6(0x1b9)];const _0x4b7030=_0x4171ae,_0x495dc3=_0x4b7030['message']||String(_0x4171ae),_0x3fef92=_0x495dc3[_0x2932d6(0x193)]('Invalid\x20URL')||_0x4b7030['name']===_0x2932d6(0x125)||_0x495dc3['includes'](_0x2932d6(0x121));return{'ok':![],'error':_0x495dc3,'isProtocolError':_0x3fef92};}}async function sweepOrphanLocalProfile(_0x525d75,_0xb948db,_0x320d13){const _0x2b656d=_0x21f5,_0x48c07f={'wdwSB':function(_0x11f37b,_0x4a3e55,_0x3a1048){return _0x11f37b(_0x4a3e55,_0x3a1048);},'cXYGG':function(_0x39dda1,_0x334904){return _0x39dda1(_0x334904);}},_0x591365=join(_0xb948db,_0x2b656d(0x162)),_0x49fd3b=join(_0x591365,_0x525d75);existsSync(_0x49fd3b)&&(_0x320d13&&await isPathGitTracked(_0x49fd3b)?console[_0x2b656d(0x13e)](_0x2b656d(0x154)+_0x49fd3b+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await _0x48c07f[_0x2b656d(0x14b)](rm,_0x49fd3b,{'recursive':!![],'force':!![]}),console[_0x2b656d(0x13e)](_0x2b656d(0x158)+_0x49fd3b)));if(_0x48c07f[_0x2b656d(0x1a6)](existsSync,_0x591365)){let _0x26e374=[];try{_0x26e374=await _0x48c07f['cXYGG'](readdir,_0x591365);}catch{return;}const _0x4c29c1='.tmp-'+_0x525d75+'-';for(const _0x223558 of _0x26e374){if(!_0x223558['startsWith'](_0x4c29c1))continue;const _0xd4e48f=join(_0x591365,_0x223558);await rm(_0xd4e48f,{'recursive':!![],'force':!![]}),console['log'](_0x2b656d(0x158)+_0xd4e48f);}}}async function tryAutoRouteCloudProfile(_0x4fd8f0,_0xd66dd7,_0x3259bd,_0x19e0cc,_0x43f74f){const _0x547090=_0x21f5,_0x2fb39b={'ZXzMn':function(_0x2b5c8d,_0x48ab5d){return _0x2b5c8d===_0x48ab5d;},'KANEQ':function(_0x72c516){return _0x72c516();},'dZNna':_0x547090(0x13a),'qIqnq':'No\x20auth\x20env\x20matches\x20this\x20URL.\x20Creating\x20local\x20profile.','mwEFO':'no_match','XMgdW':'confirm','RzGXZ':_0x547090(0x136),'tkIcF':function(_0xb7581e,_0x5be027,_0x1c85c4,_0x27fad5){return _0xb7581e(_0x5be027,_0x1c85c4,_0x27fad5);},'aVimf':function(_0x4462f1,_0x5a8470){return _0x4462f1===_0x5a8470;},'elvAA':function(_0x3a0412,_0x119c66){return _0x3a0412 instanceof _0x119c66;},'SZggs':function(_0x17025f,_0x2d05a6){return _0x17025f(_0x2d05a6);},'YqxjQ':function(_0x1ec179,_0x3db05f){return _0x1ec179+_0x3db05f;},'QvkdX':function(_0x7c7a19){return _0x7c7a19();}};let _0x3ffbd3;try{_0x3ffbd3=await _0x2fb39b[_0x547090(0x169)](fetchAuthConfig);}catch{return _0x43f74f?.[_0x547090(0x1a0)]('profile.add.autoRouteSkipped',{'reason':'no_auth_config','profileName':_0x4fd8f0}),![];}if(!_0x3ffbd3||!_0x3ffbd3['environments']||Object[_0x547090(0x137)](_0x3ffbd3['environments'])['length']===0x0)return _0x43f74f?.[_0x547090(0x1a0)](_0x2fb39b[_0x547090(0x14e)],{'reason':_0x547090(0x198),'profileName':_0x4fd8f0}),![];const _0x1e08d7=matchAuthEnvironment(_0xd66dd7,_0x3ffbd3);if(!_0x1e08d7)return console[_0x547090(0x13e)](_0x2fb39b[_0x547090(0x1b1)]),_0x43f74f?.[_0x547090(0x1a0)](_0x547090(0x13a),{'reason':_0x2fb39b['mwEFO'],'profileName':_0x4fd8f0}),![];const _0x2155ad=_0x3ffbd3[_0x547090(0x175)][_0x1e08d7],_0xccde33=_0x2155ad?.['domains']??[];if(_0x19e0cc&&!_0x3259bd['yes']){const {saveToCloud:_0x5d31e3}=await _0x5cff3e['prompt']([{'type':_0x2fb39b[_0x547090(0x18c)],'name':_0x2fb39b[_0x547090(0x1bd)],'message':'Found\x20auth\x20environment\x20\x27'+_0x1e08d7+'\x27\x20matching\x20'+_0xd66dd7+_0x547090(0x1b7)+_0xccde33[_0x547090(0x167)](',\x20')+_0x547090(0x124)+_0x4fd8f0+_0x547090(0x199),'default':!![]}]);if(!_0x5d31e3)return _0x43f74f?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x547090(0x126),'profileName':_0x4fd8f0}),![];}const _0x44fbde=_0xccde33['some'](_0x4fa2ee=>{const _0x15b653=_0x547090;try{return _0x2fb39b[_0x15b653(0x195)](new URL(_0x4fa2ee)[_0x15b653(0x192)],new URL(_0xd66dd7)['origin']);}catch{return![];}}),_0x4b50fb={};!_0x44fbde&&(_0x4b50fb[_0x547090(0x1a4)]=_0xd66dd7);try{await _0x2fb39b[_0x547090(0x14f)](createCloudProfile,_0x4fd8f0,_0x1e08d7,{'settings':_0x4b50fb});}catch(_0x2e6806){if(_0x2e6806 instanceof ApiError&&_0x2fb39b[_0x547090(0x1bb)](_0x2e6806[_0x547090(0x1aa)],0x199)){console['error']('\x0a\x20\x20A\x20cloud\x20profile\x20named\x20\x22'+_0x4fd8f0+'\x22\x20already\x20exists.\x20Choose\x20a\x20different\x20name\x20or\x20delete\x20the\x20existing\x20profile\x20first.');throw _0x2e6806;}return console[_0x547090(0x13e)]('\x20\x20Could\x20not\x20reach\x20Ranger\x20API\x20to\x20create\x20a\x20cloud\x20profile\x20('+(_0x2fb39b['elvAA'](_0x2e6806,Error)?_0x2e6806[_0x547090(0x18e)]:_0x2fb39b['SZggs'](String,_0x2e6806))+').\x20Falling\x20back\x20to\x20local\x20profile.'),_0x43f74f?.[_0x547090(0x1a0)](_0x2fb39b['dZNna'],{'reason':'no_auth_config','profileName':_0x4fd8f0}),![];}console[_0x547090(0x13e)](_0x2fb39b['YqxjQ']('✓\x20Cloud\x20profile\x20\x27'+_0x4fd8f0+'\x27\x20created,\x20linked\x20to\x20env\x20\x27'+_0x1e08d7+'\x27.\x0a',_0x547090(0x138)+_0x4fd8f0));try{await _0x2fb39b[_0x547090(0x14f)](sweepOrphanLocalProfile,_0x4fd8f0,_0x2fb39b[_0x547090(0x159)](getRangerHomeDir),![]);const _0x47d551=getRangerDir();_0x47d551!==getRangerHomeDir()&&await sweepOrphanLocalProfile(_0x4fd8f0,_0x47d551,!![]);}catch(_0x51fb9c){console[_0x547090(0x13e)]('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x2fb39b[_0x547090(0x1af)](_0x51fb9c,Error)?_0x51fb9c[_0x547090(0x18e)]:String(_0x51fb9c))+').');}return _0x43f74f?.[_0x547090(0x1a0)]('profile.add.autoRouted',{'envKey':_0x1e08d7,'profileName':_0x4fd8f0}),!![];}export async function addEnv(_0x1d0c00,_0x4e861b={},_0x59a55d){const _0x1261e9=_0x21f5,_0x3fcabb={'RxwYR':function(_0x17e31,_0x595c9b,_0x4c2b6a){return _0x17e31(_0x595c9b,_0x4c2b6a);},'flSKa':'close','BNCsq':function(_0x3724e7){return _0x3724e7();},'eOAwR':function(_0x219560,_0x1ba91c,_0x2697ce,_0x59f81c){return _0x219560(_0x1ba91c,_0x2697ce,_0x59f81c);},'nKeht':function(_0x2572f6,_0xa8598){return _0x2572f6===_0xa8598;},'kyxtc':function(_0x543d6f,_0x24ce46){return _0x543d6f+_0x24ce46;},'GyvsV':_0x1261e9(0x15c),'NyNIa':_0x1261e9(0x12c),'QPufW':'--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.','hfrEd':function(_0x57ca4e,_0x20347f){return _0x57ca4e(_0x20347f);},'BbPlv':'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','iQdEO':function(_0x53fad5,_0x43c7ee,_0x115749){return _0x53fad5(_0x43c7ee,_0x115749);},'CKdAf':_0x1261e9(0x18d),'EXxHd':'overwrite','ZFVit':'Aborted.','SYbfk':function(_0x1959fc,_0x1ba881){return _0x1959fc===_0x1ba881;},'KugnA':_0x1261e9(0x16d),'cVsAC':'url_setup','DQYIo':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','zYxzJ':'baseUrl','wzoRi':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','znQuK':'list','EWkvv':'action','iPpCx':_0x1261e9(0x161),'dMMAc':_0x1261e9(0x148),'OGBdd':'continue','NJVhr':function(_0x195a12,_0x3c3221,_0x20850e){return _0x195a12(_0x3c3221,_0x20850e);},'ySgFJ':_0x1261e9(0x17a),'zphxL':_0x1261e9(0x186),'upODT':_0x1261e9(0x16b),'oIRXk':'\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','dJcTf':'--allow-insecure-localhost','SwNHS':function(_0x1b4474,_0x591e20){return _0x1b4474>_0x591e20;},'VaKLZ':function(_0x30bbbf,_0x988e3c){return _0x30bbbf||_0x988e3c;},'yhTJX':'\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','vBNfs':_0x1261e9(0x146),'fUrII':'Browser\x20closed\x20before\x20authentication\x20was\x20saved.','kayHf':_0x1261e9(0x16a),'owYrX':_0x1261e9(0x1ac),'Khocr':function(_0x32c87e,_0x54432b){return _0x32c87e(_0x54432b);},'mEXvw':'Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','vukMo':'.enc','gsZnl':_0x1261e9(0x1b3),'sRylC':'config_write','PKzMc':function(_0x3915cf,_0x31f51e,_0xac9282){return _0x3915cf(_0x31f51e,_0xac9282);},'Rfitf':'settings.json','GpBVR':function(_0x31cce0,_0xc0af2f){return _0x31cce0===_0xc0af2f;},'IOVCw':function(_0x2a5e8e,_0x32e4da,_0x48d896){return _0x2a5e8e(_0x32e4da,_0x48d896);},'iAKOu':function(_0x17b3ea,_0x44d623,_0x512d6e){return _0x17b3ea(_0x44d623,_0x512d6e);},'SIySV':_0x1261e9(0x17d),'zLPfT':function(_0x3ace7d,_0x9d81e8,_0x388d84){return _0x3ace7d(_0x9d81e8,_0x388d84);}},_0xd2adb0=_0x4e861b['ci']??![],_0x117b06=_0xd2adb0?'ci':_0x1261e9(0x162),_0x4dc7d7=_0x4e861b['scope']==='user'?getRangerHomeDir():_0x3fcabb['BNCsq'](getRangerDir),_0x13cd06=_0x3fcabb[_0x1261e9(0x19b)](join,_0x4dc7d7,_0x117b06,_0x1d0c00),_0x321fc4={};if(_0x4e861b['setupHeader'])for(const _0x52c449 of _0x4e861b[_0x1261e9(0x15a)]){const _0x3c2218=_0x52c449['indexOf'](':');if(_0x3fcabb['nKeht'](_0x3c2218,-0x1))throw new Error(_0x1261e9(0x178)+_0x52c449+_0x1261e9(0x1a1));const _0x5d7444=_0x52c449[_0x1261e9(0x152)](0x0,_0x3c2218)[_0x1261e9(0x1b0)](),_0x1c3bce=_0x52c449['slice'](_0x3fcabb['kyxtc'](_0x3c2218,0x1))[_0x1261e9(0x1b0)]();_0x321fc4[_0x5d7444]=_0x1c3bce;}const _0x4edf11=join(_0x4dc7d7,_0x117b06);if(_0x4e861b['cdpEndpoint']!==undefined&&_0x4e861b['cdpEndpoint']['trim']()==='')throw new Error(_0x3fcabb['GyvsV']);if(_0x4e861b[_0x1261e9(0x165)]&&_0x4e861b[_0x1261e9(0x123)])throw new Error(_0x3fcabb['NyNIa']);if(_0x4e861b['cdpEndpoint']&&_0x4e861b['ci'])throw new Error(_0x3fcabb[_0x1261e9(0x14c)]);const _0x2077c4=_0x3fcabb[_0x1261e9(0x171)](Boolean,_0x4e861b['cdpEndpoint']),_0x3b536b=!_0x4e861b[_0x1261e9(0x1ab)]&&!_0x2077c4,_0xd63831=process['stdin']['isTTY']&&process[_0x1261e9(0x191)][_0x1261e9(0x135)];if(!_0xd63831&&!_0x4e861b[_0x1261e9(0x123)]&&!_0x2077c4)throw new Error(_0x3fcabb[_0x1261e9(0x131)]);if(!_0xd2adb0&&!_0x4e861b['skipAuth']&&!_0x2077c4&&_0x4e861b['url']){const _0x1afc16=await tryAutoRouteCloudProfile(_0x1d0c00,_0x4e861b[_0x1261e9(0x123)],_0x4e861b,_0xd63831,_0x59a55d);if(_0x1afc16)return;}const _0x54a16e=_0x3fcabb[_0x1261e9(0x142)](findExistingEnv,_0x1d0c00,{'rangerDir':_0x4dc7d7});let _0x17907d=null;if(_0x54a16e){if(!_0xd63831)_0x17907d=_0x54a16e;else{if(_0x54a16e['location']===_0x117b06){const {overwrite:_0x2417c3}=await _0x5cff3e[_0x1261e9(0x1ae)]([{'type':_0x3fcabb[_0x1261e9(0x17f)],'name':_0x3fcabb[_0x1261e9(0x170)],'message':'Profile\x20\x22'+_0x1d0c00+_0x1261e9(0x187),'default':![]}]);if(!_0x2417c3){console['log'](_0x3fcabb['ZFVit']);return;}_0x17907d=_0x54a16e;}else{const _0x30e16a=_0x3fcabb[_0x1261e9(0x129)](_0x54a16e[_0x1261e9(0x12f)],'legacy')?_0x3fcabb['KugnA']:_0x54a16e['location'];console[_0x1261e9(0x1b6)](_0x1261e9(0x12b)+_0x1d0c00+_0x1261e9(0x194)+_0x30e16a+':\x20'+_0x54a16e[_0x1261e9(0x141)]),console[_0x1261e9(0x1b6)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0x117b06+_0x1261e9(0x143));const {shouldReplace:_0x5d84c7}=await _0x5cff3e['prompt']([{'type':_0x1261e9(0x18d),'name':_0x1261e9(0x1a2),'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x117b06+'?','default':![]}]);if(!_0x5d84c7){console['log'](_0x1261e9(0x147));return;}_0x17907d=_0x54a16e;}}}_0x59a55d?.['trackPhaseStart'](_0x3fcabb[_0x1261e9(0x130)]);let _0x2695ff='';if(_0x2077c4)console['log'](_0x3fcabb['DQYIo']),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x4e861b[_0x1261e9(0x165)]),console['log'](_0x1261e9(0x139));else{if(_0x4e861b['url']){_0x2695ff=_0x4e861b[_0x1261e9(0x123)];const _0x1aa1d0=await checkUrlReachability(_0x2695ff);if(!_0x1aa1d0['ok']&&!_0x4e861b[_0x1261e9(0x1ba)])throw new Error('Could\x20not\x20reach\x20'+_0x2695ff+':\x20'+_0x1aa1d0['error']+_0x1261e9(0x153));!_0x1aa1d0['ok']&&_0x4e861b['force']&&console['log'](_0x1261e9(0x188)+_0x2695ff+':\x20'+_0x1aa1d0[_0x1261e9(0x1b6)]+'\x20(continuing\x20with\x20--force)');}else{console['log'](_0x1261e9(0x196)),console[_0x1261e9(0x13e)](_0x1261e9(0x164)),console['log']('\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a');let _0x3b4ca7=![];while(!![]){const _0x58712e=await _0x5cff3e['prompt']([{'type':_0x1261e9(0x14a),'name':_0x3fcabb['zYxzJ'],'message':_0x3b4ca7?_0x1261e9(0x163):_0x3fcabb['wzoRi'],'default':_0x2695ff||_0x1261e9(0x149)}]);_0x2695ff=_0x58712e[_0x1261e9(0x1a4)];const _0xca2f75=await checkUrlReachability(_0x2695ff);if(_0xca2f75['ok'])break;const _0x55c561=/^[a-zA-Z][\w+.-]*:\/\//[_0x1261e9(0x15f)](_0x2695ff),_0x19bbfe=_0xca2f75[_0x1261e9(0x150)]&&!_0x55c561,_0x367007=_0x19bbfe?_0x1261e9(0x12e)+_0x2695ff:null;_0x3b4ca7=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x2695ff+':\x20'+_0xca2f75[_0x1261e9(0x1b6)]);_0x367007&&console['log'](_0x1261e9(0x18f)+_0x367007+'?');const {action:_0x46c5e4}=await _0x5cff3e['prompt']([{'type':_0x3fcabb['znQuK'],'name':_0x3fcabb[_0x1261e9(0x15b)],'message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x367007?[{'name':'Use\x20'+_0x367007,'value':_0x3fcabb[_0x1261e9(0x132)]}]:[],{'name':_0x3fcabb[_0x1261e9(0x155)],'value':_0x1261e9(0x1b2)},{'name':'Continue\x20anyway','value':_0x3fcabb[_0x1261e9(0x174)]}]}]);if(_0x3fcabb['nKeht'](_0x46c5e4,_0x3fcabb[_0x1261e9(0x132)])&&_0x367007){_0x2695ff=_0x367007;const _0xda6b07=await _0x3fcabb['hfrEd'](checkUrlReachability,_0x2695ff);if(_0xda6b07['ok'])break;console[_0x1261e9(0x13e)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x2695ff+':\x20'+_0xda6b07['error']);}else{if(_0x46c5e4==='continue')break;}}}}_0x59a55d?.['trackPhaseEnd']('url_setup');const _0x552090={};if(_0x17907d){const _0x42c12f=await loadSettings(_0x1d0c00);Object['assign'](_0x552090,_0x42c12f['setupHeaders']);}Object['assign'](_0x552090,_0x321fc4),await mkdir(_0x4edf11,{'recursive':!![]});try{const _0x3906c8=await _0x3fcabb['hfrEd'](readdir,_0x4edf11),_0x55c987=_0x1261e9(0x17b)+_0x1d0c00+'-';for(const _0x42cdfa of _0x3906c8){_0x42cdfa['startsWith'](_0x55c987)&&await _0x3fcabb['NJVhr'](rm,_0x3fcabb[_0x1261e9(0x142)](join,_0x4edf11,_0x42cdfa),{'recursive':!![],'force':!![]});}}catch{}const _0x4e845d=await mkdtemp(join(_0x4edf11,_0x1261e9(0x17b)+_0x1d0c00+'-')),_0x306f06=join(_0x4e845d,_0x3fcabb[_0x1261e9(0x1b8)]),_0x45197c=()=>{const _0x1ac7c7=_0x1261e9;_0x3fcabb['RxwYR'](rm,_0x4e845d,{'recursive':!![],'force':!![]})[_0x1ac7c7(0x19c)](()=>{})[_0x1ac7c7(0x144)](()=>{process['exit'](0x82);});};process[_0x1261e9(0x19a)](_0x1261e9(0x18b),_0x45197c);const _0x54c705=_0x3fcabb['hfrEd'](Boolean,_0x2695ff)&&/^https:\/\/localhost(:\d+)?/i[_0x1261e9(0x15f)](_0x2695ff);try{if(_0x3b536b){_0x59a55d?.['trackPhaseStart'](_0x3fcabb['zphxL']),console[_0x1261e9(0x13e)](_0x3fcabb[_0x1261e9(0x19e)]),console['log']('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console['log'](_0x3fcabb[_0x1261e9(0x179)]);!_0xd63831?(console[_0x1261e9(0x13e)]('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log']('\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a')):console['log']('');await new Promise(_0x20bec6=>setTimeout(_0x20bec6,0xbb8));const _0x55ef4e=[];_0x4e861b['safeMode']&&_0x55ef4e[_0x1261e9(0x19f)]('--disable-features=WebBluetooth');const _0x502788=_0x4e861b[_0x1261e9(0x19d)]||_0x54c705;_0x502788&&_0x55ef4e[_0x1261e9(0x19f)](_0x3fcabb['dJcTf']);const _0x27477c=await chromium[_0x1261e9(0x1a5)]({'headless':![],..._0x3fcabb['SwNHS'](_0x55ef4e[_0x1261e9(0x184)],0x0)?{'args':_0x55ef4e}:{}});try{const _0x4ee97c=Object['keys'](_0x552090)[_0x1261e9(0x184)]>0x0,_0x2a6fa0={'ignoreHTTPSErrors':!![]};_0x4ee97c&&(_0x2a6fa0['extraHTTPHeaders']=_0x552090);const _0x201e5a=await _0x27477c[_0x1261e9(0x17e)](_0x2a6fa0);await addProfileSetupBanner(_0x201e5a);const _0x173da1=await _0x201e5a['newPage']();await _0x173da1[_0x1261e9(0x133)](_0x3fcabb['VaKLZ'](_0x2695ff,_0x1261e9(0x160)));let _0x359ef7=![];await new Promise(_0xc26126=>{const _0x45349b=_0x1261e9,_0x466642={'aVwoc':_0x45349b(0x177)};_0x173da1['on'](_0x3fcabb['flSKa'],async()=>{const _0x571dbd=_0x45349b;try{console[_0x571dbd(0x13e)](_0x466642['aVwoc']),await _0x201e5a[_0x571dbd(0x197)]({'path':_0x306f06}),_0x359ef7=!![];}catch{}_0xc26126();});});if(!_0x359ef7){console['log'](_0x3fcabb['yhTJX']);!_0x4e861b[_0x1261e9(0x14d)]&&(console[_0x1261e9(0x13e)]('This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a'),console[_0x1261e9(0x13e)](_0x3fcabb['vBNfs']),console['log'](_0x1261e9(0x181)+_0x1d0c00+_0x1261e9(0x190)),console[_0x1261e9(0x13e)]('\x20\x20ranger\x20profile\x20add\x20'+_0x1d0c00+_0x1261e9(0x16c)));throw new Error(_0x3fcabb[_0x1261e9(0x15e)]);}}finally{await _0x27477c[_0x1261e9(0x1a3)]()['catch'](()=>{});}if(_0xd2adb0){const _0x2d3f51=await _0x3fcabb[_0x1261e9(0x13d)](readFile,_0x306f06,_0x3fcabb[_0x1261e9(0x180)]),_0x56fe1f=await _0x3fcabb[_0x1261e9(0x17c)](getToken);if(!_0x56fe1f){console[_0x1261e9(0x1b6)](_0x3fcabb[_0x1261e9(0x176)]),await _0x3fcabb['Khocr'](unlink,_0x306f06)[_0x1261e9(0x19c)](()=>{});throw new Error(_0x3fcabb[_0x1261e9(0x1bc)]);}else{const _0x766aff=encrypt(_0x2d3f51,_0x56fe1f);await _0x3fcabb['iQdEO'](writeFile,_0x306f06+_0x3fcabb[_0x1261e9(0x189)],_0x766aff),await _0x3fcabb['hfrEd'](unlink,_0x306f06),console[_0x1261e9(0x13e)](_0x1261e9(0x13b)+_0x306f06+'.enc'),console[_0x1261e9(0x13e)](_0x1261e9(0x168)),console[_0x1261e9(0x13e)](_0x3fcabb['gsZnl']);}}else console['log']('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x306f06);_0x59a55d?.[_0x1261e9(0x1a0)](_0x3fcabb[_0x1261e9(0x1a8)]);}_0x59a55d?.['trackPhaseStart'](_0x3fcabb['sRylC']);const _0x169aab={};_0x2695ff&&(_0x169aab['baseUrl']=_0x2695ff);_0x4e861b['cdpEndpoint']&&(_0x169aab['cdpEndpoint']=_0x4e861b['cdpEndpoint'],_0x169aab['isElectron']=!![]);(_0x4e861b[_0x1261e9(0x19d)]||_0x54c705)&&(_0x169aab['allowInsecureLocalhost']=!![]);_0x4e861b[_0x1261e9(0x14d)]&&(_0x169aab[_0x1261e9(0x14d)]=!![]);Object[_0x1261e9(0x137)](_0x552090)['length']>0x0&&(_0x169aab[_0x1261e9(0x127)]=_0x552090);await _0x3fcabb['PKzMc'](writeFile,join(_0x4e845d,_0x3fcabb[_0x1261e9(0x122)]),JSON[_0x1261e9(0x1b5)](_0x169aab,null,0x2)),console['log']('✓\x20Created\x20settings:\x20'+join(_0x13cd06,_0x3fcabb['Rfitf']));if(_0x3fcabb['GpBVR'](_0x17907d?.['location'],_0x117b06)){const _0x470d46=_0x17907d['path']+'.backup-'+Date[_0x1261e9(0x185)]();await rename(_0x17907d[_0x1261e9(0x141)],_0x470d46);try{await rename(_0x4e845d,_0x13cd06);}catch(_0x182a05){await _0x3fcabb['IOVCw'](rename,_0x470d46,_0x17907d['path']);throw _0x182a05;}try{await _0x3fcabb[_0x1261e9(0x13d)](rm,_0x470d46,{'recursive':!![]});}catch{console[_0x1261e9(0x13e)](_0x1261e9(0x18a)+_0x470d46);}}else{await _0x3fcabb[_0x1261e9(0x1a9)](rename,_0x4e845d,_0x13cd06);if(_0x17907d)try{await rm(_0x17907d[_0x1261e9(0x141)],{'recursive':!![]}),console[_0x1261e9(0x13e)]('Removed\x20existing\x20profile\x20at\x20'+_0x17907d['path']);}catch{console[_0x1261e9(0x13e)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x17907d[_0x1261e9(0x141)]);}}try{await _0x3fcabb[_0x1261e9(0x16e)](writeActiveProfileName,_0x1d0c00),console['log'](_0x1261e9(0x134)+_0x1d0c00);}catch{console['log'](_0x3fcabb['SIySV']);}_0x59a55d?.['trackPhaseEnd'](_0x3fcabb['sRylC']),console['log']('\x0a\x20\x20Profile\x20\x22'+_0x1d0c00+_0x1261e9(0x16f));}catch(_0x53231e){await _0x3fcabb[_0x1261e9(0x13c)](rm,_0x4e845d,{'recursive':!![],'force':!![]});throw _0x53231e;}finally{process[_0x1261e9(0x15d)](_0x1261e9(0x18b),_0x45197c);}}
|