@ranger-testing/ranger-cli 2.5.4-alpha.36a12ca-10 → 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
|
-
(function(
|
|
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(_0x41cc01,_0x3c2255){const _0x39ccb0=_0x5c80,_0x49a548=_0x41cc01();while(!![]){try{const _0xf0df6c=parseInt(_0x39ccb0(0xda))/0x1*(-parseInt(_0x39ccb0(0xdd))/0x2)+-parseInt(_0x39ccb0(0xe4))/0x3+-parseInt(_0x39ccb0(0xee))/0x4*(parseInt(_0x39ccb0(0xe8))/0x5)+-parseInt(_0x39ccb0(0xf6))/0x6+-parseInt(_0x39ccb0(0xd5))/0x7*(-parseInt(_0x39ccb0(0xf8))/0x8)+parseInt(_0x39ccb0(0xd4))/0x9+-parseInt(_0x39ccb0(0xff))/0xa*(-parseInt(_0x39ccb0(0xd9))/0xb);if(_0xf0df6c===_0x3c2255)break;else _0x49a548['push'](_0x49a548['shift']());}catch(_0x5782e7){_0x49a548['push'](_0x49a548['shift']());}}}(_0x56b3,0x239a6));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 _0x415b9f=_0x5c80,_0x83146d={'VWnTc':function(_0x1a59fe,_0x1c0128,_0x5c6683){return _0x1a59fe(_0x1c0128,_0x5c6683);},'EJjZP':function(_0x1163b0){return _0x1163b0();},'qcSss':'projects.json'};return _0x83146d[_0x415b9f(0x103)](join,_0x83146d['EJjZP'](getRangerHomeDir),_0x83146d[_0x415b9f(0xdc)]);}function _0x5c80(_0x51d9c9,_0x17ed37){_0x51d9c9=_0x51d9c9-0xd0;const _0x56b313=_0x56b3();let _0x5c8050=_0x56b313[_0x51d9c9];return _0x5c8050;}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x59e5b8=_0x5c80,_0xac63c4={'eMsCi':function(_0x3f4aba){return _0x3f4aba();},'dmvOR':function(_0x36814a,_0x5e5fa8,_0x57f66a){return _0x36814a(_0x5e5fa8,_0x57f66a);},'gaiwo':'utf-8','MNhuT':function(_0x3610bc,_0xe7c6ff){return _0x3610bc instanceof _0xe7c6ff;},'vASDX':function(_0xc83e10,_0x295f28){return _0xc83e10(_0x295f28);},'OTSxy':function(_0x2aa438){return _0x2aa438();},'fHoDN':function(_0x1d26c8,_0x51e183){return _0x1d26c8(_0x51e183);},'zCDEh':function(_0xaf0449){return _0xaf0449();},'LmtDG':_0x59e5b8(0xe2),'LvKju':function(_0x2f718f,_0x3752d8){return _0x2f718f!==_0x3752d8;}},_0x3411ba=_0xac63c4['eMsCi'](getProjectsConfigPath);if(!existsSync(_0x3411ba))return emptyConfig();let _0x366c32;try{_0x366c32=_0xac63c4[_0x59e5b8(0xe9)](readFileSync,_0x3411ba,_0xac63c4['gaiwo']);}catch(_0x5bb23d){const _0x1dfb43=_0xac63c4['MNhuT'](_0x5bb23d,Error)?_0x5bb23d['message']:_0xac63c4[_0x59e5b8(0xf5)](String,_0x5bb23d);return console[_0x59e5b8(0xf0)](_0x59e5b8(0xe0)+_0x3411ba+':\x20'+_0x1dfb43+_0x59e5b8(0xdf)),_0xac63c4['OTSxy'](emptyConfig);}let _0x4db162;try{_0x4db162=JSON[_0x59e5b8(0xf2)](_0x366c32);}catch(_0x430c16){const _0x52a9f4=_0xac63c4[_0x59e5b8(0xd0)](_0x430c16,Error)?_0x430c16[_0x59e5b8(0xf3)]:_0xac63c4['fHoDN'](String,_0x430c16);return console[_0x59e5b8(0xf0)](_0x59e5b8(0xec)+_0x3411ba+_0x59e5b8(0xd7)+_0x52a9f4+_0x59e5b8(0xea)),_0xac63c4[_0x59e5b8(0xfa)](emptyConfig);}if(!_0x4db162||typeof _0x4db162!==_0xac63c4['LmtDG']||Array[_0x59e5b8(0xd2)](_0x4db162)||_0x4db162[_0x59e5b8(0xd6)]!==CURRENT_VERSION||_0xac63c4['LvKju'](typeof _0x4db162[_0x59e5b8(0xf1)],_0xac63c4[_0x59e5b8(0xe3)])||_0x4db162['projects']===null||Array['isArray'](_0x4db162['projects']))return console[_0x59e5b8(0xf0)](_0x59e5b8(0xec)+_0x3411ba+_0x59e5b8(0xeb)),_0xac63c4[_0x59e5b8(0xfa)](emptyConfig);return _0x4db162;}function _0x56b3(){const _0x31d6ce=['.\x20Ignoring\x20local\x20profile\x20overrides.','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','DAlRN','object','LmtDG','56292zjoJgu','UioXS','setupHeaders','psQsd','691010uKHxiJ','dmvOR',').\x20Ignoring\x20local\x20profile\x20overrides.','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','[ranger]\x20Warning:\x20','SYDRs','8GSBeye','utf-8','warn','projects','parse','message','IrSJR','vASDX','853392Sqjvhq','wGCZz','336416qcmjTz','settings','zCDEh','length','wHbHy','eJYHk','iXKXK','1070jgaPJZ','sfJCQ','WtIKP','entries','VWnTc','MNhuT','split','isArray','tGmLZ','2555289mkIjWY','14xCYYyU','version','\x20is\x20not\x20valid\x20JSON\x20(','xiouz','34826uswjHz','19exDCQV','profiles','qcSss','13006nlUnvy','pid'];_0x56b3=function(){return _0x31d6ce;};return _0x56b3();}export function writeProjectsConfig(_0x3f2aad){const _0x120c17=_0x5c80,_0x172082={'UioXS':function(_0x52e48e,_0x296c4a){return _0x52e48e(_0x296c4a);},'WtIKP':function(_0x3be388,_0x5ebeaf){return _0x3be388+_0x5ebeaf;},'GMOXy':function(_0x2d540d,_0x62bc52,_0x2aab72,_0x43150d){return _0x2d540d(_0x62bc52,_0x2aab72,_0x43150d);},'YMGKA':_0x120c17(0xef),'SYDRs':function(_0x27c466,_0x28b9bb,_0x15143f){return _0x27c466(_0x28b9bb,_0x15143f);}},_0x2f62a2=getProjectsConfigPath(),_0x58a90d=dirname(_0x2f62a2);!_0x172082[_0x120c17(0xe5)](existsSync,_0x58a90d)&&mkdirSync(_0x58a90d,{'recursive':!![]});const _0x4a61dd=_0x2f62a2+'.'+process[_0x120c17(0xde)]+'.'+Date['now']()+'.tmp',_0x58724b=_0x172082[_0x120c17(0x101)](JSON['stringify'](_0x3f2aad,null,0x2),'\x0a');try{_0x172082['GMOXy'](writeFileSync,_0x4a61dd,_0x58724b,{'encoding':_0x172082['YMGKA'],'mode':0x180}),_0x172082[_0x120c17(0xed)](renameSync,_0x4a61dd,_0x2f62a2);}catch(_0x450e0a){try{existsSync(_0x4a61dd)&&unlinkSync(_0x4a61dd);}catch{}throw _0x450e0a;}}export function readProfileOverrides(_0x1379ab,_0x3078a3){const _0x35682f=_0x5c80,_0x26784c={'LHrEY':function(_0x49922d){return _0x49922d();}},_0x1a892b=_0x26784c['LHrEY'](readProjectsConfig),_0x8d374=_0x1a892b[_0x35682f(0xf1)][_0x1379ab];if(!_0x8d374||!_0x8d374[_0x35682f(0xdb)])return null;const _0x586118=_0x8d374[_0x35682f(0xdb)][_0x3078a3];if(!_0x586118||!_0x586118[_0x35682f(0xf9)])return null;return _0x586118['settings']??null;}export function setProfileOverride(_0x3c873b,_0x4e11d7,_0x1f6096,_0x5c6301){const _0x516731=_0x5c80,_0x1e3f1c={'eJYHk':'keyPath\x20is\x20required','OxyWI':function(_0x3f1bd3){return _0x3f1bd3();}};if(!_0x1f6096)throw new Error(_0x1e3f1c[_0x516731(0xfd)]);const _0x17af4b=_0x1e3f1c['OxyWI'](readProjectsConfig),_0x4aeddc=_0x17af4b[_0x516731(0xf1)][_0x3c873b]??={},_0x4a5521=_0x4aeddc[_0x516731(0xdb)]??={},_0x1fc6eb=_0x4a5521[_0x4e11d7]??={},_0x1ade74=_0x1fc6eb[_0x516731(0xf9)]??={};setByKeyPath(_0x1ade74,_0x1f6096,_0x5c6301),writeProjectsConfig(_0x17af4b);}export function unsetProfileOverride(_0x1dca7f,_0x58b38b,_0x1911a3){const _0x45f8db=_0x5c80,_0x42a638={'iXKXK':'keyPath\x20is\x20required','KuDam':function(_0x1ab2ad){return _0x1ab2ad();},'IrSJR':function(_0x59d3ed,_0x171b4b,_0xeef39e){return _0x59d3ed(_0x171b4b,_0xeef39e);},'BDkkW':function(_0x4622bb,_0x52066e){return _0x4622bb(_0x52066e);}};if(!_0x1911a3)throw new Error(_0x42a638[_0x45f8db(0xfe)]);const _0x27661c=_0x42a638['KuDam'](readProjectsConfig),_0x3ab478=_0x27661c[_0x45f8db(0xf1)][_0x1dca7f];if(!_0x3ab478?.['profiles'])return![];const _0x451a6a=_0x3ab478['profiles'][_0x58b38b];if(!_0x451a6a?.['settings'])return![];const _0x1a34be=_0x42a638[_0x45f8db(0xf4)](deleteByKeyPath,_0x451a6a[_0x45f8db(0xf9)],_0x1911a3);if(!_0x1a34be)return![];return _0x42a638['BDkkW'](writeProjectsConfig,_0x27661c),!![];}export function resetProfileOverrides(_0x4d8aa9,_0x2feeff){const _0x5d137=_0x5c80,_0x5c62d2={'wGCZz':function(_0x1cea53,_0x1b88ab){return _0x1cea53===_0x1b88ab;}},_0x130ca9=readProjectsConfig(),_0x1f5c51=_0x130ca9['projects'][_0x4d8aa9];if(!_0x1f5c51?.['profiles'])return;if(!(_0x2feeff in _0x1f5c51['profiles']))return;delete _0x1f5c51[_0x5d137(0xdb)][_0x2feeff],_0x5c62d2[_0x5d137(0xf7)](Object['keys'](_0x1f5c51[_0x5d137(0xdb)])[_0x5d137(0xfb)],0x0)&&delete _0x1f5c51['profiles'],!_0x1f5c51['profiles']&&delete _0x130ca9['projects'][_0x4d8aa9],writeProjectsConfig(_0x130ca9);}export function mergeCloudProfileSettings(_0x4ac5af,_0x41c2d7){const _0x30e2bd=_0x5c80,_0x25ea93={'wHbHy':function(_0x56e972,_0x211e01){return _0x56e972??_0x211e01;},'nCCUy':function(_0x3062d1,_0x47f08b){return _0x3062d1===_0x47f08b;},'sfJCQ':function(_0xcda283,_0x541181){return _0xcda283===_0x541181;},'DAlRN':_0x30e2bd(0xe6),'YVweS':function(_0x2633be,_0x146efd){return _0x2633be(_0x146efd);},'hWBIS':function(_0x3a6f46,_0x564de8){return _0x3a6f46!==_0x564de8;}},_0x47cfbe={..._0x25ea93[_0x30e2bd(0xfc)](_0x4ac5af,{})};if(!_0x41c2d7)return _0x47cfbe;for(const [_0x1b95d9,_0x393019]of Object['entries'](_0x41c2d7)){if(_0x25ea93['nCCUy'](_0x393019,undefined))continue;if(_0x25ea93[_0x30e2bd(0x100)](_0x393019,null)){delete _0x47cfbe[_0x1b95d9];continue;}if(_0x25ea93['sfJCQ'](_0x1b95d9,'headers')||_0x1b95d9===_0x25ea93[_0x30e2bd(0xe1)]){const _0x58bed6=asRecord(_0x47cfbe[_0x1b95d9])??{},_0x1c57e3=_0x25ea93['YVweS'](asRecord,_0x393019);if(!_0x1c57e3){_0x47cfbe[_0x1b95d9]=_0x393019;continue;}const _0x114b49={..._0x58bed6};for(const [_0x445206,_0x288a53]of Object[_0x30e2bd(0x102)](_0x1c57e3)){if(_0x288a53===null)delete _0x114b49[_0x445206];else _0x25ea93['hWBIS'](_0x288a53,undefined)&&(_0x114b49[_0x445206]=_0x288a53);}_0x47cfbe[_0x1b95d9]=_0x114b49;continue;}_0x47cfbe[_0x1b95d9]=_0x393019;}return _0x47cfbe;}function asRecord(_0x37219c){const _0x2785a7=_0x5c80,_0x1de0f5={'UJfiO':function(_0x36cdcc,_0xb001a8){return _0x36cdcc===_0xb001a8;},'OzzWC':_0x2785a7(0xe2)};return _0x37219c&&_0x1de0f5['UJfiO'](typeof _0x37219c,_0x1de0f5['OzzWC'])&&!Array['isArray'](_0x37219c)?_0x37219c:undefined;}function setByKeyPath(_0x5a1cf0,_0x5619ac,_0x49cf7e){const _0x6d8b20=_0x5c80,_0x277911={'psQsd':function(_0x40dcb2,_0x210d30){return _0x40dcb2<_0x210d30;},'RkUkZ':'object'},_0x44f549=_0x5619ac[_0x6d8b20(0xd1)]('.');let _0x3a3e7d=_0x5a1cf0;for(let _0x469a20=0x0;_0x277911[_0x6d8b20(0xe7)](_0x469a20,_0x44f549[_0x6d8b20(0xfb)]-0x1);_0x469a20++){const _0x2f37f6=_0x44f549[_0x469a20],_0x459e24=_0x3a3e7d[_0x2f37f6];(!_0x459e24||typeof _0x459e24!==_0x277911['RkUkZ']||Array[_0x6d8b20(0xd2)](_0x459e24))&&(_0x3a3e7d[_0x2f37f6]={}),_0x3a3e7d=_0x3a3e7d[_0x2f37f6];}_0x3a3e7d[_0x44f549[_0x44f549[_0x6d8b20(0xfb)]-0x1]]=_0x49cf7e;}function deleteByKeyPath(_0x4a12bd,_0x4fbf12){const _0x1f75b5=_0x5c80,_0x4169cf={'xiouz':function(_0x13869b,_0x5550ef){return _0x13869b<_0x5550ef;},'tiEoY':function(_0x44d9e5,_0x273dab){return _0x44d9e5-_0x273dab;},'UJyez':function(_0x356f47,_0x39ecfd){return _0x356f47!==_0x39ecfd;},'tGmLZ':function(_0x471a0d,_0x479176){return _0x471a0d in _0x479176;}},_0xa4d816=_0x4fbf12[_0x1f75b5(0xd1)]('.');let _0x3a4f4e=_0x4a12bd;for(let _0x153d57=0x0;_0x4169cf[_0x1f75b5(0xd8)](_0x153d57,_0x4169cf['tiEoY'](_0xa4d816['length'],0x1));_0x153d57++){const _0x296e77=_0xa4d816[_0x153d57],_0x198e25=_0x3a4f4e[_0x296e77];if(!_0x198e25||_0x4169cf['UJyez'](typeof _0x198e25,_0x1f75b5(0xe2))||Array[_0x1f75b5(0xd2)](_0x198e25))return![];_0x3a4f4e=_0x198e25;}const _0x3a2a0d=_0xa4d816[_0xa4d816['length']-0x1];if(!_0x4169cf[_0x1f75b5(0xd3)](_0x3a2a0d,_0x3a4f4e))return![];return delete _0x3a4f4e[_0x3a2a0d],!![];}
|
|
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
|
-
(function(
|
|
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 _0x21fcc3=_0x14e1;(function(_0x160871,_0x3e5215){const _0x5a210c=_0x14e1,_0x1de623=_0x160871();while(!![]){try{const _0x1fd8b8=-parseInt(_0x5a210c(0x17a))/0x1+parseInt(_0x5a210c(0x17b))/0x2*(-parseInt(_0x5a210c(0x16f))/0x3)+-parseInt(_0x5a210c(0x178))/0x4+-parseInt(_0x5a210c(0x152))/0x5+parseInt(_0x5a210c(0x17d))/0x6+-parseInt(_0x5a210c(0x161))/0x7*(parseInt(_0x5a210c(0x15f))/0x8)+parseInt(_0x5a210c(0x157))/0x9*(parseInt(_0x5a210c(0x15c))/0xa);if(_0x1fd8b8===_0x3e5215)break;else _0x1de623['push'](_0x1de623['shift']());}catch(_0x4faef5){_0x1de623['push'](_0x1de623['shift']());}}}(_0x461c,0xaf7ba));import*as _0x17cf9b from'fs';function _0x461c(){const _0x22b09e=['existsSync','lastStopReminderAt','IPaOJ','ZzYpA','git\x20rev-parse\x20--abbrev-ref\x20HEAD','45303KxWwwP','currentBranch','dirname','szxvy','QYBYw','main','homedir','SvVCZ','master','4121732opLLuw','featureId','881542XcGRbY','6OmGjVr','nuUiJ','8386074iceLJY','NjsGx','qwTfm','2851865LkeMha','MAmCv','lastEnabledSessionClearedAt','readFileSync','mwWZJ','296847IJESPH','prompted','gKcWz','sessions','JYZMS','730oiltRt','brjvh','.claude','7832bIipeM','ARUrc','3997IOqxMm','HEAD','enabled','zlWoD','branches','tnABa','writeFileSync','pipe','lastPlanReminderAt'];_0x461c=function(){return _0x22b09e;};return _0x461c();}import*as _0x13b03c from'path';import*as _0x3fa817 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x13b03c['join'](_0x3fa817[_0x21fcc3(0x175)](),_0x21fcc3(0x15e),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x14e1(_0x3e9870,_0xb10bb9){_0x3e9870=_0x3e9870-0x152;const _0x461cf2=_0x461c();let _0x14e153=_0x461cf2[_0x3e9870];return _0x14e153;}function loadCache(){const _0x121e3f=_0x21fcc3,_0x1637dc={'NhhXi':'utf-8'};try{if(_0x17cf9b['existsSync'](CACHE_FILE)){const _0x5a38f2=JSON['parse'](_0x17cf9b[_0x121e3f(0x155)](CACHE_FILE,_0x1637dc['NhhXi']));return{'version':0x3,'sessions':_0x5a38f2['sessions']||{},'branches':_0x5a38f2[_0x121e3f(0x165)]||{},'lastEnabledSessionClearedAt':_0x5a38f2[_0x121e3f(0x154)]};}}catch{}return createEmptyCache();}function saveCache(_0x36055b){const _0x539320=_0x21fcc3;try{const _0x507d60=_0x13b03c[_0x539320(0x171)](CACHE_FILE);!_0x17cf9b[_0x539320(0x16a)](_0x507d60)&&_0x17cf9b['mkdirSync'](_0x507d60,{'recursive':!![]}),_0x17cf9b[_0x539320(0x167)](CACHE_FILE,JSON['stringify'](_0x36055b,null,0x2));}catch{}}export function getCurrentBranch(){const _0x43e4e4=_0x21fcc3,_0x33dbe0={'zlWoD':_0x43e4e4(0x16e),'JYZMS':_0x43e4e4(0x168),'IPaOJ':_0x43e4e4(0x162)};try{const _0x557f83=execSync(_0x33dbe0[_0x43e4e4(0x164)],{'encoding':'utf-8','stdio':[_0x43e4e4(0x168),_0x33dbe0[_0x43e4e4(0x15b)],'pipe']})['trim']();if(!_0x557f83||_0x557f83===_0x33dbe0[_0x43e4e4(0x16c)])return null;return _0x557f83;}catch{return null;}}export function enableBranch(_0x135264){const _0x6e0969=_0x21fcc3,_0x7b3e61=loadCache();_0x7b3e61[_0x6e0969(0x165)][_0x135264]=!![],saveCache(_0x7b3e61);}export function disableBranch(_0x36a672){const _0xd31a47=loadCache();delete _0xd31a47['branches'][_0x36a672],saveCache(_0xd31a47);}export function isBranchEnabled(_0x5272af){const _0x54b2e8=_0x21fcc3,_0x58d99f={'NjsGx':function(_0x3b8e22,_0x187c0d){return _0x3b8e22===_0x187c0d;}},_0x4f105c=loadCache();return _0x58d99f[_0x54b2e8(0x17e)](_0x4f105c['branches'][_0x5272af],!![]);}function getOrCreateSession(_0x491ab7,_0x44d2d6){const _0x1dba06=_0x21fcc3;return!_0x491ab7[_0x1dba06(0x15a)][_0x44d2d6]&&(_0x491ab7[_0x1dba06(0x15a)][_0x44d2d6]={}),_0x491ab7['sessions'][_0x44d2d6];}export function enableSession(_0x47ea61){const _0x2c5239=_0x21fcc3,_0x1358b2={'ZzYpA':function(_0x5a4166,_0x5e7edc){return _0x5a4166!==_0x5e7edc;},'hQmod':function(_0x2bcb74,_0xad8579){return _0x2bcb74(_0xad8579);}},_0x520126=loadCache(),_0x3809f3=getOrCreateSession(_0x520126,_0x47ea61);_0x3809f3[_0x2c5239(0x163)]=!![];const _0x461e13=getCurrentBranch();_0x461e13&&_0x1358b2[_0x2c5239(0x16d)](_0x461e13,'main')&&_0x1358b2[_0x2c5239(0x16d)](_0x461e13,'master')&&(_0x520126['branches'][_0x461e13]=!![],_0x3809f3['currentBranch']=_0x461e13),_0x1358b2['hQmod'](saveCache,_0x520126);}export function isSessionEnabled(_0xc9c8f4){const _0x4183a8=_0x21fcc3,_0xcccc3f={'gKcWz':function(_0x45111f){return _0x45111f();},'DssOK':_0x4183a8(0x174),'poCbU':function(_0x1d4497,_0x3dbd09){return _0x1d4497===_0x3dbd09;},'yFEeW':function(_0x16e758,_0x57e362){return _0x16e758||_0x57e362;}},_0x3b9177=_0xcccc3f[_0x4183a8(0x159)](loadCache),_0xcbbc7f=getCurrentBranch();if(!_0xcbbc7f||_0xcbbc7f===_0xcccc3f['DssOK']||_0xcbbc7f===_0x4183a8(0x177))return _0x3b9177[_0x4183a8(0x15a)][_0xc9c8f4]?.['enabled']===!![];const _0x4278f6=_0xcccc3f['poCbU'](_0x3b9177['branches'][_0xcbbc7f],!![]),_0x2d6ec5=_0x3b9177['sessions'][_0xc9c8f4]?.['enabled']===!![];return _0xcccc3f['yFEeW'](_0x4278f6,_0x2d6ec5);}export function disableSession(_0xd3d91a){const _0x35a759=_0x21fcc3,_0x68fec={'Rodhp':function(_0x4ffce8){return _0x4ffce8();},'qwTfm':function(_0x6b5f4b,_0x5d7829,_0x21d038){return _0x6b5f4b(_0x5d7829,_0x21d038);},'awudg':function(_0x362731,_0x35f658){return _0x362731(_0x35f658);}},_0x369101=_0x68fec['Rodhp'](loadCache),_0x445fdb=_0x68fec[_0x35a759(0x17f)](getOrCreateSession,_0x369101,_0xd3d91a);_0x445fdb[_0x35a759(0x163)]=![],_0x68fec['awudg'](saveCache,_0x369101);}export function updateBranchTracking(_0x5b77f0){const _0x17523c=_0x21fcc3,_0x736363={'LVytd':function(_0x374dba){return _0x374dba();},'qeskC':function(_0x1db949,_0x2d4a10){return _0x1db949===_0x2d4a10;},'rAymb':_0x17523c(0x174),'FWBos':'master','QYBYw':function(_0x19e741,_0x3efaf7){return _0x19e741!==_0x3efaf7;},'DevNS':function(_0x28723d,_0xebb7c6){return _0x28723d(_0xebb7c6);}},_0x509602=loadCache(),_0x23b10c=_0x509602['sessions'][_0x5b77f0];if(!_0x23b10c?.['enabled'])return;const _0x4b9660=_0x736363['LVytd'](getCurrentBranch);if(!_0x4b9660||_0x736363['qeskC'](_0x4b9660,_0x736363['rAymb'])||_0x4b9660===_0x736363['FWBos'])return;_0x736363[_0x17523c(0x173)](_0x23b10c['currentBranch'],_0x4b9660)&&(_0x509602[_0x17523c(0x165)][_0x4b9660]=!![],_0x23b10c[_0x17523c(0x170)]=_0x4b9660,_0x736363['DevNS'](saveCache,_0x509602));}export function initBranchTracking(_0xe1fa90){const _0x523bf0=_0x21fcc3,_0x4afd25={'arBsZ':function(_0x57b395,_0x24601f){return _0x57b395===_0x24601f;},'GhXyc':function(_0x13aab5,_0x56729d){return _0x13aab5===_0x56729d;},'tXGRl':function(_0x3a4026,_0x397e6a,_0x39e996){return _0x3a4026(_0x397e6a,_0x39e996);},'RGVII':function(_0x1cb68b,_0x43effb){return _0x1cb68b(_0x43effb);}},_0x33f890=loadCache(),_0x3b6ced=getCurrentBranch();if(!_0x3b6ced||_0x4afd25['arBsZ'](_0x3b6ced,_0x523bf0(0x174))||_0x4afd25['GhXyc'](_0x3b6ced,_0x523bf0(0x177)))return;if(_0x4afd25['arBsZ'](_0x33f890[_0x523bf0(0x165)][_0x3b6ced],!![])){const _0x3898b8=_0x4afd25['tXGRl'](getOrCreateSession,_0x33f890,_0xe1fa90);_0x3898b8[_0x523bf0(0x163)]=!![],_0x3898b8[_0x523bf0(0x170)]=_0x3b6ced,_0x4afd25['RGVII'](saveCache,_0x33f890);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x4c8a54){const _0x5a377e=_0x21fcc3,_0x25d4ea={'HxuBC':function(_0x2c0603,_0x36c54d){return _0x2c0603(_0x36c54d);}},_0x97246b=loadCache(),_0x2c57ce=_0x97246b['sessions'][_0x4c8a54];_0x2c57ce?.[_0x5a377e(0x163)]&&(_0x97246b['lastEnabledSessionClearedAt']=Date['now'](),_0x25d4ea['HxuBC'](saveCache,_0x97246b));}export function shouldAutoEnableAfterClear(_0x443667){const _0x371774=_0x21fcc3,_0x1f7d9a={'MAmCv':function(_0x1ed8b1,_0x26ef38){return _0x1ed8b1!==_0x26ef38;},'KLdVy':'clear','SVAgU':function(_0x39102e,_0x50dd2c){return _0x39102e-_0x50dd2c;}};if(_0x1f7d9a[_0x371774(0x153)](_0x443667,_0x1f7d9a['KLdVy']))return![];const _0x38514f=loadCache(),_0x38093e=_0x38514f[_0x371774(0x154)];if(!_0x38093e)return![];const _0x34b883=_0x1f7d9a['SVAgU'](Date['now'](),_0x38093e);return _0x34b883<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x291008){const _0x59672b=_0x21fcc3,_0x7cf3ca={'mwWZJ':function(_0x4aed39){return _0x4aed39();},'brjvh':'main','KoNTW':'master','ZooyV':function(_0xf1dde4,_0x3afcde){return _0xf1dde4(_0x3afcde);}},_0x5a19f3=loadCache(),_0x5d6a7e=getOrCreateSession(_0x5a19f3,_0x291008);_0x5d6a7e[_0x59672b(0x163)]=!![];const _0x15f37b=_0x7cf3ca[_0x59672b(0x156)](getCurrentBranch);_0x15f37b&&_0x15f37b!==_0x7cf3ca[_0x59672b(0x15d)]&&_0x15f37b!==_0x7cf3ca['KoNTW']&&(_0x5d6a7e[_0x59672b(0x170)]=_0x15f37b),delete _0x5a19f3['lastEnabledSessionClearedAt'],_0x7cf3ca['ZooyV'](saveCache,_0x5a19f3);}export function registerSession(_0x465be4,_0x52ff86){const _0x509322=_0x21fcc3,_0x4dd5f1={'EPtVW':function(_0x5e11c0,_0x57f5e8,_0x1c6432){return _0x5e11c0(_0x57f5e8,_0x1c6432);},'szxvy':function(_0x15c37f,_0x486640){return _0x15c37f(_0x486640);}},_0x286c74=loadCache(),_0x2ec944=_0x4dd5f1['EPtVW'](getOrCreateSession,_0x286c74,_0x465be4);_0x2ec944[_0x509322(0x179)]=_0x52ff86,_0x2ec944['registeredAt']=new Date()['toISOString'](),_0x4dd5f1[_0x509322(0x172)](saveCache,_0x286c74);}export function getSessionEntry(_0x1d31d4){const _0x4af5aa=_0x21fcc3,_0x24a01a=loadCache(),_0x1f33bf=_0x24a01a[_0x4af5aa(0x15a)][_0x1d31d4];if(_0x1f33bf?.[_0x4af5aa(0x179)]&&_0x1f33bf?.['registeredAt'])return{'featureId':_0x1f33bf['featureId'],'registeredAt':_0x1f33bf['registeredAt']};return null;}export function unregisterSession(_0x1d0a37){const _0x56e83c=_0x21fcc3,_0x2ce0a2={'tnABa':function(_0x566aa2){return _0x566aa2();},'bsxMk':function(_0x157d05,_0x44eb78){return _0x157d05(_0x44eb78);}},_0xb95938=_0x2ce0a2[_0x56e83c(0x166)](loadCache),_0x5887a7=_0xb95938[_0x56e83c(0x15a)][_0x1d0a37];_0x5887a7&&(delete _0x5887a7['featureId'],delete _0x5887a7['registeredAt'],_0x2ce0a2['bsxMk'](saveCache,_0xb95938));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x432d1d){const _0xc7c46f=_0x21fcc3,_0xec635d={'qJhET':function(_0x52b922,_0x2d3b6c){return _0x52b922-_0x2d3b6c;},'ARUrc':function(_0x3a304c,_0x23eedf){return _0x3a304c(_0x23eedf);}},_0x1adb90=loadCache(),_0x392af6=getOrCreateSession(_0x1adb90,_0x432d1d),_0x242ab5=_0x392af6['lastPlanReminderAt']||0x0,_0xf9c8bb=Date['now']();if(_0xec635d['qJhET'](_0xf9c8bb,_0x242ab5)>=PLAN_REMINDER_INTERVAL_MS)return _0x392af6[_0xc7c46f(0x169)]=_0xf9c8bb,_0xec635d[_0xc7c46f(0x160)](saveCache,_0x1adb90),!![];return![];}export function shouldShowStopReminder(_0x3493b0){const _0x1f0d18=_0x21fcc3,_0x129341=loadCache(),_0x354ce4=getOrCreateSession(_0x129341,_0x3493b0),_0x2ea14b=_0x354ce4['lastStopReminderAt']||0x0,_0x4bdb2e=Date['now']();if(_0x4bdb2e-_0x2ea14b>=STOP_REMINDER_INTERVAL_MS)return _0x354ce4[_0x1f0d18(0x16b)]=_0x4bdb2e,saveCache(_0x129341),!![];return![];}export function hasSessionBeenPrompted(_0x2f985c){const _0xfb90d5=_0x21fcc3,_0x5e434e={'AquNB':function(_0x2e79cb){return _0x2e79cb();},'SvVCZ':function(_0x43eaf8,_0x12f91f){return _0x43eaf8===_0x12f91f;}},_0x45310c=_0x5e434e['AquNB'](loadCache);return _0x5e434e[_0xfb90d5(0x176)](_0x45310c[_0xfb90d5(0x15a)][_0x2f985c]?.[_0xfb90d5(0x158)],!![]);}export function markSessionPrompted(_0xbf4bcc){const _0x693d58=_0x21fcc3,_0x3f4d31={'nuUiJ':function(_0x425c7b){return _0x425c7b();},'zvBWH':function(_0x57e177,_0xc36a16,_0x27780e){return _0x57e177(_0xc36a16,_0x27780e);},'pKLOm':function(_0x4f6034,_0x47c6ef){return _0x4f6034(_0x47c6ef);}},_0x588d2e=_0x3f4d31[_0x693d58(0x17c)](loadCache),_0x1cba25=_0x3f4d31['zvBWH'](getOrCreateSession,_0x588d2e,_0xbf4bcc);_0x1cba25[_0x693d58(0x158)]=!![],_0x3f4d31['pKLOm'](saveCache,_0x588d2e);}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 _0x54c121=_0x1946;(function(_0x4c0c7e,_0x4e8d2f){const _0x16a4bb=_0x1946,_0x5b4476=_0x4c0c7e();while(!![]){try{const _0x1d8321=-parseInt(_0x16a4bb(0x150))/0x1*(-parseInt(_0x16a4bb(0x16a))/0x2)+-parseInt(_0x16a4bb(0x12b))/0x3+parseInt(_0x16a4bb(0x121))/0x4+-parseInt(_0x16a4bb(0x159))/0x5*(-parseInt(_0x16a4bb(0x151))/0x6)+-parseInt(_0x16a4bb(0x136))/0x7+parseInt(_0x16a4bb(0x14b))/0x8+-parseInt(_0x16a4bb(0x16d))/0x9*(parseInt(_0x16a4bb(0x120))/0xa);if(_0x1d8321===_0x4e8d2f)break;else _0x5b4476['push'](_0x5b4476['shift']());}catch(_0x252463){_0x5b4476['push'](_0x5b4476['shift']());}}}(_0x4297,0xe6ad2));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';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x3e0e12,_0x45324d){const _0x13ef3f=_0x1946,_0x4aaf0e={'JSoxK':function(_0x874d07,_0x3f77c0,_0x10684e,_0x12ec54){return _0x874d07(_0x3f77c0,_0x10684e,_0x12ec54);},'SexZv':function(_0x1c1705,_0x4286f4,_0x3a10f1){return _0x1c1705(_0x4286f4,_0x3a10f1);},'BcOkw':_0x13ef3f(0x138),'tzkHO':function(_0x10f255,_0x4a445d){return _0x10f255(_0x4a445d);},'dtHCl':function(_0x197ef6,_0x52307b){return _0x197ef6!==_0x52307b;}},_0x498873=join(_0x45324d,'ci',_0x3e0e12),_0x53e14c=_0x4aaf0e['JSoxK'](join,_0x45324d,'local',_0x3e0e12),_0x2d60ba=join(_0x45324d,_0x3e0e12),_0x59da0c=_0x4aaf0e['SexZv'](join,_0x45324d,_0x4aaf0e['BcOkw']),_0x315e62=join(_0x45324d,'ci');if(existsSync(_0x498873))return _0x498873;if(_0x4aaf0e['tzkHO'](existsSync,_0x53e14c))return _0x53e14c;if(existsSync(_0x2d60ba)&&(_0x4aaf0e['dtHCl'](_0x2d60ba,_0x59da0c)&&_0x2d60ba!==_0x315e62?!![]:hasLegacyProfileFiles(_0x2d60ba)))return _0x2d60ba;return null;}export function getEnvDir(_0x14ec67){const _0x20bfbd=_0x1946,_0xcdee3e={'yYEcs':function(_0x36349b,_0x3a9261){return _0x36349b!==_0x3a9261;},'vOWuh':function(_0x39d5c2,_0x41bb66,_0x43dc7f){return _0x39d5c2(_0x41bb66,_0x43dc7f);},'pGnjK':function(_0x40b37e,_0x371a2d,_0x302018,_0x2f53a6){return _0x40b37e(_0x371a2d,_0x302018,_0x2f53a6);}},_0x57a162=getRangerDir(),_0x251228=findEnvInRoot(_0x14ec67,_0x57a162);if(_0x251228)return _0x251228;const _0x4965a8=getRangerHomeDir();if(_0xcdee3e[_0x20bfbd(0x112)](_0x4965a8,_0x57a162)){const _0x5ac3d4=_0xcdee3e['vOWuh'](findEnvInRoot,_0x14ec67,_0x4965a8);if(_0x5ac3d4)return _0x5ac3d4;}return _0xcdee3e[_0x20bfbd(0x122)](join,_0x57a162,_0x20bfbd(0x138),_0x14ec67);}export function findExistingEnv(_0x2499d4,_0x9399b0){const _0x3320a8=_0x1946,_0x5f0846={'NwAJu':function(_0x5b339e){return _0x5b339e();},'aIgWN':_0x3320a8(0x11c),'TmAcj':function(_0xee172a,_0x3ab37e,_0x209da7){return _0xee172a(_0x3ab37e,_0x209da7);},'UxtEk':'local','HOAcH':function(_0x21b213,_0x269471,_0x2f563a){return _0x21b213(_0x269471,_0x2f563a);},'PbBGB':function(_0x56a6d4,_0x35a7d3,_0x1c8fd6,_0x3532a2){return _0x56a6d4(_0x35a7d3,_0x1c8fd6,_0x3532a2);},'cObMt':function(_0x173328,_0x3718f9,_0x332e96){return _0x173328(_0x3718f9,_0x332e96);},'AWmsr':function(_0x113994,_0x28637d){return _0x113994(_0x28637d);}},_0x3c11d9=_0x9399b0?.['rangerDir'],_0xd1d95e=_0x3c11d9?[_0x3c11d9]:[getRangerDir(),_0x5f0846['NwAJu'](getRangerHomeDir)][_0x3320a8(0x10e)]((_0x14b6da,_0x5dff5b,_0x377851)=>_0x377851[_0x3320a8(0x10d)](_0x14b6da)===_0x5dff5b),_0x47696d=_0x9399b0?.['locations']??['ci','local',_0x5f0846[_0x3320a8(0x126)]];for(const _0x2641c5 of _0xd1d95e){const _0x4b22bf=_0x5f0846[_0x3320a8(0x115)](join,_0x2641c5,_0x5f0846[_0x3320a8(0x164)]),_0x46906c=_0x5f0846[_0x3320a8(0x12a)](join,_0x2641c5,'ci'),_0xf14f12=[{'location':'ci','path':join(_0x2641c5,'ci',_0x2499d4)},{'location':'local','path':_0x5f0846[_0x3320a8(0x154)](join,_0x2641c5,_0x5f0846[_0x3320a8(0x164)],_0x2499d4)},{'location':'legacy','path':_0x5f0846[_0x3320a8(0x14f)](join,_0x2641c5,_0x2499d4)}];for(const _0x20420d of _0xf14f12){if(_0x47696d[_0x3320a8(0x127)](_0x20420d[_0x3320a8(0x131)])&&_0x5f0846[_0x3320a8(0x148)](existsSync,_0x20420d['path'])){if(_0x20420d['location']===_0x5f0846['aIgWN']&&(_0x20420d[_0x3320a8(0x11f)]===_0x4b22bf||_0x20420d['path']===_0x46906c)&&!_0x5f0846['AWmsr'](hasLegacyProfileFiles,_0x20420d[_0x3320a8(0x11f)]))continue;return{'path':_0x20420d[_0x3320a8(0x11f)],'location':_0x20420d['location']};}}}return null;}function _0x1946(_0x4d91fa,_0x6e95bd){_0x4d91fa=_0x4d91fa-0x106;const _0x429783=_0x4297();let _0x194602=_0x429783[_0x4d91fa];return _0x194602;}function hasLegacyProfileFiles(_0x3b30a9){const _0x3fe980=_0x1946,_0x4bb3ad={'RtLDR':function(_0x52d868,_0xf17d2f,_0x33f489){return _0x52d868(_0xf17d2f,_0x33f489);},'AgTgz':'settings.json','DeTyY':'auth.json','BsPXf':'auth.json.enc'};return existsSync(_0x4bb3ad['RtLDR'](join,_0x3b30a9,_0x4bb3ad['AgTgz']))||existsSync(join(_0x3b30a9,_0x4bb3ad[_0x3fe980(0x132)]))||existsSync(join(_0x3b30a9,_0x4bb3ad[_0x3fe980(0x13a)]));}export function isEnvCi(_0x42403c){const _0x340964=_0x1946,_0x3772d1={'DHFOP':function(_0x498f97,_0x55005a,_0x52e5fd,_0x3094ec){return _0x498f97(_0x55005a,_0x52e5fd,_0x3094ec);},'tEVSf':function(_0x5068b6,_0x1b0045){return _0x5068b6!==_0x1b0045;},'vCzXD':function(_0x321803,_0x644365){return _0x321803(_0x644365);}};if(existsSync(_0x3772d1['DHFOP'](join,getRangerDir(),'ci',_0x42403c)))return!![];const _0x32b340=getRangerHomeDir();if(_0x3772d1[_0x340964(0x13f)](_0x32b340,getRangerDir())&&_0x3772d1['vCzXD'](existsSync,join(_0x32b340,'ci',_0x42403c)))return!![];return![];}export async function cleanupTempFiles(_0x90992a){const _0x1e9dae=_0x1946,_0x4eccf4=[_0x90992a['tempAuthPath'],_0x90992a['configPath']][_0x1e9dae(0x10e)](Boolean);await Promise[_0x1e9dae(0x173)](_0x4eccf4['map'](_0x361e42=>unlink(_0x361e42)['catch'](_0x5019f5=>{const _0x106238=_0x1e9dae;_0x5019f5[_0x106238(0x142)]!=='ENOENT'&&console[_0x106238(0x170)](_0x106238(0x13d)+_0x361e42+':',_0x5019f5['message']);})));}export function getSettingsPath(_0x1edb88){return join(getEnvDir(_0x1edb88),'settings.json');}export async function loadSettings(_0x40cf53){const _0x1b2737=_0x1946,_0x5e6dbf={'peurZ':function(_0x17fa69,_0x2e9870){return _0x17fa69(_0x2e9870);},'buXGY':function(_0x240bb4,_0x11ba53,_0x2f02b1){return _0x240bb4(_0x11ba53,_0x2f02b1);},'cfwuI':_0x1b2737(0x146)},_0x61d93b=getSettingsPath(_0x40cf53);if(!_0x5e6dbf[_0x1b2737(0x16b)](existsSync,_0x61d93b))return{};try{const _0x2bb401=await _0x5e6dbf['buXGY'](readFile,_0x61d93b,_0x5e6dbf[_0x1b2737(0x114)]);return JSON['parse'](_0x2bb401);}catch{return{};}}function _0x4297(){const _0x549238=['ZFwdu','utf-8','stringify','AWmsr','xRWRL','contextOptions','4891696YPpNqU','tabs','TcTNq','NiFqM','cObMt','15651uywFnI','58878QdBJex','storageState','pXwgy','PbBGB','REOIA','--disable-setuid-sandbox','oGhxg','userAgent','570LnaxwO','extraHTTPHeaders','getuid','cdpEndpoint','atnpL','Environment\x20variable\x20','stagehand','axksy','xHRvL','btwPF','chromium','UxtEk','spaYQ','now','entries','--unsafely-treat-insecure-origin-as-secure=http://localhost','-cli','142nwNLrm','peurZ','oYUZt','1530NHMUpv','headers','ooNjI','warn','--no-sandbox','.json','all','string','install','LfidW','--disable-web-security','replace','BosNi','SIPHQ','PSkGI','safeMode','indexOf','filter','npGfe','repeat','catch','yYEcs','DbwJE','cfwuI','TmAcj','vision','sessions','lHkDH','map','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','message','legacy','length','ignoreHTTPSErrors','path','19790IEskhg','965560YtSXfL','pGnjK','QNPEL','Failed\x20to\x20decrypt\x20auth\x20state:\x20','object','aIgWN','includes','args','--allow-insecure-localhost','HOAcH','3316134YbFsmE','push','ranger-auth-','boolean','DfOvs','IXJbg','location','DeTyY','YdDFC','WoDAM','env','4872679CPLZud','AfYxZ','local','jiElb','BsPXf','mHSDf','isArray','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','headless','tEVSf','split','vcApQ','code','join','DnJdM'];_0x4297=function(){return _0x549238;};return _0x4297();}export async function saveSettings(_0x393edd,_0xe0ae49){const _0x4b29b6=_0x1946,_0x9a0808={'npGfe':function(_0x24faab,_0x2b4c76){return _0x24faab(_0x2b4c76);},'bmVKl':function(_0x39ab2c,_0x375329){return _0x39ab2c(_0x375329);}},_0x570b7e=_0x9a0808[_0x4b29b6(0x10f)](getSettingsPath,_0x393edd),_0x19bdb9=_0x9a0808['bmVKl'](dirname,_0x570b7e);!existsSync(_0x19bdb9)&&await mkdir(_0x19bdb9,{'recursive':!![]}),await writeFile(_0x570b7e,JSON['stringify'](_0xe0ae49,null,0x2));}export function resolveEnvVars(_0x13dc1a){const _0x5c1780=_0x1946,_0x5cc100={'DKvBt':function(_0x4553b1,_0x440b5a){return _0x4553b1===_0x440b5a;},'atnpL':function(_0x252106,_0x260e83){return _0x252106===_0x260e83;},'JXQTB':'object'};if(typeof _0x13dc1a===_0x5c1780(0x174))return _0x13dc1a[_0x5c1780(0x108)](/\$\{(\w+)\}/g,(_0xf94331,_0x3681a0)=>{const _0x3886ef=_0x5c1780,_0x7a9933=process[_0x3886ef(0x135)][_0x3681a0];if(_0x5cc100['DKvBt'](_0x7a9933,undefined))throw new Error(_0x3886ef(0x15e)+_0x3681a0+'\x20is\x20not\x20set');return _0x7a9933;});if(Array['isArray'](_0x13dc1a))return _0x13dc1a[_0x5c1780(0x119)](resolveEnvVars);if(_0x13dc1a&&_0x5cc100[_0x5c1780(0x15d)](typeof _0x13dc1a,_0x5cc100['JXQTB']))return Object['fromEntries'](Object[_0x5c1780(0x167)](_0x13dc1a)[_0x5c1780(0x119)](([_0x1647d7,_0x27c1dd])=>[_0x1647d7,resolveEnvVars(_0x27c1dd)]));return _0x13dc1a;}const isRecord=_0x28b9db=>typeof _0x28b9db==='object'&&_0x28b9db!==null&&!Array[_0x54c121(0x13c)](_0x28b9db),asRecord=_0x41032a=>isRecord(_0x41032a)?_0x41032a:undefined,mergeHeaders=(_0x2455e9,_0x3c1319)=>{const _0x3bdf45=_0x54c121,_0x1035aa={'SVNOI':function(_0x16fcf5,_0x45ce4d){return _0x16fcf5??_0x45ce4d;},'mHSDf':function(_0x51d263,_0x263ba9){return _0x51d263??_0x263ba9;}},_0xc273d0={..._0x1035aa['SVNOI'](_0x2455e9,{}),..._0x1035aa[_0x3bdf45(0x13b)](_0x3c1319,{})};return Object['keys'](_0xc273d0)[_0x3bdf45(0x11d)]?_0xc273d0:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x54c121(0x107),'--allow-running-insecure-content',_0x54c121(0x168),_0x54c121(0x129)];export function buildBrowserOptionsFromSettings(_0x12a5b6,_0x2b7554={}){const _0x2473a6=_0x54c121,_0x577ec1={'TcTNq':function(_0x4050f0,_0x3fa738){return _0x4050f0(_0x3fa738);},'xRWRL':function(_0x50d085,_0x100ec9){return _0x50d085(_0x100ec9);},'oGhxg':'string','oYUZt':function(_0x572ca9,_0x5eb545,_0x59ceb5){return _0x572ca9(_0x5eb545,_0x59ceb5);},'axksy':function(_0x14e8a3,_0x4a4f96){return _0x14e8a3(_0x4a4f96);}},_0x2e12c8=_0x577ec1[_0x2473a6(0x14d)](asRecord,_0x12a5b6['browser']),_0x11555b={...asRecord(_0x2e12c8?.['launchOptions'])??{}};typeof _0x2b7554['headless']===_0x2473a6(0x12e)&&(_0x11555b['headless']=_0x2b7554[_0x2473a6(0x13e)]);if(_0x12a5b6[_0x2473a6(0x10c)]){const _0x3e1b3d=_0x11555b[_0x2473a6(0x128)]??[],_0xaa8347=SAFE_MODE_ARGS['filter'](_0x4ccaeb=>!_0x3e1b3d['includes'](_0x4ccaeb));_0x11555b[_0x2473a6(0x128)]=[..._0x3e1b3d,..._0xaa8347];}if(_0x12a5b6['allowInsecureLocalhost']){const _0x5b4ae8=_0x11555b['args']??[],_0x6fcdf5=ALLOW_LOCALHOST_ARGS['filter'](_0x39b249=>!_0x5b4ae8[_0x2473a6(0x127)](_0x39b249));_0x11555b[_0x2473a6(0x128)]=[..._0x5b4ae8,..._0x6fcdf5];}const _0x4c0fe2={..._0x577ec1[_0x2473a6(0x149)](asRecord,_0x2e12c8?.['contextOptions'])??{}};_0x4c0fe2[_0x2473a6(0x11e)]=!![];typeof _0x12a5b6[_0x2473a6(0x158)]===_0x577ec1[_0x2473a6(0x157)]&&(_0x4c0fe2[_0x2473a6(0x158)]=_0x12a5b6['userAgent']);const _0x2e6822=_0x577ec1[_0x2473a6(0x16c)](mergeHeaders,_0x577ec1[_0x2473a6(0x160)](asRecord,_0x4c0fe2[_0x2473a6(0x15a)]),asRecord(_0x12a5b6[_0x2473a6(0x16e)]));return _0x2e6822?_0x4c0fe2[_0x2473a6(0x15a)]=_0x2e6822:delete _0x4c0fe2['extraHTTPHeaders'],_0x2b7554['storageStatePath']&&(_0x4c0fe2[_0x2473a6(0x152)]=_0x2b7554['storageStatePath']),{'launchOptions':_0x11555b,'contextOptions':_0x4c0fe2};}async function resolveLocalAuthPath(_0x51a109){const _0x53a2fa=_0x54c121,_0x21df50={'xHRvL':'auth.json','BhkmA':function(_0x331c24){return _0x331c24();},'pCWkA':_0x53a2fa(0x11a),'JjClm':function(_0x55849d,_0x4afe61,_0x271e9a){return _0x55849d(_0x4afe61,_0x271e9a);},'QiRyb':function(_0x16db9,_0x2ef6b6){return _0x16db9 instanceof _0x2ef6b6;},'btwPF':function(_0x568bc8,_0x22ddf7){return _0x568bc8(_0x22ddf7);}},_0x2aafe8=join(_0x51a109,'auth.json.enc'),_0x2536ed=join(_0x51a109,_0x21df50[_0x53a2fa(0x161)]);if(existsSync(_0x2aafe8))try{const _0xb70f9f=await _0x21df50['BhkmA'](getToken);if(!_0xb70f9f)throw new Error(_0x21df50['pCWkA']);const _0x53f233=await readFile(_0x2aafe8),_0x57d6fb=decrypt(_0x53f233,_0xb70f9f),_0x4b61eb=join(tmpdir(),_0x53a2fa(0x12d)+Date[_0x53a2fa(0x166)]()+'.json');return await _0x21df50['JjClm'](writeFile,_0x4b61eb,_0x57d6fb),{'storageStatePath':_0x4b61eb,'tempAuthPath':_0x4b61eb};}catch(_0x4e1406){const _0x5966a5=_0x21df50['QiRyb'](_0x4e1406,Error)?_0x4e1406[_0x53a2fa(0x11b)]:String(_0x4e1406);throw new Error(_0x53a2fa(0x124)+_0x5966a5);}if(_0x21df50[_0x53a2fa(0x162)](existsSync,_0x2536ed))return{'storageStatePath':_0x2536ed};return{};}export async function buildPlaywrightConfig(_0x5d0a3c,_0x233bfe,_0x2a8026,_0x41b7e8,_0xa7669e){const _0x419dde=_0x54c121,_0x25ea2e={'jiElb':'stagehand','vefDg':function(_0x10f136,_0x1e4cc3){return _0x10f136(_0x1e4cc3);}};if(_0xa7669e)return buildPlaywrightConfigCore(_0x5d0a3c,_0xa7669e,_0x233bfe,_0x2a8026,_0x41b7e8,_0x25ea2e['jiElb']);const {storageStatePath:_0x446308,tempAuthPath:_0x4210a5}=await resolveLocalAuthPath(_0x25ea2e['vefDg'](getEnvDir,_0x233bfe));try{const _0x203429=await buildPlaywrightConfigCore(_0x5d0a3c,_0x446308,_0x233bfe,_0x2a8026,_0x41b7e8,_0x25ea2e[_0x419dde(0x139)]);return{..._0x203429,'tempAuthPath':_0x4210a5};}catch(_0x4b72cd){_0x4210a5&&await unlink(_0x4210a5)['catch'](()=>{});throw _0x4b72cd;}}export async function buildPlaywrightConfigCore(_0x807e9c,_0x37608f,_0x41dbfd,_0x15b4a4,_0x302e48,_0x5dd429=_0x54c121(0x15f)){const _0x238642=_0x54c121,_0xe8a691={'mWcQV':function(_0x6202fc,_0x48d652,_0x4b3f16){return _0x6202fc(_0x48d652,_0x4b3f16);},'pXwgy':_0x238642(0x156),'YdDFC':_0x238642(0x163),'DbwJE':'clipboard-read','mjEYd':'clipboard-write','SIPHQ':'file','UjMNO':'none','XOEvv':'pdf','bvPaw':_0x238642(0x116),'LfidW':'allow','bauJo':function(_0xfdc883,_0x202d0d){return _0xfdc883===_0x202d0d;},'BosNi':'ranger-config','LNNTv':function(_0x1e1127,_0x43f17c){return _0x1e1127(_0x43f17c);},'lHkDH':function(_0x4f27ad,_0x308470,_0x2648d2){return _0x4f27ad(_0x308470,_0x2648d2);},'REOIA':function(_0x5c0a58,_0x3f9216){return _0x5c0a58===_0x3f9216;},'ugmnW':_0x238642(0x169),'QNPEL':function(_0x520196,_0x32ab5c,_0x1a1424){return _0x520196(_0x32ab5c,_0x1a1424);},'vzcEd':function(_0x2237d1,_0x3d9098,_0x16d6b7){return _0x2237d1(_0x3d9098,_0x16d6b7);}},_0x3db241=_0x15b4a4||randomUUID(),_0x5955de=join(getRangerDir(),_0x238642(0x117),_0x3db241),_0xd2c45a=Boolean(_0x807e9c[_0x238642(0x15c)]),_0x3cc9b5=_0xd2c45a?{'browserName':_0xe8a691['YdDFC'],'cdpEndpoint':_0x807e9c[_0x238642(0x15c)]}:((()=>{const _0x2c924d=_0x238642,{launchOptions:_0x402a78,contextOptions:_0x24c75f}=_0xe8a691['mWcQV'](buildBrowserOptionsFromSettings,_0x807e9c,{'headless':_0x302e48?![]:_0x807e9c[_0x2c924d(0x13e)]??!![],'storageStatePath':_0x37608f});if(process[_0x2c924d(0x15b)]?.()===0x0){const _0x5ead25=[_0x2c924d(0x171),_0xe8a691[_0x2c924d(0x153)]],_0x134bb1=_0x402a78[_0x2c924d(0x128)]??[],_0x2b889a=_0x5ead25['filter'](_0xd3e253=>!_0x134bb1[_0x2c924d(0x127)](_0xd3e253));_0x402a78['args']=[..._0x134bb1,..._0x2b889a];}return{'isolated':!![],'browserName':_0xe8a691[_0x2c924d(0x133)],'launchOptions':_0x402a78,'contextOptions':{..._0x24c75f,'permissions':[_0xe8a691[_0x2c924d(0x113)],_0xe8a691['mjEYd']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x435fd5=_0x5dd429==='playwright-cli'?{'browser':_0x3cc9b5,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5955de,'outputMode':_0xe8a691[_0x238642(0x10a)],'codegen':_0xe8a691['UjMNO']}:{'name':_0x41dbfd,'browser':_0x3cc9b5,'capabilities':['core',_0x238642(0x14c),_0x238642(0x175),_0xe8a691['XOEvv'],_0xe8a691['bvPaw']],'imageResponses':_0xe8a691[_0x238642(0x106)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5955de};if(!_0xd2c45a){const _0x3f4556=_0x435fd5['browser'],_0xfc976a=_0x3f4556[_0x238642(0x14a)];if(_0xe8a691['bauJo'](_0xfc976a['userAgent'],undefined))delete _0xfc976a[_0x238642(0x158)];if(_0xfc976a['storageState']===undefined)delete _0xfc976a['storageState'];}const _0x5832d4=join(tmpdir(),_0xe8a691[_0x238642(0x109)]);!_0xe8a691['LNNTv'](existsSync,_0x5832d4)&&await _0xe8a691[_0x238642(0x118)](mkdir,_0x5832d4,{'recursive':!![]});const _0x3285fd=_0xe8a691[_0x238642(0x155)](_0x5dd429,'playwright-cli')?_0xe8a691['ugmnW']:'',_0xdc6358=_0xe8a691[_0x238642(0x123)](join,_0x5832d4,_0x41dbfd+'-'+Date[_0x238642(0x166)]()+_0x3285fd+_0x238642(0x172));return await _0xe8a691['vzcEd'](writeFile,_0xdc6358,JSON[_0x238642(0x147)](_0x435fd5,null,0x2)),{'configPath':_0xdc6358};}export async function buildPlaywrightCliConfig(_0x115c71,_0x4d00ed,_0x16b1db,_0x30e299,_0x1304cd){const _0xe594d9=_0x54c121,_0x55835a={'NiFqM':function(_0x3c7aa2,_0xa2237b,_0xb5a2b5,_0x4a327d,_0x3c9537,_0x11e27f,_0x2fc918){return _0x3c7aa2(_0xa2237b,_0xb5a2b5,_0x4a327d,_0x3c9537,_0x11e27f,_0x2fc918);},'spaYQ':function(_0x3f21c4,_0x5dbbba){return _0x3f21c4(_0x5dbbba);}};if(_0x1304cd)return _0x55835a[_0xe594d9(0x14e)](buildPlaywrightConfigCore,_0x115c71,_0x1304cd,_0x4d00ed,_0x16b1db,_0x30e299,'playwright-cli');const {storageStatePath:_0x3863ff,tempAuthPath:_0x1f16df}=await _0x55835a[_0xe594d9(0x165)](resolveLocalAuthPath,getEnvDir(_0x4d00ed));try{const _0x4e92c7=await buildPlaywrightConfigCore(_0x115c71,_0x3863ff,_0x4d00ed,_0x16b1db,_0x30e299,'playwright-cli');return{..._0x4e92c7,'tempAuthPath':_0x1f16df};}catch(_0xe6a4ff){_0x1f16df&&await unlink(_0x1f16df)[_0xe594d9(0x111)](()=>{});throw _0xe6a4ff;}}export function getNestedValue(_0xd9325b,_0x4b8a39){const _0x1acecb=_0x54c121,_0x44cadb={'SkeGb':function(_0x3ee23b,_0x1a5461){return _0x3ee23b(_0x1a5461);},'IXJbg':_0x1acecb(0x125)},_0x23904a=_0x44cadb['SkeGb'](parseKeyPath,_0x4b8a39);let _0x57ca25=_0xd9325b;for(const _0x21a32d of _0x23904a){if(_0x57ca25===null||_0x57ca25===undefined||typeof _0x57ca25!==_0x44cadb[_0x1acecb(0x130)])return undefined;_0x57ca25=_0x57ca25[_0x21a32d];}return _0x57ca25;}export function setNestedValue(_0x29b9a5,_0xb2b30b,_0x42f5ae){const _0x32de18=_0x54c121,_0x6bc559={'nQBzW':function(_0x30142b,_0x472cb){return _0x30142b<_0x472cb;},'vcApQ':function(_0x58e3a3,_0x1695d1){return _0x58e3a3-_0x1695d1;},'ooNjI':function(_0x5de50d,_0xce52b8){return _0x5de50d in _0xce52b8;},'AfYxZ':function(_0x31f36b,_0x3a34c3){return _0x31f36b!==_0x3a34c3;},'PSkGI':_0x32de18(0x125)},_0x35c7c3=parseKeyPath(_0xb2b30b);let _0x1844d0=_0x29b9a5;for(let _0x312ad2=0x0;_0x6bc559['nQBzW'](_0x312ad2,_0x6bc559[_0x32de18(0x141)](_0x35c7c3[_0x32de18(0x11d)],0x1));_0x312ad2++){const _0x20156b=_0x35c7c3[_0x312ad2];(!_0x6bc559[_0x32de18(0x16f)](_0x20156b,_0x1844d0)||_0x6bc559[_0x32de18(0x137)](typeof _0x1844d0[_0x20156b],_0x6bc559[_0x32de18(0x10b)]))&&(_0x1844d0[_0x20156b]={}),_0x1844d0=_0x1844d0[_0x20156b];}_0x1844d0[_0x35c7c3[_0x35c7c3['length']-0x1]]=_0x42f5ae;}export function deleteNestedValue(_0x2fc6dd,_0x339e93){const _0x187f7b=_0x54c121,_0x2b8500={'WoDAM':function(_0x123d57,_0xaaf5f3){return _0x123d57-_0xaaf5f3;},'ZFwdu':function(_0x16b634,_0x4fac2b){return _0x16b634===_0x4fac2b;},'DnJdM':function(_0x19a229,_0x5bdcbf){return _0x19a229===_0x5bdcbf;},'kbPsn':function(_0x192232,_0x345dbe){return _0x192232 in _0x345dbe;}},_0x36ea8b=parseKeyPath(_0x339e93);let _0x2aede3=_0x2fc6dd;for(let _0x13a884=0x0;_0x13a884<_0x2b8500['WoDAM'](_0x36ea8b[_0x187f7b(0x11d)],0x1);_0x13a884++){if(_0x2b8500['ZFwdu'](_0x2aede3,null)||_0x2aede3===undefined||typeof _0x2aede3!=='object')return![];_0x2aede3=_0x2aede3[_0x36ea8b[_0x13a884]];}if(_0x2b8500[_0x187f7b(0x145)](_0x2aede3,null)||_0x2b8500[_0x187f7b(0x144)](_0x2aede3,undefined)||typeof _0x2aede3!=='object')return![];const _0x4dd2bc=_0x36ea8b[_0x2b8500[_0x187f7b(0x134)](_0x36ea8b['length'],0x1)];if(_0x2b8500['kbPsn'](_0x4dd2bc,_0x2aede3))return delete _0x2aede3[_0x4dd2bc],!![];return![];}function parseKeyPath(_0x55ecb4){const _0x54cdfe=_0x54c121,_0xc1323e={'nHVab':function(_0x1f10a6,_0x33d443){return _0x1f10a6===_0x33d443;},'iQVeV':function(_0x2dfbe2,_0x25b7e7){return _0x2dfbe2===_0x25b7e7;},'ptpmJ':'setupHeaders'},_0x19590c=_0x55ecb4[_0x54cdfe(0x140)]('.');return _0xc1323e['nHVab'](_0x19590c[0x0],'header')&&(_0x19590c[0x0]='headers'),_0xc1323e['iQVeV'](_0x19590c[0x0],'setupHeader')&&(_0x19590c[0x0]=_0xc1323e['ptpmJ']),_0x19590c;}export function formatSettings(_0x2ce45a,_0x25b82f=0x0){const _0x370124=_0x54c121,_0x2c193a={'DfOvs':function(_0x1ca778,_0x2c5fe6){return _0x1ca778!==_0x2c5fe6;}},_0x3fdcd1=[],_0xe31726='\x20\x20'[_0x370124(0x110)](_0x25b82f);for(const [_0x1f65a7,_0x3449f9]of Object[_0x370124(0x167)](_0x2ce45a)){if(_0x3449f9===undefined)continue;if(typeof _0x3449f9===_0x370124(0x125)&&_0x2c193a[_0x370124(0x12f)](_0x3449f9,null)){_0x3fdcd1['push'](''+_0xe31726+_0x1f65a7+':');for(const [_0x32958c,_0x1cff52]of Object[_0x370124(0x167)](_0x3449f9)){_0x3fdcd1['push'](_0xe31726+'\x20\x20'+_0x32958c+':\x20'+_0x1cff52);}}else _0x3fdcd1[_0x370124(0x12c)](''+_0xe31726+_0x1f65a7+':\x20'+_0x3449f9);}return _0x3fdcd1[_0x370124(0x143)]('\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),![];}}
|