@ranger-testing/ranger-cli 2.4.6 โ 2.5.0
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/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/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/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.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/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.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/commands/verifyInBrowser.js +1 -1
- package/build/skills/ranger/SKILL.md +38 -41
- package/build/skills/ranger/create.md +5 -13
- package/build/skills/ranger/feedback.md +3 -3
- package/build/skills/ranger/start.md +13 -13
- package/build/skills/ranger/verify.md +15 -28
- package/package.json +5 -3
- package/scripts/postinstall.js +4 -1
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x27cb84=_0x49b2;(function(_0x4b694e,_0xf1ae9b){const _0x2cd13b=_0x49b2,_0x3e7b7e=_0x4b694e();while(!![]){try{const _0x220605=-parseInt(_0x2cd13b(0x16a))/0x1+-parseInt(_0x2cd13b(0x125))/0x2+-parseInt(_0x2cd13b(0x13f))/0x3*(parseInt(_0x2cd13b(0x226))/0x4)+parseInt(_0x2cd13b(0x1b0))/0x5+-parseInt(_0x2cd13b(0x159))/0x6+-parseInt(_0x2cd13b(0x15d))/0x7*(-parseInt(_0x2cd13b(0xfe))/0x8)+-parseInt(_0x2cd13b(0x1c8))/0x9*(-parseInt(_0x2cd13b(0x116))/0xa);if(_0x220605===_0xf1ae9b)break;else _0x3e7b7e['push'](_0x3e7b7e['shift']());}catch(_0x3344b3){_0x3e7b7e['push'](_0x3e7b7e['shift']());}}}(_0x53bf,0x27be9));import _0x4836a6 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x4fe98f=_0x49b2,_0x18f298={'BagJO':function(_0x4991c5,_0x2c9c08){return _0x4991c5(_0x2c9c08);},'TkHGd':function(_0x2f3011,_0x3d36fa){return _0x2f3011(_0x3d36fa);},'dVTee':'.ranger','aZfIY':_0x4fe98f(0x1f0)};let _0x2f37ca=process['cwd']();const _0x2414c1=_0x18f298[_0x4fe98f(0x118)](parse,_0x2f37ca)['root'];while(_0x2f37ca!==_0x2414c1){if(_0x18f298['TkHGd'](existsSync,join(_0x2f37ca,_0x18f298['dVTee']))||existsSync(join(_0x2f37ca,_0x18f298[_0x4fe98f(0x222)])))return _0x2f37ca;_0x2f37ca=dirname(_0x2f37ca);}return process[_0x4fe98f(0x18f)]();}function _0x49b2(_0x3d59a3,_0x1f915b){_0x3d59a3=_0x3d59a3-0xf0;const _0x53bf7e=_0x53bf();let _0x49b241=_0x53bf7e[_0x3d59a3];return _0x49b241;}function _0x53bf(){const _0x28747d=['Skip\x20Chromium\x20browser\x20check\x20and\x20installation','setup-ci','Include\x20soft-deleted\x20feature\x20reviews','update','offset','kFvnT','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','get-feedback\x20[id]','IDPtw','ranger\x20profile\x20ls','WIVqB','eRuOt','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','khcNt','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','uUBqM','998016fLMwpe','xAdYX','hwzxO','scenario','7kMbnYG','zdInX','feature\x20restore','RFMSW','\x20INCOMPLETE','allow-insecure-localhost','jMJnB','icAvW','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','DYJey','skillup','ranger\x20config\x20set','name','271783IssJfg','ZITrO','resume\x20[id]','ZcnIF','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','profile\x20config\x20set','oVJXY','env-name','limit','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','repeat','KYHSd','Profile\x20name','ranger\x20env\x20ls','feature\x20get-feedback','TPwLX','feature\x20delete','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','evaluation','ranger\x20go','ranger\x20feature\x20get-feedback','json','Unknown\x20error','tfTuD','uLjTA','exit','IIoPG','value','bKAMw','YCwXt','feature','sFIqy','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','knAFU','JJIjP','log','List\x20all\x20feature\x20reviews','cwd','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','trzLt','fhESK','skip-auth','resume','skip-chromium','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','dxbPu','profile-name','blocked','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','TgUWR','edit-scenario','epilogue','ehAgw','Name\x20of\x20the\x20profile','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','dctvf','message','include-deleted','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','\x20FAILED','rcCDK','Manage\x20profiles','EKFbD','You\x20must\x20specify\x20a\x20config\x20subcommand','RYZts','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','giCNA','encrypt-auth\x20<profile>','vJpcK','eGmUb','1044195oYSGQY','aNEHa','Ftlto','OvPOO','qRchG','YypoJ','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','unset\x20<profile>\x20<key>','Number\x20of\x20feature\x20reviews\x20to\x20skip','xrHCU','MAlIo','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','KYozz','XvrWZ','rOstR','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','yeGcA','print-access-token','jNdBq','cdp-endpoint','gWdUX','url','twzzF','boolean','34956KJNpCQ','UFuUF','vGala','list','add-scenario\x20<description>','strictCommands','Feature\x20review\x20name','nlNLG','force','ZGJfB','NZVXy','CHmfA','ranger\x20config\x20unset','mRYws','start-path','setup-header','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','current-branch','delete\x20[id]','length','aCbSl','New\x20scenario\x20description','show\x20[id]','--checklist','cnBHM','includes','.\x20[','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','HSKhF','PwWkK','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','VixvY','item','parse','\x20is\x20now\x20','config','gmIqg','xscpd','vDnke','qWcLX','.env','JUhDr','positional','verify-feature','qvvKe','description','scope','delete','DrHSd','MvoLn','RVVWm','JFtOB','some','pTMmZ','sfggy','Install\x20scope\x20for\x20skills','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','alias','disable','error','trackCommandError','Scenario\x20index\x20(1-based)','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','Config\x20value','config\x20set','lpyTH','ZBIjP','report\x20[id]','claude','version','rDTgp','CbzZt','QhQDq','auth','kyZrE','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','status','opencode','incomplete','Optional\x20feature\x20ID','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','ranger\x20profile\x20update','report','use\x20<env-name>','yijxH','pAvEY','dYENW','ucYhu','slice','checklist','aZfIY','Unknown\x20command','restore\x20<id>','NXLJw','8vBlmqq','use','ranger\x20resume','IAGdy','faKcx','EwPsW','RpKEb','sfgUV','LUycd','MTPiM','profile\x20update','htieP','GypqQ','base-url','vmvyL','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','ranger\x20config\x20list','string','scriptName','ranger\x20profile\x20config\x20get','argv','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','aFhtP','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','ValYB','profile\x20use','mKrGe','project','create','ranger\x20setup','\x20PARTIAL','tJOCw','restore','feature\x20add-checklist-item','debug-address-comments','get\x20<profile>\x20<key>','Initialize\x20Ranger\x20in\x20your\x20project','token','fRtvT','YHGDn','command','JIDyv','verified','start\x20[token]','1123880bnFHFU','Summary:\x20','nfKqu','user','HjmcL','Feature\x20review\x20ID\x20to\x20restore','OABsl','oPenu','EncVE','usage','Install\x20Ranger\x20skills','WBZpK','pzHkL','ranger\x20profile\x20use','SFlwh','CnaEm','lntXF','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','array','ZHDRf','jclJN','exclude-scenario','QpoGK','qNsFX','1150lQFqrS','list\x20<profile>','BagJO','notes','BPwFD','JKicO','tjayt','ranger\x20show','session-id','Skip\x20Chromium\x20browser\x20installation','gcnMK','profile','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','profile\x20ls','DKIWN','153160iQpENN','NjKCO','key','start','Feature\x20review\x20ID','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','partial','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','List\x20all\x20config\x20for\x20a\x20profile','env','demandCommand','yAjBM','Jalxr','aQiYz','APbwS','option','Restore\x20a\x20soft-deleted\x20feature\x20review','number','NfSiD','model','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','config\x20unset','qTuYB','exitCode','task','\x0aIssues:','177738FVDJZI','YOSBf','zDlYR','issues','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','headed','ranger\x20feature\x20list','ranger\x20create','ranger\x20feature\x20show','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'];_0x53bf=function(){return _0x28747d;};return _0x53bf();}_0x4836a6[_0x27cb84(0x1eb)]({'path':join(findProjectRoot(),_0x27cb84(0x1f0))});import _0x337b8c from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{getToken}from'./commands/utils/keychain.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{isByokEnabled}from'./commands/utils/environment.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on']('unhandledRejection',async _0x3d79c0=>{const _0x56e950=_0x27cb84,_0x38d89b={'HMPrA':function(_0x4483ef){return _0x4483ef();}},_0x4c1462=_0x38d89b['HMPrA'](getCurrentCollector);_0x4c1462&&await _0x4c1462[_0x56e950(0x204)](_0x3d79c0),process[_0x56e950(0x13c)]=0x1;});const rawArgs=process['argv'][_0x27cb84(0x220)](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true',PROFILE_CONFIG_HELP='Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20header.X-Test-Mode)\x0a\x20\x20setupHeader.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeader.x-bypass-turnstile)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20setupHeader.x-bypass-turnstile\x20\x27a1b2c3d4...\x27';function warnRenamed(_0x2d1805,_0x5e7804){const _0x35bd30=_0x27cb84;console[_0x35bd30(0x203)]('\x0a'+_0x2d1805+_0x35bd30(0x1ea)+_0x5e7804+'\x0a');}function argUsed(_0x130f2e){const _0x388765=_0x27cb84;return rawArgs[_0x388765(0x1fc)](_0x336c5c=>_0x336c5c===_0x130f2e||_0x336c5c['startsWith'](_0x130f2e+'='));}function warnFlagRenamed(_0x1f46df,_0x241198,_0x14d71e){argUsed(_0x241198)&&warnRenamed(_0x1f46df+'\x20'+_0x241198,_0x1f46df+'\x20'+_0x14d71e);}async function runGoCommand(_0x467d5f,_0x3dd303=![]){const _0x219b3b=_0x27cb84,_0x103a52={'YSIHy':function(_0x2e3f78,_0x1312fe,_0x418921){return _0x2e3f78(_0x1312fe,_0x418921);},'RFMSW':_0x219b3b(0x17d),'WIVqB':function(_0x3c4fad,_0x2c8b3d,_0x3a770f,_0x422647){return _0x3c4fad(_0x2c8b3d,_0x3a770f,_0x422647);},'khcNt':'--env','ttXUE':'--profile','bKAMw':'--task','uuKSb':function(_0x301d27,_0x2f7e02){return _0x301d27(_0x2f7e02);},'YCwXt':function(_0x2e15fa,_0xe139a1){return _0x2e15fa===_0xe139a1;},'OABsl':_0x219b3b(0xfc),'hQimb':function(_0x2a7ac6,_0x3b14e7){return _0x2a7ac6===_0x3b14e7;},'ilVlV':_0x219b3b(0x216),'GypqQ':_0x219b3b(0x161),'MAlIo':_0x219b3b(0x12b),'CnaEm':'blocked','ptRSh':_0x219b3b(0x1a5),'vmvyL':_0x219b3b(0x13e)};_0x3dd303&&_0x103a52['YSIHy'](warnRenamed,'ranger\x20verify-feature',_0x103a52[_0x219b3b(0x160)]);_0x103a52[_0x219b3b(0x153)](warnFlagRenamed,'ranger\x20go',_0x103a52[_0x219b3b(0x156)],_0x103a52['ttXUE']),warnFlagRenamed(_0x103a52[_0x219b3b(0x160)],_0x103a52[_0x219b3b(0x186)],'--notes'),warnFlagRenamed(_0x219b3b(0x17d),'--item','--scenario');const _0x1e31bd=await loadRangerConfig(),_0x44739f=isByokEnabled(),_0x1454fa=_0x467d5f['model'],_0x585fd5=_0x1e31bd[_0x219b3b(0x138)],_0x53fd6f=await _0x103a52['uuKSb'](verifyFeature,{'featureId':_0x467d5f[_0x219b3b(0x188)],'profile':_0x467d5f['profile']??_0x467d5f['env'],'notes':_0x467d5f[_0x219b3b(0x119)]??_0x467d5f[_0x219b3b(0x13d)],'scenario':_0x467d5f['scenario']??_0x467d5f[_0x219b3b(0x1e8)],'startPath':_0x467d5f[_0x219b3b(0x1d6)],'debugOutcome':_0x467d5f['debug-outcome'],'debugAddressComments':_0x467d5f[_0x219b3b(0xf4)],'headed':_0x467d5f['headed'],'byokEnabled':_0x44739f,'flagVerifyModel':_0x1454fa,'configVerifyModel':_0x585fd5});console['log']('\x0a'+'='[_0x219b3b(0x174)](0x3c)),console[_0x219b3b(0x18d)](_0x103a52['YCwXt'](_0x53fd6f[_0x219b3b(0x17c)],_0x103a52[_0x219b3b(0x104)])?'\x20VERIFIED':_0x103a52['hQimb'](_0x53fd6f['evaluation'],_0x103a52['ilVlV'])?_0x103a52[_0x219b3b(0x232)]:_0x53fd6f[_0x219b3b(0x17c)]===_0x103a52[_0x219b3b(0x1ba)]?_0x219b3b(0xf0):_0x103a52[_0x219b3b(0x187)](_0x53fd6f['evaluation'],_0x103a52[_0x219b3b(0x10d)])?'\x20BLOCKED':_0x103a52['ptRSh']),console['log']('='[_0x219b3b(0x174)](0x3c)),console[_0x219b3b(0x18d)](_0x219b3b(0xff)+_0x53fd6f['summary']),console['log']('Evaluation:\x20'+_0x53fd6f[_0x219b3b(0x17c)]),console['log']('Reason:\x20'+_0x53fd6f['evaluationReason']),_0x53fd6f[_0x219b3b(0x142)]?.[_0x219b3b(0x1db)]&&(console[_0x219b3b(0x18d)](_0x103a52[_0x219b3b(0x234)]),_0x53fd6f[_0x219b3b(0x142)]['forEach']((_0x3452fb,_0x2d4829)=>{const _0x4ac369=_0x219b3b;console[_0x4ac369(0x18d)]('\x0a'+(_0x2d4829+0x1)+_0x4ac369(0x1e2)+_0x3452fb['severity']+']\x20'+_0x3452fb[_0x4ac369(0x1f5)]);})),process[_0x219b3b(0x183)](_0x53fd6f['evaluation']===_0x103a52['OABsl']?0x0:0x1);}_0x337b8c(process[_0x27cb84(0x23a)]['slice'](0x2))[_0x27cb84(0x238)]('ranger')['usage'](TOP_LEVEL_HELP)[_0x27cb84(0x20d)](getCurrentVersion())[_0x27cb84(0xfa)]('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x663625=>{const _0x215920=_0x27cb84,_0x46e0f9={'knAFU':'name','BPwFD':_0x215920(0x1ce),'vnzKQ':'description','VXrOn':'Feature\x20review\x20description'};return _0x663625[_0x215920(0x1f2)](_0x46e0f9[_0x215920(0x18b)],{'type':_0x215920(0x237),'description':_0x46e0f9[_0x215920(0x11a)],'demandOption':!![]})[_0x215920(0x134)](_0x46e0f9['vnzKQ'],{'type':_0x215920(0x237),'alias':'d','description':_0x46e0f9['VXrOn']})[_0x215920(0x134)]('scenario',{'type':_0x215920(0x110),'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option']('checklist',{'type':_0x215920(0x110),'hidden':!![]});},async _0x596409=>{const _0x580caa=_0x27cb84,_0x334bbb={'XkeBQ':function(_0x501298,_0xc5387,_0x4bb423,_0x164449){return _0x501298(_0xc5387,_0x4bb423,_0x164449);},'hAgDS':_0x580caa(0x146),'LqUla':_0x580caa(0x1df),'HqcDt':_0x580caa(0x242)};_0x334bbb['XkeBQ'](warnFlagRenamed,_0x334bbb['hAgDS'],_0x334bbb['LqUla'],'--scenario');const _0x4174e4=_0x596409['scenario']||_0x596409['checklist'];await withTelemetry(_0x334bbb['HqcDt'],()=>featureCreate(_0x596409['name'],{'description':_0x596409[_0x580caa(0x1f5)],'scenarios':_0x4174e4}));})['command']('list',_0x27cb84(0x18e),_0x59951b=>{const _0x68899c=_0x27cb84,_0x5422f3={'ipqBZ':_0x68899c(0x190),'tfTuD':'offset','yijxH':'number','zaGXB':_0x68899c(0x1b8)};return _0x59951b['option'](_0x68899c(0x1d9),{'type':'boolean','description':_0x5422f3['ipqBZ']})['option'](_0x68899c(0x172),{'type':_0x68899c(0x136),'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option'](_0x5422f3[_0x68899c(0x181)],{'type':_0x5422f3[_0x68899c(0x21c)],'alias':'o','description':_0x5422f3['zaGXB'],'default':0x0})['option'](_0x68899c(0x1a3),{'type':_0x68899c(0x1c7),'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x958e46=>{const _0x274599=_0x27cb84,_0xc2bde={'vEFkA':function(_0xb9e16a,_0x133d8d,_0xef4437){return _0xb9e16a(_0x133d8d,_0xef4437);},'JFtOB':'list'};await _0xc2bde['vEFkA'](withTelemetry,_0xc2bde[_0x274599(0x1fb)],()=>featureList({'currentBranch':_0x958e46['current-branch'],'limit':_0x958e46['limit'],'offset':_0x958e46[_0x274599(0x14d)],'includeDeleted':_0x958e46[_0x274599(0x1a3)]}));})[_0x27cb84(0xfa)]('show\x20[id]','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x43878e=>{const _0x5edb9e=_0x27cb84;return _0x43878e[_0x5edb9e(0x1f2)]('id',{'type':_0x5edb9e(0x237),'description':'Feature\x20review\x20ID'});},async _0x1aa3a0=>{const _0x1315ef=_0x27cb84,_0x1ae800={'trzLt':'show'};await withTelemetry(_0x1ae800[_0x1315ef(0x191)],()=>featureShow(_0x1aa3a0['id']));})[_0x27cb84(0xfa)](_0x27cb84(0x16c),_0x27cb84(0x235),_0x5a17c1=>{const _0x33217b=_0x27cb84;return _0x5a17c1['positional']('id',{'type':_0x33217b(0x237),'description':_0x33217b(0x1a0)});},async _0xb9258d=>{const _0x334371=_0x27cb84,_0x2cbef5={'Kvhvl':_0x334371(0x194)};await withTelemetry(_0x2cbef5['Kvhvl'],()=>featureResume(_0xb9258d['id']));})[_0x27cb84(0xfa)](_0x27cb84(0x1cc),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x536312=>{const _0x163447=_0x27cb84,_0x39f08b={'Jalxr':_0x163447(0x1f5),'JIDyv':_0x163447(0x237),'KYHSd':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x536312[_0x163447(0x1f2)](_0x39f08b[_0x163447(0x131)],{'type':_0x39f08b[_0x163447(0xfb)],'description':'Scenario\x20description','demandOption':!![]})['option']('id',{'type':_0x39f08b['JIDyv'],'description':_0x39f08b[_0x163447(0x175)]});},async _0x419765=>{await withTelemetry('add-scenario',()=>featureAddScenario(_0x419765['description'],_0x419765['id']));})[_0x27cb84(0xfa)]('edit-scenario\x20<description>',_0x27cb84(0x1bb),_0x3d61cc=>{const _0x23e3ec=_0x27cb84,_0x48c77a={'pzHkL':'description','BzAcH':_0x23e3ec(0x237),'gmIqg':_0x23e3ec(0x136),'tNLUv':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x3d61cc[_0x23e3ec(0x1f2)](_0x48c77a[_0x23e3ec(0x10a)],{'type':_0x48c77a['BzAcH'],'description':_0x23e3ec(0x1dd),'demandOption':!![]})[_0x23e3ec(0x134)](_0x23e3ec(0x15c),{'type':_0x48c77a[_0x23e3ec(0x1ec)],'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})[_0x23e3ec(0x134)]('id',{'type':'string','description':_0x48c77a['tNLUv']});},async _0x29e1be=>{const _0xb25b32=_0x27cb84,_0x5036ea={'rqPZr':function(_0xe909e6,_0x25c31b,_0x5ea38f){return _0xe909e6(_0x25c31b,_0x5ea38f);},'sZiXe':_0xb25b32(0x19c)};await _0x5036ea['rqPZr'](withTelemetry,_0x5036ea['sZiXe'],()=>featureEditScenario(_0x29e1be[_0xb25b32(0x1f5)],{'id':_0x29e1be['id'],'scenario':_0x29e1be['scenario']}));})[_0x27cb84(0xfa)](_0x27cb84(0x20b),_0x27cb84(0x12c),_0x4cbc33=>{const _0x3fe8d9=_0x27cb84,_0x16a10c={'ZcnIF':'string','hcoGj':'Feature\x20review\x20ID','ENKPG':_0x3fe8d9(0x113),'TPwLX':'json'};return _0x4cbc33[_0x3fe8d9(0x1f2)]('id',{'type':_0x16a10c[_0x3fe8d9(0x16d)],'description':_0x16a10c['hcoGj']})['option'](_0x16a10c['ENKPG'],{'type':_0x3fe8d9(0x110),'description':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'})[_0x3fe8d9(0x134)](_0x16a10c[_0x3fe8d9(0x179)],{'type':'boolean','description':_0x3fe8d9(0x165),'default':![]});},async _0x34f372=>{const _0x3e67ca=_0x27cb84,_0x2492ad={'tjayt':_0x3e67ca(0x113),'twzzF':function(_0x19d0b2,_0x28aca2,_0xc5d903){return _0x19d0b2(_0x28aca2,_0xc5d903);}},_0x18ba81=_0x34f372[_0x2492ad[_0x3e67ca(0x11c)]],_0x19e6a0=_0x18ba81?_0x18ba81['map'](_0x126bd6=>Number(_0x126bd6)):undefined;await _0x2492ad[_0x3e67ca(0x1c6)](withTelemetry,_0x3e67ca(0x21a),()=>featureReportPrDescription(_0x34f372['id'],{'excludeScenarios':_0x19e6a0,'json':_0x34f372[_0x3e67ca(0x17f)]}));})['command']('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x1fad26=>{const _0x47989d=_0x27cb84,_0x3565a7={'jMJnB':_0x47989d(0x16e)};return _0x1fad26['positional']('id',{'type':_0x47989d(0x237),'description':_0x3565a7[_0x47989d(0x163)]});},async _0x10246d=>{const _0x3179f6=_0x27cb84,_0x4993d4={'HIRgk':function(_0x5881ec,_0x1a373c,_0x5c5196){return _0x5881ec(_0x1a373c,_0x5c5196);},'ZGJfB':'get-review'};await _0x4993d4['HIRgk'](withTelemetry,_0x4993d4[_0x3179f6(0x1d1)],()=>featureGetReview(_0x10246d['id']));})[_0x27cb84(0xfa)]('delete\x20[id]',_0x27cb84(0x14f),_0x2c5a7d=>{const _0x2453b9=_0x27cb84,_0x4a052b={'bzdee':'string','BppaV':_0x2453b9(0x129)};return _0x2c5a7d['positional']('id',{'type':_0x4a052b['bzdee'],'description':_0x4a052b['BppaV']});},async _0x2c361e=>{const _0x521f05=_0x27cb84,_0x46606c={'ihOQH':function(_0xdf7db4,_0x44416b,_0x2ccd00){return _0xdf7db4(_0x44416b,_0x2ccd00);}};await _0x46606c['ihOQH'](withTelemetry,_0x521f05(0x1f7),()=>featureDelete(_0x2c361e['id']));})[_0x27cb84(0xfa)]('restore\x20<id>',_0x27cb84(0x135),_0x1c3b9b=>{const _0x113cdd=_0x27cb84,_0x70c7f6={'vDnke':'string'};return _0x1c3b9b[_0x113cdd(0x1f2)]('id',{'type':_0x70c7f6[_0x113cdd(0x1ee)],'description':_0x113cdd(0x103),'demandOption':!![]});},async _0x32a970=>{const _0x4c8bf8=_0x27cb84,_0x68dafd={'CHmfA':function(_0x103ac6,_0x330906,_0x175a62){return _0x103ac6(_0x330906,_0x175a62);}};await _0x68dafd[_0x4c8bf8(0x1d3)](withTelemetry,_0x4c8bf8(0xf2),()=>featureRestore(_0x32a970['id']));})['command']('setup\x20[token]',_0x27cb84(0xf6),_0x4a47de=>{const _0x40539e=_0x27cb84,_0x34ee96={'ywzfj':'boolean','fItUY':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','NfSiD':_0x40539e(0x101),'JNqRh':_0x40539e(0x241),'qijqY':_0x40539e(0x148),'nlNLG':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','iIchE':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','eGmUb':'opencode','ufBnM':_0x40539e(0x162)};return _0x4a47de['positional']('token',{'type':_0x40539e(0x237),'description':_0x40539e(0x143)})['option'](_0x40539e(0x195),{'type':_0x34ee96['ywzfj'],'description':_0x34ee96['fItUY'],'default':![]})['option'](_0x40539e(0x1f6),{'type':'string','choices':[_0x34ee96[_0x40539e(0x137)],_0x34ee96['JNqRh']],'description':_0x34ee96['qijqY']})[_0x40539e(0x134)]('url',{'type':_0x40539e(0x237),'description':_0x34ee96[_0x40539e(0x1cf)]})[_0x40539e(0x134)](_0x40539e(0x1d0),{'type':_0x40539e(0x1c7),'description':_0x34ee96['iIchE'],'default':![]})['option'](_0x34ee96[_0x40539e(0x1af)],{'type':_0x40539e(0x1c7),'description':_0x40539e(0x12a),'default':![]})['option'](_0x34ee96['ufBnM'],{'type':_0x40539e(0x1c7),'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]});},async _0xc67270=>{const _0x5cf445=_0x27cb84;await withTelemetry('start',_0x25ec29=>start(_0xc67270[_0x5cf445(0xf7)],{'skipChromium':_0xc67270['skip-chromium'],'scope':_0xc67270[_0x5cf445(0x1f6)],'url':_0xc67270['url'],'force':_0xc67270[_0x5cf445(0x1d0)],'opencode':_0xc67270[_0x5cf445(0x215)],'allowInsecureLocalhost':_0xc67270[_0x5cf445(0x162)]},_0x25ec29));})[_0x27cb84(0xfa)]('setup-ci\x20<token>',_0x27cb84(0x1b6),_0x1702e5=>{const _0x22f565=_0x27cb84,_0x3d2856={'vOudp':'token','RVVWm':'string','LwJxT':_0x22f565(0x155),'MvoLn':_0x22f565(0x233),'JUhDr':_0x22f565(0x195),'XvrWZ':_0x22f565(0x1c7)};return _0x1702e5['positional'](_0x3d2856['vOudp'],{'type':_0x3d2856[_0x22f565(0x1fa)],'description':'Ranger\x20API\x20token','demandOption':!![]})[_0x22f565(0x134)]('profile',{'type':'string','description':_0x3d2856['LwJxT']})['option'](_0x3d2856[_0x22f565(0x1f9)],{'type':_0x22f565(0x237),'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})[_0x22f565(0x134)](_0x3d2856[_0x22f565(0x1f1)],{'type':_0x3d2856[_0x22f565(0x1bd)],'description':_0x22f565(0x11f),'default':![]});},async _0x45a98a=>{const _0x40001e=_0x27cb84,_0x4bbf00={'HjmcL':function(_0x52825e,_0x41f06e,_0x1ac1ff){return _0x52825e(_0x41f06e,_0x1ac1ff);},'JjtyF':_0x40001e(0x14a)};await _0x4bbf00[_0x40001e(0x102)](withTelemetry,_0x4bbf00['JjtyF'],_0x19b8ea=>setupCi(_0x45a98a['token'],{'profile':_0x45a98a['profile'],'baseUrl':_0x45a98a[_0x40001e(0x233)],'skipChromium':_0x45a98a['skip-chromium']},_0x19b8ea));})[_0x27cb84(0xfa)]('login',_0x27cb84(0x1bf),()=>{},async()=>{const _0x27d05e={'UlUMq':function(_0x38d8bf,_0x142ed1,_0x252790){return _0x38d8bf(_0x142ed1,_0x252790);},'DLUTu':'login'};await _0x27d05e['UlUMq'](withTelemetry,_0x27d05e['DLUTu'],()=>login());})['command'](_0x27cb84(0x167),_0x27cb84(0x108),_0x5809d9=>{const _0x41b09d=_0x27cb84,_0x171e74={'zJFBw':'opencode','wCdam':'boolean','dctvf':'scope','yeGcA':'string','XnYiR':_0x41b09d(0x241),'mRYws':_0x41b09d(0x1ff)};return _0x5809d9[_0x41b09d(0x134)](_0x171e74['zJFBw'],{'type':_0x171e74['wCdam'],'description':'Install\x20skills\x20for\x20OpenCode','default':![]})[_0x41b09d(0x134)](_0x171e74[_0x41b09d(0x1a1)],{'type':_0x171e74[_0x41b09d(0x1c0)],'choices':[_0x41b09d(0x101),_0x171e74['XnYiR']],'description':_0x171e74[_0x41b09d(0x1d5)]});},async _0xeb4e7e=>{const _0x56ffaa=_0x27cb84,_0x3382b5={'oPenu':function(_0x20831c,_0x10dce7){return _0x20831c(_0x10dce7);},'JvgBI':function(_0x396a7d,_0x58d4ac,_0x347b59){return _0x396a7d(_0x58d4ac,_0x347b59);},'ipnzS':_0x56ffaa(0x167)},_0x536d02=_0x3382b5[_0x56ffaa(0x105)](Boolean,_0xeb4e7e['opencode']);await _0x3382b5['JvgBI'](withTelemetry,_0x3382b5['ipnzS'],()=>skillup({'autoInstall':_0xeb4e7e[_0x56ffaa(0x1f6)],'platform':_0x536d02?_0x56ffaa(0x215):_0x56ffaa(0x20c)}));})[_0x27cb84(0xfa)]('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x10306c=_0x27cb84,_0x5d12a2={'jNdBq':function(_0x199261,_0x58508c,_0x576300){return _0x199261(_0x58508c,_0x576300);},'fSghe':'clean'};await _0x5d12a2[_0x10306c(0x1c2)](withTelemetry,_0x5d12a2['fSghe'],()=>clean());})[_0x27cb84(0xfa)](_0x27cb84(0x121),_0x27cb84(0x1a7),_0x526d4f=>{const _0xab5a32=_0x27cb84,_0xb9f718={'YOSBf':_0xab5a32(0x237),'tJOCw':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','WBZpK':_0xab5a32(0x193),'HSKhF':_0xab5a32(0x23d),'nfKqu':'force','LlysI':_0xab5a32(0x1c3),'DvxYw':'allow-insecure-localhost','EUusl':_0xab5a32(0x18a),'gcnMK':_0xab5a32(0x198),'pZheB':_0xab5a32(0x19f),'lwwyT':function(_0x5c04fb,_0x3fce6c,_0xb6ef37){return _0x5c04fb(_0x3fce6c,_0xb6ef37);},'NjKCO':'profile','zdInX':_0xab5a32(0x123),'WAlvs':function(_0x27f295,_0x129e77,_0x2d5271){return _0x27f295(_0x129e77,_0x2d5271);},'fhESK':_0xab5a32(0x230),'gWdUX':_0xab5a32(0x176),'vJpcK':'key','NJHwh':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','eQUMb':function(_0x20b5f7,_0x5d48e0,_0x3a2995){return _0x20b5f7(_0x5d48e0,_0x3a2995);},'oQXxz':_0xab5a32(0x16f),'ugvFT':function(_0x24ebce,_0x54dd16,_0xb7ce5e){return _0x24ebce(_0x54dd16,_0xb7ce5e);},'RpKEb':'Get\x20a\x20config\x20value','IGHzU':_0xab5a32(0x117),'NXLJw':_0xab5a32(0x12d),'ePJWl':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','fgkYF':'use\x20<profile-name>','ZHDRf':'Switch\x20to\x20using\x20a\x20specific\x20profile','xscpd':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','SFlwh':'List\x20all\x20profiles','aQiYz':'Update\x20authentication\x20for\x20an\x20existing\x20profile','ehAgw':'config','rOstR':'Manage\x20profile\x20configuration'};return _0x526d4f[_0xab5a32(0x107)](PROFILE_HELP)[_0xab5a32(0xfa)]('add\x20<profile-name>','Add\x20profile\x20configuration',_0x5d0e2e=>{const _0x11f4e0=_0xab5a32;return _0x5d0e2e['positional'](_0x11f4e0(0x198),{'type':_0xb9f718['YOSBf'],'description':_0x11f4e0(0x206),'demandOption':!![]})['option']('ci',{'type':'boolean','description':_0xb9f718[_0x11f4e0(0xf1)],'default':![]})[_0x11f4e0(0x134)](_0xb9f718[_0x11f4e0(0x109)],{'type':'boolean','description':_0x11f4e0(0x19a),'default':![]})['option']('url',{'type':_0xb9f718['YOSBf'],'description':_0xb9f718[_0x11f4e0(0x1e4)]})['option'](_0xb9f718[_0x11f4e0(0x100)],{'type':_0x11f4e0(0x1c7),'description':_0x11f4e0(0x1ab),'default':![]})['option'](_0xb9f718['LlysI'],{'type':_0xb9f718['YOSBf'],'description':_0x11f4e0(0x1e3)})['option'](_0xb9f718['DvxYw'],{'type':_0x11f4e0(0x1c7),'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]})['option']('safe-mode',{'type':_0x11f4e0(0x1c7),'description':_0x11f4e0(0x213),'default':![]})[_0x11f4e0(0x134)]('setup-header',{'type':_0xb9f718[_0x11f4e0(0x140)],'array':!![],'description':_0xb9f718['EUusl']});},async _0x2576fa=>{const _0x456a99=_0xab5a32;await withTelemetry('profile\x20add',_0x588ddf=>addEnv(_0x2576fa[_0x456a99(0x198)],{'ci':_0x2576fa['ci'],'skipAuth':_0x2576fa[_0x456a99(0x193)],'url':_0x2576fa[_0x456a99(0x1c5)],'force':_0x2576fa[_0x456a99(0x1d0)],'cdpEndpoint':_0x2576fa['cdp-endpoint'],'allowInsecureLocalhost':_0x2576fa[_0x456a99(0x162)],'safeMode':_0x2576fa['safe-mode'],'setupHeader':_0x2576fa[_0x456a99(0x1d7)]},_0x588ddf),{'isElectron':Boolean(_0x2576fa['cdp-endpoint'])});})[_0xab5a32(0xfa)](_0xb9f718['fgkYF'],_0xb9f718[_0xab5a32(0x111)],_0x138206=>{const _0x50c2ef=_0xab5a32;return _0x138206['positional'](_0xb9f718[_0x50c2ef(0x120)],{'type':_0xb9f718['YOSBf'],'description':_0xb9f718['pZheB'],'demandOption':!![]});},async _0x343163=>{const _0x1b6e2d=_0xab5a32;await _0xb9f718['lwwyT'](withTelemetry,_0x1b6e2d(0x23f),()=>useEnv(_0x343163['profile-name']));})['command'](_0xab5a32(0x1ad),_0xb9f718[_0xab5a32(0x1ed)],_0x54516d=>{const _0x1ab46b=_0xab5a32;return _0x54516d['positional'](_0xb9f718[_0x1ab46b(0x126)],{'type':_0x1ab46b(0x237),'description':_0x1ab46b(0x176),'demandOption':!![]});},async _0x20c532=>{const _0x4f176a=_0xab5a32;await _0xb9f718['lwwyT'](withTelemetry,'profile\x20encrypt-auth',()=>authEncrypt(_0x20c532[_0x4f176a(0x121)]));})['command']('ls',_0xb9f718[_0xab5a32(0x10c)],()=>{},async()=>{const _0x1b7045=_0xab5a32;await withTelemetry(_0xb9f718[_0x1b7045(0x15e)],()=>envList());})[_0xab5a32(0xfa)]('update\x20<profile-name>',_0xb9f718[_0xab5a32(0x132)],_0x199387=>{const _0x20c5ec=_0xab5a32;return _0x199387['positional'](_0x20c5ec(0x198),{'type':_0xb9f718[_0x20c5ec(0x140)],'description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]})['option'](_0xb9f718['DvxYw'],{'type':'boolean','description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'});},async _0x107ca0=>{const _0x297cd2=_0xab5a32;await _0xb9f718['WAlvs'](withTelemetry,_0xb9f718[_0x297cd2(0x192)],_0x4736a9=>updateEnv(_0x107ca0[_0x297cd2(0x198)],_0x4736a9,{'allowInsecureLocalhost':_0x107ca0[_0x297cd2(0x162)]}));})[_0xab5a32(0xfa)](_0xb9f718[_0xab5a32(0x19e)],_0xb9f718[_0xab5a32(0x1be)],_0x23f465=>{const _0x8cf8a6=_0xab5a32,_0x451ce0={'nEsRI':_0xb9f718['oQXxz'],'mKrGe':_0xb9f718['NjKCO'],'aCbSl':_0xb9f718[_0x8cf8a6(0x1c4)],'ZBIjP':_0xb9f718[_0x8cf8a6(0x140)],'zrRgO':function(_0x43c723,_0x442872,_0x4432d8){return _0xb9f718['ugvFT'](_0x43c723,_0x442872,_0x4432d8);},'zDlYR':'profile\x20config\x20unset'};return _0x23f465['usage'](PROFILE_CONFIG_HELP)['command']('set\x20<profile>\x20<key>\x20<value>','Set\x20a\x20config\x20value',_0x5680b7=>{const _0x36a05c=_0x8cf8a6;return _0x5680b7[_0x36a05c(0x1f2)]('profile',{'type':_0xb9f718[_0x36a05c(0x140)],'description':_0xb9f718['gWdUX'],'demandOption':!![]})[_0x36a05c(0x1f2)](_0xb9f718[_0x36a05c(0x1ae)],{'type':_0xb9f718['YOSBf'],'description':_0xb9f718['NJHwh'],'demandOption':!![]})['positional']('value',{'type':_0x36a05c(0x237),'description':_0x36a05c(0x207),'demandOption':!![]});},async _0x3a5b3d=>{const _0x47ae8d=_0x8cf8a6;await withTelemetry(_0x451ce0['nEsRI'],()=>configSet(_0x3a5b3d[_0x47ae8d(0x121)],_0x3a5b3d['key'],_0x3a5b3d['value']));})['command'](_0x8cf8a6(0xf5),_0xb9f718[_0x8cf8a6(0x22c)],_0xec97de=>{const _0x2a3739=_0x8cf8a6;return _0xec97de[_0x2a3739(0x1f2)](_0x451ce0[_0x2a3739(0x240)],{'type':'string','description':_0x451ce0[_0x2a3739(0x1dc)],'demandOption':!![]})['positional']('key',{'type':_0x451ce0['ZBIjP'],'description':'Config\x20key','demandOption':!![]});},async _0x2463c2=>{await withTelemetry('profile\x20config\x20get',()=>configGet(_0x2463c2['profile'],_0x2463c2['key']));})[_0x8cf8a6(0xfa)](_0xb9f718['IGHzU'],_0xb9f718[_0x8cf8a6(0x225)],_0x3e611a=>{const _0x45d9f0=_0x8cf8a6;return _0x3e611a['positional'](_0x45d9f0(0x121),{'type':_0xb9f718['YOSBf'],'description':_0x45d9f0(0x176),'demandOption':!![]});},async _0x5c19de=>{await _0xb9f718['eQUMb'](withTelemetry,'profile\x20config\x20list',()=>configList(_0x5c19de['profile']));})[_0x8cf8a6(0xfa)](_0x8cf8a6(0x1b7),'Remove\x20a\x20config\x20value',_0x5351b1=>{const _0x190807=_0x8cf8a6;return _0x5351b1[_0x190807(0x1f2)](_0x451ce0[_0x190807(0x240)],{'type':_0x190807(0x237),'description':_0x190807(0x176),'demandOption':!![]})[_0x190807(0x1f2)](_0x190807(0x127),{'type':_0x451ce0[_0x190807(0x20a)],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x47f23b=>{const _0x3d928e=_0x8cf8a6;await _0x451ce0['zrRgO'](withTelemetry,_0x451ce0[_0x3d928e(0x141)],()=>configUnset(_0x47f23b[_0x3d928e(0x121)],_0x47f23b['key']));})[_0x8cf8a6(0x12f)](0x1,_0xb9f718['ePJWl']);})[_0xab5a32(0x12f)](0x1,'You\x20must\x20specify\x20a\x20profile\x20subcommand');})[_0x27cb84(0xfa)](_0x27cb84(0x214),_0x27cb84(0x200),()=>{},async()=>{const _0x234e59=_0x27cb84,_0x5c09cd={'faKcx':'status'};await withTelemetry(_0x5c09cd[_0x234e59(0x22a)],()=>status());})[_0x27cb84(0xfa)](_0x27cb84(0x14c),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x42ad4e=_0x27cb84,_0x924c86={'PkniM':_0x42ad4e(0x14c)};await withTelemetry(_0x924c86['PkniM'],()=>update());})[_0x27cb84(0xfa)](_0x27cb84(0x1c1),'Print\x20the\x20current\x20CLI\x20access\x20token',()=>{},async()=>{const _0x5b66fb=_0x27cb84,_0x1b23be={'WROSp':function(_0x1ece64){return _0x1ece64();},'fUdFJ':function(_0x43689e,_0x2c56a0,_0x55302b){return _0x43689e(_0x2c56a0,_0x55302b);},'NZVXy':'print-access-token'};await _0x1b23be['fUdFJ'](withTelemetry,_0x1b23be[_0x5b66fb(0x1d2)],async()=>{const _0x573d60=await _0x1b23be['WROSp'](getToken);if(!_0x573d60)throw new Error('No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.');console['log'](_0x573d60);});})['command']('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x2e2cf3=>{const _0x4e9cd8=_0x27cb84,_0x5bb662={'EwPsW':'feature','JKicO':_0x4e9cd8(0x121),'htieP':'string','chomT':_0x4e9cd8(0x17b),'qODaL':'notes','pocxI':_0x4e9cd8(0x15c),'ZRkPk':_0x4e9cd8(0x136),'FWdgc':'boolean','aNEHa':_0x4e9cd8(0x196),'DKIWN':_0x4e9cd8(0x216),'IGiAR':_0x4e9cd8(0x12e)};return _0x2e2cf3['option'](_0x5bb662[_0x4e9cd8(0x22b)],{'type':_0x4e9cd8(0x237),'description':_0x4e9cd8(0x217)})[_0x4e9cd8(0x134)](_0x5bb662[_0x4e9cd8(0x11b)],{'type':_0x5bb662['htieP'],'description':_0x5bb662['chomT']})[_0x4e9cd8(0x134)](_0x5bb662['qODaL'],{'type':_0x5bb662[_0x4e9cd8(0x231)],'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})[_0x4e9cd8(0x134)](_0x5bb662['pocxI'],{'type':_0x5bb662['ZRkPk'],'description':'Scenario\x20index\x20(1-based)'})['option'](_0x4e9cd8(0x1d6),{'type':_0x5bb662[_0x4e9cd8(0x231)],'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})['option']('model',{'type':_0x4e9cd8(0x237),'description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.'})[_0x4e9cd8(0x134)]('headed',{'type':_0x5bb662['FWdgc'],'description':_0x5bb662[_0x4e9cd8(0x1b1)],'default':![]})['option']('debug-outcome',{'type':_0x5bb662[_0x4e9cd8(0x231)],'hidden':!![],'choices':['verified','partial',_0x4e9cd8(0x199),'failed',_0x5bb662[_0x4e9cd8(0x124)]]})['option']('debug-address-comments',{'type':_0x4e9cd8(0x1c7),'hidden':!![]})[_0x4e9cd8(0x134)](_0x5bb662['IGiAR'],{'type':_0x5bb662[_0x4e9cd8(0x231)],'hidden':!![]})[_0x4e9cd8(0x134)]('task',{'type':'string','hidden':!![]})['option'](_0x4e9cd8(0x1e8),{'type':'number','hidden':!![]});},async _0x66bf1e=>{const _0x76afca=_0x27cb84,_0x4bd584={'QpoGK':function(_0x2713ad,_0x4effc7){return _0x2713ad(_0x4effc7);}};await _0x4bd584[_0x76afca(0x114)](runGoCommand,_0x66bf1e);})[_0x27cb84(0xfa)](_0x27cb84(0x211),![],_0x552445=>{const _0x352fcb=_0x27cb84,_0x380167={'cnBHM':_0x352fcb(0x237),'uLjTA':'encrypt\x20<profile>','lntXF':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x552445['command'](_0x380167[_0x352fcb(0x182)],![],_0x5a9911=>{const _0x58a6b9=_0x352fcb;return _0x5a9911['positional'](_0x58a6b9(0x121),{'type':_0x380167[_0x58a6b9(0x1e0)],'description':_0x58a6b9(0x176),'demandOption':!![]});},async _0x293848=>{warnRenamed('ranger\x20auth\x20encrypt','ranger\x20profile\x20encrypt-auth'),await authEncrypt(_0x293848['profile']);})['demandCommand'](0x1,_0x380167[_0x352fcb(0x10e)]);},()=>{})[_0x27cb84(0xfa)](_0x27cb84(0xfd),![],_0x4bf7cd=>{const _0x1dfe62=_0x27cb84,_0x6d929b={'bxKka':'token','Ftlto':_0x1dfe62(0x1c7),'ZITrO':_0x1dfe62(0x237),'dYENW':_0x1dfe62(0x101),'LBHRK':_0x1dfe62(0x241),'sfgUV':_0x1dfe62(0x1c5),'JJIjP':_0x1dfe62(0x139)};return _0x4bf7cd[_0x1dfe62(0x1f2)](_0x6d929b['bxKka'],{'type':'string','description':_0x1dfe62(0x143)})[_0x1dfe62(0x134)]('skip-chromium',{'type':_0x6d929b[_0x1dfe62(0x1b2)],'description':_0x1dfe62(0x149),'default':![]})[_0x1dfe62(0x134)](_0x1dfe62(0x1f6),{'type':_0x6d929b[_0x1dfe62(0x16b)],'choices':[_0x6d929b[_0x1dfe62(0x21e)],_0x6d929b['LBHRK']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})[_0x1dfe62(0x134)](_0x6d929b[_0x1dfe62(0x22d)],{'type':_0x6d929b['ZITrO'],'description':_0x6d929b[_0x1dfe62(0x18c)]})['option'](_0x1dfe62(0x1d0),{'type':_0x6d929b['Ftlto'],'description':_0x1dfe62(0x1ab),'default':![]});},async _0x51e524=>{const _0x36ff46=_0x27cb84,_0x4e3d5e={'dROmK':_0x36ff46(0x128)};warnRenamed('ranger\x20start',_0x36ff46(0x243)),await withTelemetry(_0x4e3d5e['dROmK'],_0x268c8b=>start(_0x51e524[_0x36ff46(0xf7)],{'skipChromium':_0x51e524[_0x36ff46(0x195)],'scope':_0x51e524[_0x36ff46(0x1f6)],'url':_0x51e524['url'],'force':_0x51e524[_0x36ff46(0x1d0)]},_0x268c8b));})[_0x27cb84(0xfa)](_0x27cb84(0x1f3),![],_0xb6527d=>{const _0x132016=_0x27cb84,_0x54c710={'pAvEY':'string','xrHCU':_0x132016(0x17b),'qjWEP':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','WOJCW':'profile','EncVE':_0x132016(0x15c),'lZTnB':_0x132016(0x136),'kyZrE':'start-path','wBiki':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','LUycd':_0x132016(0xfc),'FigKF':'partial'};return _0xb6527d['option']('env',{'type':_0x54c710['pAvEY'],'description':_0x54c710[_0x132016(0x1b9)]})['option'](_0x132016(0x13d),{'type':_0x132016(0x237),'description':_0x54c710['qjWEP']})['option']('item',{'type':'number','description':_0x132016(0x205)})['option'](_0x54c710['WOJCW'],{'type':_0x54c710['pAvEY'],'hidden':!![]})[_0x132016(0x134)]('notes',{'type':'string','hidden':!![]})['option'](_0x54c710[_0x132016(0x106)],{'type':_0x54c710['lZTnB'],'hidden':!![]})['option'](_0x54c710[_0x132016(0x212)],{'type':_0x132016(0x237),'description':_0x54c710['wBiki']})[_0x132016(0x134)]('model',{'type':_0x54c710[_0x132016(0x21d)],'hidden':!![]})[_0x132016(0x134)](_0x132016(0x144),{'type':_0x132016(0x1c7),'hidden':!![],'default':![]})['option']('debug-outcome',{'type':_0x54c710['pAvEY'],'hidden':!![],'choices':[_0x54c710[_0x132016(0x22e)],_0x54c710['FigKF'],'blocked','failed','incomplete']});},async _0x9e58f0=>{const _0x2f55fc=_0x27cb84,_0x1f3503={'giCNA':function(_0x550e36,_0x14f942,_0x117ba8){return _0x550e36(_0x14f942,_0x117ba8);}};await _0x1f3503[_0x2f55fc(0x1ac)](runGoCommand,_0x9e58f0,!![]);})[_0x27cb84(0xfa)]('add\x20env\x20<env-name>',![],_0x1d91c8=>{const _0x7b802e=_0x27cb84,_0x25d219={'hYNVx':'env-name','qvvKe':_0x7b802e(0x1e6),'pNXWj':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x1d91c8[_0x7b802e(0x1f2)](_0x25d219['hYNVx'],{'type':'string','description':_0x7b802e(0x218),'demandOption':!![]})[_0x7b802e(0x134)]('ci',{'type':'boolean','description':_0x25d219[_0x7b802e(0x1f4)],'default':![]})['option']('skip-auth',{'type':'boolean','description':_0x25d219['pNXWj'],'default':![]});},async _0xde4112=>{const _0x5511b7=_0x27cb84,_0x43ea55={'BHsrx':'ranger\x20profile\x20add','dxbPu':function(_0xb8bc0d,_0x10c058,_0x162f1b){return _0xb8bc0d(_0x10c058,_0x162f1b);},'sFIqy':'add\x20env'};warnRenamed('ranger\x20add\x20env',_0x43ea55['BHsrx']),await _0x43ea55[_0x5511b7(0x197)](withTelemetry,_0x43ea55[_0x5511b7(0x189)],_0x143bba=>addEnv(_0xde4112[_0x5511b7(0x171)],{'ci':_0xde4112['ci'],'skipAuth':_0xde4112['skip-auth']},_0x143bba));})['command'](_0x27cb84(0x21b),![],_0x3474c3=>{const _0x52cac0=_0x27cb84,_0x16c600={'oiSKX':'env-name','IIoPG':_0x52cac0(0x237),'YvZxn':'Name\x20of\x20the\x20environment'};return _0x3474c3[_0x52cac0(0x1f2)](_0x16c600['oiSKX'],{'type':_0x16c600[_0x52cac0(0x184)],'description':_0x16c600['YvZxn'],'demandOption':!![]});},async _0x194d9a=>{const _0x4ced12=_0x27cb84,_0x349aef={'UFuUF':_0x4ced12(0x10b)};warnRenamed('ranger\x20use',_0x349aef[_0x4ced12(0x1c9)]),await withTelemetry(_0x4ced12(0x227),()=>useEnv(_0x194d9a['env-name']));})[_0x27cb84(0xfa)](_0x27cb84(0x1eb),![],_0x2d4d23=>{const _0x9ab921=_0x27cb84,_0x690690={'lpyTH':'string','NwWrb':'Environment\x20name','DrHSd':'key','ffgTx':'Config\x20value','oSRuY':_0x9ab921(0x168),'icAvW':_0x9ab921(0x208),'eRuOt':'env','gPpdX':'Config\x20key','midXu':function(_0x238737,_0x37a461,_0x52e48d){return _0x238737(_0x37a461,_0x52e48d);},'vjSty':'ranger\x20config\x20get','MTPiM':_0x9ab921(0x239),'ABpBG':function(_0x938f3e,_0x1a8539,_0x595592){return _0x938f3e(_0x1a8539,_0x595592);},'OvPOO':'config\x20get','OYQeU':function(_0x473d48,_0x25e5c7,_0x1f0ccb){return _0x473d48(_0x25e5c7,_0x1f0ccb);},'pUvRS':'ranger\x20profile\x20config\x20list','IZzip':'Config\x20key\x20to\x20remove','WTucZ':_0x9ab921(0x1d4),'rcCDK':'ranger\x20profile\x20config\x20unset','EKFbD':_0x9ab921(0x13a)};return _0x2d4d23['command']('set\x20<env>\x20<key>\x20<value>',![],_0x363d33=>{const _0x56c055=_0x9ab921;return _0x363d33['positional']('env',{'type':_0x690690['lpyTH'],'description':_0x690690['NwWrb'],'demandOption':!![]})['positional'](_0x690690['DrHSd'],{'type':_0x56c055(0x237),'description':_0x56c055(0x157),'demandOption':!![]})['positional'](_0x56c055(0x185),{'type':_0x690690[_0x56c055(0x209)],'description':_0x690690['ffgTx'],'demandOption':!![]});},async _0x19e7b7=>{const _0x3f36b3=_0x9ab921;warnRenamed(_0x690690['oSRuY'],'ranger\x20profile\x20config\x20set'),await withTelemetry(_0x690690[_0x3f36b3(0x164)],()=>configSet(_0x19e7b7[_0x3f36b3(0x12e)],_0x19e7b7['key'],_0x19e7b7['value']));})['command']('get\x20<env>\x20<key>',![],_0x525b1=>{const _0x3076fa=_0x9ab921;return _0x525b1['positional'](_0x690690[_0x3076fa(0x154)],{'type':'string','description':_0x690690['NwWrb'],'demandOption':!![]})[_0x3076fa(0x1f2)]('key',{'type':_0x3076fa(0x237),'description':_0x690690['gPpdX'],'demandOption':!![]});},async _0x47765c=>{const _0x11640f=_0x9ab921;_0x690690['midXu'](warnRenamed,_0x690690['vjSty'],_0x690690[_0x11640f(0x22f)]),await _0x690690['ABpBG'](withTelemetry,_0x690690[_0x11640f(0x1b3)],()=>configGet(_0x47765c['env'],_0x47765c['key']));})['command']('list\x20<env>',![],_0x1f0b40=>{const _0x2550d3=_0x9ab921;return _0x1f0b40[_0x2550d3(0x1f2)](_0x690690['eRuOt'],{'type':'string','description':'Environment\x20name','demandOption':!![]});},async _0x9f2086=>{const _0x4becc4=_0x9ab921;_0x690690['OYQeU'](warnRenamed,_0x4becc4(0x236),_0x690690['pUvRS']),await withTelemetry('config\x20list',()=>configList(_0x9f2086['env']));})['command']('unset\x20<env>\x20<key>',![],_0x43ba08=>{const _0x1ffae9=_0x9ab921;return _0x43ba08['positional'](_0x690690['eRuOt'],{'type':_0x690690[_0x1ffae9(0x209)],'description':'Environment\x20name','demandOption':!![]})['positional'](_0x690690[_0x1ffae9(0x1f8)],{'type':_0x1ffae9(0x237),'description':_0x690690['IZzip'],'demandOption':!![]});},async _0x267358=>{const _0x2b9ff5=_0x9ab921;warnRenamed(_0x690690['WTucZ'],_0x690690[_0x2b9ff5(0x1a6)]),await withTelemetry(_0x690690[_0x2b9ff5(0x1a8)],()=>configUnset(_0x267358[_0x2b9ff5(0x12e)],_0x267358[_0x2b9ff5(0x127)]));})['demandCommand'](0x1,_0x9ab921(0x1a9));})[_0x27cb84(0xfa)]('env',![],_0x6bd980=>{const _0x13f22a=_0x27cb84,_0x3241e8={'qRchG':function(_0x4e76c2,_0x477395,_0x5e8d5b){return _0x4e76c2(_0x477395,_0x5e8d5b);},'ucYhu':_0x13f22a(0x177),'VbdKb':'env\x20list','DYJey':_0x13f22a(0x171),'zCYRa':'ranger\x20env\x20update','cvcVx':_0x13f22a(0x219),'hwzxO':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x6bd980[_0x13f22a(0xfa)]('ls',![],()=>{},async()=>{const _0x5a3c25=_0x13f22a;_0x3241e8[_0x5a3c25(0x1b4)](warnRenamed,_0x3241e8[_0x5a3c25(0x21f)],_0x5a3c25(0x152)),await _0x3241e8['qRchG'](withTelemetry,_0x3241e8['VbdKb'],()=>envList());})[_0x13f22a(0xfa)]('update\x20<env-name>',![],_0x43f0da=>{const _0x3d6744=_0x13f22a;return _0x43f0da['positional'](_0x3241e8[_0x3d6744(0x166)],{'type':'string','description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x450e38=>{warnRenamed(_0x3241e8['zCYRa'],_0x3241e8['cvcVx']),await withTelemetry('env\x20update',_0x590e73=>updateEnv(_0x450e38['env-name'],_0x590e73));})[_0x13f22a(0x12f)](0x1,_0x3241e8[_0x13f22a(0x15b)]);})['command'](_0x27cb84(0x188),![],_0x24e1c5=>{const _0x41bdd7=_0x27cb84,_0x4b2ed5={'CbzZt':_0x41bdd7(0x169),'vGala':_0x41bdd7(0x237),'fRtvT':_0x41bdd7(0x1ce),'pLqQB':'description','bENqY':'Feature\x20review\x20description','eOTmG':_0x41bdd7(0x110),'TgUWR':function(_0x182947,_0x1ddd3a,_0x2c4431){return _0x182947(_0x1ddd3a,_0x2c4431);},'pTMmZ':'ranger\x20create','gfWEN':function(_0x1a4254,_0x41bdd5,_0x160dad,_0x3d2b1c){return _0x1a4254(_0x41bdd5,_0x160dad,_0x3d2b1c);},'APbwS':'--checklist','qTuYB':'--scenario','gXLEB':'feature\x20create','QfiqV':'boolean','qNsFX':'limit','YypoJ':_0x41bdd7(0x136),'KxXCQ':_0x41bdd7(0x1a4),'uUBqM':_0x41bdd7(0x14d),'qWcLX':'Number\x20of\x20feature\x20reviews\x20to\x20skip','rtEEC':_0x41bdd7(0x145),'zHllL':'feature\x20list','ValYB':_0x41bdd7(0x11d),'QhQDq':_0x41bdd7(0x1a0),'oVJXY':function(_0x3dbc54,_0x120330,_0x2bc9e9){return _0x3dbc54(_0x120330,_0x2bc9e9);},'RFJBU':'ranger\x20feature\x20resume','sfggy':_0x41bdd7(0x228),'DyLmY':'feature\x20resume','oZWNj':'Scenario\x20description','xAdYX':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','sIZuK':_0x41bdd7(0xf3),'bwZPW':_0x41bdd7(0x17e),'HuwnP':'ranger\x20get-review','PwWkK':_0x41bdd7(0x178),'DNOop':'Feature\x20review\x20ID','yNCmE':'ranger\x20feature\x20delete','JBeLN':'ranger\x20delete','tRBgN':function(_0x303a4a,_0x9b3bac,_0x5a16de){return _0x303a4a(_0x9b3bac,_0x5a16de);},'kFvnT':_0x41bdd7(0x17a),'rDTgp':_0x41bdd7(0x103),'aFhtP':function(_0x6f44c9,_0x5f787e,_0x2b6ca8){return _0x6f44c9(_0x5f787e,_0x2b6ca8);},'QMAXQ':'ranger\x20restore','IDPtw':'create\x20<name>','VixvY':_0x41bdd7(0x1de),'OyBfO':_0x41bdd7(0x16c),'NQPzg':_0x41bdd7(0x1da),'Ulmhc':_0x41bdd7(0x224)};return _0x24e1c5['command'](_0x4b2ed5[_0x41bdd7(0x151)],![],_0x5665d1=>{const _0x3f6bd3=_0x41bdd7;return _0x5665d1[_0x3f6bd3(0x1f2)](_0x4b2ed5[_0x3f6bd3(0x20f)],{'type':_0x4b2ed5[_0x3f6bd3(0x1ca)],'description':_0x4b2ed5[_0x3f6bd3(0xf8)],'demandOption':!![]})[_0x3f6bd3(0x134)](_0x4b2ed5['pLqQB'],{'type':'string','alias':'d','description':_0x4b2ed5['bENqY']})[_0x3f6bd3(0x134)](_0x3f6bd3(0x221),{'type':_0x4b2ed5['eOTmG'],'alias':'c','description':_0x3f6bd3(0x10f)})['option'](_0x3f6bd3(0x15c),{'type':'array','hidden':!![]});},async _0x54c407=>{const _0x456e83=_0x41bdd7;_0x4b2ed5['TgUWR'](warnRenamed,'ranger\x20feature\x20create',_0x4b2ed5[_0x456e83(0x1fd)]),_0x4b2ed5['gfWEN'](warnFlagRenamed,'ranger\x20create',_0x4b2ed5[_0x456e83(0x133)],_0x4b2ed5[_0x456e83(0x13b)]);const _0x13d074=_0x54c407['scenario']||_0x54c407['checklist'];await _0x4b2ed5[_0x456e83(0x19b)](withTelemetry,_0x4b2ed5['gXLEB'],()=>featureCreate(_0x54c407[_0x456e83(0x169)],{'description':_0x54c407['description'],'scenarios':_0x13d074}));})[_0x41bdd7(0xfa)](_0x41bdd7(0x1cb),![],_0xc30163=>{const _0x26fb35=_0x41bdd7;return _0xc30163[_0x26fb35(0x134)](_0x26fb35(0x1d9),{'type':_0x4b2ed5['QfiqV'],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option'](_0x4b2ed5[_0x26fb35(0x115)],{'type':_0x4b2ed5['YypoJ'],'alias':'l','description':_0x4b2ed5['KxXCQ'],'default':0xa})[_0x26fb35(0x134)](_0x4b2ed5[_0x26fb35(0x158)],{'type':_0x4b2ed5[_0x26fb35(0x1b5)],'alias':'o','description':_0x4b2ed5[_0x26fb35(0x1ef)],'default':0x0})['option']('include-deleted',{'type':_0x26fb35(0x1c7),'alias':'d','description':_0x26fb35(0x14b),'default':![]});},async _0x59833f=>{warnRenamed(_0x4b2ed5['rtEEC'],'ranger\x20list'),await withTelemetry(_0x4b2ed5['zHllL'],()=>featureList({'currentBranch':_0x59833f['current-branch'],'limit':_0x59833f['limit'],'offset':_0x59833f['offset'],'includeDeleted':_0x59833f['include-deleted']}));})['command'](_0x4b2ed5[_0x41bdd7(0x1e7)],![],_0x18fd28=>{const _0x2e9e0=_0x41bdd7;return _0x18fd28[_0x2e9e0(0x1f2)]('id',{'type':_0x4b2ed5[_0x2e9e0(0x1ca)],'description':_0x2e9e0(0x129)});},async _0x4869f1=>{const _0x4e7f91=_0x41bdd7;_0x4b2ed5['TgUWR'](warnRenamed,_0x4e7f91(0x147),_0x4b2ed5[_0x4e7f91(0x23e)]),await _0x4b2ed5[_0x4e7f91(0x19b)](withTelemetry,'feature\x20show',()=>featureShow(_0x4869f1['id']));})['command'](_0x4b2ed5['OyBfO'],![],_0x48a770=>{const _0x3a6606=_0x41bdd7;return _0x48a770[_0x3a6606(0x1f2)]('id',{'type':_0x3a6606(0x237),'description':_0x4b2ed5[_0x3a6606(0x210)]});},async _0x58d2d2=>{const _0x2d9c49=_0x41bdd7;_0x4b2ed5[_0x2d9c49(0x170)](warnRenamed,_0x4b2ed5['RFJBU'],_0x4b2ed5[_0x2d9c49(0x1fe)]),await _0x4b2ed5[_0x2d9c49(0x170)](withTelemetry,_0x4b2ed5['DyLmY'],()=>featureResume(_0x58d2d2['id']));})['command']('add-checklist-item\x20<description>',![],_0x3d2836=>{const _0x170476=_0x41bdd7;return _0x3d2836['positional'](_0x4b2ed5['pLqQB'],{'type':_0x170476(0x237),'description':_0x4b2ed5['oZWNj'],'demandOption':!![]})['option']('id',{'type':'string','description':_0x4b2ed5[_0x170476(0x15a)]});},async _0x5cf753=>{const _0x83b185=_0x41bdd7;_0x4b2ed5[_0x83b185(0x170)](warnRenamed,'ranger\x20feature\x20add-checklist-item','ranger\x20add-scenario'),await withTelemetry(_0x4b2ed5['sIZuK'],()=>featureAddScenario(_0x5cf753[_0x83b185(0x1f5)],_0x5cf753['id']));})['command'](_0x41bdd7(0x150),![],_0x50467e=>{const _0x201b5c=_0x41bdd7;return _0x50467e[_0x201b5c(0x1f2)]('id',{'type':_0x201b5c(0x237),'description':_0x4b2ed5['xAdYX']});},async _0x326b67=>{const _0x3d3ce3=_0x41bdd7;warnRenamed(_0x4b2ed5['bwZPW'],_0x4b2ed5['HuwnP']),await withTelemetry(_0x4b2ed5[_0x3d3ce3(0x1e5)],()=>featureGetReview(_0x326b67['id']));})[_0x41bdd7(0xfa)](_0x4b2ed5['NQPzg'],![],_0x43b7cb=>{const _0x30d9f7=_0x41bdd7;return _0x43b7cb[_0x30d9f7(0x1f2)]('id',{'type':_0x30d9f7(0x237),'description':_0x4b2ed5['DNOop']});},async _0x4179f2=>{const _0x3d6829=_0x41bdd7;warnRenamed(_0x4b2ed5['yNCmE'],_0x4b2ed5['JBeLN']),await _0x4b2ed5['tRBgN'](withTelemetry,_0x4b2ed5[_0x3d6829(0x14e)],()=>featureDelete(_0x4179f2['id']));})[_0x41bdd7(0xfa)](_0x4b2ed5['Ulmhc'],![],_0x3a04bf=>{const _0x3d39e2=_0x41bdd7;return _0x3a04bf['positional']('id',{'type':_0x3d39e2(0x237),'description':_0x4b2ed5[_0x3d39e2(0x20e)],'demandOption':!![]});},async _0x51df93=>{const _0x14973a=_0x41bdd7;_0x4b2ed5[_0x14973a(0x23c)](warnRenamed,'ranger\x20feature\x20restore',_0x4b2ed5['QMAXQ']),await withTelemetry(_0x14973a(0x15f),()=>featureRestore(_0x51df93['id']));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand');})['command']('hook',![],_0x26ba8f=>{const _0x234da7=_0x27cb84,_0x1f7294={'YHGDn':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','IOhxw':function(_0x28f5c9,_0x196846,_0x3eb86d){return _0x28f5c9(_0x196846,_0x3eb86d);},'RYZts':'hook:enable','dejAU':_0x234da7(0x11e),'zTTdH':'hook:disable','rwELg':'enable','efOzK':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session'};return _0x26ba8f['command'](_0x1f7294['rwELg'],_0x1f7294['efOzK'],_0x2a79ff=>{const _0x2cb113=_0x234da7;return _0x2a79ff['option']('session-id',{'type':'string','description':_0x1f7294[_0x2cb113(0xf9)]});},async _0x1cf70d=>{const _0xfd8c9=_0x234da7;await _0x1f7294['IOhxw'](withTelemetry,_0x1f7294[_0xfd8c9(0x1aa)],()=>hook('enable',_0x1cf70d[_0xfd8c9(0x11e)]));})['command'](_0x234da7(0x202),_0x234da7(0x122),_0x4eda12=>{const _0x22a2b0=_0x234da7;return _0x4eda12['option'](_0x1f7294['dejAU'],{'type':_0x22a2b0(0x237),'description':_0x1f7294[_0x22a2b0(0xf9)]});},async _0x1c552a=>{await withTelemetry(_0x1f7294['zTTdH'],()=>hook('disable',_0x1c552a['session-id']));})[_0x234da7(0x134)]('name',{'type':_0x234da7(0x237),'description':_0x234da7(0x23b)})['option']('session-id',{'type':'string','description':_0x234da7(0x1d8)});},async _0x7b85af=>{const _0x4fe45f=_0x27cb84,_0x2a1438={'KYozz':'session-id'};_0x7b85af[_0x4fe45f(0x169)]&&await hook(_0x7b85af['name'],_0x7b85af[_0x2a1438[_0x4fe45f(0x1bc)]]);})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20command')[_0x27cb84(0x1cd)]()['fail'](async(_0x1685a7,_0x451928,_0x32eafa)=>{const _0x49dde4=_0x27cb84,_0x31142f={'IAGdy':function(_0x553013,_0x4f3f41){return _0x553013(_0x4f3f41);},'kbAPh':function(_0x393635,_0x5e2b78,_0x15e5a8){return _0x393635(_0x5e2b78,_0x15e5a8);},'waMHJ':_0x49dde4(0x223),'jclJN':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','gzaGT':function(_0x1d8dfb,_0x5304c1){return _0x1d8dfb(_0x5304c1);},'yAjBM':_0x49dde4(0x180)},_0x397050=_0x31142f[_0x49dde4(0x229)](sanitizeArgs,process[_0x49dde4(0x23a)][_0x49dde4(0x220)](0x2)),_0x19f402=_0x31142f['kbAPh'](getErrorType,_0x1685a7,_0x451928);if(_0x1685a7&&_0x1685a7[_0x49dde4(0x1e1)](_0x31142f['waMHJ'])){const _0x154f8f=process[_0x49dde4(0x23a)][0x2];console[_0x49dde4(0x203)]('\x0aUnknown\x20command:\x20'+_0x154f8f),console['error'](_0x31142f[_0x49dde4(0x112)]);}else{if(_0x1685a7)console[_0x49dde4(0x203)]('\x0a'+_0x1685a7+'\x0a');else _0x451928&&console['error']('\x0aError:\x20'+_0x451928[_0x49dde4(0x1a2)]+'\x0a');}await _0x31142f['gzaGT'](logDesirePath,{'rawCommand':_0x397050,'errorMessage':_0x1685a7||_0x451928?.['message'],'errorType':_0x19f402});const _0x9ebc66=getCurrentCollector();_0x9ebc66&&await _0x9ebc66['trackCommandError'](_0x451928||new Error(_0x1685a7||_0x31142f[_0x49dde4(0x130)])),process['exit'](0x1);})[_0x27cb84(0x19d)]('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+_0x27cb84(0x173))['help']()[_0x27cb84(0x201)]('help','h')[_0x27cb84(0x1e9)]();
|
|
2
|
+
const _0x43f580=_0x20c0;(function(_0x184986,_0x24eef2){const _0x286dda=_0x20c0,_0x5e7168=_0x184986();while(!![]){try{const _0x3288aa=-parseInt(_0x286dda(0x1bd))/0x1+parseInt(_0x286dda(0x144))/0x2+-parseInt(_0x286dda(0x142))/0x3*(-parseInt(_0x286dda(0x1c8))/0x4)+parseInt(_0x286dda(0x1de))/0x5*(parseInt(_0x286dda(0x1b3))/0x6)+parseInt(_0x286dda(0x16a))/0x7*(parseInt(_0x286dda(0x18b))/0x8)+parseInt(_0x286dda(0x17e))/0x9*(parseInt(_0x286dda(0x1b5))/0xa)+-parseInt(_0x286dda(0xae))/0xb*(parseInt(_0x286dda(0x174))/0xc);if(_0x3288aa===_0x24eef2)break;else _0x5e7168['push'](_0x5e7168['shift']());}catch(_0x23cf1a){_0x5e7168['push'](_0x5e7168['shift']());}}}(_0xe85e,0x76ef6));import _0x5d0d51 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x5577d7=_0x20c0,_0x428e4b={'zTxNK':function(_0x5a201d,_0x20067d){return _0x5a201d(_0x20067d);},'GkwQi':_0x5577d7(0x1ce),'OjoaA':function(_0x235877,_0x38f9b3,_0x2aad28){return _0x235877(_0x38f9b3,_0x2aad28);},'yENak':_0x5577d7(0x89)};let _0xc9db53=process['cwd']();const _0x18ae6a=parse(_0xc9db53)['root'];while(_0xc9db53!==_0x18ae6a){if(_0x428e4b[_0x5577d7(0x18d)](existsSync,join(_0xc9db53,_0x428e4b[_0x5577d7(0xe5)]))||_0x428e4b[_0x5577d7(0x18d)](existsSync,_0x428e4b['OjoaA'](join,_0xc9db53,_0x428e4b[_0x5577d7(0x1d8)])))return _0xc9db53;_0xc9db53=dirname(_0xc9db53);}return process[_0x5577d7(0x184)]();}_0x5d0d51[_0x43f580(0x80)]({'path':join(findProjectRoot(),_0x43f580(0x89))});import _0x40683c from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';function _0x20c0(_0x563339,_0x515368){_0x563339=_0x563339-0x7a;const _0xe85e8e=_0xe85e();let _0x20c015=_0xe85e8e[_0x563339];return _0x20c015;}import{authEncrypt}from'./commands/authEncrypt.js';import{getToken}from'./commands/utils/keychain.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{isByokEnabled}from'./commands/utils/environment.js';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 _0xe85e(){const _0x2b474c=['iFSZZ','riijc','use\x20<env-name>','22VEzClb','UiEqZ','update\x20<profile-name>','get\x20<env>\x20<key>','ranger\x20profile\x20ls','argv','DoDrj','XgxtH','RgzwL','evaluation','feature\x20list','oLpmw','delete','fgSII','lYNNX','IeXId','ColxT','url','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','CRHAh','Fkhwa','ZqMQF','ranger\x20go','force','ghDkX','use','You\x20must\x20specify\x20a\x20command','fyWhL','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','current-branch','show\x20[id]','\x20VERIFIED','feature\x20create','Print\x20the\x20current\x20CLI\x20access\x20token','FLyuN','IKZci','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','error','zVrKz','BBRUh','opencode','list','cdp-endpoint','IkqdL','--profile','value','wsvRd','log','usage','Manage\x20profile\x20configuration','Add\x20profile\x20configuration','DrHJs','message','ranger\x20feature\x20list','WdKwL','GkwQi','profile\x20config\x20set','ktOEo','scriptName','encrypt-auth\x20<profile>','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','dZiXB','blocked','ranger\x20create','rvwEg','MMBgq','scenario','skip-chromium','hdYaY','NkdJp','Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)','MVQWZ','hook','YxKzo','safe-mode','uwYLV','GSFWN','BASZq','Ranger\x20API\x20token','bmmbl','checklist','lqYfk','JjHnD','You\x20must\x20specify\x20an\x20auth\x20subcommand','feature\x20get-feedback','Profile\x20name','cdMgP','add\x20<profile-name>','JAZAV','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','string','delete\x20[id]','allow-insecure-localhost','array','jJfQZ','use\x20<profile-name>','MMuwm','command','VnfPK','repeat','ranger\x20setup','ranger\x20add-scenario','key','start-path','AoMBN','Name\x20of\x20the\x20environment','Config\x20key','uUqUc','unset\x20<profile>\x20<key>','Get\x20a\x20config\x20value','obvws','ranger\x20feature\x20restore','HVINz','ranger\x20show','xzyPu','ZKGUo','JXZWV','ranger\x20feature\x20create','severity','start','hjrkO','ranger\x20profile\x20config\x20list','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','Set\x20a\x20config\x20value','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','name','exclude-scenario','number','get-feedback\x20[id]','create\x20<name>','mrURB','LoCez','sXipY','ranger\x20resume','\x20\x20https://docs.ranger.net\x0a','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','hNeqw','GNNhK','KLqmU','mPJuB','ranger\x20delete','profile\x20config\x20get','json','DKQQx','lMeXC','clean','positional','ranger\x20auth\x20encrypt','27363XMQuhM','dNOis','41260ieTgTG','iwIdU','kYTeH','Feature\x20review\x20ID\x20to\x20restore','\x20is\x20now\x20','VvtYu','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','--scenario','Summary:\x20','GWFdl','untux','restore','update','Feature\x20review\x20ID','jcWlY','vyCGN','GzhYw','encrypt\x20<profile>','KkTin','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','issues','verified','version','offset','UfCpa','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','RRiuz','feature\x20delete','add\x20env\x20<env-name>','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','scope','demandCommand','boolean','ranger\x20feature\x20get-feedback','jmDWB','debug-address-comments','Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','ranger\x20start','3997GFYNES','ZzcgB','jLIxN','add-scenario','Ktmvl','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','slice','set\x20<env>\x20<key>\x20<value>','IZuJn','2273352HMgfHG','WqyVg','GQcUN','vaovc','rChhN','uRKGX','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','edit-scenario','kLrnT','9McsoZs','jwgPk','pBvtn','ranger\x20feature\x20resume','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','config\x20set','cwd','IROsx','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','Feature\x20review\x20description','Audjv','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','clUJq','288aUShnj','ytSAY','zTxNK','map','HdBRp','Scenario\x20index\x20(1-based)','Reason:\x20','login','KNjLU','include-deleted','alias','mEwFv','strictCommands','uULlR','--checklist','vSBQL','\x0aIssues:','profile-name','\x20INCOMPLETE','token','base-url','partial','project','Name\x20of\x20the\x20environment\x20to\x20update','profile','List\x20all\x20profiles','disable','config\x20unset','parse','exitCode','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','option','IKvBn','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','Documentation:\x0a','item','dgdOW','yhMyB','ranger\x20env\x20update','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','8706hnyIdd','restore\x20<id>','6023560xEIjiD','add-checklist-item\x20<description>','feature','add-scenario\x20<description>','model','beTBj','dIkhz','setup-ci','589052GdCgAG','jaCTs','LOeRb','update\x20<env-name>','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','ZJMjm','\x20FAILED','profile\x20ls','ePBHM','DdrRj','ranger','340RYaGDI','New\x20scenario\x20description','\x0aError:\x20','skillup','DTSAY','dAlxv','.ranger','start\x20[token]','enable','WaxRl','Remove\x20a\x20config\x20value','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Scenario\x20number\x20to\x20edit\x20(1-based)','ranger\x20feature\x20show','incomplete','Include\x20soft-deleted\x20feature\x20reviews','yENak','JUKrg','help','VkaNy','xGXgz','verify-feature','125ECwTHZ','RvxeD','gKfCf','xLehl','Environment\x20name','PFvMJ','tsZIE','ranger\x20profile\x20update','failed','config','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','paJea','get-review\x20[id]','NyzcO','--item','epilogue','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','debug-outcome','.env','HDzkh','ranger\x20profile\x20config\x20set','Uibdc','pGDIB','Config\x20key\x20to\x20remove','summary','env-name','task','skip-auth','ehxqS','session-id','You\x20must\x20specify\x20an\x20env\x20subcommand','profile\x20encrypt-auth','.\x20[','bjnhG','Egujw','env','GNyKj','headed','DASNW','user','Initialize\x20Ranger\x20in\x20your\x20project','wPcew','RqLAs','limit','description','unset\x20<env>\x20<key>','vgclK','rTiBs','--notes','auth','byYaa','ranger\x20profile\x20config\x20get'];_0xe85e=function(){return _0x2b474c;};return _0xe85e();}import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on']('unhandledRejection',async _0x117035=>{const _0x346b92=_0x43f580,_0x43b67e={'xugPG':function(_0x18aba6){return _0x18aba6();}},_0x163473=_0x43b67e['xugPG'](getCurrentCollector);_0x163473&&await _0x163473['trackCommandError'](_0x117035),process[_0x346b92(0x1a8)]=0x1;});const rawArgs=process[_0x43f580(0xb3)][_0x43f580(0x171)](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true',PROFILE_CONFIG_HELP='Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20header.X-Test-Mode)\x0a\x20\x20setupHeader.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeader.x-bypass-turnstile)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20setupHeader.x-bypass-turnstile\x20\x27a1b2c3d4...\x27';function warnRenamed(_0x2bf950,_0x2b1537){const _0x34bb60=_0x43f580;console['error']('\x0a'+_0x2bf950+_0x34bb60(0x148)+_0x2b1537+'\x0a');}function argUsed(_0x34114a){return rawArgs['some'](_0x1a5ba3=>_0x1a5ba3===_0x34114a||_0x1a5ba3['startsWith'](_0x34114a+'='));}function warnFlagRenamed(_0x1c6f1a,_0x520872,_0x42d172){const _0x267d0c=_0x43f580,_0x157783={'NyzcO':function(_0x39e132,_0x5dc167){return _0x39e132(_0x5dc167);}};_0x157783[_0x267d0c(0x84)](argUsed,_0x520872)&&warnRenamed(_0x1c6f1a+'\x20'+_0x520872,_0x1c6f1a+'\x20'+_0x42d172);}async function runGoCommand(_0xa2be98,_0x142084=![]){const _0x2d74e5=_0x43f580,_0x3d56f6={'DKQQx':'ranger\x20verify-feature','uxKKy':'ranger\x20go','pGDIB':function(_0x2a473b,_0x3747b2,_0x3b50c6,_0x5b957a){return _0x2a473b(_0x3747b2,_0x3b50c6,_0x5b957a);},'byYaa':'--env','KNjLU':'--task','QRDyE':_0x2d74e5(0x14b),'mVSHm':_0x2d74e5(0x88),'oLpmw':function(_0x4be932,_0x5b7879){return _0x4be932===_0x5b7879;},'UiSwr':_0x2d74e5(0x1a0),'hmlCJ':'\x20PARTIAL','HVINz':_0x2d74e5(0xec),'zGptE':'\x20BLOCKED','vSBQL':_0x2d74e5(0x19b)};_0x142084&&warnRenamed(_0x3d56f6[_0x2d74e5(0x13d)],_0x3d56f6['uxKKy']);_0x3d56f6[_0x2d74e5(0x8d)](warnFlagRenamed,'ranger\x20go',_0x3d56f6[_0x2d74e5(0xa9)],_0x2d74e5(0xda)),_0x3d56f6['pGDIB'](warnFlagRenamed,_0x2d74e5(0xc4),_0x3d56f6[_0x2d74e5(0x193)],_0x2d74e5(0xa7)),warnFlagRenamed('ranger\x20go',_0x2d74e5(0x85),_0x3d56f6['QRDyE']);const _0x4f1627=await loadRangerConfig(),_0x572c49=isByokEnabled(),_0x1e79f5=_0xa2be98['model'],_0x322e0f=_0x4f1627['model'],_0x35a785=await verifyFeature({'featureId':_0xa2be98['feature'],'profile':_0xa2be98['profile']??_0xa2be98['env'],'notes':_0xa2be98['notes']??_0xa2be98[_0x2d74e5(0x91)],'scenario':_0xa2be98[_0x2d74e5(0xf0)]??_0xa2be98['item'],'startPath':_0xa2be98[_0x2d74e5(0x115)],'debugOutcome':_0xa2be98[_0x3d56f6['mVSHm']],'debugAddressComments':_0xa2be98[_0x2d74e5(0x167)],'headed':_0xa2be98[_0x2d74e5(0x9c)],'byokEnabled':_0x572c49,'flagVerifyModel':_0x1e79f5,'configVerifyModel':_0x322e0f});console['log']('\x0a'+'='['repeat'](0x3c)),console[_0x2d74e5(0xdd)](_0x35a785[_0x2d74e5(0xb7)]===_0x2d74e5(0x159)?_0x2d74e5(0xcd):_0x3d56f6['oLpmw'](_0x35a785['evaluation'],_0x2d74e5(0x1d6))?_0x2d74e5(0x19d):_0x3d56f6[_0x2d74e5(0xb9)](_0x35a785['evaluation'],_0x3d56f6['UiSwr'])?_0x3d56f6['hmlCJ']:_0x35a785['evaluation']===_0x3d56f6[_0x2d74e5(0x11e)]?_0x3d56f6['zGptE']:_0x2d74e5(0x1c3)),console['log']('='[_0x2d74e5(0x111)](0x3c)),console['log'](_0x2d74e5(0x14c)+_0x35a785[_0x2d74e5(0x8f)]),console[_0x2d74e5(0xdd)]('Evaluation:\x20'+_0x35a785['evaluation']),console['log'](_0x2d74e5(0x191)+_0x35a785['evaluationReason']),_0x35a785[_0x2d74e5(0x158)]?.['length']&&(console[_0x2d74e5(0xdd)](_0x3d56f6[_0x2d74e5(0x19a)]),_0x35a785[_0x2d74e5(0x158)]['forEach']((_0x4bd6a6,_0x245634)=>{const _0x288531=_0x2d74e5;console[_0x288531(0xdd)]('\x0a'+(_0x245634+0x1)+_0x288531(0x97)+_0x4bd6a6[_0x288531(0x124)]+']\x20'+_0x4bd6a6['description']);})),process['exit'](_0x35a785[_0x2d74e5(0xb7)]==='verified'?0x0:0x1);}_0x40683c(process[_0x43f580(0xb3)][_0x43f580(0x171)](0x2))[_0x43f580(0xe8)](_0x43f580(0x1c7))[_0x43f580(0xde)](TOP_LEVEL_HELP)[_0x43f580(0x15a)](getCurrentVersion())[_0x43f580(0x10f)](_0x43f580(0x12f),_0x43f580(0x189),_0x5c74ad=>{const _0x24c6da=_0x43f580,_0x3423a={'vWhgv':_0x24c6da(0x108),'ezoBa':'Feature\x20review\x20name','pdvMW':_0x24c6da(0xa3),'lYNNX':_0x24c6da(0x10b),'eMjnD':_0x24c6da(0x87),'jcWlY':_0x24c6da(0xfe)};return _0x5c74ad[_0x24c6da(0x140)](_0x24c6da(0x12b),{'type':_0x3423a['vWhgv'],'description':_0x3423a['ezoBa'],'demandOption':!![]})['option'](_0x3423a['pdvMW'],{'type':_0x24c6da(0x108),'alias':'d','description':'Feature\x20review\x20description'})['option'](_0x24c6da(0xf0),{'type':_0x3423a[_0x24c6da(0xbc)],'alias':'c','description':_0x3423a['eMjnD']})['option'](_0x3423a[_0x24c6da(0x152)],{'type':_0x3423a[_0x24c6da(0xbc)],'hidden':!![]});},async _0x4db482=>{const _0x5c7a51=_0x43f580,_0x116d9b={'ciCJY':function(_0x4c88df,_0x321077,_0x39472f,_0x118886){return _0x4c88df(_0x321077,_0x39472f,_0x118886);},'qHVOB':'--checklist','nWdPG':'--scenario','SQxIc':function(_0x29ca43,_0x112267,_0x2a3b5a){return _0x29ca43(_0x112267,_0x2a3b5a);}};_0x116d9b['ciCJY'](warnFlagRenamed,_0x5c7a51(0xed),_0x116d9b['qHVOB'],_0x116d9b['nWdPG']);const _0x543a96=_0x4db482['scenario']||_0x4db482[_0x5c7a51(0xfe)];await _0x116d9b['SQxIc'](withTelemetry,'create',()=>featureCreate(_0x4db482[_0x5c7a51(0x12b)],{'description':_0x4db482[_0x5c7a51(0xa3)],'scenarios':_0x543a96}));})[_0x43f580(0x10f)](_0x43f580(0xd7),'List\x20all\x20feature\x20reviews',_0x2bb43a=>{const _0x4469e0=_0x43f580,_0x5ceb03={'qoUqU':'current-branch','uKHHe':_0x4469e0(0x107),'dZiXB':'offset','ytSAY':'boolean','PiLNQ':'Include\x20soft-deleted\x20feature\x20reviews'};return _0x2bb43a[_0x4469e0(0x1aa)](_0x5ceb03['qoUqU'],{'type':_0x4469e0(0x164),'description':_0x4469e0(0xea)})[_0x4469e0(0x1aa)]('limit',{'type':'number','alias':'l','description':_0x5ceb03['uKHHe'],'default':0xa})[_0x4469e0(0x1aa)](_0x5ceb03[_0x4469e0(0xeb)],{'type':_0x4469e0(0x12d),'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option'](_0x4469e0(0x194),{'type':_0x5ceb03[_0x4469e0(0x18c)],'alias':'d','description':_0x5ceb03['PiLNQ'],'default':![]});},async _0x7821c5=>{const _0x3b289c=_0x43f580,_0x275309={'UfCpa':function(_0x37251d,_0x1450a2,_0x4ae26c){return _0x37251d(_0x1450a2,_0x4ae26c);}};await _0x275309[_0x3b289c(0x15c)](withTelemetry,_0x3b289c(0xd7),()=>featureList({'currentBranch':_0x7821c5[_0x3b289c(0xcb)],'limit':_0x7821c5[_0x3b289c(0xa2)],'offset':_0x7821c5['offset'],'includeDeleted':_0x7821c5[_0x3b289c(0x194)]}));})['command']('show\x20[id]',_0x43f580(0x1ac),_0xe31fdb=>{const _0x5cd115=_0x43f580,_0x14f2f3={'ZJMjm':_0x5cd115(0x108),'ZKGUo':'Feature\x20review\x20ID'};return _0xe31fdb[_0x5cd115(0x140)]('id',{'type':_0x14f2f3[_0x5cd115(0x1c2)],'description':_0x14f2f3[_0x5cd115(0x121)]});},async _0x4b2d22=>{const _0x167d91={'LQyNZ':function(_0x1da8de,_0x1b37d5,_0x4a200d){return _0x1da8de(_0x1b37d5,_0x4a200d);}};await _0x167d91['LQyNZ'](withTelemetry,'show',()=>featureShow(_0x4b2d22['id']));})['command']('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x236a57=>{const _0x57b82d=_0x43f580;return _0x236a57['positional']('id',{'type':_0x57b82d(0x108),'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x309bfa=>{const _0x5caf6d={'UhajJ':function(_0x14f67e,_0x51f0e2,_0xf9f7e2){return _0x14f67e(_0x51f0e2,_0xf9f7e2);}};await _0x5caf6d['UhajJ'](withTelemetry,'resume',()=>featureResume(_0x309bfa['id']));})['command'](_0x43f580(0x1b8),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x2149d6=>{const _0x17cd5d=_0x43f580,_0x57c381={'NkdJp':'description','RptEN':_0x17cd5d(0x108),'lqYfk':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x2149d6['positional'](_0x57c381[_0x17cd5d(0xf3)],{'type':_0x57c381['RptEN'],'description':'Scenario\x20description','demandOption':!![]})['option']('id',{'type':'string','description':_0x57c381[_0x17cd5d(0xff)]});},async _0x37f76f=>{const _0x3c67f0=_0x43f580;await withTelemetry(_0x3c67f0(0x16d),()=>featureAddScenario(_0x37f76f['description'],_0x37f76f['id']));})['command']('edit-scenario\x20<description>',_0x43f580(0x1b2),_0x4f7b58=>{const _0x255acd=_0x43f580,_0x2b9935={'GNyKj':_0x255acd(0xa3),'QEkwu':_0x255acd(0x108),'CRHAh':_0x255acd(0x1c9),'ZzcgB':_0x255acd(0x12d),'WqyVg':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x4f7b58[_0x255acd(0x140)](_0x2b9935[_0x255acd(0x9b)],{'type':_0x2b9935['QEkwu'],'description':_0x2b9935[_0x255acd(0xc1)],'demandOption':!![]})[_0x255acd(0x1aa)](_0x255acd(0xf0),{'type':_0x2b9935[_0x255acd(0x16b)],'description':_0x255acd(0x1d4),'demandOption':!![]})['option']('id',{'type':_0x255acd(0x108),'description':_0x2b9935[_0x255acd(0x175)]});},async _0x324c6e=>{const _0x4c6424=_0x43f580;await withTelemetry(_0x4c6424(0x17c),()=>featureEditScenario(_0x324c6e['description'],{'id':_0x324c6e['id'],'scenario':_0x324c6e['scenario']}));})[_0x43f580(0x10f)]('report\x20[id]',_0x43f580(0xd2),_0x1c359d=>{const _0x22e9c2=_0x43f580,_0x150507={'QFiUK':'exclude-scenario','MMBgq':'array','DleQI':'json','untux':_0x22e9c2(0x164),'xzyPu':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown'};return _0x1c359d['positional']('id',{'type':_0x22e9c2(0x108),'description':'Feature\x20review\x20ID'})['option'](_0x150507['QFiUK'],{'type':_0x150507[_0x22e9c2(0xef)],'description':_0x22e9c2(0x12a)})[_0x22e9c2(0x1aa)](_0x150507['DleQI'],{'type':_0x150507[_0x22e9c2(0x14e)],'description':_0x150507[_0x22e9c2(0x120)],'default':![]});},async _0x552f95=>{const _0x16748f=_0x43f580,_0x20930e={'jwgPk':_0x16748f(0x12c),'wPcew':function(_0x40a1cd,_0x454de4,_0x99df25){return _0x40a1cd(_0x454de4,_0x99df25);},'ColxT':'report'},_0x4aa247=_0x552f95[_0x20930e[_0x16748f(0x17f)]],_0x140ee3=_0x4aa247?_0x4aa247[_0x16748f(0x18e)](_0x501fe7=>Number(_0x501fe7)):undefined;await _0x20930e[_0x16748f(0xa0)](withTelemetry,_0x20930e[_0x16748f(0xbe)],()=>featureReportPrDescription(_0x552f95['id'],{'excludeScenarios':_0x140ee3,'json':_0x552f95[_0x16748f(0x13c)]}));})['command'](_0x43f580(0x83),'Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x34ffe7=>{const _0x14b20f=_0x43f580,_0x4730bf={'paJea':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x34ffe7[_0x14b20f(0x140)]('id',{'type':_0x14b20f(0x108),'description':_0x4730bf[_0x14b20f(0x82)]});},async _0x358a77=>{const _0x275d09=_0x43f580,_0x34645c={'ktOEo':function(_0x37fd94,_0x5c5608,_0x24a8c4){return _0x37fd94(_0x5c5608,_0x24a8c4);},'lMeXC':'get-review'};await _0x34645c[_0x275d09(0xe7)](withTelemetry,_0x34645c[_0x275d09(0x13e)],()=>featureGetReview(_0x358a77['id']));})[_0x43f580(0x10f)](_0x43f580(0x109),_0x43f580(0x161),_0x48bf21=>{const _0x6fde3=_0x43f580,_0x2297f9={'rvwEg':_0x6fde3(0x108)};return _0x48bf21[_0x6fde3(0x140)]('id',{'type':_0x2297f9[_0x6fde3(0xee)],'description':_0x6fde3(0x151)});},async _0x3ada96=>{const _0x5575ae=_0x43f580,_0x5e4295={'VkaNy':function(_0x381ff6,_0x4d4494,_0x22c410){return _0x381ff6(_0x4d4494,_0x22c410);},'ijbnh':_0x5575ae(0xba)};await _0x5e4295[_0x5575ae(0x1db)](withTelemetry,_0x5e4295['ijbnh'],()=>featureDelete(_0x3ada96['id']));})['command'](_0x43f580(0x1b4),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x56b3dc=>{const _0x5b107c=_0x43f580,_0x36fe9a={'uRKGX':'string'};return _0x56b3dc['positional']('id',{'type':_0x36fe9a[_0x5b107c(0x179)],'description':_0x5b107c(0x147),'demandOption':!![]});},async _0x1440f8=>{const _0x5cdd93=_0x43f580,_0x302995={'IkqdL':function(_0x2f0d9c,_0x26b036,_0x4da9fc){return _0x2f0d9c(_0x26b036,_0x4da9fc);}};await _0x302995[_0x5cdd93(0xd9)](withTelemetry,_0x5cdd93(0x14f),()=>featureRestore(_0x1440f8['id']));})['command']('setup\x20[token]',_0x43f580(0x9f),_0x3a02ec=>{const _0x240574=_0x43f580,_0x14ca67={'dAlxv':_0x240574(0x19e),'eGTnA':_0x240574(0x164),'UiEqZ':_0x240574(0x162),'jaCTs':'string','ZCOrf':'project','YnahI':_0x240574(0x15d),'GrzdP':'url','wsvRd':_0x240574(0x1d3),'wTSGJ':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','dpZmc':'opencode','wnlZs':_0x240574(0x16f)};return _0x3a02ec['positional'](_0x14ca67[_0x240574(0x1cd)],{'type':'string','description':_0x240574(0x182)})[_0x240574(0x1aa)]('skip-chromium',{'type':_0x14ca67['eGTnA'],'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})['option'](_0x14ca67[_0x240574(0xaf)],{'type':_0x14ca67[_0x240574(0x1be)],'choices':[_0x240574(0x9e),_0x14ca67['ZCOrf']],'description':_0x14ca67['YnahI']})[_0x240574(0x1aa)](_0x14ca67['GrzdP'],{'type':'string','description':_0x14ca67[_0x240574(0xdc)]})['option']('force',{'type':_0x14ca67['eGTnA'],'description':_0x14ca67['wTSGJ'],'default':![]})['option'](_0x14ca67['dpZmc'],{'type':'boolean','description':_0x14ca67['wnlZs'],'default':![]})[_0x240574(0x1aa)]('allow-insecure-localhost',{'type':_0x14ca67['eGTnA'],'description':_0x240574(0x17b),'default':![]});},async _0x5a31c9=>{const _0x2fbab4=_0x43f580,_0xa3f3f3={'IoAKX':_0x2fbab4(0x125)};await withTelemetry(_0xa3f3f3['IoAKX'],_0x5218d8=>start(_0x5a31c9[_0x2fbab4(0x19e)],{'skipChromium':_0x5a31c9[_0x2fbab4(0xf1)],'scope':_0x5a31c9['scope'],'url':_0x5a31c9['url'],'force':_0x5a31c9[_0x2fbab4(0xc5)],'opencode':_0x5a31c9[_0x2fbab4(0xd6)],'allowInsecureLocalhost':_0x5a31c9[_0x2fbab4(0x10a)]},_0x5218d8));})['command']('setup-ci\x20<token>','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x497aea=>{const _0x4ecaa9=_0x43f580,_0x21027e={'yhMyB':_0x4ecaa9(0x19e),'KTgag':'string','gWYyu':'profile','mnPFM':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','hjrkO':'base-url','XzUQg':_0x4ecaa9(0xf1)};return _0x497aea['positional'](_0x21027e[_0x4ecaa9(0x1b0)],{'type':_0x21027e['KTgag'],'description':_0x4ecaa9(0xfc),'demandOption':!![]})[_0x4ecaa9(0x1aa)](_0x21027e['gWYyu'],{'type':'string','description':_0x21027e['mnPFM']})[_0x4ecaa9(0x1aa)](_0x21027e[_0x4ecaa9(0x126)],{'type':_0x21027e['KTgag'],'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})[_0x4ecaa9(0x1aa)](_0x21027e['XzUQg'],{'type':_0x4ecaa9(0x164),'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x3ece7f=>{const _0x1db4af=_0x43f580,_0x32b451={'zmIyg':function(_0x3b0639,_0x4553d5,_0x4b6cdd){return _0x3b0639(_0x4553d5,_0x4b6cdd);}};await _0x32b451['zmIyg'](withTelemetry,_0x1db4af(0x1bc),_0x203b0c=>setupCi(_0x3ece7f[_0x1db4af(0x19e)],{'profile':_0x3ece7f[_0x1db4af(0x1a3)],'baseUrl':_0x3ece7f[_0x1db4af(0x19f)],'skipChromium':_0x3ece7f['skip-chromium']},_0x203b0c));})['command'](_0x43f580(0x192),_0x43f580(0x170),()=>{},async()=>{const _0x40a1c2=_0x43f580;await withTelemetry(_0x40a1c2(0x192),()=>login());})[_0x43f580(0x10f)](_0x43f580(0x1cb),'Install\x20Ranger\x20skills',_0x2db7f0=>{const _0x567104=_0x43f580,_0xa7a881={'MMBdB':_0x567104(0xd6),'GXyvk':_0x567104(0x164),'UwKEW':_0x567104(0x108)};return _0x2db7f0[_0x567104(0x1aa)](_0xa7a881['MMBdB'],{'type':_0xa7a881['GXyvk'],'description':'Install\x20skills\x20for\x20OpenCode','default':![]})['option'](_0x567104(0x162),{'type':_0xa7a881['UwKEW'],'choices':[_0x567104(0x9e),'project'],'description':'Install\x20scope\x20for\x20skills'});},async _0x3fbc8c=>{const _0x2c69aa=_0x43f580,_0x227291={'IeXId':function(_0x5c0148,_0x538737,_0x42f520){return _0x5c0148(_0x538737,_0x42f520);}},_0x549f06=Boolean(_0x3fbc8c['opencode']);await _0x227291[_0x2c69aa(0xbd)](withTelemetry,_0x2c69aa(0x1cb),()=>skillup({'autoInstall':_0x3fbc8c['scope'],'platform':_0x549f06?'opencode':'claude'}));})[_0x43f580(0x10f)](_0x43f580(0x13f),'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x34b5e6=_0x43f580;await withTelemetry(_0x34b5e6(0x13f),()=>clean());})['command']('profile','Manage\x20profiles',_0x4a7e04=>{const _0x585c8f=_0x43f580,_0x5a3fe9={'dSBol':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','RvxeD':_0x585c8f(0xbf),'YxKzo':_0x585c8f(0x108),'SmkCl':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','vgclK':'boolean','PODvh':_0x585c8f(0xd8),'xglyE':_0x585c8f(0x17b),'bjnhG':'safe-mode','QEDiw':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','fyWhL':_0x585c8f(0x9e),'xGXgz':function(_0x2e89a1,_0x5d2f89){return _0x2e89a1(_0x5d2f89);},'DASNW':'profile-name','jLIxN':'Name\x20of\x20the\x20profile','IKZci':_0x585c8f(0x1a3),'xLehl':function(_0x242754,_0x288d8e,_0x3123e3){return _0x242754(_0x288d8e,_0x3123e3);},'hMEiM':_0x585c8f(0x1c4),'fVAZa':function(_0x27f064,_0x2b58f6,_0x11a0b0){return _0x27f064(_0x2b58f6,_0x11a0b0);},'kYTeH':_0x585c8f(0xe6),'OeOES':_0x585c8f(0x186),'dOCHJ':function(_0x265f29,_0x54abe6,_0x1978b0){return _0x265f29(_0x54abe6,_0x1978b0);},'QnBSa':_0x585c8f(0x8e),'tixNE':'set\x20<profile>\x20<key>\x20<value>','MWjQM':_0x585c8f(0x129),'vSIYV':'get\x20<profile>\x20<key>','WaxRl':'List\x20all\x20config\x20for\x20a\x20profile','Awpjp':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','xPFne':_0x585c8f(0xe0),'zVrKz':_0x585c8f(0x10d),'ITGcF':_0x585c8f(0xe9),'DneOi':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','mEwFv':_0x585c8f(0x1a4),'LOeRb':'Update\x20authentication\x20for\x20an\x20existing\x20profile','BBRUh':_0x585c8f(0x80),'GQcUN':_0x585c8f(0xdf),'SraYf':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x4a7e04[_0x585c8f(0xde)](PROFILE_HELP)[_0x585c8f(0x10f)](_0x585c8f(0x105),_0x5a3fe9['xPFne'],_0xc19026=>{const _0x427cd8=_0x585c8f;return _0xc19026[_0x427cd8(0x140)]('profile-name',{'type':'string','description':_0x5a3fe9['dSBol'],'demandOption':!![]})['option']('ci',{'type':_0x427cd8(0x164),'description':_0x427cd8(0x168),'default':![]})[_0x427cd8(0x1aa)](_0x427cd8(0x92),{'type':_0x427cd8(0x164),'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]})[_0x427cd8(0x1aa)](_0x5a3fe9[_0x427cd8(0x1df)],{'type':_0x5a3fe9['YxKzo'],'description':_0x5a3fe9['SmkCl']})[_0x427cd8(0x1aa)]('force',{'type':_0x5a3fe9['vgclK'],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})[_0x427cd8(0x1aa)](_0x5a3fe9['PODvh'],{'type':_0x5a3fe9[_0x427cd8(0xf7)],'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'})[_0x427cd8(0x1aa)](_0x427cd8(0x10a),{'type':'boolean','description':_0x5a3fe9['xglyE'],'default':![]})[_0x427cd8(0x1aa)](_0x5a3fe9[_0x427cd8(0x98)],{'type':_0x5a3fe9[_0x427cd8(0xa5)],'description':_0x5a3fe9['QEDiw'],'default':![]})[_0x427cd8(0x1aa)]('setup-header',{'type':_0x5a3fe9['YxKzo'],'array':!![],'description':'HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)'})[_0x427cd8(0x1aa)](_0x427cd8(0x162),{'type':_0x5a3fe9['YxKzo'],'choices':[_0x5a3fe9[_0x427cd8(0xc9)],'project'],'description':_0x427cd8(0xf4)});},async _0x4ff08d=>{const _0x47d215=_0x585c8f;await withTelemetry('profile\x20add',_0x3722e4=>addEnv(_0x4ff08d[_0x47d215(0x19c)],{'ci':_0x4ff08d['ci'],'skipAuth':_0x4ff08d['skip-auth'],'url':_0x4ff08d['url'],'force':_0x4ff08d[_0x47d215(0xc5)],'cdpEndpoint':_0x4ff08d[_0x47d215(0xd8)],'allowInsecureLocalhost':_0x4ff08d['allow-insecure-localhost'],'safeMode':_0x4ff08d[_0x47d215(0xf8)],'setupHeader':_0x4ff08d['setup-header'],'scope':_0x4ff08d[_0x47d215(0x162)]},_0x3722e4),{'isElectron':_0x5a3fe9[_0x47d215(0x1dc)](Boolean,_0x4ff08d[_0x5a3fe9['PODvh']])});})['command'](_0x5a3fe9[_0x585c8f(0xd4)],'Switch\x20to\x20using\x20a\x20specific\x20profile',_0xb4fca3=>{const _0x4226ee=_0x585c8f;return _0xb4fca3[_0x4226ee(0x140)](_0x5a3fe9[_0x4226ee(0x9d)],{'type':_0x5a3fe9[_0x4226ee(0xf7)],'description':_0x5a3fe9[_0x4226ee(0x16c)],'demandOption':!![]});},async _0x4910d6=>{const _0x380e5a=_0x585c8f;await withTelemetry('profile\x20use',()=>useEnv(_0x4910d6[_0x380e5a(0x19c)]));})['command'](_0x5a3fe9['ITGcF'],_0x5a3fe9['DneOi'],_0x41bece=>{const _0xf9057=_0x585c8f;return _0x41bece['positional'](_0x5a3fe9[_0xf9057(0xd1)],{'type':_0xf9057(0x108),'description':'Profile\x20name','demandOption':!![]});},async _0x1d2b77=>{const _0x1e8cea=_0x585c8f;await _0x5a3fe9[_0x1e8cea(0x7a)](withTelemetry,_0x1e8cea(0x96),()=>authEncrypt(_0x1d2b77[_0x1e8cea(0x1a3)]));})['command']('ls',_0x5a3fe9[_0x585c8f(0x196)],()=>{},async()=>{const _0x52b26=_0x585c8f;await _0x5a3fe9[_0x52b26(0x7a)](withTelemetry,_0x5a3fe9['hMEiM'],()=>envList());})[_0x585c8f(0x10f)](_0x585c8f(0xb0),_0x5a3fe9[_0x585c8f(0x1bf)],_0x5697d6=>{const _0x284a29=_0x585c8f;return _0x5697d6['positional']('profile-name',{'type':_0x5a3fe9[_0x284a29(0xf7)],'description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]})[_0x284a29(0x1aa)](_0x284a29(0x10a),{'type':_0x5a3fe9[_0x284a29(0xa5)],'description':_0x284a29(0x17b)});},async _0x53c529=>{const _0x1d96d1=_0x585c8f;await _0x5a3fe9['fVAZa'](withTelemetry,'profile\x20update',_0x40a6e4=>updateEnv(_0x53c529['profile-name'],_0x40a6e4,{'allowInsecureLocalhost':_0x53c529[_0x1d96d1(0x10a)]}));})[_0x585c8f(0x10f)](_0x5a3fe9[_0x585c8f(0xd5)],_0x5a3fe9[_0x585c8f(0x176)],_0x48218c=>{const _0x511e2d=_0x585c8f,_0x2f04c1={'cdMgP':'string','DOtSz':_0x5a3fe9['OeOES'],'uUqUc':_0x511e2d(0x1a3),'ehxqS':_0x511e2d(0x118),'DTSAY':'Profile\x20name','mPJuB':function(_0x57d72e,_0x1ab2e4,_0x1869fb){return _0x5a3fe9['dOCHJ'](_0x57d72e,_0x1ab2e4,_0x1869fb);},'fgSII':_0x5a3fe9['QnBSa'],'MVQWZ':'profile\x20config\x20unset'};return _0x48218c[_0x511e2d(0xde)](PROFILE_CONFIG_HELP)[_0x511e2d(0x10f)](_0x5a3fe9['tixNE'],_0x5a3fe9['MWjQM'],_0x35be79=>{const _0x4599bc=_0x511e2d;return _0x35be79[_0x4599bc(0x140)]('profile',{'type':_0x2f04c1[_0x4599bc(0x104)],'description':_0x4599bc(0x103),'demandOption':!![]})[_0x4599bc(0x140)](_0x4599bc(0x114),{'type':'string','description':_0x2f04c1['DOtSz'],'demandOption':!![]})['positional']('value',{'type':_0x2f04c1['cdMgP'],'description':'Config\x20value','demandOption':!![]});},async _0x161d52=>{const _0x4ad62d=_0x511e2d;await withTelemetry(_0x5a3fe9[_0x4ad62d(0x146)],()=>configSet(_0x161d52[_0x4ad62d(0x1a3)],_0x161d52[_0x4ad62d(0x114)],_0x161d52[_0x4ad62d(0xdb)]));})['command'](_0x5a3fe9['vSIYV'],_0x511e2d(0x11b),_0x58ae03=>{const _0x3427f3=_0x511e2d;return _0x58ae03[_0x3427f3(0x140)](_0x2f04c1[_0x3427f3(0x119)],{'type':_0x2f04c1['cdMgP'],'description':'Profile\x20name','demandOption':!![]})[_0x3427f3(0x140)]('key',{'type':_0x3427f3(0x108),'description':_0x2f04c1[_0x3427f3(0x93)],'demandOption':!![]});},async _0x288d3b=>{const _0x25dd8c=_0x511e2d;await _0x5a3fe9['fVAZa'](withTelemetry,_0x25dd8c(0x13b),()=>configGet(_0x288d3b[_0x25dd8c(0x1a3)],_0x288d3b['key']));})[_0x511e2d(0x10f)]('list\x20<profile>',_0x5a3fe9[_0x511e2d(0x1d1)],_0x46157c=>{const _0x18d295=_0x511e2d;return _0x46157c[_0x18d295(0x140)](_0x2f04c1[_0x18d295(0x119)],{'type':_0x2f04c1[_0x18d295(0x104)],'description':_0x2f04c1[_0x18d295(0x1cc)],'demandOption':!![]});},async _0x4e937d=>{const _0x40fa12=_0x511e2d;await _0x2f04c1[_0x40fa12(0x139)](withTelemetry,'profile\x20config\x20list',()=>configList(_0x4e937d[_0x40fa12(0x1a3)]));})['command'](_0x511e2d(0x11a),_0x511e2d(0x1d2),_0x16f603=>{const _0x3e9741=_0x511e2d;return _0x16f603['positional'](_0x2f04c1[_0x3e9741(0x119)],{'type':_0x2f04c1[_0x3e9741(0x104)],'description':_0x2f04c1[_0x3e9741(0x1cc)],'demandOption':!![]})['positional'](_0x3e9741(0x114),{'type':'string','description':_0x2f04c1[_0x3e9741(0xbb)],'demandOption':!![]});},async _0x484905=>{const _0x20a044=_0x511e2d;await withTelemetry(_0x2f04c1[_0x20a044(0xf5)],()=>configUnset(_0x484905[_0x20a044(0x1a3)],_0x484905[_0x20a044(0x114)]));})[_0x511e2d(0x163)](0x1,_0x5a3fe9['Awpjp']);})[_0x585c8f(0x163)](0x1,_0x5a3fe9['SraYf']);})['command']('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x1e682c={'utJJz':function(_0x16e731,_0xa8cafb,_0x414a95){return _0x16e731(_0xa8cafb,_0x414a95);},'rdqOC':'status'};await _0x1e682c['utJJz'](withTelemetry,_0x1e682c['rdqOC'],()=>status());})['command'](_0x43f580(0x150),_0x43f580(0x135),()=>{},async()=>{const _0x369f25={'Prpan':function(_0x10ddc5,_0xcbd963,_0x316a1b){return _0x10ddc5(_0xcbd963,_0x316a1b);}};await _0x369f25['Prpan'](withTelemetry,'update',()=>update());})['command']('print-access-token',_0x43f580(0xcf),()=>{},async()=>{const _0x31dbfe={'mrURB':'No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.','LSQBI':'print-access-token'};await withTelemetry(_0x31dbfe['LSQBI'],async()=>{const _0x5a79f0=_0x20c0,_0x2c4216=await getToken();if(!_0x2c4216)throw new Error(_0x31dbfe[_0x5a79f0(0x130)]);console['log'](_0x2c4216);});})['command']('go',_0x43f580(0xca),_0x3c0b5a=>{const _0x150c8e=_0x43f580,_0x529704={'uwYLV':_0x150c8e(0x1b7),'IKvBn':'string','SBKij':'notes','RqLAs':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','GNNhK':'scenario','HTuju':_0x150c8e(0x12d),'cRlBK':'boolean','lTkzf':_0x150c8e(0x1a9),'rTiBs':_0x150c8e(0x88),'AwHrS':'partial','kDBLk':_0x150c8e(0x7f),'ePBHM':_0x150c8e(0x9a),'gJqfL':'item'};return _0x3c0b5a[_0x150c8e(0x1aa)](_0x529704[_0x150c8e(0xf9)],{'type':_0x150c8e(0x108),'description':'Optional\x20feature\x20ID'})[_0x150c8e(0x1aa)]('profile',{'type':_0x529704[_0x150c8e(0x1ab)],'description':_0x150c8e(0x157)})[_0x150c8e(0x1aa)](_0x529704['SBKij'],{'type':_0x529704['IKvBn'],'description':_0x529704[_0x150c8e(0xa1)]})[_0x150c8e(0x1aa)](_0x529704[_0x150c8e(0x137)],{'type':_0x529704['HTuju'],'description':'Scenario\x20index\x20(1-based)'})[_0x150c8e(0x1aa)]('start-path',{'type':_0x529704['IKvBn'],'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})[_0x150c8e(0x1aa)]('model',{'type':'string','description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.'})[_0x150c8e(0x1aa)](_0x150c8e(0x9c),{'type':_0x529704['cRlBK'],'description':_0x529704['lTkzf'],'default':![]})['option'](_0x529704[_0x150c8e(0xa6)],{'type':_0x529704['IKvBn'],'hidden':!![],'choices':[_0x150c8e(0x159),_0x529704['AwHrS'],'blocked',_0x529704['kDBLk'],_0x150c8e(0x1d6)]})['option']('debug-address-comments',{'type':'boolean','hidden':!![]})[_0x150c8e(0x1aa)](_0x529704[_0x150c8e(0x1c5)],{'type':'string','hidden':!![]})[_0x150c8e(0x1aa)]('task',{'type':_0x529704['IKvBn'],'hidden':!![]})[_0x150c8e(0x1aa)](_0x529704['gJqfL'],{'type':_0x529704['HTuju'],'hidden':!![]});},async _0x5fa86a=>{await runGoCommand(_0x5fa86a);})[_0x43f580(0x10f)](_0x43f580(0xa8),![],_0x291e07=>{const _0x1d4528=_0x43f580,_0x401f73={'FLyuN':'string','uHuwO':'Profile\x20name','MWRYI':function(_0x3c25c6,_0x1a6e47,_0x5bd2d1){return _0x3c25c6(_0x1a6e47,_0x5bd2d1);},'ghDkX':_0x1d4528(0x141),'ObymC':'ranger\x20profile\x20encrypt-auth','DrHJs':function(_0x1af3f2,_0x532e61){return _0x1af3f2(_0x532e61);},'itLVj':_0x1d4528(0x155)};return _0x291e07['command'](_0x401f73['itLVj'],![],_0x372646=>{const _0x35ba26=_0x1d4528;return _0x372646[_0x35ba26(0x140)](_0x35ba26(0x1a3),{'type':_0x401f73[_0x35ba26(0xd0)],'description':_0x401f73['uHuwO'],'demandOption':!![]});},async _0x5243c3=>{const _0x2c4df8=_0x1d4528;_0x401f73['MWRYI'](warnRenamed,_0x401f73[_0x2c4df8(0xc6)],_0x401f73['ObymC']),await _0x401f73[_0x2c4df8(0xe1)](authEncrypt,_0x5243c3['profile']);})[_0x1d4528(0x163)](0x1,_0x1d4528(0x101));},()=>{})['command'](_0x43f580(0x1cf),![],_0x6a8484=>{const _0x41d836=_0x43f580,_0x242038={'Ktmvl':_0x41d836(0x19e),'iFSZZ':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','LoCez':_0x41d836(0x108),'EGVjL':_0x41d836(0x1a1),'PFvMJ':'force','rQyBA':_0x41d836(0x164)};return _0x6a8484[_0x41d836(0x140)](_0x242038[_0x41d836(0x16e)],{'type':'string','description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0x41d836(0x1aa)](_0x41d836(0xf1),{'type':'boolean','description':_0x242038[_0x41d836(0xab)],'default':![]})['option']('scope',{'type':_0x242038['LoCez'],'choices':['user',_0x242038['EGVjL']],'description':_0x41d836(0x15d)})[_0x41d836(0x1aa)]('url',{'type':_0x242038[_0x41d836(0x131)],'description':_0x41d836(0x1d3)})['option'](_0x242038[_0x41d836(0x7c)],{'type':_0x242038['rQyBA'],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]});},async _0x5165c7=>{const _0x462445=_0x43f580,_0x35a3c8={'neMyK':_0x462445(0x169),'MMuwm':_0x462445(0x112)};warnRenamed(_0x35a3c8['neMyK'],_0x35a3c8[_0x462445(0x10e)]),await withTelemetry('start',_0x11ee42=>start(_0x5165c7[_0x462445(0x19e)],{'skipChromium':_0x5165c7['skip-chromium'],'scope':_0x5165c7[_0x462445(0x162)],'url':_0x5165c7[_0x462445(0xbf)],'force':_0x5165c7[_0x462445(0xc5)]},_0x11ee42));})[_0x43f580(0x10f)](_0x43f580(0x1dd),![],_0x40170a=>{const _0x48ec02=_0x43f580,_0x598bc7={'FLTLq':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','cQZxi':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','vyRXH':_0x48ec02(0x190),'wZtVv':'profile','oukfp':'notes','RgzwL':_0x48ec02(0x108),'IXPAh':_0x48ec02(0x1b9),'uULlR':_0x48ec02(0x1a0),'sXipY':'blocked'};return _0x40170a[_0x48ec02(0x1aa)]('env',{'type':'string','description':_0x598bc7['FLTLq']})[_0x48ec02(0x1aa)]('task',{'type':'string','description':_0x598bc7['cQZxi']})['option'](_0x48ec02(0x1ae),{'type':_0x48ec02(0x12d),'description':_0x598bc7['vyRXH']})['option'](_0x598bc7['wZtVv'],{'type':_0x48ec02(0x108),'hidden':!![]})['option'](_0x598bc7['oukfp'],{'type':_0x598bc7[_0x48ec02(0xb6)],'hidden':!![]})['option'](_0x48ec02(0xf0),{'type':'number','hidden':!![]})['option']('start-path',{'type':_0x598bc7['RgzwL'],'description':_0x48ec02(0x128)})[_0x48ec02(0x1aa)](_0x598bc7['IXPAh'],{'type':_0x48ec02(0x108),'hidden':!![]})[_0x48ec02(0x1aa)]('headed',{'type':'boolean','hidden':!![],'default':![]})['option'](_0x48ec02(0x88),{'type':'string','hidden':!![],'choices':[_0x48ec02(0x159),_0x598bc7[_0x48ec02(0x198)],_0x598bc7[_0x48ec02(0x132)],_0x48ec02(0x7f),'incomplete']});},async _0x382d97=>{const _0x415718=_0x43f580,_0x590960={'KLqmU':function(_0x3fdd63,_0x3c898d,_0x5469df){return _0x3fdd63(_0x3c898d,_0x5469df);}};await _0x590960[_0x415718(0x138)](runGoCommand,_0x382d97,!![]);})['command'](_0x43f580(0x160),![],_0x49d0b8=>{const _0x7298bc=_0x43f580,_0x3a25c6={'bmmbl':'env-name','oAaZb':_0x7298bc(0x164),'pBvtn':'skip-auth'};return _0x49d0b8[_0x7298bc(0x140)](_0x3a25c6[_0x7298bc(0xfd)],{'type':'string','description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0x7298bc(0x1aa)]('ci',{'type':_0x3a25c6['oAaZb'],'description':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0x7298bc(0x1aa)](_0x3a25c6[_0x7298bc(0x180)],{'type':_0x3a25c6['oAaZb'],'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]});},async _0x406e95=>{const _0xe77d8c={'nmhLw':function(_0x45347f,_0x25bec8,_0x9077c3){return _0x45347f(_0x25bec8,_0x9077c3);},'tdJbV':'ranger\x20add\x20env','bBNzT':'ranger\x20profile\x20add'};_0xe77d8c['nmhLw'](warnRenamed,_0xe77d8c['tdJbV'],_0xe77d8c['bBNzT']),await withTelemetry('add\x20env',_0x143005=>addEnv(_0x406e95['env-name'],{'ci':_0x406e95['ci'],'skipAuth':_0x406e95['skip-auth']},_0x143005));})[_0x43f580(0x10f)](_0x43f580(0xad),![],_0x456f13=>{const _0x214c6e=_0x43f580,_0x437e74={'obvws':_0x214c6e(0x108),'Dywtt':_0x214c6e(0x117)};return _0x456f13['positional'](_0x214c6e(0x90),{'type':_0x437e74[_0x214c6e(0x11c)],'description':_0x437e74['Dywtt'],'demandOption':!![]});},async _0x481f5b=>{const _0x1ba0c3=_0x43f580,_0x2e1b86={'XgxtH':function(_0x33f321,_0x337a21,_0x58b6b7){return _0x33f321(_0x337a21,_0x58b6b7);},'sLAPF':_0x1ba0c3(0xc7)};_0x2e1b86[_0x1ba0c3(0xb5)](warnRenamed,'ranger\x20use','ranger\x20profile\x20use'),await withTelemetry(_0x2e1b86['sLAPF'],()=>useEnv(_0x481f5b['env-name']));})['command']('config',![],_0x16e539=>{const _0x491380=_0x43f580,_0x1ad91d={'hshdE':'key','SXIrq':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','GSFWN':_0x491380(0xdb),'bmBup':'Config\x20value','JXZWV':'ranger\x20config\x20set','DoDrj':_0x491380(0x8b),'IROsx':function(_0x36de49,_0x2e1a42,_0x1ed1b8){return _0x36de49(_0x2e1a42,_0x1ed1b8);},'tsZIE':_0x491380(0x183),'GtLcx':'env','dnyrW':_0x491380(0x108),'ZSLXJ':'Environment\x20name','CZPUl':'Config\x20key','HdBRp':'ranger\x20config\x20get','XGhyt':_0x491380(0xaa),'vaovc':function(_0x299c8a,_0x3fc44e,_0xb1a2d5){return _0x299c8a(_0x3fc44e,_0xb1a2d5);},'uEwGW':'config\x20get','RRiuz':'Config\x20key\x20to\x20remove','IZuJn':function(_0x4fcf4f,_0x1d5bf2,_0x3fec25){return _0x4fcf4f(_0x1d5bf2,_0x3fec25);},'rChhN':_0x491380(0x172),'xAjpD':_0x491380(0xb1),'hNeqw':'list\x20<env>','dLUyc':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x16e539['command'](_0x1ad91d[_0x491380(0x178)],![],_0x4a6c59=>{const _0x5c2a37=_0x491380;return _0x4a6c59['positional'](_0x5c2a37(0x9a),{'type':'string','description':_0x5c2a37(0x7b),'demandOption':!![]})['positional'](_0x1ad91d['hshdE'],{'type':'string','description':_0x1ad91d['SXIrq'],'demandOption':!![]})[_0x5c2a37(0x140)](_0x1ad91d[_0x5c2a37(0xfa)],{'type':'string','description':_0x1ad91d['bmBup'],'demandOption':!![]});},async _0x3f9939=>{const _0x1e1c7e=_0x491380;warnRenamed(_0x1ad91d[_0x1e1c7e(0x122)],_0x1ad91d[_0x1e1c7e(0xb4)]),await _0x1ad91d[_0x1e1c7e(0x185)](withTelemetry,_0x1ad91d[_0x1e1c7e(0x7d)],()=>configSet(_0x3f9939[_0x1e1c7e(0x9a)],_0x3f9939[_0x1e1c7e(0x114)],_0x3f9939['value']));})['command'](_0x1ad91d['xAjpD'],![],_0x5ea7d2=>{const _0x35e93e=_0x491380;return _0x5ea7d2[_0x35e93e(0x140)](_0x1ad91d['GtLcx'],{'type':_0x1ad91d['dnyrW'],'description':_0x1ad91d['ZSLXJ'],'demandOption':!![]})[_0x35e93e(0x140)](_0x35e93e(0x114),{'type':_0x35e93e(0x108),'description':_0x1ad91d['CZPUl'],'demandOption':!![]});},async _0x1acffd=>{const _0x77cae1=_0x491380;warnRenamed(_0x1ad91d[_0x77cae1(0x18f)],_0x1ad91d['XGhyt']),await _0x1ad91d['vaovc'](withTelemetry,_0x1ad91d['uEwGW'],()=>configGet(_0x1acffd[_0x77cae1(0x9a)],_0x1acffd[_0x77cae1(0x114)]));})[_0x491380(0x10f)](_0x1ad91d[_0x491380(0x136)],![],_0x4aedb7=>{const _0x183c79=_0x491380;return _0x4aedb7[_0x183c79(0x140)]('env',{'type':_0x183c79(0x108),'description':'Environment\x20name','demandOption':!![]});},async _0x568a47=>{const _0x112050=_0x491380;_0x1ad91d[_0x112050(0x177)](warnRenamed,'ranger\x20config\x20list',_0x112050(0x127)),await withTelemetry('config\x20list',()=>configList(_0x568a47[_0x112050(0x9a)]));})['command'](_0x491380(0xa4),![],_0x17a4de=>{const _0xce3d0b=_0x491380;return _0x17a4de[_0xce3d0b(0x140)]('env',{'type':'string','description':_0x1ad91d['ZSLXJ'],'demandOption':!![]})[_0xce3d0b(0x140)](_0xce3d0b(0x114),{'type':_0x1ad91d['dnyrW'],'description':_0x1ad91d[_0xce3d0b(0x15e)],'demandOption':!![]});},async _0x5c053c=>{const _0xbc51ca=_0x491380;_0x1ad91d['vaovc'](warnRenamed,'ranger\x20config\x20unset','ranger\x20profile\x20config\x20unset'),await _0x1ad91d[_0xbc51ca(0x173)](withTelemetry,_0xbc51ca(0x1a6),()=>configUnset(_0x5c053c[_0xbc51ca(0x9a)],_0x5c053c['key']));})[_0x491380(0x163)](0x1,_0x1ad91d['dLUyc']);})[_0x43f580(0x10f)]('env',![],_0x1d7998=>{const _0x297e46=_0x43f580,_0x4f883f={'jJfQZ':'ranger\x20env\x20ls','riijc':function(_0x3f34c7,_0x6ba299,_0x5bbf86){return _0x3f34c7(_0x6ba299,_0x5bbf86);},'oQkWb':'env\x20list','JAZAV':_0x297e46(0x90),'khlaD':'env\x20update','JUKrg':_0x297e46(0x95)};return _0x1d7998['command']('ls',![],()=>{},async()=>{const _0x279d57=_0x297e46;warnRenamed(_0x4f883f[_0x279d57(0x10c)],_0x279d57(0xb2)),await _0x4f883f['riijc'](withTelemetry,_0x4f883f['oQkWb'],()=>envList());})['command'](_0x297e46(0x1c0),![],_0x3090fb=>{const _0x3add53=_0x297e46;return _0x3090fb[_0x3add53(0x140)](_0x4f883f[_0x3add53(0x106)],{'type':_0x3add53(0x108),'description':_0x3add53(0x1a2),'demandOption':!![]});},async _0x1cc455=>{const _0x157312=_0x297e46;_0x4f883f[_0x157312(0xac)](warnRenamed,_0x157312(0x1b1),_0x157312(0x7e)),await withTelemetry(_0x4f883f['khlaD'],_0x145266=>updateEnv(_0x1cc455[_0x157312(0x90)],_0x145266));})[_0x297e46(0x163)](0x1,_0x4f883f[_0x297e46(0x1d9)]);})[_0x43f580(0x10f)](_0x43f580(0x1b7),![],_0x500894=>{const _0x30644a=_0x43f580,_0x537c4f={'FTmfS':'name','jmDWB':'Feature\x20review\x20name','GzhYw':_0x30644a(0xfe),'iwIdU':_0x30644a(0xf0),'gKfCf':function(_0x4ccc27,_0x4b632c,_0x4cb4f4){return _0x4ccc27(_0x4b632c,_0x4cb4f4);},'ZqMQF':_0x30644a(0xed),'hdYaY':function(_0x4d9142,_0x18cf93,_0x352f42,_0x11676b){return _0x4d9142(_0x18cf93,_0x352f42,_0x11676b);},'Audjv':'--scenario','hIPia':_0x30644a(0x15b),'Uibdc':_0x30644a(0x12d),'JqNBX':_0x30644a(0x194),'VnfPK':_0x30644a(0x164),'clUJq':_0x30644a(0x1d7),'GTTGt':_0x30644a(0xe3),'KkTin':'ranger\x20list','yMzBk':_0x30644a(0xb8),'Fkhwa':'Feature\x20review\x20ID','dNOis':'feature\x20show','EbwBg':'string','wQFkt':function(_0x3008ae,_0x27e7b5,_0x562a6c){return _0x3008ae(_0x27e7b5,_0x562a6c);},'WdKwL':_0x30644a(0x181),'fUkJz':function(_0x1eb07b,_0x192833,_0x46832a){return _0x1eb07b(_0x192833,_0x46832a);},'CiFYY':'description','PvoTO':'Scenario\x20description','WEqfS':_0x30644a(0x113),'dgdOW':'feature\x20add-checklist-item','BASZq':function(_0x4791df,_0x2650ba,_0x44c36d){return _0x4791df(_0x2650ba,_0x44c36d);},'JjHnD':_0x30644a(0x165),'rtwpG':'ranger\x20get-review','dIkhz':'ranger\x20feature\x20delete','Egujw':function(_0x2b5d96,_0x44af59,_0x169089){return _0x2b5d96(_0x44af59,_0x169089);},'nFQrO':'Feature\x20review\x20ID\x20to\x20restore','moWhZ':'create\x20<name>','VvtYu':_0x30644a(0xd7),'beTBj':_0x30644a(0xcc),'oBYej':'resume\x20[id]','uPgpb':_0x30644a(0x109),'kLrnT':_0x30644a(0x1b4)};return _0x500894[_0x30644a(0x10f)](_0x537c4f['moWhZ'],![],_0x3bb060=>{const _0x510db3=_0x30644a;return _0x3bb060[_0x510db3(0x140)](_0x537c4f['FTmfS'],{'type':_0x510db3(0x108),'description':_0x537c4f[_0x510db3(0x166)],'demandOption':!![]})['option'](_0x510db3(0xa3),{'type':_0x510db3(0x108),'alias':'d','description':_0x510db3(0x187)})['option'](_0x537c4f[_0x510db3(0x154)],{'type':_0x510db3(0x10b),'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})[_0x510db3(0x1aa)](_0x537c4f[_0x510db3(0x145)],{'type':_0x510db3(0x10b),'hidden':!![]});},async _0x2de457=>{const _0x2e0b6a=_0x30644a;_0x537c4f[_0x2e0b6a(0x1e0)](warnRenamed,_0x2e0b6a(0x123),_0x537c4f[_0x2e0b6a(0xc3)]),_0x537c4f[_0x2e0b6a(0xf2)](warnFlagRenamed,_0x537c4f['ZqMQF'],_0x2e0b6a(0x199),_0x537c4f[_0x2e0b6a(0x188)]);const _0x4a2898=_0x2de457['scenario']||_0x2de457[_0x2e0b6a(0xfe)];await _0x537c4f[_0x2e0b6a(0x1e0)](withTelemetry,_0x2e0b6a(0xce),()=>featureCreate(_0x2de457[_0x2e0b6a(0x12b)],{'description':_0x2de457['description'],'scenarios':_0x4a2898}));})[_0x30644a(0x10f)](_0x537c4f[_0x30644a(0x149)],![],_0x2d15a3=>{const _0x555f77=_0x30644a;return _0x2d15a3['option'](_0x555f77(0xcb),{'type':'boolean','description':_0x555f77(0xea)})['option']('limit',{'type':_0x555f77(0x12d),'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option'](_0x537c4f['hIPia'],{'type':_0x537c4f[_0x555f77(0x8c)],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x555f77(0x1aa)](_0x537c4f['JqNBX'],{'type':_0x537c4f[_0x555f77(0x110)],'alias':'d','description':_0x537c4f[_0x555f77(0x18a)],'default':![]});},async _0x9eb3d3=>{const _0x35e121=_0x30644a;_0x537c4f[_0x35e121(0x1e0)](warnRenamed,_0x537c4f['GTTGt'],_0x537c4f[_0x35e121(0x156)]),await withTelemetry(_0x537c4f['yMzBk'],()=>featureList({'currentBranch':_0x9eb3d3['current-branch'],'limit':_0x9eb3d3[_0x35e121(0xa2)],'offset':_0x9eb3d3[_0x35e121(0x15b)],'includeDeleted':_0x9eb3d3['include-deleted']}));})['command'](_0x537c4f[_0x30644a(0x1ba)],![],_0x170720=>{const _0x1f0b04=_0x30644a;return _0x170720['positional']('id',{'type':'string','description':_0x537c4f[_0x1f0b04(0xc2)]});},async _0x4d92f6=>{const _0x51fcb4=_0x30644a;warnRenamed(_0x51fcb4(0x1d5),_0x51fcb4(0x11f)),await withTelemetry(_0x537c4f[_0x51fcb4(0x143)],()=>featureShow(_0x4d92f6['id']));})['command'](_0x537c4f['oBYej'],![],_0x536f48=>{const _0x1eb9ed=_0x30644a;return _0x536f48[_0x1eb9ed(0x140)]('id',{'type':_0x537c4f['EbwBg'],'description':_0x1eb9ed(0x14a)});},async _0x5e834f=>{const _0x77a435=_0x30644a;_0x537c4f['wQFkt'](warnRenamed,_0x537c4f[_0x77a435(0xe4)],_0x77a435(0x133)),await _0x537c4f['fUkJz'](withTelemetry,'feature\x20resume',()=>featureResume(_0x5e834f['id']));})['command'](_0x30644a(0x1b6),![],_0x113eb3=>{const _0x1a9c4b=_0x30644a;return _0x113eb3['positional'](_0x537c4f['CiFYY'],{'type':_0x537c4f['EbwBg'],'description':_0x537c4f['PvoTO'],'demandOption':!![]})[_0x1a9c4b(0x1aa)]('id',{'type':'string','description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0xeecb51=>{const _0x378df2=_0x30644a;warnRenamed('ranger\x20feature\x20add-checklist-item',_0x537c4f['WEqfS']),await withTelemetry(_0x537c4f[_0x378df2(0x1af)],()=>featureAddScenario(_0xeecb51['description'],_0xeecb51['id']));})[_0x30644a(0x10f)](_0x30644a(0x12e),![],_0x3f3233=>{const _0x11254b=_0x30644a;return _0x3f3233[_0x11254b(0x140)]('id',{'type':_0x537c4f['EbwBg'],'description':_0x11254b(0x81)});},async _0x268120=>{const _0x2fbbe1=_0x30644a;_0x537c4f[_0x2fbbe1(0xfb)](warnRenamed,_0x537c4f[_0x2fbbe1(0x100)],_0x537c4f['rtwpG']),await withTelemetry(_0x2fbbe1(0x102),()=>featureGetReview(_0x268120['id']));})[_0x30644a(0x10f)](_0x537c4f['uPgpb'],![],_0x2710ba=>{const _0x168d87=_0x30644a;return _0x2710ba['positional']('id',{'type':_0x168d87(0x108),'description':_0x168d87(0x151)});},async _0x49afd0=>{const _0x54dea6=_0x30644a;_0x537c4f['fUkJz'](warnRenamed,_0x537c4f[_0x54dea6(0x1bb)],_0x54dea6(0x13a)),await _0x537c4f[_0x54dea6(0x99)](withTelemetry,_0x54dea6(0x15f),()=>featureDelete(_0x49afd0['id']));})['command'](_0x537c4f[_0x30644a(0x17d)],![],_0x3439ca=>{const _0x13bb68=_0x30644a;return _0x3439ca['positional']('id',{'type':_0x13bb68(0x108),'description':_0x537c4f['nFQrO'],'demandOption':!![]});},async _0x3384e5=>{const _0x5e45b3=_0x30644a;warnRenamed(_0x5e45b3(0x11d),'ranger\x20restore'),await withTelemetry('feature\x20restore',()=>featureRestore(_0x3384e5['id']));})[_0x30644a(0x163)](0x1,'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand');})[_0x43f580(0x10f)](_0x43f580(0xf6),![],_0x26dff2=>{const _0x2a325a=_0x43f580,_0x143ade={'AoMBN':_0x2a325a(0x108),'vyCGN':function(_0x254ace,_0x419a62,_0x15ce97){return _0x254ace(_0x419a62,_0x15ce97);},'peEAP':'hook:disable','DdrRj':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','GWFdl':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','xnWVd':'session-id'};return _0x26dff2[_0x2a325a(0x10f)]('enable',_0x2a325a(0x1c1),_0x520f58=>{const _0x21614f=_0x2a325a;return _0x520f58['option'](_0x21614f(0x94),{'type':_0x143ade[_0x21614f(0x116)],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x24ead6=>{const _0xdb589f=_0x2a325a;await _0x143ade['vyCGN'](withTelemetry,'hook:enable',()=>hook(_0xdb589f(0x1d0),_0x24ead6['session-id']));})['command'](_0x2a325a(0x1a5),_0x143ade[_0x2a325a(0x1c6)],_0x58a108=>{return _0x58a108['option']('session-id',{'type':_0x143ade['AoMBN'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x534fc0=>{const _0x655d7f=_0x2a325a;await _0x143ade[_0x655d7f(0x153)](withTelemetry,_0x143ade['peEAP'],()=>hook('disable',_0x534fc0['session-id']));})[_0x2a325a(0x1aa)]('name',{'type':_0x143ade[_0x2a325a(0x116)],'description':_0x143ade[_0x2a325a(0x14d)]})[_0x2a325a(0x1aa)](_0x143ade['xnWVd'],{'type':_0x2a325a(0x108),'description':_0x2a325a(0x17a)});},async _0x1771ff=>{const _0x160b9d=_0x43f580,_0x341126={'lqVkU':function(_0x4948da,_0x3df91b,_0x4daa49){return _0x4948da(_0x3df91b,_0x4daa49);},'aCSHh':_0x160b9d(0x94)};_0x1771ff[_0x160b9d(0x12b)]&&await _0x341126['lqVkU'](hook,_0x1771ff[_0x160b9d(0x12b)],_0x1771ff[_0x341126['aCSHh']]);})[_0x43f580(0x163)](0x1,_0x43f580(0xc8))[_0x43f580(0x197)]()['fail'](async(_0x3dd0bd,_0x217f10,_0x3c6cee)=>{const _0x5b99d8=_0x43f580,_0x2af043={'HDzkh':function(_0x4cda64,_0x317ac2){return _0x4cda64||_0x317ac2;}},_0x116899=sanitizeArgs(process[_0x5b99d8(0xb3)][_0x5b99d8(0x171)](0x2)),_0x2344b6=getErrorType(_0x3dd0bd,_0x217f10);if(_0x3dd0bd&&_0x3dd0bd['includes']('Unknown\x20command')){const _0x44eb7a=process['argv'][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x44eb7a),console[_0x5b99d8(0xd3)]('Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a');}else{if(_0x3dd0bd)console['error']('\x0a'+_0x3dd0bd+'\x0a');else _0x217f10&&console[_0x5b99d8(0xd3)](_0x5b99d8(0x1ca)+_0x217f10[_0x5b99d8(0xe2)]+'\x0a');}await logDesirePath({'rawCommand':_0x116899,'errorMessage':_0x3dd0bd||_0x217f10?.[_0x5b99d8(0xe2)],'errorType':_0x2344b6});const _0x196815=getCurrentCollector();_0x196815&&await _0x196815['trackCommandError'](_0x217f10||new Error(_0x2af043[_0x5b99d8(0x8a)](_0x3dd0bd,'Unknown\x20error'))),process['exit'](0x1);})[_0x43f580(0x86)](_0x43f580(0x1ad)+_0x43f580(0x134)+_0x43f580(0xc0))['help']()[_0x43f580(0x195)](_0x43f580(0x1da),'h')[_0x43f580(0x1a7)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x653d53,_0x5afa3d){const _0x29cb69=_0x4265,_0x1e3186=_0x653d53();while(!![]){try{const _0x1ea501=parseInt(_0x29cb69(0x189))/0x1+parseInt(_0x29cb69(0x1c7))/0x2+parseInt(_0x29cb69(0x1d1))/0x3*(parseInt(_0x29cb69(0x1be))/0x4)+-parseInt(_0x29cb69(0x1a4))/0x5+-parseInt(_0x29cb69(0x1ca))/0x6+parseInt(_0x29cb69(0x188))/0x7*(parseInt(_0x29cb69(0x1aa))/0x8)+-parseInt(_0x29cb69(0x1e2))/0x9;if(_0x1ea501===_0x5afa3d)break;else _0x1e3186['push'](_0x1e3186['shift']());}catch(_0x5ece59){_0x1e3186['push'](_0x1e3186['shift']());}}}(_0x58b6,0x4d66d));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0xd5400b from'inquirer';import{chromium}from'playwright';function _0x4265(_0x2631a4,_0x28f370){_0x2631a4=_0x2631a4-0x16a;const _0x58b6de=_0x58b6();let _0x426547=_0x58b6de[_0x2631a4];return _0x426547;}import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0x58b6(){const _0x3006c9=['oYtec','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','SwqVV','โ\x20Auth\x20state\x20saved\x20to:\x20','slice','PjlwA','newPage','isElectron','status','close','isTTY','\x0a\x20\x20\x20โ \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','gweUR','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','qvsSP','LBcqX','mOiRQ','zWRyk','98JJBfrZ','136090dfrUtF','baoqS','baseUrl','cdpEndpoint','safeMode','Aborted.','action','retry','auth.json','HEAD','includes','NODE_TLS_REJECT_UNAUTHORIZED','suUZM','Invalid\x20URL','nfjBz','length','WoNNr','Rpbai','yScLd','SFwIc','use_suggestion','catch','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','dHsfL','\x0a๐\x20Profile\x20Setup\x0a','list','trackPhaseStart','1162705ScrHjb','signal','\x20\x20\x20Creating\x20it\x20in\x20','Profile\x20\x22','log','setupHeaders','51952xUAtBO','wnQxr','Enter\x20a\x20different\x20URL','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','pGhkf','NNwHL','CygyG','UbnKi','isProtocolError','launch','mjqaR','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','\x22\x20already\x20exists\x20in\x20','โ \x20Could\x20not\x20reach\x20','sjWHR','trim','HTTP\x20','โ\x20Created\x20settings:\x20','input','http://','84ovtXVa','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','message','--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.','Removed\x20existing\x20profile\x20at\x20','zQLGc','goto','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','DcgPC','227344USKVWw','path','Use\x20','637404boMEtl','LVeyk','test','ibeHj','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','WfPfK','OnRvL','89811oLNkcw','\x20\x20ranger\x20profile\x20add\x20','wcPaz','confirm','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','env','FUUCT','url','kCXav','about:blank','location','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','nEgoG','lPXwn','trackPhaseEnd','prompt','error','2821887QkkJDx','\x20\x20Did\x20you\x20mean\x20','\x0a\x20\x20Could\x20not\x20reach\x20','CLHkc','fetch\x20failed','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','force','setupHeader','\x20(continuing\x20with\x20--force)','name','now'];_0x58b6=function(){return _0x3006c9;};return _0x58b6();}import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x3c1cf6){const _0x3e7058=_0x4265,_0x3de19c={'wsUga':function(_0x57b8d8,_0x39b9e8,_0x1faf28){return _0x57b8d8(_0x39b9e8,_0x1faf28);},'zcYUI':_0x3e7058(0x192),'kCXav':'manual','CygyG':function(_0x5573c2,_0x7f0914){return _0x5573c2(_0x7f0914);},'wnQxr':function(_0x15e92a,_0x190a24){return _0x15e92a<_0x190a24;},'nfjBz':function(_0x4be1cb,_0x4c8ea9){return _0x4be1cb===_0x4c8ea9;},'baoqS':'TypeError'};try{const _0x54031a=new AbortController(),_0x2acd41=_0x3de19c['wsUga'](setTimeout,()=>_0x54031a['abort'](),0x1388),_0x357682={'method':_0x3de19c['zcYUI'],'signal':_0x54031a[_0x3e7058(0x1a5)],'redirect':_0x3de19c[_0x3e7058(0x1d9)]};/^https:\/\/localhost(:\d+)?/i['test'](_0x3c1cf6)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x39c29c=await fetch(_0x3c1cf6,_0x357682);delete process['env'][_0x3e7058(0x194)],_0x3de19c[_0x3e7058(0x1b0)](clearTimeout,_0x2acd41);if(_0x3de19c[_0x3e7058(0x1ab)](_0x39c29c[_0x3e7058(0x17d)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x3e7058(0x1ba)+_0x39c29c[_0x3e7058(0x17d)]};}catch(_0x5d6200){delete process[_0x3e7058(0x1d6)][_0x3e7058(0x194)];const _0x4feec9=_0x5d6200,_0x12b5b=_0x4feec9[_0x3e7058(0x1c0)]||String(_0x5d6200),_0x33d25c=_0x12b5b[_0x3e7058(0x193)](_0x3e7058(0x196))||_0x3de19c[_0x3e7058(0x197)](_0x4feec9[_0x3e7058(0x173)],_0x3de19c[_0x3e7058(0x18a)])||_0x12b5b[_0x3e7058(0x193)](_0x3e7058(0x16d));return{'ok':![],'error':_0x12b5b,'isProtocolError':_0x33d25c};}}export async function addEnv(_0x4fa8a7,_0xa7f067={},_0x409a85){const _0x34a96f=_0x4265,_0x253835={'CUFCR':function(_0x561839){return _0x561839();},'eWIPG':'local','ibeHj':function(_0x34cf37,_0x558e37){return _0x34cf37===_0x558e37;},'mjqaR':function(_0x17ae48,_0x2749c9){return _0x17ae48+_0x2749c9;},'zWRyk':function(_0x3ad61f,_0x550f22,_0x167e30){return _0x3ad61f(_0x550f22,_0x167e30);},'DcgPC':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','FUUCT':function(_0x1533a4,_0x9e382){return _0x1533a4(_0x9e382);},'suUZM':function(_0x552220,_0x116e21){return _0x552220(_0x116e21);},'WoNNr':_0x34a96f(0x1d4),'dHsfL':'overwrite','aBpOE':_0x34a96f(0x18e),'gNkMF':function(_0x108021,_0x5a5c7c){return _0x108021===_0x5a5c7c;},'SFwIc':'url_setup','reZnk':_0x34a96f(0x1a1),'oYtec':'\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','LBcqX':'baseUrl','OnRvL':_0x34a96f(0x176),'sjWHR':function(_0x1222bc,_0x917a20){return _0x1222bc||_0x917a20;},'PjlwA':function(_0x7e82ae,_0x419e96){return _0x7e82ae(_0x419e96);},'zQLGc':_0x34a96f(0x18f),'mOiRQ':_0x34a96f(0x190),'LVeyk':'Continue\x20anyway','WfPfK':function(_0x36d473,_0x597bba){return _0x36d473===_0x597bba;},'CLHkc':'continue','NNwHL':function(_0x5444f3,_0x530961,_0x5c3aaf){return _0x5444f3(_0x530961,_0x5c3aaf);},'SwqVV':_0x34a96f(0x191),'xlTsr':'browser_auth','SZnoh':'\x0a๐\x20Authentication\x20Setup','mNnmS':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','lPXwn':_0x34a96f(0x180),'qvsSP':function(_0x2fe39a,_0x4132c9){return _0x2fe39a>_0x4132c9;},'JRqNk':_0x34a96f(0x1da),'gweUR':function(_0x55c7ad,_0x2209d5,_0x1f5870){return _0x55c7ad(_0x2209d5,_0x1f5870);},'wcPaz':_0x34a96f(0x181),'SZtQw':function(_0x205634,_0x1565f9,_0x4d9924){return _0x205634(_0x1565f9,_0x4d9924);},'vuhjA':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','Rpbai':'config_write','ICicF':'settings.json','UbnKi':function(_0x8814e7,_0x278faa,_0xd3acca){return _0x8814e7(_0x278faa,_0xd3acca);},'yScLd':function(_0x3a85cc,_0x266149,_0x324822){return _0x3a85cc(_0x266149,_0x324822);},'cPdhu':function(_0x295392,_0x53e3f8,_0x12cf63){return _0x295392(_0x53e3f8,_0x12cf63);},'pGhkf':function(_0x1265c3,_0x45bfb9,_0x490e87){return _0x1265c3(_0x45bfb9,_0x490e87);},'YpLFY':_0x34a96f(0x183)},_0x2e0150=_0xa7f067['ci']??![],_0x29465b=_0x2e0150?'ci':_0x253835['eWIPG'],_0x272ad1=join(getRangerDir(),_0x29465b,_0x4fa8a7),_0x102c06={};if(_0xa7f067[_0x34a96f(0x171)])for(const _0x1ee359 of _0xa7f067[_0x34a96f(0x171)]){const _0x33830a=_0x1ee359['indexOf'](':');if(_0x253835[_0x34a96f(0x1cd)](_0x33830a,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x1ee359+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x28dc05=_0x1ee359['slice'](0x0,_0x33830a)['trim'](),_0x1bf207=_0x1ee359[_0x34a96f(0x179)](_0x253835[_0x34a96f(0x1b4)](_0x33830a,0x1))[_0x34a96f(0x1b9)]();_0x102c06[_0x28dc05]=_0x1bf207;}const _0x1c67d0=_0x253835['zWRyk'](join,getRangerDir(),_0x29465b);if(_0xa7f067['cdpEndpoint']!==undefined&&_0xa7f067['cdpEndpoint'][_0x34a96f(0x1b9)]()==='')throw new Error(_0x34a96f(0x1ad));if(_0xa7f067['cdpEndpoint']&&_0xa7f067[_0x34a96f(0x1d8)])throw new Error(_0x253835[_0x34a96f(0x1c6)]);if(_0xa7f067['cdpEndpoint']&&_0xa7f067['ci'])throw new Error(_0x34a96f(0x1c1));const _0x5cf905=_0x253835[_0x34a96f(0x1d7)](Boolean,_0xa7f067[_0x34a96f(0x18c)]),_0x2515d4=!_0xa7f067['skipAuth']&&!_0x5cf905,_0x2c2448=process['stdin'][_0x34a96f(0x17f)]&&process['stdout'][_0x34a96f(0x17f)];if(!_0x2c2448&&!_0xa7f067[_0x34a96f(0x1d8)]&&!_0x5cf905)throw new Error(_0x34a96f(0x1dc));const _0x245705=_0x253835['suUZM'](findExistingEnv,_0x4fa8a7);let _0x38a3e5=null;if(_0x245705){if(!_0x2c2448)_0x38a3e5=_0x245705;else{if(_0x245705[_0x34a96f(0x1db)]===_0x29465b){const {overwrite:_0xb7270a}=await _0xd5400b['prompt']([{'type':_0x253835['WoNNr'],'name':_0x253835[_0x34a96f(0x1a0)],'message':_0x34a96f(0x1a7)+_0x4fa8a7+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0xb7270a){console['log'](_0x253835['aBpOE']);return;}_0x38a3e5=_0x245705;}else{const _0x13efdd=_0x253835['gNkMF'](_0x245705['location'],'legacy')?'root\x20(.ranger/)':_0x245705[_0x34a96f(0x1db)];console[_0x34a96f(0x1e1)]('\x0aโ ๏ธ\x20\x20Profile\x20\x22'+_0x4fa8a7+_0x34a96f(0x1b6)+_0x13efdd+':\x20'+_0x245705['path']),console['error'](_0x34a96f(0x1a6)+_0x29465b+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x1e6dbc}=await _0xd5400b['prompt']([{'type':_0x253835[_0x34a96f(0x199)],'name':'shouldReplace','message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x29465b+'?','default':![]}]);if(!_0x1e6dbc){console[_0x34a96f(0x1a8)](_0x34a96f(0x18e));return;}_0x38a3e5=_0x245705;}}}_0x409a85?.[_0x34a96f(0x1a3)](_0x253835[_0x34a96f(0x19c)]);let _0x4e3bd6='';if(_0x5cf905)console['log']('\x0a๐\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0x34a96f(0x16f)+_0xa7f067['cdpEndpoint']),console[_0x34a96f(0x1a8)]('\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a');else{if(_0xa7f067[_0x34a96f(0x1d8)]){_0x4e3bd6=_0xa7f067['url'];const _0x14f04d=await _0x253835[_0x34a96f(0x195)](checkUrlReachability,_0x4e3bd6);if(!_0x14f04d['ok']&&!_0xa7f067[_0x34a96f(0x170)])throw new Error('Could\x20not\x20reach\x20'+_0x4e3bd6+':\x20'+_0x14f04d['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x14f04d['ok']&&_0xa7f067['force']&&console['log'](_0x34a96f(0x1b7)+_0x4e3bd6+':\x20'+_0x14f04d['error']+_0x34a96f(0x172));}else{console[_0x34a96f(0x1a8)](_0x253835['reZnk']),console['log'](_0x253835[_0x34a96f(0x175)]),console['log'](_0x34a96f(0x1ce));let _0x455b5c=![];while(!![]){const _0x15274e=await _0xd5400b['prompt']([{'type':_0x34a96f(0x1bc),'name':_0x253835[_0x34a96f(0x185)],'message':_0x455b5c?_0x253835[_0x34a96f(0x1d0)]:'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x253835['sjWHR'](_0x4e3bd6,'http://localhost:3000')}]);_0x4e3bd6=_0x15274e['baseUrl'];const _0x562414=await _0x253835[_0x34a96f(0x17a)](checkUrlReachability,_0x4e3bd6);if(_0x562414['ok'])break;const _0x10425a=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x4e3bd6),_0x5e9e4b=_0x562414[_0x34a96f(0x1b2)]&&!_0x10425a,_0x3c4457=_0x5e9e4b?_0x34a96f(0x1bd)+_0x4e3bd6:null;_0x455b5c=!![],console['log'](_0x34a96f(0x16b)+_0x4e3bd6+':\x20'+_0x562414['error']);_0x3c4457&&console[_0x34a96f(0x1a8)](_0x34a96f(0x16a)+_0x3c4457+'?');const {action:_0x2f16b2}=await _0xd5400b[_0x34a96f(0x1e0)]([{'type':_0x34a96f(0x1a2),'name':_0x253835[_0x34a96f(0x1c3)],'message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x3c4457?[{'name':_0x34a96f(0x1c9)+_0x3c4457,'value':_0x34a96f(0x19d)}]:[],{'name':_0x34a96f(0x1ac),'value':_0x253835[_0x34a96f(0x186)]},{'name':_0x253835[_0x34a96f(0x1cb)],'value':'continue'}]}]);if(_0x2f16b2==='use_suggestion'&&_0x3c4457){_0x4e3bd6=_0x3c4457;const _0x1530e8=await checkUrlReachability(_0x4e3bd6);if(_0x1530e8['ok'])break;console[_0x34a96f(0x1a8)](_0x34a96f(0x1c5)+_0x4e3bd6+':\x20'+_0x1530e8[_0x34a96f(0x1e1)]);}else{if(_0x253835[_0x34a96f(0x1cf)](_0x2f16b2,_0x253835[_0x34a96f(0x16c)]))break;}}}}_0x409a85?.['trackPhaseEnd'](_0x253835[_0x34a96f(0x19c)]);const _0x465066={};if(_0x38a3e5){const _0x477dad=await _0x253835['suUZM'](loadSettings,_0x4fa8a7);Object['assign'](_0x465066,_0x477dad[_0x34a96f(0x1a9)]);}Object['assign'](_0x465066,_0x102c06),await _0x253835[_0x34a96f(0x1af)](mkdir,_0x1c67d0,{'recursive':!![]});const _0x3cf8b1=await mkdtemp(join(_0x1c67d0,'.tmp-'+_0x4fa8a7+'-')),_0x3af929=_0x253835['zWRyk'](join,_0x3cf8b1,_0x253835[_0x34a96f(0x177)]),_0x27fd77=Boolean(_0x4e3bd6)&&/^https:\/\/localhost(:\d+)?/i[_0x34a96f(0x1cc)](_0x4e3bd6);try{if(_0x2515d4){_0x409a85?.['trackPhaseStart'](_0x253835['xlTsr']),console[_0x34a96f(0x1a8)](_0x253835['SZnoh']),console['log'](_0x253835['mNnmS']),console[_0x34a96f(0x1a8)]('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x2c2448?(console['log'](_0x253835[_0x34a96f(0x1de)]),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(_0x20f2e7=>setTimeout(_0x20f2e7,0xbb8));const _0x2d53a0=[];_0xa7f067[_0x34a96f(0x18d)]&&_0x2d53a0['push']('--disable-features=WebBluetooth');const _0x4f370e=_0xa7f067['allowInsecureLocalhost']||_0x27fd77;_0x4f370e&&_0x2d53a0['push']('--allow-insecure-localhost');const _0x6df970=await chromium[_0x34a96f(0x1b3)]({'headless':![],..._0x253835[_0x34a96f(0x184)](_0x2d53a0[_0x34a96f(0x198)],0x0)?{'args':_0x2d53a0}:{}});try{const _0x32aa05=Object['keys'](_0x465066)['length']>0x0,_0x225291={'ignoreHTTPSErrors':!![]};_0x32aa05&&(_0x225291['extraHTTPHeaders']=_0x465066);const _0x119069=await _0x6df970['newContext'](_0x225291);await addProfileSetupBanner(_0x119069);const _0x1c32e1=await _0x119069[_0x34a96f(0x17b)]();await _0x1c32e1[_0x34a96f(0x1c4)](_0x253835[_0x34a96f(0x1b8)](_0x4e3bd6,_0x253835['JRqNk']));let _0x50bcee=![];await new Promise(_0x32882a=>{const _0x5bad50=_0x34a96f,_0x425817={'nEgoG':function(_0x107ef2){return _0x253835['CUFCR'](_0x107ef2);}};_0x1c32e1['on'](_0x5bad50(0x17e),async()=>{const _0x390705=_0x5bad50;try{console['log']('Saving\x20authentication\x20state...'),await _0x119069['storageState']({'path':_0x3af929}),_0x50bcee=!![];}catch{}_0x425817[_0x390705(0x1dd)](_0x32882a);});});if(!_0x50bcee){console[_0x34a96f(0x1a8)](_0x34a96f(0x16e));!_0xa7f067['safeMode']&&(console[_0x34a96f(0x1a8)](_0x34a96f(0x1d5)),console[_0x34a96f(0x1a8)]('You\x20can\x20try\x20again\x20with\x20one\x20of:'),console['log'](_0x34a96f(0x1d2)+_0x4fa8a7+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x34a96f(0x1a8)]('\x20\x20ranger\x20profile\x20add\x20'+_0x4fa8a7+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x34a96f(0x19f));}}finally{await _0x6df970['close']()[_0x34a96f(0x19e)](()=>{});}if(_0x2e0150){const _0x1b772e=await _0x253835['gweUR'](readFile,_0x3af929,'utf-8'),_0x3b6675=await getToken();if(!_0x3b6675){console['error'](_0x253835[_0x34a96f(0x1d3)]),await unlink(_0x3af929)[_0x34a96f(0x19e)](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0xb1a4be=_0x253835['SZtQw'](encrypt,_0x1b772e,_0x3b6675);await _0x253835[_0x34a96f(0x1af)](writeFile,_0x3af929+'.enc',_0xb1a4be),await _0x253835[_0x34a96f(0x1d7)](unlink,_0x3af929),console[_0x34a96f(0x1a8)]('โ\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x3af929+'.enc'),console[_0x34a96f(0x1a8)](_0x253835['vuhjA']),console[_0x34a96f(0x1a8)]('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log'](_0x34a96f(0x178)+_0x3af929);_0x409a85?.[_0x34a96f(0x1df)]('browser_auth');}_0x409a85?.[_0x34a96f(0x1a3)](_0x253835['Rpbai']);const _0x522f3f={};_0x4e3bd6&&(_0x522f3f[_0x34a96f(0x18b)]=_0x4e3bd6);_0xa7f067[_0x34a96f(0x18c)]&&(_0x522f3f[_0x34a96f(0x18c)]=_0xa7f067['cdpEndpoint'],_0x522f3f[_0x34a96f(0x17c)]=!![]);(_0xa7f067['allowInsecureLocalhost']||_0x27fd77)&&(_0x522f3f['allowInsecureLocalhost']=!![]);_0xa7f067['safeMode']&&(_0x522f3f['safeMode']=!![]);_0x253835['qvsSP'](Object['keys'](_0x465066)[_0x34a96f(0x198)],0x0)&&(_0x522f3f[_0x34a96f(0x1a9)]=_0x465066);await writeFile(join(_0x3cf8b1,_0x253835['ICicF']),JSON['stringify'](_0x522f3f,null,0x2)),console['log'](_0x34a96f(0x1bb)+_0x253835[_0x34a96f(0x187)](join,_0x272ad1,'settings.json'));if(_0x253835[_0x34a96f(0x1cd)](_0x38a3e5?.['location'],_0x29465b)){const _0x29c9f9=_0x38a3e5['path']+'.backup-'+Date[_0x34a96f(0x174)]();await _0x253835[_0x34a96f(0x1b1)](rename,_0x38a3e5[_0x34a96f(0x1c8)],_0x29c9f9);try{await _0x253835[_0x34a96f(0x19b)](rename,_0x3cf8b1,_0x272ad1);}catch(_0xb0b755){await _0x253835['cPdhu'](rename,_0x29c9f9,_0x38a3e5[_0x34a96f(0x1c8)]);throw _0xb0b755;}try{await rm(_0x29c9f9,{'recursive':!![]});}catch{console[_0x34a96f(0x1a8)](_0x34a96f(0x1b5)+_0x29c9f9);}}else{await rename(_0x3cf8b1,_0x272ad1);if(_0x38a3e5)try{await _0x253835[_0x34a96f(0x1ae)](rm,_0x38a3e5[_0x34a96f(0x1c8)],{'recursive':!![]}),console[_0x34a96f(0x1a8)](_0x34a96f(0x1c2)+_0x38a3e5['path']);}catch{console[_0x34a96f(0x1a8)](_0x34a96f(0x1bf)+_0x38a3e5['path']);}}try{await _0x253835['suUZM'](writeActiveProfileName,_0x4fa8a7),console[_0x34a96f(0x1a8)]('\x20\x20Set\x20active\x20profile:\x20'+_0x4fa8a7);}catch{console[_0x34a96f(0x1a8)](_0x253835['YpLFY']);}_0x409a85?.['trackPhaseEnd'](_0x253835[_0x34a96f(0x19a)]),console['log']('\x0a\x20\x20Profile\x20\x22'+_0x4fa8a7+'\x22\x20configured');}catch(_0x1e56ed){await _0x253835[_0x34a96f(0x182)](rm,_0x3cf8b1,{'recursive':!![],'force':!![]});throw _0x1e56ed;}}
|
|
1
|
+
(function(_0x38eeaa,_0x566be8){const _0x3fa896=_0x1fea,_0x1adf6a=_0x38eeaa();while(!![]){try{const _0x175e44=parseInt(_0x3fa896(0xe7))/0x1+-parseInt(_0x3fa896(0xc7))/0x2*(parseInt(_0x3fa896(0xd3))/0x3)+-parseInt(_0x3fa896(0xae))/0x4+-parseInt(_0x3fa896(0xee))/0x5+-parseInt(_0x3fa896(0xe5))/0x6*(-parseInt(_0x3fa896(0xb0))/0x7)+-parseInt(_0x3fa896(0x9c))/0x8*(-parseInt(_0x3fa896(0xc8))/0x9)+parseInt(_0x3fa896(0xe3))/0xa;if(_0x175e44===_0x566be8)break;else _0x1adf6a['push'](_0x1adf6a['shift']());}catch(_0x4caa51){_0x1adf6a['push'](_0x1adf6a['shift']());}}}(_0x598d,0x73cde));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x39e706 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';function _0x1fea(_0x16aa06,_0x2ad67b){_0x16aa06=_0x16aa06-0x78;const _0x598d9d=_0x598d();let _0x1fea71=_0x598d9d[_0x16aa06];return _0x1fea71;}import{getToken}from'./utils/keychain.js';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';function _0x598d(){const _0xfd5bd9=['CHShG','Saving\x20authentication\x20state...','YiSpT','use_suggestion','--disable-features=WebBluetooth','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','extraHTTPHeaders','tfkzQ','message','Enter\x20a\x20different\x20URL','ySHTi','test','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','393032vmVkSO','696726IshJsl','path','legacy','utf-8','UxfAt','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','What\x20would\x20you\x20like\x20to\x20do?','url','โ\x20Encrypted\x20auth\x20saved\x20to:\x20','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','now','6pihUUB','isTTY','TypeError','http://localhost:3000','Invalid\x20URL','includes','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','error','continue','close','fNkUt','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','WhLUg','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','allowInsecureLocalhost','3058890IuaByP','\x20\x20Set\x20active\x20profile:\x20','6PetWLx','TnvCn','833198TDpdtu','\x22\x20configured','cXGsS','browser_auth','PIkTK','yacsT','vVgeP','249800cNcJbx','suXIf','--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.','\x0a\x20\x20\x20โ \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','indexOf','bZrSR','url_setup','shouldReplace','newContext','.backup-','PGAaJ','status','keys','retry','slice','NODE_TLS_REJECT_UNAUTHORIZED','\x0aโ ๏ธ\x20\x20Profile\x20\x22','length','You\x20can\x20try\x20again\x20with\x20one\x20of:','\x20(continuing\x20with\x20--force)','.enc','Aborted.','XyNYQ','prompt','user','\x20\x20Did\x20you\x20mean\x20','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','catch','newPage','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','gfDsW','location','piUUJ','yoURy','trackPhaseEnd','bJEfW','assign','nMvbB','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','config_write','signal','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','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','xLzHi','eezKK','scope','baseUrl','about:blank','\x20\x20ranger\x20profile\x20add\x20','tqVch','ZZiQx','\x0a๐\x20Profile\x20Setup\x0a','โ\x20Auth\x20state\x20saved\x20to:\x20','24JkdkpM','settings.json','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','QHMBd','Invalid\x20--setup-header\x20format:\x20\x22','MsYEN','Use\x20','setupHeader','Removed\x20existing\x20profile\x20at\x20','cdpEndpoint','DyqZJ','aUTJZ','safeMode','fetch\x20failed','force','isElectron','stdout','log','1825288MzEpLk','kvoCv','16233jiOwCR','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','skipAuth','XHIUr','dYzFT','GCYas','Could\x20not\x20reach\x20','YIRla','env','DMSCs'];_0x598d=function(){return _0xfd5bd9;};return _0x598d();}import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x138d52){const _0x2709c8=_0x1fea,_0x33a9ec={'NEeWz':function(_0x211370,_0x1c3f44,_0x3ea0f2){return _0x211370(_0x1c3f44,_0x3ea0f2);},'CHShG':'HEAD','FJxQK':'manual','tfkzQ':function(_0x520c77,_0x41ceb7){return _0x520c77(_0x41ceb7);},'IqkKm':function(_0x5f3438,_0x21c7ac){return _0x5f3438(_0x21c7ac);},'phTpG':_0x2709c8(0xd7),'MsYEN':function(_0x303f82,_0x1bc4c9){return _0x303f82===_0x1bc4c9;},'aUTJZ':_0x2709c8(0xd5),'Kusbi':_0x2709c8(0xa9)};try{const _0x5b9e57=new AbortController(),_0x186160=_0x33a9ec['NEeWz'](setTimeout,()=>_0x5b9e57['abort'](),0x1388),_0x4c2395={'method':_0x33a9ec[_0x2709c8(0xba)],'signal':_0x5b9e57[_0x2709c8(0x8d)],'redirect':_0x33a9ec['FJxQK']};/^https:\/\/localhost(:\d+)?/i[_0x2709c8(0xc5)](_0x138d52)&&(process[_0x2709c8(0xb8)][_0x2709c8(0xfe)]='0');const _0x5e3ea3=await fetch(_0x138d52,_0x4c2395);delete process[_0x2709c8(0xb8)][_0x2709c8(0xfe)],_0x33a9ec[_0x2709c8(0xc1)](clearTimeout,_0x186160);if(_0x5e3ea3[_0x2709c8(0xfa)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x5e3ea3[_0x2709c8(0xfa)]};}catch(_0x52210b){delete process[_0x2709c8(0xb8)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x194aa6=_0x52210b,_0x3cc888=_0x194aa6[_0x2709c8(0xc2)]||_0x33a9ec['IqkKm'](String,_0x52210b),_0x2986cb=_0x3cc888[_0x2709c8(0xd8)](_0x33a9ec['phTpG'])||_0x33a9ec[_0x2709c8(0xa1)](_0x194aa6['name'],_0x33a9ec[_0x2709c8(0xa7)])||_0x3cc888['includes'](_0x33a9ec['Kusbi']);return{'ok':![],'error':_0x3cc888,'isProtocolError':_0x2986cb};}}export async function addEnv(_0x231bdd,_0x5324af={},_0x2001d2){const _0x260b5d=_0x1fea,_0x2c4095={'kvoCv':_0x260b5d(0xbb),'ZZiQx':function(_0x256184){return _0x256184();},'oBbuI':'local','DMSCs':_0x260b5d(0x7d),'suXIf':function(_0x523792,_0x17cf63,_0x57e3cd,_0x44de29){return _0x523792(_0x17cf63,_0x57e3cd,_0x44de29);},'fNkUt':function(_0x9e513f,_0x11f837,_0x3ee478){return _0x9e513f(_0x11f837,_0x3ee478);},'XHIUr':function(_0x58ef8a,_0x57cbb9){return _0x58ef8a!==_0x57cbb9;},'PGAaJ':function(_0x27bb4b,_0x62f950){return _0x27bb4b(_0x62f950);},'XyNYQ':function(_0x2e1e9e,_0x19b66c){return _0x2e1e9e===_0x19b66c;},'YIRla':'confirm','xteDi':_0x260b5d(0x7a),'umkOy':_0x260b5d(0xca),'TxXOz':'root\x20(.ranger/)','bZrSR':_0x260b5d(0xf6),'GCYas':'url_setup','glgUW':'\x0a๐\x20CDP\x20Profile\x20Setup\x0a','KjkHS':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','YiSpT':_0x260b5d(0x9a),'PpQGn':_0x260b5d(0x9e),'bBTEz':'input','jVsLs':_0x260b5d(0xce),'tqVch':'Continue\x20anyway','piUUJ':function(_0xe9bf43,_0x1a0803,_0x6d85b7){return _0xe9bf43(_0x1a0803,_0x6d85b7);},'QHMBd':'auth.json','nMvbB':_0x260b5d(0xea),'bJEfW':_0x260b5d(0x91),'zgTDL':_0x260b5d(0xf1),'dYzFT':_0x260b5d(0xbf),'gfDsW':_0x260b5d(0xbe),'UxfAt':'--allow-insecure-localhost','DNSlD':_0x260b5d(0x8b),'WhLUg':_0x260b5d(0xb1),'EGHJr':_0x260b5d(0xe1),'vVgeP':function(_0x33968a,_0x2eed71,_0xef69cd){return _0x33968a(_0x2eed71,_0xef69cd);},'XfRyw':function(_0x5410e7){return _0x5410e7();},'tgTKX':'\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','WEpZL':function(_0x3826f2,_0x23a292,_0x15ce71){return _0x3826f2(_0x23a292,_0x15ce71);},'DyqZJ':_0x260b5d(0x79),'ySHTi':function(_0x328f9f,_0x4cf82e){return _0x328f9f(_0x4cf82e);},'NPVzr':_0x260b5d(0xd1),'xLzHi':function(_0x499fda,_0xb9fce4){return _0x499fda>_0xb9fce4;},'gqenh':_0x260b5d(0x9d),'eezKK':function(_0x223061,_0x1e4a08,_0x573c15){return _0x223061(_0x1e4a08,_0x573c15);},'yoURy':function(_0x35cf94,_0x41929e){return _0x35cf94===_0x41929e;},'TnvCn':function(_0x39392a,_0x1f7fd7,_0x36d0bd){return _0x39392a(_0x1f7fd7,_0x36d0bd);},'fYhgT':function(_0x5b63b8,_0xa07de8){return _0x5b63b8(_0xa07de8);},'PIkTK':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','HlbLP':_0x260b5d(0x8c),'cXGsS':function(_0x22d16d,_0xeb39e4,_0x4ea2cc){return _0x22d16d(_0xeb39e4,_0x4ea2cc);}},_0x259e51=_0x5324af['ci']??![],_0x3b5191=_0x259e51?'ci':_0x2c4095['oBbuI'],_0x47cbdd=_0x5324af[_0x260b5d(0x94)]===_0x2c4095[_0x260b5d(0xb9)]?_0x2c4095[_0x260b5d(0x99)](getRangerHomeDir):getRangerDir(),_0x55c0ff=_0x2c4095[_0x260b5d(0xef)](join,_0x47cbdd,_0x3b5191,_0x231bdd),_0x46ba96={};if(_0x5324af[_0x260b5d(0xa3)])for(const _0x329042 of _0x5324af[_0x260b5d(0xa3)]){const _0x3c32c1=_0x329042[_0x260b5d(0xf3)](':');if(_0x3c32c1===-0x1)throw new Error(_0x260b5d(0xa0)+_0x329042+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x393626=_0x329042[_0x260b5d(0xfd)](0x0,_0x3c32c1)['trim'](),_0x272c9c=_0x329042['slice'](_0x3c32c1+0x1)['trim']();_0x46ba96[_0x393626]=_0x272c9c;}const _0x1f9e78=_0x2c4095[_0x260b5d(0xdd)](join,_0x47cbdd,_0x3b5191);if(_0x2c4095[_0x260b5d(0xb3)](_0x5324af[_0x260b5d(0xa5)],undefined)&&_0x5324af[_0x260b5d(0xa5)]['trim']()==='')throw new Error(_0x260b5d(0x82));if(_0x5324af[_0x260b5d(0xa5)]&&_0x5324af['url'])throw new Error(_0x260b5d(0x7f));if(_0x5324af['cdpEndpoint']&&_0x5324af['ci'])throw new Error(_0x260b5d(0xf0));const _0x491ee1=_0x2c4095['PGAaJ'](Boolean,_0x5324af[_0x260b5d(0xa5)]),_0x15fc62=!_0x5324af[_0x260b5d(0xb2)]&&!_0x491ee1,_0x2235bc=process['stdin']['isTTY']&&process[_0x260b5d(0xac)][_0x260b5d(0xd4)];if(!_0x2235bc&&!_0x5324af[_0x260b5d(0xcf)]&&!_0x491ee1)throw new Error(_0x260b5d(0x8e));const _0x21b9e5=findExistingEnv(_0x231bdd,{'rangerDir':_0x47cbdd});let _0xf45197=null;if(_0x21b9e5){if(!_0x2235bc)_0xf45197=_0x21b9e5;else{if(_0x2c4095['XyNYQ'](_0x21b9e5[_0x260b5d(0x84)],_0x3b5191)){const {overwrite:_0x566607}=await _0x39e706[_0x260b5d(0x7c)]([{'type':_0x2c4095[_0x260b5d(0xb7)],'name':'overwrite','message':'Profile\x20\x22'+_0x231bdd+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x566607){console['log'](_0x2c4095['xteDi']);return;}_0xf45197=_0x21b9e5;}else{const _0x24e25d=_0x2c4095['XyNYQ'](_0x21b9e5[_0x260b5d(0x84)],_0x2c4095['umkOy'])?_0x2c4095['TxXOz']:_0x21b9e5['location'];console['error'](_0x260b5d(0xff)+_0x231bdd+'\x22\x20already\x20exists\x20in\x20'+_0x24e25d+':\x20'+_0x21b9e5[_0x260b5d(0xc9)]),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x3b5191+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x5f3ed7}=await _0x39e706[_0x260b5d(0x7c)]([{'type':_0x2c4095['YIRla'],'name':_0x2c4095[_0x260b5d(0xf4)],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x3b5191+'?','default':![]}]);if(!_0x5f3ed7){console['log'](_0x2c4095['xteDi']);return;}_0xf45197=_0x21b9e5;}}}_0x2001d2?.['trackPhaseStart'](_0x2c4095[_0x260b5d(0xb5)]);let _0x1a1bbe='';if(_0x491ee1)console['log'](_0x2c4095['glgUW']),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x5324af[_0x260b5d(0xa5)]),console['log'](_0x2c4095['KjkHS']);else{if(_0x5324af[_0x260b5d(0xcf)]){_0x1a1bbe=_0x5324af['url'];const _0x51300c=await checkUrlReachability(_0x1a1bbe);if(!_0x51300c['ok']&&!_0x5324af[_0x260b5d(0xaa)])throw new Error(_0x260b5d(0xb6)+_0x1a1bbe+':\x20'+_0x51300c[_0x260b5d(0xda)]+_0x260b5d(0xf2));!_0x51300c['ok']&&_0x5324af[_0x260b5d(0xaa)]&&console[_0x260b5d(0xad)]('โ \x20Could\x20not\x20reach\x20'+_0x1a1bbe+':\x20'+_0x51300c['error']+_0x260b5d(0x78));}else{console['log'](_0x2c4095[_0x260b5d(0xbc)]),console['log']('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console['log'](_0x2c4095['PpQGn']);let _0x4b4179=![];while(!![]){const _0x3c0534=await _0x39e706['prompt']([{'type':_0x2c4095['bBTEz'],'name':'baseUrl','message':_0x4b4179?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x260b5d(0xc6),'default':_0x1a1bbe||_0x260b5d(0xd6)}]);_0x1a1bbe=_0x3c0534[_0x260b5d(0x95)];const _0x144e76=await checkUrlReachability(_0x1a1bbe);if(_0x144e76['ok'])break;const _0x365f69=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x1a1bbe),_0x4b66cf=_0x144e76['isProtocolError']&&!_0x365f69,_0x417093=_0x4b66cf?'http://'+_0x1a1bbe:null;_0x4b4179=!![],console[_0x260b5d(0xad)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x1a1bbe+':\x20'+_0x144e76[_0x260b5d(0xda)]);_0x417093&&console[_0x260b5d(0xad)](_0x260b5d(0x7e)+_0x417093+'?');const {action:_0x36f936}=await _0x39e706['prompt']([{'type':'list','name':'action','message':_0x2c4095['jVsLs'],'choices':[..._0x417093?[{'name':_0x260b5d(0xa2)+_0x417093,'value':'use_suggestion'}]:[],{'name':_0x260b5d(0xc3),'value':_0x260b5d(0xfc)},{'name':_0x2c4095[_0x260b5d(0x98)],'value':_0x260b5d(0xdb)}]}]);if(_0x2c4095[_0x260b5d(0x7b)](_0x36f936,_0x260b5d(0xbd))&&_0x417093){_0x1a1bbe=_0x417093;const _0x2efce9=await checkUrlReachability(_0x1a1bbe);if(_0x2efce9['ok'])break;console['log'](_0x260b5d(0xde)+_0x1a1bbe+':\x20'+_0x2efce9[_0x260b5d(0xda)]);}else{if(_0x36f936===_0x260b5d(0xdb))break;}}}}_0x2001d2?.[_0x260b5d(0x87)](_0x260b5d(0xf5));const _0x161555={};if(_0xf45197){const _0x1ea75f=await _0x2c4095[_0x260b5d(0xf9)](loadSettings,_0x231bdd);Object['assign'](_0x161555,_0x1ea75f['setupHeaders']);}Object[_0x260b5d(0x89)](_0x161555,_0x46ba96),await mkdir(_0x1f9e78,{'recursive':!![]});const _0x4feb92=await mkdtemp(join(_0x1f9e78,'.tmp-'+_0x231bdd+'-')),_0x3410bc=_0x2c4095[_0x260b5d(0x85)](join,_0x4feb92,_0x2c4095[_0x260b5d(0x9f)]),_0x16e333=_0x2c4095[_0x260b5d(0xf9)](Boolean,_0x1a1bbe)&&/^https:\/\/localhost(:\d+)?/i['test'](_0x1a1bbe);try{if(_0x15fc62){_0x2001d2?.['trackPhaseStart'](_0x2c4095[_0x260b5d(0x8a)]),console[_0x260b5d(0xad)]('\x0a๐\x20Authentication\x20Setup'),console[_0x260b5d(0xad)](_0x2c4095[_0x260b5d(0x88)]),console[_0x260b5d(0xad)](_0x260b5d(0xcd));!_0x2235bc?(console['log'](_0x2c4095['zgTDL']),console['log'](_0x2c4095[_0x260b5d(0xb4)])):console['log']('');await new Promise(_0x133bc6=>setTimeout(_0x133bc6,0xbb8));const _0x31e2ed=[];_0x5324af[_0x260b5d(0xa8)]&&_0x31e2ed['push'](_0x2c4095[_0x260b5d(0x83)]);const _0x52dbca=_0x5324af['allowInsecureLocalhost']||_0x16e333;_0x52dbca&&_0x31e2ed['push'](_0x2c4095[_0x260b5d(0xcc)]);const _0x314b5c=await chromium['launch']({'headless':![],..._0x31e2ed['length']>0x0?{'args':_0x31e2ed}:{}});try{const _0x23315c=Object['keys'](_0x161555)[_0x260b5d(0x100)]>0x0,_0x168749={'ignoreHTTPSErrors':!![]};_0x23315c&&(_0x168749[_0x260b5d(0xc0)]=_0x161555);const _0x4affae=await _0x314b5c[_0x260b5d(0xf7)](_0x168749);await _0x2c4095['PGAaJ'](addProfileSetupBanner,_0x4affae);const _0x3f70ec=await _0x4affae[_0x260b5d(0x81)]();await _0x3f70ec['goto'](_0x1a1bbe||_0x260b5d(0x96));let _0x3dba3a=![];await new Promise(_0x14cab5=>{const _0x49ce64=_0x260b5d,_0x290de4={'rPZBR':_0x2c4095[_0x49ce64(0xaf)],'yacsT':function(_0x524ae9){const _0x3ca420=_0x49ce64;return _0x2c4095[_0x3ca420(0x99)](_0x524ae9);}};_0x3f70ec['on']('close',async()=>{const _0x3028ef=_0x49ce64;try{console['log'](_0x290de4['rPZBR']),await _0x4affae['storageState']({'path':_0x3410bc}),_0x3dba3a=!![];}catch{}_0x290de4[_0x3028ef(0xec)](_0x14cab5);});});if(!_0x3dba3a){console[_0x260b5d(0xad)](_0x2c4095['DNSlD']);!_0x5324af['safeMode']&&(console['log'](_0x2c4095[_0x260b5d(0xe0)]),console[_0x260b5d(0xad)](_0x260b5d(0x101)),console[_0x260b5d(0xad)](_0x260b5d(0x97)+_0x231bdd+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x260b5d(0xad)]('\x20\x20ranger\x20profile\x20add\x20'+_0x231bdd+_0x260b5d(0x90)));throw new Error(_0x2c4095['EGHJr']);}}finally{await _0x314b5c[_0x260b5d(0xdc)]()['catch'](()=>{});}if(_0x259e51){const _0x63dbfa=await _0x2c4095['vVgeP'](readFile,_0x3410bc,_0x260b5d(0xcb)),_0x35a28d=await _0x2c4095['XfRyw'](getToken);if(!_0x35a28d){console[_0x260b5d(0xda)](_0x2c4095['tgTKX']),await unlink(_0x3410bc)[_0x260b5d(0x80)](()=>{});throw new Error(_0x260b5d(0x8f));}else{const _0x54c587=encrypt(_0x63dbfa,_0x35a28d);await _0x2c4095['WEpZL'](writeFile,_0x3410bc+_0x2c4095[_0x260b5d(0xa6)],_0x54c587),await _0x2c4095[_0x260b5d(0xc4)](unlink,_0x3410bc),console['log'](_0x260b5d(0xd0)+_0x3410bc+'.enc'),console[_0x260b5d(0xad)](_0x2c4095['NPVzr']),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log'](_0x260b5d(0x9b)+_0x3410bc);_0x2001d2?.[_0x260b5d(0x87)](_0x2c4095[_0x260b5d(0x8a)]);}_0x2001d2?.['trackPhaseStart']('config_write');const _0x590d99={};_0x1a1bbe&&(_0x590d99[_0x260b5d(0x95)]=_0x1a1bbe);_0x5324af[_0x260b5d(0xa5)]&&(_0x590d99['cdpEndpoint']=_0x5324af['cdpEndpoint'],_0x590d99[_0x260b5d(0xab)]=!![]);(_0x5324af[_0x260b5d(0xe2)]||_0x16e333)&&(_0x590d99['allowInsecureLocalhost']=!![]);_0x5324af['safeMode']&&(_0x590d99['safeMode']=!![]);_0x2c4095[_0x260b5d(0x92)](Object[_0x260b5d(0xfb)](_0x161555)[_0x260b5d(0x100)],0x0)&&(_0x590d99['setupHeaders']=_0x161555);await writeFile(join(_0x4feb92,_0x2c4095['gqenh']),JSON['stringify'](_0x590d99,null,0x2)),console['log']('โ\x20Created\x20settings:\x20'+_0x2c4095[_0x260b5d(0x93)](join,_0x55c0ff,_0x260b5d(0x9d)));if(_0x2c4095[_0x260b5d(0x86)](_0xf45197?.[_0x260b5d(0x84)],_0x3b5191)){const _0xdce2d5=_0xf45197[_0x260b5d(0xc9)]+_0x260b5d(0xf8)+Date[_0x260b5d(0xd2)]();await _0x2c4095[_0x260b5d(0x85)](rename,_0xf45197['path'],_0xdce2d5);try{await _0x2c4095[_0x260b5d(0xed)](rename,_0x4feb92,_0x55c0ff);}catch(_0x2d93bd){await rename(_0xdce2d5,_0xf45197[_0x260b5d(0xc9)]);throw _0x2d93bd;}try{await _0x2c4095[_0x260b5d(0xe6)](rm,_0xdce2d5,{'recursive':!![]});}catch{console[_0x260b5d(0xad)](_0x260b5d(0xdf)+_0xdce2d5);}}else{await rename(_0x4feb92,_0x55c0ff);if(_0xf45197)try{await _0x2c4095['fNkUt'](rm,_0xf45197['path'],{'recursive':!![]}),console['log'](_0x260b5d(0xa4)+_0xf45197['path']);}catch{console['log'](_0x260b5d(0xd9)+_0xf45197['path']);}}try{await _0x2c4095['fYhgT'](writeActiveProfileName,_0x231bdd),console['log'](_0x260b5d(0xe4)+_0x231bdd);}catch{console['log'](_0x2c4095[_0x260b5d(0xeb)]);}_0x2001d2?.['trackPhaseEnd'](_0x2c4095['HlbLP']),console['log']('\x0a\x20\x20Profile\x20\x22'+_0x231bdd+_0x260b5d(0xe8));}catch(_0xc89106){await _0x2c4095[_0x260b5d(0xe9)](rm,_0x4feb92,{'recursive':!![],'force':!![]});throw _0xc89106;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x169d(_0x1ec22a,_0x889f9a){_0x1ec22a=_0x1ec22a-0x98;const _0x396803=_0x3968();let _0x169db4=_0x396803[_0x1ec22a];return _0x169db4;}(function(_0x3e1277,_0x6fba23){const _0x40d621=_0x169d,_0x45149c=_0x3e1277();while(!![]){try{const _0x2975cd=-parseInt(_0x40d621(0xb1))/0x1*(-parseInt(_0x40d621(0xa5))/0x2)+parseInt(_0x40d621(0x99))/0x3+parseInt(_0x40d621(0x9d))/0x4*(parseInt(_0x40d621(0xaf))/0x5)+parseInt(_0x40d621(0xa1))/0x6*(-parseInt(_0x40d621(0xb0))/0x7)+-parseInt(_0x40d621(0xa8))/0x8+-parseInt(_0x40d621(0xa7))/0x9*(parseInt(_0x40d621(0x9f))/0xa)+parseInt(_0x40d621(0xa0))/0xb;if(_0x2975cd===_0x6fba23)break;else _0x45149c['push'](_0x45149c['shift']());}catch(_0x13144f){_0x45149c['push'](_0x45149c['shift']());}}}(_0x3968,0x2dc78));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0xce0635){const _0x14126a=_0x169d,_0x32a6c0={'gWPRS':function(_0x365952,_0x44ae37){return _0x365952(_0x44ae37);},'evLQT':_0x14126a(0xac),'oIZIB':'.enc','KKORg':_0x14126a(0x9c),'tjROj':_0x14126a(0xa2),'BPlKH':_0x14126a(0xa9)},_0x37d773=_0x32a6c0[_0x14126a(0xab)](getEnvDir,_0xce0635),_0x73d4a9=join(_0x37d773,_0x32a6c0[_0x14126a(0xae)]),_0x15925b=_0x73d4a9+_0x32a6c0[_0x14126a(0x9a)];if(!existsSync(_0x37d773))throw new Error('Profile\x20\x22'+_0xce0635+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0xce0635);if(!existsSync(_0x73d4a9))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x73d4a9+_0x14126a(0xaa));const _0x224abb=await getToken();if(!_0x224abb)throw new Error(_0x32a6c0[_0x14126a(0x9e)]);const _0x441cf1=await readFile(_0x73d4a9,_0x32a6c0['tjROj']),_0x36873c=encrypt(_0x441cf1,_0x224abb);await writeFile(_0x15925b,_0x36873c),console['log'](_0x14126a(0xad)+_0x15925b),console[_0x14126a(0xa3)](_0x32a6c0[_0x14126a(0xa4)]),console['log'](_0x14126a(0xa6)),existsSync(_0x15925b)&&(console['log'](_0x14126a(0x98)),console['log'](_0x14126a(0x9b)));}function _0x3968(){const _0x1fcd9e=['5SjMsDP','7VfomKo','107siTtpe','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','786327ZlinHA','oIZIB','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','212156mLOgOE','KKORg','220QPshaS','6124800Dpyiir','453954MbLCSs','utf-8','log','BPlKH','368ufYwcW','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','124218vVsjZO','2598568axoBYH','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','gWPRS','auth.json','\x0aโ\x20Encrypted\x20auth\x20saved\x20to:\x20','evLQT'];_0x3968=function(){return _0x1fcd9e;};return _0x3968();}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x490d4e=_0x1ea3;(function(_0x5c3ba8,_0xe43ac8){const _0x3f3f4f=_0x1ea3,_0x5212de=_0x5c3ba8();while(!![]){try{const _0x5e4f22=parseInt(_0x3f3f4f(0x1b4))/0x1+parseInt(_0x3f3f4f(0x1ad))/0x2*(-parseInt(_0x3f3f4f(0x1d9))/0x3)+-parseInt(_0x3f3f4f(0x1a7))/0x4*(parseInt(_0x3f3f4f(0x1a6))/0x5)+-parseInt(_0x3f3f4f(0x1c0))/0x6+parseInt(_0x3f3f4f(0x1d0))/0x7+-parseInt(_0x3f3f4f(0x1c7))/0x8*(-parseInt(_0x3f3f4f(0x1b1))/0x9)+parseInt(_0x3f3f4f(0x1cf))/0xa*(parseInt(_0x3f3f4f(0x1ab))/0xb);if(_0x5e4f22===_0xe43ac8)break;else _0x5212de['push'](_0x5212de['shift']());}catch(_0x378423){_0x5212de['push'](_0x5212de['shift']());}}}(_0x1fd3,0xc7ef9));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';function _0x1fd3(){const _0x22a5c3=['log','trailhead','9549108xmyerF','OLMva','KuMRO','ranger','--scope','RDAUP','โ\x20Removed\x20.ranger/\x20directory','29992txAnrE','push','DaqmL','replace','\x0aโ
\x20Cleanup\x20complete!\x0a','\x0a๐งน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','pipe','length','120QpOehT','9054920tHmPRQ','DzxZn','โ\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','user','win32','opencode.json','HeAje','isArray','QHbuZ','27897sCpXWp','RwdNB','yhmsw','โ\x20Removed\x20trailhead\x20marketplace','feature-tracker','Yxqha','xDVIu','lssgN','RoogY','3143175IgtEAL','8ZmQFRR','EJobp','close','bug-bash','1120339zTVEgH','stringify','78HrUGtN','ranger@trailhead','Nothing\x20to\x20clean\x20up.\x0a','@ranger-testing/opencode-plugin','1098PEszSp','TeoTj','HHwrO','1057260Nusyys','ZgMxb','VgSWu','โ\x20Removed\x20user\x20skill:\x20','cLqJT','utf-8','project','plugin','pINwY','error'];_0x1fd3=function(){return _0x22a5c3;};return _0x1fd3();}import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x490d4e(0x1c3),_0x490d4e(0x1dd),_0x490d4e(0x1aa),'e2e-test-recommender'],opencodePluginName=_0x490d4e(0x1b0);function _0x1ea3(_0x1f6436,_0x3a6a7e){_0x1f6436=_0x1f6436-0x1a2;const _0x1fd3d1=_0x1fd3();let _0x1ea317=_0x1fd3d1[_0x1f6436];return _0x1ea317;}function parseJsonc(_0x158c13){const _0x111483=_0x490d4e,_0x2df33b=_0x158c13['replace'](/\/\*[\s\S]*?\*\//g,''),_0x5024eb=_0x2df33b[_0x111483(0x1ca)](/^\s*\/\/.*$/gm,''),_0x9d7ffa=_0x5024eb[_0x111483(0x1ca)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x9d7ffa);}async function removeOpencodePluginConfig(_0x5d469e){const _0x4cbcda=_0x490d4e,_0x3c4c3d={'GejRd':function(_0x597f55,_0x328928){return _0x597f55!==_0x328928;},'TeoTj':function(_0x1e31b5,_0x462082){return _0x1e31b5!==_0x462082;},'RoogY':function(_0x3232bd,_0x517c57){return _0x3232bd(_0x517c57);},'DaqmL':function(_0x408721,_0x1f5ff7){return _0x408721===_0x1f5ff7;},'HHwrO':function(_0x5f1097,_0x47f75a){return _0x5f1097+_0x47f75a;}};if(!existsSync(_0x5d469e))return![];let _0x358da5;try{const _0x4488af=await readFile(_0x5d469e,_0x4cbcda(0x1b9));_0x358da5=_0x3c4c3d[_0x4cbcda(0x1a5)](parseJsonc,_0x4488af);}catch{return![];}const _0x13fd2f=Array[_0x4cbcda(0x1d7)](_0x358da5[_0x4cbcda(0x1bb)])?_0x358da5['plugin']:[];if(_0x3c4c3d[_0x4cbcda(0x1c9)](_0x13fd2f[_0x4cbcda(0x1ce)],0x0))return![];const _0x24c0b6=_0x13fd2f['filter'](_0x5af6b5=>{const _0x3f6800=_0x4cbcda;if(_0x3c4c3d['GejRd'](typeof _0x5af6b5,'string'))return!![];return _0x3c4c3d[_0x3f6800(0x1b2)](_0x5af6b5,opencodePluginName);});if(_0x3c4c3d['DaqmL'](_0x24c0b6['length'],_0x13fd2f[_0x4cbcda(0x1ce)]))return![];return _0x24c0b6['length']===0x0?delete _0x358da5['plugin']:_0x358da5[_0x4cbcda(0x1bb)]=_0x24c0b6,await writeFile(_0x5d469e,_0x3c4c3d[_0x4cbcda(0x1b3)](JSON[_0x4cbcda(0x1ac)](_0x358da5,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x3903cc){const _0x353e1e=_0x490d4e,_0x1b92c7={'ZgMxb':'uninstall','OLMva':'claude','OCuTx':_0x353e1e(0x1cd),'HeAje':function(_0x22c389,_0x138543){return _0x22c389===_0x138543;},'DzxZn':'close','EJobp':_0x353e1e(0x1bd)};return new Promise(_0x417361=>{const _0x254aa6=_0x353e1e,_0x29203b={'QVEOO':function(_0x131037,_0x512211){return _0x131037(_0x512211);}},_0x2b8b2a=['plugin',_0x1b92c7[_0x254aa6(0x1b5)],_0x254aa6(0x1ae)];_0x3903cc&&_0x2b8b2a[_0x254aa6(0x1c8)](_0x254aa6(0x1c4),_0x3903cc);const _0x4f370d=spawn(_0x1b92c7[_0x254aa6(0x1c1)],_0x2b8b2a,{'stdio':_0x1b92c7['OCuTx'],'shell':_0x1b92c7[_0x254aa6(0x1d6)](process['platform'],_0x254aa6(0x1d4))});_0x4f370d['on'](_0x1b92c7[_0x254aa6(0x1d1)],_0x5e3beb=>{_0x29203b['QVEOO'](_0x417361,_0x5e3beb===0x0);}),_0x4f370d['on'](_0x1b92c7[_0x254aa6(0x1a8)],()=>{_0x417361(![]);});});}async function removeMarketplace(){const _0x318e59=_0x490d4e,_0x346710={'gDcLb':function(_0x343b62,_0x1281b1,_0x31cafb,_0x3442d2){return _0x343b62(_0x1281b1,_0x31cafb,_0x3442d2);},'KuMRO':'plugin','VgSWu':'marketplace','WribM':_0x318e59(0x1bf),'BmlpI':function(_0x43be18,_0x1ac645){return _0x43be18===_0x1ac645;},'uVnxZ':_0x318e59(0x1a9)};return new Promise(_0x7c4513=>{const _0xc89020=_0x318e59,_0x573cf0=_0x346710['gDcLb'](spawn,'claude',[_0x346710[_0xc89020(0x1c2)],_0x346710[_0xc89020(0x1b6)],'remove',_0x346710['WribM']],{'stdio':'pipe','shell':_0x346710['BmlpI'](process['platform'],_0xc89020(0x1d4))});_0x573cf0['on'](_0x346710['uVnxZ'],_0x220781=>{_0x7c4513(_0x220781===0x0);}),_0x573cf0['on'](_0xc89020(0x1bd),()=>{_0x7c4513(![]);});});}export async function clean(){const _0x1eb617=_0x490d4e,_0x59e368={'VBvks':function(_0x1bd367){return _0x1bd367();},'LECKA':'โ\x20Removed\x20stored\x20credentials','RDAUP':function(_0x39593c){return _0x39593c();},'pINwY':function(_0x3f6da4,_0xaef32e){return _0x3f6da4(_0xaef32e);},'QHbuZ':function(_0x23cb51,_0x17ee64){return _0x23cb51(_0x17ee64);},'cLqJT':function(_0x408513,_0xcc1f48,_0x5eb67a){return _0x408513(_0xcc1f48,_0x5eb67a);},'yhmsw':_0x1eb617(0x1ba),'Yxqha':'โ\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','xDVIu':_0x1eb617(0x1d3),'Vpvqk':'opencode.json','iamTs':function(_0x385350){return _0x385350();},'rjAlT':function(_0x4ec337){return _0x4ec337();},'lssgN':_0x1eb617(0x1cb),'RwdNB':_0x1eb617(0x1af)};console[_0x1eb617(0x1be)](_0x1eb617(0x1cc));let _0x1a695a=![];try{await _0x59e368['VBvks'](deleteAllCredentials),console['log'](_0x59e368['LECKA']),_0x1a695a=!![];}catch{}const _0x418c60=_0x59e368[_0x1eb617(0x1c5)](getCacheFile);_0x59e368[_0x1eb617(0x1bc)](existsSync,_0x418c60)&&(await _0x59e368['QHbuZ'](rm,_0x418c60),_0x1a695a=!![]);const _0x4e1f0b=getRangerDir();existsSync(_0x4e1f0b)&&(await rm(_0x4e1f0b,{'recursive':!![]}),console['log'](_0x1eb617(0x1c6)),_0x1a695a=!![]);const _0x2e40dd=getProjectSkillsDir();for(const _0x5e5eae of skillsToRemove){const _0x38baf9=join(_0x2e40dd,_0x5e5eae);existsSync(_0x38baf9)&&(await rm(_0x38baf9,{'recursive':!![]}),console[_0x1eb617(0x1be)]('โ\x20Removed\x20project\x20skill:\x20'+_0x5e5eae),_0x1a695a=!![]);}const _0x3705ad=getUserSkillsDir();for(const _0x489eef of skillsToRemove){const _0x1747d1=_0x59e368['cLqJT'](join,_0x3705ad,_0x489eef);existsSync(_0x1747d1)&&(await rm(_0x1747d1,{'recursive':!![]}),console[_0x1eb617(0x1be)](_0x1eb617(0x1b7)+_0x489eef),_0x1a695a=!![]);}const _0x4f40bb=getOpencodeSkillsDir(_0x59e368[_0x1eb617(0x1db)]);for(const _0x1659f2 of skillsToRemove){const _0x80351d=_0x59e368['cLqJT'](join,_0x4f40bb,_0x1659f2);_0x59e368[_0x1eb617(0x1d8)](existsSync,_0x80351d)&&(await rm(_0x80351d,{'recursive':!![]}),console['log']('โ\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x1659f2),_0x1a695a=!![]);}const _0x4479cc=getOpencodeSkillsDir(_0x1eb617(0x1d3));for(const _0x35c5e2 of skillsToRemove){const _0x169df3=join(_0x4479cc,_0x35c5e2);existsSync(_0x169df3)&&(await rm(_0x169df3,{'recursive':!![]}),console['log']('โ\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x35c5e2),_0x1a695a=!![]);}const _0x37f1c6=join(_0x59e368[_0x1eb617(0x1d8)](getOpencodeConfigDir,_0x1eb617(0x1ba)),_0x1eb617(0x1d5));await _0x59e368['pINwY'](removeOpencodePluginConfig,_0x37f1c6)&&(console[_0x1eb617(0x1be)](_0x59e368[_0x1eb617(0x1a2)]),_0x1a695a=!![]);const _0x3b03a3=_0x59e368[_0x1eb617(0x1b8)](join,_0x59e368[_0x1eb617(0x1bc)](getOpencodeConfigDir,_0x59e368[_0x1eb617(0x1a3)]),_0x59e368['Vpvqk']);await removeOpencodePluginConfig(_0x3b03a3)&&(console[_0x1eb617(0x1be)]('โ\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0x1a695a=!![]);const _0xc0f463=await _0x59e368['iamTs'](uninstallClaudePlugin);_0xc0f463&&(console['log'](_0x1eb617(0x1d2)),_0x1a695a=!![]);const _0x29b6ec=await uninstallClaudePlugin(_0x1eb617(0x1ba));_0x29b6ec&&(console['log']('โ\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x1a695a=!![]);const _0x5de960=await _0x59e368['rjAlT'](removeMarketplace);_0x5de960&&(console[_0x1eb617(0x1be)](_0x1eb617(0x1dc)),_0x1a695a=!![]),_0x1a695a?console['log'](_0x59e368[_0x1eb617(0x1a4)]):console[_0x1eb617(0x1be)](_0x59e368[_0x1eb617(0x1da)]);}
|