@ranger-testing/ranger-cli 2.1.7 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/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/stitchWebmFiles.js +1 -0
- 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 _0x41bc93=_0x4854;function _0x4854(_0xb5cb3e,_0x51c0d5){_0xb5cb3e=_0xb5cb3e-0x84;const _0x39728c=_0x3972();let _0x485432=_0x39728c[_0xb5cb3e];return _0x485432;}(function(_0xbf549f,_0xf805f5){const _0x2d37c1=_0x4854,_0x5bf5b3=_0xbf549f();while(!![]){try{const _0x2b61ee=parseInt(_0x2d37c1(0x1a9))/0x1+-parseInt(_0x2d37c1(0xd5))/0x2*(parseInt(_0x2d37c1(0x144))/0x3)+-parseInt(_0x2d37c1(0x10b))/0x4*(parseInt(_0x2d37c1(0xe7))/0x5)+-parseInt(_0x2d37c1(0xfb))/0x6+-parseInt(_0x2d37c1(0xd3))/0x7*(parseInt(_0x2d37c1(0x1d3))/0x8)+parseInt(_0x2d37c1(0xd6))/0x9*(-parseInt(_0x2d37c1(0x155))/0xa)+parseInt(_0x2d37c1(0x1a5))/0xb*(parseInt(_0x2d37c1(0x13a))/0xc);if(_0x2b61ee===_0xf805f5)break;else _0x5bf5b3['push'](_0x5bf5b3['shift']());}catch(_0x56b84d){_0x5bf5b3['push'](_0x5bf5b3['shift']());}}}(_0x3972,0x81429));import _0x11fd96 from'dotenv';function _0x3972(){const _0x37d45d=['ehBMR','XdoqK','LIsEk','feature\x20show','aHIHm','114EhbBvO','pSNDF','debug-outcome','ranger\x20feature\x20delete','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','ZjYHR','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','AdiLn','RLmid','wWPsr','name','ranger\x20config\x20set','Environment\x20name','offset','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','restore\x20<id>','number','54740qBwygh','config','Name\x20of\x20the\x20profile','ranger\x20env\x20update','checklist','zGmjI','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','Scenario\x20description','feature\x20resume','qhToD','status','scope','TqHXm','Profile\x20name','strictCommands','rOIFi','UERpc','nYhsD','pdIGU','ZgFfd','UqatY','YYTkt','Wprzw','rJPdd','NXIxa','create\x20<name>','ranger\x20create','message','feature','Restore\x20a\x20soft-deleted\x20feature\x20review','show','GlsNk','Skip\x20Chromium\x20browser\x20installation','ranger\x20use','ranger\x20config\x20unset','New\x20scenario\x20description','Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','qkMao','LWHdA','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','hook:enable','description','ranger\x20add-scenario','ymMWE','Vmbmf','get-feedback\x20[id]','kVLjB','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','current-branch','mWHzY','AQZLa','config\x20get','start-path','add\x20env\x20<env-name>','Azqkx','Feature\x20review\x20name','cSZJW','Add\x20profile\x20configuration','project','base-url','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','partial','GaiVR','RaEfZ','yzDFx','HwtxW','LKILb','ynhrp','encrypt\x20<profile>','item','scenario','AReHk','vsoru','HhYVS','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','evaluationReason','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','delete','List\x20all\x20feature\x20reviews','config\x20unset','26499eCixmY','array','get-review\x20[id]','OZSRb','673697uytSgA','yaAxv','Documentation:\x0a','Feature\x20review\x20ID','JEezg','Scenario\x20number\x20to\x20edit\x20(1-based)','ranger\x20go','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','map','PCpeW','VFWxg','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','vtrPX','zNrAg','ranger\x20feature\x20restore','ranger\x20delete','scriptName','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','ZwjxK','letdj','report\x20[id]','SOERc','ngWcM','QDUAW','BhZBI','some','WWrtX','bsKPH','ranger\x20config\x20list','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','command','clean','yyOTM','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','repeat','debug-address-comments','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','Remove\x20a\x20config\x20value','ranger\x20setup','Config\x20key\x20to\x20remove','show\x20[id]','1352504mBjOwO','hDtVq','trackCommandError','JYGWr','MOvzA','fdnsu','value','Reason:\x20','lcRiM','AiSVG','ranger\x20start','JWZfa','Ranger\x20API\x20token','VfTke','env','QyEZr','INePB','You\x20must\x20specify\x20a\x20config\x20subcommand','blocked','--profile','JjeJL','restore','use','slice','limit','mmCnH','jqqpd','wUbsQ','ZQNpt','ranger\x20feature\x20show','zaxMq','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','task','XVAhn','ORMZl','profile\x20update','IznaZ','cdp-endpoint','Number\x20of\x20feature\x20reviews\x20to\x20skip','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','tHokr','ranger\x20feature\x20add-checklist-item','QNNPB','profile\x20use','ranger\x20get-review','--item','Prtnd','profile\x20config\x20unset','boolean','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','login','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','YwrTD','QEPtx','profile-name','mDSGz','aUalo','Rgxbq','Eukpu','RIemb','option','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','TaFML','lEKoc','resume','TgAgx','FbkKP','CElxz','Install\x20Ranger\x20skills','delete\x20[id]','start\x20[token]','oFDuJ','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Vavnl','ranger\x20profile\x20config\x20set','resume\x20[id]','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','Unknown\x20error','add-scenario\x20<description>','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','feature\x20create','failed','evaluation','\x0aUnknown\x20command:\x20','qjEWK','iDegG','VkkKT','feature\x20get-feedback','exitCode','ranger\x20feature\x20get-feedback','smvsX','HLWmz','NUuVB','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','cFbmv','ZSUik','TOwLO','--task','7FESkAt','yOzTF','54736DfDpIe','1728bDmjEr','XlPco','summary','ZGDJl','incomplete','profile','vZkzx','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','include-deleted','XiLvI','key','ranger\x20config\x20get','log','--scenario','Include\x20soft-deleted\x20feature\x20reviews','length','2224535pjBhzW','gRGrE','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','OtnEE','session-id','sNYqh','profile\x20add','force','verified','TdmIP','ErIgh','skillup','usage','LXPrI','DAbFf','oJcel','wnnjp','Install\x20scope\x20for\x20skills','Name\x20of\x20the\x20profile\x20to\x20update','StTdD','1821522oyvgtj','user','get\x20<env>\x20<key>','ranger\x20list','token','feature\x20delete','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','OEkKK','.env','update','\x20PARTIAL','root','pgXDF','GKjbn','wbOdE','cTBFZ','4uAIGQo','HVFZA','Gshvf','profile\x20config\x20list','error','skip-auth','profile\x20encrypt-auth','eSXbv','opencode','skip-chromium','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','OpWur','demandCommand','string','add\x20<profile-name>','model','kUgmv','rUEto','argv','list','ooLtC','feature\x20add-checklist-item','You\x20must\x20specify\x20a\x20profile\x20subcommand','eHmtP','url','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','ldYBf','Config\x20value','list\x20<env>','\x0aIssues:','sQjDq','LZRrp','start','IqzTD','wIUpR','hook:disable','\x20\x20https://docs.ranger.net\x0a','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','gxTiK','env-name','set\x20<env>\x20<key>\x20<value>','positional','ranger\x20add\x20env','IgBIa','ZDXxk','Config\x20key','claude','14268dDiirA','profile\x20config\x20set','setup\x20[token]','setup-ci','flag'];_0x3972=function(){return _0x37d45d;};return _0x3972();}import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x346a57=_0x4854,_0x490f8c={'TdmIP':function(_0x276b40,_0x29e0e1){return _0x276b40(_0x29e0e1);},'CjMnz':function(_0xbf98c5,_0x365ab8,_0x3cafe9){return _0xbf98c5(_0x365ab8,_0x3cafe9);},'IqzTD':'.ranger','IgBIa':function(_0xadc29f,_0x52edc7,_0x18c3f5){return _0xadc29f(_0x52edc7,_0x18c3f5);},'CElxz':'.env'};let _0x56eb52=process['cwd']();const _0x5df103=parse(_0x56eb52)[_0x346a57(0x106)];while(_0x56eb52!==_0x5df103){if(_0x490f8c[_0x346a57(0xf0)](existsSync,_0x490f8c['CjMnz'](join,_0x56eb52,_0x490f8c[_0x346a57(0x12c)]))||_0x490f8c[_0x346a57(0xf0)](existsSync,_0x490f8c[_0x346a57(0x136)](join,_0x56eb52,_0x490f8c[_0x346a57(0xb4)])))return _0x56eb52;_0x56eb52=dirname(_0x56eb52);}return process['cwd']();}_0x11fd96['config']({'path':join(findProjectRoot(),_0x41bc93(0x103))});import _0x5d2eb1 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']('unhandledRejection',async _0x1147b2=>{const _0xa930b1=_0x41bc93,_0x4a6882=getCurrentCollector();_0x4a6882&&await _0x4a6882[_0xa930b1(0x1d5)](_0x1147b2),process[_0xa930b1(0xc9)]=0x1;});const rawArgs=process[_0x41bc93(0x11d)]['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=_0x41bc93(0x101),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(_0x271945,_0xc15695){console['error']('\x0a'+_0x271945+'\x20is\x20now\x20'+_0xc15695+'\x0a');}function argUsed(_0x41f591){const _0x3d4551=_0x41bc93;return rawArgs[_0x3d4551(0x1c3)](_0x417e7b=>_0x417e7b===_0x41f591||_0x417e7b['startsWith'](_0x41f591+'='));}function warnFlagRenamed(_0x1554e6,_0xda8de5,_0x3a63c9){argUsed(_0xda8de5)&&warnRenamed(_0x1554e6+'\x20'+_0xda8de5,_0x1554e6+'\x20'+_0x3a63c9);}async function runGoCommand(_0x4f1210,_0x161ee7=![]){const _0x43108b=_0x41bc93,_0x5415e7={'KchCZ':function(_0x5c04b6,_0x2addf6,_0x4ed078){return _0x5c04b6(_0x2addf6,_0x4ed078);},'fmgGx':'ranger\x20verify-feature','tHokr':_0x43108b(0x1af),'TaFML':'--env','dBrhB':_0x43108b(0x84),'zaxMq':function(_0x36e2af,_0x4a423b,_0x2c834c,_0xa95b67){return _0x36e2af(_0x4a423b,_0x2c834c,_0xa95b67);},'ZQNpt':_0x43108b(0xd2),'cFyny':'--notes','BbOol':_0x43108b(0x9e),'tYWPU':'--scenario','FbkKP':_0x43108b(0x13e),'Jdbiy':'config','yyOTM':'start-path','JWZfa':'debug-outcome','tWTFU':function(_0x3b40e2,_0x46f6c8){return _0x3b40e2===_0x46f6c8;},'mDSGz':'incomplete','nYhsD':_0x43108b(0x105),'XlPco':'blocked','BhZBI':'\x20BLOCKED','Azqkx':'\x20FAILED','rOIFi':function(_0x45fb20,_0x7463e4){return _0x45fb20===_0x7463e4;}};_0x161ee7&&_0x5415e7['KchCZ'](warnRenamed,_0x5415e7['fmgGx'],'ranger\x20go');warnFlagRenamed(_0x5415e7[_0x43108b(0x99)],_0x5415e7[_0x43108b(0xaf)],_0x5415e7['dBrhB']),_0x5415e7[_0x43108b(0x8f)](warnFlagRenamed,_0x5415e7[_0x43108b(0x99)],_0x5415e7[_0x43108b(0x8d)],_0x5415e7['cFyny']),warnFlagRenamed(_0x5415e7['tHokr'],_0x5415e7['BbOol'],_0x5415e7['tYWPU']);const _0x56a06b=await loadRangerConfig(),_0x5644a8=_0x4f1210['model'],_0x36be3e=_0x56a06b['model'],_0x115177=_0x5644a8??_0x36be3e,_0x5ddaae=_0x5644a8?_0x5415e7[_0x43108b(0xb3)]:_0x36be3e?_0x5415e7['Jdbiy']:'default',_0x564188=await verifyFeature({'profile':_0x4f1210['profile']??_0x4f1210['env'],'notes':_0x4f1210['notes']??_0x4f1210['task'],'scenario':_0x4f1210[_0x43108b(0x19b)]??_0x4f1210['item'],'startPath':_0x4f1210[_0x5415e7[_0x43108b(0x1ca)]],'debugOutcome':_0x4f1210[_0x5415e7[_0x43108b(0x1de)]],'debugAddressComments':_0x4f1210[_0x43108b(0x1cd)],'headed':_0x4f1210['headed'],'verifyModel':_0x115177,'verifyModelInput':_0x115177,'verifyModelSource':_0x5ddaae});console['log']('\x0a'+'='['repeat'](0x3c)),console['log'](_0x564188['evaluation']==='verified'?'\x20VERIFIED':_0x5415e7['tWTFU'](_0x564188['evaluation'],_0x5415e7[_0x43108b(0xa8)])?'\x20INCOMPLETE':_0x564188['evaluation']===_0x43108b(0x192)?_0x5415e7[_0x43108b(0x166)]:_0x564188['evaluation']===_0x5415e7[_0x43108b(0xd7)]?_0x5415e7[_0x43108b(0x1c2)]:_0x5415e7[_0x43108b(0x18b)]),console['log']('='[_0x43108b(0x1cc)](0x3c)),console[_0x43108b(0xe3)]('Summary:\x20'+_0x564188[_0x43108b(0xd8)]),console[_0x43108b(0xe3)]('Evaluation:\x20'+_0x564188['evaluation']),console[_0x43108b(0xe3)](_0x43108b(0x1da)+_0x564188[_0x43108b(0x1a0)]),_0x564188['issues']?.[_0x43108b(0xe6)]&&(console[_0x43108b(0xe3)](_0x43108b(0x128)),_0x564188['issues']['forEach']((_0x1da670,_0x360c6a)=>{const _0xa991d1=_0x43108b;console[_0xa991d1(0xe3)]('\x0a'+(_0x360c6a+0x1)+'.\x20['+_0x1da670['severity']+']\x20'+_0x1da670[_0xa991d1(0x17e)]);})),process['exit'](_0x5415e7[_0x43108b(0x164)](_0x564188[_0x43108b(0xc3)],_0x43108b(0xef))?0x0:0x1);}_0x5d2eb1(process[_0x41bc93(0x11d)][_0x41bc93(0x88)](0x2))[_0x41bc93(0x1ba)]('ranger')[_0x41bc93(0xf3)](TOP_LEVEL_HELP)['version'](getCurrentVersion())['command'](_0x41bc93(0x16e),'Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x1bbc0e=>{const _0x564681=_0x41bc93,_0x2dd343={'DAbFf':'string','BPdrQ':_0x564681(0x18c),'SOERc':_0x564681(0x17e),'HwtxW':_0x564681(0x19b),'cFbmv':_0x564681(0x19f),'ErIgh':_0x564681(0x1a6)};return _0x1bbc0e[_0x564681(0x134)](_0x564681(0x14e),{'type':_0x2dd343[_0x564681(0xf5)],'description':_0x2dd343['BPdrQ'],'demandOption':!![]})[_0x564681(0xad)](_0x2dd343[_0x564681(0x1bf)],{'type':_0x2dd343['DAbFf'],'alias':'d','description':'Feature\x20review\x20description'})['option'](_0x2dd343[_0x564681(0x196)],{'type':'array','alias':'c','description':_0x2dd343[_0x564681(0xcf)]})['option'](_0x564681(0x159),{'type':_0x2dd343[_0x564681(0xf1)],'hidden':!![]});},async _0x1e3d7d=>{const _0x4ecabe=_0x41bc93,_0xf74320={'aUalo':function(_0x3b96bd,_0x2d165f,_0x4e4f0d,_0x45c550){return _0x3b96bd(_0x2d165f,_0x4e4f0d,_0x45c550);},'eHmtP':_0x4ecabe(0x16f),'WWrtX':'--checklist','EBtkr':'--scenario','zppWl':function(_0x2d7dc8,_0x4cd4a1,_0x4f9218){return _0x2d7dc8(_0x4cd4a1,_0x4f9218);},'zYTIY':'create'};_0xf74320[_0x4ecabe(0xa9)](warnFlagRenamed,_0xf74320[_0x4ecabe(0x122)],_0xf74320[_0x4ecabe(0x1c4)],_0xf74320['EBtkr']);const _0x37f70d=_0x1e3d7d['scenario']||_0x1e3d7d[_0x4ecabe(0x159)];await _0xf74320['zppWl'](withTelemetry,_0xf74320['zYTIY'],()=>featureCreate(_0x1e3d7d[_0x4ecabe(0x14e)],{'description':_0x1e3d7d[_0x4ecabe(0x17e)],'scenarios':_0x37f70d}));})['command'](_0x41bc93(0x11e),_0x41bc93(0x1a3),_0x5b4387=>{const _0x27df08=_0x41bc93,_0x4c7b88={'jQhHt':_0x27df08(0x185),'VFWxg':_0x27df08(0x154),'PCpeW':_0x27df08(0x97),'smvsX':'boolean'};return _0x5b4387['option'](_0x4c7b88['jQhHt'],{'type':'boolean','description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option'](_0x27df08(0x89),{'type':_0x4c7b88[_0x27df08(0x1b4)],'alias':'l','description':_0x27df08(0x115),'default':0xa})[_0x27df08(0xad)](_0x27df08(0x151),{'type':_0x4c7b88[_0x27df08(0x1b4)],'alias':'o','description':_0x4c7b88[_0x27df08(0x1b3)],'default':0x0})['option'](_0x27df08(0xdf),{'type':_0x4c7b88[_0x27df08(0xcb)],'alias':'d','description':_0x27df08(0xe5),'default':![]});},async _0x320d4b=>{const _0x80ece=_0x41bc93,_0x1445fa={'GaiVR':'list'};await withTelemetry(_0x1445fa[_0x80ece(0x193)],()=>featureList({'currentBranch':_0x320d4b[_0x80ece(0x185)],'limit':_0x320d4b[_0x80ece(0x89)],'offset':_0x320d4b[_0x80ece(0x151)],'includeDeleted':_0x320d4b[_0x80ece(0xdf)]}));})['command']('show\x20[id]','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x52b29e=>{const _0x4b9c36=_0x41bc93;return _0x52b29e['positional']('id',{'type':'string','description':_0x4b9c36(0x1ac)});},async _0x198a47=>{const _0x1e61de=_0x41bc93;await withTelemetry(_0x1e61de(0x173),()=>featureShow(_0x198a47['id']));})['command'](_0x41bc93(0xbc),'Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x242e12=>{const _0x297e6e=_0x41bc93,_0x2e1151={'XTvwQ':_0x297e6e(0x1b5)};return _0x242e12[_0x297e6e(0x134)]('id',{'type':'string','description':_0x2e1151['XTvwQ']});},async _0x46dfba=>{const _0x316be8=_0x41bc93,_0x23561a={'ZjrDw':_0x316be8(0xb1)};await withTelemetry(_0x23561a['ZjrDw'],()=>featureResume(_0x46dfba['id']));})[_0x41bc93(0x1c8)](_0x41bc93(0xbf),_0x41bc93(0xa2),_0x4363c1=>{const _0x2d6331=_0x41bc93,_0x25aa3c={'NLXCo':_0x2d6331(0x118),'XhudQ':_0x2d6331(0xc0)};return _0x4363c1[_0x2d6331(0x134)](_0x2d6331(0x17e),{'type':_0x25aa3c['NLXCo'],'description':_0x2d6331(0x15c),'demandOption':!![]})['option']('id',{'type':'string','description':_0x25aa3c['XhudQ']});},async _0x44cd92=>{const _0x28b603=_0x41bc93,_0x5a0b3d={'HVFZA':'add-scenario'};await withTelemetry(_0x5a0b3d[_0x28b603(0x10c)],()=>featureAddScenario(_0x44cd92['description'],_0x44cd92['id']));})[_0x41bc93(0x1c8)]('edit-scenario\x20<description>',_0x41bc93(0x124),_0x57f53f=>{const _0x651402=_0x41bc93,_0x3928a6={'YYTkt':'description','tOmNb':_0x651402(0x178),'nNqdW':_0x651402(0x19b),'RmqWF':_0x651402(0x154),'CUifX':_0x651402(0x1ae),'vTVUd':_0x651402(0x118)};return _0x57f53f[_0x651402(0x134)](_0x3928a6[_0x651402(0x16a)],{'type':'string','description':_0x3928a6['tOmNb'],'demandOption':!![]})[_0x651402(0xad)](_0x3928a6['nNqdW'],{'type':_0x3928a6['RmqWF'],'description':_0x3928a6['CUifX'],'demandOption':!![]})[_0x651402(0xad)]('id',{'type':_0x3928a6['vTVUd'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x3f71e8=>{const _0x207ef0=_0x41bc93,_0x2abe1e={'GKjbn':'edit-scenario'};await withTelemetry(_0x2abe1e[_0x207ef0(0x108)],()=>featureEditScenario(_0x3f71e8[_0x207ef0(0x17e)],{'id':_0x3f71e8['id'],'scenario':_0x3f71e8['scenario']}));})[_0x41bc93(0x1c8)](_0x41bc93(0x1be),_0x41bc93(0x1b0),_0x4dceff=>{const _0x1ce0f6=_0x41bc93,_0x1d3656={'JqOIf':_0x1ce0f6(0x118),'aCWTp':'exclude-scenario','RLmid':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x4dceff[_0x1ce0f6(0x134)]('id',{'type':_0x1d3656['JqOIf'],'description':_0x1ce0f6(0x1ac)})['option'](_0x1d3656['aCWTp'],{'type':_0x1ce0f6(0x1a6),'description':_0x1d3656[_0x1ce0f6(0x14c)]});},async _0x50d4a5=>{const _0x599951=_0x41bc93,_0x5774df={'iDegG':'exclude-scenario','CBFim':function(_0x48d57c,_0xde8355,_0x4e3a06){return _0x48d57c(_0xde8355,_0x4e3a06);}},_0x554367=_0x50d4a5[_0x5774df[_0x599951(0xc6)]],_0x4951da=_0x554367?_0x554367[_0x599951(0x1b2)](_0x371b8e=>Number(_0x371b8e)):undefined;await _0x5774df['CBFim'](withTelemetry,'report',()=>featureReportPrDescription(_0x50d4a5['id'],{'excludeScenarios':_0x4951da}));})['command'](_0x41bc93(0x1a7),_0x41bc93(0xde),_0x39484b=>{const _0x1f9505=_0x41bc93,_0x4ae0f5={'YGqxp':'string','gxTiK':_0x1f9505(0xc0)};return _0x39484b[_0x1f9505(0x134)]('id',{'type':_0x4ae0f5['YGqxp'],'description':_0x4ae0f5[_0x1f9505(0x131)]});},async _0x4f1d47=>{const _0x467041=_0x41bc93,_0x3e7c22={'wbOdE':function(_0x22b671,_0x5afc3e,_0x48af9c){return _0x22b671(_0x5afc3e,_0x48af9c);},'ZZkhW':'get-review'};await _0x3e7c22[_0x467041(0x109)](withTelemetry,_0x3e7c22['ZZkhW'],()=>featureGetReview(_0x4f1d47['id']));})[_0x41bc93(0x1c8)](_0x41bc93(0xb6),'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x20d659=>{const _0x325f25=_0x41bc93,_0x44053e={'AYLvi':'string','MdOKc':'Feature\x20review\x20ID'};return _0x20d659[_0x325f25(0x134)]('id',{'type':_0x44053e['AYLvi'],'description':_0x44053e['MdOKc']});},async _0x36cdbd=>{const _0x53248b=_0x41bc93,_0x4232e9={'zGmjI':_0x53248b(0x1a2)};await withTelemetry(_0x4232e9[_0x53248b(0x15a)],()=>featureDelete(_0x36cdbd['id']));})[_0x41bc93(0x1c8)](_0x41bc93(0x153),_0x41bc93(0x172),_0x3c7af1=>{const _0x2c47c1=_0x41bc93,_0x17e5e9={'vtrPX':'string'};return _0x3c7af1[_0x2c47c1(0x134)]('id',{'type':_0x17e5e9[_0x2c47c1(0x1b6)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0xb9e46c=>{const _0x4eeb45=_0x41bc93,_0x48d84c={'uMjdq':function(_0x4a615e,_0x17d699,_0x1ea3fc){return _0x4a615e(_0x17d699,_0x1ea3fc);},'tsbyG':_0x4eeb45(0x86)};await _0x48d84c['uMjdq'](withTelemetry,_0x48d84c['tsbyG'],()=>featureRestore(_0xb9e46c['id']));})['command'](_0x41bc93(0x13c),'Initialize\x20Ranger\x20in\x20your\x20project',_0x24dedc=>{const _0x581380=_0x41bc93,_0x1a1da8={'JIRpp':_0x581380(0xff),'oTlLJ':_0x581380(0x114),'qkMao':_0x581380(0xa1),'FLIaj':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','wIUpR':'scope','loypV':'project','cSZJW':'string','NXIxa':_0x581380(0xb9),'cPwNv':'force','nnBwx':_0x581380(0x130)};return _0x24dedc[_0x581380(0x134)](_0x1a1da8['JIRpp'],{'type':'string','description':_0x581380(0x1cb)})[_0x581380(0xad)](_0x1a1da8['oTlLJ'],{'type':_0x1a1da8[_0x581380(0x17a)],'description':_0x1a1da8['FLIaj'],'default':![]})[_0x581380(0xad)](_0x1a1da8[_0x581380(0x12d)],{'type':_0x581380(0x118),'choices':['user',_0x1a1da8['loypV']],'description':_0x581380(0x14a)})['option']('url',{'type':_0x1a1da8[_0x581380(0x18d)],'description':_0x1a1da8[_0x581380(0x16d)]})[_0x581380(0xad)](_0x1a1da8['cPwNv'],{'type':_0x1a1da8['qkMao'],'description':_0x1a1da8['nnBwx'],'default':![]})['option'](_0x581380(0x113),{'type':_0x1a1da8[_0x581380(0x17a)],'description':_0x581380(0xce),'default':![]});},async _0x1deafc=>{const _0x26be23=_0x41bc93;await withTelemetry(_0x26be23(0x12b),_0x16af89=>start(_0x1deafc['token'],{'skipChromium':_0x1deafc[_0x26be23(0x114)],'scope':_0x1deafc[_0x26be23(0x160)],'url':_0x1deafc[_0x26be23(0x123)],'force':_0x1deafc[_0x26be23(0xee)],'opencode':_0x1deafc[_0x26be23(0x113)]},_0x16af89));})['command']('setup-ci\x20<token>',_0x41bc93(0x17c),_0x59a8a8=>{const _0x36917f=_0x41bc93,_0x3ce342={'rUEto':_0x36917f(0xff),'hPPeD':_0x36917f(0x1df),'kVLjB':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','agJQT':_0x36917f(0x1a1),'FddOK':_0x36917f(0xa1),'OEkKK':_0x36917f(0x175)};return _0x59a8a8['positional'](_0x3ce342[_0x36917f(0x11c)],{'type':'string','description':_0x3ce342['hPPeD'],'demandOption':!![]})[_0x36917f(0xad)]('profile',{'type':'string','description':_0x3ce342[_0x36917f(0x183)]})['option'](_0x36917f(0x190),{'type':_0x36917f(0x118),'description':_0x3ce342['agJQT']})['option'](_0x36917f(0x114),{'type':_0x3ce342['FddOK'],'description':_0x3ce342[_0x36917f(0x102)],'default':![]});},async _0xcffcdb=>{const _0x5504e=_0x41bc93;await withTelemetry(_0x5504e(0x13d),_0x156720=>setupCi(_0xcffcdb[_0x5504e(0xff)],{'profile':_0xcffcdb['profile'],'baseUrl':_0xcffcdb['base-url'],'skipChromium':_0xcffcdb[_0x5504e(0x114)]},_0x156720));})['command'](_0x41bc93(0xa3),'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{await withTelemetry('login',()=>login());})[_0x41bc93(0x1c8)](_0x41bc93(0xf2),_0x41bc93(0xb5),_0x4c9355=>{const _0x238fb6=_0x41bc93,_0x22b84a={'RIemb':_0x238fb6(0x113),'JYGWr':_0x238fb6(0x118),'aHIHm':_0x238fb6(0x18f)};return _0x4c9355[_0x238fb6(0xad)](_0x22b84a[_0x238fb6(0xac)],{'type':'boolean','description':'Install\x20skills\x20for\x20OpenCode','default':![]})['option']('scope',{'type':_0x22b84a[_0x238fb6(0x1d6)],'choices':[_0x238fb6(0xfc),_0x22b84a[_0x238fb6(0x143)]],'description':_0x238fb6(0xf8)});},async _0x3f4b20=>{const _0xfb11a8=_0x41bc93,_0x39a292={'Oedne':function(_0x261961,_0x3adf51,_0x535171){return _0x261961(_0x3adf51,_0x535171);}},_0x1c5aed=Boolean(_0x3f4b20['opencode']);await _0x39a292['Oedne'](withTelemetry,'skillup',()=>skillup({'autoInstall':_0x3f4b20[_0xfb11a8(0x160)],'platform':_0x1c5aed?'opencode':_0xfb11a8(0x139)}));})[_0x41bc93(0x1c8)]('clean',_0x41bc93(0x90),()=>{},async()=>{const _0x5e3d9d=_0x41bc93;await withTelemetry(_0x5e3d9d(0x1c9),()=>clean());})['command'](_0x41bc93(0xdb),'Manage\x20profiles',_0x10d00d=>{const _0xf70511=_0x41bc93,_0x19eeb7={'ZwjxK':_0xf70511(0xa7),'LWHdA':'string','iwGcC':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','ZGDJl':_0xf70511(0x179),'TqHXm':'skip-auth','zNrAg':_0xf70511(0xa1),'zkQXB':_0xf70511(0x123),'LKILb':_0xf70511(0xee),'kklqu':function(_0x322963,_0xd69ea2,_0x501067,_0x139c02){return _0x322963(_0xd69ea2,_0x501067,_0x139c02);},'MbOuI':_0xf70511(0xed),'FbVTA':'cdp-endpoint','HhYVS':_0xf70511(0x157),'NmEBG':_0xf70511(0x9c),'wUbsQ':function(_0x1e1a9f,_0x3f97c2,_0x18282a){return _0x1e1a9f(_0x3f97c2,_0x18282a);},'sNYqh':function(_0x463844,_0x12af29,_0x55d483){return _0x463844(_0x12af29,_0x55d483);},'DDWvA':_0xf70511(0xf9),'vXqKU':_0xf70511(0x13b),'nTPtN':_0xf70511(0x10e),'AumMW':'value','kKpAx':'profile','LXPrI':function(_0x55ae80,_0x27d3d2,_0x1af396){return _0x55ae80(_0x27d3d2,_0x1af396);},'wEsdG':'set\x20<profile>\x20<key>\x20<value>','MHNoj':'Set\x20a\x20config\x20value','jqqpd':'list\x20<profile>','sQjDq':'List\x20all\x20config\x20for\x20a\x20profile','hezxL':_0xf70511(0x1cf),'ubXke':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','fQkMt':_0xf70511(0x119),'VfTke':_0xf70511(0x18e),'jueSC':'use\x20<profile-name>','WosQy':'Switch\x20to\x20using\x20a\x20specific\x20profile','UERpc':'Update\x20authentication\x20for\x20an\x20existing\x20profile','BaNjS':'Manage\x20profile\x20configuration'};return _0x10d00d[_0xf70511(0xf3)](PROFILE_HELP)[_0xf70511(0x1c8)](_0x19eeb7['fQkMt'],_0x19eeb7[_0xf70511(0x1e0)],_0x4995e4=>{const _0x9dda0b=_0xf70511;return _0x4995e4[_0x9dda0b(0x134)](_0x19eeb7[_0x9dda0b(0x1bc)],{'type':_0x19eeb7[_0x9dda0b(0x17b)],'description':_0x19eeb7['iwGcC'],'demandOption':!![]})['option']('ci',{'type':'boolean','description':_0x19eeb7[_0x9dda0b(0xd9)],'default':![]})[_0x9dda0b(0xad)](_0x19eeb7[_0x9dda0b(0x161)],{'type':_0x19eeb7[_0x9dda0b(0x1b7)],'description':_0x9dda0b(0xa4),'default':![]})[_0x9dda0b(0xad)](_0x19eeb7['zkQXB'],{'type':_0x19eeb7['LWHdA'],'description':_0x9dda0b(0x191)})[_0x9dda0b(0xad)](_0x19eeb7[_0x9dda0b(0x197)],{'type':_0x9dda0b(0xa1),'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x9dda0b(0x96),{'type':_0x19eeb7['LWHdA'],'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'});},async _0x23a376=>{const _0x46acb5=_0xf70511;await _0x19eeb7['kklqu'](withTelemetry,_0x19eeb7['MbOuI'],_0x4c4664=>addEnv(_0x23a376['profile-name'],{'ci':_0x23a376['ci'],'skipAuth':_0x23a376[_0x46acb5(0x110)],'url':_0x23a376[_0x46acb5(0x123)],'force':_0x23a376['force'],'cdpEndpoint':_0x23a376[_0x46acb5(0x96)]},_0x4c4664),{'isElectron':Boolean(_0x23a376[_0x19eeb7['FbVTA']])});})[_0xf70511(0x1c8)](_0x19eeb7['jueSC'],_0x19eeb7['WosQy'],_0xb2ddeb=>{const _0x315092=_0xf70511;return _0xb2ddeb[_0x315092(0x134)](_0x19eeb7['ZwjxK'],{'type':_0x19eeb7['LWHdA'],'description':_0x19eeb7[_0x315092(0x19e)],'demandOption':!![]});},async _0x30b03e=>{const _0x25a805=_0xf70511;await withTelemetry(_0x19eeb7['NmEBG'],()=>useEnv(_0x30b03e[_0x25a805(0xa7)]));})[_0xf70511(0x1c8)]('encrypt-auth\x20<profile>','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)',_0x547776=>{const _0x2110b4=_0xf70511;return _0x547776[_0x2110b4(0x134)]('profile',{'type':_0x2110b4(0x118),'description':_0x2110b4(0x162),'demandOption':!![]});},async _0x4ec63e=>{const _0x4d39ff=_0xf70511;await _0x19eeb7[_0x4d39ff(0x8c)](withTelemetry,_0x4d39ff(0x111),()=>authEncrypt(_0x4ec63e['profile']));})['command']('ls','List\x20all\x20profiles',()=>{},async()=>{const _0x515746=_0xf70511;await _0x19eeb7[_0x515746(0xec)](withTelemetry,'profile\x20ls',()=>envList());})['command']('update\x20<profile-name>',_0x19eeb7[_0xf70511(0x165)],_0x1b543a=>{const _0x1423fa=_0xf70511;return _0x1b543a[_0x1423fa(0x134)](_0x1423fa(0xa7),{'type':_0x19eeb7['LWHdA'],'description':_0x19eeb7['DDWvA'],'demandOption':!![]});},async _0x290035=>{const _0x1d36bc=_0xf70511;await withTelemetry(_0x1d36bc(0x94),_0x4d7796=>updateEnv(_0x290035[_0x1d36bc(0xa7)],_0x4d7796));})[_0xf70511(0x1c8)](_0xf70511(0x156),_0x19eeb7['BaNjS'],_0x24a1fc=>{const _0x3590f2=_0xf70511,_0x199ce7={'vZkzx':_0x3590f2(0x118),'LZRrp':_0x3590f2(0x162),'mWHzY':_0x3590f2(0xe1),'HGNfy':_0x19eeb7['AumMW'],'gBmIS':function(_0x24ff05,_0x4c8e6a,_0x165162){return _0x24ff05(_0x4c8e6a,_0x165162);},'TOwLO':_0x19eeb7['kKpAx'],'fdnsu':_0x3590f2(0x1d1),'QDUAW':function(_0x3e4d42,_0x507540,_0x49398f){const _0x3a8470=_0x3590f2;return _0x19eeb7[_0x3a8470(0xf4)](_0x3e4d42,_0x507540,_0x49398f);}};return _0x24a1fc['usage'](PROFILE_CONFIG_HELP)['command'](_0x19eeb7['wEsdG'],_0x19eeb7['MHNoj'],_0x153650=>{const _0x20bf25=_0x3590f2;return _0x153650['positional'](_0x20bf25(0xdb),{'type':_0x199ce7['vZkzx'],'description':_0x199ce7[_0x20bf25(0x12a)],'demandOption':!![]})['positional'](_0x199ce7[_0x20bf25(0x186)],{'type':_0x199ce7[_0x20bf25(0xdc)],'description':_0x20bf25(0xe9),'demandOption':!![]})['positional'](_0x199ce7['HGNfy'],{'type':_0x20bf25(0x118),'description':_0x20bf25(0x126),'demandOption':!![]});},async _0x33fec1=>{const _0x4b3423=_0x3590f2;await withTelemetry(_0x19eeb7['vXqKU'],()=>configSet(_0x33fec1[_0x4b3423(0xdb)],_0x33fec1[_0x4b3423(0xe1)],_0x33fec1[_0x4b3423(0x1d9)]));})['command']('get\x20<profile>\x20<key>','Get\x20a\x20config\x20value',_0x306671=>{const _0xbc515c=_0x3590f2;return _0x306671['positional'](_0xbc515c(0xdb),{'type':'string','description':_0x199ce7[_0xbc515c(0x12a)],'demandOption':!![]})[_0xbc515c(0x134)]('key',{'type':'string','description':'Config\x20key','demandOption':!![]});},async _0x19f070=>{const _0x28afa7=_0x3590f2;await _0x199ce7['gBmIS'](withTelemetry,'profile\x20config\x20get',()=>configGet(_0x19f070['profile'],_0x19f070[_0x28afa7(0xe1)]));})[_0x3590f2(0x1c8)](_0x19eeb7[_0x3590f2(0x8b)],_0x19eeb7[_0x3590f2(0x129)],_0x34ccb1=>{const _0x394a2d=_0x3590f2;return _0x34ccb1['positional'](_0x199ce7[_0x394a2d(0xd1)],{'type':_0x394a2d(0x118),'description':_0x199ce7['LZRrp'],'demandOption':!![]});},async _0x46c3c6=>{const _0x17e6a3=_0x3590f2;await withTelemetry(_0x19eeb7['nTPtN'],()=>configList(_0x46c3c6[_0x17e6a3(0xdb)]));})['command']('unset\x20<profile>\x20<key>',_0x19eeb7['hezxL'],_0x96a52e=>{const _0x35d002=_0x3590f2;return _0x96a52e['positional'](_0x35d002(0xdb),{'type':_0x199ce7[_0x35d002(0xdc)],'description':_0x35d002(0x162),'demandOption':!![]})[_0x35d002(0x134)](_0x199ce7['mWHzY'],{'type':'string','description':_0x199ce7[_0x35d002(0x1d8)],'demandOption':!![]});},async _0x507efb=>{const _0x1935b5=_0x3590f2;await _0x199ce7[_0x1935b5(0x1c1)](withTelemetry,_0x1935b5(0xa0),()=>configUnset(_0x507efb[_0x1935b5(0xdb)],_0x507efb[_0x1935b5(0xe1)]));})[_0x3590f2(0x117)](0x1,_0x19eeb7['ubXke']);})['demandCommand'](0x1,_0xf70511(0x121));})[_0x41bc93(0x1c8)](_0x41bc93(0x15f),_0x41bc93(0x148),()=>{},async()=>{const _0xd5cd12=_0x41bc93,_0x58e70f={'vsoru':function(_0x2e9bf4,_0x8db481,_0x4d7b40){return _0x2e9bf4(_0x8db481,_0x4d7b40);}};await _0x58e70f[_0xd5cd12(0x19d)](withTelemetry,_0xd5cd12(0x15f),()=>status());})[_0x41bc93(0x1c8)](_0x41bc93(0x104),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x46a3f2=_0x41bc93,_0x2b0ef7={'miITs':function(_0x5e6652,_0xd608f8,_0x3e31b1){return _0x5e6652(_0xd608f8,_0x3e31b1);},'ZSUik':'update'};await _0x2b0ef7['miITs'](withTelemetry,_0x2b0ef7[_0x46a3f2(0xd0)],()=>update());})[_0x41bc93(0x1c8)]('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x2fce30=>{const _0x516af3=_0x41bc93,_0x396805={'uXteR':_0x516af3(0x184),'wWPsr':'number','ZgFfd':_0x516af3(0x189),'letdj':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','pdIGU':_0x516af3(0x152),'gUIsx':'headed','AQVOE':_0x516af3(0xa1),'SaVch':_0x516af3(0xdd),'ORMZl':_0x516af3(0x118),'JjeJL':'partial','Wprzw':'debug-address-comments','XdoqK':'task'};return _0x2fce30['option'](_0x516af3(0xdb),{'type':'string','description':_0x516af3(0x98)})[_0x516af3(0xad)]('notes',{'type':_0x516af3(0x118),'description':_0x396805['uXteR']})[_0x516af3(0xad)]('scenario',{'type':_0x396805[_0x516af3(0x14d)],'description':'Scenario\x20index\x20(1-based)'})['option'](_0x396805[_0x516af3(0x168)],{'type':'string','description':_0x396805[_0x516af3(0x1bd)]})['option']('model',{'type':_0x516af3(0x118),'description':_0x396805[_0x516af3(0x167)]})[_0x516af3(0xad)](_0x396805['gUIsx'],{'type':_0x396805['AQVOE'],'description':_0x396805['SaVch'],'default':![]})[_0x516af3(0xad)](_0x516af3(0x146),{'type':_0x396805['ORMZl'],'hidden':!![],'choices':[_0x516af3(0xef),_0x396805[_0x516af3(0x85)],_0x516af3(0x1e5),_0x516af3(0xc2),'incomplete']})[_0x516af3(0xad)](_0x396805[_0x516af3(0x16b)],{'type':'boolean','hidden':!![]})['option']('env',{'type':_0x396805[_0x516af3(0x93)],'hidden':!![]})['option'](_0x396805[_0x516af3(0x140)],{'type':_0x396805['ORMZl'],'hidden':!![]})['option'](_0x516af3(0x19a),{'type':'number','hidden':!![]});},async _0x5f2f5b=>{const _0x1f4f99=_0x41bc93,_0x3d1c4e={'XVAhn':function(_0x5cba78,_0x4a11e5){return _0x5cba78(_0x4a11e5);}};await _0x3d1c4e[_0x1f4f99(0x92)](runGoCommand,_0x5f2f5b);})[_0x41bc93(0x1c8)]('auth',![],_0x331bca=>{const _0x4a1b8d=_0x41bc93,_0x422c77={'ZjYHR':'profile','qjEWK':'Profile\x20name','OrCzv':function(_0x241273,_0xf534ab){return _0x241273(_0xf534ab);}};return _0x331bca[_0x4a1b8d(0x1c8)](_0x4a1b8d(0x199),![],_0x396546=>{const _0x2a6521=_0x4a1b8d;return _0x396546['positional'](_0x422c77[_0x2a6521(0x149)],{'type':_0x2a6521(0x118),'description':_0x422c77[_0x2a6521(0xc5)],'demandOption':!![]});},async _0x3731f4=>{warnRenamed('ranger\x20auth\x20encrypt','ranger\x20profile\x20encrypt-auth'),await _0x422c77['OrCzv'](authEncrypt,_0x3731f4['profile']);})[_0x4a1b8d(0x117)](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})['command'](_0x41bc93(0xb7),![],_0x55403e=>{const _0x35a93a=_0x41bc93,_0x229444={'OZSRb':'skip-chromium','ttwhc':_0x35a93a(0x160),'QnglQ':'user','LIsEk':_0x35a93a(0x14a),'yOzTF':'url','xipxV':'force'};return _0x55403e['positional'](_0x35a93a(0xff),{'type':'string','description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})['option'](_0x229444[_0x35a93a(0x1a8)],{'type':_0x35a93a(0xa1),'description':_0x35a93a(0x1c7),'default':![]})['option'](_0x229444['ttwhc'],{'type':'string','choices':[_0x229444['QnglQ'],_0x35a93a(0x18f)],'description':_0x229444[_0x35a93a(0x141)]})[_0x35a93a(0xad)](_0x229444[_0x35a93a(0xd4)],{'type':_0x35a93a(0x118),'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x229444['xipxV'],{'type':'boolean','description':_0x35a93a(0x130),'default':![]});},async _0x1ce564=>{const _0x2fd38e=_0x41bc93,_0x1c8902={'qSTZy':function(_0x3012bc,_0x330c83,_0xf13f65){return _0x3012bc(_0x330c83,_0xf13f65);},'mDlQF':_0x2fd38e(0x1dd),'QyEZr':_0x2fd38e(0x1d0),'xJNrK':function(_0x45bb77,_0x790aad,_0x5d1337){return _0x45bb77(_0x790aad,_0x5d1337);}};_0x1c8902['qSTZy'](warnRenamed,_0x1c8902['mDlQF'],_0x1c8902[_0x2fd38e(0x1e2)]),await _0x1c8902['xJNrK'](withTelemetry,_0x2fd38e(0x12b),_0x3e4f53=>start(_0x1ce564['token'],{'skipChromium':_0x1ce564['skip-chromium'],'scope':_0x1ce564['scope'],'url':_0x1ce564['url'],'force':_0x1ce564['force']},_0x3e4f53));})[_0x41bc93(0x1c8)]('verify-feature',![],_0x3d81ba=>{const _0x268d63=_0x41bc93,_0x7f7cbf={'ldYBf':_0x268d63(0x118),'NUuVB':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','ngWcM':_0x268d63(0xae),'yaAxv':_0x268d63(0x19a),'JiXGG':_0x268d63(0x154),'CsGiI':_0x268d63(0x189),'lgHNI':_0x268d63(0x1b1),'VoIqw':'verified','Rgxbq':_0x268d63(0x1e5)};return _0x3d81ba[_0x268d63(0xad)]('env',{'type':_0x7f7cbf['ldYBf'],'description':_0x7f7cbf[_0x268d63(0xcd)]})['option'](_0x268d63(0x91),{'type':_0x268d63(0x118),'description':_0x7f7cbf[_0x268d63(0x1c0)]})['option'](_0x7f7cbf[_0x268d63(0x1aa)],{'type':_0x7f7cbf['JiXGG'],'description':'Scenario\x20index\x20(1-based)'})[_0x268d63(0xad)](_0x268d63(0xdb),{'type':'string','hidden':!![]})[_0x268d63(0xad)]('notes',{'type':'string','hidden':!![]})['option']('scenario',{'type':_0x268d63(0x154),'hidden':!![]})[_0x268d63(0xad)](_0x7f7cbf['CsGiI'],{'type':_0x7f7cbf[_0x268d63(0x125)],'description':_0x7f7cbf['lgHNI']})['option'](_0x268d63(0x11a),{'type':'string','hidden':!![]})['option']('headed',{'type':_0x268d63(0xa1),'hidden':!![],'default':![]})[_0x268d63(0xad)](_0x268d63(0x146),{'type':'string','hidden':!![],'choices':[_0x7f7cbf['VoIqw'],'partial',_0x7f7cbf[_0x268d63(0xaa)],_0x268d63(0xc2),_0x268d63(0xda)]});},async _0x5173d2=>{await runGoCommand(_0x5173d2,!![]);})[_0x41bc93(0x1c8)](_0x41bc93(0x18a),![],_0x16eb6a=>{const _0x49a68b=_0x41bc93,_0x2152cf={'eDgTl':_0x49a68b(0x132),'YwrTD':_0x49a68b(0xa1),'vMNrQ':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','JJzDp':_0x49a68b(0xa4)};return _0x16eb6a['positional'](_0x2152cf['eDgTl'],{'type':'string','description':_0x49a68b(0x1bb),'demandOption':!![]})['option']('ci',{'type':_0x2152cf[_0x49a68b(0xa5)],'description':_0x2152cf['vMNrQ'],'default':![]})['option']('skip-auth',{'type':'boolean','description':_0x2152cf['JJzDp'],'default':![]});},async _0x3f9bbf=>{const _0x522843=_0x41bc93,_0x38776a={'MOvzA':function(_0x245228,_0x2b7d16,_0x3aaaae){return _0x245228(_0x2b7d16,_0x3aaaae);},'yzDFx':'ranger\x20profile\x20add','PdCMg':'add\x20env'};_0x38776a['MOvzA'](warnRenamed,_0x522843(0x135),_0x38776a[_0x522843(0x195)]),await _0x38776a[_0x522843(0x1d7)](withTelemetry,_0x38776a['PdCMg'],_0x1c3134=>addEnv(_0x3f9bbf['env-name'],{'ci':_0x3f9bbf['ci'],'skipAuth':_0x3f9bbf[_0x522843(0x110)]},_0x1c3134));})['command']('use\x20<env-name>',![],_0x481097=>{const _0x53208e=_0x41bc93,_0x4a5794={'yYTTC':'string'};return _0x481097['positional'](_0x53208e(0x132),{'type':_0x4a5794['yYTTC'],'description':'Name\x20of\x20the\x20environment','demandOption':!![]});},async _0x575a0d=>{const _0x2f8009=_0x41bc93,_0x3adbca={'ehBMR':_0x2f8009(0x176),'JEezg':function(_0x6aa231,_0x217a7d,_0x35e121){return _0x6aa231(_0x217a7d,_0x35e121);}};warnRenamed(_0x3adbca[_0x2f8009(0x13f)],'ranger\x20profile\x20use'),await _0x3adbca[_0x2f8009(0x1ad)](withTelemetry,_0x2f8009(0x87),()=>useEnv(_0x575a0d[_0x2f8009(0x132)]));})['command'](_0x41bc93(0x156),![],_0x190308=>{const _0x41a0bf=_0x41bc93,_0x4807bc={'lcRiM':'env','XiLvI':_0x41a0bf(0x118),'StTdD':'key','XxbnS':'value','Vavnl':'Config\x20value','KByKu':_0x41a0bf(0x150),'bVSpE':function(_0x506016,_0x2f0b5a,_0x58e5cd){return _0x506016(_0x2f0b5a,_0x58e5cd);},'oKiNJ':_0x41a0bf(0x188),'cTBFZ':_0x41a0bf(0x1c6),'ycqqB':'ranger\x20profile\x20config\x20list','Vmbmf':function(_0x5397e1,_0x37c3e1,_0x13794e){return _0x5397e1(_0x37c3e1,_0x13794e);},'RaEfZ':'Config\x20key\x20to\x20remove','tPqVH':_0x41a0bf(0x177),'Duqsa':'ranger\x20profile\x20config\x20unset','AdiLn':_0x41a0bf(0x127),'hDtVq':_0x41a0bf(0x1e4)};return _0x190308['command'](_0x41a0bf(0x133),![],_0x36f910=>{const _0x3cf26e=_0x41a0bf;return _0x36f910['positional'](_0x4807bc[_0x3cf26e(0x1db)],{'type':_0x4807bc['XiLvI'],'description':_0x3cf26e(0x150),'demandOption':!![]})[_0x3cf26e(0x134)](_0x4807bc[_0x3cf26e(0xfa)],{'type':_0x4807bc[_0x3cf26e(0xe0)],'description':_0x3cf26e(0xe9),'demandOption':!![]})['positional'](_0x4807bc['XxbnS'],{'type':_0x3cf26e(0x118),'description':_0x4807bc[_0x3cf26e(0xba)],'demandOption':!![]});},async _0x8e4116=>{const _0x48594f=_0x41a0bf;warnRenamed(_0x48594f(0x14f),_0x48594f(0xbb)),await withTelemetry('config\x20set',()=>configSet(_0x8e4116['env'],_0x8e4116['key'],_0x8e4116['value']));})['command'](_0x41a0bf(0xfd),![],_0x5aede9=>{const _0x3261b2=_0x41a0bf;return _0x5aede9[_0x3261b2(0x134)](_0x3261b2(0x1e1),{'type':_0x3261b2(0x118),'description':_0x4807bc['KByKu'],'demandOption':!![]})['positional'](_0x3261b2(0xe1),{'type':_0x4807bc[_0x3261b2(0xe0)],'description':_0x3261b2(0x138),'demandOption':!![]});},async _0xf42e5f=>{const _0x5a59a9=_0x41a0bf;warnRenamed(_0x5a59a9(0xe2),'ranger\x20profile\x20config\x20get'),await _0x4807bc['bVSpE'](withTelemetry,_0x4807bc['oKiNJ'],()=>configGet(_0xf42e5f[_0x5a59a9(0x1e1)],_0xf42e5f['key']));})['command'](_0x4807bc[_0x41a0bf(0x14b)],![],_0x34308b=>{const _0x3b52bf=_0x41a0bf;return _0x34308b['positional']('env',{'type':'string','description':_0x3b52bf(0x150),'demandOption':!![]});},async _0x43e9fe=>{const _0x56beb2=_0x41a0bf;warnRenamed(_0x4807bc[_0x56beb2(0x10a)],_0x4807bc['ycqqB']),await _0x4807bc[_0x56beb2(0x181)](withTelemetry,'config\x20list',()=>configList(_0x43e9fe[_0x56beb2(0x1e1)]));})[_0x41a0bf(0x1c8)]('unset\x20<env>\x20<key>',![],_0x190bdf=>{const _0x4c996d=_0x41a0bf;return _0x190bdf[_0x4c996d(0x134)](_0x4807bc['lcRiM'],{'type':_0x4807bc[_0x4c996d(0xe0)],'description':_0x4807bc['KByKu'],'demandOption':!![]})[_0x4c996d(0x134)](_0x4807bc['StTdD'],{'type':'string','description':_0x4807bc[_0x4c996d(0x194)],'demandOption':!![]});},async _0x38eadc=>{const _0x71b473=_0x41a0bf;_0x4807bc[_0x71b473(0x181)](warnRenamed,_0x4807bc['tPqVH'],_0x4807bc['Duqsa']),await _0x4807bc['bVSpE'](withTelemetry,_0x71b473(0x1a4),()=>configUnset(_0x38eadc[_0x71b473(0x1e1)],_0x38eadc[_0x71b473(0xe1)]));})[_0x41a0bf(0x117)](0x1,_0x4807bc[_0x41a0bf(0x1d4)]);})[_0x41bc93(0x1c8)]('env',![],_0x5c8544=>{const _0x47f950=_0x41bc93,_0x5df0a3={'pPsxY':function(_0x352fc5,_0x3e6450,_0x84890c){return _0x352fc5(_0x3e6450,_0x84890c);},'Lacgv':'string','dzXcY':_0x47f950(0x158),'zPMrx':'ranger\x20profile\x20update','pnpcT':'env\x20update','BQYpQ':'update\x20<env-name>','MksiD':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x5c8544['command']('ls',![],()=>{},async()=>{_0x5df0a3['pPsxY'](warnRenamed,'ranger\x20env\x20ls','ranger\x20profile\x20ls'),await withTelemetry('env\x20list',()=>envList());})['command'](_0x5df0a3['BQYpQ'],![],_0x2d9234=>{const _0x1ccadb=_0x47f950;return _0x2d9234['positional'](_0x1ccadb(0x132),{'type':_0x5df0a3['Lacgv'],'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x3265c0=>{warnRenamed(_0x5df0a3['dzXcY'],_0x5df0a3['zPMrx']),await _0x5df0a3['pPsxY'](withTelemetry,_0x5df0a3['pnpcT'],_0x5f0dc3=>updateEnv(_0x3265c0['env-name'],_0x5f0dc3));})['demandCommand'](0x1,_0x5df0a3['MksiD']);})['command'](_0x41bc93(0x171),![],_0x40d39f=>{const _0x5338d9=_0x41bc93,_0x5df6be={'mmCnH':'string','Eukpu':'description','vRZur':'Feature\x20review\x20description','lDrEm':_0x5338d9(0x1a6),'izhDz':_0x5338d9(0x19f),'LxBGJ':'ranger\x20feature\x20create','bsKPH':function(_0x54cf00,_0x52a997,_0xef899e,_0x569820){return _0x54cf00(_0x52a997,_0xef899e,_0x569820);},'AReHk':'ranger\x20create','ynhrp':'--checklist','wYXzj':_0x5338d9(0xe4),'QEPtx':function(_0x1a37bf,_0x4f5942,_0x23f460){return _0x1a37bf(_0x4f5942,_0x23f460);},'eVuyC':_0x5338d9(0xc1),'icstQ':_0x5338d9(0x185),'HLWmz':_0x5338d9(0xa1),'CsOdW':_0x5338d9(0x151),'vrsSq':'Feature\x20review\x20ID','wnnjp':function(_0x4c7da9,_0xc9d9b4,_0x24e9a8){return _0x4c7da9(_0xc9d9b4,_0x24e9a8);},'lEKoc':_0x5338d9(0x142),'NPBfp':_0x5338d9(0x1b5),'OpWur':'ranger\x20feature\x20resume','oJcel':function(_0x1b676e,_0x3ab38b,_0x3b2bcd){return _0x1b676e(_0x3ab38b,_0x3b2bcd);},'Gshvf':_0x5338d9(0x15d),'fQkdD':_0x5338d9(0x9a),'QnZEB':_0x5338d9(0x17f),'INePB':_0x5338d9(0xc0),'ymMWE':function(_0x1294e2,_0x1c587a,_0x39bae9){return _0x1294e2(_0x1c587a,_0x39bae9);},'AiSVG':_0x5338d9(0xca),'ivPbS':_0x5338d9(0xc8),'oFDuJ':_0x5338d9(0x1b9),'SwDGm':function(_0x32b1f9,_0x4edbc0,_0x43a030){return _0x32b1f9(_0x4edbc0,_0x43a030);},'ooLtC':_0x5338d9(0x100),'ifCHl':'ranger\x20restore','yMzZO':'feature\x20restore','Prtnd':'create\x20<name>','ZDXxk':'add-checklist-item\x20<description>','OtnEE':_0x5338d9(0x182),'AQZLa':_0x5338d9(0xb6),'eSXbv':'restore\x20<id>','LWnad':_0x5338d9(0x1ce)};return _0x40d39f[_0x5338d9(0x1c8)](_0x5df6be[_0x5338d9(0x9f)],![],_0x323b62=>{const _0x5703b1=_0x5338d9;return _0x323b62[_0x5703b1(0x134)](_0x5703b1(0x14e),{'type':_0x5df6be['mmCnH'],'description':_0x5703b1(0x18c),'demandOption':!![]})[_0x5703b1(0xad)](_0x5df6be[_0x5703b1(0xab)],{'type':_0x5df6be[_0x5703b1(0x8a)],'alias':'d','description':_0x5df6be['vRZur']})[_0x5703b1(0xad)](_0x5703b1(0x159),{'type':_0x5df6be['lDrEm'],'alias':'c','description':_0x5df6be['izhDz']})[_0x5703b1(0xad)]('scenario',{'type':'array','hidden':!![]});},async _0x58191f=>{const _0x5c838c=_0x5338d9;warnRenamed(_0x5df6be['LxBGJ'],'ranger\x20create'),_0x5df6be[_0x5c838c(0x1c5)](warnFlagRenamed,_0x5df6be[_0x5c838c(0x19c)],_0x5df6be[_0x5c838c(0x198)],_0x5df6be['wYXzj']);const _0x3c0791=_0x58191f[_0x5c838c(0x19b)]||_0x58191f[_0x5c838c(0x159)];await _0x5df6be[_0x5c838c(0xa6)](withTelemetry,_0x5df6be['eVuyC'],()=>featureCreate(_0x58191f[_0x5c838c(0x14e)],{'description':_0x58191f[_0x5c838c(0x17e)],'scenarios':_0x3c0791}));})['command']('list',![],_0x2dc038=>{const _0x83debb=_0x5338d9;return _0x2dc038['option'](_0x5df6be['icstQ'],{'type':_0x5df6be['HLWmz'],'description':_0x83debb(0x15b)})[_0x83debb(0xad)]('limit',{'type':'number','alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})[_0x83debb(0xad)](_0x5df6be['CsOdW'],{'type':_0x83debb(0x154),'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option']('include-deleted',{'type':_0x5df6be[_0x83debb(0xcc)],'alias':'d','description':_0x83debb(0xe5),'default':![]});},async _0x42c680=>{const _0x5674a1=_0x5338d9;warnRenamed('ranger\x20feature\x20list',_0x5674a1(0xfe)),await _0x5df6be['QEPtx'](withTelemetry,'feature\x20list',()=>featureList({'currentBranch':_0x42c680[_0x5674a1(0x185)],'limit':_0x42c680[_0x5674a1(0x89)],'offset':_0x42c680['offset'],'includeDeleted':_0x42c680['include-deleted']}));})[_0x5338d9(0x1c8)](_0x5338d9(0x1d2),![],_0x295cc2=>{const _0x492fe5=_0x5338d9;return _0x295cc2[_0x492fe5(0x134)]('id',{'type':'string','description':_0x5df6be['vrsSq']});},async _0x114f8a=>{const _0x2e50cc=_0x5338d9;_0x5df6be[_0x2e50cc(0xf7)](warnRenamed,_0x2e50cc(0x8e),'ranger\x20show'),await withTelemetry(_0x5df6be[_0x2e50cc(0xb0)],()=>featureShow(_0x114f8a['id']));})[_0x5338d9(0x1c8)](_0x5338d9(0xbc),![],_0x12342e=>{const _0x4d121d=_0x5338d9;return _0x12342e['positional']('id',{'type':_0x4d121d(0x118),'description':_0x5df6be['NPBfp']});},async _0x1cf30a=>{const _0xe8c64e=_0x5338d9;warnRenamed(_0x5df6be[_0xe8c64e(0x116)],'ranger\x20resume'),await _0x5df6be[_0xe8c64e(0xf6)](withTelemetry,_0x5df6be[_0xe8c64e(0x10d)],()=>featureResume(_0x1cf30a['id']));})[_0x5338d9(0x1c8)](_0x5df6be[_0x5338d9(0x137)],![],_0x1fb0c3=>{const _0x1863b5=_0x5338d9;return _0x1fb0c3['positional']('description',{'type':_0x5df6be[_0x1863b5(0x8a)],'description':'Scenario\x20description','demandOption':!![]})['option']('id',{'type':_0x1863b5(0x118),'description':_0x1863b5(0xc0)});},async _0x626bcc=>{const _0x569bd8=_0x5338d9;warnRenamed(_0x5df6be['fQkdD'],_0x5df6be['QnZEB']),await withTelemetry(_0x569bd8(0x120),()=>featureAddScenario(_0x626bcc['description'],_0x626bcc['id']));})['command'](_0x5df6be[_0x5338d9(0xea)],![],_0x1b71e1=>{const _0x3be2fa=_0x5338d9;return _0x1b71e1['positional']('id',{'type':_0x5df6be[_0x3be2fa(0x8a)],'description':_0x5df6be[_0x3be2fa(0x1e3)]});},async _0x2a4bbb=>{const _0x42e2d1=_0x5338d9;_0x5df6be[_0x42e2d1(0x180)](warnRenamed,_0x5df6be[_0x42e2d1(0x1dc)],_0x42e2d1(0x9d)),await _0x5df6be['wnnjp'](withTelemetry,_0x5df6be['ivPbS'],()=>featureGetReview(_0x2a4bbb['id']));})[_0x5338d9(0x1c8)](_0x5df6be[_0x5338d9(0x187)],![],_0x130061=>{return _0x130061['positional']('id',{'type':_0x5df6be['mmCnH'],'description':_0x5df6be['vrsSq']});},async _0x17627b=>{const _0x3aa385=_0x5338d9;warnRenamed(_0x3aa385(0x147),_0x5df6be[_0x3aa385(0xb8)]),await _0x5df6be['SwDGm'](withTelemetry,_0x5df6be[_0x3aa385(0x11f)],()=>featureDelete(_0x17627b['id']));})[_0x5338d9(0x1c8)](_0x5df6be[_0x5338d9(0x112)],![],_0x19012e=>{const _0x59beac=_0x5338d9;return _0x19012e[_0x59beac(0x134)]('id',{'type':_0x5df6be[_0x59beac(0x8a)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x156a9b=>{const _0x54a1c4=_0x5338d9;warnRenamed(_0x54a1c4(0x1b8),_0x5df6be['ifCHl']),await _0x5df6be['ymMWE'](withTelemetry,_0x5df6be['yMzZO'],()=>featureRestore(_0x156a9b['id']));})['demandCommand'](0x1,_0x5df6be['LWnad']);})[_0x41bc93(0x1c8)]('hook',![],_0x5ca294=>{const _0x3ec5a5=_0x41bc93,_0x525e80={'qhToD':_0x3ec5a5(0xeb),'IznaZ':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','UqatY':_0x3ec5a5(0x17d),'kUgmv':_0x3ec5a5(0x118),'VkkKT':function(_0xd55123,_0xcc7520,_0x24703b){return _0xd55123(_0xcc7520,_0x24703b);},'vsWHq':_0x3ec5a5(0x12e),'fUdfy':'enable','pgXDF':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','OqnKx':'disable','pSNDF':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','TgAgx':_0x3ec5a5(0x14e),'rJPdd':_0x3ec5a5(0xbd)};return _0x5ca294['command'](_0x525e80['fUdfy'],_0x525e80[_0x3ec5a5(0x107)],_0x35a73f=>{const _0x597be5=_0x3ec5a5;return _0x35a73f['option'](_0x525e80[_0x597be5(0x15e)],{'type':_0x597be5(0x118),'description':_0x525e80[_0x597be5(0x95)]});},async _0x466df2=>{const _0x194eb9=_0x3ec5a5;await withTelemetry(_0x525e80[_0x194eb9(0x169)],()=>hook('enable',_0x466df2['session-id']));})[_0x3ec5a5(0x1c8)](_0x525e80['OqnKx'],_0x525e80[_0x3ec5a5(0x145)],_0x20a504=>{const _0x80bac=_0x3ec5a5;return _0x20a504[_0x80bac(0xad)](_0x80bac(0xeb),{'type':_0x525e80['kUgmv'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x18ebd9=>{const _0x27e2c5=_0x3ec5a5;await _0x525e80[_0x27e2c5(0xc7)](withTelemetry,_0x525e80['vsWHq'],()=>hook('disable',_0x18ebd9[_0x27e2c5(0xeb)]));})['option'](_0x525e80[_0x3ec5a5(0xb2)],{'type':_0x525e80[_0x3ec5a5(0x11b)],'description':_0x525e80[_0x3ec5a5(0x16c)]})[_0x3ec5a5(0xad)]('session-id',{'type':_0x525e80['kUgmv'],'description':_0x525e80['IznaZ']});},async _0x5c44c3=>{const _0x1b8c15=_0x41bc93;_0x5c44c3['name']&&await hook(_0x5c44c3['name'],_0x5c44c3[_0x1b8c15(0xeb)]);})[_0x41bc93(0x117)](0x1,'You\x20must\x20specify\x20a\x20command')[_0x41bc93(0x163)]()['fail'](async(_0x35ba94,_0x1a8fa2,_0x1bcc25)=>{const _0x4ded77=_0x41bc93,_0x2aaa45={'GlsNk':function(_0x24b950,_0x476ee5){return _0x24b950(_0x476ee5);},'QfJXE':'Unknown\x20command','gRGrE':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','QNNPB':function(_0x488d3e){return _0x488d3e();},'MlVuU':function(_0x2511f2,_0x24e97c){return _0x2511f2||_0x24e97c;}},_0xf09d9e=_0x2aaa45[_0x4ded77(0x174)](sanitizeArgs,process[_0x4ded77(0x11d)][_0x4ded77(0x88)](0x2)),_0x3d6cc5=getErrorType(_0x35ba94,_0x1a8fa2);if(_0x35ba94&&_0x35ba94['includes'](_0x2aaa45['QfJXE'])){const _0x373681=process['argv'][0x2];console[_0x4ded77(0x10f)](_0x4ded77(0xc4)+_0x373681),console[_0x4ded77(0x10f)](_0x2aaa45[_0x4ded77(0xe8)]);}else{if(_0x35ba94)console['error']('\x0a'+_0x35ba94+'\x0a');else _0x1a8fa2&&console[_0x4ded77(0x10f)]('\x0aError:\x20'+_0x1a8fa2[_0x4ded77(0x170)]+'\x0a');}await logDesirePath({'rawCommand':_0xf09d9e,'errorMessage':_0x35ba94||_0x1a8fa2?.[_0x4ded77(0x170)],'errorType':_0x3d6cc5});const _0x4fbc6f=_0x2aaa45[_0x4ded77(0x9b)](getCurrentCollector);_0x4fbc6f&&await _0x4fbc6f[_0x4ded77(0x1d5)](_0x1a8fa2||new Error(_0x2aaa45['MlVuU'](_0x35ba94,_0x4ded77(0xbe)))),process['exit'](0x1);})['epilogue'](_0x41bc93(0x1ab)+_0x41bc93(0x12f)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()['alias']('help','h')['parse']();
|
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(_0x20c743,_0x193e70){const _0x2cfced=_0x5da1,_0x29d3f2=_0x20c743();while(!![]){try{const _0x408517=-parseInt(_0x2cfced(0xc5))/0x1+parseInt(_0x2cfced(0x97))/0x2+parseInt(_0x2cfced(0xa8))/0x3*(-parseInt(_0x2cfced(0xac))/0x4)+parseInt(_0x2cfced(0xa1))/0x5*(parseInt(_0x2cfced(0xa0))/0x6)+parseInt(_0x2cfced(0xb4))/0x7+-parseInt(_0x2cfced(0x6f))/0x8+parseInt(_0x2cfced(0xaa))/0x9*(parseInt(_0x2cfced(0xb9))/0xa);if(_0x408517===_0x193e70)break;else _0x29d3f2['push'](_0x29d3f2['shift']());}catch(_0x5c7ed9){_0x29d3f2['push'](_0x29d3f2['shift']());}}}(_0x3c98,0x55760));function _0x5da1(_0xfac90f,_0x126210){_0xfac90f=_0xfac90f-0x68;const _0x3c98b2=_0x3c98();let _0x5da103=_0x3c98b2[_0xfac90f];return _0x5da103;}import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x7330b9 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 _0x3c98(){const _0xae776f=['confirm','url_setup','path','CyGrA','launch','retry','456641bdgUqr','close','shouldReplace','list','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','Aborted.','\x0a🌐\x20Profile\x20Setup\x0a','name','RkKXb','kwuFR','pePOQ','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','\x22\x20already\x20exists\x20in\x20','UGJqw','catch','2833360pnnbbs','\x20(continuing\x20with\x20--force)','xobjL','baseUrl','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','PraMw','mBhna','use_suggestion','config_write','trim','trackPhaseEnd','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','fFxgH','\x22\x20already\x20exists.\x20Overwrite?','\x20\x20Did\x20you\x20mean\x20','✓\x20Auth\x20state\x20saved\x20to:\x20','lFICW','Could\x20not\x20reach\x20','UwhIe','BSLuT','utf-8','vWXdN','CTGhI','TypeError','isTTY','signal','location','newPage','XuNzn','abort','settings.json','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','IYWBR','force','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','about:blank','SidHa','goto','iXwZE','HlzVF','1114748aHNYZY','auth.json','oyCUp','GYXlY','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','.enc','includes','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','log','30tqnsiY','661105TJSfuD','browser_auth','newContext','HSzWt','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','waxdP','HJHSd','218481UAGkdK','\x20would\x20shadow\x20the\x20existing\x20profile.','47781ADwcYL','http://','16szEcTO','.backup-','root\x20(.ranger/)','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','trackPhaseStart','MRfVV','WUjmf','\x0a\x20\x20Profile\x20\x22','112133zxprVk','error','\x22\x20configured','overwrite','cdpEndpoint','410wyjPZh','BIkaG','manual','Use\x20','prompt','--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.'];_0x3c98=function(){return _0xae776f;};return _0x3c98();}import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x177464){const _0x339cbf=_0x5da1,_0x12d988={'lFICW':'HEAD','ZTiQd':_0x339cbf(0xbb),'acbGB':function(_0x552705,_0x16fcf0){return _0x552705(_0x16fcf0);},'pzpDY':'Invalid\x20URL','aIRkv':function(_0x1916f,_0x52267c){return _0x1916f===_0x52267c;},'waxdP':_0x339cbf(0x86),'bNwTs':'fetch\x20failed'};try{const _0x48c00e=new AbortController(),_0x57e8a0=setTimeout(()=>_0x48c00e[_0x339cbf(0x8c)](),0x1388),_0x3900a4=await fetch(_0x177464,{'method':_0x12d988[_0x339cbf(0x7f)],'signal':_0x48c00e[_0x339cbf(0x88)],'redirect':_0x12d988['ZTiQd']});_0x12d988['acbGB'](clearTimeout,_0x57e8a0);if(_0x3900a4['status']<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x3900a4['status']};}catch(_0x5ba8df){const _0x5105f1=_0x5ba8df,_0xe4ac2=_0x5105f1['message']||String(_0x5ba8df),_0x20fe78=_0xe4ac2[_0x339cbf(0x9d)](_0x12d988['pzpDY'])||_0x12d988['aIRkv'](_0x5105f1[_0x339cbf(0xcc)],_0x12d988[_0x339cbf(0xa6)])||_0xe4ac2['includes'](_0x12d988['bNwTs']);return{'ok':![],'error':_0xe4ac2,'isProtocolError':_0x20fe78};}}export async function addEnv(_0x2a1567,_0x3b129b={},_0x404ced){const _0x3216a5=_0x5da1,_0x26b257={'pePOQ':'local','rNJWe':function(_0x2a42da){return _0x2a42da();},'xobjL':function(_0x128e74,_0x44e34b,_0x46ef31){return _0x128e74(_0x44e34b,_0x46ef31);},'SidHa':function(_0x5ad2a5){return _0x5ad2a5();},'DVGLV':function(_0x112761,_0x44af5a){return _0x112761!==_0x44af5a;},'kwuFR':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','BSLuT':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','CTGhI':function(_0x5c8259,_0x49c42c){return _0x5c8259(_0x49c42c);},'HJHSd':function(_0x583e34,_0x3482b4){return _0x583e34===_0x3482b4;},'IYWBR':_0x3216a5(0xb7),'MRfVV':function(_0x2a2f43,_0x438679){return _0x2a2f43===_0x438679;},'RkKXb':'legacy','XuNzn':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','lCcnv':'input','HSzWt':'http://localhost:3000','PraMw':_0x3216a5(0xc8),'GpgCG':'What\x20would\x20you\x20like\x20to\x20do?','muEGx':'Enter\x20a\x20different\x20URL','YTcir':'use_suggestion','CyGrA':function(_0x4b661a,_0x3811b1){return _0x4b661a===_0x3811b1;},'LujyI':'continue','mBhna':function(_0x212c85,_0x401a8c){return _0x212c85(_0x401a8c);},'cKVgU':_0x3216a5(0x98),'roLcK':_0x3216a5(0xa2),'cQLiu':'\x0a📋\x20Authentication\x20Setup','GYXlY':_0x3216a5(0x7a),'oyCUp':_0x3216a5(0x92),'fFxgH':_0x3216a5(0x83),'tWRxG':_0x3216a5(0x9e),'ZYpAi':_0x3216a5(0x91),'PyFqI':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','UGJqw':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','iXwZE':_0x3216a5(0x77),'BIkaG':function(_0x36358f,_0x3c2979,_0x1024e4){return _0x36358f(_0x3c2979,_0x1024e4);},'HlzVF':_0x3216a5(0x8d),'WUjmf':function(_0x26a866,_0x5ca8ac,_0x2e3f40){return _0x26a866(_0x5ca8ac,_0x2e3f40);},'vWXdN':function(_0x562b0f,_0x4cd640,_0x18d8d6){return _0x562b0f(_0x4cd640,_0x18d8d6);},'UwhIe':_0x3216a5(0x6b)},_0x2009d2=_0x3b129b['ci']??![],_0x4cf600=_0x2009d2?'ci':_0x26b257[_0x3216a5(0x6a)],_0x542038=join(_0x26b257['rNJWe'](getRangerDir),_0x4cf600,_0x2a1567),_0x2992e0=_0x26b257['xobjL'](join,_0x26b257[_0x3216a5(0x93)](getRangerDir),_0x4cf600);if(_0x26b257['DVGLV'](_0x3b129b[_0x3216a5(0xb8)],undefined)&&_0x3b129b['cdpEndpoint'][_0x3216a5(0x78)]()==='')throw new Error(_0x26b257[_0x3216a5(0x69)]);if(_0x3b129b[_0x3216a5(0xb8)]&&_0x3b129b['url'])throw new Error(_0x26b257[_0x3216a5(0x82)]);if(_0x3b129b['cdpEndpoint']&&_0x3b129b['ci'])throw new Error(_0x3216a5(0xbe));const _0xd59479=_0x26b257['CTGhI'](Boolean,_0x3b129b['cdpEndpoint']),_0x1c4ae6=!_0x3b129b['skipAuth']&&!_0xd59479,_0x332a26=process['stdin'][_0x3216a5(0x87)]&&process['stdout'][_0x3216a5(0x87)];if(!_0x332a26&&!_0x3b129b['url']&&!_0xd59479)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 _0x4ee632=_0x26b257[_0x3216a5(0x85)](findExistingEnv,_0x2a1567);let _0x371b91=null;if(_0x4ee632){if(!_0x332a26)_0x371b91=_0x4ee632;else{if(_0x26b257[_0x3216a5(0xa7)](_0x4ee632[_0x3216a5(0x89)],_0x4cf600)){const {overwrite:_0x12aaa0}=await _0x7330b9['prompt']([{'type':'confirm','name':_0x26b257[_0x3216a5(0x8f)],'message':'Profile\x20\x22'+_0x2a1567+_0x3216a5(0x7c),'default':![]}]);if(!_0x12aaa0){console['log']('Aborted.');return;}_0x371b91=_0x4ee632;}else{const _0x2c0d3e=_0x26b257[_0x3216a5(0xb1)](_0x4ee632['location'],_0x26b257[_0x3216a5(0x68)])?_0x3216a5(0xae):_0x4ee632['location'];console['error']('\x0a⚠️\x20\x20Profile\x20\x22'+_0x2a1567+_0x3216a5(0x6c)+_0x2c0d3e+':\x20'+_0x4ee632['path']),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x4cf600+_0x3216a5(0xa9));const {shouldReplace:_0x22c81a}=await _0x7330b9[_0x3216a5(0xbd)]([{'type':_0x3216a5(0xbf),'name':_0x3216a5(0xc7),'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x4cf600+'?','default':![]}]);if(!_0x22c81a){console[_0x3216a5(0x9f)](_0x3216a5(0xca));return;}_0x371b91=_0x4ee632;}}}_0x404ced?.[_0x3216a5(0xb0)](_0x3216a5(0xc0));let _0x434951='';if(_0xd59479)console[_0x3216a5(0x9f)](_0x26b257[_0x3216a5(0x8b)]),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x3b129b['cdpEndpoint']),console['log'](_0x3216a5(0xa5));else{if(_0x3b129b['url']){_0x434951=_0x3b129b['url'];const _0x2f4bca=await checkUrlReachability(_0x434951);if(!_0x2f4bca['ok']&&!_0x3b129b['force'])throw new Error(_0x3216a5(0x80)+_0x434951+':\x20'+_0x2f4bca['error']+_0x3216a5(0x8e));!_0x2f4bca['ok']&&_0x3b129b[_0x3216a5(0x90)]&&console[_0x3216a5(0x9f)]('⚠\x20Could\x20not\x20reach\x20'+_0x434951+':\x20'+_0x2f4bca[_0x3216a5(0xb5)]+_0x3216a5(0x70));}else{console['log'](_0x3216a5(0xcb)),console[_0x3216a5(0x9f)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console['log'](_0x3216a5(0xaf));let _0x5506fa=![];while(!![]){const _0x45f793=await _0x7330b9['prompt']([{'type':_0x26b257['lCcnv'],'name':_0x3216a5(0x72),'message':_0x5506fa?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x434951||_0x26b257[_0x3216a5(0xa4)]}]);_0x434951=_0x45f793['baseUrl'];const _0x2111bc=await checkUrlReachability(_0x434951);if(_0x2111bc['ok'])break;const _0x46b3ef=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x434951),_0x38df43=_0x2111bc['isProtocolError']&&!_0x46b3ef,_0x479b7b=_0x38df43?_0x3216a5(0xab)+_0x434951:null;_0x5506fa=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x434951+':\x20'+_0x2111bc[_0x3216a5(0xb5)]);_0x479b7b&&console[_0x3216a5(0x9f)](_0x3216a5(0x7d)+_0x479b7b+'?');const {action:_0x3607be}=await _0x7330b9[_0x3216a5(0xbd)]([{'type':_0x26b257[_0x3216a5(0x74)],'name':'action','message':_0x26b257['GpgCG'],'choices':[..._0x479b7b?[{'name':_0x3216a5(0xbc)+_0x479b7b,'value':_0x3216a5(0x76)}]:[],{'name':_0x26b257['muEGx'],'value':_0x3216a5(0xc4)},{'name':'Continue\x20anyway','value':'continue'}]}]);if(_0x26b257[_0x3216a5(0xb1)](_0x3607be,_0x26b257['YTcir'])&&_0x479b7b){_0x434951=_0x479b7b;const _0x405354=await _0x26b257[_0x3216a5(0x85)](checkUrlReachability,_0x434951);if(_0x405354['ok'])break;console[_0x3216a5(0x9f)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x434951+':\x20'+_0x405354[_0x3216a5(0xb5)]);}else{if(_0x26b257[_0x3216a5(0xc2)](_0x3607be,_0x26b257['LujyI']))break;}}}}_0x404ced?.['trackPhaseEnd']('url_setup'),await _0x26b257[_0x3216a5(0x71)](mkdir,_0x2992e0,{'recursive':!![]});const _0x4940e5=await _0x26b257[_0x3216a5(0x75)](mkdtemp,_0x26b257[_0x3216a5(0x71)](join,_0x2992e0,'.tmp-'+_0x2a1567+'-')),_0x96a347=_0x26b257[_0x3216a5(0x71)](join,_0x4940e5,_0x26b257['cKVgU']);try{if(_0x1c4ae6){_0x404ced?.['trackPhaseStart'](_0x26b257['roLcK']),console['log'](_0x26b257['cQLiu']),console[_0x3216a5(0x9f)]('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console['log'](_0x26b257[_0x3216a5(0x9a)]);!_0x332a26?(console['log']('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log']('\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a')):console['log']('');await new Promise(_0x38a14a=>setTimeout(_0x38a14a,0xbb8));const _0x3ee3d4=await chromium[_0x3216a5(0xc3)]({'headless':![]});try{const _0x4bf267=await _0x3ee3d4[_0x3216a5(0xa3)]();await _0x26b257[_0x3216a5(0x75)](addProfileSetupBanner,_0x4bf267);const _0x5c049f=await _0x4bf267[_0x3216a5(0x8a)]();await _0x5c049f[_0x3216a5(0x94)](_0x434951||_0x26b257[_0x3216a5(0x99)]),await new Promise(_0x1e0558=>{const _0xc5572=_0x3216a5,_0x49a518={'Guamw':function(_0x5ed32d){return _0x5ed32d();}};_0x5c049f['on'](_0xc5572(0xc6),async()=>{try{console['log']('Saving\x20authentication\x20state...'),await _0x4bf267['storageState']({'path':_0x96a347});}catch{}_0x49a518['Guamw'](_0x1e0558);});});}finally{await _0x3ee3d4[_0x3216a5(0xc6)]()[_0x3216a5(0x6e)](()=>{});}if(_0x2009d2){const _0x300922=await readFile(_0x96a347,_0x26b257[_0x3216a5(0x7b)]),_0x2d3966=await getToken();if(!_0x2d3966){console[_0x3216a5(0xb5)](_0x26b257['tWRxG']),await unlink(_0x96a347)['catch'](()=>{});throw new Error(_0x26b257['ZYpAi']);}else{const _0x2ca618=encrypt(_0x300922,_0x2d3966);await writeFile(_0x96a347+'.enc',_0x2ca618),await _0x26b257['mBhna'](unlink,_0x96a347),console[_0x3216a5(0x9f)](_0x3216a5(0x9b)+_0x96a347+_0x3216a5(0x9c)),console[_0x3216a5(0x9f)](_0x26b257['PyFqI']),console['log'](_0x26b257[_0x3216a5(0x6d)]);}}else console['log'](_0x3216a5(0x7e)+_0x96a347);_0x404ced?.[_0x3216a5(0x79)](_0x26b257['roLcK']);}_0x404ced?.['trackPhaseStart'](_0x26b257[_0x3216a5(0x95)]);const _0x5be79f={};_0x434951&&(_0x5be79f['baseUrl']=_0x434951);_0x3b129b[_0x3216a5(0xb8)]&&(_0x5be79f[_0x3216a5(0xb8)]=_0x3b129b['cdpEndpoint'],_0x5be79f['isElectron']=!![]);await writeFile(_0x26b257[_0x3216a5(0xba)](join,_0x4940e5,_0x26b257['HlzVF']),JSON['stringify'](_0x5be79f,null,0x2)),console['log']('✓\x20Created\x20settings:\x20'+_0x26b257[_0x3216a5(0xb2)](join,_0x542038,_0x26b257[_0x3216a5(0x96)]));if(_0x371b91?.['location']===_0x4cf600){const _0x230513=_0x371b91['path']+_0x3216a5(0xad)+Date['now']();await rename(_0x371b91['path'],_0x230513);try{await rename(_0x4940e5,_0x542038);}catch(_0x4f342f){await rename(_0x230513,_0x371b91[_0x3216a5(0xc1)]);throw _0x4f342f;}try{await rm(_0x230513,{'recursive':!![]});}catch{console['log'](_0x3216a5(0xc9)+_0x230513);}}else{await _0x26b257['xobjL'](rename,_0x4940e5,_0x542038);if(_0x371b91)try{await _0x26b257[_0x3216a5(0x84)](rm,_0x371b91[_0x3216a5(0xc1)],{'recursive':!![]}),console[_0x3216a5(0x9f)]('Removed\x20existing\x20profile\x20at\x20'+_0x371b91['path']);}catch{console[_0x3216a5(0x9f)](_0x3216a5(0x73)+_0x371b91['path']);}}try{await writeActiveProfileName(_0x2a1567),console[_0x3216a5(0x9f)]('\x20\x20Set\x20active\x20profile:\x20'+_0x2a1567);}catch{console[_0x3216a5(0x9f)](_0x26b257[_0x3216a5(0x81)]);}_0x404ced?.['trackPhaseEnd'](_0x3216a5(0x77)),console['log'](_0x3216a5(0xb3)+_0x2a1567+_0x3216a5(0xb6));}catch(_0x1c3dfa){await rm(_0x4940e5,{'recursive':!![],'force':!![]});throw _0x1c3dfa;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59b1dc,_0x2dee96){const _0x541f00=_0x4d24,_0x3db457=_0x59b1dc();while(!![]){try{const _0x1eab39=-parseInt(_0x541f00(0xdf))/0x1*(-parseInt(_0x541f00(0xe7))/0x2)+-parseInt(_0x541f00(0xd4))/0x3+-parseInt(_0x541f00(0xe6))/0x4*(parseInt(_0x541f00(0xd2))/0x5)+parseInt(_0x541f00(0xd3))/0x6*(parseInt(_0x541f00(0xe2))/0x7)+parseInt(_0x541f00(0xe4))/0x8*(-parseInt(_0x541f00(0xdd))/0x9)+-parseInt(_0x541f00(0xe5))/0xa*(parseInt(_0x541f00(0xe3))/0xb)+parseInt(_0x541f00(0xe8))/0xc;if(_0x1eab39===_0x2dee96)break;else _0x3db457['push'](_0x3db457['shift']());}catch(_0x5a3805){_0x3db457['push'](_0x3db457['shift']());}}}(_0x3cfd,0xa8e85));import{readFile,writeFile}from'fs/promises';function _0x4d24(_0x2bb0bc,_0x382466){_0x2bb0bc=_0x2bb0bc-0xd2;const _0x3cfd05=_0x3cfd();let _0x4d24c5=_0x3cfd05[_0x2bb0bc];return _0x4d24c5;}import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0x3cfd(){const _0x4c2741=['964055jZxnym','64110MvmGSA','3298020xmMovl','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','OPsHv','utf-8','log','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','qdkDS','No\x20auth.json\x20found\x20at\x20','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','441clsfZX','auth.json','297579AquGyU','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','JTNmy','133ZOyOAP','14873199qrolUd','2440jfBgUI','10rSeDWS','8smLfgh','6lAXIXs','29377308MPUCUo','.enc'];_0x3cfd=function(){return _0x4c2741;};return _0x3cfd();}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x347cca){const _0x303279=_0x4d24,_0x52e89f={'qdkDS':function(_0x56e531,_0x554197){return _0x56e531(_0x554197);},'JTNmy':function(_0xbf88c7,_0x39e23b){return _0xbf88c7+_0x39e23b;},'OPsHv':function(_0x101507,_0x3073cc){return _0x101507(_0x3073cc);},'SZKxR':function(_0x519fbe,_0x45bc67){return _0x519fbe(_0x45bc67);},'zigSb':function(_0x1f133c){return _0x1f133c();},'yHgrC':_0x303279(0xdc),'GPtqM':_0x303279(0xd7),'TobNH':_0x303279(0xd5),'pkcBH':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'},_0x295dd7=_0x52e89f[_0x303279(0xda)](getEnvDir,_0x347cca),_0x217286=join(_0x295dd7,_0x303279(0xde)),_0x4ff30e=_0x52e89f[_0x303279(0xe1)](_0x217286,_0x303279(0xe9));if(!_0x52e89f[_0x303279(0xd6)](existsSync,_0x295dd7))throw new Error('Profile\x20\x22'+_0x347cca+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x347cca);if(!_0x52e89f['SZKxR'](existsSync,_0x217286))throw new Error(_0x303279(0xdb)+_0x217286+_0x303279(0xd9));const _0x324f0c=await _0x52e89f['zigSb'](getToken);if(!_0x324f0c)throw new Error(_0x52e89f['yHgrC']);const _0xafb35=await readFile(_0x217286,_0x52e89f['GPtqM']),_0x37c993=encrypt(_0xafb35,_0x324f0c);await writeFile(_0x4ff30e,_0x37c993),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x4ff30e),console[_0x303279(0xd8)](_0x52e89f['TobNH']),console[_0x303279(0xd8)](_0x52e89f['pkcBH']),existsSync(_0x4ff30e)&&(console['log'](_0x303279(0xe0)),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2c88d6=_0x418c;(function(_0x5d94b4,_0x5197ac){const _0x287802=_0x418c,_0x3bb973=_0x5d94b4();while(!![]){try{const _0x4b353a=parseInt(_0x287802(0x83))/0x1+parseInt(_0x287802(0x78))/0x2+-parseInt(_0x287802(0x9b))/0x3*(parseInt(_0x287802(0x9c))/0x4)+-parseInt(_0x287802(0xaf))/0x5*(-parseInt(_0x287802(0xb2))/0x6)+parseInt(_0x287802(0xa0))/0x7*(parseInt(_0x287802(0x86))/0x8)+-parseInt(_0x287802(0x7c))/0x9+-parseInt(_0x287802(0xa1))/0xa;if(_0x4b353a===_0x5197ac)break;else _0x3bb973['push'](_0x3bb973['shift']());}catch(_0x104871){_0x3bb973['push'](_0x3bb973['shift']());}}}(_0x11fc,0x40303));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=[_0x2c88d6(0x81),_0x2c88d6(0x9e),'bug-bash',_0x2c88d6(0x94)],opencodePluginName=_0x2c88d6(0xad);function parseJsonc(_0x2fbfff){const _0x2d1114=_0x2c88d6,_0x854884=_0x2fbfff['replace'](/\/\*[\s\S]*?\*\//g,''),_0x37ff22=_0x854884['replace'](/^\s*\/\/.*$/gm,''),_0x56a7ba=_0x37ff22[_0x2d1114(0x7d)](/,\s*([}\]])/g,'$1');return JSON[_0x2d1114(0x79)](_0x56a7ba);}function _0x11fc(){const _0x572164=['\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','ranger','vogwl','218754AVhGaI','pipe','error','8AcELft','ibPUh','✓\x20Removed\x20project\x20skill:\x20','wwgcg','log','plugin','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','erotm','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','uninstall','bSWIh','uAVpP','KkzZG','e2e-test-recommender','STCea','ranger@trailhead','✓\x20Removed\x20user\x20skill:\x20','kzSDy','stringify','remove','2385bgYjjU','1972alCkOb','opencode.json','feature-tracker','rQPlJ','242270tvObNr','1759460sOKMMe','riUdA','JweRF','RmKDt','IBMZG','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','MerOE','SjejW','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','JwakE','USOPW','string','@ranger-testing/opencode-plugin','ipirx','3305OgMEgQ','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','isArray','4422ZNOrvh','length','Nothing\x20to\x20clean\x20up.\x0a','push','wrDZb','MDpvQ','win32','842766rwHThj','parse','vxPjd','Tyxsd','2979972luoAyY','replace','close','claude'];_0x11fc=function(){return _0x572164;};return _0x11fc();}async function removeOpencodePluginConfig(_0x558a6a){const _0x42d5e5=_0x2c88d6,_0x22b9d4={'erotm':function(_0x5c4fbe,_0x26cb16){return _0x5c4fbe!==_0x26cb16;},'RmKDt':function(_0x5b23bf,_0x4585f7){return _0x5b23bf!==_0x4585f7;},'Tyxsd':function(_0x10e603,_0x27fd65,_0x1de315){return _0x10e603(_0x27fd65,_0x1de315);},'PWqDi':'utf-8','STCea':function(_0x44745a,_0x2c937c){return _0x44745a(_0x2c937c);}};if(!existsSync(_0x558a6a))return![];let _0x1e6ff2;try{const _0x4de67d=await _0x22b9d4[_0x42d5e5(0x7b)](readFile,_0x558a6a,_0x22b9d4['PWqDi']);_0x1e6ff2=_0x22b9d4[_0x42d5e5(0x95)](parseJsonc,_0x4de67d);}catch{return![];}const _0x47a33c=Array[_0x42d5e5(0xb1)](_0x1e6ff2['plugin'])?_0x1e6ff2[_0x42d5e5(0x8b)]:[];if(_0x47a33c[_0x42d5e5(0x72)]===0x0)return![];const _0x509bbe=_0x47a33c['filter'](_0x150a9b=>{const _0x5dd427=_0x42d5e5;if(_0x22b9d4[_0x5dd427(0x8e)](typeof _0x150a9b,_0x5dd427(0xac)))return!![];return _0x22b9d4[_0x5dd427(0xa4)](_0x150a9b,opencodePluginName);});if(_0x509bbe['length']===_0x47a33c[_0x42d5e5(0x72)])return![];return _0x509bbe['length']===0x0?delete _0x1e6ff2['plugin']:_0x1e6ff2[_0x42d5e5(0x8b)]=_0x509bbe,await _0x22b9d4[_0x42d5e5(0x7b)](writeFile,_0x558a6a,JSON[_0x42d5e5(0x99)](_0x1e6ff2,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x2d8b0e){const _0x247476=_0x2c88d6,_0x383680={'ASZVY':function(_0x197e1b,_0x3ac2bf){return _0x197e1b(_0x3ac2bf);},'rQPlJ':_0x247476(0x96),'KrozH':function(_0x45d6f4,_0x5b1131,_0x4c52a6,_0x123a84){return _0x45d6f4(_0x5b1131,_0x4c52a6,_0x123a84);},'riUdA':_0x247476(0x84),'vxPjd':_0x247476(0x77)};return new Promise(_0x1093ce=>{const _0x48ee9c=_0x247476,_0xb65ce=['plugin',_0x48ee9c(0x90),_0x383680[_0x48ee9c(0x9f)]];_0x2d8b0e&&_0xb65ce[_0x48ee9c(0x74)]('--scope',_0x2d8b0e);const _0x4e2803=_0x383680['KrozH'](spawn,_0x48ee9c(0x7f),_0xb65ce,{'stdio':_0x383680[_0x48ee9c(0xa2)],'shell':process['platform']===_0x383680[_0x48ee9c(0x7a)]});_0x4e2803['on']('close',_0x3738ff=>{_0x383680['ASZVY'](_0x1093ce,_0x3738ff===0x0);}),_0x4e2803['on'](_0x48ee9c(0x85),()=>{_0x383680['ASZVY'](_0x1093ce,![]);});});}function _0x418c(_0x36a685,_0x4e8549){_0x36a685=_0x36a685-0x72;const _0x11fc18=_0x11fc();let _0x418ce1=_0x11fc18[_0x36a685];return _0x418ce1;}async function removeMarketplace(){const _0x269ffe=_0x2c88d6,_0x1b5804={'wwgcg':function(_0x10823a,_0x6bddc7){return _0x10823a(_0x6bddc7);},'oamjZ':'plugin','JweRF':_0x269ffe(0x84),'bSWIh':function(_0x3aeb46,_0x3616d8){return _0x3aeb46===_0x3616d8;},'doWbx':_0x269ffe(0x7e)};return new Promise(_0x5e352b=>{const _0x4f7af5=_0x269ffe,_0x1aed37=spawn(_0x4f7af5(0x7f),[_0x1b5804['oamjZ'],'marketplace',_0x4f7af5(0x9a),'trailhead'],{'stdio':_0x1b5804[_0x4f7af5(0xa3)],'shell':_0x1b5804[_0x4f7af5(0x91)](process['platform'],_0x4f7af5(0x77))});_0x1aed37['on'](_0x1b5804['doWbx'],_0x3e8b10=>{const _0x4859e0=_0x4f7af5;_0x1b5804[_0x4859e0(0x89)](_0x5e352b,_0x3e8b10===0x0);}),_0x1aed37['on']('error',()=>{_0x5e352b(![]);});});}export async function clean(){const _0xed4500=_0x2c88d6,_0x140811={'IBMZG':_0xed4500(0x80),'vogwl':function(_0x4d1e6b){return _0x4d1e6b();},'MDpvQ':function(_0x4d012c,_0x30dcca){return _0x4d012c(_0x30dcca);},'ibPUh':function(_0x1ba383,_0x49d3d9){return _0x1ba383(_0x49d3d9);},'KFANU':function(_0x339287,_0x44e5ff,_0x12a406){return _0x339287(_0x44e5ff,_0x12a406);},'uAVpP':function(_0x566bb9){return _0x566bb9();},'USOPW':function(_0x390b47,_0x360b3e,_0x234371){return _0x390b47(_0x360b3e,_0x234371);},'eSefg':function(_0x16eb02){return _0x16eb02();},'JwakE':function(_0x4e14c3,_0x499864){return _0x4e14c3(_0x499864);},'SjejW':'project','VzXFN':function(_0x10b0e5,_0x16d998,_0x5b6719){return _0x10b0e5(_0x16d998,_0x5b6719);},'GOhKy':function(_0x3ebad3,_0x43efca){return _0x3ebad3(_0x43efca);},'PoNpz':'opencode.json','kzSDy':function(_0x1c32ba,_0x3b4d8e){return _0x1c32ba(_0x3b4d8e);},'lxZlZ':_0xed4500(0xb0),'wrDZb':function(_0x451ed5){return _0x451ed5();},'KkzZG':_0xed4500(0x8f),'TeDMw':function(_0x471765,_0x55c0d1){return _0x471765(_0x55c0d1);},'ipirx':'✓\x20Removed\x20trailhead\x20marketplace','MerOE':'\x0a✅\x20Cleanup\x20complete!\x0a'};console['log'](_0x140811[_0xed4500(0xa5)]);let _0x254368=![];try{await deleteAllCredentials(),console['log']('✓\x20Removed\x20stored\x20credentials'),_0x254368=!![];}catch{}const _0x21d17d=_0x140811['vogwl'](getCacheFile);_0x140811[_0xed4500(0x76)](existsSync,_0x21d17d)&&(await _0x140811['ibPUh'](rm,_0x21d17d),_0x254368=!![]);const _0x1efe1d=_0x140811[_0xed4500(0x82)](getRangerDir);existsSync(_0x1efe1d)&&(await _0x140811['KFANU'](rm,_0x1efe1d,{'recursive':!![]}),console[_0xed4500(0x8a)]('✓\x20Removed\x20.ranger/\x20directory'),_0x254368=!![]);const _0x16c634=_0x140811[_0xed4500(0x92)](getProjectSkillsDir);for(const _0x21c5fe of skillsToRemove){const _0x290b73=_0x140811[_0xed4500(0xab)](join,_0x16c634,_0x21c5fe);_0x140811[_0xed4500(0x87)](existsSync,_0x290b73)&&(await rm(_0x290b73,{'recursive':!![]}),console[_0xed4500(0x8a)](_0xed4500(0x88)+_0x21c5fe),_0x254368=!![]);}const _0x30543e=_0x140811['eSefg'](getUserSkillsDir);for(const _0x1caae0 of skillsToRemove){const _0x4f4e3d=_0x140811['KFANU'](join,_0x30543e,_0x1caae0);_0x140811['MDpvQ'](existsSync,_0x4f4e3d)&&(await rm(_0x4f4e3d,{'recursive':!![]}),console['log'](_0xed4500(0x97)+_0x1caae0),_0x254368=!![]);}const _0x497c68=_0x140811[_0xed4500(0xaa)](getOpencodeSkillsDir,_0x140811[_0xed4500(0xa8)]);for(const _0x43b6ce of skillsToRemove){const _0x48dbe0=join(_0x497c68,_0x43b6ce);existsSync(_0x48dbe0)&&(await rm(_0x48dbe0,{'recursive':!![]}),console['log'](_0xed4500(0x8c)+_0x43b6ce),_0x254368=!![]);}const _0x45bb59=_0x140811[_0xed4500(0xaa)](getOpencodeSkillsDir,'user');for(const _0x10bb3c of skillsToRemove){const _0x2fd7b5=_0x140811['VzXFN'](join,_0x45bb59,_0x10bb3c);existsSync(_0x2fd7b5)&&(await rm(_0x2fd7b5,{'recursive':!![]}),console['log'](_0xed4500(0xa9)+_0x10bb3c),_0x254368=!![]);}const _0x5dc96d=join(_0x140811[_0xed4500(0xaa)](getOpencodeConfigDir,_0x140811['SjejW']),_0xed4500(0x9d));await _0x140811['GOhKy'](removeOpencodePluginConfig,_0x5dc96d)&&(console[_0xed4500(0x8a)](_0xed4500(0xa6)),_0x254368=!![]);const _0xe6186d=_0x140811[_0xed4500(0xab)](join,getOpencodeConfigDir('user'),_0x140811['PoNpz']);await _0x140811[_0xed4500(0x98)](removeOpencodePluginConfig,_0xe6186d)&&(console[_0xed4500(0x8a)](_0x140811['lxZlZ']),_0x254368=!![]);const _0x371905=await _0x140811[_0xed4500(0x75)](uninstallClaudePlugin);_0x371905&&(console[_0xed4500(0x8a)](_0x140811[_0xed4500(0x93)]),_0x254368=!![]);const _0x32f09e=await _0x140811['TeDMw'](uninstallClaudePlugin,'project');_0x32f09e&&(console[_0xed4500(0x8a)](_0xed4500(0x8d)),_0x254368=!![]);const _0x49e961=await removeMarketplace();_0x49e961&&(console['log'](_0x140811[_0xed4500(0xae)]),_0x254368=!![]),_0x254368?console['log'](_0x140811[_0xed4500(0xa7)]):console[_0xed4500(0x8a)](_0xed4500(0x73));}
|
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2174(){const _0x25a174=['6010CFvLOR','DdeAa','YFYRv','UkZky','Profile\x20\x22','3546FFyCgv','Removed\x20','object','dfNvH','Set\x20','Key\x20\x22','Invalid\x20value\x20for\x20','headless','2269128NxdyVH','84195IKjjQb','891162uyLvtG','609980mmfkSP','2898577mpFaFa','547204DFImoT','includes','CxtCk','fWbkY','2vpwomg','No\x20configuration\x20set\x20for\x20\x22','false','fNCXD','log','54qpheae','(not\x20set)','\x22\x20does\x20not\x20exist.','14Yxeoaf','zzwRH'];_0x2174=function(){return _0x25a174;};return _0x2174();}const _0x264055=_0x4860;(function(_0x171586,_0x407f55){const _0x209945=_0x4860,_0xb997f5=_0x171586();while(!![]){try{const _0x2516ac=parseInt(_0x209945(0x16c))/0x1*(parseInt(_0x209945(0x170))/0x2)+-parseInt(_0x209945(0x169))/0x3+-parseInt(_0x209945(0x16a))/0x4+parseInt(_0x209945(0x168))/0x5*(parseInt(_0x209945(0x175))/0x6)+-parseInt(_0x209945(0x178))/0x7*(-parseInt(_0x209945(0x167))/0x8)+-parseInt(_0x209945(0x15f))/0x9*(parseInt(_0x209945(0x17a))/0xa)+-parseInt(_0x209945(0x16b))/0xb;if(_0x2516ac===_0x407f55)break;else _0xb997f5['push'](_0xb997f5['shift']());}catch(_0x413ea2){_0xb997f5['push'](_0xb997f5['shift']());}}}(_0x2174,0x4d31b));function _0x4860(_0x38c386,_0x3baf32){_0x38c386=_0x38c386-0x15e;const _0x2174d8=_0x2174();let _0x486076=_0x2174d8[_0x38c386];return _0x486076;}import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=[_0x264055(0x166)];function parseValue(_0x2ec1f8,_0x13b51a){const _0x256061=_0x264055,_0x402121={'YFYRv':'true'};if(BOOLEAN_KEYS[_0x256061(0x16d)](_0x2ec1f8)){if(_0x13b51a===_0x402121[_0x256061(0x17c)])return!![];if(_0x13b51a===_0x256061(0x172))return![];throw new Error(_0x256061(0x165)+_0x2ec1f8+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x13b51a;}export async function configSet(_0x49a181,_0xac0ec4,_0x109d10){const _0x51c07e=_0x264055,_0x171979={'DdeAa':function(_0x10ed55,_0x4b274d){return _0x10ed55(_0x4b274d);},'UkZky':function(_0xea1e7d,_0x5aadb0){return _0xea1e7d(_0x5aadb0);}},_0x4dc4ac=_0x171979[_0x51c07e(0x17b)](getEnvDir,_0x49a181);if(!_0x171979[_0x51c07e(0x17d)](existsSync,_0x4dc4ac))throw new Error('Profile\x20\x22'+_0x49a181+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x49a181);const _0x1447cd=await _0x171979[_0x51c07e(0x17d)](loadSettings,_0x49a181),_0x2e3e3d=parseValue(_0xac0ec4,_0x109d10);setNestedValue(_0x1447cd,_0xac0ec4,_0x2e3e3d),await saveSettings(_0x49a181,_0x1447cd),console[_0x51c07e(0x174)](_0x51c07e(0x163)+_0xac0ec4+'\x20=\x20'+_0x2e3e3d);}export async function configGet(_0x521e55,_0x17b5f9){const _0x1da6d4=_0x264055,_0x596d2c={'idJVO':function(_0x543dad,_0x45e1d){return _0x543dad(_0x45e1d);},'zzwRH':function(_0x3c88d1,_0x1f3d40,_0x5b464b){return _0x3c88d1(_0x1f3d40,_0x5b464b);}},_0x58fb48=getEnvDir(_0x521e55);if(!existsSync(_0x58fb48))throw new Error('Profile\x20\x22'+_0x521e55+'\x22\x20does\x20not\x20exist.');const _0x32cacf=await _0x596d2c['idJVO'](loadSettings,_0x521e55),_0x152a1b=_0x596d2c[_0x1da6d4(0x179)](getNestedValue,_0x32cacf,_0x17b5f9);if(_0x152a1b===undefined)console['log'](_0x1da6d4(0x176));else typeof _0x152a1b===_0x1da6d4(0x161)?console[_0x1da6d4(0x174)](JSON['stringify'](_0x152a1b,null,0x2)):console[_0x1da6d4(0x174)](_0x152a1b);}export async function configList(_0x424f73){const _0x1f2e8d=_0x264055,_0x2cc620={'fWbkY':function(_0x19d59a,_0x37c825){return _0x19d59a(_0x37c825);}},_0x1178d8=getSettingsPath(_0x424f73);if(!_0x2cc620[_0x1f2e8d(0x16f)](existsSync,_0x1178d8)){const _0x378b9f=getEnvDir(_0x424f73);if(!existsSync(_0x378b9f))throw new Error(_0x1f2e8d(0x15e)+_0x424f73+_0x1f2e8d(0x177));console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x424f73+'\x22');return;}const _0x1b2a82=await loadSettings(_0x424f73),_0x4705d5=formatSettings(_0x1b2a82);!_0x4705d5?console['log'](_0x1f2e8d(0x171)+_0x424f73+'\x22'):console[_0x1f2e8d(0x174)](_0x4705d5);}export async function configUnset(_0x18ec5b,_0x40dd8e){const _0x44e963=_0x264055,_0xfc838={'fNCXD':function(_0x110155,_0x5a69b6){return _0x110155(_0x5a69b6);},'dfNvH':function(_0x29e6ab,_0x1a99f5){return _0x29e6ab(_0x1a99f5);},'CxtCk':function(_0x599b5f,_0x56995d,_0x301ae0){return _0x599b5f(_0x56995d,_0x301ae0);},'dcbwg':function(_0x10a428,_0x473c83,_0x4c8944){return _0x10a428(_0x473c83,_0x4c8944);}},_0x87f3f5=getEnvDir(_0x18ec5b);if(!_0xfc838[_0x44e963(0x173)](existsSync,_0x87f3f5))throw new Error('Profile\x20\x22'+_0x18ec5b+_0x44e963(0x177));const _0x234f0c=await _0xfc838[_0x44e963(0x162)](loadSettings,_0x18ec5b),_0x333826=_0xfc838[_0x44e963(0x16e)](deleteNestedValue,_0x234f0c,_0x40dd8e);_0x333826?(await _0xfc838['dcbwg'](saveSettings,_0x18ec5b,_0x234f0c),console['log'](_0x44e963(0x160)+_0x40dd8e)):console['log'](_0x44e963(0x164)+_0x40dd8e+'\x22\x20not\x20found');}
|