@ranger-testing/ranger-cli 2.0.6 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -0
- package/build/commands/setup/opencode.js +1 -0
- 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 -0
- 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/opencodeConfig.js +1 -0
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.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/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 +4 -1
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x227e61=_0x2cd1;function _0x75ec(){const _0x5a5a50=['gsjlF','--task','iWgGD','DTekh','cELET','uwmmC','blocked','ranger\x20feature\x20resume','SsLpJ','TdJKB','KJiVJ','base-url','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','Ilpuh','aOGIM','lQcdX','obAqD','setup-ci\x20<token>','get-feedback\x20[id]','gHmdM','list\x20<profile>','show\x20[id]','kzdZr','zGndF','config\x20list','UBuAe','uNvKc','tLQWg','Scenario\x20description','ranger\x20feature\x20restore','vDoUQ','restore\x20<id>','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','update','KlKYd','zxJPa','JlCFr','debug-outcome','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','euYUy','SIUpQ','argv','ranger\x20env\x20update','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','ranger\x20create','Restore\x20a\x20soft-deleted\x20feature\x20review','verified','ranger\x20feature\x20create','list','use\x20<env-name>','QoxNT','ydAyc','feature\x20get-feedback','qhdOb','nrvPc','usage','key','Name\x20of\x20the\x20profile\x20to\x20update','resume\x20[id]','UIQgE','ZucSW','log','error','ranger\x20feature\x20list','ranger\x20add-scenario','positional','skip-auth','NnOaH','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','ranger\x20feature\x20show','SxYdL','limit','profile\x20ls','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','env\x20update','ranger\x20show','GwfeN','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','enable','Feature\x20review\x20ID','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','QPqhJ','ranger\x20config\x20unset','exitCode','WJewj','boolean','cRnKM','item','config\x20unset','add-scenario\x20<description>','yHkMr','JQMpJ','nyote','ranger\x20profile\x20ls','1615siqyqi','List\x20all\x20profiles','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','feature\x20add-checklist-item','pGaRR','ranger\x20config\x20get','ZbMHx','Manage\x20profile\x20configuration','create','jFiXG','config\x20set','NICdE','HdBvJ','QZYbD','message','scenario','xGIOi','exit','start','evaluation','Environment\x20name','edit-scenario\x20<description>','DGqTS','ncHkM','setup\x20[token]','Feature\x20review\x20ID\x20to\x20restore','oCLbQ','CMJsN','cONJb','ynDoY','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','cHNap','demandCommand','include-deleted','IONSM','KqJPJ','RyTYo','XmajP','string','qjTUK','--notes','unset\x20<env>\x20<key>','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','skip-chromium','checklist','feature\x20show','kXCds','.\x20[','FwWao','dwBHa','config','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','get\x20<env>\x20<key>','HbTpZ','vDLzp','scriptName','Feature\x20review\x20name','profile\x20update','clean','session-id','ranger\x20profile\x20config\x20list','create\x20<name>','token','ranger\x20profile\x20use','YobfB','OMPCI','pmEQI','YikDl','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','ChkYV','myuQO','ranger\x20add\x20env','task','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','Include\x20soft-deleted\x20feature\x20reviews','Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true','ranger\x20use','ranger\x20profile\x20encrypt-auth','ranger\x20profile\x20config\x20set','--profile','Config\x20key','value','ranger\x20profile\x20config\x20unset','seUrN','oqFlx','command','rcRwo','get\x20<profile>\x20<key>','230pdKSGa','notes','issues','AHsaL','1196DgoDeH','yrbFx','resume','3967048EsAquQ','feature\x20create','fnwti','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','ranger\x20auth\x20encrypt','Profile\x20name','11985faeLTM','skillup','kTQle','login','CzqMb','CPqUr','mWngI','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','DBJgg','New\x20scenario\x20description','gbWnw','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','env','hook:disable','Skip\x20Chromium\x20browser\x20installation','You\x20must\x20specify\x20a\x20command','Number\x20of\x20feature\x20reviews\x20to\x20skip','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','Name\x20of\x20the\x20environment\x20to\x20update','Gcheh','profile','ranger\x20restore','JKSwo','Get\x20a\x20config\x20value','qtAKS','status','set\x20<profile>\x20<key>\x20<value>','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','option','Documentation:\x0a','MVOgR','ranger\x20env\x20ls','array','partial','description','NghPq','kQqQa','LHCWd','number','Initialize\x20Ranger\x20in\x20your\x20project','uFteT','WDVyf','ctBxm','\x20\x20https://docs.ranger.net\x0a','list\x20<env>','\x20INCOMPLETE','ranger\x20start','bfAQd','bhOoB','rzEpz','offset','12878334gCEVBy','414264EHnPGS','rqSJN','NTKZM','Scenario\x20index\x20(1-based)','EHMsc','strictCommands','verify-feature','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','ranger\x20config\x20list','cwd','RKhti','983610pbnKuP','jJarm','eKexG','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','MOLoP','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','env\x20list','\x20BLOCKED','add\x20env\x20<env-name>','ranger\x20feature\x20get-feedback','McIMF','--checklist','CiPKR','Config\x20key\x20to\x20remove','profile-name','YOZtz','TUMVk','hook:enable','oNiAl','lADqg','ranger\x20feature\x20add-checklist-item','utVQi','uqPjl','Sloza','MMGaB','SZPNB','\x20PARTIAL','incomplete','qaVBC','profile\x20config\x20set','qjWqn','3255434KcSmWp','env-name','Reason:\x20','\x20FAILED','current-branch','bAElT','pJyDv','Episi','ranger\x20go','JsZZW','nqcZw','Pdwju','TDrXN','.ranger','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','KVoJb','tkxvS','VeNxO'];_0x75ec=function(){return _0x5a5a50;};return _0x75ec();}(function(_0x5a37a1,_0x135cb9){const _0x557298=_0x2cd1,_0xa1d33c=_0x5a37a1();while(!![]){try{const _0x31b791=-parseInt(_0x557298(0x1fc))/0x1+parseInt(_0x557298(0x1bb))/0x2*(parseInt(_0x557298(0x1c8))/0x3)+-parseInt(_0x557298(0x1bf))/0x4*(parseInt(_0x557298(0x163))/0x5)+-parseInt(_0x557298(0xd4))/0x6+-parseInt(_0x557298(0xf3))/0x7+-parseInt(_0x557298(0x1c2))/0x8+parseInt(_0x557298(0x1fb))/0x9;if(_0x31b791===_0x135cb9)break;else _0xa1d33c['push'](_0xa1d33c['shift']());}catch(_0xbe82b9){_0xa1d33c['push'](_0xa1d33c['shift']());}}}(_0x75ec,0x3e2a8));function _0x2cd1(_0x385c0,_0x51b612){_0x385c0=_0x385c0-0xcb;const _0x75ec4e=_0x75ec();let _0x2cd17a=_0x75ec4e[_0x385c0];return _0x2cd17a;}import _0x42c2f9 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x49af10=_0x2cd1,_0x33236a={'nqcZw':function(_0x2a5690,_0x301d33){return _0x2a5690(_0x301d33);},'oSDEh':function(_0x3523a7,_0x2eab8e){return _0x3523a7!==_0x2eab8e;},'GyUnj':function(_0x4d9d40,_0x5ae3f7){return _0x4d9d40(_0x5ae3f7);},'lADqg':function(_0x3efcf2,_0x214463,_0x43bd3b){return _0x3efcf2(_0x214463,_0x43bd3b);},'CMJsN':function(_0x3e67dc,_0x2ceab2){return _0x3e67dc(_0x2ceab2);}};let _0x5337a0=process[_0x49af10(0xd2)]();const _0x5d4137=_0x33236a[_0x49af10(0xfd)](parse,_0x5337a0)['root'];while(_0x33236a['oSDEh'](_0x5337a0,_0x5d4137)){if(_0x33236a['GyUnj'](existsSync,_0x33236a[_0x49af10(0xe7)](join,_0x5337a0,_0x49af10(0x100)))||_0x33236a[_0x49af10(0x17e)](existsSync,join(_0x5337a0,'.env')))return _0x5337a0;_0x5337a0=_0x33236a[_0x49af10(0xfd)](dirname,_0x5337a0);}return process['cwd']();}_0x42c2f9['config']({'path':join(findProjectRoot(),'.env')});import _0x3069d7 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,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 _0x196719=>{const _0x52d6e1=_0x2cd1,_0xae9e0={'gHmdM':function(_0x1a0835){return _0x1a0835();}},_0x3157c6=_0xae9e0[_0x52d6e1(0x118)](getCurrentCollector);_0x3157c6&&await _0x3157c6['trackCommandError'](_0x196719),process[_0x52d6e1(0x158)]=0x1;});const rawArgs=process[_0x227e61(0x12e)]['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x20for\x20Claude\x20Code\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\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP=_0x227e61(0x1ae),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(_0xd44ccf,_0x45681c){const _0x1c2e97=_0x227e61;console[_0x1c2e97(0x143)]('\x0a'+_0xd44ccf+'\x20is\x20now\x20'+_0x45681c+'\x0a');}function argUsed(_0x3a5aac){return rawArgs['some'](_0x4a6413=>_0x4a6413===_0x3a5aac||_0x4a6413['startsWith'](_0x3a5aac+'='));}function warnFlagRenamed(_0x5350ce,_0x25260d,_0x571145){const _0x4c5b34=_0x227e61,_0x1177f8={'ChkYV':function(_0x4d7323,_0x11e7e9){return _0x4d7323(_0x11e7e9);}};_0x1177f8[_0x4c5b34(0x1a8)](argUsed,_0x25260d)&&warnRenamed(_0x5350ce+'\x20'+_0x25260d,_0x5350ce+'\x20'+_0x571145);}async function runGoCommand(_0x401465,_0x43aa35=![]){const _0x37fea7=_0x227e61,_0x1a85b={'IlWGu':'ranger\x20verify-feature','rPMPr':'ranger\x20go','rcRwo':'--env','fnwti':_0x37fea7(0x1b2),'SOxFx':function(_0xf8944e,_0x2f954f,_0x34fab3,_0x5f2d07){return _0xf8944e(_0x2f954f,_0x34fab3,_0x5f2d07);},'gsjlF':_0x37fea7(0x18b),'SRRCw':'--item','uLuuX':function(_0x4aa540,_0x3098ef){return _0x4aa540(_0x3098ef);},'cELET':'debug-outcome','UBuAe':function(_0x1cad34,_0x4f9b8e){return _0x1cad34===_0x4f9b8e;},'CdtvP':_0x37fea7(0x133),'vFsay':'\x20VERIFIED','AGChL':function(_0x574d18,_0x5c7aa9){return _0x574d18===_0x5c7aa9;},'AnOZb':'partial','YobfB':_0x37fea7(0xee),'wVFgN':_0x37fea7(0xdb),'VeNxO':'\x0aIssues:','ZbMHx':function(_0x1a6780,_0xa80d4a){return _0x1a6780===_0xa80d4a;}};_0x43aa35&&warnRenamed(_0x1a85b['IlWGu'],_0x1a85b['rPMPr']);warnFlagRenamed('ranger\x20go',_0x1a85b[_0x37fea7(0x1b9)],_0x1a85b[_0x37fea7(0x1c4)]),_0x1a85b['SOxFx'](warnFlagRenamed,_0x37fea7(0xfb),_0x37fea7(0x106),_0x1a85b[_0x37fea7(0x105)]),warnFlagRenamed('ranger\x20go',_0x1a85b['SRRCw'],'--scenario');const _0x277a94=await _0x1a85b['uLuuX'](verifyFeature,{'profile':_0x401465['profile']??_0x401465['env'],'notes':_0x401465[_0x37fea7(0x1bc)]??_0x401465[_0x37fea7(0x1ab)],'scenario':_0x401465[_0x37fea7(0x172)]??_0x401465['item'],'startPath':_0x401465['start-path'],'debugOutcome':_0x401465[_0x1a85b[_0x37fea7(0x109)]],'debugAddressComments':_0x401465['debug-address-comments']});console['log']('\x0a'+'='['repeat'](0x3c)),console[_0x37fea7(0x142)](_0x1a85b[_0x37fea7(0x11e)](_0x277a94['evaluation'],_0x1a85b['CdtvP'])?_0x1a85b['vFsay']:_0x277a94[_0x37fea7(0x176)]===_0x37fea7(0xef)?_0x37fea7(0x1f5):_0x1a85b['AGChL'](_0x277a94['evaluation'],_0x1a85b['AnOZb'])?_0x1a85b[_0x37fea7(0x1a3)]:_0x1a85b['UBuAe'](_0x277a94['evaluation'],_0x37fea7(0x10b))?_0x1a85b['wVFgN']:_0x37fea7(0xf6)),console[_0x37fea7(0x142)]('='['repeat'](0x3c)),console[_0x37fea7(0x142)]('Summary:\x20'+_0x277a94['summary']),console[_0x37fea7(0x142)]('Evaluation:\x20'+_0x277a94['evaluation']),console[_0x37fea7(0x142)](_0x37fea7(0xf5)+_0x277a94['evaluationReason']),_0x277a94[_0x37fea7(0x1bd)]?.['length']&&(console[_0x37fea7(0x142)](_0x1a85b[_0x37fea7(0x104)]),_0x277a94[_0x37fea7(0x1bd)]['forEach']((_0x27d703,_0x98a5bd)=>{const _0x428208=_0x37fea7;console['log']('\x0a'+(_0x98a5bd+0x1)+_0x428208(0x192)+_0x27d703['severity']+']\x20'+_0x27d703[_0x428208(0x1ea)]);})),process['exit'](_0x1a85b[_0x37fea7(0x169)](_0x277a94[_0x37fea7(0x176)],'verified')?0x0:0x1);}_0x3069d7(process['argv']['slice'](0x2))[_0x227e61(0x19a)]('ranger')[_0x227e61(0x13c)](TOP_LEVEL_HELP)['version'](getCurrentVersion())['command']('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x4ee163=>{const _0x565a50=_0x227e61,_0x376b6c={'jJarm':'name','McIMF':'string','iWgGD':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','aRAQQ':'checklist'};return _0x4ee163['positional'](_0x376b6c[_0x565a50(0xd5)],{'type':_0x376b6c[_0x565a50(0xde)],'description':_0x565a50(0x19b),'demandOption':!![]})['option'](_0x565a50(0x1ea),{'type':_0x376b6c['McIMF'],'alias':'d','description':'Feature\x20review\x20description'})[_0x565a50(0x1e4)](_0x565a50(0x172),{'type':'array','alias':'c','description':_0x376b6c[_0x565a50(0x107)]})[_0x565a50(0x1e4)](_0x376b6c['aRAQQ'],{'type':_0x565a50(0x1e8),'hidden':!![]});},async _0x2d2765=>{const _0x212e72=_0x227e61,_0x3863fd={'uDUuU':_0x212e72(0xdf),'kdoAB':function(_0x3c4db9,_0x1b7875,_0x1579a4){return _0x3c4db9(_0x1b7875,_0x1579a4);},'DTekh':_0x212e72(0x16b)};warnFlagRenamed('ranger\x20create',_0x3863fd['uDUuU'],'--scenario');const _0x79887f=_0x2d2765['scenario']||_0x2d2765['checklist'];await _0x3863fd['kdoAB'](withTelemetry,_0x3863fd[_0x212e72(0x108)],()=>featureCreate(_0x2d2765['name'],{'description':_0x2d2765['description'],'scenarios':_0x79887f}));})['command']('list','List\x20all\x20feature\x20reviews',_0x2f1355=>{const _0x528e2c=_0x227e61,_0x5be8ba={'SxYdL':'boolean','TdJKB':_0x528e2c(0x1ee),'QvjPn':_0x528e2c(0x1fa)};return _0x2f1355[_0x528e2c(0x1e4)](_0x528e2c(0xf7),{'type':_0x5be8ba[_0x528e2c(0x14b)],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option'](_0x528e2c(0x14c),{'type':_0x5be8ba[_0x528e2c(0x10e)],'alias':'l','description':_0x528e2c(0x1cf),'default':0xa})[_0x528e2c(0x1e4)](_0x5be8ba['QvjPn'],{'type':_0x528e2c(0x1ee),'alias':'o','description':_0x528e2c(0x1d8),'default':0x0})[_0x528e2c(0x1e4)](_0x528e2c(0x184),{'type':_0x528e2c(0x15a),'alias':'d','description':_0x528e2c(0x1ad),'default':![]});},async _0x5a3fd7=>{const _0x248129=_0x227e61,_0x18d9f7={'qUaKb':'list'};await withTelemetry(_0x18d9f7['qUaKb'],()=>featureList({'currentBranch':_0x5a3fd7[_0x248129(0xf7)],'limit':_0x5a3fd7['limit'],'offset':_0x5a3fd7[_0x248129(0x1fa)],'includeDeleted':_0x5a3fd7[_0x248129(0x184)]}));})['command']('show\x20[id]','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x15d822=>{const _0x4f92e2=_0x227e61,_0x4df011={'LmPdM':_0x4f92e2(0x189)};return _0x15d822['positional']('id',{'type':_0x4df011['LmPdM'],'description':'Feature\x20review\x20ID'});},async _0x18fb12=>{await withTelemetry('show',()=>featureShow(_0x18fb12['id']));})[_0x227e61(0x1b8)]('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x1dfd3e=>{const _0x11af1a=_0x227e61,_0x407372={'euYUy':'string','oNiAl':_0x11af1a(0xd0)};return _0x1dfd3e[_0x11af1a(0x146)]('id',{'type':_0x407372[_0x11af1a(0x12c)],'description':_0x407372[_0x11af1a(0xe6)]});},async _0x520dd4=>{const _0x4927b1=_0x227e61,_0x1e6757={'rzEpz':_0x4927b1(0x1c1)};await withTelemetry(_0x1e6757[_0x4927b1(0x1f9)],()=>featureResume(_0x520dd4['id']));})['command'](_0x227e61(0x15e),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x36a6d9=>{const _0x32cfec=_0x227e61,_0x1b7cd4={'MMGaB':_0x32cfec(0x1ea),'uFteT':'string','YikDl':_0x32cfec(0x121),'hWkVO':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x36a6d9['positional'](_0x1b7cd4[_0x32cfec(0xec)],{'type':_0x1b7cd4[_0x32cfec(0x1f0)],'description':_0x1b7cd4[_0x32cfec(0x1a6)],'demandOption':!![]})['option']('id',{'type':_0x1b7cd4[_0x32cfec(0x1f0)],'description':_0x1b7cd4['hWkVO']});},async _0x189082=>{await withTelemetry('add-scenario',()=>featureAddScenario(_0x189082['description'],_0x189082['id']));})['command'](_0x227e61(0x178),'Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x40cfd4=>{const _0x1bcf49=_0x227e61,_0x21de0b={'tnKsz':'description','LHqAH':_0x1bcf49(0x189),'jEEVY':_0x1bcf49(0x1d1),'Ilpuh':'scenario','Gcheh':'number','TdXDG':'Scenario\x20number\x20to\x20edit\x20(1-based)','FwWao':_0x1bcf49(0x125)};return _0x40cfd4['positional'](_0x21de0b['tnKsz'],{'type':_0x21de0b['LHqAH'],'description':_0x21de0b['jEEVY'],'demandOption':!![]})['option'](_0x21de0b[_0x1bcf49(0x112)],{'type':_0x21de0b[_0x1bcf49(0x1db)],'description':_0x21de0b['TdXDG'],'demandOption':!![]})['option']('id',{'type':_0x21de0b['LHqAH'],'description':_0x21de0b[_0x1bcf49(0x193)]});},async _0x3f61ab=>{const _0x2a6b12=_0x227e61,_0x56467c={'KqJPJ':'edit-scenario'};await withTelemetry(_0x56467c[_0x2a6b12(0x186)],()=>featureEditScenario(_0x3f61ab[_0x2a6b12(0x1ea)],{'id':_0x3f61ab['id'],'scenario':_0x3f61ab[_0x2a6b12(0x172)]}));})[_0x227e61(0x1b8)]('get-review\x20[id]',_0x227e61(0x12b),_0x28848f=>{const _0x309148=_0x227e61,_0x5ece3a={'utVQi':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x28848f[_0x309148(0x146)]('id',{'type':_0x309148(0x189),'description':_0x5ece3a[_0x309148(0xe9)]});},async _0x2e131c=>{const _0x37c18f={'muwlE':function(_0x987ed4,_0x119d0e,_0x40675a){return _0x987ed4(_0x119d0e,_0x40675a);}};await _0x37c18f['muwlE'](withTelemetry,'get-review',()=>featureGetReview(_0x2e131c['id']));})[_0x227e61(0x1b8)]('delete\x20[id]',_0x227e61(0x149),_0x127991=>{const _0x6e5178=_0x227e61,_0x3593dd={'OMPCI':_0x6e5178(0x189),'tkxvS':'Feature\x20review\x20ID'};return _0x127991['positional']('id',{'type':_0x3593dd[_0x6e5178(0x1a4)],'description':_0x3593dd[_0x6e5178(0x103)]});},async _0x3c9b11=>{await withTelemetry('delete',()=>featureDelete(_0x3c9b11['id']));})['command'](_0x227e61(0x124),_0x227e61(0x132),_0x23eeae=>{const _0x2b7b59=_0x227e61,_0x45c78f={'kzdZr':_0x2b7b59(0x17c)};return _0x23eeae['positional']('id',{'type':'string','description':_0x45c78f[_0x2b7b59(0x11b)],'demandOption':!![]});},async _0xabbc3b=>{const _0x5478ba=_0x227e61,_0x3bfdfa={'pGaRR':function(_0x22a969,_0x83286b,_0x351d9f){return _0x22a969(_0x83286b,_0x351d9f);},'cPTRP':'restore'};await _0x3bfdfa[_0x5478ba(0x167)](withTelemetry,_0x3bfdfa['cPTRP'],()=>featureRestore(_0xabbc3b['id']));})[_0x227e61(0x1b8)](_0x227e61(0x17b),_0x227e61(0x1ef),_0xdd12e4=>{const _0x54810d=_0x227e61,_0x4a21b5={'hlerL':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','RcpOj':_0x54810d(0x18e),'WJewj':_0x54810d(0x15a)};return _0xdd12e4[_0x54810d(0x146)]('token',{'type':_0x54810d(0x189),'description':_0x4a21b5['hlerL']})[_0x54810d(0x1e4)](_0x4a21b5['RcpOj'],{'type':_0x4a21b5[_0x54810d(0x159)],'description':_0x54810d(0x1d9),'default':![]});},async _0x29656f=>{const _0x4d5499=_0x227e61,_0x50b5c4={'yzlZX':function(_0xaefdcc,_0x2ccd00,_0x248da9){return _0xaefdcc(_0x2ccd00,_0x248da9);}};await _0x50b5c4['yzlZX'](withTelemetry,'start',_0x55b3c6=>start(_0x29656f['token'],{'skipChromium':_0x29656f[_0x4d5499(0x18e)]},_0x55b3c6));})['command'](_0x227e61(0x116),_0x227e61(0x152),_0x41d649=>{const _0x53535a=_0x227e61,_0x26a4c1={'qRMwZ':_0x53535a(0x189),'qhdOb':'Ranger\x20API\x20token','TTSeV':'profile','oCLbQ':_0x53535a(0x181),'xCGwV':_0x53535a(0x18e),'goglI':_0x53535a(0x15a)};return _0x41d649[_0x53535a(0x146)]('token',{'type':_0x26a4c1['qRMwZ'],'description':_0x26a4c1[_0x53535a(0x13a)],'demandOption':!![]})['option'](_0x26a4c1['TTSeV'],{'type':_0x53535a(0x189),'description':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)'})['option'](_0x53535a(0x110),{'type':_0x53535a(0x189),'description':_0x26a4c1[_0x53535a(0x17d)]})[_0x53535a(0x1e4)](_0x26a4c1['xCGwV'],{'type':_0x26a4c1['goglI'],'description':_0x53535a(0x1d6),'default':![]});},async _0x55d773=>{const _0x3902fc=_0x227e61,_0x59b642={'HbTpZ':function(_0x379074,_0xd253a5,_0x48143d){return _0x379074(_0xd253a5,_0x48143d);},'RKhti':'setup-ci'};await _0x59b642[_0x3902fc(0x198)](withTelemetry,_0x59b642[_0x3902fc(0xd3)],_0x5cc2b3=>setupCi(_0x55d773[_0x3902fc(0x1a1)],{'profile':_0x55d773['profile'],'baseUrl':_0x55d773[_0x3902fc(0x110)],'skipChromium':_0x55d773['skip-chromium']},_0x5cc2b3));})['command']('login',_0x227e61(0x1e3),()=>{},async()=>{const _0x194d8b=_0x227e61,_0x45c5e2={'pAnxd':function(_0x5bfad2,_0x4e1920,_0x5e4999){return _0x5bfad2(_0x4e1920,_0x5e4999);}};await _0x45c5e2['pAnxd'](withTelemetry,_0x194d8b(0x1cb),()=>login());})['command'](_0x227e61(0x1c9),'Install\x20Ranger\x20skills\x20for\x20Claude\x20Code',()=>{},async()=>{const _0x2fc1df=_0x227e61,_0x10240b={'JlCFr':_0x2fc1df(0x1c9)};await withTelemetry(_0x10240b[_0x2fc1df(0x129)],()=>skillup());})['command']('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x21cce1=_0x227e61,_0x40897a={'uqPjl':_0x21cce1(0x19d)};await withTelemetry(_0x40897a[_0x21cce1(0xea)],()=>clean());})[_0x227e61(0x1b8)](_0x227e61(0x1dc),'Manage\x20profiles',_0x5d113f=>{const _0x446629=_0x227e61,_0x595d9c={'JROnS':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','DKVFF':function(_0x217e1c,_0x52a595,_0x1c008e){return _0x217e1c(_0x52a595,_0x1c008e);},'LsoKI':'profile-name','KVoJb':'profile\x20use','VHesA':'profile\x20encrypt-auth','aOGIM':'string','nrvPc':_0x446629(0x13e),'NghPq':'profile','kQqQa':_0x446629(0xf1),'IGIDm':'key','qtAKS':'Config\x20key\x20to\x20remove','CzqMb':function(_0x1a7e64,_0x19b560,_0x41f546){return _0x1a7e64(_0x19b560,_0x41f546);},'cONJb':_0x446629(0x1e2),'CdunL':'Set\x20a\x20config\x20value','PoexQ':_0x446629(0x1ba),'lQcdX':_0x446629(0x119),'HdBvJ':'List\x20all\x20config\x20for\x20a\x20profile','XQBKh':'add\x20<profile-name>','QoxNT':'Add\x20profile\x20configuration','Episi':'use\x20<profile-name>','MFywR':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','gbWnw':'Update\x20authentication\x20for\x20an\x20existing\x20profile','SZPNB':_0x446629(0x195),'NTKZM':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x5d113f['usage'](PROFILE_HELP)['command'](_0x595d9c['XQBKh'],_0x595d9c[_0x446629(0x137)],_0x56df8b=>{const _0x5126e8=_0x446629;return _0x56df8b['positional'](_0x5126e8(0xe2),{'type':'string','description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x5126e8(0x15a),'description':_0x595d9c['JROnS'],'default':![]})['option'](_0x5126e8(0x147),{'type':'boolean','description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]});},async _0x419f7e=>{const _0x21a016=_0x446629;await _0x595d9c['DKVFF'](withTelemetry,'profile\x20add',_0x388336=>addEnv(_0x419f7e['profile-name'],{'ci':_0x419f7e['ci'],'skipAuth':_0x419f7e[_0x21a016(0x147)]},_0x388336));})[_0x446629(0x1b8)](_0x595d9c[_0x446629(0xfa)],'Switch\x20to\x20using\x20a\x20specific\x20profile',_0xd89677=>{const _0x4efd11=_0x446629;return _0xd89677['positional'](_0x595d9c['LsoKI'],{'type':_0x4efd11(0x189),'description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x1efe73=>{const _0xa01e3b=_0x446629;await withTelemetry(_0x595d9c[_0xa01e3b(0x102)],()=>useEnv(_0x1efe73['profile-name']));})[_0x446629(0x1b8)]('encrypt-auth\x20<profile>',_0x595d9c['MFywR'],_0x46907b=>{const _0x16c281=_0x446629;return _0x46907b[_0x16c281(0x146)](_0x16c281(0x1dc),{'type':_0x16c281(0x189),'description':'Profile\x20name','demandOption':!![]});},async _0x4d771d=>{const _0x245e1c=_0x446629;await withTelemetry(_0x595d9c['VHesA'],()=>authEncrypt(_0x4d771d[_0x245e1c(0x1dc)]));})['command']('ls',_0x446629(0x164),()=>{},async()=>{const _0x13e126=_0x446629;await withTelemetry(_0x13e126(0x14d),()=>envList());})['command']('update\x20<profile-name>',_0x595d9c[_0x446629(0x1d2)],_0x432e75=>{const _0x44d76c=_0x446629;return _0x432e75[_0x44d76c(0x146)](_0x595d9c['LsoKI'],{'type':_0x595d9c[_0x44d76c(0x113)],'description':_0x595d9c[_0x44d76c(0x13b)],'demandOption':!![]});},async _0x34608d=>{const _0xfeea25=_0x446629;await _0x595d9c['DKVFF'](withTelemetry,_0xfeea25(0x19c),_0x381d50=>updateEnv(_0x34608d['profile-name'],_0x381d50));})[_0x446629(0x1b8)](_0x595d9c[_0x446629(0xed)],_0x446629(0x16a),_0x13f8e3=>{const _0x17a034=_0x446629,_0x28f4ea={'qjWqn':_0x17a034(0x189),'DGqTS':'profile\x20config\x20get'};return _0x13f8e3[_0x17a034(0x13c)](PROFILE_CONFIG_HELP)[_0x17a034(0x1b8)](_0x595d9c[_0x17a034(0x17f)],_0x595d9c['CdunL'],_0xa85181=>{const _0x3cf9ef=_0x17a034;return _0xa85181['positional'](_0x595d9c[_0x3cf9ef(0x1eb)],{'type':'string','description':'Profile\x20name','demandOption':!![]})['positional']('key',{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x3cf9ef(0x146)]('value',{'type':_0x595d9c[_0x3cf9ef(0x113)],'description':'Config\x20value','demandOption':!![]});},async _0x10dab4=>{const _0x49fa8d=_0x17a034;await withTelemetry(_0x595d9c[_0x49fa8d(0x1ec)],()=>configSet(_0x10dab4[_0x49fa8d(0x1dc)],_0x10dab4[_0x49fa8d(0x13d)],_0x10dab4['value']));})[_0x17a034(0x1b8)](_0x595d9c['PoexQ'],_0x17a034(0x1df),_0x53b38b=>{const _0x541da2=_0x17a034;return _0x53b38b[_0x541da2(0x146)](_0x541da2(0x1dc),{'type':_0x28f4ea['qjWqn'],'description':_0x541da2(0x1c7),'demandOption':!![]})[_0x541da2(0x146)]('key',{'type':_0x28f4ea[_0x541da2(0xf2)],'description':'Config\x20key','demandOption':!![]});},async _0x16877b=>{const _0x522c36=_0x17a034;await withTelemetry(_0x28f4ea[_0x522c36(0x179)],()=>configGet(_0x16877b['profile'],_0x16877b['key']));})['command'](_0x595d9c[_0x17a034(0x114)],_0x595d9c[_0x17a034(0x16f)],_0x388736=>{const _0xea373d=_0x17a034;return _0x388736[_0xea373d(0x146)](_0xea373d(0x1dc),{'type':_0x28f4ea[_0xea373d(0xf2)],'description':_0xea373d(0x1c7),'demandOption':!![]});},async _0x1b89cf=>{await withTelemetry('profile\x20config\x20list',()=>configList(_0x1b89cf['profile']));})['command']('unset\x20<profile>\x20<key>','Remove\x20a\x20config\x20value',_0x1c99a0=>{const _0x24c457=_0x17a034;return _0x1c99a0['positional'](_0x595d9c['NghPq'],{'type':_0x24c457(0x189),'description':_0x24c457(0x1c7),'demandOption':!![]})['positional'](_0x595d9c['IGIDm'],{'type':_0x595d9c['aOGIM'],'description':_0x595d9c[_0x24c457(0x1e0)],'demandOption':!![]});},async _0x18b47e=>{const _0x5d13be=_0x17a034;await _0x595d9c[_0x5d13be(0x1cc)](withTelemetry,'profile\x20config\x20unset',()=>configUnset(_0x18b47e['profile'],_0x18b47e['key']));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand');})['demandCommand'](0x1,_0x595d9c[_0x446629(0xcb)]);})[_0x227e61(0x1b8)](_0x227e61(0x1e1),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{await withTelemetry('status',()=>status());})['command'](_0x227e61(0x126),_0x227e61(0x101),()=>{},async()=>{const _0x499ab7=_0x227e61,_0x555119={'YOZtz':_0x499ab7(0x126)};await withTelemetry(_0x555119[_0x499ab7(0xe3)],()=>update());})['command']('go',_0x227e61(0x1d3),_0xe2ed8=>{const _0x32605b=_0x227e61,_0x9c6f25={'ncHkM':'profile','pmEQI':_0x32605b(0x189),'QXydp':_0x32605b(0x1ac),'bfAQd':'notes','MOLoP':'scenario','kTQle':'Scenario\x20index\x20(1-based)','NICdE':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','LgoVQ':_0x32605b(0x12a),'qaVBC':_0x32605b(0x133),'UNbDb':'partial','DTqpM':_0x32605b(0x10b),'BYvAV':'failed','ePAyQ':_0x32605b(0xef),'DBJgg':'debug-address-comments','JQMpJ':_0x32605b(0x15a),'MtvGR':_0x32605b(0x1d4),'oFqJd':'item'};return _0xe2ed8[_0x32605b(0x1e4)](_0x9c6f25[_0x32605b(0x17a)],{'type':_0x9c6f25['pmEQI'],'description':_0x9c6f25['QXydp']})['option'](_0x9c6f25[_0x32605b(0x1f7)],{'type':_0x9c6f25[_0x32605b(0x1a5)],'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})[_0x32605b(0x1e4)](_0x9c6f25[_0x32605b(0xd8)],{'type':_0x32605b(0x1ee),'description':_0x9c6f25[_0x32605b(0x1ca)]})['option']('start-path',{'type':_0x32605b(0x189),'description':_0x9c6f25[_0x32605b(0x16e)]})[_0x32605b(0x1e4)](_0x9c6f25['LgoVQ'],{'type':'string','hidden':!![],'choices':[_0x9c6f25[_0x32605b(0xf0)],_0x9c6f25['UNbDb'],_0x9c6f25['DTqpM'],_0x9c6f25['BYvAV'],_0x9c6f25['ePAyQ']]})['option'](_0x9c6f25[_0x32605b(0x1d0)],{'type':_0x9c6f25[_0x32605b(0x160)],'hidden':!![]})['option'](_0x9c6f25['MtvGR'],{'type':_0x32605b(0x189),'hidden':!![]})[_0x32605b(0x1e4)](_0x32605b(0x1ab),{'type':'string','hidden':!![]})[_0x32605b(0x1e4)](_0x9c6f25['oFqJd'],{'type':_0x32605b(0x1ee),'hidden':!![]});},async _0x35277c=>{await runGoCommand(_0x35277c);})['command']('auth',![],_0x5a32dd=>{const _0x2e2864=_0x227e61,_0x26d8ae={'Sloza':'profile','YHSoq':'string','aLuJg':function(_0x24607c,_0x190a43,_0x4f582d){return _0x24607c(_0x190a43,_0x4f582d);},'qyTWy':_0x2e2864(0x1c6)};return _0x5a32dd[_0x2e2864(0x1b8)]('encrypt\x20<profile>',![],_0x303ce3=>{const _0x39f512=_0x2e2864;return _0x303ce3['positional'](_0x26d8ae[_0x39f512(0xeb)],{'type':_0x26d8ae['YHSoq'],'description':'Profile\x20name','demandOption':!![]});},async _0x57f9a0=>{const _0x2f522e=_0x2e2864;_0x26d8ae['aLuJg'](warnRenamed,_0x26d8ae['qyTWy'],_0x2f522e(0x1b0)),await authEncrypt(_0x57f9a0['profile']);})[_0x2e2864(0x183)](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})[_0x227e61(0x1b8)]('start\x20[token]',![],_0x21f763=>{const _0x8cd502=_0x227e61,_0x525edd={'SsLpJ':_0x8cd502(0x189),'PvQXc':_0x8cd502(0x18e),'kXbtq':'boolean'};return _0x21f763['positional']('token',{'type':_0x525edd[_0x8cd502(0x10d)],'description':_0x8cd502(0x130)})[_0x8cd502(0x1e4)](_0x525edd['PvQXc'],{'type':_0x525edd['kXbtq'],'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]});},async _0x1f9ba8=>{const _0x12cf38=_0x227e61,_0x41a20b={'XCzQO':'ranger\x20setup','ydAyc':function(_0x2b72e6,_0x1ce9f1,_0x15e70d){return _0x2b72e6(_0x1ce9f1,_0x15e70d);}};warnRenamed(_0x12cf38(0x1f6),_0x41a20b['XCzQO']),await _0x41a20b[_0x12cf38(0x138)](withTelemetry,_0x12cf38(0x175),_0x3c9044=>start(_0x1f9ba8[_0x12cf38(0x1a1)],{'skipChromium':_0x1f9ba8['skip-chromium']},_0x3c9044));})['command'](_0x227e61(0xcf),![],_0x3552f9=>{const _0x1e44bf=_0x227e61,_0x3dc6a7={'rqSJN':'string','pJyDv':_0x1e44bf(0x1ac),'zGndF':_0x1e44bf(0x18d),'xoadp':_0x1e44bf(0xcc),'zxJPa':'profile','bhOoB':_0x1e44bf(0x1bc),'OUvzP':'number','LHCWd':_0x1e44bf(0x12a),'eKexG':'verified','nQLRH':'incomplete'};return _0x3552f9['option'](_0x1e44bf(0x1d4),{'type':_0x3dc6a7[_0x1e44bf(0x1fd)],'description':_0x3dc6a7[_0x1e44bf(0xf9)]})[_0x1e44bf(0x1e4)]('task',{'type':'string','description':_0x3dc6a7[_0x1e44bf(0x11c)]})[_0x1e44bf(0x1e4)](_0x1e44bf(0x15c),{'type':'number','description':_0x3dc6a7['xoadp']})[_0x1e44bf(0x1e4)](_0x3dc6a7[_0x1e44bf(0x128)],{'type':_0x1e44bf(0x189),'hidden':!![]})['option'](_0x3dc6a7[_0x1e44bf(0x1f8)],{'type':_0x3dc6a7['rqSJN'],'hidden':!![]})[_0x1e44bf(0x1e4)](_0x1e44bf(0x172),{'type':_0x3dc6a7['OUvzP'],'hidden':!![]})['option']('start-path',{'type':_0x3dc6a7[_0x1e44bf(0x1fd)],'description':_0x1e44bf(0x1a7)})[_0x1e44bf(0x1e4)](_0x3dc6a7[_0x1e44bf(0x1ed)],{'type':_0x1e44bf(0x189),'hidden':!![],'choices':[_0x3dc6a7[_0x1e44bf(0xd6)],_0x1e44bf(0x1e9),'blocked','failed',_0x3dc6a7['nQLRH']]});},async _0x1d31b1=>{const _0x480eab={'xuogq':function(_0x533d68,_0x2b9605,_0x4c71d7){return _0x533d68(_0x2b9605,_0x4c71d7);}};await _0x480eab['xuogq'](runGoCommand,_0x1d31b1,!![]);})[_0x227e61(0x1b8)](_0x227e61(0xdc),![],_0x35e936=>{const _0x1899a8=_0x227e61,_0x200d74={'CiPKR':_0x1899a8(0x111),'bAElT':_0x1899a8(0x15a),'RyTYo':_0x1899a8(0xd9),'Jfwqg':_0x1899a8(0x1c5)};return _0x35e936[_0x1899a8(0x146)](_0x1899a8(0xf4),{'type':'string','description':_0x200d74[_0x1899a8(0xe0)],'demandOption':!![]})['option']('ci',{'type':_0x200d74[_0x1899a8(0xf8)],'description':_0x200d74[_0x1899a8(0x187)],'default':![]})['option']('skip-auth',{'type':_0x200d74['bAElT'],'description':_0x200d74['Jfwqg'],'default':![]});},async _0x43a237=>{const _0x5ef1f2=_0x227e61,_0x48e5c3={'YMoqN':function(_0x5d9971,_0x254737,_0x424ed4){return _0x5d9971(_0x254737,_0x424ed4);},'xGIOi':'add\x20env'};warnRenamed(_0x5ef1f2(0x1aa),'ranger\x20profile\x20add'),await _0x48e5c3['YMoqN'](withTelemetry,_0x48e5c3[_0x5ef1f2(0x173)],_0xec6f3f=>addEnv(_0x43a237['env-name'],{'ci':_0x43a237['ci'],'skipAuth':_0x43a237['skip-auth']},_0xec6f3f));})[_0x227e61(0x1b8)](_0x227e61(0x136),![],_0x4effa3=>{const _0x575dc5=_0x227e61,_0x4f06e7={'TDrXN':_0x575dc5(0x189)};return _0x4effa3[_0x575dc5(0x146)]('env-name',{'type':_0x4f06e7[_0x575dc5(0xff)],'description':'Name\x20of\x20the\x20environment','demandOption':!![]});},async _0xfd3e5f=>{const _0x16f54c=_0x227e61,_0xa014e4={'EHMsc':function(_0x79e66d,_0x467ab9,_0x166cf9){return _0x79e66d(_0x467ab9,_0x166cf9);},'nwIeC':'use'};_0xa014e4[_0x16f54c(0xcd)](warnRenamed,_0x16f54c(0x1af),_0x16f54c(0x1a2)),await withTelemetry(_0xa014e4['nwIeC'],()=>useEnv(_0xfd3e5f[_0x16f54c(0xf4)]));})[_0x227e61(0x1b8)]('config',![],_0x151a98=>{const _0x172372=_0x227e61,_0xd09556={'Pdwju':'env','vDLzp':_0x172372(0x196),'byxgM':'value','obAqD':_0x172372(0x189),'seUrN':function(_0x5e8a38,_0xab333c,_0xfc6397){return _0x5e8a38(_0xab333c,_0xfc6397);},'KOJzA':_0x172372(0x16d),'KJiVJ':_0x172372(0x177),'UIQgE':'key','IONSM':function(_0xb5ac1e,_0x35b39f,_0x4021af){return _0xb5ac1e(_0x35b39f,_0x4021af);},'oqFlx':function(_0x22f4e3,_0x3004a0,_0x20e063){return _0x22f4e3(_0x3004a0,_0x20e063);},'PygEX':_0x172372(0xd1),'MeJvY':_0x172372(0x1b5),'MVOgR':'set\x20<env>\x20<key>\x20<value>','irQhx':_0x172372(0x18c),'JXzmh':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x151a98[_0x172372(0x1b8)](_0xd09556[_0x172372(0x1e6)],![],_0x2fe0ff=>{const _0x36ed9f=_0x172372;return _0x2fe0ff[_0x36ed9f(0x146)](_0xd09556[_0x36ed9f(0xfe)],{'type':'string','description':_0x36ed9f(0x177),'demandOption':!![]})[_0x36ed9f(0x146)]('key',{'type':'string','description':_0xd09556[_0x36ed9f(0x199)],'demandOption':!![]})['positional'](_0xd09556['byxgM'],{'type':_0xd09556[_0x36ed9f(0x115)],'description':'Config\x20value','demandOption':!![]});},async _0x4a2ab4=>{const _0x482887=_0x172372;_0xd09556[_0x482887(0x1b6)](warnRenamed,'ranger\x20config\x20set',_0x482887(0x1b1)),await _0xd09556[_0x482887(0x1b6)](withTelemetry,_0xd09556['KOJzA'],()=>configSet(_0x4a2ab4['env'],_0x4a2ab4['key'],_0x4a2ab4[_0x482887(0x1b4)]));})['command'](_0x172372(0x197),![],_0x3b9c13=>{const _0x4029be=_0x172372;return _0x3b9c13[_0x4029be(0x146)](_0xd09556[_0x4029be(0xfe)],{'type':_0x4029be(0x189),'description':_0xd09556[_0x4029be(0x10f)],'demandOption':!![]})[_0x4029be(0x146)](_0xd09556[_0x4029be(0x140)],{'type':_0xd09556[_0x4029be(0x115)],'description':_0x4029be(0x1b3),'demandOption':!![]});},async _0xe0981a=>{const _0x5410c0=_0x172372;warnRenamed(_0x5410c0(0x168),'ranger\x20profile\x20config\x20get'),await _0xd09556['IONSM'](withTelemetry,'config\x20get',()=>configGet(_0xe0981a[_0x5410c0(0x1d4)],_0xe0981a['key']));})[_0x172372(0x1b8)](_0x172372(0x1f4),![],_0x5d46a5=>{const _0x25a8e8=_0x172372;return _0x5d46a5[_0x25a8e8(0x146)](_0xd09556['Pdwju'],{'type':_0xd09556['obAqD'],'description':_0xd09556[_0x25a8e8(0x10f)],'demandOption':!![]});},async _0x5171e1=>{const _0x7616c4=_0x172372;_0xd09556[_0x7616c4(0x1b7)](warnRenamed,_0xd09556['PygEX'],_0x7616c4(0x19f)),await withTelemetry(_0x7616c4(0x11d),()=>configList(_0x5171e1[_0x7616c4(0x1d4)]));})[_0x172372(0x1b8)](_0xd09556['irQhx'],![],_0x2a055f=>{const _0x3a37e8=_0x172372;return _0x2a055f[_0x3a37e8(0x146)](_0xd09556[_0x3a37e8(0xfe)],{'type':_0xd09556[_0x3a37e8(0x115)],'description':'Environment\x20name','demandOption':!![]})[_0x3a37e8(0x146)](_0x3a37e8(0x13d),{'type':'string','description':_0x3a37e8(0xe1),'demandOption':!![]});},async _0x18917d=>{const _0x2ad24c=_0x172372;_0xd09556[_0x2ad24c(0x185)](warnRenamed,_0x2ad24c(0x157),_0xd09556['MeJvY']),await withTelemetry(_0x2ad24c(0x15d),()=>configUnset(_0x18917d['env'],_0x18917d[_0x2ad24c(0x13d)]));})['demandCommand'](0x1,_0xd09556['JXzmh']);})['command']('env',![],_0x2e35ee=>{const _0x7aed06=_0x227e61,_0x458490={'vDoUQ':function(_0x1b4d27,_0x4b02e0,_0x3ede29){return _0x1b4d27(_0x4b02e0,_0x3ede29);},'uwmmC':_0x7aed06(0x162),'kXCds':_0x7aed06(0xda),'QZYbD':'env-name','KlKYd':_0x7aed06(0x12f),'ZucSW':'ranger\x20profile\x20update','XIhhH':_0x7aed06(0x14f),'NnOaH':'update\x20<env-name>','yHkMr':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x2e35ee[_0x7aed06(0x1b8)]('ls',![],()=>{},async()=>{const _0x37015c=_0x7aed06;_0x458490[_0x37015c(0x123)](warnRenamed,_0x37015c(0x1e7),_0x458490[_0x37015c(0x10a)]),await _0x458490['vDoUQ'](withTelemetry,_0x458490[_0x37015c(0x191)],()=>envList());})[_0x7aed06(0x1b8)](_0x458490[_0x7aed06(0x148)],![],_0x575c60=>{const _0x318f47=_0x7aed06;return _0x575c60['positional'](_0x458490[_0x318f47(0x170)],{'type':_0x318f47(0x189),'description':_0x318f47(0x1da),'demandOption':!![]});},async _0x3dd9eb=>{const _0x1f9dc7=_0x7aed06;_0x458490[_0x1f9dc7(0x123)](warnRenamed,_0x458490[_0x1f9dc7(0x127)],_0x458490[_0x1f9dc7(0x141)]),await _0x458490[_0x1f9dc7(0x123)](withTelemetry,_0x458490['XIhhH'],_0x25555b=>updateEnv(_0x3dd9eb[_0x1f9dc7(0xf4)],_0x25555b));})[_0x7aed06(0x183)](0x1,_0x458490[_0x7aed06(0x15f)]);})[_0x227e61(0x1b8)]('feature',![],_0x42e9d4=>{const _0x26cc7a=_0x227e61,_0x1585f3={'JKSwo':'name','ctBxm':_0x26cc7a(0x1ea),'ynDoY':'string','eKzYG':'checklist','jBjlB':_0x26cc7a(0x1e8),'qjTUK':_0x26cc7a(0xd7),'FkQGp':_0x26cc7a(0x131),'LTKBe':'--scenario','myuQO':_0x26cc7a(0x1c3),'VwWKv':_0x26cc7a(0xf7),'ukxQX':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','GhBpK':'offset','GwfeN':_0x26cc7a(0x1ee),'AHsaL':_0x26cc7a(0x1d8),'UnKsL':_0x26cc7a(0x184),'MswmK':_0x26cc7a(0x15a),'WDVyf':_0x26cc7a(0x1ad),'yrbFx':function(_0x5add5d,_0x23c053,_0x390a4f){return _0x5add5d(_0x23c053,_0x390a4f);},'uNvKc':_0x26cc7a(0x144),'GgECd':'ranger\x20list','eVpIH':function(_0x59d7a8,_0x149f81,_0xb99f07){return _0x59d7a8(_0x149f81,_0xb99f07);},'OKIGM':_0x26cc7a(0x14a),'pDGwZ':_0x26cc7a(0x150),'ttogZ':_0x26cc7a(0x190),'CPqUr':_0x26cc7a(0x10c),'QPqhJ':'feature\x20resume','cHNap':_0x26cc7a(0x121),'XmajP':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','oKjaa':_0x26cc7a(0xe8),'mWngI':_0x26cc7a(0x166),'kQLLb':_0x26cc7a(0xdd),'nyote':_0x26cc7a(0x139),'aDdYk':'feature\x20delete','biKPB':function(_0x2cef1b,_0x17e6d9,_0xef039c){return _0x2cef1b(_0x17e6d9,_0xef039c);},'mdrXD':'feature\x20restore','JsZZW':_0x26cc7a(0x11a),'fRqLW':'add-checklist-item\x20<description>','TUMVk':'delete\x20[id]'};return _0x42e9d4['command'](_0x26cc7a(0x1a0),![],_0x2baee8=>{const _0x247f10=_0x26cc7a;return _0x2baee8['positional'](_0x1585f3[_0x247f10(0x1de)],{'type':'string','description':_0x247f10(0x19b),'demandOption':!![]})['option'](_0x1585f3[_0x247f10(0x1f2)],{'type':_0x1585f3[_0x247f10(0x180)],'alias':'d','description':'Feature\x20review\x20description'})['option'](_0x1585f3['eKzYG'],{'type':_0x1585f3['jBjlB'],'alias':'c','description':_0x1585f3[_0x247f10(0x18a)]})['option']('scenario',{'type':_0x1585f3['jBjlB'],'hidden':!![]});},async _0x1565fa=>{const _0x48d3bf=_0x26cc7a;warnRenamed(_0x48d3bf(0x134),_0x1585f3['FkQGp']),warnFlagRenamed(_0x1585f3['FkQGp'],'--checklist',_0x1585f3['LTKBe']);const _0x42debc=_0x1565fa[_0x48d3bf(0x172)]||_0x1565fa[_0x48d3bf(0x18f)];await withTelemetry(_0x1585f3[_0x48d3bf(0x1a9)],()=>featureCreate(_0x1565fa['name'],{'description':_0x1565fa['description'],'scenarios':_0x42debc}));})[_0x26cc7a(0x1b8)](_0x26cc7a(0x135),![],_0x1f3654=>{const _0x1e9a37=_0x26cc7a;return _0x1f3654['option'](_0x1585f3['VwWKv'],{'type':'boolean','description':_0x1585f3['ukxQX']})[_0x1e9a37(0x1e4)]('limit',{'type':'number','alias':'l','description':_0x1e9a37(0x1cf),'default':0xa})['option'](_0x1585f3['GhBpK'],{'type':_0x1585f3[_0x1e9a37(0x151)],'alias':'o','description':_0x1585f3[_0x1e9a37(0x1be)],'default':0x0})[_0x1e9a37(0x1e4)](_0x1585f3['UnKsL'],{'type':_0x1585f3['MswmK'],'alias':'d','description':_0x1585f3[_0x1e9a37(0x1f1)],'default':![]});},async _0x14609d=>{const _0x14f992=_0x26cc7a;_0x1585f3['yrbFx'](warnRenamed,_0x1585f3[_0x14f992(0x11f)],_0x1585f3['GgECd']),await _0x1585f3['eVpIH'](withTelemetry,'feature\x20list',()=>featureList({'currentBranch':_0x14609d[_0x14f992(0xf7)],'limit':_0x14609d['limit'],'offset':_0x14609d['offset'],'includeDeleted':_0x14609d[_0x14f992(0x184)]}));})['command'](_0x1585f3[_0x26cc7a(0xfc)],![],_0x3bac68=>{const _0xcf083f=_0x26cc7a;return _0x3bac68[_0xcf083f(0x146)]('id',{'type':_0x1585f3[_0xcf083f(0x180)],'description':'Feature\x20review\x20ID'});},async _0x4e4250=>{const _0x2abe9f=_0x26cc7a;warnRenamed(_0x1585f3['OKIGM'],_0x1585f3['pDGwZ']),await _0x1585f3[_0x2abe9f(0x1c0)](withTelemetry,_0x1585f3['ttogZ'],()=>featureShow(_0x4e4250['id']));})['command'](_0x26cc7a(0x13f),![],_0x193cf0=>{const _0x98c5f6=_0x26cc7a;return _0x193cf0['positional']('id',{'type':_0x1585f3['ynDoY'],'description':_0x98c5f6(0xd0)});},async _0xdd2b43=>{const _0x204fed=_0x26cc7a;_0x1585f3['eVpIH'](warnRenamed,_0x1585f3[_0x204fed(0x1cd)],'ranger\x20resume'),await withTelemetry(_0x1585f3[_0x204fed(0x156)],()=>featureResume(_0xdd2b43['id']));})['command'](_0x1585f3['fRqLW'],![],_0x1061a5=>{const _0xbb9e97=_0x26cc7a;return _0x1061a5['positional']('description',{'type':'string','description':_0x1585f3[_0xbb9e97(0x182)],'demandOption':!![]})['option']('id',{'type':_0x1585f3['ynDoY'],'description':_0x1585f3[_0xbb9e97(0x188)]});},async _0x1600ec=>{const _0x41fcbb=_0x26cc7a;warnRenamed(_0x1585f3['oKjaa'],_0x41fcbb(0x145)),await withTelemetry(_0x1585f3[_0x41fcbb(0x1ce)],()=>featureAddScenario(_0x1600ec[_0x41fcbb(0x1ea)],_0x1600ec['id']));})[_0x26cc7a(0x1b8)](_0x26cc7a(0x117),![],_0x55ea8d=>{const _0x1230d7=_0x26cc7a;return _0x55ea8d[_0x1230d7(0x146)]('id',{'type':'string','description':_0x1230d7(0x125)});},async _0x56a8a8=>{const _0x2855f9=_0x26cc7a;warnRenamed(_0x1585f3['kQLLb'],'ranger\x20get-review'),await _0x1585f3['yrbFx'](withTelemetry,_0x1585f3[_0x2855f9(0x161)],()=>featureGetReview(_0x56a8a8['id']));})[_0x26cc7a(0x1b8)](_0x1585f3[_0x26cc7a(0xe4)],![],_0x3b8dae=>{const _0x3c8663=_0x26cc7a;return _0x3b8dae[_0x3c8663(0x146)]('id',{'type':_0x1585f3[_0x3c8663(0x180)],'description':_0x3c8663(0x154)});},async _0x22ff8d=>{_0x1585f3['eVpIH'](warnRenamed,'ranger\x20feature\x20delete','ranger\x20delete'),await withTelemetry(_0x1585f3['aDdYk'],()=>featureDelete(_0x22ff8d['id']));})[_0x26cc7a(0x1b8)](_0x26cc7a(0x124),![],_0x2e8d57=>{const _0x6b34a8=_0x26cc7a;return _0x2e8d57[_0x6b34a8(0x146)]('id',{'type':'string','description':_0x6b34a8(0x17c),'demandOption':!![]});},async _0x3a4705=>{const _0x5ac1c7=_0x26cc7a;_0x1585f3['biKPB'](warnRenamed,_0x5ac1c7(0x122),_0x5ac1c7(0x1dd)),await _0x1585f3[_0x5ac1c7(0x1c0)](withTelemetry,_0x1585f3['mdrXD'],()=>featureRestore(_0x3a4705['id']));})[_0x26cc7a(0x183)](0x1,_0x26cc7a(0x14e));})[_0x227e61(0x1b8)]('hook',![],_0x6fc311=>{const _0x589090=_0x227e61,_0x9f9f8b={'GnhLx':_0x589090(0x19e),'SIUpQ':function(_0x4ef526,_0x8cfd62,_0x1de79c){return _0x4ef526(_0x8cfd62,_0x1de79c);},'tLQWg':_0x589090(0x189),'cRnKM':_0x589090(0x1d5),'jFiXG':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'};return _0x6fc311[_0x589090(0x1b8)](_0x589090(0x153),'Enable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x23b2d2=>{const _0x4c91ac=_0x589090;return _0x23b2d2[_0x4c91ac(0x1e4)](_0x9f9f8b['GnhLx'],{'type':'string','description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x2c2839=>{const _0x547af8=_0x589090;await _0x9f9f8b[_0x547af8(0x12d)](withTelemetry,_0x547af8(0xe5),()=>hook(_0x547af8(0x153),_0x2c2839['session-id']));})[_0x589090(0x1b8)]('disable',_0x589090(0x155),_0x42433b=>{const _0x5056b4=_0x589090;return _0x42433b[_0x5056b4(0x1e4)]('session-id',{'type':_0x9f9f8b[_0x5056b4(0x120)],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x112a29=>{const _0x33ba72=_0x589090;await withTelemetry(_0x9f9f8b[_0x33ba72(0x15b)],()=>hook('disable',_0x112a29['session-id']));})['option']('name',{'type':_0x589090(0x189),'description':_0x9f9f8b[_0x589090(0x16c)]})['option'](_0x9f9f8b['GnhLx'],{'type':_0x9f9f8b[_0x589090(0x120)],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x3ed297=>{const _0x2db4b9=_0x227e61,_0x32a662={'ZIewS':function(_0x14cd52,_0x419536,_0x295573){return _0x14cd52(_0x419536,_0x295573);}};_0x3ed297['name']&&await _0x32a662['ZIewS'](hook,_0x3ed297['name'],_0x3ed297[_0x2db4b9(0x19e)]);})[_0x227e61(0x183)](0x1,_0x227e61(0x1d7))[_0x227e61(0xce)]()['fail'](async(_0x3db529,_0x2b86de,_0x376de3)=>{const _0x13d165=_0x227e61,_0x5d4b22={'dwBHa':_0x13d165(0x165),'xMMpu':function(_0x516332,_0x269a78){return _0x516332||_0x269a78;}},_0x9ffc50=sanitizeArgs(process[_0x13d165(0x12e)]['slice'](0x2)),_0x4e645a=getErrorType(_0x3db529,_0x2b86de);if(_0x3db529&&_0x3db529['includes']('Unknown\x20command')){const _0x103242=process['argv'][0x2];console[_0x13d165(0x143)]('\x0aUnknown\x20command:\x20'+_0x103242),console['error'](_0x5d4b22[_0x13d165(0x194)]);}else{if(_0x3db529)console[_0x13d165(0x143)]('\x0a'+_0x3db529+'\x0a');else _0x2b86de&&console['error']('\x0aError:\x20'+_0x2b86de[_0x13d165(0x171)]+'\x0a');}await logDesirePath({'rawCommand':_0x9ffc50,'errorMessage':_0x3db529||_0x2b86de?.[_0x13d165(0x171)],'errorType':_0x4e645a});const _0xd748b1=getCurrentCollector();_0xd748b1&&await _0xd748b1['trackCommandError'](_0x2b86de||new Error(_0x5d4b22['xMMpu'](_0x3db529,'Unknown\x20error'))),process[_0x13d165(0x174)](0x1);})['epilogue'](_0x227e61(0x1e5)+_0x227e61(0x1f3)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()['alias']('help','h')['parse']();
|
|
2
|
+
const _0x3c8c7f=_0xcb1d;(function(_0x5f461e,_0x4aa52d){const _0x269f70=_0xcb1d,_0x500a31=_0x5f461e();while(!![]){try{const _0x104a92=-parseInt(_0x269f70(0x2bd))/0x1+parseInt(_0x269f70(0x1ad))/0x2*(parseInt(_0x269f70(0x1ac))/0x3)+-parseInt(_0x269f70(0x266))/0x4+-parseInt(_0x269f70(0x2a7))/0x5+-parseInt(_0x269f70(0x2b1))/0x6*(parseInt(_0x269f70(0x265))/0x7)+-parseInt(_0x269f70(0x1e0))/0x8+parseInt(_0x269f70(0x18c))/0x9*(parseInt(_0x269f70(0x282))/0xa);if(_0x104a92===_0x4aa52d)break;else _0x500a31['push'](_0x500a31['shift']());}catch(_0x4b3bd4){_0x500a31['push'](_0x500a31['shift']());}}}(_0x2e9f,0x6b022));import _0x1efbb0 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x53d538=_0xcb1d,_0x447a7b={'ixQnz':function(_0x3ea736,_0x1bb06b){return _0x3ea736(_0x1bb06b);},'JiYqc':function(_0x1321bb,_0x20c0d4){return _0x1321bb(_0x20c0d4);},'wKvOd':'.ranger','IWCyg':'.env'};let _0x5a3ec5=process[_0x53d538(0x1ca)]();const _0x2cda61=_0x447a7b[_0x53d538(0x21b)](parse,_0x5a3ec5)[_0x53d538(0x1b6)];while(_0x5a3ec5!==_0x2cda61){if(_0x447a7b[_0x53d538(0x20f)](existsSync,join(_0x5a3ec5,_0x447a7b['wKvOd']))||_0x447a7b[_0x53d538(0x21b)](existsSync,join(_0x5a3ec5,_0x447a7b[_0x53d538(0x262)])))return _0x5a3ec5;_0x5a3ec5=dirname(_0x5a3ec5);}return process[_0x53d538(0x1ca)]();}_0x1efbb0[_0x3c8c7f(0x1ff)]({'path':join(findProjectRoot(),_0x3c8c7f(0x1ab))});import _0x4286d0 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 _0x2e9f(){const _0x45fa94=['Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','exitCode','Include\x20soft-deleted\x20feature\x20reviews','UcMKN','Profile\x20name','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','Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','Get\x20a\x20config\x20value','72IUpPJG','BnjvC','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','profile\x20config\x20unset','ErDMD','resume','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','force','XCuuk','\x20BLOCKED','dHHxe','project','USZAQ','list\x20<profile>','ranger\x20start','Config\x20key\x20to\x20remove','gwROt','TtvGy','env-name','env','juUjl','Config\x20key','blocked','HilXq','PvsSk','HxwhV','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','session-id','config\x20get','YzjMc','.env','29109PESBoC','76kogJPx','command','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','--notes','alias','argv','ranger\x20feature\x20show','DikJM','MbuCU','root','some','bEvgc','CFQiq','Manage\x20profile\x20configuration','MCqAD','ovNDt','ranger\x20profile\x20config\x20get','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','FUiPL','exit','ranger\x20profile\x20encrypt-auth','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','spYLY','scope','use\x20<env-name>','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','opencode','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','vKoDq','cwd','user','severity','update\x20<env-name>','Skip\x20Chromium\x20browser\x20installation','rvDTZ','eFxyH','iPPEY','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','FKkIp','hAhcV','feature\x20show','Environment\x20name','dscmE','enable','Documentation:\x0a','CsUFG','--profile','Uturi','VPhea','ranger\x20setup','setup-ci','148800yRXoHU','get-review','profile-name','DKnFQ','eEkoT','skip-chromium','wSFFI','Unknown\x20error','rOmKw','dFksM','kTRWT','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','Initialize\x20Ranger\x20in\x20your\x20project','EYrWm','Scenario\x20number\x20to\x20edit\x20(1-based)','slice','aUbzR','profile\x20config\x20list','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','Install\x20scope\x20for\x20skills','demandCommand','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','MWltK','ranger\x20delete','name','strictCommands','xzmTV','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','include-deleted','FhvAo','Unknown\x20command','config','JQFCY','ranger\x20auth\x20encrypt','.\x20[','ilssg','key','unset\x20<profile>\x20<key>','value','Install\x20skills\x20for\x20OpenCode','profile','You\x20must\x20specify\x20an\x20auth\x20subcommand','JqByr','start','Feature\x20review\x20description','current-branch','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','JiYqc','Ranger\x20API\x20token','\x0aIssues:','tnUoH','\x20PARTIAL','forEach','\x20FAILED','checklist','env\x20list','FCDsv','QQkDG','ranger\x20resume','ixQnz','Wefji','HAAdk','sKzQr','array','VmMtf','eInBA','cqsWN','positional','PecIt','edit-scenario','sGpjP','profile\x20encrypt-auth','pJyfM','fLoMN','restore\x20<id>','Evaluation:\x20','dmDqI','start\x20[token]','get\x20<profile>\x20<key>','Set\x20a\x20config\x20value','aaJZt','message','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','evaluation','Scenario\x20description','THwwq','jQyIL','help','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','UJwMz','ooNCO','skip-auth','wKAVx','BEGUo','baocg','setup-ci\x20<token>','option','rPSSW','WIUMr','uFKpZ','chvRG','use\x20<profile-name>','item','MMCxb','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','notes','HrSYa','yUuQz','AmqfT','xMpop','Number\x20of\x20feature\x20reviews\x20to\x20skip','parse','kpCMe','delete','create','ranger\x20feature\x20resume','HnXhr','boolean','avEgX','debug-outcome','eEDXe','qAepK','jLglT','profile\x20config\x20set','ranger\x20profile\x20use','tOqlm','hSZcm','eaFqp','list','length','IWCyg','dlZmM','Add\x20profile\x20configuration','7SVzBhJ','2973336hCxFvh','scenario','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','verify-feature','xytaN','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','token','ranger\x20restore','JjPIK','\x0aUnknown\x20command:\x20','url','eiJVV','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','Name\x20of\x20the\x20environment','pdFOC','ranger\x20show','add\x20env','XqxRG','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','feature\x20add-checklist-item','Mibjg','Name\x20of\x20the\x20profile\x20to\x20update','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','List\x20all\x20feature\x20reviews','zVQkJ','CFFyE','epilogue','2347330MiadyN','vAyBs','List\x20all\x20profiles','create\x20<name>','show','feature\x20restore','number','MePoh','start-path','hBiKO','SXExA','Feature\x20review\x20ID','error','update\x20<profile-name>','ggGgo','VVPEX','disable','trackCommandError','string','cdp-endpoint','ranger\x20profile\x20add','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','add\x20<profile-name>','--scenario','restore','xeKdE','IzAVL','ranger\x20go','ranger\x20profile\x20ls','profile\x20use','log','ZMlyi','feature\x20resume','LCfkJ','dkbhp','ranger\x20add-scenario','use','228695lgnVBL','limit','partial','Name\x20of\x20the\x20profile','Manage\x20profiles','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','claude','EOFUY','verified','RkBmd','1521708aeCWrq','hook','PWDGn','zaiSn','bmksH','scriptName','unset\x20<env>\x20<key>','delete\x20[id]','cyxPL','description','oWEgN','pKzVl','746981qSIGAm','ranger\x20create','FnymG','offset','ranger\x20profile\x20config\x20unset'];_0x2e9f=function(){return _0x45fa94;};return _0x2e9f();}import{verifyFeature}from'./commands/verifyFeature.js';function _0xcb1d(_0x2e544f,_0x1affe1){_0x2e544f=_0x2e544f-0x188;const _0x2e9f3b=_0x2e9f();let _0xcb1df3=_0x2e9f3b[_0x2e544f];return _0xcb1df3;}import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,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 _0x3f4fcc=>{const _0x19bf8e=_0x3c8c7f,_0x4e980c=getCurrentCollector();_0x4e980c&&await _0x4e980c['trackCommandError'](_0x3f4fcc),process[_0x19bf8e(0x2c3)]=0x1;});const rawArgs=process[_0x3c8c7f(0x1b2)]['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP=_0x3c8c7f(0x189),PROFILE_CONFIG_HELP=_0x3c8c7f(0x1be);function warnRenamed(_0x3cd624,_0x31e840){console['error']('\x0a'+_0x3cd624+'\x20is\x20now\x20'+_0x31e840+'\x0a');}function argUsed(_0x29511e){const _0x32ec39=_0x3c8c7f;return rawArgs[_0x32ec39(0x1b7)](_0x5f57d3=>_0x5f57d3===_0x29511e||_0x5f57d3['startsWith'](_0x29511e+'='));}function warnFlagRenamed(_0x169b7d,_0x4419c3,_0x1a63ea){const _0x288193={'djNDC':function(_0x3fb4b0,_0x32f3f5){return _0x3fb4b0(_0x32f3f5);}};_0x288193['djNDC'](argUsed,_0x4419c3)&&warnRenamed(_0x169b7d+'\x20'+_0x4419c3,_0x169b7d+'\x20'+_0x1a63ea);}async function runGoCommand(_0x50ddb2,_0x5de19f=![]){const _0x20f72a=_0x3c8c7f,_0x1c9812={'CldIf':function(_0x33e29a,_0x4ecd70){return _0x33e29a+_0x4ecd70;},'fnuvC':'ranger\x20verify-feature','KmueN':_0x20f72a(0x1db),'BnjvC':function(_0x9152df,_0x28c322,_0x1e9874,_0x55d4ba){return _0x9152df(_0x28c322,_0x1e9874,_0x55d4ba);},'RRnrT':'ranger\x20go','TtvGy':'--item','HxwhV':'--scenario','THwwq':'debug-outcome','jziFf':'debug-address-comments','RZygh':_0x20f72a(0x2af),'DMMsn':'\x20INCOMPLETE','dkbhp':'partial','VVPEX':'blocked','JKKEi':function(_0x29f31f,_0x576bb0){return _0x29f31f===_0x576bb0;}};_0x5de19f&&warnRenamed(_0x1c9812['fnuvC'],_0x20f72a(0x29d));warnFlagRenamed('ranger\x20go','--env',_0x1c9812['KmueN']),_0x1c9812[_0x20f72a(0x18d)](warnFlagRenamed,_0x1c9812['RRnrT'],'--task',_0x20f72a(0x1b0)),warnFlagRenamed('ranger\x20go',_0x1c9812[_0x20f72a(0x19e)],_0x1c9812[_0x20f72a(0x1a6)]);const _0x19b259=await verifyFeature({'profile':_0x50ddb2['profile']??_0x50ddb2['env'],'notes':_0x50ddb2[_0x20f72a(0x249)]??_0x50ddb2['task'],'scenario':_0x50ddb2[_0x20f72a(0x267)]??_0x50ddb2[_0x20f72a(0x246)],'startPath':_0x50ddb2[_0x20f72a(0x28a)],'debugOutcome':_0x50ddb2[_0x1c9812[_0x20f72a(0x235)]],'debugAddressComments':_0x50ddb2[_0x1c9812['jziFf']]});console[_0x20f72a(0x2a0)]('\x0a'+'='['repeat'](0x3c)),console['log'](_0x19b259[_0x20f72a(0x233)]===_0x1c9812['RZygh']?'\x20VERIFIED':_0x19b259[_0x20f72a(0x233)]==='incomplete'?_0x1c9812['DMMsn']:_0x19b259['evaluation']===_0x1c9812[_0x20f72a(0x2a4)]?_0x20f72a(0x213):_0x19b259[_0x20f72a(0x233)]===_0x1c9812[_0x20f72a(0x291)]?_0x20f72a(0x196):_0x20f72a(0x215)),console[_0x20f72a(0x2a0)]('='['repeat'](0x3c)),console['log']('Summary:\x20'+_0x19b259['summary']),console[_0x20f72a(0x2a0)](_0x20f72a(0x22b)+_0x19b259['evaluation']),console['log']('Reason:\x20'+_0x19b259['evaluationReason']),_0x19b259['issues']?.[_0x20f72a(0x261)]&&(console[_0x20f72a(0x2a0)](_0x20f72a(0x211)),_0x19b259['issues'][_0x20f72a(0x214)]((_0x908cbf,_0x9d3826)=>{const _0x43e75d=_0x20f72a;console[_0x43e75d(0x2a0)]('\x0a'+_0x1c9812['CldIf'](_0x9d3826,0x1)+_0x43e75d(0x202)+_0x908cbf[_0x43e75d(0x1cc)]+']\x20'+_0x908cbf['description']);})),process[_0x20f72a(0x1c0)](_0x1c9812['JKKEi'](_0x19b259['evaluation'],_0x1c9812['RZygh'])?0x0:0x1);}_0x4286d0(process[_0x3c8c7f(0x1b2)]['slice'](0x2))[_0x3c8c7f(0x2b6)]('ranger')['usage'](TOP_LEVEL_HELP)['version'](getCurrentVersion())['command']('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x58682d=>{const _0x198e0a=_0x3c8c7f,_0x3ecd7d={'UcMKN':_0x198e0a(0x294),'ovNDt':'Feature\x20review\x20name','USZAQ':'description','IzAVL':'Feature\x20review\x20description','gwROt':'checklist'};return _0x58682d[_0x198e0a(0x223)]('name',{'type':_0x3ecd7d[_0x198e0a(0x2c5)],'description':_0x3ecd7d[_0x198e0a(0x1bc)],'demandOption':!![]})[_0x198e0a(0x240)](_0x3ecd7d[_0x198e0a(0x199)],{'type':_0x3ecd7d[_0x198e0a(0x2c5)],'alias':'d','description':_0x3ecd7d[_0x198e0a(0x29c)]})['option'](_0x198e0a(0x267),{'type':'array','alias':'c','description':_0x198e0a(0x26b)})[_0x198e0a(0x240)](_0x3ecd7d[_0x198e0a(0x19d)],{'type':'array','hidden':!![]});},async _0x2e614f=>{const _0x2f7f58=_0x3c8c7f,_0x49e658={'hSZcm':function(_0x3b11b8,_0xde801a,_0x4eb45d,_0x11936f){return _0x3b11b8(_0xde801a,_0x4eb45d,_0x11936f);},'xBOca':_0x2f7f58(0x2be),'PecIt':'--scenario','mcXGB':function(_0x5dbe74,_0x6349d3,_0x5e1026){return _0x5dbe74(_0x6349d3,_0x5e1026);},'bmksH':_0x2f7f58(0x252)};_0x49e658[_0x2f7f58(0x25e)](warnFlagRenamed,_0x49e658['xBOca'],'--checklist',_0x49e658[_0x2f7f58(0x224)]);const _0x5c496d=_0x2e614f[_0x2f7f58(0x267)]||_0x2e614f['checklist'];await _0x49e658['mcXGB'](withTelemetry,_0x49e658[_0x2f7f58(0x2b5)],()=>featureCreate(_0x2e614f['name'],{'description':_0x2e614f[_0x2f7f58(0x2ba)],'scenarios':_0x5c496d}));})['command']('list',_0x3c8c7f(0x27e),_0xdaca44=>{const _0x381216=_0x3c8c7f,_0xc80763={'mitFL':'current-branch','bTxmw':_0x381216(0x279),'BcmHq':_0x381216(0x18e),'YwVVI':_0x381216(0x288),'RahXE':_0x381216(0x24e),'KEyOK':_0x381216(0x1fc)};return _0xdaca44['option'](_0xc80763['mitFL'],{'type':'boolean','description':_0xc80763['bTxmw']})['option'](_0x381216(0x2a8),{'type':_0x381216(0x288),'alias':'l','description':_0xc80763['BcmHq'],'default':0xa})[_0x381216(0x240)](_0x381216(0x2c0),{'type':_0xc80763['YwVVI'],'alias':'o','description':_0xc80763['RahXE'],'default':0x0})[_0x381216(0x240)](_0xc80763['KEyOK'],{'type':_0x381216(0x255),'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x5bccfa=>{const _0x51b80a=_0x3c8c7f,_0x48f969={'ycFix':function(_0x5b7f9e,_0x132ecc,_0x29d8da){return _0x5b7f9e(_0x132ecc,_0x29d8da);},'ZePbl':_0x51b80a(0x260)};await _0x48f969['ycFix'](withTelemetry,_0x48f969['ZePbl'],()=>featureList({'currentBranch':_0x5bccfa[_0x51b80a(0x20d)],'limit':_0x5bccfa['limit'],'offset':_0x5bccfa[_0x51b80a(0x2c0)],'includeDeleted':_0x5bccfa[_0x51b80a(0x1fc)]}));})[_0x3c8c7f(0x1ae)]('show\x20[id]',_0x3c8c7f(0x1c2),_0x38ab5f=>{const _0x31dbf3=_0x3c8c7f,_0x218228={'dHHxe':_0x31dbf3(0x294),'qAepK':'Feature\x20review\x20ID'};return _0x38ab5f[_0x31dbf3(0x223)]('id',{'type':_0x218228[_0x31dbf3(0x197)],'description':_0x218228[_0x31dbf3(0x259)]});},async _0x329791=>{const _0x2ae19f=_0x3c8c7f,_0x3cee95={'pKzVl':function(_0x21f56b,_0x4f5d08,_0x1995d7){return _0x21f56b(_0x4f5d08,_0x1995d7);}};await _0x3cee95[_0x2ae19f(0x2bc)](withTelemetry,_0x2ae19f(0x286),()=>featureShow(_0x329791['id']));})[_0x3c8c7f(0x1ae)]('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x242218=>{const _0x59e590=_0x3c8c7f,_0x113024={'VPhea':'string','ilssg':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'};return _0x242218[_0x59e590(0x223)]('id',{'type':_0x113024[_0x59e590(0x1dd)],'description':_0x113024[_0x59e590(0x203)]});},async _0x22b792=>{const _0x965443=_0x3c8c7f,_0x858cc2={'JZMgK':function(_0xa9a828,_0x3d4532,_0x559f16){return _0xa9a828(_0x3d4532,_0x559f16);},'rjmxH':_0x965443(0x192)};await _0x858cc2['JZMgK'](withTelemetry,_0x858cc2['rjmxH'],()=>featureResume(_0x22b792['id']));})['command']('add-scenario\x20<description>','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x1a6374=>{const _0x48b259=_0x3c8c7f,_0x4ec7dd={'HAAdk':'string','arpwn':_0x48b259(0x234)};return _0x1a6374['positional'](_0x48b259(0x2ba),{'type':_0x4ec7dd[_0x48b259(0x21d)],'description':_0x4ec7dd['arpwn'],'demandOption':!![]})[_0x48b259(0x240)]('id',{'type':_0x48b259(0x294),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x4bf4b3=>{const _0x1990e6=_0x3c8c7f,_0xce7cbf={'XCuuk':function(_0x15f7f4,_0x5c56cc,_0x321495){return _0x15f7f4(_0x5c56cc,_0x321495);}};await _0xce7cbf[_0x1990e6(0x195)](withTelemetry,'add-scenario',()=>featureAddScenario(_0x4bf4b3[_0x1990e6(0x2ba)],_0x4bf4b3['id']));})['command']('edit-scenario\x20<description>',_0x3c8c7f(0x193),_0x58ca05=>{const _0x4706a3=_0x3c8c7f,_0x5cbce4={'vgxHu':'description','sGpjP':'New\x20scenario\x20description','UAXFT':_0x4706a3(0x267),'LyFro':_0x4706a3(0x1ee),'OPZva':_0x4706a3(0x294),'pJyfM':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x58ca05[_0x4706a3(0x223)](_0x5cbce4['vgxHu'],{'type':'string','description':_0x5cbce4[_0x4706a3(0x226)],'demandOption':!![]})[_0x4706a3(0x240)](_0x5cbce4['UAXFT'],{'type':'number','description':_0x5cbce4['LyFro'],'demandOption':!![]})[_0x4706a3(0x240)]('id',{'type':_0x5cbce4['OPZva'],'description':_0x5cbce4[_0x4706a3(0x228)]});},async _0x286607=>{const _0x15aaa8=_0x3c8c7f;await withTelemetry(_0x15aaa8(0x225),()=>featureEditScenario(_0x286607[_0x15aaa8(0x2ba)],{'id':_0x286607['id'],'scenario':_0x286607[_0x15aaa8(0x267)]}));})['command']('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x2a7679=>{const _0x36396d={'OCUga':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x2a7679['positional']('id',{'type':'string','description':_0x36396d['OCUga']});},async _0x2ce984=>{const _0x3bd5ca=_0x3c8c7f,_0x3a2a1b={'avEgX':function(_0x7970d0,_0x3ebc23,_0x16997c){return _0x7970d0(_0x3ebc23,_0x16997c);}};await _0x3a2a1b[_0x3bd5ca(0x256)](withTelemetry,_0x3bd5ca(0x1e1),()=>featureGetReview(_0x2ce984['id']));})[_0x3c8c7f(0x1ae)](_0x3c8c7f(0x2b8),'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x382610=>{const _0x11c743=_0x3c8c7f,_0x2c1110={'nyPkw':_0x11c743(0x294)};return _0x382610[_0x11c743(0x223)]('id',{'type':_0x2c1110['nyPkw'],'description':_0x11c743(0x28d)});},async _0x2f8bd2=>{const _0x2da4d9=_0x3c8c7f,_0x703a54={'ErDMD':_0x2da4d9(0x251)};await withTelemetry(_0x703a54[_0x2da4d9(0x191)],()=>featureDelete(_0x2f8bd2['id']));})[_0x3c8c7f(0x1ae)](_0x3c8c7f(0x22a),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x3b562f=>{const _0x3e5b76=_0x3c8c7f,_0x438cd4={'wSFFI':'string'};return _0x3b562f['positional']('id',{'type':_0x438cd4[_0x3e5b76(0x1e6)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x21e5ec=>{const _0x19db24=_0x3c8c7f,_0x5e707d={'hwLRQ':function(_0x1eebdc,_0x323a0a,_0x5242a3){return _0x1eebdc(_0x323a0a,_0x5242a3);},'xuKPq':_0x19db24(0x29a)};await _0x5e707d['hwLRQ'](withTelemetry,_0x5e707d['xuKPq'],()=>featureRestore(_0x21e5ec['id']));})['command']('setup\x20[token]',_0x3c8c7f(0x1ec),_0x47a039=>{const _0x1d4d1c=_0x3c8c7f,_0x282bff={'kgmai':_0x1d4d1c(0x26d),'nCjqU':_0x1d4d1c(0x1e5),'xzmTV':_0x1d4d1c(0x294),'CFQiq':'project','oAybS':_0x1d4d1c(0x238),'rwYMU':'url','FKkIp':'force','Uturi':'boolean','EYrWm':_0x1d4d1c(0x1c7)};return _0x47a039['positional'](_0x282bff['kgmai'],{'type':_0x1d4d1c(0x294),'description':_0x1d4d1c(0x268)})['option'](_0x282bff['nCjqU'],{'type':'boolean','description':_0x1d4d1c(0x1d2),'default':![]})[_0x1d4d1c(0x240)](_0x1d4d1c(0x1c4),{'type':_0x282bff['xzmTV'],'choices':[_0x1d4d1c(0x1cb),_0x282bff[_0x1d4d1c(0x1b9)]],'description':_0x282bff['oAybS']})[_0x1d4d1c(0x240)](_0x282bff['rwYMU'],{'type':_0x282bff[_0x1d4d1c(0x1fa)],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x1d4d1c(0x240)](_0x282bff[_0x1d4d1c(0x1d3)],{'type':_0x282bff[_0x1d4d1c(0x1dc)],'description':_0x1d4d1c(0x26c),'default':![]})['option'](_0x282bff[_0x1d4d1c(0x1ed)],{'type':_0x282bff[_0x1d4d1c(0x1dc)],'description':_0x1d4d1c(0x232),'default':![]});},async _0x5d9506=>{const _0x49d12a=_0x3c8c7f,_0x3ad196={'vAyBs':function(_0x5b925a,_0x4026db,_0x39d797){return _0x5b925a(_0x4026db,_0x39d797);}};await _0x3ad196[_0x49d12a(0x283)](withTelemetry,_0x49d12a(0x20b),_0x1c09d1=>start(_0x5d9506[_0x49d12a(0x26d)],{'skipChromium':_0x5d9506['skip-chromium'],'scope':_0x5d9506['scope'],'url':_0x5d9506['url'],'force':_0x5d9506[_0x49d12a(0x194)],'opencode':_0x5d9506['opencode']},_0x1c09d1));})[_0x3c8c7f(0x1ae)](_0x3c8c7f(0x23f),_0x3c8c7f(0x1c6),_0xa3648c=>{const _0x2e8dd4=_0x3c8c7f,_0x27999b={'tATzA':'token','eEDXe':_0x2e8dd4(0x210),'MvYrI':_0x2e8dd4(0x208),'aaJZt':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','kTRWT':'base-url','SXExA':_0x2e8dd4(0x294)};return _0xa3648c['positional'](_0x27999b['tATzA'],{'type':_0x2e8dd4(0x294),'description':_0x27999b[_0x2e8dd4(0x258)],'demandOption':!![]})['option'](_0x27999b['MvYrI'],{'type':'string','description':_0x27999b[_0x2e8dd4(0x230)]})[_0x2e8dd4(0x240)](_0x27999b[_0x2e8dd4(0x1ea)],{'type':_0x27999b[_0x2e8dd4(0x28c)],'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})['option'](_0x2e8dd4(0x1e5),{'type':'boolean','description':_0x2e8dd4(0x1ce),'default':![]});},async _0x3ac1ae=>{const _0x4de13a=_0x3c8c7f,_0x14ff1c={'CaxOD':_0x4de13a(0x1df)};await withTelemetry(_0x14ff1c['CaxOD'],_0x24c7bf=>setupCi(_0x3ac1ae[_0x4de13a(0x26d)],{'profile':_0x3ac1ae['profile'],'baseUrl':_0x3ac1ae['base-url'],'skipChromium':_0x3ac1ae[_0x4de13a(0x1e5)]},_0x24c7bf));})['command']('login','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x18a0ee=_0x3c8c7f,_0x18a071={'xytaN':'login'};await withTelemetry(_0x18a071[_0x18a0ee(0x26a)],()=>login());})['command']('skillup','Install\x20Ranger\x20skills',_0x3f56fa=>{const _0x5c105e=_0x3c8c7f,_0x4cda0f={'Qjvuq':'opencode','YHVTM':'boolean','HilXq':_0x5c105e(0x207),'gWabR':'string','yIZQN':'user'};return _0x3f56fa['option'](_0x4cda0f['Qjvuq'],{'type':_0x4cda0f['YHVTM'],'description':_0x4cda0f[_0x5c105e(0x1a4)],'default':![]})[_0x5c105e(0x240)](_0x5c105e(0x1c4),{'type':_0x4cda0f['gWabR'],'choices':[_0x4cda0f['yIZQN'],_0x5c105e(0x198)],'description':_0x5c105e(0x1f3)});},async _0x3ff217=>{const _0x49aad5=_0x3c8c7f,_0x3da6f3={'sKzQr':function(_0x4dae8d,_0x45cb6e){return _0x4dae8d(_0x45cb6e);},'kpCMe':function(_0x2b6684,_0x5b933d,_0x4425d5){return _0x2b6684(_0x5b933d,_0x4425d5);}},_0x2b29bf=_0x3da6f3[_0x49aad5(0x21e)](Boolean,_0x3ff217['opencode']);await _0x3da6f3[_0x49aad5(0x250)](withTelemetry,'skillup',()=>skillup({'autoInstall':_0x3ff217['scope'],'platform':_0x2b29bf?'opencode':_0x49aad5(0x2ad)}));})[_0x3c8c7f(0x1ae)]('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x26ebc1=_0x3c8c7f,_0x3c668d={'JqByr':function(_0x2aa313,_0x5980bc,_0x224a11){return _0x2aa313(_0x5980bc,_0x224a11);}};await _0x3c668d[_0x26ebc1(0x20a)](withTelemetry,'clean',()=>clean());})[_0x3c8c7f(0x1ae)](_0x3c8c7f(0x208),_0x3c8c7f(0x2ab),_0x2bd683=>{const _0x457148=_0x3c8c7f,_0xe1fbff={'YzjMc':_0x457148(0x294),'CfArl':'boolean','FCDsv':'skip-auth','jLglT':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','HnXhr':'force','JQFCY':function(_0x4dc37d,_0x14402d,_0x8d7198,_0x42ab09){return _0x4dc37d(_0x14402d,_0x8d7198,_0x42ab09);},'ooNCO':function(_0x538674,_0x4746e){return _0x538674(_0x4746e);},'dscmE':_0x457148(0x29f),'hBiKO':'Profile\x20name','chvRG':_0x457148(0x227),'aUbzR':_0x457148(0x1e2),'eInBA':'profile\x20update','eEkoT':'key','ATTJB':'Config\x20value','lytXy':'profile\x20config\x20get','FnymG':function(_0x5bf332,_0x316793,_0x19bf13){return _0x5bf332(_0x316793,_0x19bf13);},'uhRJa':_0x457148(0x19c),'wneQB':function(_0x4a9d80,_0x10feaa,_0x2828cd){return _0x4a9d80(_0x10feaa,_0x2828cd);},'rPSSW':_0x457148(0x22e),'ACAqz':_0x457148(0x18b),'XNBLl':'List\x20all\x20config\x20for\x20a\x20profile','WIUMr':_0x457148(0x205),'baocg':'Update\x20authentication\x20for\x20an\x20existing\x20profile','ZdjmW':_0x457148(0x1ba),'hoCDR':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x2bd683['usage'](PROFILE_HELP)['command'](_0x457148(0x298),_0x457148(0x264),_0x6b30bd=>{const _0x1bab9c=_0x457148;return _0x6b30bd[_0x1bab9c(0x223)](_0x1bab9c(0x1e2),{'type':_0xe1fbff[_0x1bab9c(0x1aa)],'description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0xe1fbff['CfArl'],'description':_0x1bab9c(0x18a),'default':![]})['option'](_0xe1fbff[_0x1bab9c(0x218)],{'type':_0xe1fbff['CfArl'],'description':_0xe1fbff[_0x1bab9c(0x25a)],'default':![]})['option']('url',{'type':'string','description':_0x1bab9c(0x18f)})[_0x1bab9c(0x240)](_0xe1fbff[_0x1bab9c(0x254)],{'type':'boolean','description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})[_0x1bab9c(0x240)](_0x1bab9c(0x295),{'type':_0xe1fbff['YzjMc'],'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'});},async _0x33950a=>{const _0x341eac=_0x457148;await _0xe1fbff[_0x341eac(0x200)](withTelemetry,'profile\x20add',_0x4dff16=>addEnv(_0x33950a['profile-name'],{'ci':_0x33950a['ci'],'skipAuth':_0x33950a['skip-auth'],'url':_0x33950a[_0x341eac(0x271)],'force':_0x33950a['force'],'cdpEndpoint':_0x33950a['cdp-endpoint']},_0x4dff16),{'isElectron':_0xe1fbff[_0x341eac(0x23a)](Boolean,_0x33950a['cdp-endpoint'])});})['command'](_0x457148(0x245),'Switch\x20to\x20using\x20a\x20specific\x20profile',_0x1a8580=>{const _0x1dec1a=_0x457148;return _0x1a8580['positional']('profile-name',{'type':_0x1dec1a(0x294),'description':_0x1dec1a(0x2aa),'demandOption':!![]});},async _0x55d1cb=>{const _0x3c6636=_0x457148;await withTelemetry(_0xe1fbff[_0x3c6636(0x1d7)],()=>useEnv(_0x55d1cb['profile-name']));})[_0x457148(0x1ae)]('encrypt-auth\x20<profile>',_0x457148(0x2c2),_0x524fa5=>{const _0xc4198=_0x457148;return _0x524fa5[_0xc4198(0x223)](_0xc4198(0x208),{'type':_0xe1fbff['YzjMc'],'description':_0xe1fbff['hBiKO'],'demandOption':!![]});},async _0x5e5d4=>{const _0x53d67c=_0x457148;await withTelemetry(_0xe1fbff[_0x53d67c(0x244)],()=>authEncrypt(_0x5e5d4['profile']));})[_0x457148(0x1ae)]('ls',_0x457148(0x284),()=>{},async()=>{await withTelemetry('profile\x20ls',()=>envList());})['command'](_0x457148(0x28f),_0xe1fbff[_0x457148(0x23e)],_0xb57755=>{const _0x4dd12c=_0x457148;return _0xb57755[_0x4dd12c(0x223)](_0xe1fbff[_0x4dd12c(0x1f0)],{'type':_0xe1fbff['YzjMc'],'description':_0x4dd12c(0x27c),'demandOption':!![]});},async _0x1f36fd=>{const _0x42cb55=_0x457148;await withTelemetry(_0xe1fbff[_0x42cb55(0x221)],_0x8af81d=>updateEnv(_0x1f36fd['profile-name'],_0x8af81d));})['command']('config',_0xe1fbff['ZdjmW'],_0xef1e21=>{const _0x14d14b=_0x457148,_0x339c1f={'FUiPL':function(_0x12a58c,_0x51ba67,_0x11f741){return _0xe1fbff['wneQB'](_0x12a58c,_0x51ba67,_0x11f741);},'mMMlT':_0x14d14b(0x25b),'iPPEY':_0x14d14b(0x204),'YLeQg':_0x14d14b(0x1a2)};return _0xef1e21['usage'](PROFILE_CONFIG_HELP)[_0x14d14b(0x1ae)]('set\x20<profile>\x20<key>\x20<value>',_0x14d14b(0x22f),_0x512d0f=>{const _0x3ac2d5=_0x14d14b;return _0x512d0f['positional'](_0x3ac2d5(0x208),{'type':_0xe1fbff[_0x3ac2d5(0x1aa)],'description':_0x3ac2d5(0x188),'demandOption':!![]})[_0x3ac2d5(0x223)](_0xe1fbff[_0x3ac2d5(0x1e4)],{'type':_0x3ac2d5(0x294),'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x3ac2d5(0x223)]('value',{'type':'string','description':_0xe1fbff['ATTJB'],'demandOption':!![]});},async _0x35c637=>{const _0x21f457=_0x14d14b;await _0x339c1f[_0x21f457(0x1bf)](withTelemetry,_0x339c1f['mMMlT'],()=>configSet(_0x35c637[_0x21f457(0x208)],_0x35c637[_0x21f457(0x204)],_0x35c637['value']));})[_0x14d14b(0x1ae)](_0xe1fbff[_0x14d14b(0x241)],_0xe1fbff['ACAqz'],_0x24fe28=>{const _0x5cd9b3=_0x14d14b;return _0x24fe28[_0x5cd9b3(0x223)](_0x5cd9b3(0x208),{'type':_0x5cd9b3(0x294),'description':'Profile\x20name','demandOption':!![]})[_0x5cd9b3(0x223)](_0x339c1f[_0x5cd9b3(0x1d1)],{'type':'string','description':_0x339c1f['YLeQg'],'demandOption':!![]});},async _0xb5b558=>{await withTelemetry(_0xe1fbff['lytXy'],()=>configGet(_0xb5b558['profile'],_0xb5b558['key']));})['command'](_0x14d14b(0x19a),_0xe1fbff['XNBLl'],_0x4c5789=>{const _0xe7135e=_0x14d14b;return _0x4c5789[_0xe7135e(0x223)]('profile',{'type':'string','description':_0xe1fbff[_0xe7135e(0x28b)],'demandOption':!![]});},async _0x1180c0=>{const _0x2e7f3=_0x14d14b;await _0xe1fbff[_0x2e7f3(0x2bf)](withTelemetry,_0x2e7f3(0x1f1),()=>configList(_0x1180c0[_0x2e7f3(0x208)]));})['command'](_0xe1fbff[_0x14d14b(0x242)],'Remove\x20a\x20config\x20value',_0x3f0000=>{const _0x51fb12=_0x14d14b;return _0x3f0000[_0x51fb12(0x223)]('profile',{'type':_0x51fb12(0x294),'description':_0x51fb12(0x188),'demandOption':!![]})['positional'](_0xe1fbff['eEkoT'],{'type':_0xe1fbff[_0x51fb12(0x1aa)],'description':_0xe1fbff['uhRJa'],'demandOption':!![]});},async _0x1a91d0=>{const _0x5d383d=_0x14d14b;await withTelemetry(_0x5d383d(0x190),()=>configUnset(_0x1a91d0['profile'],_0x1a91d0[_0x5d383d(0x204)]));})[_0x14d14b(0x1f4)](0x1,'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand');})['demandCommand'](0x1,_0xe1fbff['hoCDR']);})[_0x3c8c7f(0x1ae)]('status',_0x3c8c7f(0x1a7),()=>{},async()=>{const _0x35408d={'IrNfI':function(_0x1b7841,_0x1075b6,_0x46e4ca){return _0x1b7841(_0x1075b6,_0x46e4ca);}};await _0x35408d['IrNfI'](withTelemetry,'status',()=>status());})['command']('update',_0x3c8c7f(0x1f5),()=>{},async()=>{const _0x9e354b=_0x3c8c7f,_0x372b72={'UJwMz':'update'};await withTelemetry(_0x372b72[_0x9e354b(0x239)],()=>update());})[_0x3c8c7f(0x1ae)]('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x4b735b=>{const _0x452a25=_0x3c8c7f,_0x4d36b6={'RkBmd':_0x452a25(0x294),'JjPIK':'number','HrSYa':'Scenario\x20index\x20(1-based)','UhoBU':_0x452a25(0x28a),'Mibjg':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','QQkDG':_0x452a25(0x2af),'cwpMz':'boolean','qKloC':_0x452a25(0x1a0),'xeKdE':_0x452a25(0x246)};return _0x4b735b[_0x452a25(0x240)]('profile',{'type':_0x452a25(0x294),'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})['option'](_0x452a25(0x249),{'type':_0x4d36b6['RkBmd'],'description':_0x452a25(0x1fb)})['option']('scenario',{'type':_0x4d36b6[_0x452a25(0x26f)],'description':_0x4d36b6[_0x452a25(0x24a)]})['option'](_0x4d36b6['UhoBU'],{'type':'string','description':_0x4d36b6[_0x452a25(0x27b)]})[_0x452a25(0x240)](_0x452a25(0x257),{'type':'string','hidden':!![],'choices':[_0x4d36b6[_0x452a25(0x219)],_0x452a25(0x2a9),_0x452a25(0x1a3),'failed','incomplete']})[_0x452a25(0x240)]('debug-address-comments',{'type':_0x4d36b6['cwpMz'],'hidden':!![]})['option'](_0x4d36b6['qKloC'],{'type':_0x4d36b6[_0x452a25(0x2b0)],'hidden':!![]})[_0x452a25(0x240)]('task',{'type':_0x4d36b6[_0x452a25(0x2b0)],'hidden':!![]})[_0x452a25(0x240)](_0x4d36b6[_0x452a25(0x29b)],{'type':_0x4d36b6['JjPIK'],'hidden':!![]});},async _0x372c6c=>{const _0x26b519={'bcdnJ':function(_0x529733,_0x1c9e05){return _0x529733(_0x1c9e05);}};await _0x26b519['bcdnJ'](runGoCommand,_0x372c6c);})[_0x3c8c7f(0x1ae)]('auth',![],_0x530345=>{const _0x3fcfe7=_0x3c8c7f,_0x291033={'Wefji':'string','hvcfp':_0x3fcfe7(0x188),'DFQxU':function(_0x4d9c8f,_0x12770e){return _0x4d9c8f(_0x12770e);}};return _0x530345[_0x3fcfe7(0x1ae)]('encrypt\x20<profile>',![],_0x261349=>{const _0x3b93fa=_0x3fcfe7;return _0x261349['positional']('profile',{'type':_0x291033[_0x3b93fa(0x21c)],'description':_0x291033['hvcfp'],'demandOption':!![]});},async _0x335455=>{const _0x44c7be=_0x3fcfe7;warnRenamed(_0x44c7be(0x201),_0x44c7be(0x1c1)),await _0x291033['DFQxU'](authEncrypt,_0x335455[_0x44c7be(0x208)]);})['demandCommand'](0x1,_0x3fcfe7(0x209));},()=>{})['command'](_0x3c8c7f(0x22d),![],_0x3450bf=>{const _0x1f4069=_0x3c8c7f,_0x149995={'dzkKb':'skip-chromium','DikJM':_0x1f4069(0x255),'pnqcP':_0x1f4069(0x1cb),'KAymm':_0x1f4069(0x198),'yUuQz':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'};return _0x3450bf[_0x1f4069(0x223)](_0x1f4069(0x26d),{'type':'string','description':_0x1f4069(0x268)})[_0x1f4069(0x240)](_0x149995['dzkKb'],{'type':_0x149995[_0x1f4069(0x1b4)],'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})[_0x1f4069(0x240)]('scope',{'type':_0x1f4069(0x294),'choices':[_0x149995['pnqcP'],_0x149995['KAymm']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x1f4069(0x271),{'type':_0x1f4069(0x294),'description':_0x149995[_0x1f4069(0x24b)]})['option']('force',{'type':'boolean','description':_0x1f4069(0x26c),'default':![]});},async _0x46bc0e=>{const _0x2d2663=_0x3c8c7f,_0x34b9f9={'EOFUY':function(_0x31d4c8,_0x132b5d,_0x111872){return _0x31d4c8(_0x132b5d,_0x111872);},'DKnFQ':_0x2d2663(0x19b)};_0x34b9f9[_0x2d2663(0x2ae)](warnRenamed,_0x34b9f9[_0x2d2663(0x1e3)],_0x2d2663(0x1de)),await withTelemetry('start',_0x1b82cc=>start(_0x46bc0e['token'],{'skipChromium':_0x46bc0e[_0x2d2663(0x1e5)],'scope':_0x46bc0e[_0x2d2663(0x1c4)],'url':_0x46bc0e['url'],'force':_0x46bc0e['force']},_0x1b82cc));})['command'](_0x3c8c7f(0x269),![],_0x1f11cb=>{const _0x2318ec=_0x3c8c7f,_0x1cbd03={'PUrTy':_0x2318ec(0x246),'BksAi':'profile','cqsWN':_0x2318ec(0x1af),'IJcEc':'string','NQPQT':_0x2318ec(0x2af),'dmDqI':'blocked','pLRYq':'incomplete'};return _0x1f11cb[_0x2318ec(0x240)](_0x2318ec(0x1a0),{'type':'string','description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x2318ec(0x240)]('task',{'type':'string','description':_0x2318ec(0x248)})['option'](_0x1cbd03['PUrTy'],{'type':_0x2318ec(0x288),'description':'Scenario\x20index\x20(1-based)'})[_0x2318ec(0x240)](_0x1cbd03['BksAi'],{'type':_0x2318ec(0x294),'hidden':!![]})['option'](_0x2318ec(0x249),{'type':'string','hidden':!![]})['option'](_0x2318ec(0x267),{'type':_0x2318ec(0x288),'hidden':!![]})[_0x2318ec(0x240)]('start-path',{'type':_0x2318ec(0x294),'description':_0x1cbd03[_0x2318ec(0x222)]})[_0x2318ec(0x240)](_0x2318ec(0x257),{'type':_0x1cbd03['IJcEc'],'hidden':!![],'choices':[_0x1cbd03['NQPQT'],'partial',_0x1cbd03[_0x2318ec(0x22c)],'failed',_0x1cbd03['pLRYq']]});},async _0x50975b=>{await runGoCommand(_0x50975b,!![]);})['command']('add\x20env\x20<env-name>',![],_0x4667cb=>{const _0x35416f=_0x3c8c7f,_0x3b9b05={'QKVjZ':'env-name','xEfwd':_0x35416f(0x294),'cyxPL':'boolean','MbuCU':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','wkITB':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x4667cb['positional'](_0x3b9b05['QKVjZ'],{'type':_0x3b9b05['xEfwd'],'description':_0x35416f(0x273),'demandOption':!![]})['option']('ci',{'type':_0x3b9b05[_0x35416f(0x2b9)],'description':_0x3b9b05[_0x35416f(0x1b5)],'default':![]})[_0x35416f(0x240)]('skip-auth',{'type':_0x3b9b05['cyxPL'],'description':_0x3b9b05['wkITB'],'default':![]});},async _0xf4a637=>{const _0x102d47=_0x3c8c7f,_0xb516cd={'wKAVx':function(_0x384481,_0x55d7ed,_0x182263){return _0x384481(_0x55d7ed,_0x182263);},'uCyyT':'ranger\x20add\x20env'};_0xb516cd[_0x102d47(0x23c)](warnRenamed,_0xb516cd['uCyyT'],_0x102d47(0x296)),await withTelemetry(_0x102d47(0x277),_0x3b2e7b=>addEnv(_0xf4a637['env-name'],{'ci':_0xf4a637['ci'],'skipAuth':_0xf4a637[_0x102d47(0x23b)]},_0x3b2e7b));})[_0x3c8c7f(0x1ae)](_0x3c8c7f(0x1c5),![],_0x574eb5=>{const _0x1f85c4=_0x3c8c7f,_0xdf1c73={'euXvZ':_0x1f85c4(0x294),'tONCZ':_0x1f85c4(0x274)};return _0x574eb5['positional'](_0x1f85c4(0x19f),{'type':_0xdf1c73['euXvZ'],'description':_0xdf1c73['tONCZ'],'demandOption':!![]});},async _0x9ee331=>{const _0x59edbd=_0x3c8c7f,_0x487ed6={'ZMlyi':function(_0x35d790,_0x3fc666,_0x1bb44e){return _0x35d790(_0x3fc666,_0x1bb44e);},'MMCxb':_0x59edbd(0x2a6)};_0x487ed6[_0x59edbd(0x2a1)](warnRenamed,'ranger\x20use',_0x59edbd(0x25c)),await withTelemetry(_0x487ed6[_0x59edbd(0x247)],()=>useEnv(_0x9ee331[_0x59edbd(0x19f)]));})['command'](_0x3c8c7f(0x1ff),![],_0x381157=>{const _0x4f0053=_0x3c8c7f,_0x5f2dee={'vKoDq':_0x4f0053(0x294),'hAhcV':_0x4f0053(0x2ac),'MCqAD':function(_0x4e134c,_0x1ccf97,_0xac5e88){return _0x4e134c(_0x1ccf97,_0xac5e88);},'noUOr':function(_0x358337,_0x31a975,_0x40ea1b){return _0x358337(_0x31a975,_0x40ea1b);},'CFFyE':'Environment\x20name','vKpOo':'Config\x20key','spYLY':function(_0x139c3c,_0x43462f,_0x183911){return _0x139c3c(_0x43462f,_0x183911);},'rOmKw':'env','tXjwM':function(_0x423ea2,_0x513fb7,_0x473900){return _0x423ea2(_0x513fb7,_0x473900);},'iYBLR':_0x4f0053(0x204),'jQyIL':'get\x20<env>\x20<key>','QInFb':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x381157['command']('set\x20<env>\x20<key>\x20<value>',![],_0x377acf=>{const _0x5b4101=_0x4f0053;return _0x377acf[_0x5b4101(0x223)](_0x5b4101(0x1a0),{'type':_0x5f2dee['vKoDq'],'description':_0x5b4101(0x1d6),'demandOption':!![]})['positional']('key',{'type':_0x5b4101(0x294),'description':_0x5f2dee[_0x5b4101(0x1d4)],'demandOption':!![]})['positional'](_0x5b4101(0x206),{'type':_0x5f2dee[_0x5b4101(0x1c9)],'description':'Config\x20value','demandOption':!![]});},async _0x5f4d1f=>{const _0x439b78=_0x4f0053;_0x5f2dee[_0x439b78(0x1bb)](warnRenamed,'ranger\x20config\x20set','ranger\x20profile\x20config\x20set'),await _0x5f2dee['noUOr'](withTelemetry,'config\x20set',()=>configSet(_0x5f4d1f['env'],_0x5f4d1f[_0x439b78(0x204)],_0x5f4d1f[_0x439b78(0x206)]));})['command'](_0x5f2dee[_0x4f0053(0x236)],![],_0x34d6bd=>{const _0x198652=_0x4f0053;return _0x34d6bd[_0x198652(0x223)]('env',{'type':'string','description':_0x5f2dee[_0x198652(0x280)],'demandOption':!![]})[_0x198652(0x223)]('key',{'type':'string','description':_0x5f2dee['vKpOo'],'demandOption':!![]});},async _0x3646cc=>{const _0x1446de=_0x4f0053;_0x5f2dee['MCqAD'](warnRenamed,'ranger\x20config\x20get',_0x1446de(0x1bd)),await _0x5f2dee[_0x1446de(0x1c3)](withTelemetry,_0x1446de(0x1a9),()=>configGet(_0x3646cc['env'],_0x3646cc['key']));})['command']('list\x20<env>',![],_0xe09847=>{const _0x3336cd=_0x4f0053;return _0xe09847['positional'](_0x5f2dee[_0x3336cd(0x1e8)],{'type':_0x5f2dee[_0x3336cd(0x1c9)],'description':_0x3336cd(0x1d6),'demandOption':!![]});},async _0x15d197=>{const _0x2688f4=_0x4f0053;_0x5f2dee['tXjwM'](warnRenamed,'ranger\x20config\x20list','ranger\x20profile\x20config\x20list'),await withTelemetry('config\x20list',()=>configList(_0x15d197[_0x2688f4(0x1a0)]));})['command'](_0x4f0053(0x2b7),![],_0x50d44c=>{const _0x1ff79f=_0x4f0053;return _0x50d44c[_0x1ff79f(0x223)](_0x1ff79f(0x1a0),{'type':'string','description':_0x5f2dee['CFFyE'],'demandOption':!![]})[_0x1ff79f(0x223)](_0x5f2dee['iYBLR'],{'type':'string','description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x243922=>{const _0x17467a=_0x4f0053;warnRenamed('ranger\x20config\x20unset',_0x17467a(0x2c1)),await withTelemetry('config\x20unset',()=>configUnset(_0x243922[_0x17467a(0x1a0)],_0x243922['key']));})['demandCommand'](0x1,_0x5f2dee['QInFb']);})['command']('env',![],_0x4e048c=>{const _0x257540=_0x3c8c7f,_0x919dec={'VmMtf':function(_0xb35932,_0x3457a8,_0x11cbe2){return _0xb35932(_0x3457a8,_0x11cbe2);},'FoitO':_0x257540(0x217),'qVaUK':'string','PWDGn':'Name\x20of\x20the\x20environment\x20to\x20update','bEvgc':'ranger\x20profile\x20update','AZVbj':'env\x20update','CsUFG':_0x257540(0x1cd),'MWltK':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x4e048c['command']('ls',![],()=>{},async()=>{const _0x5dc7ce=_0x257540;_0x919dec[_0x5dc7ce(0x220)](warnRenamed,'ranger\x20env\x20ls',_0x5dc7ce(0x29e)),await _0x919dec['VmMtf'](withTelemetry,_0x919dec['FoitO'],()=>envList());})['command'](_0x919dec[_0x257540(0x1da)],![],_0x47f131=>{const _0x59f9fc=_0x257540;return _0x47f131['positional'](_0x59f9fc(0x19f),{'type':_0x919dec['qVaUK'],'description':_0x919dec[_0x59f9fc(0x2b3)],'demandOption':!![]});},async _0x56a094=>{const _0x230276=_0x257540;warnRenamed('ranger\x20env\x20update',_0x919dec[_0x230276(0x1b8)]),await _0x919dec[_0x230276(0x220)](withTelemetry,_0x919dec['AZVbj'],_0x5e0cbd=>updateEnv(_0x56a094['env-name'],_0x5e0cbd));})[_0x257540(0x1f4)](0x1,_0x919dec[_0x257540(0x1f6)]);})['command']('feature',![],_0x27e8d4=>{const _0x3405af=_0x3c8c7f,_0x26aa6d={'wXtbX':_0x3405af(0x1f8),'zaiSn':_0x3405af(0x294),'ggGgo':'description','uFKpZ':'array','FhvAo':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','puZkF':'scenario','pdFOC':function(_0x30adc9,_0x19315a,_0x454604){return _0x30adc9(_0x19315a,_0x454604);},'zzASl':'ranger\x20feature\x20create','juUjl':_0x3405af(0x2be),'cMlSx':function(_0x474769,_0x14e681,_0x31e516){return _0x474769(_0x14e681,_0x31e516);},'CMLLh':'feature\x20create','gSiBL':'current-branch','AZCkU':_0x3405af(0x2a8),'lXIwA':'Number\x20of\x20feature\x20reviews\x20to\x20skip','fLoMN':_0x3405af(0x1fc),'DGUpf':_0x3405af(0x2c4),'AmqfT':_0x3405af(0x28d),'BEGUo':_0x3405af(0x1b3),'HGJEL':_0x3405af(0x20e),'dFksM':function(_0x1c35ce,_0x4d22b4,_0x2011dd){return _0x1c35ce(_0x4d22b4,_0x2011dd);},'quzjq':_0x3405af(0x2a2),'wFoAo':'Scenario\x20description','wLrSz':'ranger\x20feature\x20add-checklist-item','eFxyH':_0x3405af(0x27d),'zVQkJ':'ranger\x20feature\x20get-feedback','qDjSf':'ranger\x20get-review','XqxRG':'feature\x20get-feedback','xogEi':_0x3405af(0x1f7),'dlZmM':function(_0x4ed9c6,_0x3a13bc,_0x2dfd05){return _0x4ed9c6(_0x3a13bc,_0x2dfd05);},'zcGcv':function(_0x5b5af1,_0x58773c,_0x5b13f3){return _0x5b5af1(_0x58773c,_0x5b13f3);},'sQvrn':_0x3405af(0x287),'rvDTZ':'get-feedback\x20[id]','pGEpI':'delete\x20[id]','kDnjj':'restore\x20<id>','MePoh':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x27e8d4[_0x3405af(0x1ae)](_0x3405af(0x285),![],_0x1747ff=>{const _0x4f119b=_0x3405af;return _0x1747ff[_0x4f119b(0x223)](_0x26aa6d['wXtbX'],{'type':_0x26aa6d[_0x4f119b(0x2b4)],'description':'Feature\x20review\x20name','demandOption':!![]})[_0x4f119b(0x240)](_0x26aa6d[_0x4f119b(0x290)],{'type':_0x4f119b(0x294),'alias':'d','description':_0x4f119b(0x20c)})[_0x4f119b(0x240)](_0x4f119b(0x216),{'type':_0x26aa6d[_0x4f119b(0x243)],'alias':'c','description':_0x26aa6d[_0x4f119b(0x1fd)]})['option'](_0x26aa6d['puZkF'],{'type':_0x4f119b(0x21f),'hidden':!![]});},async _0x12f4a7=>{const _0x4e75fe=_0x3405af;_0x26aa6d[_0x4e75fe(0x275)](warnRenamed,_0x26aa6d['zzASl'],_0x26aa6d[_0x4e75fe(0x1a1)]),warnFlagRenamed(_0x26aa6d['juUjl'],'--checklist',_0x4e75fe(0x299));const _0x380ffb=_0x12f4a7['scenario']||_0x12f4a7['checklist'];await _0x26aa6d['cMlSx'](withTelemetry,_0x26aa6d['CMLLh'],()=>featureCreate(_0x12f4a7['name'],{'description':_0x12f4a7['description'],'scenarios':_0x380ffb}));})['command'](_0x3405af(0x260),![],_0xeb6d95=>{const _0x35f8ef=_0x3405af;return _0xeb6d95['option'](_0x26aa6d['gSiBL'],{'type':'boolean','description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x35f8ef(0x240)](_0x26aa6d['AZCkU'],{'type':_0x35f8ef(0x288),'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option'](_0x35f8ef(0x2c0),{'type':_0x35f8ef(0x288),'alias':'o','description':_0x26aa6d['lXIwA'],'default':0x0})[_0x35f8ef(0x240)](_0x26aa6d[_0x35f8ef(0x229)],{'type':'boolean','alias':'d','description':_0x26aa6d['DGUpf'],'default':![]});},async _0x120719=>{const _0x110c20=_0x3405af;warnRenamed('ranger\x20feature\x20list','ranger\x20list'),await withTelemetry('feature\x20list',()=>featureList({'currentBranch':_0x120719['current-branch'],'limit':_0x120719['limit'],'offset':_0x120719['offset'],'includeDeleted':_0x120719[_0x110c20(0x1fc)]}));})[_0x3405af(0x1ae)]('show\x20[id]',![],_0x6530a=>{return _0x6530a['positional']('id',{'type':'string','description':_0x26aa6d['AmqfT']});},async _0x27c34e=>{const _0x4e7af9=_0x3405af;warnRenamed(_0x26aa6d[_0x4e7af9(0x23d)],_0x4e7af9(0x276)),await withTelemetry(_0x4e7af9(0x1d5),()=>featureShow(_0x27c34e['id']));})[_0x3405af(0x1ae)]('resume\x20[id]',![],_0x4315b0=>{return _0x4315b0['positional']('id',{'type':_0x26aa6d['zaiSn'],'description':_0x26aa6d['HGJEL']});},async _0x36c750=>{const _0x51df7f=_0x3405af;warnRenamed(_0x51df7f(0x253),_0x51df7f(0x21a)),await _0x26aa6d[_0x51df7f(0x1e9)](withTelemetry,_0x26aa6d['quzjq'],()=>featureResume(_0x36c750['id']));})[_0x3405af(0x1ae)]('add-checklist-item\x20<description>',![],_0x2ff47b=>{const _0x2b8bf1=_0x3405af;return _0x2ff47b[_0x2b8bf1(0x223)](_0x2b8bf1(0x2ba),{'type':_0x26aa6d[_0x2b8bf1(0x2b4)],'description':_0x26aa6d['wFoAo'],'demandOption':!![]})['option']('id',{'type':_0x2b8bf1(0x294),'description':_0x2b8bf1(0x27d)});},async _0x42d2a0=>{const _0x526fb4=_0x3405af;warnRenamed(_0x26aa6d['wLrSz'],_0x526fb4(0x2a5)),await withTelemetry(_0x526fb4(0x27a),()=>featureAddScenario(_0x42d2a0[_0x526fb4(0x2ba)],_0x42d2a0['id']));})[_0x3405af(0x1ae)](_0x26aa6d[_0x3405af(0x1cf)],![],_0x44e36f=>{const _0x30ae30=_0x3405af;return _0x44e36f[_0x30ae30(0x223)]('id',{'type':_0x26aa6d[_0x30ae30(0x2b4)],'description':_0x26aa6d[_0x30ae30(0x1d0)]});},async _0x35c88f=>{const _0x3c8a03=_0x3405af;_0x26aa6d[_0x3c8a03(0x1e9)](warnRenamed,_0x26aa6d[_0x3c8a03(0x27f)],_0x26aa6d['qDjSf']),await _0x26aa6d['pdFOC'](withTelemetry,_0x26aa6d[_0x3c8a03(0x278)],()=>featureGetReview(_0x35c88f['id']));})['command'](_0x26aa6d['pGEpI'],![],_0x318396=>{const _0x1ac759=_0x3405af;return _0x318396['positional']('id',{'type':_0x26aa6d[_0x1ac759(0x2b4)],'description':_0x26aa6d[_0x1ac759(0x24c)]});},async _0x2a7136=>{warnRenamed('ranger\x20feature\x20delete',_0x26aa6d['xogEi']),await withTelemetry('feature\x20delete',()=>featureDelete(_0x2a7136['id']));})['command'](_0x26aa6d['kDnjj'],![],_0x1e6810=>{const _0x2aecb2=_0x3405af;return _0x1e6810['positional']('id',{'type':_0x26aa6d[_0x2aecb2(0x2b4)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x1a40b0=>{const _0x18781c=_0x3405af;_0x26aa6d[_0x18781c(0x263)](warnRenamed,'ranger\x20feature\x20restore',_0x18781c(0x26e)),await _0x26aa6d['zcGcv'](withTelemetry,_0x26aa6d['sQvrn'],()=>featureRestore(_0x1a40b0['id']));})[_0x3405af(0x1f4)](0x1,_0x26aa6d[_0x3405af(0x289)]);})[_0x3c8c7f(0x1ae)](_0x3c8c7f(0x2b2),![],_0x5626f7=>{const _0x312988=_0x3c8c7f,_0x258a91={'LCfkJ':_0x312988(0x294),'WljYD':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','eiJVV':function(_0x58d81c,_0x542c25,_0x2faeee){return _0x58d81c(_0x542c25,_0x2faeee);},'oWEgN':'session-id','TApjU':'hook:disable','PvsSk':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','tnUoH':_0x312988(0x1f8),'xMpop':_0x312988(0x1f2)};return _0x5626f7['command'](_0x312988(0x1d8),_0x258a91[_0x312988(0x1a5)],_0x41901c=>{const _0x40d6ee=_0x312988;return _0x41901c[_0x40d6ee(0x240)]('session-id',{'type':_0x258a91[_0x40d6ee(0x2a3)],'description':_0x258a91['WljYD']});},async _0x2f2dec=>{const _0x244853=_0x312988;await _0x258a91[_0x244853(0x272)](withTelemetry,'hook:enable',()=>hook('enable',_0x2f2dec['session-id']));})[_0x312988(0x1ae)]('disable',_0x312988(0x1eb),_0x42bc58=>{const _0x1552ef=_0x312988;return _0x42bc58[_0x1552ef(0x240)](_0x258a91['oWEgN'],{'type':_0x258a91[_0x1552ef(0x2a3)],'description':_0x1552ef(0x1c8)});},async _0xc6ac52=>{const _0x465751=_0x312988;await withTelemetry(_0x258a91['TApjU'],()=>hook(_0x465751(0x292),_0xc6ac52[_0x465751(0x1a8)]));})[_0x312988(0x240)](_0x258a91[_0x312988(0x212)],{'type':_0x258a91['LCfkJ'],'description':_0x258a91[_0x312988(0x24d)]})[_0x312988(0x240)](_0x258a91[_0x312988(0x2bb)],{'type':_0x312988(0x294),'description':_0x312988(0x1c8)});},async _0x932b8c=>{const _0x439600={'NpISz':'session-id'};_0x932b8c['name']&&await hook(_0x932b8c['name'],_0x932b8c[_0x439600['NpISz']]);})[_0x3c8c7f(0x1f4)](0x1,'You\x20must\x20specify\x20a\x20command')[_0x3c8c7f(0x1f9)]()['fail'](async(_0x4999ca,_0x3255f9,_0x1b200a)=>{const _0x5d191a=_0x3c8c7f,_0xc4a2f7={'SUzBT':function(_0x3f62fe,_0x2f0446,_0x31dde9){return _0x3f62fe(_0x2f0446,_0x31dde9);},'KaDDH':_0x5d191a(0x1fe),'eaFqp':function(_0x481afc,_0x4ffa08){return _0x481afc||_0x4ffa08;},'tOqlm':_0x5d191a(0x1e7)},_0x2d53f0=sanitizeArgs(process['argv'][_0x5d191a(0x1ef)](0x2)),_0x33a0e4=_0xc4a2f7['SUzBT'](getErrorType,_0x4999ca,_0x3255f9);if(_0x4999ca&&_0x4999ca['includes'](_0xc4a2f7['KaDDH'])){const _0x4ea6e9=process['argv'][0x2];console['error'](_0x5d191a(0x270)+_0x4ea6e9),console['error'](_0x5d191a(0x297));}else{if(_0x4999ca)console[_0x5d191a(0x28e)]('\x0a'+_0x4999ca+'\x0a');else _0x3255f9&&console['error']('\x0aError:\x20'+_0x3255f9[_0x5d191a(0x231)]+'\x0a');}await logDesirePath({'rawCommand':_0x2d53f0,'errorMessage':_0x4999ca||_0x3255f9?.[_0x5d191a(0x231)],'errorType':_0x33a0e4});const _0x49d01f=getCurrentCollector();_0x49d01f&&await _0x49d01f[_0x5d191a(0x293)](_0x3255f9||new Error(_0xc4a2f7[_0x5d191a(0x25f)](_0x4999ca,_0xc4a2f7[_0x5d191a(0x25d)]))),process['exit'](0x1);})[_0x3c8c7f(0x281)](_0x3c8c7f(0x1d9)+'\x20\x20https://docs.ranger.net\x0a'+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()[_0x3c8c7f(0x1b1)](_0x3c8c7f(0x237),'h')[_0x3c8c7f(0x24f)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5b47(_0x179e3e,_0x385e8d){_0x179e3e=_0x179e3e-0x188;const _0x3c4c2c=_0x3c4c();let _0x5b47d1=_0x3c4c2c[_0x179e3e];return _0x5b47d1;}function _0x3c4c(){const _0x1938f2=['Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','Removed\x20existing\x20profile\x20at\x20','close','cRRAh','FGewY','✓\x20Auth\x20state\x20saved\x20to:\x20','fetch\x20failed','\x0a📋\x20Authentication\x20Setup','Enter\x20a\x20different\x20URL','10IwUheu','\x22\x20already\x20exists.\x20Overwrite?','GfEIL','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','abort','test','TypeError','plnkV','BjaNl','cOyFG','root\x20(.ranger/)','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','jvgoh','What\x20would\x20you\x20like\x20to\x20do?','26376FOfkkH','vSUhN','path','IEKeS','input','\x20\x20\x20When\x20you\x20are\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.\x0a','Non-interactive\x20mode\x20detected.\x0aThe\x20\x22ranger\x20profile\x20add\x22\x20command\x20requires\x20interactive\x20browser\x20authentication\x20and\x20cannot\x20be\x20run\x20in\x20non-TTY\x20environments\x20(CI,\x20scripts,\x20Claude\x20Code).\x0aTo\x20configure\x20profiles\x20non-interactively:\x0a\x20\x201.\x20Run\x20\x22ranger\x20profile\x20add\x20<name>\x20--ci\x22\x20in\x20an\x20interactive\x20terminal\x20first\x0a\x20\x202.\x20Commit\x20the\x20encrypted\x20auth\x20file\x20(.ranger/ci/<profile>/auth.json.enc)\x20to\x20git\x0a\x20\x203.\x20Use\x20\x22ranger\x20setup\x20[token]\x22\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime','legacy','DGhBK','nSvTy','confirm','jGEWb','config_write','mIgeb','hqroS','\x0a\x20\x20Could\x20not\x20reach\x20','baseUrl','\x20\x20\x20Creating\x20it\x20in\x20','2OXabiE','retry','url_setup','browser_auth','error','1421945KoIHlL','launch','newPage','location','HTTP\x20','status','mvEkw','log','action','\x22\x20already\x20exists\x20in\x20','CEOPh','settings.json','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','561642LmTYbK','12719564GJgjqR','trackPhaseEnd','668318KJVrTp','146616TsWjVT','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','skNxd','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','\x0a\x20\x20Profile\x20\x22','Use\x20','HEAD','4552029dNGrRV','bxcCR','\x22\x20configured','overwrite','goto','urduY','use_suggestion','isProtocolError','cDZNZ','Yeuls','prompt','trackPhaseStart','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','30GHIzBd','123VKJayT','Iowsc','newContext','jaDRY','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'];_0x3c4c=function(){return _0x1938f2;};return _0x3c4c();}(function(_0x1e4ac,_0x5b23bc){const _0x3a8cb6=_0x5b47,_0x1b8054=_0x1e4ac();while(!![]){try{const _0x27b6e6=parseInt(_0x3a8cb6(0x1ce))/0x1*(-parseInt(_0x3a8cb6(0x1b8))/0x2)+parseInt(_0x3a8cb6(0x18a))/0x3*(parseInt(_0x3a8cb6(0x1a6))/0x4)+parseInt(_0x3a8cb6(0x189))/0x5*(-parseInt(_0x3a8cb6(0x1cb))/0x6)+-parseInt(_0x3a8cb6(0x1bd))/0x7+-parseInt(_0x3a8cb6(0x1cf))/0x8+parseInt(_0x3a8cb6(0x1d6))/0x9*(parseInt(_0x3a8cb6(0x198))/0xa)+parseInt(_0x3a8cb6(0x1cc))/0xb;if(_0x27b6e6===_0x5b23bc)break;else _0x1b8054['push'](_0x1b8054['shift']());}catch(_0x32dd4f){_0x1b8054['push'](_0x1b8054['shift']());}}}(_0x3c4c,0x7570d));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x448104 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';async function checkUrlReachability(_0x5a36e5){const _0x38cad2=_0x5b47,_0x285f69={'cOyFG':function(_0x12262c,_0x11f5a5,_0xc1a84c){return _0x12262c(_0x11f5a5,_0xc1a84c);},'mvEkw':'manual','cDZNZ':function(_0x26079b,_0x4e0365){return _0x26079b(_0x4e0365);},'nSvTy':function(_0x1f3651,_0x4449cb){return _0x1f3651<_0x4449cb;},'jGEWb':'Invalid\x20URL','MigMk':function(_0xb63160,_0x47fabc){return _0xb63160===_0x47fabc;}};try{const _0x235de1=new AbortController(),_0x4f9ef9=_0x285f69[_0x38cad2(0x1a1)](setTimeout,()=>_0x235de1[_0x38cad2(0x19c)](),0x1388),_0x275449=await _0x285f69['cOyFG'](fetch,_0x5a36e5,{'method':_0x38cad2(0x1d5),'signal':_0x235de1['signal'],'redirect':_0x285f69[_0x38cad2(0x1c3)]});_0x285f69[_0x38cad2(0x1de)](clearTimeout,_0x4f9ef9);if(_0x285f69[_0x38cad2(0x1af)](_0x275449[_0x38cad2(0x1c2)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x38cad2(0x1c1)+_0x275449['status']};}catch(_0x1438a9){const _0x49cd2d=_0x1438a9,_0x50f299=_0x49cd2d['message']||_0x285f69[_0x38cad2(0x1de)](String,_0x1438a9),_0x171c79=_0x50f299['includes'](_0x285f69[_0x38cad2(0x1b1)])||_0x285f69['MigMk'](_0x49cd2d['name'],_0x38cad2(0x19e))||_0x50f299['includes'](_0x38cad2(0x195));return{'ok':![],'error':_0x50f299,'isProtocolError':_0x171c79};}}export async function addEnv(_0x4e7507,_0x321c0c={},_0x5ee040){const _0x717aab=_0x5b47,_0x4f6373={'KbeTb':function(_0x3f4430,_0xe86f3f,_0x5444ec,_0x309482){return _0x3f4430(_0xe86f3f,_0x5444ec,_0x309482);},'dXwDK':function(_0x5a28f1){return _0x5a28f1();},'WLSVc':function(_0x460072,_0x3bc6a7){return _0x460072(_0x3bc6a7);},'uJjjV':function(_0x536b4f,_0x5b12d5){return _0x536b4f===_0x5b12d5;},'BjaNl':_0x717aab(0x1d9),'RGLzm':function(_0x1e8b8c,_0x4fe824){return _0x1e8b8c===_0x4fe824;},'aRnoC':'shouldReplace','BPmLZ':'Aborted.','Iowsc':_0x717aab(0x1ca),'Yeuls':_0x717aab(0x1a3),'vSUhN':function(_0x58c905,_0x3959bf){return _0x58c905||_0x3959bf;},'NJKcP':'http://localhost:3000','Dmbqj':function(_0x270abf,_0x46e7c9){return _0x270abf(_0x46e7c9);},'AqpCI':'list','KrQbV':_0x717aab(0x1c5),'Frvus':_0x717aab(0x1a5),'FGewY':'use_suggestion','LgzzM':_0x717aab(0x197),'mIgeb':'continue','GfEIL':function(_0x5b4c30,_0x3c5e20){return _0x5b4c30===_0x3c5e20;},'JHifQ':_0x717aab(0x1ba),'jaDRY':function(_0xffb2e0,_0x29e5cc,_0x5ca005){return _0xffb2e0(_0x29e5cc,_0x5ca005);},'UoYVv':function(_0x1b43b7,_0x1dcceb){return _0x1b43b7(_0x1dcceb);},'DGhBK':'auth.json','cRRAh':_0x717aab(0x196),'RtwkV':function(_0x10b1a3,_0x4c6708){return _0x10b1a3(_0x4c6708);},'skNxd':'utf-8','TOiYn':'\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','CEOPh':function(_0x11ec6a,_0x541da3,_0x35887d){return _0x11ec6a(_0x541da3,_0x35887d);},'hqroS':_0x717aab(0x18e),'urduY':_0x717aab(0x1bb),'plnkV':_0x717aab(0x1b2),'jvgoh':_0x717aab(0x1c8),'KZqcX':function(_0x66c9cd,_0x31e32f,_0x13f942){return _0x66c9cd(_0x31e32f,_0x13f942);},'hkZkl':function(_0x11ac8d,_0x15a105){return _0x11ac8d(_0x15a105);},'IEKeS':_0x717aab(0x18f),'bxcCR':function(_0x20dffd,_0x2c66ce,_0x5dc2b1){return _0x20dffd(_0x2c66ce,_0x5dc2b1);}},_0x5e25f5=_0x321c0c['ci']??![],_0x816b98=_0x5e25f5?'ci':'local',_0x54ebed=_0x4f6373['KbeTb'](join,getRangerDir(),_0x816b98,_0x4e7507),_0xadf273=join(_0x4f6373['dXwDK'](getRangerDir),_0x816b98),_0x49f7f2=!_0x321c0c['skipAuth'],_0x56473f=process['stdin']['isTTY']&&process['stdout']['isTTY'];if(!_0x56473f&&_0x49f7f2)throw new Error(_0x717aab(0x1ac));const _0x5f3ea2=_0x4f6373['WLSVc'](findExistingEnv,_0x4e7507);let _0x22c9d5=null;if(_0x5f3ea2){if(_0x4f6373['uJjjV'](_0x5f3ea2[_0x717aab(0x1c0)],_0x816b98)){const {overwrite:_0x1f040a}=await _0x448104['prompt']([{'type':_0x717aab(0x1b0),'name':_0x4f6373[_0x717aab(0x1a0)],'message':'Profile\x20\x22'+_0x4e7507+_0x717aab(0x199),'default':![]}]);if(!_0x1f040a){console[_0x717aab(0x1c4)]('Aborted.');return;}_0x22c9d5=_0x5f3ea2;}else{const _0x36e6e5=_0x4f6373['RGLzm'](_0x5f3ea2[_0x717aab(0x1c0)],_0x717aab(0x1ad))?_0x717aab(0x1a2):_0x5f3ea2[_0x717aab(0x1c0)];console['error']('\x0a⚠️\x20\x20Profile\x20\x22'+_0x4e7507+_0x717aab(0x1c6)+_0x36e6e5+':\x20'+_0x5f3ea2['path']),console['error'](_0x717aab(0x1b7)+_0x816b98+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x3a8588}=await _0x448104['prompt']([{'type':_0x717aab(0x1b0),'name':_0x4f6373['aRnoC'],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x816b98+'?','default':![]}]);if(!_0x3a8588){console[_0x717aab(0x1c4)](_0x4f6373['BPmLZ']);return;}_0x22c9d5=_0x5f3ea2;}}_0x5ee040?.[_0x717aab(0x1e1)]('url_setup'),console['log']('\x0a🌐\x20Profile\x20Setup\x0a'),console['log'](_0x4f6373[_0x717aab(0x18b)]),console['log'](_0x717aab(0x1c9));let _0x426f2e='',_0x4201aa=![];while(!![]){const _0xc96152=await _0x448104[_0x717aab(0x1e0)]([{'type':_0x717aab(0x1aa),'name':'baseUrl','message':_0x4201aa?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x4f6373[_0x717aab(0x1df)],'default':_0x4f6373[_0x717aab(0x1a7)](_0x426f2e,_0x4f6373['NJKcP'])}]);_0x426f2e=_0xc96152[_0x717aab(0x1b6)];const _0x5ca1fa=await _0x4f6373['Dmbqj'](checkUrlReachability,_0x426f2e);if(_0x5ca1fa['ok'])break;const _0x22e2ea=/^[a-zA-Z][\w+.-]*:\/\//[_0x717aab(0x19d)](_0x426f2e),_0x161714=_0x5ca1fa[_0x717aab(0x1dd)]&&!_0x22e2ea,_0x212452=_0x161714?'http://'+_0x426f2e:null;_0x4201aa=!![],console['log'](_0x717aab(0x1b5)+_0x426f2e+':\x20'+_0x5ca1fa[_0x717aab(0x1bc)]);_0x212452&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x212452+'?');const {action:_0x26e89c}=await _0x448104['prompt']([{'type':_0x4f6373['AqpCI'],'name':_0x4f6373['KrQbV'],'message':_0x4f6373['Frvus'],'choices':[..._0x212452?[{'name':_0x717aab(0x1d4)+_0x212452,'value':_0x4f6373[_0x717aab(0x193)]}]:[],{'name':_0x4f6373['LgzzM'],'value':_0x717aab(0x1b9)},{'name':'Continue\x20anyway','value':_0x4f6373[_0x717aab(0x1b3)]}]}]);if(_0x4f6373[_0x717aab(0x19a)](_0x26e89c,_0x717aab(0x1dc))&&_0x212452){_0x426f2e=_0x212452;const _0xb9b8c2=await checkUrlReachability(_0x426f2e);if(_0xb9b8c2['ok'])break;console['log'](_0x717aab(0x188)+_0x426f2e+':\x20'+_0xb9b8c2['error']);}else{if(_0x26e89c==='continue')break;}}_0x5ee040?.[_0x717aab(0x1cd)](_0x4f6373['JHifQ']),await _0x4f6373[_0x717aab(0x18d)](mkdir,_0xadf273,{'recursive':!![]});const _0x488802=await _0x4f6373['UoYVv'](mkdtemp,join(_0xadf273,'.tmp-'+_0x4e7507+'-')),_0x2c2b09=join(_0x488802,_0x4f6373[_0x717aab(0x1ae)]);try{if(_0x49f7f2){_0x5ee040?.[_0x717aab(0x1e1)]('browser_auth'),console[_0x717aab(0x1c4)](_0x4f6373[_0x717aab(0x192)]),console['log']('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console['log'](_0x717aab(0x1ab)),await new Promise(_0x5ded84=>setTimeout(_0x5ded84,0xbb8));const _0x22a10b=await chromium[_0x717aab(0x1be)]({'headless':![]});try{const _0x2c9609=await _0x22a10b[_0x717aab(0x18c)]();await _0x4f6373['RtwkV'](addProfileSetupBanner,_0x2c9609);const _0x26bd4a=await _0x2c9609[_0x717aab(0x1bf)]();await _0x26bd4a[_0x717aab(0x1da)](_0x426f2e||'about:blank'),await new Promise(_0x4a514f=>{_0x26bd4a['on']('close',async()=>{try{console['log']('Saving\x20authentication\x20state...'),await _0x2c9609['storageState']({'path':_0x2c2b09});}catch{}_0x4a514f();});});}finally{await _0x22a10b[_0x717aab(0x191)]()['catch'](()=>{});}if(_0x5e25f5){const _0xa2ce58=await _0x4f6373['jaDRY'](readFile,_0x2c2b09,_0x4f6373[_0x717aab(0x1d1)]),_0x2b20f6=await getToken();if(!_0x2b20f6){console['error'](_0x4f6373['TOiYn']),await unlink(_0x2c2b09)['catch'](()=>{});throw new Error(_0x717aab(0x19b));}else{const _0x3590cf=encrypt(_0xa2ce58,_0x2b20f6);await _0x4f6373[_0x717aab(0x1c7)](writeFile,_0x2c2b09+'.enc',_0x3590cf),await unlink(_0x2c2b09),console[_0x717aab(0x1c4)](_0x717aab(0x1d2)+_0x2c2b09+'.enc'),console[_0x717aab(0x1c4)](_0x4f6373[_0x717aab(0x1b4)]),console[_0x717aab(0x1c4)]('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log'](_0x717aab(0x194)+_0x2c2b09);_0x5ee040?.[_0x717aab(0x1cd)](_0x4f6373[_0x717aab(0x1db)]);}_0x5ee040?.['trackPhaseStart'](_0x4f6373[_0x717aab(0x19f)]);const _0x1a213a={};_0x426f2e&&(_0x1a213a[_0x717aab(0x1b6)]=_0x426f2e);await _0x4f6373['CEOPh'](writeFile,join(_0x488802,_0x4f6373[_0x717aab(0x1a4)]),JSON['stringify'](_0x1a213a,null,0x2)),console[_0x717aab(0x1c4)]('✓\x20Created\x20settings:\x20'+_0x4f6373['KZqcX'](join,_0x54ebed,_0x4f6373[_0x717aab(0x1a4)]));if(_0x22c9d5?.['location']===_0x816b98){const _0x5519f0=_0x22c9d5[_0x717aab(0x1a8)]+'.backup-'+Date['now']();await rename(_0x22c9d5[_0x717aab(0x1a8)],_0x5519f0);try{await _0x4f6373[_0x717aab(0x18d)](rename,_0x488802,_0x54ebed);}catch(_0x269c45){await rename(_0x5519f0,_0x22c9d5[_0x717aab(0x1a8)]);throw _0x269c45;}try{await rm(_0x5519f0,{'recursive':!![]});}catch{console[_0x717aab(0x1c4)](_0x717aab(0x1d0)+_0x5519f0);}}else{await rename(_0x488802,_0x54ebed);if(_0x22c9d5)try{await rm(_0x22c9d5[_0x717aab(0x1a8)],{'recursive':!![]}),console[_0x717aab(0x1c4)](_0x717aab(0x190)+_0x22c9d5['path']);}catch{console[_0x717aab(0x1c4)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x22c9d5[_0x717aab(0x1a8)]);}}try{await _0x4f6373['hkZkl'](writeActiveProfileName,_0x4e7507),console[_0x717aab(0x1c4)]('\x20\x20Set\x20active\x20profile:\x20'+_0x4e7507);}catch{console['log'](_0x4f6373[_0x717aab(0x1a9)]);}_0x5ee040?.[_0x717aab(0x1cd)](_0x4f6373[_0x717aab(0x19f)]),console['log'](_0x717aab(0x1d3)+_0x4e7507+_0x717aab(0x1d8));}catch(_0x110c82){await _0x4f6373[_0x717aab(0x1d7)](rm,_0x488802,{'recursive':!![],'force':!![]});throw _0x110c82;}}
|
|
1
|
+
function _0x3730(_0xbcc0c,_0x37f2fc){_0xbcc0c=_0xbcc0c-0xf4;const _0x449481=_0x4494();let _0x37300e=_0x449481[_0xbcc0c];return _0x37300e;}(function(_0x27c580,_0x10576e){const _0x402e5f=_0x3730,_0x6000a5=_0x27c580();while(!![]){try{const _0x2af0f8=parseInt(_0x402e5f(0x108))/0x1+-parseInt(_0x402e5f(0x112))/0x2+-parseInt(_0x402e5f(0x12c))/0x3+-parseInt(_0x402e5f(0x12f))/0x4*(parseInt(_0x402e5f(0xf9))/0x5)+-parseInt(_0x402e5f(0x116))/0x6*(parseInt(_0x402e5f(0x111))/0x7)+-parseInt(_0x402e5f(0x10e))/0x8+parseInt(_0x402e5f(0x12b))/0x9*(parseInt(_0x402e5f(0x102))/0xa);if(_0x2af0f8===_0x10576e)break;else _0x6000a5['push'](_0x6000a5['shift']());}catch(_0x586b69){_0x6000a5['push'](_0x6000a5['shift']());}}}(_0x4494,0x5f313));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x31006c from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';function _0x4494(){const _0x223ef2=['eMXgK','\x20would\x20shadow\x20the\x20existing\x20profile.','mjATt','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','settings.json','name','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','root\x20(.ranger/)','Profile\x20\x22','test','legacy','ABAhQ','GOkqV','zyMcB','abort','hyRdZ','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','baseUrl','includes','now','Aborted.','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','location','\x20\x20\x20Creating\x20it\x20in\x20','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','.enc','PPiEJ','sPFaW','gUMWY','prompt','ljSeB','HEAD','nwqDX','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','JEdvD','10IENqAO','local','isTTY','auth.json','confirm','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','pmmSb','.backup-','dMkMB','1165630EOvhru','url','fetch\x20failed','RlUmO','HTTP\x20','error','127893QByOMf','Use\x20','log','rqpaY','stringify','pKjDH','392672GzCfAg','browser_auth','trackPhaseEnd','1337CiRloM','170830IRBqQF','status','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','continue','17448ijmwKv','close','shouldReplace','storageState','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','.tmp-','newiE','Enter\x20a\x20different\x20URL','gSUCH','path','force','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','\x20\x20Did\x20you\x20mean\x20','pVuTi','catch','\x0a🌐\x20Profile\x20Setup\x0a','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','FNbWU','use_suggestion','Saving\x20authentication\x20state...','about:blank','153eNxwxf','1324344QcMrnq','config_write','trackPhaseStart','1176364OCkLIP','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','sqCdJ','cdpEndpoint','UHILy'];_0x4494=function(){return _0x223ef2;};return _0x4494();}import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x232c50){const _0x3147d0=_0x3730,_0x9e1133={'RXcqw':function(_0x52f62a,_0x2d4208,_0x314e21){return _0x52f62a(_0x2d4208,_0x314e21);},'FCXus':_0x3147d0(0xf4),'SBveM':function(_0x10ffbf,_0x2f5ad4){return _0x10ffbf<_0x2f5ad4;},'zyMcB':'Invalid\x20URL','GNFMh':function(_0x3a8aaf,_0x12940b){return _0x3a8aaf===_0x12940b;},'ACJLG':'TypeError'};try{const _0x4d32a0=new AbortController(),_0x230405=_0x9e1133['RXcqw'](setTimeout,()=>_0x4d32a0[_0x3147d0(0x143)](),0x1388),_0x52997a=await fetch(_0x232c50,{'method':_0x9e1133['FCXus'],'signal':_0x4d32a0['signal'],'redirect':'manual'});clearTimeout(_0x230405);if(_0x9e1133['SBveM'](_0x52997a[_0x3147d0(0x113)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x3147d0(0x106)+_0x52997a[_0x3147d0(0x113)]};}catch(_0x2ebeea){const _0x5f7785=_0x2ebeea,_0x590707=_0x5f7785['message']||String(_0x2ebeea),_0x2ef44f=_0x590707['includes'](_0x9e1133[_0x3147d0(0x142)])||_0x9e1133['GNFMh'](_0x5f7785[_0x3147d0(0x13a)],_0x9e1133['ACJLG'])||_0x590707[_0x3147d0(0x147)](_0x3147d0(0x104));return{'ok':![],'error':_0x590707,'isProtocolError':_0x2ef44f};}}export async function addEnv(_0x496655,_0x496d82={},_0x253cc7){const _0x1ab41c=_0x3730,_0x6dd687={'afWml':function(_0x3acc49){return _0x3acc49();},'eMXgK':function(_0x4c5b0e,_0x3f9178,_0x58aaf7,_0x3d6d53){return _0x4c5b0e(_0x3f9178,_0x58aaf7,_0x3d6d53);},'hyRdZ':function(_0x37de2f,_0x3b19c9,_0x1fc1b0){return _0x37de2f(_0x3b19c9,_0x1fc1b0);},'YYWhw':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','JEdvD':_0x1ab41c(0x130),'LBdUc':'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','IsEQU':function(_0x541610,_0x73c738){return _0x541610(_0x73c738);},'gUMWY':function(_0x4dbfbf,_0x3d9aae){return _0x4dbfbf===_0x3d9aae;},'SggHu':_0x1ab41c(0x13f),'FNbWU':_0x1ab41c(0x13c),'YIQbN':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','aLJOE':function(_0x242f1f,_0x1fe27f){return _0x242f1f(_0x1fe27f);},'pmiaJ':_0x1ab41c(0x145),'ABAhQ':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','jCoTt':'input','dMkMB':_0x1ab41c(0x146),'zNVKG':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','pKjDH':'list','pmmSb':'action','wLzBe':_0x1ab41c(0x128),'UHILy':_0x1ab41c(0x11d),'mjATt':_0x1ab41c(0x115),'pVuTi':function(_0x48a9f0,_0x2fac4b){return _0x48a9f0(_0x2fac4b);},'ncWPd':function(_0x3cd908,_0x517318){return _0x3cd908(_0x517318);},'ZFkzQ':_0x1ab41c(0xf7),'huYhC':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','newiE':function(_0x39f941,_0x59c09f){return _0x39f941(_0x59c09f);},'sqCdJ':function(_0x510841,_0x344821,_0x523988){return _0x510841(_0x344821,_0x523988);},'GOkqV':'utf-8','BNVuu':function(_0x292ca4){return _0x292ca4();},'zFDxw':_0x1ab41c(0xf6),'UTeLD':function(_0x2aecde,_0x52a87b){return _0x2aecde(_0x52a87b);},'gSUCH':_0x1ab41c(0x11a),'nwqDX':_0x1ab41c(0x12d),'rqpaY':_0x1ab41c(0x139),'RlUmO':function(_0x470d8d,_0x3cfb0b,_0xde90cf){return _0x470d8d(_0x3cfb0b,_0xde90cf);},'ljSeB':function(_0x29ccaa,_0x270556){return _0x29ccaa(_0x270556);},'PPiEJ':_0x1ab41c(0x14a)},_0x1f0b91=_0x496d82['ci']??![],_0x527a3e=_0x1f0b91?'ci':_0x1ab41c(0xfa),_0x2a3e97=_0x6dd687[_0x1ab41c(0x134)](join,getRangerDir(),_0x527a3e,_0x496655),_0x11769f=_0x6dd687['hyRdZ'](join,getRangerDir(),_0x527a3e);if(_0x496d82[_0x1ab41c(0x132)]!==undefined&&_0x496d82['cdpEndpoint']['trim']()==='')throw new Error(_0x6dd687['YYWhw']);if(_0x496d82[_0x1ab41c(0x132)]&&_0x496d82['url'])throw new Error(_0x6dd687[_0x1ab41c(0xf8)]);if(_0x496d82['cdpEndpoint']&&_0x496d82['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 _0x31e672=Boolean(_0x496d82['cdpEndpoint']),_0x5bdf52=!_0x496d82['skipAuth']&&!_0x31e672,_0x224d49=process['stdin'][_0x1ab41c(0xfb)]&&process['stdout'][_0x1ab41c(0xfb)];if(!_0x224d49&&!_0x496d82['url']&&!_0x31e672)throw new Error(_0x6dd687['LBdUc']);const _0x4f89c5=_0x6dd687['IsEQU'](findExistingEnv,_0x496655);let _0x49ad72=null;if(_0x4f89c5){if(!_0x224d49)_0x49ad72=_0x4f89c5;else{if(_0x4f89c5['location']===_0x527a3e){const {overwrite:_0x2065dc}=await _0x31006c[_0x1ab41c(0x152)]([{'type':'confirm','name':'overwrite','message':_0x1ab41c(0x13d)+_0x496655+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x2065dc){console[_0x1ab41c(0x10a)](_0x1ab41c(0x149));return;}_0x49ad72=_0x4f89c5;}else{const _0x5263ca=_0x6dd687[_0x1ab41c(0x151)](_0x4f89c5['location'],_0x6dd687['SggHu'])?_0x6dd687[_0x1ab41c(0x127)]:_0x4f89c5['location'];console['error']('\x0a⚠️\x20\x20Profile\x20\x22'+_0x496655+'\x22\x20already\x20exists\x20in\x20'+_0x5263ca+':\x20'+_0x4f89c5['path']),console[_0x1ab41c(0x107)](_0x1ab41c(0x14c)+_0x527a3e+_0x1ab41c(0x135));const {shouldReplace:_0x2d7c4e}=await _0x31006c['prompt']([{'type':_0x1ab41c(0xfd),'name':_0x1ab41c(0x118),'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x527a3e+'?','default':![]}]);if(!_0x2d7c4e){console[_0x1ab41c(0x10a)](_0x1ab41c(0x149));return;}_0x49ad72=_0x4f89c5;}}}_0x253cc7?.[_0x1ab41c(0x12e)]('url_setup');let _0x431e71='';if(_0x31e672)console['log'](_0x1ab41c(0x137)),console[_0x1ab41c(0x10a)](_0x1ab41c(0x14d)+_0x496d82['cdpEndpoint']),console['log'](_0x6dd687['YIQbN']);else{if(_0x496d82['url']){_0x431e71=_0x496d82[_0x1ab41c(0x103)];const _0x1548ef=await _0x6dd687['aLJOE'](checkUrlReachability,_0x431e71);if(!_0x1548ef['ok']&&!_0x496d82[_0x1ab41c(0x120)])throw new Error('Could\x20not\x20reach\x20'+_0x431e71+':\x20'+_0x1548ef['error']+_0x1ab41c(0x121));!_0x1548ef['ok']&&_0x496d82[_0x1ab41c(0x120)]&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x431e71+':\x20'+_0x1548ef[_0x1ab41c(0x107)]+'\x20(continuing\x20with\x20--force)');}else{console['log'](_0x1ab41c(0x125)),console['log'](_0x6dd687['pmiaJ']),console[_0x1ab41c(0x10a)](_0x6dd687[_0x1ab41c(0x140)]);let _0x48aacf=![];while(!![]){const _0x2307d4=await _0x31006c['prompt']([{'type':_0x6dd687['jCoTt'],'name':_0x6dd687[_0x1ab41c(0x101)],'message':_0x48aacf?_0x1ab41c(0x126):_0x6dd687['zNVKG'],'default':_0x431e71||'http://localhost:3000'}]);_0x431e71=_0x2307d4['baseUrl'];const _0x3856d0=await checkUrlReachability(_0x431e71);if(_0x3856d0['ok'])break;const _0x452f3e=/^[a-zA-Z][\w+.-]*:\/\//[_0x1ab41c(0x13e)](_0x431e71),_0xe8f8c7=_0x3856d0['isProtocolError']&&!_0x452f3e,_0x5b50c6=_0xe8f8c7?'http://'+_0x431e71:null;_0x48aacf=!![],console[_0x1ab41c(0x10a)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x431e71+':\x20'+_0x3856d0[_0x1ab41c(0x107)]);_0x5b50c6&&console['log'](_0x1ab41c(0x122)+_0x5b50c6+'?');const {action:_0x13c9b3}=await _0x31006c[_0x1ab41c(0x152)]([{'type':_0x6dd687[_0x1ab41c(0x10d)],'name':_0x6dd687[_0x1ab41c(0xff)],'message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x5b50c6?[{'name':_0x1ab41c(0x109)+_0x5b50c6,'value':_0x6dd687['wLzBe']}]:[],{'name':_0x6dd687[_0x1ab41c(0x133)],'value':'retry'},{'name':'Continue\x20anyway','value':_0x6dd687[_0x1ab41c(0x136)]}]}]);if(_0x13c9b3==='use_suggestion'&&_0x5b50c6){_0x431e71=_0x5b50c6;const _0x29aec3=await _0x6dd687[_0x1ab41c(0x123)](checkUrlReachability,_0x431e71);if(_0x29aec3['ok'])break;console['log'](_0x1ab41c(0x114)+_0x431e71+':\x20'+_0x29aec3['error']);}else{if(_0x13c9b3===_0x1ab41c(0x115))break;}}}}_0x253cc7?.['trackPhaseEnd']('url_setup'),await mkdir(_0x11769f,{'recursive':!![]});const _0xf8c7ea=await _0x6dd687['ncWPd'](mkdtemp,join(_0x11769f,_0x1ab41c(0x11b)+_0x496655+'-')),_0x482180=_0x6dd687[_0x1ab41c(0x144)](join,_0xf8c7ea,_0x1ab41c(0xfc));try{if(_0x5bdf52){_0x253cc7?.['trackPhaseStart']('browser_auth'),console[_0x1ab41c(0x10a)]('\x0a📋\x20Authentication\x20Setup'),console[_0x1ab41c(0x10a)](_0x1ab41c(0x138)),console['log'](_0x1ab41c(0x13b));!_0x224d49?(console['log'](_0x6dd687['ZFkzQ']),console[_0x1ab41c(0x10a)](_0x6dd687['huYhC'])):console['log']('');await new Promise(_0x53a6c2=>setTimeout(_0x53a6c2,0xbb8));const _0x4b87c7=await chromium['launch']({'headless':![]});try{const _0x215c69=await _0x4b87c7['newContext']();await _0x6dd687[_0x1ab41c(0x11c)](addProfileSetupBanner,_0x215c69);const _0x3baac5=await _0x215c69['newPage']();await _0x3baac5['goto'](_0x431e71||_0x1ab41c(0x12a)),await new Promise(_0x4ceba9=>{const _0x509734=_0x1ab41c,_0x41348d={'sPFaW':function(_0x1457b3){return _0x6dd687['afWml'](_0x1457b3);}};_0x3baac5['on'](_0x509734(0x117),async()=>{const _0x31e117=_0x509734;try{console[_0x31e117(0x10a)](_0x31e117(0x129)),await _0x215c69[_0x31e117(0x119)]({'path':_0x482180});}catch{}_0x41348d[_0x31e117(0x150)](_0x4ceba9);});});}finally{await _0x4b87c7['close']()[_0x1ab41c(0x124)](()=>{});}if(_0x1f0b91){const _0x5e895f=await _0x6dd687[_0x1ab41c(0x131)](readFile,_0x482180,_0x6dd687[_0x1ab41c(0x141)]),_0x4ac4d2=await _0x6dd687['BNVuu'](getToken);if(!_0x4ac4d2){console['error']('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await unlink(_0x482180)['catch'](()=>{});throw new Error(_0x6dd687['zFDxw']);}else{const _0x395741=_0x6dd687[_0x1ab41c(0x131)](encrypt,_0x5e895f,_0x4ac4d2);await writeFile(_0x482180+_0x1ab41c(0x14e),_0x395741),await _0x6dd687['UTeLD'](unlink,_0x482180),console[_0x1ab41c(0x10a)](_0x1ab41c(0xfe)+_0x482180+'.enc'),console['log'](_0x6dd687[_0x1ab41c(0x11e)]),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log']('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x482180);_0x253cc7?.[_0x1ab41c(0x110)](_0x1ab41c(0x10f));}_0x253cc7?.[_0x1ab41c(0x12e)](_0x6dd687[_0x1ab41c(0xf5)]);const _0x1a73e2={};_0x431e71&&(_0x1a73e2[_0x1ab41c(0x146)]=_0x431e71);_0x496d82['cdpEndpoint']&&(_0x1a73e2['cdpEndpoint']=_0x496d82['cdpEndpoint'],_0x1a73e2['isElectron']=!![]);await _0x6dd687['sqCdJ'](writeFile,_0x6dd687[_0x1ab41c(0x144)](join,_0xf8c7ea,'settings.json'),JSON[_0x1ab41c(0x10c)](_0x1a73e2,null,0x2)),console['log']('✓\x20Created\x20settings:\x20'+_0x6dd687['hyRdZ'](join,_0x2a3e97,_0x6dd687[_0x1ab41c(0x10b)]));if(_0x6dd687[_0x1ab41c(0x151)](_0x49ad72?.[_0x1ab41c(0x14b)],_0x527a3e)){const _0x3428bb=_0x49ad72['path']+_0x1ab41c(0x100)+Date[_0x1ab41c(0x148)]();await _0x6dd687[_0x1ab41c(0x105)](rename,_0x49ad72[_0x1ab41c(0x11f)],_0x3428bb);try{await rename(_0xf8c7ea,_0x2a3e97);}catch(_0x10e51a){await rename(_0x3428bb,_0x49ad72[_0x1ab41c(0x11f)]);throw _0x10e51a;}try{await _0x6dd687[_0x1ab41c(0x105)](rm,_0x3428bb,{'recursive':!![]});}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x3428bb);}}else{await rename(_0xf8c7ea,_0x2a3e97);if(_0x49ad72)try{await rm(_0x49ad72['path'],{'recursive':!![]}),console[_0x1ab41c(0x10a)]('Removed\x20existing\x20profile\x20at\x20'+_0x49ad72['path']);}catch{console[_0x1ab41c(0x10a)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x49ad72['path']);}}try{await _0x6dd687[_0x1ab41c(0x153)](writeActiveProfileName,_0x496655),console[_0x1ab41c(0x10a)]('\x20\x20Set\x20active\x20profile:\x20'+_0x496655);}catch{console['log'](_0x6dd687[_0x1ab41c(0x14f)]);}_0x253cc7?.['trackPhaseEnd'](_0x6dd687[_0x1ab41c(0xf5)]),console[_0x1ab41c(0x10a)]('\x0a\x20\x20Profile\x20\x22'+_0x496655+'\x22\x20configured');}catch(_0x48047e){await rm(_0xf8c7ea,{'recursive':!![],'force':!![]});throw _0x48047e;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49bbca,_0x516ecf){const _0x4da39b=_0x172b,_0x826df6=_0x49bbca();while(!![]){try{const _0x3e1286=parseInt(_0x4da39b(0x110))/0x1*(parseInt(_0x4da39b(0x100))/0x2)+parseInt(_0x4da39b(0x115))/0x3*(-parseInt(_0x4da39b(0x102))/0x4)+-parseInt(_0x4da39b(0x10b))/0x5+-parseInt(_0x4da39b(0x10f))/0x6*(-parseInt(_0x4da39b(0x103))/0x7)+parseInt(_0x4da39b(0x10a))/0x8+-parseInt(_0x4da39b(0x104))/0x9+parseInt(_0x4da39b(0x109))/0xa*(parseInt(_0x4da39b(0x10d))/0xb);if(_0x3e1286===_0x516ecf)break;else _0x826df6['push'](_0x826df6['shift']());}catch(_0x4754bb){_0x826df6['push'](_0x826df6['shift']());}}}(_0x2ec1,0x20406));import{readFile,writeFile}from'fs/promises';function _0x172b(_0x1e04f4,_0x300e94){_0x1e04f4=_0x1e04f4-0xfe;const _0x2ec140=_0x2ec1();let _0x172b1f=_0x2ec140[_0x1e04f4];return _0x172b1f;}import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';function _0x2ec1(){const _0x5833bd=['1594692Dyciio','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','zYXZs','.enc','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','6150ekoYwC','34632oAKFIn','412030PGdyyc','CiqFV','3960adjQNy','log','18378kihOli','16cfIFly','GxrGm','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','zvdhH','No\x20auth.json\x20found\x20at\x20','42kROWth','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','auth.json','20728SxWmpV','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','11336alFijc','91CBEplJ'];_0x2ec1=function(){return _0x5833bd;};return _0x2ec1();}export async function authEncrypt(_0x21dc06){const _0x60dff6=_0x172b,_0x3688d5={'meAJp':function(_0x48db97,_0x18ce1a){return _0x48db97(_0x18ce1a);},'CiqFV':function(_0x191aa9,_0x3254cd){return _0x191aa9+_0x3254cd;},'QNjbi':_0x60dff6(0x107),'zYXZs':function(_0x3c5a72,_0x2751f1){return _0x3c5a72(_0x2751f1);},'zvdhH':function(_0x4dd3be){return _0x4dd3be();},'GxrGm':function(_0x2a0e1a,_0x4eb5bd,_0x12f066){return _0x2a0e1a(_0x4eb5bd,_0x12f066);},'KkDaB':function(_0x48f5fd,_0x43afe1,_0xfa7d30){return _0x48f5fd(_0x43afe1,_0xfa7d30);}},_0x18bf23=_0x3688d5['meAJp'](getEnvDir,_0x21dc06),_0x3d6476=join(_0x18bf23,_0x60dff6(0xff)),_0x5b70e3=_0x3688d5[_0x60dff6(0x10c)](_0x3d6476,_0x3688d5['QNjbi']);if(!_0x3688d5[_0x60dff6(0x106)](existsSync,_0x18bf23))throw new Error('Profile\x20\x22'+_0x21dc06+_0x60dff6(0x108)+_0x21dc06);if(!existsSync(_0x3d6476))throw new Error(_0x60dff6(0x114)+_0x3d6476+_0x60dff6(0x105));const _0x988890=await _0x3688d5[_0x60dff6(0x113)](getToken);if(!_0x988890)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x46df14=await readFile(_0x3d6476,'utf-8'),_0xfde285=_0x3688d5[_0x60dff6(0x111)](encrypt,_0x46df14,_0x988890);await _0x3688d5['KkDaB'](writeFile,_0x5b70e3,_0xfde285),console[_0x60dff6(0x10e)]('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x5b70e3),console[_0x60dff6(0x10e)](_0x60dff6(0x112)),console[_0x60dff6(0x10e)](_0x60dff6(0xfe)),_0x3688d5['meAJp'](existsSync,_0x5b70e3)&&(console['log'](_0x60dff6(0x101)),console[_0x60dff6(0x10e)]('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xdc9c87=_0x46bc;(function(_0x2b8d98,_0xe14383){const _0x5a39ff=_0x46bc,_0x4e5dca=_0x2b8d98();while(!![]){try{const _0x13a66f=parseInt(_0x5a39ff(0x216))/0x1*(parseInt(_0x5a39ff(0x1f9))/0x2)+parseInt(_0x5a39ff(0x1ea))/0x3*(-parseInt(_0x5a39ff(0x1e0))/0x4)+parseInt(_0x5a39ff(0x1eb))/0x5*(parseInt(_0x5a39ff(0x1df))/0x6)+parseInt(_0x5a39ff(0x1e5))/0x7*(-parseInt(_0x5a39ff(0x208))/0x8)+parseInt(_0x5a39ff(0x1e3))/0x9*(parseInt(_0x5a39ff(0x1e6))/0xa)+-parseInt(_0x5a39ff(0x1f7))/0xb*(-parseInt(_0x5a39ff(0x204))/0xc)+-parseInt(_0x5a39ff(0x1f6))/0xd;if(_0x13a66f===_0xe14383)break;else _0x4e5dca['push'](_0x4e5dca['shift']());}catch(_0x4b82ad){_0x4e5dca['push'](_0x4e5dca['shift']());}}}(_0x4e6a,0x9df16));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger',_0xdc9c87(0x21a),_0xdc9c87(0x218),_0xdc9c87(0x213)],opencodePluginName=_0xdc9c87(0x205);function _0x46bc(_0x347a48,_0x3789e9){_0x347a48=_0x347a48-0x1db;const _0x4e6ab9=_0x4e6a();let _0x46bc3e=_0x4e6ab9[_0x347a48];return _0x46bc3e;}function parseJsonc(_0x346293){const _0x5e266e=_0xdc9c87,_0x288859=_0x346293[_0x5e266e(0x210)](/\/\*[\s\S]*?\*\//g,''),_0x394d18=_0x288859[_0x5e266e(0x210)](/^\s*\/\/.*$/gm,''),_0x573440=_0x394d18['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x573440);}async function removeOpencodePluginConfig(_0x3d3153){const _0x205eca=_0xdc9c87,_0x69231={'sKtuQ':function(_0xf179ee,_0x43d878){return _0xf179ee!==_0x43d878;},'CEuTP':_0x205eca(0x1e8),'bADDK':'utf-8','TAHol':function(_0x4d5d43,_0xa8aacf){return _0x4d5d43===_0xa8aacf;},'JIQwg':function(_0x2efa7e,_0x1dab55){return _0x2efa7e===_0x1dab55;},'yKAic':function(_0x4003af,_0xcfe8db,_0x10f8cc){return _0x4003af(_0xcfe8db,_0x10f8cc);}};if(!existsSync(_0x3d3153))return![];let _0x203bd7;try{const _0x233c9d=await readFile(_0x3d3153,_0x69231[_0x205eca(0x215)]);_0x203bd7=parseJsonc(_0x233c9d);}catch{return![];}const _0x307a65=Array[_0x205eca(0x20a)](_0x203bd7['plugin'])?_0x203bd7['plugin']:[];if(_0x69231['TAHol'](_0x307a65[_0x205eca(0x21d)],0x0))return![];const _0x2c7e0f=_0x307a65[_0x205eca(0x1de)](_0x483322=>{const _0x5c517d=_0x205eca;if(_0x69231['sKtuQ'](typeof _0x483322,_0x69231[_0x5c517d(0x1f1)]))return!![];return _0x483322!==opencodePluginName;});if(_0x2c7e0f[_0x205eca(0x21d)]===_0x307a65['length'])return![];return _0x69231[_0x205eca(0x211)](_0x2c7e0f[_0x205eca(0x21d)],0x0)?delete _0x203bd7[_0x205eca(0x1fc)]:_0x203bd7[_0x205eca(0x1fc)]=_0x2c7e0f,await _0x69231[_0x205eca(0x1ef)](writeFile,_0x3d3153,JSON[_0x205eca(0x1ec)](_0x203bd7,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x28474f){const _0x2a3f66=_0xdc9c87,_0xe71f25={'mZFmV':_0x2a3f66(0x1fe),'ZsORh':'ranger@trailhead','iEHGm':'--scope','aTFxm':function(_0x33f3a8,_0x2f1c58,_0x4a3510,_0x406a83){return _0x33f3a8(_0x2f1c58,_0x4a3510,_0x406a83);},'mqsvw':_0x2a3f66(0x21b),'TyncE':'win32','PBaWw':'error'};return new Promise(_0x2156b8=>{const _0x1b61a6=_0x2a3f66,_0x120f32={'sduIJ':function(_0x5ec430,_0x4ef2d1){return _0x5ec430(_0x4ef2d1);}},_0x551627=[_0x1b61a6(0x1fc),_0xe71f25[_0x1b61a6(0x1f4)],_0xe71f25[_0x1b61a6(0x20f)]];_0x28474f&&_0x551627['push'](_0xe71f25['iEHGm'],_0x28474f);const _0x4bc322=_0xe71f25[_0x1b61a6(0x207)](spawn,_0xe71f25[_0x1b61a6(0x1dc)],_0x551627,{'stdio':_0x1b61a6(0x1ed),'shell':process[_0x1b61a6(0x219)]===_0xe71f25['TyncE']});_0x4bc322['on'](_0x1b61a6(0x20d),_0x271934=>{const _0x5bdb28=_0x1b61a6;_0x120f32[_0x5bdb28(0x1ee)](_0x2156b8,_0x271934===0x0);}),_0x4bc322['on'](_0xe71f25[_0x1b61a6(0x202)],()=>{_0x2156b8(![]);});});}async function removeMarketplace(){const _0x5af2d0=_0xdc9c87,_0x2cdc59={'WhOfq':function(_0x3a867c,_0xfd3de4){return _0x3a867c===_0xfd3de4;},'diDps':function(_0x4c7f22,_0x4f4ff3,_0x47d43a,_0x264bf6){return _0x4c7f22(_0x4f4ff3,_0x47d43a,_0x264bf6);},'Iowqs':_0x5af2d0(0x212),'uVIHQ':_0x5af2d0(0x201),'tKowG':'win32','hiAiR':'error'};return new Promise(_0x39e6a2=>{const _0x428f08=_0x5af2d0,_0x757598={'HIGAX':function(_0x4f2b3c,_0x17f084){return _0x4f2b3c(_0x17f084);}},_0x518c35=_0x2cdc59[_0x428f08(0x1f0)](spawn,_0x428f08(0x21b),[_0x428f08(0x1fc),_0x2cdc59[_0x428f08(0x1dd)],'remove',_0x2cdc59[_0x428f08(0x20b)]],{'stdio':_0x428f08(0x1ed),'shell':process['platform']===_0x2cdc59['tKowG']});_0x518c35['on']('close',_0x3b238d=>{const _0x48237f=_0x428f08;_0x39e6a2(_0x2cdc59[_0x48237f(0x20e)](_0x3b238d,0x0));}),_0x518c35['on'](_0x2cdc59[_0x428f08(0x1f8)],()=>{const _0x35db74=_0x428f08;_0x757598[_0x35db74(0x203)](_0x39e6a2,![]);});});}function _0x4e6a(){const _0x414ff1=['plugin','fDmXJ','uninstall','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','ANbXP','trailhead','PBaWw','HIGAX','5482812IPSJlF','@ranger-testing/opencode-plugin','myoDa','aTFxm','16aXYVXN','log','isArray','uVIHQ','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','close','WhOfq','ZsORh','replace','JIQwg','marketplace','e2e-test-recommender','dvEfA','bADDK','917117QXEjYl','rwDhY','bug-bash','platform','feature-tracker','claude','PwgLH','length','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','✓\x20Removed\x20.ranger/\x20directory','mqsvw','Iowqs','filter','222018XyILiJ','4VjidbL','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','AFvPZ','18mVaPwg','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','3034059aSeOsv','5277880MtIMuv','DKUxd','string','iPbja','2470341fCwqRt','60Bxdukr','stringify','pipe','sduIJ','yKAic','diDps','CEuTP','WkgjC','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','mZFmV','project','6972875DSPzxO','11BeEgkC','hiAiR','2jYFWpw','gaHcW','user'];_0x4e6a=function(){return _0x414ff1;};return _0x4e6a();}export async function clean(){const _0x2b205b=_0xdc9c87,_0x4ed0a9={'WhYXn':'✓\x20Removed\x20stored\x20credentials','myoDa':function(_0x5915f7){return _0x5915f7();},'gaHcW':function(_0x6edf62,_0x3051ba){return _0x6edf62(_0x3051ba);},'DKUxd':function(_0x559089,_0x44bff6,_0x2c5c95){return _0x559089(_0x44bff6,_0x2c5c95);},'plQAv':_0x2b205b(0x1db),'fDmXJ':function(_0xd33933,_0x1375eb,_0x4435e4){return _0xd33933(_0x1375eb,_0x4435e4);},'iPbja':function(_0x524a82){return _0x524a82();},'dvEfA':_0x2b205b(0x1f5),'rwDhY':function(_0xe5c7bc,_0x5634b8,_0x5d05e1){return _0xe5c7bc(_0x5634b8,_0x5d05e1);},'ANbXP':function(_0x341245,_0x5b4628){return _0x341245(_0x5b4628);},'XvhYd':'opencode.json','NXzAj':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','AFvPZ':'user','wltlq':_0x2b205b(0x21e),'PwgLH':function(_0x518c00,_0xa31897){return _0x518c00(_0xa31897);},'WkgjC':'✓\x20Removed\x20trailhead\x20marketplace'};console['log'](_0x2b205b(0x1e4));let _0xd8cf01=![];try{await deleteAllCredentials(),console['log'](_0x4ed0a9['WhYXn']),_0xd8cf01=!![];}catch{}const _0x5792b7=_0x4ed0a9[_0x2b205b(0x206)](getCacheFile);_0x4ed0a9['gaHcW'](existsSync,_0x5792b7)&&(await _0x4ed0a9['gaHcW'](rm,_0x5792b7),_0xd8cf01=!![]);const _0x3233d0=_0x4ed0a9['myoDa'](getRangerDir);existsSync(_0x3233d0)&&(await _0x4ed0a9[_0x2b205b(0x1e7)](rm,_0x3233d0,{'recursive':!![]}),console[_0x2b205b(0x209)](_0x4ed0a9['plQAv']),_0xd8cf01=!![]);const _0x3bd841=_0x4ed0a9[_0x2b205b(0x206)](getProjectSkillsDir);for(const _0x20e0e5 of skillsToRemove){const _0x3c7638=_0x4ed0a9[_0x2b205b(0x1fd)](join,_0x3bd841,_0x20e0e5);existsSync(_0x3c7638)&&(await rm(_0x3c7638,{'recursive':!![]}),console[_0x2b205b(0x209)]('✓\x20Removed\x20project\x20skill:\x20'+_0x20e0e5),_0xd8cf01=!![]);}const _0xf5f028=_0x4ed0a9[_0x2b205b(0x1e9)](getUserSkillsDir);for(const _0x1e2006 of skillsToRemove){const _0x9aa870=join(_0xf5f028,_0x1e2006);existsSync(_0x9aa870)&&(await rm(_0x9aa870,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x1e2006),_0xd8cf01=!![]);}const _0x470813=getOpencodeSkillsDir(_0x4ed0a9[_0x2b205b(0x214)]);for(const _0x26f1e1 of skillsToRemove){const _0x41cf9d=join(_0x470813,_0x26f1e1);_0x4ed0a9[_0x2b205b(0x1fa)](existsSync,_0x41cf9d)&&(await rm(_0x41cf9d,{'recursive':!![]}),console[_0x2b205b(0x209)](_0x2b205b(0x20c)+_0x26f1e1),_0xd8cf01=!![]);}const _0x303b9d=getOpencodeSkillsDir(_0x2b205b(0x1fb));for(const _0x3c4528 of skillsToRemove){const _0x58fd70=join(_0x303b9d,_0x3c4528);existsSync(_0x58fd70)&&(await _0x4ed0a9[_0x2b205b(0x217)](rm,_0x58fd70,{'recursive':!![]}),console[_0x2b205b(0x209)](_0x2b205b(0x1ff)+_0x3c4528),_0xd8cf01=!![]);}const _0x1902ba=join(_0x4ed0a9[_0x2b205b(0x200)](getOpencodeConfigDir,_0x2b205b(0x1f5)),_0x4ed0a9['XvhYd']);await _0x4ed0a9[_0x2b205b(0x1fa)](removeOpencodePluginConfig,_0x1902ba)&&(console['log'](_0x4ed0a9['NXzAj']),_0xd8cf01=!![]);const _0x478b39=join(getOpencodeConfigDir(_0x4ed0a9[_0x2b205b(0x1e2)]),_0x4ed0a9['XvhYd']);await removeOpencodePluginConfig(_0x478b39)&&(console[_0x2b205b(0x209)](_0x4ed0a9['wltlq']),_0xd8cf01=!![]);const _0x1dcc7c=await uninstallClaudePlugin();_0x1dcc7c&&(console['log'](_0x2b205b(0x1e1)),_0xd8cf01=!![]);const _0x43e884=await _0x4ed0a9[_0x2b205b(0x21c)](uninstallClaudePlugin,_0x4ed0a9['dvEfA']);_0x43e884&&(console[_0x2b205b(0x209)](_0x2b205b(0x1f3)),_0xd8cf01=!![]);const _0x101500=await _0x4ed0a9['iPbja'](removeMarketplace);_0x101500&&(console['log'](_0x4ed0a9[_0x2b205b(0x1f2)]),_0xd8cf01=!![]),_0xd8cf01?console[_0x2b205b(0x209)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x2b205b(0x209)]('Nothing\x20to\x20clean\x20up.\x0a');}
|
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x53dd1a=_0xaeca;(function(_0x18116c,_0x451c85){const _0x342e71=_0xaeca,_0x2d7c0f=_0x18116c();while(!![]){try{const _0x57b1dd=parseInt(_0x342e71(0x7a))/0x1+-parseInt(_0x342e71(0x78))/0x2*(parseInt(_0x342e71(0x87))/0x3)+-parseInt(_0x342e71(0x94))/0x4+-parseInt(_0x342e71(0x90))/0x5*(parseInt(_0x342e71(0x95))/0x6)+parseInt(_0x342e71(0x97))/0x7*(parseInt(_0x342e71(0x81))/0x8)+-parseInt(_0x342e71(0x8c))/0x9*(-parseInt(_0x342e71(0x7f))/0xa)+parseInt(_0x342e71(0x79))/0xb*(parseInt(_0x342e71(0x89))/0xc);if(_0x57b1dd===_0x451c85)break;else _0x2d7c0f['push'](_0x2d7c0f['shift']());}catch(_0x3ec432){_0x2d7c0f['push'](_0x2d7c0f['shift']());}}}(_0x3206,0xcd74f));import{existsSync}from'fs';function _0xaeca(_0x14b185,_0x57f973){_0x14b185=_0x14b185-0x77;const _0x32060a=_0x3206();let _0xaeca99=_0x32060a[_0x14b185];return _0xaeca99;}import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=[_0x53dd1a(0x8a)];function parseValue(_0x764c0d,_0x4bf4a6){const _0x58a683=_0x53dd1a,_0x6cadb6={'scMsb':_0x58a683(0x93),'FoaPN':function(_0x5d4a85,_0x2be4fd){return _0x5d4a85===_0x2be4fd;},'vdGtZ':'false'};if(BOOLEAN_KEYS[_0x58a683(0x8f)](_0x764c0d)){if(_0x4bf4a6===_0x6cadb6[_0x58a683(0x84)])return!![];if(_0x6cadb6['FoaPN'](_0x4bf4a6,_0x6cadb6[_0x58a683(0x7b)]))return![];throw new Error(_0x58a683(0x82)+_0x764c0d+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x4bf4a6;}function _0x3206(){const _0x216d97=['Invalid\x20value\x20for\x20','(not\x20set)','scMsb','zHkdy','\x22\x20does\x20not\x20exist.','3VvqKwr','Key\x20\x22','12528264KEnOxt','headless','mlSdL','931617JBAQbf','ZMrLe','Zvvvz','includes','2409485LuYzeI','object','qhKWi','true','4613004MINxkd','12OBFNVp','mBkBP','1799EvCOJf','SdwUt','ePNrm','2287464arNaYZ','22FmyjVd','1415018UrqkgD','vdGtZ','log','Set\x20','sQFQy','10HXQzOG','NEujR','15432NyDYjH'];_0x3206=function(){return _0x216d97;};return _0x3206();}export async function configSet(_0x3df904,_0x49a801,_0x2e46c1){const _0x4f9a30=_0x53dd1a,_0x55cf1c={'ZMrLe':function(_0x301b16,_0x8107a9){return _0x301b16(_0x8107a9);},'ePNrm':function(_0x342df4,_0x55c32d,_0x3c62b9){return _0x342df4(_0x55c32d,_0x3c62b9);}},_0x42e39d=_0x55cf1c[_0x4f9a30(0x8d)](getEnvDir,_0x3df904);if(!_0x55cf1c['ZMrLe'](existsSync,_0x42e39d))throw new Error('Profile\x20\x22'+_0x3df904+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x3df904);const _0x47bd7c=await loadSettings(_0x3df904),_0x5c726d=_0x55cf1c[_0x4f9a30(0x77)](parseValue,_0x49a801,_0x2e46c1);setNestedValue(_0x47bd7c,_0x49a801,_0x5c726d),await _0x55cf1c['ePNrm'](saveSettings,_0x3df904,_0x47bd7c),console[_0x4f9a30(0x7c)](_0x4f9a30(0x7d)+_0x49a801+'\x20=\x20'+_0x5c726d);}export async function configGet(_0x4039f1,_0x4780c2){const _0x5c8022=_0x53dd1a,_0x2a8bc1={'SdwUt':function(_0x17a26c,_0x32ae73){return _0x17a26c(_0x32ae73);},'NEujR':function(_0x3d59f6,_0x542cec,_0x1ba88e){return _0x3d59f6(_0x542cec,_0x1ba88e);},'qGqpn':function(_0x1e338c,_0x18d5bd){return _0x1e338c===_0x18d5bd;}},_0x49f670=getEnvDir(_0x4039f1);if(!_0x2a8bc1[_0x5c8022(0x98)](existsSync,_0x49f670))throw new Error('Profile\x20\x22'+_0x4039f1+_0x5c8022(0x86));const _0x4465c6=await loadSettings(_0x4039f1),_0x157834=_0x2a8bc1[_0x5c8022(0x80)](getNestedValue,_0x4465c6,_0x4780c2);if(_0x2a8bc1['qGqpn'](_0x157834,undefined))console[_0x5c8022(0x7c)](_0x5c8022(0x83));else typeof _0x157834===_0x5c8022(0x91)?console['log'](JSON['stringify'](_0x157834,null,0x2)):console[_0x5c8022(0x7c)](_0x157834);}export async function configList(_0x3c5b23){const _0x4c3059=_0x53dd1a,_0x2c2a59={'qhKWi':function(_0x1d4c3e,_0x5cbe45){return _0x1d4c3e(_0x5cbe45);},'mlSdL':function(_0xbb1df5,_0x51689a){return _0xbb1df5(_0x51689a);}},_0x11b61b=getSettingsPath(_0x3c5b23);if(!_0x2c2a59[_0x4c3059(0x92)](existsSync,_0x11b61b)){const _0x3e8147=getEnvDir(_0x3c5b23);if(!_0x2c2a59['mlSdL'](existsSync,_0x3e8147))throw new Error('Profile\x20\x22'+_0x3c5b23+'\x22\x20does\x20not\x20exist.');console[_0x4c3059(0x7c)]('No\x20configuration\x20set\x20for\x20\x22'+_0x3c5b23+'\x22');return;}const _0xc4ee9c=await _0x2c2a59[_0x4c3059(0x8b)](loadSettings,_0x3c5b23),_0x317d41=formatSettings(_0xc4ee9c);!_0x317d41?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x3c5b23+'\x22'):console['log'](_0x317d41);}export async function configUnset(_0xca7a01,_0x2fa20b){const _0x5c38a3=_0x53dd1a,_0x2f58b5={'zHkdy':function(_0x122355,_0x62ab95){return _0x122355(_0x62ab95);},'sQFQy':function(_0x2ce8da,_0x492870){return _0x2ce8da(_0x492870);},'Zvvvz':function(_0x37fd39,_0x1ab883,_0x221599){return _0x37fd39(_0x1ab883,_0x221599);},'mBkBP':function(_0x508fe6,_0x27cc85,_0x5b8156){return _0x508fe6(_0x27cc85,_0x5b8156);}},_0x4065ee=getEnvDir(_0xca7a01);if(!_0x2f58b5[_0x5c38a3(0x85)](existsSync,_0x4065ee))throw new Error('Profile\x20\x22'+_0xca7a01+_0x5c38a3(0x86));const _0x334d5d=await _0x2f58b5[_0x5c38a3(0x7e)](loadSettings,_0xca7a01),_0x4424fc=_0x2f58b5[_0x5c38a3(0x8e)](deleteNestedValue,_0x334d5d,_0x2fa20b);_0x4424fc?(await _0x2f58b5[_0x5c38a3(0x96)](saveSettings,_0xca7a01,_0x334d5d),console['log']('Removed\x20'+_0x2fa20b)):console['log'](_0x5c38a3(0x88)+_0x2fa20b+'\x22\x20not\x20found');}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4374f4=_0x2d5e;(function(_0x2db138,_0x537fd0){const _0x213dff=_0x2d5e,_0x5cb807=_0x2db138();while(!![]){try{const _0x1086f9=-parseInt(_0x213dff(0xed))/0x1*(parseInt(_0x213dff(0x102))/0x2)+parseInt(_0x213dff(0xfe))/0x3*(parseInt(_0x213dff(0xee))/0x4)+-parseInt(_0x213dff(0xf3))/0x5+parseInt(_0x213dff(0xfc))/0x6*(parseInt(_0x213dff(0xfb))/0x7)+parseInt(_0x213dff(0xf0))/0x8+-parseInt(_0x213dff(0xf4))/0x9*(parseInt(_0x213dff(0x103))/0xa)+parseInt(_0x213dff(0xf5))/0xb;if(_0x1086f9===_0x537fd0)break;else _0x5cb807['push'](_0x5cb807['shift']());}catch(_0x1a7124){_0x5cb807['push'](_0x5cb807['shift']());}}}(_0x4711,0xcb800));import{readdir,stat}from'fs/promises';import{join}from'path';function _0x2d5e(_0x10fc0c,_0xd6f925){_0x10fc0c=_0x10fc0c-0xec;const _0x471144=_0x4711();let _0x2d5eb7=_0x471144[_0x10fc0c];return _0x2d5eb7;}import{existsSync}from'fs';function _0x4711(){const _0xced7eb=['3108091hZfAYg','6fbtIvc','bug-bashes','90WbfdVX','log','\x0a*\x20=\x20active\x20profile','HZAtk','26lNXKaC','16130qyMVdS','gPtWH','length','sort','\x0aProfiles:','local','legacy','zJXlF','27019RSBuaO','7340mtvxSf','Run:\x20ranger\x20profile\x20add\x20<profile-name>','4156560ZwrsWw','settings.json','\x0aNo\x20profiles\x20found.','5957445REdvOZ','3366MKkSLP','21569911HJGGLI','sJlIF','baseUrl','isDirectory','GocsY','.txt'];_0x4711=function(){return _0xced7eb;};return _0x4711();}import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=['sessions',_0x4374f4(0xfd),'reports','local','ci'];export async function getEnvNames(){const _0x2f7e3c=_0x4374f4,_0xeea460={'IGdfV':function(_0x2a3fdc){return _0x2a3fdc();},'zJXlF':function(_0x5a4155,_0x429b27){return _0x5a4155(_0x429b27);},'gPtWH':function(_0x72f8e3,_0x4c26a6,_0x38f7c5){return _0x72f8e3(_0x4c26a6,_0x38f7c5);},'AQIiT':function(_0x198049,_0x268c7d,_0x548e9e){return _0x198049(_0x268c7d,_0x548e9e);},'sypbP':function(_0x594e01,_0x107e0b){return _0x594e01(_0x107e0b);},'RHtwX':function(_0x1004ad,_0x3e01f8){return _0x1004ad(_0x3e01f8);},'WSFXY':function(_0x5a71d4,_0x3fbd6d,_0x3a4100){return _0x5a71d4(_0x3fbd6d,_0x3a4100);},'SAdEx':_0x2f7e3c(0xf1),'sJlIF':_0x2f7e3c(0x109)},_0x1436c3=_0xeea460['IGdfV'](getRangerDir);if(!_0xeea460[_0x2f7e3c(0xec)](existsSync,_0x1436c3))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x1e3aa6=await readActiveProfileName(),_0x50ba7b=[],_0x24744d={},_0x2484d0=_0xeea460[_0x2f7e3c(0x104)](join,_0x1436c3,_0x2f7e3c(0x108));if(existsSync(_0x2484d0)){const _0x5bd08b=await readdir(_0x2484d0);for(const _0x2977dc of _0x5bd08b){const _0x22f425=join(_0x2484d0,_0x2977dc),_0x1019ea=await stat(_0x22f425);_0x1019ea['isDirectory']()&&(_0x50ba7b['push'](_0x2977dc),_0x24744d[_0x2977dc]=_0x2f7e3c(0x108));}}const _0x18bc7e=join(_0x1436c3,'ci');if(_0xeea460['zJXlF'](existsSync,_0x18bc7e)){const _0xe4b10=await readdir(_0x18bc7e);for(const _0x52352c of _0xe4b10){const _0x4c9fe0=join(_0x18bc7e,_0x52352c),_0xf22570=await stat(_0x4c9fe0);_0xf22570[_0x2f7e3c(0xf8)]()&&(_0x50ba7b['push'](_0x52352c),_0x24744d[_0x52352c]='ci');}}const _0x2d53a3=await _0xeea460['zJXlF'](readdir,_0x1436c3);for(const _0x44016b of _0x2d53a3){if(NON_ENV_DIRS['includes'](_0x44016b))continue;if(_0x44016b['startsWith']('.'))continue;if(_0x44016b['endsWith'](_0x2f7e3c(0xfa)))continue;const _0x4f7aca=_0xeea460['AQIiT'](join,_0x1436c3,_0x44016b),_0xacdc9f=await _0xeea460['sypbP'](stat,_0x4f7aca);_0xacdc9f[_0x2f7e3c(0xf8)]()&&_0xeea460['RHtwX'](existsSync,_0xeea460['WSFXY'](join,_0x4f7aca,_0xeea460['SAdEx']))&&(!_0x50ba7b['includes'](_0x44016b)&&(_0x50ba7b['push'](_0x44016b),_0x24744d[_0x44016b]=_0xeea460[_0x2f7e3c(0xf6)]));}return{'envNames':_0x50ba7b,'activeEnv':_0x1e3aa6,'envTypes':_0x24744d};}export async function envList(){const _0x4c5aad=_0x4374f4,_0x1507f3={'HZAtk':function(_0xee8809,_0x418a4b){return _0xee8809===_0x418a4b;},'GocsY':_0x4c5aad(0xef),'dGWmm':_0x4c5aad(0x107),'PJqvR':function(_0x4ba6be,_0x8b9a0){return _0x4ba6be(_0x8b9a0);}},{envNames:_0x8174b5,activeEnv:_0x45ad2,envTypes:_0x342165}=await getEnvNames();if(_0x1507f3[_0x4c5aad(0x101)](_0x8174b5[_0x4c5aad(0x105)],0x0)){console[_0x4c5aad(0xff)](_0x4c5aad(0xf2)),console['log'](_0x1507f3[_0x4c5aad(0xf9)]);return;}console[_0x4c5aad(0xff)](_0x1507f3['dGWmm']);for(const _0x27e198 of _0x8174b5[_0x4c5aad(0x106)]()){const _0x36e897=_0x27e198===_0x45ad2,_0x70697d=_0x342165[_0x27e198]||_0x4c5aad(0x108),_0xaed9fd=await _0x1507f3['PJqvR'](loadSettings,_0x27e198),_0x48c2a1=_0x1507f3['HZAtk'](_0x70697d,'legacy')?'':'\x20['+_0x70697d+']';console['log']('\x20\x20'+(_0x36e897?'*\x20':'\x20\x20')+_0x27e198+_0x48c2a1),_0xaed9fd[_0x4c5aad(0xf7)]&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0xaed9fd[_0x4c5aad(0xf7)]),_0xaed9fd['environmentDetails']&&console[_0x4c5aad(0xff)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0xaed9fd['environmentDetails']);}_0x45ad2&&console[_0x4c5aad(0xff)](_0x4c5aad(0x100));}
|