@ranger-testing/ranger-cli 2.4.4 โ 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.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/tokenRefresh.js +1 -0
- 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
|
-
function _0x4042(){const _0x597a6c=['scenario','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','Profile\x20name','some','QNBSd','nYQDf','auth','--task','ranger\x20feature\x20delete','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','NEIik','nyEpR','\x20VERIFIED','rQZZN','positional','parse','Get\x20a\x20config\x20value','jauGh','REdpu','lOmEQ','SiGhj','PTbPv','evaluation','ZcHGo','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','GYSgF','Config\x20value','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','skip-auth','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','Environment\x20name','yYQxx','jlifo','txCNr','rFTeI','SPJUj','version','enable','KHlNA','ltetl','slice','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','setup-header','oWcod','setup-ci\x20<token>','7978yHBBnJ','opencode','PBAGy','KBLrZ','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','5484162BbEmMJ','profile\x20config\x20get','offset','You\x20must\x20specify\x20an\x20auth\x20subcommand','boolean','iLNgm','ranger\x20verify-feature','fuWDA','sNvxf','forEach','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','feature','ranger\x20profile\x20use','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','ranger\x20setup','xBxON','qOzJE','config','iGubs','849510UbwBGe','env-name','ranger\x20profile\x20add','Feature\x20review\x20name','uNTag','clean','ranger\x20list','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','get\x20<profile>\x20<key>','ranger\x20delete','aVLXT','env\x20list','ranger\x20profile\x20config\x20get','cdp-endpoint','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','Number\x20of\x20feature\x20reviews\x20to\x20skip','tBswN','Name\x20of\x20the\x20profile','error','ranger\x20get-review','NvkJg','usage','description','Pxkim','lwfZi','poVns','ranger\x20profile\x20encrypt-auth','xQwuF','VVsrs','cVock','tSTWV','84632KryOPo','message','zEAWY','LjokP','zaEkI','show','MtsGo','zdCCy','Install\x20scope\x20for\x20skills','profile-name','abolz','15588630faBLtz','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','delete','update','force','GVgCp','1296WmevpT','WEOXU','set\x20<profile>\x20<key>\x20<value>','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','--env','Update\x20authentication\x20for\x20an\x20existing\x20profile','checklist','skip-chromium','MOsQF','base-url','AGEBW','mnjbf','notes','lazYZ','laSNy','Feature\x20review\x20ID\x20to\x20restore','trgOQ','ranger\x20profile\x20config\x20unset','summary','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','number','update\x20<profile-name>','unhandledRejection','ranger\x20add\x20env','Hfkxh','EmrsD','wPJEs','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','.\x20[','neMps','hook:enable','show\x20[id]','lSinV','7zYSMop','Mrwot','opYvl','command','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','feature\x20get-feedback','get-feedback\x20[id]','feature\x20add-checklist-item','Switch\x20to\x20using\x20a\x20specific\x20profile','alias','GboiV','Kcptt','WCbrP','UFpAk','ZcryI','restore\x20<id>','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','GbBQf','bhDhz','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.','RxFWa','ranger\x20create','pigDd','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20header.X-Test-Mode)\x0a\x20\x20setupHeader.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeader.x-bypass-turnstile)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20setupHeader.x-bypass-turnstile\x20\x27a1b2c3d4...\x27','debug-outcome','setup-ci','Include\x20soft-deleted\x20feature\x20reviews','ranger\x20env\x20ls','array','MCDcM','value','ranger\x20profile\x20update','xQOuw','OQFOC','ZHiVN','debug-address-comments','oYsAH','EJGdY','Hnvwx','YXMNf','fail','demandCommand','start-path','cwd','failed','status','VxjSC','--scenario','ZCqof','VVoka','KHzPY','XzqiH','IUVsF','You\x20must\x20specify\x20an\x20env\x20subcommand','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','FkvUz','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','json','Scenario\x20index\x20(1-based)','vFrLd','xUqjQ','XQPGU','claude','JISyz','disable','profile','hAwVr','yDlsp','You\x20must\x20specify\x20a\x20config\x20subcommand','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','headed','AfClz','mjeER','TjPWu','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','length','token','496qvenUT','kaDCm','repeat','scope','incomplete','MghUP','ZWXui','nDPMo','qlvZC','FXFpz','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','MMaDF','current-branch','vDZqj','twdvI','You\x20must\x20specify\x20a\x20command','name','login','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','kdRlk','gxdyE','issues','tOElZ','create\x20<name>','edit-scenario\x20<description>','include-deleted','allow-insecure-localhost','lTsCp','gfMnp','Skip\x20Chromium\x20browser\x20installation','WmyNW','ranger\x20config\x20unset','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','--checklist','shQrQ','tuENk','nKHXk','ENjok','sFvFM','HTmQH','HxZUA','feature\x20delete','url','get\x20<env>\x20<key>','MTnCL','exclude-scenario','VFzTj','QBjJu','resume','yNTbx','RNRWO','251nFyLpO','.env','dbvRb','261822oUiDHm','verified','kcyPj','xhaVW','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','log','add\x20<profile-name>','TeuhO','limit','RQNqR','user','xADMC','46790uPeQma','model','BEqlA','caAyP','env','GccaB','root','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','ranger\x20config\x20get','feature\x20resume','safe-mode','haJoC','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','Name\x20of\x20the\x20environment','trackCommandError','hook','list\x20<profile>','list','project','config\x20get','string','ranger\x20feature\x20show','Add\x20profile\x20configuration','item','bdZCv','option','DNhvI','profile\x20encrypt-auth','ranger','ranger\x20go','LemQW','FUUHi','Config\x20key\x20to\x20remove','BhSMH','add\x20env','start\x20[token]','key','HBWtj','JkEcn','Set\x20a\x20config\x20value','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','AkZKX','encrypt\x20<profile>'];_0x4042=function(){return _0x597a6c;};return _0x4042();}const _0x3454eb=_0x2e42;(function(_0x2a5655,_0x4543bc){const _0x5b4953=_0x2e42,_0x2e52af=_0x2a5655();while(!![]){try{const _0x5b9ea1=-parseInt(_0x5b4953(0x29a))/0x1*(parseInt(_0x5b4953(0x1ac))/0x2)+-parseInt(_0x5b4953(0x1c4))/0x3+parseInt(_0x5b4953(0x267))/0x4*(parseInt(_0x5b4953(0x2aa))/0x5)+parseInt(_0x5b4953(0x1b1))/0x6*(parseInt(_0x5b4953(0x216))/0x7)+-parseInt(_0x5b4953(0x1e3))/0x8*(parseInt(_0x5b4953(0x1f4))/0x9)+parseInt(_0x5b4953(0x1ee))/0xa+parseInt(_0x5b4953(0x29d))/0xb;if(_0x5b9ea1===_0x4543bc)break;else _0x2e52af['push'](_0x2e52af['shift']());}catch(_0x4b38f4){_0x2e52af['push'](_0x2e52af['shift']());}}}(_0x4042,0xcf593));import _0x375257 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x42b80c=_0x2e42,_0x48d8d3={'QBjJu':function(_0x326c00,_0x518eb7){return _0x326c00(_0x518eb7);},'YPfwT':function(_0xb4427d,_0x5532cf){return _0xb4427d(_0x5532cf);},'xQwuF':'.ranger','CdMop':function(_0x108ee1,_0x3e32ed){return _0x108ee1(_0x3e32ed);},'lOmEQ':_0x42b80c(0x29b)};let _0x4642b1=process[_0x42b80c(0x242)]();const _0x570fa1=_0x48d8d3[_0x42b80c(0x296)](parse,_0x4642b1)[_0x42b80c(0x2b0)];while(_0x4642b1!==_0x570fa1){if(_0x48d8d3['YPfwT'](existsSync,join(_0x4642b1,_0x48d8d3[_0x42b80c(0x1df)]))||_0x48d8d3['CdMop'](existsSync,join(_0x4642b1,_0x48d8d3[_0x42b80c(0x2e8)])))return _0x4642b1;_0x4642b1=dirname(_0x4642b1);}return process['cwd']();}_0x375257[_0x3454eb(0x1c2)]({'path':join(findProjectRoot(),_0x3454eb(0x29b))});import _0x112ef3 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{isByokEnabled}from'./commands/utils/environment.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';function _0x2e42(_0x180ec4,_0x4a9ce3){_0x180ec4=_0x180ec4-0x1a7;const _0x40424f=_0x4042();let _0x2e4255=_0x40424f[_0x180ec4];return _0x2e4255;}import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x3454eb(0x20b),async _0x5080b1=>{const _0x596a6e=_0x3454eb,_0x2d78c9={'HBWtj':function(_0x2c3710){return _0x2c3710();}},_0x488a7b=_0x2d78c9[_0x596a6e(0x2cf)](getCurrentCollector);_0x488a7b&&await _0x488a7b[_0x596a6e(0x2b8)](_0x5080b1),process['exitCode']=0x1;});const rawArgs=process['argv']['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='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=_0x3454eb(0x22e);function warnRenamed(_0x32e79a,_0x55b0a7){const _0x1695f1=_0x3454eb;console[_0x1695f1(0x1d6)]('\x0a'+_0x32e79a+'\x20is\x20now\x20'+_0x55b0a7+'\x0a');}function argUsed(_0x1cc722){const _0x2e947a=_0x3454eb;return rawArgs[_0x2e947a(0x2d8)](_0x33dfb1=>_0x33dfb1===_0x1cc722||_0x33dfb1['startsWith'](_0x1cc722+'='));}function warnFlagRenamed(_0x4ab3d9,_0x49b139,_0x3e6a47){const _0x27a5fd=_0x3454eb,_0x5d83a4={'wPJEs':function(_0x223af7,_0x57dbc9,_0x2c2be2){return _0x223af7(_0x57dbc9,_0x2c2be2);}};argUsed(_0x49b139)&&_0x5d83a4[_0x27a5fd(0x20f)](warnRenamed,_0x4ab3d9+'\x20'+_0x49b139,_0x4ab3d9+'\x20'+_0x3e6a47);}async function runGoCommand(_0x3e4500,_0x2d3efb=![]){const _0x5c5b13=_0x3454eb,_0x1e41a4={'yNTbx':function(_0x1c4074,_0x46b034){return _0x1c4074+_0x46b034;},'UgFGA':_0x5c5b13(0x2c7),'iGubs':_0x5c5b13(0x2dc),'jlifo':'--notes','lNUwm':'--item','dbvRb':function(_0x26b040){return _0x26b040();},'QHWTA':function(_0xc0eca6){return _0xc0eca6();},'rFTeI':function(_0x4049f7,_0x1edcff){return _0x4049f7(_0x1edcff);},'GHgvb':'debug-outcome','Kcptt':function(_0x4373fb,_0x41e8cb){return _0x4373fb+_0x41e8cb;},'xBxON':_0x5c5b13(0x29e),'ysiWu':_0x5c5b13(0x2e1),'QWovD':function(_0x467832,_0x33371d){return _0x467832===_0x33371d;},'mnzbd':_0x5c5b13(0x26b),'aFfUj':'\x20INCOMPLETE','MbyfK':'\x20BLOCKED','khsYn':'\x20FAILED'};_0x2d3efb&&warnRenamed(_0x5c5b13(0x1b7),_0x5c5b13(0x2c7));warnFlagRenamed(_0x5c5b13(0x2c7),_0x5c5b13(0x1f8),'--profile'),warnFlagRenamed(_0x1e41a4['UgFGA'],_0x1e41a4[_0x5c5b13(0x1c3)],_0x1e41a4[_0x5c5b13(0x2f5)]),warnFlagRenamed(_0x5c5b13(0x2c7),_0x1e41a4['lNUwm'],_0x5c5b13(0x246));const _0x3d4744=await _0x1e41a4[_0x5c5b13(0x29c)](loadRangerConfig),_0x292eb0=_0x1e41a4['QHWTA'](isByokEnabled),_0x380240=_0x3e4500['model'],_0x4008a4=_0x3d4744['model'],_0x3fc1d7=await _0x1e41a4[_0x5c5b13(0x2f7)](verifyFeature,{'featureId':_0x3e4500['feature'],'profile':_0x3e4500[_0x5c5b13(0x258)]??_0x3e4500['env'],'notes':_0x3e4500[_0x5c5b13(0x200)]??_0x3e4500['task'],'scenario':_0x3e4500['scenario']??_0x3e4500[_0x5c5b13(0x2c1)],'startPath':_0x3e4500['start-path'],'debugOutcome':_0x3e4500[_0x1e41a4['GHgvb']],'debugAddressComments':_0x3e4500['debug-address-comments'],'headed':_0x3e4500[_0x5c5b13(0x25e)],'byokEnabled':_0x292eb0,'flagVerifyModel':_0x380240,'configVerifyModel':_0x4008a4});console['log'](_0x1e41a4[_0x5c5b13(0x221)]('\x0a','='[_0x5c5b13(0x269)](0x3c))),console['log'](_0x3fc1d7[_0x5c5b13(0x2eb)]===_0x1e41a4[_0x5c5b13(0x1c0)]?_0x1e41a4['ysiWu']:_0x1e41a4['QWovD'](_0x3fc1d7[_0x5c5b13(0x2eb)],_0x1e41a4['mnzbd'])?_0x1e41a4['aFfUj']:_0x3fc1d7[_0x5c5b13(0x2eb)]==='partial'?'\x20PARTIAL':_0x1e41a4['QWovD'](_0x3fc1d7[_0x5c5b13(0x2eb)],'blocked')?_0x1e41a4['MbyfK']:_0x1e41a4['khsYn']),console[_0x5c5b13(0x2a3)]('='[_0x5c5b13(0x269)](0x3c)),console['log']('Summary:\x20'+_0x3fc1d7[_0x5c5b13(0x206)]),console['log']('Evaluation:\x20'+_0x3fc1d7[_0x5c5b13(0x2eb)]),console[_0x5c5b13(0x2a3)]('Reason:\x20'+_0x3fc1d7['evaluationReason']),_0x3fc1d7['issues']?.[_0x5c5b13(0x265)]&&(console['log']('\x0aIssues:'),_0x3fc1d7[_0x5c5b13(0x27c)][_0x5c5b13(0x1ba)]((_0xad8a1a,_0x29cb8e)=>{const _0x16352d=_0x5c5b13;console['log']('\x0a'+_0x1e41a4[_0x16352d(0x298)](_0x29cb8e,0x1)+_0x16352d(0x211)+_0xad8a1a['severity']+']\x20'+_0xad8a1a['description']);})),process['exit'](_0x3fc1d7['evaluation']===_0x1e41a4[_0x5c5b13(0x1c0)]?0x0:0x1);}_0x112ef3(process['argv']['slice'](0x2))['scriptName'](_0x3454eb(0x2c6))['usage'](TOP_LEVEL_HELP)[_0x3454eb(0x2f9)](getCurrentVersion())[_0x3454eb(0x219)](_0x3454eb(0x27e),'Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x3708bf=>{const _0x110a4d=_0x3454eb,_0x144101={'vaBwk':'name','EMKEi':_0x110a4d(0x2be),'tVtBy':'Feature\x20review\x20description','lSinV':'scenario','MOsQF':'array','REdpu':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'};return _0x3708bf['positional'](_0x144101['vaBwk'],{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x110a4d(0x1da),{'type':_0x144101['EMKEi'],'alias':'d','description':_0x144101['tVtBy']})['option'](_0x144101[_0x110a4d(0x215)],{'type':_0x144101['MOsQF'],'alias':'c','description':_0x144101[_0x110a4d(0x2e7)]})['option'](_0x110a4d(0x1fa),{'type':_0x144101[_0x110a4d(0x1fc)],'hidden':!![]});},async _0x16cb39=>{const _0x47fd96=_0x3454eb,_0x593d04={'mqKvy':function(_0x46b616,_0x3e18ea,_0x3d19d6,_0x1d4424){return _0x46b616(_0x3e18ea,_0x3d19d6,_0x1d4424);},'ujxED':'ranger\x20create','jauGh':'--scenario','HpFZM':function(_0x4f2d10,_0x5a9202,_0x11a867){return _0x4f2d10(_0x5a9202,_0x11a867);}};_0x593d04['mqKvy'](warnFlagRenamed,_0x593d04['ujxED'],_0x47fd96(0x288),_0x593d04[_0x47fd96(0x2e6)]);const _0x311ebc=_0x16cb39['scenario']||_0x16cb39['checklist'];await _0x593d04['HpFZM'](withTelemetry,'create',()=>featureCreate(_0x16cb39['name'],{'description':_0x16cb39['description'],'scenarios':_0x311ebc}));})[_0x3454eb(0x219)]('list','List\x20all\x20feature\x20reviews',_0x2b3111=>{const _0x238533=_0x3454eb,_0x4a10df={'VxjSC':'boolean','sFvFM':_0x238533(0x2b6),'CAIlh':_0x238533(0x1d3),'fxNPU':_0x238533(0x231)};return _0x2b3111[_0x238533(0x2c3)](_0x238533(0x273),{'type':_0x4a10df[_0x238533(0x245)],'description':_0x4a10df[_0x238533(0x28d)]})['option'](_0x238533(0x2a6),{'type':'number','alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})[_0x238533(0x2c3)](_0x238533(0x1b3),{'type':_0x238533(0x209),'alias':'o','description':_0x4a10df['CAIlh'],'default':0x0})['option']('include-deleted',{'type':'boolean','alias':'d','description':_0x4a10df['fxNPU'],'default':![]});},async _0x4da961=>{const _0xddc354=_0x3454eb,_0x139983={'XQPGU':function(_0xcb2950,_0x2599dd,_0x82d268){return _0xcb2950(_0x2599dd,_0x82d268);},'zaEkI':'list'};await _0x139983[_0xddc354(0x254)](withTelemetry,_0x139983[_0xddc354(0x1e7)],()=>featureList({'currentBranch':_0x4da961[_0xddc354(0x273)],'limit':_0x4da961['limit'],'offset':_0x4da961['offset'],'includeDeleted':_0x4da961[_0xddc354(0x280)]}));})[_0x3454eb(0x219)]('show\x20[id]',_0x3454eb(0x22d),_0x5d2691=>{const _0xa69780=_0x3454eb,_0x2f17a0={'GYSgF':'Feature\x20review\x20ID'};return _0x5d2691['positional']('id',{'type':_0xa69780(0x2be),'description':_0x2f17a0[_0xa69780(0x2ee)]});},async _0x4091ba=>{const _0x4d918a=_0x3454eb,_0x3a2c3f={'GbBQf':function(_0x3a1a0b,_0x4d17ad,_0x48fafc){return _0x3a1a0b(_0x4d17ad,_0x48fafc);}};await _0x3a2c3f[_0x4d918a(0x227)](withTelemetry,_0x4d918a(0x1e8),()=>featureShow(_0x4091ba['id']));})['command']('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x344786=>{const _0xc75bea=_0x3454eb;return _0x344786['positional']('id',{'type':'string','description':_0xc75bea(0x1be)});},async _0x642bb5=>{const _0x686524=_0x3454eb,_0x4e7928={'nmXHZ':_0x686524(0x297)};await withTelemetry(_0x4e7928['nmXHZ'],()=>featureResume(_0x642bb5['id']));})['command']('add-scenario\x20<description>','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x53c4d5=>{const _0x3c750c=_0x3454eb,_0x2164bf={'Uhsfb':'description','waqqB':'Scenario\x20description','TeuhO':_0x3c750c(0x2be)};return _0x53c4d5['positional'](_0x2164bf['Uhsfb'],{'type':'string','description':_0x2164bf['waqqB'],'demandOption':!![]})[_0x3c750c(0x2c3)]('id',{'type':_0x2164bf[_0x3c750c(0x2a5)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x55f253=>{const _0x4574eb=_0x3454eb,_0x17c867={'ZcHGo':function(_0x1b64ab,_0xe9c433,_0x1d002c){return _0x1b64ab(_0xe9c433,_0x1d002c);}};await _0x17c867[_0x4574eb(0x2ec)](withTelemetry,'add-scenario',()=>featureAddScenario(_0x55f253['description'],_0x55f253['id']));})[_0x3454eb(0x219)](_0x3454eb(0x27f),_0x3454eb(0x2f2),_0x278617=>{const _0x26852c=_0x3454eb,_0x2300c2={'SCXfR':_0x26852c(0x1da),'ZCqof':'Scenario\x20number\x20to\x20edit\x20(1-based)'};return _0x278617[_0x26852c(0x2e3)](_0x2300c2['SCXfR'],{'type':_0x26852c(0x2be),'description':'New\x20scenario\x20description','demandOption':!![]})['option'](_0x26852c(0x2d5),{'type':'number','description':_0x2300c2[_0x26852c(0x247)],'demandOption':!![]})['option']('id',{'type':_0x26852c(0x2be),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x27e68d=>{const _0xf68da1=_0x3454eb,_0x3c5f1e={'LjokP':function(_0x2d16da,_0x9c5c9c,_0x32d161){return _0x2d16da(_0x9c5c9c,_0x32d161);}};await _0x3c5f1e[_0xf68da1(0x1e6)](withTelemetry,'edit-scenario',()=>featureEditScenario(_0x27e68d[_0xf68da1(0x1da)],{'id':_0x27e68d['id'],'scenario':_0x27e68d['scenario']}));})['command']('report\x20[id]','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x200bcf=>{const _0x4aae8d=_0x3454eb,_0x993f2a={'lQJpB':_0x4aae8d(0x2be),'xeSJf':'Feature\x20review\x20ID','AkZKX':'exclude-scenario','cVock':_0x4aae8d(0x233),'OnAXJ':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','xUhZi':_0x4aae8d(0x250)};return _0x200bcf['positional']('id',{'type':_0x993f2a['lQJpB'],'description':_0x993f2a['xeSJf']})[_0x4aae8d(0x2c3)](_0x993f2a[_0x4aae8d(0x2d3)],{'type':_0x993f2a[_0x4aae8d(0x1e1)],'description':_0x993f2a['OnAXJ']})[_0x4aae8d(0x2c3)](_0x993f2a['xUhZi'],{'type':_0x4aae8d(0x1b5),'description':_0x4aae8d(0x1d2),'default':![]});},async _0x27d25b=>{const _0x3a9234=_0x3454eb,_0x4eb0a={'caAyP':_0x3a9234(0x294),'kcyPj':function(_0x23a9cf,_0x4059d4,_0x581569){return _0x23a9cf(_0x4059d4,_0x581569);},'XzqiH':'report'},_0x1da077=_0x27d25b[_0x4eb0a[_0x3a9234(0x2ad)]],_0x280484=_0x1da077?_0x1da077['map'](_0x3aac62=>Number(_0x3aac62)):undefined;await _0x4eb0a[_0x3a9234(0x29f)](withTelemetry,_0x4eb0a[_0x3a9234(0x24a)],()=>featureReportPrDescription(_0x27d25b['id'],{'excludeScenarios':_0x280484,'json':_0x27d25b[_0x3a9234(0x250)]}));})[_0x3454eb(0x219)]('get-review\x20[id]',_0x3454eb(0x2d2),_0x1048e3=>{const _0x910408=_0x3454eb,_0x10d8e6={'MELko':_0x910408(0x1ef)};return _0x1048e3[_0x910408(0x2e3)]('id',{'type':_0x910408(0x2be),'description':_0x10d8e6['MELko']});},async _0x2dc1dc=>{const _0x486143={'dxkSr':function(_0x16f5d2,_0x1c9e2f,_0x2a8063){return _0x16f5d2(_0x1c9e2f,_0x2a8063);}};await _0x486143['dxkSr'](withTelemetry,'get-review',()=>featureGetReview(_0x2dc1dc['id']));})[_0x3454eb(0x219)]('delete\x20[id]',_0x3454eb(0x2b1),_0x46d097=>{const _0x222e9e=_0x3454eb;return _0x46d097[_0x222e9e(0x2e3)]('id',{'type':_0x222e9e(0x2be),'description':'Feature\x20review\x20ID'});},async _0xddf63b=>{const _0x443462=_0x3454eb,_0x19eb91={'pigDd':function(_0x8232f1,_0x1e6c29,_0x588ec2){return _0x8232f1(_0x1e6c29,_0x588ec2);}};await _0x19eb91[_0x443462(0x22c)](withTelemetry,_0x443462(0x1f0),()=>featureDelete(_0xddf63b['id']));})[_0x3454eb(0x219)]('restore\x20<id>','Restore\x20a\x20soft-deleted\x20feature\x20review',_0x12dcf7=>{const _0x450685=_0x3454eb;return _0x12dcf7[_0x450685(0x2e3)]('id',{'type':'string','description':_0x450685(0x203),'demandOption':!![]});},async _0x5a1aff=>{const _0x173395={'ADCAs':function(_0x228ed4,_0x159ee8,_0xb8f6de){return _0x228ed4(_0x159ee8,_0xb8f6de);},'vdmhy':'restore'};await _0x173395['ADCAs'](withTelemetry,_0x173395['vdmhy'],()=>featureRestore(_0x5a1aff['id']));})['command']('setup\x20[token]','Initialize\x20Ranger\x20in\x20your\x20project',_0x241552=>{const _0x36d147=_0x3454eb,_0x2a5801={'QFaLB':_0x36d147(0x263),'TfFyf':_0x36d147(0x26a),'nYQDf':'user','QiCNc':'project','lazYZ':'url','BhSMH':_0x36d147(0x2be),'ZcryI':'force','vgEQr':'boolean','lwfZi':_0x36d147(0x281),'nyEpR':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'};return _0x241552[_0x36d147(0x2e3)]('token',{'type':_0x36d147(0x2be),'description':_0x2a5801['QFaLB']})['option'](_0x36d147(0x1fb),{'type':_0x36d147(0x1b5),'description':_0x36d147(0x262),'default':![]})[_0x36d147(0x2c3)](_0x2a5801['TfFyf'],{'type':'string','choices':[_0x2a5801[_0x36d147(0x2da)],_0x2a5801['QiCNc']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x2a5801[_0x36d147(0x201)],{'type':_0x2a5801[_0x36d147(0x2cb)],'description':_0x36d147(0x208)})['option'](_0x2a5801[_0x36d147(0x224)],{'type':_0x2a5801['vgEQr'],'description':_0x36d147(0x1b0),'default':![]})['option']('opencode',{'type':'boolean','description':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','default':![]})[_0x36d147(0x2c3)](_0x2a5801[_0x36d147(0x1dc)],{'type':'boolean','description':_0x2a5801[_0x36d147(0x2e0)],'default':![]});},async _0x2063b2=>{const _0x13f10e=_0x3454eb,_0xe2c68a={'ZWXui':function(_0x2fab25,_0x34886d,_0x565657){return _0x2fab25(_0x34886d,_0x565657);}};await _0xe2c68a[_0x13f10e(0x26d)](withTelemetry,'start',_0x18c89f=>start(_0x2063b2['token'],{'skipChromium':_0x2063b2[_0x13f10e(0x1fb)],'scope':_0x2063b2['scope'],'url':_0x2063b2[_0x13f10e(0x291)],'force':_0x2063b2[_0x13f10e(0x1f2)],'opencode':_0x2063b2['opencode'],'allowInsecureLocalhost':_0x2063b2['allow-insecure-localhost']},_0x18c89f));})['command'](_0x3454eb(0x1ab),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x4f868e=>{const _0xfe5fb=_0x3454eb,_0xf1ddee={'GISOm':_0xfe5fb(0x266),'MTnCL':'string','jmvmb':'Ranger\x20API\x20token','opYvl':_0xfe5fb(0x279),'tBswN':_0xfe5fb(0x1b5),'UTHqN':_0xfe5fb(0x284)};return _0x4f868e[_0xfe5fb(0x2e3)](_0xf1ddee['GISOm'],{'type':_0xf1ddee[_0xfe5fb(0x293)],'description':_0xf1ddee['jmvmb'],'demandOption':!![]})['option'](_0xfe5fb(0x258),{'type':'string','description':_0xf1ddee[_0xfe5fb(0x218)]})['option'](_0xfe5fb(0x1fd),{'type':_0xf1ddee[_0xfe5fb(0x293)],'description':_0xfe5fb(0x25d)})['option']('skip-chromium',{'type':_0xf1ddee[_0xfe5fb(0x1d4)],'description':_0xf1ddee['UTHqN'],'default':![]});},async _0x37200e=>{const _0x4f1171=_0x3454eb;await withTelemetry(_0x4f1171(0x230),_0x3f1280=>setupCi(_0x37200e[_0x4f1171(0x266)],{'profile':_0x37200e[_0x4f1171(0x258)],'baseUrl':_0x37200e[_0x4f1171(0x1fd)],'skipChromium':_0x37200e['skip-chromium']},_0x3f1280));})['command']('login',_0x3454eb(0x21a),()=>{},async()=>{const _0xedea81=_0x3454eb,_0x3e7ced={'aVLXT':function(_0x45321f,_0x1034a1,_0xd2fe98){return _0x45321f(_0x1034a1,_0xd2fe98);},'TjPWu':_0xedea81(0x278)};await _0x3e7ced[_0xedea81(0x1ce)](withTelemetry,_0x3e7ced[_0xedea81(0x261)],()=>login());})[_0x3454eb(0x219)]('skillup','Install\x20Ranger\x20skills',_0x232c3c=>{const _0x4a419b=_0x3454eb,_0x157a7c={'gxdyE':_0x4a419b(0x1b5),'jcDWq':'string','OLtPw':_0x4a419b(0x1eb)};return _0x232c3c['option'](_0x4a419b(0x1ad),{'type':_0x157a7c[_0x4a419b(0x27b)],'description':'Install\x20skills\x20for\x20OpenCode','default':![]})['option'](_0x4a419b(0x26a),{'type':_0x157a7c['jcDWq'],'choices':[_0x4a419b(0x2a8),'project'],'description':_0x157a7c['OLtPw']});},async _0x2b11e6=>{const _0x1b4ab1=_0x3454eb,_0x58dfb0={'neMps':function(_0x3ab6eb,_0x1e7dab){return _0x3ab6eb(_0x1e7dab);},'fZXRo':function(_0x3460da,_0x1cedfe,_0x448350){return _0x3460da(_0x1cedfe,_0x448350);}},_0x4f1bad=_0x58dfb0[_0x1b4ab1(0x212)](Boolean,_0x2b11e6[_0x1b4ab1(0x1ad)]);await _0x58dfb0['fZXRo'](withTelemetry,'skillup',()=>skillup({'autoInstall':_0x2b11e6[_0x1b4ab1(0x26a)],'platform':_0x4f1bad?_0x1b4ab1(0x1ad):_0x1b4ab1(0x255)}));})['command'](_0x3454eb(0x1c9),'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x172ba4=_0x3454eb,_0x52ea74={'gyEmV':_0x172ba4(0x1c9)};await withTelemetry(_0x52ea74['gyEmV'],()=>clean());})['command'](_0x3454eb(0x258),'Manage\x20profiles',_0x11d7a3=>{const _0x5598b3=_0x3454eb,_0x33569b={'GboiV':'profile-name','LkOsm':_0x5598b3(0x2f1),'iLNgm':'boolean','UgnPG':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','AfClz':'url','OQFOC':_0x5598b3(0x2be),'RQHKF':_0x5598b3(0x1bb),'BWExX':_0x5598b3(0x1b0),'ybmrg':'cdp-endpoint','lDinV':_0x5598b3(0x24f),'bhDhz':_0x5598b3(0x281),'Mrwot':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','QTzBH':_0x5598b3(0x2b4),'yDlsp':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','tuENk':_0x5598b3(0x210),'FXFpz':_0x5598b3(0x1d5),'NKccI':function(_0x367b37,_0x4d3946,_0x10982f){return _0x367b37(_0x4d3946,_0x10982f);},'uNTag':'profile\x20use','kdRlk':'Profile\x20name','JTVJT':function(_0x430ccc,_0x2626f1,_0x14bf3e){return _0x430ccc(_0x2626f1,_0x14bf3e);},'BjRyC':_0x5598b3(0x2c5),'blJIO':'profile\x20ls','xbemz':function(_0x12fffa,_0x4a5054,_0x2df2fc){return _0x12fffa(_0x4a5054,_0x2df2fc);},'ZHiVN':'profile','bmpOA':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','qOzJE':'profile\x20config\x20list','EmrsD':_0x5598b3(0x2d1),'laSNy':_0x5598b3(0x1cc),'LemQW':_0x5598b3(0x2e5),'SPJUj':_0x5598b3(0x2ba),'TtKDf':'List\x20all\x20config\x20for\x20a\x20profile','uynGD':'Remove\x20a\x20config\x20value','JkEcn':_0x5598b3(0x2a4),'MCDcM':_0x5598b3(0x21e),'UuvFN':'encrypt-auth\x20<profile>','AGEBW':_0x5598b3(0x226),'PFWLp':_0x5598b3(0x20a),'OxtIS':_0x5598b3(0x1f9),'SiGhj':'config','wUNtI':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x11d7a3['usage'](PROFILE_HELP)[_0x5598b3(0x219)](_0x33569b[_0x5598b3(0x2d0)],_0x5598b3(0x2c0),_0x19222f=>{const _0x191e27=_0x5598b3;return _0x19222f['positional'](_0x33569b[_0x191e27(0x220)],{'type':'string','description':_0x191e27(0x207),'demandOption':!![]})[_0x191e27(0x2c3)]('ci',{'type':_0x191e27(0x1b5),'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x33569b['LkOsm'],{'type':_0x33569b[_0x191e27(0x1b6)],'description':_0x33569b['UgnPG'],'default':![]})[_0x191e27(0x2c3)](_0x33569b[_0x191e27(0x25f)],{'type':_0x33569b['OQFOC'],'description':_0x33569b['RQHKF']})[_0x191e27(0x2c3)](_0x191e27(0x1f2),{'type':_0x33569b[_0x191e27(0x1b6)],'description':_0x33569b['BWExX'],'default':![]})[_0x191e27(0x2c3)](_0x33569b['ybmrg'],{'type':_0x33569b['OQFOC'],'description':_0x33569b['lDinV']})[_0x191e27(0x2c3)](_0x33569b[_0x191e27(0x228)],{'type':_0x33569b['iLNgm'],'description':_0x33569b[_0x191e27(0x217)],'default':![]})['option'](_0x33569b['QTzBH'],{'type':'boolean','description':_0x33569b[_0x191e27(0x25a)],'default':![]})['option']('setup-header',{'type':'string','array':!![],'description':_0x33569b[_0x191e27(0x28a)]});},async _0x420f7a=>{const _0x268a09=_0x5598b3;await withTelemetry('profile\x20add',_0x3bbfdf=>addEnv(_0x420f7a['profile-name'],{'ci':_0x420f7a['ci'],'skipAuth':_0x420f7a[_0x268a09(0x2f1)],'url':_0x420f7a['url'],'force':_0x420f7a[_0x268a09(0x1f2)],'cdpEndpoint':_0x420f7a[_0x268a09(0x1d1)],'allowInsecureLocalhost':_0x420f7a[_0x268a09(0x281)],'safeMode':_0x420f7a[_0x268a09(0x2b4)],'setupHeader':_0x420f7a[_0x268a09(0x1a9)]},_0x3bbfdf),{'isElectron':Boolean(_0x420f7a[_0x33569b['ybmrg']])});})['command']('use\x20<profile-name>',_0x33569b[_0x5598b3(0x234)],_0x320bc4=>{const _0x4b6945=_0x5598b3;return _0x320bc4['positional'](_0x33569b['GboiV'],{'type':_0x33569b['OQFOC'],'description':_0x33569b[_0x4b6945(0x270)],'demandOption':!![]});},async _0x45803b=>{const _0x4691de=_0x5598b3;await _0x33569b['NKccI'](withTelemetry,_0x33569b[_0x4691de(0x1c8)],()=>useEnv(_0x45803b['profile-name']));})[_0x5598b3(0x219)](_0x33569b['UuvFN'],_0x33569b[_0x5598b3(0x1fe)],_0x5efb55=>{const _0x2320fa=_0x5598b3;return _0x5efb55[_0x2320fa(0x2e3)]('profile',{'type':_0x33569b['OQFOC'],'description':_0x33569b['kdRlk'],'demandOption':!![]});},async _0x1461e2=>{await _0x33569b['JTVJT'](withTelemetry,_0x33569b['BjRyC'],()=>authEncrypt(_0x1461e2['profile']));})[_0x5598b3(0x219)]('ls','List\x20all\x20profiles',()=>{},async()=>{await withTelemetry(_0x33569b['blJIO'],()=>envList());})['command'](_0x33569b['PFWLp'],_0x33569b['OxtIS'],_0x4af1be=>{const _0x2f96a4=_0x5598b3;return _0x4af1be['positional'](_0x2f96a4(0x1ec),{'type':_0x2f96a4(0x2be),'description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]})[_0x2f96a4(0x2c3)](_0x2f96a4(0x281),{'type':_0x33569b[_0x2f96a4(0x1b6)],'description':_0x2f96a4(0x24d)});},async _0x44c2a9=>{await withTelemetry('profile\x20update',_0x316bef=>updateEnv(_0x44c2a9['profile-name'],_0x316bef,{'allowInsecureLocalhost':_0x44c2a9['allow-insecure-localhost']}));})['command'](_0x33569b[_0x5598b3(0x2e9)],'Manage\x20profile\x20configuration',_0x488788=>{const _0x1eb476=_0x5598b3,_0x18b72b={'rbHWK':_0x33569b[_0x1eb476(0x239)],'poVns':_0x33569b[_0x1eb476(0x27a)],'IUVsF':_0x33569b['bmpOA'],'Hfkxh':_0x1eb476(0x2ef),'tSTWV':_0x33569b[_0x1eb476(0x1c1)],'xUqjQ':_0x33569b['OQFOC']};return _0x488788[_0x1eb476(0x1d9)](PROFILE_CONFIG_HELP)[_0x1eb476(0x219)](_0x1eb476(0x1f6),_0x33569b[_0x1eb476(0x20e)],_0xbdaf13=>{const _0x5ccd9d=_0x1eb476;return _0xbdaf13[_0x5ccd9d(0x2e3)](_0x18b72b['rbHWK'],{'type':'string','description':_0x18b72b[_0x5ccd9d(0x1dd)],'demandOption':!![]})[_0x5ccd9d(0x2e3)](_0x5ccd9d(0x2ce),{'type':'string','description':_0x18b72b[_0x5ccd9d(0x24b)],'demandOption':!![]})['positional'](_0x5ccd9d(0x235),{'type':'string','description':_0x18b72b[_0x5ccd9d(0x20d)],'demandOption':!![]});},async _0x5df8c5=>{const _0x27083b=_0x1eb476;await withTelemetry('profile\x20config\x20set',()=>configSet(_0x5df8c5[_0x27083b(0x258)],_0x5df8c5[_0x27083b(0x2ce)],_0x5df8c5['value']));})['command'](_0x33569b[_0x1eb476(0x202)],_0x33569b[_0x1eb476(0x2c8)],_0x56fd95=>{const _0x52541a=_0x1eb476;return _0x56fd95['positional']('profile',{'type':'string','description':_0x33569b[_0x52541a(0x27a)],'demandOption':!![]})[_0x52541a(0x2e3)]('key',{'type':_0x33569b[_0x52541a(0x238)],'description':'Config\x20key','demandOption':!![]});},async _0xecc52b=>{const _0x22f562=_0x1eb476;await _0x33569b['xbemz'](withTelemetry,_0x22f562(0x1b2),()=>configGet(_0xecc52b['profile'],_0xecc52b[_0x22f562(0x2ce)]));})['command'](_0x33569b[_0x1eb476(0x2f8)],_0x33569b['TtKDf'],_0x436ae1=>{const _0x1dcbbc=_0x1eb476;return _0x436ae1['positional'](_0x33569b['ZHiVN'],{'type':_0x33569b['OQFOC'],'description':_0x33569b[_0x1dcbbc(0x27a)],'demandOption':!![]});},async _0x3f3d0a=>{const _0x1ebdfe=_0x1eb476;await withTelemetry(_0x18b72b[_0x1ebdfe(0x1e2)],()=>configList(_0x3f3d0a[_0x1ebdfe(0x258)]));})['command']('unset\x20<profile>\x20<key>',_0x33569b['uynGD'],_0x5b8cb0=>{const _0x47d043=_0x1eb476;return _0x5b8cb0[_0x47d043(0x2e3)](_0x18b72b['rbHWK'],{'type':_0x18b72b[_0x47d043(0x253)],'description':'Profile\x20name','demandOption':!![]})[_0x47d043(0x2e3)]('key',{'type':'string','description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0xa31dd0=>{const _0xb17614=_0x1eb476;await withTelemetry('profile\x20config\x20unset',()=>configUnset(_0xa31dd0[_0xb17614(0x258)],_0xa31dd0['key']));})[_0x1eb476(0x240)](0x1,_0x1eb476(0x2a2));})[_0x5598b3(0x240)](0x1,_0x33569b['wUNtI']);})[_0x3454eb(0x219)](_0x3454eb(0x244),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x19eb4a=_0x3454eb,_0x594372={'QNBSd':function(_0x5c84d5,_0x42cd18,_0x186d22){return _0x5c84d5(_0x42cd18,_0x186d22);}};await _0x594372[_0x19eb4a(0x2d9)](withTelemetry,_0x19eb4a(0x244),()=>status());})[_0x3454eb(0x219)](_0x3454eb(0x1f1),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x245998=_0x3454eb;await withTelemetry(_0x245998(0x1f1),()=>update());})['command']('go',_0x3454eb(0x264),_0x3f4245=>{const _0x3fdcd0=_0x3454eb,_0x4ab30f={'abolz':_0x3fdcd0(0x2be),'YXMNf':'number','lNAYa':_0x3fdcd0(0x251),'KHzPY':'start-path','pGzab':_0x3fdcd0(0x229),'kaDCm':'headed','YfUkv':_0x3fdcd0(0x271),'KHlNA':_0x3fdcd0(0x29e),'trgOQ':'partial','qViAT':'blocked','wDImB':_0x3fdcd0(0x2ae)};return _0x3f4245[_0x3fdcd0(0x2c3)]('feature',{'type':_0x3fdcd0(0x2be),'description':'Optional\x20feature\x20ID'})['option']('profile',{'type':_0x4ab30f[_0x3fdcd0(0x1ed)],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x3fdcd0(0x2c3)]('notes',{'type':_0x3fdcd0(0x2be),'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})['option']('scenario',{'type':_0x4ab30f[_0x3fdcd0(0x23e)],'description':_0x4ab30f['lNAYa']})[_0x3fdcd0(0x2c3)](_0x4ab30f[_0x3fdcd0(0x249)],{'type':_0x3fdcd0(0x2be),'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})[_0x3fdcd0(0x2c3)]('model',{'type':'string','description':_0x4ab30f['pGzab']})[_0x3fdcd0(0x2c3)](_0x4ab30f[_0x3fdcd0(0x268)],{'type':'boolean','description':_0x4ab30f['YfUkv'],'default':![]})[_0x3fdcd0(0x2c3)](_0x3fdcd0(0x22f),{'type':'string','hidden':!![],'choices':[_0x4ab30f[_0x3fdcd0(0x2fb)],_0x4ab30f[_0x3fdcd0(0x204)],_0x4ab30f['qViAT'],_0x3fdcd0(0x243),_0x3fdcd0(0x26b)]})[_0x3fdcd0(0x2c3)](_0x3fdcd0(0x23a),{'type':_0x3fdcd0(0x1b5),'hidden':!![]})[_0x3fdcd0(0x2c3)](_0x4ab30f['wDImB'],{'type':_0x4ab30f[_0x3fdcd0(0x1ed)],'hidden':!![]})[_0x3fdcd0(0x2c3)]('task',{'type':'string','hidden':!![]})['option']('item',{'type':'number','hidden':!![]});},async _0x2d35b1=>{const _0x113801=_0x3454eb,_0x2fec54={'twdvI':function(_0x37d50c,_0x269085){return _0x37d50c(_0x269085);}};await _0x2fec54[_0x113801(0x275)](runGoCommand,_0x2d35b1);})[_0x3454eb(0x219)](_0x3454eb(0x2db),![],_0x11ab22=>{const _0x12cec2=_0x3454eb,_0x33a14b={'xADMC':'ranger\x20auth\x20encrypt','jfHUu':_0x12cec2(0x2d4),'zIYaF':_0x12cec2(0x1b4)};return _0x11ab22[_0x12cec2(0x219)](_0x33a14b['jfHUu'],![],_0x4db4aa=>{const _0x396a2b=_0x12cec2;return _0x4db4aa[_0x396a2b(0x2e3)]('profile',{'type':'string','description':_0x396a2b(0x2d7),'demandOption':!![]});},async _0x4078ae=>{const _0x83417d=_0x12cec2;warnRenamed(_0x33a14b[_0x83417d(0x2a9)],_0x83417d(0x1de)),await authEncrypt(_0x4078ae['profile']);})['demandCommand'](0x1,_0x33a14b['zIYaF']);},()=>{})['command'](_0x3454eb(0x2cd),![],_0x21767d=>{const _0x589c03=_0x3454eb,_0x438e0a={'lTsCp':'string','bdZCv':'skip-chromium','HxZUA':_0x589c03(0x26a),'FkvUz':_0x589c03(0x2bc),'MtsGo':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','NvkJg':_0x589c03(0x291),'XARkm':'boolean','GccaB':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url'};return _0x21767d[_0x589c03(0x2e3)](_0x589c03(0x266),{'type':_0x438e0a['lTsCp'],'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})['option'](_0x438e0a[_0x589c03(0x2c2)],{'type':'boolean','description':_0x589c03(0x262),'default':![]})['option'](_0x438e0a[_0x589c03(0x28f)],{'type':_0x438e0a[_0x589c03(0x282)],'choices':[_0x589c03(0x2a8),_0x438e0a[_0x589c03(0x24e)]],'description':_0x438e0a[_0x589c03(0x1e9)]})['option'](_0x438e0a[_0x589c03(0x1d8)],{'type':_0x438e0a['lTsCp'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x589c03(0x1f2),{'type':_0x438e0a['XARkm'],'description':_0x438e0a[_0x589c03(0x2af)],'default':![]});},async _0x4f6f05=>{const _0x3e32a6=_0x3454eb,_0x5c3b05={'kfvPA':'ranger\x20start','hAwVr':_0x3e32a6(0x1bf)};warnRenamed(_0x5c3b05['kfvPA'],_0x5c3b05[_0x3e32a6(0x259)]),await withTelemetry('start',_0x339d21=>start(_0x4f6f05['token'],{'skipChromium':_0x4f6f05['skip-chromium'],'scope':_0x4f6f05['scope'],'url':_0x4f6f05[_0x3e32a6(0x291)],'force':_0x4f6f05['force']},_0x339d21));})['command']('verify-feature',![],_0x3462ba=>{const _0x5406a2=_0x3454eb,_0x1c51c9={'UFpAk':'string','DpzbA':_0x5406a2(0x2ed),'zdCCy':'number','tQoct':'notes','sNTvO':'scenario','PTbPv':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','oYsAH':_0x5406a2(0x2ab),'FkhRS':'debug-outcome','WCbrP':'partial','bePHE':'blocked','uUaLu':_0x5406a2(0x243),'GVgCp':_0x5406a2(0x26b)};return _0x3462ba['option'](_0x5406a2(0x2ae),{'type':_0x1c51c9[_0x5406a2(0x223)],'description':_0x5406a2(0x2d6)})[_0x5406a2(0x2c3)]('task',{'type':_0x5406a2(0x2be),'description':_0x1c51c9['DpzbA']})[_0x5406a2(0x2c3)](_0x5406a2(0x2c1),{'type':_0x1c51c9[_0x5406a2(0x1ea)],'description':'Scenario\x20index\x20(1-based)'})[_0x5406a2(0x2c3)]('profile',{'type':_0x1c51c9[_0x5406a2(0x223)],'hidden':!![]})[_0x5406a2(0x2c3)](_0x1c51c9['tQoct'],{'type':_0x1c51c9[_0x5406a2(0x223)],'hidden':!![]})['option'](_0x1c51c9['sNTvO'],{'type':_0x1c51c9[_0x5406a2(0x1ea)],'hidden':!![]})['option'](_0x5406a2(0x241),{'type':_0x5406a2(0x2be),'description':_0x1c51c9[_0x5406a2(0x2ea)]})['option'](_0x1c51c9[_0x5406a2(0x23b)],{'type':_0x5406a2(0x2be),'hidden':!![]})[_0x5406a2(0x2c3)](_0x5406a2(0x25e),{'type':'boolean','hidden':!![],'default':![]})['option'](_0x1c51c9['FkhRS'],{'type':_0x5406a2(0x2be),'hidden':!![],'choices':[_0x5406a2(0x29e),_0x1c51c9[_0x5406a2(0x222)],_0x1c51c9['bePHE'],_0x1c51c9['uUaLu'],_0x1c51c9[_0x5406a2(0x1f3)]]});},async _0x1b6f98=>{await runGoCommand(_0x1b6f98,!![]);})['command']('add\x20env\x20<env-name>',![],_0x2fd886=>{const _0x2771d3=_0x3454eb,_0x23a22c={'RNRWO':'env-name','xhaVW':'boolean'};return _0x2fd886['positional'](_0x23a22c[_0x2771d3(0x299)],{'type':_0x2771d3(0x2be),'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x2771d3(0x1b5),'description':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option']('skip-auth',{'type':_0x23a22c[_0x2771d3(0x2a0)],'description':_0x2771d3(0x2f0),'default':![]});},async _0x4b2cd6=>{const _0x137073=_0x3454eb,_0x4c4622={'rQZZN':_0x137073(0x20c),'FUUHi':function(_0xd44ebd,_0x4371e0,_0x43db4b){return _0xd44ebd(_0x4371e0,_0x43db4b);}};warnRenamed(_0x4c4622[_0x137073(0x2e2)],_0x137073(0x1c6)),await _0x4c4622[_0x137073(0x2c9)](withTelemetry,_0x137073(0x2cc),_0x4835e7=>addEnv(_0x4b2cd6[_0x137073(0x1c5)],{'ci':_0x4b2cd6['ci'],'skipAuth':_0x4b2cd6['skip-auth']},_0x4835e7));})[_0x3454eb(0x219)]('use\x20<env-name>',![],_0x4f707c=>{const _0x495889=_0x3454eb;return _0x4f707c['positional'](_0x495889(0x1c5),{'type':'string','description':_0x495889(0x2b7),'demandOption':!![]});},async _0x2995ff=>{const _0x158305=_0x3454eb,_0x2aaf6a={'vDZqj':function(_0x59b02b,_0x4c1c3e,_0x2c3ec2){return _0x59b02b(_0x4c1c3e,_0x2c3ec2);},'KBLrZ':'ranger\x20use'};_0x2aaf6a[_0x158305(0x274)](warnRenamed,_0x2aaf6a[_0x158305(0x1af)],_0x158305(0x1bd)),await _0x2aaf6a['vDZqj'](withTelemetry,'use',()=>useEnv(_0x2995ff[_0x158305(0x1c5)]));})[_0x3454eb(0x219)]('config',![],_0x44af88=>{const _0x3cf729=_0x3454eb,_0x340253={'sNvxf':_0x3cf729(0x2be),'IqCqf':'Config\x20value','NEIik':function(_0x5adfd2,_0x24bf26,_0x30876b){return _0x5adfd2(_0x24bf26,_0x30876b);},'nKHXk':'ranger\x20config\x20set','xQOuw':_0x3cf729(0x2f3),'QJSrN':'key','zEAWY':_0x3cf729(0x1d0),'DNhvI':'env','rpvCN':function(_0x2b4993,_0x357794,_0x1ee350){return _0x2b4993(_0x357794,_0x1ee350);},'qPkPA':'ranger\x20config\x20list','aHrhJ':'config\x20list','VVsrs':_0x3cf729(0x286),'mnjbf':_0x3cf729(0x205),'oWcod':function(_0x145cdf,_0x4b8461,_0x27f56d){return _0x145cdf(_0x4b8461,_0x27f56d);},'WmyNW':'set\x20<env>\x20<key>\x20<value>','jcTAs':_0x3cf729(0x25b)};return _0x44af88[_0x3cf729(0x219)](_0x340253[_0x3cf729(0x285)],![],_0x325157=>{const _0xf6b774=_0x3cf729;return _0x325157[_0xf6b774(0x2e3)](_0xf6b774(0x2ae),{'type':_0x340253['sNvxf'],'description':_0xf6b774(0x2f3),'demandOption':!![]})[_0xf6b774(0x2e3)](_0xf6b774(0x2ce),{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})['positional']('value',{'type':_0x340253['sNvxf'],'description':_0x340253['IqCqf'],'demandOption':!![]});},async _0x895f9=>{const _0x401170=_0x3cf729;_0x340253['NEIik'](warnRenamed,_0x340253[_0x401170(0x28b)],'ranger\x20profile\x20config\x20set'),await _0x340253[_0x401170(0x2df)](withTelemetry,'config\x20set',()=>configSet(_0x895f9[_0x401170(0x2ae)],_0x895f9['key'],_0x895f9['value']));})['command'](_0x3cf729(0x292),![],_0x124c2c=>{const _0x937519=_0x3cf729;return _0x124c2c[_0x937519(0x2e3)](_0x937519(0x2ae),{'type':_0x340253[_0x937519(0x1b9)],'description':_0x340253[_0x937519(0x237)],'demandOption':!![]})[_0x937519(0x2e3)](_0x340253['QJSrN'],{'type':_0x340253['sNvxf'],'description':'Config\x20key','demandOption':!![]});},async _0x2ae578=>{const _0x57fdf1=_0x3cf729;warnRenamed(_0x57fdf1(0x2b2),_0x340253[_0x57fdf1(0x1e5)]),await withTelemetry(_0x57fdf1(0x2bd),()=>configGet(_0x2ae578['env'],_0x2ae578['key']));})['command']('list\x20<env>',![],_0x2541f6=>{const _0x4df484=_0x3cf729;return _0x2541f6[_0x4df484(0x2e3)](_0x340253[_0x4df484(0x2c4)],{'type':'string','description':_0x4df484(0x2f3),'demandOption':!![]});},async _0x54b809=>{const _0x36c969=_0x3cf729;_0x340253['rpvCN'](warnRenamed,_0x340253['qPkPA'],'ranger\x20profile\x20config\x20list'),await _0x340253[_0x36c969(0x2df)](withTelemetry,_0x340253['aHrhJ'],()=>configList(_0x54b809[_0x36c969(0x2ae)]));})[_0x3cf729(0x219)]('unset\x20<env>\x20<key>',![],_0x5a47fa=>{const _0x29b627=_0x3cf729;return _0x5a47fa['positional'](_0x340253[_0x29b627(0x2c4)],{'type':_0x29b627(0x2be),'description':_0x29b627(0x2f3),'demandOption':!![]})['positional'](_0x340253['QJSrN'],{'type':_0x340253['sNvxf'],'description':_0x29b627(0x2ca),'demandOption':!![]});},async _0x312521=>{const _0x40942f=_0x3cf729;warnRenamed(_0x340253[_0x40942f(0x1e0)],_0x340253[_0x40942f(0x1ff)]),await _0x340253[_0x40942f(0x1aa)](withTelemetry,'config\x20unset',()=>configUnset(_0x312521['env'],_0x312521[_0x40942f(0x2ce)]));})['demandCommand'](0x1,_0x340253['jcTAs']);})[_0x3454eb(0x219)](_0x3454eb(0x2ae),![],_0x299b5a=>{const _0x223f73=_0x3454eb,_0x21bfab={'AjVWP':'ranger\x20profile\x20ls','YuXih':_0x223f73(0x1cf),'dLlcP':'env-name','shQrQ':'string','XIMgZ':'ranger\x20env\x20update','QjWaR':_0x223f73(0x236),'hoNES':function(_0x4e46c5,_0x5c22de,_0x2c1d3f){return _0x4e46c5(_0x5c22de,_0x2c1d3f);},'qlvZC':'env\x20update'};return _0x299b5a[_0x223f73(0x219)]('ls',![],()=>{},async()=>{const _0x5f2d80=_0x223f73;warnRenamed(_0x5f2d80(0x232),_0x21bfab['AjVWP']),await withTelemetry(_0x21bfab['YuXih'],()=>envList());})['command']('update\x20<env-name>',![],_0x4d43aa=>{const _0x180c3b=_0x223f73;return _0x4d43aa[_0x180c3b(0x2e3)](_0x21bfab['dLlcP'],{'type':_0x21bfab[_0x180c3b(0x289)],'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x59df2d=>{const _0x40db7f=_0x223f73;warnRenamed(_0x21bfab['XIMgZ'],_0x21bfab['QjWaR']),await _0x21bfab['hoNES'](withTelemetry,_0x21bfab[_0x40db7f(0x26f)],_0x2f13ec=>updateEnv(_0x59df2d[_0x40db7f(0x1c5)],_0x2f13ec));})[_0x223f73(0x240)](0x1,_0x223f73(0x24c));})[_0x3454eb(0x219)](_0x3454eb(0x1bc),![],_0x359462=>{const _0x34ba41=_0x3454eb,_0x587a7a={'txCNr':_0x34ba41(0x277),'HTmQH':_0x34ba41(0x2be),'XQmPZ':'Feature\x20review\x20description','ncqjh':_0x34ba41(0x233),'EJGdY':function(_0x52eff1,_0x4d646e,_0x41545f){return _0x52eff1(_0x4d646e,_0x41545f);},'gzQRE':'ranger\x20feature\x20create','mjeER':function(_0x357d2f,_0x3a6aae,_0x4606c8,_0x559c2b){return _0x357d2f(_0x3a6aae,_0x4606c8,_0x559c2b);},'wshlK':'ranger\x20create','hUksZ':_0x34ba41(0x246),'Ibotz':'feature\x20create','haJoC':'boolean','gfMnp':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','JISyz':'number','FGTvw':_0x34ba41(0x1f7),'pZenK':_0x34ba41(0x231),'Pxkim':_0x34ba41(0x1ca),'lhClx':'Feature\x20review\x20ID','WEOXU':_0x34ba41(0x2bf),'oOoQp':'ranger\x20show','MMaDF':'feature\x20show','dYjHP':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','MghUP':'ranger\x20feature\x20resume','PMBxZ':'ranger\x20resume','GWaIB':_0x34ba41(0x1da),'KbGwp':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','vFrLd':'ranger\x20feature\x20add-checklist-item','oMxzb':'ranger\x20add-scenario','nDPMo':_0x34ba41(0x21d),'ENjok':'ranger\x20feature\x20get-feedback','Hnvwx':_0x34ba41(0x1d7),'ltetl':_0x34ba41(0x2dd),'pzflH':_0x34ba41(0x290),'fuWDA':_0x34ba41(0x203),'RxFWa':'ranger\x20feature\x20restore','VFzTj':function(_0x924a78,_0x111769,_0x567600){return _0x924a78(_0x111769,_0x567600);},'RQNqR':'feature\x20restore','hUepN':_0x34ba41(0x2bb),'OJMGk':_0x34ba41(0x287)};return _0x359462['command'](_0x34ba41(0x27e),![],_0x155725=>{const _0x13c7a8=_0x34ba41;return _0x155725['positional'](_0x587a7a[_0x13c7a8(0x2f6)],{'type':_0x587a7a[_0x13c7a8(0x28e)],'description':_0x13c7a8(0x1c7),'demandOption':!![]})['option']('description',{'type':_0x587a7a[_0x13c7a8(0x28e)],'alias':'d','description':_0x587a7a['XQmPZ']})['option'](_0x13c7a8(0x1fa),{'type':'array','alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x13c7a8(0x2d5),{'type':_0x587a7a['ncqjh'],'hidden':!![]});},async _0x57d60a=>{const _0x21a429=_0x34ba41;_0x587a7a[_0x21a429(0x23c)](warnRenamed,_0x587a7a['gzQRE'],_0x21a429(0x22b)),_0x587a7a[_0x21a429(0x260)](warnFlagRenamed,_0x587a7a['wshlK'],'--checklist',_0x587a7a['hUksZ']);const _0x1d7284=_0x57d60a['scenario']||_0x57d60a['checklist'];await withTelemetry(_0x587a7a['Ibotz'],()=>featureCreate(_0x57d60a[_0x21a429(0x277)],{'description':_0x57d60a[_0x21a429(0x1da)],'scenarios':_0x1d7284}));})[_0x34ba41(0x219)](_0x587a7a['hUepN'],![],_0x148cb0=>{const _0x2c1942=_0x34ba41;return _0x148cb0['option']('current-branch',{'type':_0x587a7a[_0x2c1942(0x2b5)],'description':_0x587a7a[_0x2c1942(0x283)]})[_0x2c1942(0x2c3)](_0x2c1942(0x2a6),{'type':_0x587a7a['JISyz'],'alias':'l','description':_0x587a7a['FGTvw'],'default':0xa})['option']('offset',{'type':_0x587a7a[_0x2c1942(0x256)],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option']('include-deleted',{'type':_0x587a7a[_0x2c1942(0x2b5)],'alias':'d','description':_0x587a7a['pZenK'],'default':![]});},async _0x21cff4=>{const _0xd8ba2c=_0x34ba41;warnRenamed('ranger\x20feature\x20list',_0x587a7a[_0xd8ba2c(0x1db)]),await withTelemetry('feature\x20list',()=>featureList({'currentBranch':_0x21cff4[_0xd8ba2c(0x273)],'limit':_0x21cff4['limit'],'offset':_0x21cff4['offset'],'includeDeleted':_0x21cff4[_0xd8ba2c(0x280)]}));})['command'](_0x34ba41(0x214),![],_0x39bfd5=>{const _0x43424f=_0x34ba41;return _0x39bfd5[_0x43424f(0x2e3)]('id',{'type':_0x587a7a['HTmQH'],'description':_0x587a7a['lhClx']});},async _0x5ba44c=>{const _0x3748e4=_0x34ba41;warnRenamed(_0x587a7a[_0x3748e4(0x1f5)],_0x587a7a['oOoQp']),await withTelemetry(_0x587a7a[_0x3748e4(0x272)],()=>featureShow(_0x5ba44c['id']));})[_0x34ba41(0x219)]('resume\x20[id]',![],_0x85a0e7=>{const _0x40fdff=_0x34ba41;return _0x85a0e7[_0x40fdff(0x2e3)]('id',{'type':_0x587a7a['HTmQH'],'description':_0x587a7a['dYjHP']});},async _0x573a11=>{const _0x4761e7=_0x34ba41;_0x587a7a[_0x4761e7(0x23c)](warnRenamed,_0x587a7a[_0x4761e7(0x26c)],_0x587a7a['PMBxZ']),await withTelemetry(_0x4761e7(0x2b3),()=>featureResume(_0x573a11['id']));})[_0x34ba41(0x219)]('add-checklist-item\x20<description>',![],_0xbde5af=>{const _0x291d16=_0x34ba41;return _0xbde5af[_0x291d16(0x2e3)](_0x587a7a['GWaIB'],{'type':_0x587a7a['HTmQH'],'description':'Scenario\x20description','demandOption':!![]})[_0x291d16(0x2c3)]('id',{'type':_0x291d16(0x2be),'description':_0x587a7a['KbGwp']});},async _0x5b0ad2=>{const _0x4e7abe=_0x34ba41;_0x587a7a['EJGdY'](warnRenamed,_0x587a7a[_0x4e7abe(0x252)],_0x587a7a['oMxzb']),await _0x587a7a[_0x4e7abe(0x23c)](withTelemetry,_0x587a7a[_0x4e7abe(0x26e)],()=>featureAddScenario(_0x5b0ad2['description'],_0x5b0ad2['id']));})[_0x34ba41(0x219)](_0x34ba41(0x21c),![],_0x13026d=>{const _0x3c0854=_0x34ba41;return _0x13026d[_0x3c0854(0x2e3)]('id',{'type':_0x3c0854(0x2be),'description':_0x3c0854(0x1ef)});},async _0x54113e=>{const _0x18af13=_0x34ba41;warnRenamed(_0x587a7a[_0x18af13(0x28c)],_0x587a7a[_0x18af13(0x23d)]),await _0x587a7a[_0x18af13(0x23c)](withTelemetry,_0x18af13(0x21b),()=>featureGetReview(_0x54113e['id']));})['command']('delete\x20[id]',![],_0x545c46=>{return _0x545c46['positional']('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0xb74796=>{const _0x5f1103=_0x34ba41;_0x587a7a['EJGdY'](warnRenamed,_0x587a7a[_0x5f1103(0x2fc)],_0x5f1103(0x1cd)),await _0x587a7a[_0x5f1103(0x23c)](withTelemetry,_0x587a7a['pzflH'],()=>featureDelete(_0xb74796['id']));})[_0x34ba41(0x219)](_0x34ba41(0x225),![],_0x5d09bb=>{const _0x372371=_0x34ba41;return _0x5d09bb['positional']('id',{'type':_0x587a7a[_0x372371(0x28e)],'description':_0x587a7a[_0x372371(0x1b8)],'demandOption':!![]});},async _0x18cec7=>{const _0x9fbb0b=_0x34ba41;warnRenamed(_0x587a7a[_0x9fbb0b(0x22a)],'ranger\x20restore'),await _0x587a7a[_0x9fbb0b(0x295)](withTelemetry,_0x587a7a[_0x9fbb0b(0x2a7)],()=>featureRestore(_0x18cec7['id']));})[_0x34ba41(0x240)](0x1,_0x587a7a['OJMGk']);})['command'](_0x3454eb(0x2b9),![],_0x23dd6e=>{const _0x3ec994=_0x3454eb,_0x824140={'kfzEG':'session-id','Pfqwu':_0x3ec994(0x213),'PBAGy':_0x3ec994(0x2fa),'yYQxx':_0x3ec994(0x2de),'hDZvY':_0x3ec994(0x2a1),'OJauZ':'string','VVoka':_0x3ec994(0x1cb)};return _0x23dd6e['command'](_0x824140[_0x3ec994(0x1ae)],_0x824140[_0x3ec994(0x2f4)],_0x45b0ae=>{const _0x2b5cc4=_0x3ec994;return _0x45b0ae['option'](_0x824140['kfzEG'],{'type':_0x2b5cc4(0x2be),'description':_0x2b5cc4(0x1a8)});},async _0x3a7da0=>{const _0x2a2557=_0x3ec994;await withTelemetry(_0x824140['Pfqwu'],()=>hook(_0x2a2557(0x2fa),_0x3a7da0['session-id']));})['command']('disable',_0x824140['hDZvY'],_0x220ef3=>{const _0x2dbdd9=_0x3ec994;return _0x220ef3[_0x2dbdd9(0x2c3)](_0x824140['kfzEG'],{'type':_0x2dbdd9(0x2be),'description':_0x2dbdd9(0x1a8)});},async _0x593361=>{const _0xa9273e=_0x3ec994;await withTelemetry('hook:disable',()=>hook(_0xa9273e(0x257),_0x593361['session-id']));})[_0x3ec994(0x2c3)](_0x3ec994(0x277),{'type':_0x824140['OJauZ'],'description':_0x824140[_0x3ec994(0x248)]})['option'](_0x824140['kfzEG'],{'type':_0x824140['OJauZ'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x566fdb=>{const _0x477675=_0x3454eb,_0x348c7c={'kWYRF':function(_0x30081a,_0x5739bb,_0x3cc17f){return _0x30081a(_0x5739bb,_0x3cc17f);}};_0x566fdb[_0x477675(0x277)]&&await _0x348c7c['kWYRF'](hook,_0x566fdb[_0x477675(0x277)],_0x566fdb['session-id']);})['demandCommand'](0x1,_0x3454eb(0x276))['strictCommands']()[_0x3454eb(0x23f)](async(_0x309a1a,_0x292006,_0x9bd732)=>{const _0x573a53=_0x3454eb,_0x7a768d={'DEFvd':function(_0x2e8644,_0x17fc95){return _0x2e8644(_0x17fc95);},'BEqlA':function(_0x56fc73){return _0x56fc73();},'tOElZ':'Unknown\x20error'},_0x226545=_0x7a768d['DEFvd'](sanitizeArgs,process['argv'][_0x573a53(0x1a7)](0x2)),_0x3810eb=getErrorType(_0x309a1a,_0x292006);if(_0x309a1a&&_0x309a1a['includes']('Unknown\x20command')){const _0x181ba4=process['argv'][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x181ba4),console[_0x573a53(0x1d6)](_0x573a53(0x25c));}else{if(_0x309a1a)console[_0x573a53(0x1d6)]('\x0a'+_0x309a1a+'\x0a');else _0x292006&&console[_0x573a53(0x1d6)]('\x0aError:\x20'+_0x292006['message']+'\x0a');}await logDesirePath({'rawCommand':_0x226545,'errorMessage':_0x309a1a||_0x292006?.[_0x573a53(0x1e4)],'errorType':_0x3810eb});const _0x31383f=_0x7a768d[_0x573a53(0x2ac)](getCurrentCollector);_0x31383f&&await _0x31383f['trackCommandError'](_0x292006||new Error(_0x309a1a||_0x7a768d[_0x573a53(0x27d)])),process['exit'](0x1);})['epilogue']('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()[_0x3454eb(0x21f)]('help','h')[_0x3454eb(0x2e4)]();
|
|
2
|
+
const _0x50ce2f=_0x7f55;(function(_0x1a4c99,_0x31765b){const _0x4e8e90=_0x7f55,_0x2cc611=_0x1a4c99();while(!![]){try{const _0x55dd46=parseInt(_0x4e8e90(0x16c))/0x1+parseInt(_0x4e8e90(0x1fa))/0x2*(parseInt(_0x4e8e90(0x1fe))/0x3)+-parseInt(_0x4e8e90(0x1ab))/0x4+-parseInt(_0x4e8e90(0x2b4))/0x5+-parseInt(_0x4e8e90(0x2b2))/0x6+parseInt(_0x4e8e90(0x2a5))/0x7+parseInt(_0x4e8e90(0x22c))/0x8;if(_0x55dd46===_0x31765b)break;else _0x2cc611['push'](_0x2cc611['shift']());}catch(_0x3e61a7){_0x2cc611['push'](_0x2cc611['shift']());}}}(_0x4349,0x9840b));import _0x19f3ed from'dotenv';function _0x7f55(_0x13376f,_0x4aadf4){_0x13376f=_0x13376f-0x160;const _0x434953=_0x4349();let _0x7f5571=_0x434953[_0x13376f];return _0x7f5571;}import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x4cf065=_0x7f55,_0x56fdab={'LaIAY':function(_0x1e109d,_0xdabcc5){return _0x1e109d(_0xdabcc5);},'TZrSV':function(_0x1d8699,_0x44bc0d){return _0x1d8699!==_0x44bc0d;},'uzVOq':function(_0x44bb6e,_0x2e84c6){return _0x44bb6e(_0x2e84c6);},'roVlr':function(_0x23855f,_0x3a9932,_0x5a3b1c){return _0x23855f(_0x3a9932,_0x5a3b1c);},'QuPqO':function(_0x3323d9,_0x134465){return _0x3323d9(_0x134465);}};let _0x861324=process['cwd']();const _0x2f3eca=_0x56fdab[_0x4cf065(0x25b)](parse,_0x861324)[_0x4cf065(0x239)];while(_0x56fdab['TZrSV'](_0x861324,_0x2f3eca)){if(_0x56fdab[_0x4cf065(0x259)](existsSync,_0x56fdab[_0x4cf065(0x289)](join,_0x861324,_0x4cf065(0x230)))||_0x56fdab[_0x4cf065(0x259)](existsSync,_0x56fdab[_0x4cf065(0x289)](join,_0x861324,_0x4cf065(0x23a))))return _0x861324;_0x861324=_0x56fdab['QuPqO'](dirname,_0x861324);}return process[_0x4cf065(0x2c6)]();}_0x19f3ed[_0x50ce2f(0x1e4)]({'path':join(findProjectRoot(),_0x50ce2f(0x23a))});import _0x579c86 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{getToken}from'./commands/utils/keychain.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{isByokEnabled}from'./commands/utils/environment.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 _0x4f7f99=>{const _0x4ac442=_0x50ce2f,_0xd6bd3f=getCurrentCollector();_0xd6bd3f&&await _0xd6bd3f['trackCommandError'](_0x4f7f99),process[_0x4ac442(0x2b1)]=0x1;});function _0x4349(){const _0x26ec46=['\x20VERIFIED','get-feedback\x20[id]','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','aSURI','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','UdVTV','Ghdhd','RvTNa','ranger\x20feature\x20get-feedback','Config\x20value','unset\x20<profile>\x20<key>','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','allow-insecure-localhost','roVlr','\x20BLOCKED','bXznW','mMTxE','LmpEe','ranger\x20profile\x20add','BWzOa','UpFcq','claude','bzRzv','exclude-scenario','QPEvr','Number\x20of\x20feature\x20reviews\x20to\x20skip','BQleh','delete\x20[id]','No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.','svXwp','slice','value','scenario','MkMWm','zJFbq','BMOpz','FTLAQ','QqgEy','KpnKI','log','UmjHr','3357060QBIyPr','QchNI','ixqCl','UbkKs','NhrES','edit-scenario','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','EyLlm','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','toYZw','UQfcr','exitCode','1394178aOBbwG','NRpqP','4356715hQkMhf','Config\x20key\x20to\x20remove','vsZjh','trackCommandError','map','gmsiP','include-deleted','config\x20get','dCjAI','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','bNnvb','hook:disable','Name\x20of\x20the\x20environment\x20to\x20update','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','profile-name','Scenario\x20index\x20(1-based)','\x20FAILED','blocked','cwd','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','config\x20set','ranger\x20verify-feature','user','QCEGa','add-scenario\x20<description>','Evaluation:\x20','Update\x20authentication\x20for\x20an\x20existing\x20profile','cqajM','QgsHA','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','ranger\x20add-scenario','hook:enable','demandCommand','yOQPs','jJUBJ','strictCommands','517601hJrCtN','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','xVPMo','update','boolean','kwHme','ranger\x20create','ranger\x20start','Get\x20a\x20config\x20value','feature','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','profile','incomplete','array','issues','FfVOq','limit','Feature\x20review\x20ID','feature\x20list','login','number','qHFQm','.\x20[','Install\x20skills\x20for\x20OpenCode','feature\x20restore','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','anzCn','model','kMrgF','Profile\x20name','dgPxI','\x0aUnknown\x20command:\x20','hgwEL','add\x20env','ranger\x20get-review','DqjWa','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','IFbWG','config\x20list','Include\x20soft-deleted\x20feature\x20reviews','ranger\x20profile\x20encrypt-auth','IFJqU','url','AgBuU','ELgZJ','create','restore\x20<id>','token','Name\x20of\x20the\x20profile','fBiQV','alias','Scenario\x20description','--checklist','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.','yEcTm','start\x20[token]','json','get-review','GbIHR','jhMLr','checklist','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','rFeiw','2635672jjEJXT','xOMGs','You\x20must\x20specify\x20a\x20config\x20subcommand','HhFEU','DhBOX','gpaoO','verified','edit-scenario\x20<description>','MPIRM','skip-chromium','TVRNQ','wublo','WrpTN','TyzFA','MgCMg','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','description','PLznS','--profile','Jaqmj','cdp-endpoint','error','key','sdvjP','start','You\x20must\x20specify\x20a\x20profile\x20subcommand','WCYJx','force','iYwMa','auth','slJVE','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','list','UGHJQ','olGzO','headed','get\x20<env>\x20<key>','item','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','OUHgs','evaluation','name','report\x20[id]','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','Unknown\x20command','XwGCO','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','pimoX','set\x20<profile>\x20<key>\x20<value>','TWEMh','use\x20<profile-name>','qYiWt','QbIeH','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','Summary:\x20','Environment\x20name','config','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','GbhRk','Name\x20of\x20the\x20profile\x20to\x20update','current-branch','opencode','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','task','RdVeJ','badFq','use','help','ranger\x20profile\x20use','ranger\x20env\x20update','partial','--scenario','DSiWE','fiFJb','Config\x20key','foChW','env','start-path','847292qoJQxw','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','use\x20<env-name>','Name\x20of\x20the\x20environment','3ayWLRB','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','wBonN','SGkty','profile\x20encrypt-auth','offset','TjoeH','profile\x20update','Add\x20profile\x20configuration','encrypt\x20<profile>','resume','\x20INCOMPLETE','oxVFI','create\x20<name>','MyMqY','AUcCi','agrkX','lFIdu','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','XUiRu','delete','You\x20must\x20specify\x20a\x20command','ranger\x20go','debug-outcome','RHqTN','base-url','PsMWl','ZoGWR','eIcqz','CRZuv','parse','exit','ranger\x20config\x20unset','repeat','uCqiI','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','sfDpi','Manage\x20profile\x20configuration','Documentation:\x0a','project','ranger\x20feature\x20list','VoIQg','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','Feature\x20review\x20name','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','fail','7723392hzuYoc','Keson','Nuece','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','.ranger','ranger\x20list','session-id','Ranger\x20API\x20token','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','verify-feature','ranger\x20profile\x20config\x20set','profile\x20add','ZRMIn','root','.env','string','Skip\x20Chromium\x20browser\x20installation','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','EDhPT','PYGEa','message','ranger\x20config\x20get','sBvIc','bUoRc','JRuQz','Feature\x20review\x20description','usage','positional','You\x20must\x20specify\x20an\x20env\x20subcommand','hook','hTLyR','Fscoe','Feature\x20review\x20ID\x20to\x20restore','noISZ','option','WpeRP','pRZYT','zyufE','EeHFW','wrqhz','skip-auth','forEach','disable','scope','VnraU','uzVOq','EjgJp','LaIAY','argv','HIUMD','Manage\x20profiles','iWetA','cJlTY','kryZI','sEjHb','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','RMOXl','env-name','ranger\x20show','uMPGH','RavMp','update\x20<profile-name>','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','IdBtS','cVLsl','ixygX','debug-address-comments','command','Install\x20scope\x20for\x20skills','ranger','zVBvJ','restore','ranger\x20feature\x20resume','List\x20all\x20feature\x20reviews','skillup','PqwJD','list\x20<env>','feature\x20show','IFqCf','HZyjb'];_0x4349=function(){return _0x26ec46;};return _0x4349();}const rawArgs=process['argv'][_0x50ce2f(0x29a)](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='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='Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20header.X-Test-Mode)\x0a\x20\x20setupHeader.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeader.x-bypass-turnstile)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20setupHeader.x-bypass-turnstile\x20\x27a1b2c3d4...\x27';function warnRenamed(_0x4583ff,_0x4a4ced){const _0x13b826=_0x50ce2f;console[_0x13b826(0x1c0)]('\x0a'+_0x4583ff+'\x20is\x20now\x20'+_0x4a4ced+'\x0a');}function argUsed(_0xbe8414){return rawArgs['some'](_0x5268c6=>_0x5268c6===_0xbe8414||_0x5268c6['startsWith'](_0xbe8414+'='));}function warnFlagRenamed(_0x155bd7,_0x45acf3,_0x58509c){const _0x5b1244=_0x50ce2f,_0x4b0657={'zyufE':function(_0x4a12ee,_0x11c1d6,_0xc43399){return _0x4a12ee(_0x11c1d6,_0xc43399);}};argUsed(_0x45acf3)&&_0x4b0657[_0x5b1244(0x251)](warnRenamed,_0x155bd7+'\x20'+_0x45acf3,_0x155bd7+'\x20'+_0x58509c);}async function runGoCommand(_0x474a8d,_0xc8e91f=![]){const _0x592707=_0x50ce2f,_0xc2681b={'DSiWE':function(_0x162b49,_0x9ee078){return _0x162b49+_0x9ee078;},'zPiSC':_0x592707(0x2c9),'IFJqU':function(_0x316882,_0x4d27db,_0x517f86,_0x14f551){return _0x316882(_0x4d27db,_0x517f86,_0x14f551);},'VnraU':_0x592707(0x214),'cVLsl':'--item','GJnED':function(_0x954e65){return _0x954e65();},'UQgeU':_0x592707(0x1f9),'TjoeH':'debug-address-comments','qHFQm':function(_0x380859,_0x2bb62e){return _0x380859===_0x2bb62e;},'GbhRk':_0x592707(0x27c),'uMPGH':_0x592707(0x209),'iYwMa':'\x20PARTIAL','cGUgp':_0x592707(0x2c4),'hgwEL':'verified'};_0xc8e91f&&warnRenamed(_0xc2681b['zPiSC'],'ranger\x20go');warnFlagRenamed(_0x592707(0x214),'--env',_0x592707(0x1bd)),_0xc2681b[_0x592707(0x195)](warnFlagRenamed,'ranger\x20go','--task','--notes'),_0xc2681b[_0x592707(0x195)](warnFlagRenamed,_0xc2681b[_0x592707(0x258)],_0xc2681b[_0x592707(0x26c)],_0x592707(0x1f3));const _0x94a2cc=await _0xc2681b['GJnED'](loadRangerConfig),_0x53686c=isByokEnabled(),_0x1cf756=_0x474a8d['model'],_0x1bef77=_0x94a2cc['model'],_0x315ff0=await verifyFeature({'featureId':_0x474a8d['feature'],'profile':_0x474a8d['profile']??_0x474a8d['env'],'notes':_0x474a8d['notes']??_0x474a8d[_0x592707(0x1eb)],'scenario':_0x474a8d['scenario']??_0x474a8d[_0x592707(0x1d1)],'startPath':_0x474a8d[_0xc2681b['UQgeU']],'debugOutcome':_0x474a8d[_0x592707(0x215)],'debugAddressComments':_0x474a8d[_0xc2681b[_0x592707(0x204)]],'headed':_0x474a8d[_0x592707(0x1cf)],'byokEnabled':_0x53686c,'flagVerifyModel':_0x1cf756,'configVerifyModel':_0x1bef77});console['log']('\x0a'+'='[_0x592707(0x21f)](0x3c)),console['log'](_0xc2681b['qHFQm'](_0x315ff0[_0x592707(0x1d4)],_0x592707(0x1b1))?_0xc2681b[_0x592707(0x1e6)]:_0x315ff0['evaluation']===_0x592707(0x178)?_0xc2681b[_0x592707(0x267)]:_0x315ff0[_0x592707(0x1d4)]==='partial'?_0xc2681b[_0x592707(0x1c7)]:_0xc2681b[_0x592707(0x181)](_0x315ff0['evaluation'],'blocked')?_0x592707(0x28a):_0xc2681b['cGUgp']),console['log']('='['repeat'](0x3c)),console[_0x592707(0x2a3)](_0x592707(0x1e2)+_0x315ff0['summary']),console['log'](_0x592707(0x161)+_0x315ff0[_0x592707(0x1d4)]),console['log']('Reason:\x20'+_0x315ff0['evaluationReason']),_0x315ff0[_0x592707(0x17a)]?.['length']&&(console['log']('\x0aIssues:'),_0x315ff0[_0x592707(0x17a)][_0x592707(0x255)]((_0x39e123,_0x15dea6)=>{const _0x11471c=_0x592707;console['log']('\x0a'+_0xc2681b[_0x11471c(0x1f4)](_0x15dea6,0x1)+_0x11471c(0x182)+_0x39e123['severity']+']\x20'+_0x39e123[_0x11471c(0x1bb)]);})),process[_0x592707(0x21d)](_0x315ff0[_0x592707(0x1d4)]===_0xc2681b[_0x592707(0x18c)]?0x0:0x1);}_0x579c86(process['argv']['slice'](0x2))['scriptName'](_0x50ce2f(0x271))[_0x50ce2f(0x246)](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0x50ce2f(0x26f)](_0x50ce2f(0x20b),'Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x20c1c4=>{const _0x39b2de=_0x50ce2f,_0x48ce08={'gYaMj':'name','qGHqr':'string','IFbWG':'Feature\x20review\x20name','OUHgs':_0x39b2de(0x1bb),'HmlIv':'scenario','cqajM':_0x39b2de(0x179)};return _0x20c1c4[_0x39b2de(0x247)](_0x48ce08['gYaMj'],{'type':_0x48ce08['qGHqr'],'description':_0x48ce08[_0x39b2de(0x191)],'demandOption':!![]})[_0x39b2de(0x24e)](_0x48ce08[_0x39b2de(0x1d3)],{'type':'string','alias':'d','description':'Feature\x20review\x20description'})['option'](_0x48ce08['HmlIv'],{'type':_0x48ce08[_0x39b2de(0x163)],'alias':'c','description':_0x39b2de(0x1d7)})[_0x39b2de(0x24e)](_0x39b2de(0x1a8),{'type':_0x48ce08['cqajM'],'hidden':!![]});},async _0x114e47=>{const _0x4cbc5c=_0x50ce2f,_0xb6f158={'PHehu':function(_0x23e765,_0xb24401,_0x51eb19,_0x29d14e){return _0x23e765(_0xb24401,_0x51eb19,_0x29d14e);},'mOyfq':_0x4cbc5c(0x1a0),'dgPxI':_0x4cbc5c(0x1f3)};_0xb6f158['PHehu'](warnFlagRenamed,'ranger\x20create',_0xb6f158['mOyfq'],_0xb6f158[_0x4cbc5c(0x18a)]);const _0x51dfbf=_0x114e47[_0x4cbc5c(0x29c)]||_0x114e47[_0x4cbc5c(0x1a8)];await withTelemetry(_0x4cbc5c(0x199),()=>featureCreate(_0x114e47['name'],{'description':_0x114e47['description'],'scenarios':_0x51dfbf}));})['command'](_0x50ce2f(0x1cc),_0x50ce2f(0x275),_0x36bf18=>{const _0x3630f7=_0x50ce2f,_0x49bbd0={'bXznW':_0x3630f7(0x1e8),'SDAty':_0x3630f7(0x280),'wmVGZ':'limit','OQVHV':'number','gNFWA':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','DhBOX':'offset','wqnLQ':_0x3630f7(0x193)};return _0x36bf18[_0x3630f7(0x24e)](_0x49bbd0[_0x3630f7(0x28b)],{'type':'boolean','description':_0x49bbd0['SDAty']})['option'](_0x49bbd0['wmVGZ'],{'type':_0x49bbd0['OQVHV'],'alias':'l','description':_0x49bbd0['gNFWA'],'default':0xa})[_0x3630f7(0x24e)](_0x49bbd0[_0x3630f7(0x1af)],{'type':_0x3630f7(0x180),'alias':'o','description':_0x3630f7(0x295),'default':0x0})[_0x3630f7(0x24e)](_0x3630f7(0x2ba),{'type':_0x3630f7(0x170),'alias':'d','description':_0x49bbd0['wqnLQ'],'default':![]});},async _0x47d0cf=>{const _0xb6046d=_0x50ce2f;await withTelemetry(_0xb6046d(0x1cc),()=>featureList({'currentBranch':_0x47d0cf['current-branch'],'limit':_0x47d0cf[_0xb6046d(0x17c)],'offset':_0x47d0cf[_0xb6046d(0x203)],'includeDeleted':_0x47d0cf['include-deleted']}));})['command']('show\x20[id]',_0x50ce2f(0x185),_0x5358ee=>{const _0x570765=_0x50ce2f,_0x4eca12={'WCYJx':_0x570765(0x23b)};return _0x5358ee[_0x570765(0x247)]('id',{'type':_0x4eca12[_0x570765(0x1c5)],'description':_0x570765(0x17d)});},async _0x227335=>{const _0x55e0f0=_0x50ce2f,_0x13ff70={'svXwp':'show'};await withTelemetry(_0x13ff70[_0x55e0f0(0x299)],()=>featureShow(_0x227335['id']));})[_0x50ce2f(0x26f)]('resume\x20[id]',_0x50ce2f(0x234),_0x148452=>{const _0x2caf1b={'SFvCZ':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'};return _0x148452['positional']('id',{'type':'string','description':_0x2caf1b['SFvCZ']});},async _0x2e707a=>{const _0x43249c=_0x50ce2f,_0x4555c3={'jcvEy':_0x43249c(0x208)};await withTelemetry(_0x4555c3['jcvEy'],()=>featureResume(_0x2e707a['id']));})[_0x50ce2f(0x26f)](_0x50ce2f(0x160),_0x50ce2f(0x1ea),_0x58293c=>{const _0x479568=_0x50ce2f,_0x5a3ed7={'PsMWl':'description','TWEMh':'string','EeHFW':_0x479568(0x19f),'XPwZr':_0x479568(0x1e1)};return _0x58293c['positional'](_0x5a3ed7[_0x479568(0x218)],{'type':_0x5a3ed7[_0x479568(0x1dd)],'description':_0x5a3ed7[_0x479568(0x252)],'demandOption':!![]})[_0x479568(0x24e)]('id',{'type':'string','description':_0x5a3ed7['XPwZr']});},async _0x2bcde6=>{const _0x159017={'njppN':function(_0x22f3fa,_0x22b6f7,_0x499f82){return _0x22f3fa(_0x22b6f7,_0x499f82);},'vIuBp':'add-scenario'};await _0x159017['njppN'](withTelemetry,_0x159017['vIuBp'],()=>featureAddScenario(_0x2bcde6['description'],_0x2bcde6['id']));})[_0x50ce2f(0x26f)](_0x50ce2f(0x1b2),'Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x3a269f=>{const _0x2535b5=_0x50ce2f,_0x34f2b7={'AcbNf':'New\x20scenario\x20description','tAxmP':_0x2535b5(0x29c),'fgQXo':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x3a269f['positional']('description',{'type':_0x2535b5(0x23b),'description':_0x34f2b7['AcbNf'],'demandOption':!![]})['option'](_0x34f2b7['tAxmP'],{'type':_0x2535b5(0x180),'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})['option']('id',{'type':'string','description':_0x34f2b7['fgQXo']});},async _0x4ec9d0=>{const _0x414fee=_0x50ce2f,_0x31c15f={'vopxT':function(_0x1e65ab,_0x13cb88,_0x5d43d6){return _0x1e65ab(_0x13cb88,_0x5d43d6);}};await _0x31c15f['vopxT'](withTelemetry,_0x414fee(0x2aa),()=>featureEditScenario(_0x4ec9d0['description'],{'id':_0x4ec9d0['id'],'scenario':_0x4ec9d0['scenario']}));})['command'](_0x50ce2f(0x1d6),'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x2b5287=>{const _0x30e988=_0x50ce2f,_0x3a8197={'ixygX':_0x30e988(0x293),'OgbAn':_0x30e988(0x179),'EyLlm':_0x30e988(0x1ca),'DCfmS':_0x30e988(0x1a4),'xCKfa':_0x30e988(0x170),'mefaN':_0x30e988(0x263)};return _0x2b5287[_0x30e988(0x247)]('id',{'type':'string','description':_0x30e988(0x17d)})['option'](_0x3a8197[_0x30e988(0x26d)],{'type':_0x3a8197['OgbAn'],'description':_0x3a8197[_0x30e988(0x2ac)]})[_0x30e988(0x24e)](_0x3a8197['DCfmS'],{'type':_0x3a8197['xCKfa'],'description':_0x3a8197['mefaN'],'default':![]});},async _0x5cddd9=>{const _0x577353=_0x50ce2f,_0x2cd519={'zJFbq':'report'},_0x4776b4=_0x5cddd9[_0x577353(0x293)],_0x50ec5d=_0x4776b4?_0x4776b4[_0x577353(0x2b8)](_0x42a2c6=>Number(_0x42a2c6)):undefined;await withTelemetry(_0x2cd519[_0x577353(0x29e)],()=>featureReportPrDescription(_0x5cddd9['id'],{'excludeScenarios':_0x50ec5d,'json':_0x5cddd9['json']}));})['command']('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x395924=>{const _0x9739e5=_0x50ce2f,_0x4f8954={'qYiWt':'string','WrpTN':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x395924['positional']('id',{'type':_0x4f8954[_0x9739e5(0x1df)],'description':_0x4f8954[_0x9739e5(0x1b7)]});},async _0x4f00b7=>{const _0x208bca=_0x50ce2f,_0x54eb2d={'fBiQV':function(_0x28e5ba,_0x42a3e8,_0x4d1573){return _0x28e5ba(_0x42a3e8,_0x4d1573);}};await _0x54eb2d[_0x208bca(0x19d)](withTelemetry,_0x208bca(0x1a5),()=>featureGetReview(_0x4f00b7['id']));})[_0x50ce2f(0x26f)]('delete\x20[id]',_0x50ce2f(0x2bd),_0x1f667f=>{const _0x4d3144=_0x50ce2f,_0x1fb12c={'uqEWj':'string'};return _0x1f667f[_0x4d3144(0x247)]('id',{'type':_0x1fb12c['uqEWj'],'description':'Feature\x20review\x20ID'});},async _0xf06cc8=>{const _0x807852=_0x50ce2f;await withTelemetry(_0x807852(0x212),()=>featureDelete(_0xf06cc8['id']));})[_0x50ce2f(0x26f)](_0x50ce2f(0x19a),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x2b268e=>{const _0x269063=_0x50ce2f,_0x122f8d={'ndHVL':_0x269063(0x24c)};return _0x2b268e[_0x269063(0x247)]('id',{'type':'string','description':_0x122f8d['ndHVL'],'demandOption':!![]});},async _0x3cdf6c=>{const _0x192589=_0x50ce2f,_0x42de03={'Keson':_0x192589(0x273)};await withTelemetry(_0x42de03[_0x192589(0x22d)],()=>featureRestore(_0x3cdf6c['id']));})['command']('setup\x20[token]','Initialize\x20Ranger\x20in\x20your\x20project',_0x40f7c5=>{const _0x168589=_0x50ce2f,_0xe1c082={'AKocN':'token','kwHme':'string','uYfuC':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','bzRzv':_0x168589(0x1b4),'FfVOq':_0x168589(0x23d),'sEjHb':'scope','qFNAY':'user','YlEUJ':'project','XUiRu':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','GeLCs':'force','QbIeH':'boolean','ooSgU':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','sgvSs':'opencode','ksgQf':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','BQleh':_0x168589(0x22a)};return _0x40f7c5['positional'](_0xe1c082['AKocN'],{'type':_0xe1c082['kwHme'],'description':_0xe1c082['uYfuC']})['option'](_0xe1c082[_0x168589(0x292)],{'type':_0x168589(0x170),'description':_0xe1c082[_0x168589(0x17b)],'default':![]})[_0x168589(0x24e)](_0xe1c082[_0x168589(0x262)],{'type':'string','choices':[_0xe1c082['qFNAY'],_0xe1c082['YlEUJ']],'description':_0xe1c082[_0x168589(0x211)]})[_0x168589(0x24e)]('url',{'type':_0xe1c082[_0x168589(0x171)],'description':_0x168589(0x165)})['option'](_0xe1c082['GeLCs'],{'type':_0xe1c082['QbIeH'],'description':_0xe1c082['ooSgU'],'default':![]})['option'](_0xe1c082['sgvSs'],{'type':'boolean','description':_0xe1c082['ksgQf'],'default':![]})[_0x168589(0x24e)]('allow-insecure-localhost',{'type':_0xe1c082[_0x168589(0x1e0)],'description':_0xe1c082[_0x168589(0x296)],'default':![]});},async _0xf6635=>{const _0x4759de=_0x50ce2f,_0x4a64c3={'foChW':_0x4759de(0x1c3)};await withTelemetry(_0x4a64c3[_0x4759de(0x1f7)],_0x4b49b0=>start(_0xf6635[_0x4759de(0x19b)],{'skipChromium':_0xf6635[_0x4759de(0x1b4)],'scope':_0xf6635['scope'],'url':_0xf6635['url'],'force':_0xf6635['force'],'opencode':_0xf6635['opencode'],'allowInsecureLocalhost':_0xf6635[_0x4759de(0x288)]},_0x4b49b0));})[_0x50ce2f(0x26f)]('setup-ci\x20<token>','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x271439=>{const _0x1f4c62=_0x50ce2f,_0x39209b={'AgBuU':'token','RdVeJ':_0x1f4c62(0x233),'VCPdu':_0x1f4c62(0x23b),'cjSPj':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','tiKmy':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'};return _0x271439[_0x1f4c62(0x247)](_0x39209b[_0x1f4c62(0x197)],{'type':_0x1f4c62(0x23b),'description':_0x39209b[_0x1f4c62(0x1ec)],'demandOption':!![]})[_0x1f4c62(0x24e)]('profile',{'type':_0x39209b['VCPdu'],'description':_0x39209b['cjSPj']})['option'](_0x1f4c62(0x217),{'type':_0x1f4c62(0x23b),'description':_0x39209b['tiKmy']})[_0x1f4c62(0x24e)]('skip-chromium',{'type':'boolean','description':_0x1f4c62(0x23c),'default':![]});},async _0x30ed4b=>{const _0x5bbcff=_0x50ce2f,_0x5b9bd0={'XUUHc':function(_0x13f87e,_0x46c8a7,_0x42fe0d){return _0x13f87e(_0x46c8a7,_0x42fe0d);}};await _0x5b9bd0['XUUHc'](withTelemetry,'setup-ci',_0x1b951f=>setupCi(_0x30ed4b[_0x5bbcff(0x19b)],{'profile':_0x30ed4b[_0x5bbcff(0x177)],'baseUrl':_0x30ed4b['base-url'],'skipChromium':_0x30ed4b[_0x5bbcff(0x1b4)]},_0x1b951f));})[_0x50ce2f(0x26f)]('login',_0x50ce2f(0x1d2),()=>{},async()=>{const _0x2eb37c=_0x50ce2f,_0x5c6c3d={'HIUMD':function(_0x4ab306,_0xe61486,_0x1f7bca){return _0x4ab306(_0xe61486,_0x1f7bca);},'PaFLK':_0x2eb37c(0x17f)};await _0x5c6c3d[_0x2eb37c(0x25d)](withTelemetry,_0x5c6c3d['PaFLK'],()=>login());})['command']('skillup','Install\x20Ranger\x20skills',_0x4dd69f=>{const _0x365b30=_0x50ce2f,_0x3cc674={'UogSB':_0x365b30(0x183),'hTawb':_0x365b30(0x23b),'KpnKI':'user','agrkX':_0x365b30(0x225),'EjgJp':_0x365b30(0x270)};return _0x4dd69f['option'](_0x365b30(0x1e9),{'type':'boolean','description':_0x3cc674['UogSB'],'default':![]})[_0x365b30(0x24e)]('scope',{'type':_0x3cc674['hTawb'],'choices':[_0x3cc674[_0x365b30(0x2a2)],_0x3cc674[_0x365b30(0x20e)]],'description':_0x3cc674[_0x365b30(0x25a)]});},async _0x145b0e=>{const _0x444395=_0x50ce2f,_0x3ae5a5={'qIhhg':function(_0x4e7b3a,_0x38829b,_0x1de638){return _0x4e7b3a(_0x38829b,_0x1de638);}},_0x28c76f=Boolean(_0x145b0e['opencode']);await _0x3ae5a5['qIhhg'](withTelemetry,_0x444395(0x276),()=>skillup({'autoInstall':_0x145b0e['scope'],'platform':_0x28c76f?'opencode':_0x444395(0x291)}));})['command']('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x5c021e={'DREkW':function(_0xebfea8,_0x48b349,_0x47d88c){return _0xebfea8(_0x48b349,_0x47d88c);}};await _0x5c021e['DREkW'](withTelemetry,'clean',()=>clean());})[_0x50ce2f(0x26f)]('profile',_0x50ce2f(0x25e),_0x488948=>{const _0x462644=_0x50ce2f,_0x3f4dca={'Fscoe':_0x462644(0x2c2),'wBonN':'string','kMrgF':_0x462644(0x1e5),'wublo':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','IdBtS':'skip-auth','WztoH':'force','BWzOa':_0x462644(0x170),'XCLcJ':'cdp-endpoint','fiFJb':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','qHDYL':_0x462644(0x288),'PLznS':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','EDhPT':'setup-header','pgvmo':function(_0x523976,_0x1feb84,_0x110505,_0x49d6e9){return _0x523976(_0x1feb84,_0x110505,_0x49d6e9);},'GbIHR':_0x462644(0x237),'RHqTN':function(_0x20c784,_0x4f5d34){return _0x20c784(_0x4f5d34);},'ajprh':_0x462644(0x19c),'XwGCO':function(_0x42eb8e,_0x309b48,_0x18c4fc){return _0x42eb8e(_0x309b48,_0x18c4fc);},'uCqiI':'Profile\x20name','PqwJD':function(_0x52b88d,_0x5e09f4,_0x224c9a){return _0x52b88d(_0x5e09f4,_0x224c9a);},'OOlQO':'profile\x20ls','xOMGs':_0x462644(0x205),'jJUBJ':'profile\x20config\x20get','itbmE':function(_0x540933,_0x3c8f87,_0xfd807f){return _0x540933(_0x3c8f87,_0xfd807f);},'sJPab':'profile\x20config\x20list','mMTxE':'profile','QgsHA':'profile\x20config\x20unset','sjChl':'key','ZSqVv':_0x462644(0x285),'tJKzJ':'get\x20<profile>\x20<key>','AxMXP':_0x462644(0x174),'rilIN':'list\x20<profile>','oxVFI':_0x462644(0x1a9),'HngLu':'add\x20<profile-name>','RFovY':_0x462644(0x206),'FTLAQ':'encrypt-auth\x20<profile>','DWFIZ':'List\x20all\x20profiles','oJNiI':_0x462644(0x1c4)};return _0x488948[_0x462644(0x246)](PROFILE_HELP)[_0x462644(0x26f)](_0x3f4dca['HngLu'],_0x3f4dca['RFovY'],_0x22034f=>{const _0x5f3c27=_0x462644;return _0x22034f[_0x5f3c27(0x247)](_0x3f4dca[_0x5f3c27(0x24b)],{'type':_0x3f4dca['wBonN'],'description':_0x3f4dca[_0x5f3c27(0x188)],'demandOption':!![]})['option']('ci',{'type':_0x5f3c27(0x170),'description':_0x3f4dca[_0x5f3c27(0x1b6)],'default':![]})[_0x5f3c27(0x24e)](_0x3f4dca[_0x5f3c27(0x26b)],{'type':_0x5f3c27(0x170),'description':_0x5f3c27(0x26a),'default':![]})[_0x5f3c27(0x24e)](_0x5f3c27(0x196),{'type':_0x3f4dca[_0x5f3c27(0x200)],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x3f4dca['WztoH'],{'type':_0x3f4dca[_0x5f3c27(0x28f)],'description':_0x5f3c27(0x1fb),'default':![]})['option'](_0x3f4dca['XCLcJ'],{'type':_0x5f3c27(0x23b),'description':_0x3f4dca[_0x5f3c27(0x1f5)]})[_0x5f3c27(0x24e)](_0x3f4dca['qHDYL'],{'type':_0x3f4dca['BWzOa'],'description':_0x3f4dca['PLznS'],'default':![]})['option']('safe-mode',{'type':_0x5f3c27(0x170),'description':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','default':![]})['option'](_0x3f4dca[_0x5f3c27(0x23e)],{'type':'string','array':!![],'description':_0x5f3c27(0x2ab)});},async _0x2495c4=>{const _0x1e4b57=_0x462644;await _0x3f4dca['pgvmo'](withTelemetry,_0x3f4dca[_0x1e4b57(0x1a6)],_0xd138f0=>addEnv(_0x2495c4['profile-name'],{'ci':_0x2495c4['ci'],'skipAuth':_0x2495c4['skip-auth'],'url':_0x2495c4[_0x1e4b57(0x196)],'force':_0x2495c4[_0x1e4b57(0x1c6)],'cdpEndpoint':_0x2495c4[_0x1e4b57(0x1bf)],'allowInsecureLocalhost':_0x2495c4['allow-insecure-localhost'],'safeMode':_0x2495c4['safe-mode'],'setupHeader':_0x2495c4['setup-header']},_0xd138f0),{'isElectron':_0x3f4dca[_0x1e4b57(0x216)](Boolean,_0x2495c4['cdp-endpoint'])});})['command'](_0x462644(0x1de),'Switch\x20to\x20using\x20a\x20specific\x20profile',_0xf5a042=>{const _0x3f50f2=_0x462644;return _0xf5a042[_0x3f50f2(0x247)](_0x3f50f2(0x2c2),{'type':_0x3f50f2(0x23b),'description':_0x3f4dca['ajprh'],'demandOption':!![]});},async _0x502b63=>{const _0x4f4fd2=_0x462644;await _0x3f4dca[_0x4f4fd2(0x1d9)](withTelemetry,'profile\x20use',()=>useEnv(_0x502b63[_0x4f4fd2(0x2c2)]));})['command'](_0x3f4dca[_0x462644(0x2a0)],_0x462644(0x2c7),_0x451baa=>{const _0xfedef8=_0x462644;return _0x451baa['positional'](_0xfedef8(0x177),{'type':_0x3f4dca['wBonN'],'description':_0x3f4dca['uCqiI'],'demandOption':!![]});},async _0x2a2d27=>{const _0x27d22c=_0x462644;await _0x3f4dca[_0x27d22c(0x277)](withTelemetry,_0x27d22c(0x202),()=>authEncrypt(_0x2a2d27['profile']));})[_0x462644(0x26f)]('ls',_0x3f4dca['DWFIZ'],()=>{},async()=>{await withTelemetry(_0x3f4dca['OOlQO'],()=>envList());})['command'](_0x462644(0x269),_0x462644(0x162),_0x163750=>{const _0x4bcd71=_0x462644;return _0x163750[_0x4bcd71(0x247)]('profile-name',{'type':_0x4bcd71(0x23b),'description':_0x4bcd71(0x1e7),'demandOption':!![]})['option'](_0x3f4dca['qHDYL'],{'type':'boolean','description':_0x3f4dca[_0x4bcd71(0x1bc)]});},async _0x109f2d=>{const _0x54bfff=_0x462644;await _0x3f4dca['XwGCO'](withTelemetry,_0x3f4dca[_0x54bfff(0x1ac)],_0x45d413=>updateEnv(_0x109f2d['profile-name'],_0x45d413,{'allowInsecureLocalhost':_0x109f2d[_0x54bfff(0x288)]}));})['command'](_0x462644(0x1e4),_0x462644(0x223),_0x3295da=>{const _0x434707=_0x462644,_0x2ceea2={'YcjKu':'profile','pimoX':_0x3f4dca[_0x434707(0x220)],'xVPMo':_0x3f4dca['sjChl'],'Ghdhd':_0x3f4dca[_0x434707(0x200)],'HNkDS':_0x3f4dca['ZSqVv'],'DqjWa':function(_0xc5629f,_0x2db88c,_0x66bc42){return _0xc5629f(_0x2db88c,_0x66bc42);},'ZRMIn':'profile\x20config\x20set'};return _0x3295da[_0x434707(0x246)](PROFILE_CONFIG_HELP)['command'](_0x434707(0x1dc),'Set\x20a\x20config\x20value',_0x3f43e8=>{const _0x45e408=_0x434707;return _0x3f43e8['positional'](_0x2ceea2['YcjKu'],{'type':_0x45e408(0x23b),'description':_0x2ceea2[_0x45e408(0x1db)],'demandOption':!![]})['positional'](_0x2ceea2[_0x45e408(0x16e)],{'type':_0x2ceea2[_0x45e408(0x282)],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x45e408(0x247)](_0x45e408(0x29b),{'type':_0x45e408(0x23b),'description':_0x2ceea2['HNkDS'],'demandOption':!![]});},async _0x5219f8=>{const _0x40164d=_0x434707;await _0x2ceea2[_0x40164d(0x18f)](withTelemetry,_0x2ceea2[_0x40164d(0x238)],()=>configSet(_0x5219f8[_0x40164d(0x177)],_0x5219f8[_0x40164d(0x1c1)],_0x5219f8[_0x40164d(0x29b)]));})[_0x434707(0x26f)](_0x3f4dca['tJKzJ'],_0x3f4dca['AxMXP'],_0x4dee3e=>{const _0x4c33b5=_0x434707;return _0x4dee3e['positional'](_0x4c33b5(0x177),{'type':'string','description':_0x3f4dca[_0x4c33b5(0x220)],'demandOption':!![]})['positional'](_0x4c33b5(0x1c1),{'type':_0x3f4dca['wBonN'],'description':_0x4c33b5(0x1f6),'demandOption':!![]});},async _0x2341f4=>{const _0x14d29d=_0x434707;await withTelemetry(_0x3f4dca[_0x14d29d(0x16a)],()=>configGet(_0x2341f4[_0x14d29d(0x177)],_0x2341f4[_0x14d29d(0x1c1)]));})['command'](_0x3f4dca['rilIN'],'List\x20all\x20config\x20for\x20a\x20profile',_0x123345=>{const _0x27e1db=_0x434707;return _0x123345[_0x27e1db(0x247)]('profile',{'type':'string','description':_0x27e1db(0x189),'demandOption':!![]});},async _0x53786b=>{const _0x50e808=_0x434707;await _0x3f4dca['itbmE'](withTelemetry,_0x3f4dca['sJPab'],()=>configList(_0x53786b[_0x50e808(0x177)]));})[_0x434707(0x26f)](_0x434707(0x286),'Remove\x20a\x20config\x20value',_0x30a64b=>{const _0x576345=_0x434707;return _0x30a64b[_0x576345(0x247)](_0x3f4dca[_0x576345(0x28c)],{'type':'string','description':_0x576345(0x189),'demandOption':!![]})['positional']('key',{'type':_0x3f4dca[_0x576345(0x200)],'description':_0x576345(0x2b5),'demandOption':!![]});},async _0x5a9263=>{const _0x1c5e07=_0x434707;await withTelemetry(_0x3f4dca[_0x1c5e07(0x164)],()=>configUnset(_0x5a9263['profile'],_0x5a9263['key']));})['demandCommand'](0x1,_0x3f4dca[_0x434707(0x20a)]);})['demandCommand'](0x1,_0x3f4dca['oJNiI']);})[_0x50ce2f(0x26f)]('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{await withTelemetry('status',()=>status());})['command'](_0x50ce2f(0x16f),_0x50ce2f(0x22f),()=>{},async()=>{const _0x2704fb=_0x50ce2f,_0xab5a0={'noISZ':function(_0x38974f,_0x5acd02,_0x1e9c9f){return _0x38974f(_0x5acd02,_0x1e9c9f);}};await _0xab5a0[_0x2704fb(0x24d)](withTelemetry,_0x2704fb(0x16f),()=>update());})[_0x50ce2f(0x26f)]('print-access-token','Print\x20the\x20current\x20CLI\x20access\x20token',()=>{},async()=>{const _0x76757c=_0x50ce2f,_0xc9d14b={'MPIRM':function(_0x5d4861){return _0x5d4861();},'UGqDF':function(_0x58a0d5,_0x56a8ca,_0x180999){return _0x58a0d5(_0x56a8ca,_0x180999);},'gpaoO':'print-access-token'};await _0xc9d14b['UGqDF'](withTelemetry,_0xc9d14b[_0x76757c(0x1b0)],async()=>{const _0x175015=_0x76757c,_0x2a5491=await _0xc9d14b[_0x175015(0x1b3)](getToken);if(!_0x2a5491)throw new Error(_0x175015(0x298));console[_0x175015(0x2a3)](_0x2a5491);});})[_0x50ce2f(0x26f)]('go',_0x50ce2f(0x190),_0x50a75f=>{const _0x175348=_0x50ce2f,_0x4247a4={'ucqYf':_0x175348(0x175),'AUcCi':_0x175348(0x23b),'ThyRO':'Optional\x20feature\x20ID','uwUAd':'notes','biOiX':_0x175348(0x2ad),'JRuQz':_0x175348(0x180),'AaikL':'Scenario\x20index\x20(1-based)','eMSTf':'start-path','RavMp':'model','LtSoU':_0x175348(0x1cf),'ELgZJ':_0x175348(0x170),'hTLyR':_0x175348(0x215),'KlvGB':'verified','OQSGr':_0x175348(0x2c5),'ImwSQ':_0x175348(0x26e)};return _0x50a75f['option'](_0x4247a4['ucqYf'],{'type':_0x4247a4[_0x175348(0x20d)],'description':_0x4247a4['ThyRO']})[_0x175348(0x24e)]('profile',{'type':_0x4247a4[_0x175348(0x20d)],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})['option'](_0x4247a4['uwUAd'],{'type':_0x4247a4['AUcCi'],'description':_0x4247a4['biOiX']})['option'](_0x175348(0x29c),{'type':_0x4247a4[_0x175348(0x244)],'description':_0x4247a4['AaikL']})[_0x175348(0x24e)](_0x4247a4['eMSTf'],{'type':_0x4247a4['AUcCi'],'description':_0x175348(0x1ba)})[_0x175348(0x24e)](_0x4247a4[_0x175348(0x268)],{'type':_0x4247a4[_0x175348(0x20d)],'description':_0x175348(0x1a1)})['option'](_0x4247a4['LtSoU'],{'type':_0x4247a4[_0x175348(0x198)],'description':_0x175348(0x210),'default':![]})['option'](_0x4247a4[_0x175348(0x24a)],{'type':_0x4247a4[_0x175348(0x20d)],'hidden':!![],'choices':[_0x4247a4['KlvGB'],_0x175348(0x1f2),_0x4247a4['OQSGr'],'failed',_0x175348(0x178)]})['option'](_0x4247a4['ImwSQ'],{'type':_0x175348(0x170),'hidden':!![]})['option'](_0x175348(0x1f8),{'type':_0x4247a4['AUcCi'],'hidden':!![]})['option'](_0x175348(0x1eb),{'type':'string','hidden':!![]})[_0x175348(0x24e)](_0x175348(0x1d1),{'type':_0x175348(0x180),'hidden':!![]});},async _0x1217be=>{await runGoCommand(_0x1217be);})['command'](_0x50ce2f(0x1c8),![],_0x3dbf49=>{const _0x236b77=_0x50ce2f,_0x368f3b={'UKXHv':'profile','TVRNQ':_0x236b77(0x23b),'vsZjh':function(_0xf9264e,_0x40c006,_0x569069){return _0xf9264e(_0x40c006,_0x569069);},'WpeRP':_0x236b77(0x194),'KiQYc':function(_0x5ab419,_0xfa598b){return _0x5ab419(_0xfa598b);},'SGkty':_0x236b77(0x207)};return _0x3dbf49[_0x236b77(0x26f)](_0x368f3b[_0x236b77(0x201)],![],_0x2fd0cc=>{const _0x3e43d5=_0x236b77;return _0x2fd0cc[_0x3e43d5(0x247)](_0x368f3b['UKXHv'],{'type':_0x368f3b[_0x3e43d5(0x1b5)],'description':'Profile\x20name','demandOption':!![]});},async _0x2c39a3=>{const _0xabc549=_0x236b77;_0x368f3b[_0xabc549(0x2b6)](warnRenamed,'ranger\x20auth\x20encrypt',_0x368f3b[_0xabc549(0x24f)]),await _0x368f3b['KiQYc'](authEncrypt,_0x2c39a3['profile']);})['demandCommand'](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})[_0x50ce2f(0x26f)](_0x50ce2f(0x1a3),![],_0x3f43cc=>{const _0x52f6eb=_0x50ce2f,_0x3b0c66={'MgCMg':'string','iZtFS':_0x52f6eb(0x1b4),'gXSIZ':_0x52f6eb(0x170),'Ipogl':_0x52f6eb(0x257),'heUww':_0x52f6eb(0x2ca),'Jaqmj':'project','dCjAI':'url','NhrES':_0x52f6eb(0x165),'BWkbx':_0x52f6eb(0x1c6)};return _0x3f43cc['positional'](_0x52f6eb(0x19b),{'type':_0x3b0c66[_0x52f6eb(0x1b9)],'description':_0x52f6eb(0x1cb)})[_0x52f6eb(0x24e)](_0x3b0c66['iZtFS'],{'type':_0x3b0c66['gXSIZ'],'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})['option'](_0x3b0c66['Ipogl'],{'type':_0x3b0c66['MgCMg'],'choices':[_0x3b0c66['heUww'],_0x3b0c66[_0x52f6eb(0x1be)]],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x3b0c66[_0x52f6eb(0x2bc)],{'type':'string','description':_0x3b0c66[_0x52f6eb(0x2a9)]})[_0x52f6eb(0x24e)](_0x3b0c66['BWkbx'],{'type':_0x52f6eb(0x170),'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]});},async _0x2f0353=>{const _0xbd79eb=_0x50ce2f,_0x3199ea={'bNnvb':function(_0x4cdcb1,_0x432a5f,_0x266e76){return _0x4cdcb1(_0x432a5f,_0x266e76);},'CnypM':_0xbd79eb(0x173),'oiDTw':_0xbd79eb(0x1c3)};_0x3199ea[_0xbd79eb(0x2be)](warnRenamed,_0x3199ea['CnypM'],'ranger\x20setup'),await withTelemetry(_0x3199ea['oiDTw'],_0x51c580=>start(_0x2f0353[_0xbd79eb(0x19b)],{'skipChromium':_0x2f0353['skip-chromium'],'scope':_0x2f0353[_0xbd79eb(0x257)],'url':_0x2f0353[_0xbd79eb(0x196)],'force':_0x2f0353[_0xbd79eb(0x1c6)]},_0x51c580));})[_0x50ce2f(0x26f)](_0x50ce2f(0x235),![],_0x2ba6e0=>{const _0x36ecbd=_0x50ce2f,_0x1c799c={'MkMWm':'env','sfDpi':_0x36ecbd(0x23b),'CRZuv':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','vvXZg':'item','iWetA':_0x36ecbd(0x2c3),'UQfcr':_0x36ecbd(0x177),'pRZYT':'scenario','ibgVl':_0x36ecbd(0x1ba),'KFmSj':'debug-outcome','QqgEy':_0x36ecbd(0x178)};return _0x2ba6e0['option'](_0x1c799c[_0x36ecbd(0x29d)],{'type':_0x1c799c['sfDpi'],'description':_0x36ecbd(0x2ae)})['option']('task',{'type':'string','description':_0x1c799c[_0x36ecbd(0x21b)]})[_0x36ecbd(0x24e)](_0x1c799c['vvXZg'],{'type':'number','description':_0x1c799c[_0x36ecbd(0x25f)]})[_0x36ecbd(0x24e)](_0x1c799c[_0x36ecbd(0x2b0)],{'type':_0x36ecbd(0x23b),'hidden':!![]})['option']('notes',{'type':_0x36ecbd(0x23b),'hidden':!![]})['option'](_0x1c799c[_0x36ecbd(0x250)],{'type':'number','hidden':!![]})['option'](_0x36ecbd(0x1f9),{'type':_0x36ecbd(0x23b),'description':_0x1c799c['ibgVl']})['option'](_0x36ecbd(0x187),{'type':_0x1c799c[_0x36ecbd(0x222)],'hidden':!![]})['option']('headed',{'type':_0x36ecbd(0x170),'hidden':!![],'default':![]})[_0x36ecbd(0x24e)](_0x1c799c['KFmSj'],{'type':'string','hidden':!![],'choices':['verified','partial','blocked','failed',_0x1c799c[_0x36ecbd(0x2a1)]]});},async _0x1ace28=>{const _0x1f4ac4={'WJLUP':function(_0x295e46,_0xceb2e8,_0xcbbd73){return _0x295e46(_0xceb2e8,_0xcbbd73);}};await _0x1f4ac4['WJLUP'](runGoCommand,_0x1ace28,!![]);})[_0x50ce2f(0x26f)]('add\x20env\x20<env-name>',![],_0x352e40=>{const _0x32f96a=_0x50ce2f,_0x2c34c9={'jhMLr':_0x32f96a(0x2c1),'lnpmd':_0x32f96a(0x170),'UXXly':_0x32f96a(0x254)};return _0x352e40['positional'](_0x32f96a(0x265),{'type':'string','description':_0x2c34c9[_0x32f96a(0x1a7)],'demandOption':!![]})['option']('ci',{'type':_0x2c34c9['lnpmd'],'description':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0x32f96a(0x24e)](_0x2c34c9['UXXly'],{'type':'boolean','description':_0x32f96a(0x26a),'default':![]});},async _0x158dfb=>{const _0x58b69d=_0x50ce2f,_0x4d5955={'ItrCD':function(_0x20e558,_0x3ac7da,_0x14c166){return _0x20e558(_0x3ac7da,_0x14c166);},'lEXVM':'ranger\x20add\x20env'};_0x4d5955['ItrCD'](warnRenamed,_0x4d5955['lEXVM'],_0x58b69d(0x28e)),await withTelemetry(_0x58b69d(0x18d),_0x2b7b22=>addEnv(_0x158dfb[_0x58b69d(0x265)],{'ci':_0x158dfb['ci'],'skipAuth':_0x158dfb[_0x58b69d(0x254)]},_0x2b7b22));})['command'](_0x50ce2f(0x1fc),![],_0xe8ab66=>{const _0x12ea70=_0x50ce2f,_0x1ef9fa={'IFqCf':_0x12ea70(0x265),'OrWZv':_0x12ea70(0x23b),'HhFEU':_0x12ea70(0x1fd)};return _0xe8ab66[_0x12ea70(0x247)](_0x1ef9fa[_0x12ea70(0x27a)],{'type':_0x1ef9fa['OrWZv'],'description':_0x1ef9fa[_0x12ea70(0x1ae)],'demandOption':!![]});},async _0xf448e=>{const _0x375d93=_0x50ce2f,_0x2ebe81={'PYGEa':'ranger\x20use','RvTNa':function(_0x1fc493,_0x327f64,_0x3f9405){return _0x1fc493(_0x327f64,_0x3f9405);},'ZYXto':_0x375d93(0x1ee)};warnRenamed(_0x2ebe81[_0x375d93(0x23f)],_0x375d93(0x1f0)),await _0x2ebe81[_0x375d93(0x283)](withTelemetry,_0x2ebe81['ZYXto'],()=>useEnv(_0xf448e[_0x375d93(0x265)]));})[_0x50ce2f(0x26f)]('config',![],_0x2bb4aa=>{const _0x475e13=_0x50ce2f,_0x5a7c19={'sBvIc':'env','ZoGWR':'Environment\x20name','MyMqY':'string','IUqIr':_0x475e13(0x285),'gmsiP':'ranger\x20config\x20set','UpFcq':function(_0x42711d,_0x3bfe74,_0x14afad){return _0x42711d(_0x3bfe74,_0x14afad);},'QCEGa':_0x475e13(0x2c8),'ICSlX':_0x475e13(0x1c1),'vloAN':_0x475e13(0x241),'QchNI':function(_0x2d9077,_0x56aca8,_0xc9c01b){return _0x2d9077(_0x56aca8,_0xc9c01b);},'MOcuI':_0x475e13(0x2bb),'yOQPs':function(_0x205dd4,_0x539086,_0x11c438){return _0x205dd4(_0x539086,_0x11c438);},'yEcTm':'ranger\x20profile\x20config\x20list','cJlTY':function(_0xf220cf,_0x502d3b,_0x58dea7){return _0xf220cf(_0x502d3b,_0x58dea7);},'UdVTV':'Config\x20key\x20to\x20remove','JNvIx':_0x475e13(0x21e),'WraMz':function(_0x1e262b,_0x1c5299,_0x3bb38f){return _0x1e262b(_0x1c5299,_0x3bb38f);},'BreBB':'set\x20<env>\x20<key>\x20<value>','ixqCl':'unset\x20<env>\x20<key>','pHEjT':_0x475e13(0x1ad)};return _0x2bb4aa['command'](_0x5a7c19['BreBB'],![],_0x503317=>{const _0x412be0=_0x475e13;return _0x503317['positional'](_0x5a7c19['sBvIc'],{'type':_0x412be0(0x23b),'description':_0x5a7c19[_0x412be0(0x219)],'demandOption':!![]})[_0x412be0(0x247)]('key',{'type':_0x5a7c19['MyMqY'],'description':_0x412be0(0x16d),'demandOption':!![]})[_0x412be0(0x247)]('value',{'type':'string','description':_0x5a7c19['IUqIr'],'demandOption':!![]});},async _0x424925=>{const _0x3f5af2=_0x475e13;warnRenamed(_0x5a7c19[_0x3f5af2(0x2b9)],_0x3f5af2(0x236)),await _0x5a7c19[_0x3f5af2(0x290)](withTelemetry,_0x5a7c19[_0x3f5af2(0x2cb)],()=>configSet(_0x424925['env'],_0x424925[_0x3f5af2(0x1c1)],_0x424925[_0x3f5af2(0x29b)]));})['command'](_0x475e13(0x1d0),![],_0x2b1399=>{const _0x62c68b=_0x475e13;return _0x2b1399[_0x62c68b(0x247)](_0x62c68b(0x1f8),{'type':_0x62c68b(0x23b),'description':_0x62c68b(0x1e3),'demandOption':!![]})['positional'](_0x5a7c19['ICSlX'],{'type':_0x5a7c19[_0x62c68b(0x20c)],'description':_0x62c68b(0x1f6),'demandOption':!![]});},async _0x183899=>{const _0x25b1ea=_0x475e13;warnRenamed(_0x5a7c19['vloAN'],'ranger\x20profile\x20config\x20get'),await _0x5a7c19[_0x25b1ea(0x2a6)](withTelemetry,_0x5a7c19['MOcuI'],()=>configGet(_0x183899[_0x25b1ea(0x1f8)],_0x183899[_0x25b1ea(0x1c1)]));})['command'](_0x475e13(0x278),![],_0x3d88c5=>{const _0x3c95b8=_0x475e13;return _0x3d88c5[_0x3c95b8(0x247)](_0x5a7c19[_0x3c95b8(0x242)],{'type':_0x5a7c19[_0x3c95b8(0x20c)],'description':_0x5a7c19[_0x3c95b8(0x219)],'demandOption':!![]});},async _0x29cd12=>{const _0x1f1057=_0x475e13;_0x5a7c19[_0x1f1057(0x169)](warnRenamed,'ranger\x20config\x20list',_0x5a7c19[_0x1f1057(0x1a2)]),await _0x5a7c19[_0x1f1057(0x260)](withTelemetry,_0x1f1057(0x192),()=>configList(_0x29cd12['env']));})[_0x475e13(0x26f)](_0x5a7c19[_0x475e13(0x2a7)],![],_0x9eb49e=>{const _0x34317d=_0x475e13;return _0x9eb49e['positional'](_0x34317d(0x1f8),{'type':_0x5a7c19['MyMqY'],'description':_0x5a7c19['ZoGWR'],'demandOption':!![]})[_0x34317d(0x247)](_0x5a7c19['ICSlX'],{'type':'string','description':_0x5a7c19[_0x34317d(0x281)],'demandOption':!![]});},async _0x546e06=>{warnRenamed(_0x5a7c19['JNvIx'],'ranger\x20profile\x20config\x20unset'),await _0x5a7c19['WraMz'](withTelemetry,'config\x20unset',()=>configUnset(_0x546e06['env'],_0x546e06['key']));})[_0x475e13(0x168)](0x1,_0x5a7c19['pHEjT']);})[_0x50ce2f(0x26f)]('env',![],_0x5d181c=>{const _0x3c72ba=_0x50ce2f,_0x2dc97a={'olGzO':function(_0x4b49c1,_0xbb5783,_0x5c7afa){return _0x4b49c1(_0xbb5783,_0x5c7afa);},'NRpqP':'ranger\x20env\x20ls','Nuece':'env-name','rFeiw':function(_0x549ec4,_0x218bfc,_0x986f66){return _0x549ec4(_0x218bfc,_0x986f66);},'bUoRc':'env\x20update'};return _0x5d181c[_0x3c72ba(0x26f)]('ls',![],()=>{},async()=>{const _0x15db76=_0x3c72ba;_0x2dc97a[_0x15db76(0x1ce)](warnRenamed,_0x2dc97a[_0x15db76(0x2b3)],'ranger\x20profile\x20ls'),await withTelemetry('env\x20list',()=>envList());})['command']('update\x20<env-name>',![],_0x4cbe68=>{const _0x69076f=_0x3c72ba;return _0x4cbe68['positional'](_0x2dc97a[_0x69076f(0x22e)],{'type':_0x69076f(0x23b),'description':_0x69076f(0x2c0),'demandOption':!![]});},async _0x162026=>{const _0x214558=_0x3c72ba;_0x2dc97a[_0x214558(0x1aa)](warnRenamed,_0x214558(0x1f1),'ranger\x20profile\x20update'),await _0x2dc97a[_0x214558(0x1ce)](withTelemetry,_0x2dc97a[_0x214558(0x243)],_0x1b4a94=>updateEnv(_0x162026[_0x214558(0x265)],_0x1b4a94));})[_0x3c72ba(0x168)](0x1,_0x3c72ba(0x248));})[_0x50ce2f(0x26f)]('feature',![],_0x3c179d=>{const _0x1982b0=_0x50ce2f,_0x1d396b={'lFIdu':_0x1982b0(0x1d5),'wrqhz':'string','SCLVJ':_0x1982b0(0x1bb),'UrlCq':_0x1982b0(0x245),'qlzXY':_0x1982b0(0x29c),'KIQaI':'ranger\x20feature\x20create','GUBhK':_0x1982b0(0x172),'RMfPk':'--scenario','ZlvCP':_0x1982b0(0x280),'nRVQl':'limit','Vpeuw':'offset','rnLCv':_0x1982b0(0x295),'qQOrh':'Include\x20soft-deleted\x20feature\x20reviews','aVgub':function(_0x5ac2fa,_0x400ac0,_0x365cf9){return _0x5ac2fa(_0x400ac0,_0x365cf9);},'badFq':_0x1982b0(0x226),'UmjHr':_0x1982b0(0x231),'eIcqz':'Feature\x20review\x20ID','heqwO':'ranger\x20feature\x20show','LmpEe':_0x1982b0(0x266),'kryZI':_0x1982b0(0x1ff),'UGHJQ':_0x1982b0(0x274),'QPEvr':_0x1982b0(0x19f),'aPdDK':'ranger\x20feature\x20add-checklist-item','VoIQg':function(_0xa537bc,_0x8e6715,_0x29805d){return _0xa537bc(_0x8e6715,_0x29805d);},'vCTFW':'feature\x20add-checklist-item','JKbOD':_0x1982b0(0x284),'anzCn':'ranger\x20feature\x20delete','UbkKs':'ranger\x20delete','zJkha':'feature\x20delete','nvhtL':'ranger\x20feature\x20restore','aSURI':'ranger\x20restore','HZyjb':_0x1982b0(0x184),'juEWn':'create\x20<name>','mCvdn':'list','nJEiy':'show\x20[id]','sdvjP':'resume\x20[id]','slJVE':'add-checklist-item\x20<description>','axoqv':_0x1982b0(0x27d),'NBapj':_0x1982b0(0x27e)};return _0x3c179d['command'](_0x1d396b['juEWn'],![],_0x428af0=>{const _0x17681d=_0x1982b0;return _0x428af0['positional'](_0x1d396b[_0x17681d(0x20f)],{'type':_0x1d396b[_0x17681d(0x253)],'description':_0x17681d(0x229),'demandOption':!![]})[_0x17681d(0x24e)](_0x1d396b['SCLVJ'],{'type':_0x1d396b['wrqhz'],'alias':'d','description':_0x1d396b['UrlCq']})[_0x17681d(0x24e)]('checklist',{'type':_0x17681d(0x179),'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x1d396b['qlzXY'],{'type':'array','hidden':!![]});},async _0x31717e=>{const _0x152de6=_0x1982b0;warnRenamed(_0x1d396b['KIQaI'],_0x1d396b['GUBhK']),warnFlagRenamed(_0x1d396b['GUBhK'],_0x152de6(0x1a0),_0x1d396b['RMfPk']);const _0x6a2856=_0x31717e['scenario']||_0x31717e[_0x152de6(0x1a8)];await withTelemetry('feature\x20create',()=>featureCreate(_0x31717e[_0x152de6(0x1d5)],{'description':_0x31717e[_0x152de6(0x1bb)],'scenarios':_0x6a2856}));})['command'](_0x1d396b['mCvdn'],![],_0x361b5d=>{const _0x83d3a7=_0x1982b0;return _0x361b5d[_0x83d3a7(0x24e)](_0x83d3a7(0x1e8),{'type':_0x83d3a7(0x170),'description':_0x1d396b['ZlvCP']})['option'](_0x1d396b['nRVQl'],{'type':_0x83d3a7(0x180),'alias':'l','description':_0x83d3a7(0x228),'default':0xa})[_0x83d3a7(0x24e)](_0x1d396b['Vpeuw'],{'type':'number','alias':'o','description':_0x1d396b['rnLCv'],'default':0x0})[_0x83d3a7(0x24e)]('include-deleted',{'type':_0x83d3a7(0x170),'alias':'d','description':_0x1d396b['qQOrh'],'default':![]});},async _0x18883a=>{const _0x3e8965=_0x1982b0;_0x1d396b['aVgub'](warnRenamed,_0x1d396b[_0x3e8965(0x1ed)],_0x1d396b[_0x3e8965(0x2a4)]),await withTelemetry(_0x3e8965(0x17e),()=>featureList({'currentBranch':_0x18883a['current-branch'],'limit':_0x18883a[_0x3e8965(0x17c)],'offset':_0x18883a[_0x3e8965(0x203)],'includeDeleted':_0x18883a['include-deleted']}));})['command'](_0x1d396b['nJEiy'],![],_0x3b36a6=>{const _0x411871=_0x1982b0;return _0x3b36a6['positional']('id',{'type':_0x411871(0x23b),'description':_0x1d396b[_0x411871(0x21a)]});},async _0x4a47d0=>{const _0x29cc95=_0x1982b0;_0x1d396b['aVgub'](warnRenamed,_0x1d396b['heqwO'],_0x1d396b[_0x29cc95(0x28d)]),await withTelemetry(_0x29cc95(0x279),()=>featureShow(_0x4a47d0['id']));})[_0x1982b0(0x26f)](_0x1d396b[_0x1982b0(0x1c2)],![],_0x2f54be=>{const _0x391b25=_0x1982b0;return _0x2f54be['positional']('id',{'type':_0x391b25(0x23b),'description':_0x1d396b[_0x391b25(0x261)]});},async _0x33006e=>{const _0x1fe8c0=_0x1982b0;warnRenamed(_0x1d396b[_0x1fe8c0(0x1cd)],'ranger\x20resume'),await withTelemetry('feature\x20resume',()=>featureResume(_0x33006e['id']));})['command'](_0x1d396b[_0x1982b0(0x1c9)],![],_0x3c76e7=>{const _0x18189e=_0x1982b0;return _0x3c76e7['positional'](_0x1d396b['SCLVJ'],{'type':_0x1d396b[_0x18189e(0x253)],'description':_0x1d396b[_0x18189e(0x294)],'demandOption':!![]})['option']('id',{'type':_0x18189e(0x23b),'description':_0x18189e(0x1e1)});},async _0x5a9a52=>{const _0x19c61b=_0x1982b0;_0x1d396b['aVgub'](warnRenamed,_0x1d396b['aPdDK'],_0x19c61b(0x166)),await _0x1d396b['VoIQg'](withTelemetry,_0x1d396b['vCTFW'],()=>featureAddScenario(_0x5a9a52[_0x19c61b(0x1bb)],_0x5a9a52['id']));})['command'](_0x1d396b['axoqv'],![],_0x46a943=>{return _0x46a943['positional']('id',{'type':_0x1d396b['wrqhz'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x1d02a5=>{const _0x281237=_0x1982b0;_0x1d396b[_0x281237(0x227)](warnRenamed,_0x1d396b['JKbOD'],_0x281237(0x18e)),await _0x1d396b[_0x281237(0x227)](withTelemetry,'feature\x20get-feedback',()=>featureGetReview(_0x1d02a5['id']));})['command'](_0x1982b0(0x297),![],_0x4ec543=>{const _0x17ebeb=_0x1982b0;return _0x4ec543[_0x17ebeb(0x247)]('id',{'type':_0x1d396b['wrqhz'],'description':'Feature\x20review\x20ID'});},async _0x3aceb5=>{const _0x503b52=_0x1982b0;warnRenamed(_0x1d396b[_0x503b52(0x186)],_0x1d396b[_0x503b52(0x2a8)]),await withTelemetry(_0x1d396b['zJkha'],()=>featureDelete(_0x3aceb5['id']));})[_0x1982b0(0x26f)](_0x1982b0(0x19a),![],_0x2d3e02=>{const _0x5913b9=_0x1982b0;return _0x2d3e02['positional']('id',{'type':_0x1d396b['wrqhz'],'description':_0x5913b9(0x24c),'demandOption':!![]});},async _0x24ed7a=>{const _0x15bd7c=_0x1982b0;warnRenamed(_0x1d396b['nvhtL'],_0x1d396b[_0x15bd7c(0x27f)]),await withTelemetry(_0x1d396b[_0x15bd7c(0x27b)],()=>featureRestore(_0x24ed7a['id']));})['demandCommand'](0x1,_0x1d396b['NBapj']);})['command'](_0x50ce2f(0x249),![],_0x148c0b=>{const _0x456eef=_0x50ce2f,_0x5806a5={'RZZNC':_0x456eef(0x232),'BMOpz':'string','RMOXl':_0x456eef(0x1da),'HeBjU':_0x456eef(0x2bf),'rGVOy':'enable','lqzfI':_0x456eef(0x176)};return _0x148c0b['command'](_0x5806a5['rGVOy'],'Enable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x35e757=>{const _0x25a69c=_0x456eef;return _0x35e757['option'](_0x5806a5['RZZNC'],{'type':_0x5806a5[_0x25a69c(0x29f)],'description':_0x5806a5['RMOXl']});},async _0x21da8d=>{const _0xf4af4e=_0x456eef;await withTelemetry(_0xf4af4e(0x167),()=>hook('enable',_0x21da8d['session-id']));})[_0x456eef(0x26f)](_0x456eef(0x256),'Disable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x3ced08=>{return _0x3ced08['option'](_0x5806a5['RZZNC'],{'type':'string','description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x40f864=>{const _0x31489e=_0x456eef;await withTelemetry(_0x5806a5['HeBjU'],()=>hook('disable',_0x40f864[_0x31489e(0x232)]));})[_0x456eef(0x24e)](_0x456eef(0x1d5),{'type':_0x456eef(0x23b),'description':_0x5806a5['lqzfI']})['option'](_0x5806a5['RZZNC'],{'type':_0x5806a5[_0x456eef(0x29f)],'description':_0x5806a5[_0x456eef(0x264)]});},async _0x3bd42a=>{const _0x1b43f0=_0x50ce2f,_0x36939d={'TyzFA':function(_0x4c906c,_0x12092b,_0x183e45){return _0x4c906c(_0x12092b,_0x183e45);},'toYZw':'session-id'};_0x3bd42a[_0x1b43f0(0x1d5)]&&await _0x36939d[_0x1b43f0(0x1b8)](hook,_0x3bd42a['name'],_0x3bd42a[_0x36939d[_0x1b43f0(0x2af)]]);})['demandCommand'](0x1,_0x50ce2f(0x213))[_0x50ce2f(0x16b)]()[_0x50ce2f(0x22b)](async(_0x1e5ace,_0x335158,_0x3d33b4)=>{const _0x3fe4db=_0x50ce2f,_0x59f8da={'nRevB':function(_0x2ab8d9,_0x45317f,_0x438bbb){return _0x2ab8d9(_0x45317f,_0x438bbb);},'zVBvJ':function(_0x4b8130,_0x1430d1){return _0x4b8130||_0x1430d1;}},_0xcae9c7=sanitizeArgs(process[_0x3fe4db(0x25c)]['slice'](0x2)),_0x488949=_0x59f8da['nRevB'](getErrorType,_0x1e5ace,_0x335158);if(_0x1e5ace&&_0x1e5ace['includes'](_0x3fe4db(0x1d8))){const _0x93e1d5=process[_0x3fe4db(0x25c)][0x2];console[_0x3fe4db(0x1c0)](_0x3fe4db(0x18b)+_0x93e1d5),console['error'](_0x3fe4db(0x221));}else{if(_0x1e5ace)console['error']('\x0a'+_0x1e5ace+'\x0a');else _0x335158&&console[_0x3fe4db(0x1c0)]('\x0aError:\x20'+_0x335158[_0x3fe4db(0x240)]+'\x0a');}await logDesirePath({'rawCommand':_0xcae9c7,'errorMessage':_0x1e5ace||_0x335158?.['message'],'errorType':_0x488949});const _0x4e5a20=getCurrentCollector();_0x4e5a20&&await _0x4e5a20[_0x3fe4db(0x2b7)](_0x335158||new Error(_0x59f8da[_0x3fe4db(0x272)](_0x1e5ace,'Unknown\x20error'))),process['exit'](0x1);})['epilogue'](_0x50ce2f(0x224)+'\x20\x20https://docs.ranger.net\x0a'+_0x50ce2f(0x287))[_0x50ce2f(0x1ef)]()[_0x50ce2f(0x19e)]('help','h')[_0x50ce2f(0x21c)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x9bd4bb,_0x353e87){const _0x549265=_0x1fb7,_0x322105=_0x9bd4bb();while(!![]){try{const _0x2ff04c=-parseInt(_0x549265(0x163))/0x1*(-parseInt(_0x549265(0x102))/0x2)+-parseInt(_0x549265(0x14e))/0x3+parseInt(_0x549265(0x119))/0x4+-parseInt(_0x549265(0x15c))/0x5+-parseInt(_0x549265(0x146))/0x6*(parseInt(_0x549265(0x13b))/0x7)+-parseInt(_0x549265(0x15f))/0x8+parseInt(_0x549265(0x130))/0x9;if(_0x2ff04c===_0x353e87)break;else _0x322105['push'](_0x322105['shift']());}catch(_0x7d0853){_0x322105['push'](_0x322105['shift']());}}}(_0x3591,0x43917));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';function _0x1fb7(_0x3b81dc,_0x5b90e9){_0x3b81dc=_0x3b81dc-0xfa;const _0x35916a=_0x3591();let _0x1fb72b=_0x35916a[_0x3b81dc];return _0x1fb72b;}import _0x57d820 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';function _0x3591(){const _0x48d03f=['storageState','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','ZcFoR','NODE_TLS_REJECT_UNAUTHORIZED','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','newContext','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','2655105nrorVD','catch','local','1006968ofWRce','\x20(continuing\x20with\x20--force)','DNJaX','qOkia','1hdQUZw','manual','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','GBCRk','UZhEs','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','rMUXB','--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.','Could\x20not\x20reach\x20','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','Hpbfq','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','name','flVIS','assign','stringify','fetch\x20failed','trackPhaseStart','trim','stdout','56894KPOZVV','What\x20would\x20you\x20like\x20to\x20do?','TypeError','abort','config_write','vFjwZ','โ\x20Auth\x20state\x20saved\x20to:\x20','message','vcbxr','cIBIl','OCvGW','allowInsecureLocalhost','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','cdpEndpoint','โ\x20Created\x20settings:\x20','sbEwl','tyGlK','LIEBR','http://localhost:3000','log','now','url','settings.json','1255800IDQUbU','close','Enter\x20a\x20different\x20URL','root\x20(.ranger/)','\x0a\x20\x20Could\x20not\x20reach\x20','list','isElectron','path','\x20\x20\x20Creating\x20it\x20in\x20','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','Delete\x20existing\x20and\x20create\x20new\x20in\x20','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','\x0a\x20\x20Profile\x20\x22','skipAuth','safeMode','push','trackPhaseEnd','Aborted.','UBtoZ','\x22\x20already\x20exists\x20in\x20','use_suggestion','newPage','Profile\x20\x22','8315865WysVye','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','input','jcRuz','\x0a\x20\x20\x20โ \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','โ\x20Encrypted\x20auth\x20saved\x20to:\x20','error','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','.backup-','continue','location','2224243HbrqcK','FTszt','PhDdZ','slice','pREeE','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','prompt','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','confirm','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','6iaCVMn','url_setup','test','keys','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','YxmML','includes','isTTY','44946kvpQNr','launch','setupHeader','env','wveIr','Nazmq','.tmp-'];_0x3591=function(){return _0x48d03f;};return _0x3591();}import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x13b154){const _0x1b2b33=_0x1fb7,_0x5c5507={'EhytV':function(_0x3560af,_0x528ed7,_0x1566b5){return _0x3560af(_0x528ed7,_0x1566b5);},'Nazmq':_0x1b2b33(0x164),'BWsUh':function(_0x1826ab,_0x80aa21,_0x16bbb7){return _0x1826ab(_0x80aa21,_0x16bbb7);},'VcVXJ':function(_0x161f3f,_0x1639f7){return _0x161f3f(_0x1639f7);},'Quhsg':function(_0x2594f9,_0x23ede2){return _0x2594f9<_0x23ede2;},'qqMtB':'Invalid\x20URL','wveIr':function(_0x366f45,_0x2a434e){return _0x366f45===_0x2a434e;},'flVIS':_0x1b2b33(0xfe)};try{const _0x5e9816=new AbortController(),_0x548bf4=_0x5c5507['EhytV'](setTimeout,()=>_0x5e9816[_0x1b2b33(0x105)](),0x1388),_0xd22e6={'method':'HEAD','signal':_0x5e9816['signal'],'redirect':_0x5c5507[_0x1b2b33(0x153)]};/^https:\/\/localhost(:\d+)?/i[_0x1b2b33(0x148)](_0x13b154)&&(process['env'][_0x1b2b33(0x158)]='0');const _0x3aec00=await _0x5c5507['BWsUh'](fetch,_0x13b154,_0xd22e6);delete process[_0x1b2b33(0x151)]['NODE_TLS_REJECT_UNAUTHORIZED'],_0x5c5507['VcVXJ'](clearTimeout,_0x548bf4);if(_0x5c5507['Quhsg'](_0x3aec00['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x3aec00['status']};}catch(_0x5081c8){delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x145afe=_0x5081c8,_0x3513f4=_0x145afe[_0x1b2b33(0x109)]||String(_0x5081c8),_0x1c4399=_0x3513f4[_0x1b2b33(0x14c)](_0x5c5507['qqMtB'])||_0x5c5507[_0x1b2b33(0x152)](_0x145afe[_0x1b2b33(0xfa)],_0x1b2b33(0x104))||_0x3513f4['includes'](_0x5c5507[_0x1b2b33(0xfb)]);return{'ok':![],'error':_0x3513f4,'isProtocolError':_0x1c4399};}}export async function addEnv(_0x53ee38,_0x9a6e0c={},_0xfd3ca2){const _0x5f4f08=_0x1fb7,_0x48ff18={'cIBIl':_0x5f4f08(0x11a),'ajENn':_0x5f4f08(0x15e),'SHnya':function(_0x147e3d,_0x4f0ec3,_0x5a0bb7,_0x34a14c){return _0x147e3d(_0x4f0ec3,_0x5a0bb7,_0x34a14c);},'rMUXB':function(_0x22cd03){return _0x22cd03();},'OCvGW':function(_0x59dce3,_0x454b46){return _0x59dce3===_0x454b46;},'vFjwZ':function(_0x6fdd4d){return _0x6fdd4d();},'COJkI':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','eJstb':'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','YzEJa':'confirm','LIEBR':'overwrite','Msegb':_0x5f4f08(0x11c),'LCRis':'shouldReplace','pREeE':'Aborted.','mORDa':'\x0a๐\x20CDP\x20Profile\x20Setup\x0a','ZcFoR':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','DNJaX':function(_0x2684df,_0x4136ee){return _0x2684df(_0x4136ee);},'qNGrt':'\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','vcbxr':_0x5f4f08(0x10e),'UZhEs':_0x5f4f08(0x139),'VtEjk':_0x5f4f08(0x12d),'sbEwl':function(_0x4f6581,_0x403a5c,_0xb80255){return _0x4f6581(_0x403a5c,_0xb80255);},'YxmML':'auth.json','EqYuQ':'\x0a๐\x20Authentication\x20Setup','GBCRk':_0x5f4f08(0x134),'eGOUA':_0x5f4f08(0x16f),'zntHy':'--allow-insecure-localhost','UBtoZ':function(_0x32f4bc,_0x3086a4){return _0x32f4bc>_0x3086a4;},'jcRuz':function(_0xa2eefd,_0x3d507b){return _0xa2eefd||_0x3d507b;},'liuMG':'about:blank','PhDdZ':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','qbrIN':_0x5f4f08(0x131),'iRtOc':_0x5f4f08(0x169),'FTszt':function(_0x243016,_0x40ad3c){return _0x243016+_0x40ad3c;},'tyGlK':'.enc','zMQGf':function(_0x5ad1c6,_0x2b2dcf){return _0x5ad1c6(_0x2b2dcf);},'whZyn':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','qOkia':_0x5f4f08(0x16d),'MseKj':'browser_auth','XMhkd':function(_0x1c917c,_0x568014){return _0x1c917c>_0x568014;},'uCBCK':function(_0x6c69a7,_0x2629d4,_0x337133){return _0x6c69a7(_0x2629d4,_0x337133);},'Hpbfq':'settings.json','WNiNl':function(_0x404ac5,_0x23095d){return _0x404ac5===_0x23095d;},'JYpwR':function(_0x1ab374,_0x58aea8,_0x124f26){return _0x1ab374(_0x58aea8,_0x124f26);},'nDvHh':function(_0x147d67,_0xa4b29e,_0x1f499d){return _0x147d67(_0xa4b29e,_0x1f499d);}},_0xc28d0=_0x9a6e0c['ci']??![],_0x562d1e=_0xc28d0?'ci':_0x48ff18['ajENn'],_0xe79a95=_0x48ff18['SHnya'](join,_0x48ff18[_0x5f4f08(0x16a)](getRangerDir),_0x562d1e,_0x53ee38),_0x2cf97f={};if(_0x9a6e0c[_0x5f4f08(0x150)])for(const _0x2daed2 of _0x9a6e0c[_0x5f4f08(0x150)]){const _0x35ab04=_0x2daed2['indexOf'](':');if(_0x48ff18['OCvGW'](_0x35ab04,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x2daed2+_0x5f4f08(0x142));const _0x17a936=_0x2daed2[_0x5f4f08(0x13e)](0x0,_0x35ab04)[_0x5f4f08(0x100)](),_0x145045=_0x2daed2[_0x5f4f08(0x13e)](_0x35ab04+0x1)['trim']();_0x2cf97f[_0x17a936]=_0x145045;}const _0x257050=join(_0x48ff18[_0x5f4f08(0x107)](getRangerDir),_0x562d1e);if(_0x9a6e0c[_0x5f4f08(0x10f)]!==undefined&&_0x48ff18['OCvGW'](_0x9a6e0c['cdpEndpoint'][_0x5f4f08(0x100)](),''))throw new Error(_0x5f4f08(0x165));if(_0x9a6e0c['cdpEndpoint']&&_0x9a6e0c['url'])throw new Error(_0x48ff18['COJkI']);if(_0x9a6e0c['cdpEndpoint']&&_0x9a6e0c['ci'])throw new Error(_0x5f4f08(0x16b));const _0x32c9b8=Boolean(_0x9a6e0c['cdpEndpoint']),_0x63ce3=!_0x9a6e0c[_0x5f4f08(0x126)]&&!_0x32c9b8,_0x116f2f=process['stdin'][_0x5f4f08(0x14d)]&&process[_0x5f4f08(0x101)]['isTTY'];if(!_0x116f2f&&!_0x9a6e0c[_0x5f4f08(0x117)]&&!_0x32c9b8)throw new Error(_0x48ff18['eJstb']);const _0x22df8b=findExistingEnv(_0x53ee38);let _0x4d3c91=null;if(_0x22df8b){if(!_0x116f2f)_0x4d3c91=_0x22df8b;else{if(_0x22df8b['location']===_0x562d1e){const {overwrite:_0x4bebe4}=await _0x57d820['prompt']([{'type':_0x48ff18['YzEJa'],'name':_0x48ff18[_0x5f4f08(0x113)],'message':_0x5f4f08(0x12f)+_0x53ee38+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x4bebe4){console['log'](_0x5f4f08(0x12a));return;}_0x4d3c91=_0x22df8b;}else{const _0x3dba16=_0x22df8b[_0x5f4f08(0x13a)]==='legacy'?_0x48ff18['Msegb']:_0x22df8b[_0x5f4f08(0x13a)];console[_0x5f4f08(0x136)]('\x0aโ ๏ธ\x20\x20Profile\x20\x22'+_0x53ee38+_0x5f4f08(0x12c)+_0x3dba16+':\x20'+_0x22df8b[_0x5f4f08(0x120)]),console[_0x5f4f08(0x136)](_0x5f4f08(0x121)+_0x562d1e+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x3691cd}=await _0x57d820['prompt']([{'type':_0x5f4f08(0x144),'name':_0x48ff18['LCRis'],'message':_0x5f4f08(0x123)+_0x562d1e+'?','default':![]}]);if(!_0x3691cd){console['log'](_0x48ff18[_0x5f4f08(0x13f)]);return;}_0x4d3c91=_0x22df8b;}}}_0xfd3ca2?.['trackPhaseStart'](_0x5f4f08(0x147));let _0x51021e='';if(_0x32c9b8)console[_0x5f4f08(0x115)](_0x48ff18['mORDa']),console[_0x5f4f08(0x115)](_0x5f4f08(0x145)+_0x9a6e0c['cdpEndpoint']),console['log'](_0x48ff18[_0x5f4f08(0x157)]);else{if(_0x9a6e0c['url']){_0x51021e=_0x9a6e0c['url'];const _0x80a308=await _0x48ff18['DNJaX'](checkUrlReachability,_0x51021e);if(!_0x80a308['ok']&&!_0x9a6e0c['force'])throw new Error(_0x5f4f08(0x16c)+_0x51021e+':\x20'+_0x80a308[_0x5f4f08(0x136)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x80a308['ok']&&_0x9a6e0c['force']&&console[_0x5f4f08(0x115)]('โ \x20Could\x20not\x20reach\x20'+_0x51021e+':\x20'+_0x80a308['error']+_0x5f4f08(0x160));}else{console[_0x5f4f08(0x115)]('\x0a๐\x20Profile\x20Setup\x0a'),console['log'](_0x48ff18['qNGrt']),console['log'](_0x5f4f08(0x140));let _0x119b4d=![];while(!![]){const _0x56558c=await _0x57d820['prompt']([{'type':_0x5f4f08(0x132),'name':'baseUrl','message':_0x119b4d?_0x48ff18[_0x5f4f08(0x10a)]:_0x5f4f08(0x124),'default':_0x51021e||_0x5f4f08(0x114)}]);_0x51021e=_0x56558c['baseUrl'];const _0x1af739=await checkUrlReachability(_0x51021e);if(_0x1af739['ok'])break;const _0x473a02=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x51021e),_0x3f360f=_0x1af739['isProtocolError']&&!_0x473a02,_0x5db29a=_0x3f360f?'http://'+_0x51021e:null;_0x119b4d=!![],console['log'](_0x5f4f08(0x11d)+_0x51021e+':\x20'+_0x1af739['error']);_0x5db29a&&console[_0x5f4f08(0x115)]('\x20\x20Did\x20you\x20mean\x20'+_0x5db29a+'?');const {action:_0x39d347}=await _0x57d820[_0x5f4f08(0x141)]([{'type':_0x5f4f08(0x11e),'name':'action','message':_0x5f4f08(0x103),'choices':[..._0x5db29a?[{'name':'Use\x20'+_0x5db29a,'value':_0x5f4f08(0x12d)}]:[],{'name':_0x5f4f08(0x11b),'value':'retry'},{'name':'Continue\x20anyway','value':_0x48ff18[_0x5f4f08(0x167)]}]}]);if(_0x48ff18['OCvGW'](_0x39d347,_0x48ff18['VtEjk'])&&_0x5db29a){_0x51021e=_0x5db29a;const _0x321d72=await _0x48ff18['DNJaX'](checkUrlReachability,_0x51021e);if(_0x321d72['ok'])break;console['log'](_0x5f4f08(0x143)+_0x51021e+':\x20'+_0x321d72['error']);}else{if(_0x48ff18[_0x5f4f08(0x10c)](_0x39d347,_0x5f4f08(0x139)))break;}}}}_0xfd3ca2?.[_0x5f4f08(0x129)]('url_setup');const _0x527c31={};if(_0x4d3c91){const _0x38326d=await _0x48ff18['DNJaX'](loadSettings,_0x53ee38);Object[_0x5f4f08(0xfc)](_0x527c31,_0x38326d['setupHeaders']);}Object['assign'](_0x527c31,_0x2cf97f),await _0x48ff18['sbEwl'](mkdir,_0x257050,{'recursive':!![]});const _0x41048b=await mkdtemp(join(_0x257050,_0x5f4f08(0x154)+_0x53ee38+'-')),_0x3011bf=_0x48ff18['sbEwl'](join,_0x41048b,_0x48ff18[_0x5f4f08(0x14b)]),_0x6d5ce9=_0x48ff18[_0x5f4f08(0x161)](Boolean,_0x51021e)&&/^https:\/\/localhost(:\d+)?/i['test'](_0x51021e);try{if(_0x63ce3){_0xfd3ca2?.[_0x5f4f08(0xff)]('browser_auth'),console['log'](_0x48ff18['EqYuQ']),console[_0x5f4f08(0x115)]('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console['log'](_0x5f4f08(0x14a));!_0x116f2f?(console['log'](_0x48ff18[_0x5f4f08(0x166)]),console['log'](_0x48ff18['eGOUA'])):console[_0x5f4f08(0x115)]('');await new Promise(_0x44946a=>setTimeout(_0x44946a,0xbb8));const _0x3c7265=[];_0x9a6e0c[_0x5f4f08(0x127)]&&_0x3c7265[_0x5f4f08(0x128)]('--disable-features=WebBluetooth');const _0x5a4f11=_0x9a6e0c[_0x5f4f08(0x10d)]||_0x6d5ce9;_0x5a4f11&&_0x3c7265[_0x5f4f08(0x128)](_0x48ff18['zntHy']);const _0x44da6f=await chromium[_0x5f4f08(0x14f)]({'headless':![],..._0x48ff18[_0x5f4f08(0x12b)](_0x3c7265['length'],0x0)?{'args':_0x3c7265}:{}});try{const _0x75f3de=Object[_0x5f4f08(0x149)](_0x527c31)['length']>0x0,_0x30a54b={'ignoreHTTPSErrors':!![]};_0x75f3de&&(_0x30a54b['extraHTTPHeaders']=_0x527c31);const _0x215c06=await _0x44da6f[_0x5f4f08(0x15a)](_0x30a54b);await addProfileSetupBanner(_0x215c06);const _0x35c5ca=await _0x215c06[_0x5f4f08(0x12e)]();await _0x35c5ca['goto'](_0x48ff18[_0x5f4f08(0x133)](_0x51021e,_0x48ff18['liuMG']));let _0xd97279=![];await new Promise(_0x2220e6=>{const _0x752df4=_0x5f4f08;_0x35c5ca['on'](_0x48ff18[_0x752df4(0x10b)],async()=>{const _0x40b761=_0x752df4;try{console['log']('Saving\x20authentication\x20state...'),await _0x215c06[_0x40b761(0x155)]({'path':_0x3011bf}),_0xd97279=!![];}catch{}_0x2220e6();});});if(!_0xd97279){console[_0x5f4f08(0x115)](_0x5f4f08(0x159));!_0x9a6e0c['safeMode']&&(console['log'](_0x48ff18[_0x5f4f08(0x13d)]),console[_0x5f4f08(0x115)]('You\x20can\x20try\x20again\x20with\x20one\x20of:'),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x53ee38+_0x5f4f08(0x156)),console[_0x5f4f08(0x115)]('\x20\x20ranger\x20profile\x20add\x20'+_0x53ee38+_0x5f4f08(0x122)));throw new Error(_0x48ff18['qbrIN']);}}finally{await _0x44da6f[_0x5f4f08(0x11a)]()[_0x5f4f08(0x15d)](()=>{});}if(_0xc28d0){const _0x26130e=await readFile(_0x3011bf,'utf-8'),_0x5b83bf=await getToken();if(!_0x5b83bf){console[_0x5f4f08(0x136)](_0x48ff18['iRtOc']),await _0x48ff18[_0x5f4f08(0x161)](unlink,_0x3011bf)[_0x5f4f08(0x15d)](()=>{});throw new Error(_0x5f4f08(0x137));}else{const _0x275579=_0x48ff18[_0x5f4f08(0x111)](encrypt,_0x26130e,_0x5b83bf);await _0x48ff18['sbEwl'](writeFile,_0x48ff18[_0x5f4f08(0x13c)](_0x3011bf,_0x48ff18[_0x5f4f08(0x112)]),_0x275579),await _0x48ff18['zMQGf'](unlink,_0x3011bf),console['log'](_0x5f4f08(0x135)+_0x3011bf+'.enc'),console['log'](_0x48ff18['whZyn']),console[_0x5f4f08(0x115)](_0x48ff18[_0x5f4f08(0x162)]);}}else console[_0x5f4f08(0x115)](_0x5f4f08(0x108)+_0x3011bf);_0xfd3ca2?.['trackPhaseEnd'](_0x48ff18['MseKj']);}_0xfd3ca2?.[_0x5f4f08(0xff)](_0x5f4f08(0x106));const _0x112b0f={};_0x51021e&&(_0x112b0f['baseUrl']=_0x51021e);_0x9a6e0c['cdpEndpoint']&&(_0x112b0f[_0x5f4f08(0x10f)]=_0x9a6e0c[_0x5f4f08(0x10f)],_0x112b0f[_0x5f4f08(0x11f)]=!![]);(_0x9a6e0c['allowInsecureLocalhost']||_0x6d5ce9)&&(_0x112b0f[_0x5f4f08(0x10d)]=!![]);_0x9a6e0c['safeMode']&&(_0x112b0f[_0x5f4f08(0x127)]=!![]);_0x48ff18['XMhkd'](Object[_0x5f4f08(0x149)](_0x527c31)['length'],0x0)&&(_0x112b0f['setupHeaders']=_0x527c31);await writeFile(_0x48ff18['uCBCK'](join,_0x41048b,_0x5f4f08(0x118)),JSON[_0x5f4f08(0xfd)](_0x112b0f,null,0x2)),console[_0x5f4f08(0x115)](_0x5f4f08(0x110)+_0x48ff18['sbEwl'](join,_0xe79a95,_0x48ff18[_0x5f4f08(0x16e)]));if(_0x48ff18['WNiNl'](_0x4d3c91?.[_0x5f4f08(0x13a)],_0x562d1e)){const _0x396f8c=_0x4d3c91['path']+_0x5f4f08(0x138)+Date[_0x5f4f08(0x116)]();await _0x48ff18[_0x5f4f08(0x111)](rename,_0x4d3c91[_0x5f4f08(0x120)],_0x396f8c);try{await rename(_0x41048b,_0xe79a95);}catch(_0x1cf922){await rename(_0x396f8c,_0x4d3c91[_0x5f4f08(0x120)]);throw _0x1cf922;}try{await _0x48ff18[_0x5f4f08(0x111)](rm,_0x396f8c,{'recursive':!![]});}catch{console['log'](_0x5f4f08(0x168)+_0x396f8c);}}else{await _0x48ff18['JYpwR'](rename,_0x41048b,_0xe79a95);if(_0x4d3c91)try{await _0x48ff18['nDvHh'](rm,_0x4d3c91[_0x5f4f08(0x120)],{'recursive':!![]}),console['log']('Removed\x20existing\x20profile\x20at\x20'+_0x4d3c91['path']);}catch{console[_0x5f4f08(0x115)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x4d3c91['path']);}}try{await writeActiveProfileName(_0x53ee38),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x53ee38);}catch{console[_0x5f4f08(0x115)](_0x5f4f08(0x15b));}_0xfd3ca2?.[_0x5f4f08(0x129)]('config_write'),console[_0x5f4f08(0x115)](_0x5f4f08(0x125)+_0x53ee38+'\x22\x20configured');}catch(_0x36170e){await _0x48ff18[_0x5f4f08(0x111)](rm,_0x41048b,{'recursive':!![],'force':!![]});throw _0x36170e;}}
|
|
1
|
+
(function(_0x526dd9,_0xc64edc){const _0xf83146=_0x2813,_0x23346a=_0x526dd9();while(!![]){try{const _0x22ee95=parseInt(_0xf83146(0x20c))/0x1+-parseInt(_0xf83146(0x1cf))/0x2+parseInt(_0xf83146(0x1d8))/0x3*(-parseInt(_0xf83146(0x22d))/0x4)+-parseInt(_0xf83146(0x241))/0x5*(-parseInt(_0xf83146(0x1f1))/0x6)+parseInt(_0xf83146(0x216))/0x7*(parseInt(_0xf83146(0x200))/0x8)+-parseInt(_0xf83146(0x207))/0x9*(parseInt(_0xf83146(0x21a))/0xa)+-parseInt(_0xf83146(0x1f6))/0xb*(-parseInt(_0xf83146(0x1da))/0xc);if(_0x22ee95===_0xc64edc)break;else _0x23346a['push'](_0x23346a['shift']());}catch(_0x546720){_0x23346a['push'](_0x23346a['shift']());}}}(_0x2dd8,0xd3292));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x2fe5d2 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';function _0x2dd8(){const _0x7a123=['1320517IyBPfb','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','goto','config_write','retry','includes','hKflN','url','BJzNv','\x0a\x20\x20Profile\x20\x22','16tphkvx','launch','keys','\x0aโ ๏ธ\x20\x20Profile\x20\x22','hvAXd','trackPhaseStart','signal','5948505Fcjpmt','Removed\x20existing\x20profile\x20at\x20','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','qHWIO','overwrite','1060846pFcUvd','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','Continue\x20anyway','storageState','lijaJ','setupHeaders','GGCmm','You\x20can\x20try\x20again\x20with\x20one\x20of:','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','oOnPO','4815538iesoQK','QyCOv','log','\x20\x20Did\x20you\x20mean\x20','20OIVyJS','\x20(continuing\x20with\x20--force)','path','now','test','abort','root\x20(.ranger/)','PZeal','trackPhaseEnd','โ\x20Encrypted\x20auth\x20saved\x20to:\x20','YPcap','.backup-','โ\x20Auth\x20state\x20saved\x20to:\x20','SLWdk','cdpEndpoint','isElectron','url_setup','\x22\x20already\x20exists.\x20Overwrite?','--allow-insecure-localhost','8644zpuXCw','yRdfw','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','Could\x20not\x20reach\x20','baseUrl','pLhlD','.enc','stringify','env','JzBWX','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','fetch\x20failed','status','allowInsecureLocalhost','oUpyC','oTELF','\x0a๐\x20CDP\x20Profile\x20Setup\x0a','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','catch','Delete\x20existing\x20and\x20create\x20new\x20in\x20','4588725iLbNQi','โ\x20Created\x20settings:\x20','list','uuILp','name','Ldrax','JQAcv','local','1705636KrQzAd','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','crUBe','bVBMS','Profile\x20\x22','manual','NODE_TLS_REJECT_UNAUTHORIZED','trim','close','1437qPZjaE','skipAuth','72KIWQdi','newPage','settings.json','EFklc','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','EGsxj','action','ChrYd','Rbhek','wddwq','stdin','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','error','assign','Saving\x20authentication\x20state...','browser_auth','BIHUw','safeMode','newContext','kaNVp','\x20\x20ranger\x20profile\x20add\x20','EGjOT','6ziwLXK','.tmp-','lKOZJ','location','http://localhost:3000'];_0x2dd8=function(){return _0x7a123;};return _0x2dd8();}function _0x2813(_0x3c8a1b,_0x3b7bd7){_0x3c8a1b=_0x3c8a1b-0x1cc;const _0x2dd874=_0x2dd8();let _0x2813f0=_0x2dd874[_0x3c8a1b];return _0x2813f0;}import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x555571){const _0x2bf187=_0x2813,_0x5c77ad={'JzBWX':'HEAD','uOxOh':_0x2bf187(0x1d4),'BJzNv':function(_0x19763a,_0xafd642){return _0x19763a(_0xafd642);},'Ldrax':function(_0x1fc5b9,_0x515529){return _0x1fc5b9===_0x515529;},'ehAMN':_0x2bf187(0x238)};try{const _0x400207=new AbortController(),_0x5cdb2a=setTimeout(()=>_0x400207[_0x2bf187(0x21f)](),0x1388),_0x215ad4={'method':_0x5c77ad[_0x2bf187(0x236)],'signal':_0x400207[_0x2bf187(0x206)],'redirect':_0x5c77ad['uOxOh']};/^https:\/\/localhost(:\d+)?/i[_0x2bf187(0x21e)](_0x555571)&&(process['env'][_0x2bf187(0x1d5)]='0');const _0x555d5=await fetch(_0x555571,_0x215ad4);delete process[_0x2bf187(0x235)]['NODE_TLS_REJECT_UNAUTHORIZED'],_0x5c77ad[_0x2bf187(0x1fe)](clearTimeout,_0x5cdb2a);if(_0x555d5[_0x2bf187(0x239)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x555d5['status']};}catch(_0x2b7d7b){delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x3c6fcb=_0x2b7d7b,_0x747ea=_0x3c6fcb['message']||_0x5c77ad[_0x2bf187(0x1fe)](String,_0x2b7d7b),_0x46319c=_0x747ea['includes']('Invalid\x20URL')||_0x5c77ad[_0x2bf187(0x1cc)](_0x3c6fcb[_0x2bf187(0x245)],'TypeError')||_0x747ea[_0x2bf187(0x1fb)](_0x5c77ad['ehAMN']);return{'ok':![],'error':_0x747ea,'isProtocolError':_0x46319c};}}export async function addEnv(_0x20d2b8,_0x27e3ca={},_0x426bf0){const _0x2f9177=_0x2813,_0x18d0dd={'lKOZJ':_0x2f9177(0x1e9),'oOnPO':_0x2f9177(0x1ce),'JjsmT':function(_0x17b239,_0x59ab16,_0x107750,_0x427b00){return _0x17b239(_0x59ab16,_0x107750,_0x427b00);},'EFklc':function(_0x27c3aa,_0xa1f6f7){return _0x27c3aa===_0xa1f6f7;},'dWhNb':function(_0x1d6043,_0x3755a5,_0x1d784f){return _0x1d6043(_0x3755a5,_0x1d784f);},'cilDU':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','oUpyC':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','PZeal':function(_0x1eb0ad,_0x35748b){return _0x1eb0ad(_0x35748b);},'IANoX':_0x2f9177(0x20b),'ovsAU':'Aborted.','YPcap':'legacy','crUBe':_0x2f9177(0x22a),'TsFCW':_0x2f9177(0x23d),'wddwq':_0x2f9177(0x20d),'bVBMS':'baseUrl','jQPfp':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','oTELF':function(_0x20d634,_0x33ad20){return _0x20d634||_0x33ad20;},'CKfyn':_0x2f9177(0x1f5),'yRdfw':function(_0x3959fe,_0x4b3aff){return _0x3959fe(_0x4b3aff);},'ssINu':_0x2f9177(0x243),'EymUn':_0x2f9177(0x1e0),'lijaJ':'What\x20would\x20you\x20like\x20to\x20do?','GGCmm':'use_suggestion','pLhlD':_0x2f9177(0x20e),'uuILp':'continue','eKzDH':function(_0x490a83,_0x496219){return _0x490a83(_0x496219);},'kaNVp':function(_0x56c5e0,_0x1e968f){return _0x56c5e0(_0x1e968f);},'SLWdk':function(_0x44a125,_0x13fc60,_0x5c1180){return _0x44a125(_0x13fc60,_0x5c1180);},'QyCOv':function(_0x8ea366,_0x38dfd4){return _0x8ea366(_0x38dfd4);},'bSMGY':function(_0x35626e,_0x2fb6b6,_0x4466d1){return _0x35626e(_0x2fb6b6,_0x4466d1);},'hvAXd':'auth.json','BIHUw':_0x2f9177(0x1ea),'MAbTc':_0x2f9177(0x237),'ChrYd':_0x2f9177(0x209),'EGsxj':'--disable-features=WebBluetooth','yYxGy':_0x2f9177(0x1f7),'WUgvp':_0x2f9177(0x23e),'KsqeY':'Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','GSEBr':_0x2f9177(0x233),'hKflN':_0x2f9177(0x1e6),'qHWIO':_0x2f9177(0x1de),'JQAcv':function(_0x131b27,_0x3fce3c){return _0x131b27>_0x3fce3c;},'EGjOT':function(_0x2d187d,_0x47b105,_0x502822){return _0x2d187d(_0x47b105,_0x502822);},'RKxMR':'settings.json','Rbhek':function(_0xccf173,_0x5c006a,_0x56b5ef){return _0xccf173(_0x5c006a,_0x56b5ef);},'awGFz':function(_0x18fa2c,_0x35264d){return _0x18fa2c(_0x35264d);},'XFdPU':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'},_0x1e2534=_0x27e3ca['ci']??![],_0x40482b=_0x1e2534?'ci':_0x18d0dd[_0x2f9177(0x215)],_0x439b1d=_0x18d0dd['JjsmT'](join,getRangerDir(),_0x40482b,_0x20d2b8),_0x11756c={};if(_0x27e3ca['setupHeader'])for(const _0x1ab70d of _0x27e3ca['setupHeader']){const _0x305be5=_0x1ab70d['indexOf'](':');if(_0x18d0dd[_0x2f9177(0x1dd)](_0x305be5,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x1ab70d+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0xa30d8=_0x1ab70d['slice'](0x0,_0x305be5)['trim'](),_0x17d4b0=_0x1ab70d['slice'](_0x305be5+0x1)['trim']();_0x11756c[_0xa30d8]=_0x17d4b0;}const _0x28af33=_0x18d0dd['dWhNb'](join,getRangerDir(),_0x40482b);if(_0x27e3ca['cdpEndpoint']!==undefined&&_0x27e3ca[_0x2f9177(0x228)][_0x2f9177(0x1d6)]()==='')throw new Error(_0x18d0dd['cilDU']);if(_0x27e3ca[_0x2f9177(0x228)]&&_0x27e3ca[_0x2f9177(0x1fd)])throw new Error(_0x18d0dd[_0x2f9177(0x23b)]);if(_0x27e3ca[_0x2f9177(0x228)]&&_0x27e3ca['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 _0x515736=_0x18d0dd[_0x2f9177(0x221)](Boolean,_0x27e3ca[_0x2f9177(0x228)]),_0x17f3fa=!_0x27e3ca[_0x2f9177(0x1d9)]&&!_0x515736,_0x2f2a11=process[_0x2f9177(0x1e4)]['isTTY']&&process['stdout']['isTTY'];if(!_0x2f2a11&&!_0x27e3ca['url']&&!_0x515736)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 _0xa0e4cc=_0x18d0dd['PZeal'](findExistingEnv,_0x20d2b8);let _0x19747d=null;if(_0xa0e4cc){if(!_0x2f2a11)_0x19747d=_0xa0e4cc;else{if(_0xa0e4cc['location']===_0x40482b){const {overwrite:_0x11e45f}=await _0x2fe5d2['prompt']([{'type':'confirm','name':_0x18d0dd['IANoX'],'message':_0x2f9177(0x1d3)+_0x20d2b8+_0x2f9177(0x22b),'default':![]}]);if(!_0x11e45f){console['log'](_0x18d0dd['ovsAU']);return;}_0x19747d=_0xa0e4cc;}else{const _0x13bd32=_0x18d0dd[_0x2f9177(0x1dd)](_0xa0e4cc[_0x2f9177(0x1f4)],_0x18d0dd[_0x2f9177(0x224)])?_0x2f9177(0x220):_0xa0e4cc[_0x2f9177(0x1f4)];console[_0x2f9177(0x1e7)](_0x2f9177(0x203)+_0x20d2b8+'\x22\x20already\x20exists\x20in\x20'+_0x13bd32+':\x20'+_0xa0e4cc[_0x2f9177(0x21c)]),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x40482b+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x17ce28}=await _0x2fe5d2['prompt']([{'type':'confirm','name':'shouldReplace','message':_0x2f9177(0x240)+_0x40482b+'?','default':![]}]);if(!_0x17ce28){console[_0x2f9177(0x218)]('Aborted.');return;}_0x19747d=_0xa0e4cc;}}}_0x426bf0?.['trackPhaseStart'](_0x18d0dd[_0x2f9177(0x1d1)]);let _0xe7e3ff='';if(_0x515736)console['log'](_0x18d0dd['TsFCW']),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x27e3ca['cdpEndpoint']),console[_0x2f9177(0x218)](_0x2f9177(0x22f));else{if(_0x27e3ca['url']){_0xe7e3ff=_0x27e3ca[_0x2f9177(0x1fd)];const _0x1fdc8a=await checkUrlReachability(_0xe7e3ff);if(!_0x1fdc8a['ok']&&!_0x27e3ca['force'])throw new Error(_0x2f9177(0x230)+_0xe7e3ff+':\x20'+_0x1fdc8a['error']+_0x2f9177(0x1e5));!_0x1fdc8a['ok']&&_0x27e3ca['force']&&console[_0x2f9177(0x218)]('โ \x20Could\x20not\x20reach\x20'+_0xe7e3ff+':\x20'+_0x1fdc8a[_0x2f9177(0x1e7)]+_0x2f9177(0x21b));}else{console['log']('\x0a๐\x20Profile\x20Setup\x0a'),console['log'](_0x18d0dd[_0x2f9177(0x1e3)]),console[_0x2f9177(0x218)]('\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a');let _0xd7b5f0=![];while(!![]){const _0x5614d1=await _0x2fe5d2['prompt']([{'type':'input','name':_0x18d0dd[_0x2f9177(0x1d2)],'message':_0xd7b5f0?_0x18d0dd['jQPfp']:'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x18d0dd[_0x2f9177(0x23c)](_0xe7e3ff,_0x18d0dd['CKfyn'])}]);_0xe7e3ff=_0x5614d1[_0x2f9177(0x231)];const _0x59ef60=await _0x18d0dd[_0x2f9177(0x22e)](checkUrlReachability,_0xe7e3ff);if(_0x59ef60['ok'])break;const _0x50548e=/^[a-zA-Z][\w+.-]*:\/\//[_0x2f9177(0x21e)](_0xe7e3ff),_0x2b1d14=_0x59ef60['isProtocolError']&&!_0x50548e,_0x45cc28=_0x2b1d14?'http://'+_0xe7e3ff:null;_0xd7b5f0=!![],console[_0x2f9177(0x218)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0xe7e3ff+':\x20'+_0x59ef60['error']);_0x45cc28&&console[_0x2f9177(0x218)](_0x2f9177(0x219)+_0x45cc28+'?');const {action:_0x5b578f}=await _0x2fe5d2['prompt']([{'type':_0x18d0dd['ssINu'],'name':_0x18d0dd['EymUn'],'message':_0x18d0dd[_0x2f9177(0x210)],'choices':[..._0x45cc28?[{'name':'Use\x20'+_0x45cc28,'value':_0x18d0dd[_0x2f9177(0x212)]}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x2f9177(0x1fa)},{'name':_0x18d0dd[_0x2f9177(0x232)],'value':_0x18d0dd[_0x2f9177(0x244)]}]}]);if(_0x18d0dd[_0x2f9177(0x1dd)](_0x5b578f,_0x18d0dd['GGCmm'])&&_0x45cc28){_0xe7e3ff=_0x45cc28;const _0x117d4f=await _0x18d0dd['eKzDH'](checkUrlReachability,_0xe7e3ff);if(_0x117d4f['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0xe7e3ff+':\x20'+_0x117d4f[_0x2f9177(0x1e7)]);}else{if(_0x5b578f===_0x18d0dd[_0x2f9177(0x244)])break;}}}}_0x426bf0?.[_0x2f9177(0x222)](_0x18d0dd['crUBe']);const _0x3c94f3={};if(_0x19747d){const _0x346575=await _0x18d0dd[_0x2f9177(0x1ee)](loadSettings,_0x20d2b8);Object[_0x2f9177(0x1e8)](_0x3c94f3,_0x346575[_0x2f9177(0x211)]);}Object['assign'](_0x3c94f3,_0x11756c),await _0x18d0dd['SLWdk'](mkdir,_0x28af33,{'recursive':!![]});const _0x2ec144=await _0x18d0dd[_0x2f9177(0x217)](mkdtemp,_0x18d0dd['bSMGY'](join,_0x28af33,_0x2f9177(0x1f2)+_0x20d2b8+'-')),_0x5a73dc=join(_0x2ec144,_0x18d0dd[_0x2f9177(0x204)]),_0x13e0e6=Boolean(_0xe7e3ff)&&/^https:\/\/localhost(:\d+)?/i['test'](_0xe7e3ff);try{if(_0x17f3fa){_0x426bf0?.[_0x2f9177(0x205)](_0x18d0dd['BIHUw']),console['log']('\x0a๐\x20Authentication\x20Setup'),console['log'](_0x18d0dd['MAbTc']),console[_0x2f9177(0x218)](_0x18d0dd[_0x2f9177(0x1e1)]);!_0x2f2a11?(console['log']('\x0a\x20\x20\x20โ \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log']('\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(_0x45c61c=>setTimeout(_0x45c61c,0xbb8));const _0x2bbf3c=[];_0x27e3ca['safeMode']&&_0x2bbf3c['push'](_0x18d0dd[_0x2f9177(0x1df)]);const _0x284ab2=_0x27e3ca[_0x2f9177(0x23a)]||_0x13e0e6;_0x284ab2&&_0x2bbf3c['push'](_0x2f9177(0x22c));const _0x403587=await chromium[_0x2f9177(0x201)]({'headless':![],..._0x2bbf3c['length']>0x0?{'args':_0x2bbf3c}:{}});try{const _0xee953c=Object['keys'](_0x3c94f3)['length']>0x0,_0x4210e2={'ignoreHTTPSErrors':!![]};_0xee953c&&(_0x4210e2['extraHTTPHeaders']=_0x3c94f3);const _0x1b6d48=await _0x403587[_0x2f9177(0x1ed)](_0x4210e2);await addProfileSetupBanner(_0x1b6d48);const _0x30105e=await _0x1b6d48[_0x2f9177(0x1db)]();await _0x30105e[_0x2f9177(0x1f8)](_0x18d0dd['oTELF'](_0xe7e3ff,'about:blank'));let _0x5459f1=![];await new Promise(_0xa6bffd=>{const _0xd8bfd2=_0x2f9177;_0x30105e['on'](_0xd8bfd2(0x1d7),async()=>{const _0x1f7abd=_0xd8bfd2;try{console[_0x1f7abd(0x218)](_0x18d0dd[_0x1f7abd(0x1f3)]),await _0x1b6d48[_0x1f7abd(0x20f)]({'path':_0x5a73dc}),_0x5459f1=!![];}catch{}_0xa6bffd();});});if(!_0x5459f1){console[_0x2f9177(0x218)]('\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.');!_0x27e3ca[_0x2f9177(0x1ec)]&&(console['log']('This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a'),console[_0x2f9177(0x218)](_0x2f9177(0x213)),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x20d2b8+_0x2f9177(0x214)),console[_0x2f9177(0x218)](_0x2f9177(0x1ef)+_0x20d2b8+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x18d0dd['yYxGy']);}}finally{await _0x403587['close']()['catch'](()=>{});}if(_0x1e2534){const _0x5ad7a7=await _0x18d0dd[_0x2f9177(0x227)](readFile,_0x5a73dc,'utf-8'),_0x26714d=await getToken();if(!_0x26714d){console['error'](_0x18d0dd['WUgvp']),await unlink(_0x5a73dc)[_0x2f9177(0x23f)](()=>{});throw new Error(_0x18d0dd['KsqeY']);}else{const _0x435b9e=encrypt(_0x5ad7a7,_0x26714d);await _0x18d0dd['bSMGY'](writeFile,_0x5a73dc+_0x18d0dd['GSEBr'],_0x435b9e),await _0x18d0dd[_0x2f9177(0x217)](unlink,_0x5a73dc),console['log'](_0x2f9177(0x223)+_0x5a73dc+_0x2f9177(0x233)),console[_0x2f9177(0x218)](_0x18d0dd[_0x2f9177(0x1fc)]),console['log'](_0x18d0dd[_0x2f9177(0x20a)]);}}else console[_0x2f9177(0x218)](_0x2f9177(0x226)+_0x5a73dc);_0x426bf0?.['trackPhaseEnd'](_0x18d0dd[_0x2f9177(0x1eb)]);}_0x426bf0?.['trackPhaseStart'](_0x2f9177(0x1f9));const _0x41b943={};_0xe7e3ff&&(_0x41b943[_0x2f9177(0x231)]=_0xe7e3ff);_0x27e3ca['cdpEndpoint']&&(_0x41b943[_0x2f9177(0x228)]=_0x27e3ca['cdpEndpoint'],_0x41b943[_0x2f9177(0x229)]=!![]);(_0x27e3ca['allowInsecureLocalhost']||_0x13e0e6)&&(_0x41b943['allowInsecureLocalhost']=!![]);_0x27e3ca[_0x2f9177(0x1ec)]&&(_0x41b943['safeMode']=!![]);_0x18d0dd[_0x2f9177(0x1cd)](Object[_0x2f9177(0x202)](_0x3c94f3)['length'],0x0)&&(_0x41b943['setupHeaders']=_0x3c94f3);await writeFile(_0x18d0dd[_0x2f9177(0x1f0)](join,_0x2ec144,_0x18d0dd['RKxMR']),JSON[_0x2f9177(0x234)](_0x41b943,null,0x2)),console[_0x2f9177(0x218)](_0x2f9177(0x242)+_0x18d0dd[_0x2f9177(0x1e2)](join,_0x439b1d,_0x2f9177(0x1dc)));if(_0x19747d?.['location']===_0x40482b){const _0x1bc171=_0x19747d[_0x2f9177(0x21c)]+_0x2f9177(0x225)+Date[_0x2f9177(0x21d)]();await _0x18d0dd[_0x2f9177(0x227)](rename,_0x19747d['path'],_0x1bc171);try{await rename(_0x2ec144,_0x439b1d);}catch(_0x1dc21d){await rename(_0x1bc171,_0x19747d[_0x2f9177(0x21c)]);throw _0x1dc21d;}try{await _0x18d0dd['EGjOT'](rm,_0x1bc171,{'recursive':!![]});}catch{console['log'](_0x2f9177(0x1d0)+_0x1bc171);}}else{await rename(_0x2ec144,_0x439b1d);if(_0x19747d)try{await rm(_0x19747d['path'],{'recursive':!![]}),console[_0x2f9177(0x218)](_0x2f9177(0x208)+_0x19747d['path']);}catch{console[_0x2f9177(0x218)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x19747d[_0x2f9177(0x21c)]);}}try{await _0x18d0dd['awGFz'](writeActiveProfileName,_0x20d2b8),console[_0x2f9177(0x218)]('\x20\x20Set\x20active\x20profile:\x20'+_0x20d2b8);}catch{console['log'](_0x18d0dd['XFdPU']);}_0x426bf0?.['trackPhaseEnd']('config_write'),console['log'](_0x2f9177(0x1ff)+_0x20d2b8+'\x22\x20configured');}catch(_0x23494c){await rm(_0x2ec144,{'recursive':!![],'force':!![]});throw _0x23494c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2adff7,_0x504cc8){const _0x20adc9=_0x10f0,_0x59b9e1=_0x2adff7();while(!![]){try{const _0xa2f8fe=-parseInt(_0x20adc9(0xdd))/0x1+parseInt(_0x20adc9(0xd3))/0x2*(-parseInt(_0x20adc9(0xd5))/0x3)+-parseInt(_0x20adc9(0xe3))/0x4+-parseInt(_0x20adc9(0xd6))/0x5*(-parseInt(_0x20adc9(0xd9))/0x6)+parseInt(_0x20adc9(0xe1))/0x7+-parseInt(_0x20adc9(0xde))/0x8+parseInt(_0x20adc9(0xd2))/0x9;if(_0xa2f8fe===_0x504cc8)break;else _0x59b9e1['push'](_0x59b9e1['shift']());}catch(_0x549094){_0x59b9e1['push'](_0x59b9e1['shift']());}}}(_0x3a87,0x374e0));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0x3a87(){const _0x5eac6f=['727958kbXoOt','fkHuD','1617208nZiZim','auth.json','9408474xHNynp','50yUMsIy','.enc','7341gPWwgC','1008655kIBAtx','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','dzZGj','6euIMul','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','log','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','311531hzeGtN','2780600khcUuX','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'];_0x3a87=function(){return _0x5eac6f;};return _0x3a87();}function _0x10f0(_0x21423b,_0x1fe237){_0x21423b=_0x21423b-0xd1;const _0x3a876d=_0x3a87();let _0x10f05b=_0x3a876d[_0x21423b];return _0x10f05b;}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x46d51d){const _0x4051dc=_0x10f0,_0x288419={'TcnRF':_0x4051dc(0xd1),'dzZGj':function(_0x5cf6e0,_0x4f51af){return _0x5cf6e0(_0x4f51af);},'jGFgG':function(_0x4a4f0e,_0x301551,_0x42d30f){return _0x4a4f0e(_0x301551,_0x42d30f);},'fkHuD':'utf-8','YybmW':_0x4051dc(0xe0),'PNoez':function(_0x3f739b,_0x2a89ba){return _0x3f739b(_0x2a89ba);}},_0x45397d=getEnvDir(_0x46d51d),_0xb8bb6e=join(_0x45397d,_0x288419['TcnRF']),_0x2c1c82=_0xb8bb6e+_0x4051dc(0xd4);if(!existsSync(_0x45397d))throw new Error('Profile\x20\x22'+_0x46d51d+_0x4051dc(0xdc)+_0x46d51d);if(!_0x288419[_0x4051dc(0xd8)](existsSync,_0xb8bb6e))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0xb8bb6e+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x5aa868=await getToken();if(!_0x5aa868)throw new Error(_0x4051dc(0xdf));const _0xa8c6b3=await _0x288419['jGFgG'](readFile,_0xb8bb6e,_0x288419[_0x4051dc(0xe2)]),_0xbdffca=encrypt(_0xa8c6b3,_0x5aa868);await _0x288419['jGFgG'](writeFile,_0x2c1c82,_0xbdffca),console['log']('\x0aโ\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x2c1c82),console[_0x4051dc(0xdb)](_0x4051dc(0xd7)),console['log'](_0x288419['YybmW']),_0x288419['PNoez'](existsSync,_0x2c1c82)&&(console['log']('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console[_0x4051dc(0xdb)](_0x4051dc(0xda)));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1d922a=_0x588a;function _0x599b(){const _0x21118e=['4239666snBcNj','utf-8','lQfyB','plugin','lheoq','win32','72QRqrKS','4Ukuntt','AVwMd','error','vLaqT','โ\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','630957dBponj','โ\x20Removed\x20trailhead\x20marketplace','Nothing\x20to\x20clean\x20up.\x0a','PmNFR','ZGrQG','opencode.json','1288180YEyBBB','log','โ\x20Removed\x20OpenCode\x20project\x20skill:\x20','โ\x20Removed\x20OpenCode\x20user\x20skill:\x20','pipe','length','marketplace','replace','119knMnOO','\x0a๐งน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','ikimJ','Hfgts','bug-bash','Eooyu','ENcHy','380270EhYgyl','71754gsUoYS','336512IKyuIF','โ\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','project','โ\x20Removed\x20user\x20skill:\x20','jqRSM','close','QtimJ','stringify','hzMYG','xBVTA','remove','isArray','hBuZS','1370754zyKYti','push','claude','string','ZRyTF','20fvoWXz'];_0x599b=function(){return _0x21118e;};return _0x599b();}(function(_0x1e4df7,_0x3d27fe){const _0x44a0c0=_0x588a,_0x929c5e=_0x1e4df7();while(!![]){try{const _0x1d6fbb=parseInt(_0x44a0c0(0x9b))/0x1*(parseInt(_0x44a0c0(0xae))/0x2)+-parseInt(_0x44a0c0(0xbb))/0x3*(parseInt(_0x44a0c0(0xb6))/0x4)+-parseInt(_0x44a0c0(0xc1))/0x5+parseInt(_0x44a0c0(0xaf))/0x6+parseInt(_0x44a0c0(0xc9))/0x7*(-parseInt(_0x44a0c0(0x9c))/0x8)+parseInt(_0x44a0c0(0xb5))/0x9*(parseInt(_0x44a0c0(0x9a))/0xa)+-parseInt(_0x44a0c0(0xa9))/0xb;if(_0x1d6fbb===_0x3d27fe)break;else _0x929c5e['push'](_0x929c5e['shift']());}catch(_0x57e65f){_0x929c5e['push'](_0x929c5e['shift']());}}}(_0x599b,0x66b66));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';function _0x588a(_0x2265e,_0x32a58d){_0x2265e=_0x2265e-0x97;const _0x599b50=_0x599b();let _0x588ab7=_0x599b50[_0x2265e];return _0x588ab7;}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',_0x1d922a(0x97),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x53641d){const _0x3ab2e4=_0x1d922a,_0x59238f=_0x53641d['replace'](/\/\*[\s\S]*?\*\//g,''),_0x7d8537=_0x59238f[_0x3ab2e4(0xc8)](/^\s*\/\/.*$/gm,''),_0x405071=_0x7d8537[_0x3ab2e4(0xc8)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x405071);}async function removeOpencodePluginConfig(_0xf146eb){const _0x52c92a=_0x1d922a,_0x2f6f9e={'SXMaU':_0x52c92a(0xac),'jqRSM':function(_0x2ec21d,_0x49e3a4){return _0x2ec21d(_0x49e3a4);},'RuTgd':function(_0xb5ed83,_0x743f4a,_0x1bfd45){return _0xb5ed83(_0x743f4a,_0x1bfd45);},'BvBCZ':function(_0x3c9447,_0xd2f30b){return _0x3c9447===_0xd2f30b;}};if(!_0x2f6f9e[_0x52c92a(0xa0)](existsSync,_0xf146eb))return![];let _0x5e9827;try{const _0xb560d2=await _0x2f6f9e['RuTgd'](readFile,_0xf146eb,_0x52c92a(0xb0));_0x5e9827=parseJsonc(_0xb560d2);}catch{return![];}const _0x3fa63c=Array[_0x52c92a(0xa7)](_0x5e9827['plugin'])?_0x5e9827['plugin']:[];if(_0x3fa63c[_0x52c92a(0xc6)]===0x0)return![];const _0x3f4835=_0x3fa63c['filter'](_0x483b8c=>{if(typeof _0x483b8c!==_0x2f6f9e['SXMaU'])return!![];return _0x483b8c!==opencodePluginName;});if(_0x3f4835[_0x52c92a(0xc6)]===_0x3fa63c[_0x52c92a(0xc6)])return![];return _0x2f6f9e['BvBCZ'](_0x3f4835['length'],0x0)?delete _0x5e9827[_0x52c92a(0xb2)]:_0x5e9827[_0x52c92a(0xb2)]=_0x3f4835,await writeFile(_0xf146eb,JSON[_0x52c92a(0xa3)](_0x5e9827,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x2d9573){const _0x229cf9=_0x1d922a,_0x4ef754={'xBVTA':function(_0x3f1c98,_0x1518a5){return _0x3f1c98(_0x1518a5);},'ItPUl':'ranger@trailhead','Eooyu':function(_0xef9926,_0x30e56b,_0x517662,_0x5bd4d1){return _0xef9926(_0x30e56b,_0x517662,_0x5bd4d1);},'lheoq':_0x229cf9(0xab),'hzMYG':_0x229cf9(0xc5),'Hfgts':function(_0x105fd1,_0x2e0bf7){return _0x105fd1===_0x2e0bf7;},'PmNFR':_0x229cf9(0xa1)};return new Promise(_0x56613b=>{const _0x6b9635=_0x229cf9,_0x73c78c=['plugin','uninstall',_0x4ef754['ItPUl']];_0x2d9573&&_0x73c78c[_0x6b9635(0xaa)]('--scope',_0x2d9573);const _0x24a14f=_0x4ef754[_0x6b9635(0x98)](spawn,_0x4ef754[_0x6b9635(0xb3)],_0x73c78c,{'stdio':_0x4ef754[_0x6b9635(0xa4)],'shell':_0x4ef754[_0x6b9635(0xcc)](process['platform'],'win32')});_0x24a14f['on'](_0x4ef754[_0x6b9635(0xbe)],_0x1b0467=>{const _0x41b5d3=_0x6b9635;_0x4ef754[_0x41b5d3(0xa5)](_0x56613b,_0x1b0467===0x0);}),_0x24a14f['on']('error',()=>{_0x56613b(![]);});});}async function removeMarketplace(){const _0x2a18df=_0x1d922a,_0x199e88={'vLaqT':function(_0x1096e1,_0x2f8f21,_0x30682d,_0x432136){return _0x1096e1(_0x2f8f21,_0x30682d,_0x432136);},'xpJBN':_0x2a18df(0xa6),'Quaab':_0x2a18df(0xb4),'AVwMd':_0x2a18df(0xb8)};return new Promise(_0x543821=>{const _0x369498=_0x2a18df,_0x25fed5=_0x199e88[_0x369498(0xb9)](spawn,_0x369498(0xab),['plugin',_0x369498(0xc7),_0x199e88['xpJBN'],'trailhead'],{'stdio':'pipe','shell':process['platform']===_0x199e88['Quaab']});_0x25fed5['on']('close',_0x29bd1e=>{_0x543821(_0x29bd1e===0x0);}),_0x25fed5['on'](_0x199e88[_0x369498(0xb7)],()=>{_0x543821(![]);});});}export async function clean(){const _0x179f01=_0x1d922a,_0x29b96c={'wYgJk':_0x179f01(0xca),'mJLQb':'โ\x20Removed\x20stored\x20credentials','ikimJ':function(_0x90a71b){return _0x90a71b();},'QtimJ':function(_0x5094d9,_0x421194,_0x243f10){return _0x5094d9(_0x421194,_0x243f10);},'ZGrQG':function(_0xa866be,_0x2f7348,_0x45c997){return _0xa866be(_0x2f7348,_0x45c997);},'hBuZS':function(_0x265f46,_0x29bf46){return _0x265f46(_0x29bf46);},'ENcHy':'project','emFsV':function(_0x116ef9,_0x36cecf,_0x104b52){return _0x116ef9(_0x36cecf,_0x104b52);},'lQfyB':function(_0x4c9b61,_0x3c92cd){return _0x4c9b61(_0x3c92cd);},'pXecL':_0x179f01(0xc0),'ZRyTF':function(_0x2258a3,_0x2b2c4a){return _0x2258a3(_0x2b2c4a);},'WdBQj':_0x179f01(0xba),'QBjLR':function(_0x5bd113,_0xc97ff8){return _0x5bd113(_0xc97ff8);},'GJAnW':'โ\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','UnzBO':_0x179f01(0xbc),'kAIoY':_0x179f01(0xbd)};console['log'](_0x29b96c['wYgJk']);let _0x4ab3a0=![];try{await deleteAllCredentials(),console['log'](_0x29b96c['mJLQb']),_0x4ab3a0=!![];}catch{}const _0x2af31=getCacheFile();existsSync(_0x2af31)&&(await rm(_0x2af31),_0x4ab3a0=!![]);const _0x3cf5bc=_0x29b96c[_0x179f01(0xcb)](getRangerDir);existsSync(_0x3cf5bc)&&(await rm(_0x3cf5bc,{'recursive':!![]}),console[_0x179f01(0xc2)]('โ\x20Removed\x20.ranger/\x20directory'),_0x4ab3a0=!![]);const _0x6df4bc=getProjectSkillsDir();for(const _0x96f0f3 of skillsToRemove){const _0xcb7870=_0x29b96c[_0x179f01(0xa2)](join,_0x6df4bc,_0x96f0f3);existsSync(_0xcb7870)&&(await _0x29b96c[_0x179f01(0xbf)](rm,_0xcb7870,{'recursive':!![]}),console[_0x179f01(0xc2)]('โ\x20Removed\x20project\x20skill:\x20'+_0x96f0f3),_0x4ab3a0=!![]);}const _0x23b6cd=getUserSkillsDir();for(const _0x5a1ed5 of skillsToRemove){const _0x51fd38=_0x29b96c['QtimJ'](join,_0x23b6cd,_0x5a1ed5);_0x29b96c[_0x179f01(0xa8)](existsSync,_0x51fd38)&&(await _0x29b96c['QtimJ'](rm,_0x51fd38,{'recursive':!![]}),console['log'](_0x179f01(0x9f)+_0x5a1ed5),_0x4ab3a0=!![]);}const _0x4ae4a2=_0x29b96c[_0x179f01(0xa8)](getOpencodeSkillsDir,_0x29b96c[_0x179f01(0x99)]);for(const _0x157276 of skillsToRemove){const _0x5f33ae=_0x29b96c['emFsV'](join,_0x4ae4a2,_0x157276);_0x29b96c['lQfyB'](existsSync,_0x5f33ae)&&(await _0x29b96c['QtimJ'](rm,_0x5f33ae,{'recursive':!![]}),console[_0x179f01(0xc2)](_0x179f01(0xc3)+_0x157276),_0x4ab3a0=!![]);}const _0x263db0=getOpencodeSkillsDir('user');for(const _0x5cbd0a of skillsToRemove){const _0x3dc44e=join(_0x263db0,_0x5cbd0a);existsSync(_0x3dc44e)&&(await _0x29b96c['ZGrQG'](rm,_0x3dc44e,{'recursive':!![]}),console[_0x179f01(0xc2)](_0x179f01(0xc4)+_0x5cbd0a),_0x4ab3a0=!![]);}const _0x35cba7=join(getOpencodeConfigDir('project'),_0x29b96c['pXecL']);await _0x29b96c[_0x179f01(0xb1)](removeOpencodePluginConfig,_0x35cba7)&&(console[_0x179f01(0xc2)](_0x179f01(0x9d)),_0x4ab3a0=!![]);const _0x29b2d7=join(getOpencodeConfigDir('user'),'opencode.json');await _0x29b96c[_0x179f01(0xad)](removeOpencodePluginConfig,_0x29b2d7)&&(console['log']('โ\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0x4ab3a0=!![]);const _0x4b13e7=await uninstallClaudePlugin();_0x4b13e7&&(console[_0x179f01(0xc2)](_0x29b96c['WdBQj']),_0x4ab3a0=!![]);const _0x16d807=await _0x29b96c['QBjLR'](uninstallClaudePlugin,_0x179f01(0x9e));_0x16d807&&(console[_0x179f01(0xc2)](_0x29b96c['GJAnW']),_0x4ab3a0=!![]);const _0x6869c3=await removeMarketplace();_0x6869c3&&(console['log'](_0x29b96c['UnzBO']),_0x4ab3a0=!![]),_0x4ab3a0?console[_0x179f01(0xc2)]('\x0aโ
\x20Cleanup\x20complete!\x0a'):console['log'](_0x29b96c['kAIoY']);}
|