@ranger-testing/ranger-cli 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x47c02a=_0x414c;(function(_0x3e6a46,_0x24af7f){const _0x3f0e3f=_0x414c,_0x516b06=_0x3e6a46();while(!![]){try{const _0x347642=parseInt(_0x3f0e3f(0x13e))/0x1*(-parseInt(_0x3f0e3f(0x112))/0x2)+-parseInt(_0x3f0e3f(0x13f))/0x3+-parseInt(_0x3f0e3f(0x12c))/0x4*(parseInt(_0x3f0e3f(0x140))/0x5)+-parseInt(_0x3f0e3f(0x113))/0x6+parseInt(_0x3f0e3f(0x11f))/0x7*(parseInt(_0x3f0e3f(0x11a))/0x8)+parseInt(_0x3f0e3f(0x137))/0x9*(-parseInt(_0x3f0e3f(0x146))/0xa)+-parseInt(_0x3f0e3f(0x12e))/0xb*(-parseInt(_0x3f0e3f(0x141))/0xc);if(_0x347642===_0x24af7f)break;else _0x516b06['push'](_0x516b06['shift']());}catch(_0x3c1d82){_0x516b06['push'](_0x516b06['shift']());}}}(_0xcdfb,0xd2733));import{spawn}from'child_process';import{createHash}from'crypto';function _0xcdfb(){const _0x364213=['update','tVBev','dkciG','21hEotiJ','env','runhU','@playwright/cli','sessionId','KCeDK','exited\x20with\x20code=','LuZzD','trim','sha256','subcommand','-s=','kill','176egbmol','close','330MyBzsx','timed\x20out\x20after\x20','ryvMF','tELQj','SIGKILL','CWTSs','data','digest','null','54WSNFPE','tEhMZ','--config','npx','join','\x0astdout:\x20','pipe','241viiyod','2522352IJRpIB','97135mNpLru','1077036TgAQrk','string','map','timeoutMs','atFrh','583280yHNBtQ','PuGqY','\x0astderr:\x20','LcJcn','2334kKcrvu','6159114IRxnQN','stderr','ojxwo','match','KIoni','hex','bash_command','4060584lXtYtL','command'];_0xcdfb=function(){return _0x364213;};return _0xcdfb();}export const PLAYWRIGHT_CLI_BINARY=_0x47c02a(0x122);function toPlaywrightCliSessionKey(_0x427faf){const _0x30e671=_0x47c02a,_0x348600=createHash(_0x30e671(0x128))[_0x30e671(0x11c)](_0x427faf)[_0x30e671(0x135)](_0x30e671(0x118))['slice'](0x0,0xc);return'rg-'+_0x348600;}function shellQuote(_0x5d1a74){return'\x27'+_0x5d1a74['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x479961){return SAFE_SHELL_TOKEN['test'](_0x479961)?_0x479961:shellQuote(_0x479961);}export function buildPlaywrightCliInvocation(_0x18e003,_0x5078cd,_0x3a9000){const _0x1bab3a=_0x47c02a,_0x4e9c86={'atFrh':'npx','QYPQy':_0x1bab3a(0x139),'PuGqY':function(_0x539914,_0x544a5b){return _0x539914(_0x544a5b);}},_0x417607=toPlaywrightCliSessionKey(_0x18e003),[_0x58c11d='unknown']=_0x3a9000,_0x59eb3a=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x417607,'--config',_0x5078cd,..._0x3a9000];return{'command':_0x4e9c86[_0x1bab3a(0x145)],'args':_0x59eb3a,'shellCommand':[_0x4e9c86['atFrh'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x417607),_0x4e9c86['QYPQy'],_0x4e9c86[_0x1bab3a(0x147)](quoteShellArg,_0x5078cd),..._0x3a9000[_0x1bab3a(0x143)](quoteShellArg)][_0x1bab3a(0x13b)]('\x20'),'subcommand':_0x58c11d};}function _0x414c(_0x4e2efb,_0x151649){_0x4e2efb=_0x4e2efb-0x111;const _0xcdfbc0=_0xcdfb();let _0x414ca7=_0xcdfbc0[_0x4e2efb];return _0x414ca7;}export function buildPlaywrightCliCommandPrefix(_0x35cf48,_0x5212f1){const _0x2b3c4a=_0x47c02a,_0x582c11={'YuMLc':'--config','tEhMZ':function(_0x4fc85c,_0xda0a74){return _0x4fc85c(_0xda0a74);}},_0x7431d8=toPlaywrightCliSessionKey(_0x35cf48);return[_0x2b3c4a(0x13a),PLAYWRIGHT_CLI_BINARY,_0x2b3c4a(0x12a)+quoteShellArg(_0x7431d8),_0x582c11['YuMLc'],_0x582c11[_0x2b3c4a(0x138)](quoteShellArg,_0x5212f1)][_0x2b3c4a(0x13b)]('\x20');}function truncateOutput(_0x2c84f3,_0x43bcd8=0x7d0){const _0x58ef99={'CwxjQ':function(_0xa56a8a,_0x50220b){return _0xa56a8a>_0x50220b;}};return _0x58ef99['CwxjQ'](_0x2c84f3['length'],_0x43bcd8)?_0x2c84f3['slice'](0x0,_0x43bcd8)+'...':_0x2c84f3;}export async function runPlaywrightCliCommand(_0x1e81ec){const _0x38fc9a=_0x47c02a,_0x1463ef={'naYoy':function(_0x3e238a,_0x3b0779){return _0x3e238a===_0x3b0779;},'UYsyx':function(_0x321d10,_0x53adbb){return _0x321d10??_0x53adbb;},'KCeDK':'null','ryvMF':function(_0x3a8009,_0x18b320,_0x4db60e,_0x38e595){return _0x3a8009(_0x18b320,_0x4db60e,_0x38e595);},'ojxwo':'ignore','runhU':_0x38fc9a(0x13d),'tVBev':'data','dkciG':'error'},_0x5e1b10=buildPlaywrightCliInvocation(_0x1e81ec[_0x38fc9a(0x123)],_0x1e81ec['configPath'],_0x1e81ec['commandArgs']);return new Promise((_0x5101c2,_0x29acde)=>{const _0x17477f=_0x38fc9a,_0x408283={'rojfo':_0x17477f(0x132),'KIoni':'SIGTERM','chpYI':function(_0x53adc1,_0x195736){return _0x53adc1(_0x195736);},'GpMxp':function(_0x36b30b,_0x216d6b){return _0x1463ef['naYoy'](_0x36b30b,_0x216d6b);},'iEUUq':function(_0x4984bf,_0x5a137d){return _0x1463ef['UYsyx'](_0x4984bf,_0x5a137d);},'BmoJm':_0x1463ef[_0x17477f(0x124)]},_0x1109b2=_0x1463ef[_0x17477f(0x130)](spawn,_0x5e1b10['command'],_0x5e1b10['args'],{'cwd':_0x1e81ec['cwd'],'env':_0x1e81ec[_0x17477f(0x120)],'stdio':[_0x1463ef[_0x17477f(0x115)],_0x1463ef['runhU'],_0x1463ef[_0x17477f(0x121)]]});let _0x2ecc5f='',_0x176f99='',_0x1e8b1c=![];const _0x37d6ab=_0x1e81ec[_0x17477f(0x144)]&&_0x1e81ec['timeoutMs']>0x0?setTimeout(()=>{const _0x205bc5=_0x17477f,_0x5e996c={'ecnaB':_0x408283['rojfo']};_0x1e8b1c=!![],_0x1109b2[_0x205bc5(0x12b)](_0x408283[_0x205bc5(0x117)]),setTimeout(()=>{const _0x696988=_0x205bc5;try{_0x1109b2[_0x696988(0x12b)](_0x5e996c['ecnaB']);}catch{}},0x3e8);},_0x1e81ec[_0x17477f(0x144)]):null;_0x1109b2['stdout']?.['on'](_0x17477f(0x134),_0x402a79=>{_0x2ecc5f+=_0x402a79['toString']();}),_0x1109b2[_0x17477f(0x114)]?.['on'](_0x1463ef[_0x17477f(0x11d)],_0x153a01=>{_0x176f99+=_0x153a01['toString']();}),_0x1109b2['on'](_0x1463ef[_0x17477f(0x11e)],_0x5ad7f5=>{if(_0x37d6ab)clearTimeout(_0x37d6ab);_0x408283['chpYI'](_0x29acde,_0x5ad7f5);}),_0x1109b2['on'](_0x17477f(0x12d),(_0x257068,_0x483576)=>{const _0x3ba3c2=_0x17477f;if(_0x37d6ab)clearTimeout(_0x37d6ab);if(_0x408283['GpMxp'](_0x257068,0x0)){_0x5101c2({'stdout':_0x2ecc5f,'stderr':_0x176f99,'invocation':_0x5e1b10});return;}const _0x33f824=_0x1e8b1c?_0x3ba3c2(0x12f)+_0x1e81ec[_0x3ba3c2(0x144)]+'ms':_0x3ba3c2(0x125)+(_0x257068??_0x3ba3c2(0x136))+'\x20signal='+_0x408283['iEUUq'](_0x483576,_0x408283['BmoJm']);_0x29acde(new Error('playwright-cli\x20'+_0x5e1b10[_0x3ba3c2(0x129)]+'\x20'+_0x33f824+_0x3ba3c2(0x13c)+truncateOutput(_0x2ecc5f)+_0x3ba3c2(0x148)+truncateOutput(_0x176f99)));});});}export function extractBashCommand(_0x536dac){const _0x2409b=_0x47c02a,_0x261ac7={'tELQj':_0x2409b(0x11b),'LuZzD':'cmd','CWTSs':function(_0x1b781a,_0x803ff4){return _0x1b781a===_0x803ff4;},'PNAtA':_0x2409b(0x142),'LcJcn':function(_0x10a329,_0x3844e8){return _0x10a329??_0x3844e8;}},_0x3d15b2=[_0x261ac7[_0x2409b(0x131)],_0x261ac7[_0x2409b(0x126)],'script',_0x2409b(0x119)];for(const _0x4270f6 of _0x3d15b2){const _0x26741e=_0x536dac[_0x4270f6];if(_0x261ac7[_0x2409b(0x133)](typeof _0x26741e,_0x261ac7['PNAtA'])&&_0x26741e[_0x2409b(0x127)]())return _0x26741e;}const _0x4a6e53=Object['values'](_0x536dac)['find'](_0x558f5c=>typeof _0x558f5c===_0x2409b(0x142)&&_0x558f5c[_0x2409b(0x127)]()['length']>0x0);return _0x261ac7[_0x2409b(0x111)](_0x4a6e53,null);}export function parsePlaywrightCliCommand(_0x31d453){const _0xe31468=_0x47c02a,_0x4c4e5f=_0x31d453[_0xe31468(0x116)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4c4e5f?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2ca3(){const _0x2389d8=['6MPwrPv','417aQyYWb','8446bUpWLF','1120708hGGgoF','7279024Lwpyct','8321705DRkDif','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','4381610kHfkag','585390jckbHc','ranger\x20profile\x20add\x20local','1663074WYajqF'];_0x2ca3=function(){return _0x2389d8;};return _0x2ca3();}const _0x29c153=_0x5813;(function(_0x12feb7,_0x36e9ae){const _0x1ffe9a=_0x5813,_0x22920f=_0x12feb7();while(!![]){try{const _0x285d78=parseInt(_0x1ffe9a(0x71))/0x1+-parseInt(_0x1ffe9a(0x76))/0x2*(parseInt(_0x1ffe9a(0x75))/0x3)+parseInt(_0x1ffe9a(0x6c))/0x4+parseInt(_0x1ffe9a(0x70))/0x5+parseInt(_0x1ffe9a(0x74))/0x6*(-parseInt(_0x1ffe9a(0x6e))/0x7)+parseInt(_0x1ffe9a(0x6d))/0x8+-parseInt(_0x1ffe9a(0x73))/0x9;if(_0x285d78===_0x36e9ae)break;else _0x22920f['push'](_0x22920f['shift']());}catch(_0xf6952f){_0x22920f['push'](_0x22920f['shift']());}}}(_0x2ca3,0xa8be1));function _0x5813(_0x92d4f3,_0xb474ef){_0x92d4f3=_0x92d4f3-0x6c;const _0x2ca3b1=_0x2ca3();let _0x5813d1=_0x2ca3b1[_0x92d4f3];return _0x5813d1;}const DEFAULT_PROFILE_COMMAND=_0x29c153(0x72);export function formatProfileRequiredMessage(_0x105a91){const _0x142e86=_0x29c153,_0x3391ae={'xoeJV':function(_0x519300,_0x306695){return _0x519300(_0x306695);}},_0x337416=_0x105a91?_0x3391ae['xoeJV'](_0x105a91,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x142e86(0x6f)+_0x337416+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x11dd(){const _0x68571a=['stringify','104pMgugp','5504202vonLvq','887392wiNstv','15174XbwvCv','157146LYrPSZ','477568DYfhri','1252368frsOdX','FCqIM','1500dYesZW','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','5VgZcnS','\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','hueAd','154aFrlcy','165498NrOODn','</div>','<div\x20class=\x22ranger-banner__message\x22>','addInitScript','GJqKA'];_0x11dd=function(){return _0x68571a;};return _0x11dd();}(function(_0x3cb371,_0x2ebcbc){const _0x4d4656=_0x2003,_0x305cc9=_0x3cb371();while(!![]){try{const _0x2f883c=parseInt(_0x4d4656(0x154))/0x1+-parseInt(_0x4d4656(0x153))/0x2*(parseInt(_0x4d4656(0x149))/0x3)+parseInt(_0x4d4656(0x148))/0x4+-parseInt(_0x4d4656(0x150))/0x5*(parseInt(_0x4d4656(0x15b))/0x6)+-parseInt(_0x4d4656(0x14b))/0x7*(parseInt(_0x4d4656(0x15a))/0x8)+parseInt(_0x4d4656(0x14c))/0x9+-parseInt(_0x4d4656(0x14e))/0xa*(-parseInt(_0x4d4656(0x14a))/0xb);if(_0x2f883c===_0x2ebcbc)break;else _0x305cc9['push'](_0x305cc9['shift']());}catch(_0x48d5f5){_0x305cc9['push'](_0x305cc9['shift']());}}}(_0x11dd,0x74205));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x230c01=_0x2003,_0x36fd75={'hueAd':function(_0x303d96,_0x86eab3){return _0x303d96+_0x86eab3;},'CzGwI':function(_0x3b303a,_0x37b361){return _0x3b303a+_0x37b361;},'FCqIM':'<div\x20class=\x22ranger-banner__content\x22>','GJqKA':_0x230c01(0x156)},_0x90a71f=_0x36fd75[_0x230c01(0x152)](_0x36fd75['CzGwI'](_0x36fd75[_0x230c01(0x14d)]+'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>',_0x36fd75[_0x230c01(0x158)])+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',_0x230c01(0x14f))+_0x230c01(0x155)+'</div>'+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x20440f='\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';return _0x230c01(0x151)+JSON[_0x230c01(0x159)](_0x90a71f)+';\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'](_0x20440f)+';\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;}function _0x2003(_0x2e0dc4,_0x338297){_0x2e0dc4=_0x2e0dc4-0x148;const _0x11dd37=_0x11dd();let _0x200364=_0x11dd37[_0x2e0dc4];return _0x200364;}export async function addProfileSetupBanner(_0x5081b2){const _0x22d250=_0x2003;await _0x5081b2[_0x22d250(0x157)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27e45b,_0x341bf8){const _0x564191=_0x267b,_0x3c1c8e=_0x27e45b();while(!![]){try{const _0x3ecf1d=-parseInt(_0x564191(0xf0))/0x1+parseInt(_0x564191(0xf2))/0x2+parseInt(_0x564191(0xf5))/0x3*(parseInt(_0x564191(0xfb))/0x4)+parseInt(_0x564191(0xf6))/0x5+parseInt(_0x564191(0xfd))/0x6+parseInt(_0x564191(0x100))/0x7*(parseInt(_0x564191(0xfc))/0x8)+parseInt(_0x564191(0xff))/0x9*(-parseInt(_0x564191(0xf8))/0xa);if(_0x3ecf1d===_0x341bf8)break;else _0x3c1c8e['push'](_0x3c1c8e['shift']());}catch(_0x569df6){_0x3c1c8e['push'](_0x3c1c8e['shift']());}}}(_0x36d3,0x8d7f5));function _0x36d3(){const _0xef55d1=['326396VLKbAf','pwYca','config.json','isArray','4963RdIYsD','VOLoh','275258RydrUP','object','warn','31422PwRkuD','4308720jzfkpr','model','10grjDnY','ddXux','parse','56fUJifg','8ejVkDC','1563948LRGHfg','RkLje','7818831HQkcAI'];_0x36d3=function(){return _0xef55d1;};return _0x36d3();}import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x267b(_0x500206,_0x1af63e){_0x500206=_0x500206-0xee;const _0x36d340=_0x36d3();let _0x267b19=_0x36d340[_0x500206];return _0x267b19;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x45c76e=_0x267b,_0x1e40b9={'eqmeN':function(_0x37550e,_0x2944f0,_0x3b03d0){return _0x37550e(_0x2944f0,_0x3b03d0);}};return _0x1e40b9['eqmeN'](join,getRangerDir(),_0x45c76e(0xee));}export async function loadRangerConfig(){const _0x12e289=_0x267b,_0x2b0ec1={'rkZoI':function(_0x4baec0){return _0x4baec0();},'ddXux':function(_0xcdf2bb,_0xcf22af){return _0xcdf2bb(_0xcf22af);},'JLjXF':function(_0x324da5,_0x45a62d,_0x479b3b){return _0x324da5(_0x45a62d,_0x479b3b);},'CLzSg':function(_0x5e1912,_0x2a64e4){return _0x5e1912!==_0x2a64e4;},'gXHbo':_0x12e289(0xf3),'RkLje':function(_0x5a61cf,_0x325973){return _0x5a61cf===_0x325973;},'VOLoh':function(_0x2415f2,_0x45499c){return _0x2415f2 instanceof _0x45499c;},'pwYca':function(_0x3afa67,_0x3d86c8){return _0x3afa67(_0x3d86c8);}},_0x523d89=_0x2b0ec1['rkZoI'](getRangerConfigPath);if(!_0x2b0ec1[_0x12e289(0xf9)](existsSync,_0x523d89))return{};try{const _0x476b1c=await _0x2b0ec1['JLjXF'](readFile,_0x523d89,'utf-8'),_0x1610de=JSON[_0x12e289(0xfa)](_0x476b1c);if(!_0x1610de||_0x2b0ec1['CLzSg'](typeof _0x1610de,_0x2b0ec1['gXHbo'])||Array[_0x12e289(0xef)](_0x1610de))return{};const _0x58f47d={},_0x378ce8=_0x1610de['model'];return _0x2b0ec1[_0x12e289(0xfe)](typeof _0x378ce8,'string')&&(_0x58f47d[_0x12e289(0xf7)]=_0x378ce8),_0x58f47d;}catch(_0x4f0430){const _0x23849e=_0x2b0ec1[_0x12e289(0xf1)](_0x4f0430,Error)?_0x4f0430['message']:_0x2b0ec1[_0x12e289(0x101)](String,_0x4f0430);return console[_0x12e289(0xf4)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x523d89+':\x20'+_0x23849e),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10c972,_0x105d0f){const _0x346cd2=_0x5d93,_0x258954=_0x10c972();while(!![]){try{const _0x317750=-parseInt(_0x346cd2(0x87))/0x1*(-parseInt(_0x346cd2(0x7a))/0x2)+parseInt(_0x346cd2(0x7c))/0x3*(-parseInt(_0x346cd2(0x78))/0x4)+parseInt(_0x346cd2(0x85))/0x5*(-parseInt(_0x346cd2(0x81))/0x6)+-parseInt(_0x346cd2(0x83))/0x7+parseInt(_0x346cd2(0x84))/0x8*(-parseInt(_0x346cd2(0x7b))/0x9)+parseInt(_0x346cd2(0x80))/0xa*(parseInt(_0x346cd2(0x7d))/0xb)+parseInt(_0x346cd2(0x79))/0xc*(parseInt(_0x346cd2(0x86))/0xd);if(_0x317750===_0x105d0f)break;else _0x258954['push'](_0x258954['shift']());}catch(_0x463d63){_0x258954['push'](_0x258954['shift']());}}}(_0x2b64,0x30626));function _0x5d93(_0xb2cee9,_0x2ce7d1){_0xb2cee9=_0xb2cee9-0x76;const _0x2b646d=_0x2b64();let _0x5d93ed=_0x2b646d[_0xb2cee9];return _0x5d93ed;}import{dirname,join,parse}from'path';function _0x2b64(){const _0x5f4b07=['114390TZSmGE','.ranger','2716175FYOfCe','5120xNJQXp','10pXKCaK','6157840AbAbQh','542TXDykx','KLkth','GPotO','yIPzw','1346356lkHBer','24jAlBnC','46SnOzrM','2358AYMXZu','3OOvmyr','618860xqxkgu','UMgIF','cwd','30YEWXLg'];_0x2b64=function(){return _0x5f4b07;};return _0x2b64();}import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x220b3d=_0x5d93,_0x6ea169={'pWdFH':function(_0x35ce71,_0x4de223){return _0x35ce71(_0x4de223);},'KLkth':function(_0x35b4e7,_0x4be9aa){return _0x35b4e7(_0x4be9aa);},'RXJup':'.ranger'};let _0x2511c8=process[_0x220b3d(0x7f)]();const _0x2528f0=_0x6ea169['pWdFH'](parse,_0x2511c8)['root'];while(_0x2511c8!==_0x2528f0){if(_0x6ea169[_0x220b3d(0x88)](existsSync,join(_0x2511c8,_0x6ea169['RXJup'])))return _0x2511c8;_0x2511c8=dirname(_0x2511c8);}if(_0x6ea169[_0x220b3d(0x88)](existsSync,join(_0x2528f0,_0x220b3d(0x82))))return _0x2528f0;const _0x2294be=findGitRoot();if(_0x2294be)return _0x2294be;return process['cwd']();}export function getRangerDir(){const _0x1337ba=_0x5d93,_0x38ad0f={'yIPzw':function(_0x78fb7a,_0x27eb0e,_0x233fd7){return _0x78fb7a(_0x27eb0e,_0x233fd7);},'yRLBn':function(_0x4aae03){return _0x4aae03();},'UgFeX':_0x1337ba(0x82)};return _0x38ad0f[_0x1337ba(0x77)](join,_0x38ad0f['yRLBn'](getRangerRoot),_0x38ad0f['UgFeX']);}export function findGitRoot(){const _0x32c42d=_0x5d93,_0x4aa622={'UMgIF':function(_0x2b6990,_0x284b13){return _0x2b6990(_0x284b13);},'klDRj':function(_0x298810,_0x420d61,_0x59275b){return _0x298810(_0x420d61,_0x59275b);},'nKRJv':'.git','GPotO':function(_0x5d5777,_0x3cb879,_0xde9db5){return _0x5d5777(_0x3cb879,_0xde9db5);}};let _0x1ef36d=process[_0x32c42d(0x7f)]();const _0xea79ee=_0x4aa622[_0x32c42d(0x7e)](parse,_0x1ef36d)['root'];while(_0x1ef36d!==_0xea79ee){if(existsSync(_0x4aa622['klDRj'](join,_0x1ef36d,_0x4aa622['nKRJv'])))return _0x1ef36d;_0x1ef36d=_0x4aa622[_0x32c42d(0x7e)](dirname,_0x1ef36d);}if(existsSync(_0x4aa622[_0x32c42d(0x76)](join,_0xea79ee,'.git')))return _0xea79ee;return null;}export function getRangerHomeDir(){const _0xc012e8={'CNYLb':function(_0x155555,_0x4e10f5,_0x2e2a49){return _0x155555(_0x4e10f5,_0x2e2a49);},'WRTEh':'.ranger'};return _0xc012e8['CNYLb'](join,homedir(),_0xc012e8['WRTEh']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c577d,_0x2ccb5f){const _0x5b8d7a=_0x163c,_0x256613=_0x1c577d();while(!![]){try{const _0x2dd30d=-parseInt(_0x5b8d7a(0x1ab))/0x1*(parseInt(_0x5b8d7a(0x1a1))/0x2)+parseInt(_0x5b8d7a(0x1a6))/0x3*(parseInt(_0x5b8d7a(0x19d))/0x4)+-parseInt(_0x5b8d7a(0x19f))/0x5+-parseInt(_0x5b8d7a(0x1b8))/0x6*(parseInt(_0x5b8d7a(0x1aa))/0x7)+parseInt(_0x5b8d7a(0x1bc))/0x8+-parseInt(_0x5b8d7a(0x1a2))/0x9+parseInt(_0x5b8d7a(0x1af))/0xa;if(_0x2dd30d===_0x2ccb5f)break;else _0x256613['push'](_0x256613['shift']());}catch(_0x1c4302){_0x256613['push'](_0x256613['shift']());}}}(_0x1ddd,0xd929e));import{readdir}from'fs/promises';function _0x163c(_0x17dc40,_0x4f47a0){_0x17dc40=_0x17dc40-0x199;const _0x1ddd3d=_0x1ddd();let _0x163cd8=_0x1ddd3d[_0x17dc40];return _0x163cd8;}import{join}from'path';import{existsSync}from'fs';function _0x1ddd(){const _0x119a87=['length',']\x20Issue','replace','**Duration:**\x20','toISOString','join','wGTzd','6488292rCPXDW','severity','PASSED','---','13574704JJclZs','#\x20Verification\x20Report','##\x20Task','push','KDYBR','201044FNGWQB','slice','5878485LrAOsk','EGAQE','2zKReQG','2941173WBHjzS','**Status:**\x20','charAt','find','51yKIvNt','BLOCKER','filename','**Session:**\x20`','7TomlUo','458987VhAkrt','includes','screenshot','###\x20Issues\x20Found\x20(','13810900IZqpfm','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('];_0x1ddd=function(){return _0x119a87;};return _0x1ddd();}export async function collectScreenshots(_0x507cd0){const _0x5f0d7f=_0x163c,_0x1e4368={'EGAQE':function(_0xe76461,_0x123d98,_0x52beb9){return _0xe76461(_0x123d98,_0x52beb9);}},_0x56f839=[],_0x2325a3=[];if(!existsSync(_0x507cd0))return{'screenshots':_0x56f839,'paths':_0x2325a3};const _0x257f14=await readdir(_0x507cd0),_0x13a8e7=_0x257f14['filter'](_0x4feb8d=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x4feb8d))['sort']();for(const _0x3f17f4 of _0x13a8e7){const _0x51a083=_0x1e4368[_0x5f0d7f(0x1a0)](join,_0x507cd0,_0x3f17f4);_0x56f839['push']({'filename':_0x3f17f4,'path':_0x51a083,'relativePath':'./'+_0x3f17f4}),_0x2325a3[_0x5f0d7f(0x19b)](_0x51a083);}return{'screenshots':_0x56f839,'paths':_0x2325a3};}function getSeverityEmoji(_0x566b53){const _0x5c877d=_0x163c;switch(_0x566b53){case _0x5c877d(0x1a7):return'🔴';case'MAJOR':return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x3e0cac){const _0xbb6b5=_0x163c,_0x33130f=_0x3e0cac[_0xbb6b5(0x1b3)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x5aa9a2=_0x33130f['replace'](/^\d+-/,'');return _0x5aa9a2['split']('-')['map'](_0x35abc6=>_0x35abc6[_0xbb6b5(0x1a4)](0x0)['toUpperCase']()+_0x35abc6[_0xbb6b5(0x19e)](0x1))[_0xbb6b5(0x1b6)]('\x20');}export function generateMarkdownReport(_0x478ca6){const _0xf8c478=_0x163c,_0x26f970={'wGTzd':function(_0x1052ac,_0x1697d2){return _0x1052ac>_0x1697d2;},'KDYBR':function(_0xa17d58,_0x71a3cc){return _0xa17d58(_0x71a3cc);}},{sessionId:_0x4d7aa2,task:_0x3d1aeb,url:_0x2556d6,success:_0x12c3b3,summary:_0x1d5338,issues:_0x181e88,screenshots:_0x161377,durationMs:_0x5e9b34,traceViewerUrl:_0x40fe32}=_0x478ca6,_0x57a7c0=new Date()[_0xf8c478(0x1b5)](),_0x86341c=(_0x5e9b34/0x3e8)['toFixed'](0x1),_0x5d1279=[];_0x5d1279['push'](_0xf8c478(0x199)),_0x5d1279['push'](''),_0x5d1279['push'](_0xf8c478(0x1a9)+_0x4d7aa2+'`'),_0x5d1279['push']('**Generated:**\x20'+_0x57a7c0),_0x5d1279[_0xf8c478(0x19b)](_0xf8c478(0x1b4)+_0x86341c+'s'),_0x5d1279['push'](''),_0x5d1279['push'](_0xf8c478(0x19a)),_0x5d1279['push'](''),_0x5d1279['push']('**URL:**\x20'+_0x2556d6),_0x5d1279['push'](''),_0x5d1279[_0xf8c478(0x19b)]('>\x20'+_0x3d1aeb),_0x5d1279[_0xf8c478(0x19b)](''),_0x5d1279['push']('##\x20Result'),_0x5d1279['push']('');const _0x1c20df=_0x12c3b3?'✅':'❌';_0x5d1279[_0xf8c478(0x19b)](_0xf8c478(0x1a3)+_0x1c20df+'\x20'+(_0x12c3b3?_0xf8c478(0x1ba):'ISSUES\x20FOUND')),_0x5d1279[_0xf8c478(0x19b)](''),_0x5d1279['push']('###\x20Summary'),_0x5d1279['push'](''),_0x5d1279[_0xf8c478(0x19b)](_0x1d5338),_0x5d1279[_0xf8c478(0x19b)]('');if(_0x181e88&&_0x26f970[_0xf8c478(0x1b7)](_0x181e88[_0xf8c478(0x1b1)],0x0)){_0x5d1279[_0xf8c478(0x19b)](_0xf8c478(0x1ae)+_0x181e88[_0xf8c478(0x1b1)]+')'),_0x5d1279[_0xf8c478(0x19b)]('');for(const _0x4a4aa9 of _0x181e88){const _0x45ef9c=getSeverityEmoji(_0x4a4aa9[_0xf8c478(0x1b9)]);_0x5d1279['push']('####\x20'+_0x45ef9c+'\x20['+_0x4a4aa9['severity']+_0xf8c478(0x1b2)),_0x5d1279[_0xf8c478(0x19b)](''),_0x5d1279['push'](_0x4a4aa9['description']),_0x5d1279['push']('');if(_0x4a4aa9[_0xf8c478(0x1ad)]){const _0x115b56=_0x4a4aa9[_0xf8c478(0x1ad)],_0x3dee10=_0x161377[_0xf8c478(0x1a5)](_0x341334=>_0x341334[_0xf8c478(0x1a8)]===_0x115b56||_0x341334[_0xf8c478(0x1a8)][_0xf8c478(0x1ac)](_0x115b56));_0x3dee10&&(_0x5d1279['push']('**Screenshot:**'),_0x5d1279['push'](''),_0x5d1279['push'](''),_0x5d1279[_0xf8c478(0x19b)](''));}}}if(_0x26f970[_0xf8c478(0x1b7)](_0x161377[_0xf8c478(0x1b1)],0x0)){_0x5d1279[_0xf8c478(0x19b)]('##\x20Screenshots\x20('+_0x161377['length']+')'),_0x5d1279[_0xf8c478(0x19b)]('');for(const _0x1bd036 of _0x161377){const _0x3f4a19=_0x26f970[_0xf8c478(0x19c)](formatScreenshotCaption,_0x1bd036['filename']);_0x5d1279[_0xf8c478(0x19b)]('###\x20'+_0x3f4a19),_0x5d1279['push'](''),_0x5d1279['push']('!['+_0x1bd036[_0xf8c478(0x1a8)]+']('+_0x1bd036['relativePath']+')'),_0x5d1279['push']('');}}return _0x40fe32&&(_0x5d1279[_0xf8c478(0x19b)](_0xf8c478(0x1bb)),_0x5d1279[_0xf8c478(0x19b)](''),_0x5d1279[_0xf8c478(0x19b)](_0xf8c478(0x1b0)+_0x40fe32+')'),_0x5d1279[_0xf8c478(0x19b)]('')),_0x5d1279['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x417a(){const _0x4a7f75=['1wwiufN','1359178bXDZrd','12563400jCIneW','1205466Xjkuex','label','uRaux','75qmTkxE','127500larHKk','maxRetries','cBqkP','1800WNcHFs','error','yLGZl','1242804HTRZJs','),\x20retrying\x20in\x20','6843150MorRkP','19705kjiFKE'];_0x417a=function(){return _0x4a7f75;};return _0x417a();}function _0x3a8a(_0x49f381,_0x2b79f6){_0x49f381=_0x49f381-0xb6;const _0x417a92=_0x417a();let _0x3a8aad=_0x417a92[_0x49f381];return _0x3a8aad;}(function(_0x11e649,_0x3f8985){const _0xc82e94=_0x3a8a,_0x30fe9f=_0x11e649();while(!![]){try{const _0x4e2a10=parseInt(_0xc82e94(0xbe))/0x1*(parseInt(_0xc82e94(0xbf))/0x2)+parseInt(_0xc82e94(0xc1))/0x3+parseInt(_0xc82e94(0xc5))/0x4*(parseInt(_0xc82e94(0xc4))/0x5)+parseInt(_0xc82e94(0xba))/0x6+parseInt(_0xc82e94(0xbd))/0x7*(parseInt(_0xc82e94(0xb7))/0x8)+-parseInt(_0xc82e94(0xbc))/0x9+-parseInt(_0xc82e94(0xc0))/0xa;if(_0x4e2a10===_0x3f8985)break;else _0x30fe9f['push'](_0x30fe9f['shift']());}catch(_0x36bd2b){_0x30fe9f['push'](_0x30fe9f['shift']());}}}(_0x417a,0x5d97b));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x275949,_0x3135f3){const _0x26d959=_0x3a8a,_0x5d2858={'gLVdG':function(_0x33ed7a,_0x14f5c5){return _0x33ed7a<=_0x14f5c5;},'cBqkP':function(_0x5b4407,_0x3bcc5a){return _0x5b4407 instanceof _0x3bcc5a;},'yLGZl':function(_0x21a6c5,_0x3cb912){return _0x21a6c5<_0x3cb912;},'uRaux':function(_0x5b2698,_0x13c7c6){return _0x5b2698+_0x13c7c6;}},_0x20aa18=_0x3135f3?.[_0x26d959(0xc6)]??DEFAULT_MAX_RETRIES,_0x377e54=_0x3135f3?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x3bc4a4;for(let _0x25029c=0x0;_0x5d2858['gLVdG'](_0x25029c,_0x20aa18);_0x25029c++){try{return await _0x275949();}catch(_0x102c9f){_0x3bc4a4=_0x5d2858[_0x26d959(0xb6)](_0x102c9f,Error)?_0x102c9f:new Error(String(_0x102c9f));if(_0x5d2858[_0x26d959(0xb9)](_0x25029c,_0x20aa18)){const _0xca2443=_0x377e54*Math['pow'](0x2,_0x25029c);_0x3135f3?.[_0x26d959(0xc2)]&&console[_0x26d959(0xb8)](_0x3135f3[_0x26d959(0xc2)]+'\x20failed\x20(attempt\x20'+_0x5d2858[_0x26d959(0xc3)](_0x25029c,0x1)+'/'+_0x5d2858['uRaux'](_0x20aa18,0x1)+_0x26d959(0xbb)+_0xca2443+'ms...'),await new Promise(_0x3cce51=>setTimeout(_0x3cce51,_0xca2443));}}}throw _0x3bc4a4;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2a2946=_0x54af;(function(_0x484104,_0x4a195c){const _0x3e1a0f=_0x54af,_0x20bbb6=_0x484104();while(!![]){try{const _0x8ed74d=parseInt(_0x3e1a0f(0x1de))/0x1*(-parseInt(_0x3e1a0f(0x1d0))/0x2)+-parseInt(_0x3e1a0f(0x1d8))/0x3*(-parseInt(_0x3e1a0f(0x1f4))/0x4)+parseInt(_0x3e1a0f(0x205))/0x5*(parseInt(_0x3e1a0f(0x1f1))/0x6)+-parseInt(_0x3e1a0f(0x1ee))/0x7+-parseInt(_0x3e1a0f(0x1fe))/0x8*(parseInt(_0x3e1a0f(0x1e8))/0x9)+parseInt(_0x3e1a0f(0x1f3))/0xa*(parseInt(_0x3e1a0f(0x1e9))/0xb)+parseInt(_0x3e1a0f(0x20c))/0xc*(parseInt(_0x3e1a0f(0x1ff))/0xd);if(_0x8ed74d===_0x4a195c)break;else _0x20bbb6['push'](_0x20bbb6['shift']());}catch(_0x5544e2){_0x20bbb6['push'](_0x20bbb6['shift']());}}}(_0x41dc,0x53bd5));import*as _0x1dac09 from'fs';import*as _0xaaea15 from'path';import*as _0x13ab5e from'os';import{execSync}from'child_process';const CACHE_FILE=_0xaaea15[_0x2a2946(0x1d7)](_0x13ab5e[_0x2a2946(0x1fc)](),_0x2a2946(0x20b),_0x2a2946(0x1f8));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0xc583f9=_0x2a2946,_0x4fb03f={'GJmED':'utf-8','dZjVg':function(_0x948e45){return _0x948e45();}};try{if(_0x1dac09[_0xc583f9(0x1cf)](CACHE_FILE)){const _0x3a1ebc=JSON[_0xc583f9(0x1ce)](_0x1dac09['readFileSync'](CACHE_FILE,_0x4fb03f[_0xc583f9(0x1fa)]));return{'version':0x3,'sessions':_0x3a1ebc[_0xc583f9(0x201)]||{},'branches':_0x3a1ebc['branches']||{},'lastEnabledSessionClearedAt':_0x3a1ebc['lastEnabledSessionClearedAt']};}}catch{}return _0x4fb03f[_0xc583f9(0x1fd)](createEmptyCache);}function saveCache(_0x4dfad9){const _0xba9641=_0x2a2946;try{const _0x3d5b40=_0xaaea15[_0xba9641(0x1f6)](CACHE_FILE);!_0x1dac09['existsSync'](_0x3d5b40)&&_0x1dac09[_0xba9641(0x1e7)](_0x3d5b40,{'recursive':!![]}),_0x1dac09[_0xba9641(0x1df)](CACHE_FILE,JSON[_0xba9641(0x1d6)](_0x4dfad9,null,0x2));}catch{}}export function getCurrentBranch(){const _0x50f25e=_0x2a2946,_0xc011d={'HMgKs':function(_0x2c137c,_0x1d7103,_0x35955f){return _0x2c137c(_0x1d7103,_0x35955f);},'TqWKX':'utf-8','noHgG':_0x50f25e(0x1ef),'UUvfP':_0x50f25e(0x1e0)};try{const _0x57e7ac=_0xc011d['HMgKs'](execSync,_0x50f25e(0x1cd),{'encoding':_0xc011d['TqWKX'],'stdio':[_0xc011d['noHgG'],_0x50f25e(0x1ef),'pipe']})['trim']();if(!_0x57e7ac||_0x57e7ac===_0xc011d['UUvfP'])return null;return _0x57e7ac;}catch{return null;}}export function enableBranch(_0x2bdea6){const _0x455bcb=loadCache();_0x455bcb['branches'][_0x2bdea6]=!![],saveCache(_0x455bcb);}function _0x54af(_0x4ab61b,_0x55f602){_0x4ab61b=_0x4ab61b-0x1cd;const _0x41dc4e=_0x41dc();let _0x54af08=_0x41dc4e[_0x4ab61b];return _0x54af08;}export function disableBranch(_0x486c07){const _0x3542d7=_0x2a2946,_0x52c942=loadCache();delete _0x52c942[_0x3542d7(0x1f9)][_0x486c07],saveCache(_0x52c942);}export function isBranchEnabled(_0xae747e){const _0x682f6c=_0x2a2946,_0x46f659={'ibrPV':function(_0x259d75){return _0x259d75();}},_0x48eed8=_0x46f659['ibrPV'](loadCache);return _0x48eed8[_0x682f6c(0x1f9)][_0xae747e]===!![];}function getOrCreateSession(_0x3f5089,_0x2c4e8a){const _0x12aeb7=_0x2a2946;return!_0x3f5089[_0x12aeb7(0x201)][_0x2c4e8a]&&(_0x3f5089[_0x12aeb7(0x201)][_0x2c4e8a]={}),_0x3f5089['sessions'][_0x2c4e8a];}export function enableSession(_0x27988a){const _0x7ef7c4=_0x2a2946,_0x112da2={'fUfWV':function(_0x3b22dd,_0x346633,_0x51a42e){return _0x3b22dd(_0x346633,_0x51a42e);},'RYBxe':function(_0x2a70c1){return _0x2a70c1();},'WOhFq':function(_0x1be2eb,_0x2b1058){return _0x1be2eb!==_0x2b1058;},'KoZHT':_0x7ef7c4(0x1eb),'tSxeC':function(_0x25c6e5,_0x3a81f2){return _0x25c6e5(_0x3a81f2);}},_0x2dfd02=loadCache(),_0x4a777a=_0x112da2['fUfWV'](getOrCreateSession,_0x2dfd02,_0x27988a);_0x4a777a[_0x7ef7c4(0x202)]=!![];const _0x3fdb5f=_0x112da2['RYBxe'](getCurrentBranch);_0x3fdb5f&&_0x112da2[_0x7ef7c4(0x200)](_0x3fdb5f,_0x7ef7c4(0x1d9))&&_0x3fdb5f!==_0x112da2['KoZHT']&&(_0x2dfd02['branches'][_0x3fdb5f]=!![],_0x4a777a['currentBranch']=_0x3fdb5f),_0x112da2[_0x7ef7c4(0x1f0)](saveCache,_0x2dfd02);}export function isSessionEnabled(_0x26678e){const _0xd4353a=_0x2a2946,_0x28e4e4={'tEuHt':function(_0x3f59ec){return _0x3f59ec();},'npuJp':'master','IvioY':function(_0xd9d175,_0x375200){return _0xd9d175===_0x375200;},'qpWmi':function(_0x5edd32,_0x16ac1c){return _0x5edd32||_0x16ac1c;}},_0x1d2fc4=_0x28e4e4['tEuHt'](loadCache),_0x93241a=getCurrentBranch();if(!_0x93241a||_0x93241a===_0xd4353a(0x1d9)||_0x93241a===_0x28e4e4['npuJp'])return _0x28e4e4['IvioY'](_0x1d2fc4['sessions'][_0x26678e]?.['enabled'],!![]);const _0x188839=_0x1d2fc4[_0xd4353a(0x1f9)][_0x93241a]===!![],_0x4d1208=_0x1d2fc4[_0xd4353a(0x201)][_0x26678e]?.[_0xd4353a(0x202)]===!![];return _0x28e4e4[_0xd4353a(0x1e1)](_0x188839,_0x4d1208);}export function disableSession(_0x11e3ee){const _0xa531d4=_0x2a2946,_0x1e99d8={'yIzaq':function(_0x59c068){return _0x59c068();},'SpQkT':function(_0x3ea71c,_0xeff12c,_0x3a6a88){return _0x3ea71c(_0xeff12c,_0x3a6a88);}},_0xa940e9=_0x1e99d8[_0xa531d4(0x207)](loadCache),_0x4e9343=_0x1e99d8[_0xa531d4(0x1d4)](getOrCreateSession,_0xa940e9,_0x11e3ee);_0x4e9343['enabled']=![],saveCache(_0xa940e9);}export function updateBranchTracking(_0x40e0ac){const _0x452340=_0x2a2946,_0x288e02={'QJODG':function(_0x208314){return _0x208314();},'cLdjO':function(_0x1153b3,_0xe163b6){return _0x1153b3===_0xe163b6;},'vsFNx':_0x452340(0x1d9),'GvnkA':_0x452340(0x1eb),'ZBiBf':function(_0x3b8a0b,_0x177e50){return _0x3b8a0b(_0x177e50);}},_0xa49a9a=loadCache(),_0x3d4ed8=_0xa49a9a['sessions'][_0x40e0ac];if(!_0x3d4ed8?.[_0x452340(0x202)])return;const _0x1a6856=_0x288e02['QJODG'](getCurrentBranch);if(!_0x1a6856||_0x288e02['cLdjO'](_0x1a6856,_0x288e02['vsFNx'])||_0x1a6856===_0x288e02['GvnkA'])return;_0x3d4ed8[_0x452340(0x1db)]!==_0x1a6856&&(_0xa49a9a[_0x452340(0x1f9)][_0x1a6856]=!![],_0x3d4ed8[_0x452340(0x1db)]=_0x1a6856,_0x288e02[_0x452340(0x204)](saveCache,_0xa49a9a));}export function initBranchTracking(_0x16f6a3){const _0x8c6391=_0x2a2946,_0x21bdfe={'Fwhvt':function(_0x579ca3){return _0x579ca3();},'eGkNa':function(_0x1e8031,_0x5d4946){return _0x1e8031===_0x5d4946;},'ziziE':function(_0x2e15b0,_0x175477,_0x564dca){return _0x2e15b0(_0x175477,_0x564dca);},'ydCzF':function(_0xd7199f,_0x48691c){return _0xd7199f(_0x48691c);}},_0xa31fef=_0x21bdfe['Fwhvt'](loadCache),_0x175faf=_0x21bdfe['Fwhvt'](getCurrentBranch);if(!_0x175faf||_0x21bdfe['eGkNa'](_0x175faf,'main')||_0x175faf==='master')return;if(_0xa31fef['branches'][_0x175faf]===!![]){const _0x3e6e99=_0x21bdfe['ziziE'](getOrCreateSession,_0xa31fef,_0x16f6a3);_0x3e6e99['enabled']=!![],_0x3e6e99['currentBranch']=_0x175faf,_0x21bdfe[_0x8c6391(0x1f7)](saveCache,_0xa31fef);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x208de6){const _0x1ed989=_0x2a2946,_0x11546e={'mtVgW':function(_0x491e75){return _0x491e75();},'CjItJ':function(_0x3ec6da,_0x44564a){return _0x3ec6da(_0x44564a);}},_0x291d05=_0x11546e['mtVgW'](loadCache),_0x1e275d=_0x291d05[_0x1ed989(0x201)][_0x208de6];_0x1e275d?.[_0x1ed989(0x202)]&&(_0x291d05['lastEnabledSessionClearedAt']=Date[_0x1ed989(0x208)](),_0x11546e[_0x1ed989(0x203)](saveCache,_0x291d05));}export function shouldAutoEnableAfterClear(_0x342fc2){const _0x46bfc6=_0x2a2946,_0x29879f={'BmxDr':function(_0x1f8275,_0x3af051){return _0x1f8275!==_0x3af051;},'fCrOm':function(_0x3cfdb7){return _0x3cfdb7();}};if(_0x29879f['BmxDr'](_0x342fc2,'clear'))return![];const _0x289740=_0x29879f[_0x46bfc6(0x1ec)](loadCache),_0x59732c=_0x289740[_0x46bfc6(0x1f5)];if(!_0x59732c)return![];const _0x1b3ffb=Date[_0x46bfc6(0x208)]()-_0x59732c;return _0x1b3ffb<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x5966ed){const _0x42b88e=_0x2a2946,_0x3a962f={'WsvId':function(_0x37f170){return _0x37f170();},'aQzmK':function(_0x541f42,_0x586855,_0x594188){return _0x541f42(_0x586855,_0x594188);},'fBRNR':function(_0x5c3a89,_0x30eac7){return _0x5c3a89!==_0x30eac7;},'mVFCo':'master','WfzBS':function(_0x137123,_0x2a27b6){return _0x137123(_0x2a27b6);}},_0x1b702b=_0x3a962f['WsvId'](loadCache),_0x46f7a5=_0x3a962f[_0x42b88e(0x1fb)](getOrCreateSession,_0x1b702b,_0x5966ed);_0x46f7a5['enabled']=!![];const _0x4413ba=_0x3a962f[_0x42b88e(0x1e2)](getCurrentBranch);_0x4413ba&&_0x3a962f[_0x42b88e(0x1d2)](_0x4413ba,_0x42b88e(0x1d9))&&_0x3a962f['fBRNR'](_0x4413ba,_0x3a962f['mVFCo'])&&(_0x46f7a5['currentBranch']=_0x4413ba),delete _0x1b702b[_0x42b88e(0x1f5)],_0x3a962f[_0x42b88e(0x1dc)](saveCache,_0x1b702b);}export function registerSession(_0x5a7d11,_0x998e66){const _0x22e622=_0x2a2946,_0x5a7b84={'gxiPn':function(_0x4bda24){return _0x4bda24();},'YHfzx':function(_0x318368,_0x5dd903,_0x2c6844){return _0x318368(_0x5dd903,_0x2c6844);},'izkvu':function(_0x20f4b5,_0x35520c){return _0x20f4b5(_0x35520c);}},_0x385f7b=_0x5a7b84[_0x22e622(0x1ed)](loadCache),_0x4846da=_0x5a7b84[_0x22e622(0x1ea)](getOrCreateSession,_0x385f7b,_0x5a7d11);_0x4846da[_0x22e622(0x1e5)]=_0x998e66,_0x4846da[_0x22e622(0x1e4)]=new Date()[_0x22e622(0x1dd)](),_0x5a7b84[_0x22e622(0x209)](saveCache,_0x385f7b);}export function getSessionEntry(_0x259765){const _0x191e7a=_0x2a2946,_0x1bed96={'EbjNd':function(_0x16e246){return _0x16e246();}},_0x2bdf5c=_0x1bed96[_0x191e7a(0x1da)](loadCache),_0x3e8947=_0x2bdf5c['sessions'][_0x259765];if(_0x3e8947?.[_0x191e7a(0x1e5)]&&_0x3e8947?.['registeredAt'])return{'featureId':_0x3e8947['featureId'],'registeredAt':_0x3e8947[_0x191e7a(0x1e4)]};return null;}export function unregisterSession(_0x43ac9f){const _0x3939e7=_0x2a2946,_0x153ba1={'LYFcY':function(_0x2a87c8){return _0x2a87c8();},'FGdTt':function(_0x5240e1,_0x489a2d){return _0x5240e1(_0x489a2d);}},_0x42e953=_0x153ba1['LYFcY'](loadCache),_0x23f2fa=_0x42e953[_0x3939e7(0x201)][_0x43ac9f];_0x23f2fa&&(delete _0x23f2fa[_0x3939e7(0x1e5)],delete _0x23f2fa[_0x3939e7(0x1e4)],_0x153ba1[_0x3939e7(0x20a)](saveCache,_0x42e953));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xa22e8a){const _0x32e831=_0x2a2946,_0x229a1b={'FaFIi':function(_0x55f351){return _0x55f351();},'zsrOe':function(_0x553814,_0x2b0235){return _0x553814>=_0x2b0235;},'wzYBx':function(_0x9c0a22,_0x568e3d){return _0x9c0a22(_0x568e3d);}},_0x5a6ffd=_0x229a1b['FaFIi'](loadCache),_0x2fbd90=getOrCreateSession(_0x5a6ffd,_0xa22e8a),_0x9c24e2=_0x2fbd90[_0x32e831(0x206)]||0x0,_0x2cc3f9=Date[_0x32e831(0x208)]();if(_0x229a1b['zsrOe'](_0x2cc3f9-_0x9c24e2,PLAN_REMINDER_INTERVAL_MS))return _0x2fbd90[_0x32e831(0x206)]=_0x2cc3f9,_0x229a1b['wzYBx'](saveCache,_0x5a6ffd),!![];return![];}export function shouldShowStopReminder(_0x56f21a){const _0x52e867=_0x2a2946,_0x164b15={'SgZHv':function(_0x11b20f,_0x38dd1f,_0x539730){return _0x11b20f(_0x38dd1f,_0x539730);},'TjVgx':function(_0x381088,_0x1002b8){return _0x381088>=_0x1002b8;},'DzYwv':function(_0x5047bf,_0x443fa4){return _0x5047bf-_0x443fa4;}},_0x4b5235=loadCache(),_0x1db7ae=_0x164b15['SgZHv'](getOrCreateSession,_0x4b5235,_0x56f21a),_0x4a9153=_0x1db7ae['lastStopReminderAt']||0x0,_0x23ade7=Date['now']();if(_0x164b15[_0x52e867(0x1e6)](_0x164b15['DzYwv'](_0x23ade7,_0x4a9153),STOP_REMINDER_INTERVAL_MS))return _0x1db7ae['lastStopReminderAt']=_0x23ade7,saveCache(_0x4b5235),!![];return![];}export function hasSessionBeenPrompted(_0x2024b9){const _0x47a21d=_0x2a2946,_0x3cde07={'KDAwF':function(_0x4be61f){return _0x4be61f();},'tVWUw':function(_0x1df881,_0x171537){return _0x1df881===_0x171537;}},_0x531c32=_0x3cde07[_0x47a21d(0x1d3)](loadCache);return _0x3cde07[_0x47a21d(0x1f2)](_0x531c32['sessions'][_0x2024b9]?.['prompted'],!![]);}export function markSessionPrompted(_0x2dfba3){const _0x1ce393=_0x2a2946,_0x32e5f9={'kJZwf':function(_0x2061e9,_0x3a832b,_0x268bbd){return _0x2061e9(_0x3a832b,_0x268bbd);},'OZVsD':function(_0x28391c,_0x15899a){return _0x28391c(_0x15899a);}},_0x1ff8e9=loadCache(),_0x760a1a=_0x32e5f9[_0x1ce393(0x1d5)](getOrCreateSession,_0x1ff8e9,_0x2dfba3);_0x760a1a[_0x1ce393(0x1d1)]=!![],_0x32e5f9[_0x1ce393(0x1e3)](saveCache,_0x1ff8e9);}export function getCacheFile(){return CACHE_FILE;}function _0x41dc(){const _0x2ac147=['FGdTt','.claude','54564GnCpaG','git\x20rev-parse\x20--abbrev-ref\x20HEAD','parse','existsSync','6NFuAEL','prompted','fBRNR','KDAwF','SpQkT','kJZwf','stringify','join','3vMWKSt','main','EbjNd','currentBranch','WfzBS','toISOString','3693VTMPrM','writeFileSync','HEAD','qpWmi','WsvId','OZVsD','registeredAt','featureId','TjVgx','mkdirSync','20799pGWFWl','68530CkUcyI','YHfzx','master','fCrOm','gxiPn','1160355lTHPVd','pipe','tSxeC','2551470GqVbPU','tVWUw','200KIMLze','187604VklKjk','lastEnabledSessionClearedAt','dirname','ydCzF','.ranger_cache.json','branches','GJmED','aQzmK','homedir','dZjVg','1856fSPOLs','1313NiiCSI','WOhFq','sessions','enabled','CjItJ','ZBiBf','5ZyJuSo','lastPlanReminderAt','yIzaq','now','izkvu'];_0x41dc=function(){return _0x2ac147;};return _0x41dc();}
|
|
1
|
+
const _0x3009a4=_0x152c;(function(_0x4de1ad,_0x57645e){const _0x3c39a7=_0x152c,_0x900d3e=_0x4de1ad();while(!![]){try{const _0x1182c2=parseInt(_0x3c39a7(0x1eb))/0x1+-parseInt(_0x3c39a7(0x203))/0x2*(parseInt(_0x3c39a7(0x1e9))/0x3)+-parseInt(_0x3c39a7(0x20f))/0x4*(parseInt(_0x3c39a7(0x219))/0x5)+-parseInt(_0x3c39a7(0x21c))/0x6*(parseInt(_0x3c39a7(0x1f2))/0x7)+-parseInt(_0x3c39a7(0x1e5))/0x8*(parseInt(_0x3c39a7(0x1ea))/0x9)+parseInt(_0x3c39a7(0x1ed))/0xa*(-parseInt(_0x3c39a7(0x1ff))/0xb)+parseInt(_0x3c39a7(0x1f3))/0xc;if(_0x1182c2===_0x57645e)break;else _0x900d3e['push'](_0x900d3e['shift']());}catch(_0x19bbaa){_0x900d3e['push'](_0x900d3e['shift']());}}}(_0xfadb,0x1e2d8));import*as _0x1872ae from'fs';function _0xfadb(){const _0x200f39=['existsSync','RpzRR','lastStopReminderAt','620SOHDZE','cPZgo','OFTLX','102MLGgUw','sessions','pipe','currentBranch','OXCEW','208QJOrGQ','branches','prompted','jJDyG','9411bDmjnG','15462Oxfhtl','117670FdaNJi','FNbUG','2085260fcsEpO','APMPE','writeFileSync','master','xFfjQ','52199axkLWX','6713856neGjzy','tqmbh','lastEnabledSessionClearedAt','registeredAt','join','VOAcx','SQoLm','crSjt','SJwpD','utf-8','vGQnf','KiTDZ','11VCGCEw','lHiVV','now','vOfTX','6ePWQMF','yVWqY','enabled','MAEyV','Hjxhh','iwGBy','VsOPj','aAPex','mkdirSync','JgRKQ','kUEKl','parse','5296rmgIzy','oxEsN','CkQZT','qTIyO','nWnJv','featureId','main'];_0xfadb=function(){return _0x200f39;};return _0xfadb();}import*as _0x5165d1 from'path';import*as _0x1565f5 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x5165d1[_0x3009a4(0x1f7)](_0x1565f5['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x23169c=_0x3009a4,_0x531d7f={'SJwpD':_0x23169c(0x1fc),'aAPex':function(_0xa7475a){return _0xa7475a();}};try{if(_0x1872ae['existsSync'](CACHE_FILE)){const _0xbf559e=JSON[_0x23169c(0x20e)](_0x1872ae['readFileSync'](CACHE_FILE,_0x531d7f[_0x23169c(0x1fb)]));return{'version':0x3,'sessions':_0xbf559e['sessions']||{},'branches':_0xbf559e['branches']||{},'lastEnabledSessionClearedAt':_0xbf559e[_0x23169c(0x1f5)]};}}catch{}return _0x531d7f[_0x23169c(0x20a)](createEmptyCache);}function saveCache(_0x51a3d6){const _0x56a9d0=_0x3009a4;try{const _0x171dbf=_0x5165d1['dirname'](CACHE_FILE);!_0x1872ae[_0x56a9d0(0x216)](_0x171dbf)&&_0x1872ae[_0x56a9d0(0x20b)](_0x171dbf,{'recursive':!![]}),_0x1872ae[_0x56a9d0(0x1ef)](CACHE_FILE,JSON['stringify'](_0x51a3d6,null,0x2));}catch{}}export function getCurrentBranch(){const _0x240f37=_0x3009a4,_0x1b6dc8={'kUEKl':_0x240f37(0x1e2),'evlfc':function(_0x130b1d,_0x29ba86){return _0x130b1d===_0x29ba86;}};try{const _0x41e4ac=execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':'utf-8','stdio':[_0x1b6dc8['kUEKl'],_0x1b6dc8[_0x240f37(0x20d)],_0x1b6dc8[_0x240f37(0x20d)]]})['trim']();if(!_0x41e4ac||_0x1b6dc8['evlfc'](_0x41e4ac,'HEAD'))return null;return _0x41e4ac;}catch{return null;}}export function enableBranch(_0xf78ea2){const _0x146af7=_0x3009a4,_0x474478={'oxEsN':function(_0x3e4950){return _0x3e4950();},'AhSAI':function(_0x4ec06b,_0x74ca24){return _0x4ec06b(_0x74ca24);}},_0x1be69b=_0x474478[_0x146af7(0x210)](loadCache);_0x1be69b['branches'][_0xf78ea2]=!![],_0x474478['AhSAI'](saveCache,_0x1be69b);}export function disableBranch(_0x2dfe15){const _0x574558={'ovBbp':function(_0xdc16b0){return _0xdc16b0();}},_0x2f1bd2=_0x574558['ovBbp'](loadCache);delete _0x2f1bd2['branches'][_0x2dfe15],saveCache(_0x2f1bd2);}export function isBranchEnabled(_0x522520){const _0x4ca8c3=_0x3009a4,_0x119c29={'KiTDZ':function(_0x43393b){return _0x43393b();}},_0x19b212=_0x119c29[_0x4ca8c3(0x1fe)](loadCache);return _0x19b212[_0x4ca8c3(0x1e6)][_0x522520]===!![];}function getOrCreateSession(_0x54af11,_0x100ef7){const _0x3c265d=_0x3009a4;return!_0x54af11['sessions'][_0x100ef7]&&(_0x54af11[_0x3c265d(0x1e1)][_0x100ef7]={}),_0x54af11[_0x3c265d(0x1e1)][_0x100ef7];}export function enableSession(_0x3d3d5b){const _0x2d5528=_0x3009a4,_0x3014f1={'APMPE':function(_0x433359){return _0x433359();},'CkQZT':function(_0x575e4b,_0x44b0c9){return _0x575e4b!==_0x44b0c9;},'Hjxhh':'master','VOAcx':function(_0x2b0d87,_0x555876){return _0x2b0d87(_0x555876);}},_0x281aa2=_0x3014f1[_0x2d5528(0x1ee)](loadCache),_0x3676cb=getOrCreateSession(_0x281aa2,_0x3d3d5b);_0x3676cb['enabled']=!![];const _0x1d60f6=_0x3014f1['APMPE'](getCurrentBranch);_0x1d60f6&&_0x1d60f6!==_0x2d5528(0x215)&&_0x3014f1[_0x2d5528(0x211)](_0x1d60f6,_0x3014f1[_0x2d5528(0x207)])&&(_0x281aa2[_0x2d5528(0x1e6)][_0x1d60f6]=!![],_0x3676cb['currentBranch']=_0x1d60f6),_0x3014f1[_0x2d5528(0x1f8)](saveCache,_0x281aa2);}export function isSessionEnabled(_0x4c346e){const _0xfb7030=_0x3009a4,_0x2d68ae={'sQnuS':function(_0x304429){return _0x304429();},'jJDyG':function(_0x527b88,_0x2d2ac0){return _0x527b88===_0x2d2ac0;},'xFfjQ':function(_0x1df8e7,_0x337a3d){return _0x1df8e7===_0x337a3d;},'MCzkU':function(_0x2c41be,_0x12a2a8){return _0x2c41be===_0x12a2a8;}},_0x1acb7c=_0x2d68ae['sQnuS'](loadCache),_0x1bb43e=_0x2d68ae['sQnuS'](getCurrentBranch);if(!_0x1bb43e||_0x2d68ae[_0xfb7030(0x1e8)](_0x1bb43e,'main')||_0x2d68ae[_0xfb7030(0x1f1)](_0x1bb43e,'master'))return _0x1acb7c['sessions'][_0x4c346e]?.[_0xfb7030(0x205)]===!![];const _0xcd6cc=_0x2d68ae['xFfjQ'](_0x1acb7c[_0xfb7030(0x1e6)][_0x1bb43e],!![]),_0x1ae20a=_0x2d68ae['MCzkU'](_0x1acb7c[_0xfb7030(0x1e1)][_0x4c346e]?.['enabled'],!![]);return _0xcd6cc||_0x1ae20a;}export function disableSession(_0x4bd229){const _0x26330a=loadCache(),_0x2452fb=getOrCreateSession(_0x26330a,_0x4bd229);_0x2452fb['enabled']=![],saveCache(_0x26330a);}export function updateBranchTracking(_0x26ac76){const _0x14e3e8=_0x3009a4,_0x59d1d6={'qTIyO':function(_0x1a21fe){return _0x1a21fe();},'VsOPj':_0x14e3e8(0x215),'lXHBo':function(_0x5638ae,_0x2dd1a3){return _0x5638ae===_0x2dd1a3;},'RpzRR':'master','SQoLm':function(_0x406ff1,_0xd1fd81){return _0x406ff1!==_0xd1fd81;}},_0x5da72c=loadCache(),_0x3ba906=_0x5da72c['sessions'][_0x26ac76];if(!_0x3ba906?.[_0x14e3e8(0x205)])return;const _0x1dfe3c=_0x59d1d6[_0x14e3e8(0x212)](getCurrentBranch);if(!_0x1dfe3c||_0x1dfe3c===_0x59d1d6[_0x14e3e8(0x209)]||_0x59d1d6['lXHBo'](_0x1dfe3c,_0x59d1d6[_0x14e3e8(0x217)]))return;_0x59d1d6[_0x14e3e8(0x1f9)](_0x3ba906[_0x14e3e8(0x1e3)],_0x1dfe3c)&&(_0x5da72c['branches'][_0x1dfe3c]=!![],_0x3ba906[_0x14e3e8(0x1e3)]=_0x1dfe3c,saveCache(_0x5da72c));}export function initBranchTracking(_0x1dcd85){const _0x2cbc5d=_0x3009a4,_0x15003f={'FNbUG':'main','crSjt':function(_0x2e09a6,_0x2027ef){return _0x2e09a6===_0x2027ef;},'SrPOu':_0x2cbc5d(0x1f0)},_0x3a9699=loadCache(),_0x14b395=getCurrentBranch();if(!_0x14b395||_0x14b395===_0x15003f[_0x2cbc5d(0x1ec)]||_0x15003f[_0x2cbc5d(0x1fa)](_0x14b395,_0x15003f['SrPOu']))return;if(_0x3a9699['branches'][_0x14b395]===!![]){const _0x32cbc9=getOrCreateSession(_0x3a9699,_0x1dcd85);_0x32cbc9['enabled']=!![],_0x32cbc9['currentBranch']=_0x14b395,saveCache(_0x3a9699);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x254afc){const _0x55908e=_0x3009a4,_0x2d109b={'OXCEW':function(_0x90dea1,_0x37a027){return _0x90dea1(_0x37a027);}},_0x333ba5=loadCache(),_0xc5f9ad=_0x333ba5['sessions'][_0x254afc];_0xc5f9ad?.[_0x55908e(0x205)]&&(_0x333ba5['lastEnabledSessionClearedAt']=Date[_0x55908e(0x201)](),_0x2d109b[_0x55908e(0x1e4)](saveCache,_0x333ba5));}export function shouldAutoEnableAfterClear(_0x48e84d){const _0xcf69f5=_0x3009a4,_0xdf7aae={'MAEyV':function(_0x4d1419,_0x47f9a6){return _0x4d1419!==_0x47f9a6;},'tqmbh':function(_0x288995){return _0x288995();},'vGQnf':function(_0x5e6fe9,_0xa72bd5){return _0x5e6fe9-_0xa72bd5;}};if(_0xdf7aae[_0xcf69f5(0x206)](_0x48e84d,'clear'))return![];const _0x248495=_0xdf7aae[_0xcf69f5(0x1f4)](loadCache),_0x56c5e0=_0x248495['lastEnabledSessionClearedAt'];if(!_0x56c5e0)return![];const _0xcfb5b2=_0xdf7aae[_0xcf69f5(0x1fd)](Date[_0xcf69f5(0x201)](),_0x56c5e0);return _0xcfb5b2<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x2dc183){const _0xafcde1=_0x3009a4,_0x517fae={'iwGBy':function(_0x371e67){return _0x371e67();},'lHiVV':function(_0x1fd9e6,_0x223858,_0x9b752a){return _0x1fd9e6(_0x223858,_0x9b752a);},'cPZgo':function(_0x3c50d9,_0x1440c5){return _0x3c50d9!==_0x1440c5;},'UxLoi':'master'},_0xaf680a=_0x517fae['iwGBy'](loadCache),_0x1e1762=_0x517fae[_0xafcde1(0x200)](getOrCreateSession,_0xaf680a,_0x2dc183);_0x1e1762['enabled']=!![];const _0x4d4f7f=_0x517fae[_0xafcde1(0x208)](getCurrentBranch);_0x4d4f7f&&_0x4d4f7f!==_0xafcde1(0x215)&&_0x517fae[_0xafcde1(0x21a)](_0x4d4f7f,_0x517fae['UxLoi'])&&(_0x1e1762[_0xafcde1(0x1e3)]=_0x4d4f7f),delete _0xaf680a[_0xafcde1(0x1f5)],saveCache(_0xaf680a);}export function registerSession(_0x243fcf,_0x55be7e){const _0x21e257=_0x3009a4,_0x503b52=loadCache(),_0x40dae4=getOrCreateSession(_0x503b52,_0x243fcf);_0x40dae4['featureId']=_0x55be7e,_0x40dae4[_0x21e257(0x1f6)]=new Date()['toISOString'](),saveCache(_0x503b52);}export function getSessionEntry(_0x440484){const _0x3eddcd=_0x3009a4,_0x451a05={'vOfTX':function(_0xe8fe8f){return _0xe8fe8f();}},_0x31086d=_0x451a05[_0x3eddcd(0x202)](loadCache),_0x2e3428=_0x31086d['sessions'][_0x440484];if(_0x2e3428?.[_0x3eddcd(0x214)]&&_0x2e3428?.['registeredAt'])return{'featureId':_0x2e3428[_0x3eddcd(0x214)],'registeredAt':_0x2e3428['registeredAt']};return null;}export function unregisterSession(_0x4ba901){const _0x488066=_0x3009a4,_0x2791c0=loadCache(),_0x5d7ba5=_0x2791c0[_0x488066(0x1e1)][_0x4ba901];_0x5d7ba5&&(delete _0x5d7ba5['featureId'],delete _0x5d7ba5['registeredAt'],saveCache(_0x2791c0));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x311d48){const _0x45e17c={'BSaAu':function(_0x3d83fb,_0x49c89b,_0x54deab){return _0x3d83fb(_0x49c89b,_0x54deab);}},_0x42921b=loadCache(),_0x4ca373=_0x45e17c['BSaAu'](getOrCreateSession,_0x42921b,_0x311d48),_0x7ac435=_0x4ca373['lastPlanReminderAt']||0x0,_0x683d22=Date['now']();if(_0x683d22-_0x7ac435>=PLAN_REMINDER_INTERVAL_MS)return _0x4ca373['lastPlanReminderAt']=_0x683d22,saveCache(_0x42921b),!![];return![];}export function shouldShowStopReminder(_0x490912){const _0x2af9f0=_0x3009a4,_0x18133f={'AbjOw':function(_0x41f9ed){return _0x41f9ed();},'JgRKQ':function(_0x196a89,_0x140c53,_0x604075){return _0x196a89(_0x140c53,_0x604075);},'nWnJv':function(_0xcbc463,_0xf08ef){return _0xcbc463-_0xf08ef;},'yVWqY':function(_0x36b439,_0x10b57a){return _0x36b439(_0x10b57a);}},_0x2d2b61=_0x18133f['AbjOw'](loadCache),_0x420c64=_0x18133f[_0x2af9f0(0x20c)](getOrCreateSession,_0x2d2b61,_0x490912),_0x3e66c7=_0x420c64[_0x2af9f0(0x218)]||0x0,_0x3b9738=Date[_0x2af9f0(0x201)]();if(_0x18133f[_0x2af9f0(0x213)](_0x3b9738,_0x3e66c7)>=STOP_REMINDER_INTERVAL_MS)return _0x420c64['lastStopReminderAt']=_0x3b9738,_0x18133f[_0x2af9f0(0x204)](saveCache,_0x2d2b61),!![];return![];}function _0x152c(_0x558081,_0x427de1){_0x558081=_0x558081-0x1e1;const _0xfadb91=_0xfadb();let _0x152c5a=_0xfadb91[_0x558081];return _0x152c5a;}export function hasSessionBeenPrompted(_0xe094cc){const _0x2e399e=loadCache();return _0x2e399e['sessions'][_0xe094cc]?.['prompted']===!![];}export function markSessionPrompted(_0x56c0ec){const _0x3e2126=_0x3009a4,_0x68e558={'OFTLX':function(_0x3b19d2,_0x34d9b5,_0x230d94){return _0x3b19d2(_0x34d9b5,_0x230d94);}},_0x260c2d=loadCache(),_0x437ef4=_0x68e558[_0x3e2126(0x21b)](getOrCreateSession,_0x260c2d,_0x56c0ec);_0x437ef4[_0x3e2126(0x1e7)]=!![],saveCache(_0x260c2d);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ee84c=_0x1b10;(function(_0x1e3b93,_0x1b1ec1){const _0x27d6e6=_0x1b10,_0x3ab82b=_0x1e3b93();while(!![]){try{const _0xffdab2=-parseInt(_0x27d6e6(0x1f2))/0x1*(parseInt(_0x27d6e6(0x239))/0x2)+parseInt(_0x27d6e6(0x207))/0x3+parseInt(_0x27d6e6(0x214))/0x4*(-parseInt(_0x27d6e6(0x220))/0x5)+-parseInt(_0x27d6e6(0x1f9))/0x6*(parseInt(_0x27d6e6(0x248))/0x7)+parseInt(_0x27d6e6(0x1e5))/0x8*(parseInt(_0x27d6e6(0x1e1))/0x9)+-parseInt(_0x27d6e6(0x1f1))/0xa+parseInt(_0x27d6e6(0x203))/0xb;if(_0xffdab2===_0x1b1ec1)break;else _0x3ab82b['push'](_0x3ab82b['shift']());}catch(_0x38c644){_0x3ab82b['push'](_0x3ab82b['shift']());}}}(_0xb415,0xd5881));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}from'./rangerRoot.js';export function getEnvDir(_0x28cdc8){const _0x6bfd80=_0x1b10,_0x12e11e={'ZZzAH':function(_0x4bd112){return _0x4bd112();},'SXMdr':function(_0x3298d4,_0x127f61,_0x1955b1,_0xbe19c8){return _0x3298d4(_0x127f61,_0x1955b1,_0xbe19c8);},'BYimc':function(_0x580742,_0x215da8,_0x18e678){return _0x580742(_0x215da8,_0x18e678);},'xlyxv':function(_0xddd3b6,_0x4feec6){return _0xddd3b6(_0x4feec6);},'JnlJW':function(_0xaf3b58,_0x27a3bf){return _0xaf3b58(_0x27a3bf);},'GwfHv':function(_0x453613,_0x331351){return _0x453613(_0x331351);},'swBtJ':function(_0x3547aa,_0x341baf){return _0x3547aa!==_0x341baf;}},_0xe6b50f=_0x12e11e[_0x6bfd80(0x232)](getRangerDir),_0x171a12=join(_0xe6b50f,'ci',_0x28cdc8),_0x505874=_0x12e11e[_0x6bfd80(0x225)](join,_0xe6b50f,'local',_0x28cdc8),_0x2208e5=_0x12e11e[_0x6bfd80(0x1f6)](join,_0xe6b50f,_0x28cdc8),_0x2c32b5=join(_0xe6b50f,'local'),_0x4eee8c=join(_0xe6b50f,'ci');if(_0x12e11e['xlyxv'](existsSync,_0x171a12))return _0x171a12;if(_0x12e11e['JnlJW'](existsSync,_0x505874))return _0x505874;if(_0x12e11e[_0x6bfd80(0x21b)](existsSync,_0x2208e5)&&(_0x12e11e['swBtJ'](_0x2208e5,_0x2c32b5)&&_0x2208e5!==_0x4eee8c?!![]:hasLegacyProfileFiles(_0x2208e5)))return _0x2208e5;return _0x505874;}function _0xb415(){const _0x463cfc=['core','oZDYW','MGonA','browser','hTUHc','UZDRK','mKlGm','.json','5636aXyidW','EcIAX','clipboard-write','repeat','goDJu','ZBGFl','path','GwfHv','allowInsecureLocalhost','xXtit','aEDzd','QFvTa','1770PFTsjV','KdRLX','contextOptions','XkhXt','isArray','SXMdr','length','locations','cdpEndpoint','--disable-setuid-sandbox','eZXOQ','Environment\x20variable\x20','rgNvS','header','KQIII','--no-sandbox','TBcIh','njvSS','ZZzAH','tabs','LgrhX','string','nWiqZ','entries','fDSFz','6ISBLaW','join','storageState','VQcWY','GzPpU','dyWjn','setupHeaders','tcBJG','nMmEt','omNAk','hwRyS','boolean','local','HoQdi','fromEntries','749yPcPcr','includes','ENOENT','DHarj','extraHTTPHeaders','qVVCz','SUHYC','stringify','zxwro','lRrNr','ROAKx','ERrKa','warn','--allow-insecure-localhost','999xiBdKo','now','lMRIG','--unsafely-treat-insecure-origin-as-secure=http://localhost','61192HmjyLG','map','getuid','bGcgu','bPvLu','EAWWy','HHkCf','xRRXw','code','clipboard-read','dcIPU','headers','4701040StqwFN','564089WKZxFR','kbLzG','sessions','allow','BYimc','ILkob','IbxyK','51858BLFRpk','--allow-running-insecure-content','args','Failed\x20to\x20decrypt\x20auth\x20state:\x20','headless','JXUGe','userAgent','auth.json','location','chromium','35871737CyxutA','WgVNf','parse','push','1051431QgQAAY','env','KOETV','message','ranger-auth-'];_0xb415=function(){return _0x463cfc;};return _0xb415();}export function findExistingEnv(_0x39abce,_0x18485b){const _0x580ae8=_0x1b10,_0x265f63={'bPvLu':function(_0x173b15){return _0x173b15();},'dcIPU':'local','KsenX':'legacy','xXtit':function(_0x450fac,_0xaff2cd,_0x4d004a){return _0x450fac(_0xaff2cd,_0x4d004a);},'WgVNf':function(_0x4de10d,_0xd18b2b,_0x305057,_0x4a7730){return _0x4de10d(_0xd18b2b,_0x305057,_0x4a7730);},'KOETV':function(_0x43c18f,_0x56167b){return _0x43c18f(_0x56167b);},'dvJos':function(_0x4f9447,_0x18dcdd){return _0x4f9447===_0x18dcdd;}},_0x3ccf84=_0x265f63[_0x580ae8(0x1e9)](getRangerDir),_0x3c86d2=_0x18485b?.[_0x580ae8(0x227)]??['ci',_0x265f63['dcIPU'],_0x265f63['KsenX']],_0x343fb3=_0x265f63[_0x580ae8(0x21d)](join,_0x3ccf84,_0x265f63[_0x580ae8(0x1ef)]),_0x2e3274=join(_0x3ccf84,'ci'),_0x16961c=[{'location':'ci','path':join(_0x3ccf84,'ci',_0x39abce)},{'location':'local','path':_0x265f63[_0x580ae8(0x204)](join,_0x3ccf84,_0x580ae8(0x245),_0x39abce)},{'location':_0x265f63['KsenX'],'path':join(_0x3ccf84,_0x39abce)}];for(const _0x33e83b of _0x16961c){if(_0x3c86d2['includes'](_0x33e83b[_0x580ae8(0x201)])&&_0x265f63[_0x580ae8(0x209)](existsSync,_0x33e83b['path'])){if(_0x265f63['dvJos'](_0x33e83b['location'],'legacy')&&(_0x265f63['dvJos'](_0x33e83b['path'],_0x343fb3)||_0x33e83b[_0x580ae8(0x21a)]===_0x2e3274)&&!_0x265f63['KOETV'](hasLegacyProfileFiles,_0x33e83b['path']))continue;return{'path':_0x33e83b['path'],'location':_0x33e83b['location']};}}return null;}function hasLegacyProfileFiles(_0x2ca819){const _0x3eb094=_0x1b10,_0x358885={'DHarj':function(_0x110192,_0x3a66fe,_0x21cc39){return _0x110192(_0x3a66fe,_0x21cc39);},'zxwro':function(_0x53080c,_0x159d4e){return _0x53080c(_0x159d4e);},'goDJu':_0x3eb094(0x200),'kbLzG':function(_0xc39f55,_0x44e824){return _0xc39f55(_0x44e824);},'tgXVO':'auth.json.enc'};return existsSync(_0x358885[_0x3eb094(0x24b)](join,_0x2ca819,'settings.json'))||_0x358885[_0x3eb094(0x250)](existsSync,join(_0x2ca819,_0x358885[_0x3eb094(0x218)]))||_0x358885[_0x3eb094(0x1f3)](existsSync,_0x358885[_0x3eb094(0x24b)](join,_0x2ca819,_0x358885['tgXVO']));}export function isEnvCi(_0x51093c){const _0x180357=_0x1b10,_0x216a7d={'dyWjn':function(_0x4605c2,_0xd71ce1){return _0x4605c2(_0xd71ce1);},'COtDp':function(_0x6c281f,_0x2e02e7,_0x416e85,_0x2e3e77){return _0x6c281f(_0x2e02e7,_0x416e85,_0x2e3e77);},'rgNvS':function(_0x1f78d4){return _0x1f78d4();}};return _0x216a7d[_0x180357(0x23e)](existsSync,_0x216a7d['COtDp'](join,_0x216a7d[_0x180357(0x22c)](getRangerDir),'ci',_0x51093c));}function _0x1b10(_0x5c0468,_0x16ba50){_0x5c0468=_0x5c0468-0x1e1;const _0xb415b6=_0xb415();let _0x1b1027=_0xb415b6[_0x5c0468];return _0x1b1027;}export async function cleanupTempFiles(_0x32170b){const _0x2a0ff1=_0x1b10,_0x1a3a37={'XkhXt':function(_0x23b77f,_0x1e3015){return _0x23b77f!==_0x1e3015;}},_0x2dd967=[_0x32170b['tempAuthPath'],_0x32170b['configPath']]['filter'](Boolean);await Promise['all'](_0x2dd967[_0x2a0ff1(0x1e6)](_0x253bf0=>unlink(_0x253bf0)['catch'](_0x2ef73b=>{const _0x4dc554=_0x2a0ff1;_0x1a3a37[_0x4dc554(0x223)](_0x2ef73b[_0x4dc554(0x1ed)],_0x4dc554(0x24a))&&console[_0x4dc554(0x254)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x253bf0+':',_0x2ef73b[_0x4dc554(0x20a)]);})));}export function getSettingsPath(_0xa5179a){const _0x7e9f09=_0x1b10,_0xdaba38={'vmaSX':function(_0x2dc8c7,_0x2a4746,_0x140be7){return _0x2dc8c7(_0x2a4746,_0x140be7);},'KdRLX':function(_0x43dd33,_0x5d52e8){return _0x43dd33(_0x5d52e8);}};return _0xdaba38['vmaSX'](join,_0xdaba38[_0x7e9f09(0x221)](getEnvDir,_0xa5179a),'settings.json');}export async function loadSettings(_0x19bb63){const _0x10710d=_0x1b10,_0x3af554={'GzPpU':function(_0x4ba560,_0x24d95d,_0x3ce3b1){return _0x4ba560(_0x24d95d,_0x3ce3b1);}},_0x469576=getSettingsPath(_0x19bb63);if(!existsSync(_0x469576))return{};try{const _0x30b5d6=await _0x3af554[_0x10710d(0x23d)](readFile,_0x469576,'utf-8');return JSON[_0x10710d(0x205)](_0x30b5d6);}catch{return{};}}export async function saveSettings(_0x325b98,_0x3b713e){const _0x13fa1c=_0x1b10,_0x5630a4={'MWyGk':function(_0x550470,_0x20c45e){return _0x550470(_0x20c45e);},'HHkCf':function(_0x1ea74d,_0x474ca0){return _0x1ea74d(_0x474ca0);},'omNAk':function(_0x4399b0,_0x5e2218,_0x50cee5){return _0x4399b0(_0x5e2218,_0x50cee5);},'tcBJG':function(_0x45d3f5,_0x5ca02d,_0x541c33){return _0x45d3f5(_0x5ca02d,_0x541c33);}},_0x5ae702=_0x5630a4['MWyGk'](getSettingsPath,_0x325b98),_0xc2234f=dirname(_0x5ae702);!_0x5630a4[_0x13fa1c(0x1eb)](existsSync,_0xc2234f)&&await _0x5630a4[_0x13fa1c(0x242)](mkdir,_0xc2234f,{'recursive':!![]}),await _0x5630a4[_0x13fa1c(0x240)](writeFile,_0x5ae702,JSON['stringify'](_0x3b713e,null,0x2));}export function resolveEnvVars(_0x57fec9){const _0x59a353=_0x1b10,_0x4c9f5e={'nTbkz':function(_0x4e59e9,_0x106189){return _0x4e59e9===_0x106189;},'EcIAX':function(_0x297cc3,_0xa6c293){return _0x297cc3===_0xa6c293;}};if(_0x4c9f5e['nTbkz'](typeof _0x57fec9,_0x59a353(0x235)))return _0x57fec9['replace'](/\$\{(\w+)\}/g,(_0x22ffc5,_0x17d6cd)=>{const _0x1a9da0=_0x59a353,_0x343e2b=process[_0x1a9da0(0x208)][_0x17d6cd];if(_0x343e2b===undefined)throw new Error(_0x1a9da0(0x22b)+_0x17d6cd+'\x20is\x20not\x20set');return _0x343e2b;});if(Array[_0x59a353(0x224)](_0x57fec9))return _0x57fec9['map'](resolveEnvVars);if(_0x57fec9&&_0x4c9f5e[_0x59a353(0x215)](typeof _0x57fec9,'object'))return Object[_0x59a353(0x247)](Object[_0x59a353(0x237)](_0x57fec9)[_0x59a353(0x1e6)](([_0x7e5465,_0x1c2108])=>[_0x7e5465,resolveEnvVars(_0x1c2108)]));return _0x57fec9;}const isRecord=_0x53e661=>typeof _0x53e661==='object'&&_0x53e661!==null&&!Array['isArray'](_0x53e661),asRecord=_0x495cf4=>isRecord(_0x495cf4)?_0x495cf4:undefined,mergeHeaders=(_0x536e19,_0x186f1e)=>{const _0x41a451=_0x1b10,_0x37f804={'uskyd':function(_0x1a5443,_0x1a521e){return _0x1a5443??_0x1a521e;},'ILkob':function(_0x396e8e,_0x5e86dd){return _0x396e8e??_0x5e86dd;}},_0x148de2={..._0x37f804['uskyd'](_0x536e19,{}),..._0x37f804[_0x41a451(0x1f7)](_0x186f1e,{})};return Object['keys'](_0x148de2)['length']?_0x148de2:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x1ee84c(0x1fa),_0x1ee84c(0x1e4),_0x1ee84c(0x255)];export function buildBrowserOptionsFromSettings(_0x534b42,_0x243599={}){const _0x5462aa=_0x1ee84c,_0x115f45={'lMRIG':function(_0x1c3602,_0xb83b3){return _0x1c3602(_0xb83b3);},'TBcIh':function(_0x2a9147,_0xd544eb){return _0x2a9147(_0xd544eb);},'oZDYW':_0x5462aa(0x244),'Pdgrp':function(_0x2ab922,_0x23635e){return _0x2ab922===_0x23635e;},'ZBGFl':function(_0x1ec33d,_0xadc5dc){return _0x1ec33d(_0xadc5dc);}},_0x114b74=_0x115f45[_0x5462aa(0x1e3)](asRecord,_0x534b42[_0x5462aa(0x20f)]),_0xf8efc0={..._0x115f45[_0x5462aa(0x230)](asRecord,_0x114b74?.['launchOptions'])??{}};typeof _0x243599['headless']===_0x115f45[_0x5462aa(0x20d)]&&(_0xf8efc0['headless']=_0x243599['headless']);if(_0x534b42['safeMode']){const _0xb75eaa=_0xf8efc0['args']??[],_0x356ae0=SAFE_MODE_ARGS['filter'](_0x1e73b7=>!_0xb75eaa[_0x5462aa(0x249)](_0x1e73b7));_0xf8efc0['args']=[..._0xb75eaa,..._0x356ae0];}if(_0x534b42[_0x5462aa(0x21c)]){const _0x2ad07c=_0xf8efc0['args']??[],_0x40c0be=ALLOW_LOCALHOST_ARGS['filter'](_0x4e6aaa=>!_0x2ad07c['includes'](_0x4e6aaa));_0xf8efc0[_0x5462aa(0x1fb)]=[..._0x2ad07c,..._0x40c0be];}const _0x82ead6={...asRecord(_0x114b74?.[_0x5462aa(0x222)])??{}};_0x82ead6['ignoreHTTPSErrors']=!![];_0x115f45['Pdgrp'](typeof _0x534b42[_0x5462aa(0x1ff)],'string')&&(_0x82ead6['userAgent']=_0x534b42['userAgent']);const _0x163068=mergeHeaders(asRecord(_0x82ead6[_0x5462aa(0x24c)]),_0x115f45[_0x5462aa(0x219)](asRecord,_0x534b42[_0x5462aa(0x1f0)]));return _0x163068?_0x82ead6['extraHTTPHeaders']=_0x163068:delete _0x82ead6['extraHTTPHeaders'],_0x243599['storageStatePath']&&(_0x82ead6['storageState']=_0x243599['storageStatePath']),{'launchOptions':_0xf8efc0,'contextOptions':_0x82ead6};}export async function buildPlaywrightConfig(_0x2c798c,_0x11183f,_0x74707e,_0x570c7f){const _0x11b2fd=_0x1ee84c,_0x4f7ae5={'fxEPU':_0x11b2fd(0x229),'zdidv':'chromium','EBjQN':'auth.json','mKlGm':function(_0x28dd1c,_0x1bdbc0){return _0x28dd1c(_0x1bdbc0);},'nMmEt':function(_0x20fce6){return _0x20fce6();},'sknSN':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','LgrhX':function(_0x3d5010,_0x14ee94,_0x5f2225){return _0x3d5010(_0x14ee94,_0x5f2225);},'kWGee':function(_0x5035cd){return _0x5035cd();},'njvSS':_0x11b2fd(0x20c),'EAWWy':_0x11b2fd(0x233),'PUoOD':'vision','KQIII':_0x11b2fd(0x1f5),'ROAKx':function(_0x5b2a17,_0x801587){return _0x5b2a17===_0x801587;},'IQLPE':function(_0x250e89,_0x3ca2da){return _0x250e89(_0x3ca2da);}},_0x3d85a1=getEnvDir(_0x11183f),_0x23c33b=join(_0x3d85a1,'auth.json.enc'),_0x343312=join(_0x3d85a1,_0x4f7ae5['EBjQN']);let _0x1de17f,_0x246ae9;if(_0x4f7ae5[_0x11b2fd(0x212)](existsSync,_0x23c33b))try{const _0x4f20f8=await _0x4f7ae5[_0x11b2fd(0x241)](getToken);if(!_0x4f20f8)throw new Error(_0x4f7ae5['sknSN']);const _0x26657d=await _0x4f7ae5[_0x11b2fd(0x212)](readFile,_0x23c33b),_0x33b999=_0x4f7ae5[_0x11b2fd(0x234)](decrypt,_0x26657d,_0x4f20f8);_0x246ae9=_0x4f7ae5['LgrhX'](join,_0x4f7ae5['nMmEt'](tmpdir),_0x11b2fd(0x20b)+Date[_0x11b2fd(0x1e2)]()+'.json'),await writeFile(_0x246ae9,_0x33b999),_0x1de17f=_0x246ae9;}catch(_0x3ee7ff){const _0x110814=_0x3ee7ff instanceof Error?_0x3ee7ff['message']:String(_0x3ee7ff);throw new Error(_0x11b2fd(0x1fc)+_0x110814);}else _0x4f7ae5[_0x11b2fd(0x212)](existsSync,_0x343312)&&(_0x1de17f=_0x343312);const _0x455cbb=_0x74707e||_0x4f7ae5[_0x11b2fd(0x241)](randomUUID),_0x497bfd=join(_0x4f7ae5['kWGee'](getRangerDir),'sessions',_0x455cbb),_0x36ac09=Boolean(_0x2c798c[_0x11b2fd(0x228)]),_0x137c67=_0x36ac09?{'browserName':'chromium','cdpEndpoint':_0x2c798c[_0x11b2fd(0x228)]}:((()=>{const _0x4c6e6d=_0x11b2fd,{launchOptions:_0x34c3a3,contextOptions:_0x31c7bb}=buildBrowserOptionsFromSettings(_0x2c798c,{'headless':_0x570c7f?![]:_0x2c798c[_0x4c6e6d(0x1fd)]??!![],'storageStatePath':_0x1de17f});if(process['getuid']?.()===0x0){const _0x262d76=['--no-sandbox',_0x4f7ae5['fxEPU']],_0x4f0a0b=_0x34c3a3[_0x4c6e6d(0x1fb)]??[],_0x557249=_0x262d76['filter'](_0x255b35=>!_0x4f0a0b['includes'](_0x255b35));_0x34c3a3['args']=[..._0x4f0a0b,..._0x557249];}return{'isolated':!![],'browserName':_0x4f7ae5['zdidv'],'launchOptions':_0x34c3a3,'contextOptions':{..._0x31c7bb,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x31f4ee={'name':_0x11183f,'browser':_0x137c67,'capabilities':[_0x4f7ae5[_0x11b2fd(0x231)],_0x4f7ae5[_0x11b2fd(0x1ea)],'install','pdf',_0x4f7ae5['PUoOD']],'imageResponses':_0x4f7ae5[_0x11b2fd(0x22e)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x497bfd};if(!_0x36ac09){const _0x45a67f=_0x31f4ee['browser'],_0x47ff8d=_0x45a67f[_0x11b2fd(0x222)];if(_0x47ff8d[_0x11b2fd(0x1ff)]===undefined)delete _0x47ff8d['userAgent'];if(_0x4f7ae5[_0x11b2fd(0x252)](_0x47ff8d[_0x11b2fd(0x23b)],undefined))delete _0x47ff8d[_0x11b2fd(0x23b)];}const _0x2f4f89=join(_0x4f7ae5['nMmEt'](tmpdir),'ranger-config');!_0x4f7ae5['IQLPE'](existsSync,_0x2f4f89)&&await mkdir(_0x2f4f89,{'recursive':!![]});const _0x35d9c5=join(_0x2f4f89,_0x11183f+'-'+Date[_0x11b2fd(0x1e2)]()+_0x11b2fd(0x213));return await _0x4f7ae5[_0x11b2fd(0x234)](writeFile,_0x35d9c5,JSON[_0x11b2fd(0x24f)](_0x31f4ee,null,0x2)),{'configPath':_0x35d9c5,'tempAuthPath':_0x246ae9};}export async function buildPlaywrightCliConfig(_0x53c536,_0x31e087,_0x225814,_0x27eb33){const _0x533adf=_0x1ee84c,_0x5b070d={'ERrKa':function(_0x3f4464,_0x320995){return _0x3f4464===_0x320995;},'aEDzd':_0x533adf(0x229),'IbxyK':_0x533adf(0x202),'xvvjX':_0x533adf(0x216),'pzoyK':function(_0x1d745d,_0xdb51a5,_0xc4288d){return _0x1d745d(_0xdb51a5,_0xc4288d);},'OZCjZ':'auth.json.enc','CBogF':function(_0x2a4b24){return _0x2a4b24();},'bjJvm':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','hTUHc':function(_0x518c75,_0x2c350d){return _0x518c75(_0x2c350d);},'imrBX':function(_0x282642,_0x124167,_0x991dce){return _0x282642(_0x124167,_0x991dce);},'nWiqZ':function(_0x2ac7bc){return _0x2ac7bc();},'QFvTa':function(_0x3d64e0,_0x2a9b33){return _0x3d64e0(_0x2a9b33);},'JXUGe':_0x533adf(0x1f4),'bGcgu':'file','KFfJl':'none','VQcWY':function(_0x1377f5){return _0x1377f5();},'MGonA':'ranger-config','QFnGJ':function(_0x29135d,_0x59899a,_0x26de71){return _0x29135d(_0x59899a,_0x26de71);},'HoQdi':function(_0x18290d,_0x4eb76d,_0x1c3b19){return _0x18290d(_0x4eb76d,_0x1c3b19);}},_0x5c2322=getEnvDir(_0x31e087),_0x52df14=_0x5b070d['pzoyK'](join,_0x5c2322,_0x5b070d['OZCjZ']),_0x864536=join(_0x5c2322,_0x533adf(0x200));let _0x4ba31a,_0x33d9f2;if(existsSync(_0x52df14))try{const _0x4878a8=await _0x5b070d['CBogF'](getToken);if(!_0x4878a8)throw new Error(_0x5b070d['bjJvm']);const _0x5f3e28=await _0x5b070d[_0x533adf(0x210)](readFile,_0x52df14),_0x2108f2=_0x5b070d['imrBX'](decrypt,_0x5f3e28,_0x4878a8);_0x33d9f2=join(_0x5b070d[_0x533adf(0x236)](tmpdir),_0x533adf(0x20b)+Date['now']()+_0x533adf(0x213)),await writeFile(_0x33d9f2,_0x2108f2),_0x4ba31a=_0x33d9f2;}catch(_0x49fdd5){const _0x25ccd8=_0x49fdd5 instanceof Error?_0x49fdd5['message']:String(_0x49fdd5);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x25ccd8);}else _0x5b070d[_0x533adf(0x21f)](existsSync,_0x864536)&&(_0x4ba31a=_0x864536);const _0x4f363a=_0x225814||_0x5b070d['nWiqZ'](randomUUID),_0x57b308=join(getRangerDir(),_0x5b070d[_0x533adf(0x1fe)],_0x4f363a),_0x23828a=_0x5b070d['hTUHc'](Boolean,_0x53c536[_0x533adf(0x228)]),_0x143ff5=_0x23828a?{'browserName':_0x5b070d[_0x533adf(0x1f8)],'cdpEndpoint':_0x53c536[_0x533adf(0x228)]}:((()=>{const _0x10d171=_0x533adf,{launchOptions:_0x5d4a7a,contextOptions:_0x5bf6a8}=buildBrowserOptionsFromSettings(_0x53c536,{'headless':_0x27eb33?![]:_0x53c536[_0x10d171(0x1fd)]??!![],'storageStatePath':_0x4ba31a});if(_0x5b070d[_0x10d171(0x253)](process[_0x10d171(0x1e7)]?.(),0x0)){const _0x3efdb5=[_0x10d171(0x22f),_0x5b070d[_0x10d171(0x21e)]],_0x599fa2=_0x5d4a7a[_0x10d171(0x1fb)]??[],_0x701687=_0x3efdb5['filter'](_0x10086f=>!_0x599fa2['includes'](_0x10086f));_0x5d4a7a[_0x10d171(0x1fb)]=[..._0x599fa2,..._0x701687];}return{'isolated':!![],'browserName':_0x5b070d[_0x10d171(0x1f8)],'launchOptions':_0x5d4a7a,'contextOptions':{..._0x5bf6a8,'permissions':[_0x10d171(0x1ee),_0x5b070d['xvvjX']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x23828a){const _0x306aba=_0x143ff5[_0x533adf(0x222)];if(_0x306aba['userAgent']===undefined)delete _0x306aba['userAgent'];if(_0x5b070d[_0x533adf(0x253)](_0x306aba['storageState'],undefined))delete _0x306aba[_0x533adf(0x23b)];}const _0x29b012={'browser':_0x143ff5,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x57b308,'outputMode':_0x5b070d[_0x533adf(0x1e8)],'codegen':_0x5b070d['KFfJl']},_0x56f3ee=join(_0x5b070d[_0x533adf(0x23c)](tmpdir),_0x5b070d[_0x533adf(0x20e)]);!_0x5b070d[_0x533adf(0x210)](existsSync,_0x56f3ee)&&await _0x5b070d['QFnGJ'](mkdir,_0x56f3ee,{'recursive':!![]});const _0x1fd910=_0x5b070d[_0x533adf(0x246)](join,_0x56f3ee,_0x31e087+'-'+Date[_0x533adf(0x1e2)]()+'-cli.json');return await writeFile(_0x1fd910,JSON[_0x533adf(0x24f)](_0x29b012,null,0x2)),{'configPath':_0x1fd910,'tempAuthPath':_0x33d9f2};}export function getNestedValue(_0x5c6954,_0x1d1969){const _0x4ea6b0=_0x1ee84c,_0x17b30f={'ajJHx':function(_0x2398bb,_0x3843c5){return _0x2398bb===_0x3843c5;},'hwRyS':function(_0x3c7765,_0x333c96){return _0x3c7765!==_0x333c96;}},_0x3b6cbd=parseKeyPath(_0x1d1969);let _0x512273=_0x5c6954;for(const _0x335c8f of _0x3b6cbd){if(_0x512273===null||_0x17b30f['ajJHx'](_0x512273,undefined)||_0x17b30f[_0x4ea6b0(0x243)](typeof _0x512273,'object'))return undefined;_0x512273=_0x512273[_0x335c8f];}return _0x512273;}export function setNestedValue(_0x46898d,_0x4f5bed,_0x10db0e){const _0x2777eb=_0x1ee84c,_0x27e997={'eZXOQ':function(_0x1a9375,_0x1ee21c){return _0x1a9375(_0x1ee21c);},'lRrNr':function(_0x13c8ec,_0x10c793){return _0x13c8ec!==_0x10c793;},'fDSFz':function(_0x4dde94,_0x5580a8){return _0x4dde94-_0x5580a8;}},_0x3074c5=_0x27e997[_0x2777eb(0x22a)](parseKeyPath,_0x4f5bed);let _0x483ef4=_0x46898d;for(let _0x1f10ce=0x0;_0x1f10ce<_0x3074c5[_0x2777eb(0x226)]-0x1;_0x1f10ce++){const _0x580398=_0x3074c5[_0x1f10ce];(!(_0x580398 in _0x483ef4)||_0x27e997[_0x2777eb(0x251)](typeof _0x483ef4[_0x580398],'object'))&&(_0x483ef4[_0x580398]={}),_0x483ef4=_0x483ef4[_0x580398];}_0x483ef4[_0x3074c5[_0x27e997[_0x2777eb(0x238)](_0x3074c5[_0x2777eb(0x226)],0x1)]]=_0x10db0e;}export function deleteNestedValue(_0xd73801,_0x22f44d){const _0x5c742c=_0x1ee84c,_0x5a7623={'RxhVj':function(_0x4acb23,_0x499f9d){return _0x4acb23(_0x499f9d);},'SUHYC':function(_0x7de20d,_0x4a69ca){return _0x7de20d===_0x4a69ca;},'LJrfD':function(_0x465bc2,_0x5300b1){return _0x465bc2!==_0x5300b1;},'bkwuE':'object','qVVCz':function(_0x321a75,_0x2a36b2){return _0x321a75-_0x2a36b2;}},_0x17548c=_0x5a7623['RxhVj'](parseKeyPath,_0x22f44d);let _0x581439=_0xd73801;for(let _0x3d98ab=0x0;_0x3d98ab<_0x17548c['length']-0x1;_0x3d98ab++){if(_0x581439===null||_0x5a7623[_0x5c742c(0x24e)](_0x581439,undefined)||_0x5a7623['LJrfD'](typeof _0x581439,_0x5a7623['bkwuE']))return![];_0x581439=_0x581439[_0x17548c[_0x3d98ab]];}if(_0x5a7623['SUHYC'](_0x581439,null)||_0x581439===undefined||typeof _0x581439!==_0x5a7623['bkwuE'])return![];const _0x44b24c=_0x17548c[_0x5a7623[_0x5c742c(0x24d)](_0x17548c['length'],0x1)];if(_0x44b24c in _0x581439)return delete _0x581439[_0x44b24c],!![];return![];}function parseKeyPath(_0x3e23e1){const _0x1d81e6=_0x1ee84c,_0x4b353d={'UZDRK':function(_0x48513c,_0x2c4e21){return _0x48513c===_0x2c4e21;},'YqCtU':_0x1d81e6(0x22d),'aOGoO':'headers'},_0x359e24=_0x3e23e1['split']('.');return _0x4b353d[_0x1d81e6(0x211)](_0x359e24[0x0],_0x4b353d['YqCtU'])&&(_0x359e24[0x0]=_0x4b353d['aOGoO']),_0x4b353d['UZDRK'](_0x359e24[0x0],'setupHeader')&&(_0x359e24[0x0]=_0x1d81e6(0x23f)),_0x359e24;}export function formatSettings(_0x17ed59,_0x256e9c=0x0){const _0x30a71b=_0x1ee84c,_0x5e4248={'xRRXw':function(_0x3e5893,_0x33a387){return _0x3e5893!==_0x33a387;}},_0x6b8e9f=[],_0x2ffaa2='\x20\x20'[_0x30a71b(0x217)](_0x256e9c);for(const [_0x2f3551,_0x22090a]of Object[_0x30a71b(0x237)](_0x17ed59)){if(_0x22090a===undefined)continue;if(typeof _0x22090a==='object'&&_0x5e4248[_0x30a71b(0x1ec)](_0x22090a,null)){_0x6b8e9f['push'](''+_0x2ffaa2+_0x2f3551+':');for(const [_0x5845d2,_0x5f27c6]of Object['entries'](_0x22090a)){_0x6b8e9f['push'](_0x2ffaa2+'\x20\x20'+_0x5845d2+':\x20'+_0x5f27c6);}}else _0x6b8e9f[_0x30a71b(0x206)](''+_0x2ffaa2+_0x2f3551+':\x20'+_0x22090a);}return _0x6b8e9f[_0x30a71b(0x23a)]('\x0a');}
|
|
1
|
+
function _0x28da(_0x433856,_0x1b79f4){_0x433856=_0x433856-0x10a;const _0x148dc7=_0x148d();let _0x28da4b=_0x148dc7[_0x433856];return _0x28da4b;}const _0xf58312=_0x28da;function _0x148d(){const _0x506e8a=['XrmJd','aDjKD','28326OPLHcw','AWMCC','1617447sdMyBC','vTuDX','ranger-config','ignoreHTTPSErrors','includes','RPixX','auth.json.enc','NNQul','replace','PAvWa','xiUdm','setupHeader','530OEYAgl','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','--disable-setuid-sandbox','MmChD','--unsafely-treat-insecure-origin-as-secure=http://localhost','entries','core','krYpN','headless','location','getuid','map','2VJtAfv','local','string','wtXxd','7944vQXyYb','launchOptions','nokSa','pTXiM','--disable-web-security','3542diSyZh','107739biMEaq','args','ranger-auth-','ZMRnH','pxuEA','warn','\x20is\x20not\x20set','storageState','WzNui','chromium','contextOptions','pHawp','install','--allow-insecure-localhost','EIAdk','extraHTTPHeaders','userAgent','bvkTf','fwqkx','RRsGV','object','.json','boolean','allowInsecureLocalhost','join','iPrnD','515BzyTiJ','ENOENT','zurbw','rHIgZ','RLWXX','VgkKA','DIEhg','XGNSa','PNjaB','UUsXU','hSdGi','setupHeaders','NWxAv','qnbRh','vTjKl','push','configPath','tempAuthPath','message','settings.json','--no-sandbox','849090kGyYkN','RJnOQ','--disable-features=WebBluetooth','wunZO','filter','legacy','now','692016EwCoxK','eemJG','wmEna','stringify','auth.json','--allow-running-insecure-content','tabs','IHrkp','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','OkyEo','path','cLYNo','hHZxb','lDaiy','length','TaRHH','4245274osItYZ','clipboard-read'];_0x148d=function(){return _0x506e8a;};return _0x148d();}(function(_0x271c81,_0x84ceac){const _0x10dd97=_0x28da,_0x49d260=_0x271c81();while(!![]){try{const _0x10f15b=parseInt(_0x10dd97(0x11d))/0x1+-parseInt(_0x10dd97(0x152))/0x2*(-parseInt(_0x10dd97(0x13a))/0x3)+-parseInt(_0x10dd97(0x124))/0x4+parseInt(_0x10dd97(0x176))/0x5*(-parseInt(_0x10dd97(0x138))/0x6)+parseInt(_0x10dd97(0x15b))/0x7*(-parseInt(_0x10dd97(0x156))/0x8)+parseInt(_0x10dd97(0x15c))/0x9*(parseInt(_0x10dd97(0x146))/0xa)+-parseInt(_0x10dd97(0x134))/0xb;if(_0x10f15b===_0x84ceac)break;else _0x49d260['push'](_0x49d260['shift']());}catch(_0x2f4ba6){_0x49d260['push'](_0x49d260['shift']());}}}(_0x148d,0x73fa3));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}from'./rangerRoot.js';export function getEnvDir(_0x228490){const _0x23f8a5=_0x28da,_0x327db7={'HDLlA':function(_0x2d13ac){return _0x2d13ac();},'lTEWR':function(_0x1b95f3,_0x4f58a3,_0x1aa8d3,_0x3f038f){return _0x1b95f3(_0x4f58a3,_0x1aa8d3,_0x3f038f);},'XrmJd':_0x23f8a5(0x153),'vTuDX':function(_0x55e483,_0x11be70,_0x558850){return _0x55e483(_0x11be70,_0x558850);}},_0x3aa4d6=_0x327db7['HDLlA'](getRangerDir),_0x2d96c7=join(_0x3aa4d6,'ci',_0x228490),_0xdacacc=_0x327db7['lTEWR'](join,_0x3aa4d6,_0x327db7[_0x23f8a5(0x136)],_0x228490),_0x54dcb6=_0x327db7[_0x23f8a5(0x13b)](join,_0x3aa4d6,_0x228490),_0x4e30a5=join(_0x3aa4d6,_0x327db7['XrmJd']),_0x45a61f=_0x327db7['vTuDX'](join,_0x3aa4d6,'ci');if(existsSync(_0x2d96c7))return _0x2d96c7;if(existsSync(_0xdacacc))return _0xdacacc;if(existsSync(_0x54dcb6)&&(_0x54dcb6!==_0x4e30a5&&_0x54dcb6!==_0x45a61f?!![]:hasLegacyProfileFiles(_0x54dcb6)))return _0x54dcb6;return _0xdacacc;}export function findExistingEnv(_0x23ef97,_0x4d4ee2){const _0x1aa5c3=_0x28da,_0x1ab0a6={'EIAdk':_0x1aa5c3(0x153),'RRsGV':_0x1aa5c3(0x122),'ICKLU':function(_0x182c23,_0x52923e,_0x612714){return _0x182c23(_0x52923e,_0x612714);},'AiDyj':function(_0xbb0b8f,_0x49299e,_0x290b63){return _0xbb0b8f(_0x49299e,_0x290b63);},'cePfb':function(_0xeaefd0,_0xb57cd7,_0x24931c,_0xa8db07){return _0xeaefd0(_0xb57cd7,_0x24931c,_0xa8db07);},'eNAMo':function(_0x431ad4,_0x5950e6){return _0x431ad4(_0x5950e6);}},_0x416abf=getRangerDir(),_0x2fe6fc=_0x4d4ee2?.['locations']??['ci',_0x1ab0a6['EIAdk'],_0x1ab0a6[_0x1aa5c3(0x16f)]],_0x507235=_0x1ab0a6['ICKLU'](join,_0x416abf,_0x1aa5c3(0x153)),_0x25f7df=_0x1ab0a6['AiDyj'](join,_0x416abf,'ci'),_0x1f3212=[{'location':'ci','path':join(_0x416abf,'ci',_0x23ef97)},{'location':_0x1ab0a6[_0x1aa5c3(0x16a)],'path':_0x1ab0a6['cePfb'](join,_0x416abf,_0x1ab0a6[_0x1aa5c3(0x16a)],_0x23ef97)},{'location':_0x1aa5c3(0x122),'path':join(_0x416abf,_0x23ef97)}];for(const _0x19e9ac of _0x1f3212){if(_0x2fe6fc[_0x1aa5c3(0x13e)](_0x19e9ac['location'])&&existsSync(_0x19e9ac[_0x1aa5c3(0x12e)])){if(_0x19e9ac[_0x1aa5c3(0x14f)]===_0x1aa5c3(0x122)&&(_0x19e9ac['path']===_0x507235||_0x19e9ac[_0x1aa5c3(0x12e)]===_0x25f7df)&&!_0x1ab0a6['eNAMo'](hasLegacyProfileFiles,_0x19e9ac[_0x1aa5c3(0x12e)]))continue;return{'path':_0x19e9ac[_0x1aa5c3(0x12e)],'location':_0x19e9ac['location']};}}return null;}function hasLegacyProfileFiles(_0x2bc420){const _0x5ed013=_0x28da,_0xfbd23c={'CEIzb':function(_0x1a6d82,_0x3c45ff){return _0x1a6d82(_0x3c45ff);},'NWxAv':function(_0x548212,_0xd74e57,_0x5bd012){return _0x548212(_0xd74e57,_0x5bd012);},'hHZxb':_0x5ed013(0x11b),'lDaiy':_0x5ed013(0x128),'zKuGI':'auth.json.enc'};return _0xfbd23c['CEIzb'](existsSync,_0xfbd23c['NWxAv'](join,_0x2bc420,_0xfbd23c[_0x5ed013(0x130)]))||existsSync(_0xfbd23c[_0x5ed013(0x114)](join,_0x2bc420,_0xfbd23c[_0x5ed013(0x131)]))||_0xfbd23c['CEIzb'](existsSync,_0xfbd23c['NWxAv'](join,_0x2bc420,_0xfbd23c['zKuGI']));}export function isEnvCi(_0x2f20f9){const _0x2bbe5a=_0x28da,_0x3b0253={'AWMCC':function(_0x562145,_0x379e47,_0x2c6d27,_0x252c71){return _0x562145(_0x379e47,_0x2c6d27,_0x252c71);},'PNjaB':function(_0x2c001e){return _0x2c001e();}};return existsSync(_0x3b0253[_0x2bbe5a(0x139)](join,_0x3b0253[_0x2bbe5a(0x110)](getRangerDir),'ci',_0x2f20f9));}export async function cleanupTempFiles(_0x2427da){const _0x577b1a=_0x28da,_0x32374c={'mkViA':function(_0x2da892,_0x36ce62){return _0x2da892!==_0x36ce62;}},_0x5af835=[_0x2427da[_0x577b1a(0x119)],_0x2427da[_0x577b1a(0x118)]]['filter'](Boolean);await Promise['all'](_0x5af835['map'](_0x4a354f=>unlink(_0x4a354f)['catch'](_0x2188d7=>{const _0x3434cb=_0x577b1a;_0x32374c['mkViA'](_0x2188d7['code'],_0x3434cb(0x177))&&console[_0x3434cb(0x161)](_0x3434cb(0x12c)+_0x4a354f+':',_0x2188d7['message']);})));}export function getSettingsPath(_0x5d2367){const _0x4fee1c=_0x28da,_0x457a87={'wmEna':function(_0x1bcb35,_0x2160ae,_0x12fd6d){return _0x1bcb35(_0x2160ae,_0x12fd6d);}};return _0x457a87[_0x4fee1c(0x126)](join,getEnvDir(_0x5d2367),_0x4fee1c(0x11b));}export async function loadSettings(_0x2a4107){const _0x57b44a=_0x28da,_0x20f5d0={'fwqkx':function(_0x4e7381,_0x25f154){return _0x4e7381(_0x25f154);}},_0x1e4952=_0x20f5d0[_0x57b44a(0x16e)](getSettingsPath,_0x2a4107);if(!existsSync(_0x1e4952))return{};try{const _0x1c51b8=await readFile(_0x1e4952,'utf-8');return JSON['parse'](_0x1c51b8);}catch{return{};}}export async function saveSettings(_0xf6783f,_0x3027b7){const _0x16a0ad=_0x28da,_0x54976e={'eemJG':function(_0x357812,_0x1d38e2){return _0x357812(_0x1d38e2);},'xBCan':function(_0x451e28,_0x2dc1ad){return _0x451e28(_0x2dc1ad);},'aDjKD':function(_0x4e16ef,_0x2af08b){return _0x4e16ef(_0x2af08b);}},_0x4479fd=_0x54976e[_0x16a0ad(0x125)](getSettingsPath,_0xf6783f),_0x1dbc7b=_0x54976e['xBCan'](dirname,_0x4479fd);!_0x54976e[_0x16a0ad(0x137)](existsSync,_0x1dbc7b)&&await mkdir(_0x1dbc7b,{'recursive':!![]}),await writeFile(_0x4479fd,JSON['stringify'](_0x3027b7,null,0x2));}export function resolveEnvVars(_0x1c76ab){const _0x263579=_0x28da,_0x1b5ac9={'pxuEA':function(_0x2f2df2,_0x6a59a5){return _0x2f2df2===_0x6a59a5;},'EFRar':'string','DIEhg':_0x263579(0x170)};if(typeof _0x1c76ab===_0x1b5ac9['EFRar'])return _0x1c76ab[_0x263579(0x142)](/\$\{(\w+)\}/g,(_0x554700,_0x4075e6)=>{const _0x59edc2=_0x263579,_0x2a0193=process['env'][_0x4075e6];if(_0x1b5ac9[_0x59edc2(0x160)](_0x2a0193,undefined))throw new Error('Environment\x20variable\x20'+_0x4075e6+_0x59edc2(0x162));return _0x2a0193;});if(Array['isArray'](_0x1c76ab))return _0x1c76ab[_0x263579(0x151)](resolveEnvVars);if(_0x1c76ab&&_0x1b5ac9['pxuEA'](typeof _0x1c76ab,_0x1b5ac9[_0x263579(0x10e)]))return Object['fromEntries'](Object[_0x263579(0x14b)](_0x1c76ab)['map'](([_0x45390a,_0x20cc40])=>[_0x45390a,resolveEnvVars(_0x20cc40)]));return _0x1c76ab;}const isRecord=_0xb2f16f=>typeof _0xb2f16f===_0xf58312(0x170)&&_0xb2f16f!==null&&!Array['isArray'](_0xb2f16f),asRecord=_0x3499ff=>isRecord(_0x3499ff)?_0x3499ff:undefined,mergeHeaders=(_0x23c176,_0x405c42)=>{const _0x1035d4=_0xf58312,_0x39aa5b={..._0x23c176??{},..._0x405c42??{}};return Object['keys'](_0x39aa5b)[_0x1035d4(0x132)]?_0x39aa5b:undefined;},SAFE_MODE_ARGS=[_0xf58312(0x11f)],ALLOW_LOCALHOST_ARGS=[_0xf58312(0x15a),_0xf58312(0x129),_0xf58312(0x14a),_0xf58312(0x169)];export function buildBrowserOptionsFromSettings(_0x48ba90,_0x4b8999={}){const _0x14ab21=_0xf58312,_0x22ed19={'NNQul':function(_0x40eeec,_0x45f88a){return _0x40eeec(_0x45f88a);},'pTXiM':function(_0x5567f9,_0x109fdb){return _0x5567f9===_0x109fdb;},'uyPrX':_0x14ab21(0x172)},_0x5428b7=asRecord(_0x48ba90['browser']),_0x2af559={..._0x22ed19[_0x14ab21(0x141)](asRecord,_0x5428b7?.[_0x14ab21(0x157)])??{}};_0x22ed19[_0x14ab21(0x159)](typeof _0x4b8999[_0x14ab21(0x14e)],_0x22ed19['uyPrX'])&&(_0x2af559['headless']=_0x4b8999[_0x14ab21(0x14e)]);if(_0x48ba90['safeMode']){const _0x2461ff=_0x2af559['args']??[],_0x7a4693=SAFE_MODE_ARGS[_0x14ab21(0x121)](_0x5d7868=>!_0x2461ff[_0x14ab21(0x13e)](_0x5d7868));_0x2af559['args']=[..._0x2461ff,..._0x7a4693];}if(_0x48ba90[_0x14ab21(0x173)]){const _0x13437d=_0x2af559[_0x14ab21(0x15d)]??[],_0x31f6e8=ALLOW_LOCALHOST_ARGS['filter'](_0x2970c6=>!_0x13437d['includes'](_0x2970c6));_0x2af559[_0x14ab21(0x15d)]=[..._0x13437d,..._0x31f6e8];}const _0x3ca6cf={...asRecord(_0x5428b7?.[_0x14ab21(0x166)])??{}};_0x3ca6cf[_0x14ab21(0x13d)]=!![];typeof _0x48ba90[_0x14ab21(0x16c)]===_0x14ab21(0x154)&&(_0x3ca6cf[_0x14ab21(0x16c)]=_0x48ba90['userAgent']);const _0x16d84b=mergeHeaders(_0x22ed19['NNQul'](asRecord,_0x3ca6cf['extraHTTPHeaders']),asRecord(_0x48ba90['headers']));return _0x16d84b?_0x3ca6cf[_0x14ab21(0x16b)]=_0x16d84b:delete _0x3ca6cf['extraHTTPHeaders'],_0x4b8999['storageStatePath']&&(_0x3ca6cf[_0x14ab21(0x163)]=_0x4b8999['storageStatePath']),{'launchOptions':_0x2af559,'contextOptions':_0x3ca6cf};}export async function buildPlaywrightConfig(_0x53f3fa,_0xb49652,_0x3325b6,_0x64b7a8){const _0x242cf9=_0xf58312,_0x14a95e={'PHNXF':function(_0x2fe001,_0x29b518){return _0x2fe001===_0x29b518;},'bQoET':_0x242cf9(0x148),'xiUdm':_0x242cf9(0x165),'XGNSa':'clipboard-read','pHawp':function(_0x3d8431,_0x4156d7,_0x3b6828){return _0x3d8431(_0x4156d7,_0x3b6828);},'cLYNo':function(_0xc6e49b,_0x43208e,_0xc8490e){return _0xc6e49b(_0x43208e,_0xc8490e);},'krYpN':function(_0xefb88e,_0x486167){return _0xefb88e(_0x486167);},'TaRHH':function(_0x181360){return _0x181360();},'Wphvb':function(_0x59dbe0,_0x33c99e,_0x10bee8){return _0x59dbe0(_0x33c99e,_0x10bee8);},'wunZO':function(_0x32725a,_0x48f4eb,_0x59e246,_0x143609){return _0x32725a(_0x48f4eb,_0x59e246,_0x143609);},'RlshZ':function(_0x44c8c4){return _0x44c8c4();},'oRyaS':'sessions','MmChD':_0x242cf9(0x12a),'nokSa':function(_0x2d16c8,_0x1b857c){return _0x2d16c8===_0x1b857c;},'ZMRnH':function(_0x2f6a11,_0x3cb102,_0x3a78ea){return _0x2f6a11(_0x3cb102,_0x3a78ea);},'qnbRh':function(_0x3f87b2){return _0x3f87b2();},'bvkTf':function(_0x69fd66,_0x5a9ecf,_0x3a1b77){return _0x69fd66(_0x5a9ecf,_0x3a1b77);}},_0x3c4cb3=getEnvDir(_0xb49652),_0x581571=_0x14a95e[_0x242cf9(0x167)](join,_0x3c4cb3,_0x242cf9(0x140)),_0x344b91=_0x14a95e['cLYNo'](join,_0x3c4cb3,'auth.json');let _0x481690,_0x5580ab;if(_0x14a95e[_0x242cf9(0x14d)](existsSync,_0x581571))try{const _0x40a1d2=await getToken();if(!_0x40a1d2)throw new Error(_0x242cf9(0x147));const _0x4bdca8=await readFile(_0x581571),_0xc4466e=_0x14a95e[_0x242cf9(0x167)](decrypt,_0x4bdca8,_0x40a1d2);_0x5580ab=join(_0x14a95e[_0x242cf9(0x133)](tmpdir),'ranger-auth-'+Date[_0x242cf9(0x123)]()+_0x242cf9(0x171)),await _0x14a95e['Wphvb'](writeFile,_0x5580ab,_0xc4466e),_0x481690=_0x5580ab;}catch(_0x4e48c5){const _0x4cad27=_0x4e48c5 instanceof Error?_0x4e48c5['message']:_0x14a95e[_0x242cf9(0x14d)](String,_0x4e48c5);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x4cad27);}else _0x14a95e[_0x242cf9(0x14d)](existsSync,_0x344b91)&&(_0x481690=_0x344b91);const _0x5e7a38=_0x3325b6||randomUUID(),_0x532d92=_0x14a95e[_0x242cf9(0x120)](join,_0x14a95e['RlshZ'](getRangerDir),_0x14a95e['oRyaS'],_0x5e7a38),_0x47a8c2=Boolean(_0x53f3fa['cdpEndpoint']),_0x36c290=_0x47a8c2?{'browserName':'chromium','cdpEndpoint':_0x53f3fa['cdpEndpoint']}:((()=>{const _0x4dee23=_0x242cf9,{launchOptions:_0x121ed7,contextOptions:_0x5cc445}=buildBrowserOptionsFromSettings(_0x53f3fa,{'headless':_0x64b7a8?![]:_0x53f3fa[_0x4dee23(0x14e)]??!![],'storageStatePath':_0x481690});if(_0x14a95e['PHNXF'](process[_0x4dee23(0x150)]?.(),0x0)){const _0x1eab82=[_0x4dee23(0x11c),_0x14a95e['bQoET']],_0x30f29b=_0x121ed7[_0x4dee23(0x15d)]??[],_0xdfe213=_0x1eab82['filter'](_0xeb2d03=>!_0x30f29b['includes'](_0xeb2d03));_0x121ed7['args']=[..._0x30f29b,..._0xdfe213];}return{'isolated':!![],'browserName':_0x14a95e[_0x4dee23(0x144)],'launchOptions':_0x121ed7,'contextOptions':{..._0x5cc445,'permissions':[_0x14a95e[_0x4dee23(0x10f)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x5690cb={'name':_0xb49652,'browser':_0x36c290,'capabilities':[_0x242cf9(0x14c),_0x14a95e[_0x242cf9(0x149)],_0x242cf9(0x168),'pdf','vision'],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x532d92};if(!_0x47a8c2){const _0x37e06b=_0x5690cb['browser'],_0x258f04=_0x37e06b[_0x242cf9(0x166)];if(_0x14a95e[_0x242cf9(0x158)](_0x258f04['userAgent'],undefined))delete _0x258f04[_0x242cf9(0x16c)];if(_0x258f04['storageState']===undefined)delete _0x258f04['storageState'];}const _0x14bb9c=_0x14a95e[_0x242cf9(0x15f)](join,_0x14a95e[_0x242cf9(0x115)](tmpdir),_0x242cf9(0x13c));!_0x14a95e[_0x242cf9(0x14d)](existsSync,_0x14bb9c)&&await _0x14a95e[_0x242cf9(0x12f)](mkdir,_0x14bb9c,{'recursive':!![]});const _0x2428fe=_0x14a95e['Wphvb'](join,_0x14bb9c,_0xb49652+'-'+Date['now']()+'.json');return await _0x14a95e[_0x242cf9(0x16d)](writeFile,_0x2428fe,JSON[_0x242cf9(0x127)](_0x5690cb,null,0x2)),{'configPath':_0x2428fe,'tempAuthPath':_0x5580ab};}export async function buildPlaywrightCliConfig(_0x16afc9,_0x1a00ab,_0x1ea73e,_0x3e056a){const _0x49a281=_0xf58312,_0x220e83={'IHrkp':function(_0x448f1b,_0x2f6b94,_0x5e2901){return _0x448f1b(_0x2f6b94,_0x5e2901);},'ykoaT':function(_0x5a21fc,_0x4c5982){return _0x5a21fc===_0x4c5982;},'Fpqiv':'--no-sandbox','WzNui':_0x49a281(0x165),'fUfkq':_0x49a281(0x135),'PAvWa':'clipboard-write','zurbw':function(_0x3df74b,_0xe941ea){return _0x3df74b(_0xe941ea);},'RJnOQ':function(_0xa82186,_0x4c90a7,_0xe5fe7c){return _0xa82186(_0x4c90a7,_0xe5fe7c);},'rHIgZ':_0x49a281(0x128),'VgkKA':function(_0x3fcdc6,_0x2ed253){return _0x3fcdc6(_0x2ed253);},'RPixX':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','lVbFQ':function(_0x35a6e7,_0x1f129c,_0x42a4ee,_0x3affdd){return _0x35a6e7(_0x1f129c,_0x42a4ee,_0x3affdd);},'vTjKl':'sessions','wtXxd':function(_0x4a9727,_0xd2149e){return _0x4a9727===_0xd2149e;},'RLWXX':function(_0x75920b,_0x269eb3,_0x3887da){return _0x75920b(_0x269eb3,_0x3887da);},'OkyEo':'ranger-config','nLMZU':function(_0x22632e,_0x543c4e,_0x163cfc){return _0x22632e(_0x543c4e,_0x163cfc);},'vmzXt':function(_0x4dc360,_0xaa77d8,_0x5e5652){return _0x4dc360(_0xaa77d8,_0x5e5652);}},_0x37a8b9=_0x220e83['zurbw'](getEnvDir,_0x1a00ab),_0x4bff6b=join(_0x37a8b9,_0x49a281(0x140)),_0x3be91b=_0x220e83[_0x49a281(0x11e)](join,_0x37a8b9,_0x220e83[_0x49a281(0x10b)]);let _0x31353f,_0x28c840;if(_0x220e83['VgkKA'](existsSync,_0x4bff6b))try{const _0x4604a7=await getToken();if(!_0x4604a7)throw new Error(_0x220e83[_0x49a281(0x13f)]);const _0x5b343d=await _0x220e83[_0x49a281(0x10a)](readFile,_0x4bff6b),_0x1d0b4c=_0x220e83['RJnOQ'](decrypt,_0x5b343d,_0x4604a7);_0x28c840=join(tmpdir(),_0x49a281(0x15e)+Date['now']()+_0x49a281(0x171)),await writeFile(_0x28c840,_0x1d0b4c),_0x31353f=_0x28c840;}catch(_0x237df6){const _0x27009d=_0x237df6 instanceof Error?_0x237df6[_0x49a281(0x11a)]:String(_0x237df6);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x27009d);}else existsSync(_0x3be91b)&&(_0x31353f=_0x3be91b);const _0x26a4a2=_0x1ea73e||randomUUID(),_0x4b154b=_0x220e83['lVbFQ'](join,getRangerDir(),_0x220e83[_0x49a281(0x116)],_0x26a4a2),_0x428fff=_0x220e83[_0x49a281(0x10d)](Boolean,_0x16afc9['cdpEndpoint']),_0x10cc8b=_0x428fff?{'browserName':'chromium','cdpEndpoint':_0x16afc9['cdpEndpoint']}:((()=>{const _0xd3a7a4=_0x49a281,{launchOptions:_0x252143,contextOptions:_0x5a7174}=_0x220e83[_0xd3a7a4(0x12b)](buildBrowserOptionsFromSettings,_0x16afc9,{'headless':_0x3e056a?![]:_0x16afc9[_0xd3a7a4(0x14e)]??!![],'storageStatePath':_0x31353f});if(_0x220e83['ykoaT'](process['getuid']?.(),0x0)){const _0x247aa8=[_0x220e83['Fpqiv'],'--disable-setuid-sandbox'],_0x4e35db=_0x252143[_0xd3a7a4(0x15d)]??[],_0x170c6a=_0x247aa8[_0xd3a7a4(0x121)](_0x48ee9d=>!_0x4e35db[_0xd3a7a4(0x13e)](_0x48ee9d));_0x252143[_0xd3a7a4(0x15d)]=[..._0x4e35db,..._0x170c6a];}return{'isolated':!![],'browserName':_0x220e83[_0xd3a7a4(0x164)],'launchOptions':_0x252143,'contextOptions':{..._0x5a7174,'permissions':[_0x220e83['fUfkq'],_0x220e83[_0xd3a7a4(0x143)]],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x428fff){const _0x3db647=_0x10cc8b['contextOptions'];if(_0x3db647[_0x49a281(0x16c)]===undefined)delete _0x3db647['userAgent'];if(_0x220e83[_0x49a281(0x155)](_0x3db647['storageState'],undefined))delete _0x3db647['storageState'];}const _0x50b543={'browser':_0x10cc8b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4b154b,'outputMode':'file','codegen':'none'},_0xaf81d=_0x220e83[_0x49a281(0x10c)](join,tmpdir(),_0x220e83[_0x49a281(0x12d)]);!_0x220e83[_0x49a281(0x10a)](existsSync,_0xaf81d)&&await _0x220e83['nLMZU'](mkdir,_0xaf81d,{'recursive':!![]});const _0x289a89=join(_0xaf81d,_0x1a00ab+'-'+Date['now']()+'-cli.json');return await _0x220e83['vmzXt'](writeFile,_0x289a89,JSON[_0x49a281(0x127)](_0x50b543,null,0x2)),{'configPath':_0x289a89,'tempAuthPath':_0x28c840};}export function getNestedValue(_0x35cfe7,_0xfd8020){const _0x561e64=_0xf58312,_0x3af1ac={'iPrnD':function(_0x368afa,_0x1dbc3b){return _0x368afa(_0x1dbc3b);}},_0x46bd70=_0x3af1ac[_0x561e64(0x175)](parseKeyPath,_0xfd8020);let _0x6bf48b=_0x35cfe7;for(const _0x3978a6 of _0x46bd70){if(_0x6bf48b===null||_0x6bf48b===undefined||typeof _0x6bf48b!==_0x561e64(0x170))return undefined;_0x6bf48b=_0x6bf48b[_0x3978a6];}return _0x6bf48b;}export function setNestedValue(_0x1245c9,_0x4ceee6,_0x2c7e0f){const _0x4f096d=_0xf58312,_0x30c9b2={'hSdGi':_0x4f096d(0x170)},_0x414fc7=parseKeyPath(_0x4ceee6);let _0x48593e=_0x1245c9;for(let _0x382c76=0x0;_0x382c76<_0x414fc7[_0x4f096d(0x132)]-0x1;_0x382c76++){const _0x4ed259=_0x414fc7[_0x382c76];(!(_0x4ed259 in _0x48593e)||typeof _0x48593e[_0x4ed259]!==_0x30c9b2[_0x4f096d(0x112)])&&(_0x48593e[_0x4ed259]={}),_0x48593e=_0x48593e[_0x4ed259];}_0x48593e[_0x414fc7[_0x414fc7['length']-0x1]]=_0x2c7e0f;}export function deleteNestedValue(_0x4aa0eb,_0x990641){const _0x1065c2=_0xf58312,_0x5e35bb={'CBZRi':_0x1065c2(0x170),'UUsXU':function(_0x3bcd63,_0x566441){return _0x3bcd63===_0x566441;},'KNIDM':function(_0x325367,_0x5083fa){return _0x325367-_0x5083fa;}},_0x49f7f7=parseKeyPath(_0x990641);let _0xb865d4=_0x4aa0eb;for(let _0xe21038=0x0;_0xe21038<_0x49f7f7[_0x1065c2(0x132)]-0x1;_0xe21038++){if(_0xb865d4===null||_0xb865d4===undefined||typeof _0xb865d4!==_0x5e35bb['CBZRi'])return![];_0xb865d4=_0xb865d4[_0x49f7f7[_0xe21038]];}if(_0x5e35bb[_0x1065c2(0x111)](_0xb865d4,null)||_0x5e35bb[_0x1065c2(0x111)](_0xb865d4,undefined)||typeof _0xb865d4!==_0x5e35bb['CBZRi'])return![];const _0x15e750=_0x49f7f7[_0x5e35bb['KNIDM'](_0x49f7f7['length'],0x1)];if(_0x15e750 in _0xb865d4)return delete _0xb865d4[_0x15e750],!![];return![];}function parseKeyPath(_0x88a4b9){const _0x1b64db=_0xf58312,_0x3aaa64={'fJQjf':function(_0x3db8f5,_0x4db296){return _0x3db8f5===_0x4db296;}},_0x3b2a36=_0x88a4b9['split']('.');return _0x3aaa64['fJQjf'](_0x3b2a36[0x0],'header')&&(_0x3b2a36[0x0]='headers'),_0x3b2a36[0x0]===_0x1b64db(0x145)&&(_0x3b2a36[0x0]=_0x1b64db(0x113)),_0x3b2a36;}export function formatSettings(_0xbd836d,_0x14dc11=0x0){const _0x47c3cd=_0xf58312,_0x49c1cf={'TEVCI':function(_0x509cf6,_0x3c3da7){return _0x509cf6===_0x3c3da7;}},_0x631b0e=[],_0x44373b='\x20\x20'['repeat'](_0x14dc11);for(const [_0x15755b,_0x1b081a]of Object[_0x47c3cd(0x14b)](_0xbd836d)){if(_0x1b081a===undefined)continue;if(_0x49c1cf['TEVCI'](typeof _0x1b081a,_0x47c3cd(0x170))&&_0x1b081a!==null){_0x631b0e['push'](''+_0x44373b+_0x15755b+':');for(const [_0x5c0beb,_0x5b5fc8]of Object[_0x47c3cd(0x14b)](_0x1b081a)){_0x631b0e['push'](_0x44373b+'\x20\x20'+_0x5c0beb+':\x20'+_0x5b5fc8);}}else _0x631b0e[_0x47c3cd(0x117)](''+_0x44373b+_0x15755b+':\x20'+_0x1b081a);}return _0x631b0e[_0x47c3cd(0x174)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3c19(){const _0x431b15=['7282CCSFnt','189615JMqijM','3213591czVZnO','335190gvaksJ','4iPcIiB','1625LrnoUs','1832llHkqT','119QMGjde','22ZGewFm','12864fuFYFq','utf-8','89399AcAONC','6410bWTGWk','15831YKxipZ'];_0x3c19=function(){return _0x431b15;};return _0x3c19();}(function(_0x491f35,_0x343aad){const _0x55afb0=_0x38bd,_0x39b81c=_0x491f35();while(!![]){try{const _0x3f8a6e=parseInt(_0x55afb0(0x1db))/0x1*(parseInt(_0x55afb0(0x1e6))/0x2)+parseInt(_0x55afb0(0x1e0))/0x3*(-parseInt(_0x55afb0(0x1e2))/0x4)+-parseInt(_0x55afb0(0x1df))/0x5+parseInt(_0x55afb0(0x1e1))/0x6*(parseInt(_0x55afb0(0x1e5))/0x7)+parseInt(_0x55afb0(0x1e4))/0x8*(parseInt(_0x55afb0(0x1dd))/0x9)+-parseInt(_0x55afb0(0x1dc))/0xa*(parseInt(_0x55afb0(0x1de))/0xb)+-parseInt(_0x55afb0(0x1d9))/0xc*(parseInt(_0x55afb0(0x1e3))/0xd);if(_0x3f8a6e===_0x343aad)break;else _0x39b81c['push'](_0x39b81c['shift']());}catch(_0x3bf12f){_0x39b81c['push'](_0x39b81c['shift']());}}}(_0x3c19,0xa331b));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x38bd(_0x4e5ccf,_0x1b6f53){_0x4e5ccf=_0x4e5ccf-0x1d9;const _0x3c193d=_0x3c19();let _0x38bda5=_0x3c193d[_0x4e5ccf];return _0x38bda5;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x14dede){const _0x1dcd28=_0x38bd,_0x2f74ca={'BQkFS':'skills','ubuEk':function(_0x10b68f,_0x3c848d,_0x5f0673){return _0x10b68f(_0x3c848d,_0x5f0673);}},_0x4a9ae4=join(__dirname,'..','..',_0x2f74ca['BQkFS']),_0x1b7356=_0x2f74ca['ubuEk'](join,_0x4a9ae4,_0x14dede);try{return readFileSync(_0x1b7356,_0x1dcd28(0x1da));}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1c57e0=_0x30f9;(function(_0x1e1c19,_0x199cc4){const _0x3c79bc=_0x30f9,_0xe70935=_0x1e1c19();while(!![]){try{const _0x1bb64a=-parseInt(_0x3c79bc(0x134))/0x1+-parseInt(_0x3c79bc(0x136))/0x2+-parseInt(_0x3c79bc(0x13c))/0x3+-parseInt(_0x3c79bc(0x155))/0x4*(parseInt(_0x3c79bc(0x144))/0x5)+parseInt(_0x3c79bc(0x14a))/0x6+parseInt(_0x3c79bc(0x149))/0x7+parseInt(_0x3c79bc(0x142))/0x8*(parseInt(_0x3c79bc(0x151))/0x9);if(_0x1bb64a===_0x199cc4)break;else _0xe70935['push'](_0xe70935['shift']());}catch(_0x23a2e6){_0xe70935['push'](_0xe70935['shift']());}}}(_0x1221,0xd278e));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x1221(){const _0x47ce6b=['Hcodw','join','feature-tracker','project','8KFMckN','\x20\x20Removed\x20deprecated\x20skill:\x20','455ekCOur','EJnIC','isDirectory','e2e-test-recommender','filter','9035313sTYnZV','5072022KpIPNn','INjpK','wGhwP','SKILL.md','opencode','.md','GEXhm','18985581LWZGNJ','log','utf-8','\x20\x20Installed\x20skill:\x20','71468syLAKY','UBvjm','cbMpL','match','warn','bTLso','skills','533937ijVawf','claude','776474afGuZu','ERByH','bug-bash','endsWith','length','zfcKZ','2506320yMlnIF','\x20\x20Files:\x20'];_0x1221=function(){return _0x47ce6b;};return _0x1221();}import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=[_0x1c57e0(0x147),_0x1c57e0(0x138),_0x1c57e0(0x140)];function _0x30f9(_0x5f005d,_0xdfe4c7){_0x5f005d=_0x5f005d-0x12e;const _0x1221af=_0x1221();let _0x30f9a2=_0x1221af[_0x5f005d];return _0x30f9a2;}export async function installSkill(_0x1ea557,_0x5726f5={}){const _0x2d457b=_0x1c57e0,_0x114a8a={'Mrbou':_0x2d457b(0x141),'Hcodw':_0x2d457b(0x135),'GEXhm':function(_0x15a041){return _0x15a041();},'INjpK':function(_0x45f49e,_0x4edae6,_0x21f832){return _0x45f49e(_0x4edae6,_0x21f832);},'ERByH':function(_0x5c876a,_0xc1276b){return _0x5c876a(_0xc1276b);},'CZMmS':function(_0x1074a,_0x450775,_0xa957bc){return _0x1074a(_0x450775,_0xa957bc);},'SOHLe':_0x2d457b(0x14d),'wGhwP':function(_0x2ac901,_0x109c4c){return _0x2ac901&&_0x109c4c;},'ARHxA':function(_0x380488,_0x5dd47b){return _0x380488===_0x5dd47b;},'AwlGY':function(_0x5d78cf,_0x3b302b,_0x4e07b7){return _0x5d78cf(_0x3b302b,_0x4e07b7);},'cbMpL':_0x2d457b(0x153),'UBvjm':function(_0x54a989,_0x1479ca,_0x13ef57,_0x5172d6){return _0x54a989(_0x1479ca,_0x13ef57,_0x5172d6);},'zfcKZ':function(_0x45e413,_0x1e9303){return _0x45e413>_0x1e9303;}},{level:level=_0x114a8a['Mrbou'],cliVersion:_0x202934,platform:platform=_0x114a8a[_0x2d457b(0x13e)]}=_0x5726f5,_0x54375c=_0x114a8a[_0x2d457b(0x150)](getSourceSkillsDir),_0xeda8bb=_0x114a8a[_0x2d457b(0x14b)](join,_0x54375c,_0x1ea557),_0x5463d1=_0x114a8a['INjpK'](join,_0x54375c,_0x1ea557+_0x2d457b(0x14f)),_0x1fbf4a=existsSync(_0xeda8bb)&&_0x114a8a['ERByH'](statSync,_0xeda8bb)[_0x2d457b(0x146)]()&&existsSync(_0x114a8a['CZMmS'](join,_0xeda8bb,_0x114a8a['SOHLe'])),_0x35bc4b=existsSync(_0x5463d1);if(_0x114a8a[_0x2d457b(0x14c)](!_0x1fbf4a,!_0x35bc4b))return console[_0x2d457b(0x131)]('\x20\x20Skill\x20not\x20found:\x20'+_0x1ea557),![];const _0x110805=_0x114a8a['ARHxA'](platform,_0x2d457b(0x14e))?_0x114a8a['ERByH'](getOpencodeSkillsDir,level):getSkillsDir(level),_0x26d109=_0x114a8a['INjpK'](join,_0x110805,_0x1ea557);await mkdir(_0x26d109,{'recursive':!![]});let _0x1dd9df,_0xd2bd7d=[];if(_0x1fbf4a){const _0x386dd9=await readdir(_0xeda8bb),_0x2e6c45=_0x386dd9[_0x2d457b(0x148)](_0xbdc13=>_0xbdc13[_0x2d457b(0x139)]('.md'));for(const _0x2f8596 of _0x2e6c45){const _0x545bce=join(_0xeda8bb,_0x2f8596),_0x203d91=_0x114a8a['CZMmS'](join,_0x26d109,_0x2f8596);await copyFile(_0x545bce,_0x203d91),_0xd2bd7d['push'](_0x2f8596);}_0x1dd9df=await _0x114a8a['AwlGY'](readFile,_0x114a8a['INjpK'](join,_0xeda8bb,_0x114a8a['SOHLe']),_0x2d457b(0x153));}else{_0x1dd9df=await readFile(_0x5463d1,_0x114a8a[_0x2d457b(0x12f)]);const _0x431626=_0x114a8a[_0x2d457b(0x14b)](join,_0x26d109,_0x2d457b(0x14d));await _0x114a8a['UBvjm'](writeFile,_0x431626,_0x1dd9df,'utf-8'),_0xd2bd7d['push'](_0x2d457b(0x14d));}const {name:_0x58e259}=_0x114a8a[_0x2d457b(0x137)](parseFrontmatter,_0x1dd9df);return console[_0x2d457b(0x152)](_0x2d457b(0x154)+_0x58e259),console[_0x2d457b(0x152)]('\x20\x20Location:\x20'+_0x26d109),_0x114a8a[_0x2d457b(0x13b)](_0xd2bd7d[_0x2d457b(0x13a)],0x1)&&console['log'](_0x2d457b(0x13d)+_0xd2bd7d[_0x2d457b(0x13f)](',\x20')),_0x114a8a[_0x2d457b(0x12e)](logLocalAgentInstallation,_0x1ea557,{'skillDisplayName':_0x58e259,'installLevel':level},_0x202934)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x4db4cb=_0x1c57e0,_0x4f8f6a={'bTLso':_0x4db4cb(0x133)},_0x54b642=[join(__dirname,'..','..',_0x4f8f6a[_0x4db4cb(0x132)]),join(__dirname,'..','..','..',_0x4db4cb(0x133))];for(const _0xab2278 of _0x54b642){if(existsSync(_0xab2278))return _0xab2278;}return _0x54b642[0x0];}function parseFrontmatter(_0x1e5e3b){const _0x1d10af=_0x1c57e0,_0x4bc097={'ngpmX':'Invalid\x20skill\x20frontmatter'},_0x73f844=_0x1e5e3b[_0x1d10af(0x130)](/^---\n([\s\S]+?)\n---/);if(!_0x73f844)throw new Error(_0x4bc097['ngpmX']);const _0x473d1b=_0x73f844[0x1],_0x424fe0=_0x473d1b['match'](/name:\s*(.+)/),_0x20cb4d=_0x473d1b[_0x1d10af(0x130)](/description:\s*"?(.+?)"?\n/);return{'name':_0x424fe0?.[0x1]['trim']()||'','description':_0x20cb4d?.[0x1]['trim']()||''};}export async function removeSkill(_0x10ccd8,_0x2a1c28){const _0x49fbc6=_0x1c57e0,_0x17e89f={'WWqUI':function(_0x40d3f4,_0x3f84dd){return _0x40d3f4(_0x3f84dd);},'EJnIC':function(_0x1171a4,_0x13f7fe,_0x5ce4e5){return _0x1171a4(_0x13f7fe,_0x5ce4e5);}},_0x3e224c=_0x17e89f['WWqUI'](getSkillsDir,_0x2a1c28),_0x1afd12=join(_0x3e224c,_0x10ccd8);if(!_0x17e89f['WWqUI'](existsSync,_0x1afd12))return![];try{return await _0x17e89f[_0x49fbc6(0x145)](rm,_0x1afd12,{'recursive':!![]}),console['log'](_0x49fbc6(0x143)+_0x10ccd8),!![];}catch{return console[_0x49fbc6(0x131)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x10ccd8),![];}}
|