@ranger-testing/ranger-cli 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -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 -0
- 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 _0x11ad69=_0xc551;(function(_0x144c6b,_0x45024b){const _0x4efdf5=_0xc551,_0x4a90f5=_0x144c6b();while(!![]){try{const _0x154e1f=parseInt(_0x4efdf5(0x247))/0x1+-parseInt(_0x4efdf5(0x1bb))/0x2+-parseInt(_0x4efdf5(0x22c))/0x3+-parseInt(_0x4efdf5(0x235))/0x4*(parseInt(_0x4efdf5(0x211))/0x5)+parseInt(_0x4efdf5(0x27a))/0x6+-parseInt(_0x4efdf5(0x293))/0x7+-parseInt(_0x4efdf5(0x22f))/0x8*(-parseInt(_0x4efdf5(0x23a))/0x9);if(_0x154e1f===_0x45024b)break;else _0x4a90f5['push'](_0x4a90f5['shift']());}catch(_0x448494){_0x4a90f5['push'](_0x4a90f5['shift']());}}}(_0x57e3,0x74698));function _0xc551(_0x407bdb,_0xcc4e02){_0x407bdb=_0x407bdb-0x19d;const _0x57e382=_0x57e3();let _0xc5517=_0x57e382[_0x407bdb];return _0xc5517;}import _0x1d6936 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x3bd5be=_0xc551,_0x20b9f7={'NHdwV':function(_0x2e05e8,_0x18a9e1){return _0x2e05e8(_0x18a9e1);},'WWIVH':function(_0x4774ee,_0x338f33,_0x3276af){return _0x4774ee(_0x338f33,_0x3276af);},'OUuXS':function(_0xc0bd44,_0x595620){return _0xc0bd44(_0x595620);},'sDzCb':function(_0x2b868e,_0x26999f,_0x22523c){return _0x2b868e(_0x26999f,_0x22523c);},'azTxy':_0x3bd5be(0x2a0),'qVbfK':function(_0x1b8369,_0x33ebe0){return _0x1b8369(_0x33ebe0);}};let _0x1f8a29=process['cwd']();const _0x21d1f9=_0x20b9f7[_0x3bd5be(0x2d5)](parse,_0x1f8a29)[_0x3bd5be(0x214)];while(_0x1f8a29!==_0x21d1f9){if(_0x20b9f7[_0x3bd5be(0x2d5)](existsSync,_0x20b9f7['WWIVH'](join,_0x1f8a29,'.ranger'))||_0x20b9f7[_0x3bd5be(0x1dc)](existsSync,_0x20b9f7['sDzCb'](join,_0x1f8a29,_0x20b9f7[_0x3bd5be(0x25d)])))return _0x1f8a29;_0x1f8a29=_0x20b9f7[_0x3bd5be(0x2dd)](dirname,_0x1f8a29);}return process[_0x3bd5be(0x213)]();}_0x1d6936[_0x11ad69(0x2c9)]({'path':join(findProjectRoot(),'.env')});import _0x91e5d9 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';function _0x57e3(){const _0x2d4316=['CgGBN','FqyZF','dscgv','Feature\x20review\x20name','DiMlW','fKnTM','Ljnon','get-review','oWnRg','NHdwV','--env','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','aBnks','include-deleted','FQBWT','TNyDJ','IflRz','qVbfK','ranger\x20create','MZalM','cNKTb','Config\x20key\x20to\x20remove','bZPhC','kcsrO','You\x20must\x20specify\x20a\x20command','setup\x20[token]','GKtXW','create\x20<name>','gzyZP','Mdgmj','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','auth','WxYZb','clean','env\x20update','RLCNG','PPqEW','Install\x20Ranger\x20skills','Feature\x20review\x20description','Config\x20key','notes','profile\x20update','partial','evaluation','ranger\x20feature\x20get-feedback','sstDe','yApVN','start\x20[token]','OvHKg','Feature\x20review\x20ID','startsWith','HfMCN','ranger\x20delete','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','XnWKP','json','hwNCz','vLRsM','fWVaC','exclude-scenario','yTDzi','xYGTf','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','scenario','jFTMM','message','FWZQA','limit','Name\x20of\x20the\x20profile','HMKxQ','SbRHK','profile\x20config\x20get','--item','profile-name','AyUGL','get\x20<profile>\x20<key>','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','ranger\x20env\x20ls','wbCOB','config\x20list','description','nlovH','start','add\x20<profile-name>','Vztph','mqGmi','XVApq','vvZCm','log','NNgxn','token','BQCxY','XiLXT','debug-address-comments','xjPNv','787852NiQWcC','delete','Wktfm','evaluationReason','mBEdg','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','VRCgS','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','IJGvp','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','fzQVL','parse','enable','resume\x20[id]','\x0aIssues:','force','kCbAQ','LXudS','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','LpnnL','\x20FAILED','kccRt','claude','IVKVB','feature\x20list','value','FNtkx','base-url','Gtiwb','restore','EvQDA','profile\x20config\x20set','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','OUuXS','restore\x20<id>','Manage\x20profile\x20configuration','--scenario','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','ranger\x20profile\x20encrypt-auth','ranger\x20resume','bAiQP','\x20VERIFIED','MjpNx','uvOAW','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','encrypt\x20<profile>','bQqug','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','scope','IGrbN','CgJao','Evaluation:\x20','XMILx','EhwUa','model','cxGHC','task','GbWML','DyzwE','GiHWx','Name\x20of\x20the\x20profile\x20to\x20update','kUzvC','verified','feature\x20create','SRUci','feature\x20restore','map','BJXBz','opencode','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','ranger\x20feature\x20show','add-checklist-item\x20<description>','EyyHd','GDmKJ','cfMbk','get\x20<env>\x20<key>','New\x20scenario\x20description','Environment\x20name','key','ranger\x20show','checklist','positional','LgMqc','hook:disable','tNIeN','5FvaQzc','FgybV','cwd','root','profile\x20ls','config\x20get','skip-auth','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','demandCommand','zxKZZ','jSHjp','ksYQB','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','pHmId','yCsPg','list','YYzas','CvATi','ranger\x20feature\x20list','ranger\x20profile\x20config\x20get','uxZTm','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','tbCxC','VyRIA','sCPER','GTJyd','YnXFy','1513719YZJHvJ','Name\x20of\x20the\x20environment','Profile\x20name','4504hppNBq','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','PZVlx','eHsKa','3255832FZOvMJ','DTTMJ','edit-scenario','Mszhz','uqJVg','27369NWSyyi','bgdDn','OqRRI','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','ranger\x20profile\x20ls','session-id','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','feature\x20show','XnhgP','Set\x20a\x20config\x20value','EWSyr','array','ranger\x20profile\x20use','699506FuYpLF','status','cdp-endpoint','qCDZY','Unknown\x20command','url','\x0aError:\x20','ZHXCV','skillup','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','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','HtDdD','headed','tZoeD','profile\x20add','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.','add\x20env\x20<env-name>','yHMRh','JgTBK','iQiKN','yKeNe','ranger\x20feature\x20delete','azTxy','setup-ci','show\x20[id]','xyjhJ','aiCmB','ttlQW','rRPdO','unset\x20<env>\x20<key>','GDCgV','zEWEW','Feature\x20review\x20ID\x20to\x20restore','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','Add\x20profile\x20configuration','allow-insecure-localhost','option','wQypr','SXbby','LKEeO','\x20PARTIAL','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','ysoVN','WWzxY','string','jZLcY','BbCES','Include\x20soft-deleted\x20feature\x20reviews','offset','issues','oUZgs','2643486LefJqT','command','lHIzB','name','Manage\x20profiles','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','vrQlB','QBvAN','Scenario\x20description','boolean','JvAUM','env','PNYBq','CzLpj','RiYAj','start-path','exit','cacyd','safe-mode','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','QZcLb','unset\x20<profile>\x20<key>','debug-outcome','get-feedback\x20[id]','Name\x20of\x20the\x20environment\x20to\x20update','4640223ZNzowg','exitCode','Scenario\x20index\x20(1-based)','ranger\x20profile\x20add','HYkOP','forEach','jhZel','project','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','help','gQLSy','argv','vaiSv','.env','Faabb','set\x20<env>\x20<key>\x20<value>','SQIor','env-name','ranger\x20start','incomplete','epilogue','number','List\x20all\x20feature\x20reviews','yvlee','YZHlT','uGpJR','EKmqx','sNOOk','wNoOn','config\x20unset','slice','--checklist','profile','zYqwB','You\x20must\x20specify\x20a\x20profile\x20subcommand','qLPXL','item','profile\x20config\x20list','default','PkvHc','add\x20env','OjFUk','ranger\x20profile\x20config\x20unset','feature\x20get-feedback','jNCPc','ESkkp','get-review\x20[id]','duixr','fojJf','vpXmw','usage','feature\x20resume','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','report\x20[id]','config','current-branch','ranger\x20profile\x20config\x20set'];_0x57e3=function(){return _0x2d4316;};return _0x57e3();}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 _0x45dd4e=>{const _0x548c5c=_0x11ad69,_0x373041=getCurrentCollector();_0x373041&&await _0x373041['trackCommandError'](_0x45dd4e),process[_0x548c5c(0x294)]=0x1;});const rawArgs=process['argv']['slice'](0x2),TOP_LEVEL_HELP=_0x11ad69(0x256),PROFILE_HELP=_0x11ad69(0x2d7),PROFILE_CONFIG_HELP=_0x11ad69(0x251);function warnRenamed(_0x3234ff,_0x1275dc){console['error']('\x0a'+_0x3234ff+'\x20is\x20now\x20'+_0x1275dc+'\x0a');}function argUsed(_0x5d92e6){const _0x281630=_0x11ad69;return rawArgs['some'](_0x2256bc=>_0x2256bc===_0x5d92e6||_0x2256bc[_0x281630(0x2fe)](_0x5d92e6+'='));}function warnFlagRenamed(_0x134f39,_0x5688ff,_0x1de8dc){argUsed(_0x5688ff)&&warnRenamed(_0x134f39+'\x20'+_0x5688ff,_0x134f39+'\x20'+_0x1de8dc);}async function runGoCommand(_0x5c096d,_0x4ffb53=![]){const _0x4c76fe=_0x11ad69,_0x1f2664={'UvnRf':function(_0x1b67d9,_0x787f02){return _0x1b67d9+_0x787f02;},'jhZel':function(_0x11119b,_0x1e1b0d,_0x2bedf7){return _0x11119b(_0x1e1b0d,_0x2bedf7);},'BbCES':'ranger\x20verify-feature','FgybV':'ranger\x20go','dqSpj':function(_0x2334f0,_0x2e3a44,_0x57b18b,_0x5d348f){return _0x2334f0(_0x2e3a44,_0x57b18b,_0x5d348f);},'HtDdD':function(_0xed2cf,_0x47642f,_0x3dcd2d,_0x27c10){return _0xed2cf(_0x47642f,_0x3dcd2d,_0x27c10);},'wgUvi':'--task','papCy':_0x4c76fe(0x1df),'Ljnon':function(_0x1e8ff5){return _0x1e8ff5();},'dscgv':'flag','cMiLx':_0x4c76fe(0x2c9),'HpWMV':function(_0x4f5eef,_0x4edcdc){return _0x4f5eef(_0x4edcdc);},'MfqGr':_0x4c76fe(0x289),'vrQlB':_0x4c76fe(0x290),'zheyu':_0x4c76fe(0x1b9),'RLCNG':_0x4c76fe(0x1fa),'FWZQA':_0x4c76fe(0x1e5),'PkvHc':'incomplete','KtRsp':'\x20INCOMPLETE','glbDq':function(_0x5cb62c,_0x56bc35){return _0x5cb62c===_0x56bc35;},'hfdxw':'blocked','SNSMt':_0x4c76fe(0x1cf),'PNYBq':_0x4c76fe(0x1c9),'vDqto':function(_0xcbc715,_0x421046){return _0xcbc715===_0x421046;}};_0x4ffb53&&_0x1f2664[_0x4c76fe(0x299)](warnRenamed,_0x1f2664[_0x4c76fe(0x275)],_0x1f2664['FgybV']);_0x1f2664['dqSpj'](warnFlagRenamed,'ranger\x20go',_0x4c76fe(0x2d6),'--profile'),_0x1f2664[_0x4c76fe(0x252)](warnFlagRenamed,_0x1f2664[_0x4c76fe(0x212)],_0x1f2664['wgUvi'],'--notes'),_0x1f2664['HtDdD'](warnFlagRenamed,'ranger\x20go',_0x4c76fe(0x1a4),_0x1f2664['papCy']);const _0x1b4820=await _0x1f2664[_0x4c76fe(0x2d2)](loadRangerConfig),_0x1ff99b=_0x5c096d[_0x4c76fe(0x1f2)],_0x1df4dc=_0x1b4820['model'],_0xadb20=_0x1ff99b??_0x1df4dc,_0x2e41c2=_0x1ff99b?_0x1f2664[_0x4c76fe(0x2ce)]:_0x1df4dc?_0x1f2664['cMiLx']:_0x4c76fe(0x2b9),_0x450a5c=await _0x1f2664['HpWMV'](verifyFeature,{'featureId':_0x5c096d['feature'],'profile':_0x5c096d['profile']??_0x5c096d[_0x4c76fe(0x285)],'notes':_0x5c096d[_0x4c76fe(0x2f4)]??_0x5c096d[_0x4c76fe(0x1f4)],'scenario':_0x5c096d['scenario']??_0x5c096d['item'],'startPath':_0x5c096d[_0x1f2664['MfqGr']],'debugOutcome':_0x5c096d[_0x1f2664[_0x4c76fe(0x280)]],'debugAddressComments':_0x5c096d[_0x1f2664['zheyu']],'headed':_0x5c096d['headed'],'verifyModel':_0xadb20,'verifyModelInput':_0xadb20,'verifyModelSource':_0x2e41c2});console['log']('\x0a'+'='['repeat'](0x3c)),console[_0x4c76fe(0x1b4)](_0x450a5c['evaluation']===_0x1f2664[_0x4c76fe(0x2ef)]?_0x1f2664[_0x4c76fe(0x19e)]:_0x450a5c[_0x4c76fe(0x2f7)]===_0x1f2664[_0x4c76fe(0x2ba)]?_0x1f2664['KtRsp']:_0x450a5c['evaluation']===_0x4c76fe(0x2f6)?_0x4c76fe(0x26f):_0x1f2664['glbDq'](_0x450a5c['evaluation'],_0x1f2664['hfdxw'])?'\x20BLOCKED':_0x1f2664['SNSMt']),console['log']('='['repeat'](0x3c)),console[_0x4c76fe(0x1b4)]('Summary:\x20'+_0x450a5c['summary']),console[_0x4c76fe(0x1b4)](_0x4c76fe(0x1ef)+_0x450a5c['evaluation']),console['log']('Reason:\x20'+_0x450a5c[_0x4c76fe(0x1be)]),_0x450a5c['issues']?.['length']&&(console[_0x4c76fe(0x1b4)](_0x1f2664[_0x4c76fe(0x286)]),_0x450a5c[_0x4c76fe(0x278)][_0x4c76fe(0x298)]((_0x574da8,_0x4bf735)=>{const _0x3825c4=_0x4c76fe;console[_0x3825c4(0x1b4)]('\x0a'+_0x1f2664['UvnRf'](_0x4bf735,0x1)+'.\x20['+_0x574da8['severity']+']\x20'+_0x574da8['description']);})),process[_0x4c76fe(0x28a)](_0x1f2664['vDqto'](_0x450a5c[_0x4c76fe(0x2f7)],'verified')?0x0:0x1);}_0x91e5d9(process[_0x11ad69(0x29e)]['slice'](0x2))['scriptName']('ranger')['usage'](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0x11ad69(0x27b)](_0x11ad69(0x2e7),_0x11ad69(0x2ea),_0x41e721=>{const _0xfd8bcc=_0x11ad69,_0x35a602={'LnZdT':_0xfd8bcc(0x2cf),'yHMRh':_0xfd8bcc(0x1ac),'zEWEW':_0xfd8bcc(0x2f2),'qLPXL':'scenario','sCPER':'array','fEhHG':_0xfd8bcc(0x20c)};return _0x41e721['positional'](_0xfd8bcc(0x27d),{'type':'string','description':_0x35a602['LnZdT'],'demandOption':!![]})[_0xfd8bcc(0x26b)](_0x35a602[_0xfd8bcc(0x258)],{'type':'string','alias':'d','description':_0x35a602[_0xfd8bcc(0x266)]})['option'](_0x35a602[_0xfd8bcc(0x2b6)],{'type':_0x35a602['sCPER'],'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x35a602['fEhHG'],{'type':_0x35a602[_0xfd8bcc(0x229)],'hidden':!![]});},async _0x2254d2=>{const _0xf211b1=_0x11ad69,_0x119c2d={'yApVN':'ranger\x20create','YwHsb':_0xf211b1(0x1df),'CzLpj':function(_0x1c0dd8,_0x258293,_0x62990a){return _0x1c0dd8(_0x258293,_0x62990a);},'qXONO':'create'};warnFlagRenamed(_0x119c2d[_0xf211b1(0x2fa)],'--checklist',_0x119c2d['YwHsb']);const _0x217c70=_0x2254d2['scenario']||_0x2254d2['checklist'];await _0x119c2d[_0xf211b1(0x287)](withTelemetry,_0x119c2d['qXONO'],()=>featureCreate(_0x2254d2['name'],{'description':_0x2254d2['description'],'scenarios':_0x217c70}));})[_0x11ad69(0x27b)](_0x11ad69(0x220),_0x11ad69(0x2a9),_0x229b46=>{const _0x3706df=_0x11ad69,_0x2a2de6={'tbCxC':'limit','ttlQW':_0x3706df(0x2a8)};return _0x229b46['option'](_0x3706df(0x2ca),{'type':_0x3706df(0x283),'description':_0x3706df(0x1c0)})[_0x3706df(0x26b)](_0x2a2de6[_0x3706df(0x227)],{'type':_0x2a2de6[_0x3706df(0x262)],'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})[_0x3706df(0x26b)](_0x3706df(0x277),{'type':_0x2a2de6[_0x3706df(0x262)],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x3706df(0x26b)](_0x3706df(0x2d9),{'type':'boolean','alias':'d','description':_0x3706df(0x276),'default':![]});},async _0x4db4ff=>{const _0xeb01b=_0x11ad69,_0x5957ee={'KEsjx':_0xeb01b(0x220)};await withTelemetry(_0x5957ee['KEsjx'],()=>featureList({'currentBranch':_0x4db4ff['current-branch'],'limit':_0x4db4ff[_0xeb01b(0x19f)],'offset':_0x4db4ff[_0xeb01b(0x277)],'includeDeleted':_0x4db4ff[_0xeb01b(0x2d9)]}));})['command'](_0x11ad69(0x25f),'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x3f80da=>{const _0x43fad0=_0x11ad69;return _0x3f80da['positional']('id',{'type':'string','description':_0x43fad0(0x2fd)});},async _0x2ac1c8=>{await withTelemetry('show',()=>featureShow(_0x2ac1c8['id']));})['command'](_0x11ad69(0x1c8),_0x11ad69(0x1eb),_0x5d89fe=>{const _0x70776d=_0x11ad69,_0x5ddeeb={'VyRIA':_0x70776d(0x273)};return _0x5d89fe[_0x70776d(0x20d)]('id',{'type':_0x5ddeeb[_0x70776d(0x228)],'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x19f643=>{const _0x31aeb9=_0x11ad69,_0x1da089={'aiCmB':function(_0x511d6c,_0x5447ea,_0x2505f5){return _0x511d6c(_0x5447ea,_0x2505f5);},'XiLXT':'resume'};await _0x1da089[_0x31aeb9(0x261)](withTelemetry,_0x1da089[_0x31aeb9(0x1b8)],()=>featureResume(_0x19f643['id']));})['command']('add-scenario\x20<description>','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x50d0cd=>{const _0x106c83=_0x11ad69,_0x414cf1={'Gtiwb':'Scenario\x20description'};return _0x50d0cd['positional'](_0x106c83(0x1ac),{'type':_0x106c83(0x273),'description':_0x414cf1[_0x106c83(0x1d7)],'demandOption':!![]})[_0x106c83(0x26b)]('id',{'type':'string','description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x5b8bb6=>{const _0x5ede5e=_0x11ad69;await withTelemetry('add-scenario',()=>featureAddScenario(_0x5b8bb6[_0x5ede5e(0x1ac)],_0x5b8bb6['id']));})[_0x11ad69(0x27b)]('edit-scenario\x20<description>','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x390342=>{const _0x5ddeaa=_0x11ad69,_0x416b0b={'LgMqc':'string','mSSAE':_0x5ddeaa(0x208),'OjFUk':'scenario','oUZgs':'Scenario\x20number\x20to\x20edit\x20(1-based)'};return _0x390342[_0x5ddeaa(0x20d)](_0x5ddeaa(0x1ac),{'type':_0x416b0b[_0x5ddeaa(0x20e)],'description':_0x416b0b['mSSAE'],'demandOption':!![]})['option'](_0x416b0b[_0x5ddeaa(0x2bc)],{'type':'number','description':_0x416b0b[_0x5ddeaa(0x279)],'demandOption':!![]})[_0x5ddeaa(0x26b)]('id',{'type':_0x416b0b[_0x5ddeaa(0x20e)],'description':_0x5ddeaa(0x21d)});},async _0x2dc5dc=>{const _0x12fc10=_0x11ad69;await withTelemetry(_0x12fc10(0x237),()=>featureEditScenario(_0x2dc5dc[_0x12fc10(0x1ac)],{'id':_0x2dc5dc['id'],'scenario':_0x2dc5dc[_0x12fc10(0x30b)]}));})[_0x11ad69(0x27b)](_0x11ad69(0x2c8),'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x236b21=>{const _0x5d976d=_0x11ad69,_0x40c536={'MZalM':_0x5d976d(0x245),'jkFCi':'json'};return _0x236b21['positional']('id',{'type':_0x5d976d(0x273),'description':_0x5d976d(0x2fd)})['option'](_0x5d976d(0x307),{'type':_0x40c536[_0x5d976d(0x2df)],'description':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'})[_0x5d976d(0x26b)](_0x40c536['jkFCi'],{'type':_0x5d976d(0x283),'description':_0x5d976d(0x1db),'default':![]});},async _0x1d9cab=>{const _0x34c864=_0x11ad69,_0x44a095=_0x1d9cab[_0x34c864(0x307)],_0x543f1a=_0x44a095?_0x44a095[_0x34c864(0x1fe)](_0x12187f=>Number(_0x12187f)):undefined;await withTelemetry('report',()=>featureReportPrDescription(_0x1d9cab['id'],{'excludeScenarios':_0x543f1a,'json':_0x1d9cab[_0x34c864(0x303)]}));})['command'](_0x11ad69(0x2c1),'Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x1350d6=>{const _0x5c27d4=_0x11ad69,_0x4af940={'mBEdg':_0x5c27d4(0x21d)};return _0x1350d6['positional']('id',{'type':_0x5c27d4(0x273),'description':_0x4af940[_0x5c27d4(0x1bf)]});},async _0x59a5d6=>{const _0x44c4ff=_0x11ad69,_0x3bde23={'WxYZb':function(_0x5c7cfe,_0x3f2a42,_0x42a8af){return _0x5c7cfe(_0x3f2a42,_0x42a8af);},'FPiTK':_0x44c4ff(0x2d3)};await _0x3bde23[_0x44c4ff(0x2ec)](withTelemetry,_0x3bde23['FPiTK'],()=>featureGetReview(_0x59a5d6['id']));})['command']('delete\x20[id]',_0x11ad69(0x226),_0x45d24e=>{return _0x45d24e['positional']('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0x2b8916=>{const _0x2c8fe3=_0x11ad69,_0x1aef94={'RsbFO':function(_0x4e1cd6,_0x4327a9,_0x1ca06b){return _0x4e1cd6(_0x4327a9,_0x1ca06b);}};await _0x1aef94['RsbFO'](withTelemetry,_0x2c8fe3(0x1bc),()=>featureDelete(_0x2b8916['id']));})['command'](_0x11ad69(0x1dd),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x187693=>{return _0x187693['positional']('id',{'type':'string','description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x5dda29=>{const _0x20f197=_0x11ad69,_0x3dac99={'vaiSv':function(_0x431063,_0x188340,_0x2066f7){return _0x431063(_0x188340,_0x2066f7);},'jgkOK':_0x20f197(0x1d8)};await _0x3dac99[_0x20f197(0x29f)](withTelemetry,_0x3dac99['jgkOK'],()=>featureRestore(_0x5dda29['id']));})['command'](_0x11ad69(0x2e5),'Initialize\x20Ranger\x20in\x20your\x20project',_0xe72859=>{const _0x28681b=_0x11ad69,_0x4b14ff={'hwNCz':'skip-chromium','FqyZF':_0x28681b(0x230),'aBnks':'scope','waKbw':'user','ZHXCV':_0x28681b(0x29a),'pHmId':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','SXbby':'url','QBvAN':'string','HYkOP':_0x28681b(0x232),'bAiQP':_0x28681b(0x283),'QZcLb':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)'};return _0xe72859['positional']('token',{'type':_0x28681b(0x273),'description':_0x28681b(0x201)})[_0x28681b(0x26b)](_0x4b14ff[_0x28681b(0x304)],{'type':_0x28681b(0x283),'description':_0x4b14ff[_0x28681b(0x2cd)],'default':![]})[_0x28681b(0x26b)](_0x4b14ff[_0x28681b(0x2d8)],{'type':_0x28681b(0x273),'choices':[_0x4b14ff['waKbw'],_0x4b14ff[_0x28681b(0x24e)]],'description':_0x4b14ff[_0x28681b(0x21e)]})['option'](_0x4b14ff[_0x28681b(0x26d)],{'type':_0x4b14ff[_0x28681b(0x281)],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option']('force',{'type':_0x28681b(0x283),'description':_0x4b14ff[_0x28681b(0x297)],'default':![]})[_0x28681b(0x26b)](_0x28681b(0x200),{'type':_0x4b14ff['bAiQP'],'description':_0x4b14ff[_0x28681b(0x28e)],'default':![]})['option'](_0x28681b(0x26a),{'type':_0x4b14ff[_0x28681b(0x1e4)],'description':_0x28681b(0x1c2),'default':![]});},async _0x204089=>{const _0x5200e8=_0x11ad69,_0x5e5b66={'FQBWT':function(_0x3cd489,_0x2f76a6,_0x5c9bd1){return _0x3cd489(_0x2f76a6,_0x5c9bd1);}};await _0x5e5b66[_0x5200e8(0x2da)](withTelemetry,_0x5200e8(0x1ae),_0x128c62=>start(_0x204089['token'],{'skipChromium':_0x204089['skip-chromium'],'scope':_0x204089[_0x5200e8(0x1ec)],'url':_0x204089[_0x5200e8(0x24c)],'force':_0x204089['force'],'opencode':_0x204089[_0x5200e8(0x200)],'allowInsecureLocalhost':_0x204089[_0x5200e8(0x26a)]},_0x128c62));})['command']('setup-ci\x20<token>',_0x11ad69(0x1c4),_0x36776f=>{const _0x3565ac=_0x11ad69,_0x2ca852={'cHtGG':'Ranger\x20API\x20token','AeZGp':'profile','jZLcY':'skip-chromium','BJXBz':'boolean'};return _0x36776f[_0x3565ac(0x20d)](_0x3565ac(0x1b6),{'type':_0x3565ac(0x273),'description':_0x2ca852['cHtGG'],'demandOption':!![]})['option'](_0x2ca852['AeZGp'],{'type':'string','description':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)'})['option'](_0x3565ac(0x1d6),{'type':_0x3565ac(0x273),'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})[_0x3565ac(0x26b)](_0x2ca852[_0x3565ac(0x274)],{'type':_0x2ca852[_0x3565ac(0x1ff)],'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x1d5e0d=>{const _0x290d9d=_0x11ad69,_0x50f798={'ELUgf':_0x290d9d(0x25e)};await withTelemetry(_0x50f798['ELUgf'],_0x5a52e3=>setupCi(_0x1d5e0d['token'],{'profile':_0x1d5e0d['profile'],'baseUrl':_0x1d5e0d[_0x290d9d(0x1d6)],'skipChromium':_0x1d5e0d['skip-chromium']},_0x5a52e3));})['command']('login','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{await withTelemetry('login',()=>login());})['command'](_0x11ad69(0x24f),_0x11ad69(0x2f1),_0x12c46a=>{const _0x596c3b=_0x11ad69,_0x4329ca={'kUzvC':'opencode','wdEbE':'scope','zxKZZ':_0x596c3b(0x273),'YnXFy':_0x596c3b(0x29a),'fWVaC':'Install\x20scope\x20for\x20skills'};return _0x12c46a['option'](_0x4329ca[_0x596c3b(0x1f9)],{'type':'boolean','description':'Install\x20skills\x20for\x20OpenCode','default':![]})['option'](_0x4329ca['wdEbE'],{'type':_0x4329ca[_0x596c3b(0x21a)],'choices':['user',_0x4329ca[_0x596c3b(0x22b)]],'description':_0x4329ca[_0x596c3b(0x306)]});},async _0x51f05a=>{const _0x4abc28=_0x11ad69,_0x141719={'Wktfm':function(_0x5ebf15,_0x290d81){return _0x5ebf15(_0x290d81);},'tPOIb':function(_0x3aa764,_0x305d98,_0x32fc96){return _0x3aa764(_0x305d98,_0x32fc96);}},_0x24bcf6=_0x141719[_0x4abc28(0x1bd)](Boolean,_0x51f05a[_0x4abc28(0x200)]);await _0x141719['tPOIb'](withTelemetry,'skillup',()=>skillup({'autoInstall':_0x51f05a['scope'],'platform':_0x24bcf6?'opencode':_0x4abc28(0x1d1)}));})['command']('clean',_0x11ad69(0x23d),()=>{},async()=>{const _0x2bd98e=_0x11ad69,_0x1f5bfc={'txeHx':function(_0x26ac81,_0x2186c9,_0x3fc5c3){return _0x26ac81(_0x2186c9,_0x3fc5c3);}};await _0x1f5bfc['txeHx'](withTelemetry,_0x2bd98e(0x2ed),()=>clean());})[_0x11ad69(0x27b)]('profile',_0x11ad69(0x27e),_0x3384c7=>{const _0x3063e8=_0x11ad69,_0x44244e={'HfMCN':_0x3063e8(0x1a5),'fKnTM':'boolean','RZDQD':'skip-auth','Mszhz':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','KKzXY':_0x3063e8(0x232),'jcPyy':_0x3063e8(0x249),'ckuxy':'allow-insecure-localhost','cacyd':'safe-mode','iQiKN':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','uqJVg':function(_0x52af56,_0x4d8006,_0xcf8d84,_0x4520fc){return _0x52af56(_0x4d8006,_0xcf8d84,_0x4520fc);},'CgGBN':_0x3063e8(0x273),'GbWML':_0x3063e8(0x1a0),'RiYAj':'profile','WWzxY':_0x3063e8(0x22e),'GDCgV':function(_0xd78b80,_0x313f6c,_0x55b674){return _0xd78b80(_0x313f6c,_0x55b674);},'xYGTf':'profile\x20encrypt-auth','XAMZy':_0x3063e8(0x215),'BQCxY':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','YZHlT':_0x3063e8(0x2f5),'EKmqx':function(_0x53c871,_0x5875d9,_0x45e19c){return _0x53c871(_0x5875d9,_0x45e19c);},'Mdgmj':_0x3063e8(0x1a3),'OcRPQ':_0x3063e8(0x2b8),'Oqttm':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','AjGzv':function(_0x10d6fd,_0x47abe1,_0x1b26f9){return _0x10d6fd(_0x47abe1,_0x1b26f9);},'jSHjp':'Config\x20key\x20to\x20remove','yspsD':'set\x20<profile>\x20<key>\x20<value>','bQqug':_0x3063e8(0x243),'uxZTm':_0x3063e8(0x1a7),'IVKVB':'Get\x20a\x20config\x20value','EWSyr':_0x3063e8(0x28f),'TNyDJ':_0x3063e8(0x269),'cNKTb':'Switch\x20to\x20using\x20a\x20specific\x20profile','gDdxe':'encrypt-auth\x20<profile>','kCbAQ':_0x3063e8(0x240),'MjpNx':'List\x20all\x20profiles','XpwVM':_0x3063e8(0x2c9),'JEJzG':_0x3063e8(0x1de),'NBXbm':_0x3063e8(0x2b5)};return _0x3384c7[_0x3063e8(0x2c5)](PROFILE_HELP)[_0x3063e8(0x27b)](_0x3063e8(0x1af),_0x44244e[_0x3063e8(0x2db)],_0x2182b2=>{const _0x2b6208=_0x3063e8;return _0x2182b2[_0x2b6208(0x20d)](_0x44244e[_0x2b6208(0x2ff)],{'type':_0x2b6208(0x273),'description':_0x2b6208(0x270),'demandOption':!![]})['option']('ci',{'type':_0x44244e[_0x2b6208(0x2d1)],'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x44244e['RZDQD'],{'type':_0x44244e['fKnTM'],'description':_0x44244e[_0x2b6208(0x238)],'default':![]})[_0x2b6208(0x26b)](_0x2b6208(0x24c),{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})[_0x2b6208(0x26b)]('force',{'type':_0x2b6208(0x283),'description':_0x44244e['KKzXY'],'default':![]})['option'](_0x44244e['jcPyy'],{'type':'string','description':_0x2b6208(0x301)})['option'](_0x44244e['ckuxy'],{'type':_0x44244e['fKnTM'],'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]})['option'](_0x44244e[_0x2b6208(0x28b)],{'type':'boolean','description':_0x44244e[_0x2b6208(0x25a)],'default':![]});},async _0x1a8696=>{const _0x73f980=_0x3063e8;await _0x44244e[_0x73f980(0x239)](withTelemetry,_0x73f980(0x255),_0x45a5b8=>addEnv(_0x1a8696['profile-name'],{'ci':_0x1a8696['ci'],'skipAuth':_0x1a8696[_0x73f980(0x217)],'url':_0x1a8696[_0x73f980(0x24c)],'force':_0x1a8696['force'],'cdpEndpoint':_0x1a8696[_0x73f980(0x249)],'allowInsecureLocalhost':_0x1a8696[_0x73f980(0x26a)],'safeMode':_0x1a8696[_0x73f980(0x28c)]},_0x45a5b8),{'isElectron':Boolean(_0x1a8696['cdp-endpoint'])});})[_0x3063e8(0x27b)]('use\x20<profile-name>',_0x44244e[_0x3063e8(0x2e0)],_0x162619=>{const _0x1bc13b=_0x3063e8;return _0x162619['positional'](_0x44244e[_0x1bc13b(0x2ff)],{'type':_0x44244e['CgGBN'],'description':_0x44244e[_0x1bc13b(0x1f5)],'demandOption':!![]});},async _0x3c59bf=>{const _0x7752ff=_0x3063e8;await withTelemetry('profile\x20use',()=>useEnv(_0x3c59bf[_0x7752ff(0x1a5)]));})['command'](_0x44244e['gDdxe'],_0x44244e[_0x3063e8(0x1cb)],_0x116478=>{const _0x238fbe=_0x3063e8;return _0x116478['positional'](_0x44244e['RiYAj'],{'type':_0x44244e['CgGBN'],'description':_0x44244e[_0x238fbe(0x272)],'demandOption':!![]});},async _0x38e85f=>{const _0x3fd5cb=_0x3063e8;await _0x44244e['GDCgV'](withTelemetry,_0x44244e[_0x3fd5cb(0x309)],()=>authEncrypt(_0x38e85f[_0x3fd5cb(0x2b3)]));})['command']('ls',_0x44244e[_0x3063e8(0x1e6)],()=>{},async()=>{await _0x44244e['GDCgV'](withTelemetry,_0x44244e['XAMZy'],()=>envList());})['command']('update\x20<profile-name>','Update\x20authentication\x20for\x20an\x20existing\x20profile',_0xfb6ae7=>{const _0x2a4c83=_0x3063e8;return _0xfb6ae7['positional'](_0x44244e[_0x2a4c83(0x2ff)],{'type':_0x44244e['CgGBN'],'description':_0x2a4c83(0x1f8),'demandOption':!![]})[_0x2a4c83(0x26b)](_0x2a4c83(0x26a),{'type':_0x2a4c83(0x283),'description':_0x44244e[_0x2a4c83(0x1b7)]});},async _0x421fb1=>{const _0x299a08=_0x3063e8;await _0x44244e[_0x299a08(0x265)](withTelemetry,_0x44244e[_0x299a08(0x2ab)],_0x22f3ab=>updateEnv(_0x421fb1[_0x299a08(0x1a5)],_0x22f3ab,{'allowInsecureLocalhost':_0x421fb1[_0x299a08(0x26a)]}));})[_0x3063e8(0x27b)](_0x44244e['XpwVM'],_0x44244e['JEJzG'],_0x595f79=>{const _0x5f1b7e=_0x3063e8,_0x40f007={'gzyZP':_0x44244e[_0x5f1b7e(0x288)],'Vztph':_0x5f1b7e(0x20a),'hOGrk':_0x44244e['Oqttm'],'hZcdc':_0x44244e[_0x5f1b7e(0x2cc)],'Faabb':'Config\x20value','lHIzB':function(_0x127c95,_0x435c4f,_0x26c418){return _0x44244e['AjGzv'](_0x127c95,_0x435c4f,_0x26c418);},'mlWrJ':_0x44244e[_0x5f1b7e(0x21b)]};return _0x595f79['usage'](PROFILE_CONFIG_HELP)[_0x5f1b7e(0x27b)](_0x44244e['yspsD'],_0x44244e[_0x5f1b7e(0x1ea)],_0x219260=>{const _0x4efaf6=_0x5f1b7e;return _0x219260[_0x4efaf6(0x20d)](_0x40f007['gzyZP'],{'type':'string','description':'Profile\x20name','demandOption':!![]})['positional'](_0x40f007[_0x4efaf6(0x1b0)],{'type':'string','description':_0x40f007['hOGrk'],'demandOption':!![]})[_0x4efaf6(0x20d)](_0x4efaf6(0x1d4),{'type':_0x40f007['hZcdc'],'description':_0x40f007[_0x4efaf6(0x2a1)],'demandOption':!![]});},async _0x365702=>{const _0x2f2269=_0x5f1b7e;await _0x40f007[_0x2f2269(0x27c)](withTelemetry,_0x2f2269(0x1da),()=>configSet(_0x365702['profile'],_0x365702['key'],_0x365702[_0x2f2269(0x1d4)]));})['command'](_0x44244e[_0x5f1b7e(0x225)],_0x44244e[_0x5f1b7e(0x1d2)],_0x5eac25=>{const _0x47971d=_0x5f1b7e;return _0x5eac25['positional'](_0x40f007[_0x47971d(0x2e8)],{'type':'string','description':'Profile\x20name','demandOption':!![]})[_0x47971d(0x20d)](_0x47971d(0x20a),{'type':_0x40f007['hZcdc'],'description':_0x47971d(0x2f3),'demandOption':!![]});},async _0x189167=>{const _0x27c43d=_0x5f1b7e;await _0x44244e[_0x27c43d(0x2ad)](withTelemetry,_0x44244e[_0x27c43d(0x2e9)],()=>configGet(_0x189167[_0x27c43d(0x2b3)],_0x189167[_0x27c43d(0x20a)]));})['command']('list\x20<profile>','List\x20all\x20config\x20for\x20a\x20profile',_0x52c5eb=>{return _0x52c5eb['positional'](_0x44244e['RiYAj'],{'type':'string','description':'Profile\x20name','demandOption':!![]});},async _0x4cb799=>{await _0x44244e['GDCgV'](withTelemetry,_0x44244e['OcRPQ'],()=>configList(_0x4cb799['profile']));})['command'](_0x44244e[_0x5f1b7e(0x244)],'Remove\x20a\x20config\x20value',_0x111cdb=>{const _0x154191=_0x5f1b7e;return _0x111cdb['positional'](_0x40f007['gzyZP'],{'type':'string','description':_0x154191(0x22e),'demandOption':!![]})['positional']('key',{'type':_0x40f007['hZcdc'],'description':_0x40f007['mlWrJ'],'demandOption':!![]});},async _0x68d6b=>{const _0x415799=_0x5f1b7e;await withTelemetry('profile\x20config\x20unset',()=>configUnset(_0x68d6b['profile'],_0x68d6b[_0x415799(0x20a)]));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand');})['demandCommand'](0x1,_0x44244e['NBXbm']);})['command'](_0x11ad69(0x248),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x1ab697={'HTqbz':function(_0x112b5f,_0x3e865e,_0x36f216){return _0x112b5f(_0x3e865e,_0x36f216);}};await _0x1ab697['HTqbz'](withTelemetry,'status',()=>status());})['command']('update',_0x11ad69(0x1e8),()=>{},async()=>{const _0x111879=_0x11ad69,_0x290356={'qCDZY':function(_0x16a157,_0x1396ad,_0x5a3979){return _0x16a157(_0x1396ad,_0x5a3979);},'MNIuN':'update'};await _0x290356[_0x111879(0x24a)](withTelemetry,_0x290356['MNIuN'],()=>update());})[_0x11ad69(0x27b)]('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x53c0a1=>{const _0x566bed=_0x11ad69,_0xc2e40e={'HMKxQ':'string','Loxyo':'Optional\x20feature\x20ID','AyUGL':'scenario','wpgDd':_0x566bed(0x295),'CvATi':_0x566bed(0x289),'JHXCF':_0x566bed(0x29b),'vvZCm':_0x566bed(0x1f2),'GiHWx':_0x566bed(0x1e1),'LuWYo':_0x566bed(0x283),'yKeNe':_0x566bed(0x30a),'xvCHw':_0x566bed(0x2f6),'yTDzi':'blocked','UbkMN':'debug-address-comments','jNCPc':_0x566bed(0x285),'GKtXW':_0x566bed(0x1f4),'mlrEq':_0x566bed(0x2b7)};return _0x53c0a1['option']('feature',{'type':_0xc2e40e[_0x566bed(0x1a1)],'description':_0xc2e40e['Loxyo']})[_0x566bed(0x26b)]('profile',{'type':'string','description':_0x566bed(0x231)})[_0x566bed(0x26b)]('notes',{'type':_0x566bed(0x273),'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})[_0x566bed(0x26b)](_0xc2e40e[_0x566bed(0x1a6)],{'type':'number','description':_0xc2e40e['wpgDd']})[_0x566bed(0x26b)](_0xc2e40e[_0x566bed(0x222)],{'type':_0xc2e40e['HMKxQ'],'description':_0xc2e40e['JHXCF']})[_0x566bed(0x26b)](_0xc2e40e[_0x566bed(0x1b3)],{'type':'string','description':_0xc2e40e[_0x566bed(0x1f7)]})['option'](_0x566bed(0x253),{'type':_0xc2e40e['LuWYo'],'description':_0xc2e40e[_0x566bed(0x25b)],'default':![]})['option']('debug-outcome',{'type':_0xc2e40e['HMKxQ'],'hidden':!![],'choices':[_0x566bed(0x1fa),_0xc2e40e['xvCHw'],_0xc2e40e[_0x566bed(0x308)],'failed',_0x566bed(0x2a6)]})[_0x566bed(0x26b)](_0xc2e40e['UbkMN'],{'type':_0xc2e40e['LuWYo'],'hidden':!![]})[_0x566bed(0x26b)](_0xc2e40e[_0x566bed(0x2bf)],{'type':'string','hidden':!![]})['option'](_0xc2e40e[_0x566bed(0x2e6)],{'type':_0x566bed(0x273),'hidden':!![]})['option'](_0xc2e40e['mlrEq'],{'type':'number','hidden':!![]});},async _0x542998=>{const _0x48f6a3={'FoaDu':function(_0x37fbe4,_0x3e48c3){return _0x37fbe4(_0x3e48c3);}};await _0x48f6a3['FoaDu'](runGoCommand,_0x542998);})['command'](_0x11ad69(0x2eb),![],_0x53a024=>{const _0x3156c3=_0x11ad69,_0xdc2627={'xjPNv':'profile','bZPhC':function(_0x2d6b3b,_0x261792,_0x2af0e4){return _0x2d6b3b(_0x261792,_0x2af0e4);},'sNOOk':'ranger\x20auth\x20encrypt','WAfdy':_0x3156c3(0x1e2),'mDhft':function(_0x55c0bd,_0x501e4d){return _0x55c0bd(_0x501e4d);},'ZaTGE':_0x3156c3(0x1e9),'yvlee':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x53a024[_0x3156c3(0x27b)](_0xdc2627['ZaTGE'],![],_0x2d4d05=>{const _0x8a1e41=_0x3156c3;return _0x2d4d05[_0x8a1e41(0x20d)](_0xdc2627[_0x8a1e41(0x1ba)],{'type':'string','description':_0x8a1e41(0x22e),'demandOption':!![]});},async _0x2a5c06=>{const _0x2215d6=_0x3156c3;_0xdc2627[_0x2215d6(0x2e2)](warnRenamed,_0xdc2627[_0x2215d6(0x2ae)],_0xdc2627['WAfdy']),await _0xdc2627['mDhft'](authEncrypt,_0x2a5c06[_0x2215d6(0x2b3)]);})[_0x3156c3(0x219)](0x1,_0xdc2627[_0x3156c3(0x2aa)]);},()=>{})['command'](_0x11ad69(0x2fb),![],_0x3175f2=>{const _0x38f79f=_0x11ad69,_0x4e7a91={'FNtkx':_0x38f79f(0x1b6),'rRPdO':'skip-chromium','JnmkS':_0x38f79f(0x283),'wQypr':'user','sstDe':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','mkiJb':'string','tNIeN':_0x38f79f(0x1ca),'DTTMJ':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url'};return _0x3175f2['positional'](_0x4e7a91[_0x38f79f(0x1d5)],{'type':_0x38f79f(0x273),'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0x38f79f(0x26b)](_0x4e7a91[_0x38f79f(0x263)],{'type':_0x4e7a91['JnmkS'],'description':_0x38f79f(0x230),'default':![]})[_0x38f79f(0x26b)]('scope',{'type':'string','choices':[_0x4e7a91[_0x38f79f(0x26c)],'project'],'description':_0x4e7a91[_0x38f79f(0x2f9)]})[_0x38f79f(0x26b)](_0x38f79f(0x24c),{'type':_0x4e7a91['mkiJb'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x4e7a91[_0x38f79f(0x210)],{'type':'boolean','description':_0x4e7a91[_0x38f79f(0x236)],'default':![]});},async _0x4c7813=>{const _0x46fc7a=_0x11ad69,_0xa731d7={'zYqwB':function(_0x5b1894,_0x38f8d,_0x61c72d){return _0x5b1894(_0x38f8d,_0x61c72d);},'DiMlW':'ranger\x20setup'};_0xa731d7[_0x46fc7a(0x2b4)](warnRenamed,_0x46fc7a(0x2a5),_0xa731d7[_0x46fc7a(0x2d0)]),await _0xa731d7[_0x46fc7a(0x2b4)](withTelemetry,'start',_0x395438=>start(_0x4c7813[_0x46fc7a(0x1b6)],{'skipChromium':_0x4c7813['skip-chromium'],'scope':_0x4c7813['scope'],'url':_0x4c7813['url'],'force':_0x4c7813[_0x46fc7a(0x1ca)]},_0x395438));})['command']('verify-feature',![],_0x953f3d=>{const _0x2bfdcd=_0x11ad69,_0x3f8ca3={'WMfBX':_0x2bfdcd(0x285),'tZoeD':'string','IflRz':'task','nlovH':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','tgAUq':'number','OUjgP':_0x2bfdcd(0x295),'oyrQx':_0x2bfdcd(0x289),'FGYPX':'partial','GDmKJ':'failed'};return _0x953f3d[_0x2bfdcd(0x26b)](_0x3f8ca3['WMfBX'],{'type':_0x3f8ca3['tZoeD'],'description':_0x2bfdcd(0x231)})['option'](_0x3f8ca3[_0x2bfdcd(0x2dc)],{'type':'string','description':_0x3f8ca3[_0x2bfdcd(0x1ad)]})['option']('item',{'type':_0x3f8ca3['tgAUq'],'description':_0x3f8ca3['OUjgP']})[_0x2bfdcd(0x26b)]('profile',{'type':'string','hidden':!![]})['option'](_0x2bfdcd(0x2f4),{'type':'string','hidden':!![]})['option']('scenario',{'type':'number','hidden':!![]})[_0x2bfdcd(0x26b)](_0x3f8ca3['oyrQx'],{'type':'string','description':_0x2bfdcd(0x29b)})['option']('model',{'type':_0x3f8ca3[_0x2bfdcd(0x254)],'hidden':!![]})['option'](_0x2bfdcd(0x253),{'type':'boolean','hidden':!![],'default':![]})['option'](_0x2bfdcd(0x290),{'type':_0x3f8ca3['tZoeD'],'hidden':!![],'choices':[_0x2bfdcd(0x1fa),_0x3f8ca3['FGYPX'],'blocked',_0x3f8ca3[_0x2bfdcd(0x205)],_0x2bfdcd(0x2a6)]});},async _0x37b7bc=>{await runGoCommand(_0x37b7bc,!![]);})[_0x11ad69(0x27b)](_0x11ad69(0x257),![],_0x1479db=>{const _0x5684f4=_0x11ad69,_0x42703b={'ysoVN':'string','xyjhJ':_0x5684f4(0x2c7)};return _0x1479db[_0x5684f4(0x20d)](_0x5684f4(0x2a4),{'type':_0x42703b[_0x5684f4(0x271)],'description':_0x5684f4(0x1a8),'demandOption':!![]})[_0x5684f4(0x26b)]('ci',{'type':'boolean','description':_0x42703b[_0x5684f4(0x260)],'default':![]})[_0x5684f4(0x26b)]('skip-auth',{'type':_0x5684f4(0x283),'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]});},async _0x193210=>{const _0x1c37c0=_0x11ad69,_0x3a8a42={'ESkkp':function(_0x4adfc5,_0x29debc,_0x482e17){return _0x4adfc5(_0x29debc,_0x482e17);},'SbRHK':_0x1c37c0(0x296),'JvAUM':_0x1c37c0(0x2bb)};_0x3a8a42[_0x1c37c0(0x2c0)](warnRenamed,'ranger\x20add\x20env',_0x3a8a42[_0x1c37c0(0x1a2)]),await withTelemetry(_0x3a8a42[_0x1c37c0(0x284)],_0x14fc89=>addEnv(_0x193210['env-name'],{'ci':_0x193210['ci'],'skipAuth':_0x193210[_0x1c37c0(0x217)]},_0x14fc89));})['command']('use\x20<env-name>',![],_0x1657dd=>{const _0x5c5e73=_0x11ad69,_0x3eeb0b={'MtvAk':_0x5c5e73(0x2a4),'uvOAW':_0x5c5e73(0x22d)};return _0x1657dd['positional'](_0x3eeb0b['MtvAk'],{'type':_0x5c5e73(0x273),'description':_0x3eeb0b[_0x5c5e73(0x1e7)],'demandOption':!![]});},async _0x3e9e8b=>{const _0x55aa49=_0x11ad69,_0x538dd3={'YYzas':function(_0x222f51,_0xaa16ad,_0x12810d){return _0x222f51(_0xaa16ad,_0x12810d);}};warnRenamed('ranger\x20use',_0x55aa49(0x246)),await _0x538dd3[_0x55aa49(0x221)](withTelemetry,'use',()=>useEnv(_0x3e9e8b[_0x55aa49(0x2a4)]));})[_0x11ad69(0x27b)]('config',![],_0x3491a2=>{const _0x4ef246=_0x11ad69,_0x2111cb={'IJGvp':_0x4ef246(0x285),'duixr':_0x4ef246(0x20a),'CfNXF':'value','zcjhy':'string','jKBdq':_0x4ef246(0x209),'ARIPE':_0x4ef246(0x224),'PPqEW':'ranger\x20config\x20list','nYPMo':'ranger\x20profile\x20config\x20list','OqRRI':function(_0x53b06c,_0x336809,_0x1f15ea){return _0x53b06c(_0x336809,_0x1f15ea);},'EhwUa':_0x4ef246(0x207),'gQLSy':_0x4ef246(0x264),'KoOKz':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x3491a2['command'](_0x4ef246(0x2a2),![],_0x5bf605=>{const _0x368bd4=_0x4ef246;return _0x5bf605[_0x368bd4(0x20d)](_0x2111cb[_0x368bd4(0x1c3)],{'type':_0x368bd4(0x273),'description':_0x368bd4(0x209),'demandOption':!![]})[_0x368bd4(0x20d)](_0x2111cb[_0x368bd4(0x2c2)],{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x368bd4(0x20d)](_0x2111cb['CfNXF'],{'type':'string','description':'Config\x20value','demandOption':!![]});},async _0x530115=>{const _0x5565e3=_0x4ef246;warnRenamed('ranger\x20config\x20set',_0x5565e3(0x2cb)),await withTelemetry('config\x20set',()=>configSet(_0x530115[_0x5565e3(0x285)],_0x530115['key'],_0x530115[_0x5565e3(0x1d4)]));})[_0x4ef246(0x27b)](_0x2111cb[_0x4ef246(0x1f1)],![],_0x5a3acf=>{const _0xb54036=_0x4ef246;return _0x5a3acf['positional'](_0xb54036(0x285),{'type':_0x2111cb['zcjhy'],'description':_0x2111cb['jKBdq'],'demandOption':!![]})['positional']('key',{'type':_0x2111cb['zcjhy'],'description':_0xb54036(0x2f3),'demandOption':!![]});},async _0x2ba053=>{const _0x3dc25d=_0x4ef246;warnRenamed('ranger\x20config\x20get',_0x2111cb['ARIPE']),await withTelemetry(_0x3dc25d(0x216),()=>configGet(_0x2ba053[_0x3dc25d(0x285)],_0x2ba053['key']));})[_0x4ef246(0x27b)]('list\x20<env>',![],_0x48e477=>{const _0x426dd6=_0x4ef246;return _0x48e477['positional'](_0x2111cb['IJGvp'],{'type':_0x426dd6(0x273),'description':_0x426dd6(0x209),'demandOption':!![]});},async _0x393b7f=>{const _0x5fbf02=_0x4ef246;warnRenamed(_0x2111cb[_0x5fbf02(0x2f0)],_0x2111cb['nYPMo']),await withTelemetry(_0x5fbf02(0x1ab),()=>configList(_0x393b7f[_0x5fbf02(0x285)]));})[_0x4ef246(0x27b)](_0x2111cb[_0x4ef246(0x29d)],![],_0x6fe9e1=>{const _0x17afbd=_0x4ef246;return _0x6fe9e1['positional'](_0x17afbd(0x285),{'type':'string','description':'Environment\x20name','demandOption':!![]})['positional']('key',{'type':_0x17afbd(0x273),'description':_0x17afbd(0x2e1),'demandOption':!![]});},async _0xb39ca4=>{const _0x31f7fc=_0x4ef246;warnRenamed('ranger\x20config\x20unset',_0x31f7fc(0x2bd)),await _0x2111cb[_0x31f7fc(0x23c)](withTelemetry,_0x31f7fc(0x2b0),()=>configUnset(_0xb39ca4[_0x31f7fc(0x285)],_0xb39ca4['key']));})[_0x4ef246(0x219)](0x1,_0x2111cb['KoOKz']);})[_0x11ad69(0x27b)](_0x11ad69(0x285),![],_0x42e45e=>{const _0xc8aaf8=_0x11ad69,_0x4e9a79={'LpnnL':function(_0x2339f9,_0x53f151,_0x428568){return _0x2339f9(_0x53f151,_0x428568);},'CgJao':_0xc8aaf8(0x1a9),'wbCOB':'env\x20list','LXudS':_0xc8aaf8(0x273),'cvVAr':_0xc8aaf8(0x292),'IGrbN':'ranger\x20profile\x20update','vpXmw':function(_0x4f172d,_0x4408cf,_0x4974a1){return _0x4f172d(_0x4408cf,_0x4974a1);},'aJGme':_0xc8aaf8(0x2ee),'kTKGh':'update\x20<env-name>','mqGmi':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x42e45e['command']('ls',![],()=>{},async()=>{const _0x5f4a72=_0xc8aaf8;_0x4e9a79[_0x5f4a72(0x1ce)](warnRenamed,_0x4e9a79[_0x5f4a72(0x1ee)],_0x5f4a72(0x23e)),await _0x4e9a79[_0x5f4a72(0x1ce)](withTelemetry,_0x4e9a79[_0x5f4a72(0x1aa)],()=>envList());})[_0xc8aaf8(0x27b)](_0x4e9a79['kTKGh'],![],_0x1075bd=>{const _0xc04457=_0xc8aaf8;return _0x1075bd[_0xc04457(0x20d)](_0xc04457(0x2a4),{'type':_0x4e9a79[_0xc04457(0x1cc)],'description':_0x4e9a79['cvVAr'],'demandOption':!![]});},async _0x1c6907=>{const _0x12f63f=_0xc8aaf8;warnRenamed('ranger\x20env\x20update',_0x4e9a79[_0x12f63f(0x1ed)]),await _0x4e9a79[_0x12f63f(0x2c4)](withTelemetry,_0x4e9a79['aJGme'],_0x4b362a=>updateEnv(_0x1c6907['env-name'],_0x4b362a));})['demandCommand'](0x1,_0x4e9a79[_0xc8aaf8(0x1b1)]);})[_0x11ad69(0x27b)]('feature',![],_0x1a7293=>{const _0x5b3bbf=_0x11ad69,_0xe793be={'fbguB':_0x5b3bbf(0x27d),'XnhgP':'description','XMILx':_0x5b3bbf(0x273),'XVApq':'array','kcsrO':function(_0x37eb26,_0x347f77,_0x5f3d5c){return _0x37eb26(_0x347f77,_0x5f3d5c);},'TuHAA':'ranger\x20create','rEkEL':'--scenario','XuxEZ':_0x5b3bbf(0x1fb),'jNkEP':_0x5b3bbf(0x2ca),'wNoOn':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','YVzdi':'limit','Ttcxy':_0x5b3bbf(0x2a8),'xCams':'boolean','nePqs':_0x5b3bbf(0x223),'JqmCs':_0x5b3bbf(0x241),'GRtLx':'ranger\x20feature\x20resume','PZVlx':_0x5b3bbf(0x282),'fojJf':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','jeHFc':'ranger\x20feature\x20add-checklist-item','vLRsM':function(_0x443859,_0x1fb211,_0x47b694){return _0x443859(_0x1fb211,_0x47b694);},'OvHKg':'feature\x20add-checklist-item','uGpJR':function(_0x3d9629,_0x4ee509,_0x58c761){return _0x3d9629(_0x4ee509,_0x58c761);},'ksYQB':_0x5b3bbf(0x2f8),'cfMbk':function(_0x2e57d6,_0x45a8af,_0x4701a6){return _0x2e57d6(_0x45a8af,_0x4701a6);},'LKEeO':_0x5b3bbf(0x2be),'GTJyd':_0x5b3bbf(0x25c),'wXxYV':'feature\x20delete','jFTMM':_0x5b3bbf(0x267),'SRUci':function(_0x41e879,_0x261353,_0x12aa18){return _0x41e879(_0x261353,_0x12aa18);},'xMjVY':'ranger\x20restore','Ofejc':function(_0xfd545f,_0x2ac410,_0x3942c9){return _0xfd545f(_0x2ac410,_0x3942c9);},'bgdDn':_0x5b3bbf(0x1fd),'GbVMf':_0x5b3bbf(0x2e7),'DabCx':_0x5b3bbf(0x25f),'SQIor':_0x5b3bbf(0x291),'pIdPN':'delete\x20[id]','fzQVL':'restore\x20<id>','NNgxn':_0x5b3bbf(0x268)};return _0x1a7293['command'](_0xe793be['GbVMf'],![],_0x576062=>{const _0x407bf2=_0x5b3bbf;return _0x576062['positional'](_0xe793be['fbguB'],{'type':_0x407bf2(0x273),'description':_0x407bf2(0x2cf),'demandOption':!![]})['option'](_0xe793be['XnhgP'],{'type':_0xe793be[_0x407bf2(0x1f0)],'alias':'d','description':_0x407bf2(0x2f2)})['option'](_0x407bf2(0x20c),{'type':_0xe793be[_0x407bf2(0x1b2)],'alias':'c','description':_0x407bf2(0x250)})[_0x407bf2(0x26b)]('scenario',{'type':_0xe793be['XVApq'],'hidden':!![]});},async _0x99f055=>{const _0x56ce6a=_0x5b3bbf;_0xe793be['kcsrO'](warnRenamed,'ranger\x20feature\x20create',_0xe793be['TuHAA']),warnFlagRenamed(_0x56ce6a(0x2de),_0x56ce6a(0x2b2),_0xe793be['rEkEL']);const _0x1d3ee6=_0x99f055[_0x56ce6a(0x30b)]||_0x99f055[_0x56ce6a(0x20c)];await withTelemetry(_0xe793be['XuxEZ'],()=>featureCreate(_0x99f055[_0x56ce6a(0x27d)],{'description':_0x99f055[_0x56ce6a(0x1ac)],'scenarios':_0x1d3ee6}));})['command'](_0x5b3bbf(0x220),![],_0x56a955=>{const _0xe261de=_0x5b3bbf;return _0x56a955['option'](_0xe793be['jNkEP'],{'type':'boolean','description':_0xe793be[_0xe261de(0x2af)]})['option'](_0xe793be['YVzdi'],{'type':_0xe793be['Ttcxy'],'alias':'l','description':_0xe261de(0x218),'default':0xa})[_0xe261de(0x26b)]('offset',{'type':_0xe793be['Ttcxy'],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0xe261de(0x26b)](_0xe261de(0x2d9),{'type':_0xe793be['xCams'],'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0xf296ac=>{const _0x3a14dd=_0x5b3bbf;_0xe793be['kcsrO'](warnRenamed,_0xe793be['nePqs'],'ranger\x20list'),await _0xe793be['kcsrO'](withTelemetry,_0x3a14dd(0x1d3),()=>featureList({'currentBranch':_0xf296ac['current-branch'],'limit':_0xf296ac['limit'],'offset':_0xf296ac['offset'],'includeDeleted':_0xf296ac[_0x3a14dd(0x2d9)]}));})['command'](_0xe793be['DabCx'],![],_0x1be492=>{return _0x1be492['positional']('id',{'type':_0xe793be['XMILx'],'description':'Feature\x20review\x20ID'});},async _0x466808=>{const _0x215a27=_0x5b3bbf;_0xe793be['kcsrO'](warnRenamed,_0x215a27(0x202),_0x215a27(0x20b)),await _0xe793be[_0x215a27(0x2e3)](withTelemetry,_0xe793be['JqmCs'],()=>featureShow(_0x466808['id']));})[_0x5b3bbf(0x27b)]('resume\x20[id]',![],_0x56c51c=>{const _0xa193d2=_0x5b3bbf;return _0x56c51c['positional']('id',{'type':_0xa193d2(0x273),'description':_0xa193d2(0x1e0)});},async _0x4e25ad=>{const _0x405163=_0x5b3bbf;_0xe793be['kcsrO'](warnRenamed,_0xe793be['GRtLx'],_0x405163(0x1e3)),await _0xe793be[_0x405163(0x2e3)](withTelemetry,_0x405163(0x2c6),()=>featureResume(_0x4e25ad['id']));})[_0x5b3bbf(0x27b)](_0x5b3bbf(0x203),![],_0x1f9220=>{const _0x319331=_0x5b3bbf;return _0x1f9220['positional'](_0xe793be[_0x319331(0x242)],{'type':'string','description':_0xe793be[_0x319331(0x233)],'demandOption':!![]})['option']('id',{'type':_0xe793be[_0x319331(0x1f0)],'description':_0xe793be[_0x319331(0x2c3)]});},async _0x29d832=>{const _0x253572=_0x5b3bbf;_0xe793be['kcsrO'](warnRenamed,_0xe793be['jeHFc'],'ranger\x20add-scenario'),await _0xe793be[_0x253572(0x305)](withTelemetry,_0xe793be[_0x253572(0x2fc)],()=>featureAddScenario(_0x29d832[_0x253572(0x1ac)],_0x29d832['id']));})[_0x5b3bbf(0x27b)](_0xe793be[_0x5b3bbf(0x2a3)],![],_0x4a8060=>{const _0x3f384b=_0x5b3bbf;return _0x4a8060[_0x3f384b(0x20d)]('id',{'type':_0x3f384b(0x273),'description':_0xe793be['fojJf']});},async _0x33b233=>{const _0x1f0f86=_0x5b3bbf;_0xe793be['uGpJR'](warnRenamed,_0xe793be[_0x1f0f86(0x21c)],'ranger\x20get-review'),await _0xe793be[_0x1f0f86(0x206)](withTelemetry,_0xe793be[_0x1f0f86(0x26e)],()=>featureGetReview(_0x33b233['id']));})['command'](_0xe793be['pIdPN'],![],_0x52ef1b=>{const _0x483cd8=_0x5b3bbf;return _0x52ef1b[_0x483cd8(0x20d)]('id',{'type':_0xe793be['XMILx'],'description':'Feature\x20review\x20ID'});},async _0xc94a9c=>{const _0x3fb9a4=_0x5b3bbf;warnRenamed(_0xe793be[_0x3fb9a4(0x22a)],_0x3fb9a4(0x300)),await _0xe793be[_0x3fb9a4(0x2ac)](withTelemetry,_0xe793be['wXxYV'],()=>featureDelete(_0xc94a9c['id']));})[_0x5b3bbf(0x27b)](_0xe793be[_0x5b3bbf(0x1c5)],![],_0x2687b4=>{const _0x4fe434=_0x5b3bbf;return _0x2687b4[_0x4fe434(0x20d)]('id',{'type':'string','description':_0xe793be[_0x4fe434(0x30c)],'demandOption':!![]});},async _0x2e633c=>{const _0x51ede9=_0x5b3bbf;_0xe793be[_0x51ede9(0x1fc)](warnRenamed,'ranger\x20feature\x20restore',_0xe793be['xMjVY']),await _0xe793be['Ofejc'](withTelemetry,_0xe793be[_0x51ede9(0x23b)],()=>featureRestore(_0x2e633c['id']));})[_0x5b3bbf(0x219)](0x1,_0xe793be[_0x5b3bbf(0x1b5)]);})[_0x11ad69(0x27b)]('hook',![],_0x4311a3=>{const _0x45a9b8=_0x11ad69,_0x37c2b2={'yCsPg':function(_0x3cbe44,_0x23aa7f,_0x4c40b1){return _0x3cbe44(_0x23aa7f,_0x4c40b1);},'VRCgS':'hook:enable','DyzwE':'session-id','kccRt':'string','oWnRg':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','EvQDA':'enable','OqNAx':'disable','JgTBK':'name','cxGHC':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'};return _0x4311a3['command'](_0x37c2b2[_0x45a9b8(0x1d9)],_0x45a9b8(0x28d),_0x174e60=>{const _0x431051=_0x45a9b8;return _0x174e60[_0x431051(0x26b)](_0x431051(0x23f),{'type':'string','description':_0x431051(0x27f)});},async _0x9aecea=>{const _0x4150bc=_0x45a9b8;await _0x37c2b2[_0x4150bc(0x21f)](withTelemetry,_0x37c2b2[_0x4150bc(0x1c1)],()=>hook(_0x4150bc(0x1c7),_0x9aecea['session-id']));})['command'](_0x37c2b2['OqNAx'],'Disable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x6542ac=>{const _0x5b9de6=_0x45a9b8;return _0x6542ac['option'](_0x37c2b2[_0x5b9de6(0x1f6)],{'type':_0x37c2b2[_0x5b9de6(0x1d0)],'description':_0x37c2b2[_0x5b9de6(0x2d4)]});},async _0x260806=>{const _0x44d656=_0x45a9b8;await withTelemetry(_0x44d656(0x20f),()=>hook('disable',_0x260806['session-id']));})['option'](_0x37c2b2[_0x45a9b8(0x259)],{'type':_0x45a9b8(0x273),'description':_0x37c2b2[_0x45a9b8(0x1f3)]})[_0x45a9b8(0x26b)]('session-id',{'type':_0x37c2b2['kccRt'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x4072c2=>{const _0x3cd5cc=_0x11ad69,_0x50dfff={'gYDTB':function(_0x425f07,_0x3a54eb,_0x3bb84a){return _0x425f07(_0x3a54eb,_0x3bb84a);}};_0x4072c2[_0x3cd5cc(0x27d)]&&await _0x50dfff['gYDTB'](hook,_0x4072c2['name'],_0x4072c2['session-id']);})[_0x11ad69(0x219)](0x1,_0x11ad69(0x2e4))['strictCommands']()['fail'](async(_0x507ea0,_0x2a0962,_0x572d9d)=>{const _0x15ff70=_0x11ad69,_0x38ec5b={'eHsKa':function(_0x5e9401,_0x4cfdec,_0x240a7f){return _0x5e9401(_0x4cfdec,_0x240a7f);},'sFwRQ':function(_0x5f22d0,_0x7ec1eb){return _0x5f22d0(_0x7ec1eb);},'XnWKP':function(_0x5335af){return _0x5335af();},'EyyHd':function(_0x21f264,_0x49869a){return _0x21f264||_0x49869a;}},_0x1409e9=sanitizeArgs(process['argv'][_0x15ff70(0x2b1)](0x2)),_0x30d75b=_0x38ec5b[_0x15ff70(0x234)](getErrorType,_0x507ea0,_0x2a0962);if(_0x507ea0&&_0x507ea0['includes'](_0x15ff70(0x24b))){const _0x38d00c=process[_0x15ff70(0x29e)][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x38d00c),console['error']('Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a');}else{if(_0x507ea0)console['error']('\x0a'+_0x507ea0+'\x0a');else _0x2a0962&&console['error'](_0x15ff70(0x24d)+_0x2a0962[_0x15ff70(0x19d)]+'\x0a');}await _0x38ec5b['sFwRQ'](logDesirePath,{'rawCommand':_0x1409e9,'errorMessage':_0x507ea0||_0x2a0962?.['message'],'errorType':_0x30d75b});const _0x4eef65=_0x38ec5b[_0x15ff70(0x302)](getCurrentCollector);_0x4eef65&&await _0x4eef65['trackCommandError'](_0x2a0962||new Error(_0x38ec5b[_0x15ff70(0x204)](_0x507ea0,'Unknown\x20error'))),process['exit'](0x1);})[_0x11ad69(0x2a7)]('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+_0x11ad69(0x1cd))['help']()['alias'](_0x11ad69(0x29c),'h')[_0x11ad69(0x1c6)]();
|
|
2
|
+
const _0xe05987=_0x3878;(function(_0x1f6f1d,_0x419c32){const _0x277442=_0x3878,_0x15e7d7=_0x1f6f1d();while(!![]){try{const _0x1b31fc=-parseInt(_0x277442(0x2ce))/0x1*(parseInt(_0x277442(0x2c2))/0x2)+-parseInt(_0x277442(0x2a5))/0x3*(parseInt(_0x277442(0x1d3))/0x4)+-parseInt(_0x277442(0x1d9))/0x5+parseInt(_0x277442(0x25d))/0x6+-parseInt(_0x277442(0x1cf))/0x7*(-parseInt(_0x277442(0x278))/0x8)+parseInt(_0x277442(0x1cb))/0x9*(parseInt(_0x277442(0x1a5))/0xa)+parseInt(_0x277442(0x277))/0xb;if(_0x1b31fc===_0x419c32)break;else _0x15e7d7['push'](_0x15e7d7['shift']());}catch(_0x22db10){_0x15e7d7['push'](_0x15e7d7['shift']());}}}(_0x4a66,0x9e494));import _0x13fca1 from'dotenv';function _0x3878(_0x5a79ef,_0xec6cd4){_0x5a79ef=_0x5a79ef-0x18a;const _0x4a6619=_0x4a66();let _0x3878f1=_0x4a6619[_0x5a79ef];return _0x3878f1;}import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x4a66(){const _0x2261ff=['Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','hKoup','rDcJD','demandCommand','fCurT','ranger\x20env\x20update','bBIrn','restore\x20<id>','Config\x20value','Zxoig','ranger\x20profile\x20ls','Add\x20profile\x20configuration','ranger\x20profile\x20update','List\x20all\x20profiles','add-checklist-item\x20<description>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','offset','ranger\x20add-scenario','guYtK','Number\x20of\x20feature\x20reviews\x20to\x20skip','sDlkI','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','vHupa','bqrOW','eMqpA','\x0aUnknown\x20command:\x20','array','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','add-scenario\x20<description>','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','utsgs','setup-ci\x20<token>','exitCode','trackCommandError','RNtrl','base-url','ranger\x20profile\x20config\x20set','notes','skip-auth','TLeTB','error','zdeKy','1475178imJgtU','parse','Documentation:\x0a','JxmTe','KXGUF','ranger\x20profile\x20config\x20list','FtJwu','Scenario\x20description','GQFnk','ranger\x20auth\x20encrypt','tMGAT','neYFH','\x20\x20https://docs.ranger.net\x0a','Config\x20key','string','sJaaA','OaXoa','NjpPU','OPkgF','iGBFo','blocked','KnTFf','ranger\x20profile\x20config\x20get','\x20is\x20now\x20','exit','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','13940839uLzKra','4402248ibVdZz','BJVgW','nMAod','GWmYW','auth','use\x20<profile-name>','task','IfkXD','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','fYskl','slice','RhssI','UnmKx','YoPzb','force','Aegqb','status','feature\x20restore','DYEzP','rhuTA','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','exclude-scenario','clean','include-deleted','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','oHDRf','WXShi','nvlff','pRETf','VuiYq','scope','--item','LUGoV','You\x20must\x20specify\x20a\x20profile\x20subcommand','csZMX','nQVHE','MwqNQ','Include\x20soft-deleted\x20feature\x20reviews','unset\x20<env>\x20<key>','headed','ecxbI','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.','BabLY','.\x20[','hRWve','852LWYuYj','zZWxf','lojaE','get-review','strictCommands','oNsYH','Feature\x20review\x20ID','naABi','mdeGA','incomplete','aIXLX','qeoiI','Config\x20key\x20to\x20remove','LiUFc','verified','ranger\x20env\x20ls','config\x20get','ranger\x20create','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','hook:enable','opencode','Feature\x20review\x20description','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','YXixl','ranger\x20feature\x20resume','token','profile','config\x20set','lYxKO','2dgwkZZ','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','show','Optional\x20feature\x20ID','scriptName','jizyy','yEtlo','GNrWk','yXdYG','RUgxN','UXchN','tRPWS','1106197BNQqQX','CIgeN','gQRGg','gTHLq','SjTJc','log','Get\x20a\x20config\x20value','profile-name','ranger\x20restore','forEach','Name\x20of\x20the\x20environment\x20to\x20update','UGATn','DQzRe','ImfNQ','debug-outcome','kyPcL','sYCoE','partial','checklist','AElib','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','repeat','add-scenario','config\x20list','argv','feature\x20get-feedback','session-id','start-path','KrNsT','gXBHM','ItsGh','VdCWh','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','PHJHp','edit-scenario','delete\x20[id]','ovkQz','key','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','TDtJU','Set\x20a\x20config\x20value','wVmQD','current-branch','dMefe','You\x20must\x20specify\x20an\x20auth\x20subcommand','unset\x20<profile>\x20<key>','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','profile\x20config\x20get','NdluA','number','login','report\x20[id]','limit','summary','env-name','QEYkm','scenario','zurrX','brvig','mklIU','failed','report','description','PBCvF','ranger\x20profile\x20add','QfShx','cAIwn','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','FMZPe','feature\x20create','10EhiDvj','LMRrD','some','qWHrD','setup-ci','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','Ranger\x20API\x20token','env','Name\x20of\x20the\x20environment','Name\x20of\x20the\x20profile\x20to\x20update','boolean','MONRA','fPHQq','feature\x20show','Pnfei','uklSA','\x0aError:\x20','lhiCc','oURlu','evaluation','zeHXq','command','dKRMD','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','issues','positional','XiLPb','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','feature\x20delete','ranger\x20verify-feature','SVOPE','MKqaI','XqCbD','YmNHk','list\x20<env>','set\x20<env>\x20<key>\x20<value>','IwDah','nRCYW','6276591wqCvpU','WEdoW','WtpdC','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','7HJuATY','fBCSQ','create\x20<name>','mwjMS','1788tLHpjh','AogIj','\x20PARTIAL','get\x20<profile>\x20<key>','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','option','4397035YjGdJz','use\x20<env-name>','--checklist','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','qoAIj','Scenario\x20index\x20(1-based)','ranger\x20setup','feature\x20list','ranger\x20feature\x20get-feedback','PEHRS','List\x20all\x20config\x20for\x20a\x20profile','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','profile\x20encrypt-auth','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','Aysuh','debug-address-comments','NgLAl','Initialize\x20Ranger\x20in\x20your\x20project','cwd','Environment\x20name','kUYfW','setup\x20[token]','\x20INCOMPLETE','skip-chromium','vYlWN','BCBad','feature\x20add-checklist-item','KhqAC','encrypt\x20<profile>','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','oJlKs','gPGJm','claude','name','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','LtJxD','project','UZdad','edit-scenario\x20<description>','show\x20[id]','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','list','\x20BLOCKED','model','bMZYe','update\x20<env-name>','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','ImVyx','peuhj','add\x20env','value','root','ranger\x20config\x20list','usage','feature\x20resume','HMKlE','xUMZs','MhxXE','mlVbz','aOiOn','get-feedback\x20[id]','LCRiK','aglkl','kMAuX','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','list\x20<profile>','oomZO','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','ofIvb','RLhHW','Install\x20skills\x20for\x20OpenCode','feature','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','length','cdp-endpoint','delete','NZQwd','allow-insecure-localhost','ranger\x20delete','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','startsWith','Restore\x20a\x20soft-deleted\x20feature\x20review','disable','AXEIy','UpSbz','item','env\x20update','--task','IdHPe'];_0x4a66=function(){return _0x2261ff;};return _0x4a66();}function findProjectRoot(){const _0xf78142=_0x3878,_0x313743={'bqrOW':function(_0x190704,_0x969128){return _0x190704(_0x969128);},'oNsYH':'.ranger','vabTf':function(_0x265280,_0x4da19d,_0x25da76){return _0x265280(_0x4da19d,_0x25da76);},'JxdbF':'.env'};let _0x313273=process[_0xf78142(0x1ec)]();const _0x38734c=_0x313743['bqrOW'](parse,_0x313273)[_0xf78142(0x20d)];while(_0x313273!==_0x38734c){if(_0x313743[_0xf78142(0x24a)](existsSync,join(_0x313273,_0x313743[_0xf78142(0x2aa)]))||_0x313743[_0xf78142(0x24a)](existsSync,_0x313743['vabTf'](join,_0x313273,_0x313743['JxdbF'])))return _0x313273;_0x313273=dirname(_0x313273);}return process[_0xf78142(0x1ec)]();}_0x13fca1['config']({'path':join(findProjectRoot(),'.env')});import _0x5f504d from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on']('unhandledRejection',async _0x1ff0ac=>{const _0x2fa688=_0x3878,_0x497986=getCurrentCollector();_0x497986&&await _0x497986[_0x2fa688(0x254)](_0x1ff0ac),process[_0x2fa688(0x253)]=0x1;});const rawArgs=process[_0xe05987(0x2e6)][_0xe05987(0x282)](0x2),TOP_LEVEL_HELP=_0xe05987(0x2a1),PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true',PROFILE_CONFIG_HELP=_0xe05987(0x1aa);function warnRenamed(_0x11e7e5,_0x35e332){const _0x4732b7=_0xe05987;console[_0x4732b7(0x25b)]('\x0a'+_0x11e7e5+_0x4732b7(0x274)+_0x35e332+'\x0a');}function argUsed(_0xf3b9da){const _0x523e66=_0xe05987;return rawArgs[_0x523e66(0x1a7)](_0x1b77af=>_0x1b77af===_0xf3b9da||_0x1b77af[_0x523e66(0x22a)](_0xf3b9da+'='));}function warnFlagRenamed(_0x48d891,_0x4b0176,_0x5ea7ac){const _0x3129f5={'Bvonm':function(_0x1f2a45,_0x5a2f61){return _0x1f2a45(_0x5a2f61);}};_0x3129f5['Bvonm'](argUsed,_0x4b0176)&&warnRenamed(_0x48d891+'\x20'+_0x4b0176,_0x48d891+'\x20'+_0x5ea7ac);}async function runGoCommand(_0x3780a4,_0x1cbfc3=![]){const _0x2e57e7=_0xe05987,_0x24b904={'LUGoV':function(_0x238aac,_0x5972c0,_0xd82d06){return _0x238aac(_0x5972c0,_0xd82d06);},'ecxbI':_0x2e57e7(0x1c2),'SVOPE':'ranger\x20go','JxmTe':'--env','lOnSr':function(_0x44f17f,_0x51c774,_0x380e9e,_0x4a20b){return _0x44f17f(_0x51c774,_0x380e9e,_0x4a20b);},'FffLh':_0x2e57e7(0x231),'GYvRJ':'--notes','FpaVH':function(_0x470191){return _0x470191();},'gZEND':'config','qoAIj':'default','BCBad':function(_0x296a4f,_0x1f221e){return _0x296a4f(_0x1f221e);},'LiUFc':function(_0x4d47d1,_0x3e2df2){return _0x4d47d1===_0x3e2df2;},'YXixl':'\x20VERIFIED','PpBYA':_0x2e57e7(0x2df),'fCurT':_0x2e57e7(0x1d5),'rLZHL':_0x2e57e7(0x204),'TLeTB':'\x0aIssues:'};_0x1cbfc3&&_0x24b904[_0x2e57e7(0x298)](warnRenamed,_0x24b904[_0x2e57e7(0x2a0)],_0x24b904['SVOPE']);warnFlagRenamed(_0x24b904['SVOPE'],_0x24b904[_0x2e57e7(0x260)],'--profile'),_0x24b904['lOnSr'](warnFlagRenamed,_0x24b904[_0x2e57e7(0x1c3)],_0x24b904['FffLh'],_0x24b904['GYvRJ']),_0x24b904['lOnSr'](warnFlagRenamed,'ranger\x20go',_0x2e57e7(0x297),'--scenario');const _0x176df9=await _0x24b904['FpaVH'](loadRangerConfig),_0x3d31e8=_0x3780a4[_0x2e57e7(0x205)],_0x382401=_0x176df9[_0x2e57e7(0x205)],_0x7a3dd1=_0x3d31e8??_0x382401,_0x229cb5=_0x3d31e8?'flag':_0x382401?_0x24b904['gZEND']:_0x24b904[_0x2e57e7(0x1de)],_0x591002=await _0x24b904[_0x2e57e7(0x1f3)](verifyFeature,{'featureId':_0x3780a4[_0x2e57e7(0x221)],'profile':_0x3780a4['profile']??_0x3780a4[_0x2e57e7(0x1ac)],'notes':_0x3780a4['notes']??_0x3780a4[_0x2e57e7(0x27e)],'scenario':_0x3780a4['scenario']??_0x3780a4[_0x2e57e7(0x22f)],'startPath':_0x3780a4['start-path'],'debugOutcome':_0x3780a4[_0x2e57e7(0x2dc)],'debugAddressComments':_0x3780a4[_0x2e57e7(0x1e9)],'headed':_0x3780a4[_0x2e57e7(0x29f)],'verifyModel':_0x7a3dd1,'verifyModelInput':_0x7a3dd1,'verifyModelSource':_0x229cb5});console[_0x2e57e7(0x2d3)]('\x0a'+'='['repeat'](0x3c)),console[_0x2e57e7(0x2d3)](_0x24b904['LiUFc'](_0x591002[_0x2e57e7(0x1b8)],_0x2e57e7(0x2b3))?_0x24b904[_0x2e57e7(0x2bc)]:_0x591002[_0x2e57e7(0x1b8)]==='incomplete'?_0x2e57e7(0x1f0):_0x591002[_0x2e57e7(0x1b8)]===_0x24b904['PpBYA']?_0x24b904[_0x2e57e7(0x237)]:_0x24b904[_0x2e57e7(0x2b2)](_0x591002[_0x2e57e7(0x1b8)],'blocked')?_0x24b904['rLZHL']:'\x20FAILED'),console['log']('='[_0x2e57e7(0x2e3)](0x3c)),console['log']('Summary:\x20'+_0x591002[_0x2e57e7(0x194)]),console['log']('Evaluation:\x20'+_0x591002['evaluation']),console[_0x2e57e7(0x2d3)]('Reason:\x20'+_0x591002['evaluationReason']),_0x591002[_0x2e57e7(0x1bd)]?.[_0x2e57e7(0x223)]&&(console['log'](_0x24b904[_0x2e57e7(0x25a)]),_0x591002['issues'][_0x2e57e7(0x2d7)]((_0x5456ae,_0x50746f)=>{const _0x269550=_0x2e57e7;console['log']('\x0a'+(_0x50746f+0x1)+_0x269550(0x2a3)+_0x5456ae['severity']+']\x20'+_0x5456ae[_0x269550(0x19d)]);})),process['exit'](_0x591002['evaluation']===_0x2e57e7(0x2b3)?0x0:0x1);}_0x5f504d(process['argv'][_0xe05987(0x282)](0x2))[_0xe05987(0x2c6)]('ranger')['usage'](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0xe05987(0x1ba)](_0xe05987(0x1d1),_0xe05987(0x242),_0x375d69=>{const _0x4ecd87=_0xe05987,_0x86a6a={'YorSM':'description','nMAod':_0x4ecd87(0x26b),'OkCdB':_0x4ecd87(0x197),'QuHxq':_0x4ecd87(0x24d),'lhiCc':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'};return _0x375d69[_0x4ecd87(0x1be)]('name',{'type':_0x4ecd87(0x26b),'description':'Feature\x20review\x20name','demandOption':!![]})[_0x4ecd87(0x1d8)](_0x86a6a['YorSM'],{'type':_0x86a6a[_0x4ecd87(0x27a)],'alias':'d','description':'Feature\x20review\x20description'})[_0x4ecd87(0x1d8)](_0x86a6a['OkCdB'],{'type':_0x86a6a['QuHxq'],'alias':'c','description':_0x86a6a[_0x4ecd87(0x1b6)]})['option'](_0x4ecd87(0x2e0),{'type':_0x86a6a['QuHxq'],'hidden':!![]});},async _0x139d8a=>{const _0x280b8f=_0xe05987,_0x4cae1e={'zvIbb':_0x280b8f(0x2b6),'DQzRe':_0x280b8f(0x1db),'vYlWN':function(_0x1a44b0,_0x4592bd,_0x4a1a25){return _0x1a44b0(_0x4592bd,_0x4a1a25);},'NZQwd':'create'};warnFlagRenamed(_0x4cae1e['zvIbb'],_0x4cae1e[_0x280b8f(0x2da)],'--scenario');const _0x374e5c=_0x139d8a['scenario']||_0x139d8a['checklist'];await _0x4cae1e[_0x280b8f(0x1f2)](withTelemetry,_0x4cae1e[_0x280b8f(0x226)],()=>featureCreate(_0x139d8a['name'],{'description':_0x139d8a[_0x280b8f(0x19d)],'scenarios':_0x374e5c}));})[_0xe05987(0x1ba)]('list','List\x20all\x20feature\x20reviews',_0x232692=>{const _0x535d61=_0xe05987,_0x59d1aa={'gXBHM':'current-branch','KnTFf':'boolean','owXwi':_0x535d61(0x280),'zZWxf':'limit','jKMlq':_0x535d61(0x243),'uklSA':_0x535d61(0x190),'KXGUF':_0x535d61(0x246),'mlVbz':_0x535d61(0x29d)};return _0x232692['option'](_0x59d1aa[_0x535d61(0x2eb)],{'type':_0x59d1aa[_0x535d61(0x272)],'description':_0x59d1aa['owXwi']})['option'](_0x59d1aa[_0x535d61(0x2a6)],{'type':'number','alias':'l','description':_0x535d61(0x28c),'default':0xa})[_0x535d61(0x1d8)](_0x59d1aa['jKMlq'],{'type':_0x59d1aa[_0x535d61(0x1b4)],'alias':'o','description':_0x59d1aa[_0x535d61(0x261)],'default':0x0})[_0x535d61(0x1d8)]('include-deleted',{'type':'boolean','alias':'d','description':_0x59d1aa[_0x535d61(0x214)],'default':![]});},async _0x47e98f=>{const _0x27c2f6=_0xe05987,_0x281e38={'rDcJD':_0x27c2f6(0x203)};await withTelemetry(_0x281e38[_0x27c2f6(0x235)],()=>featureList({'currentBranch':_0x47e98f['current-branch'],'limit':_0x47e98f[_0x27c2f6(0x193)],'offset':_0x47e98f[_0x27c2f6(0x243)],'includeDeleted':_0x47e98f[_0x27c2f6(0x28f)]}));})[_0xe05987(0x1ba)](_0xe05987(0x201),_0xe05987(0x1dd),_0x4aa2c3=>{const _0x54fb3e=_0xe05987,_0x5446a0={'MKqaI':_0x54fb3e(0x26b),'lojaE':_0x54fb3e(0x2ab)};return _0x4aa2c3[_0x54fb3e(0x1be)]('id',{'type':_0x5446a0[_0x54fb3e(0x1c4)],'description':_0x5446a0[_0x54fb3e(0x2a7)]});},async _0x272a6e=>{const _0x2b38cf=_0xe05987,_0x40ce1c={'bBIrn':_0x2b38cf(0x2c4)};await withTelemetry(_0x40ce1c[_0x2b38cf(0x239)],()=>featureShow(_0x272a6e['id']));})[_0xe05987(0x1ba)]('resume\x20[id]',_0xe05987(0x21a),_0x371557=>{const _0x12d1ec=_0xe05987,_0x23daba={'YaZXG':_0x12d1ec(0x1d7)};return _0x371557[_0x12d1ec(0x1be)]('id',{'type':_0x12d1ec(0x26b),'description':_0x23daba['YaZXG']});},async _0x33de3b=>{await withTelemetry('resume',()=>featureResume(_0x33de3b['id']));})[_0xe05987(0x1ba)](_0xe05987(0x24f),_0xe05987(0x18d),_0x17be4d=>{const _0x389b89=_0xe05987,_0x4d01d2={'Aegqb':_0x389b89(0x264),'nwcSY':_0x389b89(0x26b),'RhssI':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x17be4d['positional']('description',{'type':'string','description':_0x4d01d2[_0x389b89(0x287)],'demandOption':!![]})[_0x389b89(0x1d8)]('id',{'type':_0x4d01d2['nwcSY'],'description':_0x4d01d2[_0x389b89(0x283)]});},async _0x2116d7=>{const _0x5068ba=_0xe05987,_0x3fd71d={'fBCSQ':_0x5068ba(0x2e4)};await withTelemetry(_0x3fd71d[_0x5068ba(0x1d0)],()=>featureAddScenario(_0x2116d7['description'],_0x2116d7['id']));})[_0xe05987(0x1ba)](_0xe05987(0x200),_0xe05987(0x24e),_0x5736d8=>{const _0x282237=_0xe05987,_0x10f453={'wVmQD':'scenario','fmmQV':'string','tRPWS':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x5736d8['positional'](_0x282237(0x19d),{'type':_0x282237(0x26b),'description':'New\x20scenario\x20description','demandOption':!![]})['option'](_0x10f453[_0x282237(0x2f7)],{'type':_0x282237(0x190),'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})['option']('id',{'type':_0x10f453['fmmQV'],'description':_0x10f453[_0x282237(0x2cd)]});},async _0x525c94=>{const _0x42fb70=_0xe05987,_0x1a51b0={'AElib':function(_0x45c565,_0x58b035,_0x26e35b){return _0x45c565(_0x58b035,_0x26e35b);},'BabLY':_0x42fb70(0x2f0)};await _0x1a51b0[_0x42fb70(0x2e1)](withTelemetry,_0x1a51b0[_0x42fb70(0x2a2)],()=>featureEditScenario(_0x525c94['description'],{'id':_0x525c94['id'],'scenario':_0x525c94[_0x42fb70(0x197)]}));})[_0xe05987(0x1ba)](_0xe05987(0x192),_0xe05987(0x2b7),_0x90b492=>{const _0x4a76ce=_0xe05987,_0x2e27fc={'EMqDX':_0x4a76ce(0x28d),'seXfj':'array','vSsat':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','TDtJU':'json'};return _0x90b492[_0x4a76ce(0x1be)]('id',{'type':_0x4a76ce(0x26b),'description':'Feature\x20review\x20ID'})['option'](_0x2e27fc['EMqDX'],{'type':_0x2e27fc['seXfj'],'description':_0x2e27fc['vSsat']})['option'](_0x2e27fc[_0x4a76ce(0x2f5)],{'type':_0x4a76ce(0x1af),'description':_0x4a76ce(0x290),'default':![]});},async _0xc4a8bb=>{const _0xf1ff8b=_0xe05987,_0x168c4e={'qCnyG':_0xf1ff8b(0x28d),'TTVMK':function(_0x565b76,_0x3926b1,_0x43f4a9){return _0x565b76(_0x3926b1,_0x43f4a9);},'FMZPe':_0xf1ff8b(0x19c)},_0x23ad8e=_0xc4a8bb[_0x168c4e['qCnyG']],_0x1f8948=_0x23ad8e?_0x23ad8e['map'](_0x5b3252=>Number(_0x5b3252)):undefined;await _0x168c4e['TTVMK'](withTelemetry,_0x168c4e[_0xf1ff8b(0x1a3)],()=>featureReportPrDescription(_0xc4a8bb['id'],{'excludeScenarios':_0x1f8948,'json':_0xc4a8bb['json']}));})['command']('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x342144=>{const _0x49058b=_0xe05987,_0x18fd12={'GOkYY':_0x49058b(0x26b)};return _0x342144[_0x49058b(0x1be)]('id',{'type':_0x18fd12['GOkYY'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x1c5491=>{const _0x4a18dd=_0xe05987,_0x15503e={'sJaaA':function(_0x34c6d8,_0x2c4788,_0xe7d90b){return _0x34c6d8(_0x2c4788,_0xe7d90b);}};await _0x15503e[_0x4a18dd(0x26c)](withTelemetry,_0x4a18dd(0x2a8),()=>featureGetReview(_0x1c5491['id']));})[_0xe05987(0x1ba)](_0xe05987(0x2f1),'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x560584=>{const _0x3afff9=_0xe05987,_0x1b8caf={'AXEIy':_0x3afff9(0x26b)};return _0x560584['positional']('id',{'type':_0x1b8caf[_0x3afff9(0x22d)],'description':_0x3afff9(0x2ab)});},async _0x3ff275=>{const _0x37780e=_0xe05987;await withTelemetry(_0x37780e(0x225),()=>featureDelete(_0x3ff275['id']));})['command']('restore\x20<id>',_0xe05987(0x22b),_0xdaaaa3=>{const _0x170757=_0xe05987,_0x41e244={'aOiOn':'Feature\x20review\x20ID\x20to\x20restore'};return _0xdaaaa3[_0x170757(0x1be)]('id',{'type':'string','description':_0x41e244[_0x170757(0x215)],'demandOption':!![]});},async _0x1d9ef0=>{const _0x2e6ad7=_0xe05987,_0x43a808={'NgLAl':function(_0x49ec96,_0x389c4a,_0x61cc35){return _0x49ec96(_0x389c4a,_0x61cc35);}};await _0x43a808[_0x2e6ad7(0x1ea)](withTelemetry,'restore',()=>featureRestore(_0x1d9ef0['id']));})['command'](_0xe05987(0x1ef),_0xe05987(0x1eb),_0x52501b=>{const _0x53cbb6=_0xe05987,_0x4f9a12={'xkcWR':_0x53cbb6(0x2be),'NdluA':'string','QpmTv':_0x53cbb6(0x250),'QcTna':'user','VuiYq':_0x53cbb6(0x1fe),'KhqAC':_0x53cbb6(0x1fc),'oiMxB':'url','tFjBo':'force','WEdoW':_0x53cbb6(0x1af),'hRWve':_0x53cbb6(0x2b9),'LMRrD':_0x53cbb6(0x227),'XPWsQ':_0x53cbb6(0x1ce)};return _0x52501b[_0x53cbb6(0x1be)](_0x4f9a12['xkcWR'],{'type':_0x4f9a12[_0x53cbb6(0x18f)],'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0x53cbb6(0x1d8)]('skip-chromium',{'type':_0x53cbb6(0x1af),'description':_0x4f9a12['QpmTv'],'default':![]})[_0x53cbb6(0x1d8)](_0x53cbb6(0x296),{'type':_0x53cbb6(0x26b),'choices':[_0x4f9a12['QcTna'],_0x4f9a12[_0x53cbb6(0x295)]],'description':_0x4f9a12[_0x53cbb6(0x1f5)]})['option'](_0x4f9a12['oiMxB'],{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x4f9a12['tFjBo'],{'type':_0x4f9a12[_0x53cbb6(0x1cc)],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})[_0x53cbb6(0x1d8)](_0x4f9a12[_0x53cbb6(0x2a4)],{'type':'boolean','description':_0x53cbb6(0x233),'default':![]})['option'](_0x4f9a12[_0x53cbb6(0x1a6)],{'type':_0x53cbb6(0x1af),'description':_0x4f9a12['XPWsQ'],'default':![]});},async _0x2ef5f7=>{const _0x48314c=_0xe05987,_0x522e5a={'sWfVu':function(_0x2c079c,_0x46db7d,_0x490dc0){return _0x2c079c(_0x46db7d,_0x490dc0);}};await _0x522e5a['sWfVu'](withTelemetry,'start',_0x49661d=>start(_0x2ef5f7['token'],{'skipChromium':_0x2ef5f7[_0x48314c(0x1f1)],'scope':_0x2ef5f7['scope'],'url':_0x2ef5f7['url'],'force':_0x2ef5f7['force'],'opencode':_0x2ef5f7[_0x48314c(0x2b9)],'allowInsecureLocalhost':_0x2ef5f7['allow-insecure-localhost']},_0x49661d));})['command'](_0xe05987(0x252),_0xe05987(0x1c0),_0x3f12c3=>{const _0x4b4365=_0xe05987,_0x157ad2={'dpgDe':_0x4b4365(0x2be),'KTBvB':_0x4b4365(0x1ab),'amRcn':'profile','peuhj':'string','hiITr':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','JnoeR':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','IJlXC':_0x4b4365(0x1f1)};return _0x3f12c3['positional'](_0x157ad2['dpgDe'],{'type':'string','description':_0x157ad2['KTBvB'],'demandOption':!![]})[_0x4b4365(0x1d8)](_0x157ad2['amRcn'],{'type':_0x157ad2[_0x4b4365(0x20a)],'description':_0x157ad2['hiITr']})['option']('base-url',{'type':_0x4b4365(0x26b),'description':_0x157ad2['JnoeR']})['option'](_0x157ad2['IJlXC'],{'type':_0x4b4365(0x1af),'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x1d124d=>{const _0x3c1c6b=_0xe05987,_0x537578={'zeHXq':function(_0xefdf94,_0x4b8f23,_0x476875){return _0xefdf94(_0x4b8f23,_0x476875);}};await _0x537578[_0x3c1c6b(0x1b9)](withTelemetry,_0x3c1c6b(0x1a9),_0x23576d=>setupCi(_0x1d124d[_0x3c1c6b(0x2be)],{'profile':_0x1d124d[_0x3c1c6b(0x2bf)],'baseUrl':_0x1d124d[_0x3c1c6b(0x256)],'skipChromium':_0x1d124d[_0x3c1c6b(0x1f1)]},_0x23576d));})[_0xe05987(0x1ba)](_0xe05987(0x191),'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x49ef36=_0xe05987,_0x5d8b49={'PEHRS':_0x49ef36(0x191)};await withTelemetry(_0x5d8b49[_0x49ef36(0x1e3)],()=>login());})[_0xe05987(0x1ba)]('skillup','Install\x20Ranger\x20skills',_0x8d4199=>{const _0x1aae74=_0xe05987,_0x53a3de={'fqesk':'opencode','iGBFo':_0x1aae74(0x1af),'IdHPe':'scope','GQFnk':'user','eqJCq':'project','oomZO':'Install\x20scope\x20for\x20skills'};return _0x8d4199[_0x1aae74(0x1d8)](_0x53a3de['fqesk'],{'type':_0x53a3de[_0x1aae74(0x270)],'description':_0x1aae74(0x220),'default':![]})['option'](_0x53a3de[_0x1aae74(0x232)],{'type':'string','choices':[_0x53a3de[_0x1aae74(0x265)],_0x53a3de['eqJCq']],'description':_0x53a3de[_0x1aae74(0x21c)]});},async _0x2fdf18=>{const _0x2684b8=_0xe05987,_0xd7c8c2={'PAwSl':function(_0x219ba8,_0x2333a1,_0x224adc){return _0x219ba8(_0x2333a1,_0x224adc);},'iVKIu':'skillup'},_0x268099=Boolean(_0x2fdf18['opencode']);await _0xd7c8c2['PAwSl'](withTelemetry,_0xd7c8c2['iVKIu'],()=>skillup({'autoInstall':_0x2fdf18[_0x2684b8(0x296)],'platform':_0x268099?_0x2684b8(0x2b9):_0x2684b8(0x1fa)}));})['command'](_0xe05987(0x28e),'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x447ac4=_0xe05987,_0x5b6258={'mwjMS':function(_0x476729,_0x495a32,_0x3a06b1){return _0x476729(_0x495a32,_0x3a06b1);}};await _0x5b6258[_0x447ac4(0x1d2)](withTelemetry,_0x447ac4(0x28e),()=>clean());})['command']('profile','Manage\x20profiles',_0xce16b9=>{const _0x3be89b=_0xe05987,_0x26c2b3={'EEeUy':_0x3be89b(0x2d5),'ImVyx':'string','vYuxH':_0x3be89b(0x2c3),'YmNHk':_0x3be89b(0x2e2),'guYtK':'boolean','AczZE':'safe-mode','OauEe':'Name\x20of\x20the\x20profile','kyPcL':function(_0x4fdf8a,_0x14c5ac,_0x58c74a){return _0x4fdf8a(_0x14c5ac,_0x58c74a);},'PRZYr':'profile\x20use','mklIU':'Profile\x20name','WsRaT':function(_0x34da70,_0x33e963,_0x14dfed){return _0x34da70(_0x33e963,_0x14dfed);},'qIiCV':'profile\x20ls','eMqpA':_0x3be89b(0x227),'cYlYG':_0x3be89b(0x1ce),'HfHAA':function(_0x3d0e39,_0x1b8161,_0xb5ce44){return _0x3d0e39(_0x1b8161,_0xb5ce44);},'NjpPU':_0x3be89b(0x2bf),'QEYkm':'key','BJVgW':'value','JRRyJ':'Config\x20value','Aysuh':_0x3be89b(0x2b1),'YbqRZ':'profile\x20config\x20set','bMZYe':'set\x20<profile>\x20<key>\x20<value>','UnmKx':_0x3be89b(0x2f6),'kMAuX':_0x3be89b(0x1d6),'cAIwn':_0x3be89b(0x21b),'lwbbU':_0x3be89b(0x1e4),'sYCoE':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','pudTy':_0x3be89b(0x27d),'UGATn':'Switch\x20to\x20using\x20a\x20specific\x20profile','xUMZs':'encrypt-auth\x20<profile>','qWHrD':_0x3be89b(0x2bb),'TSYyf':'Update\x20authentication\x20for\x20an\x20existing\x20profile','RUgxN':'Manage\x20profile\x20configuration'};return _0xce16b9[_0x3be89b(0x20f)](PROFILE_HELP)[_0x3be89b(0x1ba)]('add\x20<profile-name>',_0x3be89b(0x23e),_0x32418e=>{const _0x43db18=_0x3be89b;return _0x32418e['positional'](_0x26c2b3['EEeUy'],{'type':_0x26c2b3[_0x43db18(0x209)],'description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0x43db18(0x1d8)]('ci',{'type':_0x43db18(0x1af),'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0x43db18(0x1d8)](_0x43db18(0x259),{'type':_0x43db18(0x1af),'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]})[_0x43db18(0x1d8)]('url',{'type':_0x43db18(0x26b),'description':_0x26c2b3['vYuxH']})['option'](_0x43db18(0x286),{'type':'boolean','description':_0x43db18(0x1f7),'default':![]})['option']('cdp-endpoint',{'type':_0x26c2b3['ImVyx'],'description':_0x26c2b3[_0x43db18(0x1c6)]})['option']('allow-insecure-localhost',{'type':_0x26c2b3['guYtK'],'description':_0x43db18(0x1ce),'default':![]})['option'](_0x26c2b3['AczZE'],{'type':_0x26c2b3[_0x43db18(0x245)],'description':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','default':![]});},async _0x5dfec5=>{const _0x314a3f=_0x3be89b;await withTelemetry('profile\x20add',_0x160275=>addEnv(_0x5dfec5[_0x314a3f(0x2d5)],{'ci':_0x5dfec5['ci'],'skipAuth':_0x5dfec5['skip-auth'],'url':_0x5dfec5['url'],'force':_0x5dfec5['force'],'cdpEndpoint':_0x5dfec5[_0x314a3f(0x224)],'allowInsecureLocalhost':_0x5dfec5['allow-insecure-localhost'],'safeMode':_0x5dfec5['safe-mode']},_0x160275),{'isElectron':Boolean(_0x5dfec5[_0x314a3f(0x224)])});})['command'](_0x26c2b3['pudTy'],_0x26c2b3[_0x3be89b(0x2d9)],_0x67dcf5=>{const _0x452b9d=_0x3be89b;return _0x67dcf5['positional']('profile-name',{'type':_0x26c2b3[_0x452b9d(0x209)],'description':_0x26c2b3['OauEe'],'demandOption':!![]});},async _0x568c15=>{const _0x3f9b17=_0x3be89b;await _0x26c2b3[_0x3f9b17(0x2dd)](withTelemetry,_0x26c2b3['PRZYr'],()=>useEnv(_0x568c15['profile-name']));})['command'](_0x26c2b3[_0x3be89b(0x212)],_0x26c2b3[_0x3be89b(0x1a8)],_0x11154c=>{const _0x43f9a3=_0x3be89b;return _0x11154c[_0x43f9a3(0x1be)](_0x43f9a3(0x2bf),{'type':_0x26c2b3['ImVyx'],'description':_0x26c2b3['mklIU'],'demandOption':!![]});},async _0x373b10=>{const _0x227987=_0x3be89b;await _0x26c2b3['WsRaT'](withTelemetry,_0x227987(0x1e6),()=>authEncrypt(_0x373b10['profile']));})[_0x3be89b(0x1ba)]('ls',_0x3be89b(0x240),()=>{},async()=>{const _0x6ae817=_0x3be89b;await _0x26c2b3[_0x6ae817(0x2dd)](withTelemetry,_0x26c2b3['qIiCV'],()=>envList());})[_0x3be89b(0x1ba)]('update\x20<profile-name>',_0x26c2b3['TSYyf'],_0x1a15c4=>{const _0x3e8c09=_0x3be89b;return _0x1a15c4['positional'](_0x26c2b3['EEeUy'],{'type':_0x26c2b3[_0x3e8c09(0x209)],'description':_0x3e8c09(0x1ae),'demandOption':!![]})[_0x3e8c09(0x1d8)](_0x26c2b3[_0x3e8c09(0x24b)],{'type':_0x26c2b3['guYtK'],'description':_0x26c2b3['cYlYG']});},async _0x74dd1f=>{const _0x311ded=_0x3be89b;await _0x26c2b3['HfHAA'](withTelemetry,'profile\x20update',_0x54664=>updateEnv(_0x74dd1f[_0x311ded(0x2d5)],_0x54664,{'allowInsecureLocalhost':_0x74dd1f['allow-insecure-localhost']}));})[_0x3be89b(0x1ba)]('config',_0x26c2b3[_0x3be89b(0x2cb)],_0x58c6b4=>{const _0x10bd3a=_0x3be89b,_0x23caf1={'kYNrC':_0x26c2b3['YbqRZ'],'dkVFH':_0x10bd3a(0x18e)};return _0x58c6b4[_0x10bd3a(0x20f)](PROFILE_CONFIG_HELP)['command'](_0x26c2b3[_0x10bd3a(0x206)],_0x26c2b3[_0x10bd3a(0x284)],_0x44475e=>{const _0x18fae4=_0x10bd3a;return _0x44475e[_0x18fae4(0x1be)](_0x26c2b3[_0x18fae4(0x26e)],{'type':_0x26c2b3[_0x18fae4(0x209)],'description':_0x26c2b3[_0x18fae4(0x19a)],'demandOption':!![]})[_0x18fae4(0x1be)](_0x26c2b3['QEYkm'],{'type':_0x18fae4(0x26b),'description':_0x18fae4(0x276),'demandOption':!![]})[_0x18fae4(0x1be)](_0x26c2b3[_0x18fae4(0x279)],{'type':'string','description':_0x26c2b3['JRRyJ'],'demandOption':!![]});},async _0x21b6a5=>{await withTelemetry(_0x23caf1['kYNrC'],()=>configSet(_0x21b6a5['profile'],_0x21b6a5['key'],_0x21b6a5['value']));})['command'](_0x26c2b3[_0x10bd3a(0x219)],_0x10bd3a(0x2d4),_0x316ae9=>{const _0xd43029=_0x10bd3a;return _0x316ae9[_0xd43029(0x1be)](_0xd43029(0x2bf),{'type':_0x26c2b3[_0xd43029(0x209)],'description':'Profile\x20name','demandOption':!![]})[_0xd43029(0x1be)](_0x26c2b3[_0xd43029(0x196)],{'type':_0x26c2b3['ImVyx'],'description':_0xd43029(0x26a),'demandOption':!![]});},async _0x5019d1=>{const _0x5e2605=_0x10bd3a;await withTelemetry(_0x23caf1['dkVFH'],()=>configGet(_0x5019d1[_0x5e2605(0x2bf)],_0x5019d1[_0x5e2605(0x2f3)]));})[_0x10bd3a(0x1ba)](_0x26c2b3[_0x10bd3a(0x1a1)],_0x26c2b3['lwbbU'],_0x56c009=>{const _0xdcc11c=_0x10bd3a;return _0x56c009['positional'](_0x26c2b3[_0xdcc11c(0x26e)],{'type':_0xdcc11c(0x26b),'description':'Profile\x20name','demandOption':!![]});},async _0xe62145=>{await withTelemetry('profile\x20config\x20list',()=>configList(_0xe62145['profile']));})['command'](_0x10bd3a(0x18c),'Remove\x20a\x20config\x20value',_0x5ded05=>{const _0x51d328=_0x10bd3a;return _0x5ded05[_0x51d328(0x1be)](_0x51d328(0x2bf),{'type':'string','description':'Profile\x20name','demandOption':!![]})[_0x51d328(0x1be)](_0x51d328(0x2f3),{'type':_0x26c2b3['ImVyx'],'description':_0x26c2b3[_0x51d328(0x1e8)],'demandOption':!![]});},async _0x4e74c0=>{await withTelemetry('profile\x20config\x20unset',()=>configUnset(_0x4e74c0['profile'],_0x4e74c0['key']));})['demandCommand'](0x1,_0x26c2b3[_0x10bd3a(0x2de)]);})['demandCommand'](0x1,_0x3be89b(0x299));})['command'](_0xe05987(0x288),_0xe05987(0x202),()=>{},async()=>{const _0x54004f=_0xe05987,_0x2da1df={'WtpdC':'status'};await withTelemetry(_0x2da1df[_0x54004f(0x1cd)],()=>status());})[_0xe05987(0x1ba)]('update',_0xe05987(0x229),()=>{},async()=>{await withTelemetry('update',()=>update());})[_0xe05987(0x1ba)]('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x13e03a=>{const _0x2c8ce4=_0xe05987,_0x8721e7={'nQVHE':_0x2c8ce4(0x26b),'SjTJc':_0x2c8ce4(0x2ee),'ItsGh':_0x2c8ce4(0x258),'TslUo':_0x2c8ce4(0x190),'rhuTA':_0x2c8ce4(0x2e9),'PBCvF':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','fPHQq':'boolean','aglkl':_0x2c8ce4(0x2df),'XwdMU':_0x2c8ce4(0x1ac)};return _0x13e03a['option']('feature',{'type':_0x8721e7['nQVHE'],'description':_0x2c8ce4(0x2c5)})[_0x2c8ce4(0x1d8)](_0x2c8ce4(0x2bf),{'type':_0x2c8ce4(0x26b),'description':_0x8721e7[_0x2c8ce4(0x2d2)]})[_0x2c8ce4(0x1d8)](_0x8721e7[_0x2c8ce4(0x2ec)],{'type':_0x8721e7['nQVHE'],'description':_0x2c8ce4(0x21d)})['option']('scenario',{'type':_0x8721e7['TslUo'],'description':_0x2c8ce4(0x1df)})[_0x2c8ce4(0x1d8)](_0x8721e7[_0x2c8ce4(0x28b)],{'type':_0x8721e7['nQVHE'],'description':_0x2c8ce4(0x1bc)})[_0x2c8ce4(0x1d8)](_0x2c8ce4(0x205),{'type':'string','description':_0x8721e7[_0x2c8ce4(0x19e)]})['option'](_0x2c8ce4(0x29f),{'type':_0x8721e7[_0x2c8ce4(0x1b1)],'description':_0x2c8ce4(0x222),'default':![]})['option'](_0x2c8ce4(0x2dc),{'type':_0x8721e7[_0x2c8ce4(0x29b)],'hidden':!![],'choices':[_0x2c8ce4(0x2b3),_0x8721e7[_0x2c8ce4(0x218)],_0x2c8ce4(0x271),'failed',_0x2c8ce4(0x2ae)]})[_0x2c8ce4(0x1d8)](_0x2c8ce4(0x1e9),{'type':_0x2c8ce4(0x1af),'hidden':!![]})[_0x2c8ce4(0x1d8)](_0x8721e7['XwdMU'],{'type':_0x8721e7['nQVHE'],'hidden':!![]})[_0x2c8ce4(0x1d8)]('task',{'type':_0x8721e7[_0x2c8ce4(0x29b)],'hidden':!![]})[_0x2c8ce4(0x1d8)](_0x2c8ce4(0x22f),{'type':_0x8721e7['TslUo'],'hidden':!![]});},async _0x1cad71=>{await runGoCommand(_0x1cad71);})['command'](_0xe05987(0x27c),![],_0x2a6e97=>{const _0x33abbd=_0xe05987,_0x48d511={'oHDRf':'profile','xVKXD':function(_0x363297,_0x2ce990){return _0x363297(_0x2ce990);},'vHupa':_0x33abbd(0x1f6)};return _0x2a6e97[_0x33abbd(0x1ba)](_0x48d511[_0x33abbd(0x249)],![],_0x590a2b=>{const _0x48d833=_0x33abbd;return _0x590a2b['positional'](_0x48d511[_0x48d833(0x291)],{'type':'string','description':'Profile\x20name','demandOption':!![]});},async _0x456902=>{const _0x3adfa7=_0x33abbd;warnRenamed(_0x3adfa7(0x266),'ranger\x20profile\x20encrypt-auth'),await _0x48d511['xVKXD'](authEncrypt,_0x456902['profile']);})['demandCommand'](0x1,_0x33abbd(0x18b));},()=>{})['command']('start\x20[token]',![],_0x4f9d71=>{const _0x3b455c=_0xe05987,_0x29c556={'pRETf':_0x3b455c(0x26b),'OPkgF':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','csZMX':_0x3b455c(0x1f1),'fEqaO':'scope','ycXKB':'user','owgiT':_0x3b455c(0x1fe),'nvlff':'url','AFTsk':_0x3b455c(0x1dc),'cGHsZ':'force'};return _0x4f9d71['positional']('token',{'type':_0x29c556[_0x3b455c(0x294)],'description':_0x29c556[_0x3b455c(0x26f)]})['option'](_0x29c556[_0x3b455c(0x29a)],{'type':_0x3b455c(0x1af),'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})[_0x3b455c(0x1d8)](_0x29c556['fEqaO'],{'type':_0x29c556[_0x3b455c(0x294)],'choices':[_0x29c556['ycXKB'],_0x29c556['owgiT']],'description':_0x3b455c(0x1fc)})['option'](_0x29c556[_0x3b455c(0x293)],{'type':_0x29c556['pRETf'],'description':_0x29c556['AFTsk']})[_0x3b455c(0x1d8)](_0x29c556['cGHsZ'],{'type':_0x3b455c(0x1af),'description':_0x3b455c(0x1f7),'default':![]});},async _0x5deae1=>{const _0xf0e10b=_0xe05987;warnRenamed('ranger\x20start',_0xf0e10b(0x1e0)),await withTelemetry('start',_0x3eb068=>start(_0x5deae1['token'],{'skipChromium':_0x5deae1[_0xf0e10b(0x1f1)],'scope':_0x5deae1[_0xf0e10b(0x296)],'url':_0x5deae1['url'],'force':_0x5deae1['force']},_0x3eb068));})['command']('verify-feature',![],_0x16d70f=>{const _0x48ca81=_0xe05987,_0x2aa8e6={'Wjmyg':'string','GWmYW':_0x48ca81(0x27e),'oJlKs':'number','ffhEn':_0x48ca81(0x1df),'UZdad':'scenario','akcDG':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','jizyy':'model','wPkcs':_0x48ca81(0x29f),'XiLPb':'boolean','DVqQg':'verified','MhxXE':_0x48ca81(0x271),'KrNsT':_0x48ca81(0x19b),'yalkt':'incomplete'};return _0x16d70f['option'](_0x48ca81(0x1ac),{'type':_0x2aa8e6['Wjmyg'],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x48ca81(0x1d8)](_0x2aa8e6[_0x48ca81(0x27b)],{'type':_0x2aa8e6['Wjmyg'],'description':_0x48ca81(0x2f4)})['option'](_0x48ca81(0x22f),{'type':_0x2aa8e6[_0x48ca81(0x1f8)],'description':_0x2aa8e6['ffhEn']})['option']('profile',{'type':_0x48ca81(0x26b),'hidden':!![]})['option']('notes',{'type':_0x2aa8e6['Wjmyg'],'hidden':!![]})[_0x48ca81(0x1d8)](_0x2aa8e6[_0x48ca81(0x1ff)],{'type':_0x48ca81(0x190),'hidden':!![]})[_0x48ca81(0x1d8)]('start-path',{'type':_0x2aa8e6['Wjmyg'],'description':_0x2aa8e6['akcDG']})[_0x48ca81(0x1d8)](_0x2aa8e6[_0x48ca81(0x2c7)],{'type':'string','hidden':!![]})[_0x48ca81(0x1d8)](_0x2aa8e6['wPkcs'],{'type':_0x2aa8e6[_0x48ca81(0x1bf)],'hidden':!![],'default':![]})[_0x48ca81(0x1d8)]('debug-outcome',{'type':_0x48ca81(0x26b),'hidden':!![],'choices':[_0x2aa8e6['DVqQg'],_0x48ca81(0x2df),_0x2aa8e6[_0x48ca81(0x213)],_0x2aa8e6[_0x48ca81(0x2ea)],_0x2aa8e6['yalkt']]});},async _0x12dcc1=>{const _0x4bf2d4={'dqLgz':function(_0x101e22,_0x1c115e,_0x546549){return _0x101e22(_0x1c115e,_0x546549);}};await _0x4bf2d4['dqLgz'](runGoCommand,_0x12dcc1,!![]);})['command']('add\x20env\x20<env-name>',![],_0x55ce85=>{const _0x41b019=_0xe05987,_0x286d49={'gQRGg':_0x41b019(0x26b),'UXchN':'boolean','VdCWh':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','dKRMD':_0x41b019(0x259),'HKdUp':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x55ce85[_0x41b019(0x1be)](_0x41b019(0x195),{'type':_0x286d49[_0x41b019(0x2d0)],'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x286d49[_0x41b019(0x2cc)],'description':_0x286d49[_0x41b019(0x2ed)],'default':![]})['option'](_0x286d49[_0x41b019(0x1bb)],{'type':_0x41b019(0x1af),'description':_0x286d49['HKdUp'],'default':![]});},async _0x34c6f1=>{const _0x359508=_0xe05987,_0x589ad9={'offfZ':'ranger\x20add\x20env','bTORB':_0x359508(0x19f)};warnRenamed(_0x589ad9['offfZ'],_0x589ad9['bTORB']),await withTelemetry(_0x359508(0x20b),_0x198ab3=>addEnv(_0x34c6f1[_0x359508(0x195)],{'ci':_0x34c6f1['ci'],'skipAuth':_0x34c6f1[_0x359508(0x259)]},_0x198ab3));})[_0xe05987(0x1ba)](_0xe05987(0x1da),![],_0x5dbc86=>{const _0x3730e1=_0xe05987,_0x479f79={'iUVaY':_0x3730e1(0x195),'IfkXD':_0x3730e1(0x26b)};return _0x5dbc86['positional'](_0x479f79['iUVaY'],{'type':_0x479f79[_0x3730e1(0x27f)],'description':_0x3730e1(0x1ad),'demandOption':!![]});},async _0xe49ed5=>{const _0x535c3c=_0xe05987,_0x5b73b6={'DYEzP':function(_0x25b3f8,_0x5a080c,_0x1e6445){return _0x25b3f8(_0x5a080c,_0x1e6445);}};_0x5b73b6[_0x535c3c(0x28a)](warnRenamed,'ranger\x20use','ranger\x20profile\x20use'),await withTelemetry('use',()=>useEnv(_0xe49ed5['env-name']));})['command']('config',![],_0x40d16f=>{const _0xc47f5e=_0xe05987,_0x1de01d={'LtJxD':'string','brvig':_0xc47f5e(0x1ed),'nRCYW':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','utsgs':_0xc47f5e(0x20c),'Thscv':_0xc47f5e(0x23b),'yXdYG':function(_0x3ec768,_0x487819,_0x5c8c3e){return _0x3ec768(_0x487819,_0x5c8c3e);},'OaXoa':_0xc47f5e(0x257),'aIXLX':_0xc47f5e(0x2c0),'RLKIr':_0xc47f5e(0x26a),'HMKlE':function(_0x36a8cb,_0x20422d,_0x4ec985){return _0x36a8cb(_0x20422d,_0x4ec985);},'qeoiI':_0xc47f5e(0x2b5),'YyoXl':function(_0x4a2106,_0x4ce806,_0x4763c2){return _0x4a2106(_0x4ce806,_0x4763c2);},'WXShi':_0xc47f5e(0x262),'QdZuo':_0xc47f5e(0x2e5),'gvYHh':'env','VXZrE':'key'};return _0x40d16f['command'](_0xc47f5e(0x1c8),![],_0x41dbf4=>{const _0x300764=_0xc47f5e;return _0x41dbf4['positional'](_0x300764(0x1ac),{'type':_0x1de01d['LtJxD'],'description':_0x1de01d['brvig'],'demandOption':!![]})['positional']('key',{'type':_0x300764(0x26b),'description':_0x1de01d[_0x300764(0x1ca)],'demandOption':!![]})[_0x300764(0x1be)](_0x1de01d[_0x300764(0x251)],{'type':_0x1de01d['LtJxD'],'description':_0x1de01d['Thscv'],'demandOption':!![]});},async _0x3322f7=>{const _0x2824b1=_0xc47f5e;_0x1de01d[_0x2824b1(0x2ca)](warnRenamed,'ranger\x20config\x20set',_0x1de01d[_0x2824b1(0x26d)]),await withTelemetry(_0x1de01d[_0x2824b1(0x2af)],()=>configSet(_0x3322f7['env'],_0x3322f7[_0x2824b1(0x2f3)],_0x3322f7[_0x2824b1(0x20c)]));})['command']('get\x20<env>\x20<key>',![],_0x16b153=>{const _0x380294=_0xc47f5e;return _0x16b153['positional']('env',{'type':_0x1de01d[_0x380294(0x1fd)],'description':'Environment\x20name','demandOption':!![]})['positional'](_0x380294(0x2f3),{'type':_0x1de01d['LtJxD'],'description':_0x1de01d['RLKIr'],'demandOption':!![]});},async _0x1773dc=>{const _0x538f66=_0xc47f5e;warnRenamed('ranger\x20config\x20get',_0x538f66(0x273)),await _0x1de01d[_0x538f66(0x211)](withTelemetry,_0x1de01d[_0x538f66(0x2b0)],()=>configGet(_0x1773dc['env'],_0x1773dc['key']));})[_0xc47f5e(0x1ba)](_0xc47f5e(0x1c7),![],_0x420772=>{const _0x3a4b73=_0xc47f5e;return _0x420772['positional'](_0x3a4b73(0x1ac),{'type':_0x1de01d[_0x3a4b73(0x1fd)],'description':_0x1de01d[_0x3a4b73(0x199)],'demandOption':!![]});},async _0x4446ec=>{const _0x34e438=_0xc47f5e;_0x1de01d['YyoXl'](warnRenamed,_0x34e438(0x20e),_0x1de01d[_0x34e438(0x292)]),await withTelemetry(_0x1de01d['QdZuo'],()=>configList(_0x4446ec['env']));})[_0xc47f5e(0x1ba)](_0xc47f5e(0x29e),![],_0x3bfa95=>{const _0x15d6d8=_0xc47f5e;return _0x3bfa95[_0x15d6d8(0x1be)](_0x1de01d['gvYHh'],{'type':_0x1de01d['LtJxD'],'description':_0x1de01d['brvig'],'demandOption':!![]})['positional'](_0x1de01d['VXZrE'],{'type':_0x1de01d[_0x15d6d8(0x1fd)],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x26852d=>{const _0x39e9a4=_0xc47f5e;warnRenamed('ranger\x20config\x20unset','ranger\x20profile\x20config\x20unset'),await withTelemetry('config\x20unset',()=>configUnset(_0x26852d['env'],_0x26852d[_0x39e9a4(0x2f3)]));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20config\x20subcommand');})['command'](_0xe05987(0x1ac),![],_0x48cc3f=>{const _0x438e8d=_0xe05987,_0x52f3fd={'fGDup':'env\x20list','RNtrl':_0x438e8d(0x2d8),'ckHrD':function(_0x240f4f,_0x1a62d2,_0x363705){return _0x240f4f(_0x1a62d2,_0x363705);},'PHJHp':_0x438e8d(0x238),'Pnfei':_0x438e8d(0x23f),'lsXGQ':function(_0x57293c,_0x5e7c09,_0x2fc656){return _0x57293c(_0x5e7c09,_0x2fc656);},'zdeKy':_0x438e8d(0x230),'yEtlo':_0x438e8d(0x207),'CIgeN':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x48cc3f['command']('ls',![],()=>{},async()=>{const _0x30de46=_0x438e8d;warnRenamed(_0x30de46(0x2b4),_0x30de46(0x23d)),await withTelemetry(_0x52f3fd['fGDup'],()=>envList());})[_0x438e8d(0x1ba)](_0x52f3fd[_0x438e8d(0x2c8)],![],_0x1916ae=>{const _0x3ca447=_0x438e8d;return _0x1916ae['positional']('env-name',{'type':'string','description':_0x52f3fd[_0x3ca447(0x255)],'demandOption':!![]});},async _0x108c3f=>{const _0x3fc46f=_0x438e8d;_0x52f3fd['ckHrD'](warnRenamed,_0x52f3fd[_0x3fc46f(0x2ef)],_0x52f3fd[_0x3fc46f(0x1b3)]),await _0x52f3fd['lsXGQ'](withTelemetry,_0x52f3fd[_0x3fc46f(0x25c)],_0x15a70e=>updateEnv(_0x108c3f['env-name'],_0x15a70e));})[_0x438e8d(0x236)](0x1,_0x52f3fd[_0x438e8d(0x2cf)]);})['command'](_0xe05987(0x221),![],_0x12ad2f=>{const _0x5f30d5=_0xe05987,_0x52aafc={'QfShx':'name','fYskl':'string','RLhHW':'checklist','neYFH':'array','oURlu':_0x5f30d5(0x1e7),'LCRiK':function(_0x430f2b,_0x231f03,_0x305a29){return _0x430f2b(_0x231f03,_0x305a29);},'XqCbD':'ranger\x20feature\x20create','gTHLq':function(_0x1050b1,_0x5e08ce,_0x48aaff,_0x262790){return _0x1050b1(_0x5e08ce,_0x48aaff,_0x262790);},'hwBBO':_0x5f30d5(0x1a4),'FtJwu':'current-branch','nYINi':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','AogIj':'limit','aCmqD':_0x5f30d5(0x190),'gPGJm':_0x5f30d5(0x28c),'ImfNQ':'offset','CSlhx':'Include\x20soft-deleted\x20feature\x20reviews','zurrX':'ranger\x20feature\x20list','KwqVD':_0x5f30d5(0x1e1),'hKoup':'ranger\x20feature\x20show','iFDgq':'ranger\x20show','dMefe':_0x5f30d5(0x1d7),'lYxKO':'ranger\x20resume','NKrwf':_0x5f30d5(0x264),'ovkQz':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','sDlkI':'ranger\x20feature\x20add-checklist-item','ZbQcJ':_0x5f30d5(0x244),'ZkhbX':_0x5f30d5(0x1e2),'EKDfy':function(_0x4449e2,_0x15587f,_0x839bf4){return _0x4449e2(_0x15587f,_0x839bf4);},'tMGAT':'Feature\x20review\x20ID','GNrWk':_0x5f30d5(0x228),'ofIvb':_0x5f30d5(0x1c1),'kUYfW':function(_0x49ee00,_0x5714a5,_0x117ad7){return _0x49ee00(_0x5714a5,_0x117ad7);},'mdeGA':_0x5f30d5(0x2d6),'MwqNQ':function(_0x28d0c9,_0x281b47,_0x57286d){return _0x28d0c9(_0x281b47,_0x57286d);},'iJuWO':_0x5f30d5(0x289),'IwDah':_0x5f30d5(0x203),'ddyIJ':'show\x20[id]','GifBi':'resume\x20[id]','MONRA':_0x5f30d5(0x241),'Zxoig':'delete\x20[id]','Hhjyq':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x12ad2f['command'](_0x5f30d5(0x1d1),![],_0x32cc7a=>{const _0x5eb5bb=_0x5f30d5;return _0x32cc7a['positional'](_0x52aafc[_0x5eb5bb(0x1a0)],{'type':_0x52aafc[_0x5eb5bb(0x281)],'description':'Feature\x20review\x20name','demandOption':!![]})[_0x5eb5bb(0x1d8)](_0x5eb5bb(0x19d),{'type':'string','alias':'d','description':_0x5eb5bb(0x2ba)})['option'](_0x52aafc[_0x5eb5bb(0x21f)],{'type':_0x52aafc[_0x5eb5bb(0x268)],'alias':'c','description':_0x52aafc[_0x5eb5bb(0x1b7)]})[_0x5eb5bb(0x1d8)](_0x5eb5bb(0x197),{'type':_0x52aafc['neYFH'],'hidden':!![]});},async _0x39bc1b=>{const _0x39a4a9=_0x5f30d5;_0x52aafc[_0x39a4a9(0x217)](warnRenamed,_0x52aafc[_0x39a4a9(0x1c5)],'ranger\x20create'),_0x52aafc[_0x39a4a9(0x2d1)](warnFlagRenamed,_0x39a4a9(0x2b6),'--checklist','--scenario');const _0x63f344=_0x39bc1b['scenario']||_0x39bc1b[_0x39a4a9(0x2e0)];await _0x52aafc['LCRiK'](withTelemetry,_0x52aafc['hwBBO'],()=>featureCreate(_0x39bc1b['name'],{'description':_0x39bc1b[_0x39a4a9(0x19d)],'scenarios':_0x63f344}));})[_0x5f30d5(0x1ba)](_0x52aafc[_0x5f30d5(0x1c9)],![],_0x18cd63=>{const _0x214d22=_0x5f30d5;return _0x18cd63['option'](_0x52aafc[_0x214d22(0x263)],{'type':'boolean','description':_0x52aafc['nYINi']})['option'](_0x52aafc[_0x214d22(0x1d4)],{'type':_0x52aafc['aCmqD'],'alias':'l','description':_0x52aafc[_0x214d22(0x1f9)],'default':0xa})[_0x214d22(0x1d8)](_0x52aafc[_0x214d22(0x2db)],{'type':_0x214d22(0x190),'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option'](_0x214d22(0x28f),{'type':'boolean','alias':'d','description':_0x52aafc['CSlhx'],'default':![]});},async _0x405a66=>{const _0x19d55a=_0x5f30d5;warnRenamed(_0x52aafc[_0x19d55a(0x198)],'ranger\x20list'),await withTelemetry(_0x52aafc['KwqVD'],()=>featureList({'currentBranch':_0x405a66[_0x19d55a(0x2f8)],'limit':_0x405a66[_0x19d55a(0x193)],'offset':_0x405a66[_0x19d55a(0x243)],'includeDeleted':_0x405a66['include-deleted']}));})['command'](_0x52aafc['ddyIJ'],![],_0x458f77=>{const _0x10198b=_0x5f30d5;return _0x458f77['positional']('id',{'type':_0x52aafc['fYskl'],'description':_0x10198b(0x2ab)});},async _0x3b92ec=>{const _0x13e196=_0x5f30d5;warnRenamed(_0x52aafc[_0x13e196(0x234)],_0x52aafc['iFDgq']),await _0x52aafc[_0x13e196(0x217)](withTelemetry,_0x13e196(0x1b2),()=>featureShow(_0x3b92ec['id']));})[_0x5f30d5(0x1ba)](_0x52aafc['GifBi'],![],_0x5a381d=>{const _0x5c7edd=_0x5f30d5;return _0x5a381d['positional']('id',{'type':'string','description':_0x52aafc[_0x5c7edd(0x18a)]});},async _0x340f3f=>{const _0x283821=_0x5f30d5;warnRenamed(_0x283821(0x2bd),_0x52aafc[_0x283821(0x2c1)]),await withTelemetry(_0x283821(0x210),()=>featureResume(_0x340f3f['id']));})[_0x5f30d5(0x1ba)](_0x52aafc[_0x5f30d5(0x1b0)],![],_0x27766a=>{const _0x188f7a=_0x5f30d5;return _0x27766a[_0x188f7a(0x1be)]('description',{'type':'string','description':_0x52aafc['NKrwf'],'demandOption':!![]})[_0x188f7a(0x1d8)]('id',{'type':_0x188f7a(0x26b),'description':_0x52aafc[_0x188f7a(0x2f2)]});},async _0x581bc2=>{const _0x4985dd=_0x5f30d5;warnRenamed(_0x52aafc[_0x4985dd(0x247)],_0x52aafc['ZbQcJ']),await _0x52aafc[_0x4985dd(0x217)](withTelemetry,_0x4985dd(0x1f4),()=>featureAddScenario(_0x581bc2[_0x4985dd(0x19d)],_0x581bc2['id']));})['command'](_0x5f30d5(0x216),![],_0x31599e=>{const _0x385e17=_0x5f30d5;return _0x31599e[_0x385e17(0x1be)]('id',{'type':'string','description':_0x385e17(0x208)});},async _0xe72c87=>{const _0x2ef841=_0x5f30d5;warnRenamed(_0x52aafc['ZkhbX'],'ranger\x20get-review'),await _0x52aafc['EKDfy'](withTelemetry,_0x2ef841(0x2e7),()=>featureGetReview(_0xe72c87['id']));})[_0x5f30d5(0x1ba)](_0x52aafc[_0x5f30d5(0x23c)],![],_0x53167f=>{const _0xa354ca=_0x5f30d5;return _0x53167f['positional']('id',{'type':_0xa354ca(0x26b),'description':_0x52aafc[_0xa354ca(0x267)]});},async _0x210f95=>{const _0x56d25d=_0x5f30d5;warnRenamed('ranger\x20feature\x20delete',_0x52aafc[_0x56d25d(0x2c9)]),await withTelemetry(_0x52aafc[_0x56d25d(0x21e)],()=>featureDelete(_0x210f95['id']));})['command'](_0x5f30d5(0x23a),![],_0x44376e=>{const _0x3e30f6=_0x5f30d5;return _0x44376e[_0x3e30f6(0x1be)]('id',{'type':_0x3e30f6(0x26b),'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x36b080=>{const _0x191ec9=_0x5f30d5;_0x52aafc[_0x191ec9(0x1ee)](warnRenamed,'ranger\x20feature\x20restore',_0x52aafc[_0x191ec9(0x2ad)]),await _0x52aafc[_0x191ec9(0x29c)](withTelemetry,_0x52aafc['iJuWO'],()=>featureRestore(_0x36b080['id']));})[_0x5f30d5(0x236)](0x1,_0x52aafc['Hhjyq']);})[_0xe05987(0x1ba)]('hook',![],_0x22e3bc=>{const _0xe8d48d=_0xe05987,_0x369731={'naABi':'session-id','zAlSJ':'string','lPEGx':function(_0x6104da,_0x2e0de3,_0x5c8479){return _0x6104da(_0x2e0de3,_0x5c8479);},'qwxYm':'hook:disable','BJhrV':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','ldcOn':_0xe8d48d(0x22c),'UpSbz':_0xe8d48d(0x248),'YvJDA':_0xe8d48d(0x1fb),'GWNfI':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'};return _0x22e3bc[_0xe8d48d(0x1ba)]('enable',_0x369731['BJhrV'],_0x476982=>{const _0xef77ae=_0xe8d48d;return _0x476982[_0xef77ae(0x1d8)](_0x369731[_0xef77ae(0x2ac)],{'type':_0x369731['zAlSJ'],'description':_0xef77ae(0x1e5)});},async _0x497ddf=>{const _0x2dd144=_0xe8d48d;await _0x369731['lPEGx'](withTelemetry,_0x2dd144(0x2b8),()=>hook('enable',_0x497ddf['session-id']));})[_0xe8d48d(0x1ba)](_0x369731['ldcOn'],_0x369731[_0xe8d48d(0x22e)],_0xfdf437=>{const _0x30ad90=_0xe8d48d;return _0xfdf437['option'](_0x369731['naABi'],{'type':_0x30ad90(0x26b),'description':_0x30ad90(0x1e5)});},async _0x2dde0d=>{const _0x29f8ae=_0xe8d48d;await withTelemetry(_0x369731['qwxYm'],()=>hook('disable',_0x2dde0d[_0x29f8ae(0x2e8)]));})[_0xe8d48d(0x1d8)](_0x369731['YvJDA'],{'type':_0xe8d48d(0x26b),'description':_0x369731['GWNfI']})[_0xe8d48d(0x1d8)](_0x369731['naABi'],{'type':'string','description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x2eb71c=>{const _0x552a4d=_0xe05987,_0x51eb6d={'SBsjU':_0x552a4d(0x2e8)};_0x2eb71c['name']&&await hook(_0x2eb71c['name'],_0x2eb71c[_0x51eb6d['SBsjU']]);})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20command')[_0xe05987(0x2a9)]()['fail'](async(_0x14dc63,_0x1d5fe2,_0x4993a7)=>{const _0x4994f9=_0xe05987,_0xe2b740={'uMiSv':function(_0x480a68,_0x2f1a4c){return _0x480a68(_0x2f1a4c);},'FyKbq':function(_0x17bb82,_0x55921b,_0xa68013){return _0x17bb82(_0x55921b,_0xa68013);},'YoPzb':'Unknown\x20command'},_0x42c8bd=_0xe2b740['uMiSv'](sanitizeArgs,process[_0x4994f9(0x2e6)][_0x4994f9(0x282)](0x2)),_0x21d24f=_0xe2b740['FyKbq'](getErrorType,_0x14dc63,_0x1d5fe2);if(_0x14dc63&&_0x14dc63['includes'](_0xe2b740[_0x4994f9(0x285)])){const _0x1777bc=process[_0x4994f9(0x2e6)][0x2];console[_0x4994f9(0x25b)](_0x4994f9(0x24c)+_0x1777bc),console['error'](_0x4994f9(0x1a2));}else{if(_0x14dc63)console['error']('\x0a'+_0x14dc63+'\x0a');else _0x1d5fe2&&console['error'](_0x4994f9(0x1b5)+_0x1d5fe2['message']+'\x0a');}await logDesirePath({'rawCommand':_0x42c8bd,'errorMessage':_0x14dc63||_0x1d5fe2?.['message'],'errorType':_0x21d24f});const _0xe86896=getCurrentCollector();_0xe86896&&await _0xe86896[_0x4994f9(0x254)](_0x1d5fe2||new Error(_0x14dc63||'Unknown\x20error')),process[_0x4994f9(0x275)](0x1);})['epilogue'](_0xe05987(0x25f)+_0xe05987(0x269)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()['alias']('help','h')[_0xe05987(0x25e)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x20e753,_0x231b93){const _0x589c26=_0x4b5d,_0x1759a5=_0x20e753();while(!![]){try{const _0x17c744=-parseInt(_0x589c26(0x13c))/0x1*(parseInt(_0x589c26(0x16a))/0x2)+parseInt(_0x589c26(0x12a))/0x3*(parseInt(_0x589c26(0x16d))/0x4)+-parseInt(_0x589c26(0x13b))/0x5*(-parseInt(_0x589c26(0x18c))/0x6)+parseInt(_0x589c26(0x18d))/0x7*(-parseInt(_0x589c26(0x11f))/0x8)+-parseInt(_0x589c26(0x12e))/0x9*(-parseInt(_0x589c26(0x139))/0xa)+-parseInt(_0x589c26(0x166))/0xb+parseInt(_0x589c26(0x165))/0xc*(parseInt(_0x589c26(0x172))/0xd);if(_0x17c744===_0x231b93)break;else _0x1759a5['push'](_0x1759a5['shift']());}catch(_0x2c23b9){_0x1759a5['push'](_0x1759a5['shift']());}}}(_0x1515,0x8c93c));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x2e079b from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';function _0x4b5d(_0x328c56,_0x4ee686){_0x328c56=_0x328c56-0x11f;const _0x15152=_0x1515();let _0x4b5d88=_0x15152[_0x328c56];return _0x4b5d88;}import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x143219){const _0x220f78=_0x4b5d,_0x14f91c={'WbFke':function(_0x16ad0f,_0x4096a6,_0x574893){return _0x16ad0f(_0x4096a6,_0x574893);},'gmUMB':'manual','lMYHs':function(_0xd751a3,_0x3176b7){return _0xd751a3(_0x3176b7);},'aWxVC':function(_0x2e131b,_0xd64e29){return _0x2e131b<_0xd64e29;},'RnqVb':_0x220f78(0x131),'NnLtZ':_0x220f78(0x122),'rBWCS':_0x220f78(0x149)};try{const _0x521bbc=new AbortController(),_0x2debef=_0x14f91c['WbFke'](setTimeout,()=>_0x521bbc['abort'](),0x1388),_0x5160ab=await fetch(_0x143219,{'method':'HEAD','signal':_0x521bbc[_0x220f78(0x162)],'redirect':_0x14f91c['gmUMB']});_0x14f91c['lMYHs'](clearTimeout,_0x2debef);if(_0x14f91c[_0x220f78(0x143)](_0x5160ab['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x220f78(0x137)+_0x5160ab[_0x220f78(0x19a)]};}catch(_0x275247){const _0x408824=_0x275247,_0x36a9cf=_0x408824['message']||_0x14f91c['lMYHs'](String,_0x275247),_0x21b558=_0x36a9cf[_0x220f78(0x133)](_0x14f91c[_0x220f78(0x189)])||_0x408824[_0x220f78(0x142)]===_0x14f91c[_0x220f78(0x158)]||_0x36a9cf['includes'](_0x14f91c[_0x220f78(0x14a)]);return{'ok':![],'error':_0x36a9cf,'isProtocolError':_0x21b558};}}function _0x1515(){const _0x69b5ef=['overwrite','Enter\x20a\x20different\x20URL','\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','utf-8','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','push','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','RnqVb','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','\x20\x20ranger\x20profile\x20add\x20','417522rlWLBS','3497606MRgxog','url_setup','error','Saving\x20authentication\x20state...','length','isProtocolError','now','path','continue','catch','safeMode','VGlYx','legacy','status','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','local','config_write','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','kZeOq','16HQtxTU','⚠\x20Could\x20not\x20reach\x20','Profile\x20\x22','TypeError','\x20\x20\x20Creating\x20it\x20in\x20','confirm','force','oxvYj','url','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','IOPMJ','85548UZGcGT','vuvjM','Xoqua','root\x20(.ranger/)','36klutBC','test','stdout','Invalid\x20URL','.tmp-','includes','prompt','trim','isElectron','HTTP\x20','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','551500BnakwW','Removed\x20existing\x20profile\x20at\x20','35yXJYVO','3iJNKXN','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','\x22\x20configured','AyFxe','jBEqS','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','name','aWxVC','trackPhaseEnd','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','GuvqT','fetch\x20failed','rBWCS','swgaD','\x0a🌐\x20Profile\x20Setup\x0a','http://localhost:3000','RmLry','wXyHf','Aborted.','stringify','You\x20can\x20try\x20again\x20with\x20one\x20of:','log','use_suggestion','aBvwg','about:blank','guoMq','NnLtZ','.enc','ZWVdg','trackPhaseStart','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','VugTr','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','settings.json','--disable-features=WebBluetooth','signal','\x0a📋\x20Authentication\x20Setup','VCNdB','1116YfqIeY','10756031buXKcC','pkBvH','stdin','HRkcX','361058lMsRRS','AqFpJ','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','88EvEkER','USTIw','action','\x22\x20already\x20exists\x20in\x20','\x20would\x20shadow\x20the\x20existing\x20profile.','245947VVqjoR','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','newContext','browser_auth','allowInsecureLocalhost','retry','\x0a\x20\x20Profile\x20\x22','xlICS','shouldReplace','cdpEndpoint','skipAuth','bcoar','location','\x0a⚠️\x20\x20Profile\x20\x22','Delete\x20existing\x20and\x20create\x20new\x20in\x20','\x20(continuing\x20with\x20--force)'];_0x1515=function(){return _0x69b5ef;};return _0x1515();}export async function addEnv(_0x14504f,_0x5b0858={},_0x19cea2){const _0x279e9a=_0x4b5d,_0xc1ab3={'AqFpJ':_0x279e9a(0x190),'aBvwg':_0x279e9a(0x19c),'wXyHf':function(_0xe7c136,_0x346195,_0x2fd698,_0x5a0244){return _0xe7c136(_0x346195,_0x2fd698,_0x5a0244);},'Xoqua':function(_0x27d0ce){return _0x27d0ce();},'OEcYQ':function(_0x505319,_0x2fa968){return _0x505319!==_0x2fa968;},'swgaD':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','bcoar':_0x279e9a(0x15c),'vRyun':function(_0x3a3f01,_0x5ba0fa){return _0x3a3f01(_0x5ba0fa);},'IOPMJ':_0x279e9a(0x19e),'kZeOq':_0x279e9a(0x182),'msUyd':_0x279e9a(0x150),'HYhSS':function(_0x40e284,_0x39ff0b){return _0x40e284===_0x39ff0b;},'pPutA':_0x279e9a(0x12d),'HOSWy':_0x279e9a(0x17a),'DEqpG':_0x279e9a(0x146),'HNzUH':_0x279e9a(0x173),'ZWVdg':_0x279e9a(0x128),'TCqHw':'baseUrl','AMLbZ':_0x279e9a(0x141),'jBEqS':function(_0x1b931d,_0x1057bd){return _0x1b931d||_0x1057bd;},'oqHeN':function(_0x638d66,_0x202f2d){return _0x638d66(_0x202f2d);},'RmLry':_0x279e9a(0x16f),'ZBgaf':_0x279e9a(0x154),'oxvYj':_0x279e9a(0x183),'USTIw':_0x279e9a(0x18e),'vuvjM':function(_0x4deb46,_0x5eecfe,_0x3d1d07){return _0x4deb46(_0x5eecfe,_0x3d1d07);},'pkBvH':'auth.json','xlICS':_0x279e9a(0x175),'VCNdB':_0x279e9a(0x163),'VGlYx':_0x279e9a(0x15e),'uCULN':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','VugTr':_0x279e9a(0x156),'GuvqT':'\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','HRkcX':_0x279e9a(0x152),'aJUoH':'Browser\x20closed\x20before\x20authentication\x20was\x20saved.','AyFxe':_0x279e9a(0x18a),'UpAQW':_0x279e9a(0x19d),'LmrWR':function(_0x5e9255,_0x3d2f6f,_0x5cc83b){return _0x5e9255(_0x3d2f6f,_0x5cc83b);},'zkVDj':_0x279e9a(0x160),'guoMq':function(_0x278bfe,_0x1a41bb,_0x16c745){return _0x278bfe(_0x1a41bb,_0x16c745);},'ZtxFG':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'},_0xad404b=_0x5b0858['ci']??![],_0x59dcd6=_0xad404b?'ci':_0xc1ab3[_0x279e9a(0x155)],_0x3dc1ab=_0xc1ab3[_0x279e9a(0x14f)](join,_0xc1ab3[_0x279e9a(0x12c)](getRangerDir),_0x59dcd6,_0x14504f),_0x28b212=join(getRangerDir(),_0x59dcd6);if(_0xc1ab3['OEcYQ'](_0x5b0858['cdpEndpoint'],undefined)&&_0x5b0858[_0x279e9a(0x17b)][_0x279e9a(0x135)]()==='')throw new Error(_0xc1ab3[_0x279e9a(0x14b)]);if(_0x5b0858[_0x279e9a(0x17b)]&&_0x5b0858[_0x279e9a(0x127)])throw new Error(_0xc1ab3[_0x279e9a(0x17d)]);if(_0x5b0858['cdpEndpoint']&&_0x5b0858['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 _0x4c6be9=_0xc1ab3['vRyun'](Boolean,_0x5b0858['cdpEndpoint']),_0x3d6b27=!_0x5b0858[_0x279e9a(0x17c)]&&!_0x4c6be9,_0x2bf509=process[_0x279e9a(0x168)]['isTTY']&&process[_0x279e9a(0x130)]['isTTY'];if(!_0x2bf509&&!_0x5b0858[_0x279e9a(0x127)]&&!_0x4c6be9)throw new Error(_0xc1ab3[_0x279e9a(0x129)]);const _0x35970d=findExistingEnv(_0x14504f);let _0x20b199=null;if(_0x35970d){if(!_0x2bf509)_0x20b199=_0x35970d;else{if(_0x35970d[_0x279e9a(0x17e)]===_0x59dcd6){const {overwrite:_0xaed841}=await _0x2e079b['prompt']([{'type':_0x279e9a(0x124),'name':_0xc1ab3[_0x279e9a(0x19f)],'message':_0x279e9a(0x121)+_0x14504f+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0xaed841){console['log'](_0xc1ab3['msUyd']);return;}_0x20b199=_0x35970d;}else{const _0xb7bc2c=_0xc1ab3['HYhSS'](_0x35970d[_0x279e9a(0x17e)],_0x279e9a(0x199))?_0xc1ab3['pPutA']:_0x35970d[_0x279e9a(0x17e)];console['error'](_0x279e9a(0x17f)+_0x14504f+_0x279e9a(0x170)+_0xb7bc2c+':\x20'+_0x35970d[_0x279e9a(0x194)]),console['error'](_0x279e9a(0x123)+_0x59dcd6+_0x279e9a(0x171));const {shouldReplace:_0x2cf935}=await _0x2e079b[_0x279e9a(0x134)]([{'type':'confirm','name':_0xc1ab3['HOSWy'],'message':_0x279e9a(0x180)+_0x59dcd6+'?','default':![]}]);if(!_0x2cf935){console['log'](_0xc1ab3['msUyd']);return;}_0x20b199=_0x35970d;}}}_0x19cea2?.[_0x279e9a(0x15b)]('url_setup');let _0x1626fd='';if(_0x4c6be9)console[_0x279e9a(0x153)](_0xc1ab3['DEqpG']),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x5b0858[_0x279e9a(0x17b)]),console[_0x279e9a(0x153)](_0xc1ab3['HNzUH']);else{if(_0x5b0858[_0x279e9a(0x127)]){_0x1626fd=_0x5b0858['url'];const _0x672d8f=await checkUrlReachability(_0x1626fd);if(!_0x672d8f['ok']&&!_0x5b0858[_0x279e9a(0x125)])throw new Error('Could\x20not\x20reach\x20'+_0x1626fd+':\x20'+_0x672d8f['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x672d8f['ok']&&_0x5b0858['force']&&console['log'](_0x279e9a(0x120)+_0x1626fd+':\x20'+_0x672d8f['error']+_0x279e9a(0x181));}else{console['log'](_0x279e9a(0x14c)),console[_0x279e9a(0x153)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console['log'](_0xc1ab3[_0x279e9a(0x15a)]);let _0x590925=![];while(!![]){const _0x48dd49=await _0x2e079b['prompt']([{'type':'input','name':_0xc1ab3['TCqHw'],'message':_0x590925?_0xc1ab3['AMLbZ']:_0x279e9a(0x186),'default':_0xc1ab3[_0x279e9a(0x140)](_0x1626fd,_0x279e9a(0x14d))}]);_0x1626fd=_0x48dd49['baseUrl'];const _0x31ecac=await _0xc1ab3['oqHeN'](checkUrlReachability,_0x1626fd);if(_0x31ecac['ok'])break;const _0x2a96ac=/^[a-zA-Z][\w+.-]*:\/\//[_0x279e9a(0x12f)](_0x1626fd),_0x593c88=_0x31ecac[_0x279e9a(0x192)]&&!_0x2a96ac,_0x314a24=_0x593c88?'http://'+_0x1626fd:null;_0x590925=!![],console[_0x279e9a(0x153)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x1626fd+':\x20'+_0x31ecac[_0x279e9a(0x18f)]);_0x314a24&&console[_0x279e9a(0x153)]('\x20\x20Did\x20you\x20mean\x20'+_0x314a24+'?');const {action:_0x44cf49}=await _0x2e079b[_0x279e9a(0x134)]([{'type':'list','name':_0xc1ab3[_0x279e9a(0x14e)],'message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x314a24?[{'name':'Use\x20'+_0x314a24,'value':_0xc1ab3['ZBgaf']}]:[],{'name':_0xc1ab3[_0x279e9a(0x126)],'value':_0x279e9a(0x177)},{'name':'Continue\x20anyway','value':_0x279e9a(0x195)}]}]);if(_0x44cf49==='use_suggestion'&&_0x314a24){_0x1626fd=_0x314a24;const _0x10a85d=await checkUrlReachability(_0x1626fd);if(_0x10a85d['ok'])break;console[_0x279e9a(0x153)](_0x279e9a(0x138)+_0x1626fd+':\x20'+_0x10a85d['error']);}else{if(_0xc1ab3['HYhSS'](_0x44cf49,_0x279e9a(0x195)))break;}}}}_0x19cea2?.['trackPhaseEnd'](_0xc1ab3[_0x279e9a(0x16e)]),await _0xc1ab3['vuvjM'](mkdir,_0x28b212,{'recursive':!![]});const _0x3725b0=await _0xc1ab3['vRyun'](mkdtemp,_0xc1ab3[_0x279e9a(0x12b)](join,_0x28b212,_0x279e9a(0x132)+_0x14504f+'-')),_0x2bfdff=join(_0x3725b0,_0xc1ab3[_0x279e9a(0x167)]);try{if(_0x3d6b27){_0x19cea2?.[_0x279e9a(0x15b)](_0xc1ab3['xlICS']),console['log'](_0xc1ab3[_0x279e9a(0x164)]),console['log'](_0xc1ab3[_0x279e9a(0x198)]),console[_0x279e9a(0x153)](_0x279e9a(0x145));!_0x2bf509?(console[_0x279e9a(0x153)](_0x279e9a(0x184)),console['log'](_0xc1ab3['uCULN'])):console['log']('');await new Promise(_0x32f052=>setTimeout(_0x32f052,0xbb8));const _0x169144=[];_0x5b0858['safeMode']&&_0x169144[_0x279e9a(0x187)](_0x279e9a(0x161));const _0x561511=await chromium['launch']({'headless':![],..._0x169144[_0x279e9a(0x191)]>0x0?{'args':_0x169144}:{}});try{const _0xb4695d=await _0x561511[_0x279e9a(0x174)]();await addProfileSetupBanner(_0xb4695d);const _0x366e43=await _0xb4695d['newPage']();await _0x366e43['goto'](_0x1626fd||_0xc1ab3[_0x279e9a(0x15d)]);let _0x30e6d7=![];await new Promise(_0x282410=>{_0x366e43['on']('close',async()=>{const _0x54e675=_0x4b5d;try{console['log'](_0xc1ab3[_0x54e675(0x16b)]),await _0xb4695d['storageState']({'path':_0x2bfdff}),_0x30e6d7=!![];}catch{}_0x282410();});});if(!_0x30e6d7){console[_0x279e9a(0x153)](_0xc1ab3[_0x279e9a(0x148)]);!_0x5b0858[_0x279e9a(0x197)]&&(console['log'](_0x279e9a(0x13d)),console['log'](_0xc1ab3[_0x279e9a(0x169)]),console['log'](_0x279e9a(0x18b)+_0x14504f+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x279e9a(0x153)](_0x279e9a(0x18b)+_0x14504f+_0x279e9a(0x15f)));throw new Error(_0xc1ab3['aJUoH']);}}finally{await _0x561511['close']()[_0x279e9a(0x196)](()=>{});}if(_0xad404b){const _0x70b47=await readFile(_0x2bfdff,_0x279e9a(0x185)),_0x8b533d=await getToken();if(!_0x8b533d){console[_0x279e9a(0x18f)](_0x279e9a(0x19b)),await unlink(_0x2bfdff)[_0x279e9a(0x196)](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x3131ff=_0xc1ab3[_0x279e9a(0x12b)](encrypt,_0x70b47,_0x8b533d);await writeFile(_0x2bfdff+_0x279e9a(0x159),_0x3131ff),await unlink(_0x2bfdff),console[_0x279e9a(0x153)](_0x279e9a(0x16c)+_0x2bfdff+_0x279e9a(0x159)),console['log'](_0x279e9a(0x188)),console['log'](_0xc1ab3[_0x279e9a(0x13f)]);}}else console['log']('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x2bfdff);_0x19cea2?.['trackPhaseEnd'](_0xc1ab3[_0x279e9a(0x179)]);}_0x19cea2?.['trackPhaseStart'](_0xc1ab3['UpAQW']);const _0x37c2b4={};_0x1626fd&&(_0x37c2b4['baseUrl']=_0x1626fd);_0x5b0858['cdpEndpoint']&&(_0x37c2b4[_0x279e9a(0x17b)]=_0x5b0858[_0x279e9a(0x17b)],_0x37c2b4[_0x279e9a(0x136)]=!![]);_0x5b0858[_0x279e9a(0x176)]&&(_0x37c2b4[_0x279e9a(0x176)]=!![]);_0x5b0858['safeMode']&&(_0x37c2b4['safeMode']=!![]);await writeFile(_0xc1ab3['LmrWR'](join,_0x3725b0,_0xc1ab3['zkVDj']),JSON[_0x279e9a(0x151)](_0x37c2b4,null,0x2)),console[_0x279e9a(0x153)]('✓\x20Created\x20settings:\x20'+join(_0x3dc1ab,_0xc1ab3['zkVDj']));if(_0x20b199?.['location']===_0x59dcd6){const _0x2288e2=_0x20b199[_0x279e9a(0x194)]+'.backup-'+Date[_0x279e9a(0x193)]();await rename(_0x20b199['path'],_0x2288e2);try{await rename(_0x3725b0,_0x3dc1ab);}catch(_0x9bf091){await rename(_0x2288e2,_0x20b199[_0x279e9a(0x194)]);throw _0x9bf091;}try{await _0xc1ab3[_0x279e9a(0x157)](rm,_0x2288e2,{'recursive':!![]});}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x2288e2);}}else{await _0xc1ab3[_0x279e9a(0x12b)](rename,_0x3725b0,_0x3dc1ab);if(_0x20b199)try{await _0xc1ab3[_0x279e9a(0x157)](rm,_0x20b199['path'],{'recursive':!![]}),console['log'](_0x279e9a(0x13a)+_0x20b199['path']);}catch{console[_0x279e9a(0x153)](_0x279e9a(0x147)+_0x20b199[_0x279e9a(0x194)]);}}try{await writeActiveProfileName(_0x14504f),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x14504f);}catch{console['log'](_0xc1ab3['ZtxFG']);}_0x19cea2?.[_0x279e9a(0x144)]('config_write'),console['log'](_0x279e9a(0x178)+_0x14504f+_0x279e9a(0x13e));}catch(_0x417210){await rm(_0x3725b0,{'recursive':!![],'force':!![]});throw _0x417210;}}
|
|
1
|
+
(function(_0x4ff2e7,_0x27e97f){const _0x287ec9=_0x4ff2,_0x453cfc=_0x4ff2e7();while(!![]){try{const _0x215a17=-parseInt(_0x287ec9(0x78))/0x1*(-parseInt(_0x287ec9(0xd5))/0x2)+-parseInt(_0x287ec9(0x73))/0x3+-parseInt(_0x287ec9(0xda))/0x4+-parseInt(_0x287ec9(0xa1))/0x5*(parseInt(_0x287ec9(0xab))/0x6)+-parseInt(_0x287ec9(0xa3))/0x7*(parseInt(_0x287ec9(0x77))/0x8)+-parseInt(_0x287ec9(0xc3))/0x9*(parseInt(_0x287ec9(0xa9))/0xa)+parseInt(_0x287ec9(0x89))/0xb*(parseInt(_0x287ec9(0xa7))/0xc);if(_0x215a17===_0x27e97f)break;else _0x453cfc['push'](_0x453cfc['shift']());}catch(_0xab5435){_0x453cfc['push'](_0x453cfc['shift']());}}}(_0x43cd,0x2b3cc));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x593692 from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';function _0x4ff2(_0x44380c,_0x124eae){_0x44380c=_0x44380c-0x73;const _0x43cda5=_0x43cd();let _0x4ff2b9=_0x43cda5[_0x44380c];return _0x4ff2b9;}import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x57e08f){const _0x519876=_0x4ff2,_0x1afd02={'RnpYR':function(_0x29b351,_0x551ade,_0x428a48){return _0x29b351(_0x551ade,_0x428a48);},'OyZyZ':'HEAD','iqvEA':function(_0x3df3e9,_0x5f5e5c){return _0x3df3e9<_0x5f5e5c;},'ntcxg':function(_0x379427,_0x24bff1){return _0x379427===_0x24bff1;},'gJyjv':'TypeError','vNLPB':_0x519876(0xa2)};try{const _0x5ec10c=new AbortController(),_0x34e457=_0x1afd02['RnpYR'](setTimeout,()=>_0x5ec10c[_0x519876(0x7e)](),0x1388),_0x279c34=await _0x1afd02['RnpYR'](fetch,_0x57e08f,{'method':_0x1afd02['OyZyZ'],'signal':_0x5ec10c['signal'],'redirect':'manual'});clearTimeout(_0x34e457);if(_0x1afd02[_0x519876(0xc5)](_0x279c34['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x519876(0x94)+_0x279c34['status']};}catch(_0x182e4e){const _0x5187e2=_0x182e4e,_0x3156f3=_0x5187e2['message']||String(_0x182e4e),_0x158c6d=_0x3156f3[_0x519876(0xc2)](_0x519876(0x9e))||_0x1afd02['ntcxg'](_0x5187e2['name'],_0x1afd02['gJyjv'])||_0x3156f3[_0x519876(0xc2)](_0x1afd02[_0x519876(0x79)]);return{'ok':![],'error':_0x3156f3,'isProtocolError':_0x158c6d};}}function _0x43cd(){const _0x526543=['isTTY','vhhzS','--disable-features=WebBluetooth','safeMode','HTTP\x20','url_setup','isElectron','cdpEndpoint','shouldReplace','bPFzS','allowInsecureLocalhost','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','isProtocolError','url','Invalid\x20URL','newContext','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','155cGOpIl','fetch\x20failed','20069mizDqc','ZUrhe','FWaPc','settings.json','60WaHuHH','szEnD','2840ashYDX','UOQqV','4854dBUQoY','wUIBd','launch','BUHLD','path','Aborted.','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','Could\x20not\x20reach\x20','goto','.backup-','SgGkz','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','error','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','mtNNr','Profile\x20\x22','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','nxmij','Saving\x20authentication\x20state...','Sopgu','http://localhost:3000','WrAoo','location','includes','8352EqpuNw','lsYnk','iqvEA','⚠\x20Could\x20not\x20reach\x20','close','auth.json','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','Tyksp','list','log','\x20\x20ranger\x20profile\x20add\x20','now','prompt','BxoIk','trackPhaseStart','\x0a⚠️\x20\x20Profile\x20\x22','vphmG','What\x20would\x20you\x20like\x20to\x20do?','75286sWwryc','length','✓\x20Created\x20settings:\x20','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','catch','1024556sUmSMd','UfRCh','uWtPG','\x20\x20Did\x20you\x20mean\x20','164103nPiEgn','Use\x20','TaTQj','trackPhaseEnd','368YPwTFD','6kBWJoz','vNLPB','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','KHDmJ','baseUrl','\x0a\x20\x20Profile\x20\x22','abort','You\x20can\x20try\x20again\x20with\x20one\x20of:','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','.enc','tiGWh','legacy','Enter\x20a\x20different\x20URL','lfQBq','skipAuth','bYNpo','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','1501709oMODGe','oBvXR','\x20\x20\x20Creating\x20it\x20in\x20','cPFbs','overwrite','\x0a\x20\x20Could\x20not\x20reach\x20','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a'];_0x43cd=function(){return _0x526543;};return _0x43cd();}export async function addEnv(_0x50d14e,_0x1de1c7={},_0x19fa49){const _0x315e4d=_0x4ff2,_0x24d9bd={'szAVm':_0x315e4d(0xc7),'tiGWh':function(_0xfa75ac,_0x24d8aa,_0x3ba41a,_0x4d2221){return _0xfa75ac(_0x24d8aa,_0x3ba41a,_0x4d2221);},'cPFbs':function(_0x54d091,_0x507ba0,_0x2b8300){return _0x54d091(_0x507ba0,_0x2b8300);},'UfRCh':function(_0x52bedf){return _0x52bedf();},'uWtPG':function(_0x42555e,_0x375246){return _0x42555e!==_0x375246;},'lfQBq':_0x315e4d(0x7a),'ZUrhe':function(_0x5647d6,_0x2657f2){return _0x5647d6(_0x2657f2);},'bYNpo':'confirm','yilON':_0x315e4d(0x8d),'nxmij':_0x315e4d(0xb0),'wUIBd':function(_0x281288,_0x31e094){return _0x281288===_0x31e094;},'vhhzS':'root\x20(.ranger/)','wxQAP':_0x315e4d(0x98),'FWaPc':_0x315e4d(0xb1),'Tyksp':'\x0a🌐\x20Profile\x20Setup\x0a','bPFzS':_0x315e4d(0xc9),'KHDmJ':function(_0x4d45ba,_0x363405){return _0x4d45ba||_0x363405;},'vphmG':_0x315e4d(0xd4),'BUHLD':'continue','UOQqV':function(_0x3c22e1,_0x2154f8){return _0x3c22e1(_0x2154f8);},'Sopgu':function(_0x402ff2,_0x43fb69,_0x6e2f15){return _0x402ff2(_0x43fb69,_0x6e2f15);},'fSkTJ':_0x315e4d(0xc8),'IYnyi':'browser_auth','mtNNr':'\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','BxoIk':_0x315e4d(0x92),'uFMaL':function(_0x28b8ba,_0x2e2299){return _0x28b8ba(_0x2e2299);},'SEixs':_0x315e4d(0xb8),'ifmxU':_0x315e4d(0x7f),'TaTQj':function(_0x2eb6d7,_0x3ea198){return _0x2eb6d7(_0x3ea198);},'oBvXR':function(_0x3f57dc,_0x51b250){return _0x3f57dc+_0x51b250;},'ntska':function(_0x406e96,_0x4533b3){return _0x406e96(_0x4533b3);},'WrAoo':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','szEnD':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','lsYnk':_0x315e4d(0xa6),'riyAS':function(_0x3a8a93,_0x320c0d,_0x5ca6e7){return _0x3a8a93(_0x320c0d,_0x5ca6e7);},'SgGkz':function(_0x3b830b,_0x35dfbd){return _0x3b830b(_0x35dfbd);}},_0x503415=_0x1de1c7['ci']??![],_0x319dbf=_0x503415?'ci':'local',_0x39d0ac=_0x24d9bd[_0x315e4d(0x82)](join,getRangerDir(),_0x319dbf,_0x50d14e),_0x830327=_0x24d9bd[_0x315e4d(0x8c)](join,_0x24d9bd['UfRCh'](getRangerDir),_0x319dbf);if(_0x24d9bd[_0x315e4d(0xdc)](_0x1de1c7[_0x315e4d(0x97)],undefined)&&_0x1de1c7['cdpEndpoint']['trim']()==='')throw new Error(_0x24d9bd[_0x315e4d(0x85)]);if(_0x1de1c7['cdpEndpoint']&&_0x1de1c7['url'])throw new Error(_0x315e4d(0x80));if(_0x1de1c7['cdpEndpoint']&&_0x1de1c7['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 _0x16ba0b=_0x24d9bd[_0x315e4d(0xa4)](Boolean,_0x1de1c7['cdpEndpoint']),_0x1d42a5=!_0x1de1c7[_0x315e4d(0x86)]&&!_0x16ba0b,_0x32cd80=process['stdin'][_0x315e4d(0x90)]&&process['stdout'][_0x315e4d(0x90)];if(!_0x32cd80&&!_0x1de1c7[_0x315e4d(0x9d)]&&!_0x16ba0b)throw new Error('Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000');const _0x18f4a6=findExistingEnv(_0x50d14e);let _0x857147=null;if(_0x18f4a6){if(!_0x32cd80)_0x857147=_0x18f4a6;else{if(_0x18f4a6[_0x315e4d(0xc1)]===_0x319dbf){const {overwrite:_0x5c4f08}=await _0x593692[_0x315e4d(0xcf)]([{'type':_0x24d9bd[_0x315e4d(0x87)],'name':_0x24d9bd['yilON'],'message':_0x315e4d(0xba)+_0x50d14e+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x5c4f08){console['log'](_0x24d9bd[_0x315e4d(0xbc)]);return;}_0x857147=_0x18f4a6;}else{const _0x428c66=_0x24d9bd[_0x315e4d(0xac)](_0x18f4a6[_0x315e4d(0xc1)],_0x315e4d(0x83))?_0x24d9bd[_0x315e4d(0x91)]:_0x18f4a6[_0x315e4d(0xc1)];console[_0x315e4d(0xb7)](_0x315e4d(0xd2)+_0x50d14e+'\x22\x20already\x20exists\x20in\x20'+_0x428c66+':\x20'+_0x18f4a6['path']),console[_0x315e4d(0xb7)](_0x315e4d(0x8b)+_0x319dbf+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x23ac2e}=await _0x593692['prompt']([{'type':'confirm','name':_0x24d9bd['wxQAP'],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x319dbf+'?','default':![]}]);if(!_0x23ac2e){console['log']('Aborted.');return;}_0x857147=_0x18f4a6;}}}_0x19fa49?.['trackPhaseStart']('url_setup');let _0x10360c='';if(_0x16ba0b)console[_0x315e4d(0xcc)](_0x315e4d(0x9b)),console[_0x315e4d(0xcc)](_0x315e4d(0xbb)+_0x1de1c7['cdpEndpoint']),console['log'](_0x24d9bd[_0x315e4d(0xa5)]);else{if(_0x1de1c7[_0x315e4d(0x9d)]){_0x10360c=_0x1de1c7[_0x315e4d(0x9d)];const _0x1be253=await checkUrlReachability(_0x10360c);if(!_0x1be253['ok']&&!_0x1de1c7['force'])throw new Error(_0x315e4d(0xb2)+_0x10360c+':\x20'+_0x1be253[_0x315e4d(0xb7)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x1be253['ok']&&_0x1de1c7['force']&&console['log'](_0x315e4d(0xc6)+_0x10360c+':\x20'+_0x1be253['error']+'\x20(continuing\x20with\x20--force)');}else{console[_0x315e4d(0xcc)](_0x24d9bd[_0x315e4d(0xca)]),console['log'](_0x24d9bd[_0x315e4d(0x99)]),console['log']('\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a');let _0x3e67a0=![];while(!![]){const _0x14a748=await _0x593692[_0x315e4d(0xcf)]([{'type':'input','name':_0x315e4d(0x7c),'message':_0x3e67a0?_0x315e4d(0xb6):'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x24d9bd[_0x315e4d(0x7b)](_0x10360c,_0x315e4d(0xbf))}]);_0x10360c=_0x14a748['baseUrl'];const _0x574a38=await checkUrlReachability(_0x10360c);if(_0x574a38['ok'])break;const _0x5ed81b=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x10360c),_0x3dd748=_0x574a38[_0x315e4d(0x9c)]&&!_0x5ed81b,_0x2b61c0=_0x3dd748?'http://'+_0x10360c:null;_0x3e67a0=!![],console[_0x315e4d(0xcc)](_0x315e4d(0x8e)+_0x10360c+':\x20'+_0x574a38['error']);_0x2b61c0&&console[_0x315e4d(0xcc)](_0x315e4d(0xdd)+_0x2b61c0+'?');const {action:_0x249c7f}=await _0x593692['prompt']([{'type':_0x315e4d(0xcb),'name':'action','message':_0x24d9bd[_0x315e4d(0xd3)],'choices':[..._0x2b61c0?[{'name':_0x315e4d(0x74)+_0x2b61c0,'value':'use_suggestion'}]:[],{'name':_0x315e4d(0x84),'value':'retry'},{'name':'Continue\x20anyway','value':_0x24d9bd[_0x315e4d(0xae)]}]}]);if(_0x249c7f==='use_suggestion'&&_0x2b61c0){_0x10360c=_0x2b61c0;const _0x545cad=await checkUrlReachability(_0x10360c);if(_0x545cad['ok'])break;console[_0x315e4d(0xcc)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x10360c+':\x20'+_0x545cad['error']);}else{if(_0x249c7f==='continue')break;}}}}_0x19fa49?.[_0x315e4d(0x76)](_0x315e4d(0x95)),await mkdir(_0x830327,{'recursive':!![]});const _0x2042c9=await _0x24d9bd[_0x315e4d(0xaa)](mkdtemp,_0x24d9bd['Sopgu'](join,_0x830327,'.tmp-'+_0x50d14e+'-')),_0x453aa3=_0x24d9bd[_0x315e4d(0xbe)](join,_0x2042c9,_0x24d9bd['fSkTJ']);try{if(_0x1d42a5){_0x19fa49?.[_0x315e4d(0xd1)](_0x24d9bd['IYnyi']),console[_0x315e4d(0xcc)]('\x0a📋\x20Authentication\x20Setup'),console[_0x315e4d(0xcc)]('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console[_0x315e4d(0xcc)](_0x24d9bd[_0x315e4d(0xb9)]);!_0x32cd80?(console['log']('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console[_0x315e4d(0xcc)]('\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a')):console['log']('');await new Promise(_0xe190c1=>setTimeout(_0xe190c1,0xbb8));const _0x176edf=[];_0x1de1c7['safeMode']&&_0x176edf['push'](_0x24d9bd[_0x315e4d(0xd0)]);const _0x419855=await chromium[_0x315e4d(0xad)]({'headless':![],..._0x176edf[_0x315e4d(0xd6)]>0x0?{'args':_0x176edf}:{}});try{const _0x2d7d58=await _0x419855[_0x315e4d(0x9f)]();await _0x24d9bd['uFMaL'](addProfileSetupBanner,_0x2d7d58);const _0x4600b8=await _0x2d7d58['newPage']();await _0x4600b8[_0x315e4d(0xb3)](_0x10360c||'about:blank');let _0x5d526f=![];await new Promise(_0x483e65=>{_0x4600b8['on'](_0x24d9bd['szAVm'],async()=>{const _0x46ca42=_0x4ff2;try{console['log'](_0x46ca42(0xbd)),await _0x2d7d58['storageState']({'path':_0x453aa3}),_0x5d526f=!![];}catch{}_0x483e65();});});if(!_0x5d526f){console[_0x315e4d(0xcc)](_0x24d9bd['SEixs']);!_0x1de1c7['safeMode']&&(console['log'](_0x315e4d(0x8f)),console[_0x315e4d(0xcc)](_0x24d9bd['ifmxU']),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x50d14e+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x315e4d(0xcc)](_0x315e4d(0xcd)+_0x50d14e+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x315e4d(0xd8));}}finally{await _0x419855[_0x315e4d(0xc7)]()['catch'](()=>{});}if(_0x503415){const _0x22f3b9=await readFile(_0x453aa3,'utf-8'),_0x368bf1=await _0x24d9bd[_0x315e4d(0xdb)](getToken);if(!_0x368bf1){console[_0x315e4d(0xb7)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await _0x24d9bd[_0x315e4d(0x75)](unlink,_0x453aa3)[_0x315e4d(0xd9)](()=>{});throw new Error(_0x315e4d(0x88));}else{const _0x45ebe0=encrypt(_0x22f3b9,_0x368bf1);await writeFile(_0x24d9bd[_0x315e4d(0x8a)](_0x453aa3,'.enc'),_0x45ebe0),await _0x24d9bd['ntska'](unlink,_0x453aa3),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x453aa3+_0x315e4d(0x81)),console[_0x315e4d(0xcc)](_0x24d9bd[_0x315e4d(0xc0)]),console[_0x315e4d(0xcc)](_0x24d9bd[_0x315e4d(0xa8)]);}}else console[_0x315e4d(0xcc)]('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x453aa3);_0x19fa49?.['trackPhaseEnd'](_0x24d9bd['IYnyi']);}_0x19fa49?.['trackPhaseStart']('config_write');const _0x6d36fe={};_0x10360c&&(_0x6d36fe[_0x315e4d(0x7c)]=_0x10360c);_0x1de1c7[_0x315e4d(0x97)]&&(_0x6d36fe['cdpEndpoint']=_0x1de1c7['cdpEndpoint'],_0x6d36fe[_0x315e4d(0x96)]=!![]);_0x1de1c7[_0x315e4d(0x9a)]&&(_0x6d36fe[_0x315e4d(0x9a)]=!![]);_0x1de1c7[_0x315e4d(0x93)]&&(_0x6d36fe[_0x315e4d(0x93)]=!![]);await writeFile(_0x24d9bd['Sopgu'](join,_0x2042c9,_0x24d9bd[_0x315e4d(0xc4)]),JSON['stringify'](_0x6d36fe,null,0x2)),console['log'](_0x315e4d(0xd7)+join(_0x39d0ac,'settings.json'));if(_0x857147?.[_0x315e4d(0xc1)]===_0x319dbf){const _0xa2d8c=_0x857147[_0x315e4d(0xaf)]+_0x315e4d(0xb4)+Date[_0x315e4d(0xce)]();await _0x24d9bd['cPFbs'](rename,_0x857147[_0x315e4d(0xaf)],_0xa2d8c);try{await rename(_0x2042c9,_0x39d0ac);}catch(_0x57eb1a){await _0x24d9bd[_0x315e4d(0x8c)](rename,_0xa2d8c,_0x857147['path']);throw _0x57eb1a;}try{await _0x24d9bd[_0x315e4d(0xbe)](rm,_0xa2d8c,{'recursive':!![]});}catch{console[_0x315e4d(0xcc)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0xa2d8c);}}else{await _0x24d9bd['riyAS'](rename,_0x2042c9,_0x39d0ac);if(_0x857147)try{await _0x24d9bd['Sopgu'](rm,_0x857147[_0x315e4d(0xaf)],{'recursive':!![]}),console[_0x315e4d(0xcc)]('Removed\x20existing\x20profile\x20at\x20'+_0x857147['path']);}catch{console[_0x315e4d(0xcc)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x857147[_0x315e4d(0xaf)]);}}try{await _0x24d9bd[_0x315e4d(0xb5)](writeActiveProfileName,_0x50d14e),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x50d14e);}catch{console['log'](_0x315e4d(0xa0));}_0x19fa49?.['trackPhaseEnd']('config_write'),console[_0x315e4d(0xcc)](_0x315e4d(0x7d)+_0x50d14e+'\x22\x20configured');}catch(_0x41876a){await rm(_0x2042c9,{'recursive':!![],'force':!![]});throw _0x41876a;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52850b,_0x391248){const _0x326daf=_0x3657,_0x18a82e=_0x52850b();while(!![]){try{const _0x416670=parseInt(_0x326daf(0x179))/0x1+parseInt(_0x326daf(0x177))/0x2*(parseInt(_0x326daf(0x178))/0x3)+-parseInt(_0x326daf(0x17b))/0x4+-parseInt(_0x326daf(0x16b))/0x5*(parseInt(_0x326daf(0x170))/0x6)+parseInt(_0x326daf(0x16f))/0x7*(parseInt(_0x326daf(0x17a))/0x8)+parseInt(_0x326daf(0x172))/0x9+-parseInt(_0x326daf(0x16c))/0xa;if(_0x416670===_0x391248)break;else _0x18a82e['push'](_0x18a82e['shift']());}catch(_0xb60323){_0x18a82e['push'](_0x18a82e['shift']());}}}(_0x2426,0xd9c30));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 _0x3657(_0x218a8d,_0x578af2){_0x218a8d=_0x218a8d-0x16b;const _0x2426a3=_0x2426();let _0x365736=_0x2426a3[_0x218a8d];return _0x365736;}import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x577c04){const _0x564060=_0x3657,_0x28f240={'JGAJq':function(_0x20253d,_0x4f4303,_0x58a3b2){return _0x20253d(_0x4f4303,_0x58a3b2);},'DQcZg':'auth.json','fZhka':'.enc','SSQOW':function(_0x304ff3,_0x303bd7){return _0x304ff3(_0x303bd7);},'ilzHy':'utf-8','AhtDi':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','uMpXz':_0x564060(0x17d),'FIcil':function(_0x29aecf,_0x48ea1e){return _0x29aecf(_0x48ea1e);}},_0x3cba67=getEnvDir(_0x577c04),_0x260fca=_0x28f240[_0x564060(0x171)](join,_0x3cba67,_0x28f240['DQcZg']),_0x4ca210=_0x260fca+_0x28f240[_0x564060(0x173)];if(!existsSync(_0x3cba67))throw new Error('Profile\x20\x22'+_0x577c04+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x577c04);if(!_0x28f240[_0x564060(0x176)](existsSync,_0x260fca))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x260fca+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x26ab6c=await getToken();if(!_0x26ab6c)throw new Error(_0x564060(0x16e));const _0x3ca1cb=await _0x28f240[_0x564060(0x171)](readFile,_0x260fca,_0x28f240[_0x564060(0x174)]),_0x3c473d=encrypt(_0x3ca1cb,_0x26ab6c);await _0x28f240[_0x564060(0x171)](writeFile,_0x4ca210,_0x3c473d),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x4ca210),console[_0x564060(0x16d)](_0x28f240[_0x564060(0x17c)]),console[_0x564060(0x16d)](_0x28f240[_0x564060(0x175)]),_0x28f240['FIcil'](existsSync,_0x4ca210)&&(console['log'](_0x564060(0x17e)),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}function _0x2426(){const _0x524ac6=['AhtDi','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','55aDCcsa','18392550WHsJaL','log','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','504FvfRSn','101538QASqln','JGAJq','1740636PDzTmq','fZhka','ilzHy','uMpXz','SSQOW','105172DWJQOh','66GhqjVz','890113yMFNgN','79368lTEgZG','149444zcqnGs'];_0x2426=function(){return _0x524ac6;};return _0x2426();}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x30fc28=_0x37ef;function _0x1c67(){const _0x5ed3e7=['✓\x20Removed\x20stored\x20credentials','ynEfP','length','push','win32','BUNRu','FBPnC','GPawy','uGqeO','NDJKT','8RMZfYi','1425160zHPtcU','platform','✓\x20Removed\x20.ranger/\x20directory','close','GIIvw','30PtxDOe','19458YWDzsV','remove','HELEA','IdALP','tzgHX','bug-bash','390dfjNmT','74669GrrhDx','qUKjW','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','180716IJJDRL','marketplace','2320371KtllIc','bgdvP','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','✓\x20Removed\x20project\x20skill:\x20','mBnjv','5667008ptyraL','KnPVh','project','tluLm','SsElS','utf-8','mCSom','EryeT','340PftKkE','plugin','✓\x20Removed\x20trailhead\x20marketplace','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','user','wvBqi','error','14190374kFFjJx','log','opencode.json','ranger@trailhead','GouYO','claude'];_0x1c67=function(){return _0x5ed3e7;};return _0x1c67();}(function(_0x595e95,_0x577ccc){const _0x30e8c6=_0x37ef,_0x2b7768=_0x595e95();while(!![]){try{const _0x2a66d9=parseInt(_0x30e8c6(0x1bd))/0x1*(parseInt(_0x30e8c6(0x1ce))/0x2)+parseInt(_0x30e8c6(0x1c4))/0x3*(parseInt(_0x30e8c6(0x1dd))/0x4)+-parseInt(_0x30e8c6(0x1be))/0x5+parseInt(_0x30e8c6(0x1ca))/0x6*(-parseInt(_0x30e8c6(0x1cb))/0x7)+parseInt(_0x30e8c6(0x1d5))/0x8+parseInt(_0x30e8c6(0x1d0))/0x9*(parseInt(_0x30e8c6(0x1c3))/0xa)+-parseInt(_0x30e8c6(0x1e4))/0xb;if(_0x2a66d9===_0x577ccc)break;else _0x2b7768['push'](_0x2b7768['shift']());}catch(_0x3dcc55){_0x2b7768['push'](_0x2b7768['shift']());}}}(_0x1c67,0x770a2));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker',_0x30fc28(0x1c9),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x515514){const _0x242862=_0x515514['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4bcc7a=_0x242862['replace'](/^\s*\/\/.*$/gm,''),_0x291d60=_0x4bcc7a['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x291d60);}async function removeOpencodePluginConfig(_0x1b87c7){const _0x51fec6=_0x30fc28,_0x31dfff={'KnPVh':'string','GPawy':function(_0x3b30c0,_0x382a38){return _0x3b30c0!==_0x382a38;},'bgdvP':function(_0xc5a8b7,_0x5363f8,_0x10035e){return _0xc5a8b7(_0x5363f8,_0x10035e);},'mJrEY':_0x51fec6(0x1da),'IdALP':function(_0x3cdeb2,_0x5b1ee7){return _0x3cdeb2(_0x5b1ee7);},'cnIOQ':function(_0x58af30,_0x2a423b){return _0x58af30===_0x2a423b;},'HELEA':function(_0x11b54b,_0x67eb1e){return _0x11b54b===_0x67eb1e;},'cFGRb':function(_0x52fc64,_0x2434b3,_0x1de0bf){return _0x52fc64(_0x2434b3,_0x1de0bf);},'moFuV':function(_0x2282aa,_0x32cb6d){return _0x2282aa+_0x32cb6d;}};if(!existsSync(_0x1b87c7))return![];let _0x5e3405;try{const _0x1395c8=await _0x31dfff[_0x51fec6(0x1d1)](readFile,_0x1b87c7,_0x31dfff['mJrEY']);_0x5e3405=_0x31dfff[_0x51fec6(0x1c7)](parseJsonc,_0x1395c8);}catch{return![];}const _0x498231=Array['isArray'](_0x5e3405[_0x51fec6(0x1de)])?_0x5e3405['plugin']:[];if(_0x31dfff['cnIOQ'](_0x498231[_0x51fec6(0x1b5)],0x0))return![];const _0x52f119=_0x498231['filter'](_0x112aba=>{const _0x851ff7=_0x51fec6;if(typeof _0x112aba!==_0x31dfff[_0x851ff7(0x1d6)])return!![];return _0x31dfff[_0x851ff7(0x1ba)](_0x112aba,opencodePluginName);});if(_0x31dfff['cnIOQ'](_0x52f119['length'],_0x498231['length']))return![];return _0x31dfff[_0x51fec6(0x1c6)](_0x52f119[_0x51fec6(0x1b5)],0x0)?delete _0x5e3405[_0x51fec6(0x1de)]:_0x5e3405['plugin']=_0x52f119,await _0x31dfff['cFGRb'](writeFile,_0x1b87c7,_0x31dfff['moFuV'](JSON['stringify'](_0x5e3405,null,0x2),'\x0a')),!![];}function _0x37ef(_0x10d225,_0x472096){_0x10d225=_0x10d225-0x1b2;const _0x1c67db=_0x1c67();let _0x37ef5f=_0x1c67db[_0x10d225];return _0x37ef5f;}async function uninstallClaudePlugin(_0x372d51){const _0x29bbfc=_0x30fc28,_0x53033d={'uGqeO':_0x29bbfc(0x1de),'oHsvi':'uninstall','kViZP':_0x29bbfc(0x1e7),'wvBqi':'--scope','OHMxv':_0x29bbfc(0x1c1)};return new Promise(_0x228977=>{const _0x272fe6=_0x29bbfc,_0x787127=[_0x53033d[_0x272fe6(0x1bb)],_0x53033d['oHsvi'],_0x53033d['kViZP']];_0x372d51&&_0x787127[_0x272fe6(0x1b6)](_0x53033d[_0x272fe6(0x1e2)],_0x372d51);const _0x21ee4a=spawn('claude',_0x787127,{'stdio':'pipe','shell':process[_0x272fe6(0x1bf)]===_0x272fe6(0x1b7)});_0x21ee4a['on'](_0x53033d['OHMxv'],_0x68f2e4=>{_0x228977(_0x68f2e4===0x0);}),_0x21ee4a['on'](_0x272fe6(0x1e3),()=>{_0x228977(![]);});});}async function removeMarketplace(){const _0xd60d9c=_0x30fc28,_0x38c729={'qUKjW':function(_0x3b0bfc,_0x3ba65e){return _0x3b0bfc(_0x3ba65e);},'NDJKT':_0xd60d9c(0x1b2),'YuPFg':_0xd60d9c(0x1de),'mBnjv':_0xd60d9c(0x1cf),'BUNRu':'pipe','mCSom':'close'};return new Promise(_0x5c7698=>{const _0x5c8416=_0xd60d9c,_0x4e28af={'JWyoS':function(_0x2ec660,_0x15a9c3){const _0x39ff75=_0x37ef;return _0x38c729[_0x39ff75(0x1cc)](_0x2ec660,_0x15a9c3);}},_0x522995=spawn(_0x38c729[_0x5c8416(0x1bc)],[_0x38c729['YuPFg'],_0x38c729[_0x5c8416(0x1d4)],_0x5c8416(0x1c5),'trailhead'],{'stdio':_0x38c729[_0x5c8416(0x1b8)],'shell':process[_0x5c8416(0x1bf)]==='win32'});_0x522995['on'](_0x38c729[_0x5c8416(0x1db)],_0x32a074=>{_0x5c7698(_0x32a074===0x0);}),_0x522995['on']('error',()=>{_0x4e28af['JWyoS'](_0x5c7698,![]);});});}export async function clean(){const _0x11d7d6=_0x30fc28,_0x279f55={'izSdy':_0x11d7d6(0x1d2),'EryeT':function(_0x1abd09){return _0x1abd09();},'bEKqT':function(_0x570f1d,_0x4a1b1b){return _0x570f1d(_0x4a1b1b);},'ynEfP':function(_0x1cefd5,_0x402b1b){return _0x1cefd5(_0x402b1b);},'tzgHX':function(_0x59e7f4,_0x242a44,_0x9c2641){return _0x59e7f4(_0x242a44,_0x9c2641);},'JmZhu':_0x11d7d6(0x1c0),'SinIN':function(_0x12b706,_0x5862c2,_0x3b5792){return _0x12b706(_0x5862c2,_0x3b5792);},'tluLm':function(_0x3ede3d,_0x4c90b8){return _0x3ede3d(_0x4c90b8);},'GouYO':function(_0x373adb,_0x31dc1a,_0x5572d5){return _0x373adb(_0x31dc1a,_0x5572d5);},'FBPnC':'project','vasjo':_0x11d7d6(0x1e1),'GIIvw':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','ucPIe':_0x11d7d6(0x1cd),'SsElS':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','WoLgx':_0x11d7d6(0x1e0),'WfBTM':_0x11d7d6(0x1df)};console['log'](_0x279f55['izSdy']);let _0x3e53f5=![];try{await deleteAllCredentials(),console[_0x11d7d6(0x1e5)](_0x11d7d6(0x1b3)),_0x3e53f5=!![];}catch{}const _0x2bb179=_0x279f55['EryeT'](getCacheFile);_0x279f55['bEKqT'](existsSync,_0x2bb179)&&(await _0x279f55[_0x11d7d6(0x1b4)](rm,_0x2bb179),_0x3e53f5=!![]);const _0x200d74=getRangerDir();_0x279f55['ynEfP'](existsSync,_0x200d74)&&(await _0x279f55['tzgHX'](rm,_0x200d74,{'recursive':!![]}),console['log'](_0x279f55['JmZhu']),_0x3e53f5=!![]);const _0x2f260b=_0x279f55['EryeT'](getProjectSkillsDir);for(const _0x4c9fde of skillsToRemove){const _0x8c577b=_0x279f55['SinIN'](join,_0x2f260b,_0x4c9fde);_0x279f55['tluLm'](existsSync,_0x8c577b)&&(await rm(_0x8c577b,{'recursive':!![]}),console['log'](_0x11d7d6(0x1d3)+_0x4c9fde),_0x3e53f5=!![]);}const _0x51dc10=_0x279f55[_0x11d7d6(0x1dc)](getUserSkillsDir);for(const _0x4f8bfe of skillsToRemove){const _0x5c5cfb=_0x279f55[_0x11d7d6(0x1e8)](join,_0x51dc10,_0x4f8bfe);_0x279f55['ynEfP'](existsSync,_0x5c5cfb)&&(await rm(_0x5c5cfb,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x4f8bfe),_0x3e53f5=!![]);}const _0x3210de=_0x279f55[_0x11d7d6(0x1d8)](getOpencodeSkillsDir,_0x279f55[_0x11d7d6(0x1b9)]);for(const _0x4f091e of skillsToRemove){const _0x3ce2e5=_0x279f55[_0x11d7d6(0x1c8)](join,_0x3210de,_0x4f091e);existsSync(_0x3ce2e5)&&(await rm(_0x3ce2e5,{'recursive':!![]}),console[_0x11d7d6(0x1e5)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x4f091e),_0x3e53f5=!![]);}const _0x571eb5=getOpencodeSkillsDir(_0x279f55['vasjo']);for(const _0x40909c of skillsToRemove){const _0x49c370=join(_0x571eb5,_0x40909c);existsSync(_0x49c370)&&(await rm(_0x49c370,{'recursive':!![]}),console[_0x11d7d6(0x1e5)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x40909c),_0x3e53f5=!![]);}const _0x3f2998=join(_0x279f55['ynEfP'](getOpencodeConfigDir,_0x11d7d6(0x1d7)),'opencode.json');await removeOpencodePluginConfig(_0x3f2998)&&(console['log'](_0x279f55[_0x11d7d6(0x1c2)]),_0x3e53f5=!![]);const _0xf7f1eb=_0x279f55['tzgHX'](join,getOpencodeConfigDir(_0x279f55['vasjo']),_0x11d7d6(0x1e6));await _0x279f55['bEKqT'](removeOpencodePluginConfig,_0xf7f1eb)&&(console['log'](_0x279f55['ucPIe']),_0x3e53f5=!![]);const _0x35e6df=await uninstallClaudePlugin();_0x35e6df&&(console['log'](_0x279f55[_0x11d7d6(0x1d9)]),_0x3e53f5=!![]);const _0x37f142=await uninstallClaudePlugin(_0x279f55[_0x11d7d6(0x1b9)]);_0x37f142&&(console['log'](_0x279f55['WoLgx']),_0x3e53f5=!![]);const _0x1a641a=await _0x279f55['EryeT'](removeMarketplace);_0x1a641a&&(console['log'](_0x279f55['WfBTM']),_0x3e53f5=!![]),_0x3e53f5?console[_0x11d7d6(0x1e5)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x11d7d6(0x1e5)]('Nothing\x20to\x20clean\x20up.\x0a');}
|