@ranger-testing/ranger-cli 2.1.3 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x4698fa=_0x51be;(function(_0x1d55b7,_0x32fa5f){const _0x2f84cd=_0x51be,_0x36d1c1=_0x1d55b7();while(!![]){try{const _0xb5ec6e=parseInt(_0x2f84cd(0x101))/0x1*(parseInt(_0x2f84cd(0x1b9))/0x2)+-parseInt(_0x2f84cd(0x1b0))/0x3*(-parseInt(_0x2f84cd(0x20a))/0x4)+-parseInt(_0x2f84cd(0x1b4))/0x5+parseInt(_0x2f84cd(0xf4))/0x6*(parseInt(_0x2f84cd(0x17d))/0x7)+parseInt(_0x2f84cd(0x1d3))/0x8+parseInt(_0x2f84cd(0x1c8))/0x9*(-parseInt(_0x2f84cd(0x232))/0xa)+-parseInt(_0x2f84cd(0x172))/0xb;if(_0xb5ec6e===_0x32fa5f)break;else _0x36d1c1['push'](_0x36d1c1['shift']());}catch(_0x34f925){_0x36d1c1['push'](_0x36d1c1['shift']());}}}(_0x374e,0xcb979));import _0x4e43e2 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x387933=_0x51be,_0x2cc14b={'nnqVA':function(_0x1d6f58,_0x26ff8c){return _0x1d6f58(_0x26ff8c);},'OUQJF':function(_0x9e5f03,_0x26195f,_0x460163){return _0x9e5f03(_0x26195f,_0x460163);},'YLwQC':function(_0x577511,_0xb0d6){return _0x577511(_0xb0d6);}};let _0x5148bd=process['cwd']();const _0x48a481=_0x2cc14b['nnqVA'](parse,_0x5148bd)[_0x387933(0x123)];while(_0x5148bd!==_0x48a481){if(existsSync(_0x2cc14b[_0x387933(0x1a3)](join,_0x5148bd,'.ranger'))||_0x2cc14b[_0x387933(0x1ec)](existsSync,_0x2cc14b['OUQJF'](join,_0x5148bd,_0x387933(0x184))))return _0x5148bd;_0x5148bd=dirname(_0x5148bd);}return process[_0x387933(0x183)]();}_0x4e43e2[_0x4698fa(0x23d)]({'path':join(findProjectRoot(),'.env')});import _0xf004b1 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';function _0x51be(_0x5417fb,_0x352f29){_0x5417fb=_0x5417fb-0xee;const _0x374e4c=_0x374e();let _0x51be83=_0x374e4c[_0x5417fb];return _0x51be83;}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'](_0x4698fa(0x153),async _0x54e03e=>{const _0x44a016=getCurrentCollector();_0x44a016&&await _0x44a016['trackCommandError'](_0x54e03e),process['exitCode']=0x1;});const rawArgs=process[_0x4698fa(0x105)]['slice'](0x2),TOP_LEVEL_HELP=_0x4698fa(0x20f),PROFILE_HELP=_0x4698fa(0x1db),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(_0x3d1372,_0x84cf7f){console['error']('\x0a'+_0x3d1372+'\x20is\x20now\x20'+_0x84cf7f+'\x0a');}function argUsed(_0x2b25d4){const _0x337130=_0x4698fa;return rawArgs[_0x337130(0x148)](_0x163c01=>_0x163c01===_0x2b25d4||_0x163c01[_0x337130(0x1c0)](_0x2b25d4+'='));}function warnFlagRenamed(_0x1741f4,_0x44633a,_0x576062){const _0x4267f3=_0x4698fa,_0x4dc6c9={'ukuwm':function(_0x5ab1b9,_0x1ed89e,_0x17602d){return _0x5ab1b9(_0x1ed89e,_0x17602d);}};argUsed(_0x44633a)&&_0x4dc6c9[_0x4267f3(0x186)](warnRenamed,_0x1741f4+'\x20'+_0x44633a,_0x1741f4+'\x20'+_0x576062);}async function runGoCommand(_0x3d5036,_0xc310d0=![]){const _0xe39da3=_0x4698fa,_0x1e05f8={'EIdJc':function(_0x5cfd0b,_0x3485d5){return _0x5cfd0b+_0x3485d5;},'GYJCt':'ranger\x20go','lHljn':_0xe39da3(0x1c4),'BKylT':'--task','xPucC':_0xe39da3(0x167),'nLSqw':function(_0x725cf0){return _0x725cf0();},'RISKl':function(_0x322539,_0x7b8abf){return _0x322539??_0x7b8abf;},'hkiGJ':_0xe39da3(0x23d),'Sxgpq':'default','iRXlr':function(_0x301212,_0x1d1762){return _0x301212(_0x1d1762);},'quqIO':'debug-address-comments','IqeuF':_0xe39da3(0x19b),'wTvvs':function(_0x37cd43,_0x425ac1){return _0x37cd43===_0x425ac1;},'DxDFx':_0xe39da3(0x214),'NxBeE':'blocked','BvDVW':'\x20FAILED','MuCZo':'\x0aIssues:'};_0xc310d0&&warnRenamed(_0xe39da3(0x1b2),'ranger\x20go');warnFlagRenamed(_0x1e05f8['GYJCt'],_0xe39da3(0x13e),_0x1e05f8['lHljn']),warnFlagRenamed(_0x1e05f8[_0xe39da3(0x19f)],_0x1e05f8['BKylT'],_0x1e05f8['xPucC']),warnFlagRenamed('ranger\x20go','--item','--scenario');const _0x1516d9=await _0x1e05f8['nLSqw'](loadRangerConfig),_0x3ca331=_0x3d5036['model'],_0x3b0d00=_0x1516d9[_0xe39da3(0x1d1)],_0x56514a=_0x1e05f8[_0xe39da3(0x12d)](_0x3ca331,_0x3b0d00),_0x24006d=_0x3ca331?'flag':_0x3b0d00?_0x1e05f8[_0xe39da3(0x1a4)]:_0x1e05f8['Sxgpq'],_0x26a61f=await _0x1e05f8['iRXlr'](verifyFeature,{'profile':_0x3d5036['profile']??_0x3d5036['env'],'notes':_0x3d5036[_0xe39da3(0x139)]??_0x3d5036['task'],'scenario':_0x3d5036[_0xe39da3(0x102)]??_0x3d5036[_0xe39da3(0x1df)],'startPath':_0x3d5036['start-path'],'debugOutcome':_0x3d5036[_0xe39da3(0x223)],'debugAddressComments':_0x3d5036[_0x1e05f8['quqIO']],'verifyModel':_0x56514a,'verifyModelInput':_0x56514a,'verifyModelSource':_0x24006d});console['log']('\x0a'+'='['repeat'](0x3c)),console[_0xe39da3(0x1d8)](_0x26a61f[_0xe39da3(0x121)]===_0x1e05f8[_0xe39da3(0x239)]?'\x20VERIFIED':_0x1e05f8['wTvvs'](_0x26a61f['evaluation'],_0xe39da3(0x218))?_0xe39da3(0x127):_0x26a61f['evaluation']===_0xe39da3(0x1dc)?_0x1e05f8['DxDFx']:_0x1e05f8['wTvvs'](_0x26a61f[_0xe39da3(0x121)],_0x1e05f8[_0xe39da3(0x119)])?_0xe39da3(0x138):_0x1e05f8[_0xe39da3(0x188)]),console['log']('='['repeat'](0x3c)),console['log'](_0xe39da3(0xfb)+_0x26a61f['summary']),console['log'](_0xe39da3(0x142)+_0x26a61f[_0xe39da3(0x121)]),console['log'](_0xe39da3(0x220)+_0x26a61f[_0xe39da3(0x1e1)]),_0x26a61f['issues']?.[_0xe39da3(0x18c)]&&(console[_0xe39da3(0x1d8)](_0x1e05f8[_0xe39da3(0x168)]),_0x26a61f['issues']['forEach']((_0x3d9cdc,_0x591cb1)=>{const _0x1f2219=_0xe39da3;console[_0x1f2219(0x1d8)]('\x0a'+_0x1e05f8['EIdJc'](_0x591cb1,0x1)+_0x1f2219(0x1d7)+_0x3d9cdc['severity']+']\x20'+_0x3d9cdc[_0x1f2219(0xfc)]);})),process[_0xe39da3(0x1fa)](_0x26a61f[_0xe39da3(0x121)]==='verified'?0x0:0x1);}function _0x374e(){const _0x32dfa9=['Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','rRATj','list\x20<profile>','mFdtE','restore\x20<id>','project','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','ranger','xMktK','kwfKY','CLAIF','6RwaUXo','uiNoD','Qqchq','FzzKm','aaTNd','aAKEn','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Summary:\x20','description','HWyTe','number','TkhZN','jTlse','791906hdgPKS','scenario','bJHnK','JeVnp','argv','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','show\x20[id]','ranger\x20profile\x20encrypt-auth','QiPcx','List\x20all\x20feature\x20reviews','Profile\x20name','rnisK','feature\x20get-feedback','HRxYk','gAYlj','EUTYB','fcsAx','XlbTc','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','hook','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','VwuQs','scriptName','NxBeE','ranger\x20use','Scenario\x20number\x20to\x20edit\x20(1-based)','env\x20update','exclude-scenario','blocked','hwVRr','skip-chromium','evaluation','limit','root','\x0aUnknown\x20command:\x20','You\x20must\x20specify\x20a\x20profile\x20subcommand','BGeYI','\x20INCOMPLETE','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','VDPlU','ranger\x20feature\x20get-feedback','Number\x20of\x20feature\x20reviews\x20to\x20skip','status','RISKl','session-id','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','map','IChBp','ocllt','qqBAB','PMwZm','VoRYi','Environment\x20name','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','\x20BLOCKED','notes','nEAwL','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','CNEmL','trackCommandError','--env','Psbut','BqSsi','error','Evaluation:\x20','obUcx','list\x20<env>','nANOw','boolean','JXqey','some','lugNP','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','base-url','Remove\x20a\x20config\x20value','ranger\x20setup','Manage\x20profiles','feature','update','start','Set\x20a\x20config\x20value','unhandledRejection','yYQTk','JdBEi','command','CIIsp','Include\x20soft-deleted\x20feature\x20reviews','Pufll','WkGbS','nncmr','current-branch','ucEvI','EyPOR','env-name','positional','skip-auth','kTPuS','AJloI','ZwzUV','ZCTjS','xfChg','--notes','MuCZo','pbShY','Xvtli','demandCommand','zTVpq','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','kgAXK','VzeEs','TMbwa','cdp-endpoint','21515065AotfNm','array','epzNU','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','profile\x20config\x20get','dfZed','zcXIg','feature\x20add-checklist-item','slice','hexro','edit-scenario\x20<description>','9801127UuEXzy','yCfsy','opencode','update\x20<env-name>','mPXYt','LbzZZ','cwd','.env','ERDpl','ukuwm','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','BvDVW','pCvaO','ranger\x20config\x20set','usage','length','force','kDPLx','--scenario','nTCrC','RsShD','ubQBo','LwSRN','task','LuocL','bCmEz','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','key','ranger\x20delete','AOuJt','verified','Initialize\x20Ranger\x20in\x20your\x20project','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','ranger\x20config\x20unset','GYJCt','DcqrG','Manage\x20profile\x20configuration','JUJNY','OUQJF','hkiGJ','add-scenario','Config\x20key\x20to\x20remove','parse','xgFnW','eqbVs','vZtSj','PZvEO','scope','offset','cUYPK','restore','15sMHxYg','start-path','ranger\x20verify-feature','config\x20set','6799170zbdmtE','delete\x20[id]','edit-scenario','add\x20env','profile-name','2YIXzuk','hhMur','tRgle','ranger\x20feature\x20resume','ranger\x20feature\x20list','ranger\x20profile\x20config\x20set','ranger\x20create','startsWith','MBBjE','\x20\x20https://docs.ranger.net\x0a','UwVwv','--profile','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','HcTvM','profile\x20encrypt-auth','1710HdBCIE','profile\x20add','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','ydeKF','skillup','Rkfdv','report','Skip\x20Chromium\x20browser\x20installation','CWlQa','model','failed','7734160NmiFmB','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','name','.\x20[','log','hook:enable','ULhQo','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','partial','YHVyk','VgqKb','item','include-deleted','evaluationReason','dJWek','env','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','rAsOb','ranger\x20restore','LoAGj','iowdx','token','string','setup-ci\x20<token>','YLwQC','AFAqg','url','vNRno','ranger\x20add-scenario','CBzOk','Feature\x20review\x20ID','report\x20[id]','checklist','Scenario\x20description','Config\x20key','xYIzj','feature\x20show','You\x20must\x20specify\x20a\x20config\x20subcommand','exit','AKkex','use','option','list','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','add\x20<profile-name>','resume','tAcgm','ranger\x20profile\x20add','Update\x20authentication\x20for\x20an\x20existing\x20profile','hook:disable','wdDaV','value','List\x20all\x20profiles','IFClt','897388oPtiSo','SnmmB','ispED','includes','profile','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.','yONSk','zZluE','login','Documentation:\x0a','\x20PARTIAL','XWvTh','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','incomplete','IJYDd','ywOgH','GSpfO','ranger\x20config\x20list','dvdls','verify-feature','user','Reason:\x20','help','ranger\x20config\x20get','debug-outcome','TdQmW','tXsSF','FMvlT','dqvbF','ranger\x20get-review','GDuhK','NyPHZ','enable','Feature\x20review\x20description','ranger\x20resume','add-scenario\x20<description>','yTseU','get-feedback\x20[id]','vRHhG','6890tnKjMC','Config\x20value','wGQXP','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','Get\x20a\x20config\x20value','alias','IqeuF','OdeuT','config\x20get','jFVkS','config','swtRr'];_0x374e=function(){return _0x32dfa9;};return _0x374e();}_0xf004b1(process[_0x4698fa(0x105)][_0x4698fa(0x17a)](0x2))[_0x4698fa(0x118)](_0x4698fa(0xf0))[_0x4698fa(0x18b)](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0x4698fa(0x156)]('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0xd13fbb=>{const _0x592006=_0x4698fa,_0x471c3c={'zZluE':'description','lMWOh':'scenario','FzzKm':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','XUeSp':'checklist'};return _0xd13fbb[_0x592006(0x160)](_0x592006(0x1d6),{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x471c3c[_0x592006(0x211)],{'type':'string','alias':'d','description':_0x592006(0x22c)})[_0x592006(0x1fd)](_0x471c3c['lMWOh'],{'type':_0x592006(0x173),'alias':'c','description':_0x471c3c[_0x592006(0xf7)]})[_0x592006(0x1fd)](_0x471c3c['XUeSp'],{'type':'array','hidden':!![]});},async _0x1d43f0=>{const _0x1a723d=_0x4698fa,_0x2ec645={'bZcSz':'--checklist','JdBEi':_0x1a723d(0x18f),'sNazj':function(_0x24c068,_0x437b47,_0x45f470){return _0x24c068(_0x437b47,_0x45f470);},'xfChg':'create'};warnFlagRenamed(_0x1a723d(0x1bf),_0x2ec645['bZcSz'],_0x2ec645[_0x1a723d(0x155)]);const _0x117d44=_0x1d43f0['scenario']||_0x1d43f0[_0x1a723d(0x1f4)];await _0x2ec645['sNazj'](withTelemetry,_0x2ec645[_0x1a723d(0x166)],()=>featureCreate(_0x1d43f0[_0x1a723d(0x1d6)],{'description':_0x1d43f0[_0x1a723d(0xfc)],'scenarios':_0x117d44}));})[_0x4698fa(0x156)](_0x4698fa(0x1fe),_0x4698fa(0x10b),_0x36fe62=>{const _0x1e30c6=_0x4698fa,_0x814df1={'bzPdz':'boolean','YHVyk':'limit','VRUEa':_0x1e30c6(0xfe),'hwVRr':_0x1e30c6(0x158)};return _0x36fe62[_0x1e30c6(0x1fd)]('current-branch',{'type':_0x814df1['bzPdz'],'description':_0x1e30c6(0xef)})['option'](_0x814df1[_0x1e30c6(0x1dd)],{'type':'number','alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option']('offset',{'type':_0x814df1['VRUEa'],'alias':'o','description':_0x1e30c6(0x12b),'default':0x0})['option'](_0x1e30c6(0x1e0),{'type':'boolean','alias':'d','description':_0x814df1[_0x1e30c6(0x11f)],'default':![]});},async _0x4e817f=>{const _0x2417af=_0x4698fa,_0x54ffa1={'ClLOV':function(_0x55d6a5,_0x2fefaf,_0x467cfc){return _0x55d6a5(_0x2fefaf,_0x467cfc);},'yAcPD':'list'};await _0x54ffa1['ClLOV'](withTelemetry,_0x54ffa1['yAcPD'],()=>featureList({'currentBranch':_0x4e817f[_0x2417af(0x15c)],'limit':_0x4e817f['limit'],'offset':_0x4e817f['offset'],'includeDeleted':_0x4e817f[_0x2417af(0x1e0)]}));})[_0x4698fa(0x156)](_0x4698fa(0x108),_0x4698fa(0x16d),_0x27ec70=>{const _0x86a2b6=_0x4698fa;return _0x27ec70[_0x86a2b6(0x160)]('id',{'type':_0x86a2b6(0x1ea),'description':_0x86a2b6(0x1f2)});},async _0x5e72b7=>{const _0x8fb089=_0x4698fa,_0x1fac15={'tAcgm':function(_0x177bb9,_0x19c6a6,_0x355548){return _0x177bb9(_0x19c6a6,_0x355548);}};await _0x1fac15[_0x8fb089(0x202)](withTelemetry,'show',()=>featureShow(_0x5e72b7['id']));})[_0x4698fa(0x156)]('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x15fe8c=>{const _0x42b21d=_0x4698fa;return _0x15fe8c['positional']('id',{'type':_0x42b21d(0x1ea),'description':_0x42b21d(0x1ca)});},async _0x5bd291=>{const _0x3b3255=_0x4698fa,_0x5a8db0={'epzNU':function(_0x3d75f3,_0x5c2f44,_0x1ac8a1){return _0x3d75f3(_0x5c2f44,_0x1ac8a1);},'GAczu':_0x3b3255(0x201)};await _0x5a8db0[_0x3b3255(0x174)](withTelemetry,_0x5a8db0['GAczu'],()=>featureResume(_0x5bd291['id']));})[_0x4698fa(0x156)](_0x4698fa(0x22e),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x4ad331=>{const _0x345b85=_0x4698fa,_0x1a0c6a={'CirGX':_0x345b85(0x216)};return _0x4ad331['positional']('description',{'type':_0x345b85(0x1ea),'description':'Scenario\x20description','demandOption':!![]})[_0x345b85(0x1fd)]('id',{'type':_0x345b85(0x1ea),'description':_0x1a0c6a['CirGX']});},async _0x190b14=>{const _0x34d14b=_0x4698fa,_0x5cca50={'XdAtx':function(_0x474b72,_0xaab9b3,_0xe638fb){return _0x474b72(_0xaab9b3,_0xe638fb);}};await _0x5cca50['XdAtx'](withTelemetry,_0x34d14b(0x1a5),()=>featureAddScenario(_0x190b14['description'],_0x190b14['id']));})[_0x4698fa(0x156)](_0x4698fa(0x17c),_0x4698fa(0x197),_0x4d616c=>{const _0x5b4160=_0x4698fa,_0x3cff52={'VwuQs':'New\x20scenario\x20description','JSjYD':_0x5b4160(0xfe),'ocllt':_0x5b4160(0x11b)};return _0x4d616c['positional'](_0x5b4160(0xfc),{'type':_0x5b4160(0x1ea),'description':_0x3cff52[_0x5b4160(0x117)],'demandOption':!![]})[_0x5b4160(0x1fd)](_0x5b4160(0x102),{'type':_0x3cff52['JSjYD'],'description':_0x3cff52[_0x5b4160(0x132)],'demandOption':!![]})['option']('id',{'type':'string','description':_0x5b4160(0x216)});},async _0x9b0f3c=>{const _0x41ae81=_0x4698fa;await withTelemetry(_0x41ae81(0x1b6),()=>featureEditScenario(_0x9b0f3c['description'],{'id':_0x9b0f3c['id'],'scenario':_0x9b0f3c['scenario']}));})['command'](_0x4698fa(0x1f3),_0x4698fa(0x23f),_0x70ddd=>{const _0x1c996f=_0x4698fa,_0x25da82={'LnReA':'string','cERuL':_0x1c996f(0x1f2),'GSpfO':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x70ddd['positional']('id',{'type':_0x25da82['LnReA'],'description':_0x25da82['cERuL']})['option'](_0x1c996f(0x11d),{'type':'array','description':_0x25da82[_0x1c996f(0x21b)]});},async _0x436b0c=>{const _0x2a3a64=_0x4698fa,_0x4ea796=_0x436b0c[_0x2a3a64(0x11d)],_0x3fd516=_0x4ea796?_0x4ea796[_0x2a3a64(0x130)](_0x453a0f=>Number(_0x453a0f)):undefined;await withTelemetry(_0x2a3a64(0x1ce),()=>featureReportPrDescription(_0x436b0c['id'],{'excludeScenarios':_0x3fd516}));})['command']('get-review\x20[id]',_0x4698fa(0x137),_0x38d301=>{const _0x2dfa6=_0x4698fa;return _0x38d301['positional']('id',{'type':'string','description':_0x2dfa6(0x216)});},async _0x32dcd7=>{const _0x319081=_0x4698fa,_0x20412a={'kDPLx':'get-review'};await withTelemetry(_0x20412a[_0x319081(0x18e)],()=>featureGetReview(_0x32dcd7['id']));})[_0x4698fa(0x156)]('delete\x20[id]',_0x4698fa(0x116),_0x37caf4=>{const _0x5a86fe=_0x4698fa;return _0x37caf4[_0x5a86fe(0x160)]('id',{'type':_0x5a86fe(0x1ea),'description':'Feature\x20review\x20ID'});},async _0x45f468=>{const _0x2c081b=_0x4698fa,_0x29000d={'EyPOR':function(_0x467809,_0x3072b1,_0x523af0){return _0x467809(_0x3072b1,_0x523af0);}};await _0x29000d[_0x2c081b(0x15e)](withTelemetry,'delete',()=>featureDelete(_0x45f468['id']));})[_0x4698fa(0x156)](_0x4698fa(0x243),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x22aca9=>{const _0x436277=_0x4698fa,_0x41bc40={'wRIsx':_0x436277(0x1ea)};return _0x22aca9['positional']('id',{'type':_0x41bc40['wRIsx'],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x3c5d4b=>{const _0x74e45d=_0x4698fa,_0x31030b={'ULhQo':_0x74e45d(0x1af)};await withTelemetry(_0x31030b[_0x74e45d(0x1da)],()=>featureRestore(_0x3c5d4b['id']));})['command']('setup\x20[token]',_0x4698fa(0x19c),_0x2133ee=>{const _0x6994a5=_0x4698fa,_0x4b5065={'zYtPt':_0x6994a5(0x1e9),'AFAqg':_0x6994a5(0x1e4),'vzAHw':_0x6994a5(0x120),'ubQBo':'boolean','xYIzj':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','ISHFX':_0x6994a5(0x1ea),'XWvTh':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','fgUSV':'url','ZCTjS':_0x6994a5(0xfa),'jTlse':_0x6994a5(0x114),'XcGAB':'opencode','uiNoD':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)'};return _0x2133ee['positional'](_0x4b5065['zYtPt'],{'type':_0x6994a5(0x1ea),'description':_0x4b5065[_0x6994a5(0x1ed)]})['option'](_0x4b5065['vzAHw'],{'type':_0x4b5065[_0x6994a5(0x192)],'description':_0x4b5065[_0x6994a5(0x1f7)],'default':![]})['option'](_0x6994a5(0x1ac),{'type':_0x4b5065['ISHFX'],'choices':[_0x6994a5(0x21f),'project'],'description':_0x4b5065[_0x6994a5(0x215)]})['option'](_0x4b5065['fgUSV'],{'type':'string','description':_0x4b5065[_0x6994a5(0x165)]})['option']('force',{'type':_0x4b5065['ubQBo'],'description':_0x4b5065[_0x6994a5(0x100)],'default':![]})['option'](_0x4b5065['XcGAB'],{'type':_0x4b5065['ubQBo'],'description':_0x4b5065[_0x6994a5(0xf5)],'default':![]});},async _0xd2e711=>{const _0x4e2acf=_0x4698fa;await withTelemetry(_0x4e2acf(0x151),_0xff4b4b=>start(_0xd2e711[_0x4e2acf(0x1e9)],{'skipChromium':_0xd2e711[_0x4e2acf(0x120)],'scope':_0xd2e711[_0x4e2acf(0x1ac)],'url':_0xd2e711['url'],'force':_0xd2e711[_0x4e2acf(0x18d)],'opencode':_0xd2e711['opencode']},_0xff4b4b));})['command'](_0x4698fa(0x1eb),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x4db611=>{const _0x35063d=_0x4698fa,_0x290c97={'swtRr':'Ranger\x20API\x20token','EcWGb':_0x35063d(0x20e),'hCcou':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','wdDaV':_0x35063d(0x14b),'JXqey':'string','VUhOt':'skip-chromium','IEvix':'boolean'};return _0x4db611['positional']('token',{'type':'string','description':_0x290c97[_0x35063d(0x23e)],'demandOption':!![]})[_0x35063d(0x1fd)](_0x290c97['EcWGb'],{'type':'string','description':_0x290c97['hCcou']})['option'](_0x290c97[_0x35063d(0x206)],{'type':_0x290c97[_0x35063d(0x147)],'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})[_0x35063d(0x1fd)](_0x290c97['VUhOt'],{'type':_0x290c97['IEvix'],'description':_0x35063d(0x1cf),'default':![]});},async _0x28a6fe=>{const _0xf53166=_0x4698fa;await withTelemetry('setup-ci',_0x23c2ae=>setupCi(_0x28a6fe[_0xf53166(0x1e9)],{'profile':_0x28a6fe['profile'],'baseUrl':_0x28a6fe[_0xf53166(0x14b)],'skipChromium':_0x28a6fe[_0xf53166(0x120)]},_0x23c2ae));})['command'](_0x4698fa(0x212),'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x55d69b=_0x4698fa;await withTelemetry(_0x55d69b(0x212),()=>login());})['command']('skillup','Install\x20Ranger\x20skills',_0x13108f=>{const _0xc9cc41=_0x4698fa,_0x424e38={'rnisK':_0xc9cc41(0x17f),'OdeuT':'Install\x20scope\x20for\x20skills'};return _0x13108f[_0xc9cc41(0x1fd)](_0x424e38[_0xc9cc41(0x10d)],{'type':'boolean','description':'Install\x20skills\x20for\x20OpenCode','default':![]})[_0xc9cc41(0x1fd)](_0xc9cc41(0x1ac),{'type':_0xc9cc41(0x1ea),'choices':['user',_0xc9cc41(0x244)],'description':_0x424e38[_0xc9cc41(0x23a)]});},async _0xc5850a=>{const _0x251e1f=_0x4698fa,_0x4d6eb3={'lQALK':function(_0x2ea972,_0x2d7c64,_0x5db1bf){return _0x2ea972(_0x2d7c64,_0x5db1bf);},'BGeYI':_0x251e1f(0x1cc)},_0x699c12=Boolean(_0xc5850a['opencode']);await _0x4d6eb3['lQALK'](withTelemetry,_0x4d6eb3[_0x251e1f(0x126)],()=>skillup({'autoInstall':_0xc5850a[_0x251e1f(0x1ac)],'platform':_0x699c12?_0x251e1f(0x17f):'claude'}));})['command']('clean',_0x4698fa(0x1d5),()=>{},async()=>{const _0x4b1baa={'gYAPn':'clean'};await withTelemetry(_0x4b1baa['gYAPn'],()=>clean());})[_0x4698fa(0x156)](_0x4698fa(0x20e),_0x4698fa(0x14e),_0x1fa73b=>{const _0x470d9a=_0x4698fa,_0x104c29={'OjhUS':'profile-name','LoAGj':_0x470d9a(0x1ea),'fupgS':_0x470d9a(0x235),'nEAwL':_0x470d9a(0x146),'UwVwv':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','FpZLa':_0x470d9a(0x1ee),'XlbTc':'force','mFdtE':_0x470d9a(0x171),'LuocL':_0x470d9a(0x12f),'vNRno':function(_0x21a350,_0x399167,_0x575ad6,_0x2242db){return _0x21a350(_0x399167,_0x575ad6,_0x2242db);},'nDYqa':'Name\x20of\x20the\x20profile','whRvb':function(_0xdb86cb,_0x295e40,_0x33d982){return _0xdb86cb(_0x295e40,_0x33d982);},'slmYU':'profile\x20ls','SnmmB':'Name\x20of\x20the\x20profile\x20to\x20update','ZwzUV':'profile\x20update','kgAXK':'profile','Psbut':_0x470d9a(0x106),'FyBFB':'value','WkGbS':function(_0x50fdaa,_0x4fe2d7,_0x39ff4c){return _0x50fdaa(_0x4fe2d7,_0x39ff4c);},'CLAIF':'profile\x20config\x20set','qKsjg':_0x470d9a(0x198),'gSNPO':'set\x20<profile>\x20<key>\x20<value>','CRudI':'get\x20<profile>\x20<key>','esBDm':_0x470d9a(0x237),'lPuqS':'List\x20all\x20config\x20for\x20a\x20profile','gAYlj':'unset\x20<profile>\x20<key>','fCqRp':_0x470d9a(0x14c),'ToMPa':_0x470d9a(0x200),'Xvtli':'Switch\x20to\x20using\x20a\x20specific\x20profile','BqSsi':'encrypt-auth\x20<profile>','QBMTp':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','NvSRH':'update\x20<profile-name>','PMwZm':_0x470d9a(0x1a1),'ispED':_0x470d9a(0x125)};return _0x1fa73b['usage'](PROFILE_HELP)['command'](_0x104c29['ToMPa'],'Add\x20profile\x20configuration',_0x1a835a=>{const _0x372974=_0x470d9a;return _0x1a835a[_0x372974(0x160)](_0x104c29['OjhUS'],{'type':_0x104c29[_0x372974(0x1e7)],'description':_0x104c29['fupgS'],'demandOption':!![]})['option']('ci',{'type':_0x104c29['nEAwL'],'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0x372974(0x1fd)](_0x372974(0x161),{'type':_0x104c29[_0x372974(0x13a)],'description':_0x104c29[_0x372974(0x1c3)],'default':![]})['option'](_0x104c29['FpZLa'],{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x104c29[_0x372974(0x113)],{'type':'boolean','description':_0x372974(0x114),'default':![]})[_0x372974(0x1fd)](_0x104c29[_0x372974(0x242)],{'type':'string','description':_0x104c29[_0x372974(0x195)]});},async _0x532899=>{const _0x124637=_0x470d9a;await _0x104c29[_0x124637(0x1ef)](withTelemetry,_0x124637(0x1c9),_0x4d376d=>addEnv(_0x532899[_0x124637(0x1b8)],{'ci':_0x532899['ci'],'skipAuth':_0x532899['skip-auth'],'url':_0x532899['url'],'force':_0x532899[_0x124637(0x18d)],'cdpEndpoint':_0x532899['cdp-endpoint']},_0x4d376d),{'isElectron':Boolean(_0x532899[_0x104c29['mFdtE']])});})[_0x470d9a(0x156)]('use\x20<profile-name>',_0x104c29[_0x470d9a(0x16a)],_0x1fe089=>{const _0x3ad44a=_0x470d9a;return _0x1fe089[_0x3ad44a(0x160)](_0x3ad44a(0x1b8),{'type':_0x3ad44a(0x1ea),'description':_0x104c29['nDYqa'],'demandOption':!![]});},async _0x482c66=>{const _0x363136=_0x470d9a;await withTelemetry('profile\x20use',()=>useEnv(_0x482c66[_0x363136(0x1b8)]));})['command'](_0x104c29[_0x470d9a(0x140)],_0x104c29['QBMTp'],_0x366704=>{const _0x4f91f8=_0x470d9a;return _0x366704['positional']('profile',{'type':_0x104c29[_0x4f91f8(0x1e7)],'description':'Profile\x20name','demandOption':!![]});},async _0x6c23fd=>{const _0x53b1bf=_0x470d9a;await _0x104c29['whRvb'](withTelemetry,_0x53b1bf(0x1c7),()=>authEncrypt(_0x6c23fd['profile']));})['command']('ls',_0x470d9a(0x208),()=>{},async()=>{await _0x104c29['whRvb'](withTelemetry,_0x104c29['slmYU'],()=>envList());})[_0x470d9a(0x156)](_0x104c29['NvSRH'],_0x470d9a(0x204),_0x562da1=>{const _0x3f988b=_0x470d9a;return _0x562da1[_0x3f988b(0x160)](_0x104c29['OjhUS'],{'type':_0x3f988b(0x1ea),'description':_0x104c29[_0x3f988b(0x20b)],'demandOption':!![]});},async _0x5d81f1=>{const _0x1afb77=_0x470d9a;await withTelemetry(_0x104c29[_0x1afb77(0x164)],_0x24d2e3=>updateEnv(_0x5d81f1['profile-name'],_0x24d2e3));})['command']('config',_0x104c29[_0x470d9a(0x134)],_0x115ac6=>{const _0x1e94f9=_0x470d9a,_0x26e197={'FPmvj':_0x104c29[_0x1e94f9(0xf3)],'wGQXP':function(_0x4120ad,_0x54b7d4,_0x779fbd){return _0x4120ad(_0x54b7d4,_0x779fbd);},'FQyDc':'string','lugNP':_0x104c29['qKsjg'],'iKDjX':'profile\x20config\x20unset'};return _0x115ac6[_0x1e94f9(0x18b)](PROFILE_CONFIG_HELP)['command'](_0x104c29['gSNPO'],_0x1e94f9(0x152),_0x35ac1c=>{const _0x329dfb=_0x1e94f9;return _0x35ac1c['positional'](_0x104c29['kgAXK'],{'type':_0x329dfb(0x1ea),'description':'Profile\x20name','demandOption':!![]})['positional'](_0x329dfb(0x198),{'type':'string','description':_0x104c29[_0x329dfb(0x13f)],'demandOption':!![]})['positional'](_0x104c29['FyBFB'],{'type':'string','description':'Config\x20value','demandOption':!![]});},async _0x11c149=>{const _0x42bf49=_0x1e94f9;await withTelemetry(_0x26e197['FPmvj'],()=>configSet(_0x11c149[_0x42bf49(0x20e)],_0x11c149['key'],_0x11c149['value']));})[_0x1e94f9(0x156)](_0x104c29['CRudI'],_0x104c29['esBDm'],_0x2636e0=>{const _0x3b4f51=_0x1e94f9;return _0x2636e0['positional']('profile',{'type':_0x3b4f51(0x1ea),'description':'Profile\x20name','demandOption':!![]})[_0x3b4f51(0x160)](_0x3b4f51(0x198),{'type':_0x3b4f51(0x1ea),'description':_0x3b4f51(0x1f6),'demandOption':!![]});},async _0x73aaa4=>{const _0x3a5ada=_0x1e94f9;await _0x26e197[_0x3a5ada(0x234)](withTelemetry,_0x3a5ada(0x176),()=>configGet(_0x73aaa4['profile'],_0x73aaa4['key']));})['command'](_0x1e94f9(0x241),_0x104c29['lPuqS'],_0x512529=>{const _0x4c3472=_0x1e94f9;return _0x512529[_0x4c3472(0x160)](_0x104c29[_0x4c3472(0x16e)],{'type':_0x104c29['LoAGj'],'description':_0x4c3472(0x10c),'demandOption':!![]});},async _0x476cae=>{const _0x368085=_0x1e94f9;await _0x104c29[_0x368085(0x15a)](withTelemetry,'profile\x20config\x20list',()=>configList(_0x476cae[_0x368085(0x20e)]));})['command'](_0x104c29[_0x1e94f9(0x110)],_0x104c29['fCqRp'],_0x2f41cc=>{const _0xd62c20=_0x1e94f9;return _0x2f41cc[_0xd62c20(0x160)](_0xd62c20(0x20e),{'type':_0x26e197['FQyDc'],'description':_0xd62c20(0x10c),'demandOption':!![]})[_0xd62c20(0x160)](_0x26e197[_0xd62c20(0x149)],{'type':_0x26e197['FQyDc'],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x1dcbf7=>{await withTelemetry(_0x26e197['iKDjX'],()=>configUnset(_0x1dcbf7['profile'],_0x1dcbf7['key']));})['demandCommand'](0x1,_0x1e94f9(0xee));})[_0x470d9a(0x16b)](0x1,_0x104c29[_0x470d9a(0x20c)]);})[_0x4698fa(0x156)](_0x4698fa(0x12c),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x474657=_0x4698fa,_0x5bc226={'CIIsp':function(_0xf9e7a9,_0x56d5c9,_0x5530eb){return _0xf9e7a9(_0x56d5c9,_0x5530eb);},'IJYDd':_0x474657(0x12c)};await _0x5bc226[_0x474657(0x157)](withTelemetry,_0x5bc226[_0x474657(0x219)],()=>status());})['command']('update',_0x4698fa(0x107),()=>{},async()=>{const _0x5034e7=_0x4698fa,_0x23c3fc={'NSFeR':function(_0x22f693,_0x49ef5e,_0x129ce0){return _0x22f693(_0x49ef5e,_0x129ce0);}};await _0x23c3fc['NSFeR'](withTelemetry,_0x5034e7(0x150),()=>update());})['command']('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x478445=>{const _0x47f682=_0x4698fa,_0xa874e9={'hexro':'string','rRATj':_0x47f682(0x1d4),'BAegT':_0x47f682(0x139),'VgqKb':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','TkhZN':'number','FmZJf':'Scenario\x20index\x20(1-based)','yTseU':_0x47f682(0x245),'YlnCL':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','qjRKs':_0x47f682(0x194)};return _0x478445['option'](_0x47f682(0x20e),{'type':_0xa874e9['hexro'],'description':_0xa874e9[_0x47f682(0x240)]})[_0x47f682(0x1fd)](_0xa874e9['BAegT'],{'type':_0xa874e9[_0x47f682(0x17b)],'description':_0xa874e9[_0x47f682(0x1de)]})[_0x47f682(0x1fd)]('scenario',{'type':_0xa874e9['TkhZN'],'description':_0xa874e9['FmZJf']})['option'](_0x47f682(0x1b1),{'type':_0xa874e9['hexro'],'description':_0xa874e9[_0x47f682(0x22f)]})['option']('model',{'type':_0xa874e9[_0x47f682(0x17b)],'description':_0xa874e9['YlnCL']})['option'](_0x47f682(0x223),{'type':_0x47f682(0x1ea),'hidden':!![],'choices':['verified',_0x47f682(0x1dc),_0x47f682(0x11e),_0x47f682(0x1d2),'incomplete']})['option']('debug-address-comments',{'type':'boolean','hidden':!![]})[_0x47f682(0x1fd)](_0x47f682(0x1e3),{'type':_0xa874e9[_0x47f682(0x17b)],'hidden':!![]})['option'](_0xa874e9['qjRKs'],{'type':_0xa874e9[_0x47f682(0x17b)],'hidden':!![]})[_0x47f682(0x1fd)]('item',{'type':_0xa874e9[_0x47f682(0xff)],'hidden':!![]});},async _0x3d54f6=>{await runGoCommand(_0x3d54f6);})[_0x4698fa(0x156)]('auth',![],_0x2f8226=>{const _0x4e8957=_0x4698fa,_0x53738b={'TMbwa':'profile','ydeKF':_0x4e8957(0x1ea),'notWH':'Profile\x20name','CBzOk':function(_0x268a47,_0x269af7,_0x5267af){return _0x268a47(_0x269af7,_0x5267af);},'bCmEz':'ranger\x20auth\x20encrypt','CWlQa':_0x4e8957(0x109),'xgFnW':'encrypt\x20<profile>','kwfKY':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x2f8226['command'](_0x53738b[_0x4e8957(0x1a8)],![],_0x11c484=>{const _0x97edbc=_0x4e8957;return _0x11c484['positional'](_0x53738b[_0x97edbc(0x170)],{'type':_0x53738b[_0x97edbc(0x1cb)],'description':_0x53738b['notWH'],'demandOption':!![]});},async _0x485e8b=>{const _0x2ba5ef=_0x4e8957;_0x53738b[_0x2ba5ef(0x1f1)](warnRenamed,_0x53738b[_0x2ba5ef(0x196)],_0x53738b[_0x2ba5ef(0x1d0)]),await authEncrypt(_0x485e8b[_0x2ba5ef(0x20e)]);})[_0x4e8957(0x16b)](0x1,_0x53738b[_0x4e8957(0xf2)]);},()=>{})['command']('start\x20[token]',![],_0x2b359e=>{const _0xedb2d5=_0x4698fa,_0x389afe={'rAsOb':'string','Qqchq':_0xedb2d5(0x1ac),'iQpNk':'project','ywOgH':_0xedb2d5(0x1ee),'pbShY':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url'};return _0x2b359e[_0xedb2d5(0x160)]('token',{'type':_0x389afe[_0xedb2d5(0x1e5)],'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0xedb2d5(0x1fd)](_0xedb2d5(0x120),{'type':'boolean','description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})['option'](_0x389afe[_0xedb2d5(0xf6)],{'type':'string','choices':[_0xedb2d5(0x21f),_0x389afe['iQpNk']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x389afe[_0xedb2d5(0x21a)],{'type':_0x389afe['rAsOb'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0xedb2d5(0x1fd)]('force',{'type':_0xedb2d5(0x146),'description':_0x389afe[_0xedb2d5(0x169)],'default':![]});},async _0x2b1537=>{const _0x25cc7f=_0x4698fa,_0x4fe514={'zBjoR':function(_0x441ce8,_0x4b5aaf,_0xe3bc49){return _0x441ce8(_0x4b5aaf,_0xe3bc49);},'yONSk':_0x25cc7f(0x14d),'btBeC':'start'};_0x4fe514['zBjoR'](warnRenamed,'ranger\x20start',_0x4fe514[_0x25cc7f(0x210)]),await withTelemetry(_0x4fe514['btBeC'],_0x38240b=>start(_0x2b1537[_0x25cc7f(0x1e9)],{'skipChromium':_0x2b1537['skip-chromium'],'scope':_0x2b1537[_0x25cc7f(0x1ac)],'url':_0x2b1537[_0x25cc7f(0x1ee)],'force':_0x2b1537['force']},_0x38240b));})['command'](_0x4698fa(0x21e),![],_0x5bd7a9=>{const _0x1c62a8=_0x4698fa,_0x471b58={'tMoXs':_0x1c62a8(0x194),'vZtSj':_0x1c62a8(0xfe),'LwSRN':'Scenario\x20index\x20(1-based)','AKkex':_0x1c62a8(0x20e),'AOuJt':_0x1c62a8(0x1ea),'BkOSd':_0x1c62a8(0x139),'HWyTe':_0x1c62a8(0x102),'GDhOI':_0x1c62a8(0x1b1),'cUYPK':_0x1c62a8(0x245),'RsShD':_0x1c62a8(0x1d1),'qoxAe':'debug-outcome','Igxfs':_0x1c62a8(0x1d2),'QiPcx':'incomplete'};return _0x5bd7a9[_0x1c62a8(0x1fd)](_0x1c62a8(0x1e3),{'type':'string','description':_0x1c62a8(0x1d4)})['option'](_0x471b58['tMoXs'],{'type':'string','description':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)'})['option']('item',{'type':_0x471b58[_0x1c62a8(0x1aa)],'description':_0x471b58[_0x1c62a8(0x193)]})[_0x1c62a8(0x1fd)](_0x471b58[_0x1c62a8(0x1fb)],{'type':_0x471b58['AOuJt'],'hidden':!![]})['option'](_0x471b58['BkOSd'],{'type':_0x1c62a8(0x1ea),'hidden':!![]})[_0x1c62a8(0x1fd)](_0x471b58[_0x1c62a8(0xfd)],{'type':_0x471b58['vZtSj'],'hidden':!![]})[_0x1c62a8(0x1fd)](_0x471b58['GDhOI'],{'type':_0x471b58[_0x1c62a8(0x19a)],'description':_0x471b58[_0x1c62a8(0x1ae)]})['option'](_0x471b58[_0x1c62a8(0x191)],{'type':_0x1c62a8(0x1ea),'hidden':!![]})['option'](_0x471b58['qoxAe'],{'type':_0x471b58['AOuJt'],'hidden':!![],'choices':[_0x1c62a8(0x19b),'partial','blocked',_0x471b58['Igxfs'],_0x471b58[_0x1c62a8(0x10a)]]});},async _0x9032ee=>{const _0x9c6f48={'FVRZd':function(_0x414830,_0x2e5fd7,_0xe2ec80){return _0x414830(_0x2e5fd7,_0xe2ec80);}};await _0x9c6f48['FVRZd'](runGoCommand,_0x9032ee,!![]);})[_0x4698fa(0x156)]('add\x20env\x20<env-name>',![],_0x4036dc=>{const _0x1ff237=_0x4698fa,_0x1e108c={'HCoRs':_0x1ff237(0x15f),'aAKEn':'string','bJHnK':_0x1ff237(0x146),'tRgle':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','JUJNY':'skip-auth','gbvRV':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x4036dc['positional'](_0x1e108c['HCoRs'],{'type':_0x1e108c[_0x1ff237(0xf9)],'description':_0x1ff237(0x13b),'demandOption':!![]})[_0x1ff237(0x1fd)]('ci',{'type':_0x1e108c[_0x1ff237(0x103)],'description':_0x1e108c[_0x1ff237(0x1bb)],'default':![]})[_0x1ff237(0x1fd)](_0x1e108c[_0x1ff237(0x1a2)],{'type':_0x1e108c['bJHnK'],'description':_0x1e108c['gbvRV'],'default':![]});},async _0x44e94c=>{const _0x504283=_0x4698fa,_0x55f499={'GDuhK':function(_0x436483,_0x43cbbd,_0x4b1e0c){return _0x436483(_0x43cbbd,_0x4b1e0c);},'IFClt':_0x504283(0x203),'yYQTk':function(_0x3cddf9,_0x124031,_0x3b7cc4){return _0x3cddf9(_0x124031,_0x3b7cc4);},'nANOw':_0x504283(0x1b7)};_0x55f499[_0x504283(0x229)](warnRenamed,'ranger\x20add\x20env',_0x55f499[_0x504283(0x209)]),await _0x55f499[_0x504283(0x154)](withTelemetry,_0x55f499[_0x504283(0x145)],_0x32df35=>addEnv(_0x44e94c['env-name'],{'ci':_0x44e94c['ci'],'skipAuth':_0x44e94c[_0x504283(0x161)]},_0x32df35));})[_0x4698fa(0x156)]('use\x20<env-name>',![],_0x3f4e4c=>{const _0x49fa8e=_0x4698fa,_0x4c54f4={'TMRhb':'env-name'};return _0x3f4e4c[_0x49fa8e(0x160)](_0x4c54f4['TMRhb'],{'type':'string','description':'Name\x20of\x20the\x20environment','demandOption':!![]});},async _0x17453e=>{const _0x2ba3f5=_0x4698fa,_0x306dac={'TdQmW':function(_0x424ec4,_0x183ee7,_0x582a38){return _0x424ec4(_0x183ee7,_0x582a38);},'sxecd':_0x2ba3f5(0x11a),'xMktK':_0x2ba3f5(0x1fc)};_0x306dac[_0x2ba3f5(0x224)](warnRenamed,_0x306dac['sxecd'],'ranger\x20profile\x20use'),await withTelemetry(_0x306dac[_0x2ba3f5(0xf1)],()=>useEnv(_0x17453e['env-name']));})[_0x4698fa(0x156)](_0x4698fa(0x23d),![],_0x46e5ce=>{const _0x59e398=_0x4698fa,_0x1d79cf={'Rkfdv':_0x59e398(0x1ea),'jFVkS':'key','JDNNP':_0x59e398(0x233),'LbzZZ':function(_0x4c55d1,_0x3b6273,_0xe54525){return _0x4c55d1(_0x3b6273,_0xe54525);},'obUcx':'env','JeVnp':_0x59e398(0x136),'yCfsy':'Config\x20key','JHIdU':_0x59e398(0x222),'PZvEO':'ranger\x20profile\x20config\x20get','njoyP':_0x59e398(0x21c),'vRHhG':'config\x20list','fcsAx':function(_0x41b8a0,_0x6b4d70,_0x48f41a){return _0x41b8a0(_0x6b4d70,_0x48f41a);},'LGTkZ':_0x59e398(0x19e),'Hznzq':'config\x20unset','zcXIg':'set\x20<env>\x20<key>\x20<value>','Pufll':_0x59e398(0x144),'ucEvI':'unset\x20<env>\x20<key>','yIuvJ':_0x59e398(0x1f9)};return _0x46e5ce['command'](_0x1d79cf[_0x59e398(0x178)],![],_0x393ee8=>{const _0x5a1a38=_0x59e398;return _0x393ee8['positional']('env',{'type':_0x1d79cf['Rkfdv'],'description':'Environment\x20name','demandOption':!![]})[_0x5a1a38(0x160)](_0x1d79cf[_0x5a1a38(0x23c)],{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x5a1a38(0x160)](_0x5a1a38(0x207),{'type':_0x1d79cf[_0x5a1a38(0x1cd)],'description':_0x1d79cf['JDNNP'],'demandOption':!![]});},async _0x2d58f2=>{const _0x5644d3=_0x59e398;warnRenamed(_0x5644d3(0x18a),_0x5644d3(0x1be)),await _0x1d79cf[_0x5644d3(0x182)](withTelemetry,_0x5644d3(0x1b3),()=>configSet(_0x2d58f2[_0x5644d3(0x1e3)],_0x2d58f2[_0x5644d3(0x198)],_0x2d58f2['value']));})[_0x59e398(0x156)]('get\x20<env>\x20<key>',![],_0x2e1cfd=>{const _0x5116fd=_0x59e398;return _0x2e1cfd[_0x5116fd(0x160)](_0x1d79cf['obUcx'],{'type':_0x1d79cf['Rkfdv'],'description':_0x1d79cf[_0x5116fd(0x104)],'demandOption':!![]})['positional']('key',{'type':_0x5116fd(0x1ea),'description':_0x1d79cf[_0x5116fd(0x17e)],'demandOption':!![]});},async _0x5ee92a=>{const _0x1430af=_0x59e398;warnRenamed(_0x1d79cf['JHIdU'],_0x1d79cf[_0x1430af(0x1ab)]),await withTelemetry(_0x1430af(0x23b),()=>configGet(_0x5ee92a['env'],_0x5ee92a['key']));})[_0x59e398(0x156)](_0x1d79cf[_0x59e398(0x159)],![],_0xa08c68=>{const _0x555c41=_0x59e398;return _0xa08c68['positional'](_0x1d79cf[_0x555c41(0x143)],{'type':_0x1d79cf['Rkfdv'],'description':_0x1d79cf['JeVnp'],'demandOption':!![]});},async _0x9afbc6=>{const _0xb75f5f=_0x59e398;warnRenamed(_0x1d79cf['njoyP'],'ranger\x20profile\x20config\x20list'),await withTelemetry(_0x1d79cf[_0xb75f5f(0x231)],()=>configList(_0x9afbc6['env']));})[_0x59e398(0x156)](_0x1d79cf[_0x59e398(0x15d)],![],_0x5e4b40=>{const _0x14d7d0=_0x59e398;return _0x5e4b40['positional'](_0x1d79cf['obUcx'],{'type':_0x1d79cf['Rkfdv'],'description':_0x1d79cf['JeVnp'],'demandOption':!![]})['positional']('key',{'type':_0x1d79cf['Rkfdv'],'description':_0x14d7d0(0x1a6),'demandOption':!![]});},async _0xc5655d=>{const _0x1c4ff9=_0x59e398;_0x1d79cf[_0x1c4ff9(0x112)](warnRenamed,_0x1d79cf['LGTkZ'],'ranger\x20profile\x20config\x20unset'),await withTelemetry(_0x1d79cf['Hznzq'],()=>configUnset(_0xc5655d['env'],_0xc5655d['key']));})[_0x59e398(0x16b)](0x1,_0x1d79cf['yIuvJ']);})[_0x4698fa(0x156)](_0x4698fa(0x1e3),![],_0x589ed8=>{const _0x4fba49=_0x4698fa,_0x1f91a7={'HwTvg':function(_0x55ce5c,_0x5ce7cf,_0x1ed484){return _0x55ce5c(_0x5ce7cf,_0x1ed484);},'ArOce':'ranger\x20env\x20ls','WKOII':'ranger\x20profile\x20ls','pCvaO':_0x4fba49(0x1ea)};return _0x589ed8['command']('ls',![],()=>{},async()=>{_0x1f91a7['HwTvg'](warnRenamed,_0x1f91a7['ArOce'],_0x1f91a7['WKOII']),await withTelemetry('env\x20list',()=>envList());})[_0x4fba49(0x156)](_0x4fba49(0x180),![],_0x541e94=>{const _0x201544=_0x4fba49;return _0x541e94['positional'](_0x201544(0x15f),{'type':_0x1f91a7[_0x201544(0x189)],'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x14e530=>{const _0xcc21e8=_0x4fba49;warnRenamed('ranger\x20env\x20update','ranger\x20profile\x20update'),await withTelemetry(_0xcc21e8(0x11c),_0x59dee2=>updateEnv(_0x14e530[_0xcc21e8(0x15f)],_0x59dee2));})['demandCommand'](0x1,'You\x20must\x20specify\x20an\x20env\x20subcommand');})[_0x4698fa(0x156)](_0x4698fa(0x14f),![],_0x35edcf=>{const _0x3a91ac=_0x4698fa,_0x138a30={'dfZed':'string','eqbVs':'description','DcqrG':'Feature\x20review\x20description','nncmr':_0x3a91ac(0x19d),'qqBAB':_0x3a91ac(0x102),'uhltg':'array','HcTvM':function(_0x4f2bf0,_0x44e6e0,_0x3047d0){return _0x4f2bf0(_0x44e6e0,_0x3047d0);},'YYLmu':_0x3a91ac(0x1bf),'bsHgU':'feature\x20create','MBBjE':_0x3a91ac(0x15c),'EUTYB':'limit','AJloI':_0x3a91ac(0x12b),'dvdls':'boolean','dqvbF':'ranger\x20list','stdlj':function(_0x5a6a2c,_0x2a19ea,_0x31ce1b){return _0x5a6a2c(_0x2a19ea,_0x31ce1b);},'ruKAa':'feature\x20list','oKRWi':'ranger\x20feature\x20show','zTVpq':function(_0x44b0dd,_0xfdaa8a,_0x2ab78f){return _0x44b0dd(_0xfdaa8a,_0x2ab78f);},'kTPuS':_0x3a91ac(0x1f8),'lEzKi':_0x3a91ac(0x1bc),'nTCrC':function(_0x4e589a,_0x1a1572,_0x118eba){return _0x4e589a(_0x1a1572,_0x118eba);},'YPdDI':_0x3a91ac(0x1f5),'IChBp':_0x3a91ac(0x216),'VDPlU':_0x3a91ac(0x228),'NVBqo':_0x3a91ac(0x1f2),'ijeEu':_0x3a91ac(0x199),'iEHeD':'feature\x20delete','tXsSF':'ranger\x20feature\x20restore','kdNld':'show\x20[id]','FMvlT':'resume\x20[id]','HRxYk':'add-checklist-item\x20<description>','EBvZr':_0x3a91ac(0x217)};return _0x35edcf[_0x3a91ac(0x156)]('create\x20<name>',![],_0x2ca20e=>{const _0x526205=_0x3a91ac;return _0x2ca20e[_0x526205(0x160)]('name',{'type':_0x138a30[_0x526205(0x177)],'description':'Feature\x20review\x20name','demandOption':!![]})[_0x526205(0x1fd)](_0x138a30[_0x526205(0x1a9)],{'type':'string','alias':'d','description':_0x138a30[_0x526205(0x1a0)]})[_0x526205(0x1fd)]('checklist',{'type':_0x526205(0x173),'alias':'c','description':_0x138a30[_0x526205(0x15b)]})[_0x526205(0x1fd)](_0x138a30[_0x526205(0x133)],{'type':_0x138a30['uhltg'],'hidden':!![]});},async _0x1ebd57=>{const _0xa59526=_0x3a91ac;_0x138a30[_0xa59526(0x1c6)](warnRenamed,'ranger\x20feature\x20create',_0x138a30['YYLmu']),warnFlagRenamed(_0x138a30['YYLmu'],'--checklist',_0xa59526(0x18f));const _0x2b2872=_0x1ebd57['scenario']||_0x1ebd57['checklist'];await withTelemetry(_0x138a30['bsHgU'],()=>featureCreate(_0x1ebd57[_0xa59526(0x1d6)],{'description':_0x1ebd57[_0xa59526(0xfc)],'scenarios':_0x2b2872}));})[_0x3a91ac(0x156)]('list',![],_0x32816b=>{const _0x5ad271=_0x3a91ac;return _0x32816b[_0x5ad271(0x1fd)](_0x138a30[_0x5ad271(0x1c1)],{'type':'boolean','description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x5ad271(0x1fd)](_0x138a30[_0x5ad271(0x111)],{'type':'number','alias':'l','description':_0x5ad271(0x1ff),'default':0xa})[_0x5ad271(0x1fd)]('offset',{'type':'number','alias':'o','description':_0x138a30[_0x5ad271(0x163)],'default':0x0})['option'](_0x5ad271(0x1e0),{'type':_0x138a30[_0x5ad271(0x21d)],'alias':'d','description':_0x5ad271(0x158),'default':![]});},async _0x3b30c8=>{const _0x1660aa=_0x3a91ac;warnRenamed(_0x1660aa(0x1bd),_0x138a30[_0x1660aa(0x227)]),await _0x138a30['stdlj'](withTelemetry,_0x138a30['ruKAa'],()=>featureList({'currentBranch':_0x3b30c8[_0x1660aa(0x15c)],'limit':_0x3b30c8[_0x1660aa(0x122)],'offset':_0x3b30c8[_0x1660aa(0x1ad)],'includeDeleted':_0x3b30c8[_0x1660aa(0x1e0)]}));})[_0x3a91ac(0x156)](_0x138a30['kdNld'],![],_0x49ff21=>{return _0x49ff21['positional']('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0x1a4103=>{const _0x4df7e2=_0x3a91ac;_0x138a30[_0x4df7e2(0x1c6)](warnRenamed,_0x138a30['oKRWi'],'ranger\x20show'),await _0x138a30[_0x4df7e2(0x16c)](withTelemetry,_0x138a30[_0x4df7e2(0x162)],()=>featureShow(_0x1a4103['id']));})['command'](_0x138a30[_0x3a91ac(0x226)],![],_0xdea220=>{const _0x15e51a=_0x3a91ac;return _0xdea220['positional']('id',{'type':_0x138a30[_0x15e51a(0x177)],'description':_0x15e51a(0x1ca)});},async _0x36bf37=>{const _0x2c5a98=_0x3a91ac;_0x138a30[_0x2c5a98(0x16c)](warnRenamed,_0x138a30['lEzKi'],_0x2c5a98(0x22d)),await _0x138a30[_0x2c5a98(0x190)](withTelemetry,'feature\x20resume',()=>featureResume(_0x36bf37['id']));})[_0x3a91ac(0x156)](_0x138a30[_0x3a91ac(0x10f)],![],_0x13ddcb=>{const _0x4f3d83=_0x3a91ac;return _0x13ddcb['positional'](_0x138a30['eqbVs'],{'type':_0x138a30[_0x4f3d83(0x177)],'description':_0x138a30['YPdDI'],'demandOption':!![]})['option']('id',{'type':_0x138a30[_0x4f3d83(0x177)],'description':_0x138a30[_0x4f3d83(0x131)]});},async _0x57fb32=>{const _0x41fe79=_0x3a91ac;_0x138a30['stdlj'](warnRenamed,'ranger\x20feature\x20add-checklist-item',_0x41fe79(0x1f0)),await withTelemetry(_0x41fe79(0x179),()=>featureAddScenario(_0x57fb32['description'],_0x57fb32['id']));})[_0x3a91ac(0x156)](_0x3a91ac(0x230),![],_0x4dddb9=>{const _0x1c74e1=_0x3a91ac;return _0x4dddb9['positional']('id',{'type':_0x138a30[_0x1c74e1(0x177)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x4f44e8=>{const _0x236e6e=_0x3a91ac;warnRenamed(_0x236e6e(0x12a),_0x138a30[_0x236e6e(0x129)]),await withTelemetry(_0x236e6e(0x10e),()=>featureGetReview(_0x4f44e8['id']));})[_0x3a91ac(0x156)](_0x3a91ac(0x1b5),![],_0x436d4c=>{const _0x2f8bcb=_0x3a91ac;return _0x436d4c[_0x2f8bcb(0x160)]('id',{'type':_0x138a30['dfZed'],'description':_0x138a30['NVBqo']});},async _0x5391e9=>{const _0x20a24e=_0x3a91ac;warnRenamed('ranger\x20feature\x20delete',_0x138a30['ijeEu']),await _0x138a30[_0x20a24e(0x1c6)](withTelemetry,_0x138a30['iEHeD'],()=>featureDelete(_0x5391e9['id']));})['command']('restore\x20<id>',![],_0x42e899=>{const _0x417c13=_0x3a91ac;return _0x42e899[_0x417c13(0x160)]('id',{'type':_0x138a30[_0x417c13(0x177)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x29dec0=>{const _0x4f75a7=_0x3a91ac;warnRenamed(_0x138a30[_0x4f75a7(0x225)],_0x4f75a7(0x1e6)),await withTelemetry('feature\x20restore',()=>featureRestore(_0x29dec0['id']));})[_0x3a91ac(0x16b)](0x1,_0x138a30['EBvZr']);})[_0x4698fa(0x156)](_0x4698fa(0x115),![],_0x5035b1=>{const _0x1d69aa=_0x4698fa,_0x2f52e6={'ERDpl':_0x1d69aa(0x236),'iowdx':'session-id','uueff':function(_0x1e7059,_0x2fdd5b,_0x3588e4){return _0x1e7059(_0x2fdd5b,_0x3588e4);},'CNEmL':_0x1d69aa(0x205),'dJWek':_0x1d69aa(0x22b),'hhMur':'disable','VoRYi':_0x1d69aa(0x128),'SpwXf':_0x1d69aa(0x1d6),'Olbxp':'string','aaTNd':_0x1d69aa(0x1c5)};return _0x5035b1[_0x1d69aa(0x156)](_0x2f52e6[_0x1d69aa(0x1e2)],_0x1d69aa(0x14a),_0x153a98=>{const _0x459ede=_0x1d69aa;return _0x153a98['option'](_0x459ede(0x12e),{'type':'string','description':_0x2f52e6[_0x459ede(0x185)]});},async _0x29ab46=>{const _0x58d407=_0x1d69aa;await withTelemetry(_0x58d407(0x1d9),()=>hook('enable',_0x29ab46[_0x58d407(0x12e)]));})['command'](_0x2f52e6[_0x1d69aa(0x1ba)],_0x2f52e6[_0x1d69aa(0x135)],_0x318aff=>{const _0x345f1b=_0x1d69aa;return _0x318aff[_0x345f1b(0x1fd)](_0x2f52e6[_0x345f1b(0x1e8)],{'type':_0x345f1b(0x1ea),'description':_0x2f52e6[_0x345f1b(0x185)]});},async _0x5d3399=>{const _0x5a9fcd=_0x1d69aa;await _0x2f52e6['uueff'](withTelemetry,_0x2f52e6[_0x5a9fcd(0x13c)],()=>hook('disable',_0x5d3399[_0x5a9fcd(0x12e)]));})[_0x1d69aa(0x1fd)](_0x2f52e6['SpwXf'],{'type':_0x2f52e6['Olbxp'],'description':_0x2f52e6[_0x1d69aa(0xf8)]})[_0x1d69aa(0x1fd)](_0x1d69aa(0x12e),{'type':_0x2f52e6['Olbxp'],'description':_0x1d69aa(0x236)});},async _0x14c8f8=>{const _0x14a529=_0x4698fa;_0x14c8f8[_0x14a529(0x1d6)]&&await hook(_0x14c8f8[_0x14a529(0x1d6)],_0x14c8f8[_0x14a529(0x12e)]);})[_0x4698fa(0x16b)](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()['fail'](async(_0x138523,_0xf1ec60,_0x128846)=>{const _0x248c61=_0x4698fa,_0x30075a={'QGjiY':function(_0x115fc0,_0x366c0d){return _0x115fc0(_0x366c0d);},'LuCLJ':function(_0x13d383,_0x11d703,_0x11cc1a){return _0x13d383(_0x11d703,_0x11cc1a);},'NyPHZ':_0x248c61(0x175),'VzeEs':function(_0xbe2367){return _0xbe2367();},'mPXYt':'Unknown\x20error'},_0x169180=_0x30075a['QGjiY'](sanitizeArgs,process[_0x248c61(0x105)]['slice'](0x2)),_0x4e9aa8=_0x30075a['LuCLJ'](getErrorType,_0x138523,_0xf1ec60);if(_0x138523&&_0x138523[_0x248c61(0x20d)]('Unknown\x20command')){const _0x152350=process['argv'][0x2];console['error'](_0x248c61(0x124)+_0x152350),console[_0x248c61(0x141)](_0x30075a[_0x248c61(0x22a)]);}else{if(_0x138523)console[_0x248c61(0x141)]('\x0a'+_0x138523+'\x0a');else _0xf1ec60&&console[_0x248c61(0x141)]('\x0aError:\x20'+_0xf1ec60['message']+'\x0a');}await logDesirePath({'rawCommand':_0x169180,'errorMessage':_0x138523||_0xf1ec60?.['message'],'errorType':_0x4e9aa8});const _0x449fdb=_0x30075a[_0x248c61(0x16f)](getCurrentCollector);_0x449fdb&&await _0x449fdb[_0x248c61(0x13d)](_0xf1ec60||new Error(_0x138523||_0x30075a[_0x248c61(0x181)])),process[_0x248c61(0x1fa)](0x1);})['epilogue'](_0x4698fa(0x213)+_0x4698fa(0x1c2)+_0x4698fa(0x187))['help']()[_0x4698fa(0x238)](_0x4698fa(0x221),'h')[_0x4698fa(0x1a7)]();
|
|
2
|
+
const _0x204baf=_0x2852;(function(_0x4784c3,_0x3e1e89){const _0x4469b8=_0x2852,_0x316391=_0x4784c3();while(!![]){try{const _0x572602=parseInt(_0x4469b8(0x1ec))/0x1+-parseInt(_0x4469b8(0x156))/0x2*(parseInt(_0x4469b8(0x15c))/0x3)+-parseInt(_0x4469b8(0x14a))/0x4*(-parseInt(_0x4469b8(0x139))/0x5)+parseInt(_0x4469b8(0x1d1))/0x6*(parseInt(_0x4469b8(0x12b))/0x7)+parseInt(_0x4469b8(0x20a))/0x8*(parseInt(_0x4469b8(0x11e))/0x9)+parseInt(_0x4469b8(0x201))/0xa*(-parseInt(_0x4469b8(0x16b))/0xb)+-parseInt(_0x4469b8(0x1f1))/0xc*(parseInt(_0x4469b8(0x150))/0xd);if(_0x572602===_0x3e1e89)break;else _0x316391['push'](_0x316391['shift']());}catch(_0x3e0a14){_0x316391['push'](_0x316391['shift']());}}}(_0x1910,0xb6ce3));function _0x2852(_0x53bae6,_0x103ff2){_0x53bae6=_0x53bae6-0xbf;const _0x1910ed=_0x1910();let _0x28525a=_0x1910ed[_0x53bae6];return _0x28525a;}import _0x30e5ff from'dotenv';function _0x1910(){const _0x5d9b49=['FfvZU','force','eubeD','eQpJr','ranger\x20get-review','oBJFf','RFpwB','arBnI','Iewyo','bOwLM','HFrJI','Scenario\x20index\x20(1-based)','parse','clean','ranger\x20feature\x20show','positional','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','YGnlq','value','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','Name\x20of\x20the\x20profile\x20to\x20update','jijwn','eiPsJ','ZgKdw','cdp-endpoint','snepU','length','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','ejgTz','Install\x20scope\x20for\x20skills','HveIN','Manage\x20profiles','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','IJFVF','debug-outcome','KPqAy','some','fPloA','obNkH','tODOF','tnZbe','project','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','Feature\x20review\x20ID\x20to\x20restore','ranger\x20feature\x20restore','JbHZI','command','BGbXm','sOide','FuMDK','Nzeuc','use','You\x20must\x20specify\x20a\x20config\x20subcommand','env','ranger\x20start','fAIJQ','profile\x20config\x20list','UMxbQ','tPLOi','Remove\x20a\x20config\x20value','AOKdd','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','zQuIB','list\x20<env>','sdhTN','New\x20scenario\x20description','partial','iIsGv','oxBpV','HxgKq','Config\x20value','114bloSaQ','number','profile\x20use','log','CygzS','profile\x20encrypt-auth','description','setup-ci\x20<token>','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','.env','user','MhNpt','ubhJT','ranger\x20use','--env','get\x20<profile>\x20<key>','hqRWt','includes','report','exclude-scenario','GaYHr','profile','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','model','Name\x20of\x20the\x20environment','lhSGS','MiJeU','497136ZDQGLz','debug-address-comments','Unknown\x20error','VNtyc','create\x20<name>','12dezvxd','Ranger\x20API\x20token','YCBTy','FeBhM','Include\x20soft-deleted\x20feature\x20reviews','ranger\x20config\x20list','exit','XDpwA','ranger\x20profile\x20ls','kUAHZ','create','tzpkB','MiZhA','strictCommands','CRxcr','LOTvp','225000hopWZR','GaunZ','current-branch','profile-name','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','base-url','sOtNg','ranger\x20restore','error','3034936CtpdKB','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','forEach','ranger','\x20PARTIAL','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','map','LTcGm','unset\x20<env>\x20<key>','xuZKu','pWTfl','niwyg','ltECc','Evpgc','cDWqw','--task','usExB','QTChI','Evaluation:\x20','Unknown\x20command','Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','config\x20get','Feature\x20review\x20ID','get-feedback\x20[id]','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','scenario','vWvsC','qTIJn','LEMsm','dWDlq','List\x20all\x20profiles','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','YAeIZ','\x20BLOCKED','UCsYU','include-deleted','rKhAk','restore\x20<id>','AdbaE','ranger\x20env\x20update','Environment\x20name','Profile\x20name','add\x20env\x20<env-name>','verify-feature','issues','show','caTEH','set\x20<profile>\x20<key>\x20<value>','GPVmf','key','boolean','\x20VERIFIED','Nvzme','You\x20must\x20specify\x20an\x20env\x20subcommand','scriptName','DuFOG','profile\x20config\x20set','XTgmQ','token','BrhYM','disable','zqTYl','eLilL','nEXuB','.\x20[','ranger\x20add-scenario','blocked','feature\x20create','feature\x20restore','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','LXUsI','yExwv','profile\x20update','aeTeI','demandCommand','failed','WPECq','message','pxNMq','get\x20<env>\x20<key>','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','You\x20must\x20specify\x20a\x20command','wZsiB','okaEU','status','AXWvI','cwd','ranger\x20profile\x20config\x20set','SkLwh','ranger\x20delete','\x0aIssues:','Name\x20of\x20the\x20environment\x20to\x20update','checklist','set\x20<env>\x20<key>\x20<value>','List\x20all\x20config\x20for\x20a\x20profile','cUWZJ','ZPiRH','setup\x20[token]','ranger\x20verify-feature','uFEOp','update','NcuXC','List\x20all\x20feature\x20reviews','--item','YximY','task','url','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','option','\x0aError:\x20','mevLE','PZzuj','NppYt','opencode','AAWxs','sbgrS','imgLl','MlWfX','NadgO','item','auth','array','lTKlP','ciSUt','gwtTw','llxsJ','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','config\x20set','18dMkYyo','Summary:\x20','KSKTt','DJOqE','ranger\x20show','show\x20[id]','tMhPe','RFqXI','zvPzR','MdXjL','zpPhK','KOkRO','rRuIo','41727GPONfS','\x20INCOMPLETE','profile\x20config\x20unset','profile\x20ls','JYXas','Install\x20Ranger\x20skills','gTJwq','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','CMwuR','--scenario','help','wcVxL','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','EqTeL','5LxCVmN','izyif','string','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','KWcFs','feature','ranger\x20resume','feature\x20list','SJMRs','IKvHo','incomplete','AjEYF','skip-chromium','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','xwqAS','ehVTB','4597324aLmrer','Wtxoi','NAVcJ','eCQNk','name','TzLqh','2253212sjSGHW','ijfAX','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','evaluation','qTeFR','ranger\x20create','385390zCNVGo','hook:disable','Config\x20key\x20to\x20remove','add-checklist-item\x20<description>','mxsZw','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','21evobWX','qpkbq','YdGPm','Jtlvy','wOaMQ','add-scenario','TmlfA','CtkcJ','Config\x20key','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','Feature\x20review\x20name','uKqmP','Documentation:\x0a','gKEPL','offset','121wccDSj','ranger\x20go','skip-auth','repeat','LHgWO','usage','qnNck','argv','apShx','encrypt\x20<profile>','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','session-id','xBstA','feature\x20get-feedback','FHfYq','eXhKm','kBAAw','--notes','env-name','Restore\x20a\x20soft-deleted\x20feature\x20review','TlTfV','notes','scope','version','Add\x20profile\x20configuration','Get\x20a\x20config\x20value','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.','start','report\x20[id]','limit'];_0x1910=function(){return _0x5d9b49;};return _0x1910();}import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x2b8222=_0x2852,_0x16aeeb={'LUJub':function(_0xdcb0ae,_0x57331e){return _0xdcb0ae!==_0x57331e;},'mevLE':function(_0x403fe0,_0x1ded5b){return _0x403fe0(_0x1ded5b);},'xuZKu':function(_0x5d159a,_0x2fc854,_0x13a894){return _0x5d159a(_0x2fc854,_0x13a894);},'qpNkg':'.ranger','KPqAy':function(_0x1544f2,_0x3a4173){return _0x1544f2(_0x3a4173);}};let _0x528987=process[_0x2b8222(0xf4)]();const _0x295e8c=parse(_0x528987)['root'];while(_0x16aeeb['LUJub'](_0x528987,_0x295e8c)){if(_0x16aeeb[_0x2b8222(0x10c)](existsSync,_0x16aeeb[_0x2b8222(0x213)](join,_0x528987,_0x16aeeb['qpNkg']))||existsSync(join(_0x528987,_0x2b8222(0x1da))))return _0x528987;_0x528987=_0x16aeeb[_0x2b8222(0x1ac)](dirname,_0x528987);}return process['cwd']();}_0x30e5ff['config']({'path':join(findProjectRoot(),_0x204baf(0x1da))});import _0xd4106 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 _0x1c0aa5=>{const _0x285de0=getCurrentCollector();_0x285de0&&await _0x285de0['trackCommandError'](_0x1c0aa5),process['exitCode']=0x1;});const rawArgs=process[_0x204baf(0x172)]['slice'](0x2),TOP_LEVEL_HELP=_0x204baf(0x185),PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true',PROFILE_CONFIG_HELP='Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\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(_0x583c5f,_0x16a9bb){const _0x3e75c0=_0x204baf;console[_0x3e75c0(0x209)]('\x0a'+_0x583c5f+'\x20is\x20now\x20'+_0x16a9bb+'\x0a');}function argUsed(_0x73a119){const _0x5de5a7=_0x204baf;return rawArgs[_0x5de5a7(0x1ad)](_0x3e8736=>_0x3e8736===_0x73a119||_0x3e8736['startsWith'](_0x73a119+'='));}function warnFlagRenamed(_0x13173c,_0x4e3cd3,_0x2cb807){const _0x5f2d3b=_0x204baf,_0x23b2a5={'PavzZ':function(_0xd11268,_0x1b0ed5){return _0xd11268(_0x1b0ed5);},'rRuIo':function(_0x5aafab,_0x2e822d,_0x5df26e){return _0x5aafab(_0x2e822d,_0x5df26e);}};_0x23b2a5['PavzZ'](argUsed,_0x4e3cd3)&&_0x23b2a5[_0x5f2d3b(0x12a)](warnRenamed,_0x13173c+'\x20'+_0x4e3cd3,_0x13173c+'\x20'+_0x2cb807);}async function runGoCommand(_0x462f81,_0x2c52ee=![]){const _0x5b7e24=_0x204baf,_0x5abd60={'qpkbq':function(_0x4856e3,_0x3310d8){return _0x4856e3+_0x3310d8;},'ZOBIS':_0x5b7e24(0x16c),'fcPaL':function(_0x20e487,_0x103408,_0x2765f8,_0x2488bc){return _0x20e487(_0x103408,_0x2765f8,_0x2488bc);},'RcmLx':_0x5b7e24(0x1df),'eXhKm':'--profile','imgLl':_0x5b7e24(0x17c),'cUWZJ':_0x5b7e24(0x134),'xIwpA':'debug-address-comments','MdXjL':function(_0x416eec,_0x4c2285){return _0x416eec+_0x4c2285;},'pxNMq':function(_0x368d7a,_0x5f0a84){return _0x368d7a===_0x5f0a84;},'pWTfl':'verified','FfvZU':'incomplete','KpvXs':'partial','hbojr':_0x5b7e24(0x20e),'GrgMN':function(_0x4cdba9,_0x2eec0c){return _0x4cdba9===_0x2eec0c;},'MhNpt':'blocked','ltECc':'\x20FAILED'};_0x2c52ee&&warnRenamed(_0x5b7e24(0x100),_0x5abd60['ZOBIS']);_0x5abd60['fcPaL'](warnFlagRenamed,_0x5abd60['ZOBIS'],_0x5abd60['RcmLx'],_0x5abd60[_0x5b7e24(0x17a)]),warnFlagRenamed(_0x5b7e24(0x16c),_0x5b7e24(0x219),_0x5abd60[_0x5b7e24(0x112)]),warnFlagRenamed('ranger\x20go',_0x5b7e24(0x105),_0x5abd60[_0x5b7e24(0xfd)]);const _0x2d09de=await loadRangerConfig(),_0x247746=_0x462f81[_0x5b7e24(0x1e8)],_0x279be0=_0x2d09de['model'],_0x1f6293=_0x247746??_0x279be0,_0x9173b2=_0x247746?'flag':_0x279be0?'config':'default',_0x266a38=await verifyFeature({'profile':_0x462f81['profile']??_0x462f81['env'],'notes':_0x462f81['notes']??_0x462f81['task'],'scenario':_0x462f81[_0x5b7e24(0x224)]??_0x462f81[_0x5b7e24(0x115)],'startPath':_0x462f81['start-path'],'debugOutcome':_0x462f81[_0x5b7e24(0x1ab)],'debugAddressComments':_0x462f81[_0x5abd60['xIwpA']],'verifyModel':_0x1f6293,'verifyModelInput':_0x1f6293,'verifyModelSource':_0x9173b2});console[_0x5b7e24(0x1d4)](_0x5abd60[_0x5b7e24(0x127)]('\x0a','='[_0x5b7e24(0x16e)](0x3c))),console[_0x5b7e24(0x1d4)](_0x5abd60[_0x5b7e24(0xec)](_0x266a38['evaluation'],_0x5abd60[_0x5b7e24(0x214)])?_0x5b7e24(0xd1):_0x266a38[_0x5b7e24(0x153)]===_0x5abd60[_0x5b7e24(0x189)]?_0x5b7e24(0x12c):_0x5abd60['pxNMq'](_0x266a38['evaluation'],_0x5abd60['KpvXs'])?_0x5abd60['hbojr']:_0x5abd60['GrgMN'](_0x266a38['evaluation'],_0x5abd60[_0x5b7e24(0x1dc)])?_0x5b7e24(0xbf):_0x5abd60[_0x5b7e24(0x216)]),console[_0x5b7e24(0x1d4)]('='['repeat'](0x3c)),console[_0x5b7e24(0x1d4)](_0x5b7e24(0x11f)+_0x266a38['summary']),console[_0x5b7e24(0x1d4)](_0x5b7e24(0x21c)+_0x266a38['evaluation']),console[_0x5b7e24(0x1d4)]('Reason:\x20'+_0x266a38['evaluationReason']),_0x266a38[_0x5b7e24(0xca)]?.[_0x5b7e24(0x1a3)]&&(console[_0x5b7e24(0x1d4)](_0x5b7e24(0xf8)),_0x266a38[_0x5b7e24(0xca)][_0x5b7e24(0x20c)]((_0xb13eee,_0x2f87ec)=>{const _0x38398d=_0x5b7e24;console[_0x38398d(0x1d4)]('\x0a'+_0x5abd60[_0x38398d(0x15d)](_0x2f87ec,0x1)+_0x38398d(0xde)+_0xb13eee['severity']+']\x20'+_0xb13eee[_0x38398d(0x1d7)]);})),process[_0x5b7e24(0x1f7)](_0x5abd60['GrgMN'](_0x266a38['evaluation'],_0x5abd60['pWTfl'])?0x0:0x1);}_0xd4106(process[_0x204baf(0x172)]['slice'](0x2))[_0x204baf(0xd4)](_0x204baf(0x20d))['usage'](TOP_LEVEL_HELP)[_0x204baf(0x182)](getCurrentVersion())['command']('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0xdabab6=>{const _0x320e32=_0x204baf,_0x3d1b25={'AdbaE':'name','vWvsC':'Feature\x20review\x20name','SkLwh':'description','Evpgc':_0x320e32(0x13b),'kIZrB':_0x320e32(0x224),'ubhJT':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','FHfYq':'checklist','OsWIU':'array'};return _0xdabab6['positional'](_0x3d1b25[_0x320e32(0xc4)],{'type':'string','description':_0x3d1b25[_0x320e32(0x225)],'demandOption':!![]})['option'](_0x3d1b25[_0x320e32(0xf6)],{'type':_0x3d1b25[_0x320e32(0x217)],'alias':'d','description':'Feature\x20review\x20description'})[_0x320e32(0x10a)](_0x3d1b25['kIZrB'],{'type':'array','alias':'c','description':_0x3d1b25[_0x320e32(0x1dd)]})['option'](_0x3d1b25[_0x320e32(0x179)],{'type':_0x3d1b25['OsWIU'],'hidden':!![]});},async _0x56e01c=>{const _0x429915=_0x204baf,_0x3176cb={'SJMRs':_0x429915(0x155),'VsbRR':'--checklist','obNkH':_0x429915(0x134),'jijwn':_0x429915(0x1fb)};warnFlagRenamed(_0x3176cb[_0x429915(0x142)],_0x3176cb['VsbRR'],_0x3176cb[_0x429915(0x1af)]);const _0x48fc7d=_0x56e01c[_0x429915(0x224)]||_0x56e01c[_0x429915(0xfa)];await withTelemetry(_0x3176cb[_0x429915(0x19e)],()=>featureCreate(_0x56e01c['name'],{'description':_0x56e01c[_0x429915(0x1d7)],'scenarios':_0x48fc7d}));})[_0x204baf(0x1b8)]('list',_0x204baf(0x104),_0x53b163=>{const _0x6636b9=_0x204baf,_0x26a23a={'mxsZw':_0x6636b9(0xd0),'nnidX':_0x6636b9(0x188),'NeZxs':_0x6636b9(0x1d2),'UhWOv':_0x6636b9(0x1e7),'ZPiRH':_0x6636b9(0x1f5)};return _0x53b163[_0x6636b9(0x10a)]('current-branch',{'type':_0x26a23a[_0x6636b9(0x15a)],'description':_0x6636b9(0x1a9)})[_0x6636b9(0x10a)](_0x26a23a['nnidX'],{'type':_0x26a23a['NeZxs'],'alias':'l','description':_0x26a23a['UhWOv'],'default':0xa})['option']('offset',{'type':'number','alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x6636b9(0x10a)]('include-deleted',{'type':_0x26a23a[_0x6636b9(0x15a)],'alias':'d','description':_0x26a23a[_0x6636b9(0xfe)],'default':![]});},async _0x350f98=>{const _0x4a5714=_0x204baf;await withTelemetry('list',()=>featureList({'currentBranch':_0x350f98['current-branch'],'limit':_0x350f98[_0x4a5714(0x188)],'offset':_0x350f98['offset'],'includeDeleted':_0x350f98['include-deleted']}));})[_0x204baf(0x1b8)](_0x204baf(0x123),_0x204baf(0x165),_0x47c250=>{const _0x4431cb=_0x204baf,_0x23c683={'eLilL':'string','EjORj':_0x4431cb(0x220)};return _0x47c250[_0x4431cb(0x198)]('id',{'type':_0x23c683[_0x4431cb(0xdc)],'description':_0x23c683['EjORj']});},async _0x542c37=>{const _0x228d06=_0x204baf,_0x54866f={'HveIN':_0x228d06(0xcb)};await withTelemetry(_0x54866f[_0x228d06(0x1a7)],()=>featureShow(_0x542c37['id']));})['command']('resume\x20[id]',_0x204baf(0xee),_0x40c511=>{const _0x523780=_0x204baf,_0x4e209a={'LHgWO':'string'};return _0x40c511['positional']('id',{'type':_0x4e209a[_0x523780(0x16f)],'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x542651=>{const _0x19e626={'fQuAQ':function(_0x5c48dd,_0x366d19,_0x12b298){return _0x5c48dd(_0x366d19,_0x12b298);}};await _0x19e626['fQuAQ'](withTelemetry,'resume',()=>featureResume(_0x542651['id']));})[_0x204baf(0x1b8)]('add-scenario\x20<description>',_0x204baf(0x19c),_0xc28400=>{const _0x3c81a7=_0x204baf,_0x1ab5c0={'xwqAS':'description','psJJh':_0x3c81a7(0x13b),'tPLOi':'Scenario\x20description','ADLyB':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0xc28400['positional'](_0x1ab5c0[_0x3c81a7(0x148)],{'type':_0x1ab5c0['psJJh'],'description':_0x1ab5c0[_0x3c81a7(0x1c4)],'demandOption':!![]})['option']('id',{'type':_0x1ab5c0['psJJh'],'description':_0x1ab5c0['ADLyB']});},async _0x4e7e2d=>{const _0x33ca27=_0x204baf,_0x887e6b={'UCsYU':_0x33ca27(0x161)};await withTelemetry(_0x887e6b[_0x33ca27(0xc0)],()=>featureAddScenario(_0x4e7e2d[_0x33ca27(0x1d7)],_0x4e7e2d['id']));})['command']('edit-scenario\x20<description>',_0x204baf(0x11c),_0x28045f=>{const _0xf648b0=_0x204baf,_0xc04087={'yjIPY':_0xf648b0(0x1d7),'fUBrY':_0xf648b0(0x1cb),'bifBh':'scenario','niDwo':'number','Nzeuc':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x28045f['positional'](_0xc04087['yjIPY'],{'type':'string','description':_0xc04087['fUBrY'],'demandOption':!![]})[_0xf648b0(0x10a)](_0xc04087['bifBh'],{'type':_0xc04087['niDwo'],'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})[_0xf648b0(0x10a)]('id',{'type':_0xf648b0(0x13b),'description':_0xc04087[_0xf648b0(0x1bc)]});},async _0x17403a=>{const _0xe5654c=_0x204baf,_0x458902={'JYXas':'edit-scenario'};await withTelemetry(_0x458902[_0xe5654c(0x12f)],()=>featureEditScenario(_0x17403a['description'],{'id':_0x17403a['id'],'scenario':_0x17403a[_0xe5654c(0x224)]}));})[_0x204baf(0x1b8)](_0x204baf(0x187),'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x597d4e=>{const _0x3548d1=_0x204baf,_0x40cbb9={'FuMDK':'string','ibxze':'Feature\x20review\x20ID','MiZhA':_0x3548d1(0x1e4),'AmobE':'array'};return _0x597d4e['positional']('id',{'type':_0x40cbb9[_0x3548d1(0x1bb)],'description':_0x40cbb9['ibxze']})[_0x3548d1(0x10a)](_0x40cbb9[_0x3548d1(0x1fd)],{'type':_0x40cbb9['AmobE'],'description':_0x3548d1(0x1c7)});},async _0x50c759=>{const _0x30e0e8=_0x204baf,_0x12d69e={'QTChI':_0x30e0e8(0x1e3)},_0x2f1748=_0x50c759[_0x30e0e8(0x1e4)],_0x2cd266=_0x2f1748?_0x2f1748[_0x30e0e8(0x210)](_0x1fbe76=>Number(_0x1fbe76)):undefined;await withTelemetry(_0x12d69e[_0x30e0e8(0x21b)],()=>featureReportPrDescription(_0x50c759['id'],{'excludeScenarios':_0x2cd266}));})[_0x204baf(0x1b8)]('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x5605f2=>{const _0x11e9f3=_0x204baf,_0x5dde01={'ZCVrO':'string','yKuhv':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x5605f2[_0x11e9f3(0x198)]('id',{'type':_0x5dde01['ZCVrO'],'description':_0x5dde01['yKuhv']});},async _0x2889dc=>{const _0x356ea3={'VqWdN':function(_0xd09bc2,_0x47da9e,_0x3cffb7){return _0xd09bc2(_0x47da9e,_0x3cffb7);}};await _0x356ea3['VqWdN'](withTelemetry,'get-review',()=>featureGetReview(_0x2889dc['id']));})[_0x204baf(0x1b8)]('delete\x20[id]','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x5e9e8f=>{const _0x508acc=_0x204baf,_0x341395={'qnNck':_0x508acc(0x13b)};return _0x5e9e8f[_0x508acc(0x198)]('id',{'type':_0x341395[_0x508acc(0x171)],'description':'Feature\x20review\x20ID'});},async _0x463d0f=>{const _0x2e055d={'Daggd':function(_0x2065ea,_0x18bfd9,_0xecf3d2){return _0x2065ea(_0x18bfd9,_0xecf3d2);},'EQdSJ':'delete'};await _0x2e055d['Daggd'](withTelemetry,_0x2e055d['EQdSJ'],()=>featureDelete(_0x463d0f['id']));})[_0x204baf(0x1b8)](_0x204baf(0xc3),_0x204baf(0x17e),_0x12de71=>{const _0x480cae=_0x204baf,_0x159b7a={'fPloA':'string'};return _0x12de71[_0x480cae(0x198)]('id',{'type':_0x159b7a[_0x480cae(0x1ae)],'description':_0x480cae(0x1b5),'demandOption':!![]});},async _0x312778=>{const _0x4aa936=_0x204baf,_0x4af2eb={'yExwv':function(_0x370844,_0x72d4bc,_0x3af6d9){return _0x370844(_0x72d4bc,_0x3af6d9);},'arBnI':'restore'};await _0x4af2eb[_0x4aa936(0xe5)](withTelemetry,_0x4af2eb[_0x4aa936(0x190)],()=>featureRestore(_0x312778['id']));})[_0x204baf(0x1b8)](_0x204baf(0xff),'Initialize\x20Ranger\x20in\x20your\x20project',_0x36817f=>{const _0x1510ae=_0x204baf,_0x5d79b8={'YCBTy':_0x1510ae(0xd8),'zQuIB':'string','Nvzme':_0x1510ae(0x146),'TmlfA':'boolean','CYFGQ':_0x1510ae(0x181),'snepU':'user','BZWyk':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','uFEOp':_0x1510ae(0x108),'wcVxL':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','WPECq':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','TSFmN':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)'};return _0x36817f[_0x1510ae(0x198)](_0x5d79b8[_0x1510ae(0x1f3)],{'type':_0x5d79b8[_0x1510ae(0x1c8)],'description':_0x1510ae(0x137)})[_0x1510ae(0x10a)](_0x5d79b8[_0x1510ae(0xd2)],{'type':_0x5d79b8[_0x1510ae(0x162)],'description':_0x1510ae(0x222),'default':![]})['option'](_0x5d79b8['CYFGQ'],{'type':_0x5d79b8[_0x1510ae(0x1c8)],'choices':[_0x5d79b8[_0x1510ae(0x1a2)],'project'],'description':_0x5d79b8['BZWyk']})[_0x1510ae(0x10a)](_0x5d79b8[_0x1510ae(0x101)],{'type':'string','description':_0x5d79b8[_0x1510ae(0x136)]})[_0x1510ae(0x10a)](_0x1510ae(0x18a),{'type':'boolean','description':_0x5d79b8[_0x1510ae(0xea)],'default':![]})[_0x1510ae(0x10a)]('opencode',{'type':'boolean','description':_0x5d79b8['TSFmN'],'default':![]});},async _0x20257d=>{const _0x190dd8=_0x204baf;await withTelemetry(_0x190dd8(0x186),_0x3dd946=>start(_0x20257d[_0x190dd8(0xd8)],{'skipChromium':_0x20257d['skip-chromium'],'scope':_0x20257d['scope'],'url':_0x20257d[_0x190dd8(0x108)],'force':_0x20257d['force'],'opencode':_0x20257d[_0x190dd8(0x10f)]},_0x3dd946));})['command'](_0x204baf(0x1d8),_0x204baf(0x20b),_0x3db014=>{const _0x39fffa=_0x204baf,_0x23bc03={'ppgBG':_0x39fffa(0x13b),'ifaqp':_0x39fffa(0x1f2),'sbgrS':_0x39fffa(0x1e6),'NIFdE':_0x39fffa(0x206),'eCQNk':_0x39fffa(0x175),'DuFOG':'skip-chromium','CMwuR':_0x39fffa(0xd0)};return _0x3db014[_0x39fffa(0x198)](_0x39fffa(0xd8),{'type':_0x23bc03['ppgBG'],'description':_0x23bc03['ifaqp'],'demandOption':!![]})[_0x39fffa(0x10a)](_0x23bc03[_0x39fffa(0x111)],{'type':_0x39fffa(0x13b),'description':_0x39fffa(0x1b4)})[_0x39fffa(0x10a)](_0x23bc03['NIFdE'],{'type':'string','description':_0x23bc03[_0x39fffa(0x14d)]})[_0x39fffa(0x10a)](_0x23bc03[_0x39fffa(0xd5)],{'type':_0x23bc03[_0x39fffa(0x133)],'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x59b14a=>{const _0x4e7b97=_0x204baf,_0x243c30={'YZkXQ':'setup-ci'};await withTelemetry(_0x243c30['YZkXQ'],_0x4a6b8a=>setupCi(_0x59b14a[_0x4e7b97(0xd8)],{'profile':_0x59b14a[_0x4e7b97(0x1e6)],'baseUrl':_0x59b14a[_0x4e7b97(0x206)],'skipChromium':_0x59b14a['skip-chromium']},_0x4a6b8a));})[_0x204baf(0x1b8)]('login',_0x204baf(0x109),()=>{},async()=>{const _0x197412={'hXdVx':function(_0x419a76,_0x1bed17,_0x4cc9ac){return _0x419a76(_0x1bed17,_0x4cc9ac);},'ZNWHG':'login'};await _0x197412['hXdVx'](withTelemetry,_0x197412['ZNWHG'],()=>login());})[_0x204baf(0x1b8)]('skillup',_0x204baf(0x130),_0x47437c=>{const _0x11943c=_0x204baf,_0x2554a8={'ChKgR':_0x11943c(0x10f),'aZicO':_0x11943c(0x13b),'gTJwq':_0x11943c(0x1b2)};return _0x47437c['option'](_0x2554a8['ChKgR'],{'type':'boolean','description':'Install\x20skills\x20for\x20OpenCode','default':![]})[_0x11943c(0x10a)](_0x11943c(0x181),{'type':_0x2554a8['aZicO'],'choices':[_0x11943c(0x1db),_0x2554a8[_0x11943c(0x131)]],'description':_0x11943c(0x1a6)});},async _0x286ba6=>{const _0x2b98dc=_0x204baf,_0x56a7fb={'iLuyN':'skillup'},_0x21a54e=Boolean(_0x286ba6['opencode']);await withTelemetry(_0x56a7fb['iLuyN'],()=>skillup({'autoInstall':_0x286ba6[_0x2b98dc(0x181)],'platform':_0x21a54e?'opencode':'claude'}));})[_0x204baf(0x1b8)]('clean',_0x204baf(0x1b3),()=>{},async()=>{const _0x37cd09=_0x204baf,_0x124258={'NKhgo':function(_0x3d8b3b,_0x152db,_0x5bc30f){return _0x3d8b3b(_0x152db,_0x5bc30f);}};await _0x124258['NKhgo'](withTelemetry,_0x37cd09(0x196),()=>clean());})['command']('profile',_0x204baf(0x1a8),_0x50fa58=>{const _0x191eb9=_0x204baf,_0xda0fbf={'iIsGv':'profile-name','JbHZI':'string','rKhAk':_0x191eb9(0xd0),'usExB':_0x191eb9(0x21e),'CtkcJ':_0x191eb9(0x16d),'fAIJQ':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','eQpJr':'url','ZgKdw':_0x191eb9(0x22a),'MlWfX':_0x191eb9(0x199),'YximY':function(_0x5cf36c,_0x29b0f6,_0x59e59c,_0xcd4cc){return _0x5cf36c(_0x29b0f6,_0x59e59c,_0xcd4cc);},'VPTZT':_0x191eb9(0xc7),'IKvHo':function(_0x1a4412,_0x4c0410,_0x3247ab){return _0x1a4412(_0x4c0410,_0x3247ab);},'EAVga':_0x191eb9(0x1d6),'YGnlq':_0x191eb9(0x19d),'sGbiS':function(_0x437ce0,_0x5bd66d,_0x160310){return _0x437ce0(_0x5bd66d,_0x160310);},'KFQry':_0x191eb9(0xe6),'apShx':'key','dWDlq':'profile\x20config\x20get','TCJzB':'profile','cTGzR':_0x191eb9(0xcd),'UMxbQ':_0x191eb9(0x1e0),'eHFNC':_0x191eb9(0x184),'NzKYd':'list\x20<profile>','ecjUx':_0x191eb9(0xfc),'qTeFR':'add\x20<profile-name>','RhMFX':'use\x20<profile-name>','vKQcV':'Switch\x20to\x20using\x20a\x20specific\x20profile','tBMKd':'encrypt-auth\x20<profile>','gwtTw':'Update\x20authentication\x20for\x20an\x20existing\x20profile','yiSSM':'Manage\x20profile\x20configuration'};return _0x50fa58[_0x191eb9(0x170)](PROFILE_HELP)['command'](_0xda0fbf[_0x191eb9(0x154)],_0x191eb9(0x183),_0x3fc7e2=>{const _0x34ddc9=_0x191eb9;return _0x3fc7e2['positional'](_0xda0fbf[_0x34ddc9(0x1cd)],{'type':_0xda0fbf['JbHZI'],'description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0x34ddc9(0x10a)]('ci',{'type':_0xda0fbf['rKhAk'],'description':_0xda0fbf[_0x34ddc9(0x21a)],'default':![]})['option'](_0xda0fbf[_0x34ddc9(0x163)],{'type':_0xda0fbf[_0x34ddc9(0xc2)],'description':_0xda0fbf[_0x34ddc9(0x1c1)],'default':![]})[_0x34ddc9(0x10a)](_0xda0fbf[_0x34ddc9(0x18c)],{'type':_0xda0fbf['JbHZI'],'description':_0xda0fbf[_0x34ddc9(0x1a0)]})[_0x34ddc9(0x10a)](_0x34ddc9(0x18a),{'type':'boolean','description':_0xda0fbf[_0x34ddc9(0x113)],'default':![]})['option']('cdp-endpoint',{'type':_0xda0fbf[_0x34ddc9(0x1b7)],'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'});},async _0x21f1cc=>{const _0x40ca6d=_0x191eb9;await _0xda0fbf[_0x40ca6d(0x106)](withTelemetry,'profile\x20add',_0x6bcb65=>addEnv(_0x21f1cc['profile-name'],{'ci':_0x21f1cc['ci'],'skipAuth':_0x21f1cc['skip-auth'],'url':_0x21f1cc[_0x40ca6d(0x108)],'force':_0x21f1cc['force'],'cdpEndpoint':_0x21f1cc[_0x40ca6d(0x1a1)]},_0x6bcb65),{'isElectron':Boolean(_0x21f1cc[_0x40ca6d(0x1a1)])});})['command'](_0xda0fbf['RhMFX'],_0xda0fbf['vKQcV'],_0x413731=>{const _0x58c296=_0x191eb9;return _0x413731[_0x58c296(0x198)]('profile-name',{'type':'string','description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x259b00=>{const _0x302067=_0x191eb9;await withTelemetry(_0x302067(0x1d3),()=>useEnv(_0x259b00[_0x302067(0x204)]));})[_0x191eb9(0x1b8)](_0xda0fbf['tBMKd'],'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)',_0x5e46ef=>{return _0x5e46ef['positional']('profile',{'type':_0xda0fbf['JbHZI'],'description':_0xda0fbf['VPTZT'],'demandOption':!![]});},async _0x5dfd32=>{const _0x39fea5=_0x191eb9;await _0xda0fbf[_0x39fea5(0x143)](withTelemetry,_0xda0fbf['EAVga'],()=>authEncrypt(_0x5dfd32['profile']));})['command']('ls',_0x191eb9(0x229),()=>{},async()=>{const _0x5bc251=_0x191eb9;await _0xda0fbf['IKvHo'](withTelemetry,_0x5bc251(0x12e),()=>envList());})['command']('update\x20<profile-name>',_0xda0fbf[_0x191eb9(0x11a)],_0x379bda=>{const _0x533ba9=_0x191eb9;return _0x379bda[_0x533ba9(0x198)](_0xda0fbf[_0x533ba9(0x1cd)],{'type':'string','description':_0xda0fbf[_0x533ba9(0x19a)],'demandOption':!![]});},async _0x3345e5=>{await _0xda0fbf['sGbiS'](withTelemetry,_0xda0fbf['KFQry'],_0x47ea28=>updateEnv(_0x3345e5['profile-name'],_0x47ea28));})[_0x191eb9(0x1b8)]('config',_0xda0fbf['yiSSM'],_0x101515=>{const _0x3414c4=_0x191eb9,_0x27d086={'ejgTz':'string','LXUsI':_0x3414c4(0xd6),'MiJeU':_0x3414c4(0xcf),'ggpuN':'Config\x20key\x20to\x20remove','Jtlvy':function(_0x2c94e5,_0x3437e9,_0x3443bb){return _0x2c94e5(_0x3437e9,_0x3443bb);}};return _0x101515['usage'](PROFILE_CONFIG_HELP)['command'](_0xda0fbf['cTGzR'],'Set\x20a\x20config\x20value',_0x2ef957=>{const _0x2a1e7b=_0x3414c4;return _0x2ef957['positional'](_0x2a1e7b(0x1e6),{'type':'string','description':_0x2a1e7b(0xc7),'demandOption':!![]})['positional']('key',{'type':_0x27d086[_0x2a1e7b(0x1a5)],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})['positional'](_0x2a1e7b(0x19b),{'type':_0x27d086['ejgTz'],'description':_0x2a1e7b(0x1d0),'demandOption':!![]});},async _0x36ebb5=>{const _0x1a893c=_0x3414c4;await withTelemetry(_0x27d086[_0x1a893c(0xe4)],()=>configSet(_0x36ebb5[_0x1a893c(0x1e6)],_0x36ebb5[_0x1a893c(0xcf)],_0x36ebb5[_0x1a893c(0x19b)]));})[_0x3414c4(0x1b8)](_0xda0fbf[_0x3414c4(0x1c3)],_0xda0fbf['eHFNC'],_0x489e91=>{const _0x458a88=_0x3414c4;return _0x489e91['positional']('profile',{'type':_0xda0fbf['JbHZI'],'description':_0xda0fbf['VPTZT'],'demandOption':!![]})[_0x458a88(0x198)](_0xda0fbf[_0x458a88(0x173)],{'type':_0xda0fbf['JbHZI'],'description':_0x458a88(0x164),'demandOption':!![]});},async _0x4e64a7=>{const _0x14180a=_0x3414c4;await withTelemetry(_0xda0fbf[_0x14180a(0x228)],()=>configGet(_0x4e64a7[_0x14180a(0x1e6)],_0x4e64a7['key']));})[_0x3414c4(0x1b8)](_0xda0fbf['NzKYd'],_0xda0fbf['ecjUx'],_0x58d4d0=>{return _0x58d4d0['positional'](_0xda0fbf['TCJzB'],{'type':_0xda0fbf['JbHZI'],'description':'Profile\x20name','demandOption':!![]});},async _0xaff391=>{const _0x41a118=_0x3414c4;await _0xda0fbf['IKvHo'](withTelemetry,_0x41a118(0x1c2),()=>configList(_0xaff391[_0x41a118(0x1e6)]));})['command']('unset\x20<profile>\x20<key>',_0x3414c4(0x1c5),_0x3c4a0d=>{const _0x5e24e1=_0x3414c4;return _0x3c4a0d[_0x5e24e1(0x198)](_0x5e24e1(0x1e6),{'type':_0x5e24e1(0x13b),'description':'Profile\x20name','demandOption':!![]})[_0x5e24e1(0x198)](_0x27d086[_0x5e24e1(0x1eb)],{'type':'string','description':_0x27d086['ggpuN'],'demandOption':!![]});},async _0x3d37b2=>{const _0x12b7a0=_0x3414c4;await _0x27d086[_0x12b7a0(0x15f)](withTelemetry,_0x12b7a0(0x12d),()=>configUnset(_0x3d37b2['profile'],_0x3d37b2['key']));})[_0x3414c4(0xe8)](0x1,_0x3414c4(0x223));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20profile\x20subcommand');})['command'](_0x204baf(0xf2),_0x204baf(0x13d),()=>{},async()=>{const _0x339743=_0x204baf,_0x3f2bff={'eiPsJ':function(_0x5c0639,_0x2f54b9,_0x1704b5){return _0x5c0639(_0x2f54b9,_0x1704b5);},'aeTeI':_0x339743(0xf2)};await _0x3f2bff[_0x339743(0x19f)](withTelemetry,_0x3f2bff[_0x339743(0xe7)],()=>status());})[_0x204baf(0x1b8)](_0x204baf(0x102),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x5ee3e5=_0x204baf,_0x419375={'FeBhM':function(_0x5f2702,_0x5a5c4c,_0x447f5f){return _0x5f2702(_0x5a5c4c,_0x447f5f);}};await _0x419375[_0x5ee3e5(0x1f4)](withTelemetry,_0x5ee3e5(0x102),()=>update());})['command']('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0xe378a4=>{const _0x2b191a=_0x204baf,_0x1be7b4={'YdGPm':_0x2b191a(0x1e6),'EqTeL':_0x2b191a(0x13b),'fQEKn':_0x2b191a(0x1a4),'niwyg':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','KWcFs':'scenario','Atxyb':_0x2b191a(0x1d2),'HFrJI':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','QQeIR':_0x2b191a(0x1cc),'tODOF':_0x2b191a(0x1ed),'DvqDn':'item'};return _0xe378a4['option'](_0x1be7b4[_0x2b191a(0x15e)],{'type':_0x1be7b4[_0x2b191a(0x138)],'description':_0x1be7b4['fQEKn']})['option']('notes',{'type':_0x2b191a(0x13b),'description':_0x1be7b4[_0x2b191a(0x215)]})[_0x2b191a(0x10a)](_0x1be7b4[_0x2b191a(0x13e)],{'type':_0x1be7b4['Atxyb'],'description':_0x2b191a(0x194)})['option']('start-path',{'type':_0x1be7b4['EqTeL'],'description':_0x1be7b4[_0x2b191a(0x193)]})['option'](_0x2b191a(0x1e8),{'type':_0x1be7b4['EqTeL'],'description':_0x2b191a(0xe3)})['option'](_0x2b191a(0x1ab),{'type':_0x1be7b4['EqTeL'],'hidden':!![],'choices':['verified',_0x1be7b4['QQeIR'],_0x2b191a(0xe0),_0x2b191a(0xe9),_0x2b191a(0x144)]})[_0x2b191a(0x10a)](_0x1be7b4[_0x2b191a(0x1b0)],{'type':_0x2b191a(0xd0),'hidden':!![]})[_0x2b191a(0x10a)]('env',{'type':_0x2b191a(0x13b),'hidden':!![]})[_0x2b191a(0x10a)](_0x2b191a(0x107),{'type':_0x1be7b4['EqTeL'],'hidden':!![]})[_0x2b191a(0x10a)](_0x1be7b4['DvqDn'],{'type':'number','hidden':!![]});},async _0x23f62e=>{const _0x2d88e2=_0x204baf,_0x231fe2={'wOaMQ':function(_0x3dfe4a,_0x3db87d){return _0x3dfe4a(_0x3db87d);}};await _0x231fe2[_0x2d88e2(0x160)](runGoCommand,_0x23f62e);})['command'](_0x204baf(0x116),![],_0x3c64a4=>{const _0x4e9d23=_0x204baf,_0x449441={'zvFau':'string','JQqnW':'ranger\x20auth\x20encrypt','LEMsm':'ranger\x20profile\x20encrypt-auth'};return _0x3c64a4['command'](_0x4e9d23(0x174),![],_0x54f14c=>{const _0x1e79d0=_0x4e9d23;return _0x54f14c[_0x1e79d0(0x198)]('profile',{'type':_0x449441['zvFau'],'description':'Profile\x20name','demandOption':!![]});},async _0x526a6a=>{const _0x453851=_0x4e9d23;warnRenamed(_0x449441['JQqnW'],_0x449441[_0x453851(0x227)]),await authEncrypt(_0x526a6a['profile']);})[_0x4e9d23(0xe8)](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})['command']('start\x20[token]',![],_0xdb6d8b=>{const _0x449cb2=_0x204baf,_0x1c31fb={'Wtxoi':_0x449cb2(0x137),'PHDPn':_0x449cb2(0x146),'BdBFL':_0x449cb2(0x222),'VNtyc':'project','BlrWz':_0x449cb2(0x108),'MtFYA':_0x449cb2(0x18a),'ciSUt':_0x449cb2(0x199)};return _0xdb6d8b[_0x449cb2(0x198)](_0x449cb2(0xd8),{'type':_0x449cb2(0x13b),'description':_0x1c31fb[_0x449cb2(0x14b)]})[_0x449cb2(0x10a)](_0x1c31fb['PHDPn'],{'type':_0x449cb2(0xd0),'description':_0x1c31fb['BdBFL'],'default':![]})['option'](_0x449cb2(0x181),{'type':_0x449cb2(0x13b),'choices':[_0x449cb2(0x1db),_0x1c31fb[_0x449cb2(0x1ef)]],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x1c31fb['BlrWz'],{'type':_0x449cb2(0x13b),'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x1c31fb['MtFYA'],{'type':'boolean','description':_0x1c31fb[_0x449cb2(0x119)],'default':![]});},async _0x1a422f=>{const _0x241f0c=_0x204baf,_0x3b4aba={'hXGrY':function(_0x2724a8,_0x50829a,_0x4c8197){return _0x2724a8(_0x50829a,_0x4c8197);},'cDWqw':_0x241f0c(0x1c0),'RmVoQ':'ranger\x20setup','GrSmf':'start'};_0x3b4aba['hXGrY'](warnRenamed,_0x3b4aba[_0x241f0c(0x218)],_0x3b4aba['RmVoQ']),await withTelemetry(_0x3b4aba['GrSmf'],_0x47edf5=>start(_0x1a422f['token'],{'skipChromium':_0x1a422f['skip-chromium'],'scope':_0x1a422f[_0x241f0c(0x181)],'url':_0x1a422f[_0x241f0c(0x108)],'force':_0x1a422f['force']},_0x47edf5));})['command'](_0x204baf(0xc9),![],_0x955ad2=>{const _0x329498=_0x204baf,_0x262496={'PwJcP':_0x329498(0x1bf),'UebpM':_0x329498(0x107),'SuTaK':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','egvjr':_0x329498(0x115),'HxgKq':'Scenario\x20index\x20(1-based)','CygzS':_0x329498(0x180),'AXWvI':'scenario','Lrzvs':'number','PZzuj':'start-path','XpAKp':_0x329498(0x13b),'oxBpV':_0x329498(0x15b),'UjRTm':_0x329498(0x1ab),'QZvJP':'blocked','DQtFs':_0x329498(0xe9)};return _0x955ad2[_0x329498(0x10a)](_0x262496['PwJcP'],{'type':'string','description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x329498(0x10a)](_0x262496['UebpM'],{'type':_0x329498(0x13b),'description':_0x262496['SuTaK']})[_0x329498(0x10a)](_0x262496['egvjr'],{'type':'number','description':_0x262496[_0x329498(0x1cf)]})[_0x329498(0x10a)]('profile',{'type':'string','hidden':!![]})[_0x329498(0x10a)](_0x262496[_0x329498(0x1d5)],{'type':'string','hidden':!![]})[_0x329498(0x10a)](_0x262496[_0x329498(0xf3)],{'type':_0x262496['Lrzvs'],'hidden':!![]})[_0x329498(0x10a)](_0x262496[_0x329498(0x10d)],{'type':_0x262496['XpAKp'],'description':_0x262496[_0x329498(0x1ce)]})['option'](_0x329498(0x1e8),{'type':'string','hidden':!![]})['option'](_0x262496['UjRTm'],{'type':'string','hidden':!![],'choices':['verified','partial',_0x262496['QZvJP'],_0x262496['DQtFs'],'incomplete']});},async _0x357f07=>{const _0x7bb797={'bVBOq':function(_0x43658e,_0x5c497f,_0x2e179d){return _0x43658e(_0x5c497f,_0x2e179d);}};await _0x7bb797['bVBOq'](runGoCommand,_0x357f07,!![]);})[_0x204baf(0x1b8)](_0x204baf(0xc8),![],_0x2c6946=>{const _0xbed5d3=_0x204baf,_0x4bcf4c={'zpPhK':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','jkxMS':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','hqRWt':_0xbed5d3(0x16d),'BrhYM':'boolean','JIWaT':_0xbed5d3(0x13c)};return _0x2c6946[_0xbed5d3(0x198)]('env-name',{'type':_0xbed5d3(0x13b),'description':_0x4bcf4c[_0xbed5d3(0x128)],'demandOption':!![]})[_0xbed5d3(0x10a)]('ci',{'type':_0xbed5d3(0xd0),'description':_0x4bcf4c['jkxMS'],'default':![]})['option'](_0x4bcf4c[_0xbed5d3(0x1e1)],{'type':_0x4bcf4c[_0xbed5d3(0xd9)],'description':_0x4bcf4c['JIWaT'],'default':![]});},async _0x2c8640=>{const _0x3f5a61=_0x204baf,_0x334303={'tnZbe':function(_0x41b2ce,_0x4d50cc,_0x43d444){return _0x41b2ce(_0x4d50cc,_0x43d444);},'ColZR':'ranger\x20add\x20env','EIVuH':'ranger\x20profile\x20add','KSKTt':'add\x20env'};_0x334303[_0x3f5a61(0x1b1)](warnRenamed,_0x334303['ColZR'],_0x334303['EIVuH']),await _0x334303[_0x3f5a61(0x1b1)](withTelemetry,_0x334303[_0x3f5a61(0x120)],_0xa27c04=>addEnv(_0x2c8640['env-name'],{'ci':_0x2c8640['ci'],'skipAuth':_0x2c8640['skip-auth']},_0xa27c04));})[_0x204baf(0x1b8)]('use\x20<env-name>',![],_0x3f8fb3=>{const _0x3acd1c=_0x204baf,_0x45c0bd={'nSdiW':_0x3acd1c(0x17d)};return _0x3f8fb3['positional'](_0x45c0bd['nSdiW'],{'type':_0x3acd1c(0x13b),'description':_0x3acd1c(0x1e9),'demandOption':!![]});},async _0x1e07b8=>{const _0x2eb791=_0x204baf,_0x2735b2={'ZauAv':function(_0x1eed36,_0x549446,_0x1b4bcb){return _0x1eed36(_0x549446,_0x1b4bcb);}};warnRenamed(_0x2eb791(0x1de),'ranger\x20profile\x20use'),await _0x2735b2['ZauAv'](withTelemetry,_0x2eb791(0x1bd),()=>useEnv(_0x1e07b8['env-name']));})['command']('config',![],_0x1e7414=>{const _0x3ba494=_0x204baf,_0x203f64={'HWtYp':_0x3ba494(0x1bf),'RPhyt':_0x3ba494(0xcf),'lVSHp':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','bOwLM':'value','Iewyo':_0x3ba494(0x1d0),'caTEH':'ranger\x20config\x20set','NAVcJ':_0x3ba494(0xf5),'LTcGm':function(_0x99c8cf,_0x359848,_0x5f75e7){return _0x99c8cf(_0x359848,_0x5f75e7);},'LOTvp':_0x3ba494(0x11d),'LkiJA':'Config\x20key','RYgrb':function(_0x15b386,_0x378df4,_0x1ba12f){return _0x15b386(_0x378df4,_0x1ba12f);},'kBAAw':'ranger\x20profile\x20config\x20get','YAeIZ':_0x3ba494(0x21f),'tzpkB':_0x3ba494(0x13b),'sdhTN':_0x3ba494(0x1f6),'KuZZg':'config\x20list','RFpwB':'Environment\x20name','ijfAX':'ranger\x20config\x20unset','XTgmQ':'ranger\x20profile\x20config\x20unset','aQglQ':_0x3ba494(0xed),'oBJFf':_0x3ba494(0x1c9),'BGbXm':_0x3ba494(0x1be)};return _0x1e7414['command'](_0x3ba494(0xfb),![],_0x2adefc=>{const _0x55e8b8=_0x3ba494;return _0x2adefc[_0x55e8b8(0x198)](_0x203f64['HWtYp'],{'type':_0x55e8b8(0x13b),'description':'Environment\x20name','demandOption':!![]})['positional'](_0x203f64['RPhyt'],{'type':_0x55e8b8(0x13b),'description':_0x203f64['lVSHp'],'demandOption':!![]})['positional'](_0x203f64[_0x55e8b8(0x192)],{'type':_0x55e8b8(0x13b),'description':_0x203f64[_0x55e8b8(0x191)],'demandOption':!![]});},async _0xbad9b=>{const _0x2277e0=_0x3ba494;warnRenamed(_0x203f64[_0x2277e0(0xcc)],_0x203f64[_0x2277e0(0x14c)]),await _0x203f64[_0x2277e0(0x211)](withTelemetry,_0x203f64[_0x2277e0(0x200)],()=>configSet(_0xbad9b['env'],_0xbad9b[_0x2277e0(0xcf)],_0xbad9b[_0x2277e0(0x19b)]));})[_0x3ba494(0x1b8)](_0x203f64['aQglQ'],![],_0x36ba50=>{const _0x2e96b5=_0x3ba494;return _0x36ba50[_0x2e96b5(0x198)]('env',{'type':_0x2e96b5(0x13b),'description':_0x2e96b5(0xc6),'demandOption':!![]})['positional']('key',{'type':_0x2e96b5(0x13b),'description':_0x203f64['LkiJA'],'demandOption':!![]});},async _0x27fa52=>{const _0x254a35=_0x3ba494;_0x203f64['RYgrb'](warnRenamed,'ranger\x20config\x20get',_0x203f64[_0x254a35(0x17b)]),await _0x203f64['LTcGm'](withTelemetry,_0x203f64[_0x254a35(0x22b)],()=>configGet(_0x27fa52['env'],_0x27fa52['key']));})['command'](_0x203f64[_0x3ba494(0x18e)],![],_0x5c5ed3=>{const _0x3c78b1=_0x3ba494;return _0x5c5ed3[_0x3c78b1(0x198)]('env',{'type':_0x203f64['tzpkB'],'description':_0x3c78b1(0xc6),'demandOption':!![]});},async _0x379d38=>{const _0x3386e8=_0x3ba494;warnRenamed(_0x203f64[_0x3386e8(0x1ca)],'ranger\x20profile\x20config\x20list'),await withTelemetry(_0x203f64['KuZZg'],()=>configList(_0x379d38['env']));})['command'](_0x3ba494(0x212),![],_0xe2e5d0=>{const _0x588e10=_0x3ba494;return _0xe2e5d0[_0x588e10(0x198)](_0x588e10(0x1bf),{'type':_0x203f64['tzpkB'],'description':_0x203f64[_0x588e10(0x18f)],'demandOption':!![]})['positional'](_0x588e10(0xcf),{'type':_0x203f64[_0x588e10(0x1fc)],'description':_0x588e10(0x158),'demandOption':!![]});},async _0x30ec9c=>{const _0xbcab67=_0x3ba494;_0x203f64['LTcGm'](warnRenamed,_0x203f64[_0xbcab67(0x151)],_0x203f64[_0xbcab67(0xd7)]),await _0x203f64['RYgrb'](withTelemetry,'config\x20unset',()=>configUnset(_0x30ec9c['env'],_0x30ec9c['key']));})[_0x3ba494(0xe8)](0x1,_0x203f64[_0x3ba494(0x1b9)]);})[_0x204baf(0x1b8)](_0x204baf(0x1bf),![],_0x54debd=>{const _0x401cb0=_0x204baf,_0x3ef719={'AGmnn':'ranger\x20env\x20ls','xBstA':function(_0x167cb9,_0x2d725c,_0x30b7d3){return _0x167cb9(_0x2d725c,_0x30b7d3);},'GaYHr':'env\x20list','AjEYF':_0x401cb0(0x17d),'kUEXT':'string','TzLqh':function(_0x257f44,_0x3e4093,_0x203ca2){return _0x257f44(_0x3e4093,_0x203ca2);},'gKEPL':_0x401cb0(0xc5),'NadgO':'ranger\x20profile\x20update','izyif':'env\x20update','okaEU':_0x401cb0(0xd3)};return _0x54debd[_0x401cb0(0x1b8)]('ls',![],()=>{},async()=>{const _0x3c6ecb=_0x401cb0;warnRenamed(_0x3ef719['AGmnn'],_0x3c6ecb(0x1f9)),await _0x3ef719[_0x3c6ecb(0x177)](withTelemetry,_0x3ef719[_0x3c6ecb(0x1e5)],()=>envList());})[_0x401cb0(0x1b8)]('update\x20<env-name>',![],_0x52c56b=>{const _0x450701=_0x401cb0;return _0x52c56b['positional'](_0x3ef719[_0x450701(0x145)],{'type':_0x3ef719['kUEXT'],'description':_0x450701(0xf9),'demandOption':!![]});},async _0x5b2ee5=>{const _0x5ea17d=_0x401cb0;_0x3ef719[_0x5ea17d(0x14f)](warnRenamed,_0x3ef719[_0x5ea17d(0x169)],_0x3ef719[_0x5ea17d(0x114)]),await _0x3ef719[_0x5ea17d(0x14f)](withTelemetry,_0x3ef719[_0x5ea17d(0x13a)],_0x126818=>updateEnv(_0x5b2ee5[_0x5ea17d(0x17d)],_0x126818));})[_0x401cb0(0xe8)](0x1,_0x3ef719[_0x401cb0(0xf1)]);})['command'](_0x204baf(0x13f),![],_0x16a1c2=>{const _0x40950c=_0x204baf,_0x142806={'eubeD':'string','sOide':'Feature\x20review\x20description','AOKdd':'array','CRxcr':'ranger\x20feature\x20create','kUAHZ':function(_0x228d25,_0x11d177,_0x2337f0,_0x5e8165){return _0x228d25(_0x11d177,_0x2337f0,_0x5e8165);},'GaunZ':function(_0x40bec9,_0x2b3999,_0x110e81){return _0x40bec9(_0x2b3999,_0x110e81);},'GPVmf':_0x40950c(0xe1),'ZZRdM':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','tMhPe':_0x40950c(0x1d2),'PbKrM':_0x40950c(0x1e7),'AAWxs':_0x40950c(0x141),'nEXuB':_0x40950c(0x197),'rfUmr':_0x40950c(0x122),'zqTYl':_0x40950c(0x152),'UvOeB':function(_0x18cd75,_0x38a169,_0x1c347c){return _0x18cd75(_0x38a169,_0x1c347c);},'NALPE':'ranger\x20feature\x20resume','DgXXR':_0x40950c(0x140),'LaXap':_0x40950c(0x1d7),'GMhcM':'Scenario\x20description','TSrvx':'ranger\x20feature\x20add-checklist-item','KOkRO':_0x40950c(0xdf),'XDpwA':function(_0x248505,_0x1f3b53,_0x1510a9){return _0x248505(_0x1f3b53,_0x1510a9);},'GIcgj':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','uKqmP':_0x40950c(0x18d),'RFqXI':'ranger\x20feature\x20delete','FuhQn':function(_0x2473de,_0x49c13f,_0x1bd689){return _0x2473de(_0x49c13f,_0x1bd689);},'wZsiB':function(_0x5c7994,_0x418516,_0x4954b9){return _0x5c7994(_0x418516,_0x4954b9);},'XXQgl':_0x40950c(0x1b6),'IJFVF':_0x40950c(0xe2),'sOtNg':_0x40950c(0x1f0),'qTIJn':'list','lhSGS':_0x40950c(0x123),'xNJLi':'resume\x20[id]','pAvWT':'delete\x20[id]'};return _0x16a1c2[_0x40950c(0x1b8)](_0x142806[_0x40950c(0x207)],![],_0xdaf019=>{const _0x23d0e7=_0x40950c;return _0xdaf019['positional']('name',{'type':_0x142806[_0x23d0e7(0x18b)],'description':_0x23d0e7(0x166),'demandOption':!![]})[_0x23d0e7(0x10a)](_0x23d0e7(0x1d7),{'type':'string','alias':'d','description':_0x142806[_0x23d0e7(0x1ba)]})['option'](_0x23d0e7(0xfa),{'type':_0x23d0e7(0x117),'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x23d0e7(0x224),{'type':_0x142806[_0x23d0e7(0x1c6)],'hidden':!![]});},async _0x1abc30=>{const _0x46b056=_0x40950c;warnRenamed(_0x142806[_0x46b056(0x1ff)],_0x46b056(0x155)),_0x142806[_0x46b056(0x1fa)](warnFlagRenamed,'ranger\x20create','--checklist','--scenario');const _0x42116d=_0x1abc30['scenario']||_0x1abc30[_0x46b056(0xfa)];await _0x142806['GaunZ'](withTelemetry,_0x142806[_0x46b056(0xce)],()=>featureCreate(_0x1abc30[_0x46b056(0x14e)],{'description':_0x1abc30['description'],'scenarios':_0x42116d}));})[_0x40950c(0x1b8)](_0x142806[_0x40950c(0x226)],![],_0x17b521=>{const _0x22a1c5=_0x40950c;return _0x17b521[_0x22a1c5(0x10a)](_0x22a1c5(0x203),{'type':_0x22a1c5(0xd0),'description':_0x142806['ZZRdM']})['option'](_0x22a1c5(0x188),{'type':_0x142806[_0x22a1c5(0x124)],'alias':'l','description':_0x142806['PbKrM'],'default':0xa})[_0x22a1c5(0x10a)]('offset',{'type':_0x142806['tMhPe'],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option']('include-deleted',{'type':_0x22a1c5(0xd0),'alias':'d','description':_0x22a1c5(0x1f5),'default':![]});},async _0x169891=>{const _0x34fd51=_0x40950c;warnRenamed('ranger\x20feature\x20list','ranger\x20list'),await withTelemetry(_0x142806[_0x34fd51(0x110)],()=>featureList({'currentBranch':_0x169891[_0x34fd51(0x203)],'limit':_0x169891['limit'],'offset':_0x169891[_0x34fd51(0x16a)],'includeDeleted':_0x169891[_0x34fd51(0xc1)]}));})[_0x40950c(0x1b8)](_0x142806[_0x40950c(0x1ea)],![],_0x13b055=>{const _0x5e7c0c=_0x40950c;return _0x13b055['positional']('id',{'type':_0x142806[_0x5e7c0c(0x18b)],'description':'Feature\x20review\x20ID'});},async _0x497117=>{const _0x1966c7=_0x40950c;warnRenamed(_0x142806[_0x1966c7(0xdd)],_0x142806['rfUmr']),await withTelemetry('feature\x20show',()=>featureShow(_0x497117['id']));})['command'](_0x142806['xNJLi'],![],_0x247532=>{const _0x3502e3=_0x40950c;return _0x247532['positional']('id',{'type':_0x3502e3(0x13b),'description':_0x142806[_0x3502e3(0xdb)]});},async _0x33abf2=>{_0x142806['UvOeB'](warnRenamed,_0x142806['NALPE'],_0x142806['DgXXR']),await withTelemetry('feature\x20resume',()=>featureResume(_0x33abf2['id']));})['command'](_0x40950c(0x159),![],_0x13a010=>{const _0x25726c=_0x40950c;return _0x13a010[_0x25726c(0x198)](_0x142806['LaXap'],{'type':'string','description':_0x142806['GMhcM'],'demandOption':!![]})[_0x25726c(0x10a)]('id',{'type':_0x25726c(0x13b),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x1c45e6=>{const _0x536709=_0x40950c;_0x142806['UvOeB'](warnRenamed,_0x142806['TSrvx'],_0x142806[_0x536709(0x129)]),await _0x142806['XDpwA'](withTelemetry,'feature\x20add-checklist-item',()=>featureAddScenario(_0x1c45e6['description'],_0x1c45e6['id']));})[_0x40950c(0x1b8)](_0x40950c(0x221),![],_0x5c952a=>{const _0x318ebe=_0x40950c;return _0x5c952a[_0x318ebe(0x198)]('id',{'type':_0x142806[_0x318ebe(0x18b)],'description':_0x142806['GIcgj']});},async _0x33591b=>{const _0x4a0f61=_0x40950c;warnRenamed('ranger\x20feature\x20get-feedback',_0x142806[_0x4a0f61(0x167)]),await withTelemetry(_0x4a0f61(0x178),()=>featureGetReview(_0x33591b['id']));})['command'](_0x142806['pAvWT'],![],_0x5d6ed3=>{const _0x4bf65a=_0x40950c;return _0x5d6ed3['positional']('id',{'type':_0x142806[_0x4bf65a(0x18b)],'description':'Feature\x20review\x20ID'});},async _0x25bbe1=>{const _0x49dbd7=_0x40950c;_0x142806[_0x49dbd7(0x202)](warnRenamed,_0x142806[_0x49dbd7(0x125)],_0x49dbd7(0xf7)),await _0x142806['FuhQn'](withTelemetry,'feature\x20delete',()=>featureDelete(_0x25bbe1['id']));})['command'](_0x40950c(0xc3),![],_0x32014c=>{const _0x213a46=_0x40950c;return _0x32014c[_0x213a46(0x198)]('id',{'type':_0x213a46(0x13b),'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x1f429c=>{const _0x33e030=_0x40950c;_0x142806[_0x33e030(0xf0)](warnRenamed,_0x142806['XXQgl'],_0x33e030(0x208)),await _0x142806[_0x33e030(0x1f8)](withTelemetry,_0x142806[_0x33e030(0x1aa)],()=>featureRestore(_0x1f429c['id']));})[_0x40950c(0xe8)](0x1,_0x40950c(0x20f));})['command']('hook',![],_0x3f094d=>{const _0x2d3a9e=_0x204baf,_0x2fccad={'ehVTB':'session-id','zvPzR':_0x2d3a9e(0x205),'HxpkF':'string','YCTQU':function(_0x42702d,_0x2d5fce,_0x261ba7){return _0x42702d(_0x2d5fce,_0x261ba7);},'TlTfV':_0x2d3a9e(0x157),'yONIU':'enable','llxsJ':_0x2d3a9e(0xda),'Weybm':_0x2d3a9e(0x14e)};return _0x3f094d[_0x2d3a9e(0x1b8)](_0x2fccad['yONIU'],_0x2d3a9e(0x147),_0x3e40bc=>{const _0x46ef73=_0x2d3a9e;return _0x3e40bc[_0x46ef73(0x10a)](_0x2fccad['ehVTB'],{'type':'string','description':_0x2fccad[_0x46ef73(0x126)]});},async _0x529fb4=>{const _0x142eff=_0x2d3a9e;await withTelemetry('hook:enable',()=>hook('enable',_0x529fb4[_0x142eff(0x176)]));})['command'](_0x2fccad[_0x2d3a9e(0x11b)],_0x2d3a9e(0x132),_0x3c5d6e=>{const _0x2b9c80=_0x2d3a9e;return _0x3c5d6e['option'](_0x2fccad[_0x2b9c80(0x149)],{'type':_0x2fccad['HxpkF'],'description':_0x2fccad['zvPzR']});},async _0x5860af=>{const _0x6edf9b=_0x2d3a9e;await _0x2fccad['YCTQU'](withTelemetry,_0x2fccad[_0x6edf9b(0x17f)],()=>hook(_0x6edf9b(0xda),_0x5860af['session-id']));})['option'](_0x2fccad['Weybm'],{'type':_0x2d3a9e(0x13b),'description':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'})[_0x2d3a9e(0x10a)]('session-id',{'type':'string','description':_0x2fccad[_0x2d3a9e(0x126)]});},async _0x1e96db=>{const _0x4d6595=_0x204baf,_0x434a8b={'NcuXC':function(_0x3a7ccf,_0x21a294,_0x1647b6){return _0x3a7ccf(_0x21a294,_0x1647b6);}};_0x1e96db['name']&&await _0x434a8b[_0x4d6595(0x103)](hook,_0x1e96db[_0x4d6595(0x14e)],_0x1e96db['session-id']);})[_0x204baf(0xe8)](0x1,_0x204baf(0xef))[_0x204baf(0x1fe)]()['fail'](async(_0x134331,_0x43cc7c,_0x4025d6)=>{const _0x3ef60c=_0x204baf,_0x1b5dcc={'lehQE':_0x3ef60c(0x21d),'DJOqE':function(_0x30ef17,_0x36cc07){return _0x30ef17(_0x36cc07);},'lTKlP':function(_0x46de0e){return _0x46de0e();},'rnyCq':function(_0xce5e3d,_0x394e2a){return _0xce5e3d||_0x394e2a;},'NppYt':_0x3ef60c(0x1ee)},_0x418915=sanitizeArgs(process[_0x3ef60c(0x172)]['slice'](0x2)),_0x37a1b9=getErrorType(_0x134331,_0x43cc7c);if(_0x134331&&_0x134331[_0x3ef60c(0x1e2)](_0x1b5dcc['lehQE'])){const _0x2849d2=process['argv'][0x2];console[_0x3ef60c(0x209)]('\x0aUnknown\x20command:\x20'+_0x2849d2),console['error'](_0x3ef60c(0x1d9));}else{if(_0x134331)console['error']('\x0a'+_0x134331+'\x0a');else _0x43cc7c&&console[_0x3ef60c(0x209)](_0x3ef60c(0x10b)+_0x43cc7c[_0x3ef60c(0xeb)]+'\x0a');}await _0x1b5dcc[_0x3ef60c(0x121)](logDesirePath,{'rawCommand':_0x418915,'errorMessage':_0x134331||_0x43cc7c?.[_0x3ef60c(0xeb)],'errorType':_0x37a1b9});const _0x1d2947=_0x1b5dcc[_0x3ef60c(0x118)](getCurrentCollector);_0x1d2947&&await _0x1d2947['trackCommandError'](_0x43cc7c||new Error(_0x1b5dcc['rnyCq'](_0x134331,_0x1b5dcc[_0x3ef60c(0x10e)]))),process['exit'](0x1);})['epilogue'](_0x204baf(0x168)+'\x20\x20https://docs.ranger.net\x0a'+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()['alias'](_0x204baf(0x135),'h')[_0x204baf(0x195)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x16fc(_0x420074,_0x4acc6e){_0x420074=_0x420074-0x139;const _0x1b56e5=_0x1b56();let _0x16fc76=_0x1b56e5[_0x420074];return _0x16fc76;}(function(_0x34e016,_0x1c451f){const _0x7a314f=_0x16fc,_0x3f9dcd=_0x34e016();while(!![]){try{const _0x272868=parseInt(_0x7a314f(0x149))/0x1+-parseInt(_0x7a314f(0x161))/0x2*(parseInt(_0x7a314f(0x17f))/0x3)+parseInt(_0x7a314f(0x194))/0x4+parseInt(_0x7a314f(0x169))/0x5*(parseInt(_0x7a314f(0x18e))/0x6)+parseInt(_0x7a314f(0x172))/0x7+-parseInt(_0x7a314f(0x15d))/0x8*(-parseInt(_0x7a314f(0x143))/0x9)+-parseInt(_0x7a314f(0x13f))/0xa*(parseInt(_0x7a314f(0x18d))/0xb);if(_0x272868===_0x1c451f)break;else _0x3f9dcd['push'](_0x3f9dcd['shift']());}catch(_0x502e05){_0x3f9dcd['push'](_0x3f9dcd['shift']());}}}(_0x1b56,0x7a25a));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x4624e1 from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';function _0x1b56(){const _0x328766=['Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','status','confirm','10aiQwxD','SrYQK','log','error','QSbKe','TOXbu','HlKIU','trim','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','5323304wUnqzF','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','catch','force','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','Invalid\x20URL','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','trackPhaseEnd','auth.json','kBiMq','LbCnG','Enter\x20a\x20different\x20URL','Delete\x20existing\x20and\x20create\x20new\x20in\x20','313548UoajaF','Use\x20','storageState','✓\x20Auth\x20state\x20saved\x20to:\x20','QKYiO','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','includes','LWusP','ugDfb','prompt','root\x20(.ranger/)','close','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','Saving\x20authentication\x20state...','11ulbAUK','671694pPSoLE','\x0a⚠️\x20\x20Profile\x20\x22','BebNN','\x0a\x20\x20Profile\x20\x22','settings.json','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','393788GfhaKE','DeRYn','ICmEP','DdEmd','gTjjF','baseUrl','HpmmW','manual','launch','OuPtC','✓\x20Created\x20settings:\x20','10125150vLSExj','config_write','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','name','9CfXAgS','\x22\x20already\x20exists.\x20Overwrite?','cdpEndpoint','now','Continue\x20anyway','\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','475091VaPrxj','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','trackPhaseStart','isElectron','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','url_setup','newPage','LvLrP','\x20(continuing\x20with\x20--force)','url','skipAuth','Could\x20not\x20reach\x20','CGxkE','iUsSa','path','use_suggestion','uPOdK','browser_auth','\x0a📋\x20Authentication\x20Setup','test','6328392Qptyun','stdout','qjLra','about:blank','16uZldUL','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','utf-8','\x20\x20Did\x20you\x20mean\x20','TypeError'];_0x1b56=function(){return _0x328766;};return _0x1b56();}async function checkUrlReachability(_0x49cba7){const _0x3b22eb=_0x16fc,_0x21df6c={'HpmmW':function(_0x5e3200,_0x310f61,_0x229269){return _0x5e3200(_0x310f61,_0x229269);},'SrYQK':_0x3b22eb(0x13b),'IaEkl':function(_0x56ff4e,_0x5382da){return _0x56ff4e<_0x5382da;},'LKipn':function(_0x14d831,_0x1717e0){return _0x14d831===_0x1717e0;},'ICmEP':_0x3b22eb(0x165)};try{const _0x100cc0=new AbortController(),_0x2eccca=_0x21df6c[_0x3b22eb(0x13a)](setTimeout,()=>_0x100cc0['abort'](),0x1388),_0x1a51a9=await fetch(_0x49cba7,{'method':'HEAD','signal':_0x100cc0['signal'],'redirect':_0x21df6c[_0x3b22eb(0x16a)]});clearTimeout(_0x2eccca);if(_0x21df6c['IaEkl'](_0x1a51a9['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x1a51a9[_0x3b22eb(0x167)]};}catch(_0x1e2a6c){const _0x63dc30=_0x1e2a6c,_0x2ce69d=_0x63dc30['message']||String(_0x1e2a6c),_0x4febc8=_0x2ce69d['includes'](_0x3b22eb(0x177))||_0x21df6c['LKipn'](_0x63dc30[_0x3b22eb(0x142)],_0x21df6c[_0x3b22eb(0x196)])||_0x2ce69d[_0x3b22eb(0x185)]('fetch\x20failed');return{'ok':![],'error':_0x2ce69d,'isProtocolError':_0x4febc8};}}export async function addEnv(_0x1cf30e,_0x5c38fc={},_0x1b847b){const _0x2a3a0d=_0x16fc,_0x18fff5={'qjLra':'close','djVav':'local','aBecB':function(_0x395612,_0x2c6ce2,_0x3d5f07,_0x53eae9){return _0x395612(_0x2c6ce2,_0x3d5f07,_0x53eae9);},'EWboH':function(_0x29a5c3){return _0x29a5c3();},'BebNN':function(_0x3f56e7,_0x34da48,_0x25b166){return _0x3f56e7(_0x34da48,_0x25b166);},'Jumrm':_0x2a3a0d(0x184),'kBiMq':function(_0x217eed,_0x3acfc0){return _0x217eed(_0x3acfc0);},'DeRYn':function(_0xbf31cb,_0x56de82){return _0xbf31cb===_0x56de82;},'QSbKe':_0x2a3a0d(0x168),'XLXFk':'Aborted.','tzhAc':_0x2a3a0d(0x189),'QKYiO':'shouldReplace','iUsSa':_0x2a3a0d(0x14e),'fQURN':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','VeuAZ':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','jCEOY':function(_0x47f232,_0x291a20){return _0x47f232(_0x291a20);},'zFRdE':'\x0a🌐\x20Profile\x20Setup\x0a','vrSvY':_0x2a3a0d(0x173),'pAfAk':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','DdEmd':_0x2a3a0d(0x14a),'wZmAx':'http://localhost:3000','Fzpoy':'list','rcgsD':'action','LbCnG':'What\x20would\x20you\x20like\x20to\x20do?','LvLrP':_0x2a3a0d(0x147),'CGxkE':function(_0x4d5b17,_0x21bbb1){return _0x4d5b17(_0x21bbb1);},'loIyu':_0x2a3a0d(0x15b),'TOXbu':function(_0xa4358d,_0x506653){return _0xa4358d(_0x506653);},'GEbQc':_0x2a3a0d(0x160),'gTjjF':_0x2a3a0d(0x163),'SLRyW':function(_0x4f403d,_0x2ee316){return _0x4f403d(_0x2ee316);},'uOIiN':function(_0x592265,_0x337f43){return _0x592265+_0x337f43;},'ugDfb':'.enc','nkNzI':_0x2a3a0d(0x193),'pNFyC':'browser_auth','LWusP':function(_0x3cb1d9,_0x24fedf,_0x441fdd){return _0x3cb1d9(_0x24fedf,_0x441fdd);},'OuPtC':function(_0x3bb592,_0x255265,_0xa756){return _0x3bb592(_0x255265,_0xa756);},'KXlXg':'settings.json','HlKIU':function(_0x33ab28,_0x10fd48,_0x17b5e7){return _0x33ab28(_0x10fd48,_0x17b5e7);},'uPOdK':function(_0x59bc57,_0x3e0b4e,_0x4a5852){return _0x59bc57(_0x3e0b4e,_0x4a5852);},'pOpiK':_0x2a3a0d(0x141)},_0x1fa9cb=_0x5c38fc['ci']??![],_0x5ec68b=_0x1fa9cb?'ci':_0x18fff5['djVav'],_0x4acb55=_0x18fff5['aBecB'](join,_0x18fff5['EWboH'](getRangerDir),_0x5ec68b,_0x1cf30e),_0x49556c=_0x18fff5['BebNN'](join,getRangerDir(),_0x5ec68b);if(_0x5c38fc[_0x2a3a0d(0x145)]!==undefined&&_0x5c38fc[_0x2a3a0d(0x145)][_0x2a3a0d(0x170)]()==='')throw new Error(_0x18fff5['Jumrm']);if(_0x5c38fc[_0x2a3a0d(0x145)]&&_0x5c38fc['url'])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');if(_0x5c38fc[_0x2a3a0d(0x145)]&&_0x5c38fc['ci'])throw new Error('--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.');const _0x506dc9=_0x18fff5[_0x2a3a0d(0x17b)](Boolean,_0x5c38fc[_0x2a3a0d(0x145)]),_0x408093=!_0x5c38fc[_0x2a3a0d(0x153)]&&!_0x506dc9,_0x177d8f=process['stdin']['isTTY']&&process[_0x2a3a0d(0x15e)]['isTTY'];if(!_0x177d8f&&!_0x5c38fc[_0x2a3a0d(0x152)]&&!_0x506dc9)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 _0x4d1072=_0x18fff5['kBiMq'](findExistingEnv,_0x1cf30e);let _0x492e94=null;if(_0x4d1072){if(!_0x177d8f)_0x492e94=_0x4d1072;else{if(_0x18fff5[_0x2a3a0d(0x195)](_0x4d1072['location'],_0x5ec68b)){const {overwrite:_0x147077}=await _0x4624e1['prompt']([{'type':_0x18fff5[_0x2a3a0d(0x16d)],'name':'overwrite','message':'Profile\x20\x22'+_0x1cf30e+_0x2a3a0d(0x144),'default':![]}]);if(!_0x147077){console[_0x2a3a0d(0x16b)](_0x18fff5['XLXFk']);return;}_0x492e94=_0x4d1072;}else{const _0x1733f6=_0x4d1072['location']==='legacy'?_0x18fff5['tzhAc']:_0x4d1072['location'];console['error'](_0x2a3a0d(0x18f)+_0x1cf30e+'\x22\x20already\x20exists\x20in\x20'+_0x1733f6+':\x20'+_0x4d1072[_0x2a3a0d(0x157)]),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x5ec68b+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x295361}=await _0x4624e1[_0x2a3a0d(0x188)]([{'type':_0x2a3a0d(0x168),'name':_0x18fff5[_0x2a3a0d(0x183)],'message':_0x2a3a0d(0x17e)+_0x5ec68b+'?','default':![]}]);if(!_0x295361){console[_0x2a3a0d(0x16b)]('Aborted.');return;}_0x492e94=_0x4d1072;}}}_0x1b847b?.['trackPhaseStart'](_0x18fff5[_0x2a3a0d(0x156)]);let _0x501a8d='';if(_0x506dc9)console['log'](_0x18fff5['fQURN']),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x5c38fc['cdpEndpoint']),console['log'](_0x18fff5['VeuAZ']);else{if(_0x5c38fc[_0x2a3a0d(0x152)]){_0x501a8d=_0x5c38fc['url'];const _0x7fed30=await _0x18fff5['jCEOY'](checkUrlReachability,_0x501a8d);if(!_0x7fed30['ok']&&!_0x5c38fc[_0x2a3a0d(0x175)])throw new Error(_0x2a3a0d(0x154)+_0x501a8d+':\x20'+_0x7fed30['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x7fed30['ok']&&_0x5c38fc[_0x2a3a0d(0x175)]&&console[_0x2a3a0d(0x16b)]('⚠\x20Could\x20not\x20reach\x20'+_0x501a8d+':\x20'+_0x7fed30[_0x2a3a0d(0x16c)]+_0x2a3a0d(0x151));}else{console[_0x2a3a0d(0x16b)](_0x18fff5['zFRdE']),console['log'](_0x18fff5['vrSvY']),console[_0x2a3a0d(0x16b)](_0x18fff5['pAfAk']);let _0xb2eee9=![];while(!![]){const _0x2c91e9=await _0x4624e1['prompt']([{'type':'input','name':'baseUrl','message':_0xb2eee9?_0x2a3a0d(0x18b):_0x18fff5[_0x2a3a0d(0x197)],'default':_0x501a8d||_0x18fff5['wZmAx']}]);_0x501a8d=_0x2c91e9[_0x2a3a0d(0x139)];const _0x4f29dd=await checkUrlReachability(_0x501a8d);if(_0x4f29dd['ok'])break;const _0x1a9343=/^[a-zA-Z][\w+.-]*:\/\//[_0x2a3a0d(0x15c)](_0x501a8d),_0x4f8a9d=_0x4f29dd['isProtocolError']&&!_0x1a9343,_0x57afe4=_0x4f8a9d?'http://'+_0x501a8d:null;_0xb2eee9=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x501a8d+':\x20'+_0x4f29dd['error']);_0x57afe4&&console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x164)+_0x57afe4+'?');const {action:_0x48e53c}=await _0x4624e1[_0x2a3a0d(0x188)]([{'type':_0x18fff5['Fzpoy'],'name':_0x18fff5['rcgsD'],'message':_0x18fff5[_0x2a3a0d(0x17c)],'choices':[..._0x57afe4?[{'name':_0x2a3a0d(0x180)+_0x57afe4,'value':'use_suggestion'}]:[],{'name':_0x2a3a0d(0x17d),'value':'retry'},{'name':_0x18fff5[_0x2a3a0d(0x150)],'value':'continue'}]}]);if(_0x18fff5['DeRYn'](_0x48e53c,_0x2a3a0d(0x158))&&_0x57afe4){_0x501a8d=_0x57afe4;const _0x1ece18=await _0x18fff5[_0x2a3a0d(0x155)](checkUrlReachability,_0x501a8d);if(_0x1ece18['ok'])break;console['log'](_0x2a3a0d(0x162)+_0x501a8d+':\x20'+_0x1ece18[_0x2a3a0d(0x16c)]);}else{if(_0x48e53c==='continue')break;}}}}_0x1b847b?.['trackPhaseEnd'](_0x2a3a0d(0x14e)),await mkdir(_0x49556c,{'recursive':!![]});const _0x22e75b=await mkdtemp(join(_0x49556c,'.tmp-'+_0x1cf30e+'-')),_0x522e70=join(_0x22e75b,_0x2a3a0d(0x17a));try{if(_0x408093){_0x1b847b?.[_0x2a3a0d(0x14b)](_0x2a3a0d(0x15a)),console[_0x2a3a0d(0x16b)](_0x18fff5['loIyu']),console['log'](_0x2a3a0d(0x14d)),console[_0x2a3a0d(0x16b)]('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x177d8f?(console['log'](_0x2a3a0d(0x148)),console['log'](_0x2a3a0d(0x178))):console['log']('');await new Promise(_0x1ed742=>setTimeout(_0x1ed742,0xbb8));const _0x4c87b0=await chromium[_0x2a3a0d(0x13c)]({'headless':![]});try{const _0x35ed82=await _0x4c87b0['newContext']();await _0x18fff5[_0x2a3a0d(0x16e)](addProfileSetupBanner,_0x35ed82);const _0x517b4d=await _0x35ed82[_0x2a3a0d(0x14f)]();await _0x517b4d['goto'](_0x501a8d||_0x18fff5['GEbQc']),await new Promise(_0x3611e2=>{const _0x5446c2=_0x2a3a0d;_0x517b4d['on'](_0x18fff5[_0x5446c2(0x15f)],async()=>{const _0x145384=_0x5446c2;try{console[_0x145384(0x16b)](_0x145384(0x18c)),await _0x35ed82[_0x145384(0x181)]({'path':_0x522e70});}catch{}_0x3611e2();});});}finally{await _0x4c87b0[_0x2a3a0d(0x18a)]()[_0x2a3a0d(0x174)](()=>{});}if(_0x1fa9cb){const _0x5c949d=await _0x18fff5[_0x2a3a0d(0x190)](readFile,_0x522e70,_0x18fff5[_0x2a3a0d(0x198)]),_0x57255e=await getToken();if(!_0x57255e){console[_0x2a3a0d(0x16c)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await _0x18fff5['SLRyW'](unlink,_0x522e70)[_0x2a3a0d(0x174)](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x327718=encrypt(_0x5c949d,_0x57255e);await _0x18fff5['BebNN'](writeFile,_0x18fff5['uOIiN'](_0x522e70,_0x18fff5[_0x2a3a0d(0x187)]),_0x327718),await unlink(_0x522e70),console['log'](_0x2a3a0d(0x176)+_0x522e70+'.enc'),console['log'](_0x18fff5['nkNzI']),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log'](_0x2a3a0d(0x182)+_0x522e70);_0x1b847b?.['trackPhaseEnd'](_0x18fff5['pNFyC']);}_0x1b847b?.[_0x2a3a0d(0x14b)]('config_write');const _0x11084d={};_0x501a8d&&(_0x11084d['baseUrl']=_0x501a8d);_0x5c38fc['cdpEndpoint']&&(_0x11084d[_0x2a3a0d(0x145)]=_0x5c38fc['cdpEndpoint'],_0x11084d[_0x2a3a0d(0x14c)]=!![]);await _0x18fff5[_0x2a3a0d(0x186)](writeFile,_0x18fff5[_0x2a3a0d(0x13d)](join,_0x22e75b,_0x2a3a0d(0x192)),JSON['stringify'](_0x11084d,null,0x2)),console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x13e)+_0x18fff5[_0x2a3a0d(0x190)](join,_0x4acb55,_0x18fff5['KXlXg']));if(_0x492e94?.['location']===_0x5ec68b){const _0x234a42=_0x492e94[_0x2a3a0d(0x157)]+'.backup-'+Date[_0x2a3a0d(0x146)]();await rename(_0x492e94[_0x2a3a0d(0x157)],_0x234a42);try{await _0x18fff5['HlKIU'](rename,_0x22e75b,_0x4acb55);}catch(_0x409ecb){await _0x18fff5[_0x2a3a0d(0x159)](rename,_0x234a42,_0x492e94[_0x2a3a0d(0x157)]);throw _0x409ecb;}try{await _0x18fff5[_0x2a3a0d(0x16f)](rm,_0x234a42,{'recursive':!![]});}catch{console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x171)+_0x234a42);}}else{await rename(_0x22e75b,_0x4acb55);if(_0x492e94)try{await rm(_0x492e94['path'],{'recursive':!![]}),console[_0x2a3a0d(0x16b)]('Removed\x20existing\x20profile\x20at\x20'+_0x492e94['path']);}catch{console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x166)+_0x492e94[_0x2a3a0d(0x157)]);}}try{await writeActiveProfileName(_0x1cf30e),console[_0x2a3a0d(0x16b)]('\x20\x20Set\x20active\x20profile:\x20'+_0x1cf30e);}catch{console[_0x2a3a0d(0x16b)](_0x18fff5['pOpiK']);}_0x1b847b?.[_0x2a3a0d(0x179)](_0x2a3a0d(0x140)),console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x191)+_0x1cf30e+'\x22\x20configured');}catch(_0x535f99){await rm(_0x22e75b,{'recursive':!![],'force':!![]});throw _0x535f99;}}
|
|
1
|
+
(function(_0x16c23d,_0x185e83){const _0x39b859=_0x22c6,_0x59eb2b=_0x16c23d();while(!![]){try{const _0x9cb98a=parseInt(_0x39b859(0x174))/0x1+-parseInt(_0x39b859(0x170))/0x2+-parseInt(_0x39b859(0x193))/0x3+-parseInt(_0x39b859(0x176))/0x4*(parseInt(_0x39b859(0x15d))/0x5)+-parseInt(_0x39b859(0x18e))/0x6*(-parseInt(_0x39b859(0x14a))/0x7)+-parseInt(_0x39b859(0x16f))/0x8*(-parseInt(_0x39b859(0x177))/0x9)+parseInt(_0x39b859(0x140))/0xa*(-parseInt(_0x39b859(0x182))/0xb);if(_0x9cb98a===_0x185e83)break;else _0x59eb2b['push'](_0x59eb2b['shift']());}catch(_0x5354dd){_0x59eb2b['push'](_0x59eb2b['shift']());}}}(_0x39ca,0x9ee36));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x4b5d05 from'inquirer';import{chromium}from'playwright';function _0x22c6(_0x459019,_0x3c2d9b){_0x459019=_0x459019-0x138;const _0x39cab3=_0x39ca();let _0x22c6d5=_0x39cab3[_0x459019];return _0x22c6d5;}function _0x39ca(){const _0x1efd4b=['trackPhaseEnd','\x22\x20configured','log','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','42SFGbDj','http://localhost:3000','fetch\x20failed','GHGQM','\x0a\x20\x20Could\x20not\x20reach\x20','1505301oZHMto','browser_auth','Enter\x20a\x20different\x20URL','abort','HEAD','includes','feGQL','continue','use_suggestion','WokFo','skipAuth','legacy','prompt','HTTP\x20','70OXNQfp','\x20would\x20shadow\x20the\x20existing\x20profile.','trim','force','xGubA','utf-8','\x20\x20\x20Creating\x20it\x20in\x20','Use\x20','hlyHt','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','954751JUBOFR','path','OloPc','Aborted.','catch','✓\x20Auth\x20state\x20saved\x20to:\x20','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','\x0a\x20\x20Profile\x20\x22','DUqFy','status','\x20\x20Did\x20you\x20mean\x20','stringify','PBytA','isTTY','confirm','stdin','error','4355oybdQq','root\x20(.ranger/)','BHXDg','cdpEndpoint','IXKpx','aCRYu','launch','zszTG','name','config_write','shouldReplace','http://','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','--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.','CoDIe','Invalid\x20URL','url','local','8488dsLfxE','2068812aBZAXL','\x22\x20already\x20exists\x20in\x20','PxDmP','input','1031863XjnyHj','manual','2348cXdRmk','8649UkGLgK','JXmCZ','mCWho','TypeError','XHoxd','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','goto','GnKXo','settings.json','Removed\x20existing\x20profile\x20at\x20','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','483967kyeYQM','Delete\x20existing\x20and\x20create\x20new\x20in\x20','ViGkT','baseUrl','✓\x20Created\x20settings:\x20','\x0a📋\x20Authentication\x20Setup','ghSnW','.enc'];_0x39ca=function(){return _0x1efd4b;};return _0x39ca();}import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x1e741a){const _0x4d1df0=_0x22c6,_0x27659c={'IXKpx':function(_0x58c312,_0x3b24d2,_0x1e76ec){return _0x58c312(_0x3b24d2,_0x1e76ec);},'UEcVb':_0x4d1df0(0x175),'DUqFy':function(_0x35c596,_0x44d563){return _0x35c596(_0x44d563);},'nTBGu':function(_0x23804a,_0x302f35){return _0x23804a===_0x302f35;},'NqHLY':_0x4d1df0(0x17a)};try{const _0x416c42=new AbortController(),_0x130a33=setTimeout(()=>_0x416c42[_0x4d1df0(0x196)](),0x1388),_0x127954=await _0x27659c[_0x4d1df0(0x161)](fetch,_0x1e741a,{'method':_0x4d1df0(0x197),'signal':_0x416c42['signal'],'redirect':_0x27659c['UEcVb']});_0x27659c[_0x4d1df0(0x154)](clearTimeout,_0x130a33);if(_0x127954[_0x4d1df0(0x155)]<0x190)return{'ok':!![]};return{'ok':![],'error':_0x4d1df0(0x13f)+_0x127954['status']};}catch(_0x1dbae2){const _0x54d659=_0x1dbae2,_0x164d09=_0x54d659['message']||String(_0x1dbae2),_0x297172=_0x164d09['includes'](_0x4d1df0(0x16c))||_0x27659c['nTBGu'](_0x54d659[_0x4d1df0(0x165)],_0x27659c['NqHLY'])||_0x164d09[_0x4d1df0(0x198)](_0x4d1df0(0x190));return{'ok':![],'error':_0x164d09,'isProtocolError':_0x297172};}}export async function addEnv(_0x31fa94,_0x37a0b3={},_0x2e245e){const _0xa34f30=_0x22c6,_0x178c7a={'XHoxd':'Saving\x20authentication\x20state...','hlyHt':function(_0x3b309c){return _0x3b309c();},'CoDIe':'close','ghSnW':_0xa34f30(0x16e),'feGQL':function(_0x1927a2,_0x483029,_0x2c3c15,_0x18e772){return _0x1927a2(_0x483029,_0x2c3c15,_0x18e772);},'GnKXo':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','mCWho':_0xa34f30(0x151),'GHGQM':function(_0x1fdc93,_0x4b605a){return _0x1fdc93(_0x4b605a);},'LqwyG':'overwrite','OOyRa':_0xa34f30(0x14d),'mMUwz':_0xa34f30(0x13d),'PBytA':_0xa34f30(0x15a),'OloPc':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','bnDvc':_0xa34f30(0x152),'oWbRD':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','ViGkT':_0xa34f30(0x18f),'hpzbJ':_0xa34f30(0x195),'XGcIE':'retry','BHXDg':'url_setup','eSiBQ':function(_0x32dd32,_0x5e9013,_0x518289){return _0x32dd32(_0x5e9013,_0x518289);},'JXmCZ':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','WokFo':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','mQzAK':function(_0x3e0d9c,_0x3ae113){return _0x3e0d9c(_0x3ae113);},'xGubA':_0xa34f30(0x145),'duDUf':_0xa34f30(0x18d),'zszTG':function(_0x5d391e,_0x30c193,_0x1fa2c1){return _0x5d391e(_0x30c193,_0x1fa2c1);},'AeBqC':function(_0x272cf1,_0x29aa47,_0x510f45){return _0x272cf1(_0x29aa47,_0x510f45);},'aCRYu':'browser_auth','PxDmP':_0xa34f30(0x17f),'GSuxQ':function(_0x57b133,_0x56d3a3){return _0x57b133===_0x56d3a3;},'jIswL':_0xa34f30(0x181)},_0xb8ad96=_0x37a0b3['ci']??![],_0x1d4f87=_0xb8ad96?'ci':_0x178c7a[_0xa34f30(0x188)],_0x15a2ad=_0x178c7a[_0xa34f30(0x138)](join,getRangerDir(),_0x1d4f87,_0x31fa94),_0x488f38=join(getRangerDir(),_0x1d4f87);if(_0x37a0b3[_0xa34f30(0x160)]!==undefined&&_0x37a0b3['cdpEndpoint'][_0xa34f30(0x142)]()==='')throw new Error(_0x178c7a[_0xa34f30(0x17e)]);if(_0x37a0b3['cdpEndpoint']&&_0x37a0b3['url'])throw new Error(_0x178c7a[_0xa34f30(0x179)]);if(_0x37a0b3[_0xa34f30(0x160)]&&_0x37a0b3['ci'])throw new Error(_0xa34f30(0x16a));const _0x292ee9=Boolean(_0x37a0b3['cdpEndpoint']),_0x23d49a=!_0x37a0b3[_0xa34f30(0x13c)]&&!_0x292ee9,_0x2183a1=process[_0xa34f30(0x15b)][_0xa34f30(0x159)]&&process['stdout'][_0xa34f30(0x159)];if(!_0x2183a1&&!_0x37a0b3['url']&&!_0x292ee9)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 _0x4a0752=_0x178c7a[_0xa34f30(0x191)](findExistingEnv,_0x31fa94);let _0x4d32ce=null;if(_0x4a0752){if(!_0x2183a1)_0x4d32ce=_0x4a0752;else{if(_0x4a0752['location']===_0x1d4f87){const {overwrite:_0x2f801a}=await _0x4b5d05['prompt']([{'type':'confirm','name':_0x178c7a['LqwyG'],'message':'Profile\x20\x22'+_0x31fa94+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x2f801a){console[_0xa34f30(0x18c)](_0x178c7a['OOyRa']);return;}_0x4d32ce=_0x4a0752;}else{const _0xbecc5f=_0x4a0752['location']===_0x178c7a['mMUwz']?_0xa34f30(0x15e):_0x4a0752['location'];console[_0xa34f30(0x15c)]('\x0a⚠️\x20\x20Profile\x20\x22'+_0x31fa94+_0xa34f30(0x171)+_0xbecc5f+':\x20'+_0x4a0752[_0xa34f30(0x14b)]),console['error'](_0xa34f30(0x146)+_0x1d4f87+_0xa34f30(0x141));const {shouldReplace:_0x11d45e}=await _0x4b5d05[_0xa34f30(0x13e)]([{'type':_0x178c7a[_0xa34f30(0x158)],'name':_0xa34f30(0x167),'message':_0xa34f30(0x183)+_0x1d4f87+'?','default':![]}]);if(!_0x11d45e){console['log'](_0x178c7a['OOyRa']);return;}_0x4d32ce=_0x4a0752;}}}_0x2e245e?.['trackPhaseStart']('url_setup');let _0x21188f='';if(_0x292ee9)console[_0xa34f30(0x18c)]('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0xa34f30(0x17c)+_0x37a0b3['cdpEndpoint']),console['log'](_0x178c7a[_0xa34f30(0x14c)]);else{if(_0x37a0b3['url']){_0x21188f=_0x37a0b3[_0xa34f30(0x16d)];const _0x37fa04=await _0x178c7a[_0xa34f30(0x191)](checkUrlReachability,_0x21188f);if(!_0x37fa04['ok']&&!_0x37a0b3[_0xa34f30(0x143)])throw new Error('Could\x20not\x20reach\x20'+_0x21188f+':\x20'+_0x37fa04['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x37fa04['ok']&&_0x37a0b3[_0xa34f30(0x143)]&&console[_0xa34f30(0x18c)]('⚠\x20Could\x20not\x20reach\x20'+_0x21188f+':\x20'+_0x37fa04[_0xa34f30(0x15c)]+'\x20(continuing\x20with\x20--force)');}else{console[_0xa34f30(0x18c)]('\x0a🌐\x20Profile\x20Setup\x0a'),console['log']('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console['log'](_0x178c7a['bnDvc']);let _0x55e3bf=![];while(!![]){const _0x3d1bb6=await _0x4b5d05['prompt']([{'type':_0xa34f30(0x173),'name':'baseUrl','message':_0x55e3bf?_0x178c7a['oWbRD']:'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x21188f||_0x178c7a[_0xa34f30(0x184)]}]);_0x21188f=_0x3d1bb6[_0xa34f30(0x185)];const _0xb5295d=await _0x178c7a['GHGQM'](checkUrlReachability,_0x21188f);if(_0xb5295d['ok'])break;const _0x2605a8=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x21188f),_0x2b84dd=_0xb5295d['isProtocolError']&&!_0x2605a8,_0xf4ff4=_0x2b84dd?_0xa34f30(0x168)+_0x21188f:null;_0x55e3bf=!![],console[_0xa34f30(0x18c)](_0xa34f30(0x192)+_0x21188f+':\x20'+_0xb5295d[_0xa34f30(0x15c)]);_0xf4ff4&&console['log'](_0xa34f30(0x156)+_0xf4ff4+'?');const {action:_0x4a0d3b}=await _0x4b5d05[_0xa34f30(0x13e)]([{'type':'list','name':'action','message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0xf4ff4?[{'name':_0xa34f30(0x147)+_0xf4ff4,'value':_0xa34f30(0x13a)}]:[],{'name':_0x178c7a['hpzbJ'],'value':_0x178c7a['XGcIE']},{'name':'Continue\x20anyway','value':'continue'}]}]);if(_0x4a0d3b===_0xa34f30(0x13a)&&_0xf4ff4){_0x21188f=_0xf4ff4;const _0x2120ab=await _0x178c7a[_0xa34f30(0x191)](checkUrlReachability,_0x21188f);if(_0x2120ab['ok'])break;console['log'](_0xa34f30(0x150)+_0x21188f+':\x20'+_0x2120ab[_0xa34f30(0x15c)]);}else{if(_0x4a0d3b===_0xa34f30(0x139))break;}}}}_0x2e245e?.[_0xa34f30(0x18a)](_0x178c7a[_0xa34f30(0x15f)]),await _0x178c7a['eSiBQ'](mkdir,_0x488f38,{'recursive':!![]});const _0x208fd5=await mkdtemp(join(_0x488f38,'.tmp-'+_0x31fa94+'-')),_0x2fcc72=_0x178c7a['eSiBQ'](join,_0x208fd5,'auth.json');try{if(_0x23d49a){_0x2e245e?.['trackPhaseStart'](_0xa34f30(0x194)),console['log'](_0xa34f30(0x187)),console[_0xa34f30(0x18c)](_0x178c7a[_0xa34f30(0x178)]),console['log']('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x2183a1?(console['log']('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log'](_0x178c7a[_0xa34f30(0x13b)])):console[_0xa34f30(0x18c)]('');await new Promise(_0x466d95=>setTimeout(_0x466d95,0xbb8));const _0x23cf42=await chromium[_0xa34f30(0x163)]({'headless':![]});try{const _0x195399=await _0x23cf42['newContext']();await _0x178c7a['mQzAK'](addProfileSetupBanner,_0x195399);const _0x56eb05=await _0x195399['newPage']();await _0x56eb05[_0xa34f30(0x17d)](_0x21188f||'about:blank'),await new Promise(_0x192309=>{const _0xd9b13f=_0xa34f30;_0x56eb05['on'](_0x178c7a[_0xd9b13f(0x16b)],async()=>{const _0x5dc2f2=_0xd9b13f;try{console['log'](_0x178c7a[_0x5dc2f2(0x17b)]),await _0x195399['storageState']({'path':_0x2fcc72});}catch{}_0x178c7a[_0x5dc2f2(0x148)](_0x192309);});});}finally{await _0x23cf42['close']()[_0xa34f30(0x14e)](()=>{});}if(_0xb8ad96){const _0x3df3e0=await readFile(_0x2fcc72,_0x178c7a[_0xa34f30(0x144)]),_0x377808=await _0x178c7a['hlyHt'](getToken);if(!_0x377808){console['error'](_0xa34f30(0x149)),await _0x178c7a[_0xa34f30(0x191)](unlink,_0x2fcc72)['catch'](()=>{});throw new Error(_0x178c7a['duDUf']);}else{const _0x2c1c34=_0x178c7a[_0xa34f30(0x164)](encrypt,_0x3df3e0,_0x377808);await _0x178c7a['AeBqC'](writeFile,_0x2fcc72+_0xa34f30(0x189),_0x2c1c34),await unlink(_0x2fcc72),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x2fcc72+_0xa34f30(0x189)),console['log'](_0xa34f30(0x169)),console[_0xa34f30(0x18c)]('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console[_0xa34f30(0x18c)](_0xa34f30(0x14f)+_0x2fcc72);_0x2e245e?.['trackPhaseEnd'](_0x178c7a[_0xa34f30(0x162)]);}_0x2e245e?.['trackPhaseStart']('config_write');const _0x14828a={};_0x21188f&&(_0x14828a['baseUrl']=_0x21188f);_0x37a0b3[_0xa34f30(0x160)]&&(_0x14828a['cdpEndpoint']=_0x37a0b3['cdpEndpoint'],_0x14828a['isElectron']=!![]);await writeFile(_0x178c7a[_0xa34f30(0x164)](join,_0x208fd5,_0x178c7a[_0xa34f30(0x172)]),JSON[_0xa34f30(0x157)](_0x14828a,null,0x2)),console[_0xa34f30(0x18c)](_0xa34f30(0x186)+join(_0x15a2ad,'settings.json'));if(_0x178c7a['GSuxQ'](_0x4d32ce?.['location'],_0x1d4f87)){const _0x568772=_0x4d32ce[_0xa34f30(0x14b)]+'.backup-'+Date['now']();await _0x178c7a['AeBqC'](rename,_0x4d32ce[_0xa34f30(0x14b)],_0x568772);try{await rename(_0x208fd5,_0x15a2ad);}catch(_0x227df4){await rename(_0x568772,_0x4d32ce['path']);throw _0x227df4;}try{await _0x178c7a['zszTG'](rm,_0x568772,{'recursive':!![]});}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x568772);}}else{await _0x178c7a['AeBqC'](rename,_0x208fd5,_0x15a2ad);if(_0x4d32ce)try{await rm(_0x4d32ce[_0xa34f30(0x14b)],{'recursive':!![]}),console['log'](_0xa34f30(0x180)+_0x4d32ce[_0xa34f30(0x14b)]);}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x4d32ce[_0xa34f30(0x14b)]);}}try{await writeActiveProfileName(_0x31fa94),console[_0xa34f30(0x18c)]('\x20\x20Set\x20active\x20profile:\x20'+_0x31fa94);}catch{console[_0xa34f30(0x18c)](_0x178c7a['jIswL']);}_0x2e245e?.['trackPhaseEnd'](_0xa34f30(0x166)),console[_0xa34f30(0x18c)](_0xa34f30(0x153)+_0x31fa94+_0xa34f30(0x18b));}catch(_0xb818e2){await rm(_0x208fd5,{'recursive':!![],'force':!![]});throw _0xb818e2;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b8549,_0x3c5f43){const _0x4e43a9=_0x4043,_0x314e76=_0x2b8549();while(!![]){try{const _0x20fa15=parseInt(_0x4e43a9(0x1c6))/0x1*(parseInt(_0x4e43a9(0x1d6))/0x2)+parseInt(_0x4e43a9(0x1cc))/0x3*(-parseInt(_0x4e43a9(0x1c9))/0x4)+parseInt(_0x4e43a9(0x1cd))/0x5+parseInt(_0x4e43a9(0x1d8))/0x6+parseInt(_0x4e43a9(0x1d0))/0x7*(parseInt(_0x4e43a9(0x1d3))/0x8)+-parseInt(_0x4e43a9(0x1d7))/0x9+parseInt(_0x4e43a9(0x1d5))/0xa*(parseInt(_0x4e43a9(0x1d4))/0xb);if(_0x20fa15===_0x3c5f43)break;else _0x314e76['push'](_0x314e76['shift']());}catch(_0x34f682){_0x314e76['push'](_0x314e76['shift']());}}}(_0xce9a,0xa7c97));function _0x4043(_0x181a9a,_0x560d02){_0x181a9a=_0x181a9a-0x1c6;const _0xce9add=_0xce9a();let _0x4043a4=_0xce9add[_0x181a9a];return _0x4043a4;}import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';function _0xce9a(){const _0x4bf5d0=['No\x20auth.json\x20found\x20at\x20','28sQAQlP','QrPwH','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','527199PUMNwf','1840795XPvSZG','auth.json','log','3635345oJGQRt','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','utf-8','16ziuCsH','29557sOXkOn','640VUhvdQ','2mzVhSd','3542670XOUHPB','3015216IUHNgL','229683ZSuEps','DJNvp'];_0xce9a=function(){return _0x4bf5d0;};return _0xce9a();}import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x397fb5){const _0x9d90b=_0x4043,_0x5d876c={'FUpbv':function(_0x23bb5a,_0x26811d,_0x3b2e4b){return _0x23bb5a(_0x26811d,_0x3b2e4b);},'bhXbo':_0x9d90b(0x1ce),'meGVi':function(_0x871e78,_0x3357df){return _0x871e78+_0x3357df;},'DJNvp':function(_0x7d815,_0x3f49f8){return _0x7d815(_0x3f49f8);},'nlobu':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','QrPwH':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'},_0x1e74cf=getEnvDir(_0x397fb5),_0x11138d=_0x5d876c['FUpbv'](join,_0x1e74cf,_0x5d876c['bhXbo']),_0x37a645=_0x5d876c['meGVi'](_0x11138d,'.enc');if(!existsSync(_0x1e74cf))throw new Error('Profile\x20\x22'+_0x397fb5+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x397fb5);if(!_0x5d876c[_0x9d90b(0x1c7)](existsSync,_0x11138d))throw new Error(_0x9d90b(0x1c8)+_0x11138d+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x4cbee6=await getToken();if(!_0x4cbee6)throw new Error(_0x5d876c['nlobu']);const _0x3b5f59=await readFile(_0x11138d,_0x9d90b(0x1d2)),_0x1eb7a3=_0x5d876c['FUpbv'](encrypt,_0x3b5f59,_0x4cbee6);await writeFile(_0x37a645,_0x1eb7a3),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x37a645),console['log'](_0x5d876c[_0x9d90b(0x1ca)]),console[_0x9d90b(0x1cf)]('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'),_0x5d876c[_0x9d90b(0x1c7)](existsSync,_0x37a645)&&(console[_0x9d90b(0x1cf)](_0x9d90b(0x1d1)),console[_0x9d90b(0x1cf)](_0x9d90b(0x1cb)));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5d6bb8=_0xbf69;(function(_0x35165f,_0x4cb746){const _0x2e243c=_0xbf69,_0x4f2ca3=_0x35165f();while(!![]){try{const _0x590b76=-parseInt(_0x2e243c(0x142))/0x1*(parseInt(_0x2e243c(0x15c))/0x2)+-parseInt(_0x2e243c(0x147))/0x3+-parseInt(_0x2e243c(0x140))/0x4+-parseInt(_0x2e243c(0x154))/0x5+-parseInt(_0x2e243c(0x16d))/0x6+-parseInt(_0x2e243c(0x16b))/0x7+parseInt(_0x2e243c(0x166))/0x8;if(_0x590b76===_0x4cb746)break;else _0x4f2ca3['push'](_0x4f2ca3['shift']());}catch(_0x315105){_0x4f2ca3['push'](_0x4f2ca3['shift']());}}}(_0x5ab6,0x68727));import{rm,readFile,writeFile}from'fs/promises';function _0xbf69(_0x59088b,_0x1e5845){_0x59088b=_0x59088b-0x140;const _0x5ab660=_0x5ab6();let _0xbf69ba=_0x5ab660[_0x59088b];return _0xbf69ba;}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';function _0x5ab6(){const _0x4187b1=['oqqpw','xGNRP','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','nZdpa','2397879IvDaUO','user','uninstall','isArray','push','claude','plugin','✓\x20Removed\x20.ranger/\x20directory','yWMWV','replace','project','win32','ranger','1345625qMYQii','marketplace','ywizb','irnsq','NEyia','parse','XpFKI','rcRWc','1700630BrEytX','remove','error','filter','log','IwPOP','close','fjdxY','\x0a✅\x20Cleanup\x20complete!\x0a','✓\x20Removed\x20trailhead\x20marketplace','32068152LmjKtU','dfZUP','nmNdo','oERDB','awNWS','5929973cWffcQ','✓\x20Removed\x20stored\x20credentials','3797820qPmMqq','length','ApQzH','IfTRl','Vdcsz','opencode.json','YWueB','727448EsyhmI','platform','1adBMww'];_0x5ab6=function(){return _0x4187b1;};return _0x5ab6();}import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x5d6bb8(0x153),'feature-tracker','bug-bash','e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x2db35a){const _0x38aa49=_0x5d6bb8,_0x58f02f=_0x2db35a[_0x38aa49(0x150)](/\/\*[\s\S]*?\*\//g,''),_0x585e73=_0x58f02f['replace'](/^\s*\/\/.*$/gm,''),_0xb66c1c=_0x585e73[_0x38aa49(0x150)](/,\s*([}\]])/g,'$1');return JSON[_0x38aa49(0x159)](_0xb66c1c);}async function removeOpencodePluginConfig(_0xbcaa1c){const _0x1a7426=_0x5d6bb8,_0x297853={'uqUHu':function(_0x13a60a,_0x31b092){return _0x13a60a!==_0x31b092;},'rRzys':function(_0x241a11,_0x221ffb){return _0x241a11(_0x221ffb);},'YWueB':function(_0x18d31d,_0xd3c4f6,_0x23c7c0){return _0x18d31d(_0xd3c4f6,_0x23c7c0);},'czvOq':function(_0x8c1775,_0x4bb3bf){return _0x8c1775===_0x4bb3bf;},'nZdpa':function(_0x179821,_0x18d6d7){return _0x179821===_0x18d6d7;}};if(!_0x297853['rRzys'](existsSync,_0xbcaa1c))return![];let _0x5724e8;try{const _0x55f9ab=await _0x297853[_0x1a7426(0x173)](readFile,_0xbcaa1c,'utf-8');_0x5724e8=parseJsonc(_0x55f9ab);}catch{return![];}const _0xe6a141=Array[_0x1a7426(0x14a)](_0x5724e8[_0x1a7426(0x14d)])?_0x5724e8[_0x1a7426(0x14d)]:[];if(_0x297853['czvOq'](_0xe6a141['length'],0x0))return![];const _0x5e276c=_0xe6a141[_0x1a7426(0x15f)](_0x2acf34=>{if(_0x297853['uqUHu'](typeof _0x2acf34,'string'))return!![];return _0x297853['uqUHu'](_0x2acf34,opencodePluginName);});if(_0x5e276c['length']===_0xe6a141['length'])return![];return _0x297853[_0x1a7426(0x146)](_0x5e276c[_0x1a7426(0x16e)],0x0)?delete _0x5724e8['plugin']:_0x5724e8[_0x1a7426(0x14d)]=_0x5e276c,await _0x297853[_0x1a7426(0x173)](writeFile,_0xbcaa1c,JSON['stringify'](_0x5724e8,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x4cf0da){const _0x2b557d=_0x5d6bb8,_0x4f9541={'pEwvq':function(_0x7e5fa4,_0x1b7bb9){return _0x7e5fa4(_0x1b7bb9);},'pncmO':_0x2b557d(0x149),'rcRWc':'ranger@trailhead','ywizb':'--scope','NEyia':function(_0x443ba6,_0x1d90cf,_0x49f918,_0x33e43d){return _0x443ba6(_0x1d90cf,_0x49f918,_0x33e43d);},'yWMWV':'pipe','aXimA':function(_0x5ab214,_0x5cdaaa){return _0x5ab214===_0x5cdaaa;}};return new Promise(_0x4c3bbc=>{const _0x3b8a70=_0x2b557d,_0x8c4545={'irnsq':function(_0x35b4a6,_0x477f3f){return _0x4f9541['pEwvq'](_0x35b4a6,_0x477f3f);}},_0x3995c7=['plugin',_0x4f9541['pncmO'],_0x4f9541[_0x3b8a70(0x15b)]];_0x4cf0da&&_0x3995c7[_0x3b8a70(0x14b)](_0x4f9541[_0x3b8a70(0x156)],_0x4cf0da);const _0x425d55=_0x4f9541[_0x3b8a70(0x158)](spawn,_0x3b8a70(0x14c),_0x3995c7,{'stdio':_0x4f9541[_0x3b8a70(0x14f)],'shell':_0x4f9541['aXimA'](process['platform'],'win32')});_0x425d55['on'](_0x3b8a70(0x162),_0x5e5773=>{const _0x5b4621=_0x3b8a70;_0x8c4545[_0x5b4621(0x157)](_0x4c3bbc,_0x5e5773===0x0);}),_0x425d55['on'](_0x3b8a70(0x15e),()=>{_0x4c3bbc(![]);});});}async function removeMarketplace(){const _0x2ed0e3=_0x5d6bb8,_0x347b53={'nmNdo':function(_0x34a9f4,_0x26e96c){return _0x34a9f4(_0x26e96c);},'onaFh':_0x2ed0e3(0x14c),'EKhel':_0x2ed0e3(0x155),'awNWS':_0x2ed0e3(0x15d)};return new Promise(_0x4e2ab7=>{const _0x4c8c26=_0x2ed0e3,_0x2ef4ff={'dRxMk':function(_0x37e295,_0x217e67){return _0x37e295===_0x217e67;}},_0x1e8daf=spawn(_0x347b53['onaFh'],['plugin',_0x347b53['EKhel'],_0x347b53[_0x4c8c26(0x16a)],'trailhead'],{'stdio':'pipe','shell':process[_0x4c8c26(0x141)]===_0x4c8c26(0x152)});_0x1e8daf['on']('close',_0x269969=>{_0x4e2ab7(_0x2ef4ff['dRxMk'](_0x269969,0x0));}),_0x1e8daf['on']('error',()=>{const _0x2d50a8=_0x4c8c26;_0x347b53[_0x2d50a8(0x168)](_0x4e2ab7,![]);});});}export async function clean(){const _0x54113e=_0x5d6bb8,_0x16bf14={'hooQU':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','dfZUP':function(_0x47fc78){return _0x47fc78();},'oqqpw':_0x54113e(0x16c),'qFNnv':function(_0x4aee6b,_0x1d7ed8){return _0x4aee6b(_0x1d7ed8);},'ApQzH':function(_0x178ea9){return _0x178ea9();},'xGNRP':function(_0x49198c,_0x150f2c,_0x1a917d){return _0x49198c(_0x150f2c,_0x1a917d);},'yUDWc':_0x54113e(0x14e),'jLPZN':function(_0xaf7e9){return _0xaf7e9();},'XpFKI':function(_0x2ed72c){return _0x2ed72c();},'eMGdH':_0x54113e(0x151),'fjdxY':function(_0x3b85a5,_0x1108a3){return _0x3b85a5(_0x1108a3);},'cpNmK':_0x54113e(0x148),'oERDB':function(_0x21bbda,_0xfc4061,_0x47bc8c){return _0x21bbda(_0xfc4061,_0x47bc8c);},'AgDub':function(_0x35526a,_0x59d8e0){return _0x35526a(_0x59d8e0);},'Vdcsz':_0x54113e(0x172),'YInvt':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','IwPOP':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','IfTRl':function(_0x4f72be){return _0x4f72be();},'qFHas':_0x54113e(0x164)};console['log'](_0x16bf14['hooQU']);let _0x4ae207=![];try{await _0x16bf14['dfZUP'](deleteAllCredentials),console['log'](_0x16bf14[_0x54113e(0x143)]),_0x4ae207=!![];}catch{}const _0x230603=_0x16bf14[_0x54113e(0x167)](getCacheFile);existsSync(_0x230603)&&(await _0x16bf14['qFNnv'](rm,_0x230603),_0x4ae207=!![]);const _0x5add56=_0x16bf14[_0x54113e(0x16f)](getRangerDir);existsSync(_0x5add56)&&(await _0x16bf14['xGNRP'](rm,_0x5add56,{'recursive':!![]}),console[_0x54113e(0x160)](_0x16bf14['yUDWc']),_0x4ae207=!![]);const _0x5b4853=_0x16bf14['jLPZN'](getProjectSkillsDir);for(const _0x1f0730 of skillsToRemove){const _0x14e797=_0x16bf14['xGNRP'](join,_0x5b4853,_0x1f0730);existsSync(_0x14e797)&&(await _0x16bf14[_0x54113e(0x144)](rm,_0x14e797,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x1f0730),_0x4ae207=!![]);}const _0x5370e1=_0x16bf14[_0x54113e(0x15a)](getUserSkillsDir);for(const _0x546dfa of skillsToRemove){const _0x5f5928=join(_0x5370e1,_0x546dfa);existsSync(_0x5f5928)&&(await rm(_0x5f5928,{'recursive':!![]}),console[_0x54113e(0x160)]('✓\x20Removed\x20user\x20skill:\x20'+_0x546dfa),_0x4ae207=!![]);}const _0x164b00=getOpencodeSkillsDir(_0x16bf14['eMGdH']);for(const _0x5b8328 of skillsToRemove){const _0x276763=_0x16bf14[_0x54113e(0x144)](join,_0x164b00,_0x5b8328);_0x16bf14['qFNnv'](existsSync,_0x276763)&&(await rm(_0x276763,{'recursive':!![]}),console['log'](_0x54113e(0x145)+_0x5b8328),_0x4ae207=!![]);}const _0x4773cb=_0x16bf14['fjdxY'](getOpencodeSkillsDir,_0x16bf14['cpNmK']);for(const _0x10fd08 of skillsToRemove){const _0x33269a=_0x16bf14[_0x54113e(0x169)](join,_0x4773cb,_0x10fd08);_0x16bf14[_0x54113e(0x163)](existsSync,_0x33269a)&&(await _0x16bf14['xGNRP'](rm,_0x33269a,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x10fd08),_0x4ae207=!![]);}const _0x4a70a2=_0x16bf14[_0x54113e(0x169)](join,_0x16bf14['AgDub'](getOpencodeConfigDir,_0x16bf14['eMGdH']),_0x16bf14[_0x54113e(0x171)]);await removeOpencodePluginConfig(_0x4a70a2)&&(console[_0x54113e(0x160)]('✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0x4ae207=!![]);const _0x1fb963=join(getOpencodeConfigDir(_0x54113e(0x148)),_0x54113e(0x172));await removeOpencodePluginConfig(_0x1fb963)&&(console[_0x54113e(0x160)](_0x16bf14['YInvt']),_0x4ae207=!![]);const _0xa88d9e=await uninstallClaudePlugin();_0xa88d9e&&(console['log'](_0x16bf14[_0x54113e(0x161)]),_0x4ae207=!![]);const _0x118e5e=await uninstallClaudePlugin(_0x54113e(0x151));_0x118e5e&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x4ae207=!![]);const _0xf668d0=await _0x16bf14[_0x54113e(0x170)](removeMarketplace);_0xf668d0&&(console['log'](_0x54113e(0x165)),_0x4ae207=!![]),_0x4ae207?console['log'](_0x16bf14['qFHas']):console[_0x54113e(0x160)]('Nothing\x20to\x20clean\x20up.\x0a');}
|
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5710e4=_0x54b0;(function(_0x49fc50,_0x3e5f37){const _0x2eb817=_0x54b0,_0x3f5db9=_0x49fc50();while(!![]){try{const _0x278c88=-parseInt(_0x2eb817(0x13e))/0x1*(-parseInt(_0x2eb817(0x14a))/0x2)+-parseInt(_0x2eb817(0x14e))/0x3*(-parseInt(_0x2eb817(0x140))/0x4)+-parseInt(_0x2eb817(0x151))/0x5*(parseInt(_0x2eb817(0x157))/0x6)+parseInt(_0x2eb817(0x146))/0x7+-parseInt(_0x2eb817(0x152))/0x8*(-parseInt(_0x2eb817(0x147))/0x9)+parseInt(_0x2eb817(0x154))/0xa*(parseInt(_0x2eb817(0x14d))/0xb)+parseInt(_0x2eb817(0x143))/0xc*(-parseInt(_0x2eb817(0x14f))/0xd);if(_0x278c88===_0x3e5f37)break;else _0x3f5db9['push'](_0x3f5db9['shift']());}catch(_0x3e332b){_0x3f5db9['push'](_0x3f5db9['shift']());}}}(_0x30dc,0xb25d3));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';function _0x54b0(_0x9ed0b8,_0x438d5f){_0x9ed0b8=_0x9ed0b8-0x13e;const _0x30dcc4=_0x30dc();let _0x54b0a8=_0x30dcc4[_0x9ed0b8];return _0x54b0a8;}const BOOLEAN_KEYS=[_0x5710e4(0x15a)];function parseValue(_0x11b619,_0x218f2e){const _0x4fe5bd=_0x5710e4,_0x332e92={'IkocH':function(_0x177e53,_0x58f475){return _0x177e53===_0x58f475;}};if(BOOLEAN_KEYS['includes'](_0x11b619)){if(_0x218f2e==='true')return!![];if(_0x332e92[_0x4fe5bd(0x14c)](_0x218f2e,'false'))return![];throw new Error(_0x4fe5bd(0x14b)+_0x11b619+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x218f2e;}export async function configSet(_0x9df30d,_0x1c758a,_0x1b4447){const _0x59e9d9=_0x5710e4,_0x38a2d0={'DCkRK':function(_0x4e1e49,_0x1270e3){return _0x4e1e49(_0x1270e3);},'kYSxK':function(_0x381643,_0x4145a6,_0x2ae788){return _0x381643(_0x4145a6,_0x2ae788);}},_0x51c7d7=_0x38a2d0['DCkRK'](getEnvDir,_0x9df30d);if(!_0x38a2d0['DCkRK'](existsSync,_0x51c7d7))throw new Error(_0x59e9d9(0x149)+_0x9df30d+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x9df30d);const _0x2055bc=await _0x38a2d0[_0x59e9d9(0x153)](loadSettings,_0x9df30d),_0x2cb0dd=_0x38a2d0['kYSxK'](parseValue,_0x1c758a,_0x1b4447);setNestedValue(_0x2055bc,_0x1c758a,_0x2cb0dd),await saveSettings(_0x9df30d,_0x2055bc),console[_0x59e9d9(0x141)](_0x59e9d9(0x156)+_0x1c758a+_0x59e9d9(0x159)+_0x2cb0dd);}export async function configGet(_0x5a0427,_0x3691d4){const _0x74ebab=_0x5710e4,_0x403ace={'YbASl':function(_0x38adf6,_0x3f64a8){return _0x38adf6(_0x3f64a8);},'przKh':function(_0x21cd4f,_0x235c26){return _0x21cd4f(_0x235c26);},'Rvdgq':function(_0x5c472c,_0x57908f,_0x3af079){return _0x5c472c(_0x57908f,_0x3af079);},'hIJpk':function(_0x4e20fa,_0x48f023){return _0x4e20fa===_0x48f023;},'nrvBQ':_0x74ebab(0x144)},_0x19f3dd=getEnvDir(_0x5a0427);if(!_0x403ace[_0x74ebab(0x148)](existsSync,_0x19f3dd))throw new Error('Profile\x20\x22'+_0x5a0427+_0x74ebab(0x158));const _0xd14f6a=await _0x403ace[_0x74ebab(0x13f)](loadSettings,_0x5a0427),_0xbcc058=_0x403ace['Rvdgq'](getNestedValue,_0xd14f6a,_0x3691d4);if(_0x403ace['hIJpk'](_0xbcc058,undefined))console['log'](_0x74ebab(0x145));else typeof _0xbcc058===_0x403ace['nrvBQ']?console['log'](JSON['stringify'](_0xbcc058,null,0x2)):console[_0x74ebab(0x141)](_0xbcc058);}export async function configList(_0xf587f8){const _0x17f462=_0x5710e4,_0x101e0e={'dzUvz':function(_0x555513,_0xba125c){return _0x555513(_0xba125c);}},_0x22af87=getSettingsPath(_0xf587f8);if(!_0x101e0e[_0x17f462(0x142)](existsSync,_0x22af87)){const _0x528da3=getEnvDir(_0xf587f8);if(!existsSync(_0x528da3))throw new Error('Profile\x20\x22'+_0xf587f8+_0x17f462(0x158));console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0xf587f8+'\x22');return;}const _0x548cfd=await loadSettings(_0xf587f8),_0x445a53=formatSettings(_0x548cfd);!_0x445a53?console[_0x17f462(0x141)](_0x17f462(0x155)+_0xf587f8+'\x22'):console[_0x17f462(0x141)](_0x445a53);}function _0x30dc(){const _0x5c0606=['24qYmIYF','log','dzUvz','1875708FYYpwS','object','(not\x20set)','398391bxQnaM','18dOVoEY','YbASl','Profile\x20\x22','31274KQQOEn','Invalid\x20value\x20for\x20','IkocH','3870757DtMcAV','590289MsqteX','169rOvrQY','Removed\x20','10GyuVTR','2281376fMuKyF','DCkRK','10SbRcGU','No\x20configuration\x20set\x20for\x20\x22','Set\x20','1381326OfNIMh','\x22\x20does\x20not\x20exist.','\x20=\x20','headless','68mqGmqs','przKh'];_0x30dc=function(){return _0x5c0606;};return _0x30dc();}export async function configUnset(_0x36abce,_0x70be0e){const _0x37ac2a=_0x5710e4,_0x2f5053={'axuvQ':function(_0x2f96f8,_0x4501f2){return _0x2f96f8(_0x4501f2);}},_0x316551=getEnvDir(_0x36abce);if(!existsSync(_0x316551))throw new Error('Profile\x20\x22'+_0x36abce+_0x37ac2a(0x158));const _0x197c02=await _0x2f5053['axuvQ'](loadSettings,_0x36abce),_0x905ed9=deleteNestedValue(_0x197c02,_0x70be0e);_0x905ed9?(await saveSettings(_0x36abce,_0x197c02),console['log'](_0x37ac2a(0x150)+_0x70be0e)):console['log']('Key\x20\x22'+_0x70be0e+'\x22\x20not\x20found');}
|