@ranger-testing/ranger-cli 2.4.4 → 2.4.6
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 _0x27cb84=_0x49b2;(function(_0x4b694e,_0xf1ae9b){const _0x2cd13b=_0x49b2,_0x3e7b7e=_0x4b694e();while(!![]){try{const _0x220605=-parseInt(_0x2cd13b(0x16a))/0x1+-parseInt(_0x2cd13b(0x125))/0x2+-parseInt(_0x2cd13b(0x13f))/0x3*(parseInt(_0x2cd13b(0x226))/0x4)+parseInt(_0x2cd13b(0x1b0))/0x5+-parseInt(_0x2cd13b(0x159))/0x6+-parseInt(_0x2cd13b(0x15d))/0x7*(-parseInt(_0x2cd13b(0xfe))/0x8)+-parseInt(_0x2cd13b(0x1c8))/0x9*(-parseInt(_0x2cd13b(0x116))/0xa);if(_0x220605===_0xf1ae9b)break;else _0x3e7b7e['push'](_0x3e7b7e['shift']());}catch(_0x3344b3){_0x3e7b7e['push'](_0x3e7b7e['shift']());}}}(_0x53bf,0x27be9));import _0x4836a6 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x4fe98f=_0x49b2,_0x18f298={'BagJO':function(_0x4991c5,_0x2c9c08){return _0x4991c5(_0x2c9c08);},'TkHGd':function(_0x2f3011,_0x3d36fa){return _0x2f3011(_0x3d36fa);},'dVTee':'.ranger','aZfIY':_0x4fe98f(0x1f0)};let _0x2f37ca=process['cwd']();const _0x2414c1=_0x18f298[_0x4fe98f(0x118)](parse,_0x2f37ca)['root'];while(_0x2f37ca!==_0x2414c1){if(_0x18f298['TkHGd'](existsSync,join(_0x2f37ca,_0x18f298['dVTee']))||existsSync(join(_0x2f37ca,_0x18f298[_0x4fe98f(0x222)])))return _0x2f37ca;_0x2f37ca=dirname(_0x2f37ca);}return process[_0x4fe98f(0x18f)]();}function _0x49b2(_0x3d59a3,_0x1f915b){_0x3d59a3=_0x3d59a3-0xf0;const _0x53bf7e=_0x53bf();let _0x49b241=_0x53bf7e[_0x3d59a3];return _0x49b241;}function _0x53bf(){const _0x28747d=['Skip\x20Chromium\x20browser\x20check\x20and\x20installation','setup-ci','Include\x20soft-deleted\x20feature\x20reviews','update','offset','kFvnT','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','get-feedback\x20[id]','IDPtw','ranger\x20profile\x20ls','WIVqB','eRuOt','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','khcNt','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','uUBqM','998016fLMwpe','xAdYX','hwzxO','scenario','7kMbnYG','zdInX','feature\x20restore','RFMSW','\x20INCOMPLETE','allow-insecure-localhost','jMJnB','icAvW','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','DYJey','skillup','ranger\x20config\x20set','name','271783IssJfg','ZITrO','resume\x20[id]','ZcnIF','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','profile\x20config\x20set','oVJXY','env-name','limit','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','repeat','KYHSd','Profile\x20name','ranger\x20env\x20ls','feature\x20get-feedback','TPwLX','feature\x20delete','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','evaluation','ranger\x20go','ranger\x20feature\x20get-feedback','json','Unknown\x20error','tfTuD','uLjTA','exit','IIoPG','value','bKAMw','YCwXt','feature','sFIqy','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','knAFU','JJIjP','log','List\x20all\x20feature\x20reviews','cwd','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','trzLt','fhESK','skip-auth','resume','skip-chromium','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','dxbPu','profile-name','blocked','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','TgUWR','edit-scenario','epilogue','ehAgw','Name\x20of\x20the\x20profile','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','dctvf','message','include-deleted','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','\x20FAILED','rcCDK','Manage\x20profiles','EKFbD','You\x20must\x20specify\x20a\x20config\x20subcommand','RYZts','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','giCNA','encrypt-auth\x20<profile>','vJpcK','eGmUb','1044195oYSGQY','aNEHa','Ftlto','OvPOO','qRchG','YypoJ','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','unset\x20<profile>\x20<key>','Number\x20of\x20feature\x20reviews\x20to\x20skip','xrHCU','MAlIo','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','KYozz','XvrWZ','rOstR','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','yeGcA','print-access-token','jNdBq','cdp-endpoint','gWdUX','url','twzzF','boolean','34956KJNpCQ','UFuUF','vGala','list','add-scenario\x20<description>','strictCommands','Feature\x20review\x20name','nlNLG','force','ZGJfB','NZVXy','CHmfA','ranger\x20config\x20unset','mRYws','start-path','setup-header','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','current-branch','delete\x20[id]','length','aCbSl','New\x20scenario\x20description','show\x20[id]','--checklist','cnBHM','includes','.\x20[','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','HSKhF','PwWkK','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','VixvY','item','parse','\x20is\x20now\x20','config','gmIqg','xscpd','vDnke','qWcLX','.env','JUhDr','positional','verify-feature','qvvKe','description','scope','delete','DrHSd','MvoLn','RVVWm','JFtOB','some','pTMmZ','sfggy','Install\x20scope\x20for\x20skills','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','alias','disable','error','trackCommandError','Scenario\x20index\x20(1-based)','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','Config\x20value','config\x20set','lpyTH','ZBIjP','report\x20[id]','claude','version','rDTgp','CbzZt','QhQDq','auth','kyZrE','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','status','opencode','incomplete','Optional\x20feature\x20ID','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','ranger\x20profile\x20update','report','use\x20<env-name>','yijxH','pAvEY','dYENW','ucYhu','slice','checklist','aZfIY','Unknown\x20command','restore\x20<id>','NXLJw','8vBlmqq','use','ranger\x20resume','IAGdy','faKcx','EwPsW','RpKEb','sfgUV','LUycd','MTPiM','profile\x20update','htieP','GypqQ','base-url','vmvyL','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','ranger\x20config\x20list','string','scriptName','ranger\x20profile\x20config\x20get','argv','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','aFhtP','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','ValYB','profile\x20use','mKrGe','project','create','ranger\x20setup','\x20PARTIAL','tJOCw','restore','feature\x20add-checklist-item','debug-address-comments','get\x20<profile>\x20<key>','Initialize\x20Ranger\x20in\x20your\x20project','token','fRtvT','YHGDn','command','JIDyv','verified','start\x20[token]','1123880bnFHFU','Summary:\x20','nfKqu','user','HjmcL','Feature\x20review\x20ID\x20to\x20restore','OABsl','oPenu','EncVE','usage','Install\x20Ranger\x20skills','WBZpK','pzHkL','ranger\x20profile\x20use','SFlwh','CnaEm','lntXF','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','array','ZHDRf','jclJN','exclude-scenario','QpoGK','qNsFX','1150lQFqrS','list\x20<profile>','BagJO','notes','BPwFD','JKicO','tjayt','ranger\x20show','session-id','Skip\x20Chromium\x20browser\x20installation','gcnMK','profile','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','profile\x20ls','DKIWN','153160iQpENN','NjKCO','key','start','Feature\x20review\x20ID','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','partial','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','List\x20all\x20config\x20for\x20a\x20profile','env','demandCommand','yAjBM','Jalxr','aQiYz','APbwS','option','Restore\x20a\x20soft-deleted\x20feature\x20review','number','NfSiD','model','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','config\x20unset','qTuYB','exitCode','task','\x0aIssues:','177738FVDJZI','YOSBf','zDlYR','issues','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','headed','ranger\x20feature\x20list','ranger\x20create','ranger\x20feature\x20show','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'];_0x53bf=function(){return _0x28747d;};return _0x53bf();}_0x4836a6[_0x27cb84(0x1eb)]({'path':join(findProjectRoot(),_0x27cb84(0x1f0))});import _0x337b8c 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 _0x3d79c0=>{const _0x56e950=_0x27cb84,_0x38d89b={'HMPrA':function(_0x4483ef){return _0x4483ef();}},_0x4c1462=_0x38d89b['HMPrA'](getCurrentCollector);_0x4c1462&&await _0x4c1462[_0x56e950(0x204)](_0x3d79c0),process[_0x56e950(0x13c)]=0x1;});const rawArgs=process['argv'][_0x27cb84(0x220)](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(_0x2d1805,_0x5e7804){const _0x35bd30=_0x27cb84;console[_0x35bd30(0x203)]('\x0a'+_0x2d1805+_0x35bd30(0x1ea)+_0x5e7804+'\x0a');}function argUsed(_0x130f2e){const _0x388765=_0x27cb84;return rawArgs[_0x388765(0x1fc)](_0x336c5c=>_0x336c5c===_0x130f2e||_0x336c5c['startsWith'](_0x130f2e+'='));}function warnFlagRenamed(_0x1f46df,_0x241198,_0x14d71e){argUsed(_0x241198)&&warnRenamed(_0x1f46df+'\x20'+_0x241198,_0x1f46df+'\x20'+_0x14d71e);}async function runGoCommand(_0x467d5f,_0x3dd303=![]){const _0x219b3b=_0x27cb84,_0x103a52={'YSIHy':function(_0x2e3f78,_0x1312fe,_0x418921){return _0x2e3f78(_0x1312fe,_0x418921);},'RFMSW':_0x219b3b(0x17d),'WIVqB':function(_0x3c4fad,_0x2c8b3d,_0x3a770f,_0x422647){return _0x3c4fad(_0x2c8b3d,_0x3a770f,_0x422647);},'khcNt':'--env','ttXUE':'--profile','bKAMw':'--task','uuKSb':function(_0x301d27,_0x2f7e02){return _0x301d27(_0x2f7e02);},'YCwXt':function(_0x2e15fa,_0xe139a1){return _0x2e15fa===_0xe139a1;},'OABsl':_0x219b3b(0xfc),'hQimb':function(_0x2a7ac6,_0x3b14e7){return _0x2a7ac6===_0x3b14e7;},'ilVlV':_0x219b3b(0x216),'GypqQ':_0x219b3b(0x161),'MAlIo':_0x219b3b(0x12b),'CnaEm':'blocked','ptRSh':_0x219b3b(0x1a5),'vmvyL':_0x219b3b(0x13e)};_0x3dd303&&_0x103a52['YSIHy'](warnRenamed,'ranger\x20verify-feature',_0x103a52[_0x219b3b(0x160)]);_0x103a52[_0x219b3b(0x153)](warnFlagRenamed,'ranger\x20go',_0x103a52[_0x219b3b(0x156)],_0x103a52['ttXUE']),warnFlagRenamed(_0x103a52[_0x219b3b(0x160)],_0x103a52[_0x219b3b(0x186)],'--notes'),warnFlagRenamed(_0x219b3b(0x17d),'--item','--scenario');const _0x1e31bd=await loadRangerConfig(),_0x44739f=isByokEnabled(),_0x1454fa=_0x467d5f['model'],_0x585fd5=_0x1e31bd[_0x219b3b(0x138)],_0x53fd6f=await _0x103a52['uuKSb'](verifyFeature,{'featureId':_0x467d5f[_0x219b3b(0x188)],'profile':_0x467d5f['profile']??_0x467d5f['env'],'notes':_0x467d5f[_0x219b3b(0x119)]??_0x467d5f[_0x219b3b(0x13d)],'scenario':_0x467d5f['scenario']??_0x467d5f[_0x219b3b(0x1e8)],'startPath':_0x467d5f[_0x219b3b(0x1d6)],'debugOutcome':_0x467d5f['debug-outcome'],'debugAddressComments':_0x467d5f[_0x219b3b(0xf4)],'headed':_0x467d5f['headed'],'byokEnabled':_0x44739f,'flagVerifyModel':_0x1454fa,'configVerifyModel':_0x585fd5});console['log']('\x0a'+'='[_0x219b3b(0x174)](0x3c)),console[_0x219b3b(0x18d)](_0x103a52['YCwXt'](_0x53fd6f[_0x219b3b(0x17c)],_0x103a52[_0x219b3b(0x104)])?'\x20VERIFIED':_0x103a52['hQimb'](_0x53fd6f['evaluation'],_0x103a52['ilVlV'])?_0x103a52[_0x219b3b(0x232)]:_0x53fd6f[_0x219b3b(0x17c)]===_0x103a52[_0x219b3b(0x1ba)]?_0x219b3b(0xf0):_0x103a52[_0x219b3b(0x187)](_0x53fd6f['evaluation'],_0x103a52[_0x219b3b(0x10d)])?'\x20BLOCKED':_0x103a52['ptRSh']),console['log']('='[_0x219b3b(0x174)](0x3c)),console[_0x219b3b(0x18d)](_0x219b3b(0xff)+_0x53fd6f['summary']),console['log']('Evaluation:\x20'+_0x53fd6f[_0x219b3b(0x17c)]),console['log']('Reason:\x20'+_0x53fd6f['evaluationReason']),_0x53fd6f[_0x219b3b(0x142)]?.[_0x219b3b(0x1db)]&&(console[_0x219b3b(0x18d)](_0x103a52[_0x219b3b(0x234)]),_0x53fd6f[_0x219b3b(0x142)]['forEach']((_0x3452fb,_0x2d4829)=>{const _0x4ac369=_0x219b3b;console[_0x4ac369(0x18d)]('\x0a'+(_0x2d4829+0x1)+_0x4ac369(0x1e2)+_0x3452fb['severity']+']\x20'+_0x3452fb[_0x4ac369(0x1f5)]);})),process[_0x219b3b(0x183)](_0x53fd6f['evaluation']===_0x103a52['OABsl']?0x0:0x1);}_0x337b8c(process[_0x27cb84(0x23a)]['slice'](0x2))[_0x27cb84(0x238)]('ranger')['usage'](TOP_LEVEL_HELP)[_0x27cb84(0x20d)](getCurrentVersion())[_0x27cb84(0xfa)]('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x663625=>{const _0x215920=_0x27cb84,_0x46e0f9={'knAFU':'name','BPwFD':_0x215920(0x1ce),'vnzKQ':'description','VXrOn':'Feature\x20review\x20description'};return _0x663625[_0x215920(0x1f2)](_0x46e0f9[_0x215920(0x18b)],{'type':_0x215920(0x237),'description':_0x46e0f9[_0x215920(0x11a)],'demandOption':!![]})[_0x215920(0x134)](_0x46e0f9['vnzKQ'],{'type':_0x215920(0x237),'alias':'d','description':_0x46e0f9['VXrOn']})[_0x215920(0x134)]('scenario',{'type':_0x215920(0x110),'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option']('checklist',{'type':_0x215920(0x110),'hidden':!![]});},async _0x596409=>{const _0x580caa=_0x27cb84,_0x334bbb={'XkeBQ':function(_0x501298,_0xc5387,_0x4bb423,_0x164449){return _0x501298(_0xc5387,_0x4bb423,_0x164449);},'hAgDS':_0x580caa(0x146),'LqUla':_0x580caa(0x1df),'HqcDt':_0x580caa(0x242)};_0x334bbb['XkeBQ'](warnFlagRenamed,_0x334bbb['hAgDS'],_0x334bbb['LqUla'],'--scenario');const _0x4174e4=_0x596409['scenario']||_0x596409['checklist'];await withTelemetry(_0x334bbb['HqcDt'],()=>featureCreate(_0x596409['name'],{'description':_0x596409[_0x580caa(0x1f5)],'scenarios':_0x4174e4}));})['command']('list',_0x27cb84(0x18e),_0x59951b=>{const _0x68899c=_0x27cb84,_0x5422f3={'ipqBZ':_0x68899c(0x190),'tfTuD':'offset','yijxH':'number','zaGXB':_0x68899c(0x1b8)};return _0x59951b['option'](_0x68899c(0x1d9),{'type':'boolean','description':_0x5422f3['ipqBZ']})['option'](_0x68899c(0x172),{'type':_0x68899c(0x136),'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option'](_0x5422f3[_0x68899c(0x181)],{'type':_0x5422f3[_0x68899c(0x21c)],'alias':'o','description':_0x5422f3['zaGXB'],'default':0x0})['option'](_0x68899c(0x1a3),{'type':_0x68899c(0x1c7),'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x958e46=>{const _0x274599=_0x27cb84,_0xc2bde={'vEFkA':function(_0xb9e16a,_0x133d8d,_0xef4437){return _0xb9e16a(_0x133d8d,_0xef4437);},'JFtOB':'list'};await _0xc2bde['vEFkA'](withTelemetry,_0xc2bde[_0x274599(0x1fb)],()=>featureList({'currentBranch':_0x958e46['current-branch'],'limit':_0x958e46['limit'],'offset':_0x958e46[_0x274599(0x14d)],'includeDeleted':_0x958e46[_0x274599(0x1a3)]}));})[_0x27cb84(0xfa)]('show\x20[id]','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x43878e=>{const _0x5edb9e=_0x27cb84;return _0x43878e[_0x5edb9e(0x1f2)]('id',{'type':_0x5edb9e(0x237),'description':'Feature\x20review\x20ID'});},async _0x1aa3a0=>{const _0x1315ef=_0x27cb84,_0x1ae800={'trzLt':'show'};await withTelemetry(_0x1ae800[_0x1315ef(0x191)],()=>featureShow(_0x1aa3a0['id']));})[_0x27cb84(0xfa)](_0x27cb84(0x16c),_0x27cb84(0x235),_0x5a17c1=>{const _0x33217b=_0x27cb84;return _0x5a17c1['positional']('id',{'type':_0x33217b(0x237),'description':_0x33217b(0x1a0)});},async _0xb9258d=>{const _0x334371=_0x27cb84,_0x2cbef5={'Kvhvl':_0x334371(0x194)};await withTelemetry(_0x2cbef5['Kvhvl'],()=>featureResume(_0xb9258d['id']));})[_0x27cb84(0xfa)](_0x27cb84(0x1cc),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x536312=>{const _0x163447=_0x27cb84,_0x39f08b={'Jalxr':_0x163447(0x1f5),'JIDyv':_0x163447(0x237),'KYHSd':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x536312[_0x163447(0x1f2)](_0x39f08b[_0x163447(0x131)],{'type':_0x39f08b[_0x163447(0xfb)],'description':'Scenario\x20description','demandOption':!![]})['option']('id',{'type':_0x39f08b['JIDyv'],'description':_0x39f08b[_0x163447(0x175)]});},async _0x419765=>{await withTelemetry('add-scenario',()=>featureAddScenario(_0x419765['description'],_0x419765['id']));})[_0x27cb84(0xfa)]('edit-scenario\x20<description>',_0x27cb84(0x1bb),_0x3d61cc=>{const _0x23e3ec=_0x27cb84,_0x48c77a={'pzHkL':'description','BzAcH':_0x23e3ec(0x237),'gmIqg':_0x23e3ec(0x136),'tNLUv':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x3d61cc[_0x23e3ec(0x1f2)](_0x48c77a[_0x23e3ec(0x10a)],{'type':_0x48c77a['BzAcH'],'description':_0x23e3ec(0x1dd),'demandOption':!![]})[_0x23e3ec(0x134)](_0x23e3ec(0x15c),{'type':_0x48c77a[_0x23e3ec(0x1ec)],'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})[_0x23e3ec(0x134)]('id',{'type':'string','description':_0x48c77a['tNLUv']});},async _0x29e1be=>{const _0xb25b32=_0x27cb84,_0x5036ea={'rqPZr':function(_0xe909e6,_0x25c31b,_0x5ea38f){return _0xe909e6(_0x25c31b,_0x5ea38f);},'sZiXe':_0xb25b32(0x19c)};await _0x5036ea['rqPZr'](withTelemetry,_0x5036ea['sZiXe'],()=>featureEditScenario(_0x29e1be[_0xb25b32(0x1f5)],{'id':_0x29e1be['id'],'scenario':_0x29e1be['scenario']}));})[_0x27cb84(0xfa)](_0x27cb84(0x20b),_0x27cb84(0x12c),_0x4cbc33=>{const _0x3fe8d9=_0x27cb84,_0x16a10c={'ZcnIF':'string','hcoGj':'Feature\x20review\x20ID','ENKPG':_0x3fe8d9(0x113),'TPwLX':'json'};return _0x4cbc33[_0x3fe8d9(0x1f2)]('id',{'type':_0x16a10c[_0x3fe8d9(0x16d)],'description':_0x16a10c['hcoGj']})['option'](_0x16a10c['ENKPG'],{'type':_0x3fe8d9(0x110),'description':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'})[_0x3fe8d9(0x134)](_0x16a10c[_0x3fe8d9(0x179)],{'type':'boolean','description':_0x3fe8d9(0x165),'default':![]});},async _0x34f372=>{const _0x3e67ca=_0x27cb84,_0x2492ad={'tjayt':_0x3e67ca(0x113),'twzzF':function(_0x19d0b2,_0x28aca2,_0xc5d903){return _0x19d0b2(_0x28aca2,_0xc5d903);}},_0x18ba81=_0x34f372[_0x2492ad[_0x3e67ca(0x11c)]],_0x19e6a0=_0x18ba81?_0x18ba81['map'](_0x126bd6=>Number(_0x126bd6)):undefined;await _0x2492ad[_0x3e67ca(0x1c6)](withTelemetry,_0x3e67ca(0x21a),()=>featureReportPrDescription(_0x34f372['id'],{'excludeScenarios':_0x19e6a0,'json':_0x34f372[_0x3e67ca(0x17f)]}));})['command']('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x1fad26=>{const _0x47989d=_0x27cb84,_0x3565a7={'jMJnB':_0x47989d(0x16e)};return _0x1fad26['positional']('id',{'type':_0x47989d(0x237),'description':_0x3565a7[_0x47989d(0x163)]});},async _0x10246d=>{const _0x3179f6=_0x27cb84,_0x4993d4={'HIRgk':function(_0x5881ec,_0x1a373c,_0x5c5196){return _0x5881ec(_0x1a373c,_0x5c5196);},'ZGJfB':'get-review'};await _0x4993d4['HIRgk'](withTelemetry,_0x4993d4[_0x3179f6(0x1d1)],()=>featureGetReview(_0x10246d['id']));})[_0x27cb84(0xfa)]('delete\x20[id]',_0x27cb84(0x14f),_0x2c5a7d=>{const _0x2453b9=_0x27cb84,_0x4a052b={'bzdee':'string','BppaV':_0x2453b9(0x129)};return _0x2c5a7d['positional']('id',{'type':_0x4a052b['bzdee'],'description':_0x4a052b['BppaV']});},async _0x2c361e=>{const _0x521f05=_0x27cb84,_0x46606c={'ihOQH':function(_0xdf7db4,_0x44416b,_0x2ccd00){return _0xdf7db4(_0x44416b,_0x2ccd00);}};await _0x46606c['ihOQH'](withTelemetry,_0x521f05(0x1f7),()=>featureDelete(_0x2c361e['id']));})[_0x27cb84(0xfa)]('restore\x20<id>',_0x27cb84(0x135),_0x1c3b9b=>{const _0x113cdd=_0x27cb84,_0x70c7f6={'vDnke':'string'};return _0x1c3b9b[_0x113cdd(0x1f2)]('id',{'type':_0x70c7f6[_0x113cdd(0x1ee)],'description':_0x113cdd(0x103),'demandOption':!![]});},async _0x32a970=>{const _0x4c8bf8=_0x27cb84,_0x68dafd={'CHmfA':function(_0x103ac6,_0x330906,_0x175a62){return _0x103ac6(_0x330906,_0x175a62);}};await _0x68dafd[_0x4c8bf8(0x1d3)](withTelemetry,_0x4c8bf8(0xf2),()=>featureRestore(_0x32a970['id']));})['command']('setup\x20[token]',_0x27cb84(0xf6),_0x4a47de=>{const _0x40539e=_0x27cb84,_0x34ee96={'ywzfj':'boolean','fItUY':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','NfSiD':_0x40539e(0x101),'JNqRh':_0x40539e(0x241),'qijqY':_0x40539e(0x148),'nlNLG':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','iIchE':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','eGmUb':'opencode','ufBnM':_0x40539e(0x162)};return _0x4a47de['positional']('token',{'type':_0x40539e(0x237),'description':_0x40539e(0x143)})['option'](_0x40539e(0x195),{'type':_0x34ee96['ywzfj'],'description':_0x34ee96['fItUY'],'default':![]})['option'](_0x40539e(0x1f6),{'type':'string','choices':[_0x34ee96[_0x40539e(0x137)],_0x34ee96['JNqRh']],'description':_0x34ee96['qijqY']})[_0x40539e(0x134)]('url',{'type':_0x40539e(0x237),'description':_0x34ee96[_0x40539e(0x1cf)]})[_0x40539e(0x134)](_0x40539e(0x1d0),{'type':_0x40539e(0x1c7),'description':_0x34ee96['iIchE'],'default':![]})['option'](_0x34ee96[_0x40539e(0x1af)],{'type':_0x40539e(0x1c7),'description':_0x40539e(0x12a),'default':![]})['option'](_0x34ee96['ufBnM'],{'type':_0x40539e(0x1c7),'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]});},async _0xc67270=>{const _0x5cf445=_0x27cb84;await withTelemetry('start',_0x25ec29=>start(_0xc67270[_0x5cf445(0xf7)],{'skipChromium':_0xc67270['skip-chromium'],'scope':_0xc67270[_0x5cf445(0x1f6)],'url':_0xc67270['url'],'force':_0xc67270[_0x5cf445(0x1d0)],'opencode':_0xc67270[_0x5cf445(0x215)],'allowInsecureLocalhost':_0xc67270[_0x5cf445(0x162)]},_0x25ec29));})[_0x27cb84(0xfa)]('setup-ci\x20<token>',_0x27cb84(0x1b6),_0x1702e5=>{const _0x22f565=_0x27cb84,_0x3d2856={'vOudp':'token','RVVWm':'string','LwJxT':_0x22f565(0x155),'MvoLn':_0x22f565(0x233),'JUhDr':_0x22f565(0x195),'XvrWZ':_0x22f565(0x1c7)};return _0x1702e5['positional'](_0x3d2856['vOudp'],{'type':_0x3d2856[_0x22f565(0x1fa)],'description':'Ranger\x20API\x20token','demandOption':!![]})[_0x22f565(0x134)]('profile',{'type':'string','description':_0x3d2856['LwJxT']})['option'](_0x3d2856[_0x22f565(0x1f9)],{'type':_0x22f565(0x237),'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})[_0x22f565(0x134)](_0x3d2856[_0x22f565(0x1f1)],{'type':_0x3d2856[_0x22f565(0x1bd)],'description':_0x22f565(0x11f),'default':![]});},async _0x45a98a=>{const _0x40001e=_0x27cb84,_0x4bbf00={'HjmcL':function(_0x52825e,_0x41f06e,_0x1ac1ff){return _0x52825e(_0x41f06e,_0x1ac1ff);},'JjtyF':_0x40001e(0x14a)};await _0x4bbf00[_0x40001e(0x102)](withTelemetry,_0x4bbf00['JjtyF'],_0x19b8ea=>setupCi(_0x45a98a['token'],{'profile':_0x45a98a['profile'],'baseUrl':_0x45a98a[_0x40001e(0x233)],'skipChromium':_0x45a98a['skip-chromium']},_0x19b8ea));})[_0x27cb84(0xfa)]('login',_0x27cb84(0x1bf),()=>{},async()=>{const _0x27d05e={'UlUMq':function(_0x38d8bf,_0x142ed1,_0x252790){return _0x38d8bf(_0x142ed1,_0x252790);},'DLUTu':'login'};await _0x27d05e['UlUMq'](withTelemetry,_0x27d05e['DLUTu'],()=>login());})['command'](_0x27cb84(0x167),_0x27cb84(0x108),_0x5809d9=>{const _0x41b09d=_0x27cb84,_0x171e74={'zJFBw':'opencode','wCdam':'boolean','dctvf':'scope','yeGcA':'string','XnYiR':_0x41b09d(0x241),'mRYws':_0x41b09d(0x1ff)};return _0x5809d9[_0x41b09d(0x134)](_0x171e74['zJFBw'],{'type':_0x171e74['wCdam'],'description':'Install\x20skills\x20for\x20OpenCode','default':![]})[_0x41b09d(0x134)](_0x171e74[_0x41b09d(0x1a1)],{'type':_0x171e74[_0x41b09d(0x1c0)],'choices':[_0x41b09d(0x101),_0x171e74['XnYiR']],'description':_0x171e74[_0x41b09d(0x1d5)]});},async _0xeb4e7e=>{const _0x56ffaa=_0x27cb84,_0x3382b5={'oPenu':function(_0x20831c,_0x10dce7){return _0x20831c(_0x10dce7);},'JvgBI':function(_0x396a7d,_0x58d4ac,_0x347b59){return _0x396a7d(_0x58d4ac,_0x347b59);},'ipnzS':_0x56ffaa(0x167)},_0x536d02=_0x3382b5[_0x56ffaa(0x105)](Boolean,_0xeb4e7e['opencode']);await _0x3382b5['JvgBI'](withTelemetry,_0x3382b5['ipnzS'],()=>skillup({'autoInstall':_0xeb4e7e[_0x56ffaa(0x1f6)],'platform':_0x536d02?_0x56ffaa(0x215):_0x56ffaa(0x20c)}));})[_0x27cb84(0xfa)]('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x10306c=_0x27cb84,_0x5d12a2={'jNdBq':function(_0x199261,_0x58508c,_0x576300){return _0x199261(_0x58508c,_0x576300);},'fSghe':'clean'};await _0x5d12a2[_0x10306c(0x1c2)](withTelemetry,_0x5d12a2['fSghe'],()=>clean());})[_0x27cb84(0xfa)](_0x27cb84(0x121),_0x27cb84(0x1a7),_0x526d4f=>{const _0xab5a32=_0x27cb84,_0xb9f718={'YOSBf':_0xab5a32(0x237),'tJOCw':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','WBZpK':_0xab5a32(0x193),'HSKhF':_0xab5a32(0x23d),'nfKqu':'force','LlysI':_0xab5a32(0x1c3),'DvxYw':'allow-insecure-localhost','EUusl':_0xab5a32(0x18a),'gcnMK':_0xab5a32(0x198),'pZheB':_0xab5a32(0x19f),'lwwyT':function(_0x5c04fb,_0x3fce6c,_0xb6ef37){return _0x5c04fb(_0x3fce6c,_0xb6ef37);},'NjKCO':'profile','zdInX':_0xab5a32(0x123),'WAlvs':function(_0x27f295,_0x129e77,_0x2d5271){return _0x27f295(_0x129e77,_0x2d5271);},'fhESK':_0xab5a32(0x230),'gWdUX':_0xab5a32(0x176),'vJpcK':'key','NJHwh':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','eQUMb':function(_0x20b5f7,_0x5d48e0,_0x3a2995){return _0x20b5f7(_0x5d48e0,_0x3a2995);},'oQXxz':_0xab5a32(0x16f),'ugvFT':function(_0x24ebce,_0x54dd16,_0xb7ce5e){return _0x24ebce(_0x54dd16,_0xb7ce5e);},'RpKEb':'Get\x20a\x20config\x20value','IGHzU':_0xab5a32(0x117),'NXLJw':_0xab5a32(0x12d),'ePJWl':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','fgkYF':'use\x20<profile-name>','ZHDRf':'Switch\x20to\x20using\x20a\x20specific\x20profile','xscpd':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','SFlwh':'List\x20all\x20profiles','aQiYz':'Update\x20authentication\x20for\x20an\x20existing\x20profile','ehAgw':'config','rOstR':'Manage\x20profile\x20configuration'};return _0x526d4f[_0xab5a32(0x107)](PROFILE_HELP)[_0xab5a32(0xfa)]('add\x20<profile-name>','Add\x20profile\x20configuration',_0x5d0e2e=>{const _0x11f4e0=_0xab5a32;return _0x5d0e2e['positional'](_0x11f4e0(0x198),{'type':_0xb9f718['YOSBf'],'description':_0x11f4e0(0x206),'demandOption':!![]})['option']('ci',{'type':'boolean','description':_0xb9f718[_0x11f4e0(0xf1)],'default':![]})[_0x11f4e0(0x134)](_0xb9f718[_0x11f4e0(0x109)],{'type':'boolean','description':_0x11f4e0(0x19a),'default':![]})['option']('url',{'type':_0xb9f718['YOSBf'],'description':_0xb9f718[_0x11f4e0(0x1e4)]})['option'](_0xb9f718[_0x11f4e0(0x100)],{'type':_0x11f4e0(0x1c7),'description':_0x11f4e0(0x1ab),'default':![]})['option'](_0xb9f718['LlysI'],{'type':_0xb9f718['YOSBf'],'description':_0x11f4e0(0x1e3)})['option'](_0xb9f718['DvxYw'],{'type':_0x11f4e0(0x1c7),'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]})['option']('safe-mode',{'type':_0x11f4e0(0x1c7),'description':_0x11f4e0(0x213),'default':![]})[_0x11f4e0(0x134)]('setup-header',{'type':_0xb9f718[_0x11f4e0(0x140)],'array':!![],'description':_0xb9f718['EUusl']});},async _0x2576fa=>{const _0x456a99=_0xab5a32;await withTelemetry('profile\x20add',_0x588ddf=>addEnv(_0x2576fa[_0x456a99(0x198)],{'ci':_0x2576fa['ci'],'skipAuth':_0x2576fa[_0x456a99(0x193)],'url':_0x2576fa[_0x456a99(0x1c5)],'force':_0x2576fa[_0x456a99(0x1d0)],'cdpEndpoint':_0x2576fa['cdp-endpoint'],'allowInsecureLocalhost':_0x2576fa[_0x456a99(0x162)],'safeMode':_0x2576fa['safe-mode'],'setupHeader':_0x2576fa[_0x456a99(0x1d7)]},_0x588ddf),{'isElectron':Boolean(_0x2576fa['cdp-endpoint'])});})[_0xab5a32(0xfa)](_0xb9f718['fgkYF'],_0xb9f718[_0xab5a32(0x111)],_0x138206=>{const _0x50c2ef=_0xab5a32;return _0x138206['positional'](_0xb9f718[_0x50c2ef(0x120)],{'type':_0xb9f718['YOSBf'],'description':_0xb9f718['pZheB'],'demandOption':!![]});},async _0x343163=>{const _0x1b6e2d=_0xab5a32;await _0xb9f718['lwwyT'](withTelemetry,_0x1b6e2d(0x23f),()=>useEnv(_0x343163['profile-name']));})['command'](_0xab5a32(0x1ad),_0xb9f718[_0xab5a32(0x1ed)],_0x54516d=>{const _0x1ab46b=_0xab5a32;return _0x54516d['positional'](_0xb9f718[_0x1ab46b(0x126)],{'type':_0x1ab46b(0x237),'description':_0x1ab46b(0x176),'demandOption':!![]});},async _0x20c532=>{const _0x4f176a=_0xab5a32;await _0xb9f718['lwwyT'](withTelemetry,'profile\x20encrypt-auth',()=>authEncrypt(_0x20c532[_0x4f176a(0x121)]));})['command']('ls',_0xb9f718[_0xab5a32(0x10c)],()=>{},async()=>{const _0x1b7045=_0xab5a32;await withTelemetry(_0xb9f718[_0x1b7045(0x15e)],()=>envList());})[_0xab5a32(0xfa)]('update\x20<profile-name>',_0xb9f718[_0xab5a32(0x132)],_0x199387=>{const _0x20c5ec=_0xab5a32;return _0x199387['positional'](_0x20c5ec(0x198),{'type':_0xb9f718[_0x20c5ec(0x140)],'description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]})['option'](_0xb9f718['DvxYw'],{'type':'boolean','description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'});},async _0x107ca0=>{const _0x297cd2=_0xab5a32;await _0xb9f718['WAlvs'](withTelemetry,_0xb9f718[_0x297cd2(0x192)],_0x4736a9=>updateEnv(_0x107ca0[_0x297cd2(0x198)],_0x4736a9,{'allowInsecureLocalhost':_0x107ca0[_0x297cd2(0x162)]}));})[_0xab5a32(0xfa)](_0xb9f718[_0xab5a32(0x19e)],_0xb9f718[_0xab5a32(0x1be)],_0x23f465=>{const _0x8cf8a6=_0xab5a32,_0x451ce0={'nEsRI':_0xb9f718['oQXxz'],'mKrGe':_0xb9f718['NjKCO'],'aCbSl':_0xb9f718[_0x8cf8a6(0x1c4)],'ZBIjP':_0xb9f718[_0x8cf8a6(0x140)],'zrRgO':function(_0x43c723,_0x442872,_0x4432d8){return _0xb9f718['ugvFT'](_0x43c723,_0x442872,_0x4432d8);},'zDlYR':'profile\x20config\x20unset'};return _0x23f465['usage'](PROFILE_CONFIG_HELP)['command']('set\x20<profile>\x20<key>\x20<value>','Set\x20a\x20config\x20value',_0x5680b7=>{const _0x36a05c=_0x8cf8a6;return _0x5680b7[_0x36a05c(0x1f2)]('profile',{'type':_0xb9f718[_0x36a05c(0x140)],'description':_0xb9f718['gWdUX'],'demandOption':!![]})[_0x36a05c(0x1f2)](_0xb9f718[_0x36a05c(0x1ae)],{'type':_0xb9f718['YOSBf'],'description':_0xb9f718['NJHwh'],'demandOption':!![]})['positional']('value',{'type':_0x36a05c(0x237),'description':_0x36a05c(0x207),'demandOption':!![]});},async _0x3a5b3d=>{const _0x47ae8d=_0x8cf8a6;await withTelemetry(_0x451ce0['nEsRI'],()=>configSet(_0x3a5b3d[_0x47ae8d(0x121)],_0x3a5b3d['key'],_0x3a5b3d['value']));})['command'](_0x8cf8a6(0xf5),_0xb9f718[_0x8cf8a6(0x22c)],_0xec97de=>{const _0x2a3739=_0x8cf8a6;return _0xec97de[_0x2a3739(0x1f2)](_0x451ce0[_0x2a3739(0x240)],{'type':'string','description':_0x451ce0[_0x2a3739(0x1dc)],'demandOption':!![]})['positional']('key',{'type':_0x451ce0['ZBIjP'],'description':'Config\x20key','demandOption':!![]});},async _0x2463c2=>{await withTelemetry('profile\x20config\x20get',()=>configGet(_0x2463c2['profile'],_0x2463c2['key']));})[_0x8cf8a6(0xfa)](_0xb9f718['IGHzU'],_0xb9f718[_0x8cf8a6(0x225)],_0x3e611a=>{const _0x45d9f0=_0x8cf8a6;return _0x3e611a['positional'](_0x45d9f0(0x121),{'type':_0xb9f718['YOSBf'],'description':_0x45d9f0(0x176),'demandOption':!![]});},async _0x5c19de=>{await _0xb9f718['eQUMb'](withTelemetry,'profile\x20config\x20list',()=>configList(_0x5c19de['profile']));})[_0x8cf8a6(0xfa)](_0x8cf8a6(0x1b7),'Remove\x20a\x20config\x20value',_0x5351b1=>{const _0x190807=_0x8cf8a6;return _0x5351b1[_0x190807(0x1f2)](_0x451ce0[_0x190807(0x240)],{'type':_0x190807(0x237),'description':_0x190807(0x176),'demandOption':!![]})[_0x190807(0x1f2)](_0x190807(0x127),{'type':_0x451ce0[_0x190807(0x20a)],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x47f23b=>{const _0x3d928e=_0x8cf8a6;await _0x451ce0['zrRgO'](withTelemetry,_0x451ce0[_0x3d928e(0x141)],()=>configUnset(_0x47f23b[_0x3d928e(0x121)],_0x47f23b['key']));})[_0x8cf8a6(0x12f)](0x1,_0xb9f718['ePJWl']);})[_0xab5a32(0x12f)](0x1,'You\x20must\x20specify\x20a\x20profile\x20subcommand');})[_0x27cb84(0xfa)](_0x27cb84(0x214),_0x27cb84(0x200),()=>{},async()=>{const _0x234e59=_0x27cb84,_0x5c09cd={'faKcx':'status'};await withTelemetry(_0x5c09cd[_0x234e59(0x22a)],()=>status());})[_0x27cb84(0xfa)](_0x27cb84(0x14c),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x42ad4e=_0x27cb84,_0x924c86={'PkniM':_0x42ad4e(0x14c)};await withTelemetry(_0x924c86['PkniM'],()=>update());})[_0x27cb84(0xfa)](_0x27cb84(0x1c1),'Print\x20the\x20current\x20CLI\x20access\x20token',()=>{},async()=>{const _0x5b66fb=_0x27cb84,_0x1b23be={'WROSp':function(_0x1ece64){return _0x1ece64();},'fUdFJ':function(_0x43689e,_0x2c56a0,_0x55302b){return _0x43689e(_0x2c56a0,_0x55302b);},'NZVXy':'print-access-token'};await _0x1b23be['fUdFJ'](withTelemetry,_0x1b23be[_0x5b66fb(0x1d2)],async()=>{const _0x573d60=await _0x1b23be['WROSp'](getToken);if(!_0x573d60)throw new Error('No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.');console['log'](_0x573d60);});})['command']('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x2e2cf3=>{const _0x4e9cd8=_0x27cb84,_0x5bb662={'EwPsW':'feature','JKicO':_0x4e9cd8(0x121),'htieP':'string','chomT':_0x4e9cd8(0x17b),'qODaL':'notes','pocxI':_0x4e9cd8(0x15c),'ZRkPk':_0x4e9cd8(0x136),'FWdgc':'boolean','aNEHa':_0x4e9cd8(0x196),'DKIWN':_0x4e9cd8(0x216),'IGiAR':_0x4e9cd8(0x12e)};return _0x2e2cf3['option'](_0x5bb662[_0x4e9cd8(0x22b)],{'type':_0x4e9cd8(0x237),'description':_0x4e9cd8(0x217)})[_0x4e9cd8(0x134)](_0x5bb662[_0x4e9cd8(0x11b)],{'type':_0x5bb662['htieP'],'description':_0x5bb662['chomT']})[_0x4e9cd8(0x134)](_0x5bb662['qODaL'],{'type':_0x5bb662[_0x4e9cd8(0x231)],'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})[_0x4e9cd8(0x134)](_0x5bb662['pocxI'],{'type':_0x5bb662['ZRkPk'],'description':'Scenario\x20index\x20(1-based)'})['option'](_0x4e9cd8(0x1d6),{'type':_0x5bb662[_0x4e9cd8(0x231)],'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})['option']('model',{'type':_0x4e9cd8(0x237),'description':'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.'})[_0x4e9cd8(0x134)]('headed',{'type':_0x5bb662['FWdgc'],'description':_0x5bb662[_0x4e9cd8(0x1b1)],'default':![]})['option']('debug-outcome',{'type':_0x5bb662[_0x4e9cd8(0x231)],'hidden':!![],'choices':['verified','partial',_0x4e9cd8(0x199),'failed',_0x5bb662[_0x4e9cd8(0x124)]]})['option']('debug-address-comments',{'type':_0x4e9cd8(0x1c7),'hidden':!![]})[_0x4e9cd8(0x134)](_0x5bb662['IGiAR'],{'type':_0x5bb662[_0x4e9cd8(0x231)],'hidden':!![]})[_0x4e9cd8(0x134)]('task',{'type':'string','hidden':!![]})['option'](_0x4e9cd8(0x1e8),{'type':'number','hidden':!![]});},async _0x66bf1e=>{const _0x76afca=_0x27cb84,_0x4bd584={'QpoGK':function(_0x2713ad,_0x4effc7){return _0x2713ad(_0x4effc7);}};await _0x4bd584[_0x76afca(0x114)](runGoCommand,_0x66bf1e);})[_0x27cb84(0xfa)](_0x27cb84(0x211),![],_0x552445=>{const _0x352fcb=_0x27cb84,_0x380167={'cnBHM':_0x352fcb(0x237),'uLjTA':'encrypt\x20<profile>','lntXF':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x552445['command'](_0x380167[_0x352fcb(0x182)],![],_0x5a9911=>{const _0x58a6b9=_0x352fcb;return _0x5a9911['positional'](_0x58a6b9(0x121),{'type':_0x380167[_0x58a6b9(0x1e0)],'description':_0x58a6b9(0x176),'demandOption':!![]});},async _0x293848=>{warnRenamed('ranger\x20auth\x20encrypt','ranger\x20profile\x20encrypt-auth'),await authEncrypt(_0x293848['profile']);})['demandCommand'](0x1,_0x380167[_0x352fcb(0x10e)]);},()=>{})[_0x27cb84(0xfa)](_0x27cb84(0xfd),![],_0x4bf7cd=>{const _0x1dfe62=_0x27cb84,_0x6d929b={'bxKka':'token','Ftlto':_0x1dfe62(0x1c7),'ZITrO':_0x1dfe62(0x237),'dYENW':_0x1dfe62(0x101),'LBHRK':_0x1dfe62(0x241),'sfgUV':_0x1dfe62(0x1c5),'JJIjP':_0x1dfe62(0x139)};return _0x4bf7cd[_0x1dfe62(0x1f2)](_0x6d929b['bxKka'],{'type':'string','description':_0x1dfe62(0x143)})[_0x1dfe62(0x134)]('skip-chromium',{'type':_0x6d929b[_0x1dfe62(0x1b2)],'description':_0x1dfe62(0x149),'default':![]})[_0x1dfe62(0x134)](_0x1dfe62(0x1f6),{'type':_0x6d929b[_0x1dfe62(0x16b)],'choices':[_0x6d929b[_0x1dfe62(0x21e)],_0x6d929b['LBHRK']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})[_0x1dfe62(0x134)](_0x6d929b[_0x1dfe62(0x22d)],{'type':_0x6d929b['ZITrO'],'description':_0x6d929b[_0x1dfe62(0x18c)]})['option'](_0x1dfe62(0x1d0),{'type':_0x6d929b['Ftlto'],'description':_0x1dfe62(0x1ab),'default':![]});},async _0x51e524=>{const _0x36ff46=_0x27cb84,_0x4e3d5e={'dROmK':_0x36ff46(0x128)};warnRenamed('ranger\x20start',_0x36ff46(0x243)),await withTelemetry(_0x4e3d5e['dROmK'],_0x268c8b=>start(_0x51e524[_0x36ff46(0xf7)],{'skipChromium':_0x51e524[_0x36ff46(0x195)],'scope':_0x51e524[_0x36ff46(0x1f6)],'url':_0x51e524['url'],'force':_0x51e524[_0x36ff46(0x1d0)]},_0x268c8b));})[_0x27cb84(0xfa)](_0x27cb84(0x1f3),![],_0xb6527d=>{const _0x132016=_0x27cb84,_0x54c710={'pAvEY':'string','xrHCU':_0x132016(0x17b),'qjWEP':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','WOJCW':'profile','EncVE':_0x132016(0x15c),'lZTnB':_0x132016(0x136),'kyZrE':'start-path','wBiki':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','LUycd':_0x132016(0xfc),'FigKF':'partial'};return _0xb6527d['option']('env',{'type':_0x54c710['pAvEY'],'description':_0x54c710[_0x132016(0x1b9)]})['option'](_0x132016(0x13d),{'type':_0x132016(0x237),'description':_0x54c710['qjWEP']})['option']('item',{'type':'number','description':_0x132016(0x205)})['option'](_0x54c710['WOJCW'],{'type':_0x54c710['pAvEY'],'hidden':!![]})[_0x132016(0x134)]('notes',{'type':'string','hidden':!![]})['option'](_0x54c710[_0x132016(0x106)],{'type':_0x54c710['lZTnB'],'hidden':!![]})['option'](_0x54c710[_0x132016(0x212)],{'type':_0x132016(0x237),'description':_0x54c710['wBiki']})[_0x132016(0x134)]('model',{'type':_0x54c710[_0x132016(0x21d)],'hidden':!![]})[_0x132016(0x134)](_0x132016(0x144),{'type':_0x132016(0x1c7),'hidden':!![],'default':![]})['option']('debug-outcome',{'type':_0x54c710['pAvEY'],'hidden':!![],'choices':[_0x54c710[_0x132016(0x22e)],_0x54c710['FigKF'],'blocked','failed','incomplete']});},async _0x9e58f0=>{const _0x2f55fc=_0x27cb84,_0x1f3503={'giCNA':function(_0x550e36,_0x14f942,_0x117ba8){return _0x550e36(_0x14f942,_0x117ba8);}};await _0x1f3503[_0x2f55fc(0x1ac)](runGoCommand,_0x9e58f0,!![]);})[_0x27cb84(0xfa)]('add\x20env\x20<env-name>',![],_0x1d91c8=>{const _0x7b802e=_0x27cb84,_0x25d219={'hYNVx':'env-name','qvvKe':_0x7b802e(0x1e6),'pNXWj':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x1d91c8[_0x7b802e(0x1f2)](_0x25d219['hYNVx'],{'type':'string','description':_0x7b802e(0x218),'demandOption':!![]})[_0x7b802e(0x134)]('ci',{'type':'boolean','description':_0x25d219[_0x7b802e(0x1f4)],'default':![]})['option']('skip-auth',{'type':'boolean','description':_0x25d219['pNXWj'],'default':![]});},async _0xde4112=>{const _0x5511b7=_0x27cb84,_0x43ea55={'BHsrx':'ranger\x20profile\x20add','dxbPu':function(_0xb8bc0d,_0x10c058,_0x162f1b){return _0xb8bc0d(_0x10c058,_0x162f1b);},'sFIqy':'add\x20env'};warnRenamed('ranger\x20add\x20env',_0x43ea55['BHsrx']),await _0x43ea55[_0x5511b7(0x197)](withTelemetry,_0x43ea55[_0x5511b7(0x189)],_0x143bba=>addEnv(_0xde4112[_0x5511b7(0x171)],{'ci':_0xde4112['ci'],'skipAuth':_0xde4112['skip-auth']},_0x143bba));})['command'](_0x27cb84(0x21b),![],_0x3474c3=>{const _0x52cac0=_0x27cb84,_0x16c600={'oiSKX':'env-name','IIoPG':_0x52cac0(0x237),'YvZxn':'Name\x20of\x20the\x20environment'};return _0x3474c3[_0x52cac0(0x1f2)](_0x16c600['oiSKX'],{'type':_0x16c600[_0x52cac0(0x184)],'description':_0x16c600['YvZxn'],'demandOption':!![]});},async _0x194d9a=>{const _0x4ced12=_0x27cb84,_0x349aef={'UFuUF':_0x4ced12(0x10b)};warnRenamed('ranger\x20use',_0x349aef[_0x4ced12(0x1c9)]),await withTelemetry(_0x4ced12(0x227),()=>useEnv(_0x194d9a['env-name']));})[_0x27cb84(0xfa)](_0x27cb84(0x1eb),![],_0x2d4d23=>{const _0x9ab921=_0x27cb84,_0x690690={'lpyTH':'string','NwWrb':'Environment\x20name','DrHSd':'key','ffgTx':'Config\x20value','oSRuY':_0x9ab921(0x168),'icAvW':_0x9ab921(0x208),'eRuOt':'env','gPpdX':'Config\x20key','midXu':function(_0x238737,_0x37a461,_0x52e48d){return _0x238737(_0x37a461,_0x52e48d);},'vjSty':'ranger\x20config\x20get','MTPiM':_0x9ab921(0x239),'ABpBG':function(_0x938f3e,_0x1a8539,_0x595592){return _0x938f3e(_0x1a8539,_0x595592);},'OvPOO':'config\x20get','OYQeU':function(_0x473d48,_0x25e5c7,_0x1f0ccb){return _0x473d48(_0x25e5c7,_0x1f0ccb);},'pUvRS':'ranger\x20profile\x20config\x20list','IZzip':'Config\x20key\x20to\x20remove','WTucZ':_0x9ab921(0x1d4),'rcCDK':'ranger\x20profile\x20config\x20unset','EKFbD':_0x9ab921(0x13a)};return _0x2d4d23['command']('set\x20<env>\x20<key>\x20<value>',![],_0x363d33=>{const _0x56c055=_0x9ab921;return _0x363d33['positional']('env',{'type':_0x690690['lpyTH'],'description':_0x690690['NwWrb'],'demandOption':!![]})['positional'](_0x690690['DrHSd'],{'type':_0x56c055(0x237),'description':_0x56c055(0x157),'demandOption':!![]})['positional'](_0x56c055(0x185),{'type':_0x690690[_0x56c055(0x209)],'description':_0x690690['ffgTx'],'demandOption':!![]});},async _0x19e7b7=>{const _0x3f36b3=_0x9ab921;warnRenamed(_0x690690['oSRuY'],'ranger\x20profile\x20config\x20set'),await withTelemetry(_0x690690[_0x3f36b3(0x164)],()=>configSet(_0x19e7b7[_0x3f36b3(0x12e)],_0x19e7b7['key'],_0x19e7b7['value']));})['command']('get\x20<env>\x20<key>',![],_0x525b1=>{const _0x3076fa=_0x9ab921;return _0x525b1['positional'](_0x690690[_0x3076fa(0x154)],{'type':'string','description':_0x690690['NwWrb'],'demandOption':!![]})[_0x3076fa(0x1f2)]('key',{'type':_0x3076fa(0x237),'description':_0x690690['gPpdX'],'demandOption':!![]});},async _0x47765c=>{const _0x11640f=_0x9ab921;_0x690690['midXu'](warnRenamed,_0x690690['vjSty'],_0x690690[_0x11640f(0x22f)]),await _0x690690['ABpBG'](withTelemetry,_0x690690[_0x11640f(0x1b3)],()=>configGet(_0x47765c['env'],_0x47765c['key']));})['command']('list\x20<env>',![],_0x1f0b40=>{const _0x2550d3=_0x9ab921;return _0x1f0b40[_0x2550d3(0x1f2)](_0x690690['eRuOt'],{'type':'string','description':'Environment\x20name','demandOption':!![]});},async _0x9f2086=>{const _0x4becc4=_0x9ab921;_0x690690['OYQeU'](warnRenamed,_0x4becc4(0x236),_0x690690['pUvRS']),await withTelemetry('config\x20list',()=>configList(_0x9f2086['env']));})['command']('unset\x20<env>\x20<key>',![],_0x43ba08=>{const _0x1ffae9=_0x9ab921;return _0x43ba08['positional'](_0x690690['eRuOt'],{'type':_0x690690[_0x1ffae9(0x209)],'description':'Environment\x20name','demandOption':!![]})['positional'](_0x690690[_0x1ffae9(0x1f8)],{'type':_0x1ffae9(0x237),'description':_0x690690['IZzip'],'demandOption':!![]});},async _0x267358=>{const _0x2b9ff5=_0x9ab921;warnRenamed(_0x690690['WTucZ'],_0x690690[_0x2b9ff5(0x1a6)]),await withTelemetry(_0x690690[_0x2b9ff5(0x1a8)],()=>configUnset(_0x267358[_0x2b9ff5(0x12e)],_0x267358[_0x2b9ff5(0x127)]));})['demandCommand'](0x1,_0x9ab921(0x1a9));})[_0x27cb84(0xfa)]('env',![],_0x6bd980=>{const _0x13f22a=_0x27cb84,_0x3241e8={'qRchG':function(_0x4e76c2,_0x477395,_0x5e8d5b){return _0x4e76c2(_0x477395,_0x5e8d5b);},'ucYhu':_0x13f22a(0x177),'VbdKb':'env\x20list','DYJey':_0x13f22a(0x171),'zCYRa':'ranger\x20env\x20update','cvcVx':_0x13f22a(0x219),'hwzxO':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x6bd980[_0x13f22a(0xfa)]('ls',![],()=>{},async()=>{const _0x5a3c25=_0x13f22a;_0x3241e8[_0x5a3c25(0x1b4)](warnRenamed,_0x3241e8[_0x5a3c25(0x21f)],_0x5a3c25(0x152)),await _0x3241e8['qRchG'](withTelemetry,_0x3241e8['VbdKb'],()=>envList());})[_0x13f22a(0xfa)]('update\x20<env-name>',![],_0x43f0da=>{const _0x3d6744=_0x13f22a;return _0x43f0da['positional'](_0x3241e8[_0x3d6744(0x166)],{'type':'string','description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x450e38=>{warnRenamed(_0x3241e8['zCYRa'],_0x3241e8['cvcVx']),await withTelemetry('env\x20update',_0x590e73=>updateEnv(_0x450e38['env-name'],_0x590e73));})[_0x13f22a(0x12f)](0x1,_0x3241e8[_0x13f22a(0x15b)]);})['command'](_0x27cb84(0x188),![],_0x24e1c5=>{const _0x41bdd7=_0x27cb84,_0x4b2ed5={'CbzZt':_0x41bdd7(0x169),'vGala':_0x41bdd7(0x237),'fRtvT':_0x41bdd7(0x1ce),'pLqQB':'description','bENqY':'Feature\x20review\x20description','eOTmG':_0x41bdd7(0x110),'TgUWR':function(_0x182947,_0x1ddd3a,_0x2c4431){return _0x182947(_0x1ddd3a,_0x2c4431);},'pTMmZ':'ranger\x20create','gfWEN':function(_0x1a4254,_0x41bdd5,_0x160dad,_0x3d2b1c){return _0x1a4254(_0x41bdd5,_0x160dad,_0x3d2b1c);},'APbwS':'--checklist','qTuYB':'--scenario','gXLEB':'feature\x20create','QfiqV':'boolean','qNsFX':'limit','YypoJ':_0x41bdd7(0x136),'KxXCQ':_0x41bdd7(0x1a4),'uUBqM':_0x41bdd7(0x14d),'qWcLX':'Number\x20of\x20feature\x20reviews\x20to\x20skip','rtEEC':_0x41bdd7(0x145),'zHllL':'feature\x20list','ValYB':_0x41bdd7(0x11d),'QhQDq':_0x41bdd7(0x1a0),'oVJXY':function(_0x3dbc54,_0x120330,_0x2bc9e9){return _0x3dbc54(_0x120330,_0x2bc9e9);},'RFJBU':'ranger\x20feature\x20resume','sfggy':_0x41bdd7(0x228),'DyLmY':'feature\x20resume','oZWNj':'Scenario\x20description','xAdYX':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','sIZuK':_0x41bdd7(0xf3),'bwZPW':_0x41bdd7(0x17e),'HuwnP':'ranger\x20get-review','PwWkK':_0x41bdd7(0x178),'DNOop':'Feature\x20review\x20ID','yNCmE':'ranger\x20feature\x20delete','JBeLN':'ranger\x20delete','tRBgN':function(_0x303a4a,_0x9b3bac,_0x5a16de){return _0x303a4a(_0x9b3bac,_0x5a16de);},'kFvnT':_0x41bdd7(0x17a),'rDTgp':_0x41bdd7(0x103),'aFhtP':function(_0x6f44c9,_0x5f787e,_0x2b6ca8){return _0x6f44c9(_0x5f787e,_0x2b6ca8);},'QMAXQ':'ranger\x20restore','IDPtw':'create\x20<name>','VixvY':_0x41bdd7(0x1de),'OyBfO':_0x41bdd7(0x16c),'NQPzg':_0x41bdd7(0x1da),'Ulmhc':_0x41bdd7(0x224)};return _0x24e1c5['command'](_0x4b2ed5[_0x41bdd7(0x151)],![],_0x5665d1=>{const _0x3f6bd3=_0x41bdd7;return _0x5665d1[_0x3f6bd3(0x1f2)](_0x4b2ed5[_0x3f6bd3(0x20f)],{'type':_0x4b2ed5[_0x3f6bd3(0x1ca)],'description':_0x4b2ed5[_0x3f6bd3(0xf8)],'demandOption':!![]})[_0x3f6bd3(0x134)](_0x4b2ed5['pLqQB'],{'type':'string','alias':'d','description':_0x4b2ed5['bENqY']})[_0x3f6bd3(0x134)](_0x3f6bd3(0x221),{'type':_0x4b2ed5['eOTmG'],'alias':'c','description':_0x3f6bd3(0x10f)})['option'](_0x3f6bd3(0x15c),{'type':'array','hidden':!![]});},async _0x54c407=>{const _0x456e83=_0x41bdd7;_0x4b2ed5['TgUWR'](warnRenamed,'ranger\x20feature\x20create',_0x4b2ed5[_0x456e83(0x1fd)]),_0x4b2ed5['gfWEN'](warnFlagRenamed,'ranger\x20create',_0x4b2ed5[_0x456e83(0x133)],_0x4b2ed5[_0x456e83(0x13b)]);const _0x13d074=_0x54c407['scenario']||_0x54c407['checklist'];await _0x4b2ed5[_0x456e83(0x19b)](withTelemetry,_0x4b2ed5['gXLEB'],()=>featureCreate(_0x54c407[_0x456e83(0x169)],{'description':_0x54c407['description'],'scenarios':_0x13d074}));})[_0x41bdd7(0xfa)](_0x41bdd7(0x1cb),![],_0xc30163=>{const _0x26fb35=_0x41bdd7;return _0xc30163[_0x26fb35(0x134)](_0x26fb35(0x1d9),{'type':_0x4b2ed5['QfiqV'],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option'](_0x4b2ed5[_0x26fb35(0x115)],{'type':_0x4b2ed5['YypoJ'],'alias':'l','description':_0x4b2ed5['KxXCQ'],'default':0xa})[_0x26fb35(0x134)](_0x4b2ed5[_0x26fb35(0x158)],{'type':_0x4b2ed5[_0x26fb35(0x1b5)],'alias':'o','description':_0x4b2ed5[_0x26fb35(0x1ef)],'default':0x0})['option']('include-deleted',{'type':_0x26fb35(0x1c7),'alias':'d','description':_0x26fb35(0x14b),'default':![]});},async _0x59833f=>{warnRenamed(_0x4b2ed5['rtEEC'],'ranger\x20list'),await withTelemetry(_0x4b2ed5['zHllL'],()=>featureList({'currentBranch':_0x59833f['current-branch'],'limit':_0x59833f['limit'],'offset':_0x59833f['offset'],'includeDeleted':_0x59833f['include-deleted']}));})['command'](_0x4b2ed5[_0x41bdd7(0x1e7)],![],_0x18fd28=>{const _0x2e9e0=_0x41bdd7;return _0x18fd28[_0x2e9e0(0x1f2)]('id',{'type':_0x4b2ed5[_0x2e9e0(0x1ca)],'description':_0x2e9e0(0x129)});},async _0x4869f1=>{const _0x4e7f91=_0x41bdd7;_0x4b2ed5['TgUWR'](warnRenamed,_0x4e7f91(0x147),_0x4b2ed5[_0x4e7f91(0x23e)]),await _0x4b2ed5[_0x4e7f91(0x19b)](withTelemetry,'feature\x20show',()=>featureShow(_0x4869f1['id']));})['command'](_0x4b2ed5['OyBfO'],![],_0x48a770=>{const _0x3a6606=_0x41bdd7;return _0x48a770[_0x3a6606(0x1f2)]('id',{'type':_0x3a6606(0x237),'description':_0x4b2ed5[_0x3a6606(0x210)]});},async _0x58d2d2=>{const _0x2d9c49=_0x41bdd7;_0x4b2ed5[_0x2d9c49(0x170)](warnRenamed,_0x4b2ed5['RFJBU'],_0x4b2ed5[_0x2d9c49(0x1fe)]),await _0x4b2ed5[_0x2d9c49(0x170)](withTelemetry,_0x4b2ed5['DyLmY'],()=>featureResume(_0x58d2d2['id']));})['command']('add-checklist-item\x20<description>',![],_0x3d2836=>{const _0x170476=_0x41bdd7;return _0x3d2836['positional'](_0x4b2ed5['pLqQB'],{'type':_0x170476(0x237),'description':_0x4b2ed5['oZWNj'],'demandOption':!![]})['option']('id',{'type':'string','description':_0x4b2ed5[_0x170476(0x15a)]});},async _0x5cf753=>{const _0x83b185=_0x41bdd7;_0x4b2ed5[_0x83b185(0x170)](warnRenamed,'ranger\x20feature\x20add-checklist-item','ranger\x20add-scenario'),await withTelemetry(_0x4b2ed5['sIZuK'],()=>featureAddScenario(_0x5cf753[_0x83b185(0x1f5)],_0x5cf753['id']));})['command'](_0x41bdd7(0x150),![],_0x50467e=>{const _0x201b5c=_0x41bdd7;return _0x50467e[_0x201b5c(0x1f2)]('id',{'type':_0x201b5c(0x237),'description':_0x4b2ed5['xAdYX']});},async _0x326b67=>{const _0x3d3ce3=_0x41bdd7;warnRenamed(_0x4b2ed5['bwZPW'],_0x4b2ed5['HuwnP']),await withTelemetry(_0x4b2ed5[_0x3d3ce3(0x1e5)],()=>featureGetReview(_0x326b67['id']));})[_0x41bdd7(0xfa)](_0x4b2ed5['NQPzg'],![],_0x43b7cb=>{const _0x30d9f7=_0x41bdd7;return _0x43b7cb[_0x30d9f7(0x1f2)]('id',{'type':_0x30d9f7(0x237),'description':_0x4b2ed5['DNOop']});},async _0x4179f2=>{const _0x3d6829=_0x41bdd7;warnRenamed(_0x4b2ed5['yNCmE'],_0x4b2ed5['JBeLN']),await _0x4b2ed5['tRBgN'](withTelemetry,_0x4b2ed5[_0x3d6829(0x14e)],()=>featureDelete(_0x4179f2['id']));})[_0x41bdd7(0xfa)](_0x4b2ed5['Ulmhc'],![],_0x3a04bf=>{const _0x3d39e2=_0x41bdd7;return _0x3a04bf['positional']('id',{'type':_0x3d39e2(0x237),'description':_0x4b2ed5[_0x3d39e2(0x20e)],'demandOption':!![]});},async _0x51df93=>{const _0x14973a=_0x41bdd7;_0x4b2ed5[_0x14973a(0x23c)](warnRenamed,'ranger\x20feature\x20restore',_0x4b2ed5['QMAXQ']),await withTelemetry(_0x14973a(0x15f),()=>featureRestore(_0x51df93['id']));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand');})['command']('hook',![],_0x26ba8f=>{const _0x234da7=_0x27cb84,_0x1f7294={'YHGDn':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','IOhxw':function(_0x28f5c9,_0x196846,_0x3eb86d){return _0x28f5c9(_0x196846,_0x3eb86d);},'RYZts':'hook:enable','dejAU':_0x234da7(0x11e),'zTTdH':'hook:disable','rwELg':'enable','efOzK':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session'};return _0x26ba8f['command'](_0x1f7294['rwELg'],_0x1f7294['efOzK'],_0x2a79ff=>{const _0x2cb113=_0x234da7;return _0x2a79ff['option']('session-id',{'type':'string','description':_0x1f7294[_0x2cb113(0xf9)]});},async _0x1cf70d=>{const _0xfd8c9=_0x234da7;await _0x1f7294['IOhxw'](withTelemetry,_0x1f7294[_0xfd8c9(0x1aa)],()=>hook('enable',_0x1cf70d[_0xfd8c9(0x11e)]));})['command'](_0x234da7(0x202),_0x234da7(0x122),_0x4eda12=>{const _0x22a2b0=_0x234da7;return _0x4eda12['option'](_0x1f7294['dejAU'],{'type':_0x22a2b0(0x237),'description':_0x1f7294[_0x22a2b0(0xf9)]});},async _0x1c552a=>{await withTelemetry(_0x1f7294['zTTdH'],()=>hook('disable',_0x1c552a['session-id']));})[_0x234da7(0x134)]('name',{'type':_0x234da7(0x237),'description':_0x234da7(0x23b)})['option']('session-id',{'type':'string','description':_0x234da7(0x1d8)});},async _0x7b85af=>{const _0x4fe45f=_0x27cb84,_0x2a1438={'KYozz':'session-id'};_0x7b85af[_0x4fe45f(0x169)]&&await hook(_0x7b85af['name'],_0x7b85af[_0x2a1438[_0x4fe45f(0x1bc)]]);})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20command')[_0x27cb84(0x1cd)]()['fail'](async(_0x1685a7,_0x451928,_0x32eafa)=>{const _0x49dde4=_0x27cb84,_0x31142f={'IAGdy':function(_0x553013,_0x4f3f41){return _0x553013(_0x4f3f41);},'kbAPh':function(_0x393635,_0x5e2b78,_0x15e5a8){return _0x393635(_0x5e2b78,_0x15e5a8);},'waMHJ':_0x49dde4(0x223),'jclJN':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','gzaGT':function(_0x1d8dfb,_0x5304c1){return _0x1d8dfb(_0x5304c1);},'yAjBM':_0x49dde4(0x180)},_0x397050=_0x31142f[_0x49dde4(0x229)](sanitizeArgs,process[_0x49dde4(0x23a)][_0x49dde4(0x220)](0x2)),_0x19f402=_0x31142f['kbAPh'](getErrorType,_0x1685a7,_0x451928);if(_0x1685a7&&_0x1685a7[_0x49dde4(0x1e1)](_0x31142f['waMHJ'])){const _0x154f8f=process[_0x49dde4(0x23a)][0x2];console[_0x49dde4(0x203)]('\x0aUnknown\x20command:\x20'+_0x154f8f),console['error'](_0x31142f[_0x49dde4(0x112)]);}else{if(_0x1685a7)console[_0x49dde4(0x203)]('\x0a'+_0x1685a7+'\x0a');else _0x451928&&console['error']('\x0aError:\x20'+_0x451928[_0x49dde4(0x1a2)]+'\x0a');}await _0x31142f['gzaGT'](logDesirePath,{'rawCommand':_0x397050,'errorMessage':_0x1685a7||_0x451928?.['message'],'errorType':_0x19f402});const _0x9ebc66=getCurrentCollector();_0x9ebc66&&await _0x9ebc66['trackCommandError'](_0x451928||new Error(_0x1685a7||_0x31142f[_0x49dde4(0x130)])),process['exit'](0x1);})[_0x27cb84(0x19d)]('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+_0x27cb84(0x173))['help']()[_0x27cb84(0x201)]('help','h')[_0x27cb84(0x1e9)]();
|
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(_0x653d53,_0x5afa3d){const _0x29cb69=_0x4265,_0x1e3186=_0x653d53();while(!![]){try{const _0x1ea501=parseInt(_0x29cb69(0x189))/0x1+parseInt(_0x29cb69(0x1c7))/0x2+parseInt(_0x29cb69(0x1d1))/0x3*(parseInt(_0x29cb69(0x1be))/0x4)+-parseInt(_0x29cb69(0x1a4))/0x5+-parseInt(_0x29cb69(0x1ca))/0x6+parseInt(_0x29cb69(0x188))/0x7*(parseInt(_0x29cb69(0x1aa))/0x8)+-parseInt(_0x29cb69(0x1e2))/0x9;if(_0x1ea501===_0x5afa3d)break;else _0x1e3186['push'](_0x1e3186['shift']());}catch(_0x5ece59){_0x1e3186['push'](_0x1e3186['shift']());}}}(_0x58b6,0x4d66d));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0xd5400b from'inquirer';import{chromium}from'playwright';function _0x4265(_0x2631a4,_0x28f370){_0x2631a4=_0x2631a4-0x16a;const _0x58b6de=_0x58b6();let _0x426547=_0x58b6de[_0x2631a4];return _0x426547;}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';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0x58b6(){const _0x3006c9=['oYtec','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','SwqVV','✓\x20Auth\x20state\x20saved\x20to:\x20','slice','PjlwA','newPage','isElectron','status','close','isTTY','\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','gweUR','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','qvsSP','LBcqX','mOiRQ','zWRyk','98JJBfrZ','136090dfrUtF','baoqS','baseUrl','cdpEndpoint','safeMode','Aborted.','action','retry','auth.json','HEAD','includes','NODE_TLS_REJECT_UNAUTHORIZED','suUZM','Invalid\x20URL','nfjBz','length','WoNNr','Rpbai','yScLd','SFwIc','use_suggestion','catch','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','dHsfL','\x0a🌐\x20Profile\x20Setup\x0a','list','trackPhaseStart','1162705ScrHjb','signal','\x20\x20\x20Creating\x20it\x20in\x20','Profile\x20\x22','log','setupHeaders','51952xUAtBO','wnQxr','Enter\x20a\x20different\x20URL','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','pGhkf','NNwHL','CygyG','UbnKi','isProtocolError','launch','mjqaR','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','\x22\x20already\x20exists\x20in\x20','⚠\x20Could\x20not\x20reach\x20','sjWHR','trim','HTTP\x20','✓\x20Created\x20settings:\x20','input','http://','84ovtXVa','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','message','--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.','Removed\x20existing\x20profile\x20at\x20','zQLGc','goto','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','DcgPC','227344USKVWw','path','Use\x20','637404boMEtl','LVeyk','test','ibeHj','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','WfPfK','OnRvL','89811oLNkcw','\x20\x20ranger\x20profile\x20add\x20','wcPaz','confirm','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','env','FUUCT','url','kCXav','about:blank','location','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','nEgoG','lPXwn','trackPhaseEnd','prompt','error','2821887QkkJDx','\x20\x20Did\x20you\x20mean\x20','\x0a\x20\x20Could\x20not\x20reach\x20','CLHkc','fetch\x20failed','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','force','setupHeader','\x20(continuing\x20with\x20--force)','name','now'];_0x58b6=function(){return _0x3006c9;};return _0x58b6();}import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x3c1cf6){const _0x3e7058=_0x4265,_0x3de19c={'wsUga':function(_0x57b8d8,_0x39b9e8,_0x1faf28){return _0x57b8d8(_0x39b9e8,_0x1faf28);},'zcYUI':_0x3e7058(0x192),'kCXav':'manual','CygyG':function(_0x5573c2,_0x7f0914){return _0x5573c2(_0x7f0914);},'wnQxr':function(_0x15e92a,_0x190a24){return _0x15e92a<_0x190a24;},'nfjBz':function(_0x4be1cb,_0x4c8ea9){return _0x4be1cb===_0x4c8ea9;},'baoqS':'TypeError'};try{const _0x54031a=new AbortController(),_0x2acd41=_0x3de19c['wsUga'](setTimeout,()=>_0x54031a['abort'](),0x1388),_0x357682={'method':_0x3de19c['zcYUI'],'signal':_0x54031a[_0x3e7058(0x1a5)],'redirect':_0x3de19c[_0x3e7058(0x1d9)]};/^https:\/\/localhost(:\d+)?/i['test'](_0x3c1cf6)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x39c29c=await fetch(_0x3c1cf6,_0x357682);delete process['env'][_0x3e7058(0x194)],_0x3de19c[_0x3e7058(0x1b0)](clearTimeout,_0x2acd41);if(_0x3de19c[_0x3e7058(0x1ab)](_0x39c29c[_0x3e7058(0x17d)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x3e7058(0x1ba)+_0x39c29c[_0x3e7058(0x17d)]};}catch(_0x5d6200){delete process[_0x3e7058(0x1d6)][_0x3e7058(0x194)];const _0x4feec9=_0x5d6200,_0x12b5b=_0x4feec9[_0x3e7058(0x1c0)]||String(_0x5d6200),_0x33d25c=_0x12b5b[_0x3e7058(0x193)](_0x3e7058(0x196))||_0x3de19c[_0x3e7058(0x197)](_0x4feec9[_0x3e7058(0x173)],_0x3de19c[_0x3e7058(0x18a)])||_0x12b5b[_0x3e7058(0x193)](_0x3e7058(0x16d));return{'ok':![],'error':_0x12b5b,'isProtocolError':_0x33d25c};}}export async function addEnv(_0x4fa8a7,_0xa7f067={},_0x409a85){const _0x34a96f=_0x4265,_0x253835={'CUFCR':function(_0x561839){return _0x561839();},'eWIPG':'local','ibeHj':function(_0x34cf37,_0x558e37){return _0x34cf37===_0x558e37;},'mjqaR':function(_0x17ae48,_0x2749c9){return _0x17ae48+_0x2749c9;},'zWRyk':function(_0x3ad61f,_0x550f22,_0x167e30){return _0x3ad61f(_0x550f22,_0x167e30);},'DcgPC':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','FUUCT':function(_0x1533a4,_0x9e382){return _0x1533a4(_0x9e382);},'suUZM':function(_0x552220,_0x116e21){return _0x552220(_0x116e21);},'WoNNr':_0x34a96f(0x1d4),'dHsfL':'overwrite','aBpOE':_0x34a96f(0x18e),'gNkMF':function(_0x108021,_0x5a5c7c){return _0x108021===_0x5a5c7c;},'SFwIc':'url_setup','reZnk':_0x34a96f(0x1a1),'oYtec':'\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','LBcqX':'baseUrl','OnRvL':_0x34a96f(0x176),'sjWHR':function(_0x1222bc,_0x917a20){return _0x1222bc||_0x917a20;},'PjlwA':function(_0x7e82ae,_0x419e96){return _0x7e82ae(_0x419e96);},'zQLGc':_0x34a96f(0x18f),'mOiRQ':_0x34a96f(0x190),'LVeyk':'Continue\x20anyway','WfPfK':function(_0x36d473,_0x597bba){return _0x36d473===_0x597bba;},'CLHkc':'continue','NNwHL':function(_0x5444f3,_0x530961,_0x5c3aaf){return _0x5444f3(_0x530961,_0x5c3aaf);},'SwqVV':_0x34a96f(0x191),'xlTsr':'browser_auth','SZnoh':'\x0a📋\x20Authentication\x20Setup','mNnmS':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','lPXwn':_0x34a96f(0x180),'qvsSP':function(_0x2fe39a,_0x4132c9){return _0x2fe39a>_0x4132c9;},'JRqNk':_0x34a96f(0x1da),'gweUR':function(_0x55c7ad,_0x2209d5,_0x1f5870){return _0x55c7ad(_0x2209d5,_0x1f5870);},'wcPaz':_0x34a96f(0x181),'SZtQw':function(_0x205634,_0x1565f9,_0x4d9924){return _0x205634(_0x1565f9,_0x4d9924);},'vuhjA':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','Rpbai':'config_write','ICicF':'settings.json','UbnKi':function(_0x8814e7,_0x278faa,_0xd3acca){return _0x8814e7(_0x278faa,_0xd3acca);},'yScLd':function(_0x3a85cc,_0x266149,_0x324822){return _0x3a85cc(_0x266149,_0x324822);},'cPdhu':function(_0x295392,_0x53e3f8,_0x12cf63){return _0x295392(_0x53e3f8,_0x12cf63);},'pGhkf':function(_0x1265c3,_0x45bfb9,_0x490e87){return _0x1265c3(_0x45bfb9,_0x490e87);},'YpLFY':_0x34a96f(0x183)},_0x2e0150=_0xa7f067['ci']??![],_0x29465b=_0x2e0150?'ci':_0x253835['eWIPG'],_0x272ad1=join(getRangerDir(),_0x29465b,_0x4fa8a7),_0x102c06={};if(_0xa7f067[_0x34a96f(0x171)])for(const _0x1ee359 of _0xa7f067[_0x34a96f(0x171)]){const _0x33830a=_0x1ee359['indexOf'](':');if(_0x253835[_0x34a96f(0x1cd)](_0x33830a,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x1ee359+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x28dc05=_0x1ee359['slice'](0x0,_0x33830a)['trim'](),_0x1bf207=_0x1ee359[_0x34a96f(0x179)](_0x253835[_0x34a96f(0x1b4)](_0x33830a,0x1))[_0x34a96f(0x1b9)]();_0x102c06[_0x28dc05]=_0x1bf207;}const _0x1c67d0=_0x253835['zWRyk'](join,getRangerDir(),_0x29465b);if(_0xa7f067['cdpEndpoint']!==undefined&&_0xa7f067['cdpEndpoint'][_0x34a96f(0x1b9)]()==='')throw new Error(_0x34a96f(0x1ad));if(_0xa7f067['cdpEndpoint']&&_0xa7f067[_0x34a96f(0x1d8)])throw new Error(_0x253835[_0x34a96f(0x1c6)]);if(_0xa7f067['cdpEndpoint']&&_0xa7f067['ci'])throw new Error(_0x34a96f(0x1c1));const _0x5cf905=_0x253835[_0x34a96f(0x1d7)](Boolean,_0xa7f067[_0x34a96f(0x18c)]),_0x2515d4=!_0xa7f067['skipAuth']&&!_0x5cf905,_0x2c2448=process['stdin'][_0x34a96f(0x17f)]&&process['stdout'][_0x34a96f(0x17f)];if(!_0x2c2448&&!_0xa7f067[_0x34a96f(0x1d8)]&&!_0x5cf905)throw new Error(_0x34a96f(0x1dc));const _0x245705=_0x253835['suUZM'](findExistingEnv,_0x4fa8a7);let _0x38a3e5=null;if(_0x245705){if(!_0x2c2448)_0x38a3e5=_0x245705;else{if(_0x245705[_0x34a96f(0x1db)]===_0x29465b){const {overwrite:_0xb7270a}=await _0xd5400b['prompt']([{'type':_0x253835['WoNNr'],'name':_0x253835[_0x34a96f(0x1a0)],'message':_0x34a96f(0x1a7)+_0x4fa8a7+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0xb7270a){console['log'](_0x253835['aBpOE']);return;}_0x38a3e5=_0x245705;}else{const _0x13efdd=_0x253835['gNkMF'](_0x245705['location'],'legacy')?'root\x20(.ranger/)':_0x245705[_0x34a96f(0x1db)];console[_0x34a96f(0x1e1)]('\x0a⚠️\x20\x20Profile\x20\x22'+_0x4fa8a7+_0x34a96f(0x1b6)+_0x13efdd+':\x20'+_0x245705['path']),console['error'](_0x34a96f(0x1a6)+_0x29465b+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x1e6dbc}=await _0xd5400b['prompt']([{'type':_0x253835[_0x34a96f(0x199)],'name':'shouldReplace','message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x29465b+'?','default':![]}]);if(!_0x1e6dbc){console[_0x34a96f(0x1a8)](_0x34a96f(0x18e));return;}_0x38a3e5=_0x245705;}}}_0x409a85?.[_0x34a96f(0x1a3)](_0x253835[_0x34a96f(0x19c)]);let _0x4e3bd6='';if(_0x5cf905)console['log']('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0x34a96f(0x16f)+_0xa7f067['cdpEndpoint']),console[_0x34a96f(0x1a8)]('\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a');else{if(_0xa7f067[_0x34a96f(0x1d8)]){_0x4e3bd6=_0xa7f067['url'];const _0x14f04d=await _0x253835[_0x34a96f(0x195)](checkUrlReachability,_0x4e3bd6);if(!_0x14f04d['ok']&&!_0xa7f067[_0x34a96f(0x170)])throw new Error('Could\x20not\x20reach\x20'+_0x4e3bd6+':\x20'+_0x14f04d['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x14f04d['ok']&&_0xa7f067['force']&&console['log'](_0x34a96f(0x1b7)+_0x4e3bd6+':\x20'+_0x14f04d['error']+_0x34a96f(0x172));}else{console[_0x34a96f(0x1a8)](_0x253835['reZnk']),console['log'](_0x253835[_0x34a96f(0x175)]),console['log'](_0x34a96f(0x1ce));let _0x455b5c=![];while(!![]){const _0x15274e=await _0xd5400b['prompt']([{'type':_0x34a96f(0x1bc),'name':_0x253835[_0x34a96f(0x185)],'message':_0x455b5c?_0x253835[_0x34a96f(0x1d0)]:'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x253835['sjWHR'](_0x4e3bd6,'http://localhost:3000')}]);_0x4e3bd6=_0x15274e['baseUrl'];const _0x562414=await _0x253835[_0x34a96f(0x17a)](checkUrlReachability,_0x4e3bd6);if(_0x562414['ok'])break;const _0x10425a=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x4e3bd6),_0x5e9e4b=_0x562414[_0x34a96f(0x1b2)]&&!_0x10425a,_0x3c4457=_0x5e9e4b?_0x34a96f(0x1bd)+_0x4e3bd6:null;_0x455b5c=!![],console['log'](_0x34a96f(0x16b)+_0x4e3bd6+':\x20'+_0x562414['error']);_0x3c4457&&console[_0x34a96f(0x1a8)](_0x34a96f(0x16a)+_0x3c4457+'?');const {action:_0x2f16b2}=await _0xd5400b[_0x34a96f(0x1e0)]([{'type':_0x34a96f(0x1a2),'name':_0x253835[_0x34a96f(0x1c3)],'message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x3c4457?[{'name':_0x34a96f(0x1c9)+_0x3c4457,'value':_0x34a96f(0x19d)}]:[],{'name':_0x34a96f(0x1ac),'value':_0x253835[_0x34a96f(0x186)]},{'name':_0x253835[_0x34a96f(0x1cb)],'value':'continue'}]}]);if(_0x2f16b2==='use_suggestion'&&_0x3c4457){_0x4e3bd6=_0x3c4457;const _0x1530e8=await checkUrlReachability(_0x4e3bd6);if(_0x1530e8['ok'])break;console[_0x34a96f(0x1a8)](_0x34a96f(0x1c5)+_0x4e3bd6+':\x20'+_0x1530e8[_0x34a96f(0x1e1)]);}else{if(_0x253835[_0x34a96f(0x1cf)](_0x2f16b2,_0x253835[_0x34a96f(0x16c)]))break;}}}}_0x409a85?.['trackPhaseEnd'](_0x253835[_0x34a96f(0x19c)]);const _0x465066={};if(_0x38a3e5){const _0x477dad=await _0x253835['suUZM'](loadSettings,_0x4fa8a7);Object['assign'](_0x465066,_0x477dad[_0x34a96f(0x1a9)]);}Object['assign'](_0x465066,_0x102c06),await _0x253835[_0x34a96f(0x1af)](mkdir,_0x1c67d0,{'recursive':!![]});const _0x3cf8b1=await mkdtemp(join(_0x1c67d0,'.tmp-'+_0x4fa8a7+'-')),_0x3af929=_0x253835['zWRyk'](join,_0x3cf8b1,_0x253835[_0x34a96f(0x177)]),_0x27fd77=Boolean(_0x4e3bd6)&&/^https:\/\/localhost(:\d+)?/i[_0x34a96f(0x1cc)](_0x4e3bd6);try{if(_0x2515d4){_0x409a85?.['trackPhaseStart'](_0x253835['xlTsr']),console[_0x34a96f(0x1a8)](_0x253835['SZnoh']),console['log'](_0x253835['mNnmS']),console[_0x34a96f(0x1a8)]('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x2c2448?(console['log'](_0x253835[_0x34a96f(0x1de)]),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(_0x20f2e7=>setTimeout(_0x20f2e7,0xbb8));const _0x2d53a0=[];_0xa7f067[_0x34a96f(0x18d)]&&_0x2d53a0['push']('--disable-features=WebBluetooth');const _0x4f370e=_0xa7f067['allowInsecureLocalhost']||_0x27fd77;_0x4f370e&&_0x2d53a0['push']('--allow-insecure-localhost');const _0x6df970=await chromium[_0x34a96f(0x1b3)]({'headless':![],..._0x253835[_0x34a96f(0x184)](_0x2d53a0[_0x34a96f(0x198)],0x0)?{'args':_0x2d53a0}:{}});try{const _0x32aa05=Object['keys'](_0x465066)['length']>0x0,_0x225291={'ignoreHTTPSErrors':!![]};_0x32aa05&&(_0x225291['extraHTTPHeaders']=_0x465066);const _0x119069=await _0x6df970['newContext'](_0x225291);await addProfileSetupBanner(_0x119069);const _0x1c32e1=await _0x119069[_0x34a96f(0x17b)]();await _0x1c32e1[_0x34a96f(0x1c4)](_0x253835[_0x34a96f(0x1b8)](_0x4e3bd6,_0x253835['JRqNk']));let _0x50bcee=![];await new Promise(_0x32882a=>{const _0x5bad50=_0x34a96f,_0x425817={'nEgoG':function(_0x107ef2){return _0x253835['CUFCR'](_0x107ef2);}};_0x1c32e1['on'](_0x5bad50(0x17e),async()=>{const _0x390705=_0x5bad50;try{console['log']('Saving\x20authentication\x20state...'),await _0x119069['storageState']({'path':_0x3af929}),_0x50bcee=!![];}catch{}_0x425817[_0x390705(0x1dd)](_0x32882a);});});if(!_0x50bcee){console[_0x34a96f(0x1a8)](_0x34a96f(0x16e));!_0xa7f067['safeMode']&&(console[_0x34a96f(0x1a8)](_0x34a96f(0x1d5)),console[_0x34a96f(0x1a8)]('You\x20can\x20try\x20again\x20with\x20one\x20of:'),console['log'](_0x34a96f(0x1d2)+_0x4fa8a7+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x34a96f(0x1a8)]('\x20\x20ranger\x20profile\x20add\x20'+_0x4fa8a7+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x34a96f(0x19f));}}finally{await _0x6df970['close']()[_0x34a96f(0x19e)](()=>{});}if(_0x2e0150){const _0x1b772e=await _0x253835['gweUR'](readFile,_0x3af929,'utf-8'),_0x3b6675=await getToken();if(!_0x3b6675){console['error'](_0x253835[_0x34a96f(0x1d3)]),await unlink(_0x3af929)[_0x34a96f(0x19e)](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0xb1a4be=_0x253835['SZtQw'](encrypt,_0x1b772e,_0x3b6675);await _0x253835[_0x34a96f(0x1af)](writeFile,_0x3af929+'.enc',_0xb1a4be),await _0x253835[_0x34a96f(0x1d7)](unlink,_0x3af929),console[_0x34a96f(0x1a8)]('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x3af929+'.enc'),console[_0x34a96f(0x1a8)](_0x253835['vuhjA']),console[_0x34a96f(0x1a8)]('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log'](_0x34a96f(0x178)+_0x3af929);_0x409a85?.[_0x34a96f(0x1df)]('browser_auth');}_0x409a85?.[_0x34a96f(0x1a3)](_0x253835['Rpbai']);const _0x522f3f={};_0x4e3bd6&&(_0x522f3f[_0x34a96f(0x18b)]=_0x4e3bd6);_0xa7f067[_0x34a96f(0x18c)]&&(_0x522f3f[_0x34a96f(0x18c)]=_0xa7f067['cdpEndpoint'],_0x522f3f[_0x34a96f(0x17c)]=!![]);(_0xa7f067['allowInsecureLocalhost']||_0x27fd77)&&(_0x522f3f['allowInsecureLocalhost']=!![]);_0xa7f067['safeMode']&&(_0x522f3f['safeMode']=!![]);_0x253835['qvsSP'](Object['keys'](_0x465066)[_0x34a96f(0x198)],0x0)&&(_0x522f3f[_0x34a96f(0x1a9)]=_0x465066);await writeFile(join(_0x3cf8b1,_0x253835['ICicF']),JSON['stringify'](_0x522f3f,null,0x2)),console['log'](_0x34a96f(0x1bb)+_0x253835[_0x34a96f(0x187)](join,_0x272ad1,'settings.json'));if(_0x253835[_0x34a96f(0x1cd)](_0x38a3e5?.['location'],_0x29465b)){const _0x29c9f9=_0x38a3e5['path']+'.backup-'+Date[_0x34a96f(0x174)]();await _0x253835[_0x34a96f(0x1b1)](rename,_0x38a3e5[_0x34a96f(0x1c8)],_0x29c9f9);try{await _0x253835[_0x34a96f(0x19b)](rename,_0x3cf8b1,_0x272ad1);}catch(_0xb0b755){await _0x253835['cPdhu'](rename,_0x29c9f9,_0x38a3e5[_0x34a96f(0x1c8)]);throw _0xb0b755;}try{await rm(_0x29c9f9,{'recursive':!![]});}catch{console[_0x34a96f(0x1a8)](_0x34a96f(0x1b5)+_0x29c9f9);}}else{await rename(_0x3cf8b1,_0x272ad1);if(_0x38a3e5)try{await _0x253835[_0x34a96f(0x1ae)](rm,_0x38a3e5[_0x34a96f(0x1c8)],{'recursive':!![]}),console[_0x34a96f(0x1a8)](_0x34a96f(0x1c2)+_0x38a3e5['path']);}catch{console[_0x34a96f(0x1a8)](_0x34a96f(0x1bf)+_0x38a3e5['path']);}}try{await _0x253835['suUZM'](writeActiveProfileName,_0x4fa8a7),console[_0x34a96f(0x1a8)]('\x20\x20Set\x20active\x20profile:\x20'+_0x4fa8a7);}catch{console[_0x34a96f(0x1a8)](_0x253835['YpLFY']);}_0x409a85?.['trackPhaseEnd'](_0x253835[_0x34a96f(0x19a)]),console['log']('\x0a\x20\x20Profile\x20\x22'+_0x4fa8a7+'\x22\x20configured');}catch(_0x1e56ed){await _0x253835[_0x34a96f(0x182)](rm,_0x3cf8b1,{'recursive':!![],'force':!![]});throw _0x1e56ed;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x224007,_0x1000df){const _0xaa08d4=_0x4d02,_0x495c3c=_0x224007();while(!![]){try{const _0x3128fd=parseInt(_0xaa08d4(0xbb))/0x1+parseInt(_0xaa08d4(0xc3))/0x2*(parseInt(_0xaa08d4(0xc8))/0x3)+parseInt(_0xaa08d4(0xb7))/0x4+-parseInt(_0xaa08d4(0xc0))/0x5*(parseInt(_0xaa08d4(0xb6))/0x6)+parseInt(_0xaa08d4(0xbd))/0x7+parseInt(_0xaa08d4(0xc1))/0x8*(parseInt(_0xaa08d4(0xc2))/0x9)+-parseInt(_0xaa08d4(0xbc))/0xa*(parseInt(_0xaa08d4(0xb8))/0xb);if(_0x3128fd===_0x1000df)break;else _0x495c3c['push'](_0x495c3c['shift']());}catch(_0xb5e93){_0x495c3c['push'](_0x495c3c['shift']());}}}(_0x2b2c,0x3c4b0));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0x2b2c(){const _0x2ed86d=['181255Yspniw','150tYONTK','333753AiSUeK','kPJoR','No\x20auth.json\x20found\x20at\x20','21215NsPyUT','8NuXwaW','365193wjzLnm','22lUDzRK','rWGTP','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','cOLjO','59853SnBVOu','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','YNtuY','114DMGGRU','1489160nYQJSa','391369zlDlLh','auth.json','log'];_0x2b2c=function(){return _0x2ed86d;};return _0x2b2c();}function _0x4d02(_0x181926,_0x2c4bf4){_0x181926=_0x181926-0xb6;const _0x2b2c23=_0x2b2c();let _0x4d029e=_0x2b2c23[_0x181926];return _0x4d029e;}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x2c4329){const _0x3f38ca=_0x4d02,_0x58887d={'YNtuY':function(_0x2486a4,_0x26e675){return _0x2486a4(_0x26e675);},'xWPfn':_0x3f38ca(0xb9),'cOLjO':function(_0x28b412,_0x4812c5){return _0x28b412(_0x4812c5);},'FwBYm':function(_0x440817,_0x1bd3a0,_0x3944f8){return _0x440817(_0x1bd3a0,_0x3944f8);},'DvJtb':'utf-8','kPJoR':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','rWGTP':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'},_0x17e49e=_0x58887d[_0x3f38ca(0xca)](getEnvDir,_0x2c4329),_0x2a27cc=join(_0x17e49e,_0x58887d['xWPfn']),_0x27b5e3=_0x2a27cc+'.enc';if(!_0x58887d[_0x3f38ca(0xc7)](existsSync,_0x17e49e))throw new Error('Profile\x20\x22'+_0x2c4329+_0x3f38ca(0xc6)+_0x2c4329);if(!existsSync(_0x2a27cc))throw new Error(_0x3f38ca(0xbf)+_0x2a27cc+_0x3f38ca(0xc9));const _0x3d9f12=await getToken();if(!_0x3d9f12)throw new Error(_0x3f38ca(0xc5));const _0x18899d=await _0x58887d['FwBYm'](readFile,_0x2a27cc,_0x58887d['DvJtb']),_0x4a6bb6=_0x58887d['FwBYm'](encrypt,_0x18899d,_0x3d9f12);await _0x58887d['FwBYm'](writeFile,_0x27b5e3,_0x4a6bb6),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x27b5e3),console[_0x3f38ca(0xba)](_0x58887d[_0x3f38ca(0xbe)]),console['log'](_0x58887d[_0x3f38ca(0xc4)]),existsSync(_0x27b5e3)&&(console[_0x3f38ca(0xba)]('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x44a035=_0x434a;function _0x434a(_0x445494,_0x3def5e){_0x445494=_0x445494-0x9e;const _0x1d15e8=_0x1d15();let _0x434a75=_0x1d15e8[_0x445494];return _0x434a75;}(function(_0x11e9e6,_0x22d808){const _0x5c5b90=_0x434a,_0x12ea63=_0x11e9e6();while(!![]){try{const _0x4bc6e2=-parseInt(_0x5c5b90(0xb9))/0x1*(parseInt(_0x5c5b90(0xc2))/0x2)+parseInt(_0x5c5b90(0xd1))/0x3*(parseInt(_0x5c5b90(0xa4))/0x4)+-parseInt(_0x5c5b90(0xca))/0x5*(parseInt(_0x5c5b90(0xb5))/0x6)+parseInt(_0x5c5b90(0xb2))/0x7+-parseInt(_0x5c5b90(0xcc))/0x8+parseInt(_0x5c5b90(0xbf))/0x9+parseInt(_0x5c5b90(0xcd))/0xa*(parseInt(_0x5c5b90(0xad))/0xb);if(_0x4bc6e2===_0x22d808)break;else _0x12ea63['push'](_0x12ea63['shift']());}catch(_0x2c0828){_0x12ea63['push'](_0x12ea63['shift']());}}}(_0x1d15,0x90154));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker','bug-bash',_0x44a035(0xb0)],opencodePluginName=_0x44a035(0xb6);function parseJsonc(_0x344884){const _0x5c6625=_0x44a035,_0x5c314d=_0x344884['replace'](/\/\*[\s\S]*?\*\//g,''),_0x51aa0f=_0x5c314d[_0x5c6625(0xb1)](/^\s*\/\/.*$/gm,''),_0x42c064=_0x51aa0f[_0x5c6625(0xb1)](/,\s*([}\]])/g,'$1');return JSON[_0x5c6625(0xd7)](_0x42c064);}function _0x1d15(){const _0x1bc2c7=['plugin','project','string','avOoI','stringify','8txqPzK','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','EvSpA','close','ZDKQF','rsVBo','vEPeZ','error','pEGvD','152867yYhRMB','claude','MQmIg','e2e-test-recommender','replace','4051656hPZMQP','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','pipe','5880678ZmMlzW','@ranger-testing/opencode-plugin','cehfD','✓\x20Removed\x20project\x20skill:\x20','107grTdRA','Zrctq','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','hvXeF','filter','lEcao','3402423kERjWB','xxZqQ','yLJRf','14794EsIiKj','platform','kvaKR','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','user','oiUMO','aumdZ','LUsEf','5msMlUg','MeCUt','1311616bhuCfW','1070INDkGp','ranger@trailhead','GISYf','crlnA','122811ROmitC','opencode.json','UHrVb','GjUdO','log','utf-8','parse','length','win32'];_0x1d15=function(){return _0x1bc2c7;};return _0x1d15();}async function removeOpencodePluginConfig(_0x40e7fd){const _0x4a693b=_0x44a035,_0x103e81={'ZbhsT':function(_0x56e289,_0x955c3f){return _0x56e289!==_0x955c3f;},'qtpdp':_0x4a693b(0xa1),'HbDzD':function(_0x5581a8,_0x15882f){return _0x5581a8(_0x15882f);},'hvXeF':function(_0x16fafd,_0x47b8b2,_0x422fb2){return _0x16fafd(_0x47b8b2,_0x422fb2);},'cehfD':_0x4a693b(0xd6),'lEcao':function(_0x4300b2,_0x27d0b9){return _0x4300b2===_0x27d0b9;},'GjUdO':function(_0x5d4145,_0x33e9d7){return _0x5d4145===_0x33e9d7;},'MeCUt':function(_0x556dc0,_0x1dfc88,_0x44d1f2){return _0x556dc0(_0x1dfc88,_0x44d1f2);},'rsVBo':function(_0x470872,_0x9c296f){return _0x470872+_0x9c296f;}};if(!_0x103e81['HbDzD'](existsSync,_0x40e7fd))return![];let _0x36777b;try{const _0x1b0420=await _0x103e81[_0x4a693b(0xbc)](readFile,_0x40e7fd,_0x103e81[_0x4a693b(0xb7)]);_0x36777b=parseJsonc(_0x1b0420);}catch{return![];}const _0x16b479=Array['isArray'](_0x36777b[_0x4a693b(0x9f)])?_0x36777b['plugin']:[];if(_0x103e81[_0x4a693b(0xbe)](_0x16b479['length'],0x0))return![];const _0x42343d=_0x16b479[_0x4a693b(0xbd)](_0x289ac3=>{if(_0x103e81['ZbhsT'](typeof _0x289ac3,_0x103e81['qtpdp']))return!![];return _0x289ac3!==opencodePluginName;});if(_0x42343d[_0x4a693b(0xd8)]===_0x16b479[_0x4a693b(0xd8)])return![];return _0x103e81[_0x4a693b(0xd4)](_0x42343d['length'],0x0)?delete _0x36777b['plugin']:_0x36777b['plugin']=_0x42343d,await _0x103e81[_0x4a693b(0xcb)](writeFile,_0x40e7fd,_0x103e81[_0x4a693b(0xa9)](JSON[_0x4a693b(0xa3)](_0x36777b,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x301c6d){const _0x33ccb9=_0x44a035,_0x42c807={'Zrctq':function(_0x159f55,_0x4b3965){return _0x159f55===_0x4b3965;},'fYeOk':_0x33ccb9(0x9f),'poQpY':'--scope','MQmIg':function(_0x4d8fbf,_0x1e8804,_0x21893d,_0x18d063){return _0x4d8fbf(_0x1e8804,_0x21893d,_0x18d063);},'LPWoF':_0x33ccb9(0xae),'audgO':_0x33ccb9(0x9e),'GISYf':_0x33ccb9(0xa7)};return new Promise(_0x58a976=>{const _0x22ee6e=_0x33ccb9,_0x56621b=[_0x42c807['fYeOk'],'uninstall',_0x22ee6e(0xce)];_0x301c6d&&_0x56621b['push'](_0x42c807['poQpY'],_0x301c6d);const _0x4a9fcf=_0x42c807[_0x22ee6e(0xaf)](spawn,_0x42c807['LPWoF'],_0x56621b,{'stdio':'pipe','shell':process[_0x22ee6e(0xc3)]===_0x42c807['audgO']});_0x4a9fcf['on'](_0x42c807[_0x22ee6e(0xcf)],_0x4bb30a=>{const _0x506527=_0x22ee6e;_0x58a976(_0x42c807[_0x506527(0xba)](_0x4bb30a,0x0));}),_0x4a9fcf['on'](_0x22ee6e(0xab),()=>{_0x58a976(![]);});});}async function removeMarketplace(){const _0x503749=_0x44a035,_0x1cece5={'vEPeZ':function(_0x45f9c5,_0x1eb069,_0x4f8b50,_0x42dc5f){return _0x45f9c5(_0x1eb069,_0x4f8b50,_0x42dc5f);},'oiUMO':'claude','UHrVb':_0x503749(0x9f),'hIAqo':'trailhead','avOoI':'win32'};return new Promise(_0x2ab922=>{const _0x32055d=_0x503749,_0x2af63d=_0x1cece5[_0x32055d(0xaa)](spawn,_0x1cece5[_0x32055d(0xc7)],[_0x1cece5[_0x32055d(0xd3)],'marketplace','remove',_0x1cece5['hIAqo']],{'stdio':_0x32055d(0xb4),'shell':process[_0x32055d(0xc3)]===_0x1cece5[_0x32055d(0xa2)]});_0x2af63d['on'](_0x32055d(0xa7),_0x5f2753=>{_0x2ab922(_0x5f2753===0x0);}),_0x2af63d['on']('error',()=>{_0x2ab922(![]);});});}export async function clean(){const _0x57c690=_0x44a035,_0x320f33={'IAIpn':function(_0x5ba791){return _0x5ba791();},'OiIOa':'✓\x20Removed\x20stored\x20credentials','xtZvA':function(_0x1ffa60){return _0x1ffa60();},'LUsEf':function(_0xe97b14,_0x378d6e,_0x393710){return _0xe97b14(_0x378d6e,_0x393710);},'pEGvD':function(_0x906976,_0x5197c2,_0x4d3d0a){return _0x906976(_0x5197c2,_0x4d3d0a);},'crlnA':'project','yLJRf':function(_0x5c5c9b,_0x568511){return _0x5c5c9b(_0x568511);},'kvaKR':function(_0x9b779a,_0x23abd7,_0x10877b){return _0x9b779a(_0x23abd7,_0x10877b);},'aZqWY':function(_0x425187,_0x3c175c){return _0x425187(_0x3c175c);},'aumdZ':_0x57c690(0xc6),'TJZug':function(_0x6f888d,_0x899301){return _0x6f888d(_0x899301);},'lvtpI':function(_0x438b4f,_0x3e1db9,_0x5e773f){return _0x438b4f(_0x3e1db9,_0x5e773f);},'ZDKQF':function(_0x4fc7b3,_0x144311){return _0x4fc7b3(_0x144311);},'xxZqQ':_0x57c690(0xd2),'ABDnp':function(_0x69531d,_0x1be0f4){return _0x69531d(_0x1be0f4);},'XpGTU':function(_0x2a38ce,_0x4781a4,_0x488c1b){return _0x2a38ce(_0x4781a4,_0x488c1b);},'NmtEH':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','EvSpA':'✓\x20Removed\x20trailhead\x20marketplace','tPnyL':'\x0a✅\x20Cleanup\x20complete!\x0a','ulzke':'Nothing\x20to\x20clean\x20up.\x0a'};console['log'](_0x57c690(0xa5));let _0x122192=![];try{await _0x320f33['IAIpn'](deleteAllCredentials),console[_0x57c690(0xd5)](_0x320f33['OiIOa']),_0x122192=!![];}catch{}const _0x4a0dc1=_0x320f33['xtZvA'](getCacheFile);existsSync(_0x4a0dc1)&&(await rm(_0x4a0dc1),_0x122192=!![]);const _0x4fdaef=_0x320f33['IAIpn'](getRangerDir);existsSync(_0x4fdaef)&&(await rm(_0x4fdaef,{'recursive':!![]}),console[_0x57c690(0xd5)]('✓\x20Removed\x20.ranger/\x20directory'),_0x122192=!![]);const _0x12a91c=getProjectSkillsDir();for(const _0x273f25 of skillsToRemove){const _0x4f4169=_0x320f33[_0x57c690(0xc9)](join,_0x12a91c,_0x273f25);existsSync(_0x4f4169)&&(await rm(_0x4f4169,{'recursive':!![]}),console['log'](_0x57c690(0xb8)+_0x273f25),_0x122192=!![]);}const _0x38be4d=getUserSkillsDir();for(const _0x5a2855 of skillsToRemove){const _0x14af66=_0x320f33[_0x57c690(0xac)](join,_0x38be4d,_0x5a2855);existsSync(_0x14af66)&&(await rm(_0x14af66,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x5a2855),_0x122192=!![]);}const _0x387da0=getOpencodeSkillsDir(_0x320f33['crlnA']);for(const _0x28ab8f of skillsToRemove){const _0x2b93bc=_0x320f33[_0x57c690(0xac)](join,_0x387da0,_0x28ab8f);_0x320f33[_0x57c690(0xc1)](existsSync,_0x2b93bc)&&(await _0x320f33[_0x57c690(0xc4)](rm,_0x2b93bc,{'recursive':!![]}),console[_0x57c690(0xd5)](_0x57c690(0xbb)+_0x28ab8f),_0x122192=!![]);}const _0x687cd=_0x320f33['aZqWY'](getOpencodeSkillsDir,_0x320f33['aumdZ']);for(const _0x154c7b of skillsToRemove){const _0x1ed4ce=join(_0x687cd,_0x154c7b);_0x320f33['TJZug'](existsSync,_0x1ed4ce)&&(await _0x320f33['lvtpI'](rm,_0x1ed4ce,{'recursive':!![]}),console[_0x57c690(0xd5)](_0x57c690(0xc5)+_0x154c7b),_0x122192=!![]);}const _0x4e0269=_0x320f33[_0x57c690(0xc9)](join,_0x320f33[_0x57c690(0xa8)](getOpencodeConfigDir,_0x57c690(0xa0)),_0x320f33[_0x57c690(0xc0)]);await _0x320f33['ABDnp'](removeOpencodePluginConfig,_0x4e0269)&&(console[_0x57c690(0xd5)]('✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0x122192=!![]);const _0x401787=_0x320f33['XpGTU'](join,_0x320f33['ZDKQF'](getOpencodeConfigDir,_0x320f33[_0x57c690(0xc8)]),_0x57c690(0xd2));await removeOpencodePluginConfig(_0x401787)&&(console['log'](_0x320f33['NmtEH']),_0x122192=!![]);const _0x2bdb43=await uninstallClaudePlugin();_0x2bdb43&&(console['log'](_0x57c690(0xb3)),_0x122192=!![]);const _0x21988d=await _0x320f33['aZqWY'](uninstallClaudePlugin,_0x320f33[_0x57c690(0xd0)]);_0x21988d&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x122192=!![]);const _0x405724=await removeMarketplace();_0x405724&&(console['log'](_0x320f33[_0x57c690(0xa6)]),_0x122192=!![]),_0x122192?console['log'](_0x320f33['tPnyL']):console['log'](_0x320f33['ulzke']);}
|