@ranger-testing/ranger-cli 2.1.1 โ 2.1.3
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 -0
- 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 -1
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x2cb639=_0x387e;(function(_0x3fb5f6,_0x305377){const _0x412ceb=_0x387e,_0x2a21ef=_0x3fb5f6();while(!![]){try{const _0x386bfa=parseInt(_0x412ceb(0x104))/0x1*(-parseInt(_0x412ceb(0x1e0))/0x2)+-parseInt(_0x412ceb(0x1ef))/0x3*(-parseInt(_0x412ceb(0x17c))/0x4)+-parseInt(_0x412ceb(0x1df))/0x5*(-parseInt(_0x412ceb(0x1a2))/0x6)+-parseInt(_0x412ceb(0x1c6))/0x7+-parseInt(_0x412ceb(0xae))/0x8+parseInt(_0x412ceb(0x12e))/0x9+-parseInt(_0x412ceb(0xf8))/0xa*(parseInt(_0x412ceb(0x1b6))/0xb);if(_0x386bfa===_0x305377)break;else _0x2a21ef['push'](_0x2a21ef['shift']());}catch(_0x8a15db){_0x2a21ef['push'](_0x2a21ef['shift']());}}}(_0x1e83,0xa1994));import _0x165e27 from'dotenv';function _0x387e(_0x3e8d5b,_0x25a559){_0x3e8d5b=_0x3e8d5b-0x9a;const _0x1e83ef=_0x1e83();let _0x387e5d=_0x1e83ef[_0x3e8d5b];return _0x387e5d;}import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x3dd9b7=_0x387e,_0x194977={'oXUqn':function(_0xd782f1,_0x2cb2c1){return _0xd782f1(_0x2cb2c1);},'JcnmT':function(_0x4b695e,_0x59bd10){return _0x4b695e(_0x59bd10);},'RuZwv':_0x3dd9b7(0xbc),'OVkHW':function(_0x10c6b6,_0x8bad34){return _0x10c6b6(_0x8bad34);}};let _0x5ce653=process[_0x3dd9b7(0x18b)]();const _0x1f6c98=parse(_0x5ce653)['root'];while(_0x5ce653!==_0x1f6c98){if(_0x194977['oXUqn'](existsSync,join(_0x5ce653,'.ranger'))||_0x194977['JcnmT'](existsSync,join(_0x5ce653,_0x194977['RuZwv'])))return _0x5ce653;_0x5ce653=_0x194977[_0x3dd9b7(0xa5)](dirname,_0x5ce653);}return process[_0x3dd9b7(0x18b)]();}_0x165e27['config']({'path':join(findProjectRoot(),'.env')});import _0x547295 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';function _0x1e83(){const _0x22da93=['restore\x20<id>','startsWith','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','DACoP','profile\x20update','pDJeE','OxHKC','qVuyg','ranger\x20create','string','Environment\x20name','hook:enable','Reason:\x20','.env','feature\x20add-checklist-item','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','enable','LragI','profile\x20ls','feature\x20list','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','blocked','cGnEQ','WUkQS','MkGPU','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','alias','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','List\x20all\x20feature\x20reviews','error','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','XBPKm','ooPPD','ItGLC','Ezjoa','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','command','feature','debug-outcome','flag','ranger\x20setup','use\x20<env-name>','Restore\x20a\x20soft-deleted\x20feature\x20review','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','FRQDC','wHrDF','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','include-deleted','log','Add\x20profile\x20configuration','JwpFq','Unknown\x20error','HWGio','VtlNn','get\x20<env>\x20<key>','cdp-endpoint','env\x20update','key','qfFEa','Evaluation:\x20','MFBnP','default','ftUXR','ITvNT','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.','Include\x20soft-deleted\x20feature\x20reviews','add-scenario\x20<description>','tsRZK','mxmdF','hook','HGpzY','FklOW','4367410wRqjQs','nrfzv','Tlpkp','user','Unknown\x20command','list\x20<env>','profile\x20config\x20list','list\x20<profile>','feature\x20get-feedback','update','start-path','status','1LsYEmB','anTPW','clean','name','profile','TJptc','pfUTe','azgmg','list','encrypt\x20<profile>','map','ranger\x20feature\x20show','ranger\x20resume','kSCQE','UOOTr','HRAWT','.\x20[','PnouC','uTyeL','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','qyNcU','ranger\x20get-review','scope','Scenario\x20number\x20to\x20edit\x20(1-based)','task','jKZnb','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','item','value','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','ranger\x20profile\x20ls','ranger\x20profile\x20add','skip-auth','scriptName','hGFHb','unset\x20<profile>\x20<key>','XzuVS','get-feedback\x20[id]','JgMvA','ranger','profile-name','version','11240685SpPIzH','kqnzO','EvTSy','delete\x20[id]','evaluation','mJoqR','demandCommand','ranger\x20auth\x20encrypt','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','ZmLGM','message','exit','session-id','slice','PJFKs','mBivl','oMSgJ','xTMRp','znrMJ','resume','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','pfgAm','RGhpn','\x20FAILED','token','use','restore','aMSGD','config\x20unset','claude','HOWpJ','hmxSh','NFQhX','env-name','You\x20must\x20specify\x20an\x20env\x20subcommand','DPOov','MZBwi','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','uRAxW','env','ranger\x20env\x20ls','config','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','zsjUT','Manage\x20profile\x20configuration','Xnbzy','opencode','yFuLA','vGNcU','You\x20must\x20specify\x20a\x20config\x20subcommand','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','MKBhy','Name\x20of\x20the\x20profile','fjQMa','xPjmP','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','\x20\x20https://docs.ranger.net\x0a','UbCLS','FTbOw','WLGED','get-review','--checklist','ranger\x20feature\x20resume','RatqR','ranger\x20feature\x20get-feedback','EwvuI','current-branch','ranger\x20restore','debug-address-comments','ovvjW','skip-chromium','DhaVJ','argv','mveGp','GTYyr','usage','SEtgm','1935932oXMAgh','Remove\x20a\x20config\x20value','number','--item','positional','TGfch','tybHS','uCclQ','YkctT','PIzUn','feature\x20restore','HNxlE','Install\x20Ranger\x20skills','\x20INCOMPLETE','Switch\x20to\x20using\x20a\x20specific\x20profile','cwd','OhxDV','Get\x20a\x20config\x20value','wZSfV','profile\x20use','lvANT','Install\x20scope\x20for\x20skills','start','GwoQZ','kpUbf','offset','auth','base-url','ITaPD','encrypt-auth\x20<profile>','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','You\x20must\x20specify\x20a\x20profile\x20subcommand','pjIdb','Scenario\x20description','LvGyT','Skip\x20Chromium\x20browser\x20installation','drDTh','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','6fRUoye','GOMsb','ranger\x20profile\x20config\x20set','Set\x20a\x20config\x20value','RNlMZ','boolean','kWJRr','array','Profile\x20name','forEach','url','--scenario','twUtL','pMWfA','includes','UrHGJ','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','HmmgV','ranger\x20go','sCqyj','11UbHqun','description','IiCMj','XEYVi','GjhmY','SldGf','Config\x20key\x20to\x20remove','EWXnH','pbvdz','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','Config\x20key','profile\x20config\x20unset','setup-ci\x20<token>','report','Feature\x20review\x20description','\x0aError:\x20','2669898JbrbVl','WVihh','QCjyF','disable','incomplete','KpLxV','Feature\x20review\x20ID','add-scenario','Config\x20value','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','option','Name\x20of\x20the\x20environment','verify-feature','SxvKg','Initialize\x20Ranger\x20in\x20your\x20project','yBVHD','feature\x20resume','rnsrW','XxsUw','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','env\x20list','kNcDi','issues','config\x20set','iaHxt','806845ViJlku','211180OnNZTc','EmHRa','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','project','LZtad','JcBxs','exclude-scenario','EyQEO','hqrAp','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','lqNNq','EitkT','login','QdLmd','3nSNGkH','scenario','force','hook:disable','AWuOW','XGQHU','lmHbv','verified','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','xcDvm','checklist','notes','OVkHW','model','repeat','ODZuE','Scenario\x20index\x20(1-based)','UemnD','Number\x20of\x20feature\x20reviews\x20to\x20skip','ranger\x20config\x20set','ranger\x20feature\x20create','2469312qVITWa'];_0x1e83=function(){return _0x22da93;};return _0x1e83();}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 _0x2c6980=>{const _0x829c81=_0x387e,_0x520a01={'GwoQZ':function(_0x58ae8c){return _0x58ae8c();}},_0x4f081f=_0x520a01[_0x829c81(0x193)](getCurrentCollector);_0x4f081f&&await _0x4f081f['trackCommandError'](_0x2c6980),process['exitCode']=0x1;});const rawArgs=process[_0x2cb639(0x177)][_0x2cb639(0x13b)](0x2),TOP_LEVEL_HELP=_0x2cb639(0xf0),PROFILE_HELP=_0x2cb639(0x11e),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(_0x4d349e,_0x2e60da){console['error']('\x0a'+_0x4d349e+'\x20is\x20now\x20'+_0x2e60da+'\x0a');}function argUsed(_0x886034){const _0x560139=_0x2cb639;return rawArgs['some'](_0x1dc14e=>_0x1dc14e===_0x886034||_0x1dc14e[_0x560139(0xb0)](_0x886034+'='));}function warnFlagRenamed(_0x49702f,_0x18d8e6,_0x5dc514){const _0x483a69=_0x2cb639,_0x26d546={'pMWfA':function(_0x539902,_0x42708b){return _0x539902(_0x42708b);}};_0x26d546[_0x483a69(0x1af)](argUsed,_0x18d8e6)&&warnRenamed(_0x49702f+'\x20'+_0x18d8e6,_0x49702f+'\x20'+_0x5dc514);}async function runGoCommand(_0xd85a0c,_0x710140=![]){const _0x372276=_0x2cb639,_0x387130={'Xnbzy':'ranger\x20verify-feature','mJoqR':_0x372276(0x1b4),'GIWwx':function(_0x363769,_0x283b6e,_0x1eca07,_0x2e1e2b){return _0x363769(_0x283b6e,_0x1eca07,_0x2e1e2b);},'ZidJo':'--profile','yFuLA':'--task','OkjRk':_0x372276(0x17f),'anuCb':function(_0x7ccc2){return _0x7ccc2();},'WVihh':_0x372276(0xd7),'iYhlz':_0x372276(0x102),'LragI':_0x372276(0xd6),'RNkmE':_0x372276(0x1ca),'ChkZz':_0x372276(0x189),'drDTh':function(_0x592e15,_0x10a603){return _0x592e15===_0x10a603;},'tsRZK':'\x20BLOCKED','rnsrW':_0x372276(0x145),'sJnGX':_0x372276(0xa0)};_0x710140&&warnRenamed(_0x387130[_0x372276(0x15b)],_0x387130['mJoqR']);_0x387130['GIWwx'](warnFlagRenamed,_0x387130[_0x372276(0x133)],'--env',_0x387130['ZidJo']),warnFlagRenamed(_0x387130['mJoqR'],_0x387130[_0x372276(0x15d)],'--notes'),_0x387130['GIWwx'](warnFlagRenamed,'ranger\x20go',_0x387130['OkjRk'],_0x372276(0x1ad));const _0x79dc3e=await _0x387130['anuCb'](loadRangerConfig),_0x704201=_0xd85a0c[_0x372276(0xa6)],_0x5968d8=_0x79dc3e['model'],_0x539109=_0x704201??_0x5968d8,_0x38a74f=_0x704201?_0x387130[_0x372276(0x1c7)]:_0x5968d8?'config':_0x372276(0xed),_0x5c99cb=await verifyFeature({'profile':_0xd85a0c['profile']??_0xd85a0c[_0x372276(0x155)],'notes':_0xd85a0c[_0x372276(0xa4)]??_0xd85a0c['task'],'scenario':_0xd85a0c['scenario']??_0xd85a0c[_0x372276(0x11f)],'startPath':_0xd85a0c[_0x387130['iYhlz']],'debugOutcome':_0xd85a0c[_0x387130[_0x372276(0xc0)]],'debugAddressComments':_0xd85a0c[_0x372276(0x173)],'verifyModel':_0x539109,'verifyModelInput':_0x539109,'verifyModelSource':_0x38a74f});console['log']('\x0a'+'='['repeat'](0x3c)),console['log'](_0x5c99cb[_0x372276(0x132)]==='verified'?'\x20VERIFIED':_0x5c99cb['evaluation']===_0x387130['RNkmE']?_0x387130['ChkZz']:_0x387130['drDTh'](_0x5c99cb[_0x372276(0x132)],'partial')?'\x20PARTIAL':_0x387130[_0x372276(0x1a0)](_0x5c99cb['evaluation'],_0x372276(0xc5))?_0x387130[_0x372276(0xf3)]:_0x387130[_0x372276(0x1d7)]),console[_0x372276(0xe0)]('='[_0x372276(0xa7)](0x3c)),console['log']('Summary:\x20'+_0x5c99cb['summary']),console['log'](_0x372276(0xeb)+_0x5c99cb['evaluation']),console['log'](_0x372276(0xbb)+_0x5c99cb['evaluationReason']),_0x5c99cb['issues']?.['length']&&(console['log']('\x0aIssues:'),_0x5c99cb[_0x372276(0x1dc)][_0x372276(0x1ab)]((_0x86020f,_0x7949b9)=>{const _0x1a7907=_0x372276;console[_0x1a7907(0xe0)]('\x0a'+(_0x7949b9+0x1)+_0x1a7907(0x114)+_0x86020f['severity']+']\x20'+_0x86020f[_0x1a7907(0x1b7)]);})),process[_0x372276(0x139)](_0x5c99cb[_0x372276(0x132)]===_0x387130['sJnGX']?0x0:0x1);}_0x547295(process[_0x2cb639(0x177)][_0x2cb639(0x13b)](0x2))[_0x2cb639(0x125)](_0x2cb639(0x12b))['usage'](TOP_LEVEL_HELP)[_0x2cb639(0x12d)](getCurrentVersion())['command']('create\x20<name>',_0x2cb639(0x1bf),_0x4f28dd=>{const _0x3499ee=_0x2cb639,_0x5f13c5={'yuVLX':'name','LAdCv':'scenario','HOWpJ':_0x3499ee(0x158),'jKZnb':_0x3499ee(0xa3)};return _0x4f28dd['positional'](_0x5f13c5['yuVLX'],{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})[_0x3499ee(0x1d0)](_0x3499ee(0x1b7),{'type':'string','alias':'d','description':_0x3499ee(0x1c4)})[_0x3499ee(0x1d0)](_0x5f13c5['LAdCv'],{'type':'array','alias':'c','description':_0x5f13c5[_0x3499ee(0x14c)]})['option'](_0x5f13c5[_0x3499ee(0x11d)],{'type':_0x3499ee(0x1a9),'hidden':!![]});},async _0x46ce9f=>{const _0x55648d=_0x2cb639,_0xdc18a8={'ITaPD':'--scenario','aArWc':'create'};warnFlagRenamed('ranger\x20create',_0x55648d(0x16c),_0xdc18a8[_0x55648d(0x198)]);const _0x416b9f=_0x46ce9f['scenario']||_0x46ce9f[_0x55648d(0xa3)];await withTelemetry(_0xdc18a8['aArWc'],()=>featureCreate(_0x46ce9f[_0x55648d(0x107)],{'description':_0x46ce9f['description'],'scenarios':_0x416b9f}));})[_0x2cb639(0xd4)](_0x2cb639(0x10c),_0x2cb639(0xcc),_0x5006b8=>{const _0x3e933b=_0x2cb639,_0x3b0181={'NWtsj':'limit','EyQEO':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','LqKVj':_0x3e933b(0x195),'hauDs':'Number\x20of\x20feature\x20reviews\x20to\x20skip','PIzUn':_0x3e933b(0xdf),'HmmgV':_0x3e933b(0x1a7),'UIcGY':_0x3e933b(0xf1)};return _0x5006b8['option']('current-branch',{'type':'boolean','description':_0x3e933b(0x160)})[_0x3e933b(0x1d0)](_0x3b0181['NWtsj'],{'type':_0x3e933b(0x17e),'alias':'l','description':_0x3b0181[_0x3e933b(0x1e8)],'default':0xa})[_0x3e933b(0x1d0)](_0x3b0181['LqKVj'],{'type':'number','alias':'o','description':_0x3b0181['hauDs'],'default':0x0})['option'](_0x3b0181[_0x3e933b(0x185)],{'type':_0x3b0181[_0x3e933b(0x1b3)],'alias':'d','description':_0x3b0181['UIcGY'],'default':![]});},async _0x287299=>{const _0xe9326e=_0x2cb639,_0x4c5491={'mmUgS':function(_0x558849,_0x556289,_0x284960){return _0x558849(_0x556289,_0x284960);},'nLCVS':_0xe9326e(0x10c)};await _0x4c5491['mmUgS'](withTelemetry,_0x4c5491['nLCVS'],()=>featureList({'currentBranch':_0x287299['current-branch'],'limit':_0x287299['limit'],'offset':_0x287299['offset'],'includeDeleted':_0x287299[_0xe9326e(0xdf)]}));})['command']('show\x20[id]','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x456913=>{const _0x3e5d03=_0x2cb639,_0x2f4998={'UemnD':'Feature\x20review\x20ID'};return _0x456913['positional']('id',{'type':'string','description':_0x2f4998[_0x3e5d03(0xaa)]});},async _0x1b3558=>{const _0xe9bb6f=_0x2cb639,_0x579127={'tJAgP':function(_0x595fea,_0x361ec8,_0x29e963){return _0x595fea(_0x361ec8,_0x29e963);},'WLGED':'show'};await _0x579127['tJAgP'](withTelemetry,_0x579127[_0xe9bb6f(0x16a)],()=>featureShow(_0x1b3558['id']));})[_0x2cb639(0xd4)]('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x50966e=>{const _0x31d3cc=_0x2cb639,_0x4d41cf={'ZmLGM':'string'};return _0x50966e[_0x31d3cc(0x180)]('id',{'type':_0x4d41cf[_0x31d3cc(0x137)],'description':_0x31d3cc(0x161)});},async _0x2bbc72=>{const _0x453b6b=_0x2cb639;await withTelemetry(_0x453b6b(0x141),()=>featureResume(_0x2bbc72['id']));})[_0x2cb639(0xd4)](_0x2cb639(0xf2),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x57360a=>{const _0x41a609=_0x2cb639,_0x1177ac={'LxnRq':'string','yBVHD':_0x41a609(0xc4)};return _0x57360a['positional'](_0x41a609(0x1b7),{'type':'string','description':_0x41a609(0x19d),'demandOption':!![]})[_0x41a609(0x1d0)]('id',{'type':_0x1177ac['LxnRq'],'description':_0x1177ac[_0x41a609(0x1d5)]});},async _0x6724a9=>{const _0x1f6bf6=_0x2cb639,_0x1f6b8e={'eicod':_0x1f6bf6(0x1cd)};await withTelemetry(_0x1f6b8e['eicod'],()=>featureAddScenario(_0x6724a9['description'],_0x6724a9['id']));})[_0x2cb639(0xd4)]('edit-scenario\x20<description>',_0x2cb639(0x1d9),_0x45c877=>{const _0x2843ae=_0x2cb639,_0x225557={'kSCQE':_0x2843ae(0x1b7),'EvTSy':_0x2843ae(0xb8),'UWCHY':'New\x20scenario\x20description','UHdUG':'number','xFcGa':_0x2843ae(0xc4)};return _0x45c877[_0x2843ae(0x180)](_0x225557[_0x2843ae(0x111)],{'type':_0x225557[_0x2843ae(0x130)],'description':_0x225557['UWCHY'],'demandOption':!![]})['option'](_0x2843ae(0x9a),{'type':_0x225557['UHdUG'],'description':_0x2843ae(0x11b),'demandOption':!![]})['option']('id',{'type':_0x225557['EvTSy'],'description':_0x225557['xFcGa']});},async _0x4dfbea=>{const _0x29364b=_0x2cb639;await withTelemetry('edit-scenario',()=>featureEditScenario(_0x4dfbea['description'],{'id':_0x4dfbea['id'],'scenario':_0x4dfbea[_0x29364b(0x9a)]}));})['command']('report\x20[id]','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x2b12e7=>{const _0x10646d=_0x2cb639,_0x5b0a62={'RkLAM':'string','NFQhX':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x2b12e7['positional']('id',{'type':_0x5b0a62['RkLAM'],'description':_0x10646d(0x1cc)})[_0x10646d(0x1d0)]('exclude-scenario',{'type':_0x10646d(0x1a9),'description':_0x5b0a62[_0x10646d(0x14e)]});},async _0x9a179f=>{const _0x2759b5=_0x2cb639,_0x3bdd52={'llmse':function(_0x13baa4,_0x4f97c7,_0x34cc98){return _0x13baa4(_0x4f97c7,_0x34cc98);}},_0x155b51=_0x9a179f[_0x2759b5(0x1e7)],_0x566d91=_0x155b51?_0x155b51[_0x2759b5(0x10e)](_0x378f68=>Number(_0x378f68)):undefined;await _0x3bdd52['llmse'](withTelemetry,_0x2759b5(0x1c3),()=>featureReportPrDescription(_0x9a179f['id'],{'excludeScenarios':_0x566d91}));})['command']('get-review\x20[id]',_0x2cb639(0xa1),_0xbbe99a=>{const _0x18a882=_0x2cb639,_0x5ab368={'ZdIZx':'string','DwDpq':_0x18a882(0xc4)};return _0xbbe99a[_0x18a882(0x180)]('id',{'type':_0x5ab368['ZdIZx'],'description':_0x5ab368['DwDpq']});},async _0x4b9f6d=>{const _0x301dd0=_0x2cb639,_0xa2bd0={'QUpIW':_0x301dd0(0x16b)};await withTelemetry(_0xa2bd0['QUpIW'],()=>featureGetReview(_0x4b9f6d['id']));})['command']('delete\x20[id]','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x29a9f0=>{const _0x5d95b9=_0x2cb639,_0x12a429={'czRys':_0x5d95b9(0x1cc)};return _0x29a9f0['positional']('id',{'type':_0x5d95b9(0xb8),'description':_0x12a429['czRys']});},async _0x241f1=>{const _0x3e4fc1=_0x2cb639,_0x4b679d={'QCjyF':'delete'};await withTelemetry(_0x4b679d[_0x3e4fc1(0x1c8)],()=>featureDelete(_0x241f1['id']));})['command'](_0x2cb639(0xaf),_0x2cb639(0xda),_0x4ff828=>{const _0x26c76c=_0x2cb639,_0xd02c41={'XxsUw':'string'};return _0x4ff828['positional']('id',{'type':_0xd02c41[_0x26c76c(0x1d8)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x1f667d=>{const _0x4dc50c=_0x2cb639,_0x31f669={'DPOov':function(_0x314193,_0x4361f4,_0x490b09){return _0x314193(_0x4361f4,_0x490b09);}};await _0x31f669[_0x4dc50c(0x151)](withTelemetry,_0x4dc50c(0x148),()=>featureRestore(_0x1f667d['id']));})[_0x2cb639(0xd4)]('setup\x20[token]',_0x2cb639(0x1d4),_0xdb2f10=>{const _0x3aba9a=_0x2cb639,_0x54051f={'kFdWU':_0x3aba9a(0x19a),'TGfch':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','kqnzO':_0x3aba9a(0xb8),'myDZk':_0x3aba9a(0x1e4),'JgMvA':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','kpUbf':'url','bEDTk':_0x3aba9a(0x9b),'KpLxV':'boolean','cwcBY':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','NBXez':_0x3aba9a(0xce)};return _0xdb2f10[_0x3aba9a(0x180)]('token',{'type':_0x3aba9a(0xb8),'description':_0x54051f['kFdWU']})['option'](_0x3aba9a(0x175),{'type':'boolean','description':_0x54051f[_0x3aba9a(0x181)],'default':![]})[_0x3aba9a(0x1d0)](_0x3aba9a(0x11a),{'type':_0x54051f[_0x3aba9a(0x12f)],'choices':['user',_0x54051f['myDZk']],'description':_0x54051f[_0x3aba9a(0x12a)]})['option'](_0x54051f[_0x3aba9a(0x194)],{'type':_0x3aba9a(0xb8),'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x3aba9a(0x1d0)](_0x54051f['bEDTk'],{'type':_0x54051f['KpLxV'],'description':_0x54051f['cwcBY'],'default':![]})[_0x3aba9a(0x1d0)](_0x3aba9a(0x15c),{'type':_0x54051f[_0x3aba9a(0x1cb)],'description':_0x54051f['NBXez'],'default':![]});},async _0x5922e1=>{const _0x21a101=_0x2cb639,_0x2abe1a={'LcjQU':_0x21a101(0x192)};await withTelemetry(_0x2abe1a['LcjQU'],_0x1bd050=>start(_0x5922e1['token'],{'skipChromium':_0x5922e1['skip-chromium'],'scope':_0x5922e1['scope'],'url':_0x5922e1[_0x21a101(0x1ac)],'force':_0x5922e1['force'],'opencode':_0x5922e1['opencode']},_0x1bd050));})[_0x2cb639(0xd4)](_0x2cb639(0x1c2),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0xcdd2ff=>{const _0x19d8dc=_0x2cb639,_0x5d1c35={'ftUXR':'token','uHfLZ':_0x19d8dc(0xb8),'zMQxo':'Ranger\x20API\x20token','GTYyr':_0x19d8dc(0x197)};return _0xcdd2ff['positional'](_0x5d1c35[_0x19d8dc(0xee)],{'type':_0x5d1c35['uHfLZ'],'description':_0x5d1c35['zMQxo'],'demandOption':!![]})['option'](_0x19d8dc(0x108),{'type':_0x19d8dc(0xb8),'description':_0x19d8dc(0x1a1)})[_0x19d8dc(0x1d0)](_0x5d1c35[_0x19d8dc(0x179)],{'type':_0x19d8dc(0xb8),'description':_0x19d8dc(0x1cf)})[_0x19d8dc(0x1d0)]('skip-chromium',{'type':'boolean','description':_0x19d8dc(0x19f),'default':![]});},async _0x5c98da=>{const _0x574cc4=_0x2cb639;await withTelemetry('setup-ci',_0x11abbf=>setupCi(_0x5c98da[_0x574cc4(0x146)],{'profile':_0x5c98da[_0x574cc4(0x108)],'baseUrl':_0x5c98da['base-url'],'skipChromium':_0x5c98da[_0x574cc4(0x175)]},_0x11abbf));})[_0x2cb639(0xd4)](_0x2cb639(0x1ed),_0x2cb639(0xc3),()=>{},async()=>{const _0x287c9d={'gfbxE':'login'};await withTelemetry(_0x287c9d['gfbxE'],()=>login());})[_0x2cb639(0xd4)]('skillup',_0x2cb639(0x188),_0x5d3489=>{const _0x5b64d0=_0x2cb639,_0x255b0d={'bNAtj':_0x5b64d0(0x1a7),'YyPqi':'Install\x20skills\x20for\x20OpenCode','TJptc':'scope','BjFDF':_0x5b64d0(0xb8)};return _0x5d3489['option']('opencode',{'type':_0x255b0d['bNAtj'],'description':_0x255b0d['YyPqi'],'default':![]})[_0x5b64d0(0x1d0)](_0x255b0d[_0x5b64d0(0x109)],{'type':_0x255b0d['BjFDF'],'choices':[_0x5b64d0(0xfb),'project'],'description':_0x5b64d0(0x191)});},async _0x5b73a6=>{const _0x3c7aa8=_0x2cb639,_0x476dc5={'lAKUj':function(_0x2ceb62,_0x5e64e8){return _0x2ceb62(_0x5e64e8);},'lqNNq':'skillup'},_0x4082b8=_0x476dc5['lAKUj'](Boolean,_0x5b73a6['opencode']);await withTelemetry(_0x476dc5[_0x3c7aa8(0x1eb)],()=>skillup({'autoInstall':_0x5b73a6['scope'],'platform':_0x4082b8?'opencode':_0x3c7aa8(0x14b)}));})['command']('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x128e12=_0x2cb639,_0x4f27a9={'pjIdb':function(_0x2809c7,_0x12e19b,_0x4f9caf){return _0x2809c7(_0x12e19b,_0x4f9caf);}};await _0x4f27a9[_0x128e12(0x19c)](withTelemetry,_0x128e12(0x106),()=>clean());})['command'](_0x2cb639(0x108),'Manage\x20profiles',_0x437f7e=>{const _0x21b758=_0x2cb639,_0xd16f78={'ItGLC':'profile-name','JwpFq':_0x21b758(0x1ea),'cGnEQ':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','ellzX':_0x21b758(0x124),'FRQDC':'boolean','SEtgm':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','dtGTf':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','pKzNW':_0x21b758(0xe7),'xuivu':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','yDSKT':function(_0x31d5b2,_0x4491e1,_0x345d6c,_0x45a91d){return _0x31d5b2(_0x4491e1,_0x345d6c,_0x45a91d);},'pDJeE':'profile\x20add','SxvKg':'string','AkfAn':_0x21b758(0x18f),'azgmg':_0x21b758(0x108),'ooPPD':_0x21b758(0x1aa),'vGNcU':'profile\x20encrypt-auth','lvANT':function(_0x560dd9,_0x46a37d,_0x1c8a48){return _0x560dd9(_0x46a37d,_0x1c8a48);},'XBPKm':_0x21b758(0xb3),'GOMsb':function(_0x378029,_0x215c3b,_0x29a634){return _0x378029(_0x215c3b,_0x29a634);},'mSsdG':'profile\x20config\x20set','mveGp':_0x21b758(0x1c0),'BDcfp':_0x21b758(0xfe),'DFIbt':'set\x20<profile>\x20<key>\x20<value>','pfgAm':_0x21b758(0x127),'HNxlE':'add\x20<profile-name>','MMejX':_0x21b758(0x18a),'xFjNL':_0x21b758(0x199),'mnLxm':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','QdLmd':'update\x20<profile-name>'};return _0x437f7e[_0x21b758(0x17a)](PROFILE_HELP)['command'](_0xd16f78[_0x21b758(0x187)],_0x21b758(0xe1),_0x575e09=>{const _0x6e7e8b=_0x21b758;return _0x575e09[_0x6e7e8b(0x180)](_0xd16f78['ItGLC'],{'type':_0x6e7e8b(0xb8),'description':_0xd16f78[_0x6e7e8b(0xe2)],'demandOption':!![]})[_0x6e7e8b(0x1d0)]('ci',{'type':_0x6e7e8b(0x1a7),'description':_0xd16f78[_0x6e7e8b(0xc6)],'default':![]})['option'](_0xd16f78['ellzX'],{'type':_0xd16f78[_0x6e7e8b(0xdc)],'description':_0xd16f78[_0x6e7e8b(0x17b)],'default':![]})['option'](_0x6e7e8b(0x1ac),{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})[_0x6e7e8b(0x1d0)](_0x6e7e8b(0x9b),{'type':_0xd16f78[_0x6e7e8b(0xdc)],'description':_0xd16f78['dtGTf'],'default':![]})['option'](_0xd16f78['pKzNW'],{'type':'string','description':_0xd16f78['xuivu']});},async _0x16cd90=>{const _0x9551df=_0x21b758;await _0xd16f78['yDSKT'](withTelemetry,_0xd16f78[_0x9551df(0xb4)],_0x341e7d=>addEnv(_0x16cd90['profile-name'],{'ci':_0x16cd90['ci'],'skipAuth':_0x16cd90['skip-auth'],'url':_0x16cd90['url'],'force':_0x16cd90['force'],'cdpEndpoint':_0x16cd90[_0x9551df(0xe7)]},_0x341e7d),{'isElectron':Boolean(_0x16cd90['cdp-endpoint'])});})['command']('use\x20<profile-name>',_0xd16f78['MMejX'],_0x3ef2e2=>{const _0xceecdf=_0x21b758;return _0x3ef2e2['positional'](_0xd16f78[_0xceecdf(0xd1)],{'type':_0xd16f78['SxvKg'],'description':_0xceecdf(0x163),'demandOption':!![]});},async _0x591d36=>{const _0x2f6e1a=_0x21b758;await withTelemetry(_0xd16f78['AkfAn'],()=>useEnv(_0x591d36[_0x2f6e1a(0x12c)]));})[_0x21b758(0xd4)](_0xd16f78['xFjNL'],_0xd16f78['mnLxm'],_0x47dc7f=>{const _0x7538e8=_0x21b758;return _0x47dc7f['positional'](_0xd16f78[_0x7538e8(0x10b)],{'type':_0x7538e8(0xb8),'description':_0xd16f78['ooPPD'],'demandOption':!![]});},async _0x3130cb=>{const _0x2b0f9f=_0x21b758;await withTelemetry(_0xd16f78[_0x2b0f9f(0x15e)],()=>authEncrypt(_0x3130cb['profile']));})['command']('ls','List\x20all\x20profiles',()=>{},async()=>{const _0x42c5d6=_0x21b758;await _0xd16f78[_0x42c5d6(0x190)](withTelemetry,_0x42c5d6(0xc1),()=>envList());})[_0x21b758(0xd4)](_0xd16f78[_0x21b758(0x1ee)],'Update\x20authentication\x20for\x20an\x20existing\x20profile',_0xc5d46d=>{const _0x2fd39e=_0x21b758;return _0xc5d46d['positional'](_0xd16f78[_0x2fd39e(0xd1)],{'type':'string','description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]});},async _0x2557ba=>{const _0x486ac4=_0x21b758;await withTelemetry(_0xd16f78[_0x486ac4(0xcf)],_0x17c55b=>updateEnv(_0x2557ba['profile-name'],_0x17c55b));})['command'](_0x21b758(0x157),_0x21b758(0x15a),_0x5587b0=>{const _0x5a1c65=_0x21b758,_0x5c4c82={'zsjUT':_0xd16f78[_0x5a1c65(0x1d3)],'fjQMa':_0x5a1c65(0x142),'aMSGD':function(_0x45cfd7,_0x101fd0,_0x369328){return _0x45cfd7(_0x101fd0,_0x369328);},'ApSqv':'profile\x20config\x20get','sjgKd':_0xd16f78[_0x5a1c65(0xd0)]};return _0x5587b0['usage'](PROFILE_CONFIG_HELP)[_0x5a1c65(0xd4)](_0xd16f78['DFIbt'],_0x5a1c65(0x1a5),_0x827e81=>{const _0x326e29=_0x5a1c65;return _0x827e81[_0x326e29(0x180)]('profile',{'type':_0x5c4c82['zsjUT'],'description':_0x326e29(0x1aa),'demandOption':!![]})[_0x326e29(0x180)]('key',{'type':_0x326e29(0xb8),'description':_0x5c4c82[_0x326e29(0x164)],'demandOption':!![]})[_0x326e29(0x180)]('value',{'type':_0x5c4c82['zsjUT'],'description':'Config\x20value','demandOption':!![]});},async _0x22ee4=>{const _0x1e01e8=_0x5a1c65;await _0xd16f78[_0x1e01e8(0x1a3)](withTelemetry,_0xd16f78['mSsdG'],()=>configSet(_0x22ee4['profile'],_0x22ee4['key'],_0x22ee4[_0x1e01e8(0x120)]));})[_0x5a1c65(0xd4)]('get\x20<profile>\x20<key>',_0x5a1c65(0x18d),_0x57887a=>{const _0x2cd15f=_0x5a1c65;return _0x57887a['positional']('profile',{'type':_0xd16f78[_0x2cd15f(0x1d3)],'description':_0xd16f78['ooPPD'],'demandOption':!![]})[_0x2cd15f(0x180)]('key',{'type':_0x2cd15f(0xb8),'description':_0xd16f78[_0x2cd15f(0x178)],'demandOption':!![]});},async _0x1907e1=>{const _0x54e744=_0x5a1c65;await _0x5c4c82['aMSGD'](withTelemetry,_0x5c4c82['ApSqv'],()=>configGet(_0x1907e1[_0x54e744(0x108)],_0x1907e1[_0x54e744(0xe9)]));})[_0x5a1c65(0xd4)](_0x5a1c65(0xff),'List\x20all\x20config\x20for\x20a\x20profile',_0x1576e0=>{const _0x3104bf=_0x5a1c65;return _0x1576e0['positional'](_0xd16f78[_0x3104bf(0x10b)],{'type':_0x3104bf(0xb8),'description':_0x3104bf(0x1aa),'demandOption':!![]});},async _0x4d5853=>{const _0x3d9c71=_0x5a1c65;await withTelemetry(_0xd16f78['BDcfp'],()=>configList(_0x4d5853[_0x3d9c71(0x108)]));})[_0x5a1c65(0xd4)](_0xd16f78[_0x5a1c65(0x143)],_0x5a1c65(0x17d),_0x4fb089=>{const _0x3ec6c4=_0x5a1c65;return _0x4fb089[_0x3ec6c4(0x180)]('profile',{'type':_0x5c4c82['zsjUT'],'description':_0x5c4c82['sjgKd'],'demandOption':!![]})['positional'](_0x3ec6c4(0xe9),{'type':_0x5c4c82[_0x3ec6c4(0x159)],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x13691b=>{const _0x1f3b11=_0x5a1c65;await _0x5c4c82[_0x1f3b11(0x149)](withTelemetry,_0x1f3b11(0x1c1),()=>configUnset(_0x13691b[_0x1f3b11(0x108)],_0x13691b['key']));})['demandCommand'](0x1,_0x5a1c65(0xd3));})[_0x21b758(0x134)](0x1,_0x21b758(0x19b));})[_0x2cb639(0xd4)](_0x2cb639(0x103),_0x2cb639(0xbe),()=>{},async()=>{const _0x2d4b41={'BIbkL':'status'};await withTelemetry(_0x2d4b41['BIbkL'],()=>status());})['command'](_0x2cb639(0x101),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x5ca7d9=_0x2cb639,_0xd189e={'hmxSh':'update'};await withTelemetry(_0xd189e[_0x5ca7d9(0x14d)],()=>update());})['command']('go',_0x2cb639(0xdb),_0x2a89e6=>{const _0x230429=_0x2cb639,_0x3e9e66={'alqbE':_0x230429(0x108),'AWuOW':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','LZtad':_0x230429(0xb8),'XMTLa':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','WUkQS':'start-path','SUxHu':_0x230429(0x1e2),'MKBhy':_0x230429(0xd6),'lmHbv':'partial','crjXZ':_0x230429(0x155),'tybHS':_0x230429(0x11c),'ODZuE':_0x230429(0x17e)};return _0x2a89e6[_0x230429(0x1d0)](_0x3e9e66['alqbE'],{'type':_0x230429(0xb8),'description':_0x3e9e66[_0x230429(0x9d)]})[_0x230429(0x1d0)]('notes',{'type':_0x3e9e66[_0x230429(0x1e5)],'description':_0x3e9e66['XMTLa']})['option']('scenario',{'type':'number','description':_0x230429(0xa9)})['option'](_0x3e9e66[_0x230429(0xc7)],{'type':_0x230429(0xb8),'description':_0x230429(0xb1)})[_0x230429(0x1d0)]('model',{'type':'string','description':_0x3e9e66['SUxHu']})['option'](_0x3e9e66[_0x230429(0x162)],{'type':'string','hidden':!![],'choices':['verified',_0x3e9e66[_0x230429(0x9f)],'blocked','failed','incomplete']})[_0x230429(0x1d0)](_0x230429(0x173),{'type':_0x230429(0x1a7),'hidden':!![]})['option'](_0x3e9e66['crjXZ'],{'type':_0x3e9e66['LZtad'],'hidden':!![]})[_0x230429(0x1d0)](_0x3e9e66[_0x230429(0x182)],{'type':_0x3e9e66[_0x230429(0x1e5)],'hidden':!![]})['option']('item',{'type':_0x3e9e66[_0x230429(0xa8)],'hidden':!![]});},async _0x2aa9b6=>{const _0x32c3f1=_0x2cb639,_0x395448={'MZBwi':function(_0x4c27ba,_0x255fc5){return _0x4c27ba(_0x255fc5);}};await _0x395448[_0x32c3f1(0x152)](runGoCommand,_0x2aa9b6);})[_0x2cb639(0xd4)](_0x2cb639(0x196),![],_0x4ec12b=>{const _0x152cbd=_0x2cb639,_0x43448b={'sGpIw':'string','NdvRp':'Profile\x20name','wHrDF':function(_0x583054,_0x3b5719,_0x421171){return _0x583054(_0x3b5719,_0x421171);},'kNcDi':_0x152cbd(0x135),'mEaCz':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x4ec12b[_0x152cbd(0xd4)](_0x152cbd(0x10d),![],_0x1f990c=>{return _0x1f990c['positional']('profile',{'type':_0x43448b['sGpIw'],'description':_0x43448b['NdvRp'],'demandOption':!![]});},async _0x8a7dc2=>{const _0x2c9715=_0x152cbd;_0x43448b[_0x2c9715(0xdd)](warnRenamed,_0x43448b[_0x2c9715(0x1db)],'ranger\x20profile\x20encrypt-auth'),await authEncrypt(_0x8a7dc2['profile']);})[_0x152cbd(0x134)](0x1,_0x43448b['mEaCz']);},()=>{})['command']('start\x20[token]',![],_0x1df885=>{const _0x43b3d1=_0x2cb639,_0x157d95={'RGhpn':_0x43b3d1(0xb8),'SGvMl':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','ngdUh':'boolean','xPjmP':_0x43b3d1(0xcb),'TqoMK':'scope','GjhmY':'project','oMSgJ':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','VtlNn':_0x43b3d1(0x9b)};return _0x1df885[_0x43b3d1(0x180)](_0x43b3d1(0x146),{'type':_0x157d95[_0x43b3d1(0x144)],'description':_0x157d95['SGvMl']})[_0x43b3d1(0x1d0)]('skip-chromium',{'type':_0x157d95['ngdUh'],'description':_0x157d95[_0x43b3d1(0x165)],'default':![]})['option'](_0x157d95['TqoMK'],{'type':_0x157d95['RGhpn'],'choices':[_0x43b3d1(0xfb),_0x157d95[_0x43b3d1(0x1ba)]],'description':_0x157d95[_0x43b3d1(0x13e)]})[_0x43b3d1(0x1d0)]('url',{'type':_0x43b3d1(0xb8),'description':_0x43b3d1(0x117)})['option'](_0x157d95[_0x43b3d1(0xe5)],{'type':_0x157d95['ngdUh'],'description':_0x43b3d1(0x136),'default':![]});},async _0xbf73ac=>{const _0x3d96ae=_0x2cb639,_0x511c3f={'bxkbV':'ranger\x20start','twUtL':function(_0x3b3293,_0x3dfcc3,_0x1daec1){return _0x3b3293(_0x3dfcc3,_0x1daec1);}};warnRenamed(_0x511c3f['bxkbV'],_0x3d96ae(0xd8)),await _0x511c3f[_0x3d96ae(0x1ae)](withTelemetry,'start',_0xf6688=>start(_0xbf73ac[_0x3d96ae(0x146)],{'skipChromium':_0xbf73ac[_0x3d96ae(0x175)],'scope':_0xbf73ac[_0x3d96ae(0x11a)],'url':_0xbf73ac[_0x3d96ae(0x1ac)],'force':_0xbf73ac['force']},_0xf6688));})[_0x2cb639(0xd4)](_0x2cb639(0x1d2),![],_0x57737c=>{const _0x46a475=_0x2cb639,_0x4d5d69={'XEYVi':_0x46a475(0xde),'anTPW':'task','EmHRa':'string','QrtAx':_0x46a475(0x108),'RmogG':_0x46a475(0x17e),'KCJaS':_0x46a475(0xb1),'IDwlB':_0x46a475(0xa0),'jqNFy':'partial','BbUxw':'blocked','LvGyT':'failed','EitkT':_0x46a475(0x1ca)};return _0x57737c[_0x46a475(0x1d0)]('env',{'type':_0x46a475(0xb8),'description':_0x4d5d69[_0x46a475(0x1b9)]})[_0x46a475(0x1d0)](_0x4d5d69[_0x46a475(0x105)],{'type':_0x4d5d69['EmHRa'],'description':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)'})['option'](_0x46a475(0x11f),{'type':_0x46a475(0x17e),'description':'Scenario\x20index\x20(1-based)'})[_0x46a475(0x1d0)](_0x4d5d69['QrtAx'],{'type':_0x4d5d69[_0x46a475(0x1e1)],'hidden':!![]})[_0x46a475(0x1d0)]('notes',{'type':_0x46a475(0xb8),'hidden':!![]})[_0x46a475(0x1d0)](_0x46a475(0x9a),{'type':_0x4d5d69['RmogG'],'hidden':!![]})['option'](_0x46a475(0x102),{'type':_0x4d5d69['EmHRa'],'description':_0x4d5d69['KCJaS']})[_0x46a475(0x1d0)]('model',{'type':_0x4d5d69[_0x46a475(0x1e1)],'hidden':!![]})['option']('debug-outcome',{'type':_0x4d5d69['EmHRa'],'hidden':!![],'choices':[_0x4d5d69['IDwlB'],_0x4d5d69['jqNFy'],_0x4d5d69['BbUxw'],_0x4d5d69[_0x46a475(0x19e)],_0x4d5d69[_0x46a475(0x1ec)]]});},async _0x149bc1=>{const _0x24660b=_0x2cb639,_0x15a62e={'RatqR':function(_0x521b22,_0x3a6545,_0xf29ae2){return _0x521b22(_0x3a6545,_0xf29ae2);}};await _0x15a62e[_0x24660b(0x16e)](runGoCommand,_0x149bc1,!![]);})['command']('add\x20env\x20<env-name>',![],_0x287d27=>{const _0x294946=_0x2cb639,_0x392d12={'QqhDf':_0x294946(0x1a7),'dhguQ':_0x294946(0x1e3)};return _0x287d27[_0x294946(0x180)](_0x294946(0x14f),{'type':_0x294946(0xb8),'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x392d12['QqhDf'],'description':_0x294946(0x121),'default':![]})[_0x294946(0x1d0)]('skip-auth',{'type':_0x392d12['QqhDf'],'description':_0x392d12['dhguQ'],'default':![]});},async _0x415de6=>{const _0x1859ef=_0x2cb639,_0x4ef97c={'uRAxW':function(_0x13e5d7,_0x487e87,_0x4e1c39){return _0x13e5d7(_0x487e87,_0x4e1c39);},'XGQHU':'ranger\x20add\x20env','Ezjoa':'add\x20env'};_0x4ef97c[_0x1859ef(0x154)](warnRenamed,_0x4ef97c[_0x1859ef(0x9e)],_0x1859ef(0x123)),await withTelemetry(_0x4ef97c[_0x1859ef(0xd2)],_0x460083=>addEnv(_0x415de6['env-name'],{'ci':_0x415de6['ci'],'skipAuth':_0x415de6[_0x1859ef(0x124)]},_0x460083));})[_0x2cb639(0xd4)](_0x2cb639(0xd9),![],_0x482123=>{const _0x47b749=_0x2cb639,_0x3ed333={'SldGf':'env-name','GMgIt':_0x47b749(0xb8)};return _0x482123[_0x47b749(0x180)](_0x3ed333[_0x47b749(0x1bb)],{'type':_0x3ed333['GMgIt'],'description':_0x47b749(0x1d1),'demandOption':!![]});},async _0x414f09=>{const _0x2296c1=_0x2cb639,_0x182d42={'OhxDV':'ranger\x20use','KCjsO':'ranger\x20profile\x20use','pbvdz':_0x2296c1(0x147)};warnRenamed(_0x182d42[_0x2296c1(0x18c)],_0x182d42['KCjsO']),await withTelemetry(_0x182d42[_0x2296c1(0x1be)],()=>useEnv(_0x414f09[_0x2296c1(0x14f)]));})[_0x2cb639(0xd4)]('config',![],_0x16960f=>{const _0x461f04=_0x2cb639,_0x231777={'DACoP':_0x461f04(0xac),'PnouC':_0x461f04(0x1a4),'FTbOw':function(_0x15c045,_0x1fdde2,_0x2c4f9a){return _0x15c045(_0x1fdde2,_0x2c4f9a);},'RzouQ':_0x461f04(0x1dd),'gIzAR':'key','PJFKs':'string','jKdzg':'ranger\x20config\x20get','qyNcU':_0x461f04(0xb9),'wIgrI':'ranger\x20profile\x20config\x20list','ovvjW':'config\x20list','JcBxs':'env','uTyeL':_0x461f04(0x1bc),'yYaDh':'ranger\x20config\x20unset','SDALP':'ranger\x20profile\x20config\x20unset','cBPtW':function(_0x450afd,_0x2634bd,_0x435ca7){return _0x450afd(_0x2634bd,_0x435ca7);},'YkctT':'set\x20<env>\x20<key>\x20<value>','iaHxt':_0x461f04(0xe6),'UbCLS':_0x461f04(0xfd),'hqrAp':_0x461f04(0x15f)};return _0x16960f['command'](_0x231777[_0x461f04(0x184)],![],_0xe846bf=>{const _0x56f6c8=_0x461f04;return _0xe846bf[_0x56f6c8(0x180)]('env',{'type':'string','description':'Environment\x20name','demandOption':!![]})[_0x56f6c8(0x180)](_0x56f6c8(0xe9),{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x56f6c8(0x180)](_0x56f6c8(0x120),{'type':_0x56f6c8(0xb8),'description':_0x56f6c8(0x1ce),'demandOption':!![]});},async _0x20ee2d=>{const _0x4301a7=_0x461f04;warnRenamed(_0x231777[_0x4301a7(0xb2)],_0x231777[_0x4301a7(0x115)]),await _0x231777[_0x4301a7(0x169)](withTelemetry,_0x231777['RzouQ'],()=>configSet(_0x20ee2d[_0x4301a7(0x155)],_0x20ee2d[_0x4301a7(0xe9)],_0x20ee2d[_0x4301a7(0x120)]));})['command'](_0x231777[_0x461f04(0x1de)],![],_0x3c738a=>{const _0x1536dd=_0x461f04;return _0x3c738a['positional'](_0x1536dd(0x155),{'type':'string','description':_0x1536dd(0xb9),'demandOption':!![]})[_0x1536dd(0x180)](_0x231777['gIzAR'],{'type':_0x231777[_0x1536dd(0x13c)],'description':_0x1536dd(0x1c0),'demandOption':!![]});},async _0x2da201=>{warnRenamed(_0x231777['jKdzg'],'ranger\x20profile\x20config\x20get'),await _0x231777['FTbOw'](withTelemetry,'config\x20get',()=>configGet(_0x2da201['env'],_0x2da201['key']));})[_0x461f04(0xd4)](_0x231777[_0x461f04(0x168)],![],_0x4fdd10=>{const _0x2b8719=_0x461f04;return _0x4fdd10[_0x2b8719(0x180)]('env',{'type':_0x231777[_0x2b8719(0x13c)],'description':_0x231777[_0x2b8719(0x118)],'demandOption':!![]});},async _0x4c3f8f=>{const _0x42cabe=_0x461f04;warnRenamed('ranger\x20config\x20list',_0x231777['wIgrI']),await _0x231777['FTbOw'](withTelemetry,_0x231777[_0x42cabe(0x174)],()=>configList(_0x4c3f8f[_0x42cabe(0x155)]));})['command']('unset\x20<env>\x20<key>',![],_0x488da4=>{const _0x5f569d=_0x461f04;return _0x488da4[_0x5f569d(0x180)](_0x231777[_0x5f569d(0x1e6)],{'type':_0x5f569d(0xb8),'description':_0x231777[_0x5f569d(0x118)],'demandOption':!![]})['positional'](_0x231777['gIzAR'],{'type':_0x5f569d(0xb8),'description':_0x231777[_0x5f569d(0x116)],'demandOption':!![]});},async _0x24ca19=>{const _0x46ae88=_0x461f04;warnRenamed(_0x231777['yYaDh'],_0x231777['SDALP']),await _0x231777['cBPtW'](withTelemetry,_0x46ae88(0x14a),()=>configUnset(_0x24ca19[_0x46ae88(0x155)],_0x24ca19[_0x46ae88(0xe9)]));})[_0x461f04(0x134)](0x1,_0x231777[_0x461f04(0x1e9)]);})[_0x2cb639(0xd4)](_0x2cb639(0x155),![],_0x606efa=>{const _0x4aceda=_0x2cb639,_0x126206={'qVuyg':_0x4aceda(0x156),'EwvuI':function(_0x3f1802,_0x488435,_0x4e0fad){return _0x3f1802(_0x488435,_0x4e0fad);},'xTMRp':_0x4aceda(0xb8),'RNlMZ':'Name\x20of\x20the\x20environment\x20to\x20update','znrMJ':'update\x20<env-name>','XzuVS':_0x4aceda(0x150)};return _0x606efa['command']('ls',![],()=>{},async()=>{const _0xbbe1b=_0x4aceda;warnRenamed(_0x126206[_0xbbe1b(0xb6)],_0xbbe1b(0x122)),await _0x126206['EwvuI'](withTelemetry,_0xbbe1b(0x1da),()=>envList());})['command'](_0x126206[_0x4aceda(0x140)],![],_0x56e0ea=>{const _0x216e6c=_0x4aceda;return _0x56e0ea['positional']('env-name',{'type':_0x126206[_0x216e6c(0x13f)],'description':_0x126206[_0x216e6c(0x1a6)],'demandOption':!![]});},async _0x4615b6=>{const _0x4b07db=_0x4aceda;warnRenamed('ranger\x20env\x20update','ranger\x20profile\x20update'),await _0x126206[_0x4b07db(0x170)](withTelemetry,_0x4b07db(0xe8),_0x4d62bd=>updateEnv(_0x4615b6[_0x4b07db(0x14f)],_0x4d62bd));})[_0x4aceda(0x134)](0x1,_0x126206[_0x4aceda(0x128)]);})['command'](_0x2cb639(0xd5),![],_0x5c239b=>{const _0x224ff3=_0x2cb639,_0x600678={'xcDvm':_0x224ff3(0x1b7),'HRAWT':'string','ITvNT':_0x224ff3(0x1a9),'cBblt':'ranger\x20create','VjpLz':function(_0x215835,_0x369a08,_0x449f64,_0x42bea5){return _0x215835(_0x369a08,_0x449f64,_0x42bea5);},'RbBAx':'feature\x20create','FpivW':_0x224ff3(0x171),'iYNpu':_0x224ff3(0x17e),'gopLK':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','BVwbx':'include-deleted','bHYYg':_0x224ff3(0x1a7),'eoOWy':'Include\x20soft-deleted\x20feature\x20reviews','JECug':function(_0x34cd26,_0xcb29c5,_0x294bd5){return _0x34cd26(_0xcb29c5,_0x294bd5);},'FklOW':_0x224ff3(0xc2),'hGFHb':_0x224ff3(0x10f),'hkmsm':'ranger\x20show','Xykfs':'feature\x20show','IiCMj':_0x224ff3(0x161),'wTDeS':'Scenario\x20description','pwgNF':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','qfFEa':'ranger\x20feature\x20add-checklist-item','TweVT':_0x224ff3(0xbd),'lEPYt':_0x224ff3(0x16f),'MFBnP':function(_0x389c6e,_0x4c610c,_0x3663ed){return _0x389c6e(_0x4c610c,_0x3663ed);},'HWGio':function(_0x2f0399,_0x5261af,_0x777753){return _0x2f0399(_0x5261af,_0x777753);},'zRptW':'ranger\x20delete','wZSfV':'feature\x20delete','UrHGJ':'ranger\x20feature\x20restore','OxHKC':'show\x20[id]','eDWqU':'resume\x20[id]','MkGPU':_0x224ff3(0x129),'mBivl':'restore\x20<id>','duLZf':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x5c239b[_0x224ff3(0xd4)]('create\x20<name>',![],_0x535c71=>{const _0x5f59a3=_0x224ff3;return _0x535c71['positional'](_0x5f59a3(0x107),{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})[_0x5f59a3(0x1d0)](_0x600678[_0x5f59a3(0xa2)],{'type':_0x600678['HRAWT'],'alias':'d','description':_0x5f59a3(0x1c4)})[_0x5f59a3(0x1d0)](_0x5f59a3(0xa3),{'type':_0x600678[_0x5f59a3(0xef)],'alias':'c','description':_0x5f59a3(0x158)})['option']('scenario',{'type':_0x600678[_0x5f59a3(0xef)],'hidden':!![]});},async _0x32890d=>{const _0x35f974=_0x224ff3;warnRenamed(_0x35f974(0xad),_0x600678['cBblt']),_0x600678['VjpLz'](warnFlagRenamed,_0x35f974(0xb7),'--checklist','--scenario');const _0x40736a=_0x32890d[_0x35f974(0x9a)]||_0x32890d[_0x35f974(0xa3)];await withTelemetry(_0x600678['RbBAx'],()=>featureCreate(_0x32890d[_0x35f974(0x107)],{'description':_0x32890d[_0x35f974(0x1b7)],'scenarios':_0x40736a}));})[_0x224ff3(0xd4)]('list',![],_0x42b134=>{const _0x5ca26d=_0x224ff3;return _0x42b134[_0x5ca26d(0x1d0)](_0x600678['FpivW'],{'type':_0x5ca26d(0x1a7),'description':_0x5ca26d(0x160)})[_0x5ca26d(0x1d0)]('limit',{'type':_0x600678['iYNpu'],'alias':'l','description':_0x600678['gopLK'],'default':0xa})['option']('offset',{'type':_0x600678['iYNpu'],'alias':'o','description':_0x5ca26d(0xab),'default':0x0})['option'](_0x600678['BVwbx'],{'type':_0x600678['bHYYg'],'alias':'d','description':_0x600678['eoOWy'],'default':![]});},async _0x5466ba=>{const _0x2e8451=_0x224ff3;_0x600678['JECug'](warnRenamed,'ranger\x20feature\x20list','ranger\x20list'),await _0x600678['JECug'](withTelemetry,_0x600678[_0x2e8451(0xf7)],()=>featureList({'currentBranch':_0x5466ba[_0x2e8451(0x171)],'limit':_0x5466ba['limit'],'offset':_0x5466ba['offset'],'includeDeleted':_0x5466ba['include-deleted']}));})['command'](_0x600678[_0x224ff3(0xb5)],![],_0x29222e=>{const _0x392bd3=_0x224ff3;return _0x29222e['positional']('id',{'type':'string','description':_0x392bd3(0x1cc)});},async _0x4eb255=>{const _0x20f8b8=_0x224ff3;warnRenamed(_0x600678[_0x20f8b8(0x126)],_0x600678['hkmsm']),await _0x600678['JECug'](withTelemetry,_0x600678['Xykfs'],()=>featureShow(_0x4eb255['id']));})[_0x224ff3(0xd4)](_0x600678['eDWqU'],![],_0x119499=>{const _0x176ba9=_0x224ff3;return _0x119499['positional']('id',{'type':_0x600678[_0x176ba9(0x113)],'description':_0x600678[_0x176ba9(0x1b8)]});},async _0x299cce=>{const _0x5016c4=_0x224ff3;warnRenamed(_0x5016c4(0x16d),_0x5016c4(0x110)),await withTelemetry(_0x5016c4(0x1d6),()=>featureResume(_0x299cce['id']));})[_0x224ff3(0xd4)]('add-checklist-item\x20<description>',![],_0xe9c20e=>{const _0x10a0ac=_0x224ff3;return _0xe9c20e['positional']('description',{'type':'string','description':_0x600678['wTDeS'],'demandOption':!![]})[_0x10a0ac(0x1d0)]('id',{'type':_0x600678['HRAWT'],'description':_0x600678['pwgNF']});},async _0x1aff31=>{const _0x2943cc=_0x224ff3;warnRenamed(_0x600678[_0x2943cc(0xea)],'ranger\x20add-scenario'),await withTelemetry(_0x600678['TweVT'],()=>featureAddScenario(_0x1aff31['description'],_0x1aff31['id']));})[_0x224ff3(0xd4)](_0x600678[_0x224ff3(0xc8)],![],_0x4134e4=>{return _0x4134e4['positional']('id',{'type':_0x600678['HRAWT'],'description':_0x600678['pwgNF']});},async _0x50427c=>{const _0x272596=_0x224ff3;_0x600678['JECug'](warnRenamed,_0x600678['lEPYt'],_0x272596(0x119)),await _0x600678[_0x272596(0xec)](withTelemetry,_0x272596(0x100),()=>featureGetReview(_0x50427c['id']));})[_0x224ff3(0xd4)](_0x224ff3(0x131),![],_0x1fb72c=>{const _0x248775=_0x224ff3;return _0x1fb72c['positional']('id',{'type':'string','description':_0x248775(0x1cc)});},async _0x21ed11=>{const _0xbaddd1=_0x224ff3;_0x600678[_0xbaddd1(0xe4)](warnRenamed,'ranger\x20feature\x20delete',_0x600678['zRptW']),await withTelemetry(_0x600678[_0xbaddd1(0x18e)],()=>featureDelete(_0x21ed11['id']));})['command'](_0x600678[_0x224ff3(0x13d)],![],_0x1a3bcb=>{const _0x154829=_0x224ff3;return _0x1a3bcb[_0x154829(0x180)]('id',{'type':_0x600678[_0x154829(0x113)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x489782=>{const _0x8b41a8=_0x224ff3;_0x600678[_0x8b41a8(0xec)](warnRenamed,_0x600678[_0x8b41a8(0x1b1)],_0x8b41a8(0x172)),await withTelemetry(_0x8b41a8(0x186),()=>featureRestore(_0x489782['id']));})['demandCommand'](0x1,_0x600678['duLZf']);})[_0x2cb639(0xd4)](_0x2cb639(0xf5),![],_0x1eb1ce=>{const _0x3acfcf=_0x2cb639,_0x1282ae={'mxmdF':'session-id','EWXnH':'string','qJFPQ':_0x3acfcf(0xba),'kWJRr':function(_0x51b809,_0x564c88,_0x2fa071){return _0x51b809(_0x564c88,_0x2fa071);},'nrfzv':_0x3acfcf(0x9c),'UOOTr':_0x3acfcf(0xbf),'dNVOg':_0x3acfcf(0x153),'DhaVJ':_0x3acfcf(0x107),'pfUTe':_0x3acfcf(0xc9),'NnHEM':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'};return _0x1eb1ce[_0x3acfcf(0xd4)](_0x1282ae[_0x3acfcf(0x112)],'Enable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x24ed58=>{const _0x571d5f=_0x3acfcf;return _0x24ed58['option'](_0x1282ae['mxmdF'],{'type':_0x1282ae['EWXnH'],'description':_0x571d5f(0x1b2)});},async _0x247e75=>{const _0x52c19a=_0x3acfcf;await withTelemetry(_0x1282ae['qJFPQ'],()=>hook(_0x52c19a(0xbf),_0x247e75[_0x52c19a(0x13a)]));})[_0x3acfcf(0xd4)]('disable',_0x1282ae['dNVOg'],_0x53b954=>{const _0x230816=_0x3acfcf;return _0x53b954['option'](_0x1282ae[_0x230816(0xf4)],{'type':_0x1282ae['EWXnH'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x851e16=>{const _0x7a05e7=_0x3acfcf;await _0x1282ae[_0x7a05e7(0x1a8)](withTelemetry,_0x1282ae[_0x7a05e7(0xf9)],()=>hook(_0x7a05e7(0x1c9),_0x851e16['session-id']));})['option'](_0x1282ae[_0x3acfcf(0x176)],{'type':_0x1282ae[_0x3acfcf(0x1bd)],'description':_0x1282ae[_0x3acfcf(0x10a)]})['option']('session-id',{'type':'string','description':_0x1282ae['NnHEM']});},async _0x21f969=>{const _0x2778af=_0x2cb639,_0x4b6050={'sCqyj':function(_0x4c7a57,_0x245a41,_0x2bcba3){return _0x4c7a57(_0x245a41,_0x2bcba3);},'Tlpkp':_0x2778af(0x13a)};_0x21f969[_0x2778af(0x107)]&&await _0x4b6050[_0x2778af(0x1b5)](hook,_0x21f969['name'],_0x21f969[_0x4b6050[_0x2778af(0xfa)]]);})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()['fail'](async(_0x35d7b7,_0x50dc2f,_0x9fbdba)=>{const _0x5a79b5=_0x2cb639,_0x54dd94={'okRuh':function(_0x26e997,_0x62958e){return _0x26e997(_0x62958e);},'uCclQ':function(_0x4e1cea,_0x1bcae2,_0x3d26cc){return _0x4e1cea(_0x1bcae2,_0x3d26cc);},'eOleg':_0x5a79b5(0xfc),'HGpzY':function(_0x1cbb38){return _0x1cbb38();}},_0x28aa8c=_0x54dd94['okRuh'](sanitizeArgs,process['argv'][_0x5a79b5(0x13b)](0x2)),_0x2ec797=_0x54dd94[_0x5a79b5(0x183)](getErrorType,_0x35d7b7,_0x50dc2f);if(_0x35d7b7&&_0x35d7b7[_0x5a79b5(0x1b0)](_0x54dd94['eOleg'])){const _0x3996b0=process['argv'][0x2];console[_0x5a79b5(0xcd)]('\x0aUnknown\x20command:\x20'+_0x3996b0),console[_0x5a79b5(0xcd)](_0x5a79b5(0x166));}else{if(_0x35d7b7)console[_0x5a79b5(0xcd)]('\x0a'+_0x35d7b7+'\x0a');else _0x50dc2f&&console[_0x5a79b5(0xcd)](_0x5a79b5(0x1c5)+_0x50dc2f[_0x5a79b5(0x138)]+'\x0a');}await _0x54dd94['okRuh'](logDesirePath,{'rawCommand':_0x28aa8c,'errorMessage':_0x35d7b7||_0x50dc2f?.['message'],'errorType':_0x2ec797});const _0x2e87ee=_0x54dd94[_0x5a79b5(0xf6)](getCurrentCollector);_0x2e87ee&&await _0x2e87ee['trackCommandError'](_0x50dc2f||new Error(_0x35d7b7||_0x5a79b5(0xe3))),process[_0x5a79b5(0x139)](0x1);})['epilogue']('Documentation:\x0a'+_0x2cb639(0x167)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()[_0x2cb639(0xca)]('help','h')['parse']();
|
|
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)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1492f7,_0x527dd8){const _0x5eba6a=_0x5e00,_0x4ce1ab=_0x1492f7();while(!![]){try{const _0x5f151e=parseInt(_0x5eba6a(0xa0))/0x1+parseInt(_0x5eba6a(0xb6))/0x2+-parseInt(_0x5eba6a(0xd2))/0x3+parseInt(_0x5eba6a(0xdf))/0x4*(-parseInt(_0x5eba6a(0xc0))/0x5)+-parseInt(_0x5eba6a(0x8b))/0x6*(-parseInt(_0x5eba6a(0xc9))/0x7)+parseInt(_0x5eba6a(0xd0))/0x8*(-parseInt(_0x5eba6a(0xb0))/0x9)+-parseInt(_0x5eba6a(0x86))/0xa;if(_0x5f151e===_0x527dd8)break;else _0x4ce1ab['push'](_0x4ce1ab['shift']());}catch(_0x1e9618){_0x4ce1ab['push'](_0x4ce1ab['shift']());}}}(_0x46b7,0x1e75a));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x4391fa 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';function _0x46b7(){const _0x4c6943=['\x20(continuing\x20with\x20--force)','Continue\x20anyway','.tmp-','aECit','HTTP\x20','8ZStExb','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','\x20would\x20shadow\x20the\x20existing\x20profile.','KPOig','TrMmF','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','1368710AoItjY','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','error','\x22\x20configured','Saving\x20authentication\x20state...','6KhuAGA','Delete\x20existing\x20and\x20create\x20new\x20in\x20','ErGFb','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','use_suggestion','xfYwK','now','\x20\x20Set\x20active\x20profile:\x20','manual','โ\x20Auth\x20state\x20saved\x20to:\x20','\x22\x20already\x20exists.\x20Overwrite?','launch','overwrite','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','MpVeg','signal','lVGKD','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','Removed\x20existing\x20profile\x20at\x20','โ\x20Created\x20settings:\x20','close','65802XFlWSf','wnkOB','BGeOM','shouldReplace','Use\x20','jieoy','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','config_write','log','confirm','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','SJXmR','isTTY','http://localhost:3000','baseUrl','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','9MPYmty','โ \x20Could\x20not\x20reach\x20','cdpEndpoint','Enter\x20a\x20different\x20URL','goto','UdGKb','243134aPSQOY','Iehmp','xPCxP','YMIxa','trackPhaseEnd','skipAuth','jjeyy','kpFgD','\x0a๐\x20Authentication\x20Setup','browser_auth','42710spyqvR','\x0a๐\x20CDP\x20Profile\x20Setup\x0a','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','storageState','WuXWo','tsxgp','path','vDlpb','\x0a\x20\x20Could\x20not\x20reach\x20','1558578pbzEGV','EBKaZ','action','KzKxl','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','uvxai','url','590768gnqUld','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','172380MwImjZ','location','awoUV','.backup-','uwHpv','TypeError','\x20\x20Did\x20you\x20mean\x20','\x0aโ ๏ธ\x20\x20Profile\x20\x22'];_0x46b7=function(){return _0x4c6943;};return _0x46b7();}import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';function _0x5e00(_0x36ec3f,_0x5e808f){_0x36ec3f=_0x36ec3f-0x85;const _0x46b7cb=_0x46b7();let _0x5e0070=_0x46b7cb[_0x36ec3f];return _0x5e0070;}async function checkUrlReachability(_0x137738){const _0x249076=_0x5e00,_0x3cf89e={'yYLCr':function(_0x491176,_0x1a0e22,_0x24f627){return _0x491176(_0x1a0e22,_0x24f627);},'YMIxa':function(_0x41d08f,_0x4a59a9){return _0x41d08f<_0x4a59a9;},'oUDYZ':function(_0x4f221b,_0x3481aa){return _0x4f221b(_0x3481aa);},'AXLXG':'Invalid\x20URL','vDlpb':function(_0x5567c2,_0x43c582){return _0x5567c2===_0x43c582;},'jjeyy':'fetch\x20failed'};try{const _0x14d7ed=new AbortController(),_0x236ea0=_0x3cf89e['yYLCr'](setTimeout,()=>_0x14d7ed['abort'](),0x1388),_0x554bc1=await fetch(_0x137738,{'method':'HEAD','signal':_0x14d7ed[_0x249076(0x9a)],'redirect':_0x249076(0x93)});clearTimeout(_0x236ea0);if(_0x3cf89e[_0x249076(0xb9)](_0x554bc1['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x249076(0xde)+_0x554bc1['status']};}catch(_0x535ec3){const _0x20f6cf=_0x535ec3,_0x535847=_0x20f6cf['message']||_0x3cf89e['oUDYZ'](String,_0x535ec3),_0x242d1c=_0x535847['includes'](_0x3cf89e['AXLXG'])||_0x3cf89e[_0x249076(0xc7)](_0x20f6cf['name'],_0x249076(0xd7))||_0x535847['includes'](_0x3cf89e[_0x249076(0xbc)]);return{'ok':![],'error':_0x535847,'isProtocolError':_0x242d1c};}}export async function addEnv(_0xa6c0a1,_0x13d138={},_0x14f39c){const _0x42c884=_0x5e00,_0x4ace91={'TRWVs':_0x42c884(0x9f),'vbFSK':'local','MpVeg':function(_0x132adc,_0x481a6a,_0x3065aa,_0x3daf4d){return _0x132adc(_0x481a6a,_0x3065aa,_0x3daf4d);},'jLoJz':function(_0x4ff0f2,_0x2b12a8,_0x34dc28){return _0x4ff0f2(_0x2b12a8,_0x34dc28);},'rQYzq':function(_0x108297,_0x55fbc8){return _0x108297!==_0x55fbc8;},'xPCxP':function(_0x40a661,_0x5472dc){return _0x40a661===_0x5472dc;},'UdGKb':_0x42c884(0x8e),'SJXmR':_0x42c884(0xc2),'Iehmp':'--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.','SrPVx':function(_0x5bc3a8,_0x27ee87){return _0x5bc3a8(_0x27ee87);},'oqfMN':function(_0x452421,_0xafb873){return _0x452421===_0xafb873;},'aECit':_0x42c884(0xa9),'vTfNc':_0x42c884(0x97),'tsxgp':'Aborted.','BGeOM':function(_0x279519,_0x33047f){return _0x279519===_0x33047f;},'QVpeq':'legacy','uvxai':'root\x20(.ranger/)','lVGKD':'url_setup','WXLtv':_0x42c884(0xc1),'aOGrm':function(_0x2a7746,_0x4466d8){return _0x2a7746(_0x4466d8);},'KzKxl':'\x0a๐\x20Profile\x20Setup\x0a','xdXKf':'input','ZANAT':_0x42c884(0xae),'RkWrG':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','KcSif':function(_0xe7021d,_0x46591e){return _0xe7021d||_0x46591e;},'juQaI':_0x42c884(0xad),'uwHpv':function(_0x3f2918,_0x221bd7){return _0x3f2918(_0x221bd7);},'zbvNW':_0x42c884(0xcb),'pPHfL':_0x42c884(0xb3),'kpFgD':'retry','WuXWo':_0x42c884(0xdb),'eyVVG':function(_0x43a8ae,_0x41af9e){return _0x43a8ae(_0x41af9e);},'KPOig':_0x42c884(0xbf),'wnkOB':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','obtrO':_0x42c884(0x87),'jieoy':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','bAKIe':'about:blank','xfYwK':'utf-8','ErGFb':'.enc','awoUV':_0x42c884(0xaf),'tiKii':_0x42c884(0xa6),'TrMmF':'settings.json','EBKaZ':function(_0x3a7867,_0x1405b0,_0x1e20c4){return _0x3a7867(_0x1405b0,_0x1e20c4);},'DdnTy':'config_write'},_0xb44b8a=_0x13d138['ci']??![],_0x1a992a=_0xb44b8a?'ci':_0x4ace91['vbFSK'],_0x491c4d=_0x4ace91[_0x42c884(0x99)](join,getRangerDir(),_0x1a992a,_0xa6c0a1),_0x5a3886=_0x4ace91['jLoJz'](join,getRangerDir(),_0x1a992a);if(_0x4ace91['rQYzq'](_0x13d138['cdpEndpoint'],undefined)&&_0x4ace91[_0x42c884(0xb8)](_0x13d138[_0x42c884(0xb2)]['trim'](),''))throw new Error(_0x4ace91[_0x42c884(0xb5)]);if(_0x13d138['cdpEndpoint']&&_0x13d138['url'])throw new Error(_0x4ace91[_0x42c884(0xab)]);if(_0x13d138[_0x42c884(0xb2)]&&_0x13d138['ci'])throw new Error(_0x4ace91[_0x42c884(0xb7)]);const _0x21e31f=_0x4ace91['SrPVx'](Boolean,_0x13d138[_0x42c884(0xb2)]),_0x419e52=!_0x13d138[_0x42c884(0xbb)]&&!_0x21e31f,_0x378cc5=process['stdin'][_0x42c884(0xac)]&&process['stdout']['isTTY'];if(!_0x378cc5&&!_0x13d138['url']&&!_0x21e31f)throw new Error(_0x42c884(0xcd));const _0x42295d=findExistingEnv(_0xa6c0a1);let _0x356811=null;if(_0x42295d){if(!_0x378cc5)_0x356811=_0x42295d;else{if(_0x4ace91['oqfMN'](_0x42295d['location'],_0x1a992a)){const {overwrite:_0x49d5e7}=await _0x4391fa['prompt']([{'type':_0x4ace91['aECit'],'name':_0x4ace91['vTfNc'],'message':'Profile\x20\x22'+_0xa6c0a1+_0x42c884(0x95),'default':![]}]);if(!_0x49d5e7){console['log'](_0x4ace91[_0x42c884(0xc5)]);return;}_0x356811=_0x42295d;}else{const _0x3fd3ba=_0x4ace91[_0x42c884(0xa2)](_0x42295d['location'],_0x4ace91['QVpeq'])?_0x4ace91[_0x42c884(0xce)]:_0x42295d[_0x42c884(0xd3)];console['error'](_0x42c884(0xd9)+_0xa6c0a1+'\x22\x20already\x20exists\x20in\x20'+_0x3fd3ba+':\x20'+_0x42295d[_0x42c884(0xc6)]),console[_0x42c884(0x88)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0x1a992a+_0x42c884(0xe1));const {shouldReplace:_0x28009f}=await _0x4391fa['prompt']([{'type':_0x4ace91[_0x42c884(0xdd)],'name':_0x42c884(0xa3),'message':_0x42c884(0x8c)+_0x1a992a+'?','default':![]}]);if(!_0x28009f){console['log'](_0x4ace91[_0x42c884(0xc5)]);return;}_0x356811=_0x42295d;}}}_0x14f39c?.['trackPhaseStart'](_0x4ace91[_0x42c884(0x9b)]);let _0x1cb12c='';if(_0x21e31f)console['log'](_0x4ace91['WXLtv']),console['log'](_0x42c884(0xaa)+_0x13d138[_0x42c884(0xb2)]),console[_0x42c884(0xa8)](_0x42c884(0xd1));else{if(_0x13d138['url']){_0x1cb12c=_0x13d138[_0x42c884(0xcf)];const _0x13b5c7=await _0x4ace91['aOGrm'](checkUrlReachability,_0x1cb12c);if(!_0x13b5c7['ok']&&!_0x13d138['force'])throw new Error('Could\x20not\x20reach\x20'+_0x1cb12c+':\x20'+_0x13b5c7[_0x42c884(0x88)]+_0x42c884(0x85));!_0x13b5c7['ok']&&_0x13d138['force']&&console[_0x42c884(0xa8)](_0x42c884(0xb1)+_0x1cb12c+':\x20'+_0x13b5c7[_0x42c884(0x88)]+_0x42c884(0xda));}else{console['log'](_0x4ace91[_0x42c884(0xcc)]),console['log'](_0x42c884(0xe0)),console['log'](_0x42c884(0x98));let _0x279777=![];while(!![]){const _0x18d31a=await _0x4391fa['prompt']([{'type':_0x4ace91['xdXKf'],'name':_0x4ace91['ZANAT'],'message':_0x279777?_0x4ace91['RkWrG']:'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x4ace91['KcSif'](_0x1cb12c,_0x4ace91['juQaI'])}]);_0x1cb12c=_0x18d31a['baseUrl'];const _0x188d36=await _0x4ace91[_0x42c884(0xd6)](checkUrlReachability,_0x1cb12c);if(_0x188d36['ok'])break;const _0x219a18=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x1cb12c),_0x367a2f=_0x188d36['isProtocolError']&&!_0x219a18,_0x43cc97=_0x367a2f?'http://'+_0x1cb12c:null;_0x279777=!![],console[_0x42c884(0xa8)](_0x42c884(0xc8)+_0x1cb12c+':\x20'+_0x188d36[_0x42c884(0x88)]);_0x43cc97&&console['log'](_0x42c884(0xd8)+_0x43cc97+'?');const {action:_0x4493e0}=await _0x4391fa['prompt']([{'type':'list','name':_0x4ace91['zbvNW'],'message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x43cc97?[{'name':_0x42c884(0xa4)+_0x43cc97,'value':_0x42c884(0x8f)}]:[],{'name':_0x4ace91['pPHfL'],'value':_0x4ace91[_0x42c884(0xbd)]},{'name':_0x4ace91[_0x42c884(0xc4)],'value':'continue'}]}]);if(_0x4493e0===_0x42c884(0x8f)&&_0x43cc97){_0x1cb12c=_0x43cc97;const _0x5e501d=await _0x4ace91['eyVVG'](checkUrlReachability,_0x1cb12c);if(_0x5e501d['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x1cb12c+':\x20'+_0x5e501d[_0x42c884(0x88)]);}else{if(_0x4493e0==='continue')break;}}}}_0x14f39c?.['trackPhaseEnd']('url_setup'),await _0x4ace91['jLoJz'](mkdir,_0x5a3886,{'recursive':!![]});const _0x4b18ac=await mkdtemp(join(_0x5a3886,_0x42c884(0xdc)+_0xa6c0a1+'-')),_0x2758f8=join(_0x4b18ac,'auth.json');try{if(_0x419e52){_0x14f39c?.['trackPhaseStart'](_0x4ace91[_0x42c884(0xe2)]),console['log'](_0x42c884(0xbe)),console[_0x42c884(0xa8)](_0x4ace91[_0x42c884(0xa1)]),console['log'](_0x4ace91['obtrO']);!_0x378cc5?(console[_0x42c884(0xa8)]('\x0a\x20\x20\x20โ \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console[_0x42c884(0xa8)](_0x4ace91[_0x42c884(0xa5)])):console[_0x42c884(0xa8)]('');await new Promise(_0x5a832b=>setTimeout(_0x5a832b,0xbb8));const _0x18a093=await chromium[_0x42c884(0x96)]({'headless':![]});try{const _0x483b1c=await _0x18a093['newContext']();await addProfileSetupBanner(_0x483b1c);const _0x30bd4c=await _0x483b1c['newPage']();await _0x30bd4c[_0x42c884(0xb4)](_0x1cb12c||_0x4ace91['bAKIe']),await new Promise(_0x442585=>{_0x30bd4c['on'](_0x4ace91['TRWVs'],async()=>{const _0x4959c1=_0x5e00;try{console[_0x4959c1(0xa8)](_0x4959c1(0x8a)),await _0x483b1c[_0x4959c1(0xc3)]({'path':_0x2758f8});}catch{}_0x442585();});});}finally{await _0x18a093[_0x42c884(0x9f)]()['catch'](()=>{});}if(_0xb44b8a){const _0x23f6b2=await readFile(_0x2758f8,_0x4ace91[_0x42c884(0x90)]),_0x34b5f4=await getToken();if(!_0x34b5f4){console[_0x42c884(0x88)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await unlink(_0x2758f8)['catch'](()=>{});throw new Error(_0x42c884(0x9c));}else{const _0x3f7ce7=encrypt(_0x23f6b2,_0x34b5f4);await writeFile(_0x2758f8+_0x4ace91[_0x42c884(0x8d)],_0x3f7ce7),await unlink(_0x2758f8),console[_0x42c884(0xa8)]('โ\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x2758f8+'.enc'),console[_0x42c884(0xa8)](_0x4ace91[_0x42c884(0xd4)]),console[_0x42c884(0xa8)](_0x4ace91['tiKii']);}}else console[_0x42c884(0xa8)](_0x42c884(0x94)+_0x2758f8);_0x14f39c?.[_0x42c884(0xba)](_0x4ace91['KPOig']);}_0x14f39c?.['trackPhaseStart'](_0x42c884(0xa7));const _0x354052={};_0x1cb12c&&(_0x354052['baseUrl']=_0x1cb12c);_0x13d138[_0x42c884(0xb2)]&&(_0x354052['cdpEndpoint']=_0x13d138['cdpEndpoint'],_0x354052['isElectron']=!![]);await writeFile(join(_0x4b18ac,_0x4ace91[_0x42c884(0xe3)]),JSON['stringify'](_0x354052,null,0x2)),console[_0x42c884(0xa8)](_0x42c884(0x9e)+_0x4ace91['jLoJz'](join,_0x491c4d,_0x4ace91['TrMmF']));if(_0x356811?.['location']===_0x1a992a){const _0x172be9=_0x356811[_0x42c884(0xc6)]+_0x42c884(0xd5)+Date[_0x42c884(0x91)]();await _0x4ace91[_0x42c884(0xca)](rename,_0x356811[_0x42c884(0xc6)],_0x172be9);try{await rename(_0x4b18ac,_0x491c4d);}catch(_0x2f695a){await rename(_0x172be9,_0x356811[_0x42c884(0xc6)]);throw _0x2f695a;}try{await rm(_0x172be9,{'recursive':!![]});}catch{console[_0x42c884(0xa8)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x172be9);}}else{await rename(_0x4b18ac,_0x491c4d);if(_0x356811)try{await rm(_0x356811[_0x42c884(0xc6)],{'recursive':!![]}),console['log'](_0x42c884(0x9d)+_0x356811[_0x42c884(0xc6)]);}catch{console[_0x42c884(0xa8)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x356811[_0x42c884(0xc6)]);}}try{await writeActiveProfileName(_0xa6c0a1),console[_0x42c884(0xa8)](_0x42c884(0x92)+_0xa6c0a1);}catch{console[_0x42c884(0xa8)]('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}_0x14f39c?.['trackPhaseEnd'](_0x4ace91['DdnTy']),console['log']('\x0a\x20\x20Profile\x20\x22'+_0xa6c0a1+_0x42c884(0x89));}catch(_0x509032){await rm(_0x4b18ac,{'recursive':!![],'force':!![]});throw _0x509032;}}
|
|
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 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1de584,_0x255ba9){const _0x377a1d=_0x4038,_0x359d88=_0x1de584();while(!![]){try{const _0x1dd42e=-parseInt(_0x377a1d(0x1aa))/0x1+-parseInt(_0x377a1d(0x1a5))/0x2*(-parseInt(_0x377a1d(0x1a7))/0x3)+-parseInt(_0x377a1d(0x19e))/0x4+parseInt(_0x377a1d(0x1a8))/0x5+parseInt(_0x377a1d(0x19d))/0x6*(-parseInt(_0x377a1d(0x1a3))/0x7)+-parseInt(_0x377a1d(0x1ab))/0x8+parseInt(_0x377a1d(0x1a9))/0x9;if(_0x1dd42e===_0x255ba9)break;else _0x359d88['push'](_0x359d88['shift']());}catch(_0x53e637){_0x359d88['push'](_0x359d88['shift']());}}}(_0x5a93,0xdc692));function _0x5a93(){const _0x399aee=['1504528UaAgqK','log','No\x20auth.json\x20found\x20at\x20','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','\x0aโ\x20Encrypted\x20auth\x20saved\x20to:\x20','5866Hhiwob','Profile\x20\x22','145284kHDUTi','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','39TcTjlm','6353430JXqrwI','12737664BNdflb','267130mrppbk','11974608wNKJGU','.enc','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','4206GUAbNX'];_0x5a93=function(){return _0x399aee;};return _0x5a93();}import{readFile,writeFile}from'fs/promises';import{join}from'path';function _0x4038(_0x104467,_0x1b1262){_0x104467=_0x104467-0x19c;const _0x5a9332=_0x5a93();let _0x4038f1=_0x5a9332[_0x104467];return _0x4038f1;}import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x2c80c2){const _0x4de848=_0x4038,_0x4ae6ee={'RJSlH':function(_0x3ffa12,_0x23a522){return _0x3ffa12(_0x23a522);},'yvMvg':function(_0x4a5a64){return _0x4a5a64();},'oXZca':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','WoPwm':'utf-8','MmnsP':_0x4de848(0x1a6)},_0x1b3b46=_0x4ae6ee['RJSlH'](getEnvDir,_0x2c80c2),_0x248001=join(_0x1b3b46,'auth.json'),_0x4ab6ca=_0x248001+_0x4de848(0x1ac);if(!existsSync(_0x1b3b46))throw new Error(_0x4de848(0x1a4)+_0x2c80c2+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x2c80c2);if(!existsSync(_0x248001))throw new Error(_0x4de848(0x1a0)+_0x248001+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x3fc5fc=await _0x4ae6ee['yvMvg'](getToken);if(!_0x3fc5fc)throw new Error(_0x4ae6ee['oXZca']);const _0x2c833d=await readFile(_0x248001,_0x4ae6ee['WoPwm']),_0x1808c2=encrypt(_0x2c833d,_0x3fc5fc);await writeFile(_0x4ab6ca,_0x1808c2),console['log'](_0x4de848(0x1a2)+_0x4ab6ca),console[_0x4de848(0x19f)](_0x4ae6ee['MmnsP']),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'),existsSync(_0x4ab6ca)&&(console['log'](_0x4de848(0x1a1)),console['log'](_0x4de848(0x19c)));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3cf572=_0x5b7c;(function(_0x43d314,_0x4b2274){const _0x139e2a=_0x5b7c,_0x43c78e=_0x43d314();while(!![]){try{const _0x3a11d4=-parseInt(_0x139e2a(0x1e6))/0x1*(-parseInt(_0x139e2a(0x1d6))/0x2)+parseInt(_0x139e2a(0x1db))/0x3*(parseInt(_0x139e2a(0x1b7))/0x4)+-parseInt(_0x139e2a(0x1c9))/0x5+parseInt(_0x139e2a(0x1bf))/0x6*(-parseInt(_0x139e2a(0x1d2))/0x7)+parseInt(_0x139e2a(0x1cd))/0x8*(-parseInt(_0x139e2a(0x1dc))/0x9)+parseInt(_0x139e2a(0x1ec))/0xa*(-parseInt(_0x139e2a(0x1e4))/0xb)+parseInt(_0x139e2a(0x1eb))/0xc*(parseInt(_0x139e2a(0x1ed))/0xd);if(_0x3a11d4===_0x4b2274)break;else _0x43c78e['push'](_0x43c78e['shift']());}catch(_0xf13797){_0x43c78e['push'](_0x43c78e['shift']());}}}(_0xe595,0x849fe));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';function _0xe595(){const _0x3d6c22=['โ\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','zDRiG','lqPLY','18599tvDxDI','pipe','remove','DvkwF','2YKTrRg','push','TzlpV','error','\x0aโ
\x20Cleanup\x20complete!\x0a','1470cZIHSI','67500nDYwgY','trailhead','YLamm','tarKl','KjzYR','DanRt','feature-tracker','BrMSO','473YMqWbQ','xOQVI','25827grltZg','Cfvqb','hrVBH','โ\x20Removed\x20OpenCode\x20user\x20skill:\x20','FLvqj','5713656dzFvRp','102820NIngOz','39PPpEQW','plugin','1252PfQHvl','--scope','IurVF','plmJJ','uninstall','close','project','win32','816bXRkIz','log','โ\x20Removed\x20project\x20skill:\x20','length','ycIRe','โ\x20Removed\x20stored\x20credentials','EMZHx','claude','ranger@trailhead','ranger','929515GJriBJ','replace','hFAWC','Nothing\x20to\x20clean\x20up.\x0a','80UOZOxZ','parse'];_0xe595=function(){return _0x3d6c22;};return _0xe595();}import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';function _0x5b7c(_0xb6f35,_0x2d43e8){_0xb6f35=_0xb6f35-0x1b7;const _0xe5951b=_0xe595();let _0x5b7c00=_0xe5951b[_0xb6f35];return _0x5b7c00;}const skillsToRemove=[_0x3cf572(0x1c8),_0x3cf572(0x1e2),'bug-bash','e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x2f1059){const _0xdebdde=_0x3cf572,_0x5671a5=_0x2f1059['replace'](/\/\*[\s\S]*?\*\//g,''),_0x128471=_0x5671a5[_0xdebdde(0x1ca)](/^\s*\/\/.*$/gm,''),_0x1cfd41=_0x128471[_0xdebdde(0x1ca)](/,\s*([}\]])/g,'$1');return JSON[_0xdebdde(0x1ce)](_0x1cfd41);}async function removeOpencodePluginConfig(_0x1e0012){const _0x4cc472=_0x3cf572,_0x140202={'RPbgS':function(_0x4f83b0,_0xe2b6e1){return _0x4f83b0!==_0xe2b6e1;},'BneXf':'string','LFArK':function(_0x4cb8a8,_0x112c37){return _0x4cb8a8(_0x112c37);},'IurVF':function(_0x3c3a83,_0x3ab4f1){return _0x3c3a83===_0x3ab4f1;},'zDRiG':function(_0x416388,_0x4f7f01,_0x477888){return _0x416388(_0x4f7f01,_0x477888);}};if(!_0x140202['LFArK'](existsSync,_0x1e0012))return![];let _0x57a8b8;try{const _0x3232cd=await readFile(_0x1e0012,'utf-8');_0x57a8b8=parseJsonc(_0x3232cd);}catch{return![];}const _0x4d256f=Array['isArray'](_0x57a8b8[_0x4cc472(0x1ee)])?_0x57a8b8['plugin']:[];if(_0x4d256f['length']===0x0)return![];const _0x30c1f2=_0x4d256f['filter'](_0x1bbf2d=>{if(_0x140202['RPbgS'](typeof _0x1bbf2d,_0x140202['BneXf']))return!![];return _0x1bbf2d!==opencodePluginName;});if(_0x140202['IurVF'](_0x30c1f2[_0x4cc472(0x1c2)],_0x4d256f[_0x4cc472(0x1c2)]))return![];return _0x140202[_0x4cc472(0x1b9)](_0x30c1f2['length'],0x0)?delete _0x57a8b8['plugin']:_0x57a8b8['plugin']=_0x30c1f2,await _0x140202[_0x4cc472(0x1d0)](writeFile,_0x1e0012,JSON['stringify'](_0x57a8b8,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x56cecf){const _0xf0df91=_0x3cf572,_0x354ee9={'eMMjE':function(_0x457aa9,_0x36f89a){return _0x457aa9(_0x36f89a);},'FLvqj':_0xf0df91(0x1c7),'PofFK':_0xf0df91(0x1c6),'zVtWm':_0xf0df91(0x1d3),'hrVBH':'win32','SfpAU':_0xf0df91(0x1bc)};return new Promise(_0x2904d5=>{const _0x42c2f6=_0xf0df91,_0x1c4000=[_0x42c2f6(0x1ee),_0x42c2f6(0x1bb),_0x354ee9[_0x42c2f6(0x1ea)]];_0x56cecf&&_0x1c4000[_0x42c2f6(0x1d7)](_0x42c2f6(0x1b8),_0x56cecf);const _0x4e64a0=spawn(_0x354ee9['PofFK'],_0x1c4000,{'stdio':_0x354ee9['zVtWm'],'shell':process['platform']===_0x354ee9[_0x42c2f6(0x1e8)]});_0x4e64a0['on'](_0x354ee9['SfpAU'],_0x8845e7=>{_0x2904d5(_0x8845e7===0x0);}),_0x4e64a0['on'](_0x42c2f6(0x1d9),()=>{_0x354ee9['eMMjE'](_0x2904d5,![]);});});}async function removeMarketplace(){const _0x4da458=_0x3cf572,_0x35f3f5={'GLzxA':function(_0x14dc1c,_0x1abb68,_0x485fef,_0x2babcb){return _0x14dc1c(_0x1abb68,_0x485fef,_0x2babcb);},'zlhwx':'claude','DanRt':_0x4da458(0x1ee),'EFPpY':'marketplace','wNewC':_0x4da458(0x1d4),'PxVjx':'pipe','LdKIs':function(_0x3febf3,_0xb5aaea){return _0x3febf3===_0xb5aaea;},'ycIRe':_0x4da458(0x1be),'QrNcD':'error'};return new Promise(_0x50fff8=>{const _0x22b2ea=_0x4da458,_0x232235={'DvkwF':function(_0x154bb0,_0x390c75){return _0x154bb0(_0x390c75);},'DgEqi':function(_0x4a255e,_0x23d93c){return _0x4a255e===_0x23d93c;}},_0xf567c=_0x35f3f5['GLzxA'](spawn,_0x35f3f5['zlhwx'],[_0x35f3f5[_0x22b2ea(0x1e1)],_0x35f3f5['EFPpY'],_0x35f3f5['wNewC'],_0x22b2ea(0x1dd)],{'stdio':_0x35f3f5['PxVjx'],'shell':_0x35f3f5['LdKIs'](process['platform'],_0x35f3f5[_0x22b2ea(0x1c3)])});_0xf567c['on']('close',_0x15defc=>{const _0x69fb56=_0x22b2ea;_0x232235[_0x69fb56(0x1d5)](_0x50fff8,_0x232235['DgEqi'](_0x15defc,0x0));}),_0xf567c['on'](_0x35f3f5['QrNcD'],()=>{_0x50fff8(![]);});});}export async function clean(){const _0x2ef75c=_0x3cf572,_0x33ba02={'YLamm':function(_0x939f0c){return _0x939f0c();},'tarKl':_0x2ef75c(0x1c4),'TzlpV':function(_0x35b193,_0x223e47){return _0x35b193(_0x223e47);},'eEijo':function(_0x54d1ca){return _0x54d1ca();},'KjzYR':function(_0x28d53b,_0x561651,_0x5af9ee){return _0x28d53b(_0x561651,_0x5af9ee);},'TyxeZ':function(_0x582dfd){return _0x582dfd();},'EMZHx':function(_0x3ec2d1,_0x1a4ea2,_0x18a09c){return _0x3ec2d1(_0x1a4ea2,_0x18a09c);},'BrMSO':'user','plmJJ':function(_0x424ae,_0x28be97,_0x2243ec){return _0x424ae(_0x28be97,_0x2243ec);},'lqPLY':_0x2ef75c(0x1bd),'hFAWC':'โ\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','Cfvqb':'opencode.json','ksFSj':_0x2ef75c(0x1cf),'xOQVI':_0x2ef75c(0x1da)};console[_0x2ef75c(0x1c0)]('\x0a๐งน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x383c7a=![];try{await _0x33ba02[_0x2ef75c(0x1de)](deleteAllCredentials),console[_0x2ef75c(0x1c0)](_0x33ba02[_0x2ef75c(0x1df)]),_0x383c7a=!![];}catch{}const _0x113199=getCacheFile();existsSync(_0x113199)&&(await _0x33ba02[_0x2ef75c(0x1d8)](rm,_0x113199),_0x383c7a=!![]);const _0x4a6a4c=_0x33ba02['eEijo'](getRangerDir);_0x33ba02['TzlpV'](existsSync,_0x4a6a4c)&&(await _0x33ba02['KjzYR'](rm,_0x4a6a4c,{'recursive':!![]}),console['log']('โ\x20Removed\x20.ranger/\x20directory'),_0x383c7a=!![]);const _0xf2711d=_0x33ba02['TyxeZ'](getProjectSkillsDir);for(const _0x4b7c76 of skillsToRemove){const _0x1274f7=join(_0xf2711d,_0x4b7c76);existsSync(_0x1274f7)&&(await rm(_0x1274f7,{'recursive':!![]}),console['log'](_0x2ef75c(0x1c1)+_0x4b7c76),_0x383c7a=!![]);}const _0x130083=getUserSkillsDir();for(const _0x5b63d6 of skillsToRemove){const _0x1880f4=_0x33ba02[_0x2ef75c(0x1e0)](join,_0x130083,_0x5b63d6);existsSync(_0x1880f4)&&(await rm(_0x1880f4,{'recursive':!![]}),console['log']('โ\x20Removed\x20user\x20skill:\x20'+_0x5b63d6),_0x383c7a=!![]);}const _0x308d0c=_0x33ba02[_0x2ef75c(0x1d8)](getOpencodeSkillsDir,'project');for(const _0x4b5320 of skillsToRemove){const _0x55891d=join(_0x308d0c,_0x4b5320);_0x33ba02['TzlpV'](existsSync,_0x55891d)&&(await _0x33ba02[_0x2ef75c(0x1c5)](rm,_0x55891d,{'recursive':!![]}),console[_0x2ef75c(0x1c0)]('โ\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x4b5320),_0x383c7a=!![]);}const _0x2fba78=_0x33ba02[_0x2ef75c(0x1d8)](getOpencodeSkillsDir,_0x33ba02[_0x2ef75c(0x1e3)]);for(const _0x420126 of skillsToRemove){const _0x11f15c=_0x33ba02[_0x2ef75c(0x1ba)](join,_0x2fba78,_0x420126);existsSync(_0x11f15c)&&(await rm(_0x11f15c,{'recursive':!![]}),console[_0x2ef75c(0x1c0)](_0x2ef75c(0x1e9)+_0x420126),_0x383c7a=!![]);}const _0x2a8e03=join(getOpencodeConfigDir(_0x33ba02[_0x2ef75c(0x1d1)]),'opencode.json');await _0x33ba02['TzlpV'](removeOpencodePluginConfig,_0x2a8e03)&&(console[_0x2ef75c(0x1c0)](_0x33ba02[_0x2ef75c(0x1cb)]),_0x383c7a=!![]);const _0x1c7a54=join(getOpencodeConfigDir(_0x33ba02['BrMSO']),_0x33ba02[_0x2ef75c(0x1e7)]);await removeOpencodePluginConfig(_0x1c7a54)&&(console[_0x2ef75c(0x1c0)](_0x33ba02['ksFSj']),_0x383c7a=!![]);const _0x3f9df2=await _0x33ba02['eEijo'](uninstallClaudePlugin);_0x3f9df2&&(console[_0x2ef75c(0x1c0)]('โ\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x383c7a=!![]);const _0xfc3dcb=await uninstallClaudePlugin(_0x33ba02['lqPLY']);_0xfc3dcb&&(console['log']('โ\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x383c7a=!![]);const _0x5aefbc=await removeMarketplace();_0x5aefbc&&(console[_0x2ef75c(0x1c0)]('โ\x20Removed\x20trailhead\x20marketplace'),_0x383c7a=!![]),_0x383c7a?console[_0x2ef75c(0x1c0)](_0x33ba02[_0x2ef75c(0x1e5)]):console['log'](_0x2ef75c(0x1cc));}
|
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3c2f48=_0x4aa9;(function(_0x5b6f44,_0x101301){const _0x28101e=_0x4aa9,_0x17fd32=_0x5b6f44();while(!![]){try{const _0x562f33=parseInt(_0x28101e(0xe2))/0x1+parseInt(_0x28101e(0xd6))/0x2*(parseInt(_0x28101e(0xcf))/0x3)+-parseInt(_0x28101e(0xd2))/0x4+-parseInt(_0x28101e(0xc8))/0x5*(-parseInt(_0x28101e(0xce))/0x6)+parseInt(_0x28101e(0xd8))/0x7+parseInt(_0x28101e(0xe3))/0x8*(parseInt(_0x28101e(0xd9))/0x9)+-parseInt(_0x28101e(0xd5))/0xa*(parseInt(_0x28101e(0xcc))/0xb);if(_0x562f33===_0x101301)break;else _0x17fd32['push'](_0x17fd32['shift']());}catch(_0x10f516){_0x17fd32['push'](_0x17fd32['shift']());}}}(_0x71f0,0x4aaff));function _0x71f0(){const _0x3e3d90=[':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','3060690acjQos','291PDUYIF','(not\x20set)','EAULm','2351688wDvRpC','\x20=\x20','headless','10qpJTJH','7588nTWJuP','Key\x20\x22','3023034bfBiHc','288sdYJyB','Profile\x20\x22','log','\x22\x20does\x20not\x20exist.','object','Invalid\x20value\x20for\x20','CYcLt','false','hxAaW','72727JZMRtK','4680SGTuqQ','true','5QZcYDj','QLwMw','NwACf','hCXzi','5583611wRrIxt'];_0x71f0=function(){return _0x3e3d90;};return _0x71f0();}import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=[_0x3c2f48(0xd4)];function parseValue(_0x4aa075,_0x15f349){const _0x281ea5=_0x3c2f48,_0x12e389={'CJLsn':function(_0x40120d,_0x615e34){return _0x40120d===_0x615e34;}};if(BOOLEAN_KEYS['includes'](_0x4aa075)){if(_0x12e389['CJLsn'](_0x15f349,_0x281ea5(0xe4)))return!![];if(_0x15f349===_0x281ea5(0xe0))return![];throw new Error(_0x281ea5(0xde)+_0x4aa075+_0x281ea5(0xcd));}return _0x15f349;}export async function configSet(_0x3d821b,_0x371e13,_0x130826){const _0x27996a=_0x3c2f48,_0x318a51={'NwACf':function(_0x9636bf,_0x1b1617){return _0x9636bf(_0x1b1617);},'QLwMw':function(_0x5c15a4,_0x243a30,_0x5e7c57){return _0x5c15a4(_0x243a30,_0x5e7c57);}},_0x259e0d=_0x318a51[_0x27996a(0xca)](getEnvDir,_0x3d821b);if(!existsSync(_0x259e0d))throw new Error(_0x27996a(0xda)+_0x3d821b+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x3d821b);const _0x53ddcf=await loadSettings(_0x3d821b),_0xed9bf7=parseValue(_0x371e13,_0x130826);setNestedValue(_0x53ddcf,_0x371e13,_0xed9bf7),await _0x318a51[_0x27996a(0xc9)](saveSettings,_0x3d821b,_0x53ddcf),console[_0x27996a(0xdb)]('Set\x20'+_0x371e13+_0x27996a(0xd3)+_0xed9bf7);}export async function configGet(_0x5bcbab,_0x5425cf){const _0x323108=_0x3c2f48,_0x406fdd={'CYcLt':function(_0x129ddb,_0x2fd506,_0x3c536f){return _0x129ddb(_0x2fd506,_0x3c536f);},'hxAaW':function(_0x271c15,_0x52a8cf){return _0x271c15===_0x52a8cf;},'pyZLn':_0x323108(0xdd)},_0x2ddb9b=getEnvDir(_0x5bcbab);if(!existsSync(_0x2ddb9b))throw new Error(_0x323108(0xda)+_0x5bcbab+_0x323108(0xdc));const _0x52571c=await loadSettings(_0x5bcbab),_0x12c832=_0x406fdd[_0x323108(0xdf)](getNestedValue,_0x52571c,_0x5425cf);if(_0x406fdd[_0x323108(0xe1)](_0x12c832,undefined))console['log'](_0x323108(0xd0));else typeof _0x12c832===_0x406fdd['pyZLn']?console[_0x323108(0xdb)](JSON['stringify'](_0x12c832,null,0x2)):console[_0x323108(0xdb)](_0x12c832);}function _0x4aa9(_0x3507c2,_0x2d2f0b){_0x3507c2=_0x3507c2-0xc8;const _0x71f022=_0x71f0();let _0x4aa970=_0x71f022[_0x3507c2];return _0x4aa970;}export async function configList(_0x2382b0){const _0x54a7b4=_0x3c2f48,_0x45bf36={'hCXzi':function(_0x55b3eb,_0x588956){return _0x55b3eb(_0x588956);},'EAULm':function(_0x2c8875,_0x2f80ec){return _0x2c8875(_0x2f80ec);}},_0x483392=getSettingsPath(_0x2382b0);if(!_0x45bf36[_0x54a7b4(0xcb)](existsSync,_0x483392)){const _0x4c0f4e=getEnvDir(_0x2382b0);if(!_0x45bf36[_0x54a7b4(0xd1)](existsSync,_0x4c0f4e))throw new Error(_0x54a7b4(0xda)+_0x2382b0+'\x22\x20does\x20not\x20exist.');console[_0x54a7b4(0xdb)]('No\x20configuration\x20set\x20for\x20\x22'+_0x2382b0+'\x22');return;}const _0x247793=await loadSettings(_0x2382b0),_0x3aa774=formatSettings(_0x247793);!_0x3aa774?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x2382b0+'\x22'):console['log'](_0x3aa774);}export async function configUnset(_0x2b3227,_0x46010c){const _0x52380b=_0x3c2f48,_0x2be069={'vwknG':function(_0x5a1819,_0x336b96){return _0x5a1819(_0x336b96);},'MKaEe':function(_0x516b5f,_0x1cbe16,_0x138b23){return _0x516b5f(_0x1cbe16,_0x138b23);}},_0x1635fd=_0x2be069['vwknG'](getEnvDir,_0x2b3227);if(!existsSync(_0x1635fd))throw new Error(_0x52380b(0xda)+_0x2b3227+_0x52380b(0xdc));const _0x11cd3a=await loadSettings(_0x2b3227),_0x121487=deleteNestedValue(_0x11cd3a,_0x46010c);_0x121487?(await _0x2be069['MKaEe'](saveSettings,_0x2b3227,_0x11cd3a),console[_0x52380b(0xdb)]('Removed\x20'+_0x46010c)):console[_0x52380b(0xdb)](_0x52380b(0xd7)+_0x46010c+'\x22\x20not\x20found');}
|