@ranger-testing/ranger-cli 2.4.0 → 2.4.2
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
|
-
|
|
1
|
+
(function(_0x3ba358,_0x31de9c){const _0x16d54b=_0x44aa,_0x2482b8=_0x3ba358();while(!![]){try{const _0x33b1c9=parseInt(_0x16d54b(0xa3))/0x1+-parseInt(_0x16d54b(0x9d))/0x2+parseInt(_0x16d54b(0x91))/0x3*(parseInt(_0x16d54b(0xaa))/0x4)+-parseInt(_0x16d54b(0xa4))/0x5*(-parseInt(_0x16d54b(0x9b))/0x6)+-parseInt(_0x16d54b(0x9a))/0x7+-parseInt(_0x16d54b(0xbe))/0x8+parseInt(_0x16d54b(0xa7))/0x9*(-parseInt(_0x16d54b(0xc1))/0xa);if(_0x33b1c9===_0x31de9c)break;else _0x2482b8['push'](_0x2482b8['shift']());}catch(_0x47b2b7){_0x2482b8['push'](_0x2482b8['shift']());}}}(_0x203c,0x3fc67));function _0x44aa(_0x4b61ff,_0x50ae06){_0x4b61ff=_0x4b61ff-0x90;const _0x203c6c=_0x203c();let _0x44aa7a=_0x203c6c[_0x4b61ff];return _0x44aa7a;}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x5247b4){const _0x1bd64a=_0x44aa,_0x983c56={'ETvyx':'sha256'},_0x5caff4=createHash(_0x983c56[_0x1bd64a(0xb1)])['update'](_0x5247b4)[_0x1bd64a(0xaf)](_0x1bd64a(0xb4))[_0x1bd64a(0xb7)](0x0,0xc);return'rg-'+_0x5caff4;}function shellQuote(_0x41d738){const _0x570bc3=_0x44aa;return'\x27'+_0x41d738[_0x570bc3(0xae)](/'/g,_0x570bc3(0xa6))+'\x27';}function _0x203c(){const _0x58adca=['replace','digest','toString','ETvyx','oBOhY','kill','hex','match','data','slice','stdout','timed\x20out\x20after\x20','\x0astdout:\x20','MUfzG','kIGTO','env','1702024zMrIfY','timeoutMs','UxxEU','305470QNQtDl','TQQBz','pipe','configPath','args','exited\x20with\x20code=','62541mzhkjl','izLQz','AoTWp','CwxLz','bash_command','npx','-s=','command','yhNyP','1175006VsXkgH','6BtkVyX','SeLhV','212530HwSAZg','null','trim','etJWG','RrSrW','LaPBA','519734lKYDty','2048855DYPjBS','cmd','\x27\x5c\x27\x27','207tOnxhh','string','...','100AgKdqq','length','SIGKILL','--config'];_0x203c=function(){return _0x58adca;};return _0x203c();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x53f408){return SAFE_SHELL_TOKEN['test'](_0x53f408)?_0x53f408:shellQuote(_0x53f408);}export function buildPlaywrightCliInvocation(_0x43f05b,_0xe13e20,_0x313233){const _0x4e6401=_0x44aa,_0x30d319={'AoTWp':function(_0x2ee66e,_0xe58abd){return _0x2ee66e(_0xe58abd);},'oBOhY':_0x4e6401(0xad),'oFjOC':_0x4e6401(0x96),'kIGTO':function(_0x433239,_0x583425){return _0x433239(_0x583425);},'RrSrW':function(_0x5e9fd3,_0x598072){return _0x5e9fd3(_0x598072);}},_0x557ee5=_0x30d319[_0x4e6401(0x93)](toPlaywrightCliSessionKey,_0x43f05b),[_0xdde9e8='unknown']=_0x313233,_0x5dbac8=[PLAYWRIGHT_CLI_BINARY,_0x4e6401(0x97)+_0x557ee5,_0x30d319[_0x4e6401(0xb2)],_0xe13e20,..._0x313233];return{'command':_0x30d319['oFjOC'],'args':_0x5dbac8,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x4e6401(0x97)+_0x30d319[_0x4e6401(0xbc)](quoteShellArg,_0x557ee5),'--config',_0x30d319[_0x4e6401(0xa1)](quoteShellArg,_0xe13e20),..._0x313233['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0xdde9e8};}export function buildPlaywrightCliCommandPrefix(_0x86c53b,_0x9146){const _0x2a7970=_0x44aa,_0x19b435={'izLQz':function(_0x44ea12,_0x51e8a6){return _0x44ea12(_0x51e8a6);},'MUfzG':_0x2a7970(0x96),'bbWxN':'--config'},_0x3819b6=_0x19b435[_0x2a7970(0x92)](toPlaywrightCliSessionKey,_0x86c53b);return[_0x19b435[_0x2a7970(0xbb)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x3819b6),_0x19b435['bbWxN'],_0x19b435[_0x2a7970(0x92)](quoteShellArg,_0x9146)]['join']('\x20');}function truncateOutput(_0x23d620,_0x1bcb69=0x7d0){const _0x4cbf19=_0x44aa,_0x29b398={'irsDY':function(_0x1efb7b,_0x59365e){return _0x1efb7b+_0x59365e;},'LaPBA':_0x4cbf19(0xa9)};return _0x23d620[_0x4cbf19(0xab)]>_0x1bcb69?_0x29b398['irsDY'](_0x23d620['slice'](0x0,_0x1bcb69),_0x29b398[_0x4cbf19(0xa2)]):_0x23d620;}export async function runPlaywrightCliCommand(_0xfdf98c){const _0x15c490=_0x44aa,_0x232480={'YJjbW':_0x15c490(0xac),'vsgjd':'SIGTERM','CWBnb':function(_0x22573c,_0x46fc61){return _0x22573c(_0x46fc61);},'VevBo':function(_0x2d4747,_0x2f5b21){return _0x2d4747??_0x2f5b21;},'jOpne':_0x15c490(0xc3),'MatTY':function(_0x381266,_0x57b494){return _0x381266>_0x57b494;},'yxByK':function(_0x11264f,_0xd60678,_0x4017c8){return _0x11264f(_0xd60678,_0x4017c8);},'TQQBz':'data','AFrHS':'error','CwxLz':'close'},_0xec8dcb=buildPlaywrightCliInvocation(_0xfdf98c['sessionId'],_0xfdf98c[_0x15c490(0xc4)],_0xfdf98c['commandArgs']);return new Promise((_0x1f5a1c,_0x873ca6)=>{const _0x5a98ca=_0x15c490,_0xf3f37a={'yhNyP':function(_0x33a53e,_0x11dc27){return _0x33a53e(_0x11dc27);},'etJWG':function(_0x50b4ca,_0x135061){return _0x232480['VevBo'](_0x50b4ca,_0x135061);}},_0x354fbe=spawn(_0xec8dcb['command'],_0xec8dcb[_0x5a98ca(0xc5)],{'cwd':_0xfdf98c['cwd'],'env':_0xfdf98c[_0x5a98ca(0xbd)],'stdio':['ignore',_0x232480['jOpne'],_0x232480['jOpne']]});let _0x2c640e='',_0x13040a='',_0x554ac4=![];const _0x46df81=_0xfdf98c[_0x5a98ca(0xbf)]&&_0x232480['MatTY'](_0xfdf98c['timeoutMs'],0x0)?_0x232480['yxByK'](setTimeout,()=>{const _0xa3ab=_0x5a98ca,_0xad7e9e={'wXkRT':_0x232480['YJjbW']};_0x554ac4=!![],_0x354fbe[_0xa3ab(0xb3)](_0x232480['vsgjd']),setTimeout(()=>{const _0x25824c=_0xa3ab;try{_0x354fbe[_0x25824c(0xb3)](_0xad7e9e['wXkRT']);}catch{}},0x3e8);},_0xfdf98c[_0x5a98ca(0xbf)]):null;_0x354fbe[_0x5a98ca(0xb8)]?.['on'](_0x232480[_0x5a98ca(0xc2)],_0x3b8313=>{const _0x42eaa2=_0x5a98ca;_0x2c640e+=_0x3b8313[_0x42eaa2(0xb0)]();}),_0x354fbe['stderr']?.['on'](_0x5a98ca(0xb6),_0x527305=>{_0x13040a+=_0x527305['toString']();}),_0x354fbe['on'](_0x232480['AFrHS'],_0x21196f=>{if(_0x46df81)_0x232480['CWBnb'](clearTimeout,_0x46df81);_0x873ca6(_0x21196f);}),_0x354fbe['on'](_0x232480[_0x5a98ca(0x94)],(_0x55a9a0,_0x52ddbb)=>{const _0x41731e=_0x5a98ca;if(_0x46df81)clearTimeout(_0x46df81);if(_0x55a9a0===0x0){_0xf3f37a[_0x41731e(0x99)](_0x1f5a1c,{'stdout':_0x2c640e,'stderr':_0x13040a,'invocation':_0xec8dcb});return;}const _0x478e06=_0x554ac4?_0x41731e(0xb9)+_0xfdf98c['timeoutMs']+'ms':_0x41731e(0x90)+_0xf3f37a['etJWG'](_0x55a9a0,_0x41731e(0x9e))+'\x20signal='+_0xf3f37a[_0x41731e(0xa0)](_0x52ddbb,_0x41731e(0x9e));_0x873ca6(new Error('playwright-cli\x20'+_0xec8dcb['subcommand']+'\x20'+_0x478e06+_0x41731e(0xba)+truncateOutput(_0x2c640e)+'\x0astderr:\x20'+_0xf3f37a[_0x41731e(0x99)](truncateOutput,_0x13040a)));});});}export function extractBashCommand(_0xfb7149){const _0x5304cf=_0x44aa,_0xc06e19={'ZoUTn':_0x5304cf(0xa5),'UxxEU':'script','ciiTv':_0x5304cf(0x95),'SeLhV':_0x5304cf(0xa8),'NAUgT':function(_0x381976,_0x4aca05){return _0x381976??_0x4aca05;}},_0x50bd69=[_0x5304cf(0x98),_0xc06e19['ZoUTn'],_0xc06e19[_0x5304cf(0xc0)],_0xc06e19['ciiTv']];for(const _0x1e3c38 of _0x50bd69){const _0x483b68=_0xfb7149[_0x1e3c38];if(typeof _0x483b68===_0xc06e19[_0x5304cf(0x9c)]&&_0x483b68[_0x5304cf(0x9f)]())return _0x483b68;}const _0x2353ca=Object['values'](_0xfb7149)['find'](_0x27da85=>typeof _0x27da85===_0x5304cf(0xa8)&&_0x27da85['trim']()[_0x5304cf(0xab)]>0x0);return _0xc06e19['NAUgT'](_0x2353ca,null);}export function parsePlaywrightCliCommand(_0x3be9b3){const _0x469019=_0x44aa,_0x55a16f=_0x3be9b3[_0x469019(0xb5)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x55a16f?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4784(){const _0x2bf47f=['601728UfDRvN','555357KPzfCp','10AuJcYI','3OrGJaR','8YAHifh','156asbsuk','8738989huywiO','71395gHpIRX','19281873VaHKVT','204tfbcXM','4023342siIWfJ','6154MDZOkF','318OIKxlr','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'];_0x4784=function(){return _0x2bf47f;};return _0x4784();}function _0x2563(_0x3db79e,_0x4c1fdd){_0x3db79e=_0x3db79e-0x76;const _0x478422=_0x4784();let _0x256396=_0x478422[_0x3db79e];return _0x256396;}(function(_0x391c6f,_0x5e403b){const _0x4b118f=_0x2563,_0x47a7d0=_0x391c6f();while(!![]){try{const _0x13e3bf=-parseInt(_0x4b118f(0x76))/0x1*(-parseInt(_0x4b118f(0x82))/0x2)+-parseInt(_0x4b118f(0x7c))/0x3*(-parseInt(_0x4b118f(0x79))/0x4)+-parseInt(_0x4b118f(0x80))/0x5*(-parseInt(_0x4b118f(0x77))/0x6)+parseInt(_0x4b118f(0x7f))/0x7*(-parseInt(_0x4b118f(0x7d))/0x8)+-parseInt(_0x4b118f(0x83))/0x9*(parseInt(_0x4b118f(0x7b))/0xa)+parseInt(_0x4b118f(0x7a))/0xb*(-parseInt(_0x4b118f(0x7e))/0xc)+parseInt(_0x4b118f(0x81))/0xd;if(_0x13e3bf===_0x5e403b)break;else _0x47a7d0['push'](_0x47a7d0['shift']());}catch(_0x4d4455){_0x47a7d0['push'](_0x47a7d0['shift']());}}}(_0x4784,0xa2af0));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x3bffaa){const _0x1b7871=_0x2563,_0x4bd1b6=_0x3bffaa?_0x3bffaa(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x1b7871(0x78)+_0x4bd1b6+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x48d125,_0x10aac7){const _0x238648=_0x1b8a,_0x54ae4b=_0x48d125();while(!![]){try{const _0x20274f=parseInt(_0x238648(0x141))/0x1*(parseInt(_0x238648(0x144))/0x2)+-parseInt(_0x238648(0x13c))/0x3*(parseInt(_0x238648(0x140))/0x4)+parseInt(_0x238648(0x133))/0x5*(-parseInt(_0x238648(0x135))/0x6)+parseInt(_0x238648(0x138))/0x7+-parseInt(_0x238648(0x142))/0x8*(-parseInt(_0x238648(0x143))/0x9)+-parseInt(_0x238648(0x13a))/0xa+parseInt(_0x238648(0x13b))/0xb;if(_0x20274f===_0x10aac7)break;else _0x54ae4b['push'](_0x54ae4b['shift']());}catch(_0x3d3bdc){_0x54ae4b['push'](_0x54ae4b['shift']());}}}(_0x3497,0x4f68e));function _0x1b8a(_0x2c1c48,_0x3d9245){_0x2c1c48=_0x2c1c48-0x133;const _0x34979e=_0x3497();let _0x1b8a27=_0x34979e[_0x2c1c48];return _0x1b8a27;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x3a12ce=_0x1b8a,_0x1942bd={'GarxW':function(_0x1bf94c,_0x19fc16){return _0x1bf94c+_0x19fc16;},'BFRbs':function(_0x34eeb5,_0x3e540d){return _0x34eeb5+_0x3e540d;},'jeDyd':_0x3a12ce(0x13f),'LaUeT':'</div>','poLcw':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x14f035=_0x1942bd[_0x3a12ce(0x13e)](_0x1942bd['BFRbs']('<div\x20class=\x22ranger-banner__content\x22>',_0x3a12ce(0x136))+'<div\x20class=\x22ranger-banner__message\x22>'+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',_0x1942bd['jeDyd'])+_0x1942bd[_0x3a12ce(0x137)]+_0x1942bd['LaUeT']+_0x1942bd[_0x3a12ce(0x13d)],_0x719f60=_0x3a12ce(0x134);return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x14f035)+';\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'](_0x719f60)+';\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 _0x3497(){const _0x4807fb=['890978OtBZmO','13263QWxfBK','poLcw','GarxW','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','472uIzwJg','1ktfrbc','8gyXDLz','5557401KSAhZV','880890otHFrz','15FFjfwa','\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','778656xRxIyS','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','LaUeT','4041212inzrFi','addInitScript','4799800AvDVjY'];_0x3497=function(){return _0x4807fb;};return _0x3497();}export async function addProfileSetupBanner(_0x233ee3){const _0x2c1c2b=_0x1b8a;await _0x233ee3[_0x2c1c2b(0x139)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c5d32,_0xf1d6aa){const _0xf63469=_0x15ae,_0x42ab29=_0x1c5d32();while(!![]){try{const _0x358ebf=-parseInt(_0xf63469(0xe1))/0x1*(-parseInt(_0xf63469(0xdf))/0x2)+-parseInt(_0xf63469(0xe2))/0x3+-parseInt(_0xf63469(0xe4))/0x4*(-parseInt(_0xf63469(0xe8))/0x5)+parseInt(_0xf63469(0xeb))/0x6+-parseInt(_0xf63469(0xdd))/0x7+parseInt(_0xf63469(0xdb))/0x8*(parseInt(_0xf63469(0xe0))/0x9)+parseInt(_0xf63469(0xe3))/0xa;if(_0x358ebf===_0xf1d6aa)break;else _0x42ab29['push'](_0x42ab29['shift']());}catch(_0x5dc92b){_0x42ab29['push'](_0x42ab29['shift']());}}}(_0x5db3,0xae2ec));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x15ae(_0x599de6,_0xfc4bc7){_0x599de6=_0x599de6-0xd7;const _0x5db3ae=_0x5db3();let _0x15aec9=_0x5db3ae[_0x599de6];return _0x15aec9;}import{getRangerDir}from'./rangerRoot.js';function _0x5db3(){const _0xe819e3=['string','1316025kRinfH','xgbTw','isArray','6267060tqFpsi','JbFlf','parse','model','message','1192bGqckG','config.json','7340242rjzbKo','warn','258zLEkFi','21177tTOLME','3469fTDCAd','4169562AJpHJU','2564840OaFfdL','16egRYdm','RMsmr','KsaAk'];_0x5db3=function(){return _0xe819e3;};return _0x5db3();}export function getRangerConfigPath(){const _0x85d054=_0x15ae,_0x509986={'yZbVg':function(_0x3791bf,_0x13796e,_0x2a17a0){return _0x3791bf(_0x13796e,_0x2a17a0);}};return _0x509986['yZbVg'](join,getRangerDir(),_0x85d054(0xdc));}export async function loadRangerConfig(){const _0xb8689e=_0x15ae,_0x7f6819={'xgbTw':function(_0x5c7ca2){return _0x5c7ca2();},'RMsmr':function(_0x731bab,_0x5ddc73,_0x5ed12a){return _0x731bab(_0x5ddc73,_0x5ed12a);},'sfCRV':'utf-8','KsaAk':function(_0x4304d3,_0x38ab2d){return _0x4304d3!==_0x38ab2d;},'JbFlf':function(_0x5d0e77,_0x135973){return _0x5d0e77 instanceof _0x135973;}},_0x395084=_0x7f6819[_0xb8689e(0xe9)](getRangerConfigPath);if(!existsSync(_0x395084))return{};try{const _0x137645=await _0x7f6819[_0xb8689e(0xe5)](readFile,_0x395084,_0x7f6819['sfCRV']),_0x196fc3=JSON[_0xb8689e(0xd8)](_0x137645);if(!_0x196fc3||_0x7f6819[_0xb8689e(0xe6)](typeof _0x196fc3,'object')||Array[_0xb8689e(0xea)](_0x196fc3))return{};const _0x4a845f={},_0x24c2ec=_0x196fc3[_0xb8689e(0xd9)];return typeof _0x24c2ec===_0xb8689e(0xe7)&&(_0x4a845f[_0xb8689e(0xd9)]=_0x24c2ec),_0x4a845f;}catch(_0x5eeb80){const _0x22d150=_0x7f6819[_0xb8689e(0xd7)](_0x5eeb80,Error)?_0x5eeb80[_0xb8689e(0xda)]:String(_0x5eeb80);return console[_0xb8689e(0xde)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x395084+':\x20'+_0x22d150),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f1fa0,_0x8b4708){const _0x4b6888=_0x2a69,_0x3ea2fe=_0x3f1fa0();while(!![]){try{const _0x56d764=parseInt(_0x4b6888(0xae))/0x1+parseInt(_0x4b6888(0xc0))/0x2+parseInt(_0x4b6888(0xb2))/0x3+-parseInt(_0x4b6888(0xbc))/0x4*(parseInt(_0x4b6888(0xb0))/0x5)+-parseInt(_0x4b6888(0xaf))/0x6+parseInt(_0x4b6888(0xb5))/0x7+-parseInt(_0x4b6888(0xb3))/0x8;if(_0x56d764===_0x8b4708)break;else _0x3ea2fe['push'](_0x3ea2fe['shift']());}catch(_0x20ee91){_0x3ea2fe['push'](_0x3ea2fe['shift']());}}}(_0x916e,0xdfd9f));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x8cd448=_0x2a69,_0x30d01d={'HnWZf':function(_0x2d1c05,_0x34f91d){return _0x2d1c05!==_0x34f91d;},'oxclw':_0x8cd448(0xb1),'iVmCx':function(_0x3d8e3b,_0x12e6db,_0x2fadd9){return _0x3d8e3b(_0x12e6db,_0x2fadd9);},'QRihm':function(_0x4c679e){return _0x4c679e();}};let _0x4aaabf=process[_0x8cd448(0xb4)]();const _0x193b97=parse(_0x4aaabf)[_0x8cd448(0xba)];while(_0x30d01d[_0x8cd448(0xbd)](_0x4aaabf,_0x193b97)){if(existsSync(join(_0x4aaabf,_0x30d01d[_0x8cd448(0xb7)])))return _0x4aaabf;_0x4aaabf=dirname(_0x4aaabf);}if(existsSync(_0x30d01d[_0x8cd448(0xb6)](join,_0x193b97,_0x8cd448(0xb1))))return _0x193b97;const _0x2dfb1d=_0x30d01d['QRihm'](findGitRoot);if(_0x2dfb1d)return _0x2dfb1d;return process[_0x8cd448(0xb4)]();}export function getRangerDir(){const _0x29d11a=_0x2a69,_0x46f6fb={'QUIuG':function(_0x436eb8){return _0x436eb8();}};return join(_0x46f6fb['QUIuG'](getRangerRoot),_0x29d11a(0xb1));}function _0x2a69(_0x528d20,_0x4ba83b){_0x528d20=_0x528d20-0xae;const _0x916e01=_0x916e();let _0x2a69c6=_0x916e01[_0x528d20];return _0x2a69c6;}function _0x916e(){const _0x1149aa=['nsrmp','1449268evPAwq','HnWZf','HxusQ','KtHoB','1238600fCdnMX','860489WZPLfQ','3226332cmwJMt','25OnAqXz','.ranger','4008687lqSZSc','9071120TlakFp','cwd','11088518sUlXge','iVmCx','oxclw','.git','uwOlO','root'];_0x916e=function(){return _0x1149aa;};return _0x916e();}export function findGitRoot(){const _0xeb74b8=_0x2a69,_0x2516e8={'uwOlO':function(_0x5567eb,_0x58284c){return _0x5567eb(_0x58284c);},'KtHoB':function(_0x2ecc82,_0x228567){return _0x2ecc82!==_0x228567;},'HxusQ':function(_0x39b2be,_0x4bbcb5,_0x550ac2){return _0x39b2be(_0x4bbcb5,_0x550ac2);},'bqibJ':function(_0x1ed0cb,_0x54bd6f){return _0x1ed0cb(_0x54bd6f);}};let _0x40f921=process['cwd']();const _0x42f176=_0x2516e8[_0xeb74b8(0xb9)](parse,_0x40f921)['root'];while(_0x2516e8[_0xeb74b8(0xbf)](_0x40f921,_0x42f176)){if(existsSync(_0x2516e8[_0xeb74b8(0xbe)](join,_0x40f921,_0xeb74b8(0xb8))))return _0x40f921;_0x40f921=dirname(_0x40f921);}if(_0x2516e8['bqibJ'](existsSync,join(_0x42f176,'.git')))return _0x42f176;return null;}export function getRangerHomeDir(){const _0x450301=_0x2a69,_0xdf241={'nsrmp':function(_0x424092,_0x9e493,_0x282b8f){return _0x424092(_0x9e493,_0x282b8f);}};return _0xdf241[_0x450301(0xbb)](join,homedir(),'.ranger');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a67d4,_0x99269d){const _0xb39e98=_0x23b2,_0x4e059a=_0x3a67d4();while(!![]){try{const _0x3c0347=-parseInt(_0xb39e98(0x197))/0x1*(-parseInt(_0xb39e98(0x1ad))/0x2)+parseInt(_0xb39e98(0x196))/0x3+-parseInt(_0xb39e98(0x19b))/0x4+parseInt(_0xb39e98(0x1a6))/0x5*(-parseInt(_0xb39e98(0x1a7))/0x6)+-parseInt(_0xb39e98(0x190))/0x7+-parseInt(_0xb39e98(0x1b0))/0x8*(parseInt(_0xb39e98(0x18c))/0x9)+-parseInt(_0xb39e98(0x18a))/0xa*(-parseInt(_0xb39e98(0x1af))/0xb);if(_0x3c0347===_0x99269d)break;else _0x4e059a['push'](_0x4e059a['shift']());}catch(_0x1c38b1){_0x4e059a['push'](_0x4e059a['shift']());}}}(_0x48b6,0xaa1c5));import{readdir}from'fs/promises';function _0x48b6(){const _0x273eb5=['6070OiXRwp','2838TtkIze','screenshot','relativePath','sort','OxRhE','push','392286LLHdEC','##\x20Screenshots\x20(','10277795lpTkeI','991216SuHMdz','**Status:**\x20','10VmUqrH','ISSUES\x20FOUND','9hQwEhg','charAt','replace','####\x20','4486629TZnVBX','PASSED','filename','###\x20Summary','severity','muaKq','3283785ELsChv','1tVXkMI','includes','##\x20Result','gOUvW','756956mcqRen','join','MAJOR','split','**Session:**\x20`','length','toISOString','**Screenshot:**','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','###\x20','**Generated:**\x20'];_0x48b6=function(){return _0x273eb5;};return _0x48b6();}import{join}from'path';function _0x23b2(_0x3867e2,_0x3962f4){_0x3867e2=_0x3867e2-0x189;const _0x48b634=_0x48b6();let _0x23b2cc=_0x48b634[_0x3867e2];return _0x23b2cc;}import{existsSync}from'fs';export async function collectScreenshots(_0xbb049d){const _0xd88d3d=_0x23b2,_0x56c352={'OxRhE':function(_0xd0736,_0x45ed81){return _0xd0736(_0x45ed81);},'muaKq':function(_0x55a5ac,_0x3d42a4,_0x578b7c){return _0x55a5ac(_0x3d42a4,_0x578b7c);}},_0x5d6375=[],_0x20a3b8=[];if(!_0x56c352[_0xd88d3d(0x1ab)](existsSync,_0xbb049d))return{'screenshots':_0x5d6375,'paths':_0x20a3b8};const _0x54820b=await readdir(_0xbb049d),_0x5cdb45=_0x54820b['filter'](_0x368a83=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x368a83))[_0xd88d3d(0x1aa)]();for(const _0x42c814 of _0x5cdb45){const _0x4a5265=_0x56c352[_0xd88d3d(0x195)](join,_0xbb049d,_0x42c814);_0x5d6375['push']({'filename':_0x42c814,'path':_0x4a5265,'relativePath':'./'+_0x42c814}),_0x20a3b8['push'](_0x4a5265);}return{'screenshots':_0x5d6375,'paths':_0x20a3b8};}function getSeverityEmoji(_0x3797f5){const _0x442acd=_0x23b2,_0x4d3ed8={'umKpc':'BLOCKER','gOUvW':_0x442acd(0x19d)};switch(_0x3797f5){case _0x4d3ed8['umKpc']:return'🔴';case _0x4d3ed8[_0x442acd(0x19a)]:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x18bc48){const _0x40885d=_0x23b2,_0x18ac97=_0x18bc48[_0x40885d(0x18e)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x4516e8=_0x18ac97['replace'](/^\d+-/,'');return _0x4516e8[_0x40885d(0x19e)]('-')['map'](_0x3a891f=>_0x3a891f[_0x40885d(0x18d)](0x0)['toUpperCase']()+_0x3a891f['slice'](0x1))[_0x40885d(0x19c)]('\x20');}export function generateMarkdownReport(_0x3dabc2){const _0x4232e3=_0x23b2,_0x4bd546={'EMMrM':_0x4232e3(0x18b),'trvVW':function(_0xf547cb,_0x53fca5){return _0xf547cb>_0x53fca5;},'wfUxS':function(_0x21143f,_0xe5e2ac){return _0x21143f>_0xe5e2ac;}},{sessionId:_0x3f48a0,task:_0x2804b7,url:_0x59ae6c,success:_0x253f76,summary:_0x1b56a1,issues:_0x16a00a,screenshots:_0xe7fcbe,durationMs:_0x5aeca8,traceViewerUrl:_0x142ddb}=_0x3dabc2,_0xfef249=new Date()[_0x4232e3(0x1a1)](),_0x3937be=(_0x5aeca8/0x3e8)['toFixed'](0x1),_0x593850=[];_0x593850[_0x4232e3(0x1ac)]('#\x20Verification\x20Report'),_0x593850[_0x4232e3(0x1ac)](''),_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x19f)+_0x3f48a0+'`'),_0x593850['push'](_0x4232e3(0x1a5)+_0xfef249),_0x593850['push']('**Duration:**\x20'+_0x3937be+'s'),_0x593850[_0x4232e3(0x1ac)](''),_0x593850[_0x4232e3(0x1ac)]('##\x20Task'),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push']('**URL:**\x20'+_0x59ae6c),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push']('>\x20'+_0x2804b7),_0x593850['push'](''),_0x593850['push'](_0x4232e3(0x199)),_0x593850[_0x4232e3(0x1ac)]('');const _0x4fe4c4=_0x253f76?'✅':'❌';_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x189)+_0x4fe4c4+'\x20'+(_0x253f76?_0x4232e3(0x191):_0x4bd546['EMMrM'])),_0x593850['push'](''),_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x193)),_0x593850[_0x4232e3(0x1ac)](''),_0x593850[_0x4232e3(0x1ac)](_0x1b56a1),_0x593850['push']('');if(_0x16a00a&&_0x4bd546['trvVW'](_0x16a00a[_0x4232e3(0x1a0)],0x0)){_0x593850[_0x4232e3(0x1ac)]('###\x20Issues\x20Found\x20('+_0x16a00a[_0x4232e3(0x1a0)]+')'),_0x593850[_0x4232e3(0x1ac)]('');for(const _0x8d2ea6 of _0x16a00a){const _0x58f58e=getSeverityEmoji(_0x8d2ea6[_0x4232e3(0x194)]);_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x18f)+_0x58f58e+'\x20['+_0x8d2ea6[_0x4232e3(0x194)]+']\x20Issue'),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push'](_0x8d2ea6['description']),_0x593850[_0x4232e3(0x1ac)]('');if(_0x8d2ea6[_0x4232e3(0x1a8)]){const _0x275a47=_0x8d2ea6['screenshot'],_0x20b76c=_0xe7fcbe['find'](_0xf7db69=>_0xf7db69['filename']===_0x275a47||_0xf7db69['filename'][_0x4232e3(0x198)](_0x275a47));_0x20b76c&&(_0x593850['push'](_0x4232e3(0x1a2)),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push'](']+')'),_0x593850[_0x4232e3(0x1ac)](''));}}}if(_0x4bd546['wfUxS'](_0xe7fcbe[_0x4232e3(0x1a0)],0x0)){_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x1ae)+_0xe7fcbe['length']+')'),_0x593850[_0x4232e3(0x1ac)]('');for(const _0x571e6d of _0xe7fcbe){const _0x37d59f=formatScreenshotCaption(_0x571e6d[_0x4232e3(0x192)]);_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x1a4)+_0x37d59f),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push']('!['+_0x571e6d['filename']+']('+_0x571e6d[_0x4232e3(0x1a9)]+')'),_0x593850[_0x4232e3(0x1ac)]('');}}return _0x142ddb&&(_0x593850['push']('---'),_0x593850['push'](''),_0x593850['push'](_0x4232e3(0x1a3)+_0x142ddb+')'),_0x593850['push']('')),_0x593850[_0x4232e3(0x19c)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x51da51,_0x2ceabd){const _0x3794d5=_0x4b33,_0x590da9=_0x51da51();while(!![]){try{const _0x5efa5d=-parseInt(_0x3794d5(0x1d0))/0x1+-parseInt(_0x3794d5(0x1c8))/0x2*(-parseInt(_0x3794d5(0x1d4))/0x3)+parseInt(_0x3794d5(0x1d5))/0x4*(parseInt(_0x3794d5(0x1c9))/0x5)+parseInt(_0x3794d5(0x1d1))/0x6*(parseInt(_0x3794d5(0x1ce))/0x7)+parseInt(_0x3794d5(0x1d6))/0x8+-parseInt(_0x3794d5(0x1cf))/0x9+parseInt(_0x3794d5(0x1c7))/0xa;if(_0x5efa5d===_0x2ceabd)break;else _0x590da9['push'](_0x590da9['shift']());}catch(_0x4ebe6e){_0x590da9['push'](_0x590da9['shift']());}}}(_0x5649,0x5e822));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x3d02ab,_0x41ff9e){const _0x2f3364=_0x4b33,_0x185f34={'JACXf':function(_0x19dee1,_0x5a9f8b){return _0x19dee1<=_0x5a9f8b;},'RUuUq':function(_0x3ca0ae){return _0x3ca0ae();},'IUmpg':function(_0xeb28d6,_0x271e55){return _0xeb28d6(_0x271e55);},'BglEM':function(_0x573205,_0x1d636a){return _0x573205<_0x1d636a;},'ARLac':function(_0x25139d,_0xbecebb){return _0x25139d*_0xbecebb;}},_0x43d9b9=_0x41ff9e?.[_0x2f3364(0x1d2)]??DEFAULT_MAX_RETRIES,_0x48fd69=_0x41ff9e?.[_0x2f3364(0x1cc)]??DEFAULT_BASE_DELAY_MS;let _0x55e026;for(let _0x5adccd=0x0;_0x185f34[_0x2f3364(0x1cd)](_0x5adccd,_0x43d9b9);_0x5adccd++){try{return await _0x185f34['RUuUq'](_0x3d02ab);}catch(_0x3438fd){_0x55e026=_0x3438fd instanceof Error?_0x3438fd:new Error(_0x185f34[_0x2f3364(0x1cb)](String,_0x3438fd));if(_0x185f34[_0x2f3364(0x1ca)](_0x5adccd,_0x43d9b9)){const _0x44e512=_0x185f34['ARLac'](_0x48fd69,Math['pow'](0x2,_0x5adccd));_0x41ff9e?.[_0x2f3364(0x1d3)]&&console['error'](_0x41ff9e[_0x2f3364(0x1d3)]+'\x20failed\x20(attempt\x20'+(_0x5adccd+0x1)+'/'+(_0x43d9b9+0x1)+'),\x20retrying\x20in\x20'+_0x44e512+'ms...'),await new Promise(_0x5c1731=>setTimeout(_0x5c1731,_0x44e512));}}}throw _0x55e026;}function _0x4b33(_0x370ee3,_0x52d171){_0x370ee3=_0x370ee3-0x1c7;const _0x56493c=_0x5649();let _0x4b3350=_0x56493c[_0x370ee3];return _0x4b3350;}function _0x5649(){const _0x1e540b=['421461WBcshR','156fOYauU','maxRetries','label','345NqAgZs','728dPaYBY','223560rqdMXP','3868510JWgmCS','2038yLsdLl','12010ObrcGV','BglEM','IUmpg','baseDelayMs','JACXf','8813uhDSDw','1739808iAmQYy'];_0x5649=function(){return _0x1e540b;};return _0x5649();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xcd620c=_0x170b;(function(_0x43abcd,_0x2c7bbd){const _0x1896f9=_0x170b,_0x3b3fe4=_0x43abcd();while(!![]){try{const _0x5c856d=parseInt(_0x1896f9(0x14f))/0x1*(parseInt(_0x1896f9(0x163))/0x2)+-parseInt(_0x1896f9(0x162))/0x3*(parseInt(_0x1896f9(0x16f))/0x4)+-parseInt(_0x1896f9(0x16b))/0x5+-parseInt(_0x1896f9(0x150))/0x6*(-parseInt(_0x1896f9(0x157))/0x7)+-parseInt(_0x1896f9(0x146))/0x8+parseInt(_0x1896f9(0x16a))/0x9*(parseInt(_0x1896f9(0x167))/0xa)+parseInt(_0x1896f9(0x151))/0xb*(-parseInt(_0x1896f9(0x175))/0xc);if(_0x5c856d===_0x2c7bbd)break;else _0x3b3fe4['push'](_0x3b3fe4['shift']());}catch(_0x59ed93){_0x3b3fe4['push'](_0x3b3fe4['shift']());}}}(_0x5c36,0x20c19));import*as _0x5903d1 from'fs';import*as _0x24a72f from'path';import*as _0xaaf4b5 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x24a72f[_0xcd620c(0x15d)](_0xaaf4b5[_0xcd620c(0x173)](),_0xcd620c(0x158),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x33aaa4=_0xcd620c,_0x1dd7f2={'UwmqN':'utf-8','PjhIa':function(_0x310206){return _0x310206();}};try{if(_0x5903d1['existsSync'](CACHE_FILE)){const _0x55ceab=JSON[_0x33aaa4(0x170)](_0x5903d1['readFileSync'](CACHE_FILE,_0x1dd7f2[_0x33aaa4(0x16c)]));return{'version':0x3,'sessions':_0x55ceab[_0x33aaa4(0x143)]||{},'branches':_0x55ceab[_0x33aaa4(0x171)]||{},'lastEnabledSessionClearedAt':_0x55ceab['lastEnabledSessionClearedAt']};}}catch{}return _0x1dd7f2['PjhIa'](createEmptyCache);}function saveCache(_0x322fe0){const _0x189a37=_0xcd620c;try{const _0x2b858a=_0x24a72f['dirname'](CACHE_FILE);!_0x5903d1['existsSync'](_0x2b858a)&&_0x5903d1['mkdirSync'](_0x2b858a,{'recursive':!![]}),_0x5903d1['writeFileSync'](CACHE_FILE,JSON[_0x189a37(0x168)](_0x322fe0,null,0x2));}catch{}}export function getCurrentBranch(){const _0xfcb4b1=_0xcd620c,_0x43b74a={'NgbSE':_0xfcb4b1(0x145),'aKfyK':'pipe'};try{const _0xdd2698=execSync(_0x43b74a['NgbSE'],{'encoding':'utf-8','stdio':[_0x43b74a[_0xfcb4b1(0x149)],_0x43b74a['aKfyK'],_0xfcb4b1(0x159)]})['trim']();if(!_0xdd2698||_0xdd2698===_0xfcb4b1(0x15c))return null;return _0xdd2698;}catch{return null;}}export function enableBranch(_0x4bea66){const _0x20a34a=loadCache();_0x20a34a['branches'][_0x4bea66]=!![],saveCache(_0x20a34a);}export function disableBranch(_0x3e8435){const _0x42e03d=_0xcd620c,_0x18da50={'jAOLZ':function(_0x2eaccb){return _0x2eaccb();},'dYxjv':function(_0x6e816d,_0xa8b781){return _0x6e816d(_0xa8b781);}},_0x1459af=_0x18da50[_0x42e03d(0x148)](loadCache);delete _0x1459af[_0x42e03d(0x171)][_0x3e8435],_0x18da50['dYxjv'](saveCache,_0x1459af);}export function isBranchEnabled(_0xd7d7b9){const _0x387e94=_0xcd620c,_0x2a559f={'gwJmv':function(_0x1efb08){return _0x1efb08();}},_0x443727=_0x2a559f['gwJmv'](loadCache);return _0x443727[_0x387e94(0x171)][_0xd7d7b9]===!![];}function getOrCreateSession(_0x3a7fbc,_0x56b2ec){const _0x176fe1=_0xcd620c;return!_0x3a7fbc[_0x176fe1(0x143)][_0x56b2ec]&&(_0x3a7fbc['sessions'][_0x56b2ec]={}),_0x3a7fbc['sessions'][_0x56b2ec];}export function enableSession(_0x477bb3){const _0x4cb19b=_0xcd620c,_0x1f75e2={'llVLF':function(_0x1bfa8f){return _0x1bfa8f();},'YVIeF':function(_0xb1d6ea,_0x5c1b6e,_0x1bc618){return _0xb1d6ea(_0x5c1b6e,_0x1bc618);},'qdlfl':function(_0x19d71c,_0x5daef0){return _0x19d71c!==_0x5daef0;},'hlbTr':_0x4cb19b(0x15f),'bQctA':function(_0x5f1bed,_0x49795c){return _0x5f1bed(_0x49795c);}},_0x185e76=_0x1f75e2['llVLF'](loadCache),_0x36ca03=_0x1f75e2['YVIeF'](getOrCreateSession,_0x185e76,_0x477bb3);_0x36ca03['enabled']=!![];const _0xa1cbe=getCurrentBranch();_0xa1cbe&&_0x1f75e2['qdlfl'](_0xa1cbe,'main')&&_0xa1cbe!==_0x1f75e2['hlbTr']&&(_0x185e76[_0x4cb19b(0x171)][_0xa1cbe]=!![],_0x36ca03['currentBranch']=_0xa1cbe),_0x1f75e2[_0x4cb19b(0x161)](saveCache,_0x185e76);}export function isSessionEnabled(_0x55664b){const _0x567607=_0xcd620c,_0x44af6d={'ruTgZ':function(_0x130e66){return _0x130e66();},'CmQUg':function(_0x22da43,_0x4fbbd1){return _0x22da43===_0x4fbbd1;},'Tviub':function(_0x3d2744,_0x114413){return _0x3d2744===_0x114413;},'lmziQ':_0x567607(0x15f),'jAMbE':function(_0x51dc36,_0x3e8944){return _0x51dc36===_0x3e8944;},'IvUBf':function(_0x4e55fd,_0x33c7eb){return _0x4e55fd||_0x33c7eb;}},_0x26614d=_0x44af6d[_0x567607(0x156)](loadCache),_0x204b20=_0x44af6d['ruTgZ'](getCurrentBranch);if(!_0x204b20||_0x44af6d[_0x567607(0x14e)](_0x204b20,_0x567607(0x155))||_0x44af6d['Tviub'](_0x204b20,_0x44af6d[_0x567607(0x165)]))return _0x26614d['sessions'][_0x55664b]?.['enabled']===!![];const _0x3ebe5b=_0x44af6d[_0x567607(0x15b)](_0x26614d[_0x567607(0x171)][_0x204b20],!![]),_0xf8dd00=_0x26614d[_0x567607(0x143)][_0x55664b]?.[_0x567607(0x172)]===!![];return _0x44af6d['IvUBf'](_0x3ebe5b,_0xf8dd00);}export function disableSession(_0x4c5fcc){const _0x59a4d8=_0xcd620c,_0x1f719b={'FsaAi':function(_0x4f48aa,_0x22a9ba){return _0x4f48aa(_0x22a9ba);}},_0xb9615=loadCache(),_0x3c55dd=getOrCreateSession(_0xb9615,_0x4c5fcc);_0x3c55dd[_0x59a4d8(0x172)]=![],_0x1f719b[_0x59a4d8(0x166)](saveCache,_0xb9615);}function _0x5c36(){const _0x123655=['now','currentBranch','16uVtYgK','parse','branches','enabled','homedir','oeuhp','12cWKVtS','sessions','lastPlanReminderAt','git\x20rev-parse\x20--abbrev-ref\x20HEAD','268968YExhCj','featureId','jAOLZ','aKfyK','AcKCK','lastEnabledSessionClearedAt','GDiBl','emKpJ','CmQUg','5373OMprHc','143178lxginE','1912999oMJsPv','gLHPE','DIldJ','LuQFa','main','ruTgZ','42jhOpDz','.claude','pipe','clear','jAMbE','HEAD','join','TzZhx','master','prompted','bQctA','65220RDZxjM','54AfGlHd','lastStopReminderAt','lmziQ','FsaAi','4970kdHaCv','stringify','registeredAt','3231HAvwTy','190065LOHOFt','UwmqN'];_0x5c36=function(){return _0x123655;};return _0x5c36();}export function updateBranchTracking(_0x4be38d){const _0x13a4aa=_0xcd620c,_0x430a40={'gLHPE':function(_0x470216){return _0x470216();},'AcKCK':_0x13a4aa(0x155),'DIldJ':function(_0x1774f3,_0x40753d){return _0x1774f3(_0x40753d);}},_0x5b685d=_0x430a40[_0x13a4aa(0x152)](loadCache),_0x17025d=_0x5b685d['sessions'][_0x4be38d];if(!_0x17025d?.[_0x13a4aa(0x172)])return;const _0x512149=_0x430a40['gLHPE'](getCurrentBranch);if(!_0x512149||_0x512149===_0x430a40[_0x13a4aa(0x14a)]||_0x512149==='master')return;_0x17025d[_0x13a4aa(0x16e)]!==_0x512149&&(_0x5b685d['branches'][_0x512149]=!![],_0x17025d[_0x13a4aa(0x16e)]=_0x512149,_0x430a40[_0x13a4aa(0x153)](saveCache,_0x5b685d));}function _0x170b(_0x3a9bfc,_0x13bac0){_0x3a9bfc=_0x3a9bfc-0x143;const _0x5c362b=_0x5c36();let _0x170b8d=_0x5c362b[_0x3a9bfc];return _0x170b8d;}export function initBranchTracking(_0x18b093){const _0x1615e8=_0xcd620c,_0x224b8c={'ruhwx':function(_0x521bb6,_0x4a0915){return _0x521bb6===_0x4a0915;}},_0x27c4b2=loadCache(),_0x4ed411=getCurrentBranch();if(!_0x4ed411||_0x4ed411==='main'||_0x224b8c['ruhwx'](_0x4ed411,'master'))return;if(_0x27c4b2[_0x1615e8(0x171)][_0x4ed411]===!![]){const _0x4e6004=getOrCreateSession(_0x27c4b2,_0x18b093);_0x4e6004['enabled']=!![],_0x4e6004['currentBranch']=_0x4ed411,saveCache(_0x27c4b2);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x402935){const _0x3c2a3a=_0xcd620c,_0x35d8dd={'LuQFa':function(_0x1c072a,_0x411150){return _0x1c072a(_0x411150);}},_0x78215a=loadCache(),_0xf84858=_0x78215a['sessions'][_0x402935];_0xf84858?.[_0x3c2a3a(0x172)]&&(_0x78215a['lastEnabledSessionClearedAt']=Date['now'](),_0x35d8dd[_0x3c2a3a(0x154)](saveCache,_0x78215a));}export function shouldAutoEnableAfterClear(_0x1b3ad5){const _0x322ff1=_0xcd620c,_0x4d0d1c={'YIloa':function(_0x5e8ce2,_0x102443){return _0x5e8ce2-_0x102443;}};if(_0x1b3ad5!==_0x322ff1(0x15a))return![];const _0x454c66=loadCache(),_0x2ecfa2=_0x454c66[_0x322ff1(0x14b)];if(!_0x2ecfa2)return![];const _0x2bfe3b=_0x4d0d1c['YIloa'](Date['now'](),_0x2ecfa2);return _0x2bfe3b<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x483013){const _0x4b2927=_0xcd620c,_0x2f5d7e={'iCNCO':function(_0xe23f45){return _0xe23f45();},'pStcZ':'master'},_0x16dbaa=_0x2f5d7e['iCNCO'](loadCache),_0x3b90aa=getOrCreateSession(_0x16dbaa,_0x483013);_0x3b90aa['enabled']=!![];const _0x50c3eb=_0x2f5d7e['iCNCO'](getCurrentBranch);_0x50c3eb&&_0x50c3eb!==_0x4b2927(0x155)&&_0x50c3eb!==_0x2f5d7e['pStcZ']&&(_0x3b90aa[_0x4b2927(0x16e)]=_0x50c3eb),delete _0x16dbaa[_0x4b2927(0x14b)],saveCache(_0x16dbaa);}export function registerSession(_0x5506bd,_0x2642e6){const _0x4c702b=_0xcd620c,_0x2850dd={'oeuhp':function(_0x21dc65,_0x1d3572){return _0x21dc65(_0x1d3572);}},_0x58bb12=loadCache(),_0x21047e=getOrCreateSession(_0x58bb12,_0x5506bd);_0x21047e[_0x4c702b(0x147)]=_0x2642e6,_0x21047e['registeredAt']=new Date()['toISOString'](),_0x2850dd[_0x4c702b(0x174)](saveCache,_0x58bb12);}export function getSessionEntry(_0x26db13){const _0x5434d5=_0xcd620c,_0x253b5a={'GDiBl':function(_0x4b1325){return _0x4b1325();}},_0x1e1ae8=_0x253b5a[_0x5434d5(0x14c)](loadCache),_0x357513=_0x1e1ae8['sessions'][_0x26db13];if(_0x357513?.['featureId']&&_0x357513?.['registeredAt'])return{'featureId':_0x357513['featureId'],'registeredAt':_0x357513['registeredAt']};return null;}export function unregisterSession(_0x458199){const _0x84297b=_0xcd620c,_0x13c9cd=loadCache(),_0x1fa295=_0x13c9cd['sessions'][_0x458199];_0x1fa295&&(delete _0x1fa295[_0x84297b(0x147)],delete _0x1fa295[_0x84297b(0x169)],saveCache(_0x13c9cd));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x4c2927){const _0x90f9ea=_0xcd620c,_0x480614={'YEPGZ':function(_0x5c45f5){return _0x5c45f5();},'TzZhx':function(_0x2ce376,_0x47561c,_0x1d38d9){return _0x2ce376(_0x47561c,_0x1d38d9);}},_0x6576d1=_0x480614['YEPGZ'](loadCache),_0x7538d=_0x480614[_0x90f9ea(0x15e)](getOrCreateSession,_0x6576d1,_0x4c2927),_0x39fd74=_0x7538d['lastPlanReminderAt']||0x0,_0x2dafb7=Date[_0x90f9ea(0x16d)]();if(_0x2dafb7-_0x39fd74>=PLAN_REMINDER_INTERVAL_MS)return _0x7538d[_0x90f9ea(0x144)]=_0x2dafb7,saveCache(_0x6576d1),!![];return![];}export function shouldShowStopReminder(_0x1dcc7c){const _0x16d72c=_0xcd620c,_0xfba7bc={'emKpJ':function(_0x37d66b,_0x3d4aed){return _0x37d66b>=_0x3d4aed;},'GgQJt':function(_0x18198d,_0x2b9038){return _0x18198d-_0x2b9038;}},_0x278152=loadCache(),_0x47bb01=getOrCreateSession(_0x278152,_0x1dcc7c),_0x14a51b=_0x47bb01[_0x16d72c(0x164)]||0x0,_0x1d5718=Date['now']();if(_0xfba7bc[_0x16d72c(0x14d)](_0xfba7bc['GgQJt'](_0x1d5718,_0x14a51b),STOP_REMINDER_INTERVAL_MS))return _0x47bb01[_0x16d72c(0x164)]=_0x1d5718,saveCache(_0x278152),!![];return![];}export function hasSessionBeenPrompted(_0x5e28dc){const _0x2b6852=_0xcd620c,_0x6850da=loadCache();return _0x6850da[_0x2b6852(0x143)][_0x5e28dc]?.[_0x2b6852(0x160)]===!![];}export function markSessionPrompted(_0x244730){const _0x11dedf=_0xcd620c,_0x3fc2f7={'aoAHP':function(_0x21e14e){return _0x21e14e();},'JfTWl':function(_0x41aecf,_0x313371,_0x2e0b66){return _0x41aecf(_0x313371,_0x2e0b66);}},_0x22ee9c=_0x3fc2f7['aoAHP'](loadCache),_0x1a2ea9=_0x3fc2f7['JfTWl'](getOrCreateSession,_0x22ee9c,_0x244730);_0x1a2ea9[_0x11dedf(0x160)]=!![],saveCache(_0x22ee9c);}export function getCacheFile(){return CACHE_FILE;}
|
|
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 +1 @@
|
|
|
1
|
-
const _0x124c79=_0x29a4;(function(_0x540e8e,_0x4be7be){const _0xce79af=_0x29a4,_0x522bc2=_0x540e8e();while(!![]){try{const _0x2a319c=-parseInt(_0xce79af(0xc2))/0x1+-parseInt(_0xce79af(0xaa))/0x2+-parseInt(_0xce79af(0x98))/0x3*(-parseInt(_0xce79af(0xeb))/0x4)+-parseInt(_0xce79af(0xc9))/0x5*(parseInt(_0xce79af(0xbd))/0x6)+-parseInt(_0xce79af(0xd5))/0x7*(-parseInt(_0xce79af(0x99))/0x8)+parseInt(_0xce79af(0x8c))/0x9+parseInt(_0xce79af(0xe9))/0xa*(parseInt(_0xce79af(0xc4))/0xb);if(_0x2a319c===_0x4be7be)break;else _0x522bc2['push'](_0x522bc2['shift']());}catch(_0x46cca2){_0x522bc2['push'](_0x522bc2['shift']());}}}(_0x2b39,0x964c7));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';function _0x2b39(){const _0x5f3963=['DfuIq','allowInsecureLocalhost','kGlfT','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','EUeDQ','configPath','70uFQdKn','cdpEndpoint','--disable-web-security','CeRao','headless','eEHhG','now','--disable-setuid-sandbox','string','location','push','WRwCv','LOegK','lKWCK','dBSXY','aNOEK','path','QecVJ','repeat','chromium','1210gsBedC','NHSpf','308668ezjqIF','UdBVH','args','xclAW','--no-sandbox','stringify','core','tDTlg','EObrU','sessions','1478322UrbdOQ','Environment\x20variable\x20','XzwFr','aSuis','all','HHxHY','utf-8','auth.json.enc','headers','Failed\x20to\x20decrypt\x20auth\x20state:\x20','.json','LvbQW','21KLBrIP','35864NPmmqA','phxUR','QdJMm','split','VBStW','clipboard-write','ranger-auth-','file','storageState','JEwTo','launchOptions','userAgent','GyFTs','WoIVZ','DPBOw','isArray','auth.json','245156Nariqn','settings.json','none','clipboard-read','ENOENT','nabuB','kbIVw','entries','extraHTTPHeaders','local','LeNPZ','ijUXX','object','contextOptions','join','warn','--unsafely-treat-insecure-origin-as-secure=http://localhost','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','bPNhn','6WrySMG','catch','install','ranger-config','parse','1166604wwmowF','sqICH','189321pBAYCy','code','--allow-running-insecure-content','ovmLD','includes','4634915KoAGlN','lbTdq','kqKIY','QIrkE','storageStatePath','filter'];_0x2b39=function(){return _0x5f3963;};return _0x2b39();}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(_0x2cc511){const _0x45b320=_0x29a4,_0x578e67={'xHnLs':function(_0x49a5b2,_0x3e8964,_0x34d1fc,_0x1546d6){return _0x49a5b2(_0x3e8964,_0x34d1fc,_0x1546d6);},'qopdk':_0x45b320(0xb3),'BZLbw':function(_0x28a634,_0x353908,_0x547974){return _0x28a634(_0x353908,_0x547974);},'fgkCO':function(_0x1707f8,_0x26abc7,_0x3f9a87){return _0x1707f8(_0x26abc7,_0x3f9a87);},'EUeDQ':function(_0x58e672,_0x515607){return _0x58e672(_0x515607);},'kbIVw':function(_0x490964,_0x1308e1){return _0x490964!==_0x1308e1;}},_0x479d9e=getRangerDir(),_0x4d480c=join(_0x479d9e,'ci',_0x2cc511),_0x26c195=_0x578e67['xHnLs'](join,_0x479d9e,_0x578e67['qopdk'],_0x2cc511),_0x3c7633=join(_0x479d9e,_0x2cc511),_0x174131=_0x578e67['BZLbw'](join,_0x479d9e,_0x578e67['qopdk']),_0x3258d1=_0x578e67['fgkCO'](join,_0x479d9e,'ci');if(existsSync(_0x4d480c))return _0x4d480c;if(_0x578e67[_0x45b320(0xd3)](existsSync,_0x26c195))return _0x26c195;if(existsSync(_0x3c7633)&&(_0x3c7633!==_0x174131&&_0x578e67[_0x45b320(0xb0)](_0x3c7633,_0x3258d1)?!![]:hasLegacyProfileFiles(_0x3c7633)))return _0x3c7633;return _0x26c195;}export function findExistingEnv(_0x1fc949,_0x457000){const _0x2f0482=_0x29a4,_0x49e948={'oodaw':function(_0x1fb496){return _0x1fb496();},'jhfUM':'legacy','XzwFr':_0x2f0482(0xb3),'vUsng':function(_0x23c63b,_0x780989,_0x10b659){return _0x23c63b(_0x780989,_0x10b659);},'scSoa':function(_0x7370db,_0x46dae5){return _0x7370db===_0x46dae5;},'phxUR':function(_0x4f5500,_0xf491e1){return _0x4f5500(_0xf491e1);}},_0x3f21b9=_0x49e948['oodaw'](getRangerDir),_0x35b223=_0x457000?.['locations']??['ci',_0x2f0482(0xb3),_0x49e948['jhfUM']],_0x157790=join(_0x3f21b9,'local'),_0x415442=join(_0x3f21b9,'ci'),_0x565e1c=[{'location':'ci','path':join(_0x3f21b9,'ci',_0x1fc949)},{'location':_0x49e948['XzwFr'],'path':join(_0x3f21b9,_0x49e948[_0x2f0482(0x8e)],_0x1fc949)},{'location':_0x49e948['jhfUM'],'path':_0x49e948['vUsng'](join,_0x3f21b9,_0x1fc949)}];for(const _0x510d73 of _0x565e1c){if(_0x35b223[_0x2f0482(0xc8)](_0x510d73[_0x2f0482(0xde)])&&existsSync(_0x510d73[_0x2f0482(0xe5)])){if(_0x510d73[_0x2f0482(0xde)]==='legacy'&&(_0x49e948['scSoa'](_0x510d73[_0x2f0482(0xe5)],_0x157790)||_0x510d73['path']===_0x415442)&&!_0x49e948[_0x2f0482(0x9a)](hasLegacyProfileFiles,_0x510d73['path']))continue;return{'path':_0x510d73[_0x2f0482(0xe5)],'location':_0x510d73['location']};}}return null;}function hasLegacyProfileFiles(_0x395108){const _0x2bca58=_0x29a4,_0x2d1c1e={'ibDCF':function(_0x2e20e5,_0x36f57a){return _0x2e20e5(_0x36f57a);},'kqKIY':_0x2bca58(0x93)};return _0x2d1c1e['ibDCF'](existsSync,join(_0x395108,_0x2bca58(0xab)))||_0x2d1c1e['ibDCF'](existsSync,join(_0x395108,'auth.json'))||existsSync(join(_0x395108,_0x2d1c1e[_0x2bca58(0xcb)]));}export function isEnvCi(_0x53488d){const _0x3d616e={'upIYC':function(_0xec7fb3,_0x44cf0a){return _0xec7fb3(_0x44cf0a);},'EUAVo':function(_0xc6528f,_0x4d11d0,_0x3e7700,_0x1b87b3){return _0xc6528f(_0x4d11d0,_0x3e7700,_0x1b87b3);}};return _0x3d616e['upIYC'](existsSync,_0x3d616e['EUAVo'](join,getRangerDir(),'ci',_0x53488d));}export async function cleanupTempFiles(_0x3c9a34){const _0x2a08b9=_0x29a4,_0x4f362a={'sySet':_0x2a08b9(0xae)},_0x6a617=[_0x3c9a34['tempAuthPath'],_0x3c9a34[_0x2a08b9(0xd4)]][_0x2a08b9(0xce)](Boolean);await Promise[_0x2a08b9(0x90)](_0x6a617['map'](_0x4acfb6=>unlink(_0x4acfb6)[_0x2a08b9(0xbe)](_0x12e2c0=>{const _0x2e54c4=_0x2a08b9;_0x12e2c0[_0x2e54c4(0xc5)]!==_0x4f362a['sySet']&&console[_0x2e54c4(0xb9)](_0x2e54c4(0xbb)+_0x4acfb6+':',_0x12e2c0['message']);})));}export function getSettingsPath(_0x49149f){const _0x4d6819=_0x29a4,_0x41f64b={'xclAW':function(_0xa64bbd,_0x32e77a,_0x413b4c){return _0xa64bbd(_0x32e77a,_0x413b4c);}};return _0x41f64b[_0x4d6819(0x85)](join,getEnvDir(_0x49149f),'settings.json');}export async function loadSettings(_0x4722fc){const _0x48b3ef=_0x29a4,_0x64b27a=getSettingsPath(_0x4722fc);if(!existsSync(_0x64b27a))return{};try{const _0x5abeda=await readFile(_0x64b27a,_0x48b3ef(0x92));return JSON[_0x48b3ef(0xc1)](_0x5abeda);}catch{return{};}}export async function saveSettings(_0x5d9d01,_0x5a5676){const _0x5b3624=_0x29a4,_0x5b3580={'GyFTs':function(_0x95a91,_0x5be501){return _0x95a91(_0x5be501);}},_0x12c848=_0x5b3580[_0x5b3624(0xa5)](getSettingsPath,_0x5d9d01),_0x4fd818=dirname(_0x12c848);!existsSync(_0x4fd818)&&await mkdir(_0x4fd818,{'recursive':!![]}),await writeFile(_0x12c848,JSON['stringify'](_0x5a5676,null,0x2));}export function resolveEnvVars(_0x27318e){const _0x93b09c=_0x29a4,_0x2bf00e={'aQATT':function(_0x315b8c,_0x84e54a){return _0x315b8c===_0x84e54a;},'bPNhn':_0x93b09c(0xdd),'DfuIq':_0x93b09c(0xb6)};if(typeof _0x27318e===_0x2bf00e[_0x93b09c(0xbc)])return _0x27318e['replace'](/\$\{(\w+)\}/g,(_0x460702,_0x15c3d0)=>{const _0x2cc697=_0x93b09c,_0x51447d=process['env'][_0x15c3d0];if(_0x2bf00e['aQATT'](_0x51447d,undefined))throw new Error(_0x2cc697(0x8d)+_0x15c3d0+'\x20is\x20not\x20set');return _0x51447d;});if(Array[_0x93b09c(0xa8)](_0x27318e))return _0x27318e['map'](resolveEnvVars);if(_0x27318e&&typeof _0x27318e===_0x2bf00e[_0x93b09c(0xcf)])return Object['fromEntries'](Object[_0x93b09c(0xb1)](_0x27318e)['map'](([_0x1c6c52,_0x2fae99])=>[_0x1c6c52,resolveEnvVars(_0x2fae99)]));return _0x27318e;}const isRecord=_0x14af7c=>typeof _0x14af7c==='object'&&_0x14af7c!==null&&!Array['isArray'](_0x14af7c),asRecord=_0x5901b5=>isRecord(_0x5901b5)?_0x5901b5:undefined,mergeHeaders=(_0x1ff56a,_0x1bcfba)=>{const _0x46749c=_0x29a4,_0x5892ff={'UdBVH':function(_0x132c02,_0x3fed9e){return _0x132c02??_0x3fed9e;}},_0x1f4213={..._0x1ff56a??{},..._0x5892ff[_0x46749c(0x83)](_0x1bcfba,{})};return Object['keys'](_0x1f4213)['length']?_0x1f4213:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x124c79(0xd7),_0x124c79(0xc6),_0x124c79(0xba)];export function buildBrowserOptionsFromSettings(_0x2e2cc3,_0x28fd95={}){const _0x1996ae=_0x124c79,_0x3dd929={'lKWCK':function(_0xd7c1f6,_0x1eb29a){return _0xd7c1f6(_0x1eb29a);},'QAkNd':function(_0x5a4bcf,_0x283770){return _0x5a4bcf(_0x283770);},'THTCk':'string','tDTlg':function(_0x4a383e,_0x3bfcc0){return _0x4a383e(_0x3bfcc0);}},_0x1df2e7=asRecord(_0x2e2cc3['browser']),_0xb72d56={..._0x3dd929[_0x1996ae(0xe2)](asRecord,_0x1df2e7?.[_0x1996ae(0xa3)])??{}};typeof _0x28fd95[_0x1996ae(0xd9)]==='boolean'&&(_0xb72d56[_0x1996ae(0xd9)]=_0x28fd95['headless']);if(_0x2e2cc3['safeMode']){const _0x3593e2=_0xb72d56['args']??[],_0x62e8c6=SAFE_MODE_ARGS['filter'](_0x2cecf2=>!_0x3593e2[_0x1996ae(0xc8)](_0x2cecf2));_0xb72d56['args']=[..._0x3593e2,..._0x62e8c6];}if(_0x2e2cc3[_0x1996ae(0xd0)]){const _0x171919=_0xb72d56[_0x1996ae(0x84)]??[],_0x240ff2=ALLOW_LOCALHOST_ARGS[_0x1996ae(0xce)](_0x45f9b4=>!_0x171919[_0x1996ae(0xc8)](_0x45f9b4));_0xb72d56['args']=[..._0x171919,..._0x240ff2];}const _0x44b0e3={..._0x3dd929['QAkNd'](asRecord,_0x1df2e7?.['contextOptions'])??{}};typeof _0x2e2cc3['userAgent']===_0x3dd929['THTCk']&&(_0x44b0e3['userAgent']=_0x2e2cc3[_0x1996ae(0xa4)]);const _0x189b00=mergeHeaders(_0x3dd929[_0x1996ae(0x89)](asRecord,_0x44b0e3['extraHTTPHeaders']),_0x3dd929[_0x1996ae(0xe2)](asRecord,_0x2e2cc3[_0x1996ae(0x94)]));return _0x189b00?_0x44b0e3[_0x1996ae(0xb2)]=_0x189b00:delete _0x44b0e3['extraHTTPHeaders'],_0x28fd95['storageStatePath']&&(_0x44b0e3['storageState']=_0x28fd95[_0x1996ae(0xcd)]),{'launchOptions':_0xb72d56,'contextOptions':_0x44b0e3};}export async function buildPlaywrightConfig(_0xfdb1a0,_0x138cff,_0xebb8b3,_0x89346c){const _0x1a04b2=_0x124c79,_0x50d5dc={'dBSXY':function(_0x3dd3ec,_0x9b5b2c){return _0x3dd3ec===_0x9b5b2c;},'ovmLD':_0x1a04b2(0x86),'QecVJ':'--disable-setuid-sandbox','WoIVZ':'chromium','uqRKX':'auth.json','ijUXX':function(_0x194dcd){return _0x194dcd();},'LeNPZ':function(_0x4c0045,_0x58cadb){return _0x4c0045(_0x58cadb);},'WkIaP':function(_0x105af2,_0x2e02f,_0x29cd18,_0x1eaef7){return _0x105af2(_0x2e02f,_0x29cd18,_0x1eaef7);},'gAgmy':function(_0x1d439c,_0x219c94){return _0x1d439c(_0x219c94);},'PDNVX':_0x1a04b2(0x88),'QdJMm':'tabs','cjYeL':_0x1a04b2(0xbf),'JEwTo':'vision','aSuis':'allow','LOegK':function(_0x127fa2,_0x1ad27c,_0x226e68){return _0x127fa2(_0x1ad27c,_0x226e68);},'zNrBK':function(_0xd72cd1){return _0xd72cd1();},'Acdfl':function(_0x3d3010,_0x515686,_0x18970f){return _0x3d3010(_0x515686,_0x18970f);}},_0x5defb3=getEnvDir(_0x138cff),_0x2a47c5=join(_0x5defb3,_0x1a04b2(0x93)),_0x1d1b6f=join(_0x5defb3,_0x50d5dc['uqRKX']);let _0x32ec18,_0x36a570;if(existsSync(_0x2a47c5))try{const _0x3b4fd1=await _0x50d5dc[_0x1a04b2(0xb5)](getToken);if(!_0x3b4fd1)throw new Error(_0x1a04b2(0xd2));const _0x36fa48=await readFile(_0x2a47c5),_0x27dd81=decrypt(_0x36fa48,_0x3b4fd1);_0x36a570=join(tmpdir(),_0x1a04b2(0x9f)+Date[_0x1a04b2(0xdb)]()+'.json'),await writeFile(_0x36a570,_0x27dd81),_0x32ec18=_0x36a570;}catch(_0x55a83e){const _0x5dae4c=_0x55a83e instanceof Error?_0x55a83e['message']:String(_0x55a83e);throw new Error(_0x1a04b2(0x95)+_0x5dae4c);}else _0x50d5dc[_0x1a04b2(0xb4)](existsSync,_0x1d1b6f)&&(_0x32ec18=_0x1d1b6f);const _0x23a809=_0xebb8b3||randomUUID(),_0xc0acb3=_0x50d5dc['WkIaP'](join,_0x50d5dc['ijUXX'](getRangerDir),'sessions',_0x23a809),_0x56b61e=_0x50d5dc['gAgmy'](Boolean,_0xfdb1a0[_0x1a04b2(0xd6)]),_0x291de9=_0x56b61e?{'browserName':_0x50d5dc[_0x1a04b2(0xa6)],'cdpEndpoint':_0xfdb1a0['cdpEndpoint']}:((()=>{const _0x282467=_0x1a04b2,{launchOptions:_0x3e4a25,contextOptions:_0x3dd159}=buildBrowserOptionsFromSettings(_0xfdb1a0,{'headless':_0x89346c?![]:_0xfdb1a0['headless']??!![],'storageStatePath':_0x32ec18});if(_0x50d5dc[_0x282467(0xe3)](process['getuid']?.(),0x0)){const _0x271844=[_0x50d5dc[_0x282467(0xc7)],_0x50d5dc[_0x282467(0xe6)]],_0x42416e=_0x3e4a25[_0x282467(0x84)]??[],_0xbcc2f3=_0x271844[_0x282467(0xce)](_0xf3cba7=>!_0x42416e[_0x282467(0xc8)](_0xf3cba7));_0x3e4a25[_0x282467(0x84)]=[..._0x42416e,..._0xbcc2f3];}return{'isolated':!![],'browserName':_0x50d5dc[_0x282467(0xa6)],'launchOptions':_0x3e4a25,'contextOptions':{..._0x3dd159,'permissions':['clipboard-read',_0x282467(0x9e)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3b7b46={'name':_0x138cff,'browser':_0x291de9,'capabilities':[_0x50d5dc['PDNVX'],_0x50d5dc[_0x1a04b2(0x9b)],_0x50d5dc['cjYeL'],'pdf',_0x50d5dc[_0x1a04b2(0xa2)]],'imageResponses':_0x50d5dc[_0x1a04b2(0x8f)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xc0acb3};if(!_0x56b61e){const _0x2eb7f0=_0x3b7b46['browser'],_0x29f9ce=_0x2eb7f0['contextOptions'];if(_0x29f9ce['userAgent']===undefined)delete _0x29f9ce['userAgent'];if(_0x29f9ce[_0x1a04b2(0xa1)]===undefined)delete _0x29f9ce['storageState'];}const _0x389821=_0x50d5dc[_0x1a04b2(0xe1)](join,_0x50d5dc['zNrBK'](tmpdir),_0x1a04b2(0xc0));!existsSync(_0x389821)&&await _0x50d5dc[_0x1a04b2(0xe1)](mkdir,_0x389821,{'recursive':!![]});const _0x3121c2=join(_0x389821,_0x138cff+'-'+Date[_0x1a04b2(0xdb)]()+'.json');return await _0x50d5dc['Acdfl'](writeFile,_0x3121c2,JSON['stringify'](_0x3b7b46,null,0x2)),{'configPath':_0x3121c2,'tempAuthPath':_0x36a570};}export async function buildPlaywrightCliConfig(_0x5d25a6,_0x18146f,_0x5f3ba7,_0x3ee5d3){const _0x3ae955=_0x124c79,_0x4c0dbb={'VBStW':function(_0x45d26f,_0x46fc7c,_0x227b72){return _0x45d26f(_0x46fc7c,_0x227b72);},'WRwCv':function(_0x313c06,_0x57f796){return _0x313c06===_0x57f796;},'vXiNi':'--no-sandbox','kGlfT':'chromium','NHSpf':'auth.json.enc','lbTdq':_0x3ae955(0xa9),'eEHhG':function(_0x4ea490,_0x566051){return _0x4ea490(_0x566051);},'QIrkE':function(_0x138f96,_0x63c49a,_0x123f0a){return _0x138f96(_0x63c49a,_0x123f0a);},'apYJn':function(_0x276e30,_0x3f34d1,_0xf5004e){return _0x276e30(_0x3f34d1,_0xf5004e);},'nabuB':function(_0x3637ee,_0x2a3e96){return _0x3637ee instanceof _0x2a3e96;},'yNnuX':function(_0x1279e4){return _0x1279e4();},'zRHZF':function(_0x526114,_0x348756,_0x3db327,_0x1a29cd){return _0x526114(_0x348756,_0x3db327,_0x1a29cd);},'ozdUq':_0x3ae955(0xa0),'pxTKO':_0x3ae955(0xac)},_0x3dee1f=getEnvDir(_0x18146f),_0x118695=join(_0x3dee1f,_0x4c0dbb[_0x3ae955(0xea)]),_0x42bc6e=join(_0x3dee1f,_0x4c0dbb[_0x3ae955(0xca)]);let _0x43c8bd,_0x25e44c;if(_0x4c0dbb[_0x3ae955(0xda)](existsSync,_0x118695))try{const _0x583372=await getToken();if(!_0x583372)throw new Error(_0x3ae955(0xd2));const _0x5a2012=await _0x4c0dbb[_0x3ae955(0xda)](readFile,_0x118695),_0x3466b4=_0x4c0dbb[_0x3ae955(0xcc)](decrypt,_0x5a2012,_0x583372);_0x25e44c=_0x4c0dbb['VBStW'](join,tmpdir(),_0x3ae955(0x9f)+Date[_0x3ae955(0xdb)]()+_0x3ae955(0x96)),await _0x4c0dbb['apYJn'](writeFile,_0x25e44c,_0x3466b4),_0x43c8bd=_0x25e44c;}catch(_0x59b3a6){const _0x378b40=_0x4c0dbb[_0x3ae955(0xaf)](_0x59b3a6,Error)?_0x59b3a6['message']:_0x4c0dbb[_0x3ae955(0xda)](String,_0x59b3a6);throw new Error(_0x3ae955(0x95)+_0x378b40);}else existsSync(_0x42bc6e)&&(_0x43c8bd=_0x42bc6e);const _0x423d38=_0x5f3ba7||_0x4c0dbb['yNnuX'](randomUUID),_0x192a4d=_0x4c0dbb['zRHZF'](join,getRangerDir(),_0x3ae955(0x8b),_0x423d38),_0x3a0652=Boolean(_0x5d25a6['cdpEndpoint']),_0x9b8d66=_0x3a0652?{'browserName':_0x3ae955(0xe8),'cdpEndpoint':_0x5d25a6['cdpEndpoint']}:((()=>{const _0x6e2806=_0x3ae955,{launchOptions:_0x34a94b,contextOptions:_0x46c2f9}=_0x4c0dbb[_0x6e2806(0x9d)](buildBrowserOptionsFromSettings,_0x5d25a6,{'headless':_0x3ee5d3?![]:_0x5d25a6[_0x6e2806(0xd9)]??!![],'storageStatePath':_0x43c8bd});if(_0x4c0dbb[_0x6e2806(0xe0)](process['getuid']?.(),0x0)){const _0x9c188c=[_0x4c0dbb['vXiNi'],_0x6e2806(0xdc)],_0x5e0167=_0x34a94b[_0x6e2806(0x84)]??[],_0x423ee3=_0x9c188c['filter'](_0x2d7501=>!_0x5e0167[_0x6e2806(0xc8)](_0x2d7501));_0x34a94b['args']=[..._0x5e0167,..._0x423ee3];}return{'isolated':!![],'browserName':_0x4c0dbb[_0x6e2806(0xd1)],'launchOptions':_0x34a94b,'contextOptions':{..._0x46c2f9,'permissions':[_0x6e2806(0xad),_0x6e2806(0x9e)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x3a0652){const _0xe45e4f=_0x9b8d66[_0x3ae955(0xb7)];if(_0xe45e4f[_0x3ae955(0xa4)]===undefined)delete _0xe45e4f['userAgent'];if(_0x4c0dbb[_0x3ae955(0xe0)](_0xe45e4f[_0x3ae955(0xa1)],undefined))delete _0xe45e4f[_0x3ae955(0xa1)];}const _0x25c8fb={'browser':_0x9b8d66,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x192a4d,'outputMode':_0x4c0dbb['ozdUq'],'codegen':_0x4c0dbb['pxTKO']},_0x5385c0=join(_0x4c0dbb['yNnuX'](tmpdir),_0x3ae955(0xc0));!_0x4c0dbb['eEHhG'](existsSync,_0x5385c0)&&await _0x4c0dbb['QIrkE'](mkdir,_0x5385c0,{'recursive':!![]});const _0x4a1026=join(_0x5385c0,_0x18146f+'-'+Date['now']()+'-cli.json');return await _0x4c0dbb['apYJn'](writeFile,_0x4a1026,JSON[_0x3ae955(0x87)](_0x25c8fb,null,0x2)),{'configPath':_0x4a1026,'tempAuthPath':_0x25e44c};}export function getNestedValue(_0xf687fc,_0x4b0338){const _0x1e49b7=_0x124c79,_0x46ba62={'aNOEK':function(_0x5e0af7,_0x3d1bd3){return _0x5e0af7!==_0x3d1bd3;}},_0x4ca990=parseKeyPath(_0x4b0338);let _0x4bfb5d=_0xf687fc;for(const _0x14c787 of _0x4ca990){if(_0x4bfb5d===null||_0x4bfb5d===undefined||_0x46ba62[_0x1e49b7(0xe4)](typeof _0x4bfb5d,'object'))return undefined;_0x4bfb5d=_0x4bfb5d[_0x14c787];}return _0x4bfb5d;}function _0x29a4(_0x253c1f,_0x323adc){_0x253c1f=_0x253c1f-0x83;const _0x2b39a=_0x2b39();let _0x29a45b=_0x2b39a[_0x253c1f];return _0x29a45b;}export function setNestedValue(_0x3085de,_0x1f0125,_0xe0db25){const _0x5af606=_0x124c79,_0x4890fe={'DPBOw':function(_0x5ee8b8,_0x4b02cf){return _0x5ee8b8(_0x4b02cf);},'CeRao':function(_0x4170b4,_0x523dce){return _0x4170b4<_0x523dce;},'LvbQW':function(_0x230427,_0x50f955){return _0x230427!==_0x50f955;},'oKCES':'object'},_0xf3219c=_0x4890fe[_0x5af606(0xa7)](parseKeyPath,_0x1f0125);let _0xc19cb8=_0x3085de;for(let _0x10ba50=0x0;_0x4890fe[_0x5af606(0xd8)](_0x10ba50,_0xf3219c['length']-0x1);_0x10ba50++){const _0x5d96f8=_0xf3219c[_0x10ba50];(!(_0x5d96f8 in _0xc19cb8)||_0x4890fe[_0x5af606(0x97)](typeof _0xc19cb8[_0x5d96f8],_0x4890fe['oKCES']))&&(_0xc19cb8[_0x5d96f8]={}),_0xc19cb8=_0xc19cb8[_0x5d96f8];}_0xc19cb8[_0xf3219c[_0xf3219c['length']-0x1]]=_0xe0db25;}export function deleteNestedValue(_0x4b1404,_0xc0c471){const _0x243793=_0x124c79,_0x387151={'sqICH':function(_0x1594a2,_0x3d7c97){return _0x1594a2===_0x3d7c97;},'EObrU':'object','HHxHY':function(_0x5ebac7,_0x21a1ad){return _0x5ebac7 in _0x21a1ad;}},_0x3495a6=parseKeyPath(_0xc0c471);let _0xb35a1=_0x4b1404;for(let _0x535cd0=0x0;_0x535cd0<_0x3495a6['length']-0x1;_0x535cd0++){if(_0x387151['sqICH'](_0xb35a1,null)||_0xb35a1===undefined||typeof _0xb35a1!==_0x387151[_0x243793(0x8a)])return![];_0xb35a1=_0xb35a1[_0x3495a6[_0x535cd0]];}if(_0xb35a1===null||_0x387151[_0x243793(0xc3)](_0xb35a1,undefined)||typeof _0xb35a1!==_0x387151['EObrU'])return![];const _0x399914=_0x3495a6[_0x3495a6['length']-0x1];if(_0x387151[_0x243793(0x91)](_0x399914,_0xb35a1))return delete _0xb35a1[_0x399914],!![];return![];}function parseKeyPath(_0x161d6a){const _0x3ae07e=_0x124c79,_0x1734ff={'IEXKB':_0x3ae07e(0x94)},_0x5ba331=_0x161d6a[_0x3ae07e(0x9c)]('.');return _0x5ba331[0x0]==='header'&&(_0x5ba331[0x0]=_0x1734ff['IEXKB']),_0x5ba331;}export function formatSettings(_0x485326,_0x24782f=0x0){const _0x2b95e1=_0x124c79,_0x2a9025={'hfbQo':'object'},_0x2266ca=[],_0x678d1c='\x20\x20'[_0x2b95e1(0xe7)](_0x24782f);for(const [_0x2b33b8,_0x4c5033]of Object[_0x2b95e1(0xb1)](_0x485326)){if(_0x4c5033===undefined)continue;if(typeof _0x4c5033===_0x2a9025['hfbQo']&&_0x4c5033!==null){_0x2266ca['push'](''+_0x678d1c+_0x2b33b8+':');for(const [_0xcfff41,_0x48be31]of Object['entries'](_0x4c5033)){_0x2266ca['push'](_0x678d1c+'\x20\x20'+_0xcfff41+':\x20'+_0x48be31);}}else _0x2266ca[_0x2b95e1(0xdf)](''+_0x678d1c+_0x2b33b8+':\x20'+_0x4c5033);}return _0x2266ca[_0x2b95e1(0xb8)]('\x0a');}
|
|
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 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x454994,_0x5c4387){const _0xb3101a=_0x27fe,_0x22cb6a=_0x454994();while(!![]){try{const _0x4040cc=parseInt(_0xb3101a(0x1e9))/0x1*(-parseInt(_0xb3101a(0x1e4))/0x2)+-parseInt(_0xb3101a(0x1df))/0x3+-parseInt(_0xb3101a(0x1de))/0x4+parseInt(_0xb3101a(0x1e8))/0x5+-parseInt(_0xb3101a(0x1e7))/0x6*(-parseInt(_0xb3101a(0x1e3))/0x7)+parseInt(_0xb3101a(0x1ea))/0x8*(-parseInt(_0xb3101a(0x1e2))/0x9)+parseInt(_0xb3101a(0x1e5))/0xa*(parseInt(_0xb3101a(0x1e1))/0xb);if(_0x4040cc===_0x5c4387)break;else _0x22cb6a['push'](_0x22cb6a['shift']());}catch(_0x58966){_0x22cb6a['push'](_0x22cb6a['shift']());}}}(_0x5ebf,0x7fe8f));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x27fe(_0x4b78bc,_0x21d701){_0x4b78bc=_0x4b78bc-0x1de;const _0x5ebfbf=_0x5ebf();let _0x27fe8f=_0x5ebfbf[_0x4b78bc];return _0x27fe8f;}function _0x5ebf(){const _0x2792dc=['117569mtpfcn','16rZsDEy','utf-8','436804ILKpBa','2138658wKkAJD','ranger/SKILL.md','425887PZqSCu','783495Yvxhsu','6195UTtUMK','10GgijKG','160JTztdU','Nurwc','5940nuCTca','3061695kmsAZH'];_0x5ebf=function(){return _0x2792dc;};return _0x5ebf();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x325ae8){const _0x10dacf=_0x27fe,_0xcd1768={'bjSHB':function(_0x21c232,_0x32f723,_0x5d21c2,_0x3082f7,_0x1bce5a){return _0x21c232(_0x32f723,_0x5d21c2,_0x3082f7,_0x1bce5a);},'Nurwc':function(_0x18e39f,_0x2d8bd1,_0x3fbd2e){return _0x18e39f(_0x2d8bd1,_0x3fbd2e);},'EGTYe':_0x10dacf(0x1eb)},_0x2d9555=_0xcd1768['bjSHB'](join,__dirname,'..','..','skills'),_0x626d82=join(_0x2d9555,_0x325ae8);try{return _0xcd1768[_0x10dacf(0x1e6)](readFileSync,_0x626d82,_0xcd1768['EGTYe']);}catch{return'';}}export function getRangerSkillContent(){const _0x426ed2=_0x27fe,_0xc2bea0={'YdkJV':function(_0x353150,_0xf35b9){return _0x353150(_0xf35b9);},'qDuSS':_0x426ed2(0x1e0)};return _0xc2bea0['YdkJV'](readSkillContent,_0xc2bea0['qDuSS']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x49c2b6=_0x439d;function _0x439d(_0x238723,_0x1331a4){_0x238723=_0x238723-0xb5;const _0x36f24b=_0x36f2();let _0x439de9=_0x36f24b[_0x238723];return _0x439de9;}(function(_0x3e1c02,_0x2454eb){const _0x509beb=_0x439d,_0x2eae06=_0x3e1c02();while(!![]){try{const _0x26c872=parseInt(_0x509beb(0xd5))/0x1*(parseInt(_0x509beb(0xb5))/0x2)+parseInt(_0x509beb(0xbe))/0x3*(parseInt(_0x509beb(0xca))/0x4)+parseInt(_0x509beb(0xda))/0x5*(-parseInt(_0x509beb(0xd9))/0x6)+parseInt(_0x509beb(0xc8))/0x7+-parseInt(_0x509beb(0xdc))/0x8*(-parseInt(_0x509beb(0xc7))/0x9)+-parseInt(_0x509beb(0xc3))/0xa*(parseInt(_0x509beb(0xbc))/0xb)+-parseInt(_0x509beb(0xbd))/0xc;if(_0x26c872===_0x2454eb)break;else _0x2eae06['push'](_0x2eae06['shift']());}catch(_0x53b196){_0x2eae06['push'](_0x2eae06['shift']());}}}(_0x36f2,0x570c3));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';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=[_0x49c2b6(0xd6),_0x49c2b6(0xce),_0x49c2b6(0xc2)];export async function installSkill(_0x206bcd,_0x3efa17={}){const _0x3f0402=_0x49c2b6,_0x5140c0={'cZeaz':function(_0x6228e9,_0x1d7650,_0x1dec69){return _0x6228e9(_0x1d7650,_0x1dec69);},'IdxKD':function(_0x46fde6,_0x2e7bd5){return _0x46fde6(_0x2e7bd5);},'YLSQB':function(_0x32476b,_0x29fb02){return _0x32476b(_0x29fb02);},'HYCuD':function(_0x40596a,_0x41cc61){return _0x40596a(_0x41cc61);},'UeohL':'SKILL.md','jebTr':function(_0x516f86,_0x5d8b8b){return _0x516f86===_0x5d8b8b;},'jtQxu':_0x3f0402(0xc6),'hbvVu':function(_0x41cc0d,_0x2b0c8d){return _0x41cc0d(_0x2b0c8d);},'HcWjJ':function(_0x565274,_0x363f79,_0x19789c,_0x421f73){return _0x565274(_0x363f79,_0x19789c,_0x421f73);}},{level:level=_0x3f0402(0xb8),cliVersion:_0x19f40c,platform:platform='claude'}=_0x3efa17,_0x3edf89=getSourceSkillsDir(),_0x13e687=_0x5140c0[_0x3f0402(0xd3)](join,_0x3edf89,_0x206bcd),_0x2ec2ca=join(_0x3edf89,_0x206bcd+_0x3f0402(0xc1)),_0x3d94c1=_0x5140c0['IdxKD'](existsSync,_0x13e687)&&_0x5140c0[_0x3f0402(0xbf)](statSync,_0x13e687)['isDirectory']()&&_0x5140c0['HYCuD'](existsSync,join(_0x13e687,_0x5140c0[_0x3f0402(0xd4)])),_0x26db89=existsSync(_0x2ec2ca);if(!_0x3d94c1&&!_0x26db89)return console[_0x3f0402(0xd0)](_0x3f0402(0xe0)+_0x206bcd),![];const _0x54c210=_0x5140c0[_0x3f0402(0xdd)](platform,_0x5140c0['jtQxu'])?getOpencodeSkillsDir(level):_0x5140c0[_0x3f0402(0xc0)](getSkillsDir,level),_0x4b69ab=_0x5140c0[_0x3f0402(0xd3)](join,_0x54c210,_0x206bcd);await mkdir(_0x4b69ab,{'recursive':!![]});let _0x42c290,_0x33c90c=[];if(_0x3d94c1){const _0x407202=await _0x5140c0['HYCuD'](readdir,_0x13e687),_0x306b9a=_0x407202[_0x3f0402(0xc4)](_0x337f57=>_0x337f57[_0x3f0402(0xb9)]('.md'));for(const _0x1a12c1 of _0x306b9a){const _0xfe0cf6=_0x5140c0[_0x3f0402(0xd3)](join,_0x13e687,_0x1a12c1),_0x4121a0=join(_0x4b69ab,_0x1a12c1);await _0x5140c0[_0x3f0402(0xd3)](copyFile,_0xfe0cf6,_0x4121a0),_0x33c90c[_0x3f0402(0xcf)](_0x1a12c1);}_0x42c290=await _0x5140c0['cZeaz'](readFile,join(_0x13e687,_0x5140c0['UeohL']),'utf-8');}else{_0x42c290=await readFile(_0x2ec2ca,_0x3f0402(0xdf));const _0x53360f=join(_0x4b69ab,_0x5140c0[_0x3f0402(0xd4)]);await writeFile(_0x53360f,_0x42c290,'utf-8'),_0x33c90c['push'](_0x5140c0[_0x3f0402(0xd4)]);}const {name:_0x4a1b37}=parseFrontmatter(_0x42c290);return console[_0x3f0402(0xb7)]('\x20\x20Installed\x20skill:\x20'+_0x4a1b37),console[_0x3f0402(0xb7)](_0x3f0402(0xd7)+_0x4b69ab),_0x33c90c[_0x3f0402(0xc9)]>0x1&&console['log'](_0x3f0402(0xdb)+_0x33c90c['join'](',\x20')),_0x5140c0['HcWjJ'](logLocalAgentInstallation,_0x206bcd,{'skillDisplayName':_0x4a1b37,'installLevel':level},_0x19f40c)[_0x3f0402(0xde)](()=>{}),!![];}function getSourceSkillsDir(){const _0x227b34=_0x49c2b6,_0x5c9b44={'xmoRN':function(_0x374365,_0x55cc49,_0x38a63f,_0x46322d,_0x3475ac,_0x1cfb22){return _0x374365(_0x55cc49,_0x38a63f,_0x46322d,_0x3475ac,_0x1cfb22);},'MqkiN':_0x227b34(0xcd),'VDfgp':function(_0x1028ec,_0xeb1120){return _0x1028ec(_0xeb1120);}},_0x275993=[join(__dirname,'..','..','skills'),_0x5c9b44[_0x227b34(0xc5)](join,__dirname,'..','..','..',_0x5c9b44[_0x227b34(0xcc)])];for(const _0x299059 of _0x275993){if(_0x5c9b44[_0x227b34(0xcb)](existsSync,_0x299059))return _0x299059;}return _0x275993[0x0];}function _0x36f2(){const _0x47d17f=['bug-bash','push','warn','uekpR','zmAqf','cZeaz','UeohL','3694iagplL','e2e-test-recommender','\x20\x20Location:\x20','trim','27060DYpPrS','775pAJnNj','\x20\x20Files:\x20','8fzusQz','jebTr','catch','utf-8','\x20\x20Skill\x20not\x20found:\x20','226ZMbHUH','match','log','project','endsWith','Invalid\x20skill\x20frontmatter','fpxNy','121616dvVvOO','893304HxInUr','12ghCTOw','YLSQB','hbvVu','.md','feature-tracker','470ZaRfUt','filter','xmoRN','opencode','1679499YnekVA','3590790JfqfzU','length','532668uBIBSX','VDfgp','MqkiN','skills'];_0x36f2=function(){return _0x47d17f;};return _0x36f2();}function parseFrontmatter(_0x2efe42){const _0xcd9471=_0x49c2b6,_0x28a6a5={'fpxNy':_0xcd9471(0xba)},_0x53f7c8=_0x2efe42[_0xcd9471(0xb6)](/^---\n([\s\S]+?)\n---/);if(!_0x53f7c8)throw new Error(_0x28a6a5[_0xcd9471(0xbb)]);const _0x2627ba=_0x53f7c8[0x1],_0x209d7d=_0x2627ba['match'](/name:\s*(.+)/),_0x206aa1=_0x2627ba['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x209d7d?.[0x1]['trim']()||'','description':_0x206aa1?.[0x1][_0xcd9471(0xd8)]()||''};}export async function removeSkill(_0x3edc84,_0x5b34e7){const _0x307022=_0x49c2b6,_0x24eac4={'uekpR':function(_0x3fe62b,_0x2baeb6){return _0x3fe62b(_0x2baeb6);},'zmAqf':function(_0x453b28,_0x2d21a0,_0x592925){return _0x453b28(_0x2d21a0,_0x592925);}},_0xc005ac=getSkillsDir(_0x5b34e7),_0x1fbf9c=join(_0xc005ac,_0x3edc84);if(!_0x24eac4[_0x307022(0xd1)](existsSync,_0x1fbf9c))return![];try{return await _0x24eac4[_0x307022(0xd2)](rm,_0x1fbf9c,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x3edc84),!![];}catch{return console[_0x307022(0xd0)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x3edc84),![];}}
|