@ranger-testing/ranger-cli 2.5.4-alpha.27e3ee8-11 → 2.5.4-alpha.57338f5-12
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/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.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/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.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/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -0
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.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/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.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 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/skills/ranger/SKILL.md +13 -7
- package/build/skills/ranger/create.md +16 -3
- package/build/skills/ranger/verify.md +23 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x36cd4c,_0x4653e0){const _0x14bfe8=_0x2b4c,_0x462430=_0x36cd4c();while(!![]){try{const _0x46acc4=parseInt(_0x14bfe8(0x17d))/0x1+-parseInt(_0x14bfe8(0x178))/0x2+parseInt(_0x14bfe8(0x181))/0x3*(-parseInt(_0x14bfe8(0x17c))/0x4)+parseInt(_0x14bfe8(0x17a))/0x5*(parseInt(_0x14bfe8(0x17b))/0x6)+-parseInt(_0x14bfe8(0x182))/0x7*(parseInt(_0x14bfe8(0x17f))/0x8)+parseInt(_0x14bfe8(0x183))/0x9*(parseInt(_0x14bfe8(0x17e))/0xa)+parseInt(_0x14bfe8(0x177))/0xb*(parseInt(_0x14bfe8(0x179))/0xc);if(_0x46acc4===_0x4653e0)break;else _0x462430['push'](_0x462430['shift']());}catch(_0x365ae6){_0x462430['push'](_0x462430['shift']());}}}(_0x2d95,0x95f28));function _0x2b4c(_0x5e22d4,_0x1a121b){_0x5e22d4=_0x5e22d4-0x177;const _0x2d9542=_0x2d95();let _0x2b4c38=_0x2d9542[_0x5e22d4];return _0x2b4c38;}function _0x2d95(){const _0x1b7851=['5Kdrerw','7319478QFTbYc','3414652xkEMPo','156684rsAHAb','10PdjXki','40NDMKvC','qLyXm','3ChHwNJ','1452101STQWVQ','10833786gIlYEI','6655GfAOvv','2188218zFZtSz','20208CxJKbE'];_0x2d95=function(){return _0x1b7851;};return _0x2d95();}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x1634be){const _0x4faf46=_0x2b4c,_0x239ab4={'qLyXm':function(_0x2208d2,_0x4dadd6){return _0x2208d2(_0x4dadd6);}},_0x4fd3c8=_0x1634be?_0x239ab4[_0x4faf46(0x180)](_0x1634be,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x4fd3c8+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4cec(_0x14199,_0xfff60c){_0x14199=_0x14199-0x97;const _0x52927b=_0x5292();let _0x4cec78=_0x52927b[_0x14199];return _0x4cec78;}(function(_0x134f96,_0x357c3e){const _0x1ac9c7=_0x4cec,_0x10a91b=_0x134f96();while(!![]){try{const _0x3a7547=-parseInt(_0x1ac9c7(0x98))/0x1+parseInt(_0x1ac9c7(0x9f))/0x2+parseInt(_0x1ac9c7(0xa1))/0x3*(-parseInt(_0x1ac9c7(0xa4))/0x4)+-parseInt(_0x1ac9c7(0xa2))/0x5+parseInt(_0x1ac9c7(0x99))/0x6*(parseInt(_0x1ac9c7(0x9e))/0x7)+parseInt(_0x1ac9c7(0x9a))/0x8+parseInt(_0x1ac9c7(0x9b))/0x9;if(_0x3a7547===_0x357c3e)break;else _0x10a91b['push'](_0x10a91b['shift']());}catch(_0x33fcaa){_0x10a91b['push'](_0x10a91b['shift']());}}}(_0x5292,0xc5331));function _0x5292(){const _0x54aadd=['<div\x20class=\x22ranger-banner__message\x22>','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','8014657GqUTOG','2166650oPMleA','IAUkM','12YOsTXJ','340210ImQIln','</div>','1138604ElYnoK','<div\x20class=\x22ranger-banner__content\x22>','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','HKghD','1261683CRtJAK','6LXmLnX','2753184odVbzZ','6332706CcWMyG'];_0x5292=function(){return _0x54aadd;};return _0x5292();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x522cf9=_0x4cec,_0x35a227={'HKghD':function(_0x471528,_0x3c7869){return _0x471528+_0x3c7869;},'YxERl':_0x522cf9(0xa5),'IAUkM':_0x522cf9(0x9c),'OghUe':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','Nxrnw':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x48573b=_0x35a227[_0x522cf9(0x97)](_0x35a227[_0x522cf9(0x97)](_0x35a227['HKghD'](_0x35a227['YxERl'],_0x522cf9(0x9d)),_0x35a227[_0x522cf9(0xa0)])+_0x35a227['OghUe']+'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>',_0x522cf9(0xa3))+_0x522cf9(0xa3)+_0x35a227['Nxrnw'],_0x366e4d=_0x522cf9(0xa6);return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x48573b)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x366e4d)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x2cd323){await _0x2cd323['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4472(_0x259cc6,_0x52bfbd){_0x259cc6=_0x259cc6-0x177;const _0x32772e=_0x3277();let _0x4472f3=_0x32772e[_0x259cc6];return _0x4472f3;}(function(_0x3f7d4f,_0x1d843f){const _0x21019f=_0x4472,_0x2bdb65=_0x3f7d4f();while(!![]){try{const _0x4dd45b=-parseInt(_0x21019f(0x191))/0x1+-parseInt(_0x21019f(0x177))/0x2*(-parseInt(_0x21019f(0x185))/0x3)+parseInt(_0x21019f(0x1a5))/0x4*(-parseInt(_0x21019f(0x193))/0x5)+-parseInt(_0x21019f(0x18f))/0x6+parseInt(_0x21019f(0x179))/0x7+parseInt(_0x21019f(0x1a0))/0x8+parseInt(_0x21019f(0x178))/0x9;if(_0x4dd45b===_0x1d843f)break;else _0x2bdb65['push'](_0x2bdb65['shift']());}catch(_0xa93848){_0x2bdb65['push'](_0x2bdb65['shift']());}}}(_0x3277,0x6c454));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){return join(getRangerHomeDir(),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x978ca3=_0x4472,_0x1baa4d={'RReuE':function(_0x3b67b4,_0x58acd9){return _0x3b67b4(_0x58acd9);},'ZwSdL':function(_0x16fe81,_0x1b5582,_0x3d1490){return _0x16fe81(_0x1b5582,_0x3d1490);},'ucZtj':_0x978ca3(0x1a4),'NaFQu':function(_0x1b7c31,_0x314aa2){return _0x1b7c31 instanceof _0x314aa2;},'rputF':function(_0x4e43b6){return _0x4e43b6();},'egBAH':function(_0x1259cd,_0x46409a){return _0x1259cd instanceof _0x46409a;},'OpIoX':function(_0x252dec,_0x17792c){return _0x252dec!==_0x17792c;},'dCTWE':'object'},_0x568abf=getProjectsConfigPath();if(!_0x1baa4d['RReuE'](existsSync,_0x568abf))return emptyConfig();let _0xd232f6;try{_0xd232f6=_0x1baa4d[_0x978ca3(0x18d)](readFileSync,_0x568abf,_0x1baa4d[_0x978ca3(0x190)]);}catch(_0x1dd240){const _0x12fbd1=_0x1baa4d['NaFQu'](_0x1dd240,Error)?_0x1dd240['message']:String(_0x1dd240);return console[_0x978ca3(0x19e)](_0x978ca3(0x187)+_0x568abf+':\x20'+_0x12fbd1+_0x978ca3(0x184)),_0x1baa4d[_0x978ca3(0x19a)](emptyConfig);}let _0xdf2f0a;try{_0xdf2f0a=JSON[_0x978ca3(0x17a)](_0xd232f6);}catch(_0x29521a){const _0x28046f=_0x1baa4d[_0x978ca3(0x18c)](_0x29521a,Error)?_0x29521a[_0x978ca3(0x19c)]:String(_0x29521a);return console[_0x978ca3(0x19e)](_0x978ca3(0x18b)+_0x568abf+'\x20is\x20not\x20valid\x20JSON\x20('+_0x28046f+_0x978ca3(0x18e)),_0x1baa4d[_0x978ca3(0x19a)](emptyConfig);}if(!_0xdf2f0a||typeof _0xdf2f0a!==_0x978ca3(0x17b)||Array['isArray'](_0xdf2f0a)||_0x1baa4d['OpIoX'](_0xdf2f0a[_0x978ca3(0x186)],CURRENT_VERSION)||typeof _0xdf2f0a[_0x978ca3(0x197)]!==_0x1baa4d[_0x978ca3(0x17c)]||_0xdf2f0a['projects']===null||Array['isArray'](_0xdf2f0a[_0x978ca3(0x197)]))return console['warn'](_0x978ca3(0x18b)+_0x568abf+_0x978ca3(0x1a2)),_0x1baa4d['rputF'](emptyConfig);return _0xdf2f0a;}export function writeProjectsConfig(_0x33a1f6){const _0x1c8af4=_0x4472,_0x43e43d={'rKDDF':function(_0x183e02,_0x4c8f9c){return _0x183e02+_0x4c8f9c;},'jzbpx':_0x1c8af4(0x1a4),'Mxflg':function(_0x4e551b,_0x39f3ab){return _0x4e551b(_0x39f3ab);}},_0x1c32f7=getProjectsConfigPath(),_0x13adb0=dirname(_0x1c32f7);!existsSync(_0x13adb0)&&mkdirSync(_0x13adb0,{'recursive':!![]});const _0x430470=_0x1c32f7+'.'+process['pid']+'.'+Date[_0x1c8af4(0x17e)]()+'.tmp',_0x49bc75=_0x43e43d[_0x1c8af4(0x196)](JSON['stringify'](_0x33a1f6,null,0x2),'\x0a');try{writeFileSync(_0x430470,_0x49bc75,{'encoding':_0x43e43d['jzbpx'],'mode':0x180}),renameSync(_0x430470,_0x1c32f7);}catch(_0x417c30){try{existsSync(_0x430470)&&_0x43e43d[_0x1c8af4(0x182)](unlinkSync,_0x430470);}catch{}throw _0x417c30;}}export function readProfileOverrides(_0x34807e,_0x301572){const _0x43b3c6=_0x4472,_0x34d8d0=readProjectsConfig(),_0x506193=_0x34d8d0[_0x43b3c6(0x197)][_0x34807e];if(!_0x506193||!_0x506193['profiles'])return null;const _0x2c3539=_0x506193[_0x43b3c6(0x199)][_0x301572];if(!_0x2c3539||!_0x2c3539['settings'])return null;return _0x2c3539['settings']??null;}export function setProfileOverride(_0x23cd78,_0x28b746,_0x31750a,_0x64f890){const _0x4946ba=_0x4472,_0x16cc27={'ywZAB':_0x4946ba(0x19f),'XPSIB':function(_0x2e0eab,_0x5bd22a){return _0x2e0eab(_0x5bd22a);}};if(!_0x31750a)throw new Error(_0x16cc27[_0x4946ba(0x1a1)]);const _0x9b2c66=readProjectsConfig(),_0x1eee81=_0x9b2c66['projects'][_0x23cd78]??={},_0x33e513=_0x1eee81['profiles']??={},_0x5aee84=_0x33e513[_0x28b746]??={},_0x3efc63=_0x5aee84['settings']??={};setByKeyPath(_0x3efc63,_0x31750a,_0x64f890),_0x16cc27['XPSIB'](writeProjectsConfig,_0x9b2c66);}export function unsetProfileOverride(_0x585dd7,_0x56859f,_0x338862){const _0x19c347=_0x4472,_0x4f8b30={'NTsgm':_0x19c347(0x19f),'vuOCB':function(_0x37ec0b){return _0x37ec0b();},'badpC':function(_0x168acf,_0x43544e,_0x1d96c2){return _0x168acf(_0x43544e,_0x1d96c2);}};if(!_0x338862)throw new Error(_0x4f8b30['NTsgm']);const _0x15a56d=_0x4f8b30['vuOCB'](readProjectsConfig),_0x3d2cbf=_0x15a56d['projects'][_0x585dd7];if(!_0x3d2cbf?.['profiles'])return![];const _0x23d3ea=_0x3d2cbf[_0x19c347(0x199)][_0x56859f];if(!_0x23d3ea?.['settings'])return![];const _0xfcf9b6=_0x4f8b30[_0x19c347(0x181)](deleteByKeyPath,_0x23d3ea['settings'],_0x338862);if(!_0xfcf9b6)return![];return writeProjectsConfig(_0x15a56d),!![];}export function resetProfileOverrides(_0x71c3a4,_0x177a9a){const _0x43b48e=_0x4472,_0x496473={'KhnAz':function(_0x37001a){return _0x37001a();},'jkyZD':function(_0x1f177a,_0x1870fb){return _0x1f177a===_0x1870fb;}},_0x7be6c2=_0x496473['KhnAz'](readProjectsConfig),_0xbe3104=_0x7be6c2['projects'][_0x71c3a4];if(!_0xbe3104?.[_0x43b48e(0x199)])return;if(!(_0x177a9a in _0xbe3104['profiles']))return;delete _0xbe3104[_0x43b48e(0x199)][_0x177a9a],_0x496473[_0x43b48e(0x195)](Object[_0x43b48e(0x1a3)](_0xbe3104[_0x43b48e(0x199)])[_0x43b48e(0x180)],0x0)&&delete _0xbe3104['profiles'],!_0xbe3104['profiles']&&delete _0x7be6c2[_0x43b48e(0x197)][_0x71c3a4],writeProjectsConfig(_0x7be6c2);}export function mergeCloudProfileSettings(_0xf8451d,_0xa3973c){const _0x2b83af=_0x4472,_0x5f033b={'FCIrU':function(_0x116573,_0x1b3af8){return _0x116573??_0x1b3af8;},'aoieF':function(_0x21476b,_0x1e5326){return _0x21476b===_0x1e5326;},'atuVW':function(_0x52ec1f,_0x17ca59){return _0x52ec1f===_0x17ca59;},'CRhrd':function(_0x51c8ad,_0x94588e){return _0x51c8ad===_0x94588e;},'YIEPm':function(_0x1597e5,_0x3c2659){return _0x1597e5===_0x3c2659;},'Ivipy':'setupHeaders','nfjuT':function(_0x5c77fd,_0x38c99f){return _0x5c77fd(_0x38c99f);},'pbmlO':function(_0x2c7239,_0x4bbbfa){return _0x2c7239!==_0x4bbbfa;}},_0x500397={..._0x5f033b[_0x2b83af(0x189)](_0xf8451d,{})};if(!_0xa3973c)return _0x500397;for(const [_0x31ee32,_0x3d94dd]of Object['entries'](_0xa3973c)){if(_0x5f033b[_0x2b83af(0x17d)](_0x3d94dd,undefined))continue;if(_0x5f033b[_0x2b83af(0x188)](_0x3d94dd,null)){delete _0x500397[_0x31ee32];continue;}if(_0x5f033b['CRhrd'](_0x31ee32,_0x2b83af(0x183))||_0x5f033b[_0x2b83af(0x194)](_0x31ee32,_0x5f033b[_0x2b83af(0x19b)])){const _0x51d959=asRecord(_0x500397[_0x31ee32])??{},_0x46193c=_0x5f033b['nfjuT'](asRecord,_0x3d94dd);if(!_0x46193c){_0x500397[_0x31ee32]=_0x3d94dd;continue;}const _0x46be32={..._0x51d959};for(const [_0x251fcb,_0x175b75]of Object['entries'](_0x46193c)){if(_0x175b75===null)delete _0x46be32[_0x251fcb];else _0x5f033b['pbmlO'](_0x175b75,undefined)&&(_0x46be32[_0x251fcb]=_0x175b75);}_0x500397[_0x31ee32]=_0x46be32;continue;}_0x500397[_0x31ee32]=_0x3d94dd;}return _0x500397;}function asRecord(_0x3aa895){const _0x4dd963=_0x4472,_0x536945={'vrKQG':function(_0x26f245,_0x2b12db){return _0x26f245===_0x2b12db;}};return _0x3aa895&&_0x536945[_0x4dd963(0x192)](typeof _0x3aa895,_0x4dd963(0x17b))&&!Array[_0x4dd963(0x18a)](_0x3aa895)?_0x3aa895:undefined;}function setByKeyPath(_0x1b4057,_0x1ee7b8,_0x534af1){const _0x3f8759=_0x4472,_0x42bbcd={'lTvIc':function(_0x549e2b,_0x2c1157){return _0x549e2b-_0x2c1157;},'Bguxu':function(_0x58cfc3,_0x589fd1){return _0x58cfc3!==_0x589fd1;},'YmMIP':function(_0x4ab474,_0x268ae4){return _0x4ab474-_0x268ae4;}},_0x409ce5=_0x1ee7b8['split']('.');let _0x412a88=_0x1b4057;for(let _0x367105=0x0;_0x367105<_0x42bbcd['lTvIc'](_0x409ce5['length'],0x1);_0x367105++){const _0x4d15b2=_0x409ce5[_0x367105],_0x5d29b9=_0x412a88[_0x4d15b2];(!_0x5d29b9||_0x42bbcd['Bguxu'](typeof _0x5d29b9,'object')||Array['isArray'](_0x5d29b9))&&(_0x412a88[_0x4d15b2]={}),_0x412a88=_0x412a88[_0x4d15b2];}_0x412a88[_0x409ce5[_0x42bbcd['YmMIP'](_0x409ce5[_0x3f8759(0x180)],0x1)]]=_0x534af1;}function _0x3277(){const _0x1c1f3b=['FCIrU','isArray','[ranger]\x20Warning:\x20','egBAH','ZwSdL',').\x20Ignoring\x20local\x20profile\x20overrides.','2427804PTtmZo','ucZtj','194039nzcCEY','vrKQG','10RijVJG','YIEPm','jkyZD','rKDDF','projects','split','profiles','rputF','Ivipy','message','PpNgQ','warn','keyPath\x20is\x20required','977464ZEhvEm','ywZAB','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','keys','utf-8','428132QtooWI','2jVjJGo','3229506LhUDdE','154301zlpfZZ','parse','object','dCTWE','aoieF','now','xxRzb','length','badpC','Mxflg','headers','.\x20Ignoring\x20local\x20profile\x20overrides.','2259465MUYSCm','version','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','atuVW'];_0x3277=function(){return _0x1c1f3b;};return _0x3277();}function deleteByKeyPath(_0xfbffa7,_0x32af37){const _0x592bf7=_0x4472,_0x3ff1e0={'xxRzb':function(_0x57cb13,_0x46cbc0){return _0x57cb13-_0x46cbc0;},'PpNgQ':function(_0x462612,_0x310ad8){return _0x462612 in _0x310ad8;}},_0x5d84b1=_0x32af37[_0x592bf7(0x198)]('.');let _0xa45b6=_0xfbffa7;for(let _0x78e1=0x0;_0x78e1<_0x3ff1e0[_0x592bf7(0x17f)](_0x5d84b1[_0x592bf7(0x180)],0x1);_0x78e1++){const _0x323544=_0x5d84b1[_0x78e1],_0x40663a=_0xa45b6[_0x323544];if(!_0x40663a||typeof _0x40663a!==_0x592bf7(0x17b)||Array[_0x592bf7(0x18a)](_0x40663a))return![];_0xa45b6=_0x40663a;}const _0x540622=_0x5d84b1[_0x3ff1e0['xxRzb'](_0x5d84b1[_0x592bf7(0x180)],0x1)];if(!_0x3ff1e0[_0x592bf7(0x19d)](_0x540622,_0xa45b6))return![];return delete _0xa45b6[_0x540622],!![];}
|
|
1
|
+
(function(_0x292f2f,_0x1131a8){const _0x478f77=_0x4072,_0x6186f=_0x292f2f();while(!![]){try{const _0xdbb3d=parseInt(_0x478f77(0x19e))/0x1+-parseInt(_0x478f77(0x199))/0x2*(-parseInt(_0x478f77(0x18c))/0x3)+-parseInt(_0x478f77(0x18a))/0x4+parseInt(_0x478f77(0x1b0))/0x5+-parseInt(_0x478f77(0x1a5))/0x6*(parseInt(_0x478f77(0x1a6))/0x7)+parseInt(_0x478f77(0x184))/0x8*(parseInt(_0x478f77(0x191))/0x9)+parseInt(_0x478f77(0x18b))/0xa*(parseInt(_0x478f77(0x1ad))/0xb);if(_0xdbb3d===_0x1131a8)break;else _0x6186f['push'](_0x6186f['shift']());}catch(_0x7366b6){_0x6186f['push'](_0x6186f['shift']());}}}(_0x28f0,0x87aac));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x1e6488=_0x4072,_0x4a0b77={'cvMHL':function(_0x7be14a,_0xd52692,_0x42517a){return _0x7be14a(_0xd52692,_0x42517a);},'IPtYm':function(_0x22a37c){return _0x22a37c();}};return _0x4a0b77[_0x1e6488(0x1aa)](join,_0x4a0b77['IPtYm'](getRangerHomeDir),'projects.json');}function _0x28f0(){const _0x13f6fc=['stringify','isArray','warn','pYiNx','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','1645856PZKrkV','15820rTqadV','989139uQpjOT','headers','wJJOi','qjKPR','pygPH','9MzmwWP','entries','KRKiS','ywTtN','XDIPm','LrREE','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','settings','4FsKczA','AbraR','lastProfile','now','object','304985GGCOJQ','fTxUP','kqNDO','[ranger]\x20Warning:\x20','split','parse','BQIGa','272964ysBALS','161nICYbo','UyHOO','uOfoa','message','cvMHL','length','.tmp','1111qGMWPE','Xrnpr','ujYxl','3660165ucICjB','cjQSD','projects','keys','profiles','1258336LdnKXS'];_0x28f0=function(){return _0x13f6fc;};return _0x28f0();}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x13c6a8=_0x4072,_0x5d303b={'LrREE':function(_0x3e6705,_0x166f0b){return _0x3e6705(_0x166f0b);},'wFXjx':function(_0x19589b){return _0x19589b();},'ywTtN':function(_0x4891c4,_0x2f1391,_0x8a8311){return _0x4891c4(_0x2f1391,_0x8a8311);},'fenFF':function(_0x35ee5c,_0xb4e8b2){return _0x35ee5c instanceof _0xb4e8b2;},'wJJOi':function(_0x284299,_0x244ac7){return _0x284299!==_0x244ac7;},'EASrR':_0x13c6a8(0x19d)},_0x3989d3=getProjectsConfigPath();if(!_0x5d303b[_0x13c6a8(0x196)](existsSync,_0x3989d3))return _0x5d303b['wFXjx'](emptyConfig);let _0x4869b3;try{_0x4869b3=_0x5d303b[_0x13c6a8(0x194)](readFileSync,_0x3989d3,'utf-8');}catch(_0x2563cf){const _0x5aa984=_0x5d303b['fenFF'](_0x2563cf,Error)?_0x2563cf[_0x13c6a8(0x1a9)]:_0x5d303b['LrREE'](String,_0x2563cf);return console[_0x13c6a8(0x187)](_0x13c6a8(0x189)+_0x3989d3+':\x20'+_0x5aa984+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x5d303b['wFXjx'](emptyConfig);}let _0xe44ff4;try{_0xe44ff4=JSON[_0x13c6a8(0x1a3)](_0x4869b3);}catch(_0x2651cf){const _0x563a53=_0x2651cf instanceof Error?_0x2651cf[_0x13c6a8(0x1a9)]:_0x5d303b['LrREE'](String,_0x2651cf);return console[_0x13c6a8(0x187)](_0x13c6a8(0x1a1)+_0x3989d3+'\x20is\x20not\x20valid\x20JSON\x20('+_0x563a53+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0xe44ff4||_0x5d303b['wJJOi'](typeof _0xe44ff4,_0x5d303b['EASrR'])||Array['isArray'](_0xe44ff4)||_0xe44ff4['version']!==CURRENT_VERSION||_0x5d303b[_0x13c6a8(0x18e)](typeof _0xe44ff4[_0x13c6a8(0x181)],_0x13c6a8(0x19d))||_0xe44ff4[_0x13c6a8(0x181)]===null||Array[_0x13c6a8(0x186)](_0xe44ff4['projects']))return console[_0x13c6a8(0x187)]('[ranger]\x20Warning:\x20'+_0x3989d3+_0x13c6a8(0x197)),emptyConfig();return _0xe44ff4;}export function writeProjectsConfig(_0x365ddd){const _0x15c3cd=_0x4072,_0x57b9c3={'kqNDO':function(_0x15b75b){return _0x15b75b();},'AbraR':function(_0x59c6ee,_0x476296){return _0x59c6ee(_0x476296);},'ujYxl':function(_0x2acdd6,_0x5ab1ce){return _0x2acdd6(_0x5ab1ce);},'MnRuf':function(_0x37df74,_0x372896){return _0x37df74+_0x372896;},'KTKuJ':function(_0x24c88b,_0x4c790b,_0x34bb33,_0x5ddf6a){return _0x24c88b(_0x4c790b,_0x34bb33,_0x5ddf6a);},'uOfoa':'utf-8','KRKiS':function(_0x29b3c5,_0x2c8e4f,_0x1a2a92){return _0x29b3c5(_0x2c8e4f,_0x1a2a92);},'ROeCh':function(_0x396954,_0x4f2cd5){return _0x396954(_0x4f2cd5);}},_0x25c4ca=_0x57b9c3[_0x15c3cd(0x1a0)](getProjectsConfigPath),_0x4d56c6=_0x57b9c3[_0x15c3cd(0x19a)](dirname,_0x25c4ca);!_0x57b9c3[_0x15c3cd(0x1af)](existsSync,_0x4d56c6)&&mkdirSync(_0x4d56c6,{'recursive':!![]});const _0x6ecdf3=_0x25c4ca+'.'+process['pid']+'.'+Date[_0x15c3cd(0x19c)]()+_0x15c3cd(0x1ac),_0x2a0637=_0x57b9c3['MnRuf'](JSON[_0x15c3cd(0x185)](_0x365ddd,null,0x2),'\x0a');try{_0x57b9c3['KTKuJ'](writeFileSync,_0x6ecdf3,_0x2a0637,{'encoding':_0x57b9c3[_0x15c3cd(0x1a8)],'mode':0x180}),_0x57b9c3[_0x15c3cd(0x193)](renameSync,_0x6ecdf3,_0x25c4ca);}catch(_0x368738){try{_0x57b9c3['ROeCh'](existsSync,_0x6ecdf3)&&unlinkSync(_0x6ecdf3);}catch{}throw _0x368738;}}export function readProfileOverrides(_0x38d970,_0x28a99c){const _0x19f0d5=_0x4072,_0x566f67=readProjectsConfig(),_0x73dcbe=_0x566f67[_0x19f0d5(0x181)][_0x38d970];if(!_0x73dcbe||!_0x73dcbe['profiles'])return null;const _0x5a6703=_0x73dcbe['profiles'][_0x28a99c];if(!_0x5a6703||!_0x5a6703[_0x19f0d5(0x198)])return null;return _0x5a6703[_0x19f0d5(0x198)]??null;}export function setProfileOverride(_0x49ef06,_0x519b25,_0x42865b,_0x4e7b7d){const _0x3bebef=_0x4072,_0x595dbe={'smIOf':'keyPath\x20is\x20required','Xrnpr':function(_0x2d5b34){return _0x2d5b34();},'cjQSD':function(_0x3bd78e,_0x279204){return _0x3bd78e(_0x279204);}};if(!_0x42865b)throw new Error(_0x595dbe['smIOf']);const _0x2313ad=_0x595dbe[_0x3bebef(0x1ae)](readProjectsConfig),_0x325998=_0x2313ad[_0x3bebef(0x181)][_0x49ef06]??={},_0x7f43ec=_0x325998[_0x3bebef(0x183)]??={},_0x1b7b33=_0x7f43ec[_0x519b25]??={},_0x17a3cc=_0x1b7b33['settings']??={};setByKeyPath(_0x17a3cc,_0x42865b,_0x4e7b7d),_0x595dbe[_0x3bebef(0x1b1)](writeProjectsConfig,_0x2313ad);}export function unsetProfileOverride(_0x4d9a34,_0x12ac13,_0x3f9dab){const _0x6d0e78=_0x4072,_0x12f350={'pYiNx':'keyPath\x20is\x20required','UyHOO':function(_0x5e1b8d){return _0x5e1b8d();}};if(!_0x3f9dab)throw new Error(_0x12f350[_0x6d0e78(0x188)]);const _0x5f4dca=_0x12f350[_0x6d0e78(0x1a7)](readProjectsConfig),_0x48db5c=_0x5f4dca['projects'][_0x4d9a34];if(!_0x48db5c?.['profiles'])return![];const _0x2352cf=_0x48db5c[_0x6d0e78(0x183)][_0x12ac13];if(!_0x2352cf?.[_0x6d0e78(0x198)])return![];const _0x1b30ac=deleteByKeyPath(_0x2352cf[_0x6d0e78(0x198)],_0x3f9dab);if(!_0x1b30ac)return![];return writeProjectsConfig(_0x5f4dca),!![];}export function resetProfileOverrides(_0x279aab,_0x1411f2){const _0x174336=_0x4072,_0x9b5662={'uECrk':function(_0xb37238){return _0xb37238();}},_0x1ea2d0=_0x9b5662['uECrk'](readProjectsConfig),_0x5ea1ef=_0x1ea2d0[_0x174336(0x181)][_0x279aab];if(!_0x5ea1ef?.['profiles'])return;if(!(_0x1411f2 in _0x5ea1ef['profiles']))return;delete _0x5ea1ef['profiles'][_0x1411f2],Object[_0x174336(0x182)](_0x5ea1ef[_0x174336(0x183)])['length']===0x0&&(!_0x5ea1ef['lastProfile']?delete _0x1ea2d0[_0x174336(0x181)][_0x279aab]:_0x5ea1ef[_0x174336(0x183)]={}),writeProjectsConfig(_0x1ea2d0);}export function readLastProfile(_0x31425e){const _0x25e448=_0x4072,_0x493050=readProjectsConfig(),_0x586413=_0x493050['projects'][_0x31425e];return _0x586413?.[_0x25e448(0x19b)]??null;}export function writeLastProfile(_0x112661,_0x5399fc){const _0xb1f4d0=_0x4072,_0x83dc8c={'XDIPm':function(_0x34c2d0){return _0x34c2d0();},'fTxUP':function(_0x118bbe,_0x4ab123){return _0x118bbe(_0x4ab123);}},_0x472f67=_0x83dc8c[_0xb1f4d0(0x195)](readProjectsConfig),_0x3c564e=_0x472f67['projects'][_0x112661]??={};_0x3c564e[_0xb1f4d0(0x19b)]=_0x5399fc,_0x83dc8c[_0xb1f4d0(0x19f)](writeProjectsConfig,_0x472f67);}export function mergeCloudProfileSettings(_0x473eff,_0x2f5e1a){const _0x1e9a93=_0x4072,_0x4771fe={'KXkyn':function(_0xeabf2a,_0xe4a179){return _0xeabf2a===_0xe4a179;},'ulkrd':function(_0x46d8dd,_0x18b96c){return _0x46d8dd===_0x18b96c;},'pygPH':function(_0x4c6a5e,_0x5e6b8e){return _0x4c6a5e===_0x5e6b8e;},'rKXUc':function(_0x1aa4f1,_0x5ba3bc){return _0x1aa4f1(_0x5ba3bc);}},_0x32f256={..._0x473eff??{}};if(!_0x2f5e1a)return _0x32f256;for(const [_0x469cb3,_0x5d086f]of Object[_0x1e9a93(0x192)](_0x2f5e1a)){if(_0x4771fe['KXkyn'](_0x5d086f,undefined))continue;if(_0x5d086f===null){delete _0x32f256[_0x469cb3];continue;}if(_0x4771fe['ulkrd'](_0x469cb3,_0x1e9a93(0x18d))||_0x4771fe[_0x1e9a93(0x190)](_0x469cb3,'setupHeaders')){const _0x4c9eba=asRecord(_0x32f256[_0x469cb3])??{},_0xbbe372=_0x4771fe['rKXUc'](asRecord,_0x5d086f);if(!_0xbbe372){_0x32f256[_0x469cb3]=_0x5d086f;continue;}const _0x33b840={..._0x4c9eba};for(const [_0x18724e,_0x283816]of Object['entries'](_0xbbe372)){if(_0x4771fe['pygPH'](_0x283816,null))delete _0x33b840[_0x18724e];else _0x283816!==undefined&&(_0x33b840[_0x18724e]=_0x283816);}_0x32f256[_0x469cb3]=_0x33b840;continue;}_0x32f256[_0x469cb3]=_0x5d086f;}return _0x32f256;}function asRecord(_0x2648a7){return _0x2648a7&&typeof _0x2648a7==='object'&&!Array['isArray'](_0x2648a7)?_0x2648a7:undefined;}function _0x4072(_0xfb6989,_0x19f795){_0xfb6989=_0xfb6989-0x181;const _0x28f075=_0x28f0();let _0x4072fc=_0x28f075[_0xfb6989];return _0x4072fc;}function setByKeyPath(_0x27c6eb,_0xa51a82,_0x378210){const _0x503b9b=_0x4072,_0xbf4773={'BpOBi':function(_0x4cc416,_0x4874dd){return _0x4cc416!==_0x4874dd;},'BQIGa':'object','isWVs':function(_0x2ad50f,_0x3b78b5){return _0x2ad50f-_0x3b78b5;}},_0x274735=_0xa51a82[_0x503b9b(0x1a2)]('.');let _0x91bd2f=_0x27c6eb;for(let _0x3aea0c=0x0;_0x3aea0c<_0x274735[_0x503b9b(0x1ab)]-0x1;_0x3aea0c++){const _0x41ec47=_0x274735[_0x3aea0c],_0x4189fe=_0x91bd2f[_0x41ec47];(!_0x4189fe||_0xbf4773['BpOBi'](typeof _0x4189fe,_0xbf4773[_0x503b9b(0x1a4)])||Array['isArray'](_0x4189fe))&&(_0x91bd2f[_0x41ec47]={}),_0x91bd2f=_0x91bd2f[_0x41ec47];}_0x91bd2f[_0x274735[_0xbf4773['isWVs'](_0x274735['length'],0x1)]]=_0x378210;}function deleteByKeyPath(_0x461c4e,_0x17dee8){const _0x34a646=_0x4072,_0x1a1534={'qjKPR':function(_0x250eae,_0x5e9dfd){return _0x250eae-_0x5e9dfd;}},_0xc7ecbe=_0x17dee8[_0x34a646(0x1a2)]('.');let _0x21f473=_0x461c4e;for(let _0x4acd49=0x0;_0x4acd49<_0x1a1534[_0x34a646(0x18f)](_0xc7ecbe[_0x34a646(0x1ab)],0x1);_0x4acd49++){const _0x1d8352=_0xc7ecbe[_0x4acd49],_0x6a2c91=_0x21f473[_0x1d8352];if(!_0x6a2c91||typeof _0x6a2c91!=='object'||Array['isArray'](_0x6a2c91))return![];_0x21f473=_0x6a2c91;}const _0x18d92e=_0xc7ecbe[_0xc7ecbe['length']-0x1];if(!(_0x18d92e in _0x21f473))return![];return delete _0x21f473[_0x18d92e],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x39086a,_0x35c802){const _0x106ea6=_0x1eaf,_0x2aa164=_0x39086a();while(!![]){try{const _0x3a6753=-parseInt(_0x106ea6(0x1ba))/0x1*(-parseInt(_0x106ea6(0x1ad))/0x2)+parseInt(_0x106ea6(0x1be))/0x3+-parseInt(_0x106ea6(0x1bd))/0x4*(-parseInt(_0x106ea6(0x1b9))/0x5)+-parseInt(_0x106ea6(0x1bf))/0x6*(-parseInt(_0x106ea6(0x1ae))/0x7)+parseInt(_0x106ea6(0x1b3))/0x8+parseInt(_0x106ea6(0x1b2))/0x9+parseInt(_0x106ea6(0x1b4))/0xa*(-parseInt(_0x106ea6(0x1bb))/0xb);if(_0x3a6753===_0x35c802)break;else _0x2aa164['push'](_0x2aa164['shift']());}catch(_0x223a02){_0x2aa164['push'](_0x2aa164['shift']());}}}(_0x36af,0x8a862));function _0x36af(){const _0x2f9c18=['DYrXz','637060NQYGha','8039CQUYOK','88OeaNas','message','20ApYhJo','2634216UFcvmP','6MfWmXi','object','6nSxrMT','5918304RTLBUK','GSJHj','OAMBp','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','1838052ualpCX','34728gccqIY','2532370Fdwhmt','tBzqs','model','parse'];_0x36af=function(){return _0x2f9c18;};return _0x36af();}import{readFile}from'fs/promises';function _0x1eaf(_0x361ec8,_0x3655eb){_0x361ec8=_0x361ec8-0x1ac;const _0x36af17=_0x36af();let _0x1eafe5=_0x36af17[_0x361ec8];return _0x1eafe5;}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){return join(getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0x430abe=_0x1eaf,_0x471c21={'lEaCf':function(_0x409f0d){return _0x409f0d();},'DYrXz':function(_0x199b8a,_0x3cec4d){return _0x199b8a(_0x3cec4d);},'GSJHj':function(_0x5df83d,_0x560129,_0x4a2828){return _0x5df83d(_0x560129,_0x4a2828);},'tBzqs':'utf-8','uRtBq':function(_0x2e66c6,_0x306d56){return _0x2e66c6!==_0x306d56;},'OAMBp':'string'},_0x20c91b=_0x471c21['lEaCf'](getRangerConfigPath);if(!_0x471c21[_0x430abe(0x1b8)](existsSync,_0x20c91b))return{};try{const _0x1f088c=await _0x471c21[_0x430abe(0x1af)](readFile,_0x20c91b,_0x471c21[_0x430abe(0x1b5)]),_0x1ed998=JSON[_0x430abe(0x1b7)](_0x1f088c);if(!_0x1ed998||_0x471c21['uRtBq'](typeof _0x1ed998,_0x430abe(0x1ac))||Array['isArray'](_0x1ed998))return{};const _0x1f0a30={},_0x59c82e=_0x1ed998['model'];return typeof _0x59c82e===_0x471c21[_0x430abe(0x1b0)]&&(_0x1f0a30[_0x430abe(0x1b6)]=_0x59c82e),_0x1f0a30;}catch(_0x42a9f8){const _0xa505ba=_0x42a9f8 instanceof Error?_0x42a9f8[_0x430abe(0x1bc)]:String(_0x42a9f8);return console['warn'](_0x430abe(0x1b1)+_0x20c91b+':\x20'+_0xa505ba),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5f3f09,_0x118288){const _0x2b6b4e=_0x3cca,_0x56631e=_0x5f3f09();while(!![]){try{const _0x287be0=-parseInt(_0x2b6b4e(0xa6))/0x1*(-parseInt(_0x2b6b4e(0x9d))/0x2)+-parseInt(_0x2b6b4e(0xa2))/0x3+-parseInt(_0x2b6b4e(0xa8))/0x4*(-parseInt(_0x2b6b4e(0xa0))/0x5)+-parseInt(_0x2b6b4e(0x9f))/0x6*(parseInt(_0x2b6b4e(0xad))/0x7)+-parseInt(_0x2b6b4e(0xab))/0x8+-parseInt(_0x2b6b4e(0xa1))/0x9+parseInt(_0x2b6b4e(0xa4))/0xa;if(_0x287be0===_0x118288)break;else _0x56631e['push'](_0x56631e['shift']());}catch(_0x1e4156){_0x56631e['push'](_0x56631e['shift']());}}}(_0x2b41,0x2aed4));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x3ecfce=_0x3cca,_0x2a83a3={'lWBIv':'.ranger'};let _0x1587d0=process[_0x3ecfce(0xac)]();const _0x2eaf48=parse(_0x1587d0)['root'];while(_0x1587d0!==_0x2eaf48){if(existsSync(join(_0x1587d0,_0x2a83a3[_0x3ecfce(0xa3)])))return _0x1587d0;_0x1587d0=dirname(_0x1587d0);}if(existsSync(join(_0x2eaf48,_0x2a83a3[_0x3ecfce(0xa3)])))return _0x2eaf48;const _0x127c71=findGitRoot();if(_0x127c71)return _0x127c71;return process['cwd']();}function _0x3cca(_0x2b6c1d,_0x31a93b){_0x2b6c1d=_0x2b6c1d-0x9d;const _0x2b412f=_0x2b41();let _0x3ccab6=_0x2b412f[_0x2b6c1d];return _0x3ccab6;}function _0x2b41(){const _0x5b2152=['2369160ZogsgD','cwd','7yqjjtG','74mWHeYe','.ranger','2009658TADeMQ','835LexMKX','705375uLpJAe','671451flvtWD','lWBIv','7864740LUieRg','AfRbv','5601ZoRPqT','nlzYY','2764GcQawK','MQkcd','qEXel'];_0x2b41=function(){return _0x5b2152;};return _0x2b41();}export function getRangerDir(){const _0x4a67d3=_0x3cca,_0x4eca19={'nlzYY':function(_0x4d4d4d){return _0x4d4d4d();}};return join(_0x4eca19[_0x4a67d3(0xa7)](getRangerRoot),'.ranger');}export function findGitRoot(){const _0x59cff1=_0x3cca,_0xd6c8b7={'qEXel':function(_0x2ae23c,_0x4a46fe){return _0x2ae23c(_0x4a46fe);},'MQkcd':function(_0x2ec912,_0x108743){return _0x2ec912(_0x108743);},'AfRbv':'.git'};let _0x223f8e=process[_0x59cff1(0xac)]();const _0x5868a7=_0xd6c8b7[_0x59cff1(0xaa)](parse,_0x223f8e)['root'];while(_0x223f8e!==_0x5868a7){if(_0xd6c8b7['MQkcd'](existsSync,join(_0x223f8e,_0xd6c8b7[_0x59cff1(0xa5)])))return _0x223f8e;_0x223f8e=_0xd6c8b7[_0x59cff1(0xa9)](dirname,_0x223f8e);}if(_0xd6c8b7['qEXel'](existsSync,join(_0x5868a7,'.git')))return _0x5868a7;return null;}export function getRangerHomeDir(){const _0xb16894=_0x3cca;return join(homedir(),_0xb16894(0x9e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b4533,_0x47d9c8){const _0x1777e9=_0x3e5b,_0xcee109=_0x1b4533();while(!![]){try{const _0x5c216d=-parseInt(_0x1777e9(0xab))/0x1+-parseInt(_0x1777e9(0xd3))/0x2*(parseInt(_0x1777e9(0xbc))/0x3)+-parseInt(_0x1777e9(0xc1))/0x4*(-parseInt(_0x1777e9(0xc6))/0x5)+-parseInt(_0x1777e9(0xc8))/0x6+-parseInt(_0x1777e9(0xd2))/0x7+-parseInt(_0x1777e9(0xa4))/0x8+-parseInt(_0x1777e9(0xa5))/0x9*(-parseInt(_0x1777e9(0xb1))/0xa);if(_0x5c216d===_0x47d9c8)break;else _0xcee109['push'](_0xcee109['shift']());}catch(_0xa72543){_0xcee109['push'](_0xcee109['shift']());}}}(_0x4312,0x591d1));import{existsSync}from'fs';import _0x5683e7 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';function _0x3e5b(_0x503d89,_0x16b00f){_0x503d89=_0x503d89-0xa1;const _0x431237=_0x4312();let _0x3e5bd9=_0x431237[_0x503d89];return _0x3e5bd9;}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x4312(){const _0xf9d454=['OgdPu','resolvedEnv','4LkGkAB','envBaseUrl','iCnzb','string','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','29455AJOAuW','settings','2607714pxybps','paTfF','UXLQh','RANGER_TEST_USERNAME','vmZYX','MAcKl','dRhvJ','Cloud\x20profile\x20(recommended)','envStartPath','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','1944236dZVADN','2VRqDat','CKNpy','RANGER_SESSION_STATE_PATH','env','3060880kmJhea','16030026WGrtQP','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','LiDXE','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','name','cdpEndpoint','191581nyWOca','cloud','bDVYp','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','cwd','profile','10BxYIsO','url','status','RANGER_SESSION_STATE_PATH=','baseUrl','source','startPath','rLRea','WVHNB','uSbbE','`ranger\x20profile\x20add`\x20to\x20create\x20one.','406314eLXjcK','HlAZk','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'];_0x4312=function(){return _0xf9d454;};return _0x4312();}import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x31fe36){const _0x22570a=_0x3e5b,_0x5a31a9={'rLRea':function(_0xb9b761){return _0xb9b761();},'UXLQh':function(_0x33a808,_0x5005eb){return _0x33a808+_0x5005eb;},'uSbbE':'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','LwooR':_0x22570a(0xa6),'vmZYX':_0x22570a(0xd1),'kDSek':function(_0x123932,_0x273809){return _0x123932(_0x273809);},'IPTxG':_0x22570a(0xbb),'paTfF':function(_0x1de39f){return _0x1de39f();},'rQsPP':'list','dRhvJ':'cloud','HSBct':function(_0x4f14b7,_0x3cb2ad,_0x7eb7b0){return _0x4f14b7(_0x3cb2ad,_0x7eb7b0);},'WVHNB':function(_0x5ae54b,_0x5a770c){return _0x5ae54b(_0x5a770c);},'MAcKl':function(_0x2a7962,_0x1dd972){return _0x2a7962(_0x1dd972);},'CKNpy':function(_0x317eed,_0x5d1b9a){return _0x317eed(_0x5d1b9a);},'HlAZk':function(_0x4a28da,_0x520d02){return _0x4a28da(_0x520d02);},'OgdPu':function(_0x284f86,_0x3474bc){return _0x284f86&&_0x3474bc;}},_0x5b5bc8=_0x31fe36[_0x22570a(0xb0)];let _0x33a13f=_0x31fe36[_0x22570a(0xb0)]??await _0x5a31a9[_0x22570a(0xb8)](readActiveProfileName),_0x35674b=null;if(!_0x33a13f&&process['env'][_0x22570a(0xcb)]){const _0x20fa3f=await resolveAdHocProfile();_0x20fa3f&&(_0x33a13f=_0x20fa3f[_0x22570a(0xa9)],_0x35674b=_0x20fa3f['profile']);}if(!_0x33a13f)try{const _0x5a8f72=await listCloudProfiles();if(_0x5a8f72['length']===0x1){const _0x5ce365=_0x5a8f72[0x0];_0x33a13f=_0x5ce365['name'],console['log']('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x5ce365['name']),console['log'](_0x22570a(0xc5));}}catch{}if(!_0x33a13f)throw new Error(_0x5a31a9['UXLQh'](_0x5a31a9[_0x22570a(0xca)]('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a'+'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a',_0x5a31a9[_0x22570a(0xba)])+_0x5a31a9['LwooR'],_0x5a31a9[_0x22570a(0xcc)]));const _0x166ace=_0x5a31a9['kDSek'](getEnvDir,_0x33a13f),_0x2692de=_0x5a31a9['kDSek'](existsSync,_0x166ace);let _0x1b6ce7=_0x35674b,_0x259a67=![];if(!_0x1b6ce7)try{_0x1b6ce7=await _0x5a31a9['kDSek'](fetchCloudProfile,_0x33a13f);if(!_0x1b6ce7)_0x259a67=!![];}catch(_0x37f153){_0x37f153 instanceof ApiError&&_0x37f153[_0x22570a(0xb3)]===0x194&&(_0x259a67=!![]);}if(_0x5b5bc8&&_0x259a67&&!_0x2692de&&!_0x1b6ce7)throw new Error('Profile\x20\x22'+_0x5b5bc8+_0x22570a(0xa8)+_0x22570a(0xbe)+_0x5a31a9['IPTxG']);if(_0x1b6ce7&&_0x2692de){let _0x22608c=!![];if(_0x5a31a9[_0x22570a(0xc9)](isInteractive)){const {source:_0x75304d}=await _0x5683e7['prompt']([{'type':_0x5a31a9['rQsPP'],'name':_0x22570a(0xb6),'message':'Profile\x20\x22'+_0x33a13f+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x22570a(0xcf),'value':'cloud'},{'name':'Local\x20profile','value':'local'}],'default':_0x22570a(0xac)}]);_0x22608c=_0x75304d===_0x5a31a9[_0x22570a(0xce)];}if(!_0x22608c)_0x1b6ce7=null;}const _0x4d3d81=_0x5a31a9['HSBct'](readProfileOverrides,process[_0x22570a(0xaf)](),_0x33a13f);let _0x2b1f9e=null,_0x562d49,_0x286e92,_0x3991f0,_0x1bf229,_0xb1726f=null,_0x3c1638;const _0x16069f=expandOverrides(_0x4d3d81);if(_0x1b6ce7){_0x2b1f9e=_0x1b6ce7;const _0x524ed8=_0x1b6ce7[_0x22570a(0xc7)]??{},_0xde8555=mergeCloudProfileSettings(_0x524ed8,_0x4d3d81??undefined),_0x5b2a0c={..._0x1b6ce7,'settings':_0xde8555},_0xa4cc25=process[_0x22570a(0xa3)][_0x22570a(0xa2)];if(_0xa4cc25){const _0x166fe0='0|3|1|4|2'['split']('|');let _0x3326df=0x0;while(!![]){switch(_0x166fe0[_0x3326df++]){case'0':if(!_0x5a31a9['WVHNB'](existsSync,_0xa4cc25))throw new Error(_0x22570a(0xb4)+_0xa4cc25+'\x20does\x20not\x20exist.');continue;case'1':_0x286e92=_0x5a31a9[_0x22570a(0xcd)](resolveEnvVars,_0xde8555);continue;case'2':_0xb1726f={'baseUrl':_0x5a31a9['kDSek'](expandString,_0x524ed8[_0x22570a(0xb5)]),'startPath':_0x5a31a9[_0x22570a(0xa1)](expandString,_0x524ed8['startPath'])};continue;case'3':_0x562d49=_0xa4cc25;continue;case'4':_0x3991f0=_0x5a31a9['CKNpy'](Boolean,_0x286e92[_0x22570a(0xaa)]);continue;}break;}}else{const _0x14a477=await resolveCloudProfileSession(_0x5b2a0c);_0x562d49=_0x14a477['authPath'],_0x286e92=_0x5a31a9['CKNpy'](resolveEnvVars,_0xde8555),_0x3991f0=Boolean(_0x286e92[_0x22570a(0xaa)]),_0xb1726f={'baseUrl':_0x5a31a9[_0x22570a(0xb9)](expandString,_0x524ed8['baseUrl']),'startPath':expandString(_0x524ed8['startPath'])},_0x3c1638=_0x14a477[_0x22570a(0xc0)]?.['domains']?.[0x0];}}else{if(!_0x2692de)throw new Error('Profile\x20\x22'+_0x33a13f+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x33a13f);const _0x3c8989=await _0x5a31a9[_0x22570a(0xbd)](loadSettings,_0x33a13f);_0x286e92=_0x5a31a9['MAcKl'](resolveEnvVars,_0x3c8989),_0x3991f0=_0x5a31a9[_0x22570a(0xcd)](Boolean,_0x286e92['cdpEndpoint']),_0x1bf229=_0x286e92[_0x22570a(0xb5)];}const _0x2e188d=readUrlEnvVars(),_0x3bf237=resolveProfileUrl({'flagBaseUrl':_0x31fe36[_0x22570a(0xb5)],'flagStartPath':_0x31fe36['startPath'],'envBaseUrl':_0x2e188d[_0x22570a(0xc2)],'envStartPath':_0x2e188d[_0x22570a(0xd0)],'localSettingsBaseUrl':_0x1bf229,'projectOverrides':_0x16069f,'cloudSettings':_0xb1726f,'authEnvironmentDomain':_0x3c1638}),_0x5d18a8=_0x3bf237[_0x22570a(0xb2)]??_0x3bf237[_0x22570a(0xb5)];if(_0x5a31a9[_0x22570a(0xbf)](!_0x5d18a8,!_0x3991f0))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x33a13f+_0x22570a(0xae)+_0x33a13f+'\x20baseUrl\x20<url>');return{'activeProfile':_0x33a13f,'resolvedCloudProfile':_0x2b1f9e,'cloudAuthPath':_0x562d49,'resolvedSettings':_0x286e92,'isCdpMode':_0x3991f0,'url':_0x5d18a8,'startPath':_0x3bf237[_0x22570a(0xb7)]};}function expandString(_0x562985){const _0x2b5507=_0x3e5b,_0x5af52d={'gOASn':function(_0xbb79a2,_0x5a4016){return _0xbb79a2!==_0x5a4016;},'iCnzb':'string'};if(_0x5af52d['gOASn'](typeof _0x562985,_0x5af52d[_0x2b5507(0xc3)]))return _0x562985;return resolveEnvVars(_0x562985);}function expandOverrides(_0x378010){const _0x178c1b=_0x3e5b,_0x4e919c={'bDVYp':'string','LiDXE':function(_0x4942dd,_0x3decc5){return _0x4942dd(_0x3decc5);}};if(!_0x378010)return _0x378010;const _0x1a0da3={..._0x378010};return typeof _0x1a0da3[_0x178c1b(0xb5)]===_0x178c1b(0xc4)&&(_0x1a0da3['baseUrl']=resolveEnvVars(_0x1a0da3['baseUrl'])),typeof _0x1a0da3[_0x178c1b(0xb7)]===_0x4e919c[_0x178c1b(0xad)]&&(_0x1a0da3['startPath']=_0x4e919c[_0x178c1b(0xa7)](resolveEnvVars,_0x1a0da3['startPath'])),_0x1a0da3;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3e1669=_0x50a3;(function(_0xe062e9,_0x483a09){const _0x197d30=_0x50a3,_0x554396=_0xe062e9();while(!![]){try{const _0x4d7403=-parseInt(_0x197d30(0x1b8))/0x1*(-parseInt(_0x197d30(0x1b4))/0x2)+parseInt(_0x197d30(0x1bf))/0x3*(parseInt(_0x197d30(0x1af))/0x4)+parseInt(_0x197d30(0x1bc))/0x5+parseInt(_0x197d30(0x1bb))/0x6*(parseInt(_0x197d30(0x1b1))/0x7)+parseInt(_0x197d30(0x1c2))/0x8+-parseInt(_0x197d30(0x1c0))/0x9+-parseInt(_0x197d30(0x1ae))/0xa;if(_0x4d7403===_0x483a09)break;else _0x554396['push'](_0x554396['shift']());}catch(_0x1b8b11){_0x554396['push'](_0x554396['shift']());}}}(_0x42c5,0x44fb2));function firstDefined(..._0x2d4339){const _0x401d53=_0x50a3,_0x14718f={'oaPod':function(_0x229b76,_0x3c3284){return _0x229b76!==_0x3c3284;},'PUCdd':function(_0x5f1ab3,_0x133ad4){return _0x5f1ab3!==_0x133ad4;}};for(const _0x5557f5 of _0x2d4339){if(_0x14718f[_0x401d53(0x1bd)](_0x5557f5,undefined)&&_0x14718f[_0x401d53(0x1b7)](_0x5557f5,null)&&_0x14718f[_0x401d53(0x1b7)](_0x5557f5,''))return _0x5557f5;}return undefined;}function _0x42c5(){const _0x5dab1d=['537jIRPrm','930051qtRbDY','env','4010768fSHcQE','endsWith','zNmgq','10662080WWNepW','2424GzJWEP','startPath','4011dUxWHU','envBaseUrl','hoMUQ','221392vRxnjd','RANGER_BASE_URL','authEnvironmentDomain','PUCdd','3TYckRR','projectOverrides','baseUrl','2298MkYLLO','1453630vUzotg','oaPod','nuQEX'];_0x42c5=function(){return _0x5dab1d;};return _0x42c5();}function normalizeAuthEnvironmentDomain(_0x4732e1){if(!_0x4732e1)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x4732e1))return _0x4732e1;return'https://'+_0x4732e1;}export function resolveBaseUrl(_0x4ff48b){const _0x22d8eb=_0x50a3,_0x5f40d3={'nuQEX':function(_0x18c308,_0x3b467e,_0x27f8ed,_0x394d3d,_0x4b66dc,_0xdb0d0e,_0x9a0155){return _0x18c308(_0x3b467e,_0x27f8ed,_0x394d3d,_0x4b66dc,_0xdb0d0e,_0x9a0155);}},_0x1213b3=_0x4ff48b['projectOverrides'],_0x529969=!!_0x1213b3&&'baseUrl'in _0x1213b3,_0x32d990=_0x1213b3?.[_0x22d8eb(0x1ba)],_0x3ed70d=!(_0x529969&&_0x32d990===null);return _0x5f40d3[_0x22d8eb(0x1be)](firstDefined,_0x4ff48b['flagBaseUrl'],_0x4ff48b[_0x22d8eb(0x1b2)],_0x4ff48b['localSettingsBaseUrl'],typeof _0x32d990==='string'?_0x32d990:undefined,_0x3ed70d?_0x4ff48b['cloudSettings']?.['baseUrl']:undefined,_0x3ed70d?normalizeAuthEnvironmentDomain(_0x4ff48b[_0x22d8eb(0x1b6)]):undefined);}export function resolveStartPath(_0x77790e){const _0x5d4f93=_0x50a3,_0x3c36f2={'aFtWs':function(_0x6aa0b4,_0x467053){return _0x6aa0b4 in _0x467053;},'lxgAV':'startPath','zNmgq':function(_0x103f73,_0x29f968,_0xd764f9,_0x267658,_0x5da6d1){return _0x103f73(_0x29f968,_0xd764f9,_0x267658,_0x5da6d1);},'hoMUQ':'string'},_0x1f9d5e=_0x77790e[_0x5d4f93(0x1b9)],_0x391010=!!_0x1f9d5e&&_0x3c36f2['aFtWs'](_0x3c36f2['lxgAV'],_0x1f9d5e),_0x2f1730=_0x1f9d5e?.[_0x5d4f93(0x1b0)],_0x49181e=!(_0x391010&&_0x2f1730===null);return _0x3c36f2[_0x5d4f93(0x1ad)](firstDefined,_0x77790e['flagStartPath'],_0x77790e['envStartPath'],typeof _0x2f1730===_0x3c36f2[_0x5d4f93(0x1b3)]?_0x2f1730:undefined,_0x49181e?_0x77790e['cloudSettings']?.[_0x5d4f93(0x1b0)]:undefined);}function _0x50a3(_0x31611f,_0x5d334a){_0x31611f=_0x31611f-0x1ac;const _0x42c578=_0x42c5();let _0x50a302=_0x42c578[_0x31611f];return _0x50a302;}export function joinBaseAndPath(_0x15f6db,_0x5a19e7){const _0x4ff0c5=_0x50a3;if(!_0x15f6db)return undefined;if(!_0x5a19e7)return _0x15f6db;const _0x38cbe8=_0x15f6db[_0x4ff0c5(0x1ac)]('/')?_0x15f6db['slice'](0x0,-0x1):_0x15f6db,_0x447c79=_0x5a19e7['startsWith']('/')?_0x5a19e7:'/'+_0x5a19e7;return _0x38cbe8+_0x447c79;}export function resolveProfileUrl(_0x433625){const _0x297713={'tcnuy':function(_0xaf8913,_0x12c4ab){return _0xaf8913(_0x12c4ab);},'uVprK':function(_0x4b06ff,_0x1a838b,_0x48485c){return _0x4b06ff(_0x1a838b,_0x48485c);}},_0x30968a=resolveBaseUrl(_0x433625),_0x6e86d1=_0x297713['tcnuy'](resolveStartPath,_0x433625);return{'baseUrl':_0x30968a,'startPath':_0x6e86d1,'url':_0x297713['uVprK'](joinBaseAndPath,_0x30968a,_0x6e86d1)};}export function readUrlEnvVars(_0x9fbe2a=process[_0x3e1669(0x1c1)]){const _0xac95ff=_0x3e1669;return{'envBaseUrl':_0x9fbe2a[_0xac95ff(0x1b5)],'envStartPath':_0x9fbe2a['RANGER_START_PATH']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3a1c(){const _0x53dbda=['iUeKM','cufOw','2008ahLHda','5435YbseQh','3627wZFkWW','cuhIk','ms...','11fhUYRR','526506UPZXfM','3OAEZcN','label','),\x20retrying\x20in\x20','AtNaJ','1128589xwnDtm','maxRetries','1827890hUgdDQ','baseDelayMs','1784MjdEuP','460532JhXFBX','1956bSmKlw'];_0x3a1c=function(){return _0x53dbda;};return _0x3a1c();}function _0x3778(_0x3bd9f0,_0x4ae65a){_0x3bd9f0=_0x3bd9f0-0x7a;const _0x3a1c0d=_0x3a1c();let _0x3778c9=_0x3a1c0d[_0x3bd9f0];return _0x3778c9;}(function(_0x355e81,_0x4ad842){const _0x32ae04=_0x3778,_0x368ce0=_0x355e81();while(!![]){try{const _0x204a21=-parseInt(_0x32ae04(0x8c))/0x1+parseInt(_0x32ae04(0x82))/0x2*(parseInt(_0x32ae04(0x83))/0x3)+parseInt(_0x32ae04(0x8b))/0x4+-parseInt(_0x32ae04(0x7d))/0x5*(-parseInt(_0x32ae04(0x8d))/0x6)+parseInt(_0x32ae04(0x87))/0x7+-parseInt(_0x32ae04(0x7c))/0x8*(-parseInt(_0x32ae04(0x7e))/0x9)+parseInt(_0x32ae04(0x89))/0xa*(-parseInt(_0x32ae04(0x81))/0xb);if(_0x204a21===_0x4ad842)break;else _0x368ce0['push'](_0x368ce0['shift']());}catch(_0x33be8c){_0x368ce0['push'](_0x368ce0['shift']());}}}(_0x3a1c,0x39e40));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x2843eb,_0x208b41){const _0x56a5ec=_0x3778,_0x37e3dc={'ijYOF':function(_0x91f9df){return _0x91f9df();},'iUeKM':function(_0x439c4f,_0x598127){return _0x439c4f instanceof _0x598127;},'AtNaJ':function(_0x9d5fa0,_0x3cc6e5){return _0x9d5fa0(_0x3cc6e5);},'cufOw':function(_0x400b48,_0x407a5a){return _0x400b48*_0x407a5a;},'cuhIk':function(_0x439acb,_0x25bc42){return _0x439acb+_0x25bc42;}},_0x15ebf6=_0x208b41?.[_0x56a5ec(0x88)]??DEFAULT_MAX_RETRIES,_0x3e68d0=_0x208b41?.[_0x56a5ec(0x8a)]??DEFAULT_BASE_DELAY_MS;let _0x5f11af;for(let _0x330386=0x0;_0x330386<=_0x15ebf6;_0x330386++){try{return await _0x37e3dc['ijYOF'](_0x2843eb);}catch(_0x5e7a80){_0x5f11af=_0x37e3dc[_0x56a5ec(0x7a)](_0x5e7a80,Error)?_0x5e7a80:new Error(_0x37e3dc[_0x56a5ec(0x86)](String,_0x5e7a80));if(_0x330386<_0x15ebf6){const _0xc1b0c2=_0x37e3dc[_0x56a5ec(0x7b)](_0x3e68d0,Math['pow'](0x2,_0x330386));_0x208b41?.['label']&&console['error'](_0x208b41[_0x56a5ec(0x84)]+'\x20failed\x20(attempt\x20'+(_0x330386+0x1)+'/'+_0x37e3dc[_0x56a5ec(0x7f)](_0x15ebf6,0x1)+_0x56a5ec(0x85)+_0xc1b0c2+_0x56a5ec(0x80)),await new Promise(_0x564df9=>setTimeout(_0x564df9,_0xc1b0c2));}}}throw _0x5f11af;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x22e4fb=_0xd0d3;(function(_0x1cdb35,_0x45fc65){const _0x157bc2=_0xd0d3,_0x5b08a7=_0x1cdb35();while(!![]){try{const _0x244e0a=parseInt(_0x157bc2(0x15c))/0x1+parseInt(_0x157bc2(0x153))/0x2+-parseInt(_0x157bc2(0x16d))/0x3+-parseInt(_0x157bc2(0x176))/0x4+-parseInt(_0x157bc2(0x146))/0x5+-parseInt(_0x157bc2(0x14f))/0x6*(-parseInt(_0x157bc2(0x14c))/0x7)+-parseInt(_0x157bc2(0x149))/0x8*(parseInt(_0x157bc2(0x159))/0x9);if(_0x244e0a===_0x45fc65)break;else _0x5b08a7['push'](_0x5b08a7['shift']());}catch(_0xb2b590){_0x5b08a7['push'](_0x5b08a7['shift']());}}}(_0xadc1,0x46002));import*as _0x4fa829 from'fs';import*as _0x4bdb53 from'path';import*as _0x128574 from'os';import{execSync}from'child_process';function _0xd0d3(_0x17cd1b,_0x5df059){_0x17cd1b=_0x17cd1b-0x144;const _0xadc1a1=_0xadc1();let _0xd0d3ff=_0xadc1a1[_0x17cd1b];return _0xd0d3ff;}const CACHE_FILE=_0x4bdb53[_0x22e4fb(0x168)](_0x128574['homedir'](),'.claude',_0x22e4fb(0x167));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x23f397=_0x22e4fb,_0xd407d1={'AckWZ':_0x23f397(0x16e)};try{if(_0x4fa829['existsSync'](CACHE_FILE)){const _0x39ef01=JSON[_0x23f397(0x16f)](_0x4fa829[_0x23f397(0x16a)](CACHE_FILE,_0xd407d1[_0x23f397(0x178)]));return{'version':0x3,'sessions':_0x39ef01[_0x23f397(0x177)]||{},'branches':_0x39ef01[_0x23f397(0x147)]||{},'lastEnabledSessionClearedAt':_0x39ef01['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x4c6952){const _0x4b38d6=_0x22e4fb;try{const _0x4c194e=_0x4bdb53['dirname'](CACHE_FILE);!_0x4fa829['existsSync'](_0x4c194e)&&_0x4fa829[_0x4b38d6(0x157)](_0x4c194e,{'recursive':!![]}),_0x4fa829[_0x4b38d6(0x15a)](CACHE_FILE,JSON[_0x4b38d6(0x14e)](_0x4c6952,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2ebecf=_0x22e4fb,_0x32213b={'erihD':function(_0x32b045,_0x3ba76b,_0x4fcb23){return _0x32b045(_0x3ba76b,_0x4fcb23);},'npNry':_0x2ebecf(0x156),'AxhRf':_0x2ebecf(0x172),'UPTfU':_0x2ebecf(0x145)};try{const _0x4b7406=_0x32213b[_0x2ebecf(0x14a)](execSync,_0x32213b[_0x2ebecf(0x148)],{'encoding':_0x2ebecf(0x16e),'stdio':[_0x32213b['AxhRf'],'pipe',_0x32213b['AxhRf']]})['trim']();if(!_0x4b7406||_0x4b7406===_0x32213b[_0x2ebecf(0x17b)])return null;return _0x4b7406;}catch{return null;}}export function enableBranch(_0x15d2a3){const _0x28d5c3=_0x22e4fb,_0x26701c={'iFsiU':function(_0x4ea9fb){return _0x4ea9fb();}},_0x1337bf=_0x26701c[_0x28d5c3(0x150)](loadCache);_0x1337bf[_0x28d5c3(0x147)][_0x15d2a3]=!![],saveCache(_0x1337bf);}export function disableBranch(_0xe6b90){const _0x5cb771=loadCache();delete _0x5cb771['branches'][_0xe6b90],saveCache(_0x5cb771);}export function isBranchEnabled(_0x50f5d7){const _0x2523d6=_0x22e4fb,_0x40a74c={'drgQX':function(_0x54b9cb){return _0x54b9cb();},'kbIso':function(_0x4260ce,_0x5dccf7){return _0x4260ce===_0x5dccf7;}},_0x1ae3a1=_0x40a74c['drgQX'](loadCache);return _0x40a74c[_0x2523d6(0x175)](_0x1ae3a1[_0x2523d6(0x147)][_0x50f5d7],!![]);}function getOrCreateSession(_0xa114ae,_0x58976e){const _0x1acabb=_0x22e4fb;return!_0xa114ae['sessions'][_0x58976e]&&(_0xa114ae['sessions'][_0x58976e]={}),_0xa114ae[_0x1acabb(0x177)][_0x58976e];}export function enableSession(_0x22c071){const _0x9a9899=_0x22e4fb,_0x58121c={'dhtyn':function(_0x144548){return _0x144548();},'cfltO':function(_0x3ca475,_0x54fdbd){return _0x3ca475!==_0x54fdbd;},'jIsGg':function(_0x45c73f,_0x261199){return _0x45c73f(_0x261199);}},_0x18db81=_0x58121c[_0x9a9899(0x15d)](loadCache),_0x148212=getOrCreateSession(_0x18db81,_0x22c071);_0x148212['enabled']=!![];const _0xcf312b=getCurrentBranch();_0xcf312b&&_0xcf312b!=='main'&&_0x58121c[_0x9a9899(0x164)](_0xcf312b,'master')&&(_0x18db81[_0x9a9899(0x147)][_0xcf312b]=!![],_0x148212['currentBranch']=_0xcf312b),_0x58121c['jIsGg'](saveCache,_0x18db81);}export function isSessionEnabled(_0x389f5d){const _0x1a4991=_0x22e4fb,_0x190612={'wLvbi':function(_0x3bd472){return _0x3bd472();},'wOOMJ':function(_0x4742de,_0x326457){return _0x4742de===_0x326457;},'dgIhi':'main','FnmOH':_0x1a4991(0x154),'sCWgb':function(_0xd85a2e,_0x25060b){return _0xd85a2e===_0x25060b;}},_0xca4019=_0x190612[_0x1a4991(0x171)](loadCache),_0x171d71=getCurrentBranch();if(!_0x171d71||_0x190612[_0x1a4991(0x162)](_0x171d71,_0x190612['dgIhi'])||_0x190612[_0x1a4991(0x162)](_0x171d71,_0x190612[_0x1a4991(0x144)]))return _0x190612['wOOMJ'](_0xca4019[_0x1a4991(0x177)][_0x389f5d]?.[_0x1a4991(0x166)],!![]);const _0x4f57f5=_0x190612[_0x1a4991(0x158)](_0xca4019[_0x1a4991(0x147)][_0x171d71],!![]),_0x311bfe=_0xca4019['sessions'][_0x389f5d]?.['enabled']===!![];return _0x4f57f5||_0x311bfe;}export function disableSession(_0x3f2c47){const _0x46e5a8=_0x22e4fb,_0x4010a5={'JmOOS':function(_0x5c69a4,_0x550da0,_0x3f7123){return _0x5c69a4(_0x550da0,_0x3f7123);}},_0x3682fc=loadCache(),_0xd09985=_0x4010a5['JmOOS'](getOrCreateSession,_0x3682fc,_0x3f2c47);_0xd09985[_0x46e5a8(0x166)]=![],saveCache(_0x3682fc);}export function updateBranchTracking(_0x24d850){const _0x574684=_0x22e4fb,_0x234ef7={'xmaNn':function(_0x577294,_0x3f9fcd){return _0x577294===_0x3f9fcd;}},_0x94824f=loadCache(),_0x36ab73=_0x94824f[_0x574684(0x177)][_0x24d850];if(!_0x36ab73?.['enabled'])return;const _0x591be7=getCurrentBranch();if(!_0x591be7||_0x234ef7[_0x574684(0x15f)](_0x591be7,_0x574684(0x15e))||_0x591be7===_0x574684(0x154))return;_0x36ab73[_0x574684(0x163)]!==_0x591be7&&(_0x94824f['branches'][_0x591be7]=!![],_0x36ab73['currentBranch']=_0x591be7,saveCache(_0x94824f));}export function initBranchTracking(_0xbef117){const _0x1b504a=_0x22e4fb,_0x1ecc00={'OueSk':function(_0x11b770){return _0x11b770();},'Xhzey':function(_0x12142f,_0x157685){return _0x12142f===_0x157685;},'KgAso':function(_0xb05e2,_0x2913dd){return _0xb05e2===_0x2913dd;},'yAkHK':function(_0x131d46,_0x179370){return _0x131d46(_0x179370);}},_0x4e6929=_0x1ecc00[_0x1b504a(0x17a)](loadCache),_0x303fcb=getCurrentBranch();if(!_0x303fcb||_0x1ecc00[_0x1b504a(0x152)](_0x303fcb,_0x1b504a(0x15e))||_0x1ecc00['KgAso'](_0x303fcb,'master'))return;if(_0x4e6929['branches'][_0x303fcb]===!![]){const _0xb6c7e6=getOrCreateSession(_0x4e6929,_0xbef117);_0xb6c7e6['enabled']=!![],_0xb6c7e6[_0x1b504a(0x163)]=_0x303fcb,_0x1ecc00[_0x1b504a(0x16b)](saveCache,_0x4e6929);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1446b4){const _0x4dcc87=_0x22e4fb,_0x26c44d={'CPEtc':function(_0x3d5e62,_0x17603b){return _0x3d5e62(_0x17603b);}},_0x1260a6=loadCache(),_0x585684=_0x1260a6[_0x4dcc87(0x177)][_0x1446b4];_0x585684?.[_0x4dcc87(0x166)]&&(_0x1260a6[_0x4dcc87(0x14d)]=Date[_0x4dcc87(0x160)](),_0x26c44d['CPEtc'](saveCache,_0x1260a6));}export function shouldAutoEnableAfterClear(_0x1eaf10){const _0x5bc412=_0x22e4fb,_0x2527c3={'SZqqD':function(_0x4f3b3a){return _0x4f3b3a();},'koKfl':function(_0x398407,_0x41ce71){return _0x398407-_0x41ce71;},'EDxgI':function(_0x4ba15d,_0x26fd4d){return _0x4ba15d<=_0x26fd4d;}};if(_0x1eaf10!==_0x5bc412(0x169))return![];const _0x5c4a70=_0x2527c3['SZqqD'](loadCache),_0x587cad=_0x5c4a70[_0x5bc412(0x14d)];if(!_0x587cad)return![];const _0x43ee12=_0x2527c3[_0x5bc412(0x16c)](Date[_0x5bc412(0x160)](),_0x587cad);return _0x2527c3['EDxgI'](_0x43ee12,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x11e727){const _0x158e4c=_0x22e4fb,_0x11a61d={'myxVm':function(_0x1411a3){return _0x1411a3();},'UAngI':function(_0x3b2a05){return _0x3b2a05();},'HzKBh':'main','AdOjJ':function(_0x196657,_0x296c8e){return _0x196657!==_0x296c8e;},'ptdXK':'master','bGVIe':function(_0x25d448,_0x4a0c43){return _0x25d448(_0x4a0c43);}},_0x5c9a79=_0x11a61d[_0x158e4c(0x170)](loadCache),_0x5bf09e=getOrCreateSession(_0x5c9a79,_0x11e727);_0x5bf09e[_0x158e4c(0x166)]=!![];const _0x4d1aeb=_0x11a61d['UAngI'](getCurrentBranch);_0x4d1aeb&&_0x4d1aeb!==_0x11a61d['HzKBh']&&_0x11a61d[_0x158e4c(0x173)](_0x4d1aeb,_0x11a61d[_0x158e4c(0x151)])&&(_0x5bf09e[_0x158e4c(0x163)]=_0x4d1aeb),delete _0x5c9a79[_0x158e4c(0x14d)],_0x11a61d['bGVIe'](saveCache,_0x5c9a79);}export function registerSession(_0x36756e,_0x52b57e){const _0x501d29=_0x22e4fb,_0x10cc14=loadCache(),_0x134861=getOrCreateSession(_0x10cc14,_0x36756e);_0x134861['featureId']=_0x52b57e,_0x134861[_0x501d29(0x174)]=new Date()['toISOString'](),saveCache(_0x10cc14);}function _0xadc1(){const _0x4ca8b5=['parse','myxVm','wLvbi','pipe','AdOjJ','registeredAt','kbIso','1521824MMMFsH','sessions','AckWZ','RhlcD','OueSk','UPTfU','FnmOH','HEAD','800815MmHBLK','branches','npNry','8OpQDTD','erihD','eDzhZ','438487vENOCm','lastEnabledSessionClearedAt','stringify','54FxWkho','iFsiU','ptdXK','Xhzey','984510ZSFqoC','master','lastPlanReminderAt','git\x20rev-parse\x20--abbrev-ref\x20HEAD','mkdirSync','sCWgb','3011274nzrpbZ','writeFileSync','featureId','208905ufrXzQ','dhtyn','main','xmaNn','now','xzmbT','wOOMJ','currentBranch','cfltO','WiJCh','enabled','.ranger_cache.json','join','clear','readFileSync','yAkHK','koKfl','309006wviPYK','utf-8'];_0xadc1=function(){return _0x4ca8b5;};return _0xadc1();}export function getSessionEntry(_0x28de5e){const _0x35d4eb=_0x22e4fb,_0x8c039f={'fabmt':function(_0x222306){return _0x222306();}},_0x308ac5=_0x8c039f['fabmt'](loadCache),_0x2ce070=_0x308ac5[_0x35d4eb(0x177)][_0x28de5e];if(_0x2ce070?.['featureId']&&_0x2ce070?.['registeredAt'])return{'featureId':_0x2ce070['featureId'],'registeredAt':_0x2ce070[_0x35d4eb(0x174)]};return null;}export function unregisterSession(_0x25de22){const _0x3511b1=_0x22e4fb,_0xc79ed5={'WIRjk':function(_0x438aa6){return _0x438aa6();}},_0x21ca5e=_0xc79ed5['WIRjk'](loadCache),_0xe8d613=_0x21ca5e[_0x3511b1(0x177)][_0x25de22];_0xe8d613&&(delete _0xe8d613[_0x3511b1(0x15b)],delete _0xe8d613[_0x3511b1(0x174)],saveCache(_0x21ca5e));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x16f123){const _0x20d49e=_0x22e4fb,_0x1fb93c={'eDzhZ':function(_0x6ccf1){return _0x6ccf1();},'UNuDp':function(_0x47a1bf,_0x20ced0){return _0x47a1bf>=_0x20ced0;},'KTNsc':function(_0x5727c3,_0x585391){return _0x5727c3-_0x585391;}},_0x5c4942=_0x1fb93c[_0x20d49e(0x14b)](loadCache),_0x4ae7d9=getOrCreateSession(_0x5c4942,_0x16f123),_0x1445e6=_0x4ae7d9[_0x20d49e(0x155)]||0x0,_0xfc2e54=Date['now']();if(_0x1fb93c['UNuDp'](_0x1fb93c['KTNsc'](_0xfc2e54,_0x1445e6),PLAN_REMINDER_INTERVAL_MS))return _0x4ae7d9['lastPlanReminderAt']=_0xfc2e54,saveCache(_0x5c4942),!![];return![];}export function shouldShowStopReminder(_0xf439ae){const _0x526da3=_0x22e4fb,_0x2a1bfb={'RhlcD':function(_0x1d474b){return _0x1d474b();},'nAFBu':function(_0x5948c7,_0xea9c,_0x36c1e1){return _0x5948c7(_0xea9c,_0x36c1e1);},'UOAFC':function(_0x3105bc,_0x1c3d0a){return _0x3105bc>=_0x1c3d0a;},'WiJCh':function(_0x4b4090,_0x2882e3){return _0x4b4090-_0x2882e3;},'QAAEx':function(_0x2782a4,_0x556e1c){return _0x2782a4(_0x556e1c);}},_0x2dc16c=_0x2a1bfb[_0x526da3(0x179)](loadCache),_0x248278=_0x2a1bfb['nAFBu'](getOrCreateSession,_0x2dc16c,_0xf439ae),_0x3e3f01=_0x248278['lastStopReminderAt']||0x0,_0x3e5029=Date[_0x526da3(0x160)]();if(_0x2a1bfb['UOAFC'](_0x2a1bfb[_0x526da3(0x165)](_0x3e5029,_0x3e3f01),STOP_REMINDER_INTERVAL_MS))return _0x248278['lastStopReminderAt']=_0x3e5029,_0x2a1bfb['QAAEx'](saveCache,_0x2dc16c),!![];return![];}export function hasSessionBeenPrompted(_0xe76fb5){const _0x5b09d7=loadCache();return _0x5b09d7['sessions'][_0xe76fb5]?.['prompted']===!![];}export function markSessionPrompted(_0x2badea){const _0x459a9b=_0x22e4fb,_0x246743={'xzmbT':function(_0x3f7f41,_0x354a2c){return _0x3f7f41(_0x354a2c);}},_0x406136=loadCache(),_0xf2f80c=getOrCreateSession(_0x406136,_0x2badea);_0xf2f80c['prompted']=!![],_0x246743[_0x459a9b(0x161)](saveCache,_0x406136);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x2d1630=_0x4553;(function(_0x3304d9,_0x548ca9){const _0x477e72=_0x4553,_0x44491c=_0x3304d9();while(!![]){try{const _0x417186=-parseInt(_0x477e72(0xc4))/0x1*(-parseInt(_0x477e72(0xb6))/0x2)+-parseInt(_0x477e72(0xb0))/0x3*(parseInt(_0x477e72(0xbc))/0x4)+parseInt(_0x477e72(0xb5))/0x5*(parseInt(_0x477e72(0xc2))/0x6)+parseInt(_0x477e72(0xa0))/0x7*(-parseInt(_0x477e72(0xa5))/0x8)+-parseInt(_0x477e72(0xa9))/0x9+parseInt(_0x477e72(0xaa))/0xa+parseInt(_0x477e72(0xab))/0xb;if(_0x417186===_0x548ca9)break;else _0x44491c['push'](_0x44491c['shift']());}catch(_0xb3a33c){_0x44491c['push'](_0x44491c['shift']());}}}(_0x12f5,0xf2281));function _0x12f5(){const _0xc3916a=['oznai','EQGJo','prompted','lastEnabledSessionClearedAt','8133vsGNCt','stringify','npLKG','branches','.claude','305905njQeMU','22QVTQCy','currentBranch','oZurk','registeredAt','abjfc','jFqOH','2108lrMXsf','pipe','QOIXx','HXStd','trim','sessions','42yPjxwa','featureId','94907szsaoh','GaxWt','KngWV','FatLI','lastPlanReminderAt','OavJr','HEAD','zInjM','now','HDFTG','homedir','enabled','uHOmS','wmTIv','mWhZF','aRVWW','toISOString','fQizq','parse','writeFileSync','master','4234293QLFzDE','lastStopReminderAt','etbce','rNOhk','iQfhQ','24dqqyNd','main','XFygi','existsSync','6601284GhaSgU','9682700lSBHTl','27810519cGgmKE'];_0x12f5=function(){return _0xc3916a;};return _0x12f5();}import*as _0x594596 from'fs';import*as _0x1653c4 from'path';import*as _0x399331 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1653c4['join'](_0x399331[_0x2d1630(0xce)](),_0x2d1630(0xb4),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x4553(_0x2d06e7,_0x4c74be){_0x2d06e7=_0x2d06e7-0x97;const _0x12f565=_0x12f5();let _0x45539c=_0x12f565[_0x2d06e7];return _0x45539c;}function loadCache(){const _0x219584=_0x2d1630,_0x80d3d6={'mWhZF':function(_0x563638){return _0x563638();}};try{if(_0x594596[_0x219584(0xa8)](CACHE_FILE)){const _0x5d38ee=JSON[_0x219584(0x9d)](_0x594596['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x5d38ee[_0x219584(0xc1)]||{},'branches':_0x5d38ee['branches']||{},'lastEnabledSessionClearedAt':_0x5d38ee['lastEnabledSessionClearedAt']};}}catch{}return _0x80d3d6[_0x219584(0x99)](createEmptyCache);}function saveCache(_0x4fd9fa){const _0x41a35a=_0x2d1630;try{const _0x1c34cb=_0x1653c4['dirname'](CACHE_FILE);!_0x594596['existsSync'](_0x1c34cb)&&_0x594596['mkdirSync'](_0x1c34cb,{'recursive':!![]}),_0x594596[_0x41a35a(0x9e)](CACHE_FILE,JSON[_0x41a35a(0xb1)](_0x4fd9fa,null,0x2));}catch{}}export function getCurrentBranch(){const _0xcc0a3b=_0x2d1630,_0x241fa0={'jTxOW':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','KngWV':'utf-8','pKkih':_0xcc0a3b(0xbd)};try{const _0x567380=execSync(_0x241fa0['jTxOW'],{'encoding':_0x241fa0[_0xcc0a3b(0xc6)],'stdio':[_0x241fa0['pKkih'],'pipe',_0xcc0a3b(0xbd)]})[_0xcc0a3b(0xc0)]();if(!_0x567380||_0x567380===_0xcc0a3b(0xca))return null;return _0x567380;}catch{return null;}}export function enableBranch(_0x7357ba){const _0x4cd64e=_0x2d1630,_0x21e97d={'PFnyd':function(_0x1f3d18){return _0x1f3d18();},'jWcCs':function(_0x1bef3e,_0xd5a8d3){return _0x1bef3e(_0xd5a8d3);}},_0x9f1263=_0x21e97d['PFnyd'](loadCache);_0x9f1263[_0x4cd64e(0xb3)][_0x7357ba]=!![],_0x21e97d['jWcCs'](saveCache,_0x9f1263);}export function disableBranch(_0x168faa){const _0x53b928=_0x2d1630,_0x36f5f1={'oznai':function(_0x323a19){return _0x323a19();},'oZurk':function(_0x2fe73b,_0x4ae7a7){return _0x2fe73b(_0x4ae7a7);}},_0x2458ed=_0x36f5f1[_0x53b928(0xac)](loadCache);delete _0x2458ed['branches'][_0x168faa],_0x36f5f1[_0x53b928(0xb8)](saveCache,_0x2458ed);}export function isBranchEnabled(_0x8ff760){const _0x44ecbb=loadCache();return _0x44ecbb['branches'][_0x8ff760]===!![];}function getOrCreateSession(_0x4c3c1d,_0x359b79){const _0x3fbd4a=_0x2d1630;return!_0x4c3c1d[_0x3fbd4a(0xc1)][_0x359b79]&&(_0x4c3c1d[_0x3fbd4a(0xc1)][_0x359b79]={}),_0x4c3c1d['sessions'][_0x359b79];}export function enableSession(_0x4e381f){const _0x56eaa7=_0x2d1630,_0x40bfd9={'auYAi':function(_0xd0d233,_0x1224a9){return _0xd0d233!==_0x1224a9;}},_0x182e9d=loadCache(),_0x523c42=getOrCreateSession(_0x182e9d,_0x4e381f);_0x523c42[_0x56eaa7(0xcf)]=!![];const _0x59378a=getCurrentBranch();_0x59378a&&_0x40bfd9['auYAi'](_0x59378a,'main')&&_0x40bfd9['auYAi'](_0x59378a,_0x56eaa7(0x9f))&&(_0x182e9d[_0x56eaa7(0xb3)][_0x59378a]=!![],_0x523c42['currentBranch']=_0x59378a),saveCache(_0x182e9d);}export function isSessionEnabled(_0x34c31a){const _0x522bb7=_0x2d1630,_0x4613af={'sKfFS':_0x522bb7(0xa6),'FatLI':function(_0x10a4e9,_0x46d161){return _0x10a4e9===_0x46d161;},'iQfhQ':function(_0x3e49c9,_0x391c16){return _0x3e49c9||_0x391c16;}},_0x57dd96=loadCache(),_0x52362b=getCurrentBranch();if(!_0x52362b||_0x52362b===_0x4613af['sKfFS']||_0x4613af[_0x522bb7(0xc7)](_0x52362b,'master'))return _0x57dd96[_0x522bb7(0xc1)][_0x34c31a]?.['enabled']===!![];const _0x538a15=_0x57dd96[_0x522bb7(0xb3)][_0x52362b]===!![],_0x5e4bd3=_0x4613af[_0x522bb7(0xc7)](_0x57dd96['sessions'][_0x34c31a]?.[_0x522bb7(0xcf)],!![]);return _0x4613af[_0x522bb7(0xa4)](_0x538a15,_0x5e4bd3);}export function disableSession(_0xa86847){const _0x7b8f10=_0x2d1630,_0x83abb6=loadCache(),_0x40e506=getOrCreateSession(_0x83abb6,_0xa86847);_0x40e506[_0x7b8f10(0xcf)]=![],saveCache(_0x83abb6);}export function updateBranchTracking(_0xf84b67){const _0x3321d8=_0x2d1630,_0x5b8170={'fQizq':'main','HXStd':function(_0x467f7c,_0x49739b){return _0x467f7c(_0x49739b);}},_0x28b59c=loadCache(),_0x599535=_0x28b59c[_0x3321d8(0xc1)][_0xf84b67];if(!_0x599535?.[_0x3321d8(0xcf)])return;const _0x1ceb3b=getCurrentBranch();if(!_0x1ceb3b||_0x1ceb3b===_0x5b8170[_0x3321d8(0x9c)]||_0x1ceb3b===_0x3321d8(0x9f))return;_0x599535[_0x3321d8(0xb7)]!==_0x1ceb3b&&(_0x28b59c[_0x3321d8(0xb3)][_0x1ceb3b]=!![],_0x599535['currentBranch']=_0x1ceb3b,_0x5b8170[_0x3321d8(0xbf)](saveCache,_0x28b59c));}export function initBranchTracking(_0x39b8b6){const _0x226d86=_0x2d1630,_0x52bcab={'abjfc':function(_0x2acedb){return _0x2acedb();},'GaxWt':function(_0x1e9af7){return _0x1e9af7();},'jFqOH':function(_0x2ba0df,_0x2f99c5){return _0x2ba0df===_0x2f99c5;},'EQGJo':_0x226d86(0xa6),'QOIXx':function(_0x2c2070,_0x27761f){return _0x2c2070(_0x27761f);}},_0x4b333f=_0x52bcab[_0x226d86(0xba)](loadCache),_0x2f11f6=_0x52bcab[_0x226d86(0xc5)](getCurrentBranch);if(!_0x2f11f6||_0x52bcab[_0x226d86(0xbb)](_0x2f11f6,_0x52bcab[_0x226d86(0xad)])||_0x2f11f6===_0x226d86(0x9f))return;if(_0x4b333f[_0x226d86(0xb3)][_0x2f11f6]===!![]){const _0x703029=getOrCreateSession(_0x4b333f,_0x39b8b6);_0x703029[_0x226d86(0xcf)]=!![],_0x703029['currentBranch']=_0x2f11f6,_0x52bcab[_0x226d86(0xbe)](saveCache,_0x4b333f);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0xe23391){const _0x49db8c=_0x2d1630,_0x5c1c90=loadCache(),_0x533fc2=_0x5c1c90['sessions'][_0xe23391];_0x533fc2?.[_0x49db8c(0xcf)]&&(_0x5c1c90[_0x49db8c(0xaf)]=Date[_0x49db8c(0xcc)](),saveCache(_0x5c1c90));}export function shouldAutoEnableAfterClear(_0x3530d8){const _0x48a4c1=_0x2d1630,_0x4598cb={'zInjM':function(_0x5913ab){return _0x5913ab();},'IBUkD':function(_0x4f358f,_0x1d7cf0){return _0x4f358f-_0x1d7cf0;}};if(_0x3530d8!=='clear')return![];const _0x251b0b=_0x4598cb[_0x48a4c1(0xcb)](loadCache),_0x3c7d40=_0x251b0b[_0x48a4c1(0xaf)];if(!_0x3c7d40)return![];const _0x18a1ac=_0x4598cb['IBUkD'](Date[_0x48a4c1(0xcc)](),_0x3c7d40);return _0x18a1ac<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x2c8ec1){const _0x2f6b07=_0x2d1630,_0xc84281={'AjDoo':function(_0x5093d4,_0x33a39e,_0x5a0b08){return _0x5093d4(_0x33a39e,_0x5a0b08);},'lqLWz':function(_0x29f872){return _0x29f872();},'HDFTG':function(_0xcaddd,_0x403899){return _0xcaddd!==_0x403899;},'OavJr':'master'},_0x46e187=loadCache(),_0x1968a8=_0xc84281['AjDoo'](getOrCreateSession,_0x46e187,_0x2c8ec1);_0x1968a8[_0x2f6b07(0xcf)]=!![];const _0x208c0d=_0xc84281['lqLWz'](getCurrentBranch);_0x208c0d&&_0xc84281[_0x2f6b07(0xcd)](_0x208c0d,'main')&&_0x208c0d!==_0xc84281[_0x2f6b07(0xc9)]&&(_0x1968a8[_0x2f6b07(0xb7)]=_0x208c0d),delete _0x46e187[_0x2f6b07(0xaf)],saveCache(_0x46e187);}export function registerSession(_0x249565,_0x56de0a){const _0x3745ef=_0x2d1630,_0xb0ace5={'rNOhk':function(_0x213406,_0x5a50bb,_0x20d52c){return _0x213406(_0x5a50bb,_0x20d52c);}},_0x4eece7=loadCache(),_0x25bf85=_0xb0ace5[_0x3745ef(0xa3)](getOrCreateSession,_0x4eece7,_0x249565);_0x25bf85[_0x3745ef(0xc3)]=_0x56de0a,_0x25bf85[_0x3745ef(0xb9)]=new Date()[_0x3745ef(0x9b)](),saveCache(_0x4eece7);}export function getSessionEntry(_0x215505){const _0x2d51c4=_0x2d1630,_0x508df1={'wmTIv':function(_0x4b0ff0){return _0x4b0ff0();}},_0x2f56a7=_0x508df1[_0x2d51c4(0x98)](loadCache),_0xf0a2fc=_0x2f56a7['sessions'][_0x215505];if(_0xf0a2fc?.[_0x2d51c4(0xc3)]&&_0xf0a2fc?.['registeredAt'])return{'featureId':_0xf0a2fc['featureId'],'registeredAt':_0xf0a2fc['registeredAt']};return null;}export function unregisterSession(_0x302cb3){const _0x3e8073=_0x2d1630,_0x5c9055=loadCache(),_0x428ce2=_0x5c9055['sessions'][_0x302cb3];_0x428ce2&&(delete _0x428ce2['featureId'],delete _0x428ce2[_0x3e8073(0xb9)],saveCache(_0x5c9055));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5624d2){const _0x732140=_0x2d1630,_0x17b641={'etbce':function(_0x35a25e,_0x9a9052,_0x1194e1){return _0x35a25e(_0x9a9052,_0x1194e1);},'aRVWW':function(_0x28160d,_0x45c4ef){return _0x28160d>=_0x45c4ef;}},_0x2f2bcb=loadCache(),_0x4c150e=_0x17b641[_0x732140(0xa2)](getOrCreateSession,_0x2f2bcb,_0x5624d2),_0x2da58c=_0x4c150e['lastPlanReminderAt']||0x0,_0x34dd9d=Date[_0x732140(0xcc)]();if(_0x17b641[_0x732140(0x9a)](_0x34dd9d-_0x2da58c,PLAN_REMINDER_INTERVAL_MS))return _0x4c150e[_0x732140(0xc8)]=_0x34dd9d,saveCache(_0x2f2bcb),!![];return![];}export function shouldShowStopReminder(_0x20be01){const _0x345e86=_0x2d1630,_0x1c1ad0={'uHOmS':function(_0x1dd668,_0x519586){return _0x1dd668>=_0x519586;}},_0x2d37b0=loadCache(),_0x4518ec=getOrCreateSession(_0x2d37b0,_0x20be01),_0x318c2d=_0x4518ec[_0x345e86(0xa1)]||0x0,_0x17ea54=Date[_0x345e86(0xcc)]();if(_0x1c1ad0[_0x345e86(0x97)](_0x17ea54-_0x318c2d,STOP_REMINDER_INTERVAL_MS))return _0x4518ec['lastStopReminderAt']=_0x17ea54,saveCache(_0x2d37b0),!![];return![];}export function hasSessionBeenPrompted(_0x30e094){const _0x59887b=_0x2d1630,_0x25a166={'XFygi':function(_0x24d8d4){return _0x24d8d4();},'RwfIp':function(_0x572f4b,_0x53bca9){return _0x572f4b===_0x53bca9;}},_0x4976e8=_0x25a166[_0x59887b(0xa7)](loadCache);return _0x25a166['RwfIp'](_0x4976e8[_0x59887b(0xc1)][_0x30e094]?.['prompted'],!![]);}export function markSessionPrompted(_0x2c3acd){const _0x59e6cd=_0x2d1630,_0x32f947={'npLKG':function(_0x2c1f14,_0x42b0b8,_0x50564f){return _0x2c1f14(_0x42b0b8,_0x50564f);},'QkgSJ':function(_0x5790d8,_0x30da71){return _0x5790d8(_0x30da71);}},_0x38c7c2=loadCache(),_0x4cec68=_0x32f947[_0x59e6cd(0xb2)](getOrCreateSession,_0x38c7c2,_0x2c3acd);_0x4cec68[_0x59e6cd(0xae)]=!![],_0x32f947['QkgSJ'](saveCache,_0x38c7c2);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ef812=_0x216e;(function(_0x21925d,_0x1af859){const _0x335ba9=_0x216e,_0x1bbb3b=_0x21925d();while(!![]){try{const _0x44fd05=parseInt(_0x335ba9(0x1d0))/0x1+-parseInt(_0x335ba9(0x1da))/0x2*(parseInt(_0x335ba9(0x1cd))/0x3)+parseInt(_0x335ba9(0x1de))/0x4*(parseInt(_0x335ba9(0x1cb))/0x5)+parseInt(_0x335ba9(0x195))/0x6*(parseInt(_0x335ba9(0x1c2))/0x7)+parseInt(_0x335ba9(0x18e))/0x8*(parseInt(_0x335ba9(0x1a7))/0x9)+parseInt(_0x335ba9(0x1d7))/0xa*(-parseInt(_0x335ba9(0x1c7))/0xb)+parseInt(_0x335ba9(0x1e8))/0xc*(-parseInt(_0x335ba9(0x1b5))/0xd);if(_0x44fd05===_0x1af859)break;else _0x1bbb3b['push'](_0x1bbb3b['shift']());}catch(_0x4becad){_0x1bbb3b['push'](_0x1bbb3b['shift']());}}}(_0x4efb,0xe2ec0));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x4efb(){const _0x1271b3=['replace','header','utf-8','fromEntries','XbaeN','stringify','30zBJkXP','--allow-insecure-localhost','locations','Failed\x20to\x20decrypt\x20auth\x20state:\x20','lJMTf','contextOptions','HzluV','headers','args','DGjfD','message','keys','allowInsecureLocalhost','object','oOPZw','clipboard-read','local','GbIpm','171uJexWT','entries','parse','EzCEu','oCFmm','dYRxX','--disable-web-security','includes','vbisH','SufBA','auth.json.enc','--unsafely-treat-insecure-origin-as-secure=http://localhost','setupHeader','JMtwK','715BylXgW','.json','jTAdQ','RNVIs','vpoIj','Zifsx','push','vision','length','LqCdR','repeat','userAgent','EcCKG','1357769ZPcphT','fZtUM','auth.json','boolean','legacy','2229095vDWKhf','pxPdk','Environment\x20variable\x20','NAdAB','153760YByhqg','ZpUoy','511923UUYQRO','none','ranger-auth-','1507494TkHGok','XleeJ','chromium','filter','configPath','erxag','ENOENT','20iwCdrW','zhLCM','rsmJo','14cPBABL','storageState','SHTqc','extraHTTPHeaders','64lLdytA','code','map','TApmj','--disable-setuid-sandbox','WDFCu','JskKa','getuid','path','rGFFH','161220wEqQPB','string','playwright-cli','headless','split','bOPgo','allow','tabs','RKNmv','WvWQR','now','browser','125816BpspCB'];_0x4efb=function(){return _0x1271b3;};return _0x4efb();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x5634d0,_0x1260f8){const _0x4a10bb=_0x216e,_0x34f499={'SLtRo':function(_0x41730b,_0x1e7b94,_0x4549f0,_0x506430){return _0x41730b(_0x1e7b94,_0x4549f0,_0x506430);},'SHTqc':function(_0x536e3a,_0xc48bfc,_0x59e097,_0x54b450){return _0x536e3a(_0xc48bfc,_0x59e097,_0x54b450);},'ynSgS':_0x4a10bb(0x1a5),'RwJcs':function(_0x4ca837,_0x2c875b,_0x28f94b){return _0x4ca837(_0x2c875b,_0x28f94b);},'WvWQR':function(_0x1fa228,_0x343dbb){return _0x1fa228(_0x343dbb);},'CwqeT':function(_0x2ce8ec,_0x394d72){return _0x2ce8ec!==_0x394d72;},'aAUxK':function(_0x2de9c1,_0x3a8611){return _0x2de9c1(_0x3a8611);}},_0x4cf0ea=_0x34f499['SLtRo'](join,_0x1260f8,'ci',_0x5634d0),_0x1619e3=_0x34f499[_0x4a10bb(0x1dc)](join,_0x1260f8,_0x34f499['ynSgS'],_0x5634d0),_0x4bec53=join(_0x1260f8,_0x5634d0),_0x1c1a11=_0x34f499['RwJcs'](join,_0x1260f8,'local'),_0x50fc08=_0x34f499['RwJcs'](join,_0x1260f8,'ci');if(existsSync(_0x4cf0ea))return _0x4cf0ea;if(_0x34f499[_0x4a10bb(0x18b)](existsSync,_0x1619e3))return _0x1619e3;if(existsSync(_0x4bec53)&&(_0x34f499['CwqeT'](_0x4bec53,_0x1c1a11)&&_0x34f499['CwqeT'](_0x4bec53,_0x50fc08)?!![]:_0x34f499['aAUxK'](hasLegacyProfileFiles,_0x4bec53)))return _0x4bec53;return null;}export function getEnvDir(_0x1a0129){const _0x1a8d5d=_0x216e,_0x1b471f={'PDVOp':function(_0x3fd546){return _0x3fd546();},'stxNk':function(_0x2b1e8a,_0x54f825,_0x800bf4){return _0x2b1e8a(_0x54f825,_0x800bf4);},'WAMmm':function(_0x5e0dd8,_0x580c38,_0x1a7205,_0x160f43){return _0x5e0dd8(_0x580c38,_0x1a7205,_0x160f43);}},_0x41fd02=_0x1b471f['PDVOp'](getRangerDir),_0x583c26=_0x1b471f['stxNk'](findEnvInRoot,_0x1a0129,_0x41fd02);if(_0x583c26)return _0x583c26;const _0x418c8e=getRangerHomeDir();if(_0x418c8e!==_0x41fd02){const _0x31f210=findEnvInRoot(_0x1a0129,_0x418c8e);if(_0x31f210)return _0x31f210;}return _0x1b471f['WAMmm'](join,_0x41fd02,_0x1a8d5d(0x1a5),_0x1a0129);}export function findExistingEnv(_0x20f5ee,_0x5e7baa){const _0x310a39=_0x216e,_0x2bf86e={'WDFCu':function(_0x5b6624,_0xa94bb9,_0x2ea8a0){return _0x5b6624(_0xa94bb9,_0x2ea8a0);},'jTAdQ':function(_0x13f8a0,_0x1bab80,_0x5aebf7,_0x335270){return _0x13f8a0(_0x1bab80,_0x5aebf7,_0x335270);},'zhLCM':_0x310a39(0x1c6),'dYRxX':function(_0x47fc14,_0x42e78f){return _0x47fc14(_0x42e78f);},'IEgyH':function(_0x1c85ba,_0x51dc92){return _0x1c85ba===_0x51dc92;},'LqCdR':function(_0x1d6759,_0x336779){return _0x1d6759(_0x336779);}},_0x5436ab=_0x5e7baa?.['rangerDir'],_0x431524=_0x5436ab?[_0x5436ab]:[getRangerDir(),getRangerHomeDir()][_0x310a39(0x1d3)]((_0x3e6249,_0x4d9c8f,_0x513d4d)=>_0x513d4d['indexOf'](_0x3e6249)===_0x4d9c8f),_0x36036b=_0x5e7baa?.[_0x310a39(0x197)]??['ci','local',_0x310a39(0x1c6)];for(const _0x3a4214 of _0x431524){const _0x3bf638=join(_0x3a4214,'local'),_0x23f46d=_0x2bf86e[_0x310a39(0x1e3)](join,_0x3a4214,'ci'),_0x38ae03=[{'location':'ci','path':join(_0x3a4214,'ci',_0x20f5ee)},{'location':'local','path':_0x2bf86e[_0x310a39(0x1b7)](join,_0x3a4214,'local',_0x20f5ee)},{'location':_0x2bf86e[_0x310a39(0x1d8)],'path':_0x2bf86e[_0x310a39(0x1e3)](join,_0x3a4214,_0x20f5ee)}];for(const _0x545ffe of _0x38ae03){if(_0x36036b[_0x310a39(0x1ae)](_0x545ffe['location'])&&_0x2bf86e[_0x310a39(0x1ac)](existsSync,_0x545ffe[_0x310a39(0x1e6)])){if(_0x2bf86e['IEgyH'](_0x545ffe['location'],'legacy')&&(_0x545ffe['path']===_0x3bf638||_0x545ffe[_0x310a39(0x1e6)]===_0x23f46d)&&!_0x2bf86e[_0x310a39(0x1be)](hasLegacyProfileFiles,_0x545ffe[_0x310a39(0x1e6)]))continue;return{'path':_0x545ffe[_0x310a39(0x1e6)],'location':_0x545ffe['location']};}}}return null;}function hasLegacyProfileFiles(_0x4c187a){const _0x6372d=_0x216e,_0x5e2b4c={'vgLlV':function(_0x2c0468,_0x37a2ff){return _0x2c0468(_0x37a2ff);},'bwvGS':function(_0x513acc,_0xe7f666,_0x3884b1){return _0x513acc(_0xe7f666,_0x3884b1);},'lJMTf':function(_0x2b629a,_0x38e570){return _0x2b629a(_0x38e570);},'BxUFH':_0x6372d(0x1c4)};return _0x5e2b4c['vgLlV'](existsSync,_0x5e2b4c['bwvGS'](join,_0x4c187a,'settings.json'))||_0x5e2b4c[_0x6372d(0x199)](existsSync,join(_0x4c187a,_0x5e2b4c['BxUFH']))||_0x5e2b4c['vgLlV'](existsSync,join(_0x4c187a,_0x6372d(0x1b1)));}export function isEnvCi(_0xea2865){const _0x4f7228=_0x216e,_0x2459a2={'NAPlC':function(_0x517629,_0x2ee6eb,_0x1b849b,_0x37d59e){return _0x517629(_0x2ee6eb,_0x1b849b,_0x37d59e);},'fqXqg':function(_0x18c9be){return _0x18c9be();},'RKNmv':function(_0x1f5ee3,_0x3983df){return _0x1f5ee3!==_0x3983df;},'uYNPr':function(_0x98f510){return _0x98f510();}};if(existsSync(_0x2459a2['NAPlC'](join,getRangerDir(),'ci',_0xea2865)))return!![];const _0x50559b=_0x2459a2['fqXqg'](getRangerHomeDir);if(_0x2459a2[_0x4f7228(0x18a)](_0x50559b,_0x2459a2['uYNPr'](getRangerDir))&&existsSync(join(_0x50559b,'ci',_0xea2865)))return!![];return![];}export async function cleanupTempFiles(_0x424ff8){const _0x462bad=_0x216e,_0xfdaa7c={'THokc':function(_0x48d88c,_0x901bf0){return _0x48d88c!==_0x901bf0;}},_0x48d31f=[_0x424ff8['tempAuthPath'],_0x424ff8[_0x462bad(0x1d4)]][_0x462bad(0x1d3)](Boolean);await Promise['all'](_0x48d31f[_0x462bad(0x1e0)](_0x3e9620=>unlink(_0x3e9620)['catch'](_0x5b5ab3=>{const _0x2d9129=_0x462bad;_0xfdaa7c['THokc'](_0x5b5ab3[_0x2d9129(0x1df)],_0x2d9129(0x1d6))&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3e9620+':',_0x5b5ab3[_0x2d9129(0x19f)]);})));}export function getSettingsPath(_0x4fe0c2){const _0x32b7b6=_0x216e,_0x55f625={'HzluV':function(_0x3e0051,_0x30e010,_0x2fd5fd){return _0x3e0051(_0x30e010,_0x2fd5fd);},'GbIpm':function(_0x971b4,_0x2fbdd6){return _0x971b4(_0x2fbdd6);},'fVmvf':'settings.json'};return _0x55f625[_0x32b7b6(0x19b)](join,_0x55f625[_0x32b7b6(0x1a6)](getEnvDir,_0x4fe0c2),_0x55f625['fVmvf']);}export async function loadSettings(_0x38ed1d){const _0x2bd6ad=_0x216e,_0x522695={'rGFFH':function(_0x1c269a,_0x2fe965){return _0x1c269a(_0x2fe965);}},_0x4a1962=_0x522695[_0x2bd6ad(0x1e7)](getSettingsPath,_0x38ed1d);if(!existsSync(_0x4a1962))return{};try{const _0x164211=await readFile(_0x4a1962,_0x2bd6ad(0x191));return JSON[_0x2bd6ad(0x1a9)](_0x164211);}catch{return{};}}export async function saveSettings(_0x1fab73,_0x51bdcf){const _0x3cb22a=_0x216e,_0x47cca2={'SufBA':function(_0x24e0d1,_0x3399e7){return _0x24e0d1(_0x3399e7);},'ViEod':function(_0x468f32,_0x2e8fae,_0x219b42){return _0x468f32(_0x2e8fae,_0x219b42);},'gzhbG':function(_0x58596d,_0x530cad,_0x31baeb){return _0x58596d(_0x530cad,_0x31baeb);}},_0xb0119d=getSettingsPath(_0x1fab73),_0xa36e0d=_0x47cca2[_0x3cb22a(0x1b0)](dirname,_0xb0119d);!existsSync(_0xa36e0d)&&await _0x47cca2['ViEod'](mkdir,_0xa36e0d,{'recursive':!![]}),await _0x47cca2['gzhbG'](writeFile,_0xb0119d,JSON[_0x3cb22a(0x194)](_0x51bdcf,null,0x2));}export function resolveEnvVars(_0x76553b){const _0x129189=_0x216e,_0x2c15a2={'xKFFq':function(_0x1eeae9,_0x5a4160){return _0x1eeae9===_0x5a4160;},'bquhw':function(_0x4dcc54,_0x366ca6){return _0x4dcc54===_0x366ca6;}};if(_0x2c15a2['bquhw'](typeof _0x76553b,'string'))return _0x76553b[_0x129189(0x18f)](/\$\{(\w+)\}/g,(_0x308ec7,_0x467cf5)=>{const _0x55573d=_0x129189,_0x556498=process['env'][_0x467cf5];if(_0x2c15a2['xKFFq'](_0x556498,undefined))throw new Error(_0x55573d(0x1c9)+_0x467cf5+'\x20is\x20not\x20set');return _0x556498;});if(Array['isArray'](_0x76553b))return _0x76553b['map'](resolveEnvVars);if(_0x76553b&&_0x2c15a2['bquhw'](typeof _0x76553b,'object'))return Object[_0x129189(0x192)](Object[_0x129189(0x1a8)](_0x76553b)['map'](([_0x9006ea,_0xceb01f])=>[_0x9006ea,resolveEnvVars(_0xceb01f)]));return _0x76553b;}const isRecord=_0x7625a2=>typeof _0x7625a2===_0x3ef812(0x1a2)&&_0x7625a2!==null&&!Array['isArray'](_0x7625a2),asRecord=_0x1ddf8b=>isRecord(_0x1ddf8b)?_0x1ddf8b:undefined,mergeHeaders=(_0x13a882,_0x3837f7)=>{const _0xe554d5=_0x3ef812,_0x3b6236={'nJiFh':function(_0x15c0df,_0x253d9a){return _0x15c0df??_0x253d9a;},'qsVKS':function(_0x29361d,_0x57b26b){return _0x29361d??_0x57b26b;}},_0x164b84={..._0x3b6236['nJiFh'](_0x13a882,{}),..._0x3b6236['qsVKS'](_0x3837f7,{})};return Object[_0xe554d5(0x1a0)](_0x164b84)[_0xe554d5(0x1bd)]?_0x164b84:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x3ef812(0x1ad),'--allow-running-insecure-content',_0x3ef812(0x1b2),_0x3ef812(0x196)];export function buildBrowserOptionsFromSettings(_0x199ef5,_0x2765f3={}){const _0x27ad81=_0x3ef812,_0x50b4c7={'aMBLt':function(_0x4b1942,_0x4d837d){return _0x4b1942(_0x4d837d);},'Zifsx':function(_0x4e4409,_0x2c9ba3){return _0x4e4409===_0x2c9ba3;},'rsmJo':function(_0x2f2c97,_0x2a7629){return _0x2f2c97(_0x2a7629);}},_0xe07dba=_0x50b4c7['aMBLt'](asRecord,_0x199ef5[_0x27ad81(0x18d)]),_0x3f3638={...asRecord(_0xe07dba?.['launchOptions'])??{}};_0x50b4c7[_0x27ad81(0x1ba)](typeof _0x2765f3['headless'],_0x27ad81(0x1c5))&&(_0x3f3638['headless']=_0x2765f3[_0x27ad81(0x185)]);if(_0x199ef5['safeMode']){const _0x1ef6fd=_0x3f3638['args']??[],_0x54ed19=SAFE_MODE_ARGS[_0x27ad81(0x1d3)](_0x3a3e4b=>!_0x1ef6fd['includes'](_0x3a3e4b));_0x3f3638['args']=[..._0x1ef6fd,..._0x54ed19];}if(_0x199ef5[_0x27ad81(0x1a1)]){const _0x4fc4c8=_0x3f3638['args']??[],_0x26f6cc=ALLOW_LOCALHOST_ARGS[_0x27ad81(0x1d3)](_0x213ff4=>!_0x4fc4c8['includes'](_0x213ff4));_0x3f3638['args']=[..._0x4fc4c8,..._0x26f6cc];}const _0x411c43={..._0x50b4c7['rsmJo'](asRecord,_0xe07dba?.['contextOptions'])??{}};_0x411c43['ignoreHTTPSErrors']=!![];typeof _0x199ef5['userAgent']===_0x27ad81(0x1e9)&&(_0x411c43['userAgent']=_0x199ef5[_0x27ad81(0x1c0)]);const _0x53400e=mergeHeaders(asRecord(_0x411c43['extraHTTPHeaders']),_0x50b4c7[_0x27ad81(0x1d9)](asRecord,_0x199ef5[_0x27ad81(0x19c)]));return _0x53400e?_0x411c43[_0x27ad81(0x1dd)]=_0x53400e:delete _0x411c43['extraHTTPHeaders'],_0x2765f3['storageStatePath']&&(_0x411c43[_0x27ad81(0x1db)]=_0x2765f3['storageStatePath']),{'launchOptions':_0x3f3638,'contextOptions':_0x411c43};}function _0x216e(_0x36011c,_0x202b00){_0x36011c=_0x36011c-0x185;const _0x4efb8f=_0x4efb();let _0x216ebf=_0x4efb8f[_0x36011c];return _0x216ebf;}async function resolveLocalAuthPath(_0x18664f){const _0x7a8976=_0x3ef812,_0x5e72a1={'fZtUM':function(_0x490a8b){return _0x490a8b();},'TApmj':function(_0x9a7192,_0x92d0c5,_0x90610f){return _0x9a7192(_0x92d0c5,_0x90610f);},'JMtwK':function(_0x22116c){return _0x22116c();},'xAjlf':function(_0x549142,_0x7ddf1e,_0x3d1dbe){return _0x549142(_0x7ddf1e,_0x3d1dbe);},'bOPgo':function(_0x4984b8,_0x327fa4){return _0x4984b8(_0x327fa4);}},_0x123418=join(_0x18664f,'auth.json.enc'),_0x446a23=join(_0x18664f,_0x7a8976(0x1c4));if(existsSync(_0x123418))try{const _0x5cf62f=await _0x5e72a1[_0x7a8976(0x1c3)](getToken);if(!_0x5cf62f)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x5664c4=await readFile(_0x123418),_0x53680c=_0x5e72a1[_0x7a8976(0x1e1)](decrypt,_0x5664c4,_0x5cf62f),_0x2ca8a0=join(_0x5e72a1[_0x7a8976(0x1b4)](tmpdir),_0x7a8976(0x1cf)+Date[_0x7a8976(0x18c)]()+'.json');return await _0x5e72a1['xAjlf'](writeFile,_0x2ca8a0,_0x53680c),{'storageStatePath':_0x2ca8a0,'tempAuthPath':_0x2ca8a0};}catch(_0x33270c){const _0x4334c4=_0x33270c instanceof Error?_0x33270c[_0x7a8976(0x19f)]:String(_0x33270c);throw new Error(_0x7a8976(0x198)+_0x4334c4);}if(_0x5e72a1[_0x7a8976(0x187)](existsSync,_0x446a23))return{'storageStatePath':_0x446a23};return{};}export async function buildPlaywrightConfig(_0xa76dc0,_0x1c617d,_0x4ecef5,_0x2bea60,_0xd01ed4){const _0x30b760=_0x3ef812,_0x141570={'RJlJq':function(_0x2efafe,_0x1ceaf5,_0x22d1ee,_0xa2b0c,_0x2bfee1,_0x220693,_0x1653c5){return _0x2efafe(_0x1ceaf5,_0x22d1ee,_0xa2b0c,_0x2bfee1,_0x220693,_0x1653c5);},'ZaeYA':function(_0x4745e4,_0x127591){return _0x4745e4(_0x127591);},'oOPZw':function(_0x18ce0a,_0x1a9ef2){return _0x18ce0a(_0x1a9ef2);},'OUevO':function(_0x1ad2df,_0x315ec2,_0x2b2d4e,_0x5cd6a8,_0x3d8a19,_0x17a60f,_0x29a164){return _0x1ad2df(_0x315ec2,_0x2b2d4e,_0x5cd6a8,_0x3d8a19,_0x17a60f,_0x29a164);}};if(_0xd01ed4)return _0x141570['RJlJq'](buildPlaywrightConfigCore,_0xa76dc0,_0xd01ed4,_0x1c617d,_0x4ecef5,_0x2bea60,'stagehand');const {storageStatePath:_0x321156,tempAuthPath:_0x13b355}=await _0x141570['ZaeYA'](resolveLocalAuthPath,_0x141570[_0x30b760(0x1a3)](getEnvDir,_0x1c617d));try{const _0x18de82=await _0x141570['OUevO'](buildPlaywrightConfigCore,_0xa76dc0,_0x321156,_0x1c617d,_0x4ecef5,_0x2bea60,'stagehand');return{..._0x18de82,'tempAuthPath':_0x13b355};}catch(_0x2af6d7){_0x13b355&&await unlink(_0x13b355)['catch'](()=>{});throw _0x2af6d7;}}export async function buildPlaywrightConfigCore(_0x439a1e,_0x36b6dd,_0x3222d0,_0x79874e,_0x92a32e,_0x22265e='stagehand'){const _0x5aa684=_0x3ef812,_0x1b95f0={'khxDq':function(_0x27015e,_0x153806,_0x2175fe){return _0x27015e(_0x153806,_0x2175fe);},'vbisH':function(_0x240354,_0x201a61){return _0x240354===_0x201a61;},'yKoUh':_0x5aa684(0x1a4),'jWojw':function(_0x5cf45d,_0x1c45e4,_0x5f408a,_0x1b1ba3){return _0x5cf45d(_0x1c45e4,_0x5f408a,_0x1b1ba3);},'erxag':'sessions','oLpVT':'file','ihSPl':_0x5aa684(0x1ce),'QXPUR':'core','oCFmm':_0x5aa684(0x189),'EzCEu':function(_0x3f32eb,_0x58e5ad,_0x205f06){return _0x3f32eb(_0x58e5ad,_0x205f06);},'RNVIs':function(_0x598ad8,_0x1a1c04,_0x30c2d9){return _0x598ad8(_0x1a1c04,_0x30c2d9);},'ZpUoy':function(_0x4a93e5,_0x2c759d){return _0x4a93e5===_0x2c759d;},'DGjfD':_0x5aa684(0x1ea),'NAGSV':'-cli','WTZRp':function(_0x111e29,_0x3a250a,_0x1bd68a){return _0x111e29(_0x3a250a,_0x1bd68a);}},_0x42ad8e=_0x79874e||randomUUID(),_0x3b1d94=_0x1b95f0['jWojw'](join,getRangerDir(),_0x1b95f0[_0x5aa684(0x1d5)],_0x42ad8e),_0x57dbdf=Boolean(_0x439a1e['cdpEndpoint']),_0x10b138=_0x57dbdf?{'browserName':_0x5aa684(0x1d2),'cdpEndpoint':_0x439a1e['cdpEndpoint']}:((()=>{const _0x4fd09e=_0x5aa684,{launchOptions:_0x56faf1,contextOptions:_0x2f0b79}=_0x1b95f0['khxDq'](buildBrowserOptionsFromSettings,_0x439a1e,{'headless':_0x92a32e?![]:_0x439a1e[_0x4fd09e(0x185)]??!![],'storageStatePath':_0x36b6dd});if(_0x1b95f0[_0x4fd09e(0x1af)](process[_0x4fd09e(0x1e5)]?.(),0x0)){const _0x2c51b6=['--no-sandbox',_0x4fd09e(0x1e2)],_0x356f52=_0x56faf1[_0x4fd09e(0x19d)]??[],_0xe7d1cb=_0x2c51b6['filter'](_0x5ea03d=>!_0x356f52[_0x4fd09e(0x1ae)](_0x5ea03d));_0x56faf1[_0x4fd09e(0x19d)]=[..._0x356f52,..._0xe7d1cb];}return{'isolated':!![],'browserName':_0x4fd09e(0x1d2),'launchOptions':_0x56faf1,'contextOptions':{..._0x2f0b79,'permissions':[_0x1b95f0['yKoUh'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x549837=_0x22265e===_0x5aa684(0x1ea)?{'browser':_0x10b138,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3b1d94,'outputMode':_0x1b95f0['oLpVT'],'codegen':_0x1b95f0['ihSPl']}:{'name':_0x3222d0,'browser':_0x10b138,'capabilities':[_0x1b95f0['QXPUR'],_0x1b95f0[_0x5aa684(0x1ab)],'install','pdf',_0x5aa684(0x1bc)],'imageResponses':_0x5aa684(0x188),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3b1d94};if(!_0x57dbdf){const _0xa70329=_0x549837['browser'],_0x3ff5e3=_0xa70329[_0x5aa684(0x19a)];if(_0x3ff5e3[_0x5aa684(0x1c0)]===undefined)delete _0x3ff5e3['userAgent'];if(_0x3ff5e3['storageState']===undefined)delete _0x3ff5e3['storageState'];}const _0x52c642=_0x1b95f0[_0x5aa684(0x1aa)](join,tmpdir(),'ranger-config');!existsSync(_0x52c642)&&await _0x1b95f0[_0x5aa684(0x1b8)](mkdir,_0x52c642,{'recursive':!![]});const _0x24c063=_0x1b95f0[_0x5aa684(0x1cc)](_0x22265e,_0x1b95f0[_0x5aa684(0x19e)])?_0x1b95f0['NAGSV']:'',_0xaabe39=join(_0x52c642,_0x3222d0+'-'+Date[_0x5aa684(0x18c)]()+_0x24c063+_0x5aa684(0x1b6));return await _0x1b95f0['WTZRp'](writeFile,_0xaabe39,JSON['stringify'](_0x549837,null,0x2)),{'configPath':_0xaabe39};}export async function buildPlaywrightCliConfig(_0x4483f3,_0x6d41c2,_0x2dd6e8,_0xd8b899,_0x4423ef){const _0xf25deb=_0x3ef812,_0x1b4677={'EcCKG':function(_0x3bf325,_0x16843c,_0x124756,_0x26f716,_0x45c1db,_0x17b9ed,_0x41941b){return _0x3bf325(_0x16843c,_0x124756,_0x26f716,_0x45c1db,_0x17b9ed,_0x41941b);},'XbaeN':function(_0x1ff554,_0x43096b){return _0x1ff554(_0x43096b);},'XleeJ':_0xf25deb(0x1ea)};if(_0x4423ef)return _0x1b4677[_0xf25deb(0x1c1)](buildPlaywrightConfigCore,_0x4483f3,_0x4423ef,_0x6d41c2,_0x2dd6e8,_0xd8b899,_0xf25deb(0x1ea));const {storageStatePath:_0x3d34c1,tempAuthPath:_0x4d3335}=await _0x1b4677[_0xf25deb(0x193)](resolveLocalAuthPath,_0x1b4677['XbaeN'](getEnvDir,_0x6d41c2));try{const _0x44e879=await buildPlaywrightConfigCore(_0x4483f3,_0x3d34c1,_0x6d41c2,_0x2dd6e8,_0xd8b899,_0x1b4677[_0xf25deb(0x1d1)]);return{..._0x44e879,'tempAuthPath':_0x4d3335};}catch(_0x137727){_0x4d3335&&await unlink(_0x4d3335)['catch'](()=>{});throw _0x137727;}}export function getNestedValue(_0x3befe0,_0x23e2c8){const _0x316367=_0x3ef812,_0x5098fc={'pxPdk':function(_0x4a8907,_0x3ea4a8){return _0x4a8907===_0x3ea4a8;},'RMwRR':function(_0xe8d5aa,_0x5059dd){return _0xe8d5aa!==_0x5059dd;}},_0x14717d=parseKeyPath(_0x23e2c8);let _0x120a49=_0x3befe0;for(const _0x4ce896 of _0x14717d){if(_0x5098fc[_0x316367(0x1c8)](_0x120a49,null)||_0x120a49===undefined||_0x5098fc['RMwRR'](typeof _0x120a49,_0x316367(0x1a2)))return undefined;_0x120a49=_0x120a49[_0x4ce896];}return _0x120a49;}export function setNestedValue(_0x45bbfa,_0x1e7dc1,_0x235bed){const _0x1b8ec0={'QLJzZ':function(_0x445462,_0x54df6b){return _0x445462 in _0x54df6b;},'srYQW':function(_0x1ae5e8,_0x24ba3a){return _0x1ae5e8!==_0x24ba3a;},'dvwbF':function(_0x136af8,_0x23d64a){return _0x136af8-_0x23d64a;}},_0x115b7e=parseKeyPath(_0x1e7dc1);let _0x297101=_0x45bbfa;for(let _0x2fa509=0x0;_0x2fa509<_0x115b7e['length']-0x1;_0x2fa509++){const _0x3d4df7=_0x115b7e[_0x2fa509];(!_0x1b8ec0['QLJzZ'](_0x3d4df7,_0x297101)||_0x1b8ec0['srYQW'](typeof _0x297101[_0x3d4df7],'object'))&&(_0x297101[_0x3d4df7]={}),_0x297101=_0x297101[_0x3d4df7];}_0x297101[_0x115b7e[_0x1b8ec0['dvwbF'](_0x115b7e['length'],0x1)]]=_0x235bed;}export function deleteNestedValue(_0x5c44e7,_0x330902){const _0x46e1cf=_0x3ef812,_0x4dc84d={'NAdAB':function(_0x1ec2e6,_0x560bc3){return _0x1ec2e6(_0x560bc3);},'pqbbs':function(_0x6dc089,_0x1b9f01){return _0x6dc089<_0x1b9f01;},'UHuUk':function(_0x58f5b8,_0x1a5f9b){return _0x58f5b8===_0x1a5f9b;},'feNbO':function(_0x5de7a5,_0x335b8e){return _0x5de7a5===_0x335b8e;},'IrjlH':function(_0x3f4f10,_0x46d4f7){return _0x3f4f10 in _0x46d4f7;}},_0x50c5bd=_0x4dc84d[_0x46e1cf(0x1ca)](parseKeyPath,_0x330902);let _0x274df4=_0x5c44e7;for(let _0x47c761=0x0;_0x4dc84d['pqbbs'](_0x47c761,_0x50c5bd[_0x46e1cf(0x1bd)]-0x1);_0x47c761++){if(_0x274df4===null||_0x4dc84d['UHuUk'](_0x274df4,undefined)||typeof _0x274df4!=='object')return![];_0x274df4=_0x274df4[_0x50c5bd[_0x47c761]];}if(_0x4dc84d['feNbO'](_0x274df4,null)||_0x274df4===undefined||typeof _0x274df4!=='object')return![];const _0x437ed0=_0x50c5bd[_0x50c5bd['length']-0x1];if(_0x4dc84d['IrjlH'](_0x437ed0,_0x274df4))return delete _0x274df4[_0x437ed0],!![];return![];}function parseKeyPath(_0x4af3e9){const _0x5ccf9a=_0x3ef812,_0x2dec80={'OUjJx':function(_0x5753f4,_0x2a0988){return _0x5753f4===_0x2a0988;},'JskKa':_0x5ccf9a(0x1b3)},_0x1eb8fd=_0x4af3e9[_0x5ccf9a(0x186)]('.');return _0x1eb8fd[0x0]===_0x5ccf9a(0x190)&&(_0x1eb8fd[0x0]=_0x5ccf9a(0x19c)),_0x2dec80['OUjJx'](_0x1eb8fd[0x0],_0x2dec80[_0x5ccf9a(0x1e4)])&&(_0x1eb8fd[0x0]='setupHeaders'),_0x1eb8fd;}export function formatSettings(_0x4dd779,_0x283527=0x0){const _0x2b889d=_0x3ef812,_0x3bb081={'vpoIj':function(_0x290e73,_0x6956cc){return _0x290e73===_0x6956cc;}},_0x194d6c=[],_0x27b7bd='\x20\x20'[_0x2b889d(0x1bf)](_0x283527);for(const [_0x47329a,_0x3fcbd7]of Object[_0x2b889d(0x1a8)](_0x4dd779)){if(_0x3bb081[_0x2b889d(0x1b9)](_0x3fcbd7,undefined))continue;if(typeof _0x3fcbd7===_0x2b889d(0x1a2)&&_0x3fcbd7!==null){_0x194d6c['push'](''+_0x27b7bd+_0x47329a+':');for(const [_0x466ef3,_0x2d6c59]of Object['entries'](_0x3fcbd7)){_0x194d6c['push'](_0x27b7bd+'\x20\x20'+_0x466ef3+':\x20'+_0x2d6c59);}}else _0x194d6c[_0x2b889d(0x1bb)](''+_0x27b7bd+_0x47329a+':\x20'+_0x3fcbd7);}return _0x194d6c['join']('\x0a');}
|
|
1
|
+
const _0xb6587c=_0x14ac;(function(_0x5c2766,_0x518adf){const _0x46090e=_0x14ac,_0x2383d4=_0x5c2766();while(!![]){try{const _0x10657e=-parseInt(_0x46090e(0xca))/0x1*(-parseInt(_0x46090e(0xd3))/0x2)+-parseInt(_0x46090e(0x115))/0x3*(-parseInt(_0x46090e(0x11b))/0x4)+parseInt(_0x46090e(0xda))/0x5*(-parseInt(_0x46090e(0xe4))/0x6)+parseInt(_0x46090e(0x100))/0x7*(-parseInt(_0x46090e(0xef))/0x8)+parseInt(_0x46090e(0xd5))/0x9+parseInt(_0x46090e(0xdc))/0xa*(-parseInt(_0x46090e(0xff))/0xb)+parseInt(_0x46090e(0x101))/0xc;if(_0x10657e===_0x518adf)break;else _0x2383d4['push'](_0x2383d4['shift']());}catch(_0x5264d8){_0x2383d4['push'](_0x2383d4['shift']());}}}(_0x36b6,0x89691));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x14ac(_0x591b3b,_0x355432){_0x591b3b=_0x591b3b-0xb2;const _0x36b6d1=_0x36b6();let _0x14ac6c=_0x36b6d1[_0x591b3b];return _0x14ac6c;}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x41abbf,_0x1346df){const _0x5402e0=_0x14ac,_0x4359ff={'ylxDI':function(_0x2b1338,_0x3b22c2,_0x57f16d,_0x121528){return _0x2b1338(_0x3b22c2,_0x57f16d,_0x121528);},'VSUYn':function(_0x3624fa,_0x64fef4,_0x1fe737,_0x2821f0){return _0x3624fa(_0x64fef4,_0x1fe737,_0x2821f0);},'JpAUZ':function(_0x2e8f1c,_0x3a231e,_0x1f9219){return _0x2e8f1c(_0x3a231e,_0x1f9219);},'ByfiV':function(_0x11cdbf,_0x3a60f6){return _0x11cdbf(_0x3a60f6);},'ejyhJ':function(_0x4b6373,_0xa5df27){return _0x4b6373!==_0xa5df27;},'MhsxP':function(_0x3903cb,_0x2d003b){return _0x3903cb!==_0x2d003b;}},_0x1d2098=_0x4359ff['ylxDI'](join,_0x1346df,'ci',_0x41abbf),_0x2eb65e=_0x4359ff[_0x5402e0(0x10c)](join,_0x1346df,'local',_0x41abbf),_0x2d62d7=_0x4359ff['JpAUZ'](join,_0x1346df,_0x41abbf),_0x4cdc7e=_0x4359ff['JpAUZ'](join,_0x1346df,'local'),_0x2a7896=join(_0x1346df,'ci');if(_0x4359ff['ByfiV'](existsSync,_0x1d2098))return _0x1d2098;if(_0x4359ff['ByfiV'](existsSync,_0x2eb65e))return _0x2eb65e;if(_0x4359ff[_0x5402e0(0xdf)](existsSync,_0x2d62d7)&&(_0x4359ff['ejyhJ'](_0x2d62d7,_0x4cdc7e)&&_0x4359ff[_0x5402e0(0xf4)](_0x2d62d7,_0x2a7896)?!![]:hasLegacyProfileFiles(_0x2d62d7)))return _0x2d62d7;return null;}export function getEnvDir(_0x25f3aa,_0x11d436={}){const _0x5e1169=_0x14ac,_0xa50012={'gQhMQ':function(_0x53b17e){return _0x53b17e();},'hMHEX':function(_0x323ec7,_0x2d4f2a,_0x478806){return _0x323ec7(_0x2d4f2a,_0x478806);},'ParrK':function(_0x2030be,_0x3f12c2){return _0x2030be(_0x3f12c2);},'IqJsU':function(_0x3edd25,_0x4a4c4b){return _0x3edd25!==_0x4a4c4b;},'uxPRJ':function(_0x236721,_0x44b97e,_0x2e90a0){return _0x236721(_0x44b97e,_0x2e90a0);},'osXsN':function(_0x1d7306,_0x3a03fc,_0x312e00,_0x2e51ac){return _0x1d7306(_0x3a03fc,_0x312e00,_0x2e51ac);}},_0x1aa0ac=_0xa50012[_0x5e1169(0xe5)](getRangerDir),_0x38886e=_0xa50012['hMHEX'](findEnvInRoot,_0x25f3aa,_0x1aa0ac);if(_0x38886e){if(_0x11d436[_0x5e1169(0xc3)]&&_0xa50012[_0x5e1169(0x114)](isLegacyEnvPath,_0x38886e))throw legacyWriteError(_0x25f3aa,_0x38886e);return _0x38886e;}const _0x59aaae=getRangerHomeDir();if(_0xa50012['IqJsU'](_0x59aaae,_0x1aa0ac)){const _0x1e45bf=_0xa50012['uxPRJ'](findEnvInRoot,_0x25f3aa,_0x59aaae);if(_0x1e45bf){if(_0x11d436[_0x5e1169(0xc3)]&&isLegacyEnvPath(_0x1e45bf))throw legacyWriteError(_0x25f3aa,_0x1e45bf);return _0x1e45bf;}}const _0x52f66e=_0xa50012[_0x5e1169(0xb4)](join,_0x59aaae,'local',_0x25f3aa);if(_0x11d436['forWrite'])throw legacyWriteError(_0x25f3aa,_0x52f66e);return _0x52f66e;}function isLegacyEnvPath(_0x3fd14a){const _0xd9e105=_0x14ac,_0x182177={'aCkmD':function(_0x1716a5,_0x11ba32){return _0x1716a5===_0x11ba32;}},_0x3f2d8f=getRangerDir(),_0x3a05d8=getRangerHomeDir();for(const _0x22f0cd of new Set([_0x3f2d8f,_0x3a05d8])){const _0x4d8451=_0x22f0cd[_0xd9e105(0xbf)]('/')?_0x22f0cd:_0x22f0cd+'/';if(_0x182177[_0xd9e105(0x111)](_0x3fd14a,_0x22f0cd)||_0x3fd14a['startsWith'](_0x4d8451))return!![];}return![];}function legacyWriteError(_0x1f52f7,_0x307a25){const _0x526671=_0x14ac,_0x2a90ba={'lwvSW':function(_0x17461f,_0x59d288){return _0x17461f+_0x59d288;}};return new Error(_0x2a90ba[_0x526671(0xf3)](_0x526671(0xc0)+_0x1f52f7+'\x22\x20to\x20legacy\x20path\x20'+_0x307a25+'.\x0a'+'Cloud\x20profiles\x20own\x20canonical\x20session\x20state\x20now;\x20the\x20legacy\x20tree\x20is\x20read-only.\x0a',_0x526671(0xd4)));}export function findExistingEnv(_0x4e936e,_0x1e3558){const _0x48c13a=_0x14ac,_0x23183a={'lQSSM':function(_0x2e1dfe){return _0x2e1dfe();},'BTTiR':_0x48c13a(0xc5),'qjDkL':function(_0x19ca23,_0x10f7c2,_0x4ba156){return _0x19ca23(_0x10f7c2,_0x4ba156);},'lUgdz':function(_0x587f3a,_0x3ff51f,_0x1956ef,_0x45a755){return _0x587f3a(_0x3ff51f,_0x1956ef,_0x45a755);},'fFeDI':function(_0x5ec0a0,_0x799fc){return _0x5ec0a0===_0x799fc;},'pYAgn':function(_0x585251,_0x542f25){return _0x585251(_0x542f25);}},_0xb63a7f=_0x1e3558?.['rangerDir'],_0x328775=_0xb63a7f?[_0xb63a7f]:[_0x23183a['lQSSM'](getRangerDir),getRangerHomeDir()]['filter']((_0x2d0427,_0x3f9161,_0xac388a)=>_0xac388a['indexOf'](_0x2d0427)===_0x3f9161),_0x41e856=_0x1e3558?.['locations']??['ci','local',_0x23183a['BTTiR']];for(const _0x572f00 of _0x328775){const _0x1bfe7d=join(_0x572f00,'local'),_0x30c24b=_0x23183a['qjDkL'](join,_0x572f00,'ci'),_0x56a5e5=[{'location':'ci','path':_0x23183a[_0x48c13a(0x10b)](join,_0x572f00,'ci',_0x4e936e)},{'location':_0x48c13a(0xd2),'path':join(_0x572f00,_0x48c13a(0xd2),_0x4e936e)},{'location':'legacy','path':_0x23183a[_0x48c13a(0xb9)](join,_0x572f00,_0x4e936e)}];for(const _0x2a907b of _0x56a5e5){if(_0x41e856[_0x48c13a(0xd9)](_0x2a907b['location'])&&existsSync(_0x2a907b['path'])){if(_0x2a907b['location']===_0x23183a[_0x48c13a(0xb8)]&&(_0x23183a['fFeDI'](_0x2a907b['path'],_0x1bfe7d)||_0x23183a[_0x48c13a(0x104)](_0x2a907b[_0x48c13a(0x110)],_0x30c24b))&&!_0x23183a[_0x48c13a(0xbe)](hasLegacyProfileFiles,_0x2a907b[_0x48c13a(0x110)]))continue;return{'path':_0x2a907b['path'],'location':_0x2a907b['location']};}}}return null;}function hasLegacyProfileFiles(_0x168e78){const _0x229643=_0x14ac,_0x432868={'XGqhW':function(_0x203480,_0x4f08e8,_0x536230){return _0x203480(_0x4f08e8,_0x536230);},'RzfIC':_0x229643(0x109),'srMtP':function(_0x190989,_0x4040f9){return _0x190989(_0x4040f9);},'SbpGK':function(_0x74f709,_0x2193d9,_0x3af87b){return _0x74f709(_0x2193d9,_0x3af87b);},'IKoRx':_0x229643(0x113)};return existsSync(_0x432868[_0x229643(0xb7)](join,_0x168e78,_0x432868['RzfIC']))||_0x432868['srMtP'](existsSync,_0x432868[_0x229643(0xd6)](join,_0x168e78,'auth.json'))||existsSync(_0x432868['XGqhW'](join,_0x168e78,_0x432868['IKoRx']));}export function isEnvCi(_0x173c04){const _0x28105b={'RKENy':function(_0x592454){return _0x592454();},'uctNa':function(_0x23a095){return _0x23a095();},'YsUEh':function(_0x289a65,_0x2aef99){return _0x289a65(_0x2aef99);}};if(existsSync(join(_0x28105b['RKENy'](getRangerDir),'ci',_0x173c04)))return!![];const _0x1b2ea5=getRangerHomeDir();if(_0x1b2ea5!==_0x28105b['uctNa'](getRangerDir)&&_0x28105b['YsUEh'](existsSync,join(_0x1b2ea5,'ci',_0x173c04)))return!![];return![];}export async function cleanupTempFiles(_0x527a93){const _0x236bd1=_0x14ac,_0x323d32={'hzXur':'ENOENT'},_0x144bd8=[_0x527a93['tempAuthPath'],_0x527a93[_0x236bd1(0x119)]][_0x236bd1(0xb5)](Boolean);await Promise['all'](_0x144bd8['map'](_0x4252ff=>unlink(_0x4252ff)['catch'](_0x2724d5=>{const _0x1a0ee8=_0x236bd1;_0x2724d5[_0x1a0ee8(0xbc)]!==_0x323d32[_0x1a0ee8(0x11a)]&&console['warn'](_0x1a0ee8(0x108)+_0x4252ff+':',_0x2724d5['message']);})));}export function getSettingsPath(_0x47d86f){const _0x4d2967=_0x14ac,_0x4af6c4={'ueluH':_0x4d2967(0x109)};return join(getEnvDir(_0x47d86f),_0x4af6c4[_0x4d2967(0xf8)]);}export async function loadSettings(_0x275559){const _0x1cc697=_0x14ac,_0xfb709d={'EcSRu':'utf-8'},_0x3ec054=getSettingsPath(_0x275559);if(!existsSync(_0x3ec054))return{};try{const _0x3920f3=await readFile(_0x3ec054,_0xfb709d[_0x1cc697(0xbd)]);return JSON['parse'](_0x3920f3);}catch{return{};}}export async function saveSettings(_0x174471,_0x19dfcb){const _0x110422=_0x14ac,_0xd2a09c={'QtFzr':function(_0x1471ab,_0x155fb1){return _0x1471ab(_0x155fb1);},'otJQc':function(_0x294a75,_0x56559b,_0x503416){return _0x294a75(_0x56559b,_0x503416);}},_0x128083=getSettingsPath(_0x174471),_0x53b039=dirname(_0x128083);!_0xd2a09c[_0x110422(0xfd)](existsSync,_0x53b039)&&await _0xd2a09c[_0x110422(0xc2)](mkdir,_0x53b039,{'recursive':!![]}),await _0xd2a09c[_0x110422(0xc2)](writeFile,_0x128083,JSON['stringify'](_0x19dfcb,null,0x2));}export function resolveEnvVars(_0x26c34e){const _0x598af8=_0x14ac,_0x2d777a={'KeVhm':function(_0x3d4859,_0x374aa5){return _0x3d4859===_0x374aa5;},'BYBaB':function(_0x446e7a,_0x1876d5){return _0x446e7a===_0x1876d5;},'uStUu':function(_0x3ec833,_0x5b66b5){return _0x3ec833===_0x5b66b5;}};if(_0x2d777a['BYBaB'](typeof _0x26c34e,'string'))return _0x26c34e['replace'](/\$\{(\w+)\}/g,(_0x4b37c1,_0x373161)=>{const _0x44fe31=_0x14ac,_0x4375a0=process[_0x44fe31(0xc1)][_0x373161];if(_0x2d777a['KeVhm'](_0x4375a0,undefined))throw new Error('Environment\x20variable\x20'+_0x373161+_0x44fe31(0xed));return _0x4375a0;});if(Array['isArray'](_0x26c34e))return _0x26c34e['map'](resolveEnvVars);if(_0x26c34e&&_0x2d777a['uStUu'](typeof _0x26c34e,_0x598af8(0xe0)))return Object['fromEntries'](Object[_0x598af8(0xc6)](_0x26c34e)['map'](([_0x1fe16f,_0x1c8833])=>[_0x1fe16f,resolveEnvVars(_0x1c8833)]));return _0x26c34e;}const isRecord=_0xbd4d4=>typeof _0xbd4d4==='object'&&_0xbd4d4!==null&&!Array['isArray'](_0xbd4d4),asRecord=_0x19f87e=>isRecord(_0x19f87e)?_0x19f87e:undefined,mergeHeaders=(_0x268131,_0x3cc09c)=>{const _0x1be078=_0x14ac,_0xf61a1e={'kWJKk':function(_0x3420d9,_0x994550){return _0x3420d9??_0x994550;}},_0x256efb={..._0xf61a1e[_0x1be078(0x107)](_0x268131,{}),..._0xf61a1e['kWJKk'](_0x3cc09c,{})};return Object[_0x1be078(0x10d)](_0x256efb)[_0x1be078(0x120)]?_0x256efb:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0xb6587c(0xdb),'--allow-running-insecure-content',_0xb6587c(0xe9),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x5e0eda,_0x374009={}){const _0x25ee39=_0xb6587c,_0xbc7eef={'laZtg':function(_0x3ba512,_0x40b7a2){return _0x3ba512(_0x40b7a2);},'haJoV':function(_0x7cec74,_0x47ab3d){return _0x7cec74(_0x47ab3d);},'nuUFH':function(_0x29004f,_0x332bf4){return _0x29004f===_0x332bf4;},'nFGxw':_0x25ee39(0x10f)},_0x2d1864=_0xbc7eef['laZtg'](asRecord,_0x5e0eda[_0x25ee39(0xc8)]),_0x120e3f={..._0xbc7eef[_0x25ee39(0x10e)](asRecord,_0x2d1864?.['launchOptions'])??{}};typeof _0x374009[_0x25ee39(0xcc)]==='boolean'&&(_0x120e3f['headless']=_0x374009[_0x25ee39(0xcc)]);if(_0x5e0eda[_0x25ee39(0xde)]){const _0x178386=_0x120e3f['args']??[],_0x401816=SAFE_MODE_ARGS[_0x25ee39(0xb5)](_0x55356e=>!_0x178386['includes'](_0x55356e));_0x120e3f['args']=[..._0x178386,..._0x401816];}if(_0x5e0eda['allowInsecureLocalhost']){const _0xd26fd8=_0x120e3f['args']??[],_0x182127=ALLOW_LOCALHOST_ARGS[_0x25ee39(0xb5)](_0x4a146f=>!_0xd26fd8[_0x25ee39(0xd9)](_0x4a146f));_0x120e3f[_0x25ee39(0x11c)]=[..._0xd26fd8,..._0x182127];}const _0x51b275={..._0xbc7eef['haJoV'](asRecord,_0x2d1864?.[_0x25ee39(0xd1)])??{}};_0x51b275[_0x25ee39(0xb6)]=!![];_0xbc7eef['nuUFH'](typeof _0x5e0eda[_0x25ee39(0x10a)],_0xbc7eef[_0x25ee39(0xec)])&&(_0x51b275[_0x25ee39(0x10a)]=_0x5e0eda['userAgent']);const _0x1a3e3a=mergeHeaders(_0xbc7eef[_0x25ee39(0x10e)](asRecord,_0x51b275['extraHTTPHeaders']),_0xbc7eef[_0x25ee39(0x10e)](asRecord,_0x5e0eda[_0x25ee39(0xe3)]));return _0x1a3e3a?_0x51b275['extraHTTPHeaders']=_0x1a3e3a:delete _0x51b275['extraHTTPHeaders'],_0x374009['storageStatePath']&&(_0x51b275[_0x25ee39(0xea)]=_0x374009['storageStatePath']),{'launchOptions':_0x120e3f,'contextOptions':_0x51b275};}async function resolveLocalAuthPath(_0x194c36){const _0x6415fd=_0xb6587c,_0x2bf6fc={'XbsXi':_0x6415fd(0xeb),'kqdhc':function(_0x2e4c58,_0x5cb79e){return _0x2e4c58(_0x5cb79e);},'mmwXF':function(_0x164fb8){return _0x164fb8();},'OPYxA':function(_0xa8bc05){return _0xa8bc05();},'QoOhX':function(_0x2819db,_0x2a69b5){return _0x2819db instanceof _0x2a69b5;}},_0x1c35d3=join(_0x194c36,'auth.json.enc'),_0x23af57=join(_0x194c36,_0x2bf6fc['XbsXi']);if(_0x2bf6fc['kqdhc'](existsSync,_0x1c35d3))try{const _0x83fc52=await _0x2bf6fc['mmwXF'](getToken);if(!_0x83fc52)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x15b821=await readFile(_0x1c35d3),_0x6a8c00=decrypt(_0x15b821,_0x83fc52),_0x4d42e5=join(_0x2bf6fc[_0x6415fd(0xd7)](tmpdir),_0x6415fd(0xe8)+Date['now']()+'.json');return await writeFile(_0x4d42e5,_0x6a8c00),{'storageStatePath':_0x4d42e5,'tempAuthPath':_0x4d42e5};}catch(_0x5443a9){const _0x5aa245=_0x2bf6fc[_0x6415fd(0x118)](_0x5443a9,Error)?_0x5443a9[_0x6415fd(0xcf)]:_0x2bf6fc[_0x6415fd(0xfe)](String,_0x5443a9);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x5aa245);}if(existsSync(_0x23af57))return{'storageStatePath':_0x23af57};return{};}export async function buildPlaywrightConfig(_0x2a5ea8,_0x4a3e28,_0x4a5542,_0x1be61b,_0x454317){const _0x140b34=_0xb6587c,_0x1020f6={'RtHaB':_0x140b34(0x117),'oqmgh':function(_0x509993,_0x392665){return _0x509993(_0x392665);}};if(_0x454317)return buildPlaywrightConfigCore(_0x2a5ea8,_0x454317,_0x4a3e28,_0x4a5542,_0x1be61b,_0x1020f6['RtHaB']);const {storageStatePath:_0x3eacc2,tempAuthPath:_0x12e6a9}=await resolveLocalAuthPath(_0x1020f6['oqmgh'](getEnvDir,_0x4a3e28));try{const _0x87b6f5=await buildPlaywrightConfigCore(_0x2a5ea8,_0x3eacc2,_0x4a3e28,_0x4a5542,_0x1be61b,_0x1020f6['RtHaB']);return{..._0x87b6f5,'tempAuthPath':_0x12e6a9};}catch(_0x5356c5){_0x12e6a9&&await unlink(_0x12e6a9)[_0x140b34(0x103)](()=>{});throw _0x5356c5;}}export async function buildPlaywrightConfigCore(_0x580331,_0x2dc62e,_0x5b5a79,_0x23da9b,_0x5e8e68,_0x1d4861='stagehand'){const _0x59fe84=_0xb6587c,_0x448743={'ZZcER':function(_0x36055a,_0x5a867a,_0x56e83f){return _0x36055a(_0x5a867a,_0x56e83f);},'zrHyB':function(_0x3b863e,_0x5211e4){return _0x3b863e===_0x5211e4;},'dtlZX':_0x59fe84(0x116),'VkvwX':_0x59fe84(0xf6),'Kswzu':'chromium','tSAHE':_0x59fe84(0xcd),'Chaxv':'clipboard-write','YtLFE':function(_0x55ba4f,_0x45b485,_0x20ecf9,_0x389836){return _0x55ba4f(_0x45b485,_0x20ecf9,_0x389836);},'CTxTE':'sessions','yKOBy':function(_0x541d06,_0x3e0328){return _0x541d06(_0x3e0328);},'VvacW':'playwright-cli','AJAUK':_0x59fe84(0xd0),'NiCkQ':'pdf','EoOcC':'allow','SZOTI':function(_0x4d87f2){return _0x4d87f2();},'YrXWX':function(_0x3d716d,_0x3448b3){return _0x3d716d===_0x3448b3;},'RZMgK':'-cli'},_0x19e6e1=_0x23da9b||randomUUID(),_0x2a71be=_0x448743['YtLFE'](join,getRangerDir(),_0x448743[_0x59fe84(0xce)],_0x19e6e1),_0x5b8fba=_0x448743['yKOBy'](Boolean,_0x580331[_0x59fe84(0xf1)]),_0x33b0e3=_0x5b8fba?{'browserName':_0x59fe84(0xc4),'cdpEndpoint':_0x580331[_0x59fe84(0xf1)]}:((()=>{const _0x590b71=_0x59fe84,{launchOptions:_0x37fcbc,contextOptions:_0xb9eafb}=_0x448743['ZZcER'](buildBrowserOptionsFromSettings,_0x580331,{'headless':_0x5e8e68?![]:_0x580331['headless']??!![],'storageStatePath':_0x2dc62e});if(_0x448743[_0x590b71(0x106)](process['getuid']?.(),0x0)){const _0x5346e1=[_0x448743[_0x590b71(0xc7)],_0x448743[_0x590b71(0xfa)]],_0x56f447=_0x37fcbc[_0x590b71(0x11c)]??[],_0x58d370=_0x5346e1['filter'](_0x524c18=>!_0x56f447[_0x590b71(0xd9)](_0x524c18));_0x37fcbc[_0x590b71(0x11c)]=[..._0x56f447,..._0x58d370];}return{'isolated':!![],'browserName':_0x448743['Kswzu'],'launchOptions':_0x37fcbc,'contextOptions':{..._0xb9eafb,'permissions':[_0x448743['tSAHE'],_0x448743['Chaxv']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1d9146=_0x1d4861===_0x448743['VvacW']?{'browser':_0x33b0e3,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2a71be,'outputMode':_0x59fe84(0xe1),'codegen':'none'}:{'name':_0x5b5a79,'browser':_0x33b0e3,'capabilities':[_0x59fe84(0xba),_0x59fe84(0x11e),_0x448743[_0x59fe84(0xb2)],_0x448743['NiCkQ'],_0x59fe84(0xb3)],'imageResponses':_0x448743[_0x59fe84(0x112)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2a71be};if(!_0x5b8fba){const _0x3e0333=_0x1d9146[_0x59fe84(0xc8)],_0x4c8a0a=_0x3e0333['contextOptions'];if(_0x4c8a0a[_0x59fe84(0x10a)]===undefined)delete _0x4c8a0a['userAgent'];if(_0x448743['zrHyB'](_0x4c8a0a[_0x59fe84(0xea)],undefined))delete _0x4c8a0a['storageState'];}const _0x281a58=join(_0x448743[_0x59fe84(0xf9)](tmpdir),_0x59fe84(0xe2));!existsSync(_0x281a58)&&await mkdir(_0x281a58,{'recursive':!![]});const _0x47c0e7=_0x448743[_0x59fe84(0xf0)](_0x1d4861,_0x59fe84(0xd8))?_0x448743[_0x59fe84(0xfb)]:'',_0x44e216=_0x448743[_0x59fe84(0x105)](join,_0x281a58,_0x5b5a79+'-'+Date['now']()+_0x47c0e7+'.json');return await writeFile(_0x44e216,JSON[_0x59fe84(0xdd)](_0x1d9146,null,0x2)),{'configPath':_0x44e216};}function _0x36b6(){const _0xfd0c36=['SbpGK','OPYxA','playwright-cli','includes','316045kNHnVq','--disable-web-security','430SgbMix','stringify','safeMode','ByfiV','object','file','ranger-config','headers','90iiLXoB','gQhMQ','push','KEyBV','ranger-auth-','--unsafely-treat-insecure-origin-as-secure=http://localhost','storageState','auth.json','nFGxw','\x20is\x20not\x20set','split','43480dATWtS','YrXWX','cdpEndpoint','setupHeaders','lwvSW','MhsxP','Ghogs','--disable-setuid-sandbox','pPEvG','ueluH','SZOTI','VkvwX','RZMgK','pWETH','QtFzr','kqdhc','2002jGhrZG','1267wmVQuH','13052916EdAsrM','DwdsA','catch','fFeDI','ZZcER','zrHyB','kWJKk','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','settings.json','userAgent','lUgdz','VSUYn','keys','laZtg','string','path','aCkmD','EoOcC','auth.json.enc','ParrK','5703jLnezr','--no-sandbox','stagehand','QoOhX','configPath','hzXur','264SSddSL','args','BYotg','tabs','bwsOt','length','AJAUK','vision','osXsN','filter','ignoreHTTPSErrors','XGqhW','BTTiR','qjDkL','core','repeat','code','EcSRu','pYAgn','endsWith','Refusing\x20to\x20write\x20profile\x20\x22','env','otJQc','forWrite','chromium','legacy','entries','dtlZX','browser','QXLvX','1MOvijx','setupHeader','headless','clipboard-read','CTxTE','message','install','contextOptions','local','592114nouQoy','See\x20docs/feature/cloud-profiles-old-vs-new-structure.md\x20for\x20the\x20supported\x20flow.','8939367dfXLbZ'];_0x36b6=function(){return _0xfd0c36;};return _0x36b6();}export async function buildPlaywrightCliConfig(_0x124605,_0x3de694,_0x44fbce,_0x2b5af0,_0x363587){const _0x45b396=_0xb6587c,_0x5e51ec={'bwsOt':function(_0x1f9f7c,_0x281ebe,_0x4c55ce,_0x2cd4c4,_0x2e7366,_0x341c5f,_0x4958e1){return _0x1f9f7c(_0x281ebe,_0x4c55ce,_0x2cd4c4,_0x2e7366,_0x341c5f,_0x4958e1);},'rUVrh':function(_0x5270fe,_0x47bfd4){return _0x5270fe(_0x47bfd4);},'KEyBV':'playwright-cli'};if(_0x363587)return _0x5e51ec[_0x45b396(0x11f)](buildPlaywrightConfigCore,_0x124605,_0x363587,_0x3de694,_0x44fbce,_0x2b5af0,'playwright-cli');const {storageStatePath:_0xfa437d,tempAuthPath:_0xc78333}=await resolveLocalAuthPath(_0x5e51ec['rUVrh'](getEnvDir,_0x3de694));try{const _0xa24844=await buildPlaywrightConfigCore(_0x124605,_0xfa437d,_0x3de694,_0x44fbce,_0x2b5af0,_0x5e51ec[_0x45b396(0xe7)]);return{..._0xa24844,'tempAuthPath':_0xc78333};}catch(_0x1eb648){_0xc78333&&await unlink(_0xc78333)['catch'](()=>{});throw _0x1eb648;}}export function getNestedValue(_0x2ca0b6,_0x1b2533){const _0x200486=_0xb6587c,_0xc76d4f={'lDoFA':function(_0x4ccaa1,_0x26aeae){return _0x4ccaa1(_0x26aeae);},'pWETH':function(_0xead389,_0x265c7e){return _0xead389===_0x265c7e;},'faiWJ':function(_0x5a1181,_0x347e6f){return _0x5a1181!==_0x347e6f;}},_0x3cf176=_0xc76d4f['lDoFA'](parseKeyPath,_0x1b2533);let _0x1e65dd=_0x2ca0b6;for(const _0x2d0eb8 of _0x3cf176){if(_0xc76d4f[_0x200486(0xfc)](_0x1e65dd,null)||_0xc76d4f[_0x200486(0xfc)](_0x1e65dd,undefined)||_0xc76d4f['faiWJ'](typeof _0x1e65dd,'object'))return undefined;_0x1e65dd=_0x1e65dd[_0x2d0eb8];}return _0x1e65dd;}export function setNestedValue(_0xed6675,_0x1c2222,_0x409216){const _0x432630=_0xb6587c,_0x5eb5e4={'pPEvG':function(_0x14b239,_0x163e54){return _0x14b239(_0x163e54);},'BGATa':function(_0x51d5c8,_0x1d2e8d){return _0x51d5c8<_0x1d2e8d;},'DwdsA':function(_0x1d4476,_0x2a73df){return _0x1d4476-_0x2a73df;},'qwLuS':'object'},_0x2a42d3=_0x5eb5e4[_0x432630(0xf7)](parseKeyPath,_0x1c2222);let _0x28c0ec=_0xed6675;for(let _0x490ec9=0x0;_0x5eb5e4['BGATa'](_0x490ec9,_0x5eb5e4[_0x432630(0x102)](_0x2a42d3[_0x432630(0x120)],0x1));_0x490ec9++){const _0x567f01=_0x2a42d3[_0x490ec9];(!(_0x567f01 in _0x28c0ec)||typeof _0x28c0ec[_0x567f01]!==_0x5eb5e4['qwLuS'])&&(_0x28c0ec[_0x567f01]={}),_0x28c0ec=_0x28c0ec[_0x567f01];}_0x28c0ec[_0x2a42d3[_0x2a42d3[_0x432630(0x120)]-0x1]]=_0x409216;}export function deleteNestedValue(_0x645b99,_0x3fb47b){const _0x5e494b=_0xb6587c,_0x17dcdc={'sQjLg':function(_0x59dbfe,_0x5cc1b8){return _0x59dbfe<_0x5cc1b8;},'MRlqi':function(_0x57d0a2,_0x5982e4){return _0x57d0a2-_0x5982e4;},'mJfwu':'object','QXLvX':function(_0x2f3056,_0x415f66){return _0x2f3056===_0x415f66;},'dWNdl':function(_0x4027ba,_0x4de440){return _0x4027ba!==_0x4de440;}},_0x25d7e2=parseKeyPath(_0x3fb47b);let _0x516599=_0x645b99;for(let _0x2cbb23=0x0;_0x17dcdc['sQjLg'](_0x2cbb23,_0x17dcdc['MRlqi'](_0x25d7e2[_0x5e494b(0x120)],0x1));_0x2cbb23++){if(_0x516599===null||_0x516599===undefined||typeof _0x516599!==_0x17dcdc['mJfwu'])return![];_0x516599=_0x516599[_0x25d7e2[_0x2cbb23]];}if(_0x17dcdc[_0x5e494b(0xc9)](_0x516599,null)||_0x516599===undefined||_0x17dcdc['dWNdl'](typeof _0x516599,_0x17dcdc['mJfwu']))return![];const _0x4c8584=_0x25d7e2[_0x25d7e2[_0x5e494b(0x120)]-0x1];if(_0x4c8584 in _0x516599)return delete _0x516599[_0x4c8584],!![];return![];}function parseKeyPath(_0x431376){const _0x1fb1a6=_0xb6587c,_0x3ce3a1={'yFBpl':'header','BYotg':_0x1fb1a6(0xe3),'WMCmW':_0x1fb1a6(0xcb),'pWVMT':_0x1fb1a6(0xf2)},_0x2e864a=_0x431376[_0x1fb1a6(0xee)]('.');return _0x2e864a[0x0]===_0x3ce3a1['yFBpl']&&(_0x2e864a[0x0]=_0x3ce3a1[_0x1fb1a6(0x11d)]),_0x2e864a[0x0]===_0x3ce3a1['WMCmW']&&(_0x2e864a[0x0]=_0x3ce3a1['pWVMT']),_0x2e864a;}export function formatSettings(_0x4c3a06,_0x410651=0x0){const _0x5617dd=_0xb6587c,_0x13085e={'HMdlF':function(_0x17d8d0,_0x1d7660){return _0x17d8d0===_0x1d7660;},'Ghogs':function(_0x172710,_0x579a66){return _0x172710===_0x579a66;}},_0x1d4e22=[],_0x5c2583='\x20\x20'[_0x5617dd(0xbb)](_0x410651);for(const [_0x3f60f5,_0x1daffa]of Object[_0x5617dd(0xc6)](_0x4c3a06)){if(_0x13085e['HMdlF'](_0x1daffa,undefined))continue;if(_0x13085e[_0x5617dd(0xf5)](typeof _0x1daffa,_0x5617dd(0xe0))&&_0x1daffa!==null){_0x1d4e22['push'](''+_0x5c2583+_0x3f60f5+':');for(const [_0x4e33c5,_0x56ed50]of Object['entries'](_0x1daffa)){_0x1d4e22[_0x5617dd(0xe6)](_0x5c2583+'\x20\x20'+_0x4e33c5+':\x20'+_0x56ed50);}}else _0x1d4e22[_0x5617dd(0xe6)](''+_0x5c2583+_0x3f60f5+':\x20'+_0x1daffa);}return _0x1d4e22['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x16c8(_0x551e09,_0x1911fb){_0x551e09=_0x551e09-0x116;const _0x200ae0=_0x200a();let _0x16c8bb=_0x200ae0[_0x551e09];return _0x16c8bb;}(function(_0x575d74,_0x411271){const _0x457c8a=_0x16c8,_0x51a98f=_0x575d74();while(!![]){try{const _0x49f4af=-parseInt(_0x457c8a(0x11c))/0x1+-parseInt(_0x457c8a(0x11b))/0x2*(parseInt(_0x457c8a(0x124))/0x3)+-parseInt(_0x457c8a(0x11d))/0x4*(parseInt(_0x457c8a(0x117))/0x5)+parseInt(_0x457c8a(0x11e))/0x6*(-parseInt(_0x457c8a(0x116))/0x7)+-parseInt(_0x457c8a(0x121))/0x8*(parseInt(_0x457c8a(0x120))/0x9)+parseInt(_0x457c8a(0x122))/0xa+parseInt(_0x457c8a(0x11f))/0xb*(parseInt(_0x457c8a(0x125))/0xc);if(_0x49f4af===_0x411271)break;else _0x51a98f['push'](_0x51a98f['shift']());}catch(_0x3ec87e){_0x51a98f['push'](_0x51a98f['shift']());}}}(_0x200a,0x4d7a7));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x18fc4e){const _0x28b6f1=_0x16c8,_0x158651={'wEzvQ':'utf-8'},_0x8ea903=join(__dirname,'..','..',_0x28b6f1(0x119)),_0x5534d6=join(_0x8ea903,_0x18fc4e);try{return readFileSync(_0x5534d6,_0x158651[_0x28b6f1(0x118)]);}catch{return'';}}export function getRangerSkillContent(){const _0x1c75d1=_0x16c8,_0x5c0bb5={'AKlJn':function(_0x5de133,_0x5347a2){return _0x5de133(_0x5347a2);},'gffKp':_0x1c75d1(0x123)};return _0x5c0bb5[_0x1c75d1(0x11a)](readSkillContent,_0x5c0bb5['gffKp']);}function _0x200a(){const _0x22989d=['312ccEODU','14987hnNLXj','1386335JbdolE','wEzvQ','skills','AKlJn','16njNQez','183115PJrDXj','4MxcWeZ','1068wnDkVo','803902esLuCE','3480012xFAPxU','8aiDIoW','2507990MwicrM','ranger/SKILL.md','227037ApypEu'];_0x200a=function(){return _0x22989d;};return _0x200a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x502777,_0x30f487){const _0x24d5b4=_0x4bf2,_0x19541e=_0x502777();while(!![]){try{const _0x222d52=parseInt(_0x24d5b4(0x193))/0x1+parseInt(_0x24d5b4(0x176))/0x2+parseInt(_0x24d5b4(0x180))/0x3+parseInt(_0x24d5b4(0x18a))/0x4+-parseInt(_0x24d5b4(0x177))/0x5*(parseInt(_0x24d5b4(0x17e))/0x6)+-parseInt(_0x24d5b4(0x192))/0x7+-parseInt(_0x24d5b4(0x174))/0x8*(parseInt(_0x24d5b4(0x17a))/0x9);if(_0x222d52===_0x30f487)break;else _0x19541e['push'](_0x19541e['shift']());}catch(_0x5e1d4f){_0x19541e['push'](_0x19541e['shift']());}}}(_0x5c4a,0xdc043));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';function _0x4bf2(_0x1cacbd,_0x5e838b){_0x1cacbd=_0x1cacbd-0x16e;const _0x5c4ac2=_0x5c4a();let _0x4bf245=_0x5c4ac2[_0x1cacbd];return _0x4bf245;}import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x5c4a(){const _0x46093c=['2246492htTaYJ','4145unIAKO','\x20\x20Removed\x20deprecated\x20skill:\x20','opencode','306ufkvcW','ISTNh','bUZqV','wZUcH','1866AeuioH','project','446016SWXxFu','vGYGF','ophKr','log','endsWith','VWfVG','Invalid\x20skill\x20frontmatter','crUxP','SKILL.md','.md','1095532ThkVWQ','match','wUilL','LmxZt','ckQSx','claude','length','\x20\x20Skill\x20not\x20found:\x20','6742974SSQhRx','900881CdfVZC','trim','\x20\x20Installed\x20skill:\x20','hiJlN','warn','skills','tWoxQ','76328xqhTft','filter'];_0x5c4a=function(){return _0x46093c;};return _0x5c4a();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];export async function installSkill(_0x39d3c3,_0x37054c={}){const _0x59ee33=_0x4bf2,_0xefe237={'zNYqY':_0x59ee33(0x18f),'hiJlN':function(_0x325c50){return _0x325c50();},'wUilL':function(_0x5c4d35,_0x17225b,_0x2b8fb1){return _0x5c4d35(_0x17225b,_0x2b8fb1);},'ophKr':function(_0x547726,_0xcef98){return _0x547726(_0xcef98);},'ckQSx':function(_0x117b14,_0x2a5ec9){return _0x117b14(_0x2a5ec9);},'InceW':function(_0x5ee231,_0xa94846){return _0x5ee231(_0xa94846);},'bUZqV':function(_0x1402a1,_0x277905){return _0x1402a1(_0x277905);},'YXwGP':function(_0x1c33de,_0x728828){return _0x1c33de&&_0x728828;},'AGoXy':_0x59ee33(0x179),'TIviN':function(_0x3b7434,_0x30abc3){return _0x3b7434(_0x30abc3);},'JRvab':function(_0x1dd8a8,_0x3cd097,_0x4b356b){return _0x1dd8a8(_0x3cd097,_0x4b356b);},'tWoxQ':'utf-8','crUxP':'SKILL.md','wZUcH':function(_0xf58c37,_0x29b396,_0x2b37fb,_0xa2d589){return _0xf58c37(_0x29b396,_0x2b37fb,_0xa2d589);},'VWfVG':function(_0x121f94,_0x50b776){return _0x121f94(_0x50b776);},'LmxZt':function(_0x45a59a,_0x252a96,_0xa7cd02,_0x3bb141){return _0x45a59a(_0x252a96,_0xa7cd02,_0x3bb141);}},{level:level=_0x59ee33(0x17f),cliVersion:_0x299a9e,platform:platform=_0xefe237['zNYqY']}=_0x37054c,_0x51e9e8=_0xefe237[_0x59ee33(0x170)](getSourceSkillsDir),_0xc7de83=_0xefe237[_0x59ee33(0x18c)](join,_0x51e9e8,_0x39d3c3),_0x1b1a9a=join(_0x51e9e8,_0x39d3c3+_0x59ee33(0x189)),_0x9ab4c3=_0xefe237[_0x59ee33(0x182)](existsSync,_0xc7de83)&&_0xefe237[_0x59ee33(0x18e)](statSync,_0xc7de83)['isDirectory']()&&_0xefe237['InceW'](existsSync,_0xefe237[_0x59ee33(0x18c)](join,_0xc7de83,_0x59ee33(0x188))),_0x2eb756=_0xefe237['bUZqV'](existsSync,_0x1b1a9a);if(_0xefe237['YXwGP'](!_0x9ab4c3,!_0x2eb756))return console[_0x59ee33(0x171)](_0x59ee33(0x191)+_0x39d3c3),![];const _0x2b283d=platform===_0xefe237['AGoXy']?getOpencodeSkillsDir(level):_0xefe237[_0x59ee33(0x17c)](getSkillsDir,level),_0x2bd889=join(_0x2b283d,_0x39d3c3);await _0xefe237['wUilL'](mkdir,_0x2bd889,{'recursive':!![]});let _0x303040,_0x361748=[];if(_0x9ab4c3){const _0x56b0b1=await _0xefe237['TIviN'](readdir,_0xc7de83),_0x594ed3=_0x56b0b1[_0x59ee33(0x175)](_0x185f44=>_0x185f44[_0x59ee33(0x184)]('.md'));for(const _0x3623b4 of _0x594ed3){const _0x115270=join(_0xc7de83,_0x3623b4),_0x478ea5=_0xefe237['JRvab'](join,_0x2bd889,_0x3623b4);await _0xefe237[_0x59ee33(0x18c)](copyFile,_0x115270,_0x478ea5),_0x361748['push'](_0x3623b4);}_0x303040=await _0xefe237[_0x59ee33(0x18c)](readFile,_0xefe237['JRvab'](join,_0xc7de83,'SKILL.md'),_0xefe237[_0x59ee33(0x173)]);}else{_0x303040=await readFile(_0x1b1a9a,_0xefe237[_0x59ee33(0x173)]);const _0x2681b5=join(_0x2bd889,_0xefe237[_0x59ee33(0x187)]);await _0xefe237[_0x59ee33(0x17d)](writeFile,_0x2681b5,_0x303040,'utf-8'),_0x361748['push'](_0xefe237['crUxP']);}const {name:_0x688897}=_0xefe237[_0x59ee33(0x185)](parseFrontmatter,_0x303040);return console[_0x59ee33(0x183)](_0x59ee33(0x16f)+_0x688897),console[_0x59ee33(0x183)]('\x20\x20Location:\x20'+_0x2bd889),_0x361748[_0x59ee33(0x190)]>0x1&&console['log']('\x20\x20Files:\x20'+_0x361748['join'](',\x20')),_0xefe237[_0x59ee33(0x18d)](logLocalAgentInstallation,_0x39d3c3,{'skillDisplayName':_0x688897,'installLevel':level},_0x299a9e)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1ced0c=_0x4bf2,_0x5b8a0c={'ISTNh':function(_0x475209,_0x246ba4,_0x1e8711,_0x30e427,_0x476562){return _0x475209(_0x246ba4,_0x1e8711,_0x30e427,_0x476562);},'tXhIj':_0x1ced0c(0x172)},_0x80c244=[_0x5b8a0c[_0x1ced0c(0x17b)](join,__dirname,'..','..','skills'),join(__dirname,'..','..','..',_0x5b8a0c['tXhIj'])];for(const _0xb4dc67 of _0x80c244){if(existsSync(_0xb4dc67))return _0xb4dc67;}return _0x80c244[0x0];}function parseFrontmatter(_0x298676){const _0x5e6d40=_0x4bf2,_0x46e4bf=_0x298676['match'](/^---\n([\s\S]+?)\n---/);if(!_0x46e4bf)throw new Error(_0x5e6d40(0x186));const _0x2a6aed=_0x46e4bf[0x1],_0x4a03c2=_0x2a6aed[_0x5e6d40(0x18b)](/name:\s*(.+)/),_0x274703=_0x2a6aed[_0x5e6d40(0x18b)](/description:\s*"?(.+?)"?\n/);return{'name':_0x4a03c2?.[0x1]['trim']()||'','description':_0x274703?.[0x1][_0x5e6d40(0x16e)]()||''};}export async function removeSkill(_0x2344d2,_0x32a283){const _0x44c4a9=_0x4bf2,_0x1d6fe5={'OXExl':function(_0x2dc42c,_0xdb1158,_0x3d581f){return _0x2dc42c(_0xdb1158,_0x3d581f);},'vGYGF':function(_0x5643c4,_0x56dee9,_0x11df56){return _0x5643c4(_0x56dee9,_0x11df56);}},_0x156026=getSkillsDir(_0x32a283),_0x3e98d6=_0x1d6fe5['OXExl'](join,_0x156026,_0x2344d2);if(!existsSync(_0x3e98d6))return![];try{return await _0x1d6fe5[_0x44c4a9(0x181)](rm,_0x3e98d6,{'recursive':!![]}),console[_0x44c4a9(0x183)](_0x44c4a9(0x178)+_0x2344d2),!![];}catch{return console[_0x44c4a9(0x171)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x2344d2),![];}}
|