@ranger-testing/ranger-cli 2.3.2 โ 2.4.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/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/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x117b27=_0x49a2;(function(_0x4970c7,_0x299200){const _0x340bed=_0x49a2,_0x34d5bc=_0x4970c7();while(!![]){try{const _0x290aba=-parseInt(_0x340bed(0x156))/0x1*(-parseInt(_0x340bed(0x215))/0x2)+parseInt(_0x340bed(0x14b))/0x3*(-parseInt(_0x340bed(0x21f))/0x4)+parseInt(_0x340bed(0x21c))/0x5+-parseInt(_0x340bed(0x23b))/0x6*(parseInt(_0x340bed(0x155))/0x7)+parseInt(_0x340bed(0x114))/0x8+-parseInt(_0x340bed(0x1c1))/0x9*(-parseInt(_0x340bed(0x1b5))/0xa)+-parseInt(_0x340bed(0x17a))/0xb;if(_0x290aba===_0x299200)break;else _0x34d5bc['push'](_0x34d5bc['shift']());}catch(_0x3ad934){_0x34d5bc['push'](_0x34d5bc['shift']());}}}(_0x4952,0x7965d));import _0x380ee0 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x4b5ce8=_0x49a2,_0x5699b9={'mDROs':function(_0x2faf90,_0x2be6b3,_0xc7af8a){return _0x2faf90(_0x2be6b3,_0xc7af8a);},'PYSWH':function(_0x1308a5,_0xec4e50){return _0x1308a5(_0xec4e50);}};let _0x176ec6=process['cwd']();const _0x598401=parse(_0x176ec6)['root'];while(_0x176ec6!==_0x598401){if(existsSync(join(_0x176ec6,_0x4b5ce8(0x1b8)))||existsSync(_0x5699b9[_0x4b5ce8(0x1c2)](join,_0x176ec6,_0x4b5ce8(0x1e0))))return _0x176ec6;_0x176ec6=_0x5699b9[_0x4b5ce8(0x1af)](dirname,_0x176ec6);}return process['cwd']();}_0x380ee0['config']({'path':join(findProjectRoot(),_0x117b27(0x1e0))});import _0x54036b from'yargs/yargs';function _0x4952(){const _0x2206e8=['NOYrh','fail','JdQtV','gebeY','Name\x20of\x20the\x20environment\x20to\x20update','FKnlq','wMAwY','profile\x20add','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','JBHJD','gztGA','mnOPq','allow-insecure-localhost','tQHYR','repeat','NbjGA','evaluation','scope','checklist','gVoQx','IvZUN','ranger\x20auth\x20encrypt','log','enable','Skip\x20Chromium\x20browser\x20installation','positional','boolean','ranger\x20feature\x20delete','PYSWH','AQIOD','verified','cNJXO','blocked','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','120LlNFga','setup\x20[token]','profile\x20config\x20list','.ranger','lRSse','PeIhw','list','WKVom','name','command','Profile\x20name','--scenario','228402ZvZEVF','mDROs','opencode','hlWUJ','FdTgd','use\x20<profile-name>','vvgHS','offset','UbSxO','include-deleted','Install\x20scope\x20for\x20skills','KslBa','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','cBdHz','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','flag','limit','Get\x20a\x20config\x20value','status','env\x20update','feature\x20get-feedback','start','\x20is\x20now\x20','List\x20all\x20config\x20for\x20a\x20profile','ranger\x20show','YFFFs','item','ranger\x20create','profile\x20config\x20unset','hook','.env','jNhRz','env','lWqdt','QWhIb','Switch\x20to\x20using\x20a\x20specific\x20profile','current-branch','Bhwes','mumKt','cnEto','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','igAfg','Scenario\x20description','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','ranger\x20feature\x20restore','auth','\x0aIssues:','failed','lSJAo','option','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','safe-mode','config\x20list','LFPpv','Set\x20a\x20config\x20value','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','iAbqf','orNvR','ranger\x20use','scriptName','aRJKF','add-checklist-item\x20<description>','ranger\x20profile\x20config\x20get','hook:enable','--item','feature','argv','rqNFD','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','VmKak','project','Name\x20of\x20the\x20profile\x20to\x20update','oCuHE','includes','Feature\x20review\x20ID','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','slice','FfPjY','RCXLB','ccvwl','ranger\x20delete','nbsyn','start\x20[token]','210264AHCpwQ','You\x20must\x20specify\x20a\x20command','update\x20<profile-name>','\x20VERIFIED','epilogue','aWQKC','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','1143405nujLQv','base-url','dxJHX','108BQtkAP','startsWith','partial','ranger\x20config\x20set','disable','profile\x20config\x20set','debug-outcome','wfsWG','ranger\x20profile\x20config\x20list','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','CPxMN','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','FOIeJ','ranger\x20go','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','jBBAD','CjFME','KuVCK','PKfPY','add\x20env\x20<env-name>','aqruE','LyVPH','ranger\x20resume','You\x20must\x20specify\x20a\x20config\x20subcommand','profile\x20ls','You\x20must\x20specify\x20a\x20profile\x20subcommand','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','RjCOF','18AjHdbK','uLINM','restore\x20<id>','\x20FAILED','\x0aError:\x20','EVubj','HuczG','BTdbi','\x0aUnknown\x20command:\x20','kzYmy','oZfpR','JGCgZ','Update\x20authentication\x20for\x20an\x20existing\x20profile','ToOjR','task','string','ranger\x20profile\x20config\x20set','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','lyXTH','config','Feature\x20review\x20description','sLWJj','XNTrq','env\x20list','HkEmh','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\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\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\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27','--env','fVmEs','JaVTD','DSAgI','set\x20<env>\x20<key>\x20<value>','PGCEj','unset\x20<profile>\x20<key>','start-path','--profile','report','IXBif','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','list\x20<env>','List\x20all\x20feature\x20reviews','PiVtD','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','severity','--task','skip-auth','delete','uNXXZ','ERYpQ','ranger\x20config\x20list','Config\x20key','PsWFm','pNGIQ','login','DmYgR','show','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','mXIyL','EgrJf','ranger\x20feature\x20get-feedback','restore','JqCUr','LMgtn','user','url','SGQhJ','ranger\x20profile\x20update','qVDCX','Summary:\x20','VvVTY','ranger\x20list','xQfXq','encrypt\x20<profile>','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','PBinF','SyZeV','number','Optional\x20feature\x20ID','trackCommandError','help','iugGP','pMeUV','NJXSo','setup-ci\x20<token>','ranger\x20feature\x20add-checklist-item','ranger\x20feature\x20create','pVDkX','create\x20<name>','ranger\x20add\x20env','ranger\x20profile\x20config\x20unset','Config\x20value','exitCode','feature\x20add-checklist-item','5129528KNyhZP','usage','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','skillup','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','oEOqX','CyFKR','MEAEC','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','EnTKP','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','gWHff','GRiEw','Feature\x20review\x20ID\x20to\x20restore','qfUaM','PaUGk','demandCommand','some','FWkQr','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','config\x20unset','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','use\x20<env-name>','list\x20<profile>','cdp-endpoint','GDgGR','ranger\x20profile\x20use','set\x20<profile>\x20<key>\x20<value>','jmSuS','NnqKg','ranger\x20profile\x20encrypt-auth','scenario','Include\x20soft-deleted\x20feature\x20reviews','nnceN','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','incomplete','EOZeK','JOAEp','exclude-scenario','xHZNR','pNQiL','pVhkM','error','verify-feature','message','SOEPg','mJNtE','profile\x20encrypt-auth','IEPmw','dnQzm','session-id','force','New\x20scenario\x20description','description','debug-address-comments','30846izIrEs','YGbth','ranger\x20profile\x20add','token','LrrRX','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.','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','ranger\x20setup','IkDuJ','NvHmX','858732xNXXBg','1OIvuSo','qVyul','headed','IfcRM','TYcqo','env-name','Config\x20key\x20to\x20remove','ranger\x20verify-feature','profile','Ranger\x20API\x20token','setup-ci','parse','rDXDQ','Ntazg','show\x20[id]','QmJyR','ovUYh','issues','hVGLK','bAdku','unset\x20<env>\x20<key>','xxvvm','eckeh','--checklist','encrypt-auth\x20<profile>','Qmnlx','value','zDCyD','delete\x20[id]','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','\x20\x20https://docs.ranger.net\x0a','BDxwp','ZvGwg','JPnCw','HhFvk','VLOPb','1503183KDdqCb','version','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','use','Number\x20of\x20feature\x20reviews\x20to\x20skip','JraLx','update','--notes','Environment\x20name','vOjeY','WgSOx','CZsBd','notes','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','skip-chromium','feature\x20create','mdORk','feature\x20delete','Unknown\x20error','profile-name','key','cMfCq','SSxVG','JlbKS'];_0x4952=function(){return _0x2206e8;};return _0x4952();}import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on']('unhandledRejection',async _0x3eca0f=>{const _0x12e508=_0x117b27,_0x168b08=getCurrentCollector();_0x168b08&&await _0x168b08['trackCommandError'](_0x3eca0f),process[_0x12e508(0x112)]=0x1;});const rawArgs=process['argv']['slice'](0x2),TOP_LEVEL_HELP=_0x117b27(0x150),PROFILE_HELP=_0x117b27(0x129),PROFILE_CONFIG_HELP=_0x117b27(0x254);function warnRenamed(_0x1d8b29,_0x331a93){const _0x4b9fdd=_0x117b27;console['error']('\x0a'+_0x1d8b29+_0x4b9fdd(0x1d8)+_0x331a93+'\x0a');}function _0x49a2(_0x42c3ef,_0x4d6291){_0x42c3ef=_0x42c3ef-0xf8;const _0x4952ed=_0x4952();let _0x49a23a=_0x4952ed[_0x42c3ef];return _0x49a23a;}function argUsed(_0x7706e1){const _0x30e09c=_0x117b27;return rawArgs[_0x30e09c(0x125)](_0x3df6a5=>_0x3df6a5===_0x7706e1||_0x3df6a5[_0x30e09c(0x220)](_0x7706e1+'='));}function warnFlagRenamed(_0x570ef7,_0x328cc7,_0x12bf96){argUsed(_0x328cc7)&&warnRenamed(_0x570ef7+'\x20'+_0x328cc7,_0x570ef7+'\x20'+_0x12bf96);}async function runGoCommand(_0x43fc31,_0x131edf=![]){const _0x16da70=_0x117b27,_0x3c6b15={'hNKzg':function(_0x48b4d3,_0x4f7af6,_0x4485c2){return _0x48b4d3(_0x4f7af6,_0x4485c2);},'nFXgk':function(_0x586341,_0x1c524b,_0x5a02d2,_0x2c585b){return _0x586341(_0x1c524b,_0x5a02d2,_0x2c585b);},'JOAEp':_0x16da70(0x25d),'IXBif':'ranger\x20go','IvZUN':_0x16da70(0x181),'pNQiL':_0x16da70(0x202),'uLINM':_0x16da70(0x24e),'FxVPG':_0x16da70(0x14a),'RCXLB':function(_0x584c36,_0x31ba16){return _0x584c36+_0x31ba16;},'ovUYh':_0x16da70(0x218),'tQHYR':function(_0x79730b,_0x4d5f73){return _0x79730b===_0x4d5f73;},'pOtbZ':'\x20INCOMPLETE','GlIdl':_0x16da70(0x1f0)};_0x131edf&&_0x3c6b15['hNKzg'](warnRenamed,_0x16da70(0x15d),_0x16da70(0x22c));_0x3c6b15['nFXgk'](warnFlagRenamed,'ranger\x20go',_0x16da70(0x255),_0x3c6b15[_0x16da70(0x139)]),warnFlagRenamed(_0x3c6b15[_0x16da70(0x25f)],_0x16da70(0x266),_0x3c6b15[_0x16da70(0x1a7)]),warnFlagRenamed('ranger\x20go',_0x3c6b15[_0x16da70(0x13c)],'--scenario');const _0x499811=await loadRangerConfig(),_0x5157a9=_0x43fc31['model'],_0xcd8318=_0x499811['model'],_0x3a002d=_0x5157a9??_0xcd8318,_0x577aa6=_0x5157a9?_0x16da70(0x1d1):_0xcd8318?_0x3c6b15[_0x16da70(0x23c)]:'default',_0x1ce211=await verifyFeature({'featureId':_0x43fc31['feature'],'profile':_0x43fc31['profile']??_0x43fc31['env'],'notes':_0x43fc31['notes']??_0x43fc31[_0x16da70(0x249)],'scenario':_0x43fc31['scenario']??_0x43fc31['item'],'startPath':_0x43fc31['start-path'],'debugOutcome':_0x43fc31['debug-outcome'],'debugAddressComments':_0x43fc31[_0x3c6b15['FxVPG']],'headed':_0x43fc31['headed'],'verifyModel':_0x3a002d,'verifyModelInput':_0x3a002d,'verifyModelSource':_0x577aa6});console['log'](_0x3c6b15[_0x16da70(0x210)]('\x0a','='['repeat'](0x3c))),console['log'](_0x1ce211[_0x16da70(0x1a3)]===_0x16da70(0x1b1)?_0x3c6b15[_0x16da70(0x166)]:_0x3c6b15[_0x16da70(0x1a0)](_0x1ce211[_0x16da70(0x1a3)],'incomplete')?_0x3c6b15['pOtbZ']:_0x1ce211['evaluation']===_0x16da70(0x221)?'\x20PARTIAL':_0x1ce211['evaluation']==='blocked'?'\x20BLOCKED':_0x16da70(0x23e)),console[_0x16da70(0x1a9)]('='[_0x16da70(0x1a1)](0x3c)),console[_0x16da70(0x1a9)](_0x16da70(0xfb)+_0x1ce211['summary']),console['log']('Evaluation:\x20'+_0x1ce211[_0x16da70(0x1a3)]),console['log']('Reason:\x20'+_0x1ce211['evaluationReason']),_0x1ce211[_0x16da70(0x167)]?.['length']&&(console['log'](_0x3c6b15['GlIdl']),_0x1ce211['issues']['forEach']((_0x1ba2d3,_0x1e2a9b)=>{const _0x3e9eb4=_0x16da70;console['log']('\x0a'+(_0x1e2a9b+0x1)+'.\x20['+_0x1ba2d3[_0x3e9eb4(0x265)]+']\x20'+_0x1ba2d3[_0x3e9eb4(0x149)]);})),process['exit'](_0x3c6b15['tQHYR'](_0x1ce211[_0x16da70(0x1a3)],'verified')?0x0:0x1);}_0x54036b(process[_0x117b27(0x204)][_0x117b27(0x20e)](0x2))[_0x117b27(0x1fd)]('ranger')[_0x117b27(0x115)](TOP_LEVEL_HELP)[_0x117b27(0x17b)](getCurrentVersion())[_0x117b27(0x1be)](_0x117b27(0x10e),_0x117b27(0x173),_0x5e499b=>{const _0x130db3=_0x117b27,_0x366790={'FIuTE':_0x130db3(0x1bd),'ERYpQ':_0x130db3(0x24a),'ADBTi':_0x130db3(0x24f),'xHZNR':'array','bAdku':_0x130db3(0x1a5)};return _0x5e499b['positional'](_0x366790['FIuTE'],{'type':_0x366790[_0x130db3(0x26a)],'description':'Feature\x20review\x20name','demandOption':!![]})[_0x130db3(0x1f3)](_0x130db3(0x149),{'type':_0x366790['ERYpQ'],'alias':'d','description':_0x366790['ADBTi']})[_0x130db3(0x1f3)]('scenario',{'type':_0x366790['xHZNR'],'alias':'c','description':_0x130db3(0x20d)})[_0x130db3(0x1f3)](_0x366790[_0x130db3(0x169)],{'type':_0x366790[_0x130db3(0x13b)],'hidden':!![]});},async _0x517369=>{const _0x11a713=_0x117b27,_0x49f8cb={'CyFKR':function(_0x47a4b3,_0x2a8ef1,_0x1a1a60,_0x1cd619){return _0x47a4b3(_0x2a8ef1,_0x1a1a60,_0x1cd619);},'FKnlq':'ranger\x20create','qfUaM':_0x11a713(0x1c0),'UbSxO':'create'};_0x49f8cb[_0x11a713(0x11a)](warnFlagRenamed,_0x49f8cb[_0x11a713(0x197)],_0x11a713(0x16d),_0x49f8cb[_0x11a713(0x122)]);const _0x235dd7=_0x517369['scenario']||_0x517369[_0x11a713(0x1a5)];await withTelemetry(_0x49f8cb[_0x11a713(0x1c9)],()=>featureCreate(_0x517369['name'],{'description':_0x517369['description'],'scenarios':_0x235dd7}));})[_0x117b27(0x1be)](_0x117b27(0x1bb),_0x117b27(0x262),_0x4c5cf8=>{const _0x1b03dd=_0x117b27,_0x557521={'uNXXZ':_0x1b03dd(0x151),'sIXSi':'limit','EOZeK':_0x1b03dd(0x103),'cnEto':_0x1b03dd(0x134)};return _0x4c5cf8[_0x1b03dd(0x1f3)](_0x1b03dd(0x1e6),{'type':_0x1b03dd(0x1ad),'description':_0x557521[_0x1b03dd(0x269)]})['option'](_0x557521['sIXSi'],{'type':'number','alias':'l','description':_0x1b03dd(0x264),'default':0xa})[_0x1b03dd(0x1f3)](_0x1b03dd(0x1c8),{'type':_0x557521[_0x1b03dd(0x138)],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option'](_0x1b03dd(0x1ca),{'type':_0x1b03dd(0x1ad),'alias':'d','description':_0x557521[_0x1b03dd(0x1e9)],'default':![]});},async _0x18fdba=>{const _0x207c8d=_0x117b27,_0x5d55cc={'nRKZQ':function(_0x490629,_0x327d82,_0x42f529){return _0x490629(_0x327d82,_0x42f529);}};await _0x5d55cc['nRKZQ'](withTelemetry,'list',()=>featureList({'currentBranch':_0x18fdba['current-branch'],'limit':_0x18fdba[_0x207c8d(0x1d2)],'offset':_0x18fdba['offset'],'includeDeleted':_0x18fdba['include-deleted']}));})['command'](_0x117b27(0x164),'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x1bdbf4=>{const _0x3adcd4=_0x117b27;return _0x1bdbf4[_0x3adcd4(0x1ac)]('id',{'type':_0x3adcd4(0x24a),'description':_0x3adcd4(0x20c)});},async _0x513beb=>{const _0x3a5eb6=_0x117b27,_0x563ece={'CjFME':function(_0x10b453,_0x2e707e,_0x448020){return _0x10b453(_0x2e707e,_0x448020);},'NzErd':_0x3a5eb6(0x271)};await _0x563ece[_0x3a5eb6(0x22f)](withTelemetry,_0x563ece['NzErd'],()=>featureShow(_0x513beb['id']));})['command']('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x56b8f0=>{const _0x4fec3c=_0x117b27,_0x295839={'CrTJQ':_0x4fec3c(0x24a)};return _0x56b8f0[_0x4fec3c(0x1ac)]('id',{'type':_0x295839['CrTJQ'],'description':_0x4fec3c(0x100)});},async _0x59ac9a=>{const _0xf64db5=_0x117b27,_0x145034={'erqOM':function(_0x381ea7,_0xe32c03,_0x2ace44){return _0x381ea7(_0xe32c03,_0x2ace44);},'LMgtn':'resume'};await _0x145034['erqOM'](withTelemetry,_0x145034[_0xf64db5(0x278)],()=>featureResume(_0x59ac9a['id']));})[_0x117b27(0x1be)]('add-scenario\x20<description>',_0x117b27(0x1f4),_0x2704d6=>{const _0x58ad58=_0x117b27,_0x3b907b={'zDCyD':'Scenario\x20description','sLWJj':_0x58ad58(0x24a),'ZxJqT':_0x58ad58(0x127)};return _0x2704d6['positional']('description',{'type':_0x58ad58(0x24a),'description':_0x3b907b[_0x58ad58(0x171)],'demandOption':!![]})['option']('id',{'type':_0x3b907b[_0x58ad58(0x250)],'description':_0x3b907b['ZxJqT']});},async _0x282a16=>{const _0x2b574d=_0x117b27,_0x243d19={'iugGP':'add-scenario'};await withTelemetry(_0x243d19[_0x2b574d(0x107)],()=>featureAddScenario(_0x282a16[_0x2b574d(0x149)],_0x282a16['id']));})['command']('edit-scenario\x20<description>','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x2bc133=>{const _0x530c50=_0x117b27,_0x5695ac={'JqCUr':_0x530c50(0x103),'mGcnK':'string'};return _0x2bc133['positional']('description',{'type':'string','description':_0x530c50(0x148),'demandOption':!![]})['option']('scenario',{'type':_0x5695ac[_0x530c50(0x277)],'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})['option']('id',{'type':_0x5695ac['mGcnK'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x2d4d6a=>{const _0x210a83=_0x117b27,_0x3e3859={'TEQvk':function(_0xf85766,_0x5428cc,_0x110135){return _0xf85766(_0x5428cc,_0x110135);},'hlWUJ':'edit-scenario'};await _0x3e3859['TEQvk'](withTelemetry,_0x3e3859[_0x210a83(0x1c4)],()=>featureEditScenario(_0x2d4d6a[_0x210a83(0x149)],{'id':_0x2d4d6a['id'],'scenario':_0x2d4d6a['scenario']}));})['command']('report\x20[id]',_0x117b27(0x136),_0x350eae=>{const _0x18fcd7=_0x117b27,_0x2d8fc4={'uDdtK':_0x18fcd7(0x20c),'lyXTH':'array','pOyrm':'json','EoNjx':'boolean','QWhIb':_0x18fcd7(0x1cd)};return _0x350eae['positional']('id',{'type':_0x18fcd7(0x24a),'description':_0x2d8fc4['uDdtK']})[_0x18fcd7(0x1f3)]('exclude-scenario',{'type':_0x2d8fc4[_0x18fcd7(0x24d)],'description':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'})[_0x18fcd7(0x1f3)](_0x2d8fc4['pOyrm'],{'type':_0x2d8fc4['EoNjx'],'description':_0x2d8fc4[_0x18fcd7(0x1e4)],'default':![]});},async _0x21c201=>{const _0x5ed687=_0x117b27,_0x3117e0={'ExLgS':_0x5ed687(0x13a),'PKfPY':function(_0x18c4ab,_0x15424c,_0x4e5ff1){return _0x18c4ab(_0x15424c,_0x4e5ff1);}},_0x21217b=_0x21c201[_0x3117e0['ExLgS']],_0x54ebd6=_0x21217b?_0x21217b['map'](_0x163f56=>Number(_0x163f56)):undefined;await _0x3117e0[_0x5ed687(0x231)](withTelemetry,_0x5ed687(0x25e),()=>featureReportPrDescription(_0x21c201['id'],{'excludeScenarios':_0x54ebd6,'json':_0x21c201['json']}));})[_0x117b27(0x1be)]('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x4d2892=>{const _0xfc146c=_0x117b27,_0x16ad3b={'DmYgR':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x4d2892[_0xfc146c(0x1ac)]('id',{'type':'string','description':_0x16ad3b[_0xfc146c(0x270)]});},async _0x129b77=>{const _0x28683e={'oBxEB':function(_0x2458a4,_0x1b84bd,_0x4ca857){return _0x2458a4(_0x1b84bd,_0x4ca857);},'tZAhh':'get-review'};await _0x28683e['oBxEB'](withTelemetry,_0x28683e['tZAhh'],()=>featureGetReview(_0x129b77['id']));})[_0x117b27(0x1be)](_0x117b27(0x172),_0x117b27(0x118),_0x4b0247=>{const _0xb2017c=_0x117b27;return _0x4b0247['positional']('id',{'type':_0xb2017c(0x24a),'description':_0xb2017c(0x20c)});},async _0x37d6a0=>{const _0x4551b0=_0x117b27;await withTelemetry(_0x4551b0(0x268),()=>featureDelete(_0x37d6a0['id']));})['command'](_0x117b27(0x23d),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x2e0b75=>{const _0x5d6a3b=_0x117b27,_0x946abc={'gVoQx':_0x5d6a3b(0x121)};return _0x2e0b75[_0x5d6a3b(0x1ac)]('id',{'type':_0x5d6a3b(0x24a),'description':_0x946abc[_0x5d6a3b(0x1a6)],'demandOption':!![]});},async _0x3a499b=>{const _0x4a633b=_0x117b27,_0x3b2516={'BAvEh':_0x4a633b(0x276)};await withTelemetry(_0x3b2516['BAvEh'],()=>featureRestore(_0x3a499b['id']));})[_0x117b27(0x1be)](_0x117b27(0x1b6),'Initialize\x20Ranger\x20in\x20your\x20project',_0x128906=>{const _0xbd96c0=_0x117b27,_0x783786={'cUNdT':_0xbd96c0(0x22d),'nBfEA':_0xbd96c0(0x1a4),'FOIeJ':_0xbd96c0(0x208),'FWkQr':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','NnqKg':'boolean','OxIjl':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url'};return _0x128906[_0xbd96c0(0x1ac)]('token',{'type':'string','description':_0x783786['cUNdT']})['option']('skip-chromium',{'type':_0xbd96c0(0x1ad),'description':_0xbd96c0(0x1f9),'default':![]})['option'](_0x783786['nBfEA'],{'type':'string','choices':[_0xbd96c0(0x279),_0x783786[_0xbd96c0(0x22b)]],'description':_0x783786[_0xbd96c0(0x126)]})['option'](_0xbd96c0(0x27a),{'type':'string','description':_0xbd96c0(0x228)})[_0xbd96c0(0x1f3)]('force',{'type':_0x783786['NnqKg'],'description':_0x783786['OxIjl'],'default':![]})['option'](_0xbd96c0(0x1c3),{'type':_0x783786['NnqKg'],'description':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','default':![]})['option'](_0xbd96c0(0x19f),{'type':_0x783786[_0xbd96c0(0x131)],'description':_0xbd96c0(0x11e),'default':![]});},async _0x16cba3=>{const _0x14a00b=_0x117b27,_0x219277={'NvHmX':_0x14a00b(0x1d7)};await withTelemetry(_0x219277[_0x14a00b(0x154)],_0x591372=>start(_0x16cba3['token'],{'skipChromium':_0x16cba3[_0x14a00b(0x188)],'scope':_0x16cba3[_0x14a00b(0x1a4)],'url':_0x16cba3['url'],'force':_0x16cba3[_0x14a00b(0x147)],'opencode':_0x16cba3['opencode'],'allowInsecureLocalhost':_0x16cba3['allow-insecure-localhost']},_0x591372));})['command'](_0x117b27(0x10a),_0x117b27(0x1ed),_0x262c45=>{const _0x270f04=_0x117b27,_0x5f365f={'ccvwl':_0x270f04(0x15f),'RAbeO':_0x270f04(0x15e),'VvVTY':_0x270f04(0x24a),'COSBL':_0x270f04(0x187),'JGCgZ':_0x270f04(0x21d),'mJNtE':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','WDqdi':'skip-chromium','Pgjse':'boolean'};return _0x262c45['positional']('token',{'type':'string','description':_0x5f365f[_0x270f04(0x211)],'demandOption':!![]})['option'](_0x5f365f['RAbeO'],{'type':_0x5f365f[_0x270f04(0xfc)],'description':_0x5f365f['COSBL']})[_0x270f04(0x1f3)](_0x5f365f[_0x270f04(0x246)],{'type':_0x5f365f[_0x270f04(0xfc)],'description':_0x5f365f[_0x270f04(0x142)]})['option'](_0x5f365f['WDqdi'],{'type':_0x5f365f['Pgjse'],'description':_0x270f04(0x1ab),'default':![]});},async _0x48bfe6=>{const _0xc92437=_0x117b27;await withTelemetry(_0xc92437(0x160),_0x1f20a6=>setupCi(_0x48bfe6[_0xc92437(0x14e)],{'profile':_0x48bfe6[_0xc92437(0x15e)],'baseUrl':_0x48bfe6['base-url'],'skipChromium':_0x48bfe6['skip-chromium']},_0x1f20a6));})[_0x117b27(0x1be)]('login','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x2cadb4=_0x117b27,_0x3395d5={'FoPLT':_0x2cadb4(0x26f)};await withTelemetry(_0x3395d5['FoPLT'],()=>login());})[_0x117b27(0x1be)](_0x117b27(0x117),'Install\x20Ranger\x20skills',_0x150058=>{const _0x5c90b4=_0x117b27,_0xd0cf21={'gfYmL':_0x5c90b4(0x1c3),'JraLx':'Install\x20skills\x20for\x20OpenCode','Ntazg':'scope','hiACR':'string','nHPBv':'user'};return _0x150058[_0x5c90b4(0x1f3)](_0xd0cf21['gfYmL'],{'type':_0x5c90b4(0x1ad),'description':_0xd0cf21[_0x5c90b4(0x17f)],'default':![]})['option'](_0xd0cf21[_0x5c90b4(0x163)],{'type':_0xd0cf21['hiACR'],'choices':[_0xd0cf21['nHPBv'],_0x5c90b4(0x208)],'description':_0x5c90b4(0x1cb)});},async _0x1f6674=>{const _0x250432=_0x117b27,_0x4b5e10={'avZVD':function(_0x1edf9c,_0x30d595){return _0x1edf9c(_0x30d595);},'MEAEC':function(_0x5f1df8,_0x5833cc,_0x3783aa){return _0x5f1df8(_0x5833cc,_0x3783aa);}},_0x2ccaeb=_0x4b5e10['avZVD'](Boolean,_0x1f6674['opencode']);await _0x4b5e10[_0x250432(0x11b)](withTelemetry,_0x250432(0x117),()=>skillup({'autoInstall':_0x1f6674['scope'],'platform':_0x2ccaeb?_0x250432(0x1c3):'claude'}));})['command']('clean',_0x117b27(0x11c),()=>{},async()=>{await withTelemetry('clean',()=>clean());})['command']('profile','Manage\x20profiles',_0x4601cd=>{const _0x461ae3=_0x117b27,_0x47ef5c={'igAfg':'profile-name','qRxXV':_0x461ae3(0x260),'ZvGwg':'skip-auth','jmSuS':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','CPxMN':_0x461ae3(0x24a),'VmKak':'force','lWqdt':'allow-insecure-localhost','BvJrO':_0x461ae3(0x1ad),'qakoz':_0x461ae3(0x1d0),'Uikfu':function(_0x4a5654,_0x1a569c,_0xbc7e3,_0x755957){return _0x4a5654(_0x1a569c,_0xbc7e3,_0x755957);},'PaUGk':function(_0x5e11ae,_0xc9c0a7){return _0x5e11ae(_0xc9c0a7);},'uZftx':_0x461ae3(0x12c),'ZFYTR':function(_0x5d883d,_0x17b1f7,_0xa57f7f){return _0x5d883d(_0x17b1f7,_0xa57f7f);},'LrrRX':'profile\x20use','zFmqq':_0x461ae3(0x1bf),'lSJAo':_0x461ae3(0x143),'fwOhy':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','QmJyR':'profile','nbsyn':_0x461ae3(0x18e),'BTdbi':function(_0x2c2691,_0x10409c,_0x4466c3){return _0x2c2691(_0x10409c,_0x4466c3);},'gWHff':_0x461ae3(0x1de),'qVyul':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','WOISg':_0x461ae3(0x111),'wYftl':function(_0x27f20b,_0x5e9081,_0x45bba9){return _0x27f20b(_0x5e9081,_0x45bba9);},'GORgj':_0x461ae3(0x224),'TYcqo':function(_0x370971,_0x38ce0a,_0xf40215){return _0x370971(_0x38ce0a,_0xf40215);},'KslBa':'profile\x20config\x20get','vOjeY':_0x461ae3(0x1d3),'KuVCK':_0x461ae3(0x12b),'IfcRM':'Remove\x20a\x20config\x20value','eckeh':'Add\x20profile\x20configuration','oCuHE':_0x461ae3(0x16e),'svLzZ':'List\x20all\x20profiles','jNhRz':'Manage\x20profile\x20configuration','HGjpi':_0x461ae3(0x238)};return _0x4601cd['usage'](PROFILE_HELP)['command']('add\x20<profile-name>',_0x47ef5c[_0x461ae3(0x16c)],_0x5c93c3=>{const _0x51be42=_0x461ae3;return _0x5c93c3[_0x51be42(0x1ac)](_0x47ef5c[_0x51be42(0x1eb)],{'type':'string','description':_0x47ef5c['qRxXV'],'demandOption':!![]})['option']('ci',{'type':'boolean','description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0x51be42(0x1f3)](_0x47ef5c[_0x51be42(0x176)],{'type':'boolean','description':_0x47ef5c[_0x51be42(0x130)],'default':![]})[_0x51be42(0x1f3)](_0x51be42(0x27a),{'type':_0x47ef5c['CPxMN'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})[_0x51be42(0x1f3)](_0x47ef5c[_0x51be42(0x207)],{'type':'boolean','description':_0x51be42(0x1b4),'default':![]})[_0x51be42(0x1f3)](_0x51be42(0x12c),{'type':_0x47ef5c['CPxMN'],'description':_0x51be42(0x17c)})[_0x51be42(0x1f3)](_0x47ef5c[_0x51be42(0x1e3)],{'type':_0x47ef5c['BvJrO'],'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]})['option'](_0x51be42(0x1f5),{'type':'boolean','description':_0x47ef5c['qakoz'],'default':![]});},async _0xeebdb7=>{const _0xa06e4a=_0x461ae3;await _0x47ef5c['Uikfu'](withTelemetry,_0xa06e4a(0x199),_0x82c142=>addEnv(_0xeebdb7['profile-name'],{'ci':_0xeebdb7['ci'],'skipAuth':_0xeebdb7['skip-auth'],'url':_0xeebdb7['url'],'force':_0xeebdb7['force'],'cdpEndpoint':_0xeebdb7[_0xa06e4a(0x12c)],'allowInsecureLocalhost':_0xeebdb7[_0xa06e4a(0x19f)],'safeMode':_0xeebdb7[_0xa06e4a(0x1f5)]},_0x82c142),{'isElectron':_0x47ef5c[_0xa06e4a(0x123)](Boolean,_0xeebdb7[_0x47ef5c['uZftx']])});})[_0x461ae3(0x1be)](_0x461ae3(0x1c6),_0x461ae3(0x1e5),_0x726b2e=>{return _0x726b2e['positional'](_0x47ef5c['igAfg'],{'type':'string','description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x3132f1=>{const _0x4cc931=_0x461ae3;await _0x47ef5c['ZFYTR'](withTelemetry,_0x47ef5c[_0x4cc931(0x14f)],()=>useEnv(_0x3132f1['profile-name']));})['command'](_0x47ef5c[_0x461ae3(0x20a)],'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)',_0x2d9b10=>{const _0x17423a=_0x461ae3;return _0x2d9b10['positional'](_0x17423a(0x15e),{'type':_0x47ef5c['CPxMN'],'description':_0x47ef5c['zFmqq'],'demandOption':!![]});},async _0x1c3123=>{const _0x3b74e6=_0x461ae3;await withTelemetry(_0x47ef5c[_0x3b74e6(0x1f2)],()=>authEncrypt(_0x1c3123['profile']));})['command']('ls',_0x47ef5c['svLzZ'],()=>{},async()=>{const _0x3a0998=_0x461ae3;await withTelemetry(_0x3a0998(0x237),()=>envList());})[_0x461ae3(0x1be)](_0x461ae3(0x217),_0x461ae3(0x247),_0x1178df=>{const _0x42b188=_0x461ae3;return _0x1178df['positional'](_0x42b188(0x18d),{'type':_0x47ef5c[_0x42b188(0x229)],'description':_0x42b188(0x209),'demandOption':!![]})[_0x42b188(0x1f3)](_0x42b188(0x19f),{'type':_0x47ef5c['BvJrO'],'description':_0x47ef5c['fwOhy']});},async _0x23d78b=>{await withTelemetry('profile\x20update',_0x34e180=>updateEnv(_0x23d78b['profile-name'],_0x34e180,{'allowInsecureLocalhost':_0x23d78b['allow-insecure-localhost']}));})['command'](_0x461ae3(0x24e),_0x47ef5c[_0x461ae3(0x1e1)],_0x12ace3=>{const _0x5b5032=_0x461ae3,_0x41bfc9={'rscRX':'Profile\x20name','gNbAT':_0x47ef5c[_0x5b5032(0x157)],'HhFvk':_0x47ef5c['WOISg'],'SWaVb':function(_0x5c4186,_0x4c1f97,_0x587831){return _0x47ef5c['wYftl'](_0x5c4186,_0x4c1f97,_0x587831);},'vLCLh':_0x47ef5c['GORgj'],'zCSyO':function(_0x22ded0,_0x43cfbb,_0x55a9bf){const _0x19dff9=_0x5b5032;return _0x47ef5c[_0x19dff9(0x15a)](_0x22ded0,_0x43cfbb,_0x55a9bf);},'ILCSt':_0x47ef5c[_0x5b5032(0x1cc)],'EVubj':_0x47ef5c['CPxMN'],'oZfpR':_0x5b5032(0x15c)};return _0x12ace3[_0x5b5032(0x115)](PROFILE_CONFIG_HELP)['command'](_0x5b5032(0x12f),_0x5b5032(0x1f8),_0x4ec92e=>{const _0x5041a7=_0x5b5032;return _0x4ec92e['positional'](_0x5041a7(0x15e),{'type':_0x5041a7(0x24a),'description':_0x41bfc9['rscRX'],'demandOption':!![]})[_0x5041a7(0x1ac)](_0x5041a7(0x18e),{'type':_0x5041a7(0x24a),'description':_0x41bfc9['gNbAT'],'demandOption':!![]})['positional'](_0x5041a7(0x170),{'type':'string','description':_0x41bfc9[_0x5041a7(0x178)],'demandOption':!![]});},async _0x56dfb1=>{const _0x4bb5fb=_0x5b5032;await _0x41bfc9['SWaVb'](withTelemetry,_0x41bfc9['vLCLh'],()=>configSet(_0x56dfb1[_0x4bb5fb(0x15e)],_0x56dfb1['key'],_0x56dfb1['value']));})['command']('get\x20<profile>\x20<key>',_0x47ef5c[_0x5b5032(0x183)],_0x4c16b9=>{const _0x36e096=_0x5b5032;return _0x4c16b9[_0x36e096(0x1ac)](_0x47ef5c[_0x36e096(0x165)],{'type':_0x47ef5c[_0x36e096(0x229)],'description':'Profile\x20name','demandOption':!![]})['positional'](_0x47ef5c[_0x36e096(0x213)],{'type':_0x36e096(0x24a),'description':'Config\x20key','demandOption':!![]});},async _0x1bf4cd=>{await _0x41bfc9['zCSyO'](withTelemetry,_0x41bfc9['ILCSt'],()=>configGet(_0x1bf4cd['profile'],_0x1bf4cd['key']));})['command'](_0x47ef5c[_0x5b5032(0x230)],_0x5b5032(0x1d9),_0x1a8cbc=>{const _0x1733db=_0x5b5032;return _0x1a8cbc['positional'](_0x1733db(0x15e),{'type':_0x47ef5c[_0x1733db(0x229)],'description':'Profile\x20name','demandOption':!![]});},async _0x34ad82=>{const _0x5a90c9=_0x5b5032;await _0x47ef5c['BTdbi'](withTelemetry,_0x5a90c9(0x1b7),()=>configList(_0x34ad82['profile']));})['command'](_0x5b5032(0x25b),_0x47ef5c[_0x5b5032(0x159)],_0x449593=>{const _0x265a22=_0x5b5032;return _0x449593[_0x265a22(0x1ac)]('profile',{'type':_0x41bfc9[_0x265a22(0x240)],'description':_0x265a22(0x1bf),'demandOption':!![]})[_0x265a22(0x1ac)](_0x265a22(0x18e),{'type':_0x265a22(0x24a),'description':_0x41bfc9[_0x265a22(0x245)],'demandOption':!![]});},async _0x536f60=>{const _0x4256d9=_0x5b5032;await _0x47ef5c[_0x4256d9(0x242)](withTelemetry,_0x47ef5c[_0x4256d9(0x11f)],()=>configUnset(_0x536f60[_0x4256d9(0x15e)],_0x536f60[_0x4256d9(0x18e)]));})[_0x5b5032(0x124)](0x1,_0x5b5032(0x1ea));})[_0x461ae3(0x124)](0x1,_0x47ef5c['HGjpi']);})['command'](_0x117b27(0x1d4),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{await withTelemetry('status',()=>status());})['command'](_0x117b27(0x180),_0x117b27(0x1ce),()=>{},async()=>{const _0x42df26=_0x117b27,_0xd39bd1={'hVGLK':function(_0x4af4c0,_0x27e100,_0x5be629){return _0x4af4c0(_0x27e100,_0x5be629);},'mnOPq':_0x42df26(0x180)};await _0xd39bd1[_0x42df26(0x168)](withTelemetry,_0xd39bd1[_0x42df26(0x19e)],()=>update());})[_0x117b27(0x1be)]('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x406f34=>{const _0x5aa802=_0x117b27,_0x2ce26f={'PeIhw':_0x5aa802(0x203),'aWQKC':_0x5aa802(0x104),'tFmDL':_0x5aa802(0x15e),'rDXDQ':_0x5aa802(0x24a),'YGbth':_0x5aa802(0x22a),'PBinF':'Scenario\x20index\x20(1-based)','AzbdL':_0x5aa802(0x25c),'lDXse':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','WgSOx':_0x5aa802(0x158),'lRSse':'boolean','Qmnlx':'blocked','PsWFm':'incomplete','NbQnS':_0x5aa802(0x1dc),'orNvR':_0x5aa802(0x103)};return _0x406f34[_0x5aa802(0x1f3)](_0x2ce26f[_0x5aa802(0x1ba)],{'type':'string','description':_0x2ce26f[_0x5aa802(0x21a)]})[_0x5aa802(0x1f3)](_0x2ce26f['tFmDL'],{'type':_0x2ce26f['rDXDQ'],'description':_0x2ce26f[_0x5aa802(0x14c)]})[_0x5aa802(0x1f3)](_0x5aa802(0x186),{'type':_0x2ce26f[_0x5aa802(0x162)],'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})[_0x5aa802(0x1f3)]('scenario',{'type':'number','description':_0x2ce26f[_0x5aa802(0x101)]})[_0x5aa802(0x1f3)](_0x2ce26f['AzbdL'],{'type':'string','description':_0x2ce26f['lDXse']})[_0x5aa802(0x1f3)]('model',{'type':_0x5aa802(0x24a),'description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)'})[_0x5aa802(0x1f3)](_0x2ce26f[_0x5aa802(0x184)],{'type':_0x2ce26f[_0x5aa802(0x1b9)],'description':_0x5aa802(0x206),'default':![]})['option']('debug-outcome',{'type':_0x2ce26f[_0x5aa802(0x162)],'hidden':!![],'choices':['verified','partial',_0x2ce26f[_0x5aa802(0x16f)],_0x5aa802(0x1f1),_0x2ce26f[_0x5aa802(0x26d)]]})['option'](_0x5aa802(0x14a),{'type':_0x2ce26f['lRSse'],'hidden':!![]})[_0x5aa802(0x1f3)](_0x5aa802(0x1e2),{'type':_0x2ce26f[_0x5aa802(0x162)],'hidden':!![]})[_0x5aa802(0x1f3)](_0x5aa802(0x249),{'type':_0x2ce26f['rDXDQ'],'hidden':!![]})[_0x5aa802(0x1f3)](_0x2ce26f['NbQnS'],{'type':_0x2ce26f[_0x5aa802(0x1fb)],'hidden':!![]});},async _0x578035=>{await runGoCommand(_0x578035);})['command'](_0x117b27(0x1ef),![],_0x2d8d4e=>{const _0x984a8e=_0x117b27,_0xc1f5f0={'pNGIQ':'Profile\x20name','sApGT':_0x984a8e(0x132),'yImVk':function(_0x38b8b6,_0xa2a657){return _0x38b8b6(_0xa2a657);},'gebeY':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x2d8d4e['command'](_0x984a8e(0xff),![],_0x3dd444=>{const _0x15529a=_0x984a8e;return _0x3dd444['positional']('profile',{'type':'string','description':_0xc1f5f0[_0x15529a(0x26e)],'demandOption':!![]});},async _0x2de28c=>{const _0x18bc39=_0x984a8e;warnRenamed(_0x18bc39(0x1a8),_0xc1f5f0['sApGT']),await _0xc1f5f0['yImVk'](authEncrypt,_0x2de28c['profile']);})['demandCommand'](0x1,_0xc1f5f0[_0x984a8e(0x195)]);},()=>{})['command'](_0x117b27(0x214),![],_0x55faa9=>{const _0x14dbf9=_0x117b27,_0x4a6bbc={'HkEmh':'scope','EnTKP':'string','gztGA':_0x14dbf9(0x279),'GRiEw':_0x14dbf9(0x21b),'mXIyL':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','wnpEU':'force','THjLf':_0x14dbf9(0x1ad)};return _0x55faa9[_0x14dbf9(0x1ac)]('token',{'type':_0x14dbf9(0x24a),'description':_0x14dbf9(0x22d)})[_0x14dbf9(0x1f3)](_0x14dbf9(0x188),{'type':'boolean','description':_0x14dbf9(0x1f9),'default':![]})['option'](_0x4a6bbc[_0x14dbf9(0x253)],{'type':_0x4a6bbc[_0x14dbf9(0x11d)],'choices':[_0x4a6bbc[_0x14dbf9(0x19d)],_0x14dbf9(0x208)],'description':_0x4a6bbc[_0x14dbf9(0x120)]})[_0x14dbf9(0x1f3)]('url',{'type':_0x14dbf9(0x24a),'description':_0x4a6bbc[_0x14dbf9(0x273)]})['option'](_0x4a6bbc['wnpEU'],{'type':_0x4a6bbc['THjLf'],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]});},async _0xa1da5a=>{const _0x571afe=_0x117b27,_0x1a7ce7={'hQCQx':function(_0x431509,_0x4b48e4,_0x203f39){return _0x431509(_0x4b48e4,_0x203f39);},'cNJXO':'ranger\x20start','ZHXxW':_0x571afe(0x152),'qLlKu':function(_0x34aa22,_0x32de3e,_0x449797){return _0x34aa22(_0x32de3e,_0x449797);}};_0x1a7ce7['hQCQx'](warnRenamed,_0x1a7ce7[_0x571afe(0x1b2)],_0x1a7ce7['ZHXxW']),await _0x1a7ce7['qLlKu'](withTelemetry,'start',_0xa3c2a5=>start(_0xa1da5a[_0x571afe(0x14e)],{'skipChromium':_0xa1da5a[_0x571afe(0x188)],'scope':_0xa1da5a['scope'],'url':_0xa1da5a['url'],'force':_0xa1da5a['force']},_0xa3c2a5));})[_0x117b27(0x1be)](_0x117b27(0x13f),![],_0x3f83f9=>{const _0x57e212=_0x117b27,_0x50f14e={'kzYmy':_0x57e212(0x1e2),'NbjGA':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','AQIOD':_0x57e212(0x24a),'KqQcX':_0x57e212(0x103),'xZhKr':'Scenario\x20index\x20(1-based)','dxJHX':_0x57e212(0x15e),'YzQik':_0x57e212(0x186),'IDZmZ':'scenario','LjAfU':'model','xVvrT':'headed','FdTgd':'boolean','wcMzd':_0x57e212(0x225),'WKVom':_0x57e212(0x1b3),'JdQtV':_0x57e212(0x137)};return _0x3f83f9['option'](_0x50f14e[_0x57e212(0x244)],{'type':_0x57e212(0x24a),'description':_0x50f14e[_0x57e212(0x1a2)]})[_0x57e212(0x1f3)]('task',{'type':_0x50f14e[_0x57e212(0x1b0)],'description':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)'})['option'](_0x57e212(0x1dc),{'type':_0x50f14e['KqQcX'],'description':_0x50f14e['xZhKr']})[_0x57e212(0x1f3)](_0x50f14e[_0x57e212(0x21e)],{'type':_0x50f14e['AQIOD'],'hidden':!![]})[_0x57e212(0x1f3)](_0x50f14e['YzQik'],{'type':_0x50f14e[_0x57e212(0x1b0)],'hidden':!![]})['option'](_0x50f14e['IDZmZ'],{'type':_0x50f14e['KqQcX'],'hidden':!![]})[_0x57e212(0x1f3)](_0x57e212(0x25c),{'type':_0x57e212(0x24a),'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})['option'](_0x50f14e['LjAfU'],{'type':_0x57e212(0x24a),'hidden':!![]})[_0x57e212(0x1f3)](_0x50f14e['xVvrT'],{'type':_0x50f14e[_0x57e212(0x1c5)],'hidden':!![],'default':![]})[_0x57e212(0x1f3)](_0x50f14e['wcMzd'],{'type':_0x57e212(0x24a),'hidden':!![],'choices':[_0x57e212(0x1b1),_0x57e212(0x221),_0x50f14e[_0x57e212(0x1bc)],'failed',_0x50f14e[_0x57e212(0x194)]]});},async _0x7fcc27=>{const _0x3e9fb0={'AyKlO':function(_0x494828,_0x6b8325,_0x5af1c4){return _0x494828(_0x6b8325,_0x5af1c4);}};await _0x3e9fb0['AyKlO'](runGoCommand,_0x7fcc27,!![]);})['command'](_0x117b27(0x232),![],_0x1eac41=>{const _0x49a7ad=_0x117b27,_0x3d8174={'PiVtD':_0x49a7ad(0x24a),'fVmEs':_0x49a7ad(0x1ad)};return _0x1eac41['positional']('env-name',{'type':_0x3d8174[_0x49a7ad(0x263)],'description':_0x49a7ad(0x24c),'demandOption':!![]})[_0x49a7ad(0x1f3)]('ci',{'type':_0x49a7ad(0x1ad),'description':_0x49a7ad(0x19b),'default':![]})[_0x49a7ad(0x1f3)]('skip-auth',{'type':_0x3d8174[_0x49a7ad(0x256)],'description':_0x49a7ad(0x19a),'default':![]});},async _0x1d9e30=>{const _0x104822=_0x117b27,_0xe50bbf={'SauJJ':function(_0x444b03,_0x109240,_0x54dc51){return _0x444b03(_0x109240,_0x54dc51);},'IAxOk':_0x104822(0x10f),'pVhkM':_0x104822(0x14d),'Jbdpl':'add\x20env'};_0xe50bbf['SauJJ'](warnRenamed,_0xe50bbf['IAxOk'],_0xe50bbf[_0x104822(0x13d)]),await withTelemetry(_0xe50bbf['Jbdpl'],_0x2b2193=>addEnv(_0x1d9e30[_0x104822(0x15b)],{'ci':_0x1d9e30['ci'],'skipAuth':_0x1d9e30[_0x104822(0x267)]},_0x2b2193));})['command'](_0x117b27(0x12a),![],_0x1a8acc=>{const _0x326542=_0x117b27,_0x399374={'VCNXT':'env-name'};return _0x1a8acc[_0x326542(0x1ac)](_0x399374['VCNXT'],{'type':_0x326542(0x24a),'description':'Name\x20of\x20the\x20environment','demandOption':!![]});},async _0x18485a=>{const _0x33695a=_0x117b27,_0x42927f={'jBBAD':_0x33695a(0x1fc)};warnRenamed(_0x42927f[_0x33695a(0x22e)],_0x33695a(0x12e)),await withTelemetry(_0x33695a(0x17d),()=>useEnv(_0x18485a[_0x33695a(0x15b)]));})[_0x117b27(0x1be)](_0x117b27(0x24e),![],_0x2cb4c1=>{const _0x53543a=_0x117b27,_0x1a563a={'EgrJf':_0x53543a(0x1e2),'SGQhJ':_0x53543a(0x182),'pMeUV':_0x53543a(0x18e),'rqNFD':'string','RBZBw':_0x53543a(0x222),'cTiiD':function(_0x111d74,_0x52a0b8,_0x5ecb28){return _0x111d74(_0x52a0b8,_0x5ecb28);},'SSxVG':function(_0x55e498,_0x56ebfb,_0x2dc8be){return _0x55e498(_0x56ebfb,_0x2dc8be);},'IkDuJ':_0x53543a(0x200),'aRJKF':_0x53543a(0x1f6),'GDgGR':'Config\x20key\x20to\x20remove','HuczG':function(_0x18c1c6,_0x25d82a,_0x527239){return _0x18c1c6(_0x25d82a,_0x527239);},'BDxwp':'get\x20<env>\x20<key>'};return _0x2cb4c1[_0x53543a(0x1be)](_0x53543a(0x259),![],_0x3270dc=>{const _0x46126a=_0x53543a;return _0x3270dc['positional'](_0x1a563a[_0x46126a(0x274)],{'type':'string','description':_0x1a563a['SGQhJ'],'demandOption':!![]})['positional'](_0x1a563a['pMeUV'],{'type':_0x1a563a['rqNFD'],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x46126a(0x1ac)]('value',{'type':_0x1a563a[_0x46126a(0x205)],'description':_0x46126a(0x111),'demandOption':!![]});},async _0x270cee=>{const _0x214249=_0x53543a;warnRenamed(_0x1a563a['RBZBw'],_0x214249(0x24b)),await _0x1a563a['cTiiD'](withTelemetry,'config\x20set',()=>configSet(_0x270cee['env'],_0x270cee['key'],_0x270cee['value']));})['command'](_0x1a563a[_0x53543a(0x175)],![],_0x12a071=>{const _0x5b095b=_0x53543a;return _0x12a071['positional'](_0x1a563a['EgrJf'],{'type':_0x5b095b(0x24a),'description':'Environment\x20name','demandOption':!![]})['positional'](_0x1a563a['pMeUV'],{'type':_0x1a563a[_0x5b095b(0x205)],'description':_0x5b095b(0x26c),'demandOption':!![]});},async _0x3d611c=>{const _0x548029=_0x53543a;_0x1a563a[_0x548029(0x190)](warnRenamed,'ranger\x20config\x20get',_0x1a563a[_0x548029(0x153)]),await withTelemetry('config\x20get',()=>configGet(_0x3d611c['env'],_0x3d611c['key']));})[_0x53543a(0x1be)](_0x53543a(0x261),![],_0x5eb2ec=>{const _0x22e990=_0x53543a;return _0x5eb2ec[_0x22e990(0x1ac)]('env',{'type':_0x22e990(0x24a),'description':_0x1a563a[_0x22e990(0xf8)],'demandOption':!![]});},async _0xf19e20=>{const _0x10e239=_0x53543a;warnRenamed(_0x10e239(0x26b),_0x10e239(0x227)),await withTelemetry(_0x1a563a[_0x10e239(0x1fe)],()=>configList(_0xf19e20[_0x10e239(0x1e2)]));})['command'](_0x53543a(0x16a),![],_0x5eaf78=>{const _0x46aac6=_0x53543a;return _0x5eaf78[_0x46aac6(0x1ac)](_0x1a563a['EgrJf'],{'type':_0x46aac6(0x24a),'description':'Environment\x20name','demandOption':!![]})['positional'](_0x1a563a[_0x46aac6(0x108)],{'type':'string','description':_0x1a563a[_0x46aac6(0x12d)],'demandOption':!![]});},async _0x24c3e8=>{const _0x4e3566=_0x53543a;_0x1a563a[_0x4e3566(0x241)](warnRenamed,'ranger\x20config\x20unset',_0x4e3566(0x110)),await withTelemetry(_0x4e3566(0x128),()=>configUnset(_0x24c3e8[_0x4e3566(0x1e2)],_0x24c3e8['key']));})['demandCommand'](0x1,_0x53543a(0x236));})['command']('env',![],_0x2e8b7b=>{const _0x4c12ff=_0x117b27,_0x1a4d61={'JaVTD':_0x4c12ff(0x15b),'WGGMJ':_0x4c12ff(0x24a),'PGCEj':function(_0x5c5762,_0x11355a,_0x2420cb){return _0x5c5762(_0x11355a,_0x2420cb);},'XSLRe':'update\x20<env-name>','aqruE':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x2e8b7b['command']('ls',![],()=>{},async()=>{const _0x5c479a=_0x4c12ff;warnRenamed('ranger\x20env\x20ls','ranger\x20profile\x20ls'),await withTelemetry(_0x5c479a(0x252),()=>envList());})['command'](_0x1a4d61['XSLRe'],![],_0x21ab5f=>{const _0x242b57=_0x4c12ff;return _0x21ab5f[_0x242b57(0x1ac)](_0x1a4d61[_0x242b57(0x257)],{'type':_0x1a4d61['WGGMJ'],'description':_0x242b57(0x196),'demandOption':!![]});},async _0x31da82=>{const _0x1f87fb=_0x4c12ff;_0x1a4d61[_0x1f87fb(0x25a)](warnRenamed,'ranger\x20env\x20update',_0x1f87fb(0xf9)),await withTelemetry(_0x1f87fb(0x1d5),_0x4679bf=>updateEnv(_0x31da82['env-name'],_0x4679bf));})['demandCommand'](0x1,_0x1a4d61[_0x4c12ff(0x233)]);})['command']('feature',![],_0x2beb25=>{const _0x200256=_0x117b27,_0x158d28={'rVVnT':_0x200256(0x1bd),'ToOjR':'string','DbJVE':'Feature\x20review\x20description','wMAwY':'array','YFFFs':_0x200256(0x133),'LyVPH':_0x200256(0x10c),'vEnvv':function(_0x25f084,_0x1e06a7,_0x370a47,_0xe99114){return _0x25f084(_0x1e06a7,_0x370a47,_0xe99114);},'CaltF':_0x200256(0x16d),'qKxMq':'current-branch','wVuNO':_0x200256(0x1ad),'cBdHz':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','NOYrh':'number','vvgHS':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','cMfCq':'offset','iAbqf':_0x200256(0x17e),'ZYTyR':_0x200256(0x1ca),'wfsWG':function(_0x585c20,_0x4c13f2,_0x247580){return _0x585c20(_0x4c13f2,_0x247580);},'ImWqv':'ranger\x20feature\x20list','ZtCRR':'feature\x20list','MJNuU':_0x200256(0x20c),'mdORk':'ranger\x20feature\x20show','VLOPb':'ranger\x20feature\x20resume','KbIkw':function(_0x3f45a1,_0xcf65a3,_0x144a9f){return _0x3f45a1(_0xcf65a3,_0x144a9f);},'VDQzC':'description','RjCOF':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','xQfXq':_0x200256(0x10b),'JPnCw':_0x200256(0x1d6),'XNTrq':_0x200256(0x1ae),'Bhwes':_0x200256(0x212),'nnceN':_0x200256(0x18b),'CZsBd':_0x200256(0x121),'OMOMp':_0x200256(0x1ee),'pVDkX':function(_0x27e330,_0x4beb64,_0x134b08){return _0x27e330(_0x4beb64,_0x134b08);},'DSAgI':'feature\x20restore','IEPmw':'list','SOEPg':'resume\x20[id]','TRKlz':'get-feedback\x20[id]','qVDCX':'delete\x20[id]','NWqAb':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x2beb25[_0x200256(0x1be)](_0x200256(0x10e),![],_0x1ea97c=>{const _0x4bb7e9=_0x200256;return _0x1ea97c[_0x4bb7e9(0x1ac)](_0x158d28['rVVnT'],{'type':_0x158d28[_0x4bb7e9(0x248)],'description':'Feature\x20review\x20name','demandOption':!![]})['option']('description',{'type':'string','alias':'d','description':_0x158d28['DbJVE']})[_0x4bb7e9(0x1f3)]('checklist',{'type':_0x158d28['wMAwY'],'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})[_0x4bb7e9(0x1f3)](_0x158d28[_0x4bb7e9(0x1db)],{'type':_0x158d28[_0x4bb7e9(0x198)],'hidden':!![]});},async _0x3ea5aa=>{const _0xf7820c=_0x200256;warnRenamed(_0x158d28[_0xf7820c(0x234)],_0xf7820c(0x1dd)),_0x158d28['vEnvv'](warnFlagRenamed,'ranger\x20create',_0x158d28['CaltF'],_0xf7820c(0x1c0));const _0x221f44=_0x3ea5aa['scenario']||_0x3ea5aa[_0xf7820c(0x1a5)];await withTelemetry(_0xf7820c(0x189),()=>featureCreate(_0x3ea5aa[_0xf7820c(0x1bd)],{'description':_0x3ea5aa['description'],'scenarios':_0x221f44}));})[_0x200256(0x1be)](_0x158d28[_0x200256(0x144)],![],_0x292e3b=>{const _0x4b3692=_0x200256;return _0x292e3b['option'](_0x158d28['qKxMq'],{'type':_0x158d28['wVuNO'],'description':_0x158d28[_0x4b3692(0x1cf)]})[_0x4b3692(0x1f3)](_0x4b3692(0x1d2),{'type':_0x158d28[_0x4b3692(0x192)],'alias':'l','description':_0x158d28[_0x4b3692(0x1c7)],'default':0xa})['option'](_0x158d28[_0x4b3692(0x18f)],{'type':'number','alias':'o','description':_0x158d28[_0x4b3692(0x1fa)],'default':0x0})['option'](_0x158d28['ZYTyR'],{'type':'boolean','alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x458a99=>{const _0x2f4b00=_0x200256;_0x158d28[_0x2f4b00(0x226)](warnRenamed,_0x158d28['ImWqv'],_0x2f4b00(0xfd)),await withTelemetry(_0x158d28['ZtCRR'],()=>featureList({'currentBranch':_0x458a99[_0x2f4b00(0x1e6)],'limit':_0x458a99['limit'],'offset':_0x458a99[_0x2f4b00(0x1c8)],'includeDeleted':_0x458a99[_0x2f4b00(0x1ca)]}));})[_0x200256(0x1be)]('show\x20[id]',![],_0x46a9a3=>{const _0x27def4=_0x200256;return _0x46a9a3[_0x27def4(0x1ac)]('id',{'type':_0x27def4(0x24a),'description':_0x158d28['MJNuU']});},async _0x359cb8=>{const _0x19b09a=_0x200256;_0x158d28['wfsWG'](warnRenamed,_0x158d28[_0x19b09a(0x18a)],_0x19b09a(0x1da)),await withTelemetry('feature\x20show',()=>featureShow(_0x359cb8['id']));})[_0x200256(0x1be)](_0x158d28[_0x200256(0x141)],![],_0x401a20=>{const _0x35ede7=_0x200256;return _0x401a20['positional']('id',{'type':_0x158d28[_0x35ede7(0x248)],'description':_0x35ede7(0x100)});},async _0xb156ad=>{const _0x3f16d6=_0x200256;_0x158d28['wfsWG'](warnRenamed,_0x158d28[_0x3f16d6(0x179)],_0x3f16d6(0x235)),await _0x158d28['KbIkw'](withTelemetry,'feature\x20resume',()=>featureResume(_0xb156ad['id']));})[_0x200256(0x1be)](_0x200256(0x1ff),![],_0x11f524=>{const _0x567181=_0x200256;return _0x11f524['positional'](_0x158d28['VDQzC'],{'type':_0x158d28['ToOjR'],'description':_0x567181(0x1ec),'demandOption':!![]})['option']('id',{'type':_0x567181(0x24a),'description':_0x158d28[_0x567181(0x23a)]});},async _0x28f6b1=>{const _0x4aacb1=_0x200256;_0x158d28['wfsWG'](warnRenamed,_0x158d28[_0x4aacb1(0xfe)],'ranger\x20add-scenario'),await _0x158d28['wfsWG'](withTelemetry,_0x4aacb1(0x113),()=>featureAddScenario(_0x28f6b1[_0x4aacb1(0x149)],_0x28f6b1['id']));})['command'](_0x158d28['TRKlz'],![],_0x57510e=>{const _0x1cd10d=_0x200256;return _0x57510e['positional']('id',{'type':'string','description':_0x158d28[_0x1cd10d(0x23a)]});},async _0x63e684=>{const _0x4eb21a=_0x200256;warnRenamed(_0x4eb21a(0x275),'ranger\x20get-review'),await _0x158d28[_0x4eb21a(0x226)](withTelemetry,_0x158d28[_0x4eb21a(0x177)],()=>featureGetReview(_0x63e684['id']));})['command'](_0x158d28[_0x200256(0xfa)],![],_0x130e78=>{return _0x130e78['positional']('id',{'type':_0x158d28['ToOjR'],'description':'Feature\x20review\x20ID'});},async _0x6dc63d=>{const _0x846f79=_0x200256;warnRenamed(_0x158d28[_0x846f79(0x251)],_0x158d28[_0x846f79(0x1e7)]),await withTelemetry(_0x158d28[_0x846f79(0x135)],()=>featureDelete(_0x6dc63d['id']));})[_0x200256(0x1be)]('restore\x20<id>',![],_0x1cad39=>{const _0x46f286=_0x200256;return _0x1cad39[_0x46f286(0x1ac)]('id',{'type':_0x158d28[_0x46f286(0x248)],'description':_0x158d28[_0x46f286(0x185)],'demandOption':!![]});},async _0xc76692=>{const _0x8bf514=_0x200256;warnRenamed(_0x158d28['OMOMp'],'ranger\x20restore'),await _0x158d28[_0x8bf514(0x10d)](withTelemetry,_0x158d28[_0x8bf514(0x258)],()=>featureRestore(_0xc76692['id']));})[_0x200256(0x124)](0x1,_0x158d28['NWqAb']);})['command'](_0x117b27(0x1df),![],_0x18b7db=>{const _0x508bb4=_0x117b27,_0x1bf8ac={'FfPjY':function(_0xaa04af,_0x1f8099,_0x3918d6){return _0xaa04af(_0x1f8099,_0x3918d6);},'JlbKS':_0x508bb4(0x201),'JBHJD':'string','SyZeV':_0x508bb4(0x1aa),'mumKt':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','uksCm':_0x508bb4(0x223),'ZnjYe':_0x508bb4(0x272),'oEOqX':_0x508bb4(0x146),'NJXSo':_0x508bb4(0x239)};return _0x18b7db[_0x508bb4(0x1be)](_0x1bf8ac[_0x508bb4(0x102)],_0x1bf8ac[_0x508bb4(0x1e8)],_0x3032b1=>{const _0x1da5f7=_0x508bb4;return _0x3032b1['option'](_0x1da5f7(0x146),{'type':'string','description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x394c14=>{const _0x25c372=_0x508bb4;await _0x1bf8ac[_0x25c372(0x20f)](withTelemetry,_0x1bf8ac[_0x25c372(0x191)],()=>hook('enable',_0x394c14[_0x25c372(0x146)]));})[_0x508bb4(0x1be)](_0x1bf8ac['uksCm'],'Disable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x53d7fb=>{const _0x435bee=_0x508bb4;return _0x53d7fb['option'](_0x435bee(0x146),{'type':_0x1bf8ac[_0x435bee(0x19c)],'description':_0x435bee(0x239)});},async _0x28c9ca=>{const _0x592374=_0x508bb4;await withTelemetry('hook:disable',()=>hook(_0x592374(0x223),_0x28c9ca[_0x592374(0x146)]));})[_0x508bb4(0x1f3)]('name',{'type':_0x508bb4(0x24a),'description':_0x1bf8ac['ZnjYe']})[_0x508bb4(0x1f3)](_0x1bf8ac[_0x508bb4(0x119)],{'type':_0x508bb4(0x24a),'description':_0x1bf8ac[_0x508bb4(0x109)]});},async _0x52b9ce=>{const _0x38016c=_0x117b27;_0x52b9ce[_0x38016c(0x1bd)]&&await hook(_0x52b9ce['name'],_0x52b9ce['session-id']);})[_0x117b27(0x124)](0x1,_0x117b27(0x216))['strictCommands']()[_0x117b27(0x193)](async(_0x31dd51,_0x465ee4,_0xf899)=>{const _0x170020=_0x117b27,_0x5519cc={'gzeKa':function(_0x7198dd,_0x47fd23){return _0x7198dd(_0x47fd23);},'cJGvx':function(_0x5e4cc0,_0x3a214d,_0xc46451){return _0x5e4cc0(_0x3a214d,_0xc46451);},'dnQzm':_0x170020(0x116),'LFPpv':function(_0x2a2f5d,_0x3e480b){return _0x2a2f5d(_0x3e480b);},'xxvvm':function(_0x32fa2d){return _0x32fa2d();},'wyskO':_0x170020(0x18c)},_0x3a3116=_0x5519cc['gzeKa'](sanitizeArgs,process[_0x170020(0x204)][_0x170020(0x20e)](0x2)),_0x94c696=_0x5519cc['cJGvx'](getErrorType,_0x31dd51,_0x465ee4);if(_0x31dd51&&_0x31dd51[_0x170020(0x20b)]('Unknown\x20command')){const _0x4208ab=process['argv'][0x2];console['error'](_0x170020(0x243)+_0x4208ab),console['error'](_0x5519cc[_0x170020(0x145)]);}else{if(_0x31dd51)console[_0x170020(0x13e)]('\x0a'+_0x31dd51+'\x0a');else _0x465ee4&&console[_0x170020(0x13e)](_0x170020(0x23f)+_0x465ee4['message']+'\x0a');}await _0x5519cc[_0x170020(0x1f7)](logDesirePath,{'rawCommand':_0x3a3116,'errorMessage':_0x31dd51||_0x465ee4?.[_0x170020(0x140)],'errorType':_0x94c696});const _0x526358=_0x5519cc[_0x170020(0x16b)](getCurrentCollector);_0x526358&&await _0x526358[_0x170020(0x105)](_0x465ee4||new Error(_0x31dd51||_0x5519cc['wyskO'])),process['exit'](0x1);})[_0x117b27(0x219)]('Documentation:\x0a'+_0x117b27(0x174)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')[_0x117b27(0x106)]()['alias']('help','h')[_0x117b27(0x161)]();
|
|
2
|
+
const _0x54b95a=_0x313d;(function(_0x499953,_0x2c39f1){const _0x59193e=_0x313d,_0x55419a=_0x499953();while(!![]){try{const _0x61a3a6=-parseInt(_0x59193e(0x1d9))/0x1+-parseInt(_0x59193e(0x174))/0x2*(parseInt(_0x59193e(0x258))/0x3)+parseInt(_0x59193e(0x1ee))/0x4*(parseInt(_0x59193e(0x1d5))/0x5)+-parseInt(_0x59193e(0x291))/0x6*(-parseInt(_0x59193e(0x1e5))/0x7)+-parseInt(_0x59193e(0x213))/0x8*(parseInt(_0x59193e(0x250))/0x9)+parseInt(_0x59193e(0x21d))/0xa*(parseInt(_0x59193e(0x241))/0xb)+parseInt(_0x59193e(0x26e))/0xc*(parseInt(_0x59193e(0x1cb))/0xd);if(_0x61a3a6===_0x2c39f1)break;else _0x55419a['push'](_0x55419a['shift']());}catch(_0x4b0b0a){_0x55419a['push'](_0x55419a['shift']());}}}(_0x5221,0x5d09a));import _0x292803 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x4d99eb=_0x313d,_0x166cd8={'GmYXo':function(_0x2c5130,_0x240e51){return _0x2c5130(_0x240e51);},'jyoYs':function(_0x13ecf2,_0x291519,_0x4c0b5b){return _0x13ecf2(_0x291519,_0x4c0b5b);},'rMzUM':'.ranger'};let _0x2f065=process['cwd']();const _0x3275b7=parse(_0x2f065)[_0x4d99eb(0x26b)];while(_0x2f065!==_0x3275b7){if(_0x166cd8['GmYXo'](existsSync,_0x166cd8[_0x4d99eb(0x1b4)](join,_0x2f065,_0x166cd8['rMzUM']))||existsSync(_0x166cd8['jyoYs'](join,_0x2f065,_0x4d99eb(0x166))))return _0x2f065;_0x2f065=dirname(_0x2f065);}return process['cwd']();}_0x292803[_0x54b95a(0x16f)]({'path':join(findProjectRoot(),_0x54b95a(0x166))});import _0x30f22d from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';function _0x5221(){const _0xd3ffa=['buahf','map','--scenario','CEYXR','btLFs','exit','CVKNW','yNouC','UZRcx','rtgYs','slice','GPzwO','ranger\x20add\x20env','pfyCt','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','ranger\x20profile\x20use','26MUiDIj','TahTC','argv','Jvbgf','positional','ivxJi','gKlNF','uFmFz','base-url','jpmYE','5yGqrsW','headed','skip-chromium','uSczN','279122BSLsWe','iodDU','ewKKD','zdVfQ','.\x20[','add\x20env\x20<env-name>','zKtCd','token','\x0aError:\x20','set\x20<env>\x20<key>\x20<value>','zTUsL','offset','847zqiacD','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','ranger\x20feature\x20show','DnTnb','WqODj','enable','auth','evaluationReason','AhSBz','196012WqsJCH','blocked','Ranger\x20API\x20token','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','clean','string','svPSV','sEcer','XcZIJ','length','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','ranger\x20config\x20unset','resume','ZgsOz','yvylS','login','profile','force','usage','Install\x20Ranger\x20skills','Name\x20of\x20the\x20environment\x20to\x20update','profile\x20update','demandCommand','ranger\x20add-scenario','Feature\x20review\x20ID\x20to\x20restore','url','aGCBl','ranger\x20go','incomplete','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','\x20is\x20now\x20','XdXSL','YEsEc','Summary:\x20','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','GZaIC','add-scenario\x20<description>','8tEzPYi','scenario','VAMRN','value','xJMGn','Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','ranger\x20get-review','array','Evaluation:\x20','ZhXds','5494940fGMMDs','OPSgH','adcWQ','\x20INCOMPLETE','IbNlf','vbzJi','rGEGu','List\x20all\x20profiles','JkytR','EPQlG','start-path','error','nmLvD','qGhyA','LRzWJ','json','NETxW','pmVLs','rEoCw','model','profile\x20encrypt-auth','VWNcT','FHHMo','update\x20<profile-name>','--item','WrgEB','vkVdA','Profile\x20name','FAHuV','ranger\x20setup','mJrYY','diwdX','CDWVI','Name\x20of\x20the\x20profile','ranger\x20create','Remove\x20a\x20config\x20value','11scfqUl','sQwlD','description','skip-auth','add\x20env','Scenario\x20number\x20to\x20edit\x20(1-based)','AnGCn','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','current-branch','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','debug-outcome','zVuHX','env-name','bjwxc','6574977oaluxk','name','config\x20get','config\x20unset','KzAoM','New\x20scenario\x20description','LAJTi','FbcKi','3FngFzr','LQtIC','Skip\x20Chromium\x20browser\x20installation','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','eDRys','iFakq','RbJjv','command','XbAFd','dYxvI','scope','Config\x20key','UirLa','You\x20must\x20specify\x20an\x20env\x20subcommand','disable','ICfdJ','XgdXl','env\x20update','oAgjE','root','--checklist','partial','6695316cnjcOW','uBdat','lNlMs','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','start','QoIEi','log','verified','Manage\x20profile\x20configuration','IjcdR','gmtcG','use\x20<profile-name>','AjRHc','key','AUMHg','session-id','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','notes','opencode','feature\x20list','ranger\x20profile\x20update','ranger\x20feature\x20add-checklist-item','feature\x20restore','BlaaE','KBxbz','uefwa','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','unset\x20<env>\x20<key>','ndRgQ','ranger\x20feature\x20create','VyWRe','PFuHG','ledTc','item','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','6846uFNUvg','Initialize\x20Ranger\x20in\x20your\x20project','ranger\x20profile\x20config\x20set','wNEbk','alias','lVLtI','safe-mode','skillup','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','add-checklist-item\x20<description>','LiaVV','default','option','update\x20<env-name>','Number\x20of\x20feature\x20reviews\x20to\x20skip','get-review\x20[id]','sMqlf','KDemv','PLXHF','zVQHR','daZHV','Unknown\x20error','ClYVP','eOkaj','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','verify-feature','ranger\x20feature\x20delete','encrypt\x20<profile>','AruEN','OAiQN','trackCommandError','report\x20[id]','ranger\x20resume','EAYkQ','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','Feature\x20review\x20ID','env','Feature\x20review\x20description','huosi','zKhYU','boolean','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','vuxpL','List\x20all\x20feature\x20reviews','limit','setup-header','uVfJO','SiVNd','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','mwKEd','profile\x20ls','CObgL','vHbwU','epilogue','evaluation','parse','encrypt-auth\x20<profile>','profile-name','oTPnJ','Config\x20key\x20to\x20remove','failed','.env','setup-ci','restore','Environment\x20name','feature','Add\x20profile\x20configuration','ujeWd','Update\x20authentication\x20for\x20an\x20existing\x20profile','Restore\x20a\x20soft-deleted\x20feature\x20review','config','ITQSz','dlgcE','checklist','\x20BLOCKED','923374RmiIjZ','Include\x20soft-deleted\x20feature\x20reviews','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\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\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\x20sent\x20with\x20every\x20request\x20(e.g.,\x20header.X-Test-Mode)\x0a\x20\x20setupHeader.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeader.x-skip-turnstile)\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\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20setupHeader.x-skip-turnstile\x20\x27434c1e29...\x27','project','resume\x20[id]','update','dhsFF','Config\x20value','number','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','flag','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','zQbVs','Scenario\x20index\x20(1-based)','biBkO','add-scenario','bUOIx','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','WxhnD','hook','fRJgL','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','rRgyx','zwwYT','tAcaH','mgAJQ','XKHNG','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','WUJHg','task','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','Switch\x20to\x20using\x20a\x20specific\x20profile','ranger','You\x20must\x20specify\x20a\x20config\x20subcommand','iVJIW','CdZwR','cdp-endpoint','FnkEn','KCxcW','BuoCl','xwYEY','heKoy','bxQyc','TnrBr','YOGSw','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','mTxWH','env\x20list','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','exclude-scenario','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','ZMbsW','aFyho','Oatta','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','yzLmo','Reason:\x20','ranger\x20config\x20list','ykZVn','gcNWZ','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','include-deleted','VESLb','jyoYs','NBdOL','LKRoM','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','debug-address-comments','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','get-review'];_0x5221=function(){return _0xd3ffa;};return _0x5221();}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 _0x1fde3c=>{const _0x4d6d7a=_0x54b95a,_0x53ecf6={'fVpYq':function(_0x194d62){return _0x194d62();}},_0x33a050=_0x53ecf6['fVpYq'](getCurrentCollector);_0x33a050&&await _0x33a050[_0x4d6d7a(0x147)](_0x1fde3c),process['exitCode']=0x1;});const rawArgs=process[_0x54b95a(0x1cd)]['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP=_0x54b95a(0x1ab),PROFILE_CONFIG_HELP=_0x54b95a(0x176);function warnRenamed(_0x3e46c7,_0x4054d7){const _0xeca67=_0x54b95a;console[_0xeca67(0x228)]('\x0a'+_0x3e46c7+_0xeca67(0x20c)+_0x4054d7+'\x0a');}function argUsed(_0x18e9a0){return rawArgs['some'](_0x477a65=>_0x477a65===_0x18e9a0||_0x477a65['startsWith'](_0x18e9a0+'='));}function _0x313d(_0x19b2c2,_0x2c6287){_0x19b2c2=_0x19b2c2-0x12a;const _0x5221ba=_0x5221();let _0x313d8d=_0x5221ba[_0x19b2c2];return _0x313d8d;}function warnFlagRenamed(_0x542797,_0x3fa546,_0x1a10c4){const _0x59e032={'mJhFH':function(_0x29a925,_0x501fdf,_0x26a0c5){return _0x29a925(_0x501fdf,_0x26a0c5);}};argUsed(_0x3fa546)&&_0x59e032['mJhFH'](warnRenamed,_0x542797+'\x20'+_0x3fa546,_0x542797+'\x20'+_0x1a10c4);}async function runGoCommand(_0x18659a,_0xc19b6e=![]){const _0x998a48=_0x54b95a,_0x5f503d={'zVQHR':function(_0x3ffc54,_0x2c0538){return _0x3ffc54+_0x2c0538;},'rtuNO':'ranger\x20verify-feature','pylGZ':'--env','KIucc':'ranger\x20go','ZEdwb':'--notes','xrJbY':'--scenario','dEdmI':function(_0x45870c){return _0x45870c();},'bUOIx':function(_0x2c3486,_0x1cc6b8){return _0x2c3486??_0x1cc6b8;},'SiVNd':_0x998a48(0x16f),'TahTC':_0x998a48(0x134),'OAiQN':function(_0x196bd9,_0x22d0e8){return _0x196bd9(_0x22d0e8);},'mTxWH':'debug-address-comments','ICfdJ':function(_0x4f8cac,_0x3e13b8){return _0x4f8cac===_0x3e13b8;},'yNouC':'\x20VERIFIED','LCmuT':'incomplete','RbJjv':function(_0xc9ab06,_0x2c0056){return _0xc9ab06===_0x2c0056;},'LWbNz':_0x998a48(0x26d),'XKHNG':function(_0xa7bb91,_0xf2b977){return _0xa7bb91===_0xf2b977;},'PFuHG':_0x998a48(0x1ef),'XgdXl':_0x998a48(0x275)};_0xc19b6e&&warnRenamed(_0x5f503d['rtuNO'],'ranger\x20go');warnFlagRenamed(_0x998a48(0x209),_0x5f503d['pylGZ'],'--profile'),warnFlagRenamed(_0x5f503d['KIucc'],'--task',_0x5f503d['ZEdwb']),warnFlagRenamed(_0x5f503d['KIucc'],_0x998a48(0x235),_0x5f503d['xrJbY']);const _0x16f9bb=await _0x5f503d['dEdmI'](loadRangerConfig),_0x1c3854=_0x18659a[_0x998a48(0x230)],_0x1b9846=_0x16f9bb['model'],_0x46f1a4=_0x5f503d[_0x998a48(0x184)](_0x1c3854,_0x1b9846),_0xfcd772=_0x1c3854?_0x998a48(0x17e):_0x1b9846?_0x5f503d[_0x998a48(0x158)]:_0x5f503d[_0x998a48(0x1cc)],_0x3df6eb=await _0x5f503d[_0x998a48(0x146)](verifyFeature,{'featureId':_0x18659a[_0x998a48(0x16a)],'profile':_0x18659a[_0x998a48(0x1fe)]??_0x18659a['env'],'notes':_0x18659a[_0x998a48(0x27f)]??_0x18659a['task'],'scenario':_0x18659a['scenario']??_0x18659a['item'],'startPath':_0x18659a['start-path'],'debugOutcome':_0x18659a['debug-outcome'],'debugAddressComments':_0x18659a[_0x5f503d[_0x998a48(0x1a3)]],'headed':_0x18659a[_0x998a48(0x1d6)],'verifyModel':_0x46f1a4,'verifyModelInput':_0x46f1a4,'verifyModelSource':_0xfcd772});console[_0x998a48(0x274)](_0x5f503d['zVQHR']('\x0a','='['repeat'](0x3c))),console[_0x998a48(0x274)](_0x5f503d[_0x998a48(0x267)](_0x3df6eb[_0x998a48(0x15f)],'verified')?_0x5f503d[_0x998a48(0x1c2)]:_0x3df6eb['evaluation']===_0x5f503d['LCmuT']?_0x998a48(0x220):_0x5f503d[_0x998a48(0x25e)](_0x3df6eb[_0x998a48(0x15f)],_0x5f503d['LWbNz'])?'\x20PARTIAL':_0x5f503d[_0x998a48(0x18f)](_0x3df6eb[_0x998a48(0x15f)],_0x5f503d[_0x998a48(0x28d)])?_0x998a48(0x173):'\x20FAILED'),console[_0x998a48(0x274)]('='['repeat'](0x3c)),console['log'](_0x998a48(0x20f)+_0x3df6eb['summary']),console[_0x998a48(0x274)](_0x998a48(0x21b)+_0x3df6eb[_0x998a48(0x15f)]),console['log'](_0x998a48(0x1ad)+_0x3df6eb[_0x998a48(0x1ec)]),_0x3df6eb['issues']?.[_0x998a48(0x1f7)]&&(console['log']('\x0aIssues:'),_0x3df6eb['issues']['forEach']((_0x529509,_0x38f3f4)=>{const _0x2afdf0=_0x998a48;console['log']('\x0a'+_0x5f503d[_0x2afdf0(0x13c)](_0x38f3f4,0x1)+_0x2afdf0(0x1dd)+_0x529509['severity']+']\x20'+_0x529509['description']);})),process['exit'](_0x3df6eb[_0x998a48(0x15f)]===_0x5f503d[_0x998a48(0x268)]?0x0:0x1);}_0x30f22d(process[_0x54b95a(0x1cd)]['slice'](0x2))['scriptName'](_0x54b95a(0x195))['usage'](TOP_LEVEL_HELP)['version'](getCurrentVersion())['command']('create\x20<name>',_0x54b95a(0x1a7),_0x4a458c=>{const _0x3f5aba=_0x54b95a,_0x47c961={'buahf':'Feature\x20review\x20name','nmLvD':_0x3f5aba(0x1f3),'CDWVI':'array','XcZIJ':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','biBkO':_0x3f5aba(0x172)};return _0x4a458c['positional'](_0x3f5aba(0x251),{'type':'string','description':_0x47c961[_0x3f5aba(0x1bb)],'demandOption':!![]})[_0x3f5aba(0x135)](_0x3f5aba(0x243),{'type':_0x47c961[_0x3f5aba(0x229)],'alias':'d','description':_0x3f5aba(0x14e)})['option'](_0x3f5aba(0x214),{'type':_0x47c961[_0x3f5aba(0x23d)],'alias':'c','description':_0x47c961[_0x3f5aba(0x1f6)]})[_0x3f5aba(0x135)](_0x47c961[_0x3f5aba(0x182)],{'type':_0x47c961[_0x3f5aba(0x23d)],'hidden':!![]});},async _0x49a80c=>{const _0x2706da=_0x54b95a,_0x40328c={'eDRys':function(_0x3d96c8,_0x312733,_0x284c00,_0xc9eee0){return _0x3d96c8(_0x312733,_0x284c00,_0xc9eee0);},'sEcer':'--scenario','yeHbz':'create'};_0x40328c[_0x2706da(0x25c)](warnFlagRenamed,_0x2706da(0x23f),_0x2706da(0x26c),_0x40328c[_0x2706da(0x1f5)]);const _0x22a391=_0x49a80c['scenario']||_0x49a80c['checklist'];await withTelemetry(_0x40328c['yeHbz'],()=>featureCreate(_0x49a80c['name'],{'description':_0x49a80c[_0x2706da(0x243)],'scenarios':_0x22a391}));})[_0x54b95a(0x25f)]('list',_0x54b95a(0x154),_0x1d748b=>{const _0x67ee40=_0x54b95a,_0x314811={'nUEAy':_0x67ee40(0x1e6),'CdZwR':_0x67ee40(0x1f8),'rtgYs':'offset','vVGpS':'Number\x20of\x20feature\x20reviews\x20to\x20skip','sMqlf':'boolean','xtoBb':_0x67ee40(0x175)};return _0x1d748b['option']('current-branch',{'type':'boolean','description':_0x314811['nUEAy']})[_0x67ee40(0x135)](_0x67ee40(0x155),{'type':_0x67ee40(0x17c),'alias':'l','description':_0x314811[_0x67ee40(0x198)],'default':0xa})['option'](_0x314811[_0x67ee40(0x1c4)],{'type':_0x67ee40(0x17c),'alias':'o','description':_0x314811['vVGpS'],'default':0x0})['option'](_0x67ee40(0x1b2),{'type':_0x314811[_0x67ee40(0x139)],'alias':'d','description':_0x314811['xtoBb'],'default':![]});},async _0x18810e=>{const _0x2dd2e0=_0x54b95a;await withTelemetry('list',()=>featureList({'currentBranch':_0x18810e['current-branch'],'limit':_0x18810e['limit'],'offset':_0x18810e[_0x2dd2e0(0x1e4)],'includeDeleted':_0x18810e[_0x2dd2e0(0x1b2)]}));})[_0x54b95a(0x25f)]('show\x20[id]','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x18b9dc=>{const _0x5ae835=_0x54b95a;return _0x18b9dc['positional']('id',{'type':_0x5ae835(0x1f3),'description':_0x5ae835(0x14c)});},async _0x2c8818=>{const _0x4428e6={'JFLqD':function(_0x56fbab,_0x22e56e,_0x4df2a5){return _0x56fbab(_0x22e56e,_0x4df2a5);}};await _0x4428e6['JFLqD'](withTelemetry,'show',()=>featureShow(_0x2c8818['id']));})['command'](_0x54b95a(0x178),'Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x2a51ea=>{const _0x69678=_0x54b95a;return _0x2a51ea[_0x69678(0x1cf)]('id',{'type':'string','description':_0x69678(0x131)});},async _0x2af0c0=>{const _0x56d7ae=_0x54b95a,_0xa1c191={'JSDaj':_0x56d7ae(0x1fa)};await withTelemetry(_0xa1c191['JSDaj'],()=>featureResume(_0x2af0c0['id']));})[_0x54b95a(0x25f)](_0x54b95a(0x212),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x1ea23a=>{const _0x3f3853=_0x54b95a,_0x3a8136={'rRgyx':'Scenario\x20description'};return _0x1ea23a['positional']('description',{'type':_0x3f3853(0x1f3),'description':_0x3a8136[_0x3f3853(0x18b)],'demandOption':!![]})[_0x3f3853(0x135)]('id',{'type':'string','description':_0x3f3853(0x17d)});},async _0x85619f=>{const _0x33d603=_0x54b95a,_0x231c92={'WUJHg':function(_0x12b124,_0x499c79,_0x2d53de){return _0x12b124(_0x499c79,_0x2d53de);},'bxQyc':_0x33d603(0x183)};await _0x231c92[_0x33d603(0x191)](withTelemetry,_0x231c92[_0x33d603(0x19f)],()=>featureAddScenario(_0x85619f['description'],_0x85619f['id']));})[_0x54b95a(0x25f)]('edit-scenario\x20<description>',_0x54b95a(0x1a5),_0x18cbb0=>{const _0x5a8176=_0x54b95a,_0x16dcc8={'udcsT':'string','SnLbH':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x18cbb0['positional']('description',{'type':_0x16dcc8['udcsT'],'description':_0x5a8176(0x255),'demandOption':!![]})[_0x5a8176(0x135)](_0x5a8176(0x214),{'type':'number','description':_0x5a8176(0x246),'demandOption':!![]})[_0x5a8176(0x135)]('id',{'type':_0x5a8176(0x1f3),'description':_0x16dcc8['SnLbH']});},async _0x1787de=>{await withTelemetry('edit-scenario',()=>featureEditScenario(_0x1787de['description'],{'id':_0x1787de['id'],'scenario':_0x1787de['scenario']}));})['command'](_0x54b95a(0x148),'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x4ce65a=>{const _0x4e733a=_0x54b95a,_0x1cfd9e={'vuxpL':_0x4e733a(0x14c),'xvAmG':'exclude-scenario','VenBO':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','VMuZS':'json','gFkTR':'boolean','UMObJ':_0x4e733a(0x1b9)};return _0x4ce65a[_0x4e733a(0x1cf)]('id',{'type':'string','description':_0x1cfd9e[_0x4e733a(0x153)]})['option'](_0x1cfd9e['xvAmG'],{'type':_0x4e733a(0x21a),'description':_0x1cfd9e['VenBO']})['option'](_0x1cfd9e['VMuZS'],{'type':_0x1cfd9e['gFkTR'],'description':_0x1cfd9e['UMObJ'],'default':![]});},async _0x539e49=>{const _0x100331=_0x54b95a,_0x40edbc={'XbAFd':_0x100331(0x1a6),'IjcdR':function(_0xc3c4c2,_0x5f704b,_0x332e89){return _0xc3c4c2(_0x5f704b,_0x332e89);}},_0x2b7638=_0x539e49[_0x40edbc[_0x100331(0x260)]],_0x549d15=_0x2b7638?_0x2b7638[_0x100331(0x1bc)](_0x184ed3=>Number(_0x184ed3)):undefined;await _0x40edbc[_0x100331(0x277)](withTelemetry,'report',()=>featureReportPrDescription(_0x539e49['id'],{'excludeScenarios':_0x549d15,'json':_0x539e49[_0x100331(0x22c)]}));})[_0x54b95a(0x25f)](_0x54b95a(0x138),'Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x45d92b=>{const _0x589f65=_0x54b95a;return _0x45d92b['positional']('id',{'type':'string','description':_0x589f65(0x17d)});},async _0x101969=>{const _0x19e2c1=_0x54b95a;await withTelemetry(_0x19e2c1(0x1ba),()=>featureGetReview(_0x101969['id']));})['command']('delete\x20[id]','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x4be912=>{const _0x780518=_0x54b95a,_0x2012e3={'ZhXds':'Feature\x20review\x20ID'};return _0x4be912['positional']('id',{'type':_0x780518(0x1f3),'description':_0x2012e3[_0x780518(0x21c)]});},async _0x2f167c=>{await withTelemetry('delete',()=>featureDelete(_0x2f167c['id']));})[_0x54b95a(0x25f)]('restore\x20<id>',_0x54b95a(0x16e),_0x5aff04=>{const _0x476889=_0x54b95a,_0x37bcea={'XGjxy':_0x476889(0x1f3),'oTgyM':_0x476889(0x206)};return _0x5aff04['positional']('id',{'type':_0x37bcea['XGjxy'],'description':_0x37bcea['oTgyM'],'demandOption':!![]});},async _0x4c42c0=>{const _0x30aacc=_0x54b95a;await withTelemetry(_0x30aacc(0x168),()=>featureRestore(_0x4c42c0['id']));})[_0x54b95a(0x25f)]('setup\x20[token]',_0x54b95a(0x12a),_0x4985d8=>{const _0x1c83b0=_0x54b95a,_0x420a22={'IfJko':'token','LKRoM':'scope','qTfat':_0x1c83b0(0x17f),'xwYEY':'string','rGEGu':_0x1c83b0(0x1ff),'ySmHH':_0x1c83b0(0x151),'KCxcW':_0x1c83b0(0x20b)};return _0x4985d8[_0x1c83b0(0x1cf)](_0x420a22['IfJko'],{'type':_0x1c83b0(0x1f3),'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})['option']('skip-chromium',{'type':'boolean','description':_0x1c83b0(0x1a2),'default':![]})['option'](_0x420a22[_0x1c83b0(0x1b6)],{'type':'string','choices':['user','project'],'description':_0x420a22['qTfat']})[_0x1c83b0(0x135)]('url',{'type':_0x420a22[_0x1c83b0(0x19d)],'description':_0x1c83b0(0x290)})['option'](_0x420a22[_0x1c83b0(0x223)],{'type':_0x1c83b0(0x151),'description':_0x1c83b0(0x141),'default':![]})['option']('opencode',{'type':_0x420a22['ySmHH'],'description':_0x420a22[_0x1c83b0(0x19b)],'default':![]})[_0x1c83b0(0x135)]('allow-insecure-localhost',{'type':_0x420a22['ySmHH'],'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]});},async _0x5a03a8=>{const _0x1101ba=_0x54b95a;await withTelemetry(_0x1101ba(0x272),_0x261b29=>start(_0x5a03a8['token'],{'skipChromium':_0x5a03a8[_0x1101ba(0x1d7)],'scope':_0x5a03a8[_0x1101ba(0x262)],'url':_0x5a03a8[_0x1101ba(0x207)],'force':_0x5a03a8['force'],'opencode':_0x5a03a8[_0x1101ba(0x280)],'allowInsecureLocalhost':_0x5a03a8['allow-insecure-localhost']},_0x261b29));})[_0x54b95a(0x25f)]('setup-ci\x20<token>',_0x54b95a(0x1b1),_0x29c0d9=>{const _0x2bcd22=_0x54b95a,_0x31c2d6={'yvylS':_0x2bcd22(0x1f3),'ZMbsW':_0x2bcd22(0x1f0),'zKhYU':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','BlaaE':_0x2bcd22(0x1d3),'xPlyN':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','AjRHc':'skip-chromium','RjyGh':_0x2bcd22(0x151)};return _0x29c0d9['positional'](_0x2bcd22(0x1e0),{'type':_0x31c2d6[_0x2bcd22(0x1fc)],'description':_0x31c2d6[_0x2bcd22(0x1a8)],'demandOption':!![]})['option'](_0x2bcd22(0x1fe),{'type':'string','description':_0x31c2d6[_0x2bcd22(0x150)]})['option'](_0x31c2d6[_0x2bcd22(0x285)],{'type':_0x31c2d6[_0x2bcd22(0x1fc)],'description':_0x31c2d6['xPlyN']})['option'](_0x31c2d6[_0x2bcd22(0x27a)],{'type':_0x31c2d6['RjyGh'],'description':_0x2bcd22(0x25a),'default':![]});},async _0x14d752=>{const _0xf4a064=_0x54b95a,_0x11840b={'WrgEB':function(_0x217756,_0x30b5fc,_0x25e44b){return _0x217756(_0x30b5fc,_0x25e44b);},'NJIah':_0xf4a064(0x167)};await _0x11840b[_0xf4a064(0x236)](withTelemetry,_0x11840b['NJIah'],_0x4a95dc=>setupCi(_0x14d752[_0xf4a064(0x1e0)],{'profile':_0x14d752['profile'],'baseUrl':_0x14d752['base-url'],'skipChromium':_0x14d752['skip-chromium']},_0x4a95dc));})['command'](_0x54b95a(0x1fd),'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x465980=_0x54b95a,_0x223179={'BuoCl':'login'};await withTelemetry(_0x223179[_0x465980(0x19c)],()=>login());})['command']('skillup',_0x54b95a(0x201),_0x274c07=>{const _0x3fd0da=_0x54b95a,_0x129b3d={'VyWRe':'opencode','pfyCt':_0x3fd0da(0x151),'iJdSW':'Install\x20skills\x20for\x20OpenCode','gKlNF':'scope','KBxbz':'string','mJrYY':'user','GPzwO':'Install\x20scope\x20for\x20skills'};return _0x274c07['option'](_0x129b3d[_0x3fd0da(0x28c)],{'type':_0x129b3d[_0x3fd0da(0x1c8)],'description':_0x129b3d['iJdSW'],'default':![]})[_0x3fd0da(0x135)](_0x129b3d[_0x3fd0da(0x1d1)],{'type':_0x129b3d[_0x3fd0da(0x286)],'choices':[_0x129b3d[_0x3fd0da(0x23b)],_0x3fd0da(0x177)],'description':_0x129b3d[_0x3fd0da(0x1c6)]});},async _0xa46a56=>{const _0x4ef47f=_0x54b95a,_0x133ea0={'rTiiY':function(_0x351a23,_0x50e406,_0x149df6){return _0x351a23(_0x50e406,_0x149df6);},'JkytR':_0x4ef47f(0x130)},_0xaa2a89=Boolean(_0xa46a56['opencode']);await _0x133ea0['rTiiY'](withTelemetry,_0x133ea0[_0x4ef47f(0x225)],()=>skillup({'autoInstall':_0xa46a56['scope'],'platform':_0xaa2a89?'opencode':'claude'}));})[_0x54b95a(0x25f)](_0x54b95a(0x1f2),'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{await withTelemetry('clean',()=>clean());})[_0x54b95a(0x25f)]('profile','Manage\x20profiles',_0x256dfa=>{const _0x1027da=_0x54b95a,_0x10890d={'FbcKi':_0x1027da(0x162),'iVJIW':_0x1027da(0x1f3),'Jvbgf':_0x1027da(0x218),'nMyYK':_0x1027da(0x244),'ITQSz':_0x1027da(0x1b7),'mJZcZ':_0x1027da(0x25b),'sQwlD':'force','XbZLz':_0x1027da(0x199),'oTPnJ':'allow-insecure-localhost','kCgzE':_0x1027da(0x14b),'nzeKr':'safe-mode','Iaqxj':_0x1027da(0x210),'ndRgQ':_0x1027da(0x159),'wzxOV':function(_0x53ff18,_0x15d51e){return _0x53ff18(_0x15d51e);},'WLOvq':_0x1027da(0x23e),'CObgL':function(_0x3053bc,_0xfec5e2,_0x586463){return _0x3053bc(_0xfec5e2,_0x586463);},'WxhnD':_0x1027da(0x231),'huosi':function(_0xd34c92,_0x368663,_0x3e36ba){return _0xd34c92(_0x368663,_0x3e36ba);},'mgAJQ':'key','FnkEn':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','VAMRN':'Config\x20value','iZIax':'profile','SqRWE':_0x1027da(0x263),'OPSgH':'profile\x20config\x20unset','zQbVs':'profile\x20config\x20set','EPQlG':'Set\x20a\x20config\x20value','VwTgU':'list\x20<profile>','TVPuN':'unset\x20<profile>\x20<key>','PLXHF':_0x1027da(0x240),'LiaVV':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','KzAoM':'add\x20<profile-name>','vkVdA':_0x1027da(0x279),'JRmMr':_0x1027da(0x234),'xJMGn':_0x1027da(0x16d),'gcNWZ':_0x1027da(0x16f),'SfsNZ':_0x1027da(0x276),'nOxZF':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x256dfa[_0x1027da(0x200)](PROFILE_HELP)[_0x1027da(0x25f)](_0x10890d[_0x1027da(0x254)],_0x1027da(0x16b),_0x11efb3=>{const _0x595afd=_0x1027da;return _0x11efb3[_0x595afd(0x1cf)](_0x10890d['FbcKi'],{'type':_0x10890d[_0x595afd(0x197)],'description':_0x595afd(0x24a),'demandOption':!![]})['option']('ci',{'type':'boolean','description':_0x10890d[_0x595afd(0x1ce)],'default':![]})[_0x595afd(0x135)](_0x10890d['nMyYK'],{'type':_0x595afd(0x151),'description':_0x10890d[_0x595afd(0x170)],'default':![]})['option'](_0x595afd(0x207),{'type':'string','description':_0x10890d['mJZcZ']})[_0x595afd(0x135)](_0x10890d[_0x595afd(0x242)],{'type':'boolean','description':_0x595afd(0x141),'default':![]})['option'](_0x10890d['XbZLz'],{'type':_0x595afd(0x1f3),'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'})['option'](_0x10890d[_0x595afd(0x163)],{'type':_0x595afd(0x151),'description':_0x10890d['kCgzE'],'default':![]})[_0x595afd(0x135)](_0x10890d['nzeKr'],{'type':'boolean','description':_0x10890d['Iaqxj'],'default':![]})[_0x595afd(0x135)]('setup-header',{'type':_0x10890d['iVJIW'],'array':!![],'description':_0x10890d[_0x595afd(0x28a)]});},async _0x2223d5=>{const _0x61c843=_0x1027da;await withTelemetry('profile\x20add',_0x1f8ced=>addEnv(_0x2223d5['profile-name'],{'ci':_0x2223d5['ci'],'skipAuth':_0x2223d5['skip-auth'],'url':_0x2223d5[_0x61c843(0x207)],'force':_0x2223d5[_0x61c843(0x1ff)],'cdpEndpoint':_0x2223d5[_0x61c843(0x199)],'allowInsecureLocalhost':_0x2223d5['allow-insecure-localhost'],'safeMode':_0x2223d5[_0x61c843(0x12f)],'setupHeader':_0x2223d5[_0x61c843(0x156)]},_0x1f8ced),{'isElectron':_0x10890d['wzxOV'](Boolean,_0x2223d5[_0x61c843(0x199)])});})[_0x1027da(0x25f)](_0x10890d[_0x1027da(0x237)],_0x1027da(0x194),_0x30c052=>{const _0x459c3b=_0x1027da;return _0x30c052[_0x459c3b(0x1cf)](_0x10890d[_0x459c3b(0x257)],{'type':_0x10890d['iVJIW'],'description':_0x10890d['WLOvq'],'demandOption':!![]});},async _0x2cfe39=>{const _0x1da49f=_0x1027da;await withTelemetry('profile\x20use',()=>useEnv(_0x2cfe39[_0x1da49f(0x162)]));})[_0x1027da(0x25f)](_0x1027da(0x161),_0x1027da(0x24b),_0x6d62df=>{const _0x2d2d9c=_0x1027da;return _0x6d62df[_0x2d2d9c(0x1cf)](_0x2d2d9c(0x1fe),{'type':_0x10890d[_0x2d2d9c(0x197)],'description':'Profile\x20name','demandOption':!![]});},async _0x22e0ac=>{const _0x30d1bf=_0x1027da;await _0x10890d['CObgL'](withTelemetry,_0x10890d[_0x30d1bf(0x187)],()=>authEncrypt(_0x22e0ac['profile']));})[_0x1027da(0x25f)]('ls',_0x1027da(0x224),()=>{},async()=>{const _0x4a81fe=_0x1027da;await withTelemetry(_0x4a81fe(0x15b),()=>envList());})['command'](_0x10890d['JRmMr'],_0x10890d[_0x1027da(0x217)],_0x3b8e8b=>{const _0x3802b7=_0x1027da;return _0x3b8e8b['positional'](_0x10890d[_0x3802b7(0x257)],{'type':'string','description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]})['option'](_0x10890d['oTPnJ'],{'type':'boolean','description':_0x10890d['kCgzE']});},async _0x200da3=>{const _0x7a87e0=_0x1027da;await _0x10890d[_0x7a87e0(0x14f)](withTelemetry,_0x7a87e0(0x203),_0x1467c0=>updateEnv(_0x200da3[_0x7a87e0(0x162)],_0x1467c0,{'allowInsecureLocalhost':_0x200da3['allow-insecure-localhost']}));})[_0x1027da(0x25f)](_0x10890d[_0x1027da(0x1b0)],_0x10890d['SfsNZ'],_0x5c972c=>{const _0xe822c8=_0x1027da,_0x2fb8b0={'nnsep':function(_0x2f4504,_0x27bc62,_0x34e7c5){return _0x2f4504(_0x27bc62,_0x34e7c5);},'uefwa':_0x10890d[_0xe822c8(0x180)],'bqyAo':'profile\x20config\x20get','AhSBz':'profile','uBdat':_0x10890d[_0xe822c8(0x197)],'yGQcU':function(_0x5f0250,_0x3a87eb,_0x283814){return _0x5f0250(_0x3a87eb,_0x283814);},'GZaIC':'profile\x20config\x20list','JntLT':_0xe822c8(0x238),'BXpaS':_0xe822c8(0x164)};return _0x5c972c[_0xe822c8(0x200)](PROFILE_CONFIG_HELP)[_0xe822c8(0x25f)]('set\x20<profile>\x20<key>\x20<value>',_0x10890d[_0xe822c8(0x226)],_0x4128a9=>{const _0x39fbdf=_0xe822c8;return _0x4128a9['positional']('profile',{'type':_0x39fbdf(0x1f3),'description':'Profile\x20name','demandOption':!![]})['positional'](_0x10890d[_0x39fbdf(0x18e)],{'type':_0x10890d['iVJIW'],'description':_0x10890d[_0x39fbdf(0x19a)],'demandOption':!![]})['positional'](_0x39fbdf(0x216),{'type':_0x10890d['iVJIW'],'description':_0x10890d[_0x39fbdf(0x215)],'demandOption':!![]});},async _0xb45ec7=>{const _0x541c91=_0xe822c8;await _0x2fb8b0['nnsep'](withTelemetry,_0x2fb8b0[_0x541c91(0x287)],()=>configSet(_0xb45ec7[_0x541c91(0x1fe)],_0xb45ec7['key'],_0xb45ec7['value']));})['command']('get\x20<profile>\x20<key>','Get\x20a\x20config\x20value',_0x6286c7=>{const _0x1ce50b=_0xe822c8;return _0x6286c7['positional'](_0x10890d['iZIax'],{'type':_0x1ce50b(0x1f3),'description':_0x1ce50b(0x238),'demandOption':!![]})['positional'](_0x1ce50b(0x27b),{'type':_0x10890d['iVJIW'],'description':_0x10890d['SqRWE'],'demandOption':!![]});},async _0x2389c5=>{await withTelemetry(_0x2fb8b0['bqyAo'],()=>configGet(_0x2389c5['profile'],_0x2389c5['key']));})[_0xe822c8(0x25f)](_0x10890d['VwTgU'],'List\x20all\x20config\x20for\x20a\x20profile',_0x12bc0c=>{const _0x16c6ff=_0xe822c8;return _0x12bc0c['positional'](_0x2fb8b0[_0x16c6ff(0x1ed)],{'type':_0x2fb8b0[_0x16c6ff(0x26f)],'description':_0x16c6ff(0x238),'demandOption':!![]});},async _0x25f67d=>{const _0x2891ea=_0xe822c8;await _0x2fb8b0['yGQcU'](withTelemetry,_0x2fb8b0[_0x2891ea(0x211)],()=>configList(_0x25f67d[_0x2891ea(0x1fe)]));})['command'](_0x10890d['TVPuN'],_0x10890d[_0xe822c8(0x13b)],_0x349f9b=>{const _0x3b1aa6=_0xe822c8;return _0x349f9b[_0x3b1aa6(0x1cf)]('profile',{'type':_0x2fb8b0[_0x3b1aa6(0x26f)],'description':_0x2fb8b0['JntLT'],'demandOption':!![]})[_0x3b1aa6(0x1cf)](_0x3b1aa6(0x27b),{'type':_0x3b1aa6(0x1f3),'description':_0x2fb8b0['BXpaS'],'demandOption':!![]});},async _0x5a4b73=>{const _0xbbb085=_0xe822c8;await _0x10890d[_0xbbb085(0x15c)](withTelemetry,_0x10890d[_0xbbb085(0x21e)],()=>configUnset(_0x5a4b73[_0xbbb085(0x1fe)],_0x5a4b73[_0xbbb085(0x27b)]));})[_0xe822c8(0x204)](0x1,_0x10890d[_0xe822c8(0x133)]);})['demandCommand'](0x1,_0x10890d['nOxZF']);})['command']('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x30c7da=_0x54b95a,_0xc2acfc={'ITejm':function(_0x35a5fd,_0x3bb0f3,_0x4b776b){return _0x35a5fd(_0x3bb0f3,_0x4b776b);},'ivxJi':'status'};await _0xc2acfc['ITejm'](withTelemetry,_0xc2acfc[_0x30c7da(0x1d0)],()=>status());})['command'](_0x54b95a(0x179),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x5525a5={'LkmaD':function(_0x596349,_0x1549a5,_0xc9ee9b){return _0x596349(_0x1549a5,_0xc9ee9b);}};await _0x5525a5['LkmaD'](withTelemetry,'update',()=>update());})['command']('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0xddcf16=>{const _0x46ee31=_0x54b95a,_0x8cd3b9={'eOkaj':_0x46ee31(0x1f3),'LAJTi':_0x46ee31(0x1fe),'dhsFF':_0x46ee31(0x27f),'uFmFz':_0x46ee31(0x185),'YPIwv':_0x46ee31(0x214),'QcJYW':_0x46ee31(0x227),'gsYkj':_0x46ee31(0x230),'iFakq':_0x46ee31(0x271),'WqODj':'verified','oFFfw':_0x46ee31(0x165),'btLFs':_0x46ee31(0x192),'CbbaR':_0x46ee31(0x28f),'UirLa':_0x46ee31(0x17c)};return _0xddcf16[_0x46ee31(0x135)]('feature',{'type':_0x8cd3b9['eOkaj'],'description':'Optional\x20feature\x20ID'})['option'](_0x8cd3b9[_0x46ee31(0x256)],{'type':_0x8cd3b9['eOkaj'],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x46ee31(0x135)](_0x8cd3b9[_0x46ee31(0x17a)],{'type':_0x46ee31(0x1f3),'description':_0x8cd3b9[_0x46ee31(0x1d2)]})[_0x46ee31(0x135)](_0x8cd3b9['YPIwv'],{'type':_0x46ee31(0x17c),'description':_0x46ee31(0x181)})[_0x46ee31(0x135)](_0x8cd3b9['QcJYW'],{'type':_0x46ee31(0x1f3),'description':_0x46ee31(0x152)})['option'](_0x8cd3b9['gsYkj'],{'type':'string','description':_0x8cd3b9[_0x46ee31(0x25d)]})['option']('headed',{'type':_0x46ee31(0x151),'description':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','default':![]})['option']('debug-outcome',{'type':_0x8cd3b9[_0x46ee31(0x140)],'hidden':!![],'choices':[_0x8cd3b9[_0x46ee31(0x1e9)],_0x46ee31(0x26d),_0x46ee31(0x1ef),_0x8cd3b9['oFFfw'],'incomplete']})['option'](_0x46ee31(0x1b8),{'type':'boolean','hidden':!![]})['option']('env',{'type':'string','hidden':!![]})['option'](_0x8cd3b9[_0x46ee31(0x1bf)],{'type':'string','hidden':!![]})[_0x46ee31(0x135)](_0x8cd3b9['CbbaR'],{'type':_0x8cd3b9[_0x46ee31(0x264)],'hidden':!![]});},async _0x411391=>{await runGoCommand(_0x411391);})['command'](_0x54b95a(0x1eb),![],_0x2fe4dc=>{const _0x45fde2=_0x54b95a,_0x11f714={'zwwYT':'profile','jdzxu':function(_0x502003,_0x3d1daa){return _0x502003(_0x3d1daa);},'IfoSB':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x2fe4dc['command'](_0x45fde2(0x144),![],_0xf2c2eb=>{const _0xd06059=_0x45fde2;return _0xf2c2eb[_0xd06059(0x1cf)](_0x11f714[_0xd06059(0x18c)],{'type':_0xd06059(0x1f3),'description':'Profile\x20name','demandOption':!![]});},async _0x1830a4=>{warnRenamed('ranger\x20auth\x20encrypt','ranger\x20profile\x20encrypt-auth'),await _0x11f714['jdzxu'](authEncrypt,_0x1830a4['profile']);})[_0x45fde2(0x204)](0x1,_0x11f714['IfoSB']);},()=>{})['command']('start\x20[token]',![],_0x8e2896=>{const _0x3cbaba=_0x54b95a,_0x46b737={'IbNlf':_0x3cbaba(0x1f3),'wNEbk':_0x3cbaba(0x1d7),'VESLb':_0x3cbaba(0x151),'Oatta':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','vHbwU':'user','GNvYr':_0x3cbaba(0x177),'necUY':_0x3cbaba(0x17f),'NETxW':_0x3cbaba(0x207)};return _0x8e2896[_0x3cbaba(0x1cf)](_0x3cbaba(0x1e0),{'type':_0x46b737[_0x3cbaba(0x221)],'description':_0x3cbaba(0x1f1)})[_0x3cbaba(0x135)](_0x46b737[_0x3cbaba(0x12c)],{'type':_0x46b737[_0x3cbaba(0x1b3)],'description':_0x46b737[_0x3cbaba(0x1aa)],'default':![]})['option']('scope',{'type':_0x46b737['IbNlf'],'choices':[_0x46b737[_0x3cbaba(0x15d)],_0x46b737['GNvYr']],'description':_0x46b737['necUY']})['option'](_0x46b737[_0x3cbaba(0x22d)],{'type':_0x46b737[_0x3cbaba(0x221)],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option']('force',{'type':_0x3cbaba(0x151),'description':_0x3cbaba(0x141),'default':![]});},async _0x415434=>{const _0x26b960=_0x54b95a,_0x57933a={'JDXdf':_0x26b960(0x23a)};warnRenamed('ranger\x20start',_0x57933a['JDXdf']),await withTelemetry('start',_0x2c46bb=>start(_0x415434[_0x26b960(0x1e0)],{'skipChromium':_0x415434['skip-chromium'],'scope':_0x415434[_0x26b960(0x262)],'url':_0x415434[_0x26b960(0x207)],'force':_0x415434['force']},_0x2c46bb));})[_0x54b95a(0x25f)](_0x54b95a(0x142),![],_0x569ab4=>{const _0x99b1f5=_0x54b95a,_0x46e6c8={'DDCNe':'env','EAYkQ':_0x99b1f5(0x1f3),'JozOd':_0x99b1f5(0x190),'UZRcx':_0x99b1f5(0x186),'KDemv':'item','KVZNs':_0x99b1f5(0x181),'aFyho':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','MCEvX':_0x99b1f5(0x230),'cltEP':'headed','IUsps':_0x99b1f5(0x24c),'VvCbc':'verified','IVILG':_0x99b1f5(0x26d),'YOGSw':_0x99b1f5(0x1ef),'VCdHj':_0x99b1f5(0x20a)};return _0x569ab4[_0x99b1f5(0x135)](_0x46e6c8['DDCNe'],{'type':_0x46e6c8['EAYkQ'],'description':_0x46e6c8['JozOd']})[_0x99b1f5(0x135)](_0x99b1f5(0x192),{'type':_0x46e6c8['EAYkQ'],'description':_0x46e6c8[_0x99b1f5(0x1c3)]})[_0x99b1f5(0x135)](_0x46e6c8[_0x99b1f5(0x13a)],{'type':_0x99b1f5(0x17c),'description':_0x46e6c8['KVZNs']})['option']('profile',{'type':_0x46e6c8['EAYkQ'],'hidden':!![]})[_0x99b1f5(0x135)](_0x99b1f5(0x27f),{'type':'string','hidden':!![]})['option']('scenario',{'type':_0x99b1f5(0x17c),'hidden':!![]})[_0x99b1f5(0x135)](_0x99b1f5(0x227),{'type':_0x46e6c8[_0x99b1f5(0x14a)],'description':_0x46e6c8[_0x99b1f5(0x1a9)]})['option'](_0x46e6c8['MCEvX'],{'type':'string','hidden':!![]})['option'](_0x46e6c8['cltEP'],{'type':'boolean','hidden':!![],'default':![]})['option'](_0x46e6c8['IUsps'],{'type':_0x46e6c8[_0x99b1f5(0x14a)],'hidden':!![],'choices':[_0x46e6c8['VvCbc'],_0x46e6c8['IVILG'],_0x46e6c8[_0x99b1f5(0x1a1)],_0x99b1f5(0x165),_0x46e6c8['VCdHj']]});},async _0x2aa5fb=>{const _0x22af92={'FMCRX':function(_0x5bb81e,_0x12177b,_0x4e50c9){return _0x5bb81e(_0x12177b,_0x4e50c9);}};await _0x22af92['FMCRX'](runGoCommand,_0x2aa5fb,!![]);})[_0x54b95a(0x25f)](_0x54b95a(0x1de),![],_0xe90020=>{const _0x38dc37=_0x54b95a,_0x1f4891={'zTUsL':'env-name','AnGCn':_0x38dc37(0x151),'eLAKg':_0x38dc37(0x18a),'CBTbW':_0x38dc37(0x244),'uSczN':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0xe90020['positional'](_0x1f4891[_0x38dc37(0x1e3)],{'type':_0x38dc37(0x1f3),'description':_0x38dc37(0x288),'demandOption':!![]})['option']('ci',{'type':_0x1f4891[_0x38dc37(0x247)],'description':_0x1f4891['eLAKg'],'default':![]})[_0x38dc37(0x135)](_0x1f4891['CBTbW'],{'type':'boolean','description':_0x1f4891[_0x38dc37(0x1d8)],'default':![]});},async _0x26189e=>{const _0x2dcf5e=_0x54b95a,_0x5cb7ab={'ewKKD':_0x2dcf5e(0x1c7)};warnRenamed(_0x5cb7ab[_0x2dcf5e(0x1db)],'ranger\x20profile\x20add'),await withTelemetry(_0x2dcf5e(0x245),_0x52c97b=>addEnv(_0x26189e['env-name'],{'ci':_0x26189e['ci'],'skipAuth':_0x26189e[_0x2dcf5e(0x244)]},_0x52c97b));})[_0x54b95a(0x25f)]('use\x20<env-name>',![],_0x29ee37=>{const _0x29425a=_0x54b95a,_0x238647={'zVuHX':_0x29425a(0x1f3)};return _0x29ee37[_0x29425a(0x1cf)](_0x29425a(0x24e),{'type':_0x238647[_0x29425a(0x24d)],'description':'Name\x20of\x20the\x20environment','demandOption':!![]});},async _0xa5d3d5=>{const _0x1a6d7b=_0x54b95a,_0x15a240={'LmHlu':function(_0xb629d3,_0x29c704,_0x1260fa){return _0xb629d3(_0x29c704,_0x1260fa);},'uUTrA':function(_0x108f3b,_0x4af05d,_0x28f194){return _0x108f3b(_0x4af05d,_0x28f194);}};_0x15a240['LmHlu'](warnRenamed,'ranger\x20use',_0x1a6d7b(0x1ca)),await _0x15a240['uUTrA'](withTelemetry,'use',()=>useEnv(_0xa5d3d5['env-name']));})['command'](_0x54b95a(0x16f),![],_0x1fe084=>{const _0x75c08d=_0x54b95a,_0x181c0b={'qGhyA':'key','AUMHg':'string','CEYXR':_0x75c08d(0x193),'dCAhL':_0x75c08d(0x216),'NBdOL':_0x75c08d(0x17b),'FHHMo':function(_0x42e45c,_0x560d02,_0x1cf124){return _0x42e45c(_0x560d02,_0x1cf124);},'dMPvi':'ranger\x20config\x20set','AruEN':_0x75c08d(0x12b),'adcWQ':'config\x20set','nmaSd':'ranger\x20config\x20get','rRBmn':'ranger\x20profile\x20config\x20get','UVVtm':_0x75c08d(0x252),'dlgcE':'ranger\x20profile\x20config\x20list','FjGuP':function(_0x5189d5,_0x5ab652,_0x5a968e){return _0x5189d5(_0x5ab652,_0x5a968e);},'svPSV':'env','heKoy':_0x75c08d(0x169),'AjABP':'Config\x20key\x20to\x20remove','onLrk':_0x75c08d(0x1f9),'bYnIn':'ranger\x20profile\x20config\x20unset','YRMtN':function(_0x1fb74a,_0x4d2f44,_0x18fcc0){return _0x1fb74a(_0x4d2f44,_0x18fcc0);},'PbiZe':_0x75c08d(0x253),'otkyM':_0x75c08d(0x1e2),'olmTO':'get\x20<env>\x20<key>','xUJnH':'list\x20<env>','XdXSL':_0x75c08d(0x289),'hDdWr':_0x75c08d(0x196)};return _0x1fe084['command'](_0x181c0b['otkyM'],![],_0x33e9a4=>{const _0x35f2da=_0x75c08d;return _0x33e9a4[_0x35f2da(0x1cf)](_0x35f2da(0x14d),{'type':'string','description':_0x35f2da(0x169),'demandOption':!![]})['positional'](_0x181c0b['qGhyA'],{'type':_0x181c0b['AUMHg'],'description':_0x181c0b[_0x35f2da(0x1be)],'demandOption':!![]})['positional'](_0x181c0b['dCAhL'],{'type':_0x181c0b['AUMHg'],'description':_0x181c0b[_0x35f2da(0x1b5)],'demandOption':!![]});},async _0x1bf605=>{const _0x39e8c6=_0x75c08d;_0x181c0b['FHHMo'](warnRenamed,_0x181c0b['dMPvi'],_0x181c0b[_0x39e8c6(0x145)]),await withTelemetry(_0x181c0b[_0x39e8c6(0x21f)],()=>configSet(_0x1bf605['env'],_0x1bf605['key'],_0x1bf605[_0x39e8c6(0x216)]));})['command'](_0x181c0b['olmTO'],![],_0x2aed7f=>{const _0x269978=_0x75c08d;return _0x2aed7f['positional'](_0x269978(0x14d),{'type':_0x181c0b['AUMHg'],'description':_0x269978(0x169),'demandOption':!![]})['positional'](_0x181c0b[_0x269978(0x22a)],{'type':'string','description':_0x269978(0x263),'demandOption':!![]});},async _0x46a1b1=>{const _0x27bde8=_0x75c08d;_0x181c0b[_0x27bde8(0x233)](warnRenamed,_0x181c0b['nmaSd'],_0x181c0b['rRBmn']),await withTelemetry(_0x181c0b['UVVtm'],()=>configGet(_0x46a1b1[_0x27bde8(0x14d)],_0x46a1b1['key']));})[_0x75c08d(0x25f)](_0x181c0b['xUJnH'],![],_0x3c945e=>{const _0x1dcf89=_0x75c08d;return _0x3c945e[_0x1dcf89(0x1cf)](_0x1dcf89(0x14d),{'type':_0x181c0b[_0x1dcf89(0x27c)],'description':'Environment\x20name','demandOption':!![]});},async _0x28ea1e=>{const _0x58efd2=_0x75c08d;warnRenamed(_0x58efd2(0x1ae),_0x181c0b[_0x58efd2(0x171)]),await _0x181c0b['FjGuP'](withTelemetry,'config\x20list',()=>configList(_0x28ea1e['env']));})[_0x75c08d(0x25f)](_0x181c0b[_0x75c08d(0x20d)],![],_0xccb1ef=>{const _0x200942=_0x75c08d;return _0xccb1ef[_0x200942(0x1cf)](_0x181c0b[_0x200942(0x1f4)],{'type':_0x181c0b['AUMHg'],'description':_0x181c0b[_0x200942(0x19e)],'demandOption':!![]})['positional'](_0x200942(0x27b),{'type':_0x200942(0x1f3),'description':_0x181c0b['AjABP'],'demandOption':!![]});},async _0x1699de=>{warnRenamed(_0x181c0b['onLrk'],_0x181c0b['bYnIn']),await _0x181c0b['YRMtN'](withTelemetry,_0x181c0b['PbiZe'],()=>configUnset(_0x1699de['env'],_0x1699de['key']));})[_0x75c08d(0x204)](0x1,_0x181c0b['hDdWr']);})['command']('env',![],_0x4686b0=>{const _0x6946fd=_0x54b95a,_0x29e18f={'XjAnV':function(_0x3b54b9,_0x849e09,_0x4539cd){return _0x3b54b9(_0x849e09,_0x4539cd);},'ujeWd':function(_0x56fbe1,_0x3cf4ce,_0x506cb9){return _0x56fbe1(_0x3cf4ce,_0x506cb9);},'ledTc':_0x6946fd(0x1a4),'aMaLV':function(_0x1b4c67,_0x1db0fa,_0x53b008){return _0x1b4c67(_0x1db0fa,_0x53b008);},'daZHV':'ranger\x20env\x20update','iodDU':_0x6946fd(0x282),'mGlAa':function(_0x413a5f,_0x1c6f00,_0x11a68e){return _0x413a5f(_0x1c6f00,_0x11a68e);},'yzLmo':_0x6946fd(0x269),'QUHpw':_0x6946fd(0x136),'pmVLs':_0x6946fd(0x265)};return _0x4686b0[_0x6946fd(0x25f)]('ls',![],()=>{},async()=>{const _0x45e70d=_0x6946fd;_0x29e18f['XjAnV'](warnRenamed,'ranger\x20env\x20ls','ranger\x20profile\x20ls'),await _0x29e18f[_0x45e70d(0x16c)](withTelemetry,_0x29e18f[_0x45e70d(0x28e)],()=>envList());})[_0x6946fd(0x25f)](_0x29e18f['QUHpw'],![],_0x376624=>{const _0x5c76ec=_0x6946fd;return _0x376624[_0x5c76ec(0x1cf)]('env-name',{'type':_0x5c76ec(0x1f3),'description':_0x5c76ec(0x202),'demandOption':!![]});},async _0x40001e=>{const _0x434d48=_0x6946fd;_0x29e18f['aMaLV'](warnRenamed,_0x29e18f[_0x434d48(0x13d)],_0x29e18f[_0x434d48(0x1da)]),await _0x29e18f['mGlAa'](withTelemetry,_0x29e18f[_0x434d48(0x1ac)],_0xfe4b2e=>updateEnv(_0x40001e[_0x434d48(0x24e)],_0xfe4b2e));})['demandCommand'](0x1,_0x29e18f[_0x6946fd(0x22e)]);})[_0x54b95a(0x25f)](_0x54b95a(0x16a),![],_0x3901a4=>{const _0x2c7171=_0x54b95a,_0x543e26={'WWwpn':_0x2c7171(0x251),'ZYrgA':'description','dQcqJ':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','LQtIC':_0x2c7171(0x21a),'LRzWJ':function(_0x3b437b,_0x1b7fb1,_0x35feaa){return _0x3b437b(_0x1b7fb1,_0x35feaa);},'tUdQl':function(_0x5a8545,_0x7441c2,_0x389a04,_0x1ead5f){return _0x5a8545(_0x7441c2,_0x389a04,_0x1ead5f);},'XOTTH':_0x2c7171(0x23f),'LQPcj':_0x2c7171(0x1bd),'kUdIj':'feature\x20create','bjwxc':'current-branch','ZgsOz':'boolean','CVKNW':_0x2c7171(0x155),'eUrDe':'number','zYApd':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','mwKEd':'offset','lNlMs':_0x2c7171(0x137),'fRJgL':function(_0x364b29,_0x286027,_0x51aaa9){return _0x364b29(_0x286027,_0x51aaa9);},'KtWEh':'ranger\x20feature\x20list','SvsRw':'ranger\x20list','zdVfQ':function(_0x464a8a,_0x2d0b95,_0x4d6aae){return _0x464a8a(_0x2d0b95,_0x4d6aae);},'oAgjE':'Feature\x20review\x20ID','vbzJi':_0x2c7171(0x1e7),'gWWaX':'feature\x20show','joxjZ':function(_0x1e8887,_0x2303c7,_0x29510a){return _0x1e8887(_0x2303c7,_0x29510a);},'MYnRB':function(_0x286d59,_0x3f604f,_0x1c5534){return _0x286d59(_0x3f604f,_0x1c5534);},'DnTnb':'string','aGCBl':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','vCPsY':_0x2c7171(0x205),'jpmYE':'ranger\x20feature\x20get-feedback','diwdX':_0x2c7171(0x219),'qGvCj':'feature\x20get-feedback','lVLtI':function(_0x555cfb,_0x2c4d19,_0x1fb0df){return _0x555cfb(_0x2c4d19,_0x1fb0df);},'TnrBr':_0x2c7171(0x143),'nCRIE':'ranger\x20delete','AhlXV':function(_0x50cd83,_0x3e5bf0,_0x3aa1ab){return _0x50cd83(_0x3e5bf0,_0x3aa1ab);},'TTWZE':_0x2c7171(0x206),'uVfJO':function(_0x2e2502,_0xd695ec,_0x3f2b44){return _0x2e2502(_0xd695ec,_0x3f2b44);},'gmtcG':_0x2c7171(0x132),'ykZVn':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x3901a4['command']('create\x20<name>',![],_0x1a86b6=>{const _0x21f748=_0x2c7171;return _0x1a86b6[_0x21f748(0x1cf)](_0x543e26['WWwpn'],{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x543e26['ZYrgA'],{'type':'string','alias':'d','description':_0x21f748(0x14e)})['option'](_0x21f748(0x172),{'type':'array','alias':'c','description':_0x543e26['dQcqJ']})['option'](_0x21f748(0x214),{'type':_0x543e26[_0x21f748(0x259)],'hidden':!![]});},async _0x231e55=>{const _0x56ffb4=_0x2c7171;_0x543e26[_0x56ffb4(0x22b)](warnRenamed,_0x56ffb4(0x28b),_0x56ffb4(0x23f)),_0x543e26['tUdQl'](warnFlagRenamed,_0x543e26['XOTTH'],_0x56ffb4(0x26c),_0x543e26['LQPcj']);const _0x1069df=_0x231e55['scenario']||_0x231e55['checklist'];await withTelemetry(_0x543e26['kUdIj'],()=>featureCreate(_0x231e55[_0x56ffb4(0x251)],{'description':_0x231e55['description'],'scenarios':_0x1069df}));})[_0x2c7171(0x25f)]('list',![],_0x5cfa56=>{const _0x2d4ea3=_0x2c7171;return _0x5cfa56[_0x2d4ea3(0x135)](_0x543e26[_0x2d4ea3(0x24f)],{'type':_0x543e26[_0x2d4ea3(0x1fb)],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option'](_0x543e26[_0x2d4ea3(0x1c1)],{'type':_0x543e26['eUrDe'],'alias':'l','description':_0x543e26['zYApd'],'default':0xa})['option'](_0x543e26[_0x2d4ea3(0x15a)],{'type':_0x543e26['eUrDe'],'alias':'o','description':_0x543e26[_0x2d4ea3(0x270)],'default':0x0})['option'](_0x2d4ea3(0x1b2),{'type':_0x543e26['ZgsOz'],'alias':'d','description':_0x2d4ea3(0x175),'default':![]});},async _0x3cbb7d=>{const _0x38323d=_0x2c7171;_0x543e26['fRJgL'](warnRenamed,_0x543e26['KtWEh'],_0x543e26['SvsRw']),await _0x543e26[_0x38323d(0x1dc)](withTelemetry,_0x38323d(0x281),()=>featureList({'currentBranch':_0x3cbb7d[_0x38323d(0x249)],'limit':_0x3cbb7d[_0x38323d(0x155)],'offset':_0x3cbb7d[_0x38323d(0x1e4)],'includeDeleted':_0x3cbb7d[_0x38323d(0x1b2)]}));})[_0x2c7171(0x25f)]('show\x20[id]',![],_0x210d80=>{const _0x253499=_0x2c7171;return _0x210d80[_0x253499(0x1cf)]('id',{'type':'string','description':_0x543e26[_0x253499(0x26a)]});},async _0x4c0456=>{const _0x1c53a6=_0x2c7171;_0x543e26[_0x1c53a6(0x189)](warnRenamed,_0x543e26[_0x1c53a6(0x222)],'ranger\x20show'),await withTelemetry(_0x543e26['gWWaX'],()=>featureShow(_0x4c0456['id']));})[_0x2c7171(0x25f)]('resume\x20[id]',![],_0x417b67=>{const _0x403fb2=_0x2c7171;return _0x417b67['positional']('id',{'type':_0x403fb2(0x1f3),'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x201240=>{const _0x50a133=_0x2c7171;_0x543e26['joxjZ'](warnRenamed,'ranger\x20feature\x20resume',_0x50a133(0x149)),await _0x543e26['MYnRB'](withTelemetry,'feature\x20resume',()=>featureResume(_0x201240['id']));})[_0x2c7171(0x25f)](_0x543e26[_0x2c7171(0x278)],![],_0x2096bf=>{const _0x3a712=_0x2c7171;return _0x2096bf[_0x3a712(0x1cf)](_0x543e26['ZYrgA'],{'type':_0x543e26[_0x3a712(0x1e8)],'description':'Scenario\x20description','demandOption':!![]})[_0x3a712(0x135)]('id',{'type':_0x543e26['DnTnb'],'description':_0x543e26[_0x3a712(0x208)]});},async _0x355cd3=>{const _0x279ca4=_0x2c7171;warnRenamed(_0x279ca4(0x283),_0x543e26['vCPsY']),await _0x543e26['MYnRB'](withTelemetry,'feature\x20add-checklist-item',()=>featureAddScenario(_0x355cd3['description'],_0x355cd3['id']));})[_0x2c7171(0x25f)]('get-feedback\x20[id]',![],_0x1358d2=>{const _0x4bc747=_0x2c7171;return _0x1358d2[_0x4bc747(0x1cf)]('id',{'type':_0x543e26['DnTnb'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x48ca40=>{const _0x4978c6=_0x2c7171;_0x543e26['LRzWJ'](warnRenamed,_0x543e26[_0x4978c6(0x1d4)],_0x543e26[_0x4978c6(0x23c)]),await withTelemetry(_0x543e26['qGvCj'],()=>featureGetReview(_0x48ca40['id']));})[_0x2c7171(0x25f)]('delete\x20[id]',![],_0x32bd47=>{const _0x57f880=_0x2c7171;return _0x32bd47['positional']('id',{'type':_0x543e26[_0x57f880(0x1e8)],'description':_0x57f880(0x14c)});},async _0x29bc30=>{const _0x3b44a8=_0x2c7171;_0x543e26[_0x3b44a8(0x12e)](warnRenamed,_0x543e26[_0x3b44a8(0x1a0)],_0x543e26['nCRIE']),await _0x543e26['AhlXV'](withTelemetry,'feature\x20delete',()=>featureDelete(_0x29bc30['id']));})[_0x2c7171(0x25f)]('restore\x20<id>',![],_0x59efd6=>{return _0x59efd6['positional']('id',{'type':_0x543e26['DnTnb'],'description':_0x543e26['TTWZE'],'demandOption':!![]});},async _0x4841dd=>{const _0x33ae7d=_0x2c7171;warnRenamed('ranger\x20feature\x20restore','ranger\x20restore'),await _0x543e26[_0x33ae7d(0x157)](withTelemetry,_0x33ae7d(0x284),()=>featureRestore(_0x4841dd['id']));})['demandCommand'](0x1,_0x543e26[_0x2c7171(0x1af)]);})['command'](_0x54b95a(0x188),![],_0x530b53=>{const _0x285e10=_0x54b95a,_0x1a6fc2={'YEsEc':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','FAHuV':function(_0xf9e558,_0x5619ad,_0xcd14d6){return _0xf9e558(_0x5619ad,_0xcd14d6);},'uaVjc':'hook:enable','zKtCd':'hook:disable','QoIEi':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','rEoCw':_0x285e10(0x251),'ClYVP':_0x285e10(0x1f3),'IEHlW':_0x285e10(0x1c9)};return _0x530b53['command'](_0x285e10(0x1ea),_0x285e10(0x27e),_0x261df7=>{return _0x261df7['option']('session-id',{'type':'string','description':_0x1a6fc2['YEsEc']});},async _0x41483e=>{const _0x3b86db=_0x285e10;await _0x1a6fc2[_0x3b86db(0x239)](withTelemetry,_0x1a6fc2['uaVjc'],()=>hook('enable',_0x41483e[_0x3b86db(0x27d)]));})[_0x285e10(0x25f)](_0x285e10(0x266),_0x1a6fc2[_0x285e10(0x273)],_0x35fdd3=>{const _0x42aae9=_0x285e10;return _0x35fdd3['option'](_0x42aae9(0x27d),{'type':'string','description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x57aae2=>{const _0x578e85=_0x285e10;await _0x1a6fc2[_0x578e85(0x239)](withTelemetry,_0x1a6fc2[_0x578e85(0x1df)],()=>hook(_0x578e85(0x266),_0x57aae2[_0x578e85(0x27d)]));})['option'](_0x1a6fc2[_0x285e10(0x22f)],{'type':_0x1a6fc2[_0x285e10(0x13f)],'description':_0x1a6fc2['IEHlW']})['option'](_0x285e10(0x27d),{'type':_0x1a6fc2['ClYVP'],'description':_0x1a6fc2[_0x285e10(0x20e)]});},async _0x46afbe=>{const _0x433d64=_0x54b95a,_0x3a4b7e={'dYxvI':'session-id'};_0x46afbe[_0x433d64(0x251)]&&await hook(_0x46afbe[_0x433d64(0x251)],_0x46afbe[_0x3a4b7e[_0x433d64(0x261)]]);})[_0x54b95a(0x204)](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()['fail'](async(_0x57f85a,_0xb94dc9,_0x3c7c5e)=>{const _0x3a9d82=_0x54b95a,_0x431d92={'tAcaH':function(_0x37b868,_0x224909,_0x2a9291){return _0x37b868(_0x224909,_0x2a9291);},'iJByH':'Unknown\x20command','VWNcT':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','qjKEF':function(_0x1a79de,_0x53fb93){return _0x1a79de(_0x53fb93);}},_0x19b114=sanitizeArgs(process['argv'][_0x3a9d82(0x1c5)](0x2)),_0x530750=_0x431d92[_0x3a9d82(0x18d)](getErrorType,_0x57f85a,_0xb94dc9);if(_0x57f85a&&_0x57f85a['includes'](_0x431d92['iJByH'])){const _0x5642d2=process['argv'][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x5642d2),console[_0x3a9d82(0x228)](_0x431d92[_0x3a9d82(0x232)]);}else{if(_0x57f85a)console[_0x3a9d82(0x228)]('\x0a'+_0x57f85a+'\x0a');else _0xb94dc9&&console[_0x3a9d82(0x228)](_0x3a9d82(0x1e1)+_0xb94dc9['message']+'\x0a');}await _0x431d92['qjKEF'](logDesirePath,{'rawCommand':_0x19b114,'errorMessage':_0x57f85a||_0xb94dc9?.['message'],'errorType':_0x530750});const _0x4cee68=getCurrentCollector();_0x4cee68&&await _0x4cee68['trackCommandError'](_0xb94dc9||new Error(_0x57f85a||_0x3a9d82(0x13e))),process[_0x3a9d82(0x1c0)](0x1);})[_0x54b95a(0x15e)]('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+_0x54b95a(0x248))['help']()[_0x54b95a(0x12d)]('help','h')[_0x54b95a(0x160)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x48c670,_0x541041){const _0x21a40f=_0xa158,_0x6bd74b=_0x48c670();while(!![]){try{const _0x1b24a6=parseInt(_0x21a40f(0x175))/0x1*(-parseInt(_0x21a40f(0x152))/0x2)+parseInt(_0x21a40f(0x136))/0x3+-parseInt(_0x21a40f(0x18d))/0x4+-parseInt(_0x21a40f(0x168))/0x5*(-parseInt(_0x21a40f(0x17f))/0x6)+-parseInt(_0x21a40f(0x177))/0x7*(parseInt(_0x21a40f(0x160))/0x8)+-parseInt(_0x21a40f(0x137))/0x9*(parseInt(_0x21a40f(0x1a3))/0xa)+-parseInt(_0x21a40f(0x13b))/0xb*(-parseInt(_0x21a40f(0x185))/0xc);if(_0x1b24a6===_0x541041)break;else _0x6bd74b['push'](_0x6bd74b['shift']());}catch(_0xefd991){_0x6bd74b['push'](_0x6bd74b['shift']());}}}(_0x486c,0x47215));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x15cd0b from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';function _0xa158(_0x5c97d9,_0x55f7ac){_0x5c97d9=_0x5c97d9-0x131;const _0x486c2c=_0x486c();let _0xa158a5=_0x486c2c[_0x5c97d9];return _0xa158a5;}import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';function _0x486c(){const _0x5e445b=['Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','browser_auth','uqrTO','NcnoD','length','QxkKw','use_suggestion','Use\x20','180LQgGAN','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','xstTw','.backup-','message','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','โ\x20Encrypted\x20auth\x20saved\x20to:\x20','trim','TPEjH','YOdxz','root\x20(.ranger/)','\x0aโ ๏ธ\x20\x20Profile\x20\x22','922191PLKejO','189090PcUeeX','force','Delete\x20existing\x20and\x20create\x20new\x20in\x20','gTdmO','5330985XuUuSo','eCPIY','--disable-features=WebBluetooth','EvYAr','isElectron','โ \x20Could\x20not\x20reach\x20','What\x20would\x20you\x20like\x20to\x20do?','tpYbh','Aborted.','yNepY','\x20\x20Did\x20you\x20mean\x20','log','close','allowInsecureLocalhost','cisgj','\x20(continuing\x20with\x20--force)','location','gIjUL','\x20\x20Set\x20active\x20profile:\x20','hFIOW','jrKvq','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','zYbzE','20GQivEX','trackPhaseStart','config_write','cdpEndpoint','.enc','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','http://','dppqp','overwrite','Could\x20not\x20reach\x20','hmQxI','name','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','test','8useiOI','retry','baseUrl','settings.json','prompt','QRqtg','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','.tmp-','356045LoMxvG','\x0a๐\x20Authentication\x20Setup','http://localhost:3000','\x0a\x20\x20\x20โ \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','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','url','tczkT','iKRIS','signal','Bhszm','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','error','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','12563VnnrVG','TypeError','1820189iVrkwU','Invalid\x20URL','fcBzl','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','MdgJh','list','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','newContext','24chDEOk','DHPBJ','catch','isTTY','\x20\x20ranger\x20profile\x20add\x20','stdout','24BWrrMk','\x20\x20\x20Creating\x20it\x20in\x20','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','azzTA','OgUiF','FwArw','storageState','โ\x20Auth\x20state\x20saved\x20to:\x20','2025268ROhUDf','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','xIoup','stringify','trackPhaseEnd','FHNLI','includes','dWynW','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','Profile\x20\x22','safeMode','Saving\x20authentication\x20state...','path'];_0x486c=function(){return _0x5e445b;};return _0x486c();}import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0xba525a){const _0x4902f4=_0xa158,_0x1c6002={'jIlIE':function(_0x56ffca,_0x63a34d,_0x264629){return _0x56ffca(_0x63a34d,_0x264629);},'fcBzl':function(_0x67d57,_0x24c1f2,_0x23f37a){return _0x67d57(_0x24c1f2,_0x23f37a);},'NcnoD':function(_0x300f9a,_0x253469){return _0x300f9a(_0x253469);},'YOdxz':function(_0x271fa4,_0x314241){return _0x271fa4===_0x314241;}};try{const _0x4f861a=new AbortController(),_0x418ef9=_0x1c6002['jIlIE'](setTimeout,()=>_0x4f861a['abort'](),0x1388),_0x1f0161=await _0x1c6002[_0x4902f4(0x179)](fetch,_0xba525a,{'method':'HEAD','signal':_0x4f861a[_0x4902f4(0x170)],'redirect':'manual'});_0x1c6002[_0x4902f4(0x19e)](clearTimeout,_0x418ef9);if(_0x1f0161['status']<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x1f0161['status']};}catch(_0x409485){const _0x297081=_0x409485,_0x4128c5=_0x297081[_0x4902f4(0x1a7)]||String(_0x409485),_0x16f935=_0x4128c5['includes'](_0x4902f4(0x178))||_0x1c6002[_0x4902f4(0x133)](_0x297081[_0x4902f4(0x15d)],_0x4902f4(0x176))||_0x4128c5[_0x4902f4(0x194)]('fetch\x20failed');return{'ok':![],'error':_0x4128c5,'isProtocolError':_0x16f935};}}export async function addEnv(_0x3aaf56,_0x3c8ff2={},_0x43cbe6){const _0x3765d5=_0xa158,_0x3f7775={'OlShj':_0x3765d5(0x199),'eCPIY':_0x3765d5(0x147),'azzTA':'local','BueNw':function(_0x5f54bb,_0x51ce1e,_0x26f776,_0x8c4f31){return _0x5f54bb(_0x51ce1e,_0x26f776,_0x8c4f31);},'QzwFm':function(_0x22ca51,_0x58f4c0){return _0x22ca51!==_0x58f4c0;},'bqruC':_0x3765d5(0x1a8),'qzLCm':_0x3765d5(0x18f),'EvYAr':function(_0x3e3a31,_0x230216){return _0x3e3a31(_0x230216);},'zYbzE':_0x3765d5(0x16c),'Bhszm':function(_0x554d7d,_0x545573){return _0x554d7d(_0x545573);},'OgUiF':function(_0x367a7c,_0x1fdcef){return _0x367a7c===_0x1fdcef;},'dppqp':function(_0x2fab78,_0x16b2b1){return _0x2fab78===_0x16b2b1;},'tbpVT':'shouldReplace','cisgj':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','VRLZr':function(_0x10d3ea,_0x8df44a){return _0x10d3ea(_0x8df44a);},'gIjUL':'\x0a๐\x20Profile\x20Setup\x0a','DHPBJ':_0x3765d5(0x17d),'FMAST':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','uqrTO':'input','xIoup':function(_0x1ac202,_0x229eca){return _0x1ac202||_0x229eca;},'jNVhn':_0x3765d5(0x16a),'gTdmO':_0x3765d5(0x1a1),'hmQxI':'Enter\x20a\x20different\x20URL','dWynW':'Continue\x20anyway','UDLIn':'continue','FHNLI':function(_0x4f105a,_0xd294f9,_0x2e33c9){return _0x4f105a(_0xd294f9,_0x2e33c9);},'iKRIS':'auth.json','QRqtg':_0x3765d5(0x19c),'dgaPZ':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','btTmm':_0x3765d5(0x196),'dVsqM':_0x3765d5(0x13d),'tpYbh':function(_0x532ccc,_0x162575){return _0x532ccc>_0x162575;},'jrKvq':'about:blank','tczkT':'\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','FwArw':'You\x20can\x20try\x20again\x20with\x20one\x20of:','MdgJh':'utf-8','gBifg':function(_0x55b701){return _0x55b701();},'NwuVT':'Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','lcXty':function(_0x62144a,_0x4c6d9c,_0x11eca5){return _0x62144a(_0x4c6d9c,_0x11eca5);},'nWUAJ':_0x3765d5(0x15e),'JvSpp':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','FxKOq':_0x3765d5(0x154),'hFIOW':_0x3765d5(0x163),'xstTw':function(_0x199a3f,_0x1735bd,_0x2163ce){return _0x199a3f(_0x1735bd,_0x2163ce);},'TPEjH':function(_0x5d95a7,_0x3751d1,_0x2a6d87){return _0x5d95a7(_0x3751d1,_0x2a6d87);},'yNepY':function(_0x4c1f0e,_0x3ed021,_0x5f5278){return _0x4c1f0e(_0x3ed021,_0x5f5278);},'MmJGM':function(_0x15fb01,_0x4c7437,_0x2b630e){return _0x15fb01(_0x4c7437,_0x2b630e);},'QxkKw':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'},_0x2f7502=_0x3c8ff2['ci']??![],_0x5e50f6=_0x2f7502?'ci':_0x3f7775[_0x3765d5(0x188)],_0x39c2d1=_0x3f7775['BueNw'](join,getRangerDir(),_0x5e50f6,_0x3aaf56),_0x435a25=join(getRangerDir(),_0x5e50f6);if(_0x3f7775['QzwFm'](_0x3c8ff2['cdpEndpoint'],undefined)&&_0x3c8ff2['cdpEndpoint'][_0x3765d5(0x131)]()==='')throw new Error(_0x3f7775['bqruC']);if(_0x3c8ff2[_0x3765d5(0x155)]&&_0x3c8ff2['url'])throw new Error(_0x3f7775['qzLCm']);if(_0x3c8ff2[_0x3765d5(0x155)]&&_0x3c8ff2['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 _0x14313a=_0x3f7775['EvYAr'](Boolean,_0x3c8ff2[_0x3765d5(0x155)]),_0x4bbbd6=!_0x3c8ff2['skipAuth']&&!_0x14313a,_0x27ca11=process['stdin'][_0x3765d5(0x182)]&&process[_0x3765d5(0x184)]['isTTY'];if(!_0x27ca11&&!_0x3c8ff2['url']&&!_0x14313a)throw new Error(_0x3f7775[_0x3765d5(0x151)]);const _0x34733f=_0x3f7775['Bhszm'](findExistingEnv,_0x3aaf56);let _0x2fe6e3=null;if(_0x34733f){if(!_0x27ca11)_0x2fe6e3=_0x34733f;else{if(_0x3f7775['OgUiF'](_0x34733f[_0x3765d5(0x14b)],_0x5e50f6)){const {overwrite:_0x3e88c8}=await _0x15cd0b['prompt']([{'type':'confirm','name':_0x3765d5(0x15a),'message':_0x3765d5(0x197)+_0x3aaf56+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x3e88c8){console[_0x3765d5(0x146)](_0x3765d5(0x143));return;}_0x2fe6e3=_0x34733f;}else{const _0x35aace=_0x3f7775[_0x3765d5(0x159)](_0x34733f['location'],'legacy')?_0x3765d5(0x134):_0x34733f['location'];console['error'](_0x3765d5(0x135)+_0x3aaf56+'\x22\x20already\x20exists\x20in\x20'+_0x35aace+':\x20'+_0x34733f[_0x3765d5(0x19a)]),console['error'](_0x3765d5(0x186)+_0x5e50f6+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x16164b}=await _0x15cd0b['prompt']([{'type':'confirm','name':_0x3f7775['tbpVT'],'message':_0x3765d5(0x139)+_0x5e50f6+'?','default':![]}]);if(!_0x16164b){console[_0x3765d5(0x146)](_0x3765d5(0x143));return;}_0x2fe6e3=_0x34733f;}}}_0x43cbe6?.['trackPhaseStart']('url_setup');let _0x454f3a='';if(_0x14313a)console[_0x3765d5(0x146)]('\x0a๐\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0x3765d5(0x187)+_0x3c8ff2['cdpEndpoint']),console[_0x3765d5(0x146)](_0x3f7775[_0x3765d5(0x149)]);else{if(_0x3c8ff2[_0x3765d5(0x16d)]){_0x454f3a=_0x3c8ff2[_0x3765d5(0x16d)];const _0x3b135f=await _0x3f7775['VRLZr'](checkUrlReachability,_0x454f3a);if(!_0x3b135f['ok']&&!_0x3c8ff2[_0x3765d5(0x138)])throw new Error(_0x3765d5(0x15b)+_0x454f3a+':\x20'+_0x3b135f['error']+_0x3765d5(0x18e));!_0x3b135f['ok']&&_0x3c8ff2[_0x3765d5(0x138)]&&console['log'](_0x3765d5(0x140)+_0x454f3a+':\x20'+_0x3b135f[_0x3765d5(0x173)]+_0x3765d5(0x14a));}else{console[_0x3765d5(0x146)](_0x3f7775[_0x3765d5(0x14c)]),console['log'](_0x3f7775[_0x3765d5(0x180)]),console['log'](_0x3f7775['FMAST']);let _0x17b9c2=![];while(!![]){const _0x9487e1=await _0x15cd0b['prompt']([{'type':_0x3f7775[_0x3765d5(0x19d)],'name':'baseUrl','message':_0x17b9c2?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x3765d5(0x172),'default':_0x3f7775[_0x3765d5(0x190)](_0x454f3a,_0x3f7775['jNVhn'])}]);_0x454f3a=_0x9487e1[_0x3765d5(0x162)];const _0x4d291f=await checkUrlReachability(_0x454f3a);if(_0x4d291f['ok'])break;const _0x1fd5f0=/^[a-zA-Z][\w+.-]*:\/\//[_0x3765d5(0x15f)](_0x454f3a),_0x3564de=_0x4d291f['isProtocolError']&&!_0x1fd5f0,_0x518757=_0x3564de?_0x3765d5(0x158)+_0x454f3a:null;_0x17b9c2=!![],console[_0x3765d5(0x146)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x454f3a+':\x20'+_0x4d291f['error']);_0x518757&&console[_0x3765d5(0x146)](_0x3765d5(0x145)+_0x518757+'?');const {action:_0x4257c6}=await _0x15cd0b[_0x3765d5(0x164)]([{'type':_0x3765d5(0x17c),'name':'action','message':_0x3765d5(0x141),'choices':[..._0x518757?[{'name':_0x3765d5(0x1a2)+_0x518757,'value':_0x3f7775['gTdmO']}]:[],{'name':_0x3f7775[_0x3765d5(0x15c)],'value':_0x3765d5(0x161)},{'name':_0x3f7775[_0x3765d5(0x195)],'value':_0x3f7775['UDLIn']}]}]);if(_0x3f7775[_0x3765d5(0x189)](_0x4257c6,_0x3f7775[_0x3765d5(0x13a)])&&_0x518757){_0x454f3a=_0x518757;const _0x1907a2=await checkUrlReachability(_0x454f3a);if(_0x1907a2['ok'])break;console[_0x3765d5(0x146)](_0x3765d5(0x1a4)+_0x454f3a+':\x20'+_0x1907a2[_0x3765d5(0x173)]);}else{if(_0x4257c6===_0x3f7775['UDLIn'])break;}}}}_0x43cbe6?.['trackPhaseEnd']('url_setup'),await _0x3f7775['FHNLI'](mkdir,_0x435a25,{'recursive':!![]});const _0x23d4a0=await _0x3f7775[_0x3765d5(0x171)](mkdtemp,_0x3f7775[_0x3765d5(0x193)](join,_0x435a25,_0x3765d5(0x167)+_0x3aaf56+'-')),_0x48846c=join(_0x23d4a0,_0x3f7775[_0x3765d5(0x16f)]);try{if(_0x4bbbd6){_0x43cbe6?.[_0x3765d5(0x153)](_0x3f7775[_0x3765d5(0x165)]),console[_0x3765d5(0x146)](_0x3765d5(0x169)),console['log'](_0x3f7775['dgaPZ']),console['log'](_0x3765d5(0x157));!_0x27ca11?(console[_0x3765d5(0x146)](_0x3765d5(0x16b)),console[_0x3765d5(0x146)](_0x3f7775['btTmm'])):console[_0x3765d5(0x146)]('');await new Promise(_0x3550c9=>setTimeout(_0x3550c9,0xbb8));const _0x29fddd=[];_0x3c8ff2[_0x3765d5(0x198)]&&_0x29fddd['push'](_0x3f7775['dVsqM']);const _0x3f6097=await chromium['launch']({'headless':![],..._0x3f7775[_0x3765d5(0x142)](_0x29fddd[_0x3765d5(0x19f)],0x0)?{'args':_0x29fddd}:{}});try{const _0x497553=await _0x3f6097[_0x3765d5(0x17e)]();await _0x3f7775[_0x3765d5(0x13e)](addProfileSetupBanner,_0x497553);const _0x33a618=await _0x497553['newPage']();await _0x33a618['goto'](_0x454f3a||_0x3f7775[_0x3765d5(0x14f)]);let _0x133370=![];await new Promise(_0x4a73c1=>{const _0xbd9369=_0x3765d5,_0x5167ee={'fpZLu':_0x3f7775['OlShj']};_0x33a618['on'](_0x3f7775[_0xbd9369(0x13c)],async()=>{const _0x10ef54=_0xbd9369;try{console[_0x10ef54(0x146)](_0x5167ee['fpZLu']),await _0x497553[_0x10ef54(0x18b)]({'path':_0x48846c}),_0x133370=!![];}catch{}_0x4a73c1();});});if(!_0x133370){console['log'](_0x3f7775[_0x3765d5(0x16e)]);!_0x3c8ff2['safeMode']&&(console[_0x3765d5(0x146)](_0x3765d5(0x166)),console['log'](_0x3f7775[_0x3765d5(0x18a)]),console['log'](_0x3765d5(0x183)+_0x3aaf56+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console['log'](_0x3765d5(0x183)+_0x3aaf56+_0x3765d5(0x174)));throw new Error(_0x3765d5(0x17a));}}finally{await _0x3f6097['close']()[_0x3765d5(0x181)](()=>{});}if(_0x2f7502){const _0x57144d=await readFile(_0x48846c,_0x3f7775[_0x3765d5(0x17b)]),_0x50b850=await _0x3f7775['gBifg'](getToken);if(!_0x50b850){console['error'](_0x3765d5(0x150)),await _0x3f7775['EvYAr'](unlink,_0x48846c)[_0x3765d5(0x181)](()=>{});throw new Error(_0x3f7775['NwuVT']);}else{const _0x209c53=encrypt(_0x57144d,_0x50b850);await _0x3f7775['lcXty'](writeFile,_0x48846c+_0x3765d5(0x156),_0x209c53),await unlink(_0x48846c),console[_0x3765d5(0x146)](_0x3765d5(0x1a9)+_0x48846c+_0x3765d5(0x156)),console['log'](_0x3f7775['nWUAJ']),console['log'](_0x3f7775['JvSpp']);}}else console['log'](_0x3765d5(0x18c)+_0x48846c);_0x43cbe6?.['trackPhaseEnd'](_0x3765d5(0x19c));}_0x43cbe6?.['trackPhaseStart'](_0x3f7775['FxKOq']);const _0x51f8bf={};_0x454f3a&&(_0x51f8bf['baseUrl']=_0x454f3a);_0x3c8ff2[_0x3765d5(0x155)]&&(_0x51f8bf['cdpEndpoint']=_0x3c8ff2[_0x3765d5(0x155)],_0x51f8bf[_0x3765d5(0x13f)]=!![]);_0x3c8ff2['allowInsecureLocalhost']&&(_0x51f8bf[_0x3765d5(0x148)]=!![]);_0x3c8ff2[_0x3765d5(0x198)]&&(_0x51f8bf['safeMode']=!![]);await writeFile(join(_0x23d4a0,_0x3f7775[_0x3765d5(0x14e)]),JSON[_0x3765d5(0x191)](_0x51f8bf,null,0x2)),console['log']('โ\x20Created\x20settings:\x20'+_0x3f7775[_0x3765d5(0x1a5)](join,_0x39c2d1,'settings.json'));if(_0x2fe6e3?.['location']===_0x5e50f6){const _0x44d312=_0x2fe6e3[_0x3765d5(0x19a)]+_0x3765d5(0x1a6)+Date['now']();await rename(_0x2fe6e3['path'],_0x44d312);try{await _0x3f7775[_0x3765d5(0x132)](rename,_0x23d4a0,_0x39c2d1);}catch(_0xee5974){await rename(_0x44d312,_0x2fe6e3[_0x3765d5(0x19a)]);throw _0xee5974;}try{await _0x3f7775[_0x3765d5(0x144)](rm,_0x44d312,{'recursive':!![]});}catch{console['log'](_0x3765d5(0x19b)+_0x44d312);}}else{await _0x3f7775['MmJGM'](rename,_0x23d4a0,_0x39c2d1);if(_0x2fe6e3)try{await _0x3f7775['TPEjH'](rm,_0x2fe6e3['path'],{'recursive':!![]}),console['log']('Removed\x20existing\x20profile\x20at\x20'+_0x2fe6e3['path']);}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x2fe6e3['path']);}}try{await writeActiveProfileName(_0x3aaf56),console[_0x3765d5(0x146)](_0x3765d5(0x14d)+_0x3aaf56);}catch{console['log'](_0x3f7775[_0x3765d5(0x1a0)]);}_0x43cbe6?.[_0x3765d5(0x192)](_0x3f7775['FxKOq']),console[_0x3765d5(0x146)]('\x0a\x20\x20Profile\x20\x22'+_0x3aaf56+'\x22\x20configured');}catch(_0x3f8d29){await _0x3f7775[_0x3765d5(0x193)](rm,_0x23d4a0,{'recursive':!![],'force':!![]});throw _0x3f8d29;}}
|
|
1
|
+
(function(_0x32d98d,_0xbfc57d){const _0x1f9089=_0x18e2,_0x2cf456=_0x32d98d();while(!![]){try{const _0x17df3a=parseInt(_0x1f9089(0xc8))/0x1+-parseInt(_0x1f9089(0xb2))/0x2*(-parseInt(_0x1f9089(0x84))/0x3)+parseInt(_0x1f9089(0xdb))/0x4+-parseInt(_0x1f9089(0x8b))/0x5*(-parseInt(_0x1f9089(0xb5))/0x6)+parseInt(_0x1f9089(0x99))/0x7*(-parseInt(_0x1f9089(0xd5))/0x8)+parseInt(_0x1f9089(0x8a))/0x9+parseInt(_0x1f9089(0xa0))/0xa*(-parseInt(_0x1f9089(0xb7))/0xb);if(_0x17df3a===_0xbfc57d)break;else _0x2cf456['push'](_0x2cf456['shift']());}catch(_0x48abe4){_0x2cf456['push'](_0x2cf456['shift']());}}}(_0x3406,0x2a605));function _0x3406(){const _0x7d054e=['status','\x20\x20ranger\x20profile\x20add\x20','stringify','602XDZBkQ','--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.','goto','12CqzDSk','COIFy','847MpqKwc','legacy','\x0aโ ๏ธ\x20\x20Profile\x20\x22','JEUPG','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','config_write','input','url','TZZJV','Delete\x20existing\x20and\x20create\x20new\x20in\x20','What\x20would\x20you\x20like\x20to\x20do?','storageState','โ \x20Could\x20not\x20reach\x20','Continue\x20anyway','safeMode','assign','error','70060nzueoT','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','abort','newPage','push','\x22\x20already\x20exists\x20in\x20','sxYJs','allowInsecureLocalhost','use_suggestion','yfzUJ','FXadr','\x20would\x20shadow\x20the\x20existing\x20profile.','LQUib','963784irrVzA','uQmEK','setupHeader','manual','length','root\x20(.ranger/)','1193800qKbjDg','auth.json','baseUrl','lgNkn','cdpEndpoint','KkBRA','continue','YByJm','isElectron','prompt','\x0a\x20\x20Profile\x20\x22','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','FRMAC','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','WyNWv','\x20(continuing\x20with\x20--force)','http://localhost:3000','slice','VaEMq','indexOf','about:blank','trackPhaseEnd','log','test','setupHeaders','catch','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','732ZqqdYY','Invalid\x20--setup-header\x20format:\x20\x22','stdout','HEAD','Invalid\x20URL','ZNZWE','2976273TlmXCE','827240RVipzE','\x0a๐\x20Profile\x20Setup\x0a','Use\x20','local','Zkqbi','browser_auth','trim','overwrite','xZZAg','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x20\x20Set\x20active\x20profile:\x20','keys','list','eIuYQ','7FKJrme','Enter\x20a\x20different\x20URL','trackPhaseStart','ItudY','AoxIe','http://','url_setup','105130rDUqKa','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','chEel','\x0a๐\x20CDP\x20Profile\x20Setup\x0a','FDhdl','You\x20can\x20try\x20again\x20with\x20one\x20of:','rtkRB','NkXou','ZOtWF','close','.enc','PmlLt','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','path','xNLCC'];_0x3406=function(){return _0x7d054e;};return _0x3406();}import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x479c16 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';function _0x18e2(_0x1552f6,_0xb52e1f){_0x1552f6=_0x1552f6-0x77;const _0x34066f=_0x3406();let _0x18e2cc=_0x34066f[_0x1552f6];return _0x18e2cc;}import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x33abf9){const _0x29fd1e=_0x18e2,_0xb7b794={'bUpwO':function(_0x4dc0f8,_0x9f1a9e,_0x1ee85e){return _0x4dc0f8(_0x9f1a9e,_0x1ee85e);},'lgNkn':_0x29fd1e(0x87),'TueUe':_0x29fd1e(0xd8),'FXadr':function(_0x35d269,_0x244ca8){return _0x35d269<_0x244ca8;},'FRMAC':_0x29fd1e(0x88),'WOAIM':function(_0x5aa06d,_0xbe5bb4){return _0x5aa06d===_0xbe5bb4;}};try{const _0x36d4d6=new AbortController(),_0x1b4508=_0xb7b794['bUpwO'](setTimeout,()=>_0x36d4d6[_0x29fd1e(0xca)](),0x1388),_0x51f414=await _0xb7b794['bUpwO'](fetch,_0x33abf9,{'method':_0xb7b794[_0x29fd1e(0xde)],'signal':_0x36d4d6['signal'],'redirect':_0xb7b794['TueUe']});clearTimeout(_0x1b4508);if(_0xb7b794[_0x29fd1e(0xd2)](_0x51f414['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x51f414[_0x29fd1e(0xaf)]};}catch(_0x4e6c17){const _0x18e12d=_0x4e6c17,_0x26d902=_0x18e12d['message']||String(_0x4e6c17),_0x1f4f2d=_0x26d902['includes'](_0xb7b794[_0x29fd1e(0xe7)])||_0xb7b794['WOAIM'](_0x18e12d['name'],'TypeError')||_0x26d902['includes']('fetch\x20failed');return{'ok':![],'error':_0x26d902,'isProtocolError':_0x1f4f2d};}}export async function addEnv(_0x2d7d07,_0x452cf7={},_0x16b48b){const _0x5055f0=_0x18e2,_0x1b0029={'Zkqbi':'close','xNLCC':function(_0x334628,_0x1848c9,_0x431a87,_0x1f66fd){return _0x334628(_0x1848c9,_0x431a87,_0x1f66fd);},'JEUPG':function(_0xc6ad50,_0x148a73){return _0xc6ad50===_0x148a73;},'eIuYQ':function(_0x443f9c){return _0x443f9c();},'kumMb':function(_0x2d26b4,_0x3ec3f1){return _0x2d26b4!==_0x3ec3f1;},'FDhdl':function(_0x2c904d,_0xc1294e){return _0x2c904d===_0xc1294e;},'COIFy':'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','TZZJV':'confirm','NkXou':_0x5055f0(0x92),'chEel':'shouldReplace','gzTup':'Aborted.','YByJm':_0x5055f0(0xa3),'sxYJs':function(_0x8045d1,_0x209ca3){return _0x8045d1(_0x209ca3);},'snzSw':_0x5055f0(0x8c),'tlzxZ':_0x5055f0(0xbd),'jyHsV':_0x5055f0(0x79),'CkUDN':_0x5055f0(0x97),'STUhf':'action','uQmEK':_0x5055f0(0xd0),'PmlLt':_0x5055f0(0x9a),'xZZAg':function(_0x35be09,_0x41bc32){return _0x35be09===_0x41bc32;},'rtkRB':'continue','jElNg':_0x5055f0(0x9f),'dbmUJ':function(_0x37a815,_0x2b17c7,_0x4f080e){return _0x37a815(_0x2b17c7,_0x4f080e);},'ZNZWE':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','yfzUJ':'\x0a\x20\x20\x20โ \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','WyNWv':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','ItudY':'--disable-features=WebBluetooth','KkBRA':_0x5055f0(0xa5),'YvpUP':'utf-8','AdMJI':_0x5055f0(0x94),'iwFml':'Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','VaEMq':function(_0x4431b5,_0x493120,_0x186488){return _0x4431b5(_0x493120,_0x186488);},'IlPTs':_0x5055f0(0xaa),'ZOtWF':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','CikJs':_0x5055f0(0xbc),'GpaVi':function(_0x86c32c,_0x3ac83e,_0x53345f){return _0x86c32c(_0x3ac83e,_0x53345f);},'rsjSk':function(_0x2ad2fc,_0x30f407){return _0x2ad2fc===_0x30f407;},'llbbC':function(_0x52b53a,_0x5ec75d,_0x310e50){return _0x52b53a(_0x5ec75d,_0x310e50);},'LQUib':function(_0x33add1,_0x4f0217,_0x7966c){return _0x33add1(_0x4f0217,_0x7966c);},'AoxIe':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'},_0x685245=_0x452cf7['ci']??![],_0x5205db=_0x685245?'ci':_0x5055f0(0x8e),_0x3add1e=_0x1b0029[_0x5055f0(0xae)](join,getRangerDir(),_0x5205db,_0x2d7d07),_0x225a81={};if(_0x452cf7['setupHeader'])for(const _0x3b442a of _0x452cf7[_0x5055f0(0xd7)]){const _0xdd9e5b=_0x3b442a[_0x5055f0(0x7c)](':');if(_0x1b0029[_0x5055f0(0xba)](_0xdd9e5b,-0x1))throw new Error(_0x5055f0(0x85)+_0x3b442a+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x1b9540=_0x3b442a[_0x5055f0(0x7a)](0x0,_0xdd9e5b)[_0x5055f0(0x91)](),_0xd054b=_0x3b442a[_0x5055f0(0x7a)](_0xdd9e5b+0x1)[_0x5055f0(0x91)]();_0x225a81[_0x1b9540]=_0xd054b;}const _0x5d9092=join(_0x1b0029[_0x5055f0(0x98)](getRangerDir),_0x5205db);if(_0x1b0029['kumMb'](_0x452cf7[_0x5055f0(0xdf)],undefined)&&_0x1b0029[_0x5055f0(0xa4)](_0x452cf7['cdpEndpoint']['trim'](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x452cf7['cdpEndpoint']&&_0x452cf7['url'])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');if(_0x452cf7['cdpEndpoint']&&_0x452cf7['ci'])throw new Error(_0x5055f0(0xb3));const _0xd053ba=Boolean(_0x452cf7['cdpEndpoint']),_0x136fce=!_0x452cf7['skipAuth']&&!_0xd053ba,_0x5d37a2=process['stdin']['isTTY']&&process[_0x5055f0(0x86)]['isTTY'];if(!_0x5d37a2&&!_0x452cf7[_0x5055f0(0xbe)]&&!_0xd053ba)throw new Error(_0x1b0029[_0x5055f0(0xb6)]);const _0x40c0c5=findExistingEnv(_0x2d7d07);let _0x2dddeb=null;if(_0x40c0c5){if(!_0x5d37a2)_0x2dddeb=_0x40c0c5;else{if(_0x1b0029['JEUPG'](_0x40c0c5['location'],_0x5205db)){const {overwrite:_0x225f92}=await _0x479c16[_0x5055f0(0xe4)]([{'type':_0x1b0029[_0x5055f0(0xbf)],'name':_0x1b0029[_0x5055f0(0xa7)],'message':'Profile\x20\x22'+_0x2d7d07+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x225f92){console[_0x5055f0(0x7f)]('Aborted.');return;}_0x2dddeb=_0x40c0c5;}else{const _0x73e402=_0x40c0c5['location']===_0x5055f0(0xb8)?_0x5055f0(0xda):_0x40c0c5['location'];console['error'](_0x5055f0(0xb9)+_0x2d7d07+_0x5055f0(0xcd)+_0x73e402+':\x20'+_0x40c0c5['path']),console[_0x5055f0(0xc7)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0x5205db+_0x5055f0(0xd3));const {shouldReplace:_0x23ad67}=await _0x479c16['prompt']([{'type':_0x1b0029[_0x5055f0(0xbf)],'name':_0x1b0029[_0x5055f0(0xa2)],'message':_0x5055f0(0xc0)+_0x5205db+'?','default':![]}]);if(!_0x23ad67){console['log'](_0x1b0029['gzTup']);return;}_0x2dddeb=_0x40c0c5;}}}_0x16b48b?.['trackPhaseStart'](_0x5055f0(0x9f));let _0x4d0c09='';if(_0xd053ba)console['log'](_0x1b0029[_0x5055f0(0xe2)]),console[_0x5055f0(0x7f)](_0x5055f0(0xc9)+_0x452cf7['cdpEndpoint']),console['log']('\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a');else{if(_0x452cf7['url']){_0x4d0c09=_0x452cf7['url'];const _0x1516c0=await _0x1b0029['sxYJs'](checkUrlReachability,_0x4d0c09);if(!_0x1516c0['ok']&&!_0x452cf7['force'])throw new Error('Could\x20not\x20reach\x20'+_0x4d0c09+':\x20'+_0x1516c0[_0x5055f0(0xc7)]+_0x5055f0(0xe6));!_0x1516c0['ok']&&_0x452cf7['force']&&console['log'](_0x5055f0(0xc3)+_0x4d0c09+':\x20'+_0x1516c0['error']+_0x5055f0(0x78));}else{console[_0x5055f0(0x7f)](_0x1b0029['snzSw']),console[_0x5055f0(0x7f)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console['log'](_0x5055f0(0xa1));let _0x3caa5c=![];while(!![]){const _0x545ca3=await _0x479c16[_0x5055f0(0xe4)]([{'type':_0x1b0029['tlzxZ'],'name':_0x5055f0(0xdd),'message':_0x3caa5c?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x4d0c09||_0x1b0029['jyHsV']}]);_0x4d0c09=_0x545ca3['baseUrl'];const _0x4c11ff=await checkUrlReachability(_0x4d0c09);if(_0x4c11ff['ok'])break;const _0x21523d=/^[a-zA-Z][\w+.-]*:\/\//[_0x5055f0(0x80)](_0x4d0c09),_0x39a58b=_0x4c11ff['isProtocolError']&&!_0x21523d,_0x595e41=_0x39a58b?_0x5055f0(0x9e)+_0x4d0c09:null;_0x3caa5c=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x4d0c09+':\x20'+_0x4c11ff[_0x5055f0(0xc7)]);_0x595e41&&console[_0x5055f0(0x7f)]('\x20\x20Did\x20you\x20mean\x20'+_0x595e41+'?');const {action:_0x13c8c9}=await _0x479c16[_0x5055f0(0xe4)]([{'type':_0x1b0029['CkUDN'],'name':_0x1b0029['STUhf'],'message':_0x5055f0(0xc1),'choices':[..._0x595e41?[{'name':_0x5055f0(0x8d)+_0x595e41,'value':_0x1b0029[_0x5055f0(0xd6)]}]:[],{'name':_0x1b0029[_0x5055f0(0xab)],'value':'retry'},{'name':_0x5055f0(0xc4),'value':_0x5055f0(0xe1)}]}]);if(_0x1b0029[_0x5055f0(0x93)](_0x13c8c9,_0x5055f0(0xd0))&&_0x595e41){_0x4d0c09=_0x595e41;const _0x436471=await checkUrlReachability(_0x4d0c09);if(_0x436471['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x4d0c09+':\x20'+_0x436471[_0x5055f0(0xc7)]);}else{if(_0x1b0029[_0x5055f0(0x93)](_0x13c8c9,_0x1b0029[_0x5055f0(0xa6)]))break;}}}}_0x16b48b?.[_0x5055f0(0x7e)](_0x1b0029['jElNg']);const _0x27d6f3={};if(_0x2dddeb){const _0x37ece1=await _0x1b0029['sxYJs'](loadSettings,_0x2d7d07);Object[_0x5055f0(0xc6)](_0x27d6f3,_0x37ece1['setupHeaders']);}Object['assign'](_0x27d6f3,_0x225a81),await _0x1b0029['dbmUJ'](mkdir,_0x5d9092,{'recursive':!![]});const _0x203e95=await mkdtemp(join(_0x5d9092,'.tmp-'+_0x2d7d07+'-')),_0x3fb86e=join(_0x203e95,_0x5055f0(0xdc));try{if(_0x136fce){_0x16b48b?.[_0x5055f0(0x9b)](_0x5055f0(0x90)),console['log']('\x0a๐\x20Authentication\x20Setup'),console[_0x5055f0(0x7f)](_0x1b0029[_0x5055f0(0x89)]),console[_0x5055f0(0x7f)]('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x5d37a2?(console[_0x5055f0(0x7f)](_0x1b0029[_0x5055f0(0xd1)]),console[_0x5055f0(0x7f)](_0x1b0029[_0x5055f0(0x77)])):console[_0x5055f0(0x7f)]('');await new Promise(_0x29d95d=>setTimeout(_0x29d95d,0xbb8));const _0x269773=[];_0x452cf7[_0x5055f0(0xc5)]&&_0x269773[_0x5055f0(0xcc)](_0x1b0029[_0x5055f0(0x9c)]);const _0x74139a=await chromium['launch']({'headless':![],..._0x269773[_0x5055f0(0xd9)]>0x0?{'args':_0x269773}:{}});try{const _0x5b7844=Object[_0x5055f0(0x96)](_0x27d6f3)['length']>0x0,_0x7b15e4=await _0x74139a['newContext'](_0x5b7844?{'extraHTTPHeaders':_0x27d6f3}:undefined);await addProfileSetupBanner(_0x7b15e4);const _0x57ba4f=await _0x7b15e4[_0x5055f0(0xcb)]();await _0x57ba4f[_0x5055f0(0xb4)](_0x4d0c09||_0x5055f0(0x7d));let _0x75687f=![];await new Promise(_0x24b29d=>{const _0x386310=_0x5055f0,_0x50d8c2={'oBzsc':function(_0x38f8f2){return _0x38f8f2();}};_0x57ba4f['on'](_0x1b0029[_0x386310(0x8f)],async()=>{const _0x58a904=_0x386310;try{console['log']('Saving\x20authentication\x20state...'),await _0x7b15e4[_0x58a904(0xc2)]({'path':_0x3fb86e}),_0x75687f=!![];}catch{}_0x50d8c2['oBzsc'](_0x24b29d);});});if(!_0x75687f){console[_0x5055f0(0x7f)]('\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.');!_0x452cf7[_0x5055f0(0xc5)]&&(console[_0x5055f0(0x7f)](_0x5055f0(0xac)),console['log'](_0x1b0029[_0x5055f0(0xe0)]),console[_0x5055f0(0x7f)]('\x20\x20ranger\x20profile\x20add\x20'+_0x2d7d07+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x5055f0(0x7f)](_0x5055f0(0xb0)+_0x2d7d07+_0x5055f0(0xe8)));throw new Error(_0x5055f0(0x83));}}finally{await _0x74139a[_0x5055f0(0xa9)]()['catch'](()=>{});}if(_0x685245){const _0x5d5b77=await readFile(_0x3fb86e,_0x1b0029['YvpUP']),_0x23d982=await getToken();if(!_0x23d982){console[_0x5055f0(0xc7)](_0x1b0029['AdMJI']),await _0x1b0029[_0x5055f0(0xce)](unlink,_0x3fb86e)[_0x5055f0(0x82)](()=>{});throw new Error(_0x1b0029['iwFml']);}else{const _0x16bee4=_0x1b0029[_0x5055f0(0x7b)](encrypt,_0x5d5b77,_0x23d982);await writeFile(_0x3fb86e+_0x1b0029['IlPTs'],_0x16bee4),await unlink(_0x3fb86e),console[_0x5055f0(0x7f)]('โ\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x3fb86e+_0x5055f0(0xaa)),console['log']('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console['log'](_0x1b0029[_0x5055f0(0xa8)]);}}else console['log']('โ\x20Auth\x20state\x20saved\x20to:\x20'+_0x3fb86e);_0x16b48b?.['trackPhaseEnd']('browser_auth');}_0x16b48b?.[_0x5055f0(0x9b)](_0x1b0029['CikJs']);const _0x4daab4={};_0x4d0c09&&(_0x4daab4['baseUrl']=_0x4d0c09);_0x452cf7['cdpEndpoint']&&(_0x4daab4[_0x5055f0(0xdf)]=_0x452cf7['cdpEndpoint'],_0x4daab4[_0x5055f0(0xe3)]=!![]);_0x452cf7[_0x5055f0(0xcf)]&&(_0x4daab4[_0x5055f0(0xcf)]=!![]);_0x452cf7['safeMode']&&(_0x4daab4[_0x5055f0(0xc5)]=!![]);Object['keys'](_0x27d6f3)['length']>0x0&&(_0x4daab4[_0x5055f0(0x81)]=_0x27d6f3);await _0x1b0029[_0x5055f0(0x7b)](writeFile,_0x1b0029['VaEMq'](join,_0x203e95,'settings.json'),JSON[_0x5055f0(0xb1)](_0x4daab4,null,0x2)),console['log']('โ\x20Created\x20settings:\x20'+_0x1b0029['GpaVi'](join,_0x3add1e,'settings.json'));if(_0x1b0029['rsjSk'](_0x2dddeb?.['location'],_0x5205db)){const _0x2534df=_0x2dddeb[_0x5055f0(0xad)]+'.backup-'+Date['now']();await rename(_0x2dddeb['path'],_0x2534df);try{await _0x1b0029['llbbC'](rename,_0x203e95,_0x3add1e);}catch(_0x5d4c64){await _0x1b0029['llbbC'](rename,_0x2534df,_0x2dddeb['path']);throw _0x5d4c64;}try{await _0x1b0029[_0x5055f0(0xd4)](rm,_0x2534df,{'recursive':!![]});}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x2534df);}}else{await _0x1b0029['GpaVi'](rename,_0x203e95,_0x3add1e);if(_0x2dddeb)try{await rm(_0x2dddeb['path'],{'recursive':!![]}),console['log']('Removed\x20existing\x20profile\x20at\x20'+_0x2dddeb['path']);}catch{console[_0x5055f0(0x7f)](_0x5055f0(0xbb)+_0x2dddeb[_0x5055f0(0xad)]);}}try{await writeActiveProfileName(_0x2d7d07),console['log'](_0x5055f0(0x95)+_0x2d7d07);}catch{console[_0x5055f0(0x7f)](_0x1b0029[_0x5055f0(0x9d)]);}_0x16b48b?.[_0x5055f0(0x7e)]('config_write'),console['log'](_0x5055f0(0xe5)+_0x2d7d07+'\x22\x20configured');}catch(_0x4ee5a1){await rm(_0x203e95,{'recursive':!![],'force':!![]});throw _0x4ee5a1;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x45bb(){const _0x2dd0a2=['DoLYv','10575deigAF','40CSUxuW','tHcwr','iAzbD','22589390OKbqfW','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','31365qMVBBh','log','utf-8','5944hSncgv','791756pETOHq','4112405wOhQbN','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','szQOI','rqPyt','655641cBRdQW','auth.json','No\x20auth.json\x20found\x20at\x20','792869NynYwu','XWPJE','AtyQc','30IanmqJ'];_0x45bb=function(){return _0x2dd0a2;};return _0x45bb();}(function(_0xcec22c,_0x128384){const _0x4181ea=_0xd1ce,_0x5b76d3=_0xcec22c();while(!![]){try{const _0x1e22ee=-parseInt(_0x4181ea(0xae))/0x1+-parseInt(_0x4181ea(0xa6))/0x2+-parseInt(_0x4181ea(0xb9))/0x3*(parseInt(_0x4181ea(0xb4))/0x4)+parseInt(_0x4181ea(0xa7))/0x5+-parseInt(_0x4181ea(0xb1))/0x6*(parseInt(_0x4181ea(0xab))/0x7)+-parseInt(_0x4181ea(0xbc))/0x8*(parseInt(_0x4181ea(0xb3))/0x9)+parseInt(_0x4181ea(0xb7))/0xa;if(_0x1e22ee===_0x128384)break;else _0x5b76d3['push'](_0x5b76d3['shift']());}catch(_0x200c66){_0x5b76d3['push'](_0x5b76d3['shift']());}}}(_0x45bb,0x6d13f));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';function _0xd1ce(_0x74a7e8,_0x788bfb){_0x74a7e8=_0x74a7e8-0xa6;const _0x45bbcf=_0x45bb();let _0xd1ce50=_0x45bbcf[_0x74a7e8];return _0xd1ce50;}import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x44d866){const _0xde646f=_0xd1ce,_0x172d05={'DoLYv':function(_0x40e278,_0x2047c8){return _0x40e278(_0x2047c8);},'DbMMZ':function(_0x1f411c,_0x18765f,_0x28d1c3){return _0x1f411c(_0x18765f,_0x28d1c3);},'ujYsH':function(_0x97f9d9,_0x22e56c){return _0x97f9d9+_0x22e56c;},'szQOI':function(_0x9081c4,_0x3a5d84){return _0x9081c4(_0x3a5d84);},'XWPJE':function(_0x2313ee){return _0x2313ee();},'iAzbD':_0xde646f(0xbb),'tHcwr':function(_0x2816b5,_0x41327e,_0x4a9e21){return _0x2816b5(_0x41327e,_0x4a9e21);},'AtyQc':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','rqPyt':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'},_0x5e6274=_0x172d05[_0xde646f(0xb2)](getEnvDir,_0x44d866),_0x29299c=_0x172d05['DbMMZ'](join,_0x5e6274,_0xde646f(0xac)),_0x2b0782=_0x172d05['ujYsH'](_0x29299c,'.enc');if(!_0x172d05['DoLYv'](existsSync,_0x5e6274))throw new Error('Profile\x20\x22'+_0x44d866+_0xde646f(0xa8)+_0x44d866);if(!_0x172d05[_0xde646f(0xa9)](existsSync,_0x29299c))throw new Error(_0xde646f(0xad)+_0x29299c+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x2dee2b=await _0x172d05[_0xde646f(0xaf)](getToken);if(!_0x2dee2b)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x419c58=await readFile(_0x29299c,_0x172d05[_0xde646f(0xb6)]),_0x2ea28a=encrypt(_0x419c58,_0x2dee2b);await _0x172d05[_0xde646f(0xb5)](writeFile,_0x2b0782,_0x2ea28a),console['log']('\x0aโ\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x2b0782),console['log'](_0x172d05[_0xde646f(0xb0)]),console[_0xde646f(0xba)](_0x172d05[_0xde646f(0xaa)]),existsSync(_0x2b0782)&&(console[_0xde646f(0xba)](_0xde646f(0xb8)),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xde35ae=_0x5dfd;(function(_0x14c172,_0x4ffcd5){const _0x39e40d=_0x5dfd,_0x53566d=_0x14c172();while(!![]){try{const _0x3b95c8=parseInt(_0x39e40d(0xac))/0x1+-parseInt(_0x39e40d(0xb6))/0x2+parseInt(_0x39e40d(0xb9))/0x3+-parseInt(_0x39e40d(0xa9))/0x4*(-parseInt(_0x39e40d(0xd8))/0x5)+-parseInt(_0x39e40d(0xce))/0x6*(-parseInt(_0x39e40d(0xb1))/0x7)+parseInt(_0x39e40d(0xba))/0x8*(-parseInt(_0x39e40d(0xcd))/0x9)+-parseInt(_0x39e40d(0xaa))/0xa;if(_0x3b95c8===_0x4ffcd5)break;else _0x53566d['push'](_0x53566d['shift']());}catch(_0x32fe3a){_0x53566d['push'](_0x53566d['shift']());}}}(_0x4230,0xf3379));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';function _0x5dfd(_0x4e8c1c,_0x3e30eb){_0x4e8c1c=_0x4e8c1c-0xa0;const _0x423036=_0x4230();let _0x5dfddb=_0x423036[_0x4e8c1c];return _0x5dfddb;}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=[_0xde35ae(0xd0),'feature-tracker',_0xde35ae(0xa3),_0xde35ae(0xb0)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x1a769f){const _0x1e3f12=_0xde35ae,_0x4c5024=_0x1a769f[_0x1e3f12(0xa4)](/\/\*[\s\S]*?\*\//g,''),_0x3383e5=_0x4c5024[_0x1e3f12(0xa4)](/^\s*\/\/.*$/gm,''),_0x2f7653=_0x3383e5['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x2f7653);}async function removeOpencodePluginConfig(_0x18150b){const _0x4f717b=_0xde35ae,_0x4fcc1e={'RsiXR':function(_0x462033,_0xd7a8bf){return _0x462033!==_0xd7a8bf;},'mEHXX':function(_0x285fcb,_0x31979e){return _0x285fcb!==_0x31979e;},'CrWEl':function(_0x347ec4,_0x1c9779){return _0x347ec4(_0x1c9779);},'xiBRR':function(_0x1efd28,_0x2f2c8d,_0xe51174){return _0x1efd28(_0x2f2c8d,_0xe51174);},'IDOPy':function(_0x3e3e5a,_0x31e199){return _0x3e3e5a===_0x31e199;}};if(!_0x4fcc1e[_0x4f717b(0xcf)](existsSync,_0x18150b))return![];let _0x984bc1;try{const _0x482445=await _0x4fcc1e['xiBRR'](readFile,_0x18150b,'utf-8');_0x984bc1=parseJsonc(_0x482445);}catch{return![];}const _0x47b829=Array['isArray'](_0x984bc1['plugin'])?_0x984bc1['plugin']:[];if(_0x4fcc1e[_0x4f717b(0xc6)](_0x47b829['length'],0x0))return![];const _0x4f17a4=_0x47b829['filter'](_0x46e4e7=>{const _0x90d955=_0x4f717b;if(_0x4fcc1e[_0x90d955(0xb8)](typeof _0x46e4e7,'string'))return!![];return _0x4fcc1e['mEHXX'](_0x46e4e7,opencodePluginName);});if(_0x4f17a4['length']===_0x47b829['length'])return![];return _0x4fcc1e[_0x4f717b(0xc6)](_0x4f17a4[_0x4f717b(0xab)],0x0)?delete _0x984bc1['plugin']:_0x984bc1[_0x4f717b(0xa7)]=_0x4f17a4,await _0x4fcc1e[_0x4f717b(0xc8)](writeFile,_0x18150b,JSON['stringify'](_0x984bc1,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x4dc0a2){const _0x395d99=_0xde35ae,_0x52875c={'AYuRv':function(_0x4230d2,_0xdab4b9){return _0x4230d2(_0xdab4b9);},'HDzih':function(_0x15622b,_0x2726b3){return _0x15622b(_0x2726b3);},'nbtbB':'uninstall','yRJHs':_0x395d99(0xad),'STCee':'--scope','YARrp':function(_0x477867,_0x2f72cb,_0x2b55b8,_0x5e5b73){return _0x477867(_0x2f72cb,_0x2b55b8,_0x5e5b73);},'dluTZ':'claude','gKHDT':function(_0x2e7913,_0x5e2626){return _0x2e7913===_0x5e2626;},'xctYi':'win32'};return new Promise(_0x203109=>{const _0x1b1dc3=_0x395d99,_0x5344e6={'PYRVV':function(_0x1a7626,_0x58f8a0){const _0x2f3380=_0x5dfd;return _0x52875c[_0x2f3380(0xc2)](_0x1a7626,_0x58f8a0);},'UbPfq':function(_0x4df711,_0x41a809){return _0x4df711===_0x41a809;}},_0x1a7646=['plugin',_0x52875c[_0x1b1dc3(0xa6)],_0x52875c[_0x1b1dc3(0xcc)]];_0x4dc0a2&&_0x1a7646['push'](_0x52875c[_0x1b1dc3(0xa5)],_0x4dc0a2);const _0xfa4558=_0x52875c[_0x1b1dc3(0xaf)](spawn,_0x52875c[_0x1b1dc3(0xa1)],_0x1a7646,{'stdio':_0x1b1dc3(0xa2),'shell':_0x52875c['gKHDT'](process[_0x1b1dc3(0xb4)],_0x52875c[_0x1b1dc3(0xcb)])});_0xfa4558['on']('close',_0x13e746=>{_0x5344e6['PYRVV'](_0x203109,_0x5344e6['UbPfq'](_0x13e746,0x0));}),_0xfa4558['on'](_0x1b1dc3(0xb3),()=>{const _0x73c83f=_0x1b1dc3;_0x52875c[_0x73c83f(0xd4)](_0x203109,![]);});});}async function removeMarketplace(){const _0x7ba085={'RumIo':function(_0x335c99,_0x1f35ca,_0x5a8838,_0x486ee2){return _0x335c99(_0x1f35ca,_0x5a8838,_0x486ee2);},'HZxgL':'claude','mLzsF':'plugin','TRpnx':'marketplace'};return new Promise(_0x59aac8=>{const _0x4ac2b9=_0x5dfd,_0x36d0bc={'txCtg':function(_0x779d1f,_0x4a9c83){return _0x779d1f(_0x4a9c83);},'MHfNx':function(_0x5c5d9a,_0x10688c){return _0x5c5d9a===_0x10688c;}},_0x16afa7=_0x7ba085[_0x4ac2b9(0xd1)](spawn,_0x7ba085['HZxgL'],[_0x7ba085['mLzsF'],_0x7ba085[_0x4ac2b9(0xc7)],_0x4ac2b9(0xae),_0x4ac2b9(0xd6)],{'stdio':'pipe','shell':process['platform']===_0x4ac2b9(0xca)});_0x16afa7['on'](_0x4ac2b9(0xd3),_0x58932d=>{_0x36d0bc['txCtg'](_0x59aac8,_0x36d0bc['MHfNx'](_0x58932d,0x0));}),_0x16afa7['on']('error',()=>{_0x36d0bc['txCtg'](_0x59aac8,![]);});});}export async function clean(){const _0xd074d8=_0xde35ae,_0x16f5f9={'ZDGMV':_0xd074d8(0xc0),'vqywO':function(_0x3785eb){return _0x3785eb();},'QSZyp':function(_0x2ff395,_0x335e4c){return _0x2ff395(_0x335e4c);},'sarCm':_0xd074d8(0xc4),'TNeED':function(_0x25a670){return _0x25a670();},'EpmcC':function(_0x2dc183,_0x38ad4a){return _0x2dc183(_0x38ad4a);},'RTiwT':'project','knWsz':function(_0x119430,_0x3c8f51){return _0x119430(_0x3c8f51);},'zzWYk':function(_0x5539c2,_0x458cb9,_0x279d24){return _0x5539c2(_0x458cb9,_0x279d24);},'XGwFb':'user','TtLNO':_0xd074d8(0xbb),'NYgoD':'โ\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','jKlDi':_0xd074d8(0xc9)};console[_0xd074d8(0xb2)](_0x16f5f9[_0xd074d8(0xc5)]);let _0xdc2321=![];try{await _0x16f5f9['vqywO'](deleteAllCredentials),console[_0xd074d8(0xb2)](_0xd074d8(0xd7)),_0xdc2321=!![];}catch{}const _0x74cd60=_0x16f5f9['vqywO'](getCacheFile);existsSync(_0x74cd60)&&(await _0x16f5f9['QSZyp'](rm,_0x74cd60),_0xdc2321=!![]);const _0x5bdbca=getRangerDir();existsSync(_0x5bdbca)&&(await rm(_0x5bdbca,{'recursive':!![]}),console[_0xd074d8(0xb2)](_0x16f5f9['sarCm']),_0xdc2321=!![]);const _0x13254c=_0x16f5f9[_0xd074d8(0xd2)](getProjectSkillsDir);for(const _0x56ab58 of skillsToRemove){const _0x375043=join(_0x13254c,_0x56ab58);existsSync(_0x375043)&&(await rm(_0x375043,{'recursive':!![]}),console[_0xd074d8(0xb2)]('โ\x20Removed\x20project\x20skill:\x20'+_0x56ab58),_0xdc2321=!![]);}const _0x1bc45b=getUserSkillsDir();for(const _0x13aade of skillsToRemove){const _0xeeeb54=join(_0x1bc45b,_0x13aade);existsSync(_0xeeeb54)&&(await rm(_0xeeeb54,{'recursive':!![]}),console['log']('โ\x20Removed\x20user\x20skill:\x20'+_0x13aade),_0xdc2321=!![]);}const _0x227a28=_0x16f5f9[_0xd074d8(0xbc)](getOpencodeSkillsDir,_0x16f5f9['RTiwT']);for(const _0x493689 of skillsToRemove){const _0x1ae5ae=join(_0x227a28,_0x493689);_0x16f5f9[_0xd074d8(0xa0)](existsSync,_0x1ae5ae)&&(await _0x16f5f9['zzWYk'](rm,_0x1ae5ae,{'recursive':!![]}),console[_0xd074d8(0xb2)]('โ\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x493689),_0xdc2321=!![]);}const _0xfd0c63=_0x16f5f9[_0xd074d8(0xa0)](getOpencodeSkillsDir,'user');for(const _0xa92584 of skillsToRemove){const _0x3d3558=join(_0xfd0c63,_0xa92584);existsSync(_0x3d3558)&&(await _0x16f5f9[_0xd074d8(0xb5)](rm,_0x3d3558,{'recursive':!![]}),console[_0xd074d8(0xb2)]('โ\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0xa92584),_0xdc2321=!![]);}const _0xe28938=join(getOpencodeConfigDir(_0xd074d8(0xd5)),_0xd074d8(0xbd));await removeOpencodePluginConfig(_0xe28938)&&(console['log'](_0xd074d8(0xbf)),_0xdc2321=!![]);const _0x2548d0=_0x16f5f9[_0xd074d8(0xb5)](join,_0x16f5f9[_0xd074d8(0xbc)](getOpencodeConfigDir,_0x16f5f9[_0xd074d8(0xc1)]),'opencode.json');await removeOpencodePluginConfig(_0x2548d0)&&(console[_0xd074d8(0xb2)](_0x16f5f9['TtLNO']),_0xdc2321=!![]);const _0x18f60f=await _0x16f5f9['TNeED'](uninstallClaudePlugin);_0x18f60f&&(console[_0xd074d8(0xb2)]('โ\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0xdc2321=!![]);const _0x135e3c=await uninstallClaudePlugin(_0xd074d8(0xd5));_0x135e3c&&(console['log'](_0x16f5f9[_0xd074d8(0xbe)]),_0xdc2321=!![]);const _0x1a00f0=await _0x16f5f9[_0xd074d8(0xb7)](removeMarketplace);_0x1a00f0&&(console['log'](_0x16f5f9[_0xd074d8(0xa8)]),_0xdc2321=!![]),_0xdc2321?console['log'](_0xd074d8(0xc3)):console['log']('Nothing\x20to\x20clean\x20up.\x0a');}function _0x4230(){const _0x19f073=['โ\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','EpmcC','opencode.json','NYgoD','โ\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','\x0a๐งน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','XGwFb','HDzih','\x0aโ
\x20Cleanup\x20complete!\x0a','โ\x20Removed\x20.ranger/\x20directory','ZDGMV','IDOPy','TRpnx','xiBRR','โ\x20Removed\x20trailhead\x20marketplace','win32','xctYi','yRJHs','9wUjjfZ','148884UqOPPk','CrWEl','ranger','RumIo','TNeED','close','AYuRv','project','trailhead','โ\x20Removed\x20stored\x20credentials','25DwnJyY','knWsz','dluTZ','pipe','bug-bash','replace','STCee','nbtbB','plugin','jKlDi','1434284fYSUWu','26115360zlpQwF','length','1734427ISKkOM','ranger@trailhead','remove','YARrp','e2e-test-recommender','294jVqseU','log','error','platform','zzWYk','2170716QkaFsM','vqywO','RsiXR','4630092tVWzbP','11357784EQyyiO'];_0x4230=function(){return _0x19f073;};return _0x4230();}
|