@ranger-testing/ranger-cli 2.1.7 → 2.1.8
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/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.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/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/telemetry.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/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
|
-
function _0x170c(_0x1873b4,_0x114776){_0x1873b4=_0x1873b4-0x14b;const _0x23d088=_0x23d0();let _0x170c71=_0x23d088[_0x1873b4];return _0x170c71;}const _0x238674=_0x170c;(function(_0x2289de,_0x50a40f){const _0x3ccf35=_0x170c,_0x5e85ee=_0x2289de();while(!![]){try{const _0x2983d1=parseInt(_0x3ccf35(0x217))/0x1*(-parseInt(_0x3ccf35(0x28f))/0x2)+parseInt(_0x3ccf35(0x211))/0x3+parseInt(_0x3ccf35(0x226))/0x4+parseInt(_0x3ccf35(0x1f9))/0x5+parseInt(_0x3ccf35(0x1a3))/0x6*(-parseInt(_0x3ccf35(0x1ba))/0x7)+parseInt(_0x3ccf35(0x150))/0x8*(parseInt(_0x3ccf35(0x23a))/0x9)+parseInt(_0x3ccf35(0x186))/0xa;if(_0x2983d1===_0x50a40f)break;else _0x5e85ee['push'](_0x5e85ee['shift']());}catch(_0x571df6){_0x5e85ee['push'](_0x5e85ee['shift']());}}}(_0x23d0,0x1aa76));import _0x44b601 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x302a5e=_0x170c,_0x348019={'pasET':function(_0x53e3b2,_0x422c61){return _0x53e3b2(_0x422c61);},'cdxCc':function(_0x5078de,_0x59ec37){return _0x5078de!==_0x59ec37;},'vztvO':'.ranger','xqqnW':_0x302a5e(0x1b2)};let _0x1c87c5=process[_0x302a5e(0x1f0)]();const _0x908fd=_0x348019[_0x302a5e(0x19b)](parse,_0x1c87c5)[_0x302a5e(0x1ee)];while(_0x348019[_0x302a5e(0x1c3)](_0x1c87c5,_0x908fd)){if(_0x348019['pasET'](existsSync,join(_0x1c87c5,_0x348019[_0x302a5e(0x238)]))||existsSync(join(_0x1c87c5,_0x348019['xqqnW'])))return _0x1c87c5;_0x1c87c5=dirname(_0x1c87c5);}return process['cwd']();}_0x44b601[_0x238674(0x289)]({'path':join(findProjectRoot(),'.env')});import _0x3e181a from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';function _0x23d0(){const _0x1caefc=['Skip\x20Chromium\x20browser\x20check\x20and\x20installation','resume\x20[id]','You\x20must\x20specify\x20an\x20env\x20subcommand','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','vztvO','XOFFO','635391aZoUpJ','create','get\x20<profile>\x20<key>','--checklist','feature\x20list','profile','NZafW','vWCqK','XxwBk','zjyGw','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','lRnIL','message','opencode','limit','env-name','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','cavrP','baKBJ','Get\x20a\x20config\x20value','ZtnzX','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','ranger\x20config\x20list','YvGaM','verified','blocked','zVbZC','Config\x20key','jKAbH','RreCa','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','ranger\x20show','task','DgnJl','Dllnj','erezd','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','config\x20unset','Skip\x20Chromium\x20browser\x20installation','env','usage','Unknown\x20error','Initialize\x20Ranger\x20in\x20your\x20project','HSENs','bueNV','List\x20all\x20profiles','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','nHrXt','tgZWT','--profile','ruPmy','nrsQi','\x20BLOCKED','option','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','otrfu','resume','jxEWQ','ranger\x20profile\x20encrypt-auth','xCSWn','nkYAG','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','feature\x20delete','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','string','Unskc','start','TVbPR','get-feedback\x20[id]','offset','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','hYrvj','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','LJwhF','env\x20update','zcsBi','config','LlVZi','GWjdj','use','Feature\x20review\x20description','SzDrp','329162glQaCw','pBcjF','encrypt\x20<profile>','ranger\x20profile\x20config\x20list','CKnSQ','iiolN','dEgDB','SWsFm','hook','error','Profile\x20name','headed','Feature\x20review\x20ID','JGjIv','xnXQI','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','ranger\x20go','argv','start\x20[token]','unhandledRejection','includes','RjkWc','Nwnoz','get-review\x20[id]','key','url','vUSVd','ranger\x20profile\x20use','--scenario','8WOlqEJ','model','ranger\x20profile\x20config\x20unset','verify-feature','add-scenario\x20<description>','bANvA','skip-auth','You\x20must\x20specify\x20a\x20command','lmkOE','Ranger\x20API\x20token','profile\x20update','KSpMi','ydcIm','help','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','setup\x20[token]','get-review','mjHsH','You\x20must\x20specify\x20a\x20profile\x20subcommand','gyCWy','Scenario\x20number\x20to\x20edit\x20(1-based)','Update\x20authentication\x20for\x20an\x20existing\x20profile','EWWWg','PeFFq','profile\x20add','ZQoPO','feature','OiEFj','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','dsytr','PzmpO','session-id','scope','LgpSq','WDKId','add-scenario','VCFIz','tjiIK','GSfMK','exit','iesDB','GLlvu','user','positional','VIahn','array','List\x20all\x20feature\x20reviews','ranger\x20create','ranger\x20restore','summary','koavS','feature\x20get-feedback','EUpre','Scenario\x20description','77300VPFSHd','base-url','IVXpt','QlZpB','Install\x20Ranger\x20skills','cdp-endpoint','tvTtf','Feature\x20review\x20name','QQbgz','some','eUSye','Scenario\x20index\x20(1-based)','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','ovPVX','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','HMJUT','log','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','UtlEt','wZgDQ','SqrIv','pasET','efuKZ','Manage\x20profiles','HovqA','rBIof','BOZYA','profile\x20config\x20set','MKeWZ','402XMAdYS','INAyE','FZZjS','delete\x20[id]','edit-scenario','flag','add-checklist-item\x20<description>','JLwpZ','LtwRH','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','VYQob','dVBsN','forEach','hmaFE','.env','value','start-path','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','yDPAf','\x0aError:\x20','profile\x20config\x20get','update','13930AzJpwt','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','GXBgA','mDMXM','TuIWw','current-branch','show\x20[id]','FyxCV','sXoFe','cdxCc','restore\x20<id>','cLjMG','MlYHX','ugkzk','Mwnwt','TSLHr','number','enable','demandCommand','WaHcn','MIMWO','scriptName','GMcdS','ggaDL','skip-chromium','boolean','ZFbiV','ranger\x20env\x20ls','FRVfB','scenario','ranger\x20use','incomplete','vdQgx','list','ojCnt','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','partial','KjSlE','Install\x20skills\x20for\x20OpenCode','ranger\x20feature\x20add-checklist-item','--notes','TchbB','Name\x20of\x20the\x20environment\x20to\x20update','KJlBF','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','issues','UyFom','trackCommandError','OiGci','yBFFT','Config\x20value','zQQJX','root','status','cwd','Gbhwo','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','xDXaf','FwQKh','QYAft','uLLTq','evaluation','DDAtV','356970gzTYrO','project','--env','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','skillup','You\x20must\x20specify\x20an\x20auth\x20subcommand','ranger','command','clean','Name\x20of\x20the\x20environment','XHfKu','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','item','TjnFp','Remove\x20a\x20config\x20value','mYjya','FZLzr','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','FmCLY','dWapZ','ILsna','hMEix','606213dfTxMJ','Add\x20profile\x20configuration','spwGg','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','ZQeCg','ranger\x20profile\x20config\x20get','1ZlZytO','Rhqxs','BtfPT','show','Vbuak','LzAij','disable','HPTLU','name','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','encrypt-auth\x20<profile>','debug-address-comments','include-deleted','token','notes','221164GFxejX','description','slice','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','rAiNG','\x20is\x20now\x20','repeat','profile-name','feature\x20create','ranger\x20feature\x20show','SFnza','QQuMw','exclude-scenario','add\x20env\x20<env-name>'];_0x23d0=function(){return _0x1caefc;};return _0x23d0();}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'](_0x238674(0x2a2),async _0x4e765d=>{const _0x242656=_0x238674,_0x1eed04=getCurrentCollector();_0x1eed04&&await _0x1eed04[_0x242656(0x1e9)](_0x4e765d),process['exitCode']=0x1;});const rawArgs=process['argv'][_0x238674(0x228)](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=_0x238674(0x1bb),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\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\x20(e.g.,\x20header.X-Test-Mode)\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\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27';function warnRenamed(_0x144874,_0x217776){const _0x1dc600=_0x238674;console['error']('\x0a'+_0x144874+_0x1dc600(0x22b)+_0x217776+'\x0a');}function argUsed(_0x38001a){const _0x3d1833=_0x238674;return rawArgs[_0x3d1833(0x18f)](_0x10c027=>_0x10c027===_0x38001a||_0x10c027['startsWith'](_0x38001a+'='));}function warnFlagRenamed(_0x49c4a0,_0x38a7c0,_0xc95a3){argUsed(_0x38a7c0)&&warnRenamed(_0x49c4a0+'\x20'+_0x38a7c0,_0x49c4a0+'\x20'+_0xc95a3);}async function runGoCommand(_0x151b28,_0x52ba51=![]){const _0x3bf613=_0x238674,_0x5c21f7={'hYrvj':function(_0x5e57a4,_0x178cfa){return _0x5e57a4+_0x178cfa;},'dWapZ':'ranger\x20verify-feature','vWCqK':_0x3bf613(0x29f),'Ihcbf':_0x3bf613(0x1fb),'TchbB':function(_0x2d49ef,_0x438899,_0x555dd4,_0xedcd3d){return _0x2d49ef(_0x438899,_0x555dd4,_0xedcd3d);},'HKJIB':'--task','TuIWw':function(_0x338bff,_0x10ea9f,_0x317dc4,_0x5189f4){return _0x338bff(_0x10ea9f,_0x317dc4,_0x5189f4);},'iiolN':function(_0x19cc39){return _0x19cc39();},'pYUxB':function(_0x53372a,_0x3bd6cc){return _0x53372a??_0x3bd6cc;},'rAiNG':_0x3bf613(0x1a8),'Epsij':function(_0x39564a,_0x1ec4b0){return _0x39564a(_0x1ec4b0);},'ruPmy':_0x3bf613(0x222),'Ysqwo':'\x20VERIFIED','HGISW':_0x3bf613(0x1de),'BZzsG':'\x20PARTIAL','LguuP':'\x20FAILED','BVueE':_0x3bf613(0x253)};_0x52ba51&&warnRenamed(_0x5c21f7[_0x3bf613(0x20e)],_0x5c21f7[_0x3bf613(0x241)]);warnFlagRenamed('ranger\x20go',_0x5c21f7['Ihcbf'],_0x3bf613(0x26d)),_0x5c21f7[_0x3bf613(0x1e3)](warnFlagRenamed,_0x5c21f7['vWCqK'],_0x5c21f7['HKJIB'],_0x3bf613(0x1e2)),_0x5c21f7[_0x3bf613(0x1be)](warnFlagRenamed,_0x5c21f7[_0x3bf613(0x241)],'--item','--scenario');const _0xf2cff3=await _0x5c21f7[_0x3bf613(0x294)](loadRangerConfig),_0x28be86=_0x151b28['model'],_0xeb944f=_0xf2cff3['model'],_0x581c5a=_0x5c21f7['pYUxB'](_0x28be86,_0xeb944f),_0x2df042=_0x28be86?_0x5c21f7[_0x3bf613(0x22a)]:_0xeb944f?'config':'default',_0x12c7a1=await _0x5c21f7['Epsij'](verifyFeature,{'profile':_0x151b28[_0x3bf613(0x23f)]??_0x151b28['env'],'notes':_0x151b28[_0x3bf613(0x225)]??_0x151b28[_0x3bf613(0x25b)],'scenario':_0x151b28['scenario']??_0x151b28[_0x3bf613(0x206)],'startPath':_0x151b28['start-path'],'debugOutcome':_0x151b28['debug-outcome'],'debugAddressComments':_0x151b28[_0x5c21f7[_0x3bf613(0x26e)]],'headed':_0x151b28['headed'],'verifyModel':_0x581c5a,'verifyModelInput':_0x581c5a,'verifyModelSource':_0x2df042});console[_0x3bf613(0x196)]('\x0a'+'='[_0x3bf613(0x22c)](0x3c)),console[_0x3bf613(0x196)](_0x12c7a1[_0x3bf613(0x1f7)]===_0x3bf613(0x253)?_0x5c21f7['Ysqwo']:_0x12c7a1['evaluation']===_0x3bf613(0x1d9)?'\x20INCOMPLETE':_0x12c7a1['evaluation']===_0x5c21f7['HGISW']?_0x5c21f7['BZzsG']:_0x12c7a1['evaluation']===_0x3bf613(0x254)?_0x3bf613(0x270):_0x5c21f7['LguuP']),console['log']('='[_0x3bf613(0x22c)](0x3c)),console['log']('Summary:\x20'+_0x12c7a1[_0x3bf613(0x181)]),console['log']('Evaluation:\x20'+_0x12c7a1[_0x3bf613(0x1f7)]),console[_0x3bf613(0x196)]('Reason:\x20'+_0x12c7a1['evaluationReason']),_0x12c7a1[_0x3bf613(0x1e7)]?.['length']&&(console['log']('\x0aIssues:'),_0x12c7a1['issues'][_0x3bf613(0x1b0)]((_0x2478e1,_0x2977c6)=>{const _0x3d8845=_0x3bf613;console[_0x3d8845(0x196)]('\x0a'+_0x5c21f7[_0x3d8845(0x283)](_0x2977c6,0x1)+'.\x20['+_0x2478e1['severity']+']\x20'+_0x2478e1[_0x3d8845(0x227)]);})),process[_0x3bf613(0x177)](_0x12c7a1['evaluation']===_0x5c21f7['BVueE']?0x0:0x1);}_0x3e181a(process['argv'][_0x238674(0x228)](0x2))[_0x238674(0x1cf)](_0x238674(0x200))[_0x238674(0x264)](TOP_LEVEL_HELP)['version'](getCurrentVersion())['command']('create\x20<name>',_0x238674(0x25f),_0xed307d=>{const _0x4c60ba=_0x238674,_0x18d869={'TjnFp':'string','rbbHW':_0x4c60ba(0x284),'VIahn':'checklist'};return _0xed307d['positional']('name',{'type':_0x18d869['TjnFp'],'description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x4c60ba(0x227),{'type':_0x18d869[_0x4c60ba(0x207)],'alias':'d','description':'Feature\x20review\x20description'})[_0x4c60ba(0x271)](_0x4c60ba(0x1d7),{'type':_0x4c60ba(0x17d),'alias':'c','description':_0x18d869['rbbHW']})[_0x4c60ba(0x271)](_0x18d869[_0x4c60ba(0x17c)],{'type':_0x4c60ba(0x17d),'hidden':!![]});},async _0x349c87=>{const _0x17dd25=_0x238674,_0x40ed07={'ggaDL':function(_0xc9606,_0x3ded06,_0x3ffd49){return _0xc9606(_0x3ded06,_0x3ffd49);},'zcsBi':_0x17dd25(0x23b)};warnFlagRenamed(_0x17dd25(0x17f),'--checklist',_0x17dd25(0x14f));const _0x120031=_0x349c87['scenario']||_0x349c87['checklist'];await _0x40ed07[_0x17dd25(0x1d1)](withTelemetry,_0x40ed07[_0x17dd25(0x288)],()=>featureCreate(_0x349c87['name'],{'description':_0x349c87[_0x17dd25(0x227)],'scenarios':_0x120031}));})[_0x238674(0x201)](_0x238674(0x1db),_0x238674(0x17e),_0xb08ec2=>{const _0x1d1964=_0x238674,_0x47e550={'baKBJ':_0x1d1964(0x1ca),'yDPAf':_0x1d1964(0x1f2),'SejfY':'boolean'};return _0xb08ec2['option']('current-branch',{'type':_0x1d1964(0x1d3),'description':_0x1d1964(0x26a)})['option']('limit',{'type':_0x47e550[_0x1d1964(0x24c)],'alias':'l','description':_0x47e550[_0x1d1964(0x1b6)],'default':0xa})['option'](_0x1d1964(0x281),{'type':_0x1d1964(0x1ca),'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x1d1964(0x271)](_0x1d1964(0x223),{'type':_0x47e550['SejfY'],'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0xa4b7d6=>{const _0x748bd5=_0x238674;await withTelemetry(_0x748bd5(0x1db),()=>featureList({'currentBranch':_0xa4b7d6[_0x748bd5(0x1bf)],'limit':_0xa4b7d6[_0x748bd5(0x248)],'offset':_0xa4b7d6['offset'],'includeDeleted':_0xa4b7d6[_0x748bd5(0x223)]}));})[_0x238674(0x201)](_0x238674(0x1c0),_0x238674(0x282),_0x36728b=>{const _0x5074dc=_0x238674,_0x512f77={'JLwpZ':_0x5074dc(0x29b)};return _0x36728b['positional']('id',{'type':'string','description':_0x512f77[_0x5074dc(0x1aa)]});},async _0x493b1d=>{const _0x43d041=_0x238674,_0x58fef0={'tvTtf':_0x43d041(0x21a)};await withTelemetry(_0x58fef0[_0x43d041(0x18c)],()=>featureShow(_0x493b1d['id']));})['command'](_0x238674(0x235),_0x238674(0x1ac),_0x443fda=>{const _0x58bd48=_0x238674,_0x10480f={'VYQob':_0x58bd48(0x27b)};return _0x443fda[_0x58bd48(0x17b)]('id',{'type':'string','description':_0x10480f[_0x58bd48(0x1ae)]});},async _0x41616e=>{const _0x300f4e=_0x238674,_0x65b0af={'QQuMw':_0x300f4e(0x274)};await withTelemetry(_0x65b0af[_0x300f4e(0x231)],()=>featureResume(_0x41616e['id']));})[_0x238674(0x201)](_0x238674(0x154),_0x238674(0x1fd),_0xd5b295=>{const _0x4b5f3e=_0x238674,_0x6b8daf={'jJnGd':_0x4b5f3e(0x227),'EtWvb':'string','KjSlE':_0x4b5f3e(0x279)};return _0xd5b295[_0x4b5f3e(0x17b)](_0x6b8daf['jJnGd'],{'type':_0x6b8daf['EtWvb'],'description':_0x4b5f3e(0x185),'demandOption':!![]})['option']('id',{'type':_0x4b5f3e(0x27c),'description':_0x6b8daf[_0x4b5f3e(0x1df)]});},async _0x3fccd7=>{const _0x115c8f=_0x238674,_0x4bdf28={'MlYHX':_0x115c8f(0x173)};await withTelemetry(_0x4bdf28[_0x115c8f(0x1c6)],()=>featureAddScenario(_0x3fccd7[_0x115c8f(0x227)],_0x3fccd7['id']));})[_0x238674(0x201)]('edit-scenario\x20<description>',_0x238674(0x20c),_0x319dcb=>{const _0x5a5e61=_0x238674,_0x329f7e={'hmaFE':'string','GXBgA':'New\x20scenario\x20description','Lcgqm':'scenario','jKAbH':_0x5a5e61(0x164),'RPchQ':_0x5a5e61(0x279)};return _0x319dcb['positional'](_0x5a5e61(0x227),{'type':_0x329f7e[_0x5a5e61(0x1b1)],'description':_0x329f7e[_0x5a5e61(0x1bc)],'demandOption':!![]})[_0x5a5e61(0x271)](_0x329f7e['Lcgqm'],{'type':'number','description':_0x329f7e[_0x5a5e61(0x257)],'demandOption':!![]})['option']('id',{'type':_0x5a5e61(0x27c),'description':_0x329f7e['RPchQ']});},async _0x40bb01=>{const _0x1c4899=_0x238674,_0x4ef1de={'Mwnwt':_0x1c4899(0x1a7)};await withTelemetry(_0x4ef1de[_0x1c4899(0x1c8)],()=>featureEditScenario(_0x40bb01[_0x1c4899(0x227)],{'id':_0x40bb01['id'],'scenario':_0x40bb01['scenario']}));})[_0x238674(0x201)]('report\x20[id]',_0x238674(0x250),_0x3ae220=>{const _0x3f2814=_0x238674,_0x328f02={'XHfKu':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x3ae220[_0x3f2814(0x17b)]('id',{'type':'string','description':'Feature\x20review\x20ID'})['option'](_0x3f2814(0x232),{'type':'array','description':_0x328f02[_0x3f2814(0x204)]});},async _0x1954bf=>{const _0x66e852=_0x238674,_0x3540c0={'ZQoPO':function(_0x28be5a,_0x3f4a49,_0x38c174){return _0x28be5a(_0x3f4a49,_0x38c174);},'IVXpt':'report'},_0x42b419=_0x1954bf['exclude-scenario'],_0x2493dc=_0x42b419?_0x42b419['map'](_0x2fb48f=>Number(_0x2fb48f)):undefined;await _0x3540c0[_0x66e852(0x169)](withTelemetry,_0x3540c0[_0x66e852(0x188)],()=>featureReportPrDescription(_0x1954bf['id'],{'excludeScenarios':_0x2493dc}));})['command'](_0x238674(0x2a6),_0x238674(0x16c),_0x387984=>{const _0x234530=_0x238674,_0x446bbb={'rnuBe':'string'};return _0x387984[_0x234530(0x17b)]('id',{'type':_0x446bbb['rnuBe'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0xc9046b=>{const _0x363d54=_0x238674,_0x5aca7b={'vUSVd':_0x363d54(0x160)};await withTelemetry(_0x5aca7b[_0x363d54(0x14d)],()=>featureGetReview(_0xc9046b['id']));})['command']('delete\x20[id]','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x4d94ad=>{const _0x54148c=_0x238674,_0x5cfb26={'FwQKh':'string'};return _0x4d94ad[_0x54148c(0x17b)]('id',{'type':_0x5cfb26[_0x54148c(0x1f4)],'description':'Feature\x20review\x20ID'});},async _0x5f1006=>{const _0x402b7b=_0x238674,_0x42ce8a={'PeFFq':function(_0xf3376e,_0x1be0b1,_0x4f42bb){return _0xf3376e(_0x1be0b1,_0x4f42bb);},'iesDB':'delete'};await _0x42ce8a[_0x402b7b(0x167)](withTelemetry,_0x42ce8a[_0x402b7b(0x178)],()=>featureDelete(_0x5f1006['id']));})['command'](_0x238674(0x1c4),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x248c53=>{const _0x4a17eb=_0x238674,_0x2a48f6={'NZafW':'string','LJwhF':'Feature\x20review\x20ID\x20to\x20restore'};return _0x248c53[_0x4a17eb(0x17b)]('id',{'type':_0x2a48f6[_0x4a17eb(0x240)],'description':_0x2a48f6[_0x4a17eb(0x286)],'demandOption':!![]});},async _0x517a8f=>{await withTelemetry('restore',()=>featureRestore(_0x517a8f['id']));})['command'](_0x238674(0x15f),_0x238674(0x266),_0x4aa6eb=>{const _0x1c372e=_0x238674,_0x51748f={'dEgDB':'boolean','EWWWg':_0x1c372e(0x170),'qLojQ':'string','nrsQi':_0x1c372e(0x14c),'Vbuak':_0x1c372e(0x1e6),'xCSWn':_0x1c372e(0x247)};return _0x4aa6eb['positional']('token',{'type':_0x1c372e(0x27c),'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0x1c372e(0x271)]('skip-chromium',{'type':_0x51748f[_0x1c372e(0x295)],'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})[_0x1c372e(0x271)](_0x51748f[_0x1c372e(0x166)],{'type':_0x51748f['qLojQ'],'choices':['user','project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x51748f[_0x1c372e(0x26f)],{'type':'string','description':_0x1c372e(0x237)})['option']('force',{'type':_0x51748f['dEgDB'],'description':_0x51748f[_0x1c372e(0x21b)],'default':![]})['option'](_0x51748f[_0x1c372e(0x277)],{'type':_0x51748f['dEgDB'],'description':_0x1c372e(0x192),'default':![]});},async _0x3b040a=>{const _0x452299=_0x238674,_0x4f79cb={'LzAij':function(_0x4a04d7,_0x230dd1,_0x24ee03){return _0x4a04d7(_0x230dd1,_0x24ee03);},'ZtnzX':'start'};await _0x4f79cb[_0x452299(0x21c)](withTelemetry,_0x4f79cb[_0x452299(0x24e)],_0x55091a=>start(_0x3b040a[_0x452299(0x224)],{'skipChromium':_0x3b040a['skip-chromium'],'scope':_0x3b040a['scope'],'url':_0x3b040a[_0x452299(0x14c)],'force':_0x3b040a['force'],'opencode':_0x3b040a[_0x452299(0x247)]},_0x55091a));})['command']('setup-ci\x20<token>',_0x238674(0x205),_0x42b254=>{const _0x35be2f=_0x238674,_0x11c372={'TVbPR':_0x35be2f(0x27c),'SqrIv':_0x35be2f(0x1fc),'vdQgx':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','NpScG':_0x35be2f(0x1d3)};return _0x42b254['positional']('token',{'type':_0x11c372['TVbPR'],'description':_0x35be2f(0x159),'demandOption':!![]})[_0x35be2f(0x271)](_0x35be2f(0x23f),{'type':_0x11c372[_0x35be2f(0x27f)],'description':_0x11c372[_0x35be2f(0x19a)]})[_0x35be2f(0x271)]('base-url',{'type':_0x11c372[_0x35be2f(0x27f)],'description':_0x11c372[_0x35be2f(0x1da)]})[_0x35be2f(0x271)](_0x35be2f(0x1d2),{'type':_0x11c372['NpScG'],'description':_0x35be2f(0x262),'default':![]});},async _0x338172=>{const _0x3d9ad6=_0x238674,_0x34efa4={'ygMOE':'setup-ci'};await withTelemetry(_0x34efa4['ygMOE'],_0x7b67f6=>setupCi(_0x338172['token'],{'profile':_0x338172[_0x3d9ad6(0x23f)],'baseUrl':_0x338172[_0x3d9ad6(0x187)],'skipChromium':_0x338172['skip-chromium']},_0x7b67f6));})[_0x238674(0x201)]('login',_0x238674(0x220),()=>{},async()=>{await withTelemetry('login',()=>login());})[_0x238674(0x201)](_0x238674(0x1fe),_0x238674(0x18a),_0x184421=>{const _0x34c858=_0x238674,_0x185ef0={'zVbZC':_0x34c858(0x1d3),'PIkOy':_0x34c858(0x1e0),'tjiIK':_0x34c858(0x170),'jxEWQ':_0x34c858(0x1fa)};return _0x184421['option']('opencode',{'type':_0x185ef0[_0x34c858(0x255)],'description':_0x185ef0['PIkOy'],'default':![]})[_0x34c858(0x271)](_0x185ef0[_0x34c858(0x175)],{'type':'string','choices':[_0x34c858(0x17a),_0x185ef0[_0x34c858(0x275)]],'description':'Install\x20scope\x20for\x20skills'});},async _0x524d20=>{const _0x57fa7d=_0x238674,_0x9ec141=Boolean(_0x524d20['opencode']);await withTelemetry(_0x57fa7d(0x1fe),()=>skillup({'autoInstall':_0x524d20['scope'],'platform':_0x9ec141?'opencode':'claude'}));})[_0x238674(0x201)](_0x238674(0x202),_0x238674(0x20b),()=>{},async()=>{const _0x538826=_0x238674,_0x27e863={'nktdh':function(_0x53dc2b,_0x55fc4c,_0x4f6517){return _0x53dc2b(_0x55fc4c,_0x4f6517);},'hURXs':_0x538826(0x202)};await _0x27e863['nktdh'](withTelemetry,_0x27e863['hURXs'],()=>clean());})['command'](_0x238674(0x23f),_0x238674(0x19d),_0x101489=>{const _0x2daef6=_0x238674,_0x3dab90={'QlZpB':_0x2daef6(0x22d),'zjyGw':_0x2daef6(0x214),'CKnSQ':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','tgZWT':_0x2daef6(0x156),'DDAtV':'boolean','yzcUo':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','yzeOm':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','MIMWO':_0x2daef6(0x27c),'uUvAo':function(_0x52abae,_0x57f942,_0x4b17f3,_0x1d0be7){return _0x52abae(_0x57f942,_0x4b17f3,_0x1d0be7);},'zaVBZ':function(_0x65ed50,_0x498673){return _0x65ed50(_0x498673);},'VCFIz':_0x2daef6(0x18b),'ZcVwF':'Name\x20of\x20the\x20profile','erezd':'profile\x20use','niTRg':_0x2daef6(0x23f),'nkYAG':'Profile\x20name','gpYhU':function(_0x634802,_0xad58b8,_0x349920){return _0x634802(_0xad58b8,_0x349920);},'GMcdS':'profile\x20encrypt-auth','sXoFe':'profile\x20ls','uMXZq':'Name\x20of\x20the\x20profile\x20to\x20update','lRnIL':_0x2daef6(0x15a),'FZZjS':_0x2daef6(0x14b),'Rhqxs':'value','WDKId':'profile\x20config\x20list','pBcjF':'Config\x20key\x20to\x20remove','HovqA':'profile\x20config\x20unset','ISsIk':'Set\x20a\x20config\x20value','gyCWy':_0x2daef6(0x24d),'qejqd':'List\x20all\x20config\x20for\x20a\x20profile','Yvczt':'unset\x20<profile>\x20<key>','SWsFm':_0x2daef6(0x208),'zherq':_0x2daef6(0x1ad),'NSUbx':'use\x20<profile-name>','XxwBk':_0x2daef6(0x221),'MFlcP':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','BOZYA':_0x2daef6(0x269),'mjHsH':'update\x20<profile-name>','koavS':_0x2daef6(0x165)};return _0x101489['usage'](PROFILE_HELP)[_0x2daef6(0x201)]('add\x20<profile-name>',_0x2daef6(0x212),_0x4d5850=>{const _0x49bb33=_0x2daef6;return _0x4d5850['positional'](_0x3dab90[_0x49bb33(0x189)],{'type':_0x49bb33(0x27c),'description':_0x3dab90[_0x49bb33(0x243)],'demandOption':!![]})[_0x49bb33(0x271)]('ci',{'type':'boolean','description':_0x3dab90[_0x49bb33(0x293)],'default':![]})['option'](_0x3dab90[_0x49bb33(0x26c)],{'type':_0x3dab90[_0x49bb33(0x1f8)],'description':_0x49bb33(0x24f),'default':![]})['option']('url',{'type':_0x49bb33(0x27c),'description':_0x3dab90['yzcUo']})[_0x49bb33(0x271)]('force',{'type':_0x3dab90[_0x49bb33(0x1f8)],'description':_0x3dab90['yzeOm'],'default':![]})['option']('cdp-endpoint',{'type':_0x3dab90['MIMWO'],'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'});},async _0x248c8e=>{const _0x5d5cd6=_0x2daef6;await _0x3dab90['uUvAo'](withTelemetry,_0x5d5cd6(0x168),_0x5ce5ba=>addEnv(_0x248c8e['profile-name'],{'ci':_0x248c8e['ci'],'skipAuth':_0x248c8e[_0x5d5cd6(0x156)],'url':_0x248c8e['url'],'force':_0x248c8e['force'],'cdpEndpoint':_0x248c8e['cdp-endpoint']},_0x5ce5ba),{'isElectron':_0x3dab90['zaVBZ'](Boolean,_0x248c8e[_0x3dab90[_0x5d5cd6(0x174)]])});})['command'](_0x3dab90['NSUbx'],'Switch\x20to\x20using\x20a\x20specific\x20profile',_0x1c9ad2=>{const _0x107a57=_0x2daef6;return _0x1c9ad2[_0x107a57(0x17b)](_0x3dab90['QlZpB'],{'type':_0x3dab90[_0x107a57(0x1ce)],'description':_0x3dab90['ZcVwF'],'demandOption':!![]});},async _0xd5b0dc=>{const _0x27270f=_0x2daef6;await withTelemetry(_0x3dab90[_0x27270f(0x25e)],()=>useEnv(_0xd5b0dc[_0x27270f(0x22d)]));})['command'](_0x3dab90[_0x2daef6(0x242)],_0x3dab90['MFlcP'],_0x39bfd5=>{const _0x412c06=_0x2daef6;return _0x39bfd5['positional'](_0x3dab90['niTRg'],{'type':_0x3dab90[_0x412c06(0x1ce)],'description':_0x3dab90['nkYAG'],'demandOption':!![]});},async _0x48e58c=>{const _0x4d1bfd=_0x2daef6;await _0x3dab90['gpYhU'](withTelemetry,_0x3dab90[_0x4d1bfd(0x1d0)],()=>authEncrypt(_0x48e58c[_0x4d1bfd(0x23f)]));})['command']('ls',_0x3dab90[_0x2daef6(0x1a0)],()=>{},async()=>{const _0xa5c16e=_0x2daef6;await withTelemetry(_0x3dab90[_0xa5c16e(0x1c2)],()=>envList());})['command'](_0x3dab90[_0x2daef6(0x161)],_0x3dab90[_0x2daef6(0x182)],_0x335863=>{const _0x471edd=_0x2daef6;return _0x335863[_0x471edd(0x17b)]('profile-name',{'type':_0x3dab90[_0x471edd(0x1ce)],'description':_0x3dab90['uMXZq'],'demandOption':!![]});},async _0x254ce0=>{const _0x4e9f9b=_0x2daef6;await withTelemetry(_0x3dab90[_0x4e9f9b(0x245)],_0x3ebca0=>updateEnv(_0x254ce0['profile-name'],_0x3ebca0));})['command']('config','Manage\x20profile\x20configuration',_0x2efb3b=>{const _0x18ecc8=_0x2daef6,_0x5034a2={'UyFom':'string','ZXtfe':_0x3dab90[_0x18ecc8(0x278)],'GrhBA':_0x3dab90[_0x18ecc8(0x218)],'strjR':function(_0xc294d9,_0x21e771,_0x403e9f){return _0xc294d9(_0x21e771,_0x403e9f);},'nHrXt':_0x3dab90['niTRg'],'zUPjz':_0x3dab90[_0x18ecc8(0x172)],'THKZT':_0x3dab90['FZZjS'],'DKEYm':_0x3dab90[_0x18ecc8(0x290)],'qxpmt':_0x3dab90[_0x18ecc8(0x19e)]};return _0x2efb3b['usage'](PROFILE_CONFIG_HELP)['command']('set\x20<profile>\x20<key>\x20<value>',_0x3dab90['ISsIk'],_0x58fafe=>{const _0x43c4f1=_0x18ecc8;return _0x58fafe['positional'](_0x43c4f1(0x23f),{'type':_0x5034a2[_0x43c4f1(0x1e8)],'description':_0x5034a2['ZXtfe'],'demandOption':!![]})['positional']('key',{'type':_0x43c4f1(0x27c),'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x43c4f1(0x17b)](_0x5034a2['GrhBA'],{'type':_0x43c4f1(0x27c),'description':_0x43c4f1(0x1ec),'demandOption':!![]});},async _0x5b61c7=>{const _0x50fa04=_0x18ecc8;await _0x5034a2['strjR'](withTelemetry,_0x50fa04(0x1a1),()=>configSet(_0x5b61c7[_0x50fa04(0x23f)],_0x5b61c7[_0x50fa04(0x14b)],_0x5b61c7['value']));})[_0x18ecc8(0x201)](_0x18ecc8(0x23c),_0x3dab90[_0x18ecc8(0x163)],_0x4726c7=>{const _0x21e838=_0x18ecc8;return _0x4726c7['positional'](_0x3dab90['niTRg'],{'type':_0x21e838(0x27c),'description':'Profile\x20name','demandOption':!![]})[_0x21e838(0x17b)](_0x3dab90[_0x21e838(0x1a5)],{'type':_0x3dab90[_0x21e838(0x1ce)],'description':_0x21e838(0x256),'demandOption':!![]});},async _0x3da29a=>{const _0x139f61=_0x18ecc8;await _0x5034a2['strjR'](withTelemetry,_0x139f61(0x1b8),()=>configGet(_0x3da29a[_0x139f61(0x23f)],_0x3da29a[_0x139f61(0x14b)]));})['command']('list\x20<profile>',_0x3dab90['qejqd'],_0x39636b=>{const _0x2c5aef=_0x18ecc8;return _0x39636b['positional'](_0x5034a2[_0x2c5aef(0x26b)],{'type':_0x2c5aef(0x27c),'description':_0x5034a2['ZXtfe'],'demandOption':!![]});},async _0x4eb482=>{await withTelemetry(_0x5034a2['zUPjz'],()=>configList(_0x4eb482['profile']));})[_0x18ecc8(0x201)](_0x3dab90['Yvczt'],_0x3dab90[_0x18ecc8(0x296)],_0x124d8c=>{const _0x3b485d=_0x18ecc8;return _0x124d8c[_0x3b485d(0x17b)](_0x3b485d(0x23f),{'type':_0x3b485d(0x27c),'description':_0x3b485d(0x299),'demandOption':!![]})['positional'](_0x5034a2['THKZT'],{'type':'string','description':_0x5034a2['DKEYm'],'demandOption':!![]});},async _0x36bf93=>{const _0x46bf5a=_0x18ecc8;await withTelemetry(_0x5034a2['qxpmt'],()=>configUnset(_0x36bf93[_0x46bf5a(0x23f)],_0x36bf93[_0x46bf5a(0x14b)]));})['demandCommand'](0x1,_0x3dab90['zherq']);})[_0x2daef6(0x1cc)](0x1,_0x2daef6(0x162));})['command']('status',_0x238674(0x259),()=>{},async()=>{const _0x40b00b=_0x238674,_0x4e45b1={'MKeWZ':function(_0x1eb7a4,_0xe76a18,_0x2ee944){return _0x1eb7a4(_0xe76a18,_0x2ee944);},'rBIof':_0x40b00b(0x1ef)};await _0x4e45b1[_0x40b00b(0x1a2)](withTelemetry,_0x4e45b1[_0x40b00b(0x19f)],()=>status());})[_0x238674(0x201)]('update',_0x238674(0x260),()=>{},async()=>{const _0x5d158b=_0x238674,_0x117cb7={'OiGci':function(_0x3811e9,_0xb4a5d,_0x3ea91d){return _0x3811e9(_0xb4a5d,_0x3ea91d);},'duEVM':_0x5d158b(0x1b9)};await _0x117cb7[_0x5d158b(0x1ea)](withTelemetry,_0x117cb7['duEVM'],()=>update());})[_0x238674(0x201)]('go',_0x238674(0x272),_0x25290f=>{const _0x2fc1b5=_0x238674,_0x560e1e={'spwGg':'profile','XPRFF':'string','YRMUe':_0x2fc1b5(0x225),'WxvIE':_0x2fc1b5(0x1ca),'vyGlh':_0x2fc1b5(0x191),'HSENs':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','KeupB':_0x2fc1b5(0x151),'xnXQI':'boolean','uhwvI':_0x2fc1b5(0x1dd),'XmGuB':'debug-outcome','AcAek':_0x2fc1b5(0x253),'qMnCa':'partial','UDlTM':_0x2fc1b5(0x254),'eUSye':'task','JGjIv':'item'};return _0x25290f[_0x2fc1b5(0x271)](_0x560e1e[_0x2fc1b5(0x213)],{'type':_0x560e1e['XPRFF'],'description':_0x2fc1b5(0x197)})['option'](_0x560e1e['YRMUe'],{'type':_0x2fc1b5(0x27c),'description':_0x2fc1b5(0x229)})[_0x2fc1b5(0x271)]('scenario',{'type':_0x560e1e['WxvIE'],'description':_0x560e1e['vyGlh']})[_0x2fc1b5(0x271)]('start-path',{'type':_0x560e1e['XPRFF'],'description':_0x560e1e[_0x2fc1b5(0x267)]})['option'](_0x560e1e['KeupB'],{'type':'string','description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)'})['option']('headed',{'type':_0x560e1e[_0x2fc1b5(0x29d)],'description':_0x560e1e['uhwvI'],'default':![]})['option'](_0x560e1e['XmGuB'],{'type':_0x2fc1b5(0x27c),'hidden':!![],'choices':[_0x560e1e['AcAek'],_0x560e1e['qMnCa'],_0x560e1e['UDlTM'],'failed','incomplete']})['option']('debug-address-comments',{'type':_0x560e1e['xnXQI'],'hidden':!![]})[_0x2fc1b5(0x271)](_0x2fc1b5(0x263),{'type':_0x2fc1b5(0x27c),'hidden':!![]})[_0x2fc1b5(0x271)](_0x560e1e[_0x2fc1b5(0x190)],{'type':_0x560e1e['XPRFF'],'hidden':!![]})[_0x2fc1b5(0x271)](_0x560e1e[_0x2fc1b5(0x29c)],{'type':'number','hidden':!![]});},async _0x31ddd8=>{const _0x4e7926={'laTjk':function(_0x2da285,_0x42b5ce){return _0x2da285(_0x42b5ce);}};await _0x4e7926['laTjk'](runGoCommand,_0x31ddd8);})['command']('auth',![],_0x30e58d=>{const _0x34df69=_0x238674,_0x156eab={'CzuOw':_0x34df69(0x27c),'Unskc':_0x34df69(0x299),'PelRZ':'ranger\x20auth\x20encrypt','QYAft':_0x34df69(0x276),'LibDq':function(_0x51304c,_0x498dda){return _0x51304c(_0x498dda);},'OVqMx':_0x34df69(0x291),'ojCnt':_0x34df69(0x1ff)};return _0x30e58d['command'](_0x156eab['OVqMx'],![],_0x45ede6=>{const _0x39d874=_0x34df69;return _0x45ede6[_0x39d874(0x17b)]('profile',{'type':_0x156eab['CzuOw'],'description':_0x156eab[_0x39d874(0x27d)],'demandOption':!![]});},async _0x104898=>{const _0xc5fc08=_0x34df69;warnRenamed(_0x156eab['PelRZ'],_0x156eab[_0xc5fc08(0x1f5)]),await _0x156eab['LibDq'](authEncrypt,_0x104898[_0xc5fc08(0x23f)]);})[_0x34df69(0x1cc)](0x1,_0x156eab[_0x34df69(0x1dc)]);},()=>{})['command'](_0x238674(0x2a1),![],_0x547815=>{const _0x1b5808=_0x238674,_0x524fbf={'XOFFO':'token','SrCXK':'boolean','XCGwV':'string','Nwnoz':'project','FyxCV':_0x1b5808(0x1e6)};return _0x547815['positional'](_0x524fbf[_0x1b5808(0x239)],{'type':_0x1b5808(0x27c),'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})['option'](_0x1b5808(0x1d2),{'type':_0x524fbf['SrCXK'],'description':_0x1b5808(0x234),'default':![]})[_0x1b5808(0x271)]('scope',{'type':_0x524fbf['XCGwV'],'choices':[_0x1b5808(0x17a),_0x524fbf[_0x1b5808(0x2a5)]],'description':_0x1b5808(0x29e)})['option'](_0x1b5808(0x14c),{'type':_0x524fbf['XCGwV'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x1b5808(0x271)]('force',{'type':_0x1b5808(0x1d3),'description':_0x524fbf[_0x1b5808(0x1c1)],'default':![]});},async _0x4c51fb=>{const _0x503302=_0x238674,_0x4f072b={'GWTsA':'ranger\x20start','WaHcn':'ranger\x20setup','TSLHr':function(_0x18cb5a,_0x34d036,_0x2e5b69){return _0x18cb5a(_0x34d036,_0x2e5b69);},'kjqzv':_0x503302(0x27e)};warnRenamed(_0x4f072b['GWTsA'],_0x4f072b[_0x503302(0x1cd)]),await _0x4f072b[_0x503302(0x1c9)](withTelemetry,_0x4f072b['kjqzv'],_0x231656=>start(_0x4c51fb['token'],{'skipChromium':_0x4c51fb[_0x503302(0x1d2)],'scope':_0x4c51fb[_0x503302(0x170)],'url':_0x4c51fb['url'],'force':_0x4c51fb['force']},_0x231656));})[_0x238674(0x201)](_0x238674(0x153),![],_0xaf67ca=>{const _0x1026a9=_0x238674,_0x18086f={'cLFja':'env','TXPWR':_0x1026a9(0x197),'EUpre':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','dsytr':_0x1026a9(0x206),'dkIwK':'Scenario\x20index\x20(1-based)','otrfu':'string','LtwRH':'scenario','bueNV':_0x1026a9(0x29a),'HvZCv':'boolean','eeaWW':'debug-outcome','ovPVX':'verified','ydcIm':'partial','qUCrt':'failed'};return _0xaf67ca['option'](_0x18086f['cLFja'],{'type':_0x1026a9(0x27c),'description':_0x18086f['TXPWR']})[_0x1026a9(0x271)]('task',{'type':'string','description':_0x18086f[_0x1026a9(0x184)]})['option'](_0x18086f[_0x1026a9(0x16d)],{'type':_0x1026a9(0x1ca),'description':_0x18086f['dkIwK']})['option']('profile',{'type':_0x18086f[_0x1026a9(0x273)],'hidden':!![]})[_0x1026a9(0x271)](_0x1026a9(0x225),{'type':_0x18086f['otrfu'],'hidden':!![]})[_0x1026a9(0x271)](_0x18086f[_0x1026a9(0x1ab)],{'type':'number','hidden':!![]})[_0x1026a9(0x271)](_0x1026a9(0x1b4),{'type':_0x1026a9(0x27c),'description':_0x1026a9(0x1b5)})['option']('model',{'type':'string','hidden':!![]})['option'](_0x18086f[_0x1026a9(0x268)],{'type':_0x18086f['HvZCv'],'hidden':!![],'default':![]})['option'](_0x18086f['eeaWW'],{'type':_0x18086f[_0x1026a9(0x273)],'hidden':!![],'choices':[_0x18086f[_0x1026a9(0x193)],_0x18086f[_0x1026a9(0x15c)],_0x1026a9(0x254),_0x18086f['qUCrt'],_0x1026a9(0x1d9)]});},async _0x41cd62=>{await runGoCommand(_0x41cd62,!![]);})['command'](_0x238674(0x233),![],_0x19447f=>{const _0x22c1f9=_0x238674,_0xe707a5={'hloSv':_0x22c1f9(0x249),'Tgqiw':'boolean','HeELD':_0x22c1f9(0x24a),'xDXaf':'skip-auth','ubEJl':_0x22c1f9(0x24f)};return _0x19447f[_0x22c1f9(0x17b)](_0xe707a5['hloSv'],{'type':'string','description':_0x22c1f9(0x15e),'demandOption':!![]})['option']('ci',{'type':_0xe707a5['Tgqiw'],'description':_0xe707a5['HeELD'],'default':![]})[_0x22c1f9(0x271)](_0xe707a5[_0x22c1f9(0x1f3)],{'type':_0xe707a5['Tgqiw'],'description':_0xe707a5['ubEJl'],'default':![]});},async _0x1e55bd=>{const _0x204f21=_0x238674,_0x1bd78b={'awtnl':'ranger\x20add\x20env','lmkOE':'add\x20env'};warnRenamed(_0x1bd78b['awtnl'],'ranger\x20profile\x20add'),await withTelemetry(_0x1bd78b[_0x204f21(0x158)],_0x468313=>addEnv(_0x1e55bd[_0x204f21(0x249)],{'ci':_0x1e55bd['ci'],'skipAuth':_0x1e55bd['skip-auth']},_0x468313));})['command']('use\x20<env-name>',![],_0x3a4050=>{const _0x3f62e7=_0x238674,_0x3868d1={'dVBsN':'string'};return _0x3a4050['positional'](_0x3f62e7(0x249),{'type':_0x3868d1[_0x3f62e7(0x1af)],'description':_0x3f62e7(0x203),'demandOption':!![]});},async _0x72ef7b=>{const _0x1f8e06=_0x238674,_0x23e0cf={'KJlBF':_0x1f8e06(0x1d8)};warnRenamed(_0x23e0cf[_0x1f8e06(0x1e5)],_0x1f8e06(0x14e)),await withTelemetry(_0x1f8e06(0x28c),()=>useEnv(_0x72ef7b[_0x1f8e06(0x249)]));})[_0x238674(0x201)](_0x238674(0x289),![],_0x342b45=>{const _0x323832=_0x238674,_0x143b29={'LgpSq':_0x323832(0x263),'SFnza':_0x323832(0x27c),'awBQz':'key','KNcvd':'ranger\x20config\x20set','PZmIW':'config\x20set','FmCLY':'Environment\x20name','Coakw':'Config\x20key','cLjMG':function(_0x3c3f89,_0x2c3780,_0x30f7b3){return _0x3c3f89(_0x2c3780,_0x30f7b3);},'mVuoS':function(_0x173e9f,_0x43c5df,_0x5d3fb4){return _0x173e9f(_0x43c5df,_0x5d3fb4);},'HMJUT':_0x323832(0x251),'mYjya':'Config\x20key\x20to\x20remove','Dllnj':'ranger\x20config\x20unset','fHVFg':_0x323832(0x261),'pWACR':'set\x20<env>\x20<key>\x20<value>','QQlKX':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x342b45['command'](_0x143b29['pWACR'],![],_0x1c8d3b=>{const _0x33da6f=_0x323832;return _0x1c8d3b[_0x33da6f(0x17b)](_0x143b29[_0x33da6f(0x171)],{'type':_0x143b29[_0x33da6f(0x230)],'description':'Environment\x20name','demandOption':!![]})[_0x33da6f(0x17b)](_0x143b29['awBQz'],{'type':_0x143b29['SFnza'],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x33da6f(0x17b)]('value',{'type':_0x143b29[_0x33da6f(0x230)],'description':_0x33da6f(0x1ec),'demandOption':!![]});},async _0x2ff3df=>{const _0x10b10d=_0x323832;warnRenamed(_0x143b29['KNcvd'],'ranger\x20profile\x20config\x20set'),await withTelemetry(_0x143b29['PZmIW'],()=>configSet(_0x2ff3df['env'],_0x2ff3df['key'],_0x2ff3df[_0x10b10d(0x1b3)]));})['command']('get\x20<env>\x20<key>',![],_0x111306=>{const _0x268023=_0x323832;return _0x111306['positional'](_0x268023(0x263),{'type':_0x143b29['SFnza'],'description':_0x143b29[_0x268023(0x20d)],'demandOption':!![]})['positional']('key',{'type':_0x143b29['SFnza'],'description':_0x143b29['Coakw'],'demandOption':!![]});},async _0x5ea9d1=>{const _0x204267=_0x323832;_0x143b29['cLjMG'](warnRenamed,'ranger\x20config\x20get',_0x204267(0x216)),await _0x143b29['mVuoS'](withTelemetry,'config\x20get',()=>configGet(_0x5ea9d1['env'],_0x5ea9d1['key']));})['command']('list\x20<env>',![],_0xb03c88=>{const _0x131fda=_0x323832;return _0xb03c88[_0x131fda(0x17b)](_0x131fda(0x263),{'type':'string','description':_0x143b29['FmCLY'],'demandOption':!![]});},async _0x2b63bc=>{const _0x57341e=_0x323832;warnRenamed(_0x143b29[_0x57341e(0x195)],_0x57341e(0x292)),await _0x143b29[_0x57341e(0x1c5)](withTelemetry,'config\x20list',()=>configList(_0x2b63bc[_0x57341e(0x263)]));})['command']('unset\x20<env>\x20<key>',![],_0x2fa019=>{const _0x3ef5f3=_0x323832;return _0x2fa019[_0x3ef5f3(0x17b)]('env',{'type':_0x3ef5f3(0x27c),'description':_0x143b29['FmCLY'],'demandOption':!![]})['positional'](_0x143b29['awBQz'],{'type':'string','description':_0x143b29[_0x3ef5f3(0x209)],'demandOption':!![]});},async _0x93bbda=>{const _0x41140d=_0x323832;_0x143b29[_0x41140d(0x1c5)](warnRenamed,_0x143b29[_0x41140d(0x25d)],_0x41140d(0x152)),await withTelemetry(_0x143b29['fHVFg'],()=>configUnset(_0x93bbda[_0x41140d(0x263)],_0x93bbda[_0x41140d(0x14b)]));})['demandCommand'](0x1,_0x143b29['QQlKX']);})['command']('env',![],_0x213050=>{const _0x254367=_0x238674,_0x3355d8={'LTnxQ':function(_0x1c6d5f,_0x6da297,_0x3b85cb){return _0x1c6d5f(_0x6da297,_0x3b85cb);},'GSfMK':'ranger\x20profile\x20ls','yBFFT':_0x254367(0x249),'AEQVv':_0x254367(0x1e4),'ecTYD':'ranger\x20env\x20update','GKMxj':function(_0xe07db4,_0x4f7977,_0x4b6425){return _0xe07db4(_0x4f7977,_0x4b6425);},'NkBIf':_0x254367(0x236)};return _0x213050[_0x254367(0x201)]('ls',![],()=>{},async()=>{const _0x337500=_0x254367;_0x3355d8['LTnxQ'](warnRenamed,_0x337500(0x1d5),_0x3355d8[_0x337500(0x176)]),await withTelemetry('env\x20list',()=>envList());})[_0x254367(0x201)]('update\x20<env-name>',![],_0x1b171f=>{const _0x1da441=_0x254367;return _0x1b171f['positional'](_0x3355d8[_0x1da441(0x1eb)],{'type':_0x1da441(0x27c),'description':_0x3355d8['AEQVv'],'demandOption':!![]});},async _0x215d3f=>{const _0x15d12d=_0x254367;warnRenamed(_0x3355d8['ecTYD'],'ranger\x20profile\x20update'),await _0x3355d8['GKMxj'](withTelemetry,_0x15d12d(0x287),_0x22d482=>updateEnv(_0x215d3f['env-name'],_0x22d482));})['demandCommand'](0x1,_0x3355d8['NkBIf']);})['command'](_0x238674(0x16a),![],_0x1b3505=>{const _0x719ed6=_0x238674,_0x3b50fd={'fKhBD':_0x719ed6(0x21f),'UpfTI':_0x719ed6(0x18d),'FNNTA':_0x719ed6(0x27c),'Gbhwo':_0x719ed6(0x28d),'DgnJl':_0x719ed6(0x17d),'INAyE':_0x719ed6(0x1d7),'QQbgz':function(_0x69e86b,_0x49c0b4,_0x5e3aea,_0x4eb012){return _0x69e86b(_0x49c0b4,_0x5e3aea,_0x4eb012);},'HMHGQ':'ranger\x20create','efuKZ':_0x719ed6(0x23d),'mhrDg':_0x719ed6(0x14f),'BtfPT':_0x719ed6(0x22e),'ezMri':'number','bANvA':'offset','gKKMA':'Number\x20of\x20feature\x20reviews\x20to\x20skip','hBqXN':_0x719ed6(0x223),'GWjdj':'Include\x20soft-deleted\x20feature\x20reviews','PzmpO':'ranger\x20feature\x20list','QPGQX':_0x719ed6(0x23e),'UtlEt':function(_0x29084b,_0x53c5f9,_0x5458b5){return _0x29084b(_0x53c5f9,_0x5458b5);},'uLLTq':_0x719ed6(0x22f),'HPTLU':'feature\x20show','mDMXM':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','EFcpc':'ranger\x20feature\x20resume','LlVZi':function(_0x25837c,_0x4597ba,_0x104f58){return _0x25837c(_0x4597ba,_0x104f58);},'cavrP':'description','RjkWc':'Scenario\x20description','ZQeCg':_0x719ed6(0x279),'SzDrp':_0x719ed6(0x1e1),'WOCpY':'ranger\x20feature\x20get-feedback','ybinZ':function(_0x46b40d,_0x435c4c,_0x344d52){return _0x46b40d(_0x435c4c,_0x344d52);},'cdUam':_0x719ed6(0x183),'hMoti':function(_0x2d11dc,_0x18d4d0,_0x21eb2b){return _0x2d11dc(_0x18d4d0,_0x21eb2b);},'fYfrv':'ranger\x20delete','hHgSq':'feature\x20restore','GLlvu':_0x719ed6(0x1db),'hMEix':_0x719ed6(0x1c0),'Lguyh':'resume\x20[id]','zQQJX':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x1b3505[_0x719ed6(0x201)]('create\x20<name>',![],_0x52ab2b=>{const _0x371320=_0x719ed6;return _0x52ab2b[_0x371320(0x17b)](_0x3b50fd['fKhBD'],{'type':'string','description':_0x3b50fd['UpfTI'],'demandOption':!![]})[_0x371320(0x271)](_0x371320(0x227),{'type':_0x3b50fd['FNNTA'],'alias':'d','description':_0x3b50fd[_0x371320(0x1f1)]})['option']('checklist',{'type':_0x3b50fd[_0x371320(0x25c)],'alias':'c','description':_0x371320(0x284)})['option'](_0x3b50fd[_0x371320(0x1a4)],{'type':_0x371320(0x17d),'hidden':!![]});},async _0x31aecd=>{const _0x3e4c22=_0x719ed6;warnRenamed('ranger\x20feature\x20create','ranger\x20create'),_0x3b50fd[_0x3e4c22(0x18e)](warnFlagRenamed,_0x3b50fd['HMHGQ'],_0x3b50fd[_0x3e4c22(0x19c)],_0x3b50fd['mhrDg']);const _0x2b6714=_0x31aecd['scenario']||_0x31aecd['checklist'];await withTelemetry(_0x3b50fd[_0x3e4c22(0x219)],()=>featureCreate(_0x31aecd['name'],{'description':_0x31aecd['description'],'scenarios':_0x2b6714}));})['command'](_0x3b50fd[_0x719ed6(0x179)],![],_0x35a595=>{const _0xe5a2dd=_0x719ed6;return _0x35a595['option']('current-branch',{'type':'boolean','description':_0xe5a2dd(0x26a)})['option']('limit',{'type':_0x3b50fd['ezMri'],'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})[_0xe5a2dd(0x271)](_0x3b50fd[_0xe5a2dd(0x155)],{'type':_0xe5a2dd(0x1ca),'alias':'o','description':_0x3b50fd['gKKMA'],'default':0x0})['option'](_0x3b50fd['hBqXN'],{'type':_0xe5a2dd(0x1d3),'alias':'d','description':_0x3b50fd[_0xe5a2dd(0x28b)],'default':![]});},async _0x535b3b=>{const _0x10ef3b=_0x719ed6;warnRenamed(_0x3b50fd[_0x10ef3b(0x16e)],'ranger\x20list'),await withTelemetry(_0x3b50fd['QPGQX'],()=>featureList({'currentBranch':_0x535b3b[_0x10ef3b(0x1bf)],'limit':_0x535b3b[_0x10ef3b(0x248)],'offset':_0x535b3b[_0x10ef3b(0x281)],'includeDeleted':_0x535b3b[_0x10ef3b(0x223)]}));})['command'](_0x3b50fd[_0x719ed6(0x210)],![],_0x6349e8=>{const _0x4deee1=_0x719ed6;return _0x6349e8['positional']('id',{'type':_0x3b50fd['FNNTA'],'description':_0x4deee1(0x29b)});},async _0x112011=>{const _0x404700=_0x719ed6;_0x3b50fd[_0x404700(0x198)](warnRenamed,_0x3b50fd[_0x404700(0x1f6)],_0x404700(0x25a)),await _0x3b50fd[_0x404700(0x198)](withTelemetry,_0x3b50fd[_0x404700(0x21e)],()=>featureShow(_0x112011['id']));})[_0x719ed6(0x201)](_0x3b50fd['Lguyh'],![],_0x2986a9=>{const _0x49854b=_0x719ed6;return _0x2986a9[_0x49854b(0x17b)]('id',{'type':'string','description':_0x3b50fd[_0x49854b(0x1bd)]});},async _0x32b624=>{const _0xc6d48d=_0x719ed6;warnRenamed(_0x3b50fd['EFcpc'],'ranger\x20resume'),await _0x3b50fd[_0xc6d48d(0x28a)](withTelemetry,'feature\x20resume',()=>featureResume(_0x32b624['id']));})['command'](_0x719ed6(0x1a9),![],_0x58ee38=>{const _0x1a8c15=_0x719ed6;return _0x58ee38[_0x1a8c15(0x17b)](_0x3b50fd[_0x1a8c15(0x24b)],{'type':'string','description':_0x3b50fd[_0x1a8c15(0x2a4)],'demandOption':!![]})['option']('id',{'type':_0x1a8c15(0x27c),'description':_0x3b50fd['ZQeCg']});},async _0x1bdfdc=>{const _0x561455=_0x719ed6;warnRenamed(_0x3b50fd[_0x561455(0x28e)],'ranger\x20add-scenario'),await withTelemetry('feature\x20add-checklist-item',()=>featureAddScenario(_0x1bdfdc[_0x561455(0x227)],_0x1bdfdc['id']));})[_0x719ed6(0x201)](_0x719ed6(0x280),![],_0x24c726=>{const _0x2beb85=_0x719ed6;return _0x24c726['positional']('id',{'type':'string','description':_0x3b50fd[_0x2beb85(0x215)]});},async _0x166815=>{warnRenamed(_0x3b50fd['WOCpY'],'ranger\x20get-review'),await _0x3b50fd['ybinZ'](withTelemetry,_0x3b50fd['cdUam'],()=>featureGetReview(_0x166815['id']));})['command'](_0x719ed6(0x1a6),![],_0x519a3e=>{const _0x2c063d=_0x719ed6;return _0x519a3e[_0x2c063d(0x17b)]('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0x33a19f=>{const _0x2a0411=_0x719ed6;_0x3b50fd['hMoti'](warnRenamed,'ranger\x20feature\x20delete',_0x3b50fd['fYfrv']),await withTelemetry(_0x2a0411(0x27a),()=>featureDelete(_0x33a19f['id']));})['command']('restore\x20<id>',![],_0x39e142=>{const _0x19ebf9=_0x719ed6;return _0x39e142[_0x19ebf9(0x17b)]('id',{'type':_0x19ebf9(0x27c),'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0xcc945d=>{const _0x38697e=_0x719ed6;warnRenamed('ranger\x20feature\x20restore',_0x38697e(0x180)),await withTelemetry(_0x3b50fd['hHgSq'],()=>featureRestore(_0xcc945d['id']));})[_0x719ed6(0x1cc)](0x1,_0x3b50fd[_0x719ed6(0x1ed)]);})['command'](_0x238674(0x297),![],_0x2922f4=>{const _0x476ce8=_0x238674,_0xbe294e={'ugkzk':_0x476ce8(0x16f),'wZgDQ':_0x476ce8(0x244),'KSpMi':'hook:enable','FRVfB':_0x476ce8(0x27c),'CrUir':function(_0x1072ba,_0x3348f3,_0x388d10){return _0x1072ba(_0x3348f3,_0x388d10);},'ILsna':_0x476ce8(0x1cb),'lfQQh':'disable','vBMbY':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','OiEFj':_0x476ce8(0x21f)};return _0x2922f4[_0x476ce8(0x201)](_0xbe294e[_0x476ce8(0x20f)],_0x476ce8(0x285),_0x31ea71=>{const _0x5ce5eb=_0x476ce8;return _0x31ea71['option'](_0xbe294e[_0x5ce5eb(0x1c7)],{'type':'string','description':_0xbe294e[_0x5ce5eb(0x199)]});},async _0x2286e2=>{const _0x246939=_0x476ce8;await withTelemetry(_0xbe294e[_0x246939(0x15b)],()=>hook(_0x246939(0x1cb),_0x2286e2['session-id']));})[_0x476ce8(0x201)](_0xbe294e['lfQQh'],_0xbe294e['vBMbY'],_0x497d5c=>{const _0x47755b=_0x476ce8;return _0x497d5c[_0x47755b(0x271)](_0xbe294e[_0x47755b(0x1c7)],{'type':_0xbe294e[_0x47755b(0x1d6)],'description':_0xbe294e['wZgDQ']});},async _0x4c7f0a=>{const _0x2bdef8=_0x476ce8;await _0xbe294e['CrUir'](withTelemetry,'hook:disable',()=>hook(_0x2bdef8(0x21d),_0x4c7f0a['session-id']));})['option'](_0xbe294e[_0x476ce8(0x16b)],{'type':_0xbe294e['FRVfB'],'description':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'})[_0x476ce8(0x271)](_0xbe294e['ugkzk'],{'type':_0x476ce8(0x27c),'description':_0xbe294e['wZgDQ']});},async _0x2663a5=>{const _0x9cc684=_0x238674,_0x1c847d={'RreCa':function(_0x4de7c8,_0x187670,_0x3b360f){return _0x4de7c8(_0x187670,_0x3b360f);},'YvGaM':_0x9cc684(0x16f)};_0x2663a5['name']&&await _0x1c847d[_0x9cc684(0x258)](hook,_0x2663a5['name'],_0x2663a5[_0x1c847d[_0x9cc684(0x252)]]);})['demandCommand'](0x1,_0x238674(0x157))['strictCommands']()['fail'](async(_0x3fcec9,_0x17b5d4,_0x3f8ddf)=>{const _0x5a9751=_0x238674,_0x48f1b2={'ZFbiV':function(_0x47fc31,_0x5c0448){return _0x47fc31(_0x5c0448);},'FZLzr':'Unknown\x20command','ahqUL':function(_0x3fdd9f,_0x13df6d){return _0x3fdd9f(_0x13df6d);},'plgQp':function(_0x171391,_0x576dd3){return _0x171391||_0x576dd3;}},_0x2a866e=_0x48f1b2[_0x5a9751(0x1d4)](sanitizeArgs,process[_0x5a9751(0x2a0)][_0x5a9751(0x228)](0x2)),_0x529ef1=getErrorType(_0x3fcec9,_0x17b5d4);if(_0x3fcec9&&_0x3fcec9[_0x5a9751(0x2a3)](_0x48f1b2[_0x5a9751(0x20a)])){const _0x9f9202=process['argv'][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x9f9202),console[_0x5a9751(0x298)]('Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a');}else{if(_0x3fcec9)console[_0x5a9751(0x298)]('\x0a'+_0x3fcec9+'\x0a');else _0x17b5d4&&console['error'](_0x5a9751(0x1b7)+_0x17b5d4[_0x5a9751(0x246)]+'\x0a');}await _0x48f1b2['ahqUL'](logDesirePath,{'rawCommand':_0x2a866e,'errorMessage':_0x3fcec9||_0x17b5d4?.['message'],'errorType':_0x529ef1});const _0x3c6566=getCurrentCollector();_0x3c6566&&await _0x3c6566['trackCommandError'](_0x17b5d4||new Error(_0x48f1b2['plgQp'](_0x3fcec9,_0x5a9751(0x265)))),process[_0x5a9751(0x177)](0x1);})['epilogue']('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+_0x238674(0x194))[_0x238674(0x15d)]()['alias']('help','h')['parse']();
|
|
2
|
+
const _0x36f056=_0x2648;(function(_0x540150,_0x5efe65){const _0x19f26c=_0x2648,_0x4c1ff6=_0x540150();while(!![]){try{const _0x562638=parseInt(_0x19f26c(0x8a))/0x1+-parseInt(_0x19f26c(0xe9))/0x2+-parseInt(_0x19f26c(0x169))/0x3*(-parseInt(_0x19f26c(0xdd))/0x4)+-parseInt(_0x19f26c(0xe7))/0x5*(parseInt(_0x19f26c(0x10f))/0x6)+-parseInt(_0x19f26c(0x181))/0x7+parseInt(_0x19f26c(0x1bc))/0x8*(parseInt(_0x19f26c(0xf5))/0x9)+-parseInt(_0x19f26c(0x136))/0xa*(-parseInt(_0x19f26c(0xf6))/0xb);if(_0x562638===_0x5efe65)break;else _0x4c1ff6['push'](_0x4c1ff6['shift']());}catch(_0xd2771){_0x4c1ff6['push'](_0x4c1ff6['shift']());}}}(_0x528e,0x2c09a));import _0x5d710b from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x2e8a1d=_0x2648,_0x132072={'HNwMz':function(_0x4bfa03,_0x431c2a){return _0x4bfa03!==_0x431c2a;},'GHNBY':function(_0x301b7b,_0x568ebb){return _0x301b7b(_0x568ebb);},'bSbdH':function(_0x235da0,_0x139bc5,_0x51bbab){return _0x235da0(_0x139bc5,_0x51bbab);}};let _0x3f9976=process[_0x2e8a1d(0xa4)]();const _0x3558a8=parse(_0x3f9976)[_0x2e8a1d(0x12e)];while(_0x132072[_0x2e8a1d(0x1b7)](_0x3f9976,_0x3558a8)){if(_0x132072[_0x2e8a1d(0xda)](existsSync,_0x132072['bSbdH'](join,_0x3f9976,_0x2e8a1d(0x173)))||existsSync(join(_0x3f9976,_0x2e8a1d(0xcd))))return _0x3f9976;_0x3f9976=dirname(_0x3f9976);}return process['cwd']();}_0x5d710b[_0x36f056(0xf1)]({'path':join(findProjectRoot(),'.env')});import _0x4b8e3f from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{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'](_0x36f056(0x103),async _0x3e2577=>{const _0x4c843a=_0x36f056,_0x46bfdb={'wDxkS':function(_0x2de412){return _0x2de412();}},_0x4650a7=_0x46bfdb[_0x4c843a(0x1e5)](getCurrentCollector);_0x4650a7&&await _0x4650a7[_0x4c843a(0xb8)](_0x3e2577),process[_0x4c843a(0x154)]=0x1;});function _0x2648(_0x54da5f,_0x501cab){_0x54da5f=_0x54da5f-0x84;const _0x528e72=_0x528e();let _0x264876=_0x528e72[_0x54da5f];return _0x264876;}const rawArgs=process['argv']['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP=_0x36f056(0xa6),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\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\x20(e.g.,\x20header.X-Test-Mode)\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\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27';function warnRenamed(_0x1a6a61,_0x3bdaff){const _0x230cf6=_0x36f056;console[_0x230cf6(0x10d)]('\x0a'+_0x1a6a61+'\x20is\x20now\x20'+_0x3bdaff+'\x0a');}function _0x528e(){const _0x5dc966=['132510BnUBgK','help','YXgsf','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','feature\x20show','You\x20must\x20specify\x20a\x20command','bqzlp','tTKtZ','Name\x20of\x20the\x20profile\x20to\x20update','QoeNv','UkuNj','wkXWb','\x0aIssues:','login','uitwB','Include\x20soft-deleted\x20feature\x20reviews','profile-name','ranger\x20feature\x20resume','ranger\x20profile\x20ls','Yedoy','evaluationReason','ZPiam','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','bsmCR','skillup','epilogue','Config\x20key\x20to\x20remove','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','ranger\x20profile\x20update','opencode','VrjPv','MHncT','MBSyb','incomplete','xBsgk','get\x20<profile>\x20<key>','HHpgJ','evaluation','tpkpp','aCwbI','yOQFo','feature\x20delete','ranger\x20config\x20get','skpWh','oXLwe','IKuZW','failed','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','delete','name','HYhOI','ranger\x20feature\x20add-checklist-item','current-branch','Feature\x20review\x20name','HNwMz','KjLDb','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','JIMCH','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','20496cNPRZW','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','AxfFk','Ranger\x20API\x20token','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','Install\x20Ranger\x20skills','You\x20must\x20specify\x20an\x20auth\x20subcommand','YpezU','array','ranger\x20delete','Install\x20scope\x20for\x20skills','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','cEvTe','fkWtk','session-id','wBstt','dHzTx','Feature\x20review\x20description','encrypt-auth\x20<profile>','env','startsWith','cmTPA','\x20FAILED','profile\x20config\x20list','OcKsh','report\x20[id]','You\x20must\x20specify\x20a\x20profile\x20subcommand','edit-scenario\x20<description>','skip-chromium','ranger','gekQL','List\x20all\x20feature\x20reviews','ranger\x20go','start-path','restore','log','enaGw','ranger\x20env\x20update','wDxkS','issues','list\x20<profile>','default','exit','EdoQL','ranger\x20setup','Feature\x20review\x20ID','KWNNe','command','resume\x20[id]','41050KRceII','Initialize\x20Ranger\x20in\x20your\x20project','description','boolean','gRMDJ','forEach','debug-address-comments','skip-auth','edit-scenario','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','ULLGd','Number\x20of\x20feature\x20reviews\x20to\x20skip','env\x20list','ZSCrp','YMpud','ranger\x20add\x20env','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','cgRpJ','restore\x20<id>','\x20PARTIAL','model','profile\x20add','argv','use','offset','ZujQd','cwd','SvmZG','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','ranger\x20profile\x20config\x20list','aVmkq','cHSwm','message','ubRek','ranger\x20add-scenario','update','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','GFkob','AUlLS','xEhNC','config\x20set','TAxnD','hook:disable','Scenario\x20number\x20to\x20edit\x20(1-based)','feature\x20resume','List\x20all\x20config\x20for\x20a\x20profile','trackCommandError','DPJre','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','ranger\x20feature\x20delete','number','version','IsDPC','jwMnQ','iRKvh','ranger\x20profile\x20config\x20set','exclude-scenario','gjrTA','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','checklist','AZtYK','disable','add-scenario','lSUFD','status','ranger\x20auth\x20encrypt','Get\x20a\x20config\x20value','.env','Scenario\x20index\x20(1-based)','Scenario\x20description','limit','tVSCw','dtUOK','Environment\x20name','value','ranger\x20feature\x20create','repeat','option','CtMmf','--item','GHNBY','partial','zZxjq','28mZqwUA','list','zXLsc','IsWFB','\x20BLOCKED','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','token','resume','delete\x20[id]','qooKD','110lkcHbR','Restore\x20a\x20soft-deleted\x20feature\x20review','350742tQwfnQ','zfDdz','profile','QdYOL','map','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','enable','dgAZG','config','OixRI','yWMGi','string','981YxBuxy','26774ovqaHO','YqaEE','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','PjXqv','Summary:\x20','IaQzT','config\x20get','scenario','show\x20[id]','XmDlm','MSuhw','Reedc','PxHLs','unhandledRejection','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','ranger\x20env\x20ls','slice','aMjaK','xsqZi','ALDZO','Feature\x20review\x20ID\x20to\x20restore','aATFp','Switch\x20to\x20using\x20a\x20specific\x20profile','error','notes','30582XAnhmC','env-name','create','pxuDA','YdLjv','Unknown\x20command','CVCxu','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','url','verified','xCAEn','headed','tUZNo','CUzRI','oOwdw','BRhGL','BXOuV','parse','debug-outcome','tIihY','config\x20unset','hzPps','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','item','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','lBWmU','wyOFb','fail','JEcEQ','osKJw','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','root','dzVvP','HgluK','wQPLE','YMXDl','--scenario','usage','positional','160QORzcb','FREPU','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','ranger\x20profile\x20encrypt-auth','base-url','demandCommand','ffgAO','SQNAF','hook','clean','WgHUK','length','cWYLx','CvSxl','task','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','\x20INCOMPLETE','XcKZS','user','get-feedback\x20[id]','pnWtQ','scriptName','SRnnh','Qzezv','\x0aUnknown\x20command:\x20','include-deleted','vvmYc','MgyuD','idGpx','blocked','exitCode','setup-ci','feature\x20create','use\x20<profile-name>','yXJQy','\x20\x20https://docs.ranger.net\x0a','OKnYI','add\x20env\x20<env-name>','ScYEM','RhOmf','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','--task','fmqJM','eXibA','iRhas','add-scenario\x20<description>','profile\x20ls','use\x20<env-name>','List\x20all\x20profiles','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','54669CIBkuI','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','start','ranger\x20config\x20list','TXJGL','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','ranger\x20restore','CPGdA','scope','Manage\x20profiles','.ranger','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','uuioO','UbeTL','nvaRg','KYeOG','start\x20[token]','project','key','XQCuD','vIisS','zJMVg','\x20VERIFIED','force'];_0x528e=function(){return _0x5dc966;};return _0x528e();}function argUsed(_0x5e2dda){const _0x5a5794=_0x36f056;return rawArgs['some'](_0x270358=>_0x270358===_0x5e2dda||_0x270358[_0x5a5794(0x1d3)](_0x5e2dda+'='));}function warnFlagRenamed(_0x5e43a2,_0x240d24,_0x4b8e7f){argUsed(_0x240d24)&&warnRenamed(_0x5e43a2+'\x20'+_0x240d24,_0x5e43a2+'\x20'+_0x4b8e7f);}async function runGoCommand(_0x28ec65,_0x2e22f2=![]){const _0x4a5380=_0x36f056,_0x8b6c38={'iiQSH':function(_0x41639,_0xdd0396,_0x3e67eb){return _0x41639(_0xdd0396,_0x3e67eb);},'dHzTx':'ranger\x20verify-feature','RIpSl':'ranger\x20go','yhmcu':function(_0x29eb45,_0x422ae4,_0x2f5dc4,_0x5ee189){return _0x29eb45(_0x422ae4,_0x2f5dc4,_0x5ee189);},'UkuNj':'--env','zJtWN':'--profile','wnANn':function(_0x3fa78e,_0x21b54a,_0x22da91,_0x138892){return _0x3fa78e(_0x21b54a,_0x22da91,_0x138892);},'GxShL':_0x4a5380(0x160),'LbBxh':function(_0x3cd25f,_0x3bae92,_0x2cdab8,_0x5b9fd3){return _0x3cd25f(_0x3bae92,_0x2cdab8,_0x5b9fd3);},'aATFp':_0x4a5380(0xd9),'xCAEn':'flag','ltnYz':'start-path','TGkjM':function(_0x2f3629,_0xcb8bcc){return _0x2f3629+_0xcb8bcc;},'OwDgZ':function(_0x16006e,_0x43b563){return _0x16006e===_0x43b563;},'IsWFB':'verified','wQPLE':_0x4a5380(0x17f),'zZAEu':_0x4a5380(0xe1),'OmWXM':_0x4a5380(0x1d5),'ViRAk':_0x4a5380(0x18d),'WBQfb':function(_0x2a3de4,_0x5b4525){return _0x2a3de4===_0x5b4525;}};_0x2e22f2&&_0x8b6c38['iiQSH'](warnRenamed,_0x8b6c38[_0x4a5380(0x1cf)],_0x8b6c38['RIpSl']);_0x8b6c38['yhmcu'](warnFlagRenamed,_0x8b6c38['RIpSl'],_0x8b6c38[_0x4a5380(0x18b)],_0x8b6c38['zJtWN']),_0x8b6c38['wnANn'](warnFlagRenamed,_0x4a5380(0x1df),_0x8b6c38['GxShL'],'--notes'),_0x8b6c38['LbBxh'](warnFlagRenamed,'ranger\x20go',_0x8b6c38[_0x4a5380(0x10b)],_0x4a5380(0x133));const _0x178eac=await loadRangerConfig(),_0x54e9bc=_0x28ec65['model'],_0x2b1b81=_0x178eac['model'],_0x1c7e94=_0x54e9bc??_0x2b1b81,_0x19008f=_0x54e9bc?_0x8b6c38[_0x4a5380(0x119)]:_0x2b1b81?_0x4a5380(0xf1):_0x4a5380(0x1e8),_0x4b3000=await verifyFeature({'profile':_0x28ec65[_0x4a5380(0xeb)]??_0x28ec65[_0x4a5380(0x1d2)],'notes':_0x28ec65['notes']??_0x28ec65[_0x4a5380(0x144)],'scenario':_0x28ec65[_0x4a5380(0xfd)]??_0x28ec65[_0x4a5380(0x126)],'startPath':_0x28ec65[_0x8b6c38['ltnYz']],'debugOutcome':_0x28ec65[_0x4a5380(0x121)],'debugAddressComments':_0x28ec65[_0x4a5380(0x90)],'headed':_0x28ec65[_0x4a5380(0x11a)],'verifyModel':_0x1c7e94,'verifyModelInput':_0x1c7e94,'verifyModelSource':_0x19008f});console['log'](_0x8b6c38['TGkjM']('\x0a','='[_0x4a5380(0xd6)](0x3c))),console['log'](_0x8b6c38['OwDgZ'](_0x4b3000[_0x4a5380(0x1a6)],_0x8b6c38[_0x4a5380(0xe0)])?_0x8b6c38[_0x4a5380(0x131)]:_0x4b3000['evaluation']===_0x4a5380(0x1a2)?_0x4a5380(0x146):_0x4b3000[_0x4a5380(0x1a6)]==='partial'?_0x4a5380(0x9d):_0x8b6c38['OwDgZ'](_0x4b3000[_0x4a5380(0x1a6)],_0x4a5380(0x153))?_0x8b6c38['zZAEu']:_0x8b6c38['OmWXM']),console[_0x4a5380(0x1e2)]('='['repeat'](0x3c)),console[_0x4a5380(0x1e2)](_0x4a5380(0xfa)+_0x4b3000['summary']),console['log']('Evaluation:\x20'+_0x4b3000['evaluation']),console['log']('Reason:\x20'+_0x4b3000[_0x4a5380(0x195)]),_0x4b3000['issues']?.[_0x4a5380(0x141)]&&(console[_0x4a5380(0x1e2)](_0x8b6c38['ViRAk']),_0x4b3000[_0x4a5380(0x1e6)][_0x4a5380(0x8f)]((_0x467343,_0xeef06)=>{const _0xed5d91=_0x4a5380;console[_0xed5d91(0x1e2)]('\x0a'+(_0xeef06+0x1)+'.\x20['+_0x467343['severity']+']\x20'+_0x467343['description']);})),process[_0x4a5380(0x1e9)](_0x8b6c38['WBQfb'](_0x4b3000['evaluation'],_0x8b6c38['IsWFB'])?0x0:0x1);}_0x4b8e3f(process[_0x36f056(0xa0)][_0x36f056(0x106)](0x2))[_0x36f056(0x14b)](_0x36f056(0x1dc))['usage'](TOP_LEVEL_HELP)[_0x36f056(0xbd)](getCurrentVersion())[_0x36f056(0x88)]('create\x20<name>',_0x36f056(0x9a),_0x2a7605=>{const _0x442693=_0x36f056,_0x10b6c4={'OKnYI':_0x442693(0xf4),'ssCRg':'Feature\x20review\x20description','yOQFo':_0x442693(0x127)};return _0x2a7605[_0x442693(0x135)]('name',{'type':_0x442693(0xf4),'description':_0x442693(0x1b6),'demandOption':!![]})['option'](_0x442693(0x8c),{'type':_0x10b6c4[_0x442693(0x15a)],'alias':'d','description':_0x10b6c4['ssCRg']})['option']('scenario',{'type':_0x442693(0x1c6),'alias':'c','description':_0x10b6c4[_0x442693(0x1a9)]})['option']('checklist',{'type':'array','hidden':!![]});},async _0x22e44b=>{const _0x2a1a7c=_0x36f056,_0x1d3aed={'VUZpm':function(_0x1f29a3,_0x503b0a,_0x42728f,_0x455f2e){return _0x1f29a3(_0x503b0a,_0x42728f,_0x455f2e);},'cHSwm':'--checklist'};_0x1d3aed['VUZpm'](warnFlagRenamed,'ranger\x20create',_0x1d3aed[_0x2a1a7c(0xa9)],'--scenario');const _0x41f297=_0x22e44b[_0x2a1a7c(0xfd)]||_0x22e44b[_0x2a1a7c(0xc5)];await withTelemetry(_0x2a1a7c(0x111),()=>featureCreate(_0x22e44b[_0x2a1a7c(0x1b2)],{'description':_0x22e44b[_0x2a1a7c(0x8c)],'scenarios':_0x41f297}));})['command']('list',_0x36f056(0x1de),_0x4d8f18=>{const _0x5e3b32=_0x36f056,_0x3e517c={'qooKD':'current-branch','yEGiD':'boolean','gKpyF':_0x5e3b32(0x1be),'VjJvc':'number','mtWCO':_0x5e3b32(0x95)};return _0x4d8f18[_0x5e3b32(0xd7)](_0x3e517c[_0x5e3b32(0xe6)],{'type':_0x3e517c['yEGiD'],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option'](_0x5e3b32(0xd0),{'type':_0x5e3b32(0xbc),'alias':'l','description':_0x3e517c['gKpyF'],'default':0xa})[_0x5e3b32(0xd7)]('offset',{'type':_0x3e517c['VjJvc'],'alias':'o','description':_0x3e517c['mtWCO'],'default':0x0})[_0x5e3b32(0xd7)]('include-deleted',{'type':_0x5e3b32(0x8d),'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x42ae72=>{const _0x1f288d=_0x36f056,_0x387b82={'tYAdp':function(_0x5a3a70,_0x5a7d5c,_0x524b40){return _0x5a3a70(_0x5a7d5c,_0x524b40);}};await _0x387b82['tYAdp'](withTelemetry,_0x1f288d(0xde),()=>featureList({'currentBranch':_0x42ae72[_0x1f288d(0x1b5)],'limit':_0x42ae72['limit'],'offset':_0x42ae72[_0x1f288d(0xa2)],'includeDeleted':_0x42ae72['include-deleted']}));})['command'](_0x36f056(0xfe),'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x2976fd=>{const _0x5d66d6=_0x36f056,_0x212a66={'gDJKq':_0x5d66d6(0x86)};return _0x2976fd[_0x5d66d6(0x135)]('id',{'type':'string','description':_0x212a66['gDJKq']});},async _0x49783f=>{await withTelemetry('show',()=>featureShow(_0x49783f['id']));})['command']('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x4ee302=>{const _0x7ecb6f=_0x36f056;return _0x4ee302[_0x7ecb6f(0x135)]('id',{'type':_0x7ecb6f(0xf4),'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0xee733e=>{const _0x2ecd8c=_0x36f056,_0x23ab31={'ScYEM':function(_0x269f03,_0x3ee5c5,_0x29bb22){return _0x269f03(_0x3ee5c5,_0x29bb22);}};await _0x23ab31[_0x2ecd8c(0x15c)](withTelemetry,_0x2ecd8c(0xe4),()=>featureResume(_0xee733e['id']));})['command'](_0x36f056(0x164),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x83a1c8=>{const _0x158f89=_0x36f056,_0xd5c5a7={'BjLbZ':_0x158f89(0x8c),'slxFn':_0x158f89(0xf4),'rXBpO':_0x158f89(0x12d)};return _0x83a1c8[_0x158f89(0x135)](_0xd5c5a7['BjLbZ'],{'type':_0xd5c5a7['slxFn'],'description':_0x158f89(0xcf),'demandOption':!![]})[_0x158f89(0xd7)]('id',{'type':'string','description':_0xd5c5a7['rXBpO']});},async _0x18050c=>{const _0x4857c6=_0x36f056;await withTelemetry(_0x4857c6(0xc8),()=>featureAddScenario(_0x18050c[_0x4857c6(0x8c)],_0x18050c['id']));})['command'](_0x36f056(0x1da),_0x36f056(0x197),_0x490ef9=>{const _0x2088f5=_0x36f056,_0x11ec8f={'yCvLp':_0x2088f5(0xf4),'yktJs':'New\x20scenario\x20description','jENKS':'scenario','MgyuD':_0x2088f5(0xbc),'fYvfV':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x490ef9[_0x2088f5(0x135)](_0x2088f5(0x8c),{'type':_0x11ec8f['yCvLp'],'description':_0x11ec8f['yktJs'],'demandOption':!![]})['option'](_0x11ec8f['jENKS'],{'type':_0x11ec8f[_0x2088f5(0x151)],'description':_0x2088f5(0xb5),'demandOption':!![]})['option']('id',{'type':_0x11ec8f['yCvLp'],'description':_0x11ec8f['fYvfV']});},async _0x11012f=>{const _0x2369d2=_0x36f056,_0x2ff5f5={'CtMmf':function(_0x20f923,_0x498884,_0x579cd5){return _0x20f923(_0x498884,_0x579cd5);},'tVSCw':_0x2369d2(0x92)};await _0x2ff5f5[_0x2369d2(0xd8)](withTelemetry,_0x2ff5f5[_0x2369d2(0xd1)],()=>featureEditScenario(_0x11012f['description'],{'id':_0x11012f['id'],'scenario':_0x11012f[_0x2369d2(0xfd)]}));})['command'](_0x36f056(0x1d8),_0x36f056(0x168),_0x2d6918=>{const _0xdea13f=_0x36f056,_0x42dfa9={'gjrTA':'string','mBhxj':'exclude-scenario','bhsvK':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x2d6918['positional']('id',{'type':_0x42dfa9[_0xdea13f(0xc3)],'description':'Feature\x20review\x20ID'})[_0xdea13f(0xd7)](_0x42dfa9['mBhxj'],{'type':_0xdea13f(0x1c6),'description':_0x42dfa9['bhsvK']});},async _0x29b2dc=>{const _0x1ffa9b=_0x36f056,_0x3c38de=_0x29b2dc[_0x1ffa9b(0xc2)],_0x43db30=_0x3c38de?_0x3c38de[_0x1ffa9b(0xed)](_0xd99b94=>Number(_0xd99b94)):undefined;await withTelemetry('report',()=>featureReportPrDescription(_0x29b2dc['id'],{'excludeScenarios':_0x43db30}));})[_0x36f056(0x88)]('get-review\x20[id]',_0x36f056(0x15e),_0x70fc1b=>{const _0x3a142a=_0x36f056,_0x4fea1a={'SvmZG':_0x3a142a(0xf4)};return _0x70fc1b[_0x3a142a(0x135)]('id',{'type':_0x4fea1a[_0x3a142a(0xa5)],'description':_0x3a142a(0x12d)});},async _0xdff0e=>{const _0x3ad391=_0x36f056,_0x2f8899={'ULLGd':function(_0x5ac021,_0x36af03,_0x2dbbb1){return _0x5ac021(_0x36af03,_0x2dbbb1);},'fFReK':'get-review'};await _0x2f8899[_0x3ad391(0x94)](withTelemetry,_0x2f8899['fFReK'],()=>featureGetReview(_0xdff0e['id']));})[_0x36f056(0x88)]('delete\x20[id]',_0x36f056(0xc4),_0x22e8c1=>{const _0x2b6d74=_0x36f056;return _0x22e8c1[_0x2b6d74(0x135)]('id',{'type':'string','description':_0x2b6d74(0x86)});},async _0x221e46=>{const _0x2e8135=_0x36f056,_0x51c043={'CvSxl':function(_0x49702f,_0x2af498,_0x4810ff){return _0x49702f(_0x2af498,_0x4810ff);}};await _0x51c043[_0x2e8135(0x143)](withTelemetry,_0x2e8135(0x1b1),()=>featureDelete(_0x221e46['id']));})[_0x36f056(0x88)](_0x36f056(0x9c),_0x36f056(0xe8),_0x29437b=>{const _0x35e99f=_0x36f056;return _0x29437b['positional']('id',{'type':'string','description':_0x35e99f(0x10a),'demandOption':!![]});},async _0x7263b4=>{const _0x2f2dc6=_0x36f056,_0x3a3839={'cMuMd':function(_0x4d679a,_0x137bf9,_0x5b0846){return _0x4d679a(_0x137bf9,_0x5b0846);}};await _0x3a3839['cMuMd'](withTelemetry,_0x2f2dc6(0x1e1),()=>featureRestore(_0x7263b4['id']));})[_0x36f056(0x88)]('setup\x20[token]',_0x36f056(0x8b),_0x175894=>{const _0x49eeb9=_0x36f056,_0x3cd097={'dgAZG':_0x49eeb9(0x104),'CBDJi':_0x49eeb9(0x171),'LnOkt':_0x49eeb9(0xf4),'ZPiam':_0x49eeb9(0x148),'pnWtQ':_0x49eeb9(0x117),'gIRhQ':_0x49eeb9(0x16a),'JEcEQ':_0x49eeb9(0x8d),'fkWtk':_0x49eeb9(0xae)};return _0x175894[_0x49eeb9(0x135)](_0x49eeb9(0xe3),{'type':_0x49eeb9(0xf4),'description':_0x3cd097[_0x49eeb9(0xf0)]})[_0x49eeb9(0xd7)]('skip-chromium',{'type':_0x49eeb9(0x8d),'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})[_0x49eeb9(0xd7)](_0x3cd097['CBDJi'],{'type':_0x3cd097['LnOkt'],'choices':[_0x3cd097[_0x49eeb9(0x196)],_0x49eeb9(0x17a)],'description':_0x49eeb9(0xe2)})[_0x49eeb9(0xd7)](_0x3cd097[_0x49eeb9(0x14a)],{'type':_0x49eeb9(0xf4),'description':_0x3cd097['gIRhQ']})['option'](_0x49eeb9(0x180),{'type':_0x3cd097[_0x49eeb9(0x12b)],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x49eeb9(0x19e),{'type':_0x3cd097['JEcEQ'],'description':_0x3cd097[_0x49eeb9(0x1cc)],'default':![]});},async _0x437a52=>{const _0x1d416e=_0x36f056,_0x4a5067={'CUzRI':_0x1d416e(0x16b)};await withTelemetry(_0x4a5067[_0x1d416e(0x11c)],_0x56cf89=>start(_0x437a52['token'],{'skipChromium':_0x437a52[_0x1d416e(0x1db)],'scope':_0x437a52[_0x1d416e(0x171)],'url':_0x437a52[_0x1d416e(0x117)],'force':_0x437a52[_0x1d416e(0x180)],'opencode':_0x437a52[_0x1d416e(0x19e)]},_0x56cf89));})['command']('setup-ci\x20<token>','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x35fd29=>{const _0xd47054=_0x36f056,_0x52281d={'xsqZi':'token','AhUFY':_0xd47054(0x1c1),'gRMDJ':_0xd47054(0xeb),'zJMVg':'string','CPGdA':_0xd47054(0x13a),'iRhas':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','aCwbI':'skip-chromium','VNwNe':_0xd47054(0x8d),'fGNFl':'Skip\x20Chromium\x20browser\x20installation'};return _0x35fd29['positional'](_0x52281d[_0xd47054(0x108)],{'type':_0xd47054(0xf4),'description':_0x52281d['AhUFY'],'demandOption':!![]})[_0xd47054(0xd7)](_0x52281d[_0xd47054(0x8e)],{'type':_0x52281d[_0xd47054(0x17e)],'description':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)'})['option'](_0x52281d[_0xd47054(0x170)],{'type':_0x52281d[_0xd47054(0x17e)],'description':_0x52281d[_0xd47054(0x163)]})['option'](_0x52281d[_0xd47054(0x1a8)],{'type':_0x52281d['VNwNe'],'description':_0x52281d['fGNFl'],'default':![]});},async _0x40b524=>{const _0x4a91d4=_0x36f056,_0x56d3de={'OhWDh':_0x4a91d4(0x155)};await withTelemetry(_0x56d3de['OhWDh'],_0x6f6568=>setupCi(_0x40b524[_0x4a91d4(0xe3)],{'profile':_0x40b524['profile'],'baseUrl':_0x40b524['base-url'],'skipChromium':_0x40b524[_0x4a91d4(0x1db)]},_0x6f6568));})['command'](_0x36f056(0x18e),_0x36f056(0x1bf),()=>{},async()=>{const _0x342d4f=_0x36f056,_0x3d4c15={'vIisS':_0x342d4f(0x18e)};await withTelemetry(_0x3d4c15[_0x342d4f(0x17d)],()=>login());})['command'](_0x36f056(0x199),_0x36f056(0x1c3),_0x297f49=>{const _0xd3072f=_0x36f056,_0x133da9={'fTXnJ':_0xd3072f(0x19e),'bzNBu':_0xd3072f(0x171),'HYhOI':_0xd3072f(0x148),'MSuhw':'project','tIihY':_0xd3072f(0x1c8)};return _0x297f49['option'](_0x133da9['fTXnJ'],{'type':'boolean','description':'Install\x20skills\x20for\x20OpenCode','default':![]})[_0xd3072f(0xd7)](_0x133da9['bzNBu'],{'type':_0xd3072f(0xf4),'choices':[_0x133da9[_0xd3072f(0x1b3)],_0x133da9[_0xd3072f(0x100)]],'description':_0x133da9[_0xd3072f(0x122)]});},async _0x2c4b44=>{const _0x5cb332=_0x36f056,_0x400248={'bCeLx':function(_0x534a24,_0x8bdd3){return _0x534a24(_0x8bdd3);},'Wfyli':'skillup'},_0x3b155c=_0x400248['bCeLx'](Boolean,_0x2c4b44[_0x5cb332(0x19e)]);await withTelemetry(_0x400248['Wfyli'],()=>skillup({'autoInstall':_0x2c4b44['scope'],'platform':_0x3b155c?_0x5cb332(0x19e):'claude'}));})['command'](_0x36f056(0x13f),_0x36f056(0x93),()=>{},async()=>{const _0x218d05=_0x36f056;await withTelemetry(_0x218d05(0x13f),()=>clean());})['command']('profile',_0x36f056(0x172),_0x427d00=>{const _0x9ead93=_0x36f056,_0x70e1b={'idGpx':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','lSUFD':_0x9ead93(0x8d),'JEWoj':'skip-auth','TpeQq':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','IaQzT':'url','ubRek':_0x9ead93(0x1c9),'tHWLR':'force','KYyQD':_0x9ead93(0x1ca),'wyOFb':'string','CWZwC':function(_0x40e400,_0x2ae2dd){return _0x40e400(_0x2ae2dd);},'jwMnQ':'Name\x20of\x20the\x20profile','NxfVw':function(_0x3a0d60,_0x7f4f6f,_0x147245){return _0x3a0d60(_0x7f4f6f,_0x147245);},'cmTPA':'profile\x20use','HWKVN':'Profile\x20name','CVCxu':'profile\x20encrypt-auth','IuQyV':_0x9ead93(0x191),'rwALL':_0x9ead93(0x189),'gekQL':function(_0x1e70c1,_0x576235,_0x17189b){return _0x1e70c1(_0x576235,_0x17189b);},'uuioO':'value','jhUwx':'Config\x20value','AxfFk':function(_0x524d5b,_0x4286d7,_0x5aa333){return _0x524d5b(_0x4286d7,_0x5aa333);},'AQZVs':_0x9ead93(0x17b),'dzVvP':_0x9ead93(0xeb),'tpkpp':_0x9ead93(0x19b),'SQNAF':'profile\x20config\x20unset','KjLDb':'set\x20<profile>\x20<key>\x20<value>','oOwdw':'Set\x20a\x20config\x20value','OcKsh':_0x9ead93(0xb7),'MpRuz':'unset\x20<profile>\x20<key>','ZgTYV':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','OMlzT':'add\x20<profile-name>','YXgsf':'Add\x20profile\x20configuration','VzZxG':_0x9ead93(0x157),'Znmud':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','bsmCR':_0x9ead93(0x167),'ijggW':'config','ZujQd':'Manage\x20profile\x20configuration'};return _0x427d00[_0x9ead93(0x134)](PROFILE_HELP)[_0x9ead93(0x88)](_0x70e1b['OMlzT'],_0x70e1b[_0x9ead93(0x183)],_0x445658=>{const _0x23eda5=_0x9ead93;return _0x445658['positional'](_0x23eda5(0x191),{'type':_0x23eda5(0xf4),'description':_0x70e1b[_0x23eda5(0x152)],'demandOption':!![]})[_0x23eda5(0xd7)]('ci',{'type':_0x70e1b['lSUFD'],'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0x23eda5(0xd7)](_0x70e1b['JEWoj'],{'type':_0x70e1b[_0x23eda5(0xc9)],'description':_0x70e1b['TpeQq'],'default':![]})[_0x23eda5(0xd7)](_0x70e1b[_0x23eda5(0xfb)],{'type':_0x23eda5(0xf4),'description':_0x70e1b[_0x23eda5(0xab)]})[_0x23eda5(0xd7)](_0x70e1b['tHWLR'],{'type':_0x70e1b['lSUFD'],'description':_0x70e1b['KYyQD'],'default':![]})['option']('cdp-endpoint',{'type':_0x70e1b[_0x23eda5(0x129)],'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'});},async _0x892c76=>{const _0x44f05b=_0x9ead93;await withTelemetry(_0x44f05b(0x9f),_0x155013=>addEnv(_0x892c76[_0x44f05b(0x191)],{'ci':_0x892c76['ci'],'skipAuth':_0x892c76['skip-auth'],'url':_0x892c76[_0x44f05b(0x117)],'force':_0x892c76['force'],'cdpEndpoint':_0x892c76['cdp-endpoint']},_0x155013),{'isElectron':_0x70e1b['CWZwC'](Boolean,_0x892c76['cdp-endpoint'])});})['command'](_0x70e1b['VzZxG'],_0x9ead93(0x10c),_0x403d1d=>{const _0x668eed=_0x9ead93;return _0x403d1d['positional'](_0x668eed(0x191),{'type':_0x70e1b['wyOFb'],'description':_0x70e1b[_0x668eed(0xbf)],'demandOption':!![]});},async _0x7ab971=>{const _0x5244fa=_0x9ead93;await _0x70e1b['NxfVw'](withTelemetry,_0x70e1b[_0x5244fa(0x1d4)],()=>useEnv(_0x7ab971['profile-name']));})['command'](_0x9ead93(0x1d1),_0x70e1b['Znmud'],_0x1c6829=>{const _0x41f6e3=_0x9ead93;return _0x1c6829['positional']('profile',{'type':_0x41f6e3(0xf4),'description':_0x70e1b['HWKVN'],'demandOption':!![]});},async _0xef9e96=>{const _0x336716=_0x9ead93;await withTelemetry(_0x70e1b[_0x336716(0x115)],()=>authEncrypt(_0xef9e96[_0x336716(0xeb)]));})[_0x9ead93(0x88)]('ls',_0x70e1b[_0x9ead93(0x198)],()=>{},async()=>{const _0x562a02=_0x9ead93;await _0x70e1b['NxfVw'](withTelemetry,_0x562a02(0x165),()=>envList());})[_0x9ead93(0x88)]('update\x20<profile-name>','Update\x20authentication\x20for\x20an\x20existing\x20profile',_0x2a0b91=>{const _0xc117d9=_0x9ead93;return _0x2a0b91['positional'](_0x70e1b['IuQyV'],{'type':_0x70e1b[_0xc117d9(0x129)],'description':_0x70e1b['rwALL'],'demandOption':!![]});},async _0x541224=>{const _0x420e3e=_0x9ead93;await _0x70e1b[_0x420e3e(0x1dd)](withTelemetry,'profile\x20update',_0x49701c=>updateEnv(_0x541224['profile-name'],_0x49701c));})[_0x9ead93(0x88)](_0x70e1b['ijggW'],_0x70e1b[_0x9ead93(0xa3)],_0x462b22=>{const _0x3b2312=_0x9ead93,_0x2d0168={'TAxnD':'profile\x20config\x20get','uZUOD':function(_0x4efa56,_0x26fa0e,_0x3595ff){return _0x4efa56(_0x26fa0e,_0x3595ff);}};return _0x462b22['usage'](PROFILE_CONFIG_HELP)['command'](_0x70e1b[_0x3b2312(0x1b8)],_0x70e1b[_0x3b2312(0x11d)],_0x2fabec=>{const _0x2f4dae=_0x3b2312;return _0x2fabec['positional']('profile',{'type':_0x2f4dae(0xf4),'description':'Profile\x20name','demandOption':!![]})[_0x2f4dae(0x135)]('key',{'type':_0x70e1b[_0x2f4dae(0x129)],'description':_0x2f4dae(0x1b0),'demandOption':!![]})[_0x2f4dae(0x135)](_0x70e1b[_0x2f4dae(0x175)],{'type':_0x2f4dae(0xf4),'description':_0x70e1b['jhUwx'],'demandOption':!![]});},async _0x545360=>{await _0x70e1b['AxfFk'](withTelemetry,'profile\x20config\x20set',()=>configSet(_0x545360['profile'],_0x545360['key'],_0x545360['value']));})['command'](_0x3b2312(0x1a4),_0x3b2312(0xcc),_0x1b620d=>{const _0x1fb194=_0x3b2312;return _0x1b620d['positional']('profile',{'type':'string','description':'Profile\x20name','demandOption':!![]})[_0x1fb194(0x135)](_0x70e1b['AQZVs'],{'type':_0x70e1b[_0x1fb194(0x129)],'description':'Config\x20key','demandOption':!![]});},async _0x16fc47=>{const _0x31497f=_0x3b2312;await withTelemetry(_0x2d0168[_0x31497f(0xb3)],()=>configGet(_0x16fc47['profile'],_0x16fc47[_0x31497f(0x17b)]));})[_0x3b2312(0x88)](_0x3b2312(0x1e7),_0x70e1b[_0x3b2312(0x1d7)],_0x369dd0=>{const _0xa8917=_0x3b2312;return _0x369dd0['positional'](_0x70e1b[_0xa8917(0x12f)],{'type':_0x70e1b[_0xa8917(0x129)],'description':_0x70e1b['HWKVN'],'demandOption':!![]});},async _0x1708d2=>{const _0x15e48b=_0x3b2312;await _0x2d0168['uZUOD'](withTelemetry,_0x15e48b(0x1d6),()=>configList(_0x1708d2['profile']));})['command'](_0x70e1b['MpRuz'],'Remove\x20a\x20config\x20value',_0xde40da=>{const _0x20ca97=_0x3b2312;return _0xde40da['positional']('profile',{'type':_0x70e1b['wyOFb'],'description':'Profile\x20name','demandOption':!![]})[_0x20ca97(0x135)]('key',{'type':_0x70e1b['wyOFb'],'description':_0x70e1b[_0x20ca97(0x1a7)],'demandOption':!![]});},async _0x45522f=>{const _0x511066=_0x3b2312;await _0x70e1b[_0x511066(0x1c0)](withTelemetry,_0x70e1b[_0x511066(0x13d)],()=>configUnset(_0x45522f['profile'],_0x45522f['key']));})[_0x3b2312(0x13b)](0x1,_0x70e1b['ZgTYV']);})['demandCommand'](0x1,_0x9ead93(0x1d9));})[_0x36f056(0x88)](_0x36f056(0xca),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{await withTelemetry('status',()=>status());})[_0x36f056(0x88)](_0x36f056(0xad),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x441f0d=_0x36f056,_0x304a1e={'PImyB':function(_0x4142b3,_0x5e6502,_0x579b3f){return _0x4142b3(_0x5e6502,_0x579b3f);},'vvmYc':_0x441f0d(0xad)};await _0x304a1e['PImyB'](withTelemetry,_0x304a1e[_0x441f0d(0x150)],()=>update());})[_0x36f056(0x88)]('go',_0x36f056(0x116),_0x397621=>{const _0x39854a=_0x36f056,_0x5be7b0={'CqwtA':_0x39854a(0xeb),'oXLwe':_0x39854a(0xf8),'XQCuD':'string','osKJw':_0x39854a(0xfd),'PNTwL':_0x39854a(0xbc),'TXJGL':_0x39854a(0x9e),'HHpgJ':_0x39854a(0xee),'MBSyb':'headed','OglZJ':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','FbGGE':'debug-outcome','xEhNC':_0x39854a(0x118),'ngFrV':'failed','ZlxTf':'debug-address-comments','psBph':_0x39854a(0x1d2),'kHgKG':'task','IsDPC':'item'};return _0x397621['option'](_0x5be7b0['CqwtA'],{'type':'string','description':_0x5be7b0[_0x39854a(0x1ad)]})['option'](_0x39854a(0x10e),{'type':_0x5be7b0['XQCuD'],'description':_0x39854a(0x1bb)})['option'](_0x5be7b0[_0x39854a(0x12c)],{'type':_0x5be7b0['PNTwL'],'description':_0x39854a(0xce)})[_0x39854a(0xd7)](_0x39854a(0x1e0),{'type':_0x5be7b0['XQCuD'],'description':_0x39854a(0x138)})['option'](_0x5be7b0[_0x39854a(0x16d)],{'type':_0x39854a(0xf4),'description':_0x5be7b0[_0x39854a(0x1a5)]})[_0x39854a(0xd7)](_0x5be7b0[_0x39854a(0x1a1)],{'type':'boolean','description':_0x5be7b0['OglZJ'],'default':![]})['option'](_0x5be7b0['FbGGE'],{'type':_0x39854a(0xf4),'hidden':!![],'choices':[_0x5be7b0[_0x39854a(0xb1)],_0x39854a(0xdb),'blocked',_0x5be7b0['ngFrV'],'incomplete']})[_0x39854a(0xd7)](_0x5be7b0['ZlxTf'],{'type':'boolean','hidden':!![]})[_0x39854a(0xd7)](_0x5be7b0['psBph'],{'type':_0x5be7b0['XQCuD'],'hidden':!![]})['option'](_0x5be7b0['kHgKG'],{'type':_0x5be7b0[_0x39854a(0x17c)],'hidden':!![]})['option'](_0x5be7b0[_0x39854a(0xbe)],{'type':'number','hidden':!![]});},async _0x1d0cbf=>{const _0x549e33=_0x36f056,_0x5e087d={'ffgAO':function(_0x43dd77,_0x36cbf7){return _0x43dd77(_0x36cbf7);}};await _0x5e087d[_0x549e33(0x13c)](runGoCommand,_0x1d0cbf);})[_0x36f056(0x88)]('auth',![],_0x81aedd=>{const _0x37652c=_0x36f056,_0x4fcefa={'wkXWb':'string','BRhGL':'Profile\x20name','KTskQ':function(_0x58e524,_0x44f568,_0x5d2864){return _0x58e524(_0x44f568,_0x5d2864);},'AmESS':_0x37652c(0x139),'nHNrE':function(_0x33c2bb,_0x125546){return _0x33c2bb(_0x125546);},'enaGw':'encrypt\x20<profile>'};return _0x81aedd['command'](_0x4fcefa[_0x37652c(0x1e3)],![],_0x115646=>{const _0x471088=_0x37652c;return _0x115646[_0x471088(0x135)]('profile',{'type':_0x4fcefa[_0x471088(0x18c)],'description':_0x4fcefa[_0x471088(0x11e)],'demandOption':!![]});},async _0x2bf7f2=>{const _0x5c1352=_0x37652c;_0x4fcefa['KTskQ'](warnRenamed,_0x5c1352(0xcb),_0x4fcefa['AmESS']),await _0x4fcefa['nHNrE'](authEncrypt,_0x2bf7f2['profile']);})['demandCommand'](0x1,_0x37652c(0x1c4));},()=>{})['command'](_0x36f056(0x179),![],_0x5694b0=>{const _0x345d9a=_0x36f056,_0x5c73d8={'IKuZW':_0x345d9a(0x1db),'UbeTL':_0x345d9a(0x8d),'hOmch':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','JINZv':_0x345d9a(0x17a),'CKuRm':'url','DwRfV':'string','PUDGh':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','KYeOG':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url'};return _0x5694b0[_0x345d9a(0x135)]('token',{'type':_0x345d9a(0xf4),'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0x345d9a(0xd7)](_0x5c73d8[_0x345d9a(0x1ae)],{'type':_0x5c73d8['UbeTL'],'description':_0x5c73d8['hOmch'],'default':![]})[_0x345d9a(0xd7)](_0x345d9a(0x171),{'type':_0x345d9a(0xf4),'choices':[_0x345d9a(0x148),_0x5c73d8['JINZv']],'description':_0x345d9a(0xe2)})['option'](_0x5c73d8['CKuRm'],{'type':_0x5c73d8['DwRfV'],'description':_0x5c73d8['PUDGh']})['option']('force',{'type':_0x5c73d8[_0x345d9a(0x176)],'description':_0x5c73d8[_0x345d9a(0x178)],'default':![]});},async _0x5b6a81=>{const _0x39de83=_0x36f056,_0x37e87f={'lBWmU':'ranger\x20start','zvwTO':_0x39de83(0x85),'wBstt':function(_0x36a35d,_0x50f2b0,_0x25edbe){return _0x36a35d(_0x50f2b0,_0x25edbe);}};warnRenamed(_0x37e87f[_0x39de83(0x128)],_0x37e87f['zvwTO']),await _0x37e87f[_0x39de83(0x1ce)](withTelemetry,'start',_0x2e5df1=>start(_0x5b6a81['token'],{'skipChromium':_0x5b6a81['skip-chromium'],'scope':_0x5b6a81[_0x39de83(0x171)],'url':_0x5b6a81['url'],'force':_0x5b6a81['force']},_0x2e5df1));})[_0x36f056(0x88)]('verify-feature',![],_0x52366c=>{const _0x52b432=_0x36f056,_0x47ab59={'HgluK':'env','BXOuV':'string','zfDdz':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','KHneU':_0x52b432(0x184),'QoeNv':_0x52b432(0x126),'KFIMo':_0x52b432(0xeb),'vqDpO':'notes','DPJre':_0x52b432(0xbc),'zXLsc':'model','PxHLs':_0x52b432(0x121),'iRKvh':'blocked','YMXDl':_0x52b432(0x1af),'PbYau':'incomplete'};return _0x52366c['option'](_0x47ab59[_0x52b432(0x130)],{'type':_0x47ab59[_0x52b432(0x11f)],'description':_0x47ab59[_0x52b432(0xea)]})['option'](_0x52b432(0x144),{'type':'string','description':_0x47ab59['KHneU']})[_0x52b432(0xd7)](_0x47ab59[_0x52b432(0x18a)],{'type':'number','description':_0x52b432(0xce)})[_0x52b432(0xd7)](_0x47ab59['KFIMo'],{'type':_0x47ab59[_0x52b432(0x11f)],'hidden':!![]})['option'](_0x47ab59['vqDpO'],{'type':_0x52b432(0xf4),'hidden':!![]})[_0x52b432(0xd7)](_0x52b432(0xfd),{'type':_0x47ab59[_0x52b432(0xb9)],'hidden':!![]})[_0x52b432(0xd7)]('start-path',{'type':_0x47ab59['BXOuV'],'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})['option'](_0x47ab59[_0x52b432(0xdf)],{'type':_0x47ab59[_0x52b432(0x11f)],'hidden':!![]})[_0x52b432(0xd7)]('headed',{'type':'boolean','hidden':!![],'default':![]})['option'](_0x47ab59[_0x52b432(0x102)],{'type':_0x47ab59[_0x52b432(0x11f)],'hidden':!![],'choices':[_0x52b432(0x118),_0x52b432(0xdb),_0x47ab59[_0x52b432(0xc0)],_0x47ab59[_0x52b432(0x132)],_0x47ab59['PbYau']]});},async _0x3709d6=>{const _0x21831e=_0x36f056,_0xa15bcc={'skpWh':function(_0x1281d4,_0x56bcf8,_0x39d5c3){return _0x1281d4(_0x56bcf8,_0x39d5c3);}};await _0xa15bcc[_0x21831e(0x1ac)](runGoCommand,_0x3709d6,!![]);})['command'](_0x36f056(0x15b),![],_0x5ab861=>{const _0x44671a=_0x36f056,_0x49a11d={'XmDlm':'env-name','LsSrt':'string','oqspA':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','ZSCrp':'boolean','hzPps':_0x44671a(0x16e)};return _0x5ab861[_0x44671a(0x135)](_0x49a11d[_0x44671a(0xff)],{'type':_0x49a11d['LsSrt'],'description':_0x49a11d['oqspA'],'demandOption':!![]})['option']('ci',{'type':_0x49a11d[_0x44671a(0x97)],'description':_0x49a11d[_0x44671a(0x124)],'default':![]})[_0x44671a(0xd7)](_0x44671a(0x91),{'type':_0x44671a(0x8d),'description':_0x44671a(0x1b9),'default':![]});},async _0x261db8=>{const _0x2f8fa9=_0x36f056,_0x22ba92={'tSKVm':_0x2f8fa9(0x99),'cWYLx':'ranger\x20profile\x20add'};warnRenamed(_0x22ba92['tSKVm'],_0x22ba92[_0x2f8fa9(0x142)]),await withTelemetry('add\x20env',_0x29b7dc=>addEnv(_0x261db8['env-name'],{'ci':_0x261db8['ci'],'skipAuth':_0x261db8[_0x2f8fa9(0x91)]},_0x29b7dc));})['command'](_0x36f056(0x166),![],_0x578fcc=>{const _0x1181e6=_0x36f056,_0x14ec45={'ZFDQC':'string'};return _0x578fcc[_0x1181e6(0x135)](_0x1181e6(0x110),{'type':_0x14ec45['ZFDQC'],'description':'Name\x20of\x20the\x20environment','demandOption':!![]});},async _0x214c9a=>{const _0x39560f=_0x36f056,_0x460bb9={'UoPAS':'ranger\x20profile\x20use'};warnRenamed('ranger\x20use',_0x460bb9['UoPAS']),await withTelemetry(_0x39560f(0xa1),()=>useEnv(_0x214c9a['env-name']));})[_0x36f056(0x88)]('config',![],_0x21838f=>{const _0x27df53=_0x36f056,_0x41dd2f={'Reedc':'env','OixRI':_0x27df53(0xd3),'tTKtZ':function(_0x249e84,_0x23933e,_0x1ff2ae){return _0x249e84(_0x23933e,_0x1ff2ae);},'cCAgC':_0x27df53(0xb2),'YpezU':'Config\x20key','KwTyz':_0x27df53(0x1ab),'lssTt':'ranger\x20profile\x20config\x20get','WrEOY':_0x27df53(0xa7),'XcKZS':_0x27df53(0xf4),'PjXqv':'key','aMjaK':_0x27df53(0x19b),'iNPeV':'ranger\x20config\x20unset','ZirMG':_0x27df53(0x123),'lBwMU':'set\x20<env>\x20<key>\x20<value>','nvaRg':'unset\x20<env>\x20<key>'};return _0x21838f['command'](_0x41dd2f['lBwMU'],![],_0x4b2a0d=>{const _0x1bdfd2=_0x27df53;return _0x4b2a0d['positional'](_0x41dd2f['Reedc'],{'type':_0x1bdfd2(0xf4),'description':_0x41dd2f[_0x1bdfd2(0xf2)],'demandOption':!![]})['positional']('key',{'type':'string','description':_0x1bdfd2(0x1b0),'demandOption':!![]})['positional']('value',{'type':_0x1bdfd2(0xf4),'description':'Config\x20value','demandOption':!![]});},async _0x5b3a78=>{const _0x553d52=_0x27df53;_0x41dd2f[_0x553d52(0x188)](warnRenamed,'ranger\x20config\x20set',_0x553d52(0xc1)),await withTelemetry(_0x41dd2f['cCAgC'],()=>configSet(_0x5b3a78[_0x553d52(0x1d2)],_0x5b3a78['key'],_0x5b3a78[_0x553d52(0xd4)]));})['command']('get\x20<env>\x20<key>',![],_0x505b9e=>{const _0x2bdb75=_0x27df53;return _0x505b9e['positional'](_0x41dd2f['Reedc'],{'type':_0x2bdb75(0xf4),'description':_0x2bdb75(0xd3),'demandOption':!![]})['positional'](_0x2bdb75(0x17b),{'type':'string','description':_0x41dd2f[_0x2bdb75(0x1c5)],'demandOption':!![]});},async _0x47b36a=>{const _0x5982f1=_0x27df53;_0x41dd2f['tTKtZ'](warnRenamed,_0x41dd2f['KwTyz'],_0x41dd2f['lssTt']),await _0x41dd2f['tTKtZ'](withTelemetry,_0x5982f1(0xfc),()=>configGet(_0x47b36a[_0x5982f1(0x1d2)],_0x47b36a['key']));})['command']('list\x20<env>',![],_0x28a044=>{const _0x3d11a4=_0x27df53;return _0x28a044[_0x3d11a4(0x135)](_0x41dd2f[_0x3d11a4(0x101)],{'type':'string','description':'Environment\x20name','demandOption':!![]});},async _0x6805d7=>{const _0x5c981b=_0x27df53;warnRenamed(_0x5c981b(0x16c),_0x41dd2f['WrEOY']),await withTelemetry('config\x20list',()=>configList(_0x6805d7['env']));})['command'](_0x41dd2f[_0x27df53(0x177)],![],_0x1208af=>{const _0x2bd2be=_0x27df53;return _0x1208af['positional'](_0x41dd2f['Reedc'],{'type':_0x41dd2f['XcKZS'],'description':'Environment\x20name','demandOption':!![]})[_0x2bd2be(0x135)](_0x41dd2f[_0x2bd2be(0xf9)],{'type':_0x41dd2f[_0x2bd2be(0x147)],'description':_0x41dd2f[_0x2bd2be(0x107)],'demandOption':!![]});},async _0x5c538d=>{const _0x512eff=_0x27df53;warnRenamed(_0x41dd2f['iNPeV'],'ranger\x20profile\x20config\x20unset'),await withTelemetry(_0x41dd2f['ZirMG'],()=>configUnset(_0x5c538d['env'],_0x5c538d[_0x512eff(0x17b)]));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20config\x20subcommand');})[_0x36f056(0x88)](_0x36f056(0x1d2),![],_0x1701ab=>{const _0x486285=_0x36f056,_0x295b45={'SRnnh':_0x486285(0x193),'yWMGi':'Name\x20of\x20the\x20environment\x20to\x20update','ALDZO':function(_0x8cb887,_0x5bb8f1,_0x5b1070){return _0x8cb887(_0x5bb8f1,_0x5b1070);},'uitwB':_0x486285(0x1e4),'kZblZ':_0x486285(0x19d),'LOlPw':'env\x20update','FTUmq':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x1701ab['command']('ls',![],()=>{},async()=>{const _0x485563=_0x486285;warnRenamed(_0x485563(0x105),_0x295b45[_0x485563(0x14c)]),await withTelemetry(_0x485563(0x96),()=>envList());})['command']('update\x20<env-name>',![],_0x83af10=>{const _0x2df856=_0x486285;return _0x83af10['positional'](_0x2df856(0x110),{'type':'string','description':_0x295b45[_0x2df856(0xf3)],'demandOption':!![]});},async _0x142e91=>{const _0xd67d80=_0x486285;_0x295b45[_0xd67d80(0x109)](warnRenamed,_0x295b45[_0xd67d80(0x18f)],_0x295b45['kZblZ']),await withTelemetry(_0x295b45['LOlPw'],_0x5e4266=>updateEnv(_0x142e91[_0xd67d80(0x110)],_0x5e4266));})[_0x486285(0x13b)](0x1,_0x295b45['FTUmq']);})['command']('feature',![],_0x1d0249=>{const _0x22dd15=_0x36f056,_0x4e5877={'fmqJM':_0x22dd15(0x1b2),'YqaEE':_0x22dd15(0xf4),'QdYOL':'Feature\x20review\x20name','cJAeo':'description','MHncT':_0x22dd15(0x1c6),'AzUfZ':_0x22dd15(0xfd),'xkDLK':'ranger\x20create','AUlLS':function(_0x5145f6,_0x47f829,_0x5028b4){return _0x5145f6(_0x47f829,_0x5028b4);},'yXJQy':_0x22dd15(0x156),'eXibA':_0x22dd15(0xbc),'yVeEs':_0x22dd15(0x1be),'xBsgk':'boolean','KJDlG':_0x22dd15(0x190),'KgYXs':'ranger\x20feature\x20list','cEvTe':'ranger\x20list','FcfLR':'feature\x20list','RhOmf':function(_0xbfa20,_0x7051ea,_0x4de6c7){return _0xbfa20(_0x7051ea,_0x4de6c7);},'pxuDA':'ranger\x20show','tUZNo':_0x22dd15(0x192),'oFQpC':'ranger\x20resume','idFoE':_0x22dd15(0xcf),'BHhUO':_0x22dd15(0x12d),'UinIk':_0x22dd15(0xac),'ZHXcV':'feature\x20add-checklist-item','owzFQ':function(_0x33352c,_0xc55384,_0x153cfc){return _0x33352c(_0xc55384,_0x153cfc);},'VrjPv':'ranger\x20feature\x20get-feedback','OOYQy':function(_0x3f1a76,_0x4cc3f9,_0x38c7b6){return _0x3f1a76(_0x4cc3f9,_0x38c7b6);},'cgRpJ':'feature\x20get-feedback','wjeaf':'Feature\x20review\x20ID','oSbNI':_0x22dd15(0x1aa),'Qzezv':_0x22dd15(0x10a),'OaiMi':function(_0x2d5995,_0x3e2aad,_0x556948){return _0x2d5995(_0x3e2aad,_0x556948);},'AZtYK':'ranger\x20feature\x20restore','sRdPR':'feature\x20restore','zZxjq':'create\x20<name>','aVmkq':'list','WgHUK':'show\x20[id]','JIMCH':_0x22dd15(0x149),'Mbcav':'restore\x20<id>'};return _0x1d0249[_0x22dd15(0x88)](_0x4e5877[_0x22dd15(0xdc)],![],_0x3c4ac3=>{const _0x4f188a=_0x22dd15;return _0x3c4ac3['positional'](_0x4e5877[_0x4f188a(0x161)],{'type':_0x4e5877[_0x4f188a(0xf7)],'description':_0x4e5877[_0x4f188a(0xec)],'demandOption':!![]})['option'](_0x4e5877['cJAeo'],{'type':_0x4e5877[_0x4f188a(0xf7)],'alias':'d','description':_0x4f188a(0x1d0)})[_0x4f188a(0xd7)](_0x4f188a(0xc5),{'type':_0x4e5877['MHncT'],'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x4e5877['AzUfZ'],{'type':_0x4e5877[_0x4f188a(0x1a0)],'hidden':!![]});},async _0x128d57=>{const _0x1d3f34=_0x22dd15;warnRenamed(_0x1d3f34(0xd5),'ranger\x20create'),warnFlagRenamed(_0x4e5877['xkDLK'],'--checklist',_0x1d3f34(0x133));const _0x4c6d8e=_0x128d57[_0x1d3f34(0xfd)]||_0x128d57[_0x1d3f34(0xc5)];await _0x4e5877[_0x1d3f34(0xb0)](withTelemetry,_0x4e5877[_0x1d3f34(0x158)],()=>featureCreate(_0x128d57[_0x1d3f34(0x1b2)],{'description':_0x128d57[_0x1d3f34(0x8c)],'scenarios':_0x4c6d8e}));})[_0x22dd15(0x88)](_0x4e5877[_0x22dd15(0xa8)],![],_0x25dab8=>{const _0x20c449=_0x22dd15;return _0x25dab8['option']('current-branch',{'type':_0x20c449(0x8d),'description':_0x20c449(0x19c)})[_0x20c449(0xd7)]('limit',{'type':_0x4e5877[_0x20c449(0x162)],'alias':'l','description':_0x4e5877['yVeEs'],'default':0xa})['option']('offset',{'type':'number','alias':'o','description':_0x20c449(0x95),'default':0x0})[_0x20c449(0xd7)]('include-deleted',{'type':_0x4e5877[_0x20c449(0x1a3)],'alias':'d','description':_0x4e5877['KJDlG'],'default':![]});},async _0x59c8cd=>{const _0x2b386c=_0x22dd15;warnRenamed(_0x4e5877['KgYXs'],_0x4e5877[_0x2b386c(0x1cb)]),await _0x4e5877[_0x2b386c(0xb0)](withTelemetry,_0x4e5877['FcfLR'],()=>featureList({'currentBranch':_0x59c8cd[_0x2b386c(0x1b5)],'limit':_0x59c8cd[_0x2b386c(0xd0)],'offset':_0x59c8cd[_0x2b386c(0xa2)],'includeDeleted':_0x59c8cd[_0x2b386c(0x14f)]}));})['command'](_0x4e5877[_0x22dd15(0x140)],![],_0x24b06f=>{const _0x101899=_0x22dd15;return _0x24b06f[_0x101899(0x135)]('id',{'type':_0x101899(0xf4),'description':_0x101899(0x86)});},async _0x23af7f=>{const _0x29e749=_0x22dd15;_0x4e5877[_0x29e749(0x15d)](warnRenamed,'ranger\x20feature\x20show',_0x4e5877[_0x29e749(0x112)]),await withTelemetry(_0x29e749(0x185),()=>featureShow(_0x23af7f['id']));})['command'](_0x22dd15(0x89),![],_0x3b44c5=>{const _0x2481ee=_0x22dd15;return _0x3b44c5[_0x2481ee(0x135)]('id',{'type':_0x4e5877[_0x2481ee(0xf7)],'description':_0x2481ee(0x145)});},async _0x4c9022=>{const _0x59c08f=_0x22dd15;warnRenamed(_0x4e5877[_0x59c08f(0x11b)],_0x4e5877['oFQpC']),await _0x4e5877[_0x59c08f(0xb0)](withTelemetry,_0x59c08f(0xb6),()=>featureResume(_0x4c9022['id']));})[_0x22dd15(0x88)]('add-checklist-item\x20<description>',![],_0xe34b8c=>{const _0x2a973b=_0x22dd15;return _0xe34b8c[_0x2a973b(0x135)]('description',{'type':_0x4e5877[_0x2a973b(0xf7)],'description':_0x4e5877['idFoE'],'demandOption':!![]})[_0x2a973b(0xd7)]('id',{'type':'string','description':_0x4e5877['BHhUO']});},async _0x3da4d3=>{const _0x440688=_0x22dd15;warnRenamed(_0x440688(0x1b4),_0x4e5877['UinIk']),await _0x4e5877[_0x440688(0x15d)](withTelemetry,_0x4e5877['ZHXcV'],()=>featureAddScenario(_0x3da4d3[_0x440688(0x8c)],_0x3da4d3['id']));})['command'](_0x4e5877[_0x22dd15(0x1ba)],![],_0x3e27f7=>{const _0x1ca106=_0x22dd15;return _0x3e27f7[_0x1ca106(0x135)]('id',{'type':_0x1ca106(0xf4),'description':_0x1ca106(0x12d)});},async _0xdaa271=>{const _0x1636bc=_0x22dd15;_0x4e5877['owzFQ'](warnRenamed,_0x4e5877[_0x1636bc(0x19f)],'ranger\x20get-review'),await _0x4e5877['OOYQy'](withTelemetry,_0x4e5877[_0x1636bc(0x9b)],()=>featureGetReview(_0xdaa271['id']));})[_0x22dd15(0x88)](_0x22dd15(0xe5),![],_0xb34730=>{const _0x9197b6=_0x22dd15;return _0xb34730['positional']('id',{'type':_0x9197b6(0xf4),'description':_0x4e5877['wjeaf']});},async _0x41830c=>{const _0xd2e8e3=_0x22dd15;warnRenamed(_0xd2e8e3(0xbb),_0xd2e8e3(0x1c7)),await withTelemetry(_0x4e5877['oSbNI'],()=>featureDelete(_0x41830c['id']));})['command'](_0x4e5877['Mbcav'],![],_0x162973=>{const _0x58cb61=_0x22dd15;return _0x162973[_0x58cb61(0x135)]('id',{'type':_0x58cb61(0xf4),'description':_0x4e5877[_0x58cb61(0x14d)],'demandOption':!![]});},async _0x55622b=>{const _0x4e5f06=_0x22dd15;_0x4e5877['OaiMi'](warnRenamed,_0x4e5877[_0x4e5f06(0xc6)],_0x4e5f06(0x16f)),await withTelemetry(_0x4e5877['sRdPR'],()=>featureRestore(_0x55622b['id']));})[_0x22dd15(0x13b)](0x1,_0x22dd15(0xba));})[_0x36f056(0x88)](_0x36f056(0x13e),![],_0x2ab630=>{const _0x509916=_0x36f056,_0x23a5b2={'EdoQL':_0x509916(0x1cd),'XjcxM':_0x509916(0x125),'pbNmf':function(_0xf4b786,_0x3ce3ba,_0xf30497){return _0xf4b786(_0x3ce3ba,_0xf30497);},'Yedoy':'string','FREPU':_0x509916(0xb4),'dtUOK':_0x509916(0x15f),'SCiqO':'disable','EpEwS':_0x509916(0x1bd),'KWNNe':_0x509916(0x1b2),'xGhdm':_0x509916(0x1c2)};return _0x2ab630[_0x509916(0x88)](_0x509916(0xef),_0x23a5b2[_0x509916(0xd2)],_0x400716=>{const _0x37bb56=_0x509916;return _0x400716['option'](_0x23a5b2[_0x37bb56(0x84)],{'type':'string','description':_0x23a5b2['XjcxM']});},async _0xdd1dca=>{const _0x2a210f=_0x509916;await _0x23a5b2['pbNmf'](withTelemetry,'hook:enable',()=>hook('enable',_0xdd1dca[_0x2a210f(0x1cd)]));})[_0x509916(0x88)](_0x23a5b2['SCiqO'],_0x23a5b2['EpEwS'],_0x435b9d=>{const _0x8c782f=_0x509916;return _0x435b9d['option'](_0x23a5b2['EdoQL'],{'type':_0x23a5b2[_0x8c782f(0x194)],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x39a4ea=>{const _0x3c5453=_0x509916;await withTelemetry(_0x23a5b2[_0x3c5453(0x137)],()=>hook(_0x3c5453(0xc7),_0x39a4ea[_0x3c5453(0x1cd)]));})['option'](_0x23a5b2[_0x509916(0x87)],{'type':_0x23a5b2[_0x509916(0x194)],'description':_0x23a5b2['xGhdm']})[_0x509916(0xd7)]('session-id',{'type':_0x23a5b2[_0x509916(0x194)],'description':_0x23a5b2['XjcxM']});},async _0x13c820=>{const _0x668215=_0x36f056,_0x45bef3={'YMpud':'session-id'};_0x13c820[_0x668215(0x1b2)]&&await hook(_0x13c820[_0x668215(0x1b2)],_0x13c820[_0x45bef3[_0x668215(0x98)]]);})[_0x36f056(0x13b)](0x1,_0x36f056(0x186))['strictCommands']()[_0x36f056(0x12a)](async(_0x35d0d2,_0x32e8ae,_0x44daf3)=>{const _0x43d3fc=_0x36f056,_0x47854e={'YdLjv':function(_0x22b952,_0x46e8f8){return _0x22b952(_0x46e8f8);},'GFkob':function(_0x15e65d,_0x473541,_0x477c5c){return _0x15e65d(_0x473541,_0x477c5c);},'bqzlp':function(_0x3f269b,_0x3d3b1a){return _0x3f269b(_0x3d3b1a);},'vQVMy':function(_0x18dd2a){return _0x18dd2a();},'SDxfv':function(_0x8f3756,_0x3b1fbd){return _0x8f3756||_0x3b1fbd;}},_0x38ef05=_0x47854e[_0x43d3fc(0x113)](sanitizeArgs,process['argv']['slice'](0x2)),_0x40e8c5=_0x47854e[_0x43d3fc(0xaf)](getErrorType,_0x35d0d2,_0x32e8ae);if(_0x35d0d2&&_0x35d0d2['includes'](_0x43d3fc(0x114))){const _0x33c72d=process['argv'][0x2];console['error'](_0x43d3fc(0x14e)+_0x33c72d),console['error']('Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a');}else{if(_0x35d0d2)console[_0x43d3fc(0x10d)]('\x0a'+_0x35d0d2+'\x0a');else _0x32e8ae&&console[_0x43d3fc(0x10d)]('\x0aError:\x20'+_0x32e8ae[_0x43d3fc(0xaa)]+'\x0a');}await _0x47854e[_0x43d3fc(0x187)](logDesirePath,{'rawCommand':_0x38ef05,'errorMessage':_0x35d0d2||_0x32e8ae?.['message'],'errorType':_0x40e8c5});const _0x424607=_0x47854e['vQVMy'](getCurrentCollector);_0x424607&&await _0x424607['trackCommandError'](_0x32e8ae||new Error(_0x47854e['SDxfv'](_0x35d0d2,'Unknown\x20error'))),process[_0x43d3fc(0x1e9)](0x1);})[_0x36f056(0x19a)]('Documentation:\x0a'+_0x36f056(0x159)+_0x36f056(0x174))['help']()['alias'](_0x36f056(0x182),'h')[_0x36f056(0x120)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1cb8d7,_0x401a93){const _0x5dee93=_0x5b03,_0x5d8638=_0x1cb8d7();while(!![]){try{const _0x6e074f=-parseInt(_0x5dee93(0x113))/0x1*(-parseInt(_0x5dee93(0xeb))/0x2)+parseInt(_0x5dee93(0xc6))/0x3+-parseInt(_0x5dee93(0xe4))/0x4+parseInt(_0x5dee93(0xd7))/0x5*(parseInt(_0x5dee93(0x10d))/0x6)+parseInt(_0x5dee93(0xe6))/0x7*(parseInt(_0x5dee93(0xc4))/0x8)+parseInt(_0x5dee93(0xe3))/0x9*(parseInt(_0x5dee93(0xb7))/0xa)+parseInt(_0x5dee93(0xce))/0xb*(-parseInt(_0x5dee93(0xc2))/0xc);if(_0x6e074f===_0x401a93)break;else _0x5d8638['push'](_0x5d8638['shift']());}catch(_0x38010d){_0x5d8638['push'](_0x5d8638['shift']());}}}(_0x34ad,0x70dac));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x2e8c39 from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';function _0x5b03(_0x15194c,_0x29371d){_0x15194c=_0x15194c-0xb5;const _0x34adfb=_0x34ad();let _0x5b0349=_0x34adfb[_0x15194c];return _0x5b0349;}function _0x34ad(){const _0xde10b6=['settings.json','launch','trackPhaseStart','ZhFdd','48RsCNjo','BltUS','1878664JGpVac','local','166839qsSTiE','fHPia','baseUrl','isProtocolError','HkTUD','close','continue','✓\x20Auth\x20state\x20saved\x20to:\x20','1336852ZjwBtN','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','HpGil','Invalid\x20URL','YTjHJ','Enter\x20a\x20different\x20URL','\x0a\x20\x20Profile\x20\x22','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','log','5rHLxqD','\x0a📋\x20Authentication\x20Setup','force','status','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','manual','newContext','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','\x22\x20already\x20exists.\x20Overwrite?','input','hCbeJ','gDOAO','10917NUqfgG','464308CjCRAc','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','7NncSCV','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','confirm','\x0a⚠️\x20\x20Profile\x20\x22','1924MWeJXJ','browser_auth','WtlfH','trackPhaseEnd','stdout','Removed\x20existing\x20profile\x20at\x20','message','cdpEndpoint','bSHeS','path','zUAnY','iJOHW','http://localhost:3000','pNfPP','newPage','\x20\x20Did\x20you\x20mean\x20','prompt','RYBKF','signal','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','catch','lNvBq','ygbVg','test','⚠\x20Could\x20not\x20reach\x20','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','name','What\x20would\x20you\x20like\x20to\x20do?','tyQLz','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','includes','OQeYf','about:blank','130080PYNBzy','isTTY','XHCla','fetch\x20failed','.tmp-','Aborted.','632ZqoSwm','Profile\x20\x22','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','1190TboQOp','CgYKW','AQirH','gFUxB','hcyUN','error','PqnKS'];_0x34ad=function(){return _0xde10b6;};return _0x34ad();}import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x4b5399){const _0x4ca59c=_0x5b03,_0x2b1388={'tvYHI':function(_0x4eb15a,_0x4a456b,_0x53ea54){return _0x4eb15a(_0x4a456b,_0x53ea54);},'gDOAO':_0x4ca59c(0xdc),'PvxIJ':function(_0x54d3f8,_0x5c03e3){return _0x54d3f8(_0x5c03e3);},'VQydb':function(_0x537a43,_0x5e3884){return _0x537a43<_0x5e3884;},'PEttp':'TypeError'};try{const _0x2d21fa=new AbortController(),_0x4fd545=_0x2b1388['tvYHI'](setTimeout,()=>_0x2d21fa['abort'](),0x1388),_0x498785=await fetch(_0x4b5399,{'method':'HEAD','signal':_0x2d21fa[_0x4ca59c(0xfd)],'redirect':_0x2b1388[_0x4ca59c(0xe2)]});_0x2b1388['PvxIJ'](clearTimeout,_0x4fd545);if(_0x2b1388['VQydb'](_0x498785[_0x4ca59c(0xda)],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x498785[_0x4ca59c(0xda)]};}catch(_0x38381d){const _0x2176ea=_0x38381d,_0x3e412e=_0x2176ea[_0x4ca59c(0xf1)]||String(_0x38381d),_0x2f2b54=_0x3e412e[_0x4ca59c(0x10a)](_0x4ca59c(0xd1))||_0x2176ea[_0x4ca59c(0x106)]===_0x2b1388['PEttp']||_0x3e412e[_0x4ca59c(0x10a)](_0x4ca59c(0x110));return{'ok':![],'error':_0x3e412e,'isProtocolError':_0x2f2b54};}}export async function addEnv(_0x543265,_0x18a4f8={},_0x396361){const _0x38c9ee=_0x5b03,_0x6c4d13={'ygbVg':function(_0x5c4b9b){return _0x5c4b9b();},'WtlfH':'close','RYBKF':function(_0x1ffc71,_0x27f974,_0x5026b2,_0x373ee6){return _0x1ffc71(_0x27f974,_0x5026b2,_0x373ee6);},'bSHeS':function(_0x3edc49){return _0x3edc49();},'nDrYK':function(_0x413130,_0x31fab4){return _0x413130!==_0x31fab4;},'iJOHW':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','hcyUN':'--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.','tyQLz':_0x38c9ee(0xfe),'gFUxB':function(_0x4474b3,_0x4a95cc){return _0x4474b3(_0x4a95cc);},'CgYKW':_0x38c9ee(0xe9),'VXZHA':_0x38c9ee(0x112),'PXWDI':function(_0x337ea1,_0x2b8bdf){return _0x337ea1===_0x2b8bdf;},'HpGil':'legacy','DafZR':'shouldReplace','YTjHJ':'url_setup','XmQzu':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','NMTiT':'\x0a🌐\x20Profile\x20Setup\x0a','tMVdm':'\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','kbRma':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','AQirH':_0x38c9ee(0xc8),'NLqZY':_0x38c9ee(0x109),'Zlcse':_0x38c9ee(0xf7),'OQeYf':'action','RMIVc':_0x38c9ee(0x107),'zUAnY':'use_suggestion','fHPia':_0x38c9ee(0xd3),'RhKkm':_0x38c9ee(0xcc),'XHCla':function(_0x5a1556,_0x256a44){return _0x5a1556===_0x256a44;},'pNfPP':function(_0x53468b,_0x33b454){return _0x53468b(_0x33b454);},'PqnKS':function(_0x43b377,_0xad2beb,_0x21418c){return _0x43b377(_0xad2beb,_0x21418c);},'HkTUD':_0x38c9ee(0xec),'hCbeJ':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','MEbvx':_0x38c9ee(0xe5),'lNvBq':'\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','DvETc':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','BltUS':_0x38c9ee(0xdb),'ZhFdd':'config_write'},_0x4eb4a5=_0x18a4f8['ci']??![],_0x5581ee=_0x4eb4a5?'ci':_0x38c9ee(0xc5),_0x4cfce9=_0x6c4d13[_0x38c9ee(0xfc)](join,_0x6c4d13[_0x38c9ee(0xf3)](getRangerDir),_0x5581ee,_0x543265),_0x480553=join(_0x6c4d13[_0x38c9ee(0xf3)](getRangerDir),_0x5581ee);if(_0x6c4d13['nDrYK'](_0x18a4f8[_0x38c9ee(0xf2)],undefined)&&_0x18a4f8[_0x38c9ee(0xf2)]['trim']()==='')throw new Error(_0x38c9ee(0xcf));if(_0x18a4f8[_0x38c9ee(0xf2)]&&_0x18a4f8['url'])throw new Error(_0x6c4d13[_0x38c9ee(0xf6)]);if(_0x18a4f8['cdpEndpoint']&&_0x18a4f8['ci'])throw new Error(_0x6c4d13[_0x38c9ee(0xbb)]);const _0x8424aa=Boolean(_0x18a4f8['cdpEndpoint']),_0x2c5afe=!_0x18a4f8['skipAuth']&&!_0x8424aa,_0xa5adce=process['stdin'][_0x38c9ee(0x10e)]&&process[_0x38c9ee(0xef)][_0x38c9ee(0x10e)];if(!_0xa5adce&&!_0x18a4f8['url']&&!_0x8424aa)throw new Error(_0x6c4d13[_0x38c9ee(0x108)]);const _0x5b6992=_0x6c4d13['gFUxB'](findExistingEnv,_0x543265);let _0x423c27=null;if(_0x5b6992){if(!_0xa5adce)_0x423c27=_0x5b6992;else{if(_0x5b6992['location']===_0x5581ee){const {overwrite:_0x1db4c8}=await _0x2e8c39['prompt']([{'type':_0x6c4d13[_0x38c9ee(0xb8)],'name':'overwrite','message':_0x38c9ee(0xb5)+_0x543265+_0x38c9ee(0xdf),'default':![]}]);if(!_0x1db4c8){console[_0x38c9ee(0xd6)](_0x6c4d13['VXZHA']);return;}_0x423c27=_0x5b6992;}else{const _0x47d94a=_0x6c4d13['PXWDI'](_0x5b6992['location'],_0x6c4d13[_0x38c9ee(0xd0)])?'root\x20(.ranger/)':_0x5b6992['location'];console[_0x38c9ee(0xbc)](_0x38c9ee(0xea)+_0x543265+'\x22\x20already\x20exists\x20in\x20'+_0x47d94a+':\x20'+_0x5b6992['path']),console[_0x38c9ee(0xbc)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0x5581ee+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x58de91}=await _0x2e8c39[_0x38c9ee(0xfb)]([{'type':'confirm','name':_0x6c4d13['DafZR'],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x5581ee+'?','default':![]}]);if(!_0x58de91){console['log']('Aborted.');return;}_0x423c27=_0x5b6992;}}}_0x396361?.[_0x38c9ee(0xc0)](_0x6c4d13[_0x38c9ee(0xd2)]);let _0x598d64='';if(_0x8424aa)console['log'](_0x6c4d13['XmQzu']),console[_0x38c9ee(0xd6)](_0x38c9ee(0x105)+_0x18a4f8['cdpEndpoint']),console[_0x38c9ee(0xd6)]('\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a');else{if(_0x18a4f8['url']){_0x598d64=_0x18a4f8['url'];const _0x53e9cb=await checkUrlReachability(_0x598d64);if(!_0x53e9cb['ok']&&!_0x18a4f8[_0x38c9ee(0xd9)])throw new Error('Could\x20not\x20reach\x20'+_0x598d64+':\x20'+_0x53e9cb[_0x38c9ee(0xbc)]+_0x38c9ee(0xb6));!_0x53e9cb['ok']&&_0x18a4f8[_0x38c9ee(0xd9)]&&console['log'](_0x38c9ee(0x103)+_0x598d64+':\x20'+_0x53e9cb[_0x38c9ee(0xbc)]+'\x20(continuing\x20with\x20--force)');}else{console['log'](_0x6c4d13['NMTiT']),console['log'](_0x6c4d13['tMVdm']),console[_0x38c9ee(0xd6)](_0x6c4d13['kbRma']);let _0x2dbb1f=![];while(!![]){const _0x10888a=await _0x2e8c39[_0x38c9ee(0xfb)]([{'type':_0x38c9ee(0xe0),'name':_0x6c4d13[_0x38c9ee(0xb9)],'message':_0x2dbb1f?_0x6c4d13['NLqZY']:_0x38c9ee(0xe7),'default':_0x598d64||_0x6c4d13['Zlcse']}]);_0x598d64=_0x10888a['baseUrl'];const _0x3eb0b2=await checkUrlReachability(_0x598d64);if(_0x3eb0b2['ok'])break;const _0x4ea619=/^[a-zA-Z][\w+.-]*:\/\//[_0x38c9ee(0x102)](_0x598d64),_0xa707b0=_0x3eb0b2[_0x38c9ee(0xc9)]&&!_0x4ea619,_0xcc4831=_0xa707b0?'http://'+_0x598d64:null;_0x2dbb1f=!![],console[_0x38c9ee(0xd6)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x598d64+':\x20'+_0x3eb0b2[_0x38c9ee(0xbc)]);_0xcc4831&&console[_0x38c9ee(0xd6)](_0x38c9ee(0xfa)+_0xcc4831+'?');const {action:_0x52eed3}=await _0x2e8c39['prompt']([{'type':'list','name':_0x6c4d13[_0x38c9ee(0x10b)],'message':_0x6c4d13['RMIVc'],'choices':[..._0xcc4831?[{'name':'Use\x20'+_0xcc4831,'value':_0x6c4d13[_0x38c9ee(0xf5)]}]:[],{'name':_0x6c4d13[_0x38c9ee(0xc7)],'value':'retry'},{'name':'Continue\x20anyway','value':_0x6c4d13['RhKkm']}]}]);if(_0x52eed3===_0x6c4d13[_0x38c9ee(0xf5)]&&_0xcc4831){_0x598d64=_0xcc4831;const _0x3a8f60=await _0x6c4d13['gFUxB'](checkUrlReachability,_0x598d64);if(_0x3a8f60['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x598d64+':\x20'+_0x3a8f60['error']);}else{if(_0x6c4d13[_0x38c9ee(0x10f)](_0x52eed3,_0x6c4d13['RhKkm']))break;}}}}_0x396361?.[_0x38c9ee(0xee)](_0x6c4d13['YTjHJ']),await mkdir(_0x480553,{'recursive':!![]});const _0x117691=await _0x6c4d13[_0x38c9ee(0xf8)](mkdtemp,join(_0x480553,_0x38c9ee(0x111)+_0x543265+'-')),_0x1757d1=_0x6c4d13['PqnKS'](join,_0x117691,'auth.json');try{if(_0x2c5afe){_0x396361?.[_0x38c9ee(0xc0)](_0x6c4d13[_0x38c9ee(0xca)]),console['log'](_0x38c9ee(0xd8)),console['log'](_0x6c4d13[_0x38c9ee(0xe1)]),console['log'](_0x6c4d13['MEbvx']);!_0xa5adce?(console[_0x38c9ee(0xd6)](_0x6c4d13[_0x38c9ee(0x100)]),console[_0x38c9ee(0xd6)](_0x38c9ee(0x104))):console['log']('');await new Promise(_0x2e5534=>setTimeout(_0x2e5534,0xbb8));const _0x17da48=await chromium[_0x38c9ee(0xbf)]({'headless':![]});try{const _0x17206d=await _0x17da48[_0x38c9ee(0xdd)]();await _0x6c4d13['gFUxB'](addProfileSetupBanner,_0x17206d);const _0x2bca5f=await _0x17206d[_0x38c9ee(0xf9)]();await _0x2bca5f['goto'](_0x598d64||_0x38c9ee(0x10c)),await new Promise(_0x13b002=>{const _0x3e8a25=_0x38c9ee;_0x2bca5f['on'](_0x6c4d13[_0x3e8a25(0xed)],async()=>{const _0x3a7ac4=_0x3e8a25;try{console['log']('Saving\x20authentication\x20state...'),await _0x17206d['storageState']({'path':_0x1757d1});}catch{}_0x6c4d13[_0x3a7ac4(0x101)](_0x13b002);});});}finally{await _0x17da48[_0x38c9ee(0xcb)]()[_0x38c9ee(0xff)](()=>{});}if(_0x4eb4a5){const _0x1db725=await _0x6c4d13['PqnKS'](readFile,_0x1757d1,'utf-8'),_0x16f6a5=await getToken();if(!_0x16f6a5){console[_0x38c9ee(0xbc)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await _0x6c4d13[_0x38c9ee(0xba)](unlink,_0x1757d1)[_0x38c9ee(0xff)](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x43912d=_0x6c4d13['PqnKS'](encrypt,_0x1db725,_0x16f6a5);await writeFile(_0x1757d1+'.enc',_0x43912d),await unlink(_0x1757d1),console['log'](_0x38c9ee(0xd5)+_0x1757d1+'.enc'),console['log'](_0x6c4d13['DvETc']),console['log'](_0x6c4d13[_0x38c9ee(0xc3)]);}}else console['log'](_0x38c9ee(0xcd)+_0x1757d1);_0x396361?.['trackPhaseEnd']('browser_auth');}_0x396361?.['trackPhaseStart'](_0x6c4d13[_0x38c9ee(0xc1)]);const _0x5b48cc={};_0x598d64&&(_0x5b48cc['baseUrl']=_0x598d64);_0x18a4f8[_0x38c9ee(0xf2)]&&(_0x5b48cc['cdpEndpoint']=_0x18a4f8['cdpEndpoint'],_0x5b48cc['isElectron']=!![]);await writeFile(_0x6c4d13[_0x38c9ee(0xbd)](join,_0x117691,_0x38c9ee(0xbe)),JSON['stringify'](_0x5b48cc,null,0x2)),console[_0x38c9ee(0xd6)]('✓\x20Created\x20settings:\x20'+join(_0x4cfce9,_0x38c9ee(0xbe)));if(_0x423c27?.['location']===_0x5581ee){const _0x4634ac=_0x423c27[_0x38c9ee(0xf4)]+'.backup-'+Date['now']();await _0x6c4d13['PqnKS'](rename,_0x423c27['path'],_0x4634ac);try{await rename(_0x117691,_0x4cfce9);}catch(_0x1b0baa){await rename(_0x4634ac,_0x423c27['path']);throw _0x1b0baa;}try{await _0x6c4d13[_0x38c9ee(0xbd)](rm,_0x4634ac,{'recursive':!![]});}catch{console['log'](_0x38c9ee(0xde)+_0x4634ac);}}else{await rename(_0x117691,_0x4cfce9);if(_0x423c27)try{await rm(_0x423c27[_0x38c9ee(0xf4)],{'recursive':!![]}),console[_0x38c9ee(0xd6)](_0x38c9ee(0xf0)+_0x423c27[_0x38c9ee(0xf4)]);}catch{console['log'](_0x38c9ee(0xe8)+_0x423c27[_0x38c9ee(0xf4)]);}}try{await writeActiveProfileName(_0x543265),console[_0x38c9ee(0xd6)]('\x20\x20Set\x20active\x20profile:\x20'+_0x543265);}catch{console['log']('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}_0x396361?.[_0x38c9ee(0xee)](_0x6c4d13['ZhFdd']),console[_0x38c9ee(0xd6)](_0x38c9ee(0xd4)+_0x543265+'\x22\x20configured');}catch(_0x50b203){await _0x6c4d13['PqnKS'](rm,_0x117691,{'recursive':!![],'force':!![]});throw _0x50b203;}}
|
|
1
|
+
(function(_0x27479c,_0x1aa3a3){const _0x36dbe7=_0x4695,_0x254915=_0x27479c();while(!![]){try{const _0x59071a=parseInt(_0x36dbe7(0x210))/0x1*(-parseInt(_0x36dbe7(0x207))/0x2)+parseInt(_0x36dbe7(0x1f4))/0x3+-parseInt(_0x36dbe7(0x1cb))/0x4+-parseInt(_0x36dbe7(0x1e8))/0x5+-parseInt(_0x36dbe7(0x215))/0x6*(-parseInt(_0x36dbe7(0x1ea))/0x7)+-parseInt(_0x36dbe7(0x224))/0x8*(-parseInt(_0x36dbe7(0x20a))/0x9)+parseInt(_0x36dbe7(0x206))/0xa;if(_0x59071a===_0x1aa3a3)break;else _0x254915['push'](_0x254915['shift']());}catch(_0x4cf907){_0x254915['push'](_0x254915['shift']());}}}(_0x3cb4,0x3961d));function _0x3cb4(){const _0x375f66=['\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','TJaDl','bICTa','newContext','XCili','--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.','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','log','local','skipAuth','browser_auth','url','HEAD','1056365gkDuSD','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','7cXSQYe','catch','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','✓\x20Created\x20settings:\x20','stdout','aFVqv','AnjSj','HVxAw','GjUFA','name','658887XQKoSi','\x0a📋\x20Authentication\x20Setup','test','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','settings.json','includes','location','use_suggestion','Profile\x20\x22','error','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','about:blank','.enc','uAqYt','status','trackPhaseEnd','action','6166160otNlHw','1524nkhUun','retry','TbhDt','258561bofzgm','shouldReplace','trim','Could\x20not\x20reach\x20','stringify','message','336AbeNJv','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','trackPhaseStart','path','Saving\x20authentication\x20state...','584286ILaOSm','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','lLmiR','Use\x20','Continue\x20anyway','idmIw','What\x20would\x20you\x20like\x20to\x20do?','continue','woQxx','auth.json','\x0a🌐\x20Profile\x20Setup\x0a','cdpEndpoint','PWFCI','kVEqK','GPiUq','8aOugUq','.tmp-','RElpa','force','1040052pQHMPw','prompt','\x20\x20Set\x20active\x20profile:\x20','isProtocolError','url_setup','\x22\x20configured','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','✓\x20Auth\x20state\x20saved\x20to:\x20','launch','WTDnJ','close','HZSgr','Aborted.','Invalid\x20URL','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'];_0x3cb4=function(){return _0x375f66;};return _0x3cb4();}import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x362eb8 from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';function _0x4695(_0x4f836b,_0x5de8a3){_0x4f836b=_0x4f836b-0x1cb;const _0x3cb45f=_0x3cb4();let _0x469547=_0x3cb45f[_0x4f836b];return _0x469547;}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(_0x449914){const _0x6353=_0x4695,_0x2bd2da={'WTDnJ':function(_0x31ea20,_0x2a5dc1,_0x40f992){return _0x31ea20(_0x2a5dc1,_0x40f992);},'gmGnT':'manual','kHVIK':function(_0xc63853,_0x4053ec){return _0xc63853<_0x4053ec;},'XCili':_0x6353(0x1d8),'HVxAw':'TypeError'};try{const _0x5a1b80=new AbortController(),_0x532bc7=_0x2bd2da[_0x6353(0x1d4)](setTimeout,()=>_0x5a1b80['abort'](),0x1388),_0xebe24f=await fetch(_0x449914,{'method':_0x6353(0x1e7),'signal':_0x5a1b80['signal'],'redirect':_0x2bd2da['gmGnT']});clearTimeout(_0x532bc7);if(_0x2bd2da['kHVIK'](_0xebe24f[_0x6353(0x203)],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0xebe24f[_0x6353(0x203)]};}catch(_0x4b2c7f){const _0x54e207=_0x4b2c7f,_0x3bb55f=_0x54e207[_0x6353(0x20f)]||String(_0x4b2c7f),_0x517fc5=_0x3bb55f[_0x6353(0x1fa)](_0x2bd2da[_0x6353(0x1df)])||_0x54e207[_0x6353(0x1f3)]===_0x2bd2da[_0x6353(0x1f1)]||_0x3bb55f['includes']('fetch\x20failed');return{'ok':![],'error':_0x3bb55f,'isProtocolError':_0x517fc5};}}export async function addEnv(_0x4322d7,_0x7e5835={},_0x15fd5e){const _0x1365fd=_0x4695,_0xbd980b={'Mjhnb':function(_0x2390ed){return _0x2390ed();},'woQxx':function(_0x172235,_0x257959,_0xc75ecb,_0x52ec8a){return _0x172235(_0x257959,_0xc75ecb,_0x52ec8a);},'lLmiR':function(_0x357293,_0x1527d8,_0x2fae32){return _0x357293(_0x1527d8,_0x2fae32);},'PWFCI':function(_0x3dc90d,_0x3a1f6a){return _0x3dc90d===_0x3a1f6a;},'gwzbu':_0x1365fd(0x211),'UQRFQ':_0x1365fd(0x1e0),'AnjSj':function(_0x524b8d,_0x53ca63){return _0x524b8d(_0x53ca63);},'TJaDl':_0x1365fd(0x1d7),'RYfvc':function(_0x34a2eb,_0x3f57f1){return _0x34a2eb(_0x3f57f1);},'YNdzk':_0x1365fd(0x1d1),'uAqYt':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','idmIw':'baseUrl','RElpa':function(_0x1a4f2c,_0x23f749){return _0x1a4f2c||_0x23f749;},'QftzJ':'http://localhost:3000','OLQjp':_0x1365fd(0x21b),'sFZCu':'continue','rJPAo':function(_0x54a304,_0x407ef8,_0x28404f){return _0x54a304(_0x407ef8,_0x28404f);},'HZSgr':function(_0x318c80,_0x43619a){return _0x318c80(_0x43619a);},'GjUFA':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','SVPLU':'\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','TbhDt':_0x1365fd(0x1ff),'bICTa':function(_0x4b83bd,_0x156b45){return _0x4b83bd||_0x156b45;},'gSrcz':_0x1365fd(0x200),'OcKpB':'\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','aFVqv':_0x1365fd(0x1ec),'kVEqK':function(_0xbb7930,_0x5a10db,_0x465055){return _0xbb7930(_0x5a10db,_0x465055);},'dmMiK':'.enc','nwqXW':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','GPiUq':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','iVzJj':function(_0x4ad0b9,_0x20af7a,_0x2e7120){return _0x4ad0b9(_0x20af7a,_0x2e7120);},'XkkHB':function(_0x237f8a,_0x5f4dc3,_0x546214){return _0x237f8a(_0x5f4dc3,_0x546214);},'IFPeR':function(_0xa693f9,_0x4531e1,_0x172957){return _0xa693f9(_0x4531e1,_0x172957);},'ZrkAw':'config_write'},_0x553883=_0x7e5835['ci']??![],_0xaf03b6=_0x553883?'ci':_0x1365fd(0x1e3),_0x26fa28=_0xbd980b[_0x1365fd(0x21d)](join,getRangerDir(),_0xaf03b6,_0x4322d7),_0x1e999f=_0xbd980b['lLmiR'](join,getRangerDir(),_0xaf03b6);if(_0x7e5835['cdpEndpoint']!==undefined&&_0xbd980b['PWFCI'](_0x7e5835[_0x1365fd(0x220)][_0x1365fd(0x20c)](),''))throw new Error(_0x1365fd(0x1e1));if(_0x7e5835[_0x1365fd(0x220)]&&_0x7e5835[_0x1365fd(0x1e6)])throw new Error(_0xbd980b['gwzbu']);if(_0x7e5835['cdpEndpoint']&&_0x7e5835['ci'])throw new Error(_0xbd980b['UQRFQ']);const _0x2d8270=Boolean(_0x7e5835[_0x1365fd(0x220)]),_0x41fa58=!_0x7e5835[_0x1365fd(0x1e4)]&&!_0x2d8270,_0x2b1012=process['stdin']['isTTY']&&process[_0x1365fd(0x1ee)]['isTTY'];if(!_0x2b1012&&!_0x7e5835[_0x1365fd(0x1e6)]&&!_0x2d8270)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 _0x3d76e1=_0xbd980b[_0x1365fd(0x1f0)](findExistingEnv,_0x4322d7);let _0x2c0576=null;if(_0x3d76e1){if(!_0x2b1012)_0x2c0576=_0x3d76e1;else{if(_0x3d76e1['location']===_0xaf03b6){const {overwrite:_0x5ad6f7}=await _0x362eb8['prompt']([{'type':'confirm','name':'overwrite','message':_0x1365fd(0x1fd)+_0x4322d7+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x5ad6f7){console[_0x1365fd(0x1e2)](_0xbd980b['TJaDl']);return;}_0x2c0576=_0x3d76e1;}else{const _0x502632=_0xbd980b['PWFCI'](_0x3d76e1[_0x1365fd(0x1fb)],'legacy')?'root\x20(.ranger/)':_0x3d76e1['location'];console[_0x1365fd(0x1fe)]('\x0a⚠️\x20\x20Profile\x20\x22'+_0x4322d7+'\x22\x20already\x20exists\x20in\x20'+_0x502632+':\x20'+_0x3d76e1[_0x1365fd(0x213)]),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0xaf03b6+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x235b3a}=await _0x362eb8[_0x1365fd(0x1cc)]([{'type':'confirm','name':_0x1365fd(0x20b),'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0xaf03b6+'?','default':![]}]);if(!_0x235b3a){console['log'](_0xbd980b[_0x1365fd(0x1dc)]);return;}_0x2c0576=_0x3d76e1;}}}_0x15fd5e?.[_0x1365fd(0x212)](_0x1365fd(0x1cf));let _0x6e8de7='';if(_0x2d8270)console[_0x1365fd(0x1e2)]('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console[_0x1365fd(0x1e2)](_0x1365fd(0x1f7)+_0x7e5835[_0x1365fd(0x220)]),console[_0x1365fd(0x1e2)](_0x1365fd(0x1e9));else{if(_0x7e5835[_0x1365fd(0x1e6)]){_0x6e8de7=_0x7e5835[_0x1365fd(0x1e6)];const _0x48dab9=await _0xbd980b['RYfvc'](checkUrlReachability,_0x6e8de7);if(!_0x48dab9['ok']&&!_0x7e5835[_0x1365fd(0x227)])throw new Error(_0x1365fd(0x20d)+_0x6e8de7+':\x20'+_0x48dab9[_0x1365fd(0x1fe)]+_0x1365fd(0x216));!_0x48dab9['ok']&&_0x7e5835[_0x1365fd(0x227)]&&console[_0x1365fd(0x1e2)]('⚠\x20Could\x20not\x20reach\x20'+_0x6e8de7+':\x20'+_0x48dab9['error']+'\x20(continuing\x20with\x20--force)');}else{console[_0x1365fd(0x1e2)](_0x1365fd(0x21f)),console['log'](_0xbd980b['YNdzk']),console['log'](_0xbd980b[_0x1365fd(0x202)]);let _0x588092=![];while(!![]){const _0x48052c=await _0x362eb8['prompt']([{'type':'input','name':_0xbd980b[_0x1365fd(0x21a)],'message':_0x588092?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0xbd980b[_0x1365fd(0x226)](_0x6e8de7,_0xbd980b['QftzJ'])}]);_0x6e8de7=_0x48052c['baseUrl'];const _0x136361=await checkUrlReachability(_0x6e8de7);if(_0x136361['ok'])break;const _0x457a11=/^[a-zA-Z][\w+.-]*:\/\//[_0x1365fd(0x1f6)](_0x6e8de7),_0xad2aa2=_0x136361[_0x1365fd(0x1ce)]&&!_0x457a11,_0x3c7413=_0xad2aa2?'http://'+_0x6e8de7:null;_0x588092=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x6e8de7+':\x20'+_0x136361[_0x1365fd(0x1fe)]);_0x3c7413&&console[_0x1365fd(0x1e2)]('\x20\x20Did\x20you\x20mean\x20'+_0x3c7413+'?');const {action:_0x2fdf71}=await _0x362eb8['prompt']([{'type':'list','name':_0x1365fd(0x205),'message':_0xbd980b['OLQjp'],'choices':[..._0x3c7413?[{'name':_0x1365fd(0x218)+_0x3c7413,'value':_0x1365fd(0x1fc)}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x1365fd(0x208)},{'name':_0x1365fd(0x219),'value':_0x1365fd(0x21c)}]}]);if(_0xbd980b[_0x1365fd(0x221)](_0x2fdf71,'use_suggestion')&&_0x3c7413){_0x6e8de7=_0x3c7413;const _0x11d9b5=await checkUrlReachability(_0x6e8de7);if(_0x11d9b5['ok'])break;console[_0x1365fd(0x1e2)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x6e8de7+':\x20'+_0x11d9b5['error']);}else{if(_0x2fdf71===_0xbd980b['sFZCu'])break;}}}}_0x15fd5e?.['trackPhaseEnd']('url_setup'),await _0xbd980b['rJPAo'](mkdir,_0x1e999f,{'recursive':!![]});const _0x2a5548=await _0xbd980b[_0x1365fd(0x1d6)](mkdtemp,_0xbd980b[_0x1365fd(0x217)](join,_0x1e999f,_0x1365fd(0x225)+_0x4322d7+'-')),_0x361f79=join(_0x2a5548,_0x1365fd(0x21e));try{if(_0x41fa58){_0x15fd5e?.[_0x1365fd(0x212)](_0x1365fd(0x1e5)),console[_0x1365fd(0x1e2)](_0x1365fd(0x1f5)),console['log'](_0xbd980b[_0x1365fd(0x1f2)]),console['log'](_0xbd980b['SVPLU']);!_0x2b1012?(console['log'](_0x1365fd(0x1da)),console[_0x1365fd(0x1e2)](_0xbd980b[_0x1365fd(0x209)])):console['log']('');await new Promise(_0x5c1098=>setTimeout(_0x5c1098,0xbb8));const _0x3863f4=await chromium[_0x1365fd(0x1d3)]({'headless':![]});try{const _0x21cf19=await _0x3863f4[_0x1365fd(0x1de)]();await addProfileSetupBanner(_0x21cf19);const _0x781ec4=await _0x21cf19['newPage']();await _0x781ec4['goto'](_0xbd980b[_0x1365fd(0x1dd)](_0x6e8de7,_0xbd980b['gSrcz'])),await new Promise(_0x2ba5d2=>{const _0x88dbb5=_0x1365fd;_0x781ec4['on'](_0x88dbb5(0x1d5),async()=>{const _0x2a0789=_0x88dbb5;try{console['log'](_0x2a0789(0x214)),await _0x21cf19['storageState']({'path':_0x361f79});}catch{}_0xbd980b['Mjhnb'](_0x2ba5d2);});});}finally{await _0x3863f4[_0x1365fd(0x1d5)]()[_0x1365fd(0x1eb)](()=>{});}if(_0x553883){const _0x5e11a2=await readFile(_0x361f79,'utf-8'),_0x834df2=await getToken();if(!_0x834df2){console[_0x1365fd(0x1fe)](_0xbd980b['OcKpB']),await _0xbd980b['AnjSj'](unlink,_0x361f79)[_0x1365fd(0x1eb)](()=>{});throw new Error(_0xbd980b[_0x1365fd(0x1ef)]);}else{const _0x1d0045=encrypt(_0x5e11a2,_0x834df2);await _0xbd980b[_0x1365fd(0x222)](writeFile,_0x361f79+_0xbd980b['dmMiK'],_0x1d0045),await unlink(_0x361f79),console['log'](_0x1365fd(0x1f8)+_0x361f79+_0x1365fd(0x201)),console['log'](_0xbd980b['nwqXW']),console['log'](_0xbd980b[_0x1365fd(0x223)]);}}else console['log'](_0x1365fd(0x1d2)+_0x361f79);_0x15fd5e?.['trackPhaseEnd'](_0x1365fd(0x1e5));}_0x15fd5e?.['trackPhaseStart']('config_write');const _0x2e2aca={};_0x6e8de7&&(_0x2e2aca['baseUrl']=_0x6e8de7);_0x7e5835['cdpEndpoint']&&(_0x2e2aca['cdpEndpoint']=_0x7e5835[_0x1365fd(0x220)],_0x2e2aca['isElectron']=!![]);await writeFile(join(_0x2a5548,_0x1365fd(0x1f9)),JSON[_0x1365fd(0x20e)](_0x2e2aca,null,0x2)),console[_0x1365fd(0x1e2)](_0x1365fd(0x1ed)+join(_0x26fa28,_0x1365fd(0x1f9)));if(_0x2c0576?.[_0x1365fd(0x1fb)]===_0xaf03b6){const _0x18c4fe=_0x2c0576['path']+'.backup-'+Date['now']();await rename(_0x2c0576[_0x1365fd(0x213)],_0x18c4fe);try{await _0xbd980b['rJPAo'](rename,_0x2a5548,_0x26fa28);}catch(_0x4d7896){await rename(_0x18c4fe,_0x2c0576[_0x1365fd(0x213)]);throw _0x4d7896;}try{await _0xbd980b['iVzJj'](rm,_0x18c4fe,{'recursive':!![]});}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x18c4fe);}}else{await _0xbd980b['XkkHB'](rename,_0x2a5548,_0x26fa28);if(_0x2c0576)try{await _0xbd980b['IFPeR'](rm,_0x2c0576[_0x1365fd(0x213)],{'recursive':!![]}),console[_0x1365fd(0x1e2)]('Removed\x20existing\x20profile\x20at\x20'+_0x2c0576['path']);}catch{console[_0x1365fd(0x1e2)](_0x1365fd(0x1d9)+_0x2c0576['path']);}}try{await writeActiveProfileName(_0x4322d7),console[_0x1365fd(0x1e2)](_0x1365fd(0x1cd)+_0x4322d7);}catch{console['log'](_0x1365fd(0x1db));}_0x15fd5e?.[_0x1365fd(0x204)](_0xbd980b['ZrkAw']),console[_0x1365fd(0x1e2)]('\x0a\x20\x20Profile\x20\x22'+_0x4322d7+_0x1365fd(0x1d0));}catch(_0x1c8cae){await rm(_0x2a5548,{'recursive':!![],'force':!![]});throw _0x1c8cae;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ddcfa,_0x5d502f){const _0x12cb22=_0x49a4,_0x51ce17=_0x2ddcfa();while(!![]){try{const _0x49fa78=-parseInt(_0x12cb22(0x157))/0x1+-parseInt(_0x12cb22(0x165))/0x2+parseInt(_0x12cb22(0x15c))/0x3+-parseInt(_0x12cb22(0x164))/0x4+parseInt(_0x12cb22(0x160))/0x5+-parseInt(_0x12cb22(0x15f))/0x6+-parseInt(_0x12cb22(0x167))/0x7*(-parseInt(_0x12cb22(0x168))/0x8);if(_0x49fa78===_0x5d502f)break;else _0x51ce17['push'](_0x51ce17['shift']());}catch(_0x59123c){_0x51ce17['push'](_0x51ce17['shift']());}}}(_0x4e3f,0x1a02b));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0x49a4(_0x3141ce,_0x1923e0){_0x3141ce=_0x3141ce-0x156;const _0x4e3f9f=_0x4e3f();let _0x49a461=_0x4e3f9f[_0x3141ce];return _0x49a461;}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x409997){const _0x3be7af=_0x49a4,_0x83ab69={'KZtXG':function(_0x1dba68,_0x2030b0,_0x53fef5){return _0x1dba68(_0x2030b0,_0x53fef5);},'TMkhv':function(_0x3b5b05,_0xde6c99){return _0x3b5b05(_0xde6c99);},'aZKVp':function(_0x37f2d8){return _0x37f2d8();},'FJdkB':function(_0x318f92,_0x52a6e9,_0x2e24bf){return _0x318f92(_0x52a6e9,_0x2e24bf);},'vuSQh':_0x3be7af(0x156),'FUEnf':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','oqnHy':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'},_0x400c96=getEnvDir(_0x409997),_0x1e508f=_0x83ab69['KZtXG'](join,_0x400c96,_0x3be7af(0x163)),_0x107419=_0x1e508f+'.enc';if(!_0x83ab69[_0x3be7af(0x166)](existsSync,_0x400c96))throw new Error('Profile\x20\x22'+_0x409997+_0x3be7af(0x15e)+_0x409997);if(!existsSync(_0x1e508f))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x1e508f+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x1e5533=await _0x83ab69[_0x3be7af(0x15d)](getToken);if(!_0x1e5533)throw new Error(_0x3be7af(0x158));const _0x344f4b=await _0x83ab69[_0x3be7af(0x159)](readFile,_0x1e508f,_0x83ab69['vuSQh']),_0x53ac04=encrypt(_0x344f4b,_0x1e5533);await writeFile(_0x107419,_0x53ac04),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x107419),console[_0x3be7af(0x15b)](_0x83ab69[_0x3be7af(0x161)]),console['log'](_0x83ab69[_0x3be7af(0x15a)]),existsSync(_0x107419)&&(console['log'](_0x3be7af(0x162)),console[_0x3be7af(0x15b)]('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}function _0x4e3f(){const _0x4c9ba2=['FUEnf','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','auth.json','407840ZcXBiI','267170xJuJOu','TMkhv','7qdMxCD','3745120mmZbqq','utf-8','102499utVkZX','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','FJdkB','oqnHy','log','166674YjXyHQ','aZKVp','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','785928VAFhqx','259365yJlcro'];_0x4e3f=function(){return _0x4c9ba2;};return _0x4e3f();}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3c50f3=_0x10e3;(function(_0x129123,_0x4579d3){const _0x10502b=_0x10e3,_0x1d229a=_0x129123();while(!![]){try{const _0x221f59=-parseInt(_0x10502b(0x1b5))/0x1*(parseInt(_0x10502b(0x1e1))/0x2)+parseInt(_0x10502b(0x1be))/0x3*(parseInt(_0x10502b(0x1ce))/0x4)+parseInt(_0x10502b(0x1d1))/0x5*(-parseInt(_0x10502b(0x1c2))/0x6)+parseInt(_0x10502b(0x1c9))/0x7*(parseInt(_0x10502b(0x1cb))/0x8)+parseInt(_0x10502b(0x1cf))/0x9+-parseInt(_0x10502b(0x1e3))/0xa+-parseInt(_0x10502b(0x1b1))/0xb;if(_0x221f59===_0x4579d3)break;else _0x1d229a['push'](_0x1d229a['shift']());}catch(_0x48500c){_0x1d229a['push'](_0x1d229a['shift']());}}}(_0x38ad,0xea2f3));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',_0x3c50f3(0x1d7),'bug-bash','e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x1b7fb3){const _0x2ac4ae=_0x3c50f3,_0x4dcb7c=_0x1b7fb3[_0x2ac4ae(0x1d5)](/\/\*[\s\S]*?\*\//g,''),_0x103009=_0x4dcb7c['replace'](/^\s*\/\/.*$/gm,''),_0x176800=_0x103009['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x176800);}async function removeOpencodePluginConfig(_0x3fd519){const _0x32ae89=_0x3c50f3,_0x5c9806={'eppKQ':function(_0x41b12f,_0x3c9ebc,_0x5b8628){return _0x41b12f(_0x3c9ebc,_0x5b8628);},'MlBxA':_0x32ae89(0x1d0),'ctOyp':function(_0x1e35c8,_0x276966){return _0x1e35c8===_0x276966;}};if(!existsSync(_0x3fd519))return![];let _0xc93593;try{const _0x4a0458=await _0x5c9806['eppKQ'](readFile,_0x3fd519,_0x5c9806[_0x32ae89(0x1dc)]);_0xc93593=parseJsonc(_0x4a0458);}catch{return![];}const _0xfa3c40=Array['isArray'](_0xc93593[_0x32ae89(0x1c4)])?_0xc93593['plugin']:[];if(_0x5c9806['ctOyp'](_0xfa3c40['length'],0x0))return![];const _0x5522e7=_0xfa3c40['filter'](_0xa4f5d4=>{if(typeof _0xa4f5d4!=='string')return!![];return _0xa4f5d4!==opencodePluginName;});if(_0x5522e7['length']===_0xfa3c40['length'])return![];return _0x5522e7['length']===0x0?delete _0xc93593['plugin']:_0xc93593['plugin']=_0x5522e7,await _0x5c9806['eppKQ'](writeFile,_0x3fd519,JSON[_0x32ae89(0x1db)](_0xc93593,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x499623){const _0x1a0601=_0x3c50f3,_0x30fc7c={'ODvKv':function(_0x439187,_0xb514d3){return _0x439187(_0xb514d3);},'Bfkjt':_0x1a0601(0x1c0),'hIlXJ':'claude','nAdEU':'error'};return new Promise(_0x46ae67=>{const _0x1b80ee=_0x1a0601,_0x264965={'PwXXa':function(_0x150c4e,_0x58f60a){return _0x150c4e===_0x58f60a;}},_0x4048a1=[_0x1b80ee(0x1c4),_0x30fc7c[_0x1b80ee(0x1d9)],_0x1b80ee(0x1c7)];_0x499623&&_0x4048a1[_0x1b80ee(0x1b8)](_0x1b80ee(0x1de),_0x499623);const _0x3eca0a=spawn(_0x30fc7c[_0x1b80ee(0x1dd)],_0x4048a1,{'stdio':'pipe','shell':process['platform']==='win32'});_0x3eca0a['on'](_0x1b80ee(0x1d3),_0x1fa040=>{const _0x4ac85=_0x1b80ee;_0x46ae67(_0x264965[_0x4ac85(0x1e0)](_0x1fa040,0x0));}),_0x3eca0a['on'](_0x30fc7c[_0x1b80ee(0x1e2)],()=>{const _0x4eeeb0=_0x1b80ee;_0x30fc7c[_0x4eeeb0(0x1b9)](_0x46ae67,![]);});});}function _0x10e3(_0x3326fb,_0x1f76a9){_0x3326fb=_0x3326fb-0x1b1;const _0x38ad39=_0x38ad();let _0x10e3dc=_0x38ad39[_0x3326fb];return _0x10e3dc;}function _0x38ad(){const _0xebc929=['replace','uRfsq','feature-tracker','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','Bfkjt','vjMmu','stringify','MlBxA','hIlXJ','--scope','marketplace','PwXXa','404fjOFIg','nAdEU','9686160vjhRvq','5070054RuuWeS','CdTdZ','OYmiK','pipe','7193kXDLmw','log','LXaOI','push','ODvKv','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','WBnsF','remove','kxpCc','5152182Kwjnll','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','uninstall','Nothing\x20to\x20clean\x20up.\x0a','4427328NSnXDA','✓\x20Removed\x20stored\x20credentials','plugin','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','ZdFjF','ranger@trailhead','win32','4532822MDkUTA','YZBAW','16ByaWho','CmISK','trailhead','4MmMjXA','14104233nLpwpK','utf-8','5CLAZeE','NTIGr','close','✓\x20Removed\x20.ranger/\x20directory'];_0x38ad=function(){return _0xebc929;};return _0x38ad();}async function removeMarketplace(){const _0x567613=_0x3c50f3,_0x4e89ee={'YZBAW':function(_0xe5bbb6,_0x2eeea7){return _0xe5bbb6===_0x2eeea7;},'aSkuB':_0x567613(0x1df),'hrEMn':_0x567613(0x1cd),'OYmiK':_0x567613(0x1c8)};return new Promise(_0x5cc9c5=>{const _0x26547a=_0x567613,_0x156c88=spawn('claude',['plugin',_0x4e89ee['aSkuB'],_0x26547a(0x1bc),_0x4e89ee['hrEMn']],{'stdio':_0x26547a(0x1b4),'shell':process['platform']===_0x4e89ee[_0x26547a(0x1b3)]});_0x156c88['on']('close',_0x497733=>{const _0x2aafc1=_0x26547a;_0x5cc9c5(_0x4e89ee[_0x2aafc1(0x1ca)](_0x497733,0x0));}),_0x156c88['on']('error',()=>{_0x5cc9c5(![]);});});}export async function clean(){const _0x4076bf=_0x3c50f3,_0x4efa7b={'buccm':_0x4076bf(0x1d8),'vjMmu':function(_0x1cfe39){return _0x1cfe39();},'CdTdZ':function(_0x8203e0){return _0x8203e0();},'mvIcI':function(_0x1ddfd4,_0x5aba2a){return _0x1ddfd4(_0x5aba2a);},'rHxdm':function(_0x51a7bd,_0x348018,_0x477e07){return _0x51a7bd(_0x348018,_0x477e07);},'ipEyZ':function(_0x1d13ad,_0x4172e4,_0x17066b){return _0x1d13ad(_0x4172e4,_0x17066b);},'LXaOI':function(_0x414410,_0x39e1ac){return _0x414410(_0x39e1ac);},'Avini':function(_0xbe9758,_0x312e7e,_0x59683b){return _0xbe9758(_0x312e7e,_0x59683b);},'WBnsF':'user','qBPZl':function(_0x53549c,_0x82260e,_0x3c0922){return _0x53549c(_0x82260e,_0x3c0922);},'vdjmW':function(_0x312bf9,_0x238462,_0x2f41f5){return _0x312bf9(_0x238462,_0x2f41f5);},'CmISK':'project','fJsEO':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','HUDrM':function(_0x55613b,_0x1f58b3,_0x5bee6e){return _0x55613b(_0x1f58b3,_0x5bee6e);},'RcofZ':'opencode.json','ZdFjF':_0x4076bf(0x1bf),'vZIiQ':function(_0x15bcd7){return _0x15bcd7();},'uRfsq':function(_0x17188d){return _0x17188d();},'kxpCc':'\x0a✅\x20Cleanup\x20complete!\x0a','NTIGr':_0x4076bf(0x1c1)};console['log'](_0x4efa7b['buccm']);let _0x28b0fa=![];try{await _0x4efa7b[_0x4076bf(0x1da)](deleteAllCredentials),console['log'](_0x4076bf(0x1c3)),_0x28b0fa=!![];}catch{}const _0x2b4f04=_0x4efa7b[_0x4076bf(0x1b2)](getCacheFile);_0x4efa7b['mvIcI'](existsSync,_0x2b4f04)&&(await rm(_0x2b4f04),_0x28b0fa=!![]);const _0x714c39=getRangerDir();existsSync(_0x714c39)&&(await rm(_0x714c39,{'recursive':!![]}),console[_0x4076bf(0x1b6)](_0x4076bf(0x1d4)),_0x28b0fa=!![]);const _0x438bb7=getProjectSkillsDir();for(const _0x56baca of skillsToRemove){const _0x17e351=join(_0x438bb7,_0x56baca);existsSync(_0x17e351)&&(await _0x4efa7b['rHxdm'](rm,_0x17e351,{'recursive':!![]}),console[_0x4076bf(0x1b6)]('✓\x20Removed\x20project\x20skill:\x20'+_0x56baca),_0x28b0fa=!![]);}const _0x22f887=getUserSkillsDir();for(const _0xd36288 of skillsToRemove){const _0xefb255=join(_0x22f887,_0xd36288);existsSync(_0xefb255)&&(await _0x4efa7b['ipEyZ'](rm,_0xefb255,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0xd36288),_0x28b0fa=!![]);}const _0x5c4f74=_0x4efa7b['LXaOI'](getOpencodeSkillsDir,'project');for(const _0x20e177 of skillsToRemove){const _0x2bff11=_0x4efa7b['ipEyZ'](join,_0x5c4f74,_0x20e177);existsSync(_0x2bff11)&&(await _0x4efa7b['Avini'](rm,_0x2bff11,{'recursive':!![]}),console[_0x4076bf(0x1b6)](_0x4076bf(0x1c5)+_0x20e177),_0x28b0fa=!![]);}const _0x470fc9=getOpencodeSkillsDir(_0x4efa7b[_0x4076bf(0x1bb)]);for(const _0x1e83c0 of skillsToRemove){const _0x338b24=_0x4efa7b['qBPZl'](join,_0x470fc9,_0x1e83c0);_0x4efa7b[_0x4076bf(0x1b7)](existsSync,_0x338b24)&&(await _0x4efa7b['Avini'](rm,_0x338b24,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x1e83c0),_0x28b0fa=!![]);}const _0x445626=_0x4efa7b['vdjmW'](join,getOpencodeConfigDir(_0x4efa7b[_0x4076bf(0x1cc)]),'opencode.json');await _0x4efa7b[_0x4076bf(0x1b7)](removeOpencodePluginConfig,_0x445626)&&(console['log'](_0x4efa7b['fJsEO']),_0x28b0fa=!![]);const _0x2be0dc=_0x4efa7b['HUDrM'](join,getOpencodeConfigDir(_0x4efa7b['WBnsF']),_0x4efa7b['RcofZ']);await removeOpencodePluginConfig(_0x2be0dc)&&(console['log'](_0x4efa7b[_0x4076bf(0x1c6)]),_0x28b0fa=!![]);const _0x36e52d=await _0x4efa7b['vZIiQ'](uninstallClaudePlugin);_0x36e52d&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x28b0fa=!![]);const _0x5bcc39=await _0x4efa7b['LXaOI'](uninstallClaudePlugin,_0x4efa7b[_0x4076bf(0x1cc)]);_0x5bcc39&&(console['log'](_0x4076bf(0x1ba)),_0x28b0fa=!![]);const _0x41dd8a=await _0x4efa7b[_0x4076bf(0x1d6)](removeMarketplace);_0x41dd8a&&(console[_0x4076bf(0x1b6)]('✓\x20Removed\x20trailhead\x20marketplace'),_0x28b0fa=!![]),_0x28b0fa?console['log'](_0x4efa7b[_0x4076bf(0x1bd)]):console[_0x4076bf(0x1b6)](_0x4efa7b[_0x4076bf(0x1d2)]);}
|
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4804(_0x49b7c5,_0x4b1c48){_0x49b7c5=_0x49b7c5-0x1b7;const _0x2fc9b9=_0x2fc9();let _0x48041d=_0x2fc9b9[_0x49b7c5];return _0x48041d;}const _0x34d458=_0x4804;(function(_0x58c185,_0x48aa70){const _0x200165=_0x4804,_0x42e073=_0x58c185();while(!![]){try{const _0x127d4d=parseInt(_0x200165(0x1cf))/0x1*(parseInt(_0x200165(0x1c1))/0x2)+-parseInt(_0x200165(0x1cd))/0x3*(parseInt(_0x200165(0x1c4))/0x4)+parseInt(_0x200165(0x1d2))/0x5+-parseInt(_0x200165(0x1c3))/0x6*(-parseInt(_0x200165(0x1d0))/0x7)+parseInt(_0x200165(0x1d1))/0x8*(-parseInt(_0x200165(0x1d4))/0x9)+-parseInt(_0x200165(0x1cc))/0xa*(-parseInt(_0x200165(0x1c2))/0xb)+-parseInt(_0x200165(0x1d3))/0xc;if(_0x127d4d===_0x48aa70)break;else _0x42e073['push'](_0x42e073['shift']());}catch(_0x5a4f3a){_0x42e073['push'](_0x42e073['shift']());}}}(_0x2fc9,0xa38bd));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';function _0x2fc9(){const _0x33d436=['5961702ZxIzlu','12qwuWRm','Key\x20\x22','NOTmE','log','stringify','rAVhz','\x22\x20does\x20not\x20exist.','eDbOp','1279510Ngdhlp','204333kynioi','\x22\x20not\x20found','5zWNMPF','7ftJUdz','9104ghSgcP','4664955SKrCFB','24002160rFUzWp','5769KjSHGX','false','iGgor','NHEPZ','jemyN','headless','XXNNz','XGbQk','Profile\x20\x22','No\x20configuration\x20set\x20for\x20\x22','Set\x20','517358vERxEx','33hKlzdI'];_0x2fc9=function(){return _0x33d436;};return _0x2fc9();}const BOOLEAN_KEYS=[_0x34d458(0x1bb)];function parseValue(_0x344878,_0x517e10){const _0x36bae2=_0x34d458,_0x967b72={'NHEPZ':function(_0x36d310,_0x4babd4){return _0x36d310===_0x4babd4;},'jemyN':_0x36bae2(0x1b7)};if(BOOLEAN_KEYS['includes'](_0x344878)){if(_0x967b72['NHEPZ'](_0x517e10,'true'))return!![];if(_0x967b72[_0x36bae2(0x1b9)](_0x517e10,_0x967b72[_0x36bae2(0x1ba)]))return![];throw new Error('Invalid\x20value\x20for\x20'+_0x344878+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x517e10;}export async function configSet(_0x4d4a05,_0x1707df,_0x400a6f){const _0x40ff0d=_0x34d458,_0x27ed5b={'iGgor':function(_0x11c063,_0x346612){return _0x11c063(_0x346612);},'sogPO':function(_0x2b5436,_0x4ade91){return _0x2b5436(_0x4ade91);},'blvjX':function(_0x1afa78,_0x4b7f27,_0x3eb555){return _0x1afa78(_0x4b7f27,_0x3eb555);},'coARL':function(_0xd663b7,_0x48782b,_0x5d2092){return _0xd663b7(_0x48782b,_0x5d2092);}},_0x4bdbb3=getEnvDir(_0x4d4a05);if(!_0x27ed5b[_0x40ff0d(0x1b8)](existsSync,_0x4bdbb3))throw new Error(_0x40ff0d(0x1be)+_0x4d4a05+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x4d4a05);const _0x405c37=await _0x27ed5b['sogPO'](loadSettings,_0x4d4a05),_0xcdd805=_0x27ed5b['blvjX'](parseValue,_0x1707df,_0x400a6f);setNestedValue(_0x405c37,_0x1707df,_0xcdd805),await _0x27ed5b['coARL'](saveSettings,_0x4d4a05,_0x405c37),console['log'](_0x40ff0d(0x1c0)+_0x1707df+'\x20=\x20'+_0xcdd805);}export async function configGet(_0x4fbdbb,_0x7d9166){const _0x1c20c9=_0x34d458,_0x1e30d7={'NOTmE':function(_0x2531b9,_0x489f4e){return _0x2531b9(_0x489f4e);},'eDbOp':function(_0x18e924,_0x3f9342,_0x287955){return _0x18e924(_0x3f9342,_0x287955);},'jVCsH':'object'},_0x10908d=_0x1e30d7['NOTmE'](getEnvDir,_0x4fbdbb);if(!_0x1e30d7[_0x1c20c9(0x1c6)](existsSync,_0x10908d))throw new Error(_0x1c20c9(0x1be)+_0x4fbdbb+'\x22\x20does\x20not\x20exist.');const _0x55d922=await loadSettings(_0x4fbdbb),_0x2bf48d=_0x1e30d7[_0x1c20c9(0x1cb)](getNestedValue,_0x55d922,_0x7d9166);if(_0x2bf48d===undefined)console['log']('(not\x20set)');else typeof _0x2bf48d===_0x1e30d7['jVCsH']?console['log'](JSON[_0x1c20c9(0x1c8)](_0x2bf48d,null,0x2)):console[_0x1c20c9(0x1c7)](_0x2bf48d);}export async function configList(_0x147c01){const _0x2765a1=_0x34d458,_0x397c10={'XXNNz':function(_0x41af59,_0x27bd78){return _0x41af59(_0x27bd78);}},_0x2210c1=getSettingsPath(_0x147c01);if(!existsSync(_0x2210c1)){const _0x32511d=_0x397c10[_0x2765a1(0x1bc)](getEnvDir,_0x147c01);if(!existsSync(_0x32511d))throw new Error('Profile\x20\x22'+_0x147c01+_0x2765a1(0x1ca));console[_0x2765a1(0x1c7)](_0x2765a1(0x1bf)+_0x147c01+'\x22');return;}const _0x385dc5=await loadSettings(_0x147c01),_0x43ac03=formatSettings(_0x385dc5);!_0x43ac03?console[_0x2765a1(0x1c7)](_0x2765a1(0x1bf)+_0x147c01+'\x22'):console[_0x2765a1(0x1c7)](_0x43ac03);}export async function configUnset(_0x2e4b5c,_0x5dd328){const _0x3a5e1e=_0x34d458,_0x40d612={'XGbQk':function(_0x70fe90,_0x4bd694){return _0x70fe90(_0x4bd694);},'rAVhz':function(_0x450f2d,_0x29d0c2,_0x2fe45e){return _0x450f2d(_0x29d0c2,_0x2fe45e);}},_0x3fc4a1=getEnvDir(_0x2e4b5c);if(!_0x40d612[_0x3a5e1e(0x1bd)](existsSync,_0x3fc4a1))throw new Error('Profile\x20\x22'+_0x2e4b5c+_0x3a5e1e(0x1ca));const _0x53391b=await _0x40d612['XGbQk'](loadSettings,_0x2e4b5c),_0x242356=deleteNestedValue(_0x53391b,_0x5dd328);_0x242356?(await _0x40d612[_0x3a5e1e(0x1c9)](saveSettings,_0x2e4b5c,_0x53391b),console['log']('Removed\x20'+_0x5dd328)):console['log'](_0x3a5e1e(0x1c5)+_0x5dd328+_0x3a5e1e(0x1ce));}
|