@ranger-testing/ranger-cli 2.4.5 โ 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/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/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x50ce2f=_0x7f55;(function(_0x1a4c99,_0x31765b){const _0x4e8e90=_0x7f55,_0x2cc611=_0x1a4c99();while(!![]){try{const _0x55dd46=parseInt(_0x4e8e90(0x16c))/0x1+parseInt(_0x4e8e90(0x1fa))/0x2*(parseInt(_0x4e8e90(0x1fe))/0x3)+-parseInt(_0x4e8e90(0x1ab))/0x4+-parseInt(_0x4e8e90(0x2b4))/0x5+-parseInt(_0x4e8e90(0x2b2))/0x6+parseInt(_0x4e8e90(0x2a5))/0x7+parseInt(_0x4e8e90(0x22c))/0x8;if(_0x55dd46===_0x31765b)break;else _0x2cc611['push'](_0x2cc611['shift']());}catch(_0x3e61a7){_0x2cc611['push'](_0x2cc611['shift']());}}}(_0x4349,0x9840b));import _0x19f3ed from'dotenv';function _0x7f55(_0x13376f,_0x4aadf4){_0x13376f=_0x13376f-0x160;const _0x434953=_0x4349();let _0x7f5571=_0x434953[_0x13376f];return _0x7f5571;}import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x4cf065=_0x7f55,_0x56fdab={'LaIAY':function(_0x1e109d,_0xdabcc5){return _0x1e109d(_0xdabcc5);},'TZrSV':function(_0x1d8699,_0x44bc0d){return _0x1d8699!==_0x44bc0d;},'uzVOq':function(_0x44bb6e,_0x2e84c6){return _0x44bb6e(_0x2e84c6);},'roVlr':function(_0x23855f,_0x3a9932,_0x5a3b1c){return _0x23855f(_0x3a9932,_0x5a3b1c);},'QuPqO':function(_0x3323d9,_0x134465){return _0x3323d9(_0x134465);}};let _0x861324=process['cwd']();const _0x2f3eca=_0x56fdab[_0x4cf065(0x25b)](parse,_0x861324)[_0x4cf065(0x239)];while(_0x56fdab['TZrSV'](_0x861324,_0x2f3eca)){if(_0x56fdab[_0x4cf065(0x259)](existsSync,_0x56fdab[_0x4cf065(0x289)](join,_0x861324,_0x4cf065(0x230)))||_0x56fdab[_0x4cf065(0x259)](existsSync,_0x56fdab[_0x4cf065(0x289)](join,_0x861324,_0x4cf065(0x23a))))return _0x861324;_0x861324=_0x56fdab['QuPqO'](dirname,_0x861324);}return process[_0x4cf065(0x2c6)]();}_0x19f3ed[_0x50ce2f(0x1e4)]({'path':join(findProjectRoot(),_0x50ce2f(0x23a))});import _0x579c86 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 _0x4f7f99=>{const _0x4ac442=_0x50ce2f,_0xd6bd3f=getCurrentCollector();_0xd6bd3f&&await _0xd6bd3f['trackCommandError'](_0x4f7f99),process[_0x4ac442(0x2b1)]=0x1;});function _0x4349(){const _0x26ec46=['\x20VERIFIED','get-feedback\x20[id]','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','aSURI','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','UdVTV','Ghdhd','RvTNa','ranger\x20feature\x20get-feedback','Config\x20value','unset\x20<profile>\x20<key>','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','allow-insecure-localhost','roVlr','\x20BLOCKED','bXznW','mMTxE','LmpEe','ranger\x20profile\x20add','BWzOa','UpFcq','claude','bzRzv','exclude-scenario','QPEvr','Number\x20of\x20feature\x20reviews\x20to\x20skip','BQleh','delete\x20[id]','No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.','svXwp','slice','value','scenario','MkMWm','zJFbq','BMOpz','FTLAQ','QqgEy','KpnKI','log','UmjHr','3357060QBIyPr','QchNI','ixqCl','UbkKs','NhrES','edit-scenario','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','EyLlm','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','toYZw','UQfcr','exitCode','1394178aOBbwG','NRpqP','4356715hQkMhf','Config\x20key\x20to\x20remove','vsZjh','trackCommandError','map','gmsiP','include-deleted','config\x20get','dCjAI','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','bNnvb','hook:disable','Name\x20of\x20the\x20environment\x20to\x20update','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','profile-name','Scenario\x20index\x20(1-based)','\x20FAILED','blocked','cwd','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','config\x20set','ranger\x20verify-feature','user','QCEGa','add-scenario\x20<description>','Evaluation:\x20','Update\x20authentication\x20for\x20an\x20existing\x20profile','cqajM','QgsHA','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','ranger\x20add-scenario','hook:enable','demandCommand','yOQPs','jJUBJ','strictCommands','517601hJrCtN','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','xVPMo','update','boolean','kwHme','ranger\x20create','ranger\x20start','Get\x20a\x20config\x20value','feature','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','profile','incomplete','array','issues','FfVOq','limit','Feature\x20review\x20ID','feature\x20list','login','number','qHFQm','.\x20[','Install\x20skills\x20for\x20OpenCode','feature\x20restore','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','anzCn','model','kMrgF','Profile\x20name','dgPxI','\x0aUnknown\x20command:\x20','hgwEL','add\x20env','ranger\x20get-review','DqjWa','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','IFbWG','config\x20list','Include\x20soft-deleted\x20feature\x20reviews','ranger\x20profile\x20encrypt-auth','IFJqU','url','AgBuU','ELgZJ','create','restore\x20<id>','token','Name\x20of\x20the\x20profile','fBiQV','alias','Scenario\x20description','--checklist','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.','yEcTm','start\x20[token]','json','get-review','GbIHR','jhMLr','checklist','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','rFeiw','2635672jjEJXT','xOMGs','You\x20must\x20specify\x20a\x20config\x20subcommand','HhFEU','DhBOX','gpaoO','verified','edit-scenario\x20<description>','MPIRM','skip-chromium','TVRNQ','wublo','WrpTN','TyzFA','MgCMg','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','description','PLznS','--profile','Jaqmj','cdp-endpoint','error','key','sdvjP','start','You\x20must\x20specify\x20a\x20profile\x20subcommand','WCYJx','force','iYwMa','auth','slJVE','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','list','UGHJQ','olGzO','headed','get\x20<env>\x20<key>','item','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','OUHgs','evaluation','name','report\x20[id]','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','Unknown\x20command','XwGCO','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','pimoX','set\x20<profile>\x20<key>\x20<value>','TWEMh','use\x20<profile-name>','qYiWt','QbIeH','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','Summary:\x20','Environment\x20name','config','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','GbhRk','Name\x20of\x20the\x20profile\x20to\x20update','current-branch','opencode','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','task','RdVeJ','badFq','use','help','ranger\x20profile\x20use','ranger\x20env\x20update','partial','--scenario','DSiWE','fiFJb','Config\x20key','foChW','env','start-path','847292qoJQxw','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','use\x20<env-name>','Name\x20of\x20the\x20environment','3ayWLRB','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','wBonN','SGkty','profile\x20encrypt-auth','offset','TjoeH','profile\x20update','Add\x20profile\x20configuration','encrypt\x20<profile>','resume','\x20INCOMPLETE','oxVFI','create\x20<name>','MyMqY','AUcCi','agrkX','lFIdu','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','XUiRu','delete','You\x20must\x20specify\x20a\x20command','ranger\x20go','debug-outcome','RHqTN','base-url','PsMWl','ZoGWR','eIcqz','CRZuv','parse','exit','ranger\x20config\x20unset','repeat','uCqiI','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','sfDpi','Manage\x20profile\x20configuration','Documentation:\x0a','project','ranger\x20feature\x20list','VoIQg','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','Feature\x20review\x20name','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','fail','7723392hzuYoc','Keson','Nuece','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','.ranger','ranger\x20list','session-id','Ranger\x20API\x20token','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','verify-feature','ranger\x20profile\x20config\x20set','profile\x20add','ZRMIn','root','.env','string','Skip\x20Chromium\x20browser\x20installation','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','EDhPT','PYGEa','message','ranger\x20config\x20get','sBvIc','bUoRc','JRuQz','Feature\x20review\x20description','usage','positional','You\x20must\x20specify\x20an\x20env\x20subcommand','hook','hTLyR','Fscoe','Feature\x20review\x20ID\x20to\x20restore','noISZ','option','WpeRP','pRZYT','zyufE','EeHFW','wrqhz','skip-auth','forEach','disable','scope','VnraU','uzVOq','EjgJp','LaIAY','argv','HIUMD','Manage\x20profiles','iWetA','cJlTY','kryZI','sEjHb','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','RMOXl','env-name','ranger\x20show','uMPGH','RavMp','update\x20<profile-name>','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','IdBtS','cVLsl','ixygX','debug-address-comments','command','Install\x20scope\x20for\x20skills','ranger','zVBvJ','restore','ranger\x20feature\x20resume','List\x20all\x20feature\x20reviews','skillup','PqwJD','list\x20<env>','feature\x20show','IFqCf','HZyjb'];_0x4349=function(){return _0x26ec46;};return _0x4349();}const rawArgs=process['argv'][_0x50ce2f(0x29a)](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(_0x4583ff,_0x4a4ced){const _0x13b826=_0x50ce2f;console[_0x13b826(0x1c0)]('\x0a'+_0x4583ff+'\x20is\x20now\x20'+_0x4a4ced+'\x0a');}function argUsed(_0xbe8414){return rawArgs['some'](_0x5268c6=>_0x5268c6===_0xbe8414||_0x5268c6['startsWith'](_0xbe8414+'='));}function warnFlagRenamed(_0x155bd7,_0x45acf3,_0x58509c){const _0x5b1244=_0x50ce2f,_0x4b0657={'zyufE':function(_0x4a12ee,_0x11c1d6,_0xc43399){return _0x4a12ee(_0x11c1d6,_0xc43399);}};argUsed(_0x45acf3)&&_0x4b0657[_0x5b1244(0x251)](warnRenamed,_0x155bd7+'\x20'+_0x45acf3,_0x155bd7+'\x20'+_0x58509c);}async function runGoCommand(_0x474a8d,_0xc8e91f=![]){const _0x592707=_0x50ce2f,_0xc2681b={'DSiWE':function(_0x162b49,_0x9ee078){return _0x162b49+_0x9ee078;},'zPiSC':_0x592707(0x2c9),'IFJqU':function(_0x316882,_0x4d27db,_0x517f86,_0x14f551){return _0x316882(_0x4d27db,_0x517f86,_0x14f551);},'VnraU':_0x592707(0x214),'cVLsl':'--item','GJnED':function(_0x954e65){return _0x954e65();},'UQgeU':_0x592707(0x1f9),'TjoeH':'debug-address-comments','qHFQm':function(_0x380859,_0x2bb62e){return _0x380859===_0x2bb62e;},'GbhRk':_0x592707(0x27c),'uMPGH':_0x592707(0x209),'iYwMa':'\x20PARTIAL','cGUgp':_0x592707(0x2c4),'hgwEL':'verified'};_0xc8e91f&&warnRenamed(_0xc2681b['zPiSC'],'ranger\x20go');warnFlagRenamed(_0x592707(0x214),'--env',_0x592707(0x1bd)),_0xc2681b[_0x592707(0x195)](warnFlagRenamed,'ranger\x20go','--task','--notes'),_0xc2681b[_0x592707(0x195)](warnFlagRenamed,_0xc2681b[_0x592707(0x258)],_0xc2681b[_0x592707(0x26c)],_0x592707(0x1f3));const _0x94a2cc=await _0xc2681b['GJnED'](loadRangerConfig),_0x53686c=isByokEnabled(),_0x1cf756=_0x474a8d['model'],_0x1bef77=_0x94a2cc['model'],_0x315ff0=await verifyFeature({'featureId':_0x474a8d['feature'],'profile':_0x474a8d['profile']??_0x474a8d['env'],'notes':_0x474a8d['notes']??_0x474a8d[_0x592707(0x1eb)],'scenario':_0x474a8d['scenario']??_0x474a8d[_0x592707(0x1d1)],'startPath':_0x474a8d[_0xc2681b['UQgeU']],'debugOutcome':_0x474a8d[_0x592707(0x215)],'debugAddressComments':_0x474a8d[_0xc2681b[_0x592707(0x204)]],'headed':_0x474a8d[_0x592707(0x1cf)],'byokEnabled':_0x53686c,'flagVerifyModel':_0x1cf756,'configVerifyModel':_0x1bef77});console['log']('\x0a'+'='[_0x592707(0x21f)](0x3c)),console['log'](_0xc2681b['qHFQm'](_0x315ff0[_0x592707(0x1d4)],_0x592707(0x1b1))?_0xc2681b[_0x592707(0x1e6)]:_0x315ff0['evaluation']===_0x592707(0x178)?_0xc2681b[_0x592707(0x267)]:_0x315ff0[_0x592707(0x1d4)]==='partial'?_0xc2681b[_0x592707(0x1c7)]:_0xc2681b[_0x592707(0x181)](_0x315ff0['evaluation'],'blocked')?_0x592707(0x28a):_0xc2681b['cGUgp']),console['log']('='['repeat'](0x3c)),console[_0x592707(0x2a3)](_0x592707(0x1e2)+_0x315ff0['summary']),console['log'](_0x592707(0x161)+_0x315ff0[_0x592707(0x1d4)]),console['log']('Reason:\x20'+_0x315ff0['evaluationReason']),_0x315ff0[_0x592707(0x17a)]?.['length']&&(console['log']('\x0aIssues:'),_0x315ff0[_0x592707(0x17a)][_0x592707(0x255)]((_0x39e123,_0x15dea6)=>{const _0x11471c=_0x592707;console['log']('\x0a'+_0xc2681b[_0x11471c(0x1f4)](_0x15dea6,0x1)+_0x11471c(0x182)+_0x39e123['severity']+']\x20'+_0x39e123[_0x11471c(0x1bb)]);})),process[_0x592707(0x21d)](_0x315ff0[_0x592707(0x1d4)]===_0xc2681b[_0x592707(0x18c)]?0x0:0x1);}_0x579c86(process['argv']['slice'](0x2))['scriptName'](_0x50ce2f(0x271))[_0x50ce2f(0x246)](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0x50ce2f(0x26f)](_0x50ce2f(0x20b),'Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x20c1c4=>{const _0x39b2de=_0x50ce2f,_0x48ce08={'gYaMj':'name','qGHqr':'string','IFbWG':'Feature\x20review\x20name','OUHgs':_0x39b2de(0x1bb),'HmlIv':'scenario','cqajM':_0x39b2de(0x179)};return _0x20c1c4[_0x39b2de(0x247)](_0x48ce08['gYaMj'],{'type':_0x48ce08['qGHqr'],'description':_0x48ce08[_0x39b2de(0x191)],'demandOption':!![]})[_0x39b2de(0x24e)](_0x48ce08[_0x39b2de(0x1d3)],{'type':'string','alias':'d','description':'Feature\x20review\x20description'})['option'](_0x48ce08['HmlIv'],{'type':_0x48ce08[_0x39b2de(0x163)],'alias':'c','description':_0x39b2de(0x1d7)})[_0x39b2de(0x24e)](_0x39b2de(0x1a8),{'type':_0x48ce08['cqajM'],'hidden':!![]});},async _0x114e47=>{const _0x4cbc5c=_0x50ce2f,_0xb6f158={'PHehu':function(_0x23e765,_0xb24401,_0x51eb19,_0x29d14e){return _0x23e765(_0xb24401,_0x51eb19,_0x29d14e);},'mOyfq':_0x4cbc5c(0x1a0),'dgPxI':_0x4cbc5c(0x1f3)};_0xb6f158['PHehu'](warnFlagRenamed,'ranger\x20create',_0xb6f158['mOyfq'],_0xb6f158[_0x4cbc5c(0x18a)]);const _0x51dfbf=_0x114e47[_0x4cbc5c(0x29c)]||_0x114e47[_0x4cbc5c(0x1a8)];await withTelemetry(_0x4cbc5c(0x199),()=>featureCreate(_0x114e47['name'],{'description':_0x114e47['description'],'scenarios':_0x51dfbf}));})['command'](_0x50ce2f(0x1cc),_0x50ce2f(0x275),_0x36bf18=>{const _0x3630f7=_0x50ce2f,_0x49bbd0={'bXznW':_0x3630f7(0x1e8),'SDAty':_0x3630f7(0x280),'wmVGZ':'limit','OQVHV':'number','gNFWA':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','DhBOX':'offset','wqnLQ':_0x3630f7(0x193)};return _0x36bf18[_0x3630f7(0x24e)](_0x49bbd0[_0x3630f7(0x28b)],{'type':'boolean','description':_0x49bbd0['SDAty']})['option'](_0x49bbd0['wmVGZ'],{'type':_0x49bbd0['OQVHV'],'alias':'l','description':_0x49bbd0['gNFWA'],'default':0xa})[_0x3630f7(0x24e)](_0x49bbd0[_0x3630f7(0x1af)],{'type':_0x3630f7(0x180),'alias':'o','description':_0x3630f7(0x295),'default':0x0})[_0x3630f7(0x24e)](_0x3630f7(0x2ba),{'type':_0x3630f7(0x170),'alias':'d','description':_0x49bbd0['wqnLQ'],'default':![]});},async _0x47d0cf=>{const _0xb6046d=_0x50ce2f;await withTelemetry(_0xb6046d(0x1cc),()=>featureList({'currentBranch':_0x47d0cf['current-branch'],'limit':_0x47d0cf[_0xb6046d(0x17c)],'offset':_0x47d0cf[_0xb6046d(0x203)],'includeDeleted':_0x47d0cf['include-deleted']}));})['command']('show\x20[id]',_0x50ce2f(0x185),_0x5358ee=>{const _0x570765=_0x50ce2f,_0x4eca12={'WCYJx':_0x570765(0x23b)};return _0x5358ee[_0x570765(0x247)]('id',{'type':_0x4eca12[_0x570765(0x1c5)],'description':_0x570765(0x17d)});},async _0x227335=>{const _0x55e0f0=_0x50ce2f,_0x13ff70={'svXwp':'show'};await withTelemetry(_0x13ff70[_0x55e0f0(0x299)],()=>featureShow(_0x227335['id']));})[_0x50ce2f(0x26f)]('resume\x20[id]',_0x50ce2f(0x234),_0x148452=>{const _0x2caf1b={'SFvCZ':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'};return _0x148452['positional']('id',{'type':'string','description':_0x2caf1b['SFvCZ']});},async _0x2e707a=>{const _0x43249c=_0x50ce2f,_0x4555c3={'jcvEy':_0x43249c(0x208)};await withTelemetry(_0x4555c3['jcvEy'],()=>featureResume(_0x2e707a['id']));})[_0x50ce2f(0x26f)](_0x50ce2f(0x160),_0x50ce2f(0x1ea),_0x58293c=>{const _0x479568=_0x50ce2f,_0x5a3ed7={'PsMWl':'description','TWEMh':'string','EeHFW':_0x479568(0x19f),'XPwZr':_0x479568(0x1e1)};return _0x58293c['positional'](_0x5a3ed7[_0x479568(0x218)],{'type':_0x5a3ed7[_0x479568(0x1dd)],'description':_0x5a3ed7[_0x479568(0x252)],'demandOption':!![]})[_0x479568(0x24e)]('id',{'type':'string','description':_0x5a3ed7['XPwZr']});},async _0x2bcde6=>{const _0x159017={'njppN':function(_0x22f3fa,_0x22b6f7,_0x499f82){return _0x22f3fa(_0x22b6f7,_0x499f82);},'vIuBp':'add-scenario'};await _0x159017['njppN'](withTelemetry,_0x159017['vIuBp'],()=>featureAddScenario(_0x2bcde6['description'],_0x2bcde6['id']));})[_0x50ce2f(0x26f)](_0x50ce2f(0x1b2),'Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x3a269f=>{const _0x2535b5=_0x50ce2f,_0x34f2b7={'AcbNf':'New\x20scenario\x20description','tAxmP':_0x2535b5(0x29c),'fgQXo':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x3a269f['positional']('description',{'type':_0x2535b5(0x23b),'description':_0x34f2b7['AcbNf'],'demandOption':!![]})['option'](_0x34f2b7['tAxmP'],{'type':_0x2535b5(0x180),'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})['option']('id',{'type':'string','description':_0x34f2b7['fgQXo']});},async _0x4ec9d0=>{const _0x414fee=_0x50ce2f,_0x31c15f={'vopxT':function(_0x1e65ab,_0x13cb88,_0x5d43d6){return _0x1e65ab(_0x13cb88,_0x5d43d6);}};await _0x31c15f['vopxT'](withTelemetry,_0x414fee(0x2aa),()=>featureEditScenario(_0x4ec9d0['description'],{'id':_0x4ec9d0['id'],'scenario':_0x4ec9d0['scenario']}));})['command'](_0x50ce2f(0x1d6),'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x2b5287=>{const _0x30e988=_0x50ce2f,_0x3a8197={'ixygX':_0x30e988(0x293),'OgbAn':_0x30e988(0x179),'EyLlm':_0x30e988(0x1ca),'DCfmS':_0x30e988(0x1a4),'xCKfa':_0x30e988(0x170),'mefaN':_0x30e988(0x263)};return _0x2b5287[_0x30e988(0x247)]('id',{'type':'string','description':_0x30e988(0x17d)})['option'](_0x3a8197[_0x30e988(0x26d)],{'type':_0x3a8197['OgbAn'],'description':_0x3a8197[_0x30e988(0x2ac)]})[_0x30e988(0x24e)](_0x3a8197['DCfmS'],{'type':_0x3a8197['xCKfa'],'description':_0x3a8197['mefaN'],'default':![]});},async _0x5cddd9=>{const _0x577353=_0x50ce2f,_0x2cd519={'zJFbq':'report'},_0x4776b4=_0x5cddd9[_0x577353(0x293)],_0x50ec5d=_0x4776b4?_0x4776b4[_0x577353(0x2b8)](_0x42a2c6=>Number(_0x42a2c6)):undefined;await withTelemetry(_0x2cd519[_0x577353(0x29e)],()=>featureReportPrDescription(_0x5cddd9['id'],{'excludeScenarios':_0x50ec5d,'json':_0x5cddd9['json']}));})['command']('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x395924=>{const _0x9739e5=_0x50ce2f,_0x4f8954={'qYiWt':'string','WrpTN':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x395924['positional']('id',{'type':_0x4f8954[_0x9739e5(0x1df)],'description':_0x4f8954[_0x9739e5(0x1b7)]});},async _0x4f00b7=>{const _0x208bca=_0x50ce2f,_0x54eb2d={'fBiQV':function(_0x28e5ba,_0x42a3e8,_0x4d1573){return _0x28e5ba(_0x42a3e8,_0x4d1573);}};await _0x54eb2d[_0x208bca(0x19d)](withTelemetry,_0x208bca(0x1a5),()=>featureGetReview(_0x4f00b7['id']));})[_0x50ce2f(0x26f)]('delete\x20[id]',_0x50ce2f(0x2bd),_0x1f667f=>{const _0x4d3144=_0x50ce2f,_0x1fb12c={'uqEWj':'string'};return _0x1f667f[_0x4d3144(0x247)]('id',{'type':_0x1fb12c['uqEWj'],'description':'Feature\x20review\x20ID'});},async _0xf06cc8=>{const _0x807852=_0x50ce2f;await withTelemetry(_0x807852(0x212),()=>featureDelete(_0xf06cc8['id']));})[_0x50ce2f(0x26f)](_0x50ce2f(0x19a),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x2b268e=>{const _0x269063=_0x50ce2f,_0x122f8d={'ndHVL':_0x269063(0x24c)};return _0x2b268e[_0x269063(0x247)]('id',{'type':'string','description':_0x122f8d['ndHVL'],'demandOption':!![]});},async _0x3cdf6c=>{const _0x192589=_0x50ce2f,_0x42de03={'Keson':_0x192589(0x273)};await withTelemetry(_0x42de03[_0x192589(0x22d)],()=>featureRestore(_0x3cdf6c['id']));})['command']('setup\x20[token]','Initialize\x20Ranger\x20in\x20your\x20project',_0x40f7c5=>{const _0x168589=_0x50ce2f,_0xe1c082={'AKocN':'token','kwHme':'string','uYfuC':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','bzRzv':_0x168589(0x1b4),'FfVOq':_0x168589(0x23d),'sEjHb':'scope','qFNAY':'user','YlEUJ':'project','XUiRu':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','GeLCs':'force','QbIeH':'boolean','ooSgU':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','sgvSs':'opencode','ksgQf':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','BQleh':_0x168589(0x22a)};return _0x40f7c5['positional'](_0xe1c082['AKocN'],{'type':_0xe1c082['kwHme'],'description':_0xe1c082['uYfuC']})['option'](_0xe1c082[_0x168589(0x292)],{'type':_0x168589(0x170),'description':_0xe1c082[_0x168589(0x17b)],'default':![]})[_0x168589(0x24e)](_0xe1c082[_0x168589(0x262)],{'type':'string','choices':[_0xe1c082['qFNAY'],_0xe1c082['YlEUJ']],'description':_0xe1c082[_0x168589(0x211)]})[_0x168589(0x24e)]('url',{'type':_0xe1c082[_0x168589(0x171)],'description':_0x168589(0x165)})['option'](_0xe1c082['GeLCs'],{'type':_0xe1c082['QbIeH'],'description':_0xe1c082['ooSgU'],'default':![]})['option'](_0xe1c082['sgvSs'],{'type':'boolean','description':_0xe1c082['ksgQf'],'default':![]})[_0x168589(0x24e)]('allow-insecure-localhost',{'type':_0xe1c082[_0x168589(0x1e0)],'description':_0xe1c082[_0x168589(0x296)],'default':![]});},async _0xf6635=>{const _0x4759de=_0x50ce2f,_0x4a64c3={'foChW':_0x4759de(0x1c3)};await withTelemetry(_0x4a64c3[_0x4759de(0x1f7)],_0x4b49b0=>start(_0xf6635[_0x4759de(0x19b)],{'skipChromium':_0xf6635[_0x4759de(0x1b4)],'scope':_0xf6635['scope'],'url':_0xf6635['url'],'force':_0xf6635['force'],'opencode':_0xf6635['opencode'],'allowInsecureLocalhost':_0xf6635[_0x4759de(0x288)]},_0x4b49b0));})[_0x50ce2f(0x26f)]('setup-ci\x20<token>','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x271439=>{const _0x1f4c62=_0x50ce2f,_0x39209b={'AgBuU':'token','RdVeJ':_0x1f4c62(0x233),'VCPdu':_0x1f4c62(0x23b),'cjSPj':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','tiKmy':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'};return _0x271439[_0x1f4c62(0x247)](_0x39209b[_0x1f4c62(0x197)],{'type':_0x1f4c62(0x23b),'description':_0x39209b[_0x1f4c62(0x1ec)],'demandOption':!![]})[_0x1f4c62(0x24e)]('profile',{'type':_0x39209b['VCPdu'],'description':_0x39209b['cjSPj']})['option'](_0x1f4c62(0x217),{'type':_0x1f4c62(0x23b),'description':_0x39209b['tiKmy']})[_0x1f4c62(0x24e)]('skip-chromium',{'type':'boolean','description':_0x1f4c62(0x23c),'default':![]});},async _0x30ed4b=>{const _0x5bbcff=_0x50ce2f,_0x5b9bd0={'XUUHc':function(_0x13f87e,_0x46c8a7,_0x42fe0d){return _0x13f87e(_0x46c8a7,_0x42fe0d);}};await _0x5b9bd0['XUUHc'](withTelemetry,'setup-ci',_0x1b951f=>setupCi(_0x30ed4b[_0x5bbcff(0x19b)],{'profile':_0x30ed4b[_0x5bbcff(0x177)],'baseUrl':_0x30ed4b['base-url'],'skipChromium':_0x30ed4b[_0x5bbcff(0x1b4)]},_0x1b951f));})[_0x50ce2f(0x26f)]('login',_0x50ce2f(0x1d2),()=>{},async()=>{const _0x2eb37c=_0x50ce2f,_0x5c6c3d={'HIUMD':function(_0x4ab306,_0xe61486,_0x1f7bca){return _0x4ab306(_0xe61486,_0x1f7bca);},'PaFLK':_0x2eb37c(0x17f)};await _0x5c6c3d[_0x2eb37c(0x25d)](withTelemetry,_0x5c6c3d['PaFLK'],()=>login());})['command']('skillup','Install\x20Ranger\x20skills',_0x4dd69f=>{const _0x365b30=_0x50ce2f,_0x3cc674={'UogSB':_0x365b30(0x183),'hTawb':_0x365b30(0x23b),'KpnKI':'user','agrkX':_0x365b30(0x225),'EjgJp':_0x365b30(0x270)};return _0x4dd69f['option'](_0x365b30(0x1e9),{'type':'boolean','description':_0x3cc674['UogSB'],'default':![]})[_0x365b30(0x24e)]('scope',{'type':_0x3cc674['hTawb'],'choices':[_0x3cc674[_0x365b30(0x2a2)],_0x3cc674[_0x365b30(0x20e)]],'description':_0x3cc674[_0x365b30(0x25a)]});},async _0x145b0e=>{const _0x444395=_0x50ce2f,_0x3ae5a5={'qIhhg':function(_0x4e7b3a,_0x38829b,_0x1de638){return _0x4e7b3a(_0x38829b,_0x1de638);}},_0x28c76f=Boolean(_0x145b0e['opencode']);await _0x3ae5a5['qIhhg'](withTelemetry,_0x444395(0x276),()=>skillup({'autoInstall':_0x145b0e['scope'],'platform':_0x28c76f?'opencode':_0x444395(0x291)}));})['command']('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x5c021e={'DREkW':function(_0xebfea8,_0x48b349,_0x47d88c){return _0xebfea8(_0x48b349,_0x47d88c);}};await _0x5c021e['DREkW'](withTelemetry,'clean',()=>clean());})[_0x50ce2f(0x26f)]('profile',_0x50ce2f(0x25e),_0x488948=>{const _0x462644=_0x50ce2f,_0x3f4dca={'Fscoe':_0x462644(0x2c2),'wBonN':'string','kMrgF':_0x462644(0x1e5),'wublo':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','IdBtS':'skip-auth','WztoH':'force','BWzOa':_0x462644(0x170),'XCLcJ':'cdp-endpoint','fiFJb':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','qHDYL':_0x462644(0x288),'PLznS':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','EDhPT':'setup-header','pgvmo':function(_0x523976,_0x1feb84,_0x110505,_0x49d6e9){return _0x523976(_0x1feb84,_0x110505,_0x49d6e9);},'GbIHR':_0x462644(0x237),'RHqTN':function(_0x20c784,_0x4f5d34){return _0x20c784(_0x4f5d34);},'ajprh':_0x462644(0x19c),'XwGCO':function(_0x42eb8e,_0x309b48,_0x18c4fc){return _0x42eb8e(_0x309b48,_0x18c4fc);},'uCqiI':'Profile\x20name','PqwJD':function(_0x52b88d,_0x5e09f4,_0x224c9a){return _0x52b88d(_0x5e09f4,_0x224c9a);},'OOlQO':'profile\x20ls','xOMGs':_0x462644(0x205),'jJUBJ':'profile\x20config\x20get','itbmE':function(_0x540933,_0x3c8f87,_0xfd807f){return _0x540933(_0x3c8f87,_0xfd807f);},'sJPab':'profile\x20config\x20list','mMTxE':'profile','QgsHA':'profile\x20config\x20unset','sjChl':'key','ZSqVv':_0x462644(0x285),'tJKzJ':'get\x20<profile>\x20<key>','AxMXP':_0x462644(0x174),'rilIN':'list\x20<profile>','oxVFI':_0x462644(0x1a9),'HngLu':'add\x20<profile-name>','RFovY':_0x462644(0x206),'FTLAQ':'encrypt-auth\x20<profile>','DWFIZ':'List\x20all\x20profiles','oJNiI':_0x462644(0x1c4)};return _0x488948[_0x462644(0x246)](PROFILE_HELP)[_0x462644(0x26f)](_0x3f4dca['HngLu'],_0x3f4dca['RFovY'],_0x22034f=>{const _0x5f3c27=_0x462644;return _0x22034f[_0x5f3c27(0x247)](_0x3f4dca[_0x5f3c27(0x24b)],{'type':_0x3f4dca['wBonN'],'description':_0x3f4dca[_0x5f3c27(0x188)],'demandOption':!![]})['option']('ci',{'type':_0x5f3c27(0x170),'description':_0x3f4dca[_0x5f3c27(0x1b6)],'default':![]})[_0x5f3c27(0x24e)](_0x3f4dca[_0x5f3c27(0x26b)],{'type':_0x5f3c27(0x170),'description':_0x5f3c27(0x26a),'default':![]})[_0x5f3c27(0x24e)](_0x5f3c27(0x196),{'type':_0x3f4dca[_0x5f3c27(0x200)],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x3f4dca['WztoH'],{'type':_0x3f4dca[_0x5f3c27(0x28f)],'description':_0x5f3c27(0x1fb),'default':![]})['option'](_0x3f4dca['XCLcJ'],{'type':_0x5f3c27(0x23b),'description':_0x3f4dca[_0x5f3c27(0x1f5)]})[_0x5f3c27(0x24e)](_0x3f4dca['qHDYL'],{'type':_0x3f4dca['BWzOa'],'description':_0x3f4dca['PLznS'],'default':![]})['option']('safe-mode',{'type':_0x5f3c27(0x170),'description':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','default':![]})['option'](_0x3f4dca[_0x5f3c27(0x23e)],{'type':'string','array':!![],'description':_0x5f3c27(0x2ab)});},async _0x2495c4=>{const _0x1e4b57=_0x462644;await _0x3f4dca['pgvmo'](withTelemetry,_0x3f4dca[_0x1e4b57(0x1a6)],_0xd138f0=>addEnv(_0x2495c4['profile-name'],{'ci':_0x2495c4['ci'],'skipAuth':_0x2495c4['skip-auth'],'url':_0x2495c4[_0x1e4b57(0x196)],'force':_0x2495c4[_0x1e4b57(0x1c6)],'cdpEndpoint':_0x2495c4[_0x1e4b57(0x1bf)],'allowInsecureLocalhost':_0x2495c4['allow-insecure-localhost'],'safeMode':_0x2495c4['safe-mode'],'setupHeader':_0x2495c4['setup-header']},_0xd138f0),{'isElectron':_0x3f4dca[_0x1e4b57(0x216)](Boolean,_0x2495c4['cdp-endpoint'])});})['command'](_0x462644(0x1de),'Switch\x20to\x20using\x20a\x20specific\x20profile',_0xf5a042=>{const _0x3f50f2=_0x462644;return _0xf5a042[_0x3f50f2(0x247)](_0x3f50f2(0x2c2),{'type':_0x3f50f2(0x23b),'description':_0x3f4dca['ajprh'],'demandOption':!![]});},async _0x502b63=>{const _0x4f4fd2=_0x462644;await _0x3f4dca[_0x4f4fd2(0x1d9)](withTelemetry,'profile\x20use',()=>useEnv(_0x502b63[_0x4f4fd2(0x2c2)]));})['command'](_0x3f4dca[_0x462644(0x2a0)],_0x462644(0x2c7),_0x451baa=>{const _0xfedef8=_0x462644;return _0x451baa['positional'](_0xfedef8(0x177),{'type':_0x3f4dca['wBonN'],'description':_0x3f4dca['uCqiI'],'demandOption':!![]});},async _0x2a2d27=>{const _0x27d22c=_0x462644;await _0x3f4dca[_0x27d22c(0x277)](withTelemetry,_0x27d22c(0x202),()=>authEncrypt(_0x2a2d27['profile']));})[_0x462644(0x26f)]('ls',_0x3f4dca['DWFIZ'],()=>{},async()=>{await withTelemetry(_0x3f4dca['OOlQO'],()=>envList());})['command'](_0x462644(0x269),_0x462644(0x162),_0x163750=>{const _0x4bcd71=_0x462644;return _0x163750[_0x4bcd71(0x247)]('profile-name',{'type':_0x4bcd71(0x23b),'description':_0x4bcd71(0x1e7),'demandOption':!![]})['option'](_0x3f4dca['qHDYL'],{'type':'boolean','description':_0x3f4dca[_0x4bcd71(0x1bc)]});},async _0x109f2d=>{const _0x54bfff=_0x462644;await _0x3f4dca['XwGCO'](withTelemetry,_0x3f4dca[_0x54bfff(0x1ac)],_0x45d413=>updateEnv(_0x109f2d['profile-name'],_0x45d413,{'allowInsecureLocalhost':_0x109f2d[_0x54bfff(0x288)]}));})['command'](_0x462644(0x1e4),_0x462644(0x223),_0x3295da=>{const _0x434707=_0x462644,_0x2ceea2={'YcjKu':'profile','pimoX':_0x3f4dca[_0x434707(0x220)],'xVPMo':_0x3f4dca['sjChl'],'Ghdhd':_0x3f4dca[_0x434707(0x200)],'HNkDS':_0x3f4dca['ZSqVv'],'DqjWa':function(_0xc5629f,_0x2db88c,_0x66bc42){return _0xc5629f(_0x2db88c,_0x66bc42);},'ZRMIn':'profile\x20config\x20set'};return _0x3295da[_0x434707(0x246)](PROFILE_CONFIG_HELP)['command'](_0x434707(0x1dc),'Set\x20a\x20config\x20value',_0x3f43e8=>{const _0x45e408=_0x434707;return _0x3f43e8['positional'](_0x2ceea2['YcjKu'],{'type':_0x45e408(0x23b),'description':_0x2ceea2[_0x45e408(0x1db)],'demandOption':!![]})['positional'](_0x2ceea2[_0x45e408(0x16e)],{'type':_0x2ceea2[_0x45e408(0x282)],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x45e408(0x247)](_0x45e408(0x29b),{'type':_0x45e408(0x23b),'description':_0x2ceea2['HNkDS'],'demandOption':!![]});},async _0x5219f8=>{const _0x40164d=_0x434707;await _0x2ceea2[_0x40164d(0x18f)](withTelemetry,_0x2ceea2[_0x40164d(0x238)],()=>configSet(_0x5219f8[_0x40164d(0x177)],_0x5219f8[_0x40164d(0x1c1)],_0x5219f8[_0x40164d(0x29b)]));})[_0x434707(0x26f)](_0x3f4dca['tJKzJ'],_0x3f4dca['AxMXP'],_0x4dee3e=>{const _0x4c33b5=_0x434707;return _0x4dee3e['positional'](_0x4c33b5(0x177),{'type':'string','description':_0x3f4dca[_0x4c33b5(0x220)],'demandOption':!![]})['positional'](_0x4c33b5(0x1c1),{'type':_0x3f4dca['wBonN'],'description':_0x4c33b5(0x1f6),'demandOption':!![]});},async _0x2341f4=>{const _0x14d29d=_0x434707;await withTelemetry(_0x3f4dca[_0x14d29d(0x16a)],()=>configGet(_0x2341f4[_0x14d29d(0x177)],_0x2341f4[_0x14d29d(0x1c1)]));})['command'](_0x3f4dca['rilIN'],'List\x20all\x20config\x20for\x20a\x20profile',_0x123345=>{const _0x27e1db=_0x434707;return _0x123345[_0x27e1db(0x247)]('profile',{'type':'string','description':_0x27e1db(0x189),'demandOption':!![]});},async _0x53786b=>{const _0x50e808=_0x434707;await _0x3f4dca['itbmE'](withTelemetry,_0x3f4dca['sJPab'],()=>configList(_0x53786b[_0x50e808(0x177)]));})[_0x434707(0x26f)](_0x434707(0x286),'Remove\x20a\x20config\x20value',_0x30a64b=>{const _0x576345=_0x434707;return _0x30a64b[_0x576345(0x247)](_0x3f4dca[_0x576345(0x28c)],{'type':'string','description':_0x576345(0x189),'demandOption':!![]})['positional']('key',{'type':_0x3f4dca[_0x576345(0x200)],'description':_0x576345(0x2b5),'demandOption':!![]});},async _0x5a9263=>{const _0x1c5e07=_0x434707;await withTelemetry(_0x3f4dca[_0x1c5e07(0x164)],()=>configUnset(_0x5a9263['profile'],_0x5a9263['key']));})['demandCommand'](0x1,_0x3f4dca[_0x434707(0x20a)]);})['demandCommand'](0x1,_0x3f4dca['oJNiI']);})[_0x50ce2f(0x26f)]('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{await withTelemetry('status',()=>status());})['command'](_0x50ce2f(0x16f),_0x50ce2f(0x22f),()=>{},async()=>{const _0x2704fb=_0x50ce2f,_0xab5a0={'noISZ':function(_0x38974f,_0x5acd02,_0x1e9c9f){return _0x38974f(_0x5acd02,_0x1e9c9f);}};await _0xab5a0[_0x2704fb(0x24d)](withTelemetry,_0x2704fb(0x16f),()=>update());})[_0x50ce2f(0x26f)]('print-access-token','Print\x20the\x20current\x20CLI\x20access\x20token',()=>{},async()=>{const _0x76757c=_0x50ce2f,_0xc9d14b={'MPIRM':function(_0x5d4861){return _0x5d4861();},'UGqDF':function(_0x58a0d5,_0x56a8ca,_0x180999){return _0x58a0d5(_0x56a8ca,_0x180999);},'gpaoO':'print-access-token'};await _0xc9d14b['UGqDF'](withTelemetry,_0xc9d14b[_0x76757c(0x1b0)],async()=>{const _0x175015=_0x76757c,_0x2a5491=await _0xc9d14b[_0x175015(0x1b3)](getToken);if(!_0x2a5491)throw new Error(_0x175015(0x298));console[_0x175015(0x2a3)](_0x2a5491);});})[_0x50ce2f(0x26f)]('go',_0x50ce2f(0x190),_0x50a75f=>{const _0x175348=_0x50ce2f,_0x4247a4={'ucqYf':_0x175348(0x175),'AUcCi':_0x175348(0x23b),'ThyRO':'Optional\x20feature\x20ID','uwUAd':'notes','biOiX':_0x175348(0x2ad),'JRuQz':_0x175348(0x180),'AaikL':'Scenario\x20index\x20(1-based)','eMSTf':'start-path','RavMp':'model','LtSoU':_0x175348(0x1cf),'ELgZJ':_0x175348(0x170),'hTLyR':_0x175348(0x215),'KlvGB':'verified','OQSGr':_0x175348(0x2c5),'ImwSQ':_0x175348(0x26e)};return _0x50a75f['option'](_0x4247a4['ucqYf'],{'type':_0x4247a4[_0x175348(0x20d)],'description':_0x4247a4['ThyRO']})[_0x175348(0x24e)]('profile',{'type':_0x4247a4[_0x175348(0x20d)],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})['option'](_0x4247a4['uwUAd'],{'type':_0x4247a4['AUcCi'],'description':_0x4247a4['biOiX']})['option'](_0x175348(0x29c),{'type':_0x4247a4[_0x175348(0x244)],'description':_0x4247a4['AaikL']})[_0x175348(0x24e)](_0x4247a4['eMSTf'],{'type':_0x4247a4['AUcCi'],'description':_0x175348(0x1ba)})[_0x175348(0x24e)](_0x4247a4[_0x175348(0x268)],{'type':_0x4247a4[_0x175348(0x20d)],'description':_0x175348(0x1a1)})['option'](_0x4247a4['LtSoU'],{'type':_0x4247a4[_0x175348(0x198)],'description':_0x175348(0x210),'default':![]})['option'](_0x4247a4[_0x175348(0x24a)],{'type':_0x4247a4[_0x175348(0x20d)],'hidden':!![],'choices':[_0x4247a4['KlvGB'],_0x175348(0x1f2),_0x4247a4['OQSGr'],'failed',_0x175348(0x178)]})['option'](_0x4247a4['ImwSQ'],{'type':_0x175348(0x170),'hidden':!![]})['option'](_0x175348(0x1f8),{'type':_0x4247a4['AUcCi'],'hidden':!![]})['option'](_0x175348(0x1eb),{'type':'string','hidden':!![]})[_0x175348(0x24e)](_0x175348(0x1d1),{'type':_0x175348(0x180),'hidden':!![]});},async _0x1217be=>{await runGoCommand(_0x1217be);})['command'](_0x50ce2f(0x1c8),![],_0x3dbf49=>{const _0x236b77=_0x50ce2f,_0x368f3b={'UKXHv':'profile','TVRNQ':_0x236b77(0x23b),'vsZjh':function(_0xf9264e,_0x40c006,_0x569069){return _0xf9264e(_0x40c006,_0x569069);},'WpeRP':_0x236b77(0x194),'KiQYc':function(_0x5ab419,_0xfa598b){return _0x5ab419(_0xfa598b);},'SGkty':_0x236b77(0x207)};return _0x3dbf49[_0x236b77(0x26f)](_0x368f3b[_0x236b77(0x201)],![],_0x2fd0cc=>{const _0x3e43d5=_0x236b77;return _0x2fd0cc[_0x3e43d5(0x247)](_0x368f3b['UKXHv'],{'type':_0x368f3b[_0x3e43d5(0x1b5)],'description':'Profile\x20name','demandOption':!![]});},async _0x2c39a3=>{const _0xabc549=_0x236b77;_0x368f3b[_0xabc549(0x2b6)](warnRenamed,'ranger\x20auth\x20encrypt',_0x368f3b[_0xabc549(0x24f)]),await _0x368f3b['KiQYc'](authEncrypt,_0x2c39a3['profile']);})['demandCommand'](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})[_0x50ce2f(0x26f)](_0x50ce2f(0x1a3),![],_0x3f43cc=>{const _0x52f6eb=_0x50ce2f,_0x3b0c66={'MgCMg':'string','iZtFS':_0x52f6eb(0x1b4),'gXSIZ':_0x52f6eb(0x170),'Ipogl':_0x52f6eb(0x257),'heUww':_0x52f6eb(0x2ca),'Jaqmj':'project','dCjAI':'url','NhrES':_0x52f6eb(0x165),'BWkbx':_0x52f6eb(0x1c6)};return _0x3f43cc['positional'](_0x52f6eb(0x19b),{'type':_0x3b0c66[_0x52f6eb(0x1b9)],'description':_0x52f6eb(0x1cb)})[_0x52f6eb(0x24e)](_0x3b0c66['iZtFS'],{'type':_0x3b0c66['gXSIZ'],'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})['option'](_0x3b0c66['Ipogl'],{'type':_0x3b0c66['MgCMg'],'choices':[_0x3b0c66['heUww'],_0x3b0c66[_0x52f6eb(0x1be)]],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x3b0c66[_0x52f6eb(0x2bc)],{'type':'string','description':_0x3b0c66[_0x52f6eb(0x2a9)]})[_0x52f6eb(0x24e)](_0x3b0c66['BWkbx'],{'type':_0x52f6eb(0x170),'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]});},async _0x2f0353=>{const _0xbd79eb=_0x50ce2f,_0x3199ea={'bNnvb':function(_0x4cdcb1,_0x432a5f,_0x266e76){return _0x4cdcb1(_0x432a5f,_0x266e76);},'CnypM':_0xbd79eb(0x173),'oiDTw':_0xbd79eb(0x1c3)};_0x3199ea[_0xbd79eb(0x2be)](warnRenamed,_0x3199ea['CnypM'],'ranger\x20setup'),await withTelemetry(_0x3199ea['oiDTw'],_0x51c580=>start(_0x2f0353[_0xbd79eb(0x19b)],{'skipChromium':_0x2f0353['skip-chromium'],'scope':_0x2f0353[_0xbd79eb(0x257)],'url':_0x2f0353[_0xbd79eb(0x196)],'force':_0x2f0353[_0xbd79eb(0x1c6)]},_0x51c580));})[_0x50ce2f(0x26f)](_0x50ce2f(0x235),![],_0x2ba6e0=>{const _0x36ecbd=_0x50ce2f,_0x1c799c={'MkMWm':'env','sfDpi':_0x36ecbd(0x23b),'CRZuv':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','vvXZg':'item','iWetA':_0x36ecbd(0x2c3),'UQfcr':_0x36ecbd(0x177),'pRZYT':'scenario','ibgVl':_0x36ecbd(0x1ba),'KFmSj':'debug-outcome','QqgEy':_0x36ecbd(0x178)};return _0x2ba6e0['option'](_0x1c799c[_0x36ecbd(0x29d)],{'type':_0x1c799c['sfDpi'],'description':_0x36ecbd(0x2ae)})['option']('task',{'type':'string','description':_0x1c799c[_0x36ecbd(0x21b)]})[_0x36ecbd(0x24e)](_0x1c799c['vvXZg'],{'type':'number','description':_0x1c799c[_0x36ecbd(0x25f)]})[_0x36ecbd(0x24e)](_0x1c799c[_0x36ecbd(0x2b0)],{'type':_0x36ecbd(0x23b),'hidden':!![]})['option']('notes',{'type':_0x36ecbd(0x23b),'hidden':!![]})['option'](_0x1c799c[_0x36ecbd(0x250)],{'type':'number','hidden':!![]})['option'](_0x36ecbd(0x1f9),{'type':_0x36ecbd(0x23b),'description':_0x1c799c['ibgVl']})['option'](_0x36ecbd(0x187),{'type':_0x1c799c[_0x36ecbd(0x222)],'hidden':!![]})['option']('headed',{'type':_0x36ecbd(0x170),'hidden':!![],'default':![]})[_0x36ecbd(0x24e)](_0x1c799c['KFmSj'],{'type':'string','hidden':!![],'choices':['verified','partial','blocked','failed',_0x1c799c[_0x36ecbd(0x2a1)]]});},async _0x1ace28=>{const _0x1f4ac4={'WJLUP':function(_0x295e46,_0xceb2e8,_0xcbbd73){return _0x295e46(_0xceb2e8,_0xcbbd73);}};await _0x1f4ac4['WJLUP'](runGoCommand,_0x1ace28,!![]);})[_0x50ce2f(0x26f)]('add\x20env\x20<env-name>',![],_0x352e40=>{const _0x32f96a=_0x50ce2f,_0x2c34c9={'jhMLr':_0x32f96a(0x2c1),'lnpmd':_0x32f96a(0x170),'UXXly':_0x32f96a(0x254)};return _0x352e40['positional'](_0x32f96a(0x265),{'type':'string','description':_0x2c34c9[_0x32f96a(0x1a7)],'demandOption':!![]})['option']('ci',{'type':_0x2c34c9['lnpmd'],'description':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0x32f96a(0x24e)](_0x2c34c9['UXXly'],{'type':'boolean','description':_0x32f96a(0x26a),'default':![]});},async _0x158dfb=>{const _0x58b69d=_0x50ce2f,_0x4d5955={'ItrCD':function(_0x20e558,_0x3ac7da,_0x14c166){return _0x20e558(_0x3ac7da,_0x14c166);},'lEXVM':'ranger\x20add\x20env'};_0x4d5955['ItrCD'](warnRenamed,_0x4d5955['lEXVM'],_0x58b69d(0x28e)),await withTelemetry(_0x58b69d(0x18d),_0x2b7b22=>addEnv(_0x158dfb[_0x58b69d(0x265)],{'ci':_0x158dfb['ci'],'skipAuth':_0x158dfb[_0x58b69d(0x254)]},_0x2b7b22));})['command'](_0x50ce2f(0x1fc),![],_0xe8ab66=>{const _0x12ea70=_0x50ce2f,_0x1ef9fa={'IFqCf':_0x12ea70(0x265),'OrWZv':_0x12ea70(0x23b),'HhFEU':_0x12ea70(0x1fd)};return _0xe8ab66[_0x12ea70(0x247)](_0x1ef9fa[_0x12ea70(0x27a)],{'type':_0x1ef9fa['OrWZv'],'description':_0x1ef9fa[_0x12ea70(0x1ae)],'demandOption':!![]});},async _0xf448e=>{const _0x375d93=_0x50ce2f,_0x2ebe81={'PYGEa':'ranger\x20use','RvTNa':function(_0x1fc493,_0x327f64,_0x3f9405){return _0x1fc493(_0x327f64,_0x3f9405);},'ZYXto':_0x375d93(0x1ee)};warnRenamed(_0x2ebe81[_0x375d93(0x23f)],_0x375d93(0x1f0)),await _0x2ebe81[_0x375d93(0x283)](withTelemetry,_0x2ebe81['ZYXto'],()=>useEnv(_0xf448e[_0x375d93(0x265)]));})[_0x50ce2f(0x26f)]('config',![],_0x2bb4aa=>{const _0x475e13=_0x50ce2f,_0x5a7c19={'sBvIc':'env','ZoGWR':'Environment\x20name','MyMqY':'string','IUqIr':_0x475e13(0x285),'gmsiP':'ranger\x20config\x20set','UpFcq':function(_0x42711d,_0x3bfe74,_0x14afad){return _0x42711d(_0x3bfe74,_0x14afad);},'QCEGa':_0x475e13(0x2c8),'ICSlX':_0x475e13(0x1c1),'vloAN':_0x475e13(0x241),'QchNI':function(_0x2d9077,_0x56aca8,_0xc9c01b){return _0x2d9077(_0x56aca8,_0xc9c01b);},'MOcuI':_0x475e13(0x2bb),'yOQPs':function(_0x205dd4,_0x539086,_0x11c438){return _0x205dd4(_0x539086,_0x11c438);},'yEcTm':'ranger\x20profile\x20config\x20list','cJlTY':function(_0xf220cf,_0x502d3b,_0x58dea7){return _0xf220cf(_0x502d3b,_0x58dea7);},'UdVTV':'Config\x20key\x20to\x20remove','JNvIx':_0x475e13(0x21e),'WraMz':function(_0x1e262b,_0x1c5299,_0x3bb38f){return _0x1e262b(_0x1c5299,_0x3bb38f);},'BreBB':'set\x20<env>\x20<key>\x20<value>','ixqCl':'unset\x20<env>\x20<key>','pHEjT':_0x475e13(0x1ad)};return _0x2bb4aa['command'](_0x5a7c19['BreBB'],![],_0x503317=>{const _0x412be0=_0x475e13;return _0x503317['positional'](_0x5a7c19['sBvIc'],{'type':_0x412be0(0x23b),'description':_0x5a7c19[_0x412be0(0x219)],'demandOption':!![]})[_0x412be0(0x247)]('key',{'type':_0x5a7c19['MyMqY'],'description':_0x412be0(0x16d),'demandOption':!![]})[_0x412be0(0x247)]('value',{'type':'string','description':_0x5a7c19['IUqIr'],'demandOption':!![]});},async _0x424925=>{const _0x3f5af2=_0x475e13;warnRenamed(_0x5a7c19[_0x3f5af2(0x2b9)],_0x3f5af2(0x236)),await _0x5a7c19[_0x3f5af2(0x290)](withTelemetry,_0x5a7c19[_0x3f5af2(0x2cb)],()=>configSet(_0x424925['env'],_0x424925[_0x3f5af2(0x1c1)],_0x424925[_0x3f5af2(0x29b)]));})['command'](_0x475e13(0x1d0),![],_0x2b1399=>{const _0x62c68b=_0x475e13;return _0x2b1399[_0x62c68b(0x247)](_0x62c68b(0x1f8),{'type':_0x62c68b(0x23b),'description':_0x62c68b(0x1e3),'demandOption':!![]})['positional'](_0x5a7c19['ICSlX'],{'type':_0x5a7c19[_0x62c68b(0x20c)],'description':_0x62c68b(0x1f6),'demandOption':!![]});},async _0x183899=>{const _0x25b1ea=_0x475e13;warnRenamed(_0x5a7c19['vloAN'],'ranger\x20profile\x20config\x20get'),await _0x5a7c19[_0x25b1ea(0x2a6)](withTelemetry,_0x5a7c19['MOcuI'],()=>configGet(_0x183899[_0x25b1ea(0x1f8)],_0x183899[_0x25b1ea(0x1c1)]));})['command'](_0x475e13(0x278),![],_0x3d88c5=>{const _0x3c95b8=_0x475e13;return _0x3d88c5[_0x3c95b8(0x247)](_0x5a7c19[_0x3c95b8(0x242)],{'type':_0x5a7c19[_0x3c95b8(0x20c)],'description':_0x5a7c19[_0x3c95b8(0x219)],'demandOption':!![]});},async _0x29cd12=>{const _0x1f1057=_0x475e13;_0x5a7c19[_0x1f1057(0x169)](warnRenamed,'ranger\x20config\x20list',_0x5a7c19[_0x1f1057(0x1a2)]),await _0x5a7c19[_0x1f1057(0x260)](withTelemetry,_0x1f1057(0x192),()=>configList(_0x29cd12['env']));})[_0x475e13(0x26f)](_0x5a7c19[_0x475e13(0x2a7)],![],_0x9eb49e=>{const _0x34317d=_0x475e13;return _0x9eb49e['positional'](_0x34317d(0x1f8),{'type':_0x5a7c19['MyMqY'],'description':_0x5a7c19['ZoGWR'],'demandOption':!![]})[_0x34317d(0x247)](_0x5a7c19['ICSlX'],{'type':'string','description':_0x5a7c19[_0x34317d(0x281)],'demandOption':!![]});},async _0x546e06=>{warnRenamed(_0x5a7c19['JNvIx'],'ranger\x20profile\x20config\x20unset'),await _0x5a7c19['WraMz'](withTelemetry,'config\x20unset',()=>configUnset(_0x546e06['env'],_0x546e06['key']));})[_0x475e13(0x168)](0x1,_0x5a7c19['pHEjT']);})[_0x50ce2f(0x26f)]('env',![],_0x5d181c=>{const _0x3c72ba=_0x50ce2f,_0x2dc97a={'olGzO':function(_0x4b49c1,_0xbb5783,_0x5c7afa){return _0x4b49c1(_0xbb5783,_0x5c7afa);},'NRpqP':'ranger\x20env\x20ls','Nuece':'env-name','rFeiw':function(_0x549ec4,_0x218bfc,_0x986f66){return _0x549ec4(_0x218bfc,_0x986f66);},'bUoRc':'env\x20update'};return _0x5d181c[_0x3c72ba(0x26f)]('ls',![],()=>{},async()=>{const _0x15db76=_0x3c72ba;_0x2dc97a[_0x15db76(0x1ce)](warnRenamed,_0x2dc97a[_0x15db76(0x2b3)],'ranger\x20profile\x20ls'),await withTelemetry('env\x20list',()=>envList());})['command']('update\x20<env-name>',![],_0x4cbe68=>{const _0x69076f=_0x3c72ba;return _0x4cbe68['positional'](_0x2dc97a[_0x69076f(0x22e)],{'type':_0x69076f(0x23b),'description':_0x69076f(0x2c0),'demandOption':!![]});},async _0x162026=>{const _0x214558=_0x3c72ba;_0x2dc97a[_0x214558(0x1aa)](warnRenamed,_0x214558(0x1f1),'ranger\x20profile\x20update'),await _0x2dc97a[_0x214558(0x1ce)](withTelemetry,_0x2dc97a[_0x214558(0x243)],_0x1b4a94=>updateEnv(_0x162026[_0x214558(0x265)],_0x1b4a94));})[_0x3c72ba(0x168)](0x1,_0x3c72ba(0x248));})[_0x50ce2f(0x26f)]('feature',![],_0x3c179d=>{const _0x1982b0=_0x50ce2f,_0x1d396b={'lFIdu':_0x1982b0(0x1d5),'wrqhz':'string','SCLVJ':_0x1982b0(0x1bb),'UrlCq':_0x1982b0(0x245),'qlzXY':_0x1982b0(0x29c),'KIQaI':'ranger\x20feature\x20create','GUBhK':_0x1982b0(0x172),'RMfPk':'--scenario','ZlvCP':_0x1982b0(0x280),'nRVQl':'limit','Vpeuw':'offset','rnLCv':_0x1982b0(0x295),'qQOrh':'Include\x20soft-deleted\x20feature\x20reviews','aVgub':function(_0x5ac2fa,_0x400ac0,_0x365cf9){return _0x5ac2fa(_0x400ac0,_0x365cf9);},'badFq':_0x1982b0(0x226),'UmjHr':_0x1982b0(0x231),'eIcqz':'Feature\x20review\x20ID','heqwO':'ranger\x20feature\x20show','LmpEe':_0x1982b0(0x266),'kryZI':_0x1982b0(0x1ff),'UGHJQ':_0x1982b0(0x274),'QPEvr':_0x1982b0(0x19f),'aPdDK':'ranger\x20feature\x20add-checklist-item','VoIQg':function(_0xa537bc,_0x8e6715,_0x29805d){return _0xa537bc(_0x8e6715,_0x29805d);},'vCTFW':'feature\x20add-checklist-item','JKbOD':_0x1982b0(0x284),'anzCn':'ranger\x20feature\x20delete','UbkKs':'ranger\x20delete','zJkha':'feature\x20delete','nvhtL':'ranger\x20feature\x20restore','aSURI':'ranger\x20restore','HZyjb':_0x1982b0(0x184),'juEWn':'create\x20<name>','mCvdn':'list','nJEiy':'show\x20[id]','sdvjP':'resume\x20[id]','slJVE':'add-checklist-item\x20<description>','axoqv':_0x1982b0(0x27d),'NBapj':_0x1982b0(0x27e)};return _0x3c179d['command'](_0x1d396b['juEWn'],![],_0x428af0=>{const _0x17681d=_0x1982b0;return _0x428af0['positional'](_0x1d396b[_0x17681d(0x20f)],{'type':_0x1d396b[_0x17681d(0x253)],'description':_0x17681d(0x229),'demandOption':!![]})[_0x17681d(0x24e)](_0x1d396b['SCLVJ'],{'type':_0x1d396b['wrqhz'],'alias':'d','description':_0x1d396b['UrlCq']})[_0x17681d(0x24e)]('checklist',{'type':_0x17681d(0x179),'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x1d396b['qlzXY'],{'type':'array','hidden':!![]});},async _0x31717e=>{const _0x152de6=_0x1982b0;warnRenamed(_0x1d396b['KIQaI'],_0x1d396b['GUBhK']),warnFlagRenamed(_0x1d396b['GUBhK'],_0x152de6(0x1a0),_0x1d396b['RMfPk']);const _0x6a2856=_0x31717e['scenario']||_0x31717e[_0x152de6(0x1a8)];await withTelemetry('feature\x20create',()=>featureCreate(_0x31717e[_0x152de6(0x1d5)],{'description':_0x31717e[_0x152de6(0x1bb)],'scenarios':_0x6a2856}));})['command'](_0x1d396b['mCvdn'],![],_0x361b5d=>{const _0x83d3a7=_0x1982b0;return _0x361b5d[_0x83d3a7(0x24e)](_0x83d3a7(0x1e8),{'type':_0x83d3a7(0x170),'description':_0x1d396b['ZlvCP']})['option'](_0x1d396b['nRVQl'],{'type':_0x83d3a7(0x180),'alias':'l','description':_0x83d3a7(0x228),'default':0xa})[_0x83d3a7(0x24e)](_0x1d396b['Vpeuw'],{'type':'number','alias':'o','description':_0x1d396b['rnLCv'],'default':0x0})[_0x83d3a7(0x24e)]('include-deleted',{'type':_0x83d3a7(0x170),'alias':'d','description':_0x1d396b['qQOrh'],'default':![]});},async _0x18883a=>{const _0x3e8965=_0x1982b0;_0x1d396b['aVgub'](warnRenamed,_0x1d396b[_0x3e8965(0x1ed)],_0x1d396b[_0x3e8965(0x2a4)]),await withTelemetry(_0x3e8965(0x17e),()=>featureList({'currentBranch':_0x18883a['current-branch'],'limit':_0x18883a[_0x3e8965(0x17c)],'offset':_0x18883a[_0x3e8965(0x203)],'includeDeleted':_0x18883a['include-deleted']}));})['command'](_0x1d396b['nJEiy'],![],_0x3b36a6=>{const _0x411871=_0x1982b0;return _0x3b36a6['positional']('id',{'type':_0x411871(0x23b),'description':_0x1d396b[_0x411871(0x21a)]});},async _0x4a47d0=>{const _0x29cc95=_0x1982b0;_0x1d396b['aVgub'](warnRenamed,_0x1d396b['heqwO'],_0x1d396b[_0x29cc95(0x28d)]),await withTelemetry(_0x29cc95(0x279),()=>featureShow(_0x4a47d0['id']));})[_0x1982b0(0x26f)](_0x1d396b[_0x1982b0(0x1c2)],![],_0x2f54be=>{const _0x391b25=_0x1982b0;return _0x2f54be['positional']('id',{'type':_0x391b25(0x23b),'description':_0x1d396b[_0x391b25(0x261)]});},async _0x33006e=>{const _0x1fe8c0=_0x1982b0;warnRenamed(_0x1d396b[_0x1fe8c0(0x1cd)],'ranger\x20resume'),await withTelemetry('feature\x20resume',()=>featureResume(_0x33006e['id']));})['command'](_0x1d396b[_0x1982b0(0x1c9)],![],_0x3c76e7=>{const _0x18189e=_0x1982b0;return _0x3c76e7['positional'](_0x1d396b['SCLVJ'],{'type':_0x1d396b[_0x18189e(0x253)],'description':_0x1d396b[_0x18189e(0x294)],'demandOption':!![]})['option']('id',{'type':_0x18189e(0x23b),'description':_0x18189e(0x1e1)});},async _0x5a9a52=>{const _0x19c61b=_0x1982b0;_0x1d396b['aVgub'](warnRenamed,_0x1d396b['aPdDK'],_0x19c61b(0x166)),await _0x1d396b['VoIQg'](withTelemetry,_0x1d396b['vCTFW'],()=>featureAddScenario(_0x5a9a52[_0x19c61b(0x1bb)],_0x5a9a52['id']));})['command'](_0x1d396b['axoqv'],![],_0x46a943=>{return _0x46a943['positional']('id',{'type':_0x1d396b['wrqhz'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x1d02a5=>{const _0x281237=_0x1982b0;_0x1d396b[_0x281237(0x227)](warnRenamed,_0x1d396b['JKbOD'],_0x281237(0x18e)),await _0x1d396b[_0x281237(0x227)](withTelemetry,'feature\x20get-feedback',()=>featureGetReview(_0x1d02a5['id']));})['command'](_0x1982b0(0x297),![],_0x4ec543=>{const _0x17ebeb=_0x1982b0;return _0x4ec543[_0x17ebeb(0x247)]('id',{'type':_0x1d396b['wrqhz'],'description':'Feature\x20review\x20ID'});},async _0x3aceb5=>{const _0x503b52=_0x1982b0;warnRenamed(_0x1d396b[_0x503b52(0x186)],_0x1d396b[_0x503b52(0x2a8)]),await withTelemetry(_0x1d396b['zJkha'],()=>featureDelete(_0x3aceb5['id']));})[_0x1982b0(0x26f)](_0x1982b0(0x19a),![],_0x2d3e02=>{const _0x5913b9=_0x1982b0;return _0x2d3e02['positional']('id',{'type':_0x1d396b['wrqhz'],'description':_0x5913b9(0x24c),'demandOption':!![]});},async _0x24ed7a=>{const _0x15bd7c=_0x1982b0;warnRenamed(_0x1d396b['nvhtL'],_0x1d396b[_0x15bd7c(0x27f)]),await withTelemetry(_0x1d396b[_0x15bd7c(0x27b)],()=>featureRestore(_0x24ed7a['id']));})['demandCommand'](0x1,_0x1d396b['NBapj']);})['command'](_0x50ce2f(0x249),![],_0x148c0b=>{const _0x456eef=_0x50ce2f,_0x5806a5={'RZZNC':_0x456eef(0x232),'BMOpz':'string','RMOXl':_0x456eef(0x1da),'HeBjU':_0x456eef(0x2bf),'rGVOy':'enable','lqzfI':_0x456eef(0x176)};return _0x148c0b['command'](_0x5806a5['rGVOy'],'Enable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x35e757=>{const _0x25a69c=_0x456eef;return _0x35e757['option'](_0x5806a5['RZZNC'],{'type':_0x5806a5[_0x25a69c(0x29f)],'description':_0x5806a5['RMOXl']});},async _0x21da8d=>{const _0xf4af4e=_0x456eef;await withTelemetry(_0xf4af4e(0x167),()=>hook('enable',_0x21da8d['session-id']));})[_0x456eef(0x26f)](_0x456eef(0x256),'Disable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x3ced08=>{return _0x3ced08['option'](_0x5806a5['RZZNC'],{'type':'string','description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x40f864=>{const _0x31489e=_0x456eef;await withTelemetry(_0x5806a5['HeBjU'],()=>hook('disable',_0x40f864[_0x31489e(0x232)]));})[_0x456eef(0x24e)](_0x456eef(0x1d5),{'type':_0x456eef(0x23b),'description':_0x5806a5['lqzfI']})['option'](_0x5806a5['RZZNC'],{'type':_0x5806a5[_0x456eef(0x29f)],'description':_0x5806a5[_0x456eef(0x264)]});},async _0x3bd42a=>{const _0x1b43f0=_0x50ce2f,_0x36939d={'TyzFA':function(_0x4c906c,_0x12092b,_0x183e45){return _0x4c906c(_0x12092b,_0x183e45);},'toYZw':'session-id'};_0x3bd42a[_0x1b43f0(0x1d5)]&&await _0x36939d[_0x1b43f0(0x1b8)](hook,_0x3bd42a['name'],_0x3bd42a[_0x36939d[_0x1b43f0(0x2af)]]);})['demandCommand'](0x1,_0x50ce2f(0x213))[_0x50ce2f(0x16b)]()[_0x50ce2f(0x22b)](async(_0x1e5ace,_0x335158,_0x3d33b4)=>{const _0x3fe4db=_0x50ce2f,_0x59f8da={'nRevB':function(_0x2ab8d9,_0x45317f,_0x438bbb){return _0x2ab8d9(_0x45317f,_0x438bbb);},'zVBvJ':function(_0x4b8130,_0x1430d1){return _0x4b8130||_0x1430d1;}},_0xcae9c7=sanitizeArgs(process[_0x3fe4db(0x25c)]['slice'](0x2)),_0x488949=_0x59f8da['nRevB'](getErrorType,_0x1e5ace,_0x335158);if(_0x1e5ace&&_0x1e5ace['includes'](_0x3fe4db(0x1d8))){const _0x93e1d5=process[_0x3fe4db(0x25c)][0x2];console[_0x3fe4db(0x1c0)](_0x3fe4db(0x18b)+_0x93e1d5),console['error'](_0x3fe4db(0x221));}else{if(_0x1e5ace)console['error']('\x0a'+_0x1e5ace+'\x0a');else _0x335158&&console[_0x3fe4db(0x1c0)]('\x0aError:\x20'+_0x335158[_0x3fe4db(0x240)]+'\x0a');}await logDesirePath({'rawCommand':_0xcae9c7,'errorMessage':_0x1e5ace||_0x335158?.['message'],'errorType':_0x488949});const _0x4e5a20=getCurrentCollector();_0x4e5a20&&await _0x4e5a20[_0x3fe4db(0x2b7)](_0x335158||new Error(_0x59f8da[_0x3fe4db(0x272)](_0x1e5ace,'Unknown\x20error'))),process['exit'](0x1);})['epilogue'](_0x50ce2f(0x224)+'\x20\x20https://docs.ranger.net\x0a'+_0x50ce2f(0x287))[_0x50ce2f(0x1ef)]()[_0x50ce2f(0x19e)]('help','h')[_0x50ce2f(0x21c)]();
|
|
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)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x526dd9,_0xc64edc){const _0xf83146=_0x2813,_0x23346a=_0x526dd9();while(!![]){try{const _0x22ee95=parseInt(_0xf83146(0x20c))/0x1+-parseInt(_0xf83146(0x1cf))/0x2+parseInt(_0xf83146(0x1d8))/0x3*(-parseInt(_0xf83146(0x22d))/0x4)+-parseInt(_0xf83146(0x241))/0x5*(-parseInt(_0xf83146(0x1f1))/0x6)+parseInt(_0xf83146(0x216))/0x7*(parseInt(_0xf83146(0x200))/0x8)+-parseInt(_0xf83146(0x207))/0x9*(parseInt(_0xf83146(0x21a))/0xa)+-parseInt(_0xf83146(0x1f6))/0xb*(-parseInt(_0xf83146(0x1da))/0xc);if(_0x22ee95===_0xc64edc)break;else _0x23346a['push'](_0x23346a['shift']());}catch(_0x546720){_0x23346a['push'](_0x23346a['shift']());}}}(_0x2dd8,0xd3292));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x2fe5d2 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';function _0x2dd8(){const _0x7a123=['1320517IyBPfb','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','goto','config_write','retry','includes','hKflN','url','BJzNv','\x0a\x20\x20Profile\x20\x22','16tphkvx','launch','keys','\x0aโ ๏ธ\x20\x20Profile\x20\x22','hvAXd','trackPhaseStart','signal','5948505Fcjpmt','Removed\x20existing\x20profile\x20at\x20','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','qHWIO','overwrite','1060846pFcUvd','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','Continue\x20anyway','storageState','lijaJ','setupHeaders','GGCmm','You\x20can\x20try\x20again\x20with\x20one\x20of:','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','oOnPO','4815538iesoQK','QyCOv','log','\x20\x20Did\x20you\x20mean\x20','20OIVyJS','\x20(continuing\x20with\x20--force)','path','now','test','abort','root\x20(.ranger/)','PZeal','trackPhaseEnd','โ\x20Encrypted\x20auth\x20saved\x20to:\x20','YPcap','.backup-','โ\x20Auth\x20state\x20saved\x20to:\x20','SLWdk','cdpEndpoint','isElectron','url_setup','\x22\x20already\x20exists.\x20Overwrite?','--allow-insecure-localhost','8644zpuXCw','yRdfw','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','Could\x20not\x20reach\x20','baseUrl','pLhlD','.enc','stringify','env','JzBWX','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','fetch\x20failed','status','allowInsecureLocalhost','oUpyC','oTELF','\x0a๐\x20CDP\x20Profile\x20Setup\x0a','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','catch','Delete\x20existing\x20and\x20create\x20new\x20in\x20','4588725iLbNQi','โ\x20Created\x20settings:\x20','list','uuILp','name','Ldrax','JQAcv','local','1705636KrQzAd','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','crUBe','bVBMS','Profile\x20\x22','manual','NODE_TLS_REJECT_UNAUTHORIZED','trim','close','1437qPZjaE','skipAuth','72KIWQdi','newPage','settings.json','EFklc','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','EGsxj','action','ChrYd','Rbhek','wddwq','stdin','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','error','assign','Saving\x20authentication\x20state...','browser_auth','BIHUw','safeMode','newContext','kaNVp','\x20\x20ranger\x20profile\x20add\x20','EGjOT','6ziwLXK','.tmp-','lKOZJ','location','http://localhost:3000'];_0x2dd8=function(){return _0x7a123;};return _0x2dd8();}function _0x2813(_0x3c8a1b,_0x3b7bd7){_0x3c8a1b=_0x3c8a1b-0x1cc;const _0x2dd874=_0x2dd8();let _0x2813f0=_0x2dd874[_0x3c8a1b];return _0x2813f0;}import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x555571){const _0x2bf187=_0x2813,_0x5c77ad={'JzBWX':'HEAD','uOxOh':_0x2bf187(0x1d4),'BJzNv':function(_0x19763a,_0xafd642){return _0x19763a(_0xafd642);},'Ldrax':function(_0x1fc5b9,_0x515529){return _0x1fc5b9===_0x515529;},'ehAMN':_0x2bf187(0x238)};try{const _0x400207=new AbortController(),_0x5cdb2a=setTimeout(()=>_0x400207[_0x2bf187(0x21f)](),0x1388),_0x215ad4={'method':_0x5c77ad[_0x2bf187(0x236)],'signal':_0x400207[_0x2bf187(0x206)],'redirect':_0x5c77ad['uOxOh']};/^https:\/\/localhost(:\d+)?/i[_0x2bf187(0x21e)](_0x555571)&&(process['env'][_0x2bf187(0x1d5)]='0');const _0x555d5=await fetch(_0x555571,_0x215ad4);delete process[_0x2bf187(0x235)]['NODE_TLS_REJECT_UNAUTHORIZED'],_0x5c77ad[_0x2bf187(0x1fe)](clearTimeout,_0x5cdb2a);if(_0x555d5[_0x2bf187(0x239)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x555d5['status']};}catch(_0x2b7d7b){delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x3c6fcb=_0x2b7d7b,_0x747ea=_0x3c6fcb['message']||_0x5c77ad[_0x2bf187(0x1fe)](String,_0x2b7d7b),_0x46319c=_0x747ea['includes']('Invalid\x20URL')||_0x5c77ad[_0x2bf187(0x1cc)](_0x3c6fcb[_0x2bf187(0x245)],'TypeError')||_0x747ea[_0x2bf187(0x1fb)](_0x5c77ad['ehAMN']);return{'ok':![],'error':_0x747ea,'isProtocolError':_0x46319c};}}export async function addEnv(_0x20d2b8,_0x27e3ca={},_0x426bf0){const _0x2f9177=_0x2813,_0x18d0dd={'lKOZJ':_0x2f9177(0x1e9),'oOnPO':_0x2f9177(0x1ce),'JjsmT':function(_0x17b239,_0x59ab16,_0x107750,_0x427b00){return _0x17b239(_0x59ab16,_0x107750,_0x427b00);},'EFklc':function(_0x27c3aa,_0xa1f6f7){return _0x27c3aa===_0xa1f6f7;},'dWhNb':function(_0x1d6043,_0x3755a5,_0x1d784f){return _0x1d6043(_0x3755a5,_0x1d784f);},'cilDU':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','oUpyC':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','PZeal':function(_0x1eb0ad,_0x35748b){return _0x1eb0ad(_0x35748b);},'IANoX':_0x2f9177(0x20b),'ovsAU':'Aborted.','YPcap':'legacy','crUBe':_0x2f9177(0x22a),'TsFCW':_0x2f9177(0x23d),'wddwq':_0x2f9177(0x20d),'bVBMS':'baseUrl','jQPfp':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','oTELF':function(_0x20d634,_0x33ad20){return _0x20d634||_0x33ad20;},'CKfyn':_0x2f9177(0x1f5),'yRdfw':function(_0x3959fe,_0x4b3aff){return _0x3959fe(_0x4b3aff);},'ssINu':_0x2f9177(0x243),'EymUn':_0x2f9177(0x1e0),'lijaJ':'What\x20would\x20you\x20like\x20to\x20do?','GGCmm':'use_suggestion','pLhlD':_0x2f9177(0x20e),'uuILp':'continue','eKzDH':function(_0x490a83,_0x496219){return _0x490a83(_0x496219);},'kaNVp':function(_0x56c5e0,_0x1e968f){return _0x56c5e0(_0x1e968f);},'SLWdk':function(_0x44a125,_0x13fc60,_0x5c1180){return _0x44a125(_0x13fc60,_0x5c1180);},'QyCOv':function(_0x8ea366,_0x38dfd4){return _0x8ea366(_0x38dfd4);},'bSMGY':function(_0x35626e,_0x2fb6b6,_0x4466d1){return _0x35626e(_0x2fb6b6,_0x4466d1);},'hvAXd':'auth.json','BIHUw':_0x2f9177(0x1ea),'MAbTc':_0x2f9177(0x237),'ChrYd':_0x2f9177(0x209),'EGsxj':'--disable-features=WebBluetooth','yYxGy':_0x2f9177(0x1f7),'WUgvp':_0x2f9177(0x23e),'KsqeY':'Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','GSEBr':_0x2f9177(0x233),'hKflN':_0x2f9177(0x1e6),'qHWIO':_0x2f9177(0x1de),'JQAcv':function(_0x131b27,_0x3fce3c){return _0x131b27>_0x3fce3c;},'EGjOT':function(_0x2d187d,_0x47b105,_0x502822){return _0x2d187d(_0x47b105,_0x502822);},'RKxMR':'settings.json','Rbhek':function(_0xccf173,_0x5c006a,_0x56b5ef){return _0xccf173(_0x5c006a,_0x56b5ef);},'awGFz':function(_0x18fa2c,_0x35264d){return _0x18fa2c(_0x35264d);},'XFdPU':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'},_0x1e2534=_0x27e3ca['ci']??![],_0x40482b=_0x1e2534?'ci':_0x18d0dd[_0x2f9177(0x215)],_0x439b1d=_0x18d0dd['JjsmT'](join,getRangerDir(),_0x40482b,_0x20d2b8),_0x11756c={};if(_0x27e3ca['setupHeader'])for(const _0x1ab70d of _0x27e3ca['setupHeader']){const _0x305be5=_0x1ab70d['indexOf'](':');if(_0x18d0dd[_0x2f9177(0x1dd)](_0x305be5,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x1ab70d+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0xa30d8=_0x1ab70d['slice'](0x0,_0x305be5)['trim'](),_0x17d4b0=_0x1ab70d['slice'](_0x305be5+0x1)['trim']();_0x11756c[_0xa30d8]=_0x17d4b0;}const _0x28af33=_0x18d0dd['dWhNb'](join,getRangerDir(),_0x40482b);if(_0x27e3ca['cdpEndpoint']!==undefined&&_0x27e3ca[_0x2f9177(0x228)][_0x2f9177(0x1d6)]()==='')throw new Error(_0x18d0dd['cilDU']);if(_0x27e3ca[_0x2f9177(0x228)]&&_0x27e3ca[_0x2f9177(0x1fd)])throw new Error(_0x18d0dd[_0x2f9177(0x23b)]);if(_0x27e3ca[_0x2f9177(0x228)]&&_0x27e3ca['ci'])throw new Error('--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.');const _0x515736=_0x18d0dd[_0x2f9177(0x221)](Boolean,_0x27e3ca[_0x2f9177(0x228)]),_0x17f3fa=!_0x27e3ca[_0x2f9177(0x1d9)]&&!_0x515736,_0x2f2a11=process[_0x2f9177(0x1e4)]['isTTY']&&process['stdout']['isTTY'];if(!_0x2f2a11&&!_0x27e3ca['url']&&!_0x515736)throw new Error('Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000');const _0xa0e4cc=_0x18d0dd['PZeal'](findExistingEnv,_0x20d2b8);let _0x19747d=null;if(_0xa0e4cc){if(!_0x2f2a11)_0x19747d=_0xa0e4cc;else{if(_0xa0e4cc['location']===_0x40482b){const {overwrite:_0x11e45f}=await _0x2fe5d2['prompt']([{'type':'confirm','name':_0x18d0dd['IANoX'],'message':_0x2f9177(0x1d3)+_0x20d2b8+_0x2f9177(0x22b),'default':![]}]);if(!_0x11e45f){console['log'](_0x18d0dd['ovsAU']);return;}_0x19747d=_0xa0e4cc;}else{const _0x13bd32=_0x18d0dd[_0x2f9177(0x1dd)](_0xa0e4cc[_0x2f9177(0x1f4)],_0x18d0dd[_0x2f9177(0x224)])?_0x2f9177(0x220):_0xa0e4cc[_0x2f9177(0x1f4)];console[_0x2f9177(0x1e7)](_0x2f9177(0x203)+_0x20d2b8+'\x22\x20already\x20exists\x20in\x20'+_0x13bd32+':\x20'+_0xa0e4cc[_0x2f9177(0x21c)]),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x40482b+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x17ce28}=await _0x2fe5d2['prompt']([{'type':'confirm','name':'shouldReplace','message':_0x2f9177(0x240)+_0x40482b+'?','default':![]}]);if(!_0x17ce28){console[_0x2f9177(0x218)]('Aborted.');return;}_0x19747d=_0xa0e4cc;}}}_0x426bf0?.['trackPhaseStart'](_0x18d0dd[_0x2f9177(0x1d1)]);let _0xe7e3ff='';if(_0x515736)console['log'](_0x18d0dd['TsFCW']),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x27e3ca['cdpEndpoint']),console[_0x2f9177(0x218)](_0x2f9177(0x22f));else{if(_0x27e3ca['url']){_0xe7e3ff=_0x27e3ca[_0x2f9177(0x1fd)];const _0x1fdc8a=await checkUrlReachability(_0xe7e3ff);if(!_0x1fdc8a['ok']&&!_0x27e3ca['force'])throw new Error(_0x2f9177(0x230)+_0xe7e3ff+':\x20'+_0x1fdc8a['error']+_0x2f9177(0x1e5));!_0x1fdc8a['ok']&&_0x27e3ca['force']&&console[_0x2f9177(0x218)]('โ \x20Could\x20not\x20reach\x20'+_0xe7e3ff+':\x20'+_0x1fdc8a[_0x2f9177(0x1e7)]+_0x2f9177(0x21b));}else{console['log']('\x0a๐\x20Profile\x20Setup\x0a'),console['log'](_0x18d0dd[_0x2f9177(0x1e3)]),console[_0x2f9177(0x218)]('\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a');let _0xd7b5f0=![];while(!![]){const _0x5614d1=await _0x2fe5d2['prompt']([{'type':'input','name':_0x18d0dd[_0x2f9177(0x1d2)],'message':_0xd7b5f0?_0x18d0dd['jQPfp']:'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x18d0dd[_0x2f9177(0x23c)](_0xe7e3ff,_0x18d0dd['CKfyn'])}]);_0xe7e3ff=_0x5614d1[_0x2f9177(0x231)];const _0x59ef60=await _0x18d0dd[_0x2f9177(0x22e)](checkUrlReachability,_0xe7e3ff);if(_0x59ef60['ok'])break;const _0x50548e=/^[a-zA-Z][\w+.-]*:\/\//[_0x2f9177(0x21e)](_0xe7e3ff),_0x2b1d14=_0x59ef60['isProtocolError']&&!_0x50548e,_0x45cc28=_0x2b1d14?'http://'+_0xe7e3ff:null;_0xd7b5f0=!![],console[_0x2f9177(0x218)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0xe7e3ff+':\x20'+_0x59ef60['error']);_0x45cc28&&console[_0x2f9177(0x218)](_0x2f9177(0x219)+_0x45cc28+'?');const {action:_0x5b578f}=await _0x2fe5d2['prompt']([{'type':_0x18d0dd['ssINu'],'name':_0x18d0dd['EymUn'],'message':_0x18d0dd[_0x2f9177(0x210)],'choices':[..._0x45cc28?[{'name':'Use\x20'+_0x45cc28,'value':_0x18d0dd[_0x2f9177(0x212)]}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x2f9177(0x1fa)},{'name':_0x18d0dd[_0x2f9177(0x232)],'value':_0x18d0dd[_0x2f9177(0x244)]}]}]);if(_0x18d0dd[_0x2f9177(0x1dd)](_0x5b578f,_0x18d0dd['GGCmm'])&&_0x45cc28){_0xe7e3ff=_0x45cc28;const _0x117d4f=await _0x18d0dd['eKzDH'](checkUrlReachability,_0xe7e3ff);if(_0x117d4f['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0xe7e3ff+':\x20'+_0x117d4f[_0x2f9177(0x1e7)]);}else{if(_0x5b578f===_0x18d0dd[_0x2f9177(0x244)])break;}}}}_0x426bf0?.[_0x2f9177(0x222)](_0x18d0dd['crUBe']);const _0x3c94f3={};if(_0x19747d){const _0x346575=await _0x18d0dd[_0x2f9177(0x1ee)](loadSettings,_0x20d2b8);Object[_0x2f9177(0x1e8)](_0x3c94f3,_0x346575[_0x2f9177(0x211)]);}Object['assign'](_0x3c94f3,_0x11756c),await _0x18d0dd['SLWdk'](mkdir,_0x28af33,{'recursive':!![]});const _0x2ec144=await _0x18d0dd[_0x2f9177(0x217)](mkdtemp,_0x18d0dd['bSMGY'](join,_0x28af33,_0x2f9177(0x1f2)+_0x20d2b8+'-')),_0x5a73dc=join(_0x2ec144,_0x18d0dd[_0x2f9177(0x204)]),_0x13e0e6=Boolean(_0xe7e3ff)&&/^https:\/\/localhost(:\d+)?/i['test'](_0xe7e3ff);try{if(_0x17f3fa){_0x426bf0?.[_0x2f9177(0x205)](_0x18d0dd['BIHUw']),console['log']('\x0a๐\x20Authentication\x20Setup'),console['log'](_0x18d0dd['MAbTc']),console[_0x2f9177(0x218)](_0x18d0dd[_0x2f9177(0x1e1)]);!_0x2f2a11?(console['log']('\x0a\x20\x20\x20โ \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log']('\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a')):console['log']('');await new Promise(_0x45c61c=>setTimeout(_0x45c61c,0xbb8));const _0x2bbf3c=[];_0x27e3ca['safeMode']&&_0x2bbf3c['push'](_0x18d0dd[_0x2f9177(0x1df)]);const _0x284ab2=_0x27e3ca[_0x2f9177(0x23a)]||_0x13e0e6;_0x284ab2&&_0x2bbf3c['push'](_0x2f9177(0x22c));const _0x403587=await chromium[_0x2f9177(0x201)]({'headless':![],..._0x2bbf3c['length']>0x0?{'args':_0x2bbf3c}:{}});try{const _0xee953c=Object['keys'](_0x3c94f3)['length']>0x0,_0x4210e2={'ignoreHTTPSErrors':!![]};_0xee953c&&(_0x4210e2['extraHTTPHeaders']=_0x3c94f3);const _0x1b6d48=await _0x403587[_0x2f9177(0x1ed)](_0x4210e2);await addProfileSetupBanner(_0x1b6d48);const _0x30105e=await _0x1b6d48[_0x2f9177(0x1db)]();await _0x30105e[_0x2f9177(0x1f8)](_0x18d0dd['oTELF'](_0xe7e3ff,'about:blank'));let _0x5459f1=![];await new Promise(_0xa6bffd=>{const _0xd8bfd2=_0x2f9177;_0x30105e['on'](_0xd8bfd2(0x1d7),async()=>{const _0x1f7abd=_0xd8bfd2;try{console[_0x1f7abd(0x218)](_0x18d0dd[_0x1f7abd(0x1f3)]),await _0x1b6d48[_0x1f7abd(0x20f)]({'path':_0x5a73dc}),_0x5459f1=!![];}catch{}_0xa6bffd();});});if(!_0x5459f1){console[_0x2f9177(0x218)]('\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.');!_0x27e3ca[_0x2f9177(0x1ec)]&&(console['log']('This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a'),console[_0x2f9177(0x218)](_0x2f9177(0x213)),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x20d2b8+_0x2f9177(0x214)),console[_0x2f9177(0x218)](_0x2f9177(0x1ef)+_0x20d2b8+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x18d0dd['yYxGy']);}}finally{await _0x403587['close']()['catch'](()=>{});}if(_0x1e2534){const _0x5ad7a7=await _0x18d0dd[_0x2f9177(0x227)](readFile,_0x5a73dc,'utf-8'),_0x26714d=await getToken();if(!_0x26714d){console['error'](_0x18d0dd['WUgvp']),await unlink(_0x5a73dc)[_0x2f9177(0x23f)](()=>{});throw new Error(_0x18d0dd['KsqeY']);}else{const _0x435b9e=encrypt(_0x5ad7a7,_0x26714d);await _0x18d0dd['bSMGY'](writeFile,_0x5a73dc+_0x18d0dd['GSEBr'],_0x435b9e),await _0x18d0dd[_0x2f9177(0x217)](unlink,_0x5a73dc),console['log'](_0x2f9177(0x223)+_0x5a73dc+_0x2f9177(0x233)),console[_0x2f9177(0x218)](_0x18d0dd[_0x2f9177(0x1fc)]),console['log'](_0x18d0dd[_0x2f9177(0x20a)]);}}else console[_0x2f9177(0x218)](_0x2f9177(0x226)+_0x5a73dc);_0x426bf0?.['trackPhaseEnd'](_0x18d0dd[_0x2f9177(0x1eb)]);}_0x426bf0?.['trackPhaseStart'](_0x2f9177(0x1f9));const _0x41b943={};_0xe7e3ff&&(_0x41b943[_0x2f9177(0x231)]=_0xe7e3ff);_0x27e3ca['cdpEndpoint']&&(_0x41b943[_0x2f9177(0x228)]=_0x27e3ca['cdpEndpoint'],_0x41b943[_0x2f9177(0x229)]=!![]);(_0x27e3ca['allowInsecureLocalhost']||_0x13e0e6)&&(_0x41b943['allowInsecureLocalhost']=!![]);_0x27e3ca[_0x2f9177(0x1ec)]&&(_0x41b943['safeMode']=!![]);_0x18d0dd[_0x2f9177(0x1cd)](Object[_0x2f9177(0x202)](_0x3c94f3)['length'],0x0)&&(_0x41b943['setupHeaders']=_0x3c94f3);await writeFile(_0x18d0dd[_0x2f9177(0x1f0)](join,_0x2ec144,_0x18d0dd['RKxMR']),JSON[_0x2f9177(0x234)](_0x41b943,null,0x2)),console[_0x2f9177(0x218)](_0x2f9177(0x242)+_0x18d0dd[_0x2f9177(0x1e2)](join,_0x439b1d,_0x2f9177(0x1dc)));if(_0x19747d?.['location']===_0x40482b){const _0x1bc171=_0x19747d[_0x2f9177(0x21c)]+_0x2f9177(0x225)+Date[_0x2f9177(0x21d)]();await _0x18d0dd[_0x2f9177(0x227)](rename,_0x19747d['path'],_0x1bc171);try{await rename(_0x2ec144,_0x439b1d);}catch(_0x1dc21d){await rename(_0x1bc171,_0x19747d[_0x2f9177(0x21c)]);throw _0x1dc21d;}try{await _0x18d0dd['EGjOT'](rm,_0x1bc171,{'recursive':!![]});}catch{console['log'](_0x2f9177(0x1d0)+_0x1bc171);}}else{await rename(_0x2ec144,_0x439b1d);if(_0x19747d)try{await rm(_0x19747d['path'],{'recursive':!![]}),console[_0x2f9177(0x218)](_0x2f9177(0x208)+_0x19747d['path']);}catch{console[_0x2f9177(0x218)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x19747d[_0x2f9177(0x21c)]);}}try{await _0x18d0dd['awGFz'](writeActiveProfileName,_0x20d2b8),console[_0x2f9177(0x218)]('\x20\x20Set\x20active\x20profile:\x20'+_0x20d2b8);}catch{console['log'](_0x18d0dd['XFdPU']);}_0x426bf0?.['trackPhaseEnd']('config_write'),console['log'](_0x2f9177(0x1ff)+_0x20d2b8+'\x22\x20configured');}catch(_0x23494c){await rm(_0x2ec144,{'recursive':!![],'force':!![]});throw _0x23494c;}}
|
|
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 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x224007,_0x1000df){const _0xaa08d4=_0x4d02,_0x495c3c=_0x224007();while(!![]){try{const _0x3128fd=parseInt(_0xaa08d4(0xbb))/0x1+parseInt(_0xaa08d4(0xc3))/0x2*(parseInt(_0xaa08d4(0xc8))/0x3)+parseInt(_0xaa08d4(0xb7))/0x4+-parseInt(_0xaa08d4(0xc0))/0x5*(parseInt(_0xaa08d4(0xb6))/0x6)+parseInt(_0xaa08d4(0xbd))/0x7+parseInt(_0xaa08d4(0xc1))/0x8*(parseInt(_0xaa08d4(0xc2))/0x9)+-parseInt(_0xaa08d4(0xbc))/0xa*(parseInt(_0xaa08d4(0xb8))/0xb);if(_0x3128fd===_0x1000df)break;else _0x495c3c['push'](_0x495c3c['shift']());}catch(_0xb5e93){_0x495c3c['push'](_0x495c3c['shift']());}}}(_0x2b2c,0x3c4b0));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0x2b2c(){const _0x2ed86d=['181255Yspniw','150tYONTK','333753AiSUeK','kPJoR','No\x20auth.json\x20found\x20at\x20','21215NsPyUT','8NuXwaW','365193wjzLnm','22lUDzRK','rWGTP','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','cOLjO','59853SnBVOu','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','YNtuY','114DMGGRU','1489160nYQJSa','391369zlDlLh','auth.json','log'];_0x2b2c=function(){return _0x2ed86d;};return _0x2b2c();}function _0x4d02(_0x181926,_0x2c4bf4){_0x181926=_0x181926-0xb6;const _0x2b2c23=_0x2b2c();let _0x4d029e=_0x2b2c23[_0x181926];return _0x4d029e;}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x2c4329){const _0x3f38ca=_0x4d02,_0x58887d={'YNtuY':function(_0x2486a4,_0x26e675){return _0x2486a4(_0x26e675);},'xWPfn':_0x3f38ca(0xb9),'cOLjO':function(_0x28b412,_0x4812c5){return _0x28b412(_0x4812c5);},'FwBYm':function(_0x440817,_0x1bd3a0,_0x3944f8){return _0x440817(_0x1bd3a0,_0x3944f8);},'DvJtb':'utf-8','kPJoR':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','rWGTP':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'},_0x17e49e=_0x58887d[_0x3f38ca(0xca)](getEnvDir,_0x2c4329),_0x2a27cc=join(_0x17e49e,_0x58887d['xWPfn']),_0x27b5e3=_0x2a27cc+'.enc';if(!_0x58887d[_0x3f38ca(0xc7)](existsSync,_0x17e49e))throw new Error('Profile\x20\x22'+_0x2c4329+_0x3f38ca(0xc6)+_0x2c4329);if(!existsSync(_0x2a27cc))throw new Error(_0x3f38ca(0xbf)+_0x2a27cc+_0x3f38ca(0xc9));const _0x3d9f12=await getToken();if(!_0x3d9f12)throw new Error(_0x3f38ca(0xc5));const _0x18899d=await _0x58887d['FwBYm'](readFile,_0x2a27cc,_0x58887d['DvJtb']),_0x4a6bb6=_0x58887d['FwBYm'](encrypt,_0x18899d,_0x3d9f12);await _0x58887d['FwBYm'](writeFile,_0x27b5e3,_0x4a6bb6),console['log']('\x0aโ\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x27b5e3),console[_0x3f38ca(0xba)](_0x58887d[_0x3f38ca(0xbe)]),console['log'](_0x58887d[_0x3f38ca(0xc4)]),existsSync(_0x27b5e3)&&(console[_0x3f38ca(0xba)]('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x44a035=_0x434a;function _0x434a(_0x445494,_0x3def5e){_0x445494=_0x445494-0x9e;const _0x1d15e8=_0x1d15();let _0x434a75=_0x1d15e8[_0x445494];return _0x434a75;}(function(_0x11e9e6,_0x22d808){const _0x5c5b90=_0x434a,_0x12ea63=_0x11e9e6();while(!![]){try{const _0x4bc6e2=-parseInt(_0x5c5b90(0xb9))/0x1*(parseInt(_0x5c5b90(0xc2))/0x2)+parseInt(_0x5c5b90(0xd1))/0x3*(parseInt(_0x5c5b90(0xa4))/0x4)+-parseInt(_0x5c5b90(0xca))/0x5*(parseInt(_0x5c5b90(0xb5))/0x6)+parseInt(_0x5c5b90(0xb2))/0x7+-parseInt(_0x5c5b90(0xcc))/0x8+parseInt(_0x5c5b90(0xbf))/0x9+parseInt(_0x5c5b90(0xcd))/0xa*(parseInt(_0x5c5b90(0xad))/0xb);if(_0x4bc6e2===_0x22d808)break;else _0x12ea63['push'](_0x12ea63['shift']());}catch(_0x2c0828){_0x12ea63['push'](_0x12ea63['shift']());}}}(_0x1d15,0x90154));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker','bug-bash',_0x44a035(0xb0)],opencodePluginName=_0x44a035(0xb6);function parseJsonc(_0x344884){const _0x5c6625=_0x44a035,_0x5c314d=_0x344884['replace'](/\/\*[\s\S]*?\*\//g,''),_0x51aa0f=_0x5c314d[_0x5c6625(0xb1)](/^\s*\/\/.*$/gm,''),_0x42c064=_0x51aa0f[_0x5c6625(0xb1)](/,\s*([}\]])/g,'$1');return JSON[_0x5c6625(0xd7)](_0x42c064);}function _0x1d15(){const _0x1bc2c7=['plugin','project','string','avOoI','stringify','8txqPzK','\x0a๐งน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','EvSpA','close','ZDKQF','rsVBo','vEPeZ','error','pEGvD','152867yYhRMB','claude','MQmIg','e2e-test-recommender','replace','4051656hPZMQP','โ\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','pipe','5880678ZmMlzW','@ranger-testing/opencode-plugin','cehfD','โ\x20Removed\x20project\x20skill:\x20','107grTdRA','Zrctq','โ\x20Removed\x20OpenCode\x20project\x20skill:\x20','hvXeF','filter','lEcao','3402423kERjWB','xxZqQ','yLJRf','14794EsIiKj','platform','kvaKR','โ\x20Removed\x20OpenCode\x20user\x20skill:\x20','user','oiUMO','aumdZ','LUsEf','5msMlUg','MeCUt','1311616bhuCfW','1070INDkGp','ranger@trailhead','GISYf','crlnA','122811ROmitC','opencode.json','UHrVb','GjUdO','log','utf-8','parse','length','win32'];_0x1d15=function(){return _0x1bc2c7;};return _0x1d15();}async function removeOpencodePluginConfig(_0x40e7fd){const _0x4a693b=_0x44a035,_0x103e81={'ZbhsT':function(_0x56e289,_0x955c3f){return _0x56e289!==_0x955c3f;},'qtpdp':_0x4a693b(0xa1),'HbDzD':function(_0x5581a8,_0x15882f){return _0x5581a8(_0x15882f);},'hvXeF':function(_0x16fafd,_0x47b8b2,_0x422fb2){return _0x16fafd(_0x47b8b2,_0x422fb2);},'cehfD':_0x4a693b(0xd6),'lEcao':function(_0x4300b2,_0x27d0b9){return _0x4300b2===_0x27d0b9;},'GjUdO':function(_0x5d4145,_0x33e9d7){return _0x5d4145===_0x33e9d7;},'MeCUt':function(_0x556dc0,_0x1dfc88,_0x44d1f2){return _0x556dc0(_0x1dfc88,_0x44d1f2);},'rsVBo':function(_0x470872,_0x9c296f){return _0x470872+_0x9c296f;}};if(!_0x103e81['HbDzD'](existsSync,_0x40e7fd))return![];let _0x36777b;try{const _0x1b0420=await _0x103e81[_0x4a693b(0xbc)](readFile,_0x40e7fd,_0x103e81[_0x4a693b(0xb7)]);_0x36777b=parseJsonc(_0x1b0420);}catch{return![];}const _0x16b479=Array['isArray'](_0x36777b[_0x4a693b(0x9f)])?_0x36777b['plugin']:[];if(_0x103e81[_0x4a693b(0xbe)](_0x16b479['length'],0x0))return![];const _0x42343d=_0x16b479[_0x4a693b(0xbd)](_0x289ac3=>{if(_0x103e81['ZbhsT'](typeof _0x289ac3,_0x103e81['qtpdp']))return!![];return _0x289ac3!==opencodePluginName;});if(_0x42343d[_0x4a693b(0xd8)]===_0x16b479[_0x4a693b(0xd8)])return![];return _0x103e81[_0x4a693b(0xd4)](_0x42343d['length'],0x0)?delete _0x36777b['plugin']:_0x36777b['plugin']=_0x42343d,await _0x103e81[_0x4a693b(0xcb)](writeFile,_0x40e7fd,_0x103e81[_0x4a693b(0xa9)](JSON[_0x4a693b(0xa3)](_0x36777b,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x301c6d){const _0x33ccb9=_0x44a035,_0x42c807={'Zrctq':function(_0x159f55,_0x4b3965){return _0x159f55===_0x4b3965;},'fYeOk':_0x33ccb9(0x9f),'poQpY':'--scope','MQmIg':function(_0x4d8fbf,_0x1e8804,_0x21893d,_0x18d063){return _0x4d8fbf(_0x1e8804,_0x21893d,_0x18d063);},'LPWoF':_0x33ccb9(0xae),'audgO':_0x33ccb9(0x9e),'GISYf':_0x33ccb9(0xa7)};return new Promise(_0x58a976=>{const _0x22ee6e=_0x33ccb9,_0x56621b=[_0x42c807['fYeOk'],'uninstall',_0x22ee6e(0xce)];_0x301c6d&&_0x56621b['push'](_0x42c807['poQpY'],_0x301c6d);const _0x4a9fcf=_0x42c807[_0x22ee6e(0xaf)](spawn,_0x42c807['LPWoF'],_0x56621b,{'stdio':'pipe','shell':process[_0x22ee6e(0xc3)]===_0x42c807['audgO']});_0x4a9fcf['on'](_0x42c807[_0x22ee6e(0xcf)],_0x4bb30a=>{const _0x506527=_0x22ee6e;_0x58a976(_0x42c807[_0x506527(0xba)](_0x4bb30a,0x0));}),_0x4a9fcf['on'](_0x22ee6e(0xab),()=>{_0x58a976(![]);});});}async function removeMarketplace(){const _0x503749=_0x44a035,_0x1cece5={'vEPeZ':function(_0x45f9c5,_0x1eb069,_0x4f8b50,_0x42dc5f){return _0x45f9c5(_0x1eb069,_0x4f8b50,_0x42dc5f);},'oiUMO':'claude','UHrVb':_0x503749(0x9f),'hIAqo':'trailhead','avOoI':'win32'};return new Promise(_0x2ab922=>{const _0x32055d=_0x503749,_0x2af63d=_0x1cece5[_0x32055d(0xaa)](spawn,_0x1cece5[_0x32055d(0xc7)],[_0x1cece5[_0x32055d(0xd3)],'marketplace','remove',_0x1cece5['hIAqo']],{'stdio':_0x32055d(0xb4),'shell':process[_0x32055d(0xc3)]===_0x1cece5[_0x32055d(0xa2)]});_0x2af63d['on'](_0x32055d(0xa7),_0x5f2753=>{_0x2ab922(_0x5f2753===0x0);}),_0x2af63d['on']('error',()=>{_0x2ab922(![]);});});}export async function clean(){const _0x57c690=_0x44a035,_0x320f33={'IAIpn':function(_0x5ba791){return _0x5ba791();},'OiIOa':'โ\x20Removed\x20stored\x20credentials','xtZvA':function(_0x1ffa60){return _0x1ffa60();},'LUsEf':function(_0xe97b14,_0x378d6e,_0x393710){return _0xe97b14(_0x378d6e,_0x393710);},'pEGvD':function(_0x906976,_0x5197c2,_0x4d3d0a){return _0x906976(_0x5197c2,_0x4d3d0a);},'crlnA':'project','yLJRf':function(_0x5c5c9b,_0x568511){return _0x5c5c9b(_0x568511);},'kvaKR':function(_0x9b779a,_0x23abd7,_0x10877b){return _0x9b779a(_0x23abd7,_0x10877b);},'aZqWY':function(_0x425187,_0x3c175c){return _0x425187(_0x3c175c);},'aumdZ':_0x57c690(0xc6),'TJZug':function(_0x6f888d,_0x899301){return _0x6f888d(_0x899301);},'lvtpI':function(_0x438b4f,_0x3e1db9,_0x5e773f){return _0x438b4f(_0x3e1db9,_0x5e773f);},'ZDKQF':function(_0x4fc7b3,_0x144311){return _0x4fc7b3(_0x144311);},'xxZqQ':_0x57c690(0xd2),'ABDnp':function(_0x69531d,_0x1be0f4){return _0x69531d(_0x1be0f4);},'XpGTU':function(_0x2a38ce,_0x4781a4,_0x488c1b){return _0x2a38ce(_0x4781a4,_0x488c1b);},'NmtEH':'โ\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','EvSpA':'โ\x20Removed\x20trailhead\x20marketplace','tPnyL':'\x0aโ
\x20Cleanup\x20complete!\x0a','ulzke':'Nothing\x20to\x20clean\x20up.\x0a'};console['log'](_0x57c690(0xa5));let _0x122192=![];try{await _0x320f33['IAIpn'](deleteAllCredentials),console[_0x57c690(0xd5)](_0x320f33['OiIOa']),_0x122192=!![];}catch{}const _0x4a0dc1=_0x320f33['xtZvA'](getCacheFile);existsSync(_0x4a0dc1)&&(await rm(_0x4a0dc1),_0x122192=!![]);const _0x4fdaef=_0x320f33['IAIpn'](getRangerDir);existsSync(_0x4fdaef)&&(await rm(_0x4fdaef,{'recursive':!![]}),console[_0x57c690(0xd5)]('โ\x20Removed\x20.ranger/\x20directory'),_0x122192=!![]);const _0x12a91c=getProjectSkillsDir();for(const _0x273f25 of skillsToRemove){const _0x4f4169=_0x320f33[_0x57c690(0xc9)](join,_0x12a91c,_0x273f25);existsSync(_0x4f4169)&&(await rm(_0x4f4169,{'recursive':!![]}),console['log'](_0x57c690(0xb8)+_0x273f25),_0x122192=!![]);}const _0x38be4d=getUserSkillsDir();for(const _0x5a2855 of skillsToRemove){const _0x14af66=_0x320f33[_0x57c690(0xac)](join,_0x38be4d,_0x5a2855);existsSync(_0x14af66)&&(await rm(_0x14af66,{'recursive':!![]}),console['log']('โ\x20Removed\x20user\x20skill:\x20'+_0x5a2855),_0x122192=!![]);}const _0x387da0=getOpencodeSkillsDir(_0x320f33['crlnA']);for(const _0x28ab8f of skillsToRemove){const _0x2b93bc=_0x320f33[_0x57c690(0xac)](join,_0x387da0,_0x28ab8f);_0x320f33[_0x57c690(0xc1)](existsSync,_0x2b93bc)&&(await _0x320f33[_0x57c690(0xc4)](rm,_0x2b93bc,{'recursive':!![]}),console[_0x57c690(0xd5)](_0x57c690(0xbb)+_0x28ab8f),_0x122192=!![]);}const _0x687cd=_0x320f33['aZqWY'](getOpencodeSkillsDir,_0x320f33['aumdZ']);for(const _0x154c7b of skillsToRemove){const _0x1ed4ce=join(_0x687cd,_0x154c7b);_0x320f33['TJZug'](existsSync,_0x1ed4ce)&&(await _0x320f33['lvtpI'](rm,_0x1ed4ce,{'recursive':!![]}),console[_0x57c690(0xd5)](_0x57c690(0xc5)+_0x154c7b),_0x122192=!![]);}const _0x4e0269=_0x320f33[_0x57c690(0xc9)](join,_0x320f33[_0x57c690(0xa8)](getOpencodeConfigDir,_0x57c690(0xa0)),_0x320f33[_0x57c690(0xc0)]);await _0x320f33['ABDnp'](removeOpencodePluginConfig,_0x4e0269)&&(console[_0x57c690(0xd5)]('โ\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0x122192=!![]);const _0x401787=_0x320f33['XpGTU'](join,_0x320f33['ZDKQF'](getOpencodeConfigDir,_0x320f33[_0x57c690(0xc8)]),_0x57c690(0xd2));await removeOpencodePluginConfig(_0x401787)&&(console['log'](_0x320f33['NmtEH']),_0x122192=!![]);const _0x2bdb43=await uninstallClaudePlugin();_0x2bdb43&&(console['log'](_0x57c690(0xb3)),_0x122192=!![]);const _0x21988d=await _0x320f33['aZqWY'](uninstallClaudePlugin,_0x320f33[_0x57c690(0xd0)]);_0x21988d&&(console['log']('โ\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x122192=!![]);const _0x405724=await removeMarketplace();_0x405724&&(console['log'](_0x320f33[_0x57c690(0xa6)]),_0x122192=!![]),_0x122192?console['log'](_0x320f33['tPnyL']):console['log'](_0x320f33['ulzke']);}
|