@ranger-testing/ranger-cli 2.1.0 → 2.1.1
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/README.md +10 -1
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -0
- package/build/commands/utils/model.js +1 -0
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -0
- 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/build/skills/ranger/SKILL.md +16 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,7 @@ Ask Claude to build a UI feature. Ranger handles the rest: creating a feature re
|
|
|
79
79
|
| `ranger resume <id>` | Set a feature review as active and start its session |
|
|
80
80
|
| `ranger add-scenario "<desc>"` | Add a scenario to the active feature review |
|
|
81
81
|
| `ranger get-review` | Show unaddressed reviewer comments |
|
|
82
|
+
| `ranger report [id]` | Generate PR description markdown with screenshots |
|
|
82
83
|
| `ranger delete` | Soft delete the active feature review |
|
|
83
84
|
| `ranger restore <id>` | Restore a soft-deleted feature review |
|
|
84
85
|
|
|
@@ -88,7 +89,15 @@ Ask Claude to build a UI feature. Ranger handles the rest: creating a feature re
|
|
|
88
89
|
| ------------ | ------------------------------------ |
|
|
89
90
|
| `ranger go` | Verify a scenario in the browser |
|
|
90
91
|
|
|
91
|
-
Options: `--scenario <N>` (scenario index), `--notes "<desc>"` (override notes), `--start-path /path` (start URL), `--profile <name>`.
|
|
92
|
+
Options: `--scenario <N>` (scenario index), `--notes "<desc>"` (override notes), `--start-path /path` (start URL), `--profile <name>`, `--model <model>`.
|
|
93
|
+
|
|
94
|
+
You can set a default verify model in `.ranger/config.json`:
|
|
95
|
+
|
|
96
|
+
```json
|
|
97
|
+
{
|
|
98
|
+
"model": "claude-opus-4-6"
|
|
99
|
+
}
|
|
100
|
+
```
|
|
92
101
|
|
|
93
102
|
### Config
|
|
94
103
|
|
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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)]();
|
|
2
|
+
const _0x2cb639=_0x387e;(function(_0x3fb5f6,_0x305377){const _0x412ceb=_0x387e,_0x2a21ef=_0x3fb5f6();while(!![]){try{const _0x386bfa=parseInt(_0x412ceb(0x104))/0x1*(-parseInt(_0x412ceb(0x1e0))/0x2)+-parseInt(_0x412ceb(0x1ef))/0x3*(-parseInt(_0x412ceb(0x17c))/0x4)+-parseInt(_0x412ceb(0x1df))/0x5*(-parseInt(_0x412ceb(0x1a2))/0x6)+-parseInt(_0x412ceb(0x1c6))/0x7+-parseInt(_0x412ceb(0xae))/0x8+parseInt(_0x412ceb(0x12e))/0x9+-parseInt(_0x412ceb(0xf8))/0xa*(parseInt(_0x412ceb(0x1b6))/0xb);if(_0x386bfa===_0x305377)break;else _0x2a21ef['push'](_0x2a21ef['shift']());}catch(_0x8a15db){_0x2a21ef['push'](_0x2a21ef['shift']());}}}(_0x1e83,0xa1994));import _0x165e27 from'dotenv';function _0x387e(_0x3e8d5b,_0x25a559){_0x3e8d5b=_0x3e8d5b-0x9a;const _0x1e83ef=_0x1e83();let _0x387e5d=_0x1e83ef[_0x3e8d5b];return _0x387e5d;}import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x3dd9b7=_0x387e,_0x194977={'oXUqn':function(_0xd782f1,_0x2cb2c1){return _0xd782f1(_0x2cb2c1);},'JcnmT':function(_0x4b695e,_0x59bd10){return _0x4b695e(_0x59bd10);},'RuZwv':_0x3dd9b7(0xbc),'OVkHW':function(_0x10c6b6,_0x8bad34){return _0x10c6b6(_0x8bad34);}};let _0x5ce653=process[_0x3dd9b7(0x18b)]();const _0x1f6c98=parse(_0x5ce653)['root'];while(_0x5ce653!==_0x1f6c98){if(_0x194977['oXUqn'](existsSync,join(_0x5ce653,'.ranger'))||_0x194977['JcnmT'](existsSync,join(_0x5ce653,_0x194977['RuZwv'])))return _0x5ce653;_0x5ce653=_0x194977[_0x3dd9b7(0xa5)](dirname,_0x5ce653);}return process[_0x3dd9b7(0x18b)]();}_0x165e27['config']({'path':join(findProjectRoot(),'.env')});import _0x547295 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';function _0x1e83(){const _0x22da93=['restore\x20<id>','startsWith','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','DACoP','profile\x20update','pDJeE','OxHKC','qVuyg','ranger\x20create','string','Environment\x20name','hook:enable','Reason:\x20','.env','feature\x20add-checklist-item','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','enable','LragI','profile\x20ls','feature\x20list','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','blocked','cGnEQ','WUkQS','MkGPU','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','alias','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','List\x20all\x20feature\x20reviews','error','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','XBPKm','ooPPD','ItGLC','Ezjoa','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','command','feature','debug-outcome','flag','ranger\x20setup','use\x20<env-name>','Restore\x20a\x20soft-deleted\x20feature\x20review','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','FRQDC','wHrDF','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','include-deleted','log','Add\x20profile\x20configuration','JwpFq','Unknown\x20error','HWGio','VtlNn','get\x20<env>\x20<key>','cdp-endpoint','env\x20update','key','qfFEa','Evaluation:\x20','MFBnP','default','ftUXR','ITvNT','Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.','Include\x20soft-deleted\x20feature\x20reviews','add-scenario\x20<description>','tsRZK','mxmdF','hook','HGpzY','FklOW','4367410wRqjQs','nrfzv','Tlpkp','user','Unknown\x20command','list\x20<env>','profile\x20config\x20list','list\x20<profile>','feature\x20get-feedback','update','start-path','status','1LsYEmB','anTPW','clean','name','profile','TJptc','pfUTe','azgmg','list','encrypt\x20<profile>','map','ranger\x20feature\x20show','ranger\x20resume','kSCQE','UOOTr','HRAWT','.\x20[','PnouC','uTyeL','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','qyNcU','ranger\x20get-review','scope','Scenario\x20number\x20to\x20edit\x20(1-based)','task','jKZnb','Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true','item','value','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','ranger\x20profile\x20ls','ranger\x20profile\x20add','skip-auth','scriptName','hGFHb','unset\x20<profile>\x20<key>','XzuVS','get-feedback\x20[id]','JgMvA','ranger','profile-name','version','11240685SpPIzH','kqnzO','EvTSy','delete\x20[id]','evaluation','mJoqR','demandCommand','ranger\x20auth\x20encrypt','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','ZmLGM','message','exit','session-id','slice','PJFKs','mBivl','oMSgJ','xTMRp','znrMJ','resume','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','pfgAm','RGhpn','\x20FAILED','token','use','restore','aMSGD','config\x20unset','claude','HOWpJ','hmxSh','NFQhX','env-name','You\x20must\x20specify\x20an\x20env\x20subcommand','DPOov','MZBwi','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','uRAxW','env','ranger\x20env\x20ls','config','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','zsjUT','Manage\x20profile\x20configuration','Xnbzy','opencode','yFuLA','vGNcU','You\x20must\x20specify\x20a\x20config\x20subcommand','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','MKBhy','Name\x20of\x20the\x20profile','fjQMa','xPjmP','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','\x20\x20https://docs.ranger.net\x0a','UbCLS','FTbOw','WLGED','get-review','--checklist','ranger\x20feature\x20resume','RatqR','ranger\x20feature\x20get-feedback','EwvuI','current-branch','ranger\x20restore','debug-address-comments','ovvjW','skip-chromium','DhaVJ','argv','mveGp','GTYyr','usage','SEtgm','1935932oXMAgh','Remove\x20a\x20config\x20value','number','--item','positional','TGfch','tybHS','uCclQ','YkctT','PIzUn','feature\x20restore','HNxlE','Install\x20Ranger\x20skills','\x20INCOMPLETE','Switch\x20to\x20using\x20a\x20specific\x20profile','cwd','OhxDV','Get\x20a\x20config\x20value','wZSfV','profile\x20use','lvANT','Install\x20scope\x20for\x20skills','start','GwoQZ','kpUbf','offset','auth','base-url','ITaPD','encrypt-auth\x20<profile>','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','You\x20must\x20specify\x20a\x20profile\x20subcommand','pjIdb','Scenario\x20description','LvGyT','Skip\x20Chromium\x20browser\x20installation','drDTh','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','6fRUoye','GOMsb','ranger\x20profile\x20config\x20set','Set\x20a\x20config\x20value','RNlMZ','boolean','kWJRr','array','Profile\x20name','forEach','url','--scenario','twUtL','pMWfA','includes','UrHGJ','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','HmmgV','ranger\x20go','sCqyj','11UbHqun','description','IiCMj','XEYVi','GjhmY','SldGf','Config\x20key\x20to\x20remove','EWXnH','pbvdz','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','Config\x20key','profile\x20config\x20unset','setup-ci\x20<token>','report','Feature\x20review\x20description','\x0aError:\x20','2669898JbrbVl','WVihh','QCjyF','disable','incomplete','KpLxV','Feature\x20review\x20ID','add-scenario','Config\x20value','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','option','Name\x20of\x20the\x20environment','verify-feature','SxvKg','Initialize\x20Ranger\x20in\x20your\x20project','yBVHD','feature\x20resume','rnsrW','XxsUw','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','env\x20list','kNcDi','issues','config\x20set','iaHxt','806845ViJlku','211180OnNZTc','EmHRa','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','project','LZtad','JcBxs','exclude-scenario','EyQEO','hqrAp','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','lqNNq','EitkT','login','QdLmd','3nSNGkH','scenario','force','hook:disable','AWuOW','XGQHU','lmHbv','verified','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','xcDvm','checklist','notes','OVkHW','model','repeat','ODZuE','Scenario\x20index\x20(1-based)','UemnD','Number\x20of\x20feature\x20reviews\x20to\x20skip','ranger\x20config\x20set','ranger\x20feature\x20create','2469312qVITWa'];_0x1e83=function(){return _0x22da93;};return _0x1e83();}import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on']('unhandledRejection',async _0x2c6980=>{const _0x829c81=_0x387e,_0x520a01={'GwoQZ':function(_0x58ae8c){return _0x58ae8c();}},_0x4f081f=_0x520a01[_0x829c81(0x193)](getCurrentCollector);_0x4f081f&&await _0x4f081f['trackCommandError'](_0x2c6980),process['exitCode']=0x1;});const rawArgs=process[_0x2cb639(0x177)][_0x2cb639(0x13b)](0x2),TOP_LEVEL_HELP=_0x2cb639(0xf0),PROFILE_HELP=_0x2cb639(0x11e),PROFILE_CONFIG_HELP='Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20(e.g.,\x20header.X-Test-Mode)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27';function warnRenamed(_0x4d349e,_0x2e60da){console['error']('\x0a'+_0x4d349e+'\x20is\x20now\x20'+_0x2e60da+'\x0a');}function argUsed(_0x886034){const _0x560139=_0x2cb639;return rawArgs['some'](_0x1dc14e=>_0x1dc14e===_0x886034||_0x1dc14e[_0x560139(0xb0)](_0x886034+'='));}function warnFlagRenamed(_0x49702f,_0x18d8e6,_0x5dc514){const _0x483a69=_0x2cb639,_0x26d546={'pMWfA':function(_0x539902,_0x42708b){return _0x539902(_0x42708b);}};_0x26d546[_0x483a69(0x1af)](argUsed,_0x18d8e6)&&warnRenamed(_0x49702f+'\x20'+_0x18d8e6,_0x49702f+'\x20'+_0x5dc514);}async function runGoCommand(_0xd85a0c,_0x710140=![]){const _0x372276=_0x2cb639,_0x387130={'Xnbzy':'ranger\x20verify-feature','mJoqR':_0x372276(0x1b4),'GIWwx':function(_0x363769,_0x283b6e,_0x1eca07,_0x2e1e2b){return _0x363769(_0x283b6e,_0x1eca07,_0x2e1e2b);},'ZidJo':'--profile','yFuLA':'--task','OkjRk':_0x372276(0x17f),'anuCb':function(_0x7ccc2){return _0x7ccc2();},'WVihh':_0x372276(0xd7),'iYhlz':_0x372276(0x102),'LragI':_0x372276(0xd6),'RNkmE':_0x372276(0x1ca),'ChkZz':_0x372276(0x189),'drDTh':function(_0x592e15,_0x10a603){return _0x592e15===_0x10a603;},'tsRZK':'\x20BLOCKED','rnsrW':_0x372276(0x145),'sJnGX':_0x372276(0xa0)};_0x710140&&warnRenamed(_0x387130[_0x372276(0x15b)],_0x387130['mJoqR']);_0x387130['GIWwx'](warnFlagRenamed,_0x387130[_0x372276(0x133)],'--env',_0x387130['ZidJo']),warnFlagRenamed(_0x387130['mJoqR'],_0x387130[_0x372276(0x15d)],'--notes'),_0x387130['GIWwx'](warnFlagRenamed,'ranger\x20go',_0x387130['OkjRk'],_0x372276(0x1ad));const _0x79dc3e=await _0x387130['anuCb'](loadRangerConfig),_0x704201=_0xd85a0c[_0x372276(0xa6)],_0x5968d8=_0x79dc3e['model'],_0x539109=_0x704201??_0x5968d8,_0x38a74f=_0x704201?_0x387130[_0x372276(0x1c7)]:_0x5968d8?'config':_0x372276(0xed),_0x5c99cb=await verifyFeature({'profile':_0xd85a0c['profile']??_0xd85a0c[_0x372276(0x155)],'notes':_0xd85a0c[_0x372276(0xa4)]??_0xd85a0c['task'],'scenario':_0xd85a0c['scenario']??_0xd85a0c[_0x372276(0x11f)],'startPath':_0xd85a0c[_0x387130['iYhlz']],'debugOutcome':_0xd85a0c[_0x387130[_0x372276(0xc0)]],'debugAddressComments':_0xd85a0c[_0x372276(0x173)],'verifyModel':_0x539109,'verifyModelInput':_0x539109,'verifyModelSource':_0x38a74f});console['log']('\x0a'+'='['repeat'](0x3c)),console['log'](_0x5c99cb[_0x372276(0x132)]==='verified'?'\x20VERIFIED':_0x5c99cb['evaluation']===_0x387130['RNkmE']?_0x387130['ChkZz']:_0x387130['drDTh'](_0x5c99cb[_0x372276(0x132)],'partial')?'\x20PARTIAL':_0x387130[_0x372276(0x1a0)](_0x5c99cb['evaluation'],_0x372276(0xc5))?_0x387130[_0x372276(0xf3)]:_0x387130[_0x372276(0x1d7)]),console[_0x372276(0xe0)]('='[_0x372276(0xa7)](0x3c)),console['log']('Summary:\x20'+_0x5c99cb['summary']),console['log'](_0x372276(0xeb)+_0x5c99cb['evaluation']),console['log'](_0x372276(0xbb)+_0x5c99cb['evaluationReason']),_0x5c99cb['issues']?.['length']&&(console['log']('\x0aIssues:'),_0x5c99cb[_0x372276(0x1dc)][_0x372276(0x1ab)]((_0x86020f,_0x7949b9)=>{const _0x1a7907=_0x372276;console[_0x1a7907(0xe0)]('\x0a'+(_0x7949b9+0x1)+_0x1a7907(0x114)+_0x86020f['severity']+']\x20'+_0x86020f[_0x1a7907(0x1b7)]);})),process[_0x372276(0x139)](_0x5c99cb[_0x372276(0x132)]===_0x387130['sJnGX']?0x0:0x1);}_0x547295(process[_0x2cb639(0x177)][_0x2cb639(0x13b)](0x2))[_0x2cb639(0x125)](_0x2cb639(0x12b))['usage'](TOP_LEVEL_HELP)[_0x2cb639(0x12d)](getCurrentVersion())['command']('create\x20<name>',_0x2cb639(0x1bf),_0x4f28dd=>{const _0x3499ee=_0x2cb639,_0x5f13c5={'yuVLX':'name','LAdCv':'scenario','HOWpJ':_0x3499ee(0x158),'jKZnb':_0x3499ee(0xa3)};return _0x4f28dd['positional'](_0x5f13c5['yuVLX'],{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})[_0x3499ee(0x1d0)](_0x3499ee(0x1b7),{'type':'string','alias':'d','description':_0x3499ee(0x1c4)})[_0x3499ee(0x1d0)](_0x5f13c5['LAdCv'],{'type':'array','alias':'c','description':_0x5f13c5[_0x3499ee(0x14c)]})['option'](_0x5f13c5[_0x3499ee(0x11d)],{'type':_0x3499ee(0x1a9),'hidden':!![]});},async _0x46ce9f=>{const _0x55648d=_0x2cb639,_0xdc18a8={'ITaPD':'--scenario','aArWc':'create'};warnFlagRenamed('ranger\x20create',_0x55648d(0x16c),_0xdc18a8[_0x55648d(0x198)]);const _0x416b9f=_0x46ce9f['scenario']||_0x46ce9f[_0x55648d(0xa3)];await withTelemetry(_0xdc18a8['aArWc'],()=>featureCreate(_0x46ce9f[_0x55648d(0x107)],{'description':_0x46ce9f['description'],'scenarios':_0x416b9f}));})[_0x2cb639(0xd4)](_0x2cb639(0x10c),_0x2cb639(0xcc),_0x5006b8=>{const _0x3e933b=_0x2cb639,_0x3b0181={'NWtsj':'limit','EyQEO':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','LqKVj':_0x3e933b(0x195),'hauDs':'Number\x20of\x20feature\x20reviews\x20to\x20skip','PIzUn':_0x3e933b(0xdf),'HmmgV':_0x3e933b(0x1a7),'UIcGY':_0x3e933b(0xf1)};return _0x5006b8['option']('current-branch',{'type':'boolean','description':_0x3e933b(0x160)})[_0x3e933b(0x1d0)](_0x3b0181['NWtsj'],{'type':_0x3e933b(0x17e),'alias':'l','description':_0x3b0181[_0x3e933b(0x1e8)],'default':0xa})[_0x3e933b(0x1d0)](_0x3b0181['LqKVj'],{'type':'number','alias':'o','description':_0x3b0181['hauDs'],'default':0x0})['option'](_0x3b0181[_0x3e933b(0x185)],{'type':_0x3b0181[_0x3e933b(0x1b3)],'alias':'d','description':_0x3b0181['UIcGY'],'default':![]});},async _0x287299=>{const _0xe9326e=_0x2cb639,_0x4c5491={'mmUgS':function(_0x558849,_0x556289,_0x284960){return _0x558849(_0x556289,_0x284960);},'nLCVS':_0xe9326e(0x10c)};await _0x4c5491['mmUgS'](withTelemetry,_0x4c5491['nLCVS'],()=>featureList({'currentBranch':_0x287299['current-branch'],'limit':_0x287299['limit'],'offset':_0x287299['offset'],'includeDeleted':_0x287299[_0xe9326e(0xdf)]}));})['command']('show\x20[id]','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x456913=>{const _0x3e5d03=_0x2cb639,_0x2f4998={'UemnD':'Feature\x20review\x20ID'};return _0x456913['positional']('id',{'type':'string','description':_0x2f4998[_0x3e5d03(0xaa)]});},async _0x1b3558=>{const _0xe9bb6f=_0x2cb639,_0x579127={'tJAgP':function(_0x595fea,_0x361ec8,_0x29e963){return _0x595fea(_0x361ec8,_0x29e963);},'WLGED':'show'};await _0x579127['tJAgP'](withTelemetry,_0x579127[_0xe9bb6f(0x16a)],()=>featureShow(_0x1b3558['id']));})[_0x2cb639(0xd4)]('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x50966e=>{const _0x31d3cc=_0x2cb639,_0x4d41cf={'ZmLGM':'string'};return _0x50966e[_0x31d3cc(0x180)]('id',{'type':_0x4d41cf[_0x31d3cc(0x137)],'description':_0x31d3cc(0x161)});},async _0x2bbc72=>{const _0x453b6b=_0x2cb639;await withTelemetry(_0x453b6b(0x141),()=>featureResume(_0x2bbc72['id']));})[_0x2cb639(0xd4)](_0x2cb639(0xf2),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x57360a=>{const _0x41a609=_0x2cb639,_0x1177ac={'LxnRq':'string','yBVHD':_0x41a609(0xc4)};return _0x57360a['positional'](_0x41a609(0x1b7),{'type':'string','description':_0x41a609(0x19d),'demandOption':!![]})[_0x41a609(0x1d0)]('id',{'type':_0x1177ac['LxnRq'],'description':_0x1177ac[_0x41a609(0x1d5)]});},async _0x6724a9=>{const _0x1f6bf6=_0x2cb639,_0x1f6b8e={'eicod':_0x1f6bf6(0x1cd)};await withTelemetry(_0x1f6b8e['eicod'],()=>featureAddScenario(_0x6724a9['description'],_0x6724a9['id']));})[_0x2cb639(0xd4)]('edit-scenario\x20<description>',_0x2cb639(0x1d9),_0x45c877=>{const _0x2843ae=_0x2cb639,_0x225557={'kSCQE':_0x2843ae(0x1b7),'EvTSy':_0x2843ae(0xb8),'UWCHY':'New\x20scenario\x20description','UHdUG':'number','xFcGa':_0x2843ae(0xc4)};return _0x45c877[_0x2843ae(0x180)](_0x225557[_0x2843ae(0x111)],{'type':_0x225557[_0x2843ae(0x130)],'description':_0x225557['UWCHY'],'demandOption':!![]})['option'](_0x2843ae(0x9a),{'type':_0x225557['UHdUG'],'description':_0x2843ae(0x11b),'demandOption':!![]})['option']('id',{'type':_0x225557['EvTSy'],'description':_0x225557['xFcGa']});},async _0x4dfbea=>{const _0x29364b=_0x2cb639;await withTelemetry('edit-scenario',()=>featureEditScenario(_0x4dfbea['description'],{'id':_0x4dfbea['id'],'scenario':_0x4dfbea[_0x29364b(0x9a)]}));})['command']('report\x20[id]','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x2b12e7=>{const _0x10646d=_0x2cb639,_0x5b0a62={'RkLAM':'string','NFQhX':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x2b12e7['positional']('id',{'type':_0x5b0a62['RkLAM'],'description':_0x10646d(0x1cc)})[_0x10646d(0x1d0)]('exclude-scenario',{'type':_0x10646d(0x1a9),'description':_0x5b0a62[_0x10646d(0x14e)]});},async _0x9a179f=>{const _0x2759b5=_0x2cb639,_0x3bdd52={'llmse':function(_0x13baa4,_0x4f97c7,_0x34cc98){return _0x13baa4(_0x4f97c7,_0x34cc98);}},_0x155b51=_0x9a179f[_0x2759b5(0x1e7)],_0x566d91=_0x155b51?_0x155b51[_0x2759b5(0x10e)](_0x378f68=>Number(_0x378f68)):undefined;await _0x3bdd52['llmse'](withTelemetry,_0x2759b5(0x1c3),()=>featureReportPrDescription(_0x9a179f['id'],{'excludeScenarios':_0x566d91}));})['command']('get-review\x20[id]',_0x2cb639(0xa1),_0xbbe99a=>{const _0x18a882=_0x2cb639,_0x5ab368={'ZdIZx':'string','DwDpq':_0x18a882(0xc4)};return _0xbbe99a[_0x18a882(0x180)]('id',{'type':_0x5ab368['ZdIZx'],'description':_0x5ab368['DwDpq']});},async _0x4b9f6d=>{const _0x301dd0=_0x2cb639,_0xa2bd0={'QUpIW':_0x301dd0(0x16b)};await withTelemetry(_0xa2bd0['QUpIW'],()=>featureGetReview(_0x4b9f6d['id']));})['command']('delete\x20[id]','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x29a9f0=>{const _0x5d95b9=_0x2cb639,_0x12a429={'czRys':_0x5d95b9(0x1cc)};return _0x29a9f0['positional']('id',{'type':_0x5d95b9(0xb8),'description':_0x12a429['czRys']});},async _0x241f1=>{const _0x3e4fc1=_0x2cb639,_0x4b679d={'QCjyF':'delete'};await withTelemetry(_0x4b679d[_0x3e4fc1(0x1c8)],()=>featureDelete(_0x241f1['id']));})['command'](_0x2cb639(0xaf),_0x2cb639(0xda),_0x4ff828=>{const _0x26c76c=_0x2cb639,_0xd02c41={'XxsUw':'string'};return _0x4ff828['positional']('id',{'type':_0xd02c41[_0x26c76c(0x1d8)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x1f667d=>{const _0x4dc50c=_0x2cb639,_0x31f669={'DPOov':function(_0x314193,_0x4361f4,_0x490b09){return _0x314193(_0x4361f4,_0x490b09);}};await _0x31f669[_0x4dc50c(0x151)](withTelemetry,_0x4dc50c(0x148),()=>featureRestore(_0x1f667d['id']));})[_0x2cb639(0xd4)]('setup\x20[token]',_0x2cb639(0x1d4),_0xdb2f10=>{const _0x3aba9a=_0x2cb639,_0x54051f={'kFdWU':_0x3aba9a(0x19a),'TGfch':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','kqnzO':_0x3aba9a(0xb8),'myDZk':_0x3aba9a(0x1e4),'JgMvA':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','kpUbf':'url','bEDTk':_0x3aba9a(0x9b),'KpLxV':'boolean','cwcBY':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','NBXez':_0x3aba9a(0xce)};return _0xdb2f10[_0x3aba9a(0x180)]('token',{'type':_0x3aba9a(0xb8),'description':_0x54051f['kFdWU']})['option'](_0x3aba9a(0x175),{'type':'boolean','description':_0x54051f[_0x3aba9a(0x181)],'default':![]})[_0x3aba9a(0x1d0)](_0x3aba9a(0x11a),{'type':_0x54051f[_0x3aba9a(0x12f)],'choices':['user',_0x54051f['myDZk']],'description':_0x54051f[_0x3aba9a(0x12a)]})['option'](_0x54051f[_0x3aba9a(0x194)],{'type':_0x3aba9a(0xb8),'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x3aba9a(0x1d0)](_0x54051f['bEDTk'],{'type':_0x54051f['KpLxV'],'description':_0x54051f['cwcBY'],'default':![]})[_0x3aba9a(0x1d0)](_0x3aba9a(0x15c),{'type':_0x54051f[_0x3aba9a(0x1cb)],'description':_0x54051f['NBXez'],'default':![]});},async _0x5922e1=>{const _0x21a101=_0x2cb639,_0x2abe1a={'LcjQU':_0x21a101(0x192)};await withTelemetry(_0x2abe1a['LcjQU'],_0x1bd050=>start(_0x5922e1['token'],{'skipChromium':_0x5922e1['skip-chromium'],'scope':_0x5922e1['scope'],'url':_0x5922e1[_0x21a101(0x1ac)],'force':_0x5922e1['force'],'opencode':_0x5922e1['opencode']},_0x1bd050));})[_0x2cb639(0xd4)](_0x2cb639(0x1c2),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0xcdd2ff=>{const _0x19d8dc=_0x2cb639,_0x5d1c35={'ftUXR':'token','uHfLZ':_0x19d8dc(0xb8),'zMQxo':'Ranger\x20API\x20token','GTYyr':_0x19d8dc(0x197)};return _0xcdd2ff['positional'](_0x5d1c35[_0x19d8dc(0xee)],{'type':_0x5d1c35['uHfLZ'],'description':_0x5d1c35['zMQxo'],'demandOption':!![]})['option'](_0x19d8dc(0x108),{'type':_0x19d8dc(0xb8),'description':_0x19d8dc(0x1a1)})[_0x19d8dc(0x1d0)](_0x5d1c35[_0x19d8dc(0x179)],{'type':_0x19d8dc(0xb8),'description':_0x19d8dc(0x1cf)})[_0x19d8dc(0x1d0)]('skip-chromium',{'type':'boolean','description':_0x19d8dc(0x19f),'default':![]});},async _0x5c98da=>{const _0x574cc4=_0x2cb639;await withTelemetry('setup-ci',_0x11abbf=>setupCi(_0x5c98da[_0x574cc4(0x146)],{'profile':_0x5c98da[_0x574cc4(0x108)],'baseUrl':_0x5c98da['base-url'],'skipChromium':_0x5c98da[_0x574cc4(0x175)]},_0x11abbf));})[_0x2cb639(0xd4)](_0x2cb639(0x1ed),_0x2cb639(0xc3),()=>{},async()=>{const _0x287c9d={'gfbxE':'login'};await withTelemetry(_0x287c9d['gfbxE'],()=>login());})[_0x2cb639(0xd4)]('skillup',_0x2cb639(0x188),_0x5d3489=>{const _0x5b64d0=_0x2cb639,_0x255b0d={'bNAtj':_0x5b64d0(0x1a7),'YyPqi':'Install\x20skills\x20for\x20OpenCode','TJptc':'scope','BjFDF':_0x5b64d0(0xb8)};return _0x5d3489['option']('opencode',{'type':_0x255b0d['bNAtj'],'description':_0x255b0d['YyPqi'],'default':![]})[_0x5b64d0(0x1d0)](_0x255b0d[_0x5b64d0(0x109)],{'type':_0x255b0d['BjFDF'],'choices':[_0x5b64d0(0xfb),'project'],'description':_0x5b64d0(0x191)});},async _0x5b73a6=>{const _0x3c7aa8=_0x2cb639,_0x476dc5={'lAKUj':function(_0x2ceb62,_0x5e64e8){return _0x2ceb62(_0x5e64e8);},'lqNNq':'skillup'},_0x4082b8=_0x476dc5['lAKUj'](Boolean,_0x5b73a6['opencode']);await withTelemetry(_0x476dc5[_0x3c7aa8(0x1eb)],()=>skillup({'autoInstall':_0x5b73a6['scope'],'platform':_0x4082b8?'opencode':_0x3c7aa8(0x14b)}));})['command']('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x128e12=_0x2cb639,_0x4f27a9={'pjIdb':function(_0x2809c7,_0x12e19b,_0x4f9caf){return _0x2809c7(_0x12e19b,_0x4f9caf);}};await _0x4f27a9[_0x128e12(0x19c)](withTelemetry,_0x128e12(0x106),()=>clean());})['command'](_0x2cb639(0x108),'Manage\x20profiles',_0x437f7e=>{const _0x21b758=_0x2cb639,_0xd16f78={'ItGLC':'profile-name','JwpFq':_0x21b758(0x1ea),'cGnEQ':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','ellzX':_0x21b758(0x124),'FRQDC':'boolean','SEtgm':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','dtGTf':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','pKzNW':_0x21b758(0xe7),'xuivu':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','yDSKT':function(_0x31d5b2,_0x4491e1,_0x345d6c,_0x45a91d){return _0x31d5b2(_0x4491e1,_0x345d6c,_0x45a91d);},'pDJeE':'profile\x20add','SxvKg':'string','AkfAn':_0x21b758(0x18f),'azgmg':_0x21b758(0x108),'ooPPD':_0x21b758(0x1aa),'vGNcU':'profile\x20encrypt-auth','lvANT':function(_0x560dd9,_0x46a37d,_0x1c8a48){return _0x560dd9(_0x46a37d,_0x1c8a48);},'XBPKm':_0x21b758(0xb3),'GOMsb':function(_0x378029,_0x215c3b,_0x29a634){return _0x378029(_0x215c3b,_0x29a634);},'mSsdG':'profile\x20config\x20set','mveGp':_0x21b758(0x1c0),'BDcfp':_0x21b758(0xfe),'DFIbt':'set\x20<profile>\x20<key>\x20<value>','pfgAm':_0x21b758(0x127),'HNxlE':'add\x20<profile-name>','MMejX':_0x21b758(0x18a),'xFjNL':_0x21b758(0x199),'mnLxm':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','QdLmd':'update\x20<profile-name>'};return _0x437f7e[_0x21b758(0x17a)](PROFILE_HELP)['command'](_0xd16f78[_0x21b758(0x187)],_0x21b758(0xe1),_0x575e09=>{const _0x6e7e8b=_0x21b758;return _0x575e09[_0x6e7e8b(0x180)](_0xd16f78['ItGLC'],{'type':_0x6e7e8b(0xb8),'description':_0xd16f78[_0x6e7e8b(0xe2)],'demandOption':!![]})[_0x6e7e8b(0x1d0)]('ci',{'type':_0x6e7e8b(0x1a7),'description':_0xd16f78[_0x6e7e8b(0xc6)],'default':![]})['option'](_0xd16f78['ellzX'],{'type':_0xd16f78[_0x6e7e8b(0xdc)],'description':_0xd16f78[_0x6e7e8b(0x17b)],'default':![]})['option'](_0x6e7e8b(0x1ac),{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})[_0x6e7e8b(0x1d0)](_0x6e7e8b(0x9b),{'type':_0xd16f78[_0x6e7e8b(0xdc)],'description':_0xd16f78['dtGTf'],'default':![]})['option'](_0xd16f78['pKzNW'],{'type':'string','description':_0xd16f78['xuivu']});},async _0x16cd90=>{const _0x9551df=_0x21b758;await _0xd16f78['yDSKT'](withTelemetry,_0xd16f78[_0x9551df(0xb4)],_0x341e7d=>addEnv(_0x16cd90['profile-name'],{'ci':_0x16cd90['ci'],'skipAuth':_0x16cd90['skip-auth'],'url':_0x16cd90['url'],'force':_0x16cd90['force'],'cdpEndpoint':_0x16cd90[_0x9551df(0xe7)]},_0x341e7d),{'isElectron':Boolean(_0x16cd90['cdp-endpoint'])});})['command']('use\x20<profile-name>',_0xd16f78['MMejX'],_0x3ef2e2=>{const _0xceecdf=_0x21b758;return _0x3ef2e2['positional'](_0xd16f78[_0xceecdf(0xd1)],{'type':_0xd16f78['SxvKg'],'description':_0xceecdf(0x163),'demandOption':!![]});},async _0x591d36=>{const _0x2f6e1a=_0x21b758;await withTelemetry(_0xd16f78['AkfAn'],()=>useEnv(_0x591d36[_0x2f6e1a(0x12c)]));})[_0x21b758(0xd4)](_0xd16f78['xFjNL'],_0xd16f78['mnLxm'],_0x47dc7f=>{const _0x7538e8=_0x21b758;return _0x47dc7f['positional'](_0xd16f78[_0x7538e8(0x10b)],{'type':_0x7538e8(0xb8),'description':_0xd16f78['ooPPD'],'demandOption':!![]});},async _0x3130cb=>{const _0x2b0f9f=_0x21b758;await withTelemetry(_0xd16f78[_0x2b0f9f(0x15e)],()=>authEncrypt(_0x3130cb['profile']));})['command']('ls','List\x20all\x20profiles',()=>{},async()=>{const _0x42c5d6=_0x21b758;await _0xd16f78[_0x42c5d6(0x190)](withTelemetry,_0x42c5d6(0xc1),()=>envList());})[_0x21b758(0xd4)](_0xd16f78[_0x21b758(0x1ee)],'Update\x20authentication\x20for\x20an\x20existing\x20profile',_0xc5d46d=>{const _0x2fd39e=_0x21b758;return _0xc5d46d['positional'](_0xd16f78[_0x2fd39e(0xd1)],{'type':'string','description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]});},async _0x2557ba=>{const _0x486ac4=_0x21b758;await withTelemetry(_0xd16f78[_0x486ac4(0xcf)],_0x17c55b=>updateEnv(_0x2557ba['profile-name'],_0x17c55b));})['command'](_0x21b758(0x157),_0x21b758(0x15a),_0x5587b0=>{const _0x5a1c65=_0x21b758,_0x5c4c82={'zsjUT':_0xd16f78[_0x5a1c65(0x1d3)],'fjQMa':_0x5a1c65(0x142),'aMSGD':function(_0x45cfd7,_0x101fd0,_0x369328){return _0x45cfd7(_0x101fd0,_0x369328);},'ApSqv':'profile\x20config\x20get','sjgKd':_0xd16f78[_0x5a1c65(0xd0)]};return _0x5587b0['usage'](PROFILE_CONFIG_HELP)[_0x5a1c65(0xd4)](_0xd16f78['DFIbt'],_0x5a1c65(0x1a5),_0x827e81=>{const _0x326e29=_0x5a1c65;return _0x827e81[_0x326e29(0x180)]('profile',{'type':_0x5c4c82['zsjUT'],'description':_0x326e29(0x1aa),'demandOption':!![]})[_0x326e29(0x180)]('key',{'type':_0x326e29(0xb8),'description':_0x5c4c82[_0x326e29(0x164)],'demandOption':!![]})[_0x326e29(0x180)]('value',{'type':_0x5c4c82['zsjUT'],'description':'Config\x20value','demandOption':!![]});},async _0x22ee4=>{const _0x1e01e8=_0x5a1c65;await _0xd16f78[_0x1e01e8(0x1a3)](withTelemetry,_0xd16f78['mSsdG'],()=>configSet(_0x22ee4['profile'],_0x22ee4['key'],_0x22ee4[_0x1e01e8(0x120)]));})[_0x5a1c65(0xd4)]('get\x20<profile>\x20<key>',_0x5a1c65(0x18d),_0x57887a=>{const _0x2cd15f=_0x5a1c65;return _0x57887a['positional']('profile',{'type':_0xd16f78[_0x2cd15f(0x1d3)],'description':_0xd16f78['ooPPD'],'demandOption':!![]})[_0x2cd15f(0x180)]('key',{'type':_0x2cd15f(0xb8),'description':_0xd16f78[_0x2cd15f(0x178)],'demandOption':!![]});},async _0x1907e1=>{const _0x54e744=_0x5a1c65;await _0x5c4c82['aMSGD'](withTelemetry,_0x5c4c82['ApSqv'],()=>configGet(_0x1907e1[_0x54e744(0x108)],_0x1907e1[_0x54e744(0xe9)]));})[_0x5a1c65(0xd4)](_0x5a1c65(0xff),'List\x20all\x20config\x20for\x20a\x20profile',_0x1576e0=>{const _0x3104bf=_0x5a1c65;return _0x1576e0['positional'](_0xd16f78[_0x3104bf(0x10b)],{'type':_0x3104bf(0xb8),'description':_0x3104bf(0x1aa),'demandOption':!![]});},async _0x4d5853=>{const _0x3d9c71=_0x5a1c65;await withTelemetry(_0xd16f78['BDcfp'],()=>configList(_0x4d5853[_0x3d9c71(0x108)]));})[_0x5a1c65(0xd4)](_0xd16f78[_0x5a1c65(0x143)],_0x5a1c65(0x17d),_0x4fb089=>{const _0x3ec6c4=_0x5a1c65;return _0x4fb089[_0x3ec6c4(0x180)]('profile',{'type':_0x5c4c82['zsjUT'],'description':_0x5c4c82['sjgKd'],'demandOption':!![]})['positional'](_0x3ec6c4(0xe9),{'type':_0x5c4c82[_0x3ec6c4(0x159)],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x13691b=>{const _0x1f3b11=_0x5a1c65;await _0x5c4c82[_0x1f3b11(0x149)](withTelemetry,_0x1f3b11(0x1c1),()=>configUnset(_0x13691b[_0x1f3b11(0x108)],_0x13691b['key']));})['demandCommand'](0x1,_0x5a1c65(0xd3));})[_0x21b758(0x134)](0x1,_0x21b758(0x19b));})[_0x2cb639(0xd4)](_0x2cb639(0x103),_0x2cb639(0xbe),()=>{},async()=>{const _0x2d4b41={'BIbkL':'status'};await withTelemetry(_0x2d4b41['BIbkL'],()=>status());})['command'](_0x2cb639(0x101),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x5ca7d9=_0x2cb639,_0xd189e={'hmxSh':'update'};await withTelemetry(_0xd189e[_0x5ca7d9(0x14d)],()=>update());})['command']('go',_0x2cb639(0xdb),_0x2a89e6=>{const _0x230429=_0x2cb639,_0x3e9e66={'alqbE':_0x230429(0x108),'AWuOW':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','LZtad':_0x230429(0xb8),'XMTLa':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','WUkQS':'start-path','SUxHu':_0x230429(0x1e2),'MKBhy':_0x230429(0xd6),'lmHbv':'partial','crjXZ':_0x230429(0x155),'tybHS':_0x230429(0x11c),'ODZuE':_0x230429(0x17e)};return _0x2a89e6[_0x230429(0x1d0)](_0x3e9e66['alqbE'],{'type':_0x230429(0xb8),'description':_0x3e9e66[_0x230429(0x9d)]})[_0x230429(0x1d0)]('notes',{'type':_0x3e9e66[_0x230429(0x1e5)],'description':_0x3e9e66['XMTLa']})['option']('scenario',{'type':'number','description':_0x230429(0xa9)})['option'](_0x3e9e66[_0x230429(0xc7)],{'type':_0x230429(0xb8),'description':_0x230429(0xb1)})[_0x230429(0x1d0)]('model',{'type':'string','description':_0x3e9e66['SUxHu']})['option'](_0x3e9e66[_0x230429(0x162)],{'type':'string','hidden':!![],'choices':['verified',_0x3e9e66[_0x230429(0x9f)],'blocked','failed','incomplete']})[_0x230429(0x1d0)](_0x230429(0x173),{'type':_0x230429(0x1a7),'hidden':!![]})['option'](_0x3e9e66['crjXZ'],{'type':_0x3e9e66['LZtad'],'hidden':!![]})[_0x230429(0x1d0)](_0x3e9e66[_0x230429(0x182)],{'type':_0x3e9e66[_0x230429(0x1e5)],'hidden':!![]})['option']('item',{'type':_0x3e9e66[_0x230429(0xa8)],'hidden':!![]});},async _0x2aa9b6=>{const _0x32c3f1=_0x2cb639,_0x395448={'MZBwi':function(_0x4c27ba,_0x255fc5){return _0x4c27ba(_0x255fc5);}};await _0x395448[_0x32c3f1(0x152)](runGoCommand,_0x2aa9b6);})[_0x2cb639(0xd4)](_0x2cb639(0x196),![],_0x4ec12b=>{const _0x152cbd=_0x2cb639,_0x43448b={'sGpIw':'string','NdvRp':'Profile\x20name','wHrDF':function(_0x583054,_0x3b5719,_0x421171){return _0x583054(_0x3b5719,_0x421171);},'kNcDi':_0x152cbd(0x135),'mEaCz':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x4ec12b[_0x152cbd(0xd4)](_0x152cbd(0x10d),![],_0x1f990c=>{return _0x1f990c['positional']('profile',{'type':_0x43448b['sGpIw'],'description':_0x43448b['NdvRp'],'demandOption':!![]});},async _0x8a7dc2=>{const _0x2c9715=_0x152cbd;_0x43448b[_0x2c9715(0xdd)](warnRenamed,_0x43448b[_0x2c9715(0x1db)],'ranger\x20profile\x20encrypt-auth'),await authEncrypt(_0x8a7dc2['profile']);})[_0x152cbd(0x134)](0x1,_0x43448b['mEaCz']);},()=>{})['command']('start\x20[token]',![],_0x1df885=>{const _0x43b3d1=_0x2cb639,_0x157d95={'RGhpn':_0x43b3d1(0xb8),'SGvMl':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','ngdUh':'boolean','xPjmP':_0x43b3d1(0xcb),'TqoMK':'scope','GjhmY':'project','oMSgJ':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','VtlNn':_0x43b3d1(0x9b)};return _0x1df885[_0x43b3d1(0x180)](_0x43b3d1(0x146),{'type':_0x157d95[_0x43b3d1(0x144)],'description':_0x157d95['SGvMl']})[_0x43b3d1(0x1d0)]('skip-chromium',{'type':_0x157d95['ngdUh'],'description':_0x157d95[_0x43b3d1(0x165)],'default':![]})['option'](_0x157d95['TqoMK'],{'type':_0x157d95['RGhpn'],'choices':[_0x43b3d1(0xfb),_0x157d95[_0x43b3d1(0x1ba)]],'description':_0x157d95[_0x43b3d1(0x13e)]})[_0x43b3d1(0x1d0)]('url',{'type':_0x43b3d1(0xb8),'description':_0x43b3d1(0x117)})['option'](_0x157d95[_0x43b3d1(0xe5)],{'type':_0x157d95['ngdUh'],'description':_0x43b3d1(0x136),'default':![]});},async _0xbf73ac=>{const _0x3d96ae=_0x2cb639,_0x511c3f={'bxkbV':'ranger\x20start','twUtL':function(_0x3b3293,_0x3dfcc3,_0x1daec1){return _0x3b3293(_0x3dfcc3,_0x1daec1);}};warnRenamed(_0x511c3f['bxkbV'],_0x3d96ae(0xd8)),await _0x511c3f[_0x3d96ae(0x1ae)](withTelemetry,'start',_0xf6688=>start(_0xbf73ac[_0x3d96ae(0x146)],{'skipChromium':_0xbf73ac[_0x3d96ae(0x175)],'scope':_0xbf73ac[_0x3d96ae(0x11a)],'url':_0xbf73ac[_0x3d96ae(0x1ac)],'force':_0xbf73ac['force']},_0xf6688));})[_0x2cb639(0xd4)](_0x2cb639(0x1d2),![],_0x57737c=>{const _0x46a475=_0x2cb639,_0x4d5d69={'XEYVi':_0x46a475(0xde),'anTPW':'task','EmHRa':'string','QrtAx':_0x46a475(0x108),'RmogG':_0x46a475(0x17e),'KCJaS':_0x46a475(0xb1),'IDwlB':_0x46a475(0xa0),'jqNFy':'partial','BbUxw':'blocked','LvGyT':'failed','EitkT':_0x46a475(0x1ca)};return _0x57737c[_0x46a475(0x1d0)]('env',{'type':_0x46a475(0xb8),'description':_0x4d5d69[_0x46a475(0x1b9)]})[_0x46a475(0x1d0)](_0x4d5d69[_0x46a475(0x105)],{'type':_0x4d5d69['EmHRa'],'description':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)'})['option'](_0x46a475(0x11f),{'type':_0x46a475(0x17e),'description':'Scenario\x20index\x20(1-based)'})[_0x46a475(0x1d0)](_0x4d5d69['QrtAx'],{'type':_0x4d5d69[_0x46a475(0x1e1)],'hidden':!![]})[_0x46a475(0x1d0)]('notes',{'type':_0x46a475(0xb8),'hidden':!![]})[_0x46a475(0x1d0)](_0x46a475(0x9a),{'type':_0x4d5d69['RmogG'],'hidden':!![]})['option'](_0x46a475(0x102),{'type':_0x4d5d69['EmHRa'],'description':_0x4d5d69['KCJaS']})[_0x46a475(0x1d0)]('model',{'type':_0x4d5d69[_0x46a475(0x1e1)],'hidden':!![]})['option']('debug-outcome',{'type':_0x4d5d69['EmHRa'],'hidden':!![],'choices':[_0x4d5d69['IDwlB'],_0x4d5d69['jqNFy'],_0x4d5d69['BbUxw'],_0x4d5d69[_0x46a475(0x19e)],_0x4d5d69[_0x46a475(0x1ec)]]});},async _0x149bc1=>{const _0x24660b=_0x2cb639,_0x15a62e={'RatqR':function(_0x521b22,_0x3a6545,_0xf29ae2){return _0x521b22(_0x3a6545,_0xf29ae2);}};await _0x15a62e[_0x24660b(0x16e)](runGoCommand,_0x149bc1,!![]);})['command']('add\x20env\x20<env-name>',![],_0x287d27=>{const _0x294946=_0x2cb639,_0x392d12={'QqhDf':_0x294946(0x1a7),'dhguQ':_0x294946(0x1e3)};return _0x287d27[_0x294946(0x180)](_0x294946(0x14f),{'type':_0x294946(0xb8),'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x392d12['QqhDf'],'description':_0x294946(0x121),'default':![]})[_0x294946(0x1d0)]('skip-auth',{'type':_0x392d12['QqhDf'],'description':_0x392d12['dhguQ'],'default':![]});},async _0x415de6=>{const _0x1859ef=_0x2cb639,_0x4ef97c={'uRAxW':function(_0x13e5d7,_0x487e87,_0x4e1c39){return _0x13e5d7(_0x487e87,_0x4e1c39);},'XGQHU':'ranger\x20add\x20env','Ezjoa':'add\x20env'};_0x4ef97c[_0x1859ef(0x154)](warnRenamed,_0x4ef97c[_0x1859ef(0x9e)],_0x1859ef(0x123)),await withTelemetry(_0x4ef97c[_0x1859ef(0xd2)],_0x460083=>addEnv(_0x415de6['env-name'],{'ci':_0x415de6['ci'],'skipAuth':_0x415de6[_0x1859ef(0x124)]},_0x460083));})[_0x2cb639(0xd4)](_0x2cb639(0xd9),![],_0x482123=>{const _0x47b749=_0x2cb639,_0x3ed333={'SldGf':'env-name','GMgIt':_0x47b749(0xb8)};return _0x482123[_0x47b749(0x180)](_0x3ed333[_0x47b749(0x1bb)],{'type':_0x3ed333['GMgIt'],'description':_0x47b749(0x1d1),'demandOption':!![]});},async _0x414f09=>{const _0x2296c1=_0x2cb639,_0x182d42={'OhxDV':'ranger\x20use','KCjsO':'ranger\x20profile\x20use','pbvdz':_0x2296c1(0x147)};warnRenamed(_0x182d42[_0x2296c1(0x18c)],_0x182d42['KCjsO']),await withTelemetry(_0x182d42[_0x2296c1(0x1be)],()=>useEnv(_0x414f09[_0x2296c1(0x14f)]));})[_0x2cb639(0xd4)]('config',![],_0x16960f=>{const _0x461f04=_0x2cb639,_0x231777={'DACoP':_0x461f04(0xac),'PnouC':_0x461f04(0x1a4),'FTbOw':function(_0x15c045,_0x1fdde2,_0x2c4f9a){return _0x15c045(_0x1fdde2,_0x2c4f9a);},'RzouQ':_0x461f04(0x1dd),'gIzAR':'key','PJFKs':'string','jKdzg':'ranger\x20config\x20get','qyNcU':_0x461f04(0xb9),'wIgrI':'ranger\x20profile\x20config\x20list','ovvjW':'config\x20list','JcBxs':'env','uTyeL':_0x461f04(0x1bc),'yYaDh':'ranger\x20config\x20unset','SDALP':'ranger\x20profile\x20config\x20unset','cBPtW':function(_0x450afd,_0x2634bd,_0x435ca7){return _0x450afd(_0x2634bd,_0x435ca7);},'YkctT':'set\x20<env>\x20<key>\x20<value>','iaHxt':_0x461f04(0xe6),'UbCLS':_0x461f04(0xfd),'hqrAp':_0x461f04(0x15f)};return _0x16960f['command'](_0x231777[_0x461f04(0x184)],![],_0xe846bf=>{const _0x56f6c8=_0x461f04;return _0xe846bf[_0x56f6c8(0x180)]('env',{'type':'string','description':'Environment\x20name','demandOption':!![]})[_0x56f6c8(0x180)](_0x56f6c8(0xe9),{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x56f6c8(0x180)](_0x56f6c8(0x120),{'type':_0x56f6c8(0xb8),'description':_0x56f6c8(0x1ce),'demandOption':!![]});},async _0x20ee2d=>{const _0x4301a7=_0x461f04;warnRenamed(_0x231777[_0x4301a7(0xb2)],_0x231777[_0x4301a7(0x115)]),await _0x231777[_0x4301a7(0x169)](withTelemetry,_0x231777['RzouQ'],()=>configSet(_0x20ee2d[_0x4301a7(0x155)],_0x20ee2d[_0x4301a7(0xe9)],_0x20ee2d[_0x4301a7(0x120)]));})['command'](_0x231777[_0x461f04(0x1de)],![],_0x3c738a=>{const _0x1536dd=_0x461f04;return _0x3c738a['positional'](_0x1536dd(0x155),{'type':'string','description':_0x1536dd(0xb9),'demandOption':!![]})[_0x1536dd(0x180)](_0x231777['gIzAR'],{'type':_0x231777[_0x1536dd(0x13c)],'description':_0x1536dd(0x1c0),'demandOption':!![]});},async _0x2da201=>{warnRenamed(_0x231777['jKdzg'],'ranger\x20profile\x20config\x20get'),await _0x231777['FTbOw'](withTelemetry,'config\x20get',()=>configGet(_0x2da201['env'],_0x2da201['key']));})[_0x461f04(0xd4)](_0x231777[_0x461f04(0x168)],![],_0x4fdd10=>{const _0x2b8719=_0x461f04;return _0x4fdd10[_0x2b8719(0x180)]('env',{'type':_0x231777[_0x2b8719(0x13c)],'description':_0x231777[_0x2b8719(0x118)],'demandOption':!![]});},async _0x4c3f8f=>{const _0x42cabe=_0x461f04;warnRenamed('ranger\x20config\x20list',_0x231777['wIgrI']),await _0x231777['FTbOw'](withTelemetry,_0x231777[_0x42cabe(0x174)],()=>configList(_0x4c3f8f[_0x42cabe(0x155)]));})['command']('unset\x20<env>\x20<key>',![],_0x488da4=>{const _0x5f569d=_0x461f04;return _0x488da4[_0x5f569d(0x180)](_0x231777[_0x5f569d(0x1e6)],{'type':_0x5f569d(0xb8),'description':_0x231777[_0x5f569d(0x118)],'demandOption':!![]})['positional'](_0x231777['gIzAR'],{'type':_0x5f569d(0xb8),'description':_0x231777[_0x5f569d(0x116)],'demandOption':!![]});},async _0x24ca19=>{const _0x46ae88=_0x461f04;warnRenamed(_0x231777['yYaDh'],_0x231777['SDALP']),await _0x231777['cBPtW'](withTelemetry,_0x46ae88(0x14a),()=>configUnset(_0x24ca19[_0x46ae88(0x155)],_0x24ca19[_0x46ae88(0xe9)]));})[_0x461f04(0x134)](0x1,_0x231777[_0x461f04(0x1e9)]);})[_0x2cb639(0xd4)](_0x2cb639(0x155),![],_0x606efa=>{const _0x4aceda=_0x2cb639,_0x126206={'qVuyg':_0x4aceda(0x156),'EwvuI':function(_0x3f1802,_0x488435,_0x4e0fad){return _0x3f1802(_0x488435,_0x4e0fad);},'xTMRp':_0x4aceda(0xb8),'RNlMZ':'Name\x20of\x20the\x20environment\x20to\x20update','znrMJ':'update\x20<env-name>','XzuVS':_0x4aceda(0x150)};return _0x606efa['command']('ls',![],()=>{},async()=>{const _0xbbe1b=_0x4aceda;warnRenamed(_0x126206[_0xbbe1b(0xb6)],_0xbbe1b(0x122)),await _0x126206['EwvuI'](withTelemetry,_0xbbe1b(0x1da),()=>envList());})['command'](_0x126206[_0x4aceda(0x140)],![],_0x56e0ea=>{const _0x216e6c=_0x4aceda;return _0x56e0ea['positional']('env-name',{'type':_0x126206[_0x216e6c(0x13f)],'description':_0x126206[_0x216e6c(0x1a6)],'demandOption':!![]});},async _0x4615b6=>{const _0x4b07db=_0x4aceda;warnRenamed('ranger\x20env\x20update','ranger\x20profile\x20update'),await _0x126206[_0x4b07db(0x170)](withTelemetry,_0x4b07db(0xe8),_0x4d62bd=>updateEnv(_0x4615b6[_0x4b07db(0x14f)],_0x4d62bd));})[_0x4aceda(0x134)](0x1,_0x126206[_0x4aceda(0x128)]);})['command'](_0x2cb639(0xd5),![],_0x5c239b=>{const _0x224ff3=_0x2cb639,_0x600678={'xcDvm':_0x224ff3(0x1b7),'HRAWT':'string','ITvNT':_0x224ff3(0x1a9),'cBblt':'ranger\x20create','VjpLz':function(_0x215835,_0x369a08,_0x449f64,_0x42bea5){return _0x215835(_0x369a08,_0x449f64,_0x42bea5);},'RbBAx':'feature\x20create','FpivW':_0x224ff3(0x171),'iYNpu':_0x224ff3(0x17e),'gopLK':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','BVwbx':'include-deleted','bHYYg':_0x224ff3(0x1a7),'eoOWy':'Include\x20soft-deleted\x20feature\x20reviews','JECug':function(_0x34cd26,_0xcb29c5,_0x294bd5){return _0x34cd26(_0xcb29c5,_0x294bd5);},'FklOW':_0x224ff3(0xc2),'hGFHb':_0x224ff3(0x10f),'hkmsm':'ranger\x20show','Xykfs':'feature\x20show','IiCMj':_0x224ff3(0x161),'wTDeS':'Scenario\x20description','pwgNF':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','qfFEa':'ranger\x20feature\x20add-checklist-item','TweVT':_0x224ff3(0xbd),'lEPYt':_0x224ff3(0x16f),'MFBnP':function(_0x389c6e,_0x4c610c,_0x3663ed){return _0x389c6e(_0x4c610c,_0x3663ed);},'HWGio':function(_0x2f0399,_0x5261af,_0x777753){return _0x2f0399(_0x5261af,_0x777753);},'zRptW':'ranger\x20delete','wZSfV':'feature\x20delete','UrHGJ':'ranger\x20feature\x20restore','OxHKC':'show\x20[id]','eDWqU':'resume\x20[id]','MkGPU':_0x224ff3(0x129),'mBivl':'restore\x20<id>','duLZf':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x5c239b[_0x224ff3(0xd4)]('create\x20<name>',![],_0x535c71=>{const _0x5f59a3=_0x224ff3;return _0x535c71['positional'](_0x5f59a3(0x107),{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})[_0x5f59a3(0x1d0)](_0x600678[_0x5f59a3(0xa2)],{'type':_0x600678['HRAWT'],'alias':'d','description':_0x5f59a3(0x1c4)})[_0x5f59a3(0x1d0)](_0x5f59a3(0xa3),{'type':_0x600678[_0x5f59a3(0xef)],'alias':'c','description':_0x5f59a3(0x158)})['option']('scenario',{'type':_0x600678[_0x5f59a3(0xef)],'hidden':!![]});},async _0x32890d=>{const _0x35f974=_0x224ff3;warnRenamed(_0x35f974(0xad),_0x600678['cBblt']),_0x600678['VjpLz'](warnFlagRenamed,_0x35f974(0xb7),'--checklist','--scenario');const _0x40736a=_0x32890d[_0x35f974(0x9a)]||_0x32890d[_0x35f974(0xa3)];await withTelemetry(_0x600678['RbBAx'],()=>featureCreate(_0x32890d[_0x35f974(0x107)],{'description':_0x32890d[_0x35f974(0x1b7)],'scenarios':_0x40736a}));})[_0x224ff3(0xd4)]('list',![],_0x42b134=>{const _0x5ca26d=_0x224ff3;return _0x42b134[_0x5ca26d(0x1d0)](_0x600678['FpivW'],{'type':_0x5ca26d(0x1a7),'description':_0x5ca26d(0x160)})[_0x5ca26d(0x1d0)]('limit',{'type':_0x600678['iYNpu'],'alias':'l','description':_0x600678['gopLK'],'default':0xa})['option']('offset',{'type':_0x600678['iYNpu'],'alias':'o','description':_0x5ca26d(0xab),'default':0x0})['option'](_0x600678['BVwbx'],{'type':_0x600678['bHYYg'],'alias':'d','description':_0x600678['eoOWy'],'default':![]});},async _0x5466ba=>{const _0x2e8451=_0x224ff3;_0x600678['JECug'](warnRenamed,'ranger\x20feature\x20list','ranger\x20list'),await _0x600678['JECug'](withTelemetry,_0x600678[_0x2e8451(0xf7)],()=>featureList({'currentBranch':_0x5466ba[_0x2e8451(0x171)],'limit':_0x5466ba['limit'],'offset':_0x5466ba['offset'],'includeDeleted':_0x5466ba['include-deleted']}));})['command'](_0x600678[_0x224ff3(0xb5)],![],_0x29222e=>{const _0x392bd3=_0x224ff3;return _0x29222e['positional']('id',{'type':'string','description':_0x392bd3(0x1cc)});},async _0x4eb255=>{const _0x20f8b8=_0x224ff3;warnRenamed(_0x600678[_0x20f8b8(0x126)],_0x600678['hkmsm']),await _0x600678['JECug'](withTelemetry,_0x600678['Xykfs'],()=>featureShow(_0x4eb255['id']));})[_0x224ff3(0xd4)](_0x600678['eDWqU'],![],_0x119499=>{const _0x176ba9=_0x224ff3;return _0x119499['positional']('id',{'type':_0x600678[_0x176ba9(0x113)],'description':_0x600678[_0x176ba9(0x1b8)]});},async _0x299cce=>{const _0x5016c4=_0x224ff3;warnRenamed(_0x5016c4(0x16d),_0x5016c4(0x110)),await withTelemetry(_0x5016c4(0x1d6),()=>featureResume(_0x299cce['id']));})[_0x224ff3(0xd4)]('add-checklist-item\x20<description>',![],_0xe9c20e=>{const _0x10a0ac=_0x224ff3;return _0xe9c20e['positional']('description',{'type':'string','description':_0x600678['wTDeS'],'demandOption':!![]})[_0x10a0ac(0x1d0)]('id',{'type':_0x600678['HRAWT'],'description':_0x600678['pwgNF']});},async _0x1aff31=>{const _0x2943cc=_0x224ff3;warnRenamed(_0x600678[_0x2943cc(0xea)],'ranger\x20add-scenario'),await withTelemetry(_0x600678['TweVT'],()=>featureAddScenario(_0x1aff31['description'],_0x1aff31['id']));})[_0x224ff3(0xd4)](_0x600678[_0x224ff3(0xc8)],![],_0x4134e4=>{return _0x4134e4['positional']('id',{'type':_0x600678['HRAWT'],'description':_0x600678['pwgNF']});},async _0x50427c=>{const _0x272596=_0x224ff3;_0x600678['JECug'](warnRenamed,_0x600678['lEPYt'],_0x272596(0x119)),await _0x600678[_0x272596(0xec)](withTelemetry,_0x272596(0x100),()=>featureGetReview(_0x50427c['id']));})[_0x224ff3(0xd4)](_0x224ff3(0x131),![],_0x1fb72c=>{const _0x248775=_0x224ff3;return _0x1fb72c['positional']('id',{'type':'string','description':_0x248775(0x1cc)});},async _0x21ed11=>{const _0xbaddd1=_0x224ff3;_0x600678[_0xbaddd1(0xe4)](warnRenamed,'ranger\x20feature\x20delete',_0x600678['zRptW']),await withTelemetry(_0x600678[_0xbaddd1(0x18e)],()=>featureDelete(_0x21ed11['id']));})['command'](_0x600678[_0x224ff3(0x13d)],![],_0x1a3bcb=>{const _0x154829=_0x224ff3;return _0x1a3bcb[_0x154829(0x180)]('id',{'type':_0x600678[_0x154829(0x113)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x489782=>{const _0x8b41a8=_0x224ff3;_0x600678[_0x8b41a8(0xec)](warnRenamed,_0x600678[_0x8b41a8(0x1b1)],_0x8b41a8(0x172)),await withTelemetry(_0x8b41a8(0x186),()=>featureRestore(_0x489782['id']));})['demandCommand'](0x1,_0x600678['duLZf']);})[_0x2cb639(0xd4)](_0x2cb639(0xf5),![],_0x1eb1ce=>{const _0x3acfcf=_0x2cb639,_0x1282ae={'mxmdF':'session-id','EWXnH':'string','qJFPQ':_0x3acfcf(0xba),'kWJRr':function(_0x51b809,_0x564c88,_0x2fa071){return _0x51b809(_0x564c88,_0x2fa071);},'nrfzv':_0x3acfcf(0x9c),'UOOTr':_0x3acfcf(0xbf),'dNVOg':_0x3acfcf(0x153),'DhaVJ':_0x3acfcf(0x107),'pfUTe':_0x3acfcf(0xc9),'NnHEM':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'};return _0x1eb1ce[_0x3acfcf(0xd4)](_0x1282ae[_0x3acfcf(0x112)],'Enable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x24ed58=>{const _0x571d5f=_0x3acfcf;return _0x24ed58['option'](_0x1282ae['mxmdF'],{'type':_0x1282ae['EWXnH'],'description':_0x571d5f(0x1b2)});},async _0x247e75=>{const _0x52c19a=_0x3acfcf;await withTelemetry(_0x1282ae['qJFPQ'],()=>hook(_0x52c19a(0xbf),_0x247e75[_0x52c19a(0x13a)]));})[_0x3acfcf(0xd4)]('disable',_0x1282ae['dNVOg'],_0x53b954=>{const _0x230816=_0x3acfcf;return _0x53b954['option'](_0x1282ae[_0x230816(0xf4)],{'type':_0x1282ae['EWXnH'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x851e16=>{const _0x7a05e7=_0x3acfcf;await _0x1282ae[_0x7a05e7(0x1a8)](withTelemetry,_0x1282ae[_0x7a05e7(0xf9)],()=>hook(_0x7a05e7(0x1c9),_0x851e16['session-id']));})['option'](_0x1282ae[_0x3acfcf(0x176)],{'type':_0x1282ae[_0x3acfcf(0x1bd)],'description':_0x1282ae[_0x3acfcf(0x10a)]})['option']('session-id',{'type':'string','description':_0x1282ae['NnHEM']});},async _0x21f969=>{const _0x2778af=_0x2cb639,_0x4b6050={'sCqyj':function(_0x4c7a57,_0x245a41,_0x2bcba3){return _0x4c7a57(_0x245a41,_0x2bcba3);},'Tlpkp':_0x2778af(0x13a)};_0x21f969[_0x2778af(0x107)]&&await _0x4b6050[_0x2778af(0x1b5)](hook,_0x21f969['name'],_0x21f969[_0x4b6050[_0x2778af(0xfa)]]);})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()['fail'](async(_0x35d7b7,_0x50dc2f,_0x9fbdba)=>{const _0x5a79b5=_0x2cb639,_0x54dd94={'okRuh':function(_0x26e997,_0x62958e){return _0x26e997(_0x62958e);},'uCclQ':function(_0x4e1cea,_0x1bcae2,_0x3d26cc){return _0x4e1cea(_0x1bcae2,_0x3d26cc);},'eOleg':_0x5a79b5(0xfc),'HGpzY':function(_0x1cbb38){return _0x1cbb38();}},_0x28aa8c=_0x54dd94['okRuh'](sanitizeArgs,process['argv'][_0x5a79b5(0x13b)](0x2)),_0x2ec797=_0x54dd94[_0x5a79b5(0x183)](getErrorType,_0x35d7b7,_0x50dc2f);if(_0x35d7b7&&_0x35d7b7[_0x5a79b5(0x1b0)](_0x54dd94['eOleg'])){const _0x3996b0=process['argv'][0x2];console[_0x5a79b5(0xcd)]('\x0aUnknown\x20command:\x20'+_0x3996b0),console[_0x5a79b5(0xcd)](_0x5a79b5(0x166));}else{if(_0x35d7b7)console[_0x5a79b5(0xcd)]('\x0a'+_0x35d7b7+'\x0a');else _0x50dc2f&&console[_0x5a79b5(0xcd)](_0x5a79b5(0x1c5)+_0x50dc2f[_0x5a79b5(0x138)]+'\x0a');}await _0x54dd94['okRuh'](logDesirePath,{'rawCommand':_0x28aa8c,'errorMessage':_0x35d7b7||_0x50dc2f?.['message'],'errorType':_0x2ec797});const _0x2e87ee=_0x54dd94[_0x5a79b5(0xf6)](getCurrentCollector);_0x2e87ee&&await _0x2e87ee['trackCommandError'](_0x50dc2f||new Error(_0x35d7b7||_0x5a79b5(0xe3))),process[_0x5a79b5(0x139)](0x1);})['epilogue']('Documentation:\x0a'+_0x2cb639(0x167)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()[_0x2cb639(0xca)]('help','h')['parse']();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x1492f7,_0x527dd8){const _0x5eba6a=_0x5e00,_0x4ce1ab=_0x1492f7();while(!![]){try{const _0x5f151e=parseInt(_0x5eba6a(0xa0))/0x1+parseInt(_0x5eba6a(0xb6))/0x2+-parseInt(_0x5eba6a(0xd2))/0x3+parseInt(_0x5eba6a(0xdf))/0x4*(-parseInt(_0x5eba6a(0xc0))/0x5)+-parseInt(_0x5eba6a(0x8b))/0x6*(-parseInt(_0x5eba6a(0xc9))/0x7)+parseInt(_0x5eba6a(0xd0))/0x8*(-parseInt(_0x5eba6a(0xb0))/0x9)+-parseInt(_0x5eba6a(0x86))/0xa;if(_0x5f151e===_0x527dd8)break;else _0x4ce1ab['push'](_0x4ce1ab['shift']());}catch(_0x1e9618){_0x4ce1ab['push'](_0x4ce1ab['shift']());}}}(_0x46b7,0x1e75a));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x4391fa from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';function _0x46b7(){const _0x4c6943=['\x20(continuing\x20with\x20--force)','Continue\x20anyway','.tmp-','aECit','HTTP\x20','8ZStExb','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','\x20would\x20shadow\x20the\x20existing\x20profile.','KPOig','TrMmF','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','1368710AoItjY','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','error','\x22\x20configured','Saving\x20authentication\x20state...','6KhuAGA','Delete\x20existing\x20and\x20create\x20new\x20in\x20','ErGFb','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','use_suggestion','xfYwK','now','\x20\x20Set\x20active\x20profile:\x20','manual','✓\x20Auth\x20state\x20saved\x20to:\x20','\x22\x20already\x20exists.\x20Overwrite?','launch','overwrite','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','MpVeg','signal','lVGKD','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','Removed\x20existing\x20profile\x20at\x20','✓\x20Created\x20settings:\x20','close','65802XFlWSf','wnkOB','BGeOM','shouldReplace','Use\x20','jieoy','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','config_write','log','confirm','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','SJXmR','isTTY','http://localhost:3000','baseUrl','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','9MPYmty','⚠\x20Could\x20not\x20reach\x20','cdpEndpoint','Enter\x20a\x20different\x20URL','goto','UdGKb','243134aPSQOY','Iehmp','xPCxP','YMIxa','trackPhaseEnd','skipAuth','jjeyy','kpFgD','\x0a📋\x20Authentication\x20Setup','browser_auth','42710spyqvR','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','storageState','WuXWo','tsxgp','path','vDlpb','\x0a\x20\x20Could\x20not\x20reach\x20','1558578pbzEGV','EBKaZ','action','KzKxl','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','uvxai','url','590768gnqUld','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','172380MwImjZ','location','awoUV','.backup-','uwHpv','TypeError','\x20\x20Did\x20you\x20mean\x20','\x0a⚠️\x20\x20Profile\x20\x22'];_0x46b7=function(){return _0x4c6943;};return _0x46b7();}import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';function _0x5e00(_0x36ec3f,_0x5e808f){_0x36ec3f=_0x36ec3f-0x85;const _0x46b7cb=_0x46b7();let _0x5e0070=_0x46b7cb[_0x36ec3f];return _0x5e0070;}async function checkUrlReachability(_0x137738){const _0x249076=_0x5e00,_0x3cf89e={'yYLCr':function(_0x491176,_0x1a0e22,_0x24f627){return _0x491176(_0x1a0e22,_0x24f627);},'YMIxa':function(_0x41d08f,_0x4a59a9){return _0x41d08f<_0x4a59a9;},'oUDYZ':function(_0x4f221b,_0x3481aa){return _0x4f221b(_0x3481aa);},'AXLXG':'Invalid\x20URL','vDlpb':function(_0x5567c2,_0x43c582){return _0x5567c2===_0x43c582;},'jjeyy':'fetch\x20failed'};try{const _0x14d7ed=new AbortController(),_0x236ea0=_0x3cf89e['yYLCr'](setTimeout,()=>_0x14d7ed['abort'](),0x1388),_0x554bc1=await fetch(_0x137738,{'method':'HEAD','signal':_0x14d7ed[_0x249076(0x9a)],'redirect':_0x249076(0x93)});clearTimeout(_0x236ea0);if(_0x3cf89e[_0x249076(0xb9)](_0x554bc1['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x249076(0xde)+_0x554bc1['status']};}catch(_0x535ec3){const _0x20f6cf=_0x535ec3,_0x535847=_0x20f6cf['message']||_0x3cf89e['oUDYZ'](String,_0x535ec3),_0x242d1c=_0x535847['includes'](_0x3cf89e['AXLXG'])||_0x3cf89e[_0x249076(0xc7)](_0x20f6cf['name'],_0x249076(0xd7))||_0x535847['includes'](_0x3cf89e[_0x249076(0xbc)]);return{'ok':![],'error':_0x535847,'isProtocolError':_0x242d1c};}}export async function addEnv(_0xa6c0a1,_0x13d138={},_0x14f39c){const _0x42c884=_0x5e00,_0x4ace91={'TRWVs':_0x42c884(0x9f),'vbFSK':'local','MpVeg':function(_0x132adc,_0x481a6a,_0x3065aa,_0x3daf4d){return _0x132adc(_0x481a6a,_0x3065aa,_0x3daf4d);},'jLoJz':function(_0x4ff0f2,_0x2b12a8,_0x34dc28){return _0x4ff0f2(_0x2b12a8,_0x34dc28);},'rQYzq':function(_0x108297,_0x55fbc8){return _0x108297!==_0x55fbc8;},'xPCxP':function(_0x40a661,_0x5472dc){return _0x40a661===_0x5472dc;},'UdGKb':_0x42c884(0x8e),'SJXmR':_0x42c884(0xc2),'Iehmp':'--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.','SrPVx':function(_0x5bc3a8,_0x27ee87){return _0x5bc3a8(_0x27ee87);},'oqfMN':function(_0x452421,_0xafb873){return _0x452421===_0xafb873;},'aECit':_0x42c884(0xa9),'vTfNc':_0x42c884(0x97),'tsxgp':'Aborted.','BGeOM':function(_0x279519,_0x33047f){return _0x279519===_0x33047f;},'QVpeq':'legacy','uvxai':'root\x20(.ranger/)','lVGKD':'url_setup','WXLtv':_0x42c884(0xc1),'aOGrm':function(_0x2a7746,_0x4466d8){return _0x2a7746(_0x4466d8);},'KzKxl':'\x0a🌐\x20Profile\x20Setup\x0a','xdXKf':'input','ZANAT':_0x42c884(0xae),'RkWrG':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','KcSif':function(_0xe7021d,_0x46591e){return _0xe7021d||_0x46591e;},'juQaI':_0x42c884(0xad),'uwHpv':function(_0x3f2918,_0x221bd7){return _0x3f2918(_0x221bd7);},'zbvNW':_0x42c884(0xcb),'pPHfL':_0x42c884(0xb3),'kpFgD':'retry','WuXWo':_0x42c884(0xdb),'eyVVG':function(_0x43a8ae,_0x41af9e){return _0x43a8ae(_0x41af9e);},'KPOig':_0x42c884(0xbf),'wnkOB':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','obtrO':_0x42c884(0x87),'jieoy':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','bAKIe':'about:blank','xfYwK':'utf-8','ErGFb':'.enc','awoUV':_0x42c884(0xaf),'tiKii':_0x42c884(0xa6),'TrMmF':'settings.json','EBKaZ':function(_0x3a7867,_0x1405b0,_0x1e20c4){return _0x3a7867(_0x1405b0,_0x1e20c4);},'DdnTy':'config_write'},_0xb44b8a=_0x13d138['ci']??![],_0x1a992a=_0xb44b8a?'ci':_0x4ace91['vbFSK'],_0x491c4d=_0x4ace91[_0x42c884(0x99)](join,getRangerDir(),_0x1a992a,_0xa6c0a1),_0x5a3886=_0x4ace91['jLoJz'](join,getRangerDir(),_0x1a992a);if(_0x4ace91['rQYzq'](_0x13d138['cdpEndpoint'],undefined)&&_0x4ace91[_0x42c884(0xb8)](_0x13d138[_0x42c884(0xb2)]['trim'](),''))throw new Error(_0x4ace91[_0x42c884(0xb5)]);if(_0x13d138['cdpEndpoint']&&_0x13d138['url'])throw new Error(_0x4ace91[_0x42c884(0xab)]);if(_0x13d138[_0x42c884(0xb2)]&&_0x13d138['ci'])throw new Error(_0x4ace91[_0x42c884(0xb7)]);const _0x21e31f=_0x4ace91['SrPVx'](Boolean,_0x13d138[_0x42c884(0xb2)]),_0x419e52=!_0x13d138[_0x42c884(0xbb)]&&!_0x21e31f,_0x378cc5=process['stdin'][_0x42c884(0xac)]&&process['stdout']['isTTY'];if(!_0x378cc5&&!_0x13d138['url']&&!_0x21e31f)throw new Error(_0x42c884(0xcd));const _0x42295d=findExistingEnv(_0xa6c0a1);let _0x356811=null;if(_0x42295d){if(!_0x378cc5)_0x356811=_0x42295d;else{if(_0x4ace91['oqfMN'](_0x42295d['location'],_0x1a992a)){const {overwrite:_0x49d5e7}=await _0x4391fa['prompt']([{'type':_0x4ace91['aECit'],'name':_0x4ace91['vTfNc'],'message':'Profile\x20\x22'+_0xa6c0a1+_0x42c884(0x95),'default':![]}]);if(!_0x49d5e7){console['log'](_0x4ace91[_0x42c884(0xc5)]);return;}_0x356811=_0x42295d;}else{const _0x3fd3ba=_0x4ace91[_0x42c884(0xa2)](_0x42295d['location'],_0x4ace91['QVpeq'])?_0x4ace91[_0x42c884(0xce)]:_0x42295d[_0x42c884(0xd3)];console['error'](_0x42c884(0xd9)+_0xa6c0a1+'\x22\x20already\x20exists\x20in\x20'+_0x3fd3ba+':\x20'+_0x42295d[_0x42c884(0xc6)]),console[_0x42c884(0x88)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0x1a992a+_0x42c884(0xe1));const {shouldReplace:_0x28009f}=await _0x4391fa['prompt']([{'type':_0x4ace91[_0x42c884(0xdd)],'name':_0x42c884(0xa3),'message':_0x42c884(0x8c)+_0x1a992a+'?','default':![]}]);if(!_0x28009f){console['log'](_0x4ace91[_0x42c884(0xc5)]);return;}_0x356811=_0x42295d;}}}_0x14f39c?.['trackPhaseStart'](_0x4ace91[_0x42c884(0x9b)]);let _0x1cb12c='';if(_0x21e31f)console['log'](_0x4ace91['WXLtv']),console['log'](_0x42c884(0xaa)+_0x13d138[_0x42c884(0xb2)]),console[_0x42c884(0xa8)](_0x42c884(0xd1));else{if(_0x13d138['url']){_0x1cb12c=_0x13d138[_0x42c884(0xcf)];const _0x13b5c7=await _0x4ace91['aOGrm'](checkUrlReachability,_0x1cb12c);if(!_0x13b5c7['ok']&&!_0x13d138['force'])throw new Error('Could\x20not\x20reach\x20'+_0x1cb12c+':\x20'+_0x13b5c7[_0x42c884(0x88)]+_0x42c884(0x85));!_0x13b5c7['ok']&&_0x13d138['force']&&console[_0x42c884(0xa8)](_0x42c884(0xb1)+_0x1cb12c+':\x20'+_0x13b5c7[_0x42c884(0x88)]+_0x42c884(0xda));}else{console['log'](_0x4ace91[_0x42c884(0xcc)]),console['log'](_0x42c884(0xe0)),console['log'](_0x42c884(0x98));let _0x279777=![];while(!![]){const _0x18d31a=await _0x4391fa['prompt']([{'type':_0x4ace91['xdXKf'],'name':_0x4ace91['ZANAT'],'message':_0x279777?_0x4ace91['RkWrG']:'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x4ace91['KcSif'](_0x1cb12c,_0x4ace91['juQaI'])}]);_0x1cb12c=_0x18d31a['baseUrl'];const _0x188d36=await _0x4ace91[_0x42c884(0xd6)](checkUrlReachability,_0x1cb12c);if(_0x188d36['ok'])break;const _0x219a18=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x1cb12c),_0x367a2f=_0x188d36['isProtocolError']&&!_0x219a18,_0x43cc97=_0x367a2f?'http://'+_0x1cb12c:null;_0x279777=!![],console[_0x42c884(0xa8)](_0x42c884(0xc8)+_0x1cb12c+':\x20'+_0x188d36[_0x42c884(0x88)]);_0x43cc97&&console['log'](_0x42c884(0xd8)+_0x43cc97+'?');const {action:_0x4493e0}=await _0x4391fa['prompt']([{'type':'list','name':_0x4ace91['zbvNW'],'message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x43cc97?[{'name':_0x42c884(0xa4)+_0x43cc97,'value':_0x42c884(0x8f)}]:[],{'name':_0x4ace91['pPHfL'],'value':_0x4ace91[_0x42c884(0xbd)]},{'name':_0x4ace91[_0x42c884(0xc4)],'value':'continue'}]}]);if(_0x4493e0===_0x42c884(0x8f)&&_0x43cc97){_0x1cb12c=_0x43cc97;const _0x5e501d=await _0x4ace91['eyVVG'](checkUrlReachability,_0x1cb12c);if(_0x5e501d['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x1cb12c+':\x20'+_0x5e501d[_0x42c884(0x88)]);}else{if(_0x4493e0==='continue')break;}}}}_0x14f39c?.['trackPhaseEnd']('url_setup'),await _0x4ace91['jLoJz'](mkdir,_0x5a3886,{'recursive':!![]});const _0x4b18ac=await mkdtemp(join(_0x5a3886,_0x42c884(0xdc)+_0xa6c0a1+'-')),_0x2758f8=join(_0x4b18ac,'auth.json');try{if(_0x419e52){_0x14f39c?.['trackPhaseStart'](_0x4ace91[_0x42c884(0xe2)]),console['log'](_0x42c884(0xbe)),console[_0x42c884(0xa8)](_0x4ace91[_0x42c884(0xa1)]),console['log'](_0x4ace91['obtrO']);!_0x378cc5?(console[_0x42c884(0xa8)]('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console[_0x42c884(0xa8)](_0x4ace91[_0x42c884(0xa5)])):console[_0x42c884(0xa8)]('');await new Promise(_0x5a832b=>setTimeout(_0x5a832b,0xbb8));const _0x18a093=await chromium[_0x42c884(0x96)]({'headless':![]});try{const _0x483b1c=await _0x18a093['newContext']();await addProfileSetupBanner(_0x483b1c);const _0x30bd4c=await _0x483b1c['newPage']();await _0x30bd4c[_0x42c884(0xb4)](_0x1cb12c||_0x4ace91['bAKIe']),await new Promise(_0x442585=>{_0x30bd4c['on'](_0x4ace91['TRWVs'],async()=>{const _0x4959c1=_0x5e00;try{console[_0x4959c1(0xa8)](_0x4959c1(0x8a)),await _0x483b1c[_0x4959c1(0xc3)]({'path':_0x2758f8});}catch{}_0x442585();});});}finally{await _0x18a093[_0x42c884(0x9f)]()['catch'](()=>{});}if(_0xb44b8a){const _0x23f6b2=await readFile(_0x2758f8,_0x4ace91[_0x42c884(0x90)]),_0x34b5f4=await getToken();if(!_0x34b5f4){console[_0x42c884(0x88)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await unlink(_0x2758f8)['catch'](()=>{});throw new Error(_0x42c884(0x9c));}else{const _0x3f7ce7=encrypt(_0x23f6b2,_0x34b5f4);await writeFile(_0x2758f8+_0x4ace91[_0x42c884(0x8d)],_0x3f7ce7),await unlink(_0x2758f8),console[_0x42c884(0xa8)]('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x2758f8+'.enc'),console[_0x42c884(0xa8)](_0x4ace91[_0x42c884(0xd4)]),console[_0x42c884(0xa8)](_0x4ace91['tiKii']);}}else console[_0x42c884(0xa8)](_0x42c884(0x94)+_0x2758f8);_0x14f39c?.[_0x42c884(0xba)](_0x4ace91['KPOig']);}_0x14f39c?.['trackPhaseStart'](_0x42c884(0xa7));const _0x354052={};_0x1cb12c&&(_0x354052['baseUrl']=_0x1cb12c);_0x13d138[_0x42c884(0xb2)]&&(_0x354052['cdpEndpoint']=_0x13d138['cdpEndpoint'],_0x354052['isElectron']=!![]);await writeFile(join(_0x4b18ac,_0x4ace91[_0x42c884(0xe3)]),JSON['stringify'](_0x354052,null,0x2)),console[_0x42c884(0xa8)](_0x42c884(0x9e)+_0x4ace91['jLoJz'](join,_0x491c4d,_0x4ace91['TrMmF']));if(_0x356811?.['location']===_0x1a992a){const _0x172be9=_0x356811[_0x42c884(0xc6)]+_0x42c884(0xd5)+Date[_0x42c884(0x91)]();await _0x4ace91[_0x42c884(0xca)](rename,_0x356811[_0x42c884(0xc6)],_0x172be9);try{await rename(_0x4b18ac,_0x491c4d);}catch(_0x2f695a){await rename(_0x172be9,_0x356811[_0x42c884(0xc6)]);throw _0x2f695a;}try{await rm(_0x172be9,{'recursive':!![]});}catch{console[_0x42c884(0xa8)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x172be9);}}else{await rename(_0x4b18ac,_0x491c4d);if(_0x356811)try{await rm(_0x356811[_0x42c884(0xc6)],{'recursive':!![]}),console['log'](_0x42c884(0x9d)+_0x356811[_0x42c884(0xc6)]);}catch{console[_0x42c884(0xa8)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x356811[_0x42c884(0xc6)]);}}try{await writeActiveProfileName(_0xa6c0a1),console[_0x42c884(0xa8)](_0x42c884(0x92)+_0xa6c0a1);}catch{console[_0x42c884(0xa8)]('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}_0x14f39c?.['trackPhaseEnd'](_0x4ace91['DdnTy']),console['log']('\x0a\x20\x20Profile\x20\x22'+_0xa6c0a1+_0x42c884(0x89));}catch(_0x509032){await rm(_0x4b18ac,{'recursive':!![],'force':!![]});throw _0x509032;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53d8d4,_0x5b0375){const _0xb670be=_0x477f,_0x33ecb7=_0x53d8d4();while(!![]){try{const _0x5205a7=-parseInt(_0xb670be(0x14d))/0x1*(parseInt(_0xb670be(0x14c))/0x2)+parseInt(_0xb670be(0x143))/0x3+parseInt(_0xb670be(0x14f))/0x4+-parseInt(_0xb670be(0x14a))/0x5*(-parseInt(_0xb670be(0x158))/0x6)+-parseInt(_0xb670be(0x149))/0x7*(-parseInt(_0xb670be(0x151))/0x8)+parseInt(_0xb670be(0x154))/0x9*(parseInt(_0xb670be(0x145))/0xa)+parseInt(_0xb670be(0x148))/0xb;if(_0x5205a7===_0x5b0375)break;else _0x33ecb7['push'](_0x33ecb7['shift']());}catch(_0x33ded3){_0x33ecb7['push'](_0x33ecb7['shift']());}}}(_0xe559,0x67fe1));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0xe559(){const _0x41d316=['473436pwcmNs','No\x20auth.json\x20found\x20at\x20','338144WHHccw','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','54UsACAw','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','.enc','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','50172hJZnEs','utf-8','1276722qHvqKw','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','263570GMQOTo','orSNd','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','1468786nkDrow','7rtZTbj','50mUoSPH','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','1071072QxUefi','1SLyQBt','log'];_0xe559=function(){return _0x41d316;};return _0xe559();}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';function _0x477f(_0x200391,_0x57e26c){_0x200391=_0x200391-0x142;const _0xe5593e=_0xe559();let _0x477fc7=_0xe5593e[_0x200391];return _0x477fc7;}export async function authEncrypt(_0x388e1b){const _0x16e57c=_0x477f,_0x5c59f7={'orSNd':function(_0x5276d2,_0x3f7c4a){return _0x5276d2(_0x3f7c4a);},'sAisv':function(_0x2a4c39,_0x3f814e){return _0x2a4c39+_0x3f814e;},'sKZGn':function(_0x12e56f){return _0x12e56f();}},_0x54b681=_0x5c59f7['orSNd'](getEnvDir,_0x388e1b),_0x3bcec0=join(_0x54b681,'auth.json'),_0x2653e5=_0x5c59f7['sAisv'](_0x3bcec0,_0x16e57c(0x156));if(!existsSync(_0x54b681))throw new Error('Profile\x20\x22'+_0x388e1b+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x388e1b);if(!existsSync(_0x3bcec0))throw new Error(_0x16e57c(0x150)+_0x3bcec0+_0x16e57c(0x14b));const _0x162593=await _0x5c59f7['sKZGn'](getToken);if(!_0x162593)throw new Error(_0x16e57c(0x144));const _0x4c96dc=await readFile(_0x3bcec0,_0x16e57c(0x142)),_0x17514c=encrypt(_0x4c96dc,_0x162593);await writeFile(_0x2653e5,_0x17514c),console['log'](_0x16e57c(0x155)+_0x2653e5),console['log'](_0x16e57c(0x157)),console['log'](_0x16e57c(0x147)),_0x5c59f7[_0x16e57c(0x146)](existsSync,_0x2653e5)&&(console['log'](_0x16e57c(0x152)),console[_0x16e57c(0x14e)](_0x16e57c(0x153)));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x37012c=_0x20dd;function _0x20dd(_0x1de7bf,_0x1b92c3){_0x1de7bf=_0x1de7bf-0x1ae;const _0xe122ca=_0xe122();let _0x20dd05=_0xe122ca[_0x1de7bf];return _0x20dd05;}(function(_0x41c58c,_0x59bf26){const _0x4654ef=_0x20dd,_0x4155be=_0x41c58c();while(!![]){try{const _0x44b3ba=parseInt(_0x4654ef(0x1cb))/0x1*(parseInt(_0x4654ef(0x1ee))/0x2)+-parseInt(_0x4654ef(0x1b6))/0x3*(parseInt(_0x4654ef(0x1ec))/0x4)+parseInt(_0x4654ef(0x1dd))/0x5*(parseInt(_0x4654ef(0x1d7))/0x6)+parseInt(_0x4654ef(0x1c2))/0x7*(-parseInt(_0x4654ef(0x1c7))/0x8)+parseInt(_0x4654ef(0x1e0))/0x9*(parseInt(_0x4654ef(0x1d6))/0xa)+-parseInt(_0x4654ef(0x1cd))/0xb*(parseInt(_0x4654ef(0x1be))/0xc)+parseInt(_0x4654ef(0x1b8))/0xd;if(_0x44b3ba===_0x59bf26)break;else _0x4155be['push'](_0x4155be['shift']());}catch(_0x3e21b3){_0x4155be['push'](_0x4155be['shift']());}}}(_0xe122,0x83b71));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=[_0x37012c(0x1c1),'feature-tracker',_0x37012c(0x1b5),'e2e-test-recommender'],opencodePluginName=_0x37012c(0x1de);function _0xe122(){const _0x456a28=['5ZrlCJZ','oCgCU','24090eTvwbl','OwIpW','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','TCXpD','✓\x20Removed\x20project\x20skill:\x20','log','YQLCQ','claude','tBIyd','20yCXgvY','57126FPyeCL','opencode.json','ranger@trailhead','TzKMZ','ukrpY','NqPVC','365wsryOV','@ranger-testing/opencode-plugin','parse','3411468zjCVge','qUGKf','push','lewrB','EQLLb','user','kSjco','Nothing\x20to\x20clean\x20up.\x0a','length','replace','uOWYo','utf-8','12sJLUFm','✓\x20Removed\x20.ranger/\x20directory','151878EEvJEZ','YHhce','win32','✓\x20Removed\x20user\x20skill:\x20','AKngK','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','stringify','PTqIX','bug-bash','78381YCuThc','plugin','3824366pPlmar','MRWpr','trailhead','string','WwsFN','dOjOE','2592rHrWZt','✓\x20Removed\x20stored\x20credentials','rFEpE','ranger','54124sPdPnx','project','tlwXU','nRQiC','pipe','1072nCpeVm','aMwDM','platform','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'];_0xe122=function(){return _0x456a28;};return _0xe122();}function parseJsonc(_0x5aa4ad){const _0x2f6e66=_0x37012c,_0x54316e=_0x5aa4ad[_0x2f6e66(0x1e9)](/\/\*[\s\S]*?\*\//g,''),_0x3bd1b0=_0x54316e['replace'](/^\s*\/\/.*$/gm,''),_0x15fd9b=_0x3bd1b0['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x2f6e66(0x1df)](_0x15fd9b);}async function removeOpencodePluginConfig(_0x41ecba){const _0x2f0a2b=_0x37012c,_0x1d88d2={'fjRRK':function(_0x45e05c,_0x2c8af0,_0xc37916){return _0x45e05c(_0x2c8af0,_0xc37916);},'TCXpD':_0x2f0a2b(0x1eb),'ukrpY':function(_0x24c4c8,_0x2b42f2){return _0x24c4c8===_0x2b42f2;},'AKngK':function(_0x4bd34f,_0x29d2d4){return _0x4bd34f+_0x29d2d4;}};if(!existsSync(_0x41ecba))return![];let _0x3b020e;try{const _0x570e10=await _0x1d88d2['fjRRK'](readFile,_0x41ecba,_0x1d88d2[_0x2f0a2b(0x1d0)]);_0x3b020e=parseJsonc(_0x570e10);}catch{return![];}const _0x32d527=Array['isArray'](_0x3b020e[_0x2f0a2b(0x1b7)])?_0x3b020e[_0x2f0a2b(0x1b7)]:[];if(_0x32d527['length']===0x0)return![];const _0x1aaa6f=_0x32d527['filter'](_0x53b939=>{const _0x45ea45=_0x2f0a2b;if(typeof _0x53b939!==_0x45ea45(0x1bb))return!![];return _0x53b939!==opencodePluginName;});if(_0x1d88d2[_0x2f0a2b(0x1db)](_0x1aaa6f[_0x2f0a2b(0x1e8)],_0x32d527['length']))return![];return _0x1d88d2[_0x2f0a2b(0x1db)](_0x1aaa6f[_0x2f0a2b(0x1e8)],0x0)?delete _0x3b020e['plugin']:_0x3b020e[_0x2f0a2b(0x1b7)]=_0x1aaa6f,await writeFile(_0x41ecba,_0x1d88d2[_0x2f0a2b(0x1b1)](JSON[_0x2f0a2b(0x1b3)](_0x3b020e,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x1c446d){const _0x532575={'KLGdL':function(_0x55e13d,_0x598341){return _0x55e13d===_0x598341;},'tfcvr':'plugin','oCgCU':'uninstall','DbACY':'win32','QGilq':'error'};return new Promise(_0x3f7fa8=>{const _0x33a6b3=_0x20dd,_0x2a2585={'kSjco':function(_0x73ea77,_0x22f580){return _0x532575['KLGdL'](_0x73ea77,_0x22f580);}},_0x2faf11=[_0x532575['tfcvr'],_0x532575[_0x33a6b3(0x1cc)],_0x33a6b3(0x1d9)];_0x1c446d&&_0x2faf11[_0x33a6b3(0x1e2)]('--scope',_0x1c446d);const _0x576f7d=spawn(_0x33a6b3(0x1d4),_0x2faf11,{'stdio':_0x33a6b3(0x1c6),'shell':process[_0x33a6b3(0x1c9)]===_0x532575['DbACY']});_0x576f7d['on']('close',_0x25541b=>{const _0x3e5e21=_0x33a6b3;_0x3f7fa8(_0x2a2585[_0x3e5e21(0x1e6)](_0x25541b,0x0));}),_0x576f7d['on'](_0x532575['QGilq'],()=>{_0x3f7fa8(![]);});});}async function removeMarketplace(){const _0x336638=_0x37012c,_0x26e061={'FgeBL':function(_0x5eabae,_0x40596e){return _0x5eabae===_0x40596e;},'TzKMZ':_0x336638(0x1d4),'jGvjX':_0x336638(0x1b7),'tBIyd':'marketplace','qUGKf':_0x336638(0x1c6),'uOWYo':_0x336638(0x1af),'rFEpE':'error'};return new Promise(_0x38ed7f=>{const _0x167715=_0x336638,_0x2130ee=spawn(_0x26e061[_0x167715(0x1da)],[_0x26e061['jGvjX'],_0x26e061[_0x167715(0x1d5)],'remove',_0x167715(0x1ba)],{'stdio':_0x26e061[_0x167715(0x1e1)],'shell':process['platform']===_0x26e061[_0x167715(0x1ea)]});_0x2130ee['on']('close',_0x21053a=>{_0x38ed7f(_0x26e061['FgeBL'](_0x21053a,0x0));}),_0x2130ee['on'](_0x26e061[_0x167715(0x1c0)],()=>{_0x38ed7f(![]);});});}export async function clean(){const _0x2aaee2=_0x37012c,_0x32bd7a={'dOjOE':function(_0xce4142){return _0xce4142();},'WwsFN':_0x2aaee2(0x1bf),'tlwXU':function(_0x2fed6d,_0x3dd9ee){return _0x2fed6d(_0x3dd9ee);},'nRQiC':function(_0x44cec0,_0x12c727,_0x304d81){return _0x44cec0(_0x12c727,_0x304d81);},'lewrB':function(_0x4c0dfa,_0x5855cd,_0x149583){return _0x4c0dfa(_0x5855cd,_0x149583);},'HOwOm':function(_0x3165a0){return _0x3165a0();},'PTqIX':function(_0x1f196c,_0x56a8ea,_0x2b148e){return _0x1f196c(_0x56a8ea,_0x2b148e);},'YQLCQ':function(_0x2dbcf7,_0x3e884c){return _0x2dbcf7(_0x3e884c);},'aMwDM':function(_0x5c731f,_0x2f0e8d,_0x5787e6){return _0x5c731f(_0x2f0e8d,_0x5787e6);},'MRWpr':function(_0x5710bc,_0x3db2f7){return _0x5710bc(_0x3db2f7);},'BzVge':function(_0x424415,_0x2569f5,_0x445975){return _0x424415(_0x2569f5,_0x445975);},'VKxQM':function(_0x4a7ef1,_0x5dc578){return _0x4a7ef1(_0x5dc578);},'OwIpW':_0x2aaee2(0x1c3),'HZSlZ':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','EQLLb':function(_0x4bfde8,_0x4581d7,_0x131870){return _0x4bfde8(_0x4581d7,_0x131870);},'HFWMJ':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','WMoZt':_0x2aaee2(0x1ca),'KATIQ':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','chbTg':function(_0x315a52){return _0x315a52();},'YHhce':'✓\x20Removed\x20trailhead\x20marketplace','NqPVC':'\x0a✅\x20Cleanup\x20complete!\x0a'};console[_0x2aaee2(0x1d2)](_0x2aaee2(0x1cf));let _0x2b6a25=![];try{await _0x32bd7a[_0x2aaee2(0x1bd)](deleteAllCredentials),console[_0x2aaee2(0x1d2)](_0x32bd7a[_0x2aaee2(0x1bc)]),_0x2b6a25=!![];}catch{}const _0x13a68c=getCacheFile();_0x32bd7a['tlwXU'](existsSync,_0x13a68c)&&(await rm(_0x13a68c),_0x2b6a25=!![]);const _0x46f2ef=getRangerDir();existsSync(_0x46f2ef)&&(await rm(_0x46f2ef,{'recursive':!![]}),console[_0x2aaee2(0x1d2)](_0x2aaee2(0x1ed)),_0x2b6a25=!![]);const _0x1688ef=_0x32bd7a['dOjOE'](getProjectSkillsDir);for(const _0x3b7c4d of skillsToRemove){const _0x51c275=_0x32bd7a['nRQiC'](join,_0x1688ef,_0x3b7c4d);existsSync(_0x51c275)&&(await _0x32bd7a[_0x2aaee2(0x1e3)](rm,_0x51c275,{'recursive':!![]}),console['log'](_0x2aaee2(0x1d1)+_0x3b7c4d),_0x2b6a25=!![]);}const _0x3cba9d=_0x32bd7a['HOwOm'](getUserSkillsDir);for(const _0x7618ca of skillsToRemove){const _0x25564f=_0x32bd7a[_0x2aaee2(0x1c5)](join,_0x3cba9d,_0x7618ca);_0x32bd7a[_0x2aaee2(0x1c4)](existsSync,_0x25564f)&&(await _0x32bd7a[_0x2aaee2(0x1b4)](rm,_0x25564f,{'recursive':!![]}),console['log'](_0x2aaee2(0x1b0)+_0x7618ca),_0x2b6a25=!![]);}const _0x206b36=_0x32bd7a['YQLCQ'](getOpencodeSkillsDir,'project');for(const _0x304418 of skillsToRemove){const _0x2d1df1=_0x32bd7a[_0x2aaee2(0x1c8)](join,_0x206b36,_0x304418);existsSync(_0x2d1df1)&&(await rm(_0x2d1df1,{'recursive':!![]}),console['log'](_0x2aaee2(0x1b2)+_0x304418),_0x2b6a25=!![]);}const _0x21f97d=_0x32bd7a['YQLCQ'](getOpencodeSkillsDir,_0x2aaee2(0x1e5));for(const _0x2eef1b of skillsToRemove){const _0x3d4ab5=join(_0x21f97d,_0x2eef1b);_0x32bd7a[_0x2aaee2(0x1b9)](existsSync,_0x3d4ab5)&&(await _0x32bd7a[_0x2aaee2(0x1c8)](rm,_0x3d4ab5,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x2eef1b),_0x2b6a25=!![]);}const _0x22598f=_0x32bd7a['BzVge'](join,_0x32bd7a['VKxQM'](getOpencodeConfigDir,_0x32bd7a['OwIpW']),_0x2aaee2(0x1d8));await removeOpencodePluginConfig(_0x22598f)&&(console[_0x2aaee2(0x1d2)](_0x32bd7a['HZSlZ']),_0x2b6a25=!![]);const _0x9956e5=_0x32bd7a[_0x2aaee2(0x1e4)](join,_0x32bd7a[_0x2aaee2(0x1b9)](getOpencodeConfigDir,_0x2aaee2(0x1e5)),'opencode.json');await _0x32bd7a[_0x2aaee2(0x1d3)](removeOpencodePluginConfig,_0x9956e5)&&(console['log'](_0x32bd7a['HFWMJ']),_0x2b6a25=!![]);const _0x5afbc4=await uninstallClaudePlugin();_0x5afbc4&&(console[_0x2aaee2(0x1d2)](_0x32bd7a['WMoZt']),_0x2b6a25=!![]);const _0x262b14=await uninstallClaudePlugin(_0x32bd7a[_0x2aaee2(0x1ce)]);_0x262b14&&(console[_0x2aaee2(0x1d2)](_0x32bd7a['KATIQ']),_0x2b6a25=!![]);const _0x5c50f7=await _0x32bd7a['chbTg'](removeMarketplace);_0x5c50f7&&(console['log'](_0x32bd7a[_0x2aaee2(0x1ae)]),_0x2b6a25=!![]),_0x2b6a25?console[_0x2aaee2(0x1d2)](_0x32bd7a[_0x2aaee2(0x1dc)]):console['log'](_0x2aaee2(0x1e7));}
|