@ranger-testing/ranger-cli 2.4.3 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -0
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -0
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x346f12,_0x38f34d){const _0xda3d23=_0x33f2,_0x4997b7=_0x346f12();while(!![]){try{const _0x39ac02=parseInt(_0xda3d23(0x129))/0x1+parseInt(_0xda3d23(0x107))/0x2*(parseInt(_0xda3d23(0xf0))/0x3)+parseInt(_0xda3d23(0x11a))/0x4*(parseInt(_0xda3d23(0xf5))/0x5)+parseInt(_0xda3d23(0xee))/0x6*(-parseInt(_0xda3d23(0xf8))/0x7)+parseInt(_0xda3d23(0x11e))/0x8*(parseInt(_0xda3d23(0x109))/0x9)+parseInt(_0xda3d23(0x110))/0xa+-parseInt(_0xda3d23(0xf6))/0xb*(parseInt(_0xda3d23(0x127))/0xc);if(_0x39ac02===_0x38f34d)break;else _0x4997b7['push'](_0x4997b7['shift']());}catch(_0x2b2512){_0x4997b7['push'](_0x4997b7['shift']());}}}(_0x5bf8,0x5c3ca));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0xd6ebfb){const _0xb551fa=_0x33f2,_0x27f597={'maMKO':function(_0x5c39ee,_0x1d4b6b){return _0x5c39ee(_0x1d4b6b);},'Dzofq':_0xb551fa(0xfb)},_0x5af53e=_0x27f597['maMKO'](createHash,_0xb551fa(0xfd))['update'](_0xd6ebfb)[_0xb551fa(0xf2)](_0x27f597['Dzofq'])['slice'](0x0,0xc);return _0xb551fa(0x105)+_0x5af53e;}function shellQuote(_0x32dd5d){const _0x27b689=_0x33f2;return'\x27'+_0x32dd5d['replace'](/'/g,_0x27b689(0x119))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x105613){const _0x4c8609={'rmEoA':function(_0xb24eac,_0x5e996d){return _0xb24eac(_0x5e996d);}};return SAFE_SHELL_TOKEN['test'](_0x105613)?_0x105613:_0x4c8609['rmEoA'](shellQuote,_0x105613);}export function buildPlaywrightCliInvocation(_0x526395,_0x2ffa20,_0x550662){const _0x222a53=_0x33f2,_0x3655ec={'yBUpk':function(_0x299b62,_0x139d65){return _0x299b62(_0x139d65);},'kHYnT':'--config'},_0x21ffad=_0x3655ec['yBUpk'](toPlaywrightCliSessionKey,_0x526395),[_0x56d9f9=_0x222a53(0x10a)]=_0x550662,_0x325ccc=[PLAYWRIGHT_CLI_BINARY,_0x222a53(0xf7)+_0x21ffad,_0x3655ec[_0x222a53(0xfc)],_0x2ffa20,..._0x550662];return{'command':_0x222a53(0x106),'args':_0x325ccc,'shellCommand':[_0x222a53(0x106),PLAYWRIGHT_CLI_BINARY,_0x222a53(0xf7)+quoteShellArg(_0x21ffad),_0x222a53(0x10b),_0x3655ec[_0x222a53(0x111)](quoteShellArg,_0x2ffa20),..._0x550662[_0x222a53(0x101)](quoteShellArg)][_0x222a53(0xf3)]('\x20'),'subcommand':_0x56d9f9};}export function buildPlaywrightCliCommandPrefix(_0x4b86da,_0xbe804){const _0xad7c57=_0x33f2,_0x27de2f={'geGRo':function(_0x4ee951,_0x232da7){return _0x4ee951(_0x232da7);},'XyrIk':_0xad7c57(0x106),'jfOKk':function(_0x3a6626,_0x37c5e0){return _0x3a6626(_0x37c5e0);},'UjTsw':function(_0x202e44,_0x40c967){return _0x202e44(_0x40c967);}},_0x1fceff=_0x27de2f['geGRo'](toPlaywrightCliSessionKey,_0x4b86da);return[_0x27de2f[_0xad7c57(0x104)],PLAYWRIGHT_CLI_BINARY,_0xad7c57(0xf7)+_0x27de2f[_0xad7c57(0x123)](quoteShellArg,_0x1fceff),_0xad7c57(0x10b),_0x27de2f['UjTsw'](quoteShellArg,_0xbe804)]['join']('\x20');}function _0x33f2(_0x168b79,_0x2e625b){_0x168b79=_0x168b79-0xed;const _0x5bf83d=_0x5bf8();let _0x33f28b=_0x5bf83d[_0x168b79];return _0x33f28b;}function _0x5bf8(){const _0x3120e0=['hex','kHYnT','sha256','sessionId','args','CUFVY','map','\x0astdout:\x20','configPath','XyrIk','rg-','npx','138cyeXpL','SIGTERM','204381qVPxcN','unknown','--config','exited\x20with\x20code=','xhjmd','GXtmQ','Ehpfl','3087720TjIAnb','yBUpk','wmJkR','vvDSn','...','match','script','stdout','command','\x27\x5c\x27\x27','1219376dzXiZp','length','timeoutMs','UZHHP','40lOfKjy','\x0astderr:\x20','playwright-cli\x20','string','timed\x20out\x20after\x20','jfOKk','kill','UDNBf','SIGKILL','24HoDehk','ignore','159142zTxXiF','cUfwM','454452glSsuJ','slice','25293ytjDWH','data','digest','join','env','5uuPBpN','5579739NCkWQn','-s=','7JgEJcZ','values','bash_command'];_0x5bf8=function(){return _0x3120e0;};return _0x5bf8();}function truncateOutput(_0x5c17d1,_0x54fbd0=0x7d0){const _0x4fa565=_0x33f2,_0x2e6641={'QVGTm':function(_0x49d4d7,_0x28d38d){return _0x49d4d7+_0x28d38d;},'GXtmQ':_0x4fa565(0x114)};return _0x5c17d1[_0x4fa565(0x11b)]>_0x54fbd0?_0x2e6641['QVGTm'](_0x5c17d1[_0x4fa565(0xef)](0x0,_0x54fbd0),_0x2e6641[_0x4fa565(0x10e)]):_0x5c17d1;}export async function runPlaywrightCliCommand(_0x35ed79){const _0x20192e=_0x33f2,_0x17d2a8={'wdmTX':function(_0x464fcf,_0x50270d){return _0x464fcf(_0x50270d);},'CjrKl':function(_0x1e00be,_0x8392f1){return _0x1e00be??_0x8392f1;},'CUFVY':function(_0x9326ce,_0x544797,_0x4da93f,_0x1d4ba7){return _0x9326ce(_0x544797,_0x4da93f,_0x1d4ba7);},'puKSq':_0x20192e(0xf1),'Ehpfl':'error','UDNBf':'close'},_0x5e9885=_0x17d2a8[_0x20192e(0x100)](buildPlaywrightCliInvocation,_0x35ed79[_0x20192e(0xfe)],_0x35ed79[_0x20192e(0x103)],_0x35ed79['commandArgs']);return new Promise((_0x19116f,_0x304b5f)=>{const _0x11e1cd=_0x20192e,_0x409927={'vvDSn':function(_0x46b28f,_0x74a452){return _0x46b28f(_0x74a452);},'xhjmd':function(_0x4306f6,_0x15f559){return _0x17d2a8['wdmTX'](_0x4306f6,_0x15f559);},'uvQrf':function(_0x4a7c41,_0x34c823){return _0x17d2a8['CjrKl'](_0x4a7c41,_0x34c823);},'fJAZv':function(_0x4c05ac,_0x302b71){return _0x4c05ac(_0x302b71);},'wmJkR':function(_0x5f2c10,_0x54c2b9){return _0x5f2c10(_0x54c2b9);}},_0x82e8fa=_0x17d2a8[_0x11e1cd(0x100)](spawn,_0x5e9885[_0x11e1cd(0x118)],_0x5e9885[_0x11e1cd(0xff)],{'cwd':_0x35ed79['cwd'],'env':_0x35ed79[_0x11e1cd(0xf4)],'stdio':[_0x11e1cd(0x128),'pipe','pipe']});let _0x2fd08a='',_0x45fbed='',_0x414605=![];const _0x27ac7d=_0x35ed79['timeoutMs']&&_0x35ed79[_0x11e1cd(0x11c)]>0x0?setTimeout(()=>{const _0xe71b90=_0x11e1cd;_0x414605=!![],_0x82e8fa[_0xe71b90(0x124)](_0xe71b90(0x108)),setTimeout(()=>{const _0x42276d=_0xe71b90;try{_0x82e8fa['kill'](_0x42276d(0x126));}catch{}},0x3e8);},_0x35ed79[_0x11e1cd(0x11c)]):null;_0x82e8fa[_0x11e1cd(0x117)]?.['on'](_0x17d2a8['puKSq'],_0x29d990=>{_0x2fd08a+=_0x29d990['toString']();}),_0x82e8fa['stderr']?.['on']('data',_0x1dc3fb=>{_0x45fbed+=_0x1dc3fb['toString']();}),_0x82e8fa['on'](_0x17d2a8[_0x11e1cd(0x10f)],_0x518f3e=>{const _0x5ca300=_0x11e1cd;if(_0x27ac7d)_0x409927[_0x5ca300(0x113)](clearTimeout,_0x27ac7d);_0x409927['xhjmd'](_0x304b5f,_0x518f3e);}),_0x82e8fa['on'](_0x17d2a8[_0x11e1cd(0x125)],(_0x115d84,_0x14965d)=>{const _0x65db37=_0x11e1cd;if(_0x27ac7d)_0x409927[_0x65db37(0x10d)](clearTimeout,_0x27ac7d);if(_0x115d84===0x0){_0x19116f({'stdout':_0x2fd08a,'stderr':_0x45fbed,'invocation':_0x5e9885});return;}const _0x5a16e6=_0x414605?_0x65db37(0x122)+_0x35ed79['timeoutMs']+'ms':_0x65db37(0x10c)+_0x409927['uvQrf'](_0x115d84,'null')+'\x20signal='+(_0x14965d??'null');_0x304b5f(new Error(_0x65db37(0x120)+_0x5e9885['subcommand']+'\x20'+_0x5a16e6+_0x65db37(0x102)+_0x409927['fJAZv'](truncateOutput,_0x2fd08a)+_0x65db37(0x11f)+_0x409927[_0x65db37(0x112)](truncateOutput,_0x45fbed)));});});}export function extractBashCommand(_0x402243){const _0x2a64e9=_0x33f2,_0x2eff4a={'cUfwM':'cmd','UZHHP':function(_0x23b082,_0x1cba34){return _0x23b082===_0x1cba34;},'qWHvF':_0x2a64e9(0x121),'pRlHZ':function(_0x280eef,_0x4308e2){return _0x280eef??_0x4308e2;}},_0x48d62c=[_0x2a64e9(0x118),_0x2eff4a[_0x2a64e9(0xed)],_0x2a64e9(0x116),_0x2a64e9(0xfa)];for(const _0x368f6 of _0x48d62c){const _0xf96bbf=_0x402243[_0x368f6];if(_0x2eff4a[_0x2a64e9(0x11d)](typeof _0xf96bbf,_0x2eff4a['qWHvF'])&&_0xf96bbf['trim']())return _0xf96bbf;}const _0x482ef9=Object[_0x2a64e9(0xf9)](_0x402243)['find'](_0x43b528=>typeof _0x43b528===_0x2a64e9(0x121)&&_0x43b528['trim']()['length']>0x0);return _0x2eff4a['pRlHZ'](_0x482ef9,null);}export function parsePlaywrightCliCommand(_0x27c7f3){const _0x10fc92=_0x33f2,_0x4f7d04=_0x27c7f3[_0x10fc92(0x115)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4f7d04?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xd11b(_0x3f5272,_0x49fd6e){_0x3f5272=_0x3f5272-0x18e;const _0x2e3bab=_0x2e3b();let _0xd11bc6=_0x2e3bab[_0x3f5272];return _0xd11bc6;}(function(_0x5681de,_0x5208c4){const _0x40854a=_0xd11b,_0x3bcb3c=_0x5681de();while(!![]){try{const _0x343f8a=parseInt(_0x40854a(0x193))/0x1*(parseInt(_0x40854a(0x191))/0x2)+-parseInt(_0x40854a(0x18e))/0x3+parseInt(_0x40854a(0x192))/0x4*(parseInt(_0x40854a(0x198))/0x5)+parseInt(_0x40854a(0x190))/0x6*(parseInt(_0x40854a(0x18f))/0x7)+-parseInt(_0x40854a(0x195))/0x8+parseInt(_0x40854a(0x194))/0x9+-parseInt(_0x40854a(0x197))/0xa;if(_0x343f8a===_0x5208c4)break;else _0x3bcb3c['push'](_0x3bcb3c['shift']());}catch(_0x6f333e){_0x3bcb3c['push'](_0x3bcb3c['shift']());}}}(_0x2e3b,0x987c6));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x4402db){const _0x2142be=_0xd11b,_0x290580=_0x4402db?_0x4402db(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x2142be(0x196)+_0x290580+'.';}function _0x2e3b(){const _0x1210ad=['697515TlrkSA','3003nlnngC','6942xDClXi','98566VeHRyT','4552120bojaxs','13VwqXAU','7993620jVzjWv','8673672efVYdS','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','12219460uZvsNH','5wNCHix'];_0x2e3b=function(){return _0x1210ad;};return _0x2e3b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3f8dcb,_0xfaf72f){const _0x61959=_0x413f,_0x5ae498=_0x3f8dcb();while(!![]){try{const _0x37af33=-parseInt(_0x61959(0x9e))/0x1*(parseInt(_0x61959(0x9b))/0x2)+-parseInt(_0x61959(0x91))/0x3*(parseInt(_0x61959(0x9c))/0x4)+-parseInt(_0x61959(0x96))/0x5+-parseInt(_0x61959(0x93))/0x6*(-parseInt(_0x61959(0x94))/0x7)+parseInt(_0x61959(0x9a))/0x8*(-parseInt(_0x61959(0x9d))/0x9)+parseInt(_0x61959(0x92))/0xa+parseInt(_0x61959(0x99))/0xb;if(_0x37af33===_0xfaf72f)break;else _0x5ae498['push'](_0x5ae498['shift']());}catch(_0x34182f){_0x5ae498['push'](_0x5ae498['shift']());}}}(_0x1df7,0xded33));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x53c55d=_0x413f,_0x2eb403={'mySsT':function(_0x1583a3,_0x1ee6eb){return _0x1583a3+_0x1ee6eb;},'mvsGa':'<div\x20class=\x22ranger-banner__content\x22>','oSoIV':_0x53c55d(0x9f),'lioBg':'<div\x20class=\x22ranger-banner__message\x22>','aKDWg':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','eqiLj':_0x53c55d(0x95)},_0x1bc32c=_0x2eb403[_0x53c55d(0x97)](_0x2eb403['mySsT'](_0x2eb403['mvsGa']+_0x2eb403[_0x53c55d(0xa0)],_0x2eb403['lioBg'])+_0x53c55d(0xa1)+_0x2eb403['aKDWg']+'</div>','</div>')+_0x2eb403['eqiLj'],_0x31b5cc='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x53c55d(0xa3)+JSON[_0x53c55d(0x98)](_0x1bc32c)+';\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[_0x53c55d(0x98)](_0x31b5cc)+_0x53c55d(0xa2);})());function _0x1df7(){const _0x5a8ea8=['\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','addInitScript','3DUUnaP','10285260VIclTs','6OYPIYj','1606703XvUgsp','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','8758710cMCZhD','mySsT','stringify','28852307VpmGUr','195296NtTRVL','46108ZCYabr','2756004pqwcRF','135iAIJgj','7xttYyw','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','oSoIV','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',';\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'];_0x1df7=function(){return _0x5a8ea8;};return _0x1df7();}function _0x413f(_0x54f123,_0x17f081){_0x54f123=_0x54f123-0x90;const _0x1df73f=_0x1df7();let _0x413f02=_0x1df73f[_0x54f123];return _0x413f02;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x137561){const _0x48d6be=_0x413f;await _0x137561[_0x48d6be(0x90)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22ebb4,_0x2a38c7){const _0x3eb5da=_0x5203,_0x31f6d8=_0x22ebb4();while(!![]){try{const _0x20a2c0=-parseInt(_0x3eb5da(0xff))/0x1+parseInt(_0x3eb5da(0x109))/0x2*(parseInt(_0x3eb5da(0xfb))/0x3)+-parseInt(_0x3eb5da(0xf6))/0x4+-parseInt(_0x3eb5da(0xfa))/0x5+-parseInt(_0x3eb5da(0x10a))/0x6*(parseInt(_0x3eb5da(0x106))/0x7)+-parseInt(_0x3eb5da(0x104))/0x8+-parseInt(_0x3eb5da(0xf8))/0x9*(-parseInt(_0x3eb5da(0xfe))/0xa);if(_0x20a2c0===_0x2a38c7)break;else _0x31f6d8['push'](_0x31f6d8['shift']());}catch(_0x2739bc){_0x31f6d8['push'](_0x31f6d8['shift']());}}}(_0x38fd,0x6c4b0));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x5203(_0x2d4055,_0x3f7437){_0x2d4055=_0x2d4055-0xf6;const _0x38fd16=_0x38fd();let _0x52032b=_0x38fd16[_0x2d4055];return _0x52032b;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x38fd(){const _0x30311c=['1017465NFgSfY','14166FAkAhB','FLtsT','uRmQv','770pPoxZw','659037ChXYya','parse','object','model','config.json','3049256OZLtYc','warn','77IGmJSG','QQJPq','OCtHo','218oYiHic','21822tYnvYr','1802852SZHsaE','tPzQE','194409ActAbo','string'];_0x38fd=function(){return _0x30311c;};return _0x38fd();}export function getRangerConfigPath(){const _0xf48ae=_0x5203,_0x5c6e47={'yuwlK':function(_0xbca0cb,_0x3f4206,_0x140a8e){return _0xbca0cb(_0x3f4206,_0x140a8e);}};return _0x5c6e47['yuwlK'](join,getRangerDir(),_0xf48ae(0x103));}export async function loadRangerConfig(){const _0x4ae050=_0x5203,_0x3ceffc={'tPzQE':function(_0x3b8b92,_0x4dda3f){return _0x3b8b92(_0x4dda3f);},'FLtsT':function(_0x31e9b6,_0x2c3437,_0x3e577c){return _0x31e9b6(_0x2c3437,_0x3e577c);},'OCtHo':function(_0x185a11,_0x4b6193){return _0x185a11!==_0x4b6193;},'uRmQv':_0x4ae050(0x101),'QQJPq':function(_0x239d62,_0x324010){return _0x239d62 instanceof _0x324010;}},_0xdd7b4e=getRangerConfigPath();if(!_0x3ceffc['tPzQE'](existsSync,_0xdd7b4e))return{};try{const _0x5b5f53=await _0x3ceffc[_0x4ae050(0xfc)](readFile,_0xdd7b4e,'utf-8'),_0x7c610=JSON[_0x4ae050(0x100)](_0x5b5f53);if(!_0x7c610||_0x3ceffc[_0x4ae050(0x108)](typeof _0x7c610,_0x3ceffc[_0x4ae050(0xfd)])||Array['isArray'](_0x7c610))return{};const _0x15c708={},_0x30090e=_0x7c610[_0x4ae050(0x102)];return typeof _0x30090e===_0x4ae050(0xf9)&&(_0x15c708[_0x4ae050(0x102)]=_0x30090e),_0x15c708;}catch(_0x220088){const _0x5ccf51=_0x3ceffc[_0x4ae050(0x107)](_0x220088,Error)?_0x220088['message']:_0x3ceffc[_0x4ae050(0xf7)](String,_0x220088);return console[_0x4ae050(0x105)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0xdd7b4e+':\x20'+_0x5ccf51),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4bbb(_0x1d2a73,_0x49268c){_0x1d2a73=_0x1d2a73-0x19a;const _0xe051d6=_0xe051();let _0x4bbb22=_0xe051d6[_0x1d2a73];return _0x4bbb22;}(function(_0x45230a,_0x249c23){const _0x466008=_0x4bbb,_0x33bb5a=_0x45230a();while(!![]){try{const _0x56f1fe=-parseInt(_0x466008(0x1ab))/0x1+parseInt(_0x466008(0x1a6))/0x2+parseInt(_0x466008(0x1ad))/0x3*(parseInt(_0x466008(0x1a2))/0x4)+-parseInt(_0x466008(0x1a0))/0x5*(parseInt(_0x466008(0x19f))/0x6)+parseInt(_0x466008(0x1a5))/0x7+-parseInt(_0x466008(0x1ac))/0x8*(-parseInt(_0x466008(0x19a))/0x9)+-parseInt(_0x466008(0x19b))/0xa*(-parseInt(_0x466008(0x1aa))/0xb);if(_0x56f1fe===_0x249c23)break;else _0x33bb5a['push'](_0x33bb5a['shift']());}catch(_0x2a1281){_0x33bb5a['push'](_0x33bb5a['shift']());}}}(_0xe051,0x9e864));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x4a5126=_0x4bbb,_0x5bcdd5={'roFzG':function(_0x4eb79e,_0x263d6e){return _0x4eb79e(_0x263d6e);},'NhZtb':function(_0x4536d7,_0x6b6417,_0xe04a8d){return _0x4536d7(_0x6b6417,_0xe04a8d);}};let _0x2b2b8f=process['cwd']();const _0x292005=_0x5bcdd5['roFzG'](parse,_0x2b2b8f)[_0x4a5126(0x1a7)];while(_0x2b2b8f!==_0x292005){if(existsSync(join(_0x2b2b8f,'.ranger')))return _0x2b2b8f;_0x2b2b8f=dirname(_0x2b2b8f);}if(existsSync(_0x5bcdd5[_0x4a5126(0x19d)](join,_0x292005,_0x4a5126(0x1a8))))return _0x292005;const _0x36d4ea=findGitRoot();if(_0x36d4ea)return _0x36d4ea;return process[_0x4a5126(0x19e)]();}export function getRangerDir(){const _0x556293=_0x4bbb,_0x112ee={'VgpWa':function(_0x33d948,_0x597870,_0xa4de0a){return _0x33d948(_0x597870,_0xa4de0a);},'UIWsW':function(_0x155667){return _0x155667();},'fZdQe':'.ranger'};return _0x112ee[_0x556293(0x1a3)](join,_0x112ee[_0x556293(0x19c)](getRangerRoot),_0x112ee['fZdQe']);}function _0xe051(){const _0x1468c5=['VWdpE','2072632gsDNGq','VgpWa','iyvae','1718073ZfRHDS','586878pEHdCQ','root','.ranger','AjIUP','4213hjfrul','1128197EolKyL','16UIWVwD','3qgqZns','3062709hSDYfa','21350AXkHnv','UIWsW','NhZtb','cwd','4666980KgaJJY','5ataHvT'];_0xe051=function(){return _0x1468c5;};return _0xe051();}export function findGitRoot(){const _0x28ff68=_0x4bbb,_0x1c1288={'rwNge':function(_0x23bf23,_0x2157f2){return _0x23bf23(_0x2157f2);},'VWdpE':function(_0x19732d,_0x4c6be6,_0x5afbc3){return _0x19732d(_0x4c6be6,_0x5afbc3);},'iyvae':'.git'};let _0x4c7793=process[_0x28ff68(0x19e)]();const _0x47611c=parse(_0x4c7793)[_0x28ff68(0x1a7)];while(_0x4c7793!==_0x47611c){if(_0x1c1288['rwNge'](existsSync,_0x1c1288[_0x28ff68(0x1a1)](join,_0x4c7793,'.git')))return _0x4c7793;_0x4c7793=dirname(_0x4c7793);}if(existsSync(join(_0x47611c,_0x1c1288[_0x28ff68(0x1a4)])))return _0x47611c;return null;}export function getRangerHomeDir(){const _0x5a9e21=_0x4bbb,_0x34d421={'bbaJc':function(_0x547f4f,_0x4e2c3c,_0x12a42a){return _0x547f4f(_0x4e2c3c,_0x12a42a);},'AjIUP':function(_0x5101f1){return _0x5101f1();}};return _0x34d421['bbaJc'](join,_0x34d421[_0x5a9e21(0x1a9)](homedir),_0x5a9e21(0x1a8));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6f24cb,_0x3af782){const _0xf2b099=_0x4642,_0x521374=_0x6f24cb();while(!![]){try{const _0x59be27=-parseInt(_0xf2b099(0x1cc))/0x1*(-parseInt(_0xf2b099(0x1db))/0x2)+parseInt(_0xf2b099(0x1e5))/0x3*(parseInt(_0xf2b099(0x1df))/0x4)+-parseInt(_0xf2b099(0x1e7))/0x5*(parseInt(_0xf2b099(0x1e4))/0x6)+parseInt(_0xf2b099(0x1d6))/0x7*(parseInt(_0xf2b099(0x1de))/0x8)+-parseInt(_0xf2b099(0x1e8))/0x9+-parseInt(_0xf2b099(0x1ce))/0xa*(parseInt(_0xf2b099(0x1e1))/0xb)+parseInt(_0xf2b099(0x1e9))/0xc*(parseInt(_0xf2b099(0x1cd))/0xd);if(_0x59be27===_0x3af782)break;else _0x521374['push'](_0x521374['shift']());}catch(_0x3f3d69){_0x521374['push'](_0x521374['shift']());}}}(_0x3913,0xe9ff2));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x5780db){const _0x233e20=_0x4642,_0x1cc9e0={'hWzzG':function(_0x2884b4,_0x584da4){return _0x2884b4(_0x584da4);},'fKIJR':function(_0x5de84a,_0x592e6e,_0x1f267a){return _0x5de84a(_0x592e6e,_0x1f267a);}},_0x5eb1c3=[],_0x1a15ba=[];if(!_0x1cc9e0['hWzzG'](existsSync,_0x5780db))return{'screenshots':_0x5eb1c3,'paths':_0x1a15ba};const _0x3e9387=await _0x1cc9e0['hWzzG'](readdir,_0x5780db),_0x5adfa3=_0x3e9387['filter'](_0x20787f=>/\.(png|jpg|jpeg|gif|webp)$/i[_0x233e20(0x1e0)](_0x20787f))['sort']();for(const _0x58a6f3 of _0x5adfa3){const _0x3bc85b=_0x1cc9e0[_0x233e20(0x1cb)](join,_0x5780db,_0x58a6f3);_0x5eb1c3['push']({'filename':_0x58a6f3,'path':_0x3bc85b,'relativePath':'./'+_0x58a6f3}),_0x1a15ba['push'](_0x3bc85b);}return{'screenshots':_0x5eb1c3,'paths':_0x1a15ba};}function getSeverityEmoji(_0x537626){const _0x1f3a3b=_0x4642,_0x55118c={'FBqys':'BLOCKER'};switch(_0x537626){case _0x55118c[_0x1f3a3b(0x1eb)]:return'🔴';case'MAJOR':return'🟠';default:return'⚪';}}function _0x4642(_0xbb50ab,_0x1eed26){_0xbb50ab=_0xbb50ab-0x1cb;const _0x391377=_0x3913();let _0x46428d=_0x391377[_0xbb50ab];return _0x46428d;}function _0x3913(){const _0x408048=['1KLApQr','26tuIjki','235310tTEeKZ','replace','relativePath','severity','find','###\x20Issues\x20Found\x20(','##\x20Task','**Duration:**\x20','24031xhIstW','join','filename','###\x20Summary','**URL:**\x20','1027454TRLBpw','screenshot','#\x20Verification\x20Report','2912fUKkIS','4lybODs','test','781QTmCRt','length','**Status:**\x20','24HGIrJV','1063551KIogrP','slice','1986690edMUvk','615501MUhexW','13014216QEOFWW','push','FBqys','toUpperCase','ISSUES\x20FOUND','map','fKIJR'];_0x3913=function(){return _0x408048;};return _0x3913();}function formatScreenshotCaption(_0x500ac4){const _0x150340=_0x4642,_0x2e93da=_0x500ac4[_0x150340(0x1cf)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x48ee3a=_0x2e93da[_0x150340(0x1cf)](/^\d+-/,'');return _0x48ee3a['split']('-')[_0x150340(0x1ee)](_0xcd60f3=>_0xcd60f3['charAt'](0x0)[_0x150340(0x1ec)]()+_0xcd60f3[_0x150340(0x1e6)](0x1))[_0x150340(0x1d7)]('\x20');}export function generateMarkdownReport(_0x4ecd0d){const _0x502c2b=_0x4642,{sessionId:_0x5338bd,task:_0x5ab23f,url:_0x2c6fec,success:_0x4e68cd,summary:_0xccd628,issues:_0x5f4a39,screenshots:_0x1bbc61,durationMs:_0x5750a1,traceViewerUrl:_0x1bbb70}=_0x4ecd0d,_0xfa613b=new Date()['toISOString'](),_0x5870a2=(_0x5750a1/0x3e8)['toFixed'](0x1),_0x5f2ec8=[];_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1dd)),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8['push']('**Session:**\x20`'+_0x5338bd+'`'),_0x5f2ec8[_0x502c2b(0x1ea)]('**Generated:**\x20'+_0xfa613b),_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1d5)+_0x5870a2+'s'),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8['push'](_0x502c2b(0x1d4)),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1da)+_0x2c6fec),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8[_0x502c2b(0x1ea)]('>\x20'+_0x5ab23f),_0x5f2ec8['push'](''),_0x5f2ec8[_0x502c2b(0x1ea)]('##\x20Result'),_0x5f2ec8[_0x502c2b(0x1ea)]('');const _0x320940=_0x4e68cd?'✅':'❌';_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1e3)+_0x320940+'\x20'+(_0x4e68cd?'PASSED':_0x502c2b(0x1ed))),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8['push'](_0x502c2b(0x1d9)),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8[_0x502c2b(0x1ea)](_0xccd628),_0x5f2ec8[_0x502c2b(0x1ea)]('');if(_0x5f4a39&&_0x5f4a39['length']>0x0){_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1d3)+_0x5f4a39['length']+')'),_0x5f2ec8['push']('');for(const _0x50a24f of _0x5f4a39){const _0x249ff4=getSeverityEmoji(_0x50a24f[_0x502c2b(0x1d1)]);_0x5f2ec8[_0x502c2b(0x1ea)]('####\x20'+_0x249ff4+'\x20['+_0x50a24f['severity']+']\x20Issue'),_0x5f2ec8['push'](''),_0x5f2ec8['push'](_0x50a24f['description']),_0x5f2ec8['push']('');if(_0x50a24f['screenshot']){const _0x53949c=_0x50a24f[_0x502c2b(0x1dc)],_0x340a1c=_0x1bbc61[_0x502c2b(0x1d2)](_0x3e09e0=>_0x3e09e0['filename']===_0x53949c||_0x3e09e0[_0x502c2b(0x1d8)]['includes'](_0x53949c));_0x340a1c&&(_0x5f2ec8[_0x502c2b(0x1ea)]('**Screenshot:**'),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8['push'](']+')'),_0x5f2ec8['push'](''));}}}if(_0x1bbc61[_0x502c2b(0x1e2)]>0x0){_0x5f2ec8[_0x502c2b(0x1ea)]('##\x20Screenshots\x20('+_0x1bbc61['length']+')'),_0x5f2ec8[_0x502c2b(0x1ea)]('');for(const _0x3d9070 of _0x1bbc61){const _0x800bab=formatScreenshotCaption(_0x3d9070[_0x502c2b(0x1d8)]);_0x5f2ec8[_0x502c2b(0x1ea)]('###\x20'+_0x800bab),_0x5f2ec8['push'](''),_0x5f2ec8['push']('!['+_0x3d9070['filename']+']('+_0x3d9070[_0x502c2b(0x1d0)]+')'),_0x5f2ec8[_0x502c2b(0x1ea)]('');}}return _0x1bbb70&&(_0x5f2ec8['push']('---'),_0x5f2ec8['push'](''),_0x5f2ec8[_0x502c2b(0x1ea)]('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x1bbb70+')'),_0x5f2ec8[_0x502c2b(0x1ea)]('')),_0x5f2ec8[_0x502c2b(0x1d7)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5717(_0x301a41,_0x3bf02f){_0x301a41=_0x301a41-0xc6;const _0x449c89=_0x449c();let _0x571747=_0x449c89[_0x301a41];return _0x571747;}(function(_0x47bc93,_0x40b499){const _0x35f841=_0x5717,_0x144eaa=_0x47bc93();while(!![]){try{const _0xeac8b5=-parseInt(_0x35f841(0xd0))/0x1+-parseInt(_0x35f841(0xd3))/0x2+parseInt(_0x35f841(0xd1))/0x3*(parseInt(_0x35f841(0xcf))/0x4)+-parseInt(_0x35f841(0xc9))/0x5+parseInt(_0x35f841(0xca))/0x6*(parseInt(_0x35f841(0xc7))/0x7)+parseInt(_0x35f841(0xce))/0x8+parseInt(_0x35f841(0xd4))/0x9*(-parseInt(_0x35f841(0xcc))/0xa);if(_0xeac8b5===_0x40b499)break;else _0x144eaa['push'](_0x144eaa['shift']());}catch(_0x370597){_0x144eaa['push'](_0x144eaa['shift']());}}}(_0x449c,0xcad39));function _0x449c(){const _0x57f11b=['20GWhfRv','ms...','10090608foArtO','1624868YukCpF','760400djzvME','9UWIFfU','baseDelayMs','404540JDkgzk','3527514rUPHLy','lzjtc','106148lJrSSK','ocFsb','1257050xfuEvN','138DbwLnz','),\x20retrying\x20in\x20'];_0x449c=function(){return _0x57f11b;};return _0x449c();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x2e2086,_0x56875d){const _0x342eee=_0x5717,_0x129330={'lzjtc':function(_0x2ffd7b){return _0x2ffd7b();},'ocFsb':function(_0x5e2b44,_0x8c3cc6){return _0x5e2b44(_0x8c3cc6);}},_0x166889=_0x56875d?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x59379e=_0x56875d?.[_0x342eee(0xd2)]??DEFAULT_BASE_DELAY_MS;let _0x344619;for(let _0x20c236=0x0;_0x20c236<=_0x166889;_0x20c236++){try{return await _0x129330[_0x342eee(0xc6)](_0x2e2086);}catch(_0x51b596){_0x344619=_0x51b596 instanceof Error?_0x51b596:new Error(_0x129330[_0x342eee(0xc8)](String,_0x51b596));if(_0x20c236<_0x166889){const _0x2cfdd1=_0x59379e*Math['pow'](0x2,_0x20c236);_0x56875d?.['label']&&console['error'](_0x56875d['label']+'\x20failed\x20(attempt\x20'+(_0x20c236+0x1)+'/'+(_0x166889+0x1)+_0x342eee(0xcb)+_0x2cfdd1+_0x342eee(0xcd)),await new Promise(_0x36232b=>setTimeout(_0x36232b,_0x2cfdd1));}}}throw _0x344619;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3009a4=_0x152c;(function(_0x4de1ad,_0x57645e){const _0x3c39a7=_0x152c,_0x900d3e=_0x4de1ad();while(!![]){try{const _0x1182c2=parseInt(_0x3c39a7(0x1eb))/0x1+-parseInt(_0x3c39a7(0x203))/0x2*(parseInt(_0x3c39a7(0x1e9))/0x3)+-parseInt(_0x3c39a7(0x20f))/0x4*(parseInt(_0x3c39a7(0x219))/0x5)+-parseInt(_0x3c39a7(0x21c))/0x6*(parseInt(_0x3c39a7(0x1f2))/0x7)+-parseInt(_0x3c39a7(0x1e5))/0x8*(parseInt(_0x3c39a7(0x1ea))/0x9)+parseInt(_0x3c39a7(0x1ed))/0xa*(-parseInt(_0x3c39a7(0x1ff))/0xb)+parseInt(_0x3c39a7(0x1f3))/0xc;if(_0x1182c2===_0x57645e)break;else _0x900d3e['push'](_0x900d3e['shift']());}catch(_0x19bbaa){_0x900d3e['push'](_0x900d3e['shift']());}}}(_0xfadb,0x1e2d8));import*as _0x1872ae from'fs';function _0xfadb(){const _0x200f39=['existsSync','RpzRR','lastStopReminderAt','620SOHDZE','cPZgo','OFTLX','102MLGgUw','sessions','pipe','currentBranch','OXCEW','208QJOrGQ','branches','prompted','jJDyG','9411bDmjnG','15462Oxfhtl','117670FdaNJi','FNbUG','2085260fcsEpO','APMPE','writeFileSync','master','xFfjQ','52199axkLWX','6713856neGjzy','tqmbh','lastEnabledSessionClearedAt','registeredAt','join','VOAcx','SQoLm','crSjt','SJwpD','utf-8','vGQnf','KiTDZ','11VCGCEw','lHiVV','now','vOfTX','6ePWQMF','yVWqY','enabled','MAEyV','Hjxhh','iwGBy','VsOPj','aAPex','mkdirSync','JgRKQ','kUEKl','parse','5296rmgIzy','oxEsN','CkQZT','qTIyO','nWnJv','featureId','main'];_0xfadb=function(){return _0x200f39;};return _0xfadb();}import*as _0x5165d1 from'path';import*as _0x1565f5 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x5165d1[_0x3009a4(0x1f7)](_0x1565f5['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x23169c=_0x3009a4,_0x531d7f={'SJwpD':_0x23169c(0x1fc),'aAPex':function(_0xa7475a){return _0xa7475a();}};try{if(_0x1872ae['existsSync'](CACHE_FILE)){const _0xbf559e=JSON[_0x23169c(0x20e)](_0x1872ae['readFileSync'](CACHE_FILE,_0x531d7f[_0x23169c(0x1fb)]));return{'version':0x3,'sessions':_0xbf559e['sessions']||{},'branches':_0xbf559e['branches']||{},'lastEnabledSessionClearedAt':_0xbf559e[_0x23169c(0x1f5)]};}}catch{}return _0x531d7f[_0x23169c(0x20a)](createEmptyCache);}function saveCache(_0x51a3d6){const _0x56a9d0=_0x3009a4;try{const _0x171dbf=_0x5165d1['dirname'](CACHE_FILE);!_0x1872ae[_0x56a9d0(0x216)](_0x171dbf)&&_0x1872ae[_0x56a9d0(0x20b)](_0x171dbf,{'recursive':!![]}),_0x1872ae[_0x56a9d0(0x1ef)](CACHE_FILE,JSON['stringify'](_0x51a3d6,null,0x2));}catch{}}export function getCurrentBranch(){const _0x240f37=_0x3009a4,_0x1b6dc8={'kUEKl':_0x240f37(0x1e2),'evlfc':function(_0x130b1d,_0x29ba86){return _0x130b1d===_0x29ba86;}};try{const _0x41e4ac=execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':'utf-8','stdio':[_0x1b6dc8['kUEKl'],_0x1b6dc8[_0x240f37(0x20d)],_0x1b6dc8[_0x240f37(0x20d)]]})['trim']();if(!_0x41e4ac||_0x1b6dc8['evlfc'](_0x41e4ac,'HEAD'))return null;return _0x41e4ac;}catch{return null;}}export function enableBranch(_0xf78ea2){const _0x146af7=_0x3009a4,_0x474478={'oxEsN':function(_0x3e4950){return _0x3e4950();},'AhSAI':function(_0x4ec06b,_0x74ca24){return _0x4ec06b(_0x74ca24);}},_0x1be69b=_0x474478[_0x146af7(0x210)](loadCache);_0x1be69b['branches'][_0xf78ea2]=!![],_0x474478['AhSAI'](saveCache,_0x1be69b);}export function disableBranch(_0x2dfe15){const _0x574558={'ovBbp':function(_0xdc16b0){return _0xdc16b0();}},_0x2f1bd2=_0x574558['ovBbp'](loadCache);delete _0x2f1bd2['branches'][_0x2dfe15],saveCache(_0x2f1bd2);}export function isBranchEnabled(_0x522520){const _0x4ca8c3=_0x3009a4,_0x119c29={'KiTDZ':function(_0x43393b){return _0x43393b();}},_0x19b212=_0x119c29[_0x4ca8c3(0x1fe)](loadCache);return _0x19b212[_0x4ca8c3(0x1e6)][_0x522520]===!![];}function getOrCreateSession(_0x54af11,_0x100ef7){const _0x3c265d=_0x3009a4;return!_0x54af11['sessions'][_0x100ef7]&&(_0x54af11[_0x3c265d(0x1e1)][_0x100ef7]={}),_0x54af11[_0x3c265d(0x1e1)][_0x100ef7];}export function enableSession(_0x3d3d5b){const _0x2d5528=_0x3009a4,_0x3014f1={'APMPE':function(_0x433359){return _0x433359();},'CkQZT':function(_0x575e4b,_0x44b0c9){return _0x575e4b!==_0x44b0c9;},'Hjxhh':'master','VOAcx':function(_0x2b0d87,_0x555876){return _0x2b0d87(_0x555876);}},_0x281aa2=_0x3014f1[_0x2d5528(0x1ee)](loadCache),_0x3676cb=getOrCreateSession(_0x281aa2,_0x3d3d5b);_0x3676cb['enabled']=!![];const _0x1d60f6=_0x3014f1['APMPE'](getCurrentBranch);_0x1d60f6&&_0x1d60f6!==_0x2d5528(0x215)&&_0x3014f1[_0x2d5528(0x211)](_0x1d60f6,_0x3014f1[_0x2d5528(0x207)])&&(_0x281aa2[_0x2d5528(0x1e6)][_0x1d60f6]=!![],_0x3676cb['currentBranch']=_0x1d60f6),_0x3014f1[_0x2d5528(0x1f8)](saveCache,_0x281aa2);}export function isSessionEnabled(_0x4c346e){const _0xfb7030=_0x3009a4,_0x2d68ae={'sQnuS':function(_0x304429){return _0x304429();},'jJDyG':function(_0x527b88,_0x2d2ac0){return _0x527b88===_0x2d2ac0;},'xFfjQ':function(_0x1df8e7,_0x337a3d){return _0x1df8e7===_0x337a3d;},'MCzkU':function(_0x2c41be,_0x12a2a8){return _0x2c41be===_0x12a2a8;}},_0x1acb7c=_0x2d68ae['sQnuS'](loadCache),_0x1bb43e=_0x2d68ae['sQnuS'](getCurrentBranch);if(!_0x1bb43e||_0x2d68ae[_0xfb7030(0x1e8)](_0x1bb43e,'main')||_0x2d68ae[_0xfb7030(0x1f1)](_0x1bb43e,'master'))return _0x1acb7c['sessions'][_0x4c346e]?.[_0xfb7030(0x205)]===!![];const _0xcd6cc=_0x2d68ae['xFfjQ'](_0x1acb7c[_0xfb7030(0x1e6)][_0x1bb43e],!![]),_0x1ae20a=_0x2d68ae['MCzkU'](_0x1acb7c[_0xfb7030(0x1e1)][_0x4c346e]?.['enabled'],!![]);return _0xcd6cc||_0x1ae20a;}export function disableSession(_0x4bd229){const _0x26330a=loadCache(),_0x2452fb=getOrCreateSession(_0x26330a,_0x4bd229);_0x2452fb['enabled']=![],saveCache(_0x26330a);}export function updateBranchTracking(_0x26ac76){const _0x14e3e8=_0x3009a4,_0x59d1d6={'qTIyO':function(_0x1a21fe){return _0x1a21fe();},'VsOPj':_0x14e3e8(0x215),'lXHBo':function(_0x5638ae,_0x2dd1a3){return _0x5638ae===_0x2dd1a3;},'RpzRR':'master','SQoLm':function(_0x406ff1,_0xd1fd81){return _0x406ff1!==_0xd1fd81;}},_0x5da72c=loadCache(),_0x3ba906=_0x5da72c['sessions'][_0x26ac76];if(!_0x3ba906?.[_0x14e3e8(0x205)])return;const _0x1dfe3c=_0x59d1d6[_0x14e3e8(0x212)](getCurrentBranch);if(!_0x1dfe3c||_0x1dfe3c===_0x59d1d6[_0x14e3e8(0x209)]||_0x59d1d6['lXHBo'](_0x1dfe3c,_0x59d1d6[_0x14e3e8(0x217)]))return;_0x59d1d6[_0x14e3e8(0x1f9)](_0x3ba906[_0x14e3e8(0x1e3)],_0x1dfe3c)&&(_0x5da72c['branches'][_0x1dfe3c]=!![],_0x3ba906[_0x14e3e8(0x1e3)]=_0x1dfe3c,saveCache(_0x5da72c));}export function initBranchTracking(_0x1dcd85){const _0x2cbc5d=_0x3009a4,_0x15003f={'FNbUG':'main','crSjt':function(_0x2e09a6,_0x2027ef){return _0x2e09a6===_0x2027ef;},'SrPOu':_0x2cbc5d(0x1f0)},_0x3a9699=loadCache(),_0x14b395=getCurrentBranch();if(!_0x14b395||_0x14b395===_0x15003f[_0x2cbc5d(0x1ec)]||_0x15003f[_0x2cbc5d(0x1fa)](_0x14b395,_0x15003f['SrPOu']))return;if(_0x3a9699['branches'][_0x14b395]===!![]){const _0x32cbc9=getOrCreateSession(_0x3a9699,_0x1dcd85);_0x32cbc9['enabled']=!![],_0x32cbc9['currentBranch']=_0x14b395,saveCache(_0x3a9699);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x254afc){const _0x55908e=_0x3009a4,_0x2d109b={'OXCEW':function(_0x90dea1,_0x37a027){return _0x90dea1(_0x37a027);}},_0x333ba5=loadCache(),_0xc5f9ad=_0x333ba5['sessions'][_0x254afc];_0xc5f9ad?.[_0x55908e(0x205)]&&(_0x333ba5['lastEnabledSessionClearedAt']=Date[_0x55908e(0x201)](),_0x2d109b[_0x55908e(0x1e4)](saveCache,_0x333ba5));}export function shouldAutoEnableAfterClear(_0x48e84d){const _0xcf69f5=_0x3009a4,_0xdf7aae={'MAEyV':function(_0x4d1419,_0x47f9a6){return _0x4d1419!==_0x47f9a6;},'tqmbh':function(_0x288995){return _0x288995();},'vGQnf':function(_0x5e6fe9,_0xa72bd5){return _0x5e6fe9-_0xa72bd5;}};if(_0xdf7aae[_0xcf69f5(0x206)](_0x48e84d,'clear'))return![];const _0x248495=_0xdf7aae[_0xcf69f5(0x1f4)](loadCache),_0x56c5e0=_0x248495['lastEnabledSessionClearedAt'];if(!_0x56c5e0)return![];const _0xcfb5b2=_0xdf7aae[_0xcf69f5(0x1fd)](Date[_0xcf69f5(0x201)](),_0x56c5e0);return _0xcfb5b2<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x2dc183){const _0xafcde1=_0x3009a4,_0x517fae={'iwGBy':function(_0x371e67){return _0x371e67();},'lHiVV':function(_0x1fd9e6,_0x223858,_0x9b752a){return _0x1fd9e6(_0x223858,_0x9b752a);},'cPZgo':function(_0x3c50d9,_0x1440c5){return _0x3c50d9!==_0x1440c5;},'UxLoi':'master'},_0xaf680a=_0x517fae['iwGBy'](loadCache),_0x1e1762=_0x517fae[_0xafcde1(0x200)](getOrCreateSession,_0xaf680a,_0x2dc183);_0x1e1762['enabled']=!![];const _0x4d4f7f=_0x517fae[_0xafcde1(0x208)](getCurrentBranch);_0x4d4f7f&&_0x4d4f7f!==_0xafcde1(0x215)&&_0x517fae[_0xafcde1(0x21a)](_0x4d4f7f,_0x517fae['UxLoi'])&&(_0x1e1762[_0xafcde1(0x1e3)]=_0x4d4f7f),delete _0xaf680a[_0xafcde1(0x1f5)],saveCache(_0xaf680a);}export function registerSession(_0x243fcf,_0x55be7e){const _0x21e257=_0x3009a4,_0x503b52=loadCache(),_0x40dae4=getOrCreateSession(_0x503b52,_0x243fcf);_0x40dae4['featureId']=_0x55be7e,_0x40dae4[_0x21e257(0x1f6)]=new Date()['toISOString'](),saveCache(_0x503b52);}export function getSessionEntry(_0x440484){const _0x3eddcd=_0x3009a4,_0x451a05={'vOfTX':function(_0xe8fe8f){return _0xe8fe8f();}},_0x31086d=_0x451a05[_0x3eddcd(0x202)](loadCache),_0x2e3428=_0x31086d['sessions'][_0x440484];if(_0x2e3428?.[_0x3eddcd(0x214)]&&_0x2e3428?.['registeredAt'])return{'featureId':_0x2e3428[_0x3eddcd(0x214)],'registeredAt':_0x2e3428['registeredAt']};return null;}export function unregisterSession(_0x4ba901){const _0x488066=_0x3009a4,_0x2791c0=loadCache(),_0x5d7ba5=_0x2791c0[_0x488066(0x1e1)][_0x4ba901];_0x5d7ba5&&(delete _0x5d7ba5['featureId'],delete _0x5d7ba5['registeredAt'],saveCache(_0x2791c0));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x311d48){const _0x45e17c={'BSaAu':function(_0x3d83fb,_0x49c89b,_0x54deab){return _0x3d83fb(_0x49c89b,_0x54deab);}},_0x42921b=loadCache(),_0x4ca373=_0x45e17c['BSaAu'](getOrCreateSession,_0x42921b,_0x311d48),_0x7ac435=_0x4ca373['lastPlanReminderAt']||0x0,_0x683d22=Date['now']();if(_0x683d22-_0x7ac435>=PLAN_REMINDER_INTERVAL_MS)return _0x4ca373['lastPlanReminderAt']=_0x683d22,saveCache(_0x42921b),!![];return![];}export function shouldShowStopReminder(_0x490912){const _0x2af9f0=_0x3009a4,_0x18133f={'AbjOw':function(_0x41f9ed){return _0x41f9ed();},'JgRKQ':function(_0x196a89,_0x140c53,_0x604075){return _0x196a89(_0x140c53,_0x604075);},'nWnJv':function(_0xcbc463,_0xf08ef){return _0xcbc463-_0xf08ef;},'yVWqY':function(_0x36b439,_0x10b57a){return _0x36b439(_0x10b57a);}},_0x2d2b61=_0x18133f['AbjOw'](loadCache),_0x420c64=_0x18133f[_0x2af9f0(0x20c)](getOrCreateSession,_0x2d2b61,_0x490912),_0x3e66c7=_0x420c64[_0x2af9f0(0x218)]||0x0,_0x3b9738=Date[_0x2af9f0(0x201)]();if(_0x18133f[_0x2af9f0(0x213)](_0x3b9738,_0x3e66c7)>=STOP_REMINDER_INTERVAL_MS)return _0x420c64['lastStopReminderAt']=_0x3b9738,_0x18133f[_0x2af9f0(0x204)](saveCache,_0x2d2b61),!![];return![];}function _0x152c(_0x558081,_0x427de1){_0x558081=_0x558081-0x1e1;const _0xfadb91=_0xfadb();let _0x152c5a=_0xfadb91[_0x558081];return _0x152c5a;}export function hasSessionBeenPrompted(_0xe094cc){const _0x2e399e=loadCache();return _0x2e399e['sessions'][_0xe094cc]?.['prompted']===!![];}export function markSessionPrompted(_0x56c0ec){const _0x3e2126=_0x3009a4,_0x68e558={'OFTLX':function(_0x3b19d2,_0x34d9b5,_0x230d94){return _0x3b19d2(_0x34d9b5,_0x230d94);}},_0x260c2d=loadCache(),_0x437ef4=_0x68e558[_0x3e2126(0x21b)](getOrCreateSession,_0x260c2d,_0x56c0ec);_0x437ef4[_0x3e2126(0x1e7)]=!![],saveCache(_0x260c2d);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x314680=_0x45ce;(function(_0x388aba,_0x120763){const _0x11ccf3=_0x45ce,_0x51b7c8=_0x388aba();while(!![]){try{const _0x111c36=-parseInt(_0x11ccf3(0x130))/0x1*(parseInt(_0x11ccf3(0x125))/0x2)+parseInt(_0x11ccf3(0x151))/0x3+parseInt(_0x11ccf3(0x12e))/0x4*(-parseInt(_0x11ccf3(0x12a))/0x5)+parseInt(_0x11ccf3(0x137))/0x6+-parseInt(_0x11ccf3(0x149))/0x7+parseInt(_0x11ccf3(0x12b))/0x8+-parseInt(_0x11ccf3(0x150))/0x9*(parseInt(_0x11ccf3(0x12d))/0xa);if(_0x111c36===_0x120763)break;else _0x51b7c8['push'](_0x51b7c8['shift']());}catch(_0x3a9e8a){_0x51b7c8['push'](_0x51b7c8['shift']());}}}(_0x4554,0x36ebd));function _0x45ce(_0x38d9f3,_0xc11934){_0x38d9f3=_0x38d9f3-0x124;const _0x4554a1=_0x4554();let _0x45ce50=_0x4554a1[_0x38d9f3];return _0x45ce50;}import*as _0x427112 from'fs';import*as _0x44b1fe from'path';import*as _0x1c3e01 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x44b1fe[_0x314680(0x13c)](_0x1c3e01['homedir'](),_0x314680(0x124),_0x314680(0x13a));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3d3f2c=_0x314680;try{if(_0x427112[_0x3d3f2c(0x13f)](CACHE_FILE)){const _0x5611c6=JSON[_0x3d3f2c(0x143)](_0x427112['readFileSync'](CACHE_FILE,_0x3d3f2c(0x13b)));return{'version':0x3,'sessions':_0x5611c6['sessions']||{},'branches':_0x5611c6['branches']||{},'lastEnabledSessionClearedAt':_0x5611c6[_0x3d3f2c(0x148)]};}}catch{}return createEmptyCache();}function saveCache(_0x39ad50){try{const _0x566a0d=_0x44b1fe['dirname'](CACHE_FILE);!_0x427112['existsSync'](_0x566a0d)&&_0x427112['mkdirSync'](_0x566a0d,{'recursive':!![]}),_0x427112['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x39ad50,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5e4e7d=_0x314680,_0x3c2dbb={'FerVb':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','gPyrk':'pipe'};try{const _0x182a0d=execSync(_0x3c2dbb['FerVb'],{'encoding':'utf-8','stdio':['pipe',_0x3c2dbb[_0x5e4e7d(0x14f)],_0x3c2dbb[_0x5e4e7d(0x14f)]]})['trim']();if(!_0x182a0d||_0x182a0d==='HEAD')return null;return _0x182a0d;}catch{return null;}}export function enableBranch(_0x341231){const _0x3ce70d=_0x314680,_0x47d10b=loadCache();_0x47d10b[_0x3ce70d(0x14d)][_0x341231]=!![],saveCache(_0x47d10b);}function _0x4554(){const _0x59af0e=['IBkZM','now','existsSync','sNbbo','featureId','TbKUU','parse','lastStopReminderAt','fjjMf','ADktc','registeredAt','lastEnabledSessionClearedAt','2349809FpzxQN','vHKOF','master','kmPso','branches','jaHWW','gPyrk','45WQivVq','390405ezmYbh','enabled','.claude','38102mnmZtv','NfSoK','Mmjuu','lCiIg','YJpll','20935xwwTkd','1775264YgLucj','iTQsw','7080gUadVA','124xfAxRT','currentBranch','1bWWwYf','GmSAn','lastPlanReminderAt','PckvQ','UjZSq','main','toISOString','2165934icWkVn','XciJw','sessions','.ranger_cache.json','utf-8','join'];_0x4554=function(){return _0x59af0e;};return _0x4554();}export function disableBranch(_0x583aa9){const _0x3d8881=_0x314680,_0x199d1c={'lCiIg':function(_0x56c73b){return _0x56c73b();},'NfSoK':function(_0x40c789,_0x541261){return _0x40c789(_0x541261);}},_0x3ed1f2=_0x199d1c[_0x3d8881(0x128)](loadCache);delete _0x3ed1f2['branches'][_0x583aa9],_0x199d1c[_0x3d8881(0x126)](saveCache,_0x3ed1f2);}export function isBranchEnabled(_0x2c621c){const _0x2ed345=_0x314680,_0x5e54ce={'ALTaH':function(_0x2719c7){return _0x2719c7();},'YJpll':function(_0x486fd2,_0x51b5c9){return _0x486fd2===_0x51b5c9;}},_0x1640c1=_0x5e54ce['ALTaH'](loadCache);return _0x5e54ce[_0x2ed345(0x129)](_0x1640c1['branches'][_0x2c621c],!![]);}function getOrCreateSession(_0x2379ab,_0x5351fd){const _0x467b86=_0x314680;return!_0x2379ab[_0x467b86(0x139)][_0x5351fd]&&(_0x2379ab['sessions'][_0x5351fd]={}),_0x2379ab[_0x467b86(0x139)][_0x5351fd];}export function enableSession(_0x466691){const _0x2c3f49=_0x314680,_0x186f32={'UjZSq':function(_0x324a79){return _0x324a79();},'vNLzH':function(_0x47af79,_0x588a8c,_0x4a1965){return _0x47af79(_0x588a8c,_0x4a1965);},'HWAlS':function(_0x70e901,_0x48ba6c){return _0x70e901!==_0x48ba6c;},'iTQsw':function(_0x120894,_0x2c133f){return _0x120894!==_0x2c133f;},'Mmjuu':function(_0x4c9cc1,_0x5e4e77){return _0x4c9cc1(_0x5e4e77);}},_0x4589ec=_0x186f32[_0x2c3f49(0x134)](loadCache),_0x43107=_0x186f32['vNLzH'](getOrCreateSession,_0x4589ec,_0x466691);_0x43107[_0x2c3f49(0x152)]=!![];const _0x10a45f=getCurrentBranch();_0x10a45f&&_0x186f32['HWAlS'](_0x10a45f,'main')&&_0x186f32[_0x2c3f49(0x12c)](_0x10a45f,_0x2c3f49(0x14b))&&(_0x4589ec['branches'][_0x10a45f]=!![],_0x43107[_0x2c3f49(0x12f)]=_0x10a45f),_0x186f32[_0x2c3f49(0x127)](saveCache,_0x4589ec);}export function isSessionEnabled(_0xf284bc){const _0x54c363=_0x314680,_0x30e36e={'sNbbo':function(_0x3d8570){return _0x3d8570();},'gseyg':'master','kmPso':function(_0xbf4381,_0x968d46){return _0xbf4381===_0x968d46;},'hlwTh':function(_0x5f0bb0,_0x10cb21){return _0x5f0bb0||_0x10cb21;}},_0x3b8adc=_0x30e36e[_0x54c363(0x140)](loadCache),_0x1e1f51=getCurrentBranch();if(!_0x1e1f51||_0x1e1f51===_0x54c363(0x135)||_0x1e1f51===_0x30e36e['gseyg'])return _0x30e36e[_0x54c363(0x14c)](_0x3b8adc[_0x54c363(0x139)][_0xf284bc]?.['enabled'],!![]);const _0x386fde=_0x30e36e['kmPso'](_0x3b8adc[_0x54c363(0x14d)][_0x1e1f51],!![]),_0x1bbf26=_0x3b8adc[_0x54c363(0x139)][_0xf284bc]?.['enabled']===!![];return _0x30e36e['hlwTh'](_0x386fde,_0x1bbf26);}export function disableSession(_0x12d4ce){const _0x42e91a=_0x314680,_0x204df5={'fjjMf':function(_0x3e78de){return _0x3e78de();}},_0xacfcd6=_0x204df5[_0x42e91a(0x145)](loadCache),_0x32749f=getOrCreateSession(_0xacfcd6,_0x12d4ce);_0x32749f[_0x42e91a(0x152)]=![],saveCache(_0xacfcd6);}export function updateBranchTracking(_0x5a01b9){const _0x1f9f5b=_0x314680,_0x354bb2={'XciJw':function(_0x591768){return _0x591768();},'LBecG':'master'},_0x486d89=loadCache(),_0x2610e3=_0x486d89[_0x1f9f5b(0x139)][_0x5a01b9];if(!_0x2610e3?.[_0x1f9f5b(0x152)])return;const _0x3fde21=_0x354bb2[_0x1f9f5b(0x138)](getCurrentBranch);if(!_0x3fde21||_0x3fde21===_0x1f9f5b(0x135)||_0x3fde21===_0x354bb2['LBecG'])return;_0x2610e3[_0x1f9f5b(0x12f)]!==_0x3fde21&&(_0x486d89[_0x1f9f5b(0x14d)][_0x3fde21]=!![],_0x2610e3['currentBranch']=_0x3fde21,saveCache(_0x486d89));}export function initBranchTracking(_0x5af4ed){const _0x237b5e=_0x314680,_0x2f798d={'iPUAL':function(_0x162a74){return _0x162a74();},'IBkZM':function(_0x53f28e){return _0x53f28e();},'zieCa':function(_0x1a0144,_0xa60c8c){return _0x1a0144===_0xa60c8c;},'wkinH':'master','IiTUH':function(_0x3df1b5,_0x38aca1){return _0x3df1b5===_0x38aca1;}},_0x233199=_0x2f798d['iPUAL'](loadCache),_0x39b745=_0x2f798d[_0x237b5e(0x13d)](getCurrentBranch);if(!_0x39b745||_0x2f798d['zieCa'](_0x39b745,_0x237b5e(0x135))||_0x39b745===_0x2f798d['wkinH'])return;if(_0x2f798d['IiTUH'](_0x233199[_0x237b5e(0x14d)][_0x39b745],!![])){const _0x1fb6d6=getOrCreateSession(_0x233199,_0x5af4ed);_0x1fb6d6['enabled']=!![],_0x1fb6d6['currentBranch']=_0x39b745,saveCache(_0x233199);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2c1033){const _0x217c9f=_0x314680,_0x25cdcd={'kXEdH':function(_0x3d34ec,_0x11009f){return _0x3d34ec(_0x11009f);}},_0x2712f1=loadCache(),_0x445fba=_0x2712f1[_0x217c9f(0x139)][_0x2c1033];_0x445fba?.['enabled']&&(_0x2712f1['lastEnabledSessionClearedAt']=Date[_0x217c9f(0x13e)](),_0x25cdcd['kXEdH'](saveCache,_0x2712f1));}export function shouldAutoEnableAfterClear(_0x23732a){const _0x59e0cf=_0x314680,_0x143ebe={'OaFuq':function(_0x52eef8,_0x1be006){return _0x52eef8!==_0x1be006;},'GmSAn':'clear'};if(_0x143ebe['OaFuq'](_0x23732a,_0x143ebe[_0x59e0cf(0x131)]))return![];const _0x117e97=loadCache(),_0x34539d=_0x117e97['lastEnabledSessionClearedAt'];if(!_0x34539d)return![];const _0x3b84fa=Date[_0x59e0cf(0x13e)]()-_0x34539d;return _0x3b84fa<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x138796){const _0xc1cc80=_0x314680,_0x5b6505={'hItYj':function(_0x45b162){return _0x45b162();},'TbKUU':'main','PckvQ':function(_0xd9d722,_0xad0169){return _0xd9d722!==_0xad0169;},'TglfE':'master'},_0xe2f2b5=loadCache(),_0x22c8e8=getOrCreateSession(_0xe2f2b5,_0x138796);_0x22c8e8['enabled']=!![];const _0x33a27c=_0x5b6505['hItYj'](getCurrentBranch);_0x33a27c&&_0x33a27c!==_0x5b6505[_0xc1cc80(0x142)]&&_0x5b6505[_0xc1cc80(0x133)](_0x33a27c,_0x5b6505['TglfE'])&&(_0x22c8e8['currentBranch']=_0x33a27c),delete _0xe2f2b5[_0xc1cc80(0x148)],saveCache(_0xe2f2b5);}export function registerSession(_0x408e56,_0x55b0bb){const _0x1fef87=_0x314680,_0x2b0a0f={'tAoSx':function(_0x4d94c3){return _0x4d94c3();}},_0x483f98=_0x2b0a0f['tAoSx'](loadCache),_0x414414=getOrCreateSession(_0x483f98,_0x408e56);_0x414414[_0x1fef87(0x141)]=_0x55b0bb,_0x414414[_0x1fef87(0x147)]=new Date()[_0x1fef87(0x136)](),saveCache(_0x483f98);}export function getSessionEntry(_0x5e8af6){const _0x3d4b6f=_0x314680,_0x10094f=loadCache(),_0x3b4a78=_0x10094f['sessions'][_0x5e8af6];if(_0x3b4a78?.['featureId']&&_0x3b4a78?.['registeredAt'])return{'featureId':_0x3b4a78['featureId'],'registeredAt':_0x3b4a78[_0x3d4b6f(0x147)]};return null;}export function unregisterSession(_0x3cf57e){const _0x2e6562=_0x314680,_0x41389a={'ODBDv':function(_0x504cb3){return _0x504cb3();}},_0x3f33c6=_0x41389a['ODBDv'](loadCache),_0x1f0e0b=_0x3f33c6[_0x2e6562(0x139)][_0x3cf57e];_0x1f0e0b&&(delete _0x1f0e0b['featureId'],delete _0x1f0e0b[_0x2e6562(0x147)],saveCache(_0x3f33c6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1f8ff8){const _0x4d6821=_0x314680,_0x1a2163={'PydjN':function(_0x1b0789){return _0x1b0789();},'wdUqU':function(_0x27f46f,_0x22c49d,_0x254e29){return _0x27f46f(_0x22c49d,_0x254e29);},'jaHWW':function(_0x3a7d34,_0x156043){return _0x3a7d34>=_0x156043;},'xECHA':function(_0x4408de,_0x5d92cb){return _0x4408de-_0x5d92cb;},'ADktc':function(_0x3c9502,_0xd8c8e2){return _0x3c9502(_0xd8c8e2);}},_0x1e6eb3=_0x1a2163['PydjN'](loadCache),_0x192caa=_0x1a2163['wdUqU'](getOrCreateSession,_0x1e6eb3,_0x1f8ff8),_0x128433=_0x192caa[_0x4d6821(0x132)]||0x0,_0x1213b6=Date[_0x4d6821(0x13e)]();if(_0x1a2163[_0x4d6821(0x14e)](_0x1a2163['xECHA'](_0x1213b6,_0x128433),PLAN_REMINDER_INTERVAL_MS))return _0x192caa['lastPlanReminderAt']=_0x1213b6,_0x1a2163[_0x4d6821(0x146)](saveCache,_0x1e6eb3),!![];return![];}export function shouldShowStopReminder(_0x4caeae){const _0x35f20a=_0x314680,_0x1c3d35={'vHKOF':function(_0x410985,_0x1d0e9e,_0x52d648){return _0x410985(_0x1d0e9e,_0x52d648);}},_0x3b2308=loadCache(),_0x501cd4=_0x1c3d35[_0x35f20a(0x14a)](getOrCreateSession,_0x3b2308,_0x4caeae),_0x214b5d=_0x501cd4[_0x35f20a(0x144)]||0x0,_0x47268b=Date['now']();if(_0x47268b-_0x214b5d>=STOP_REMINDER_INTERVAL_MS)return _0x501cd4['lastStopReminderAt']=_0x47268b,saveCache(_0x3b2308),!![];return![];}export function hasSessionBeenPrompted(_0x52f1b5){const _0x150b77=_0x314680,_0x484200={'YzjVX':function(_0x13f3cc,_0x538c59){return _0x13f3cc===_0x538c59;}},_0xcad9b8=loadCache();return _0x484200['YzjVX'](_0xcad9b8[_0x150b77(0x139)][_0x52f1b5]?.['prompted'],!![]);}export function markSessionPrompted(_0x842fc9){const _0x451486={'xdsqS':function(_0x20eba9,_0x15d53d,_0x1e4971){return _0x20eba9(_0x15d53d,_0x1e4971);}},_0x210749=loadCache(),_0x5765f6=_0x451486['xdsqS'](getOrCreateSession,_0x210749,_0x842fc9);_0x5765f6['prompted']=!![],saveCache(_0x210749);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x28da(_0x433856,_0x1b79f4){_0x433856=_0x433856-0x10a;const _0x148dc7=_0x148d();let _0x28da4b=_0x148dc7[_0x433856];return _0x28da4b;}const _0xf58312=_0x28da;function _0x148d(){const _0x506e8a=['XrmJd','aDjKD','28326OPLHcw','AWMCC','1617447sdMyBC','vTuDX','ranger-config','ignoreHTTPSErrors','includes','RPixX','auth.json.enc','NNQul','replace','PAvWa','xiUdm','setupHeader','530OEYAgl','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','--disable-setuid-sandbox','MmChD','--unsafely-treat-insecure-origin-as-secure=http://localhost','entries','core','krYpN','headless','location','getuid','map','2VJtAfv','local','string','wtXxd','7944vQXyYb','launchOptions','nokSa','pTXiM','--disable-web-security','3542diSyZh','107739biMEaq','args','ranger-auth-','ZMRnH','pxuEA','warn','\x20is\x20not\x20set','storageState','WzNui','chromium','contextOptions','pHawp','install','--allow-insecure-localhost','EIAdk','extraHTTPHeaders','userAgent','bvkTf','fwqkx','RRsGV','object','.json','boolean','allowInsecureLocalhost','join','iPrnD','515BzyTiJ','ENOENT','zurbw','rHIgZ','RLWXX','VgkKA','DIEhg','XGNSa','PNjaB','UUsXU','hSdGi','setupHeaders','NWxAv','qnbRh','vTjKl','push','configPath','tempAuthPath','message','settings.json','--no-sandbox','849090kGyYkN','RJnOQ','--disable-features=WebBluetooth','wunZO','filter','legacy','now','692016EwCoxK','eemJG','wmEna','stringify','auth.json','--allow-running-insecure-content','tabs','IHrkp','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','OkyEo','path','cLYNo','hHZxb','lDaiy','length','TaRHH','4245274osItYZ','clipboard-read'];_0x148d=function(){return _0x506e8a;};return _0x148d();}(function(_0x271c81,_0x84ceac){const _0x10dd97=_0x28da,_0x49d260=_0x271c81();while(!![]){try{const _0x10f15b=parseInt(_0x10dd97(0x11d))/0x1+-parseInt(_0x10dd97(0x152))/0x2*(-parseInt(_0x10dd97(0x13a))/0x3)+-parseInt(_0x10dd97(0x124))/0x4+parseInt(_0x10dd97(0x176))/0x5*(-parseInt(_0x10dd97(0x138))/0x6)+parseInt(_0x10dd97(0x15b))/0x7*(-parseInt(_0x10dd97(0x156))/0x8)+parseInt(_0x10dd97(0x15c))/0x9*(parseInt(_0x10dd97(0x146))/0xa)+-parseInt(_0x10dd97(0x134))/0xb;if(_0x10f15b===_0x84ceac)break;else _0x49d260['push'](_0x49d260['shift']());}catch(_0x2f4ba6){_0x49d260['push'](_0x49d260['shift']());}}}(_0x148d,0x73fa3));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x228490){const _0x23f8a5=_0x28da,_0x327db7={'HDLlA':function(_0x2d13ac){return _0x2d13ac();},'lTEWR':function(_0x1b95f3,_0x4f58a3,_0x1aa8d3,_0x3f038f){return _0x1b95f3(_0x4f58a3,_0x1aa8d3,_0x3f038f);},'XrmJd':_0x23f8a5(0x153),'vTuDX':function(_0x55e483,_0x11be70,_0x558850){return _0x55e483(_0x11be70,_0x558850);}},_0x3aa4d6=_0x327db7['HDLlA'](getRangerDir),_0x2d96c7=join(_0x3aa4d6,'ci',_0x228490),_0xdacacc=_0x327db7['lTEWR'](join,_0x3aa4d6,_0x327db7[_0x23f8a5(0x136)],_0x228490),_0x54dcb6=_0x327db7[_0x23f8a5(0x13b)](join,_0x3aa4d6,_0x228490),_0x4e30a5=join(_0x3aa4d6,_0x327db7['XrmJd']),_0x45a61f=_0x327db7['vTuDX'](join,_0x3aa4d6,'ci');if(existsSync(_0x2d96c7))return _0x2d96c7;if(existsSync(_0xdacacc))return _0xdacacc;if(existsSync(_0x54dcb6)&&(_0x54dcb6!==_0x4e30a5&&_0x54dcb6!==_0x45a61f?!![]:hasLegacyProfileFiles(_0x54dcb6)))return _0x54dcb6;return _0xdacacc;}export function findExistingEnv(_0x23ef97,_0x4d4ee2){const _0x1aa5c3=_0x28da,_0x1ab0a6={'EIAdk':_0x1aa5c3(0x153),'RRsGV':_0x1aa5c3(0x122),'ICKLU':function(_0x182c23,_0x52923e,_0x612714){return _0x182c23(_0x52923e,_0x612714);},'AiDyj':function(_0xbb0b8f,_0x49299e,_0x290b63){return _0xbb0b8f(_0x49299e,_0x290b63);},'cePfb':function(_0xeaefd0,_0xb57cd7,_0x24931c,_0xa8db07){return _0xeaefd0(_0xb57cd7,_0x24931c,_0xa8db07);},'eNAMo':function(_0x431ad4,_0x5950e6){return _0x431ad4(_0x5950e6);}},_0x416abf=getRangerDir(),_0x2fe6fc=_0x4d4ee2?.['locations']??['ci',_0x1ab0a6['EIAdk'],_0x1ab0a6[_0x1aa5c3(0x16f)]],_0x507235=_0x1ab0a6['ICKLU'](join,_0x416abf,_0x1aa5c3(0x153)),_0x25f7df=_0x1ab0a6['AiDyj'](join,_0x416abf,'ci'),_0x1f3212=[{'location':'ci','path':join(_0x416abf,'ci',_0x23ef97)},{'location':_0x1ab0a6[_0x1aa5c3(0x16a)],'path':_0x1ab0a6['cePfb'](join,_0x416abf,_0x1ab0a6[_0x1aa5c3(0x16a)],_0x23ef97)},{'location':_0x1aa5c3(0x122),'path':join(_0x416abf,_0x23ef97)}];for(const _0x19e9ac of _0x1f3212){if(_0x2fe6fc[_0x1aa5c3(0x13e)](_0x19e9ac['location'])&&existsSync(_0x19e9ac[_0x1aa5c3(0x12e)])){if(_0x19e9ac[_0x1aa5c3(0x14f)]===_0x1aa5c3(0x122)&&(_0x19e9ac['path']===_0x507235||_0x19e9ac[_0x1aa5c3(0x12e)]===_0x25f7df)&&!_0x1ab0a6['eNAMo'](hasLegacyProfileFiles,_0x19e9ac[_0x1aa5c3(0x12e)]))continue;return{'path':_0x19e9ac[_0x1aa5c3(0x12e)],'location':_0x19e9ac['location']};}}return null;}function hasLegacyProfileFiles(_0x2bc420){const _0x5ed013=_0x28da,_0xfbd23c={'CEIzb':function(_0x1a6d82,_0x3c45ff){return _0x1a6d82(_0x3c45ff);},'NWxAv':function(_0x548212,_0xd74e57,_0x5bd012){return _0x548212(_0xd74e57,_0x5bd012);},'hHZxb':_0x5ed013(0x11b),'lDaiy':_0x5ed013(0x128),'zKuGI':'auth.json.enc'};return _0xfbd23c['CEIzb'](existsSync,_0xfbd23c['NWxAv'](join,_0x2bc420,_0xfbd23c[_0x5ed013(0x130)]))||existsSync(_0xfbd23c[_0x5ed013(0x114)](join,_0x2bc420,_0xfbd23c[_0x5ed013(0x131)]))||_0xfbd23c['CEIzb'](existsSync,_0xfbd23c['NWxAv'](join,_0x2bc420,_0xfbd23c['zKuGI']));}export function isEnvCi(_0x2f20f9){const _0x2bbe5a=_0x28da,_0x3b0253={'AWMCC':function(_0x562145,_0x379e47,_0x2c6d27,_0x252c71){return _0x562145(_0x379e47,_0x2c6d27,_0x252c71);},'PNjaB':function(_0x2c001e){return _0x2c001e();}};return existsSync(_0x3b0253[_0x2bbe5a(0x139)](join,_0x3b0253[_0x2bbe5a(0x110)](getRangerDir),'ci',_0x2f20f9));}export async function cleanupTempFiles(_0x2427da){const _0x577b1a=_0x28da,_0x32374c={'mkViA':function(_0x2da892,_0x36ce62){return _0x2da892!==_0x36ce62;}},_0x5af835=[_0x2427da[_0x577b1a(0x119)],_0x2427da[_0x577b1a(0x118)]]['filter'](Boolean);await Promise['all'](_0x5af835['map'](_0x4a354f=>unlink(_0x4a354f)['catch'](_0x2188d7=>{const _0x3434cb=_0x577b1a;_0x32374c['mkViA'](_0x2188d7['code'],_0x3434cb(0x177))&&console[_0x3434cb(0x161)](_0x3434cb(0x12c)+_0x4a354f+':',_0x2188d7['message']);})));}export function getSettingsPath(_0x5d2367){const _0x4fee1c=_0x28da,_0x457a87={'wmEna':function(_0x1bcb35,_0x2160ae,_0x12fd6d){return _0x1bcb35(_0x2160ae,_0x12fd6d);}};return _0x457a87[_0x4fee1c(0x126)](join,getEnvDir(_0x5d2367),_0x4fee1c(0x11b));}export async function loadSettings(_0x2a4107){const _0x57b44a=_0x28da,_0x20f5d0={'fwqkx':function(_0x4e7381,_0x25f154){return _0x4e7381(_0x25f154);}},_0x1e4952=_0x20f5d0[_0x57b44a(0x16e)](getSettingsPath,_0x2a4107);if(!existsSync(_0x1e4952))return{};try{const _0x1c51b8=await readFile(_0x1e4952,'utf-8');return JSON['parse'](_0x1c51b8);}catch{return{};}}export async function saveSettings(_0xf6783f,_0x3027b7){const _0x16a0ad=_0x28da,_0x54976e={'eemJG':function(_0x357812,_0x1d38e2){return _0x357812(_0x1d38e2);},'xBCan':function(_0x451e28,_0x2dc1ad){return _0x451e28(_0x2dc1ad);},'aDjKD':function(_0x4e16ef,_0x2af08b){return _0x4e16ef(_0x2af08b);}},_0x4479fd=_0x54976e[_0x16a0ad(0x125)](getSettingsPath,_0xf6783f),_0x1dbc7b=_0x54976e['xBCan'](dirname,_0x4479fd);!_0x54976e[_0x16a0ad(0x137)](existsSync,_0x1dbc7b)&&await mkdir(_0x1dbc7b,{'recursive':!![]}),await writeFile(_0x4479fd,JSON['stringify'](_0x3027b7,null,0x2));}export function resolveEnvVars(_0x1c76ab){const _0x263579=_0x28da,_0x1b5ac9={'pxuEA':function(_0x2f2df2,_0x6a59a5){return _0x2f2df2===_0x6a59a5;},'EFRar':'string','DIEhg':_0x263579(0x170)};if(typeof _0x1c76ab===_0x1b5ac9['EFRar'])return _0x1c76ab[_0x263579(0x142)](/\$\{(\w+)\}/g,(_0x554700,_0x4075e6)=>{const _0x59edc2=_0x263579,_0x2a0193=process['env'][_0x4075e6];if(_0x1b5ac9[_0x59edc2(0x160)](_0x2a0193,undefined))throw new Error('Environment\x20variable\x20'+_0x4075e6+_0x59edc2(0x162));return _0x2a0193;});if(Array['isArray'](_0x1c76ab))return _0x1c76ab[_0x263579(0x151)](resolveEnvVars);if(_0x1c76ab&&_0x1b5ac9['pxuEA'](typeof _0x1c76ab,_0x1b5ac9[_0x263579(0x10e)]))return Object['fromEntries'](Object[_0x263579(0x14b)](_0x1c76ab)['map'](([_0x45390a,_0x20cc40])=>[_0x45390a,resolveEnvVars(_0x20cc40)]));return _0x1c76ab;}const isRecord=_0xb2f16f=>typeof _0xb2f16f===_0xf58312(0x170)&&_0xb2f16f!==null&&!Array['isArray'](_0xb2f16f),asRecord=_0x3499ff=>isRecord(_0x3499ff)?_0x3499ff:undefined,mergeHeaders=(_0x23c176,_0x405c42)=>{const _0x1035d4=_0xf58312,_0x39aa5b={..._0x23c176??{},..._0x405c42??{}};return Object['keys'](_0x39aa5b)[_0x1035d4(0x132)]?_0x39aa5b:undefined;},SAFE_MODE_ARGS=[_0xf58312(0x11f)],ALLOW_LOCALHOST_ARGS=[_0xf58312(0x15a),_0xf58312(0x129),_0xf58312(0x14a),_0xf58312(0x169)];export function buildBrowserOptionsFromSettings(_0x48ba90,_0x4b8999={}){const _0x14ab21=_0xf58312,_0x22ed19={'NNQul':function(_0x40eeec,_0x45f88a){return _0x40eeec(_0x45f88a);},'pTXiM':function(_0x5567f9,_0x109fdb){return _0x5567f9===_0x109fdb;},'uyPrX':_0x14ab21(0x172)},_0x5428b7=asRecord(_0x48ba90['browser']),_0x2af559={..._0x22ed19[_0x14ab21(0x141)](asRecord,_0x5428b7?.[_0x14ab21(0x157)])??{}};_0x22ed19[_0x14ab21(0x159)](typeof _0x4b8999[_0x14ab21(0x14e)],_0x22ed19['uyPrX'])&&(_0x2af559['headless']=_0x4b8999[_0x14ab21(0x14e)]);if(_0x48ba90['safeMode']){const _0x2461ff=_0x2af559['args']??[],_0x7a4693=SAFE_MODE_ARGS[_0x14ab21(0x121)](_0x5d7868=>!_0x2461ff[_0x14ab21(0x13e)](_0x5d7868));_0x2af559['args']=[..._0x2461ff,..._0x7a4693];}if(_0x48ba90[_0x14ab21(0x173)]){const _0x13437d=_0x2af559[_0x14ab21(0x15d)]??[],_0x31f6e8=ALLOW_LOCALHOST_ARGS['filter'](_0x2970c6=>!_0x13437d['includes'](_0x2970c6));_0x2af559[_0x14ab21(0x15d)]=[..._0x13437d,..._0x31f6e8];}const _0x3ca6cf={...asRecord(_0x5428b7?.[_0x14ab21(0x166)])??{}};_0x3ca6cf[_0x14ab21(0x13d)]=!![];typeof _0x48ba90[_0x14ab21(0x16c)]===_0x14ab21(0x154)&&(_0x3ca6cf[_0x14ab21(0x16c)]=_0x48ba90['userAgent']);const _0x16d84b=mergeHeaders(_0x22ed19['NNQul'](asRecord,_0x3ca6cf['extraHTTPHeaders']),asRecord(_0x48ba90['headers']));return _0x16d84b?_0x3ca6cf[_0x14ab21(0x16b)]=_0x16d84b:delete _0x3ca6cf['extraHTTPHeaders'],_0x4b8999['storageStatePath']&&(_0x3ca6cf[_0x14ab21(0x163)]=_0x4b8999['storageStatePath']),{'launchOptions':_0x2af559,'contextOptions':_0x3ca6cf};}export async function buildPlaywrightConfig(_0x53f3fa,_0xb49652,_0x3325b6,_0x64b7a8){const _0x242cf9=_0xf58312,_0x14a95e={'PHNXF':function(_0x2fe001,_0x29b518){return _0x2fe001===_0x29b518;},'bQoET':_0x242cf9(0x148),'xiUdm':_0x242cf9(0x165),'XGNSa':'clipboard-read','pHawp':function(_0x3d8431,_0x4156d7,_0x3b6828){return _0x3d8431(_0x4156d7,_0x3b6828);},'cLYNo':function(_0xc6e49b,_0x43208e,_0xc8490e){return _0xc6e49b(_0x43208e,_0xc8490e);},'krYpN':function(_0xefb88e,_0x486167){return _0xefb88e(_0x486167);},'TaRHH':function(_0x181360){return _0x181360();},'Wphvb':function(_0x59dbe0,_0x33c99e,_0x10bee8){return _0x59dbe0(_0x33c99e,_0x10bee8);},'wunZO':function(_0x32725a,_0x48f4eb,_0x59e246,_0x143609){return _0x32725a(_0x48f4eb,_0x59e246,_0x143609);},'RlshZ':function(_0x44c8c4){return _0x44c8c4();},'oRyaS':'sessions','MmChD':_0x242cf9(0x12a),'nokSa':function(_0x2d16c8,_0x1b857c){return _0x2d16c8===_0x1b857c;},'ZMRnH':function(_0x2f6a11,_0x3cb102,_0x3a78ea){return _0x2f6a11(_0x3cb102,_0x3a78ea);},'qnbRh':function(_0x3f87b2){return _0x3f87b2();},'bvkTf':function(_0x69fd66,_0x5a9ecf,_0x3a1b77){return _0x69fd66(_0x5a9ecf,_0x3a1b77);}},_0x3c4cb3=getEnvDir(_0xb49652),_0x581571=_0x14a95e[_0x242cf9(0x167)](join,_0x3c4cb3,_0x242cf9(0x140)),_0x344b91=_0x14a95e['cLYNo'](join,_0x3c4cb3,'auth.json');let _0x481690,_0x5580ab;if(_0x14a95e[_0x242cf9(0x14d)](existsSync,_0x581571))try{const _0x40a1d2=await getToken();if(!_0x40a1d2)throw new Error(_0x242cf9(0x147));const _0x4bdca8=await readFile(_0x581571),_0xc4466e=_0x14a95e[_0x242cf9(0x167)](decrypt,_0x4bdca8,_0x40a1d2);_0x5580ab=join(_0x14a95e[_0x242cf9(0x133)](tmpdir),'ranger-auth-'+Date[_0x242cf9(0x123)]()+_0x242cf9(0x171)),await _0x14a95e['Wphvb'](writeFile,_0x5580ab,_0xc4466e),_0x481690=_0x5580ab;}catch(_0x4e48c5){const _0x4cad27=_0x4e48c5 instanceof Error?_0x4e48c5['message']:_0x14a95e[_0x242cf9(0x14d)](String,_0x4e48c5);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x4cad27);}else _0x14a95e[_0x242cf9(0x14d)](existsSync,_0x344b91)&&(_0x481690=_0x344b91);const _0x5e7a38=_0x3325b6||randomUUID(),_0x532d92=_0x14a95e[_0x242cf9(0x120)](join,_0x14a95e['RlshZ'](getRangerDir),_0x14a95e['oRyaS'],_0x5e7a38),_0x47a8c2=Boolean(_0x53f3fa['cdpEndpoint']),_0x36c290=_0x47a8c2?{'browserName':'chromium','cdpEndpoint':_0x53f3fa['cdpEndpoint']}:((()=>{const _0x4dee23=_0x242cf9,{launchOptions:_0x121ed7,contextOptions:_0x5cc445}=buildBrowserOptionsFromSettings(_0x53f3fa,{'headless':_0x64b7a8?![]:_0x53f3fa[_0x4dee23(0x14e)]??!![],'storageStatePath':_0x481690});if(_0x14a95e['PHNXF'](process[_0x4dee23(0x150)]?.(),0x0)){const _0x1eab82=[_0x4dee23(0x11c),_0x14a95e['bQoET']],_0x30f29b=_0x121ed7[_0x4dee23(0x15d)]??[],_0xdfe213=_0x1eab82['filter'](_0xeb2d03=>!_0x30f29b['includes'](_0xeb2d03));_0x121ed7['args']=[..._0x30f29b,..._0xdfe213];}return{'isolated':!![],'browserName':_0x14a95e[_0x4dee23(0x144)],'launchOptions':_0x121ed7,'contextOptions':{..._0x5cc445,'permissions':[_0x14a95e[_0x4dee23(0x10f)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x5690cb={'name':_0xb49652,'browser':_0x36c290,'capabilities':[_0x242cf9(0x14c),_0x14a95e[_0x242cf9(0x149)],_0x242cf9(0x168),'pdf','vision'],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x532d92};if(!_0x47a8c2){const _0x37e06b=_0x5690cb['browser'],_0x258f04=_0x37e06b[_0x242cf9(0x166)];if(_0x14a95e[_0x242cf9(0x158)](_0x258f04['userAgent'],undefined))delete _0x258f04[_0x242cf9(0x16c)];if(_0x258f04['storageState']===undefined)delete _0x258f04['storageState'];}const _0x14bb9c=_0x14a95e[_0x242cf9(0x15f)](join,_0x14a95e[_0x242cf9(0x115)](tmpdir),_0x242cf9(0x13c));!_0x14a95e[_0x242cf9(0x14d)](existsSync,_0x14bb9c)&&await _0x14a95e[_0x242cf9(0x12f)](mkdir,_0x14bb9c,{'recursive':!![]});const _0x2428fe=_0x14a95e['Wphvb'](join,_0x14bb9c,_0xb49652+'-'+Date['now']()+'.json');return await _0x14a95e[_0x242cf9(0x16d)](writeFile,_0x2428fe,JSON[_0x242cf9(0x127)](_0x5690cb,null,0x2)),{'configPath':_0x2428fe,'tempAuthPath':_0x5580ab};}export async function buildPlaywrightCliConfig(_0x16afc9,_0x1a00ab,_0x1ea73e,_0x3e056a){const _0x49a281=_0xf58312,_0x220e83={'IHrkp':function(_0x448f1b,_0x2f6b94,_0x5e2901){return _0x448f1b(_0x2f6b94,_0x5e2901);},'ykoaT':function(_0x5a21fc,_0x4c5982){return _0x5a21fc===_0x4c5982;},'Fpqiv':'--no-sandbox','WzNui':_0x49a281(0x165),'fUfkq':_0x49a281(0x135),'PAvWa':'clipboard-write','zurbw':function(_0x3df74b,_0xe941ea){return _0x3df74b(_0xe941ea);},'RJnOQ':function(_0xa82186,_0x4c90a7,_0xe5fe7c){return _0xa82186(_0x4c90a7,_0xe5fe7c);},'rHIgZ':_0x49a281(0x128),'VgkKA':function(_0x3fcdc6,_0x2ed253){return _0x3fcdc6(_0x2ed253);},'RPixX':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','lVbFQ':function(_0x35a6e7,_0x1f129c,_0x42a4ee,_0x3affdd){return _0x35a6e7(_0x1f129c,_0x42a4ee,_0x3affdd);},'vTjKl':'sessions','wtXxd':function(_0x4a9727,_0xd2149e){return _0x4a9727===_0xd2149e;},'RLWXX':function(_0x75920b,_0x269eb3,_0x3887da){return _0x75920b(_0x269eb3,_0x3887da);},'OkyEo':'ranger-config','nLMZU':function(_0x22632e,_0x543c4e,_0x163cfc){return _0x22632e(_0x543c4e,_0x163cfc);},'vmzXt':function(_0x4dc360,_0xaa77d8,_0x5e5652){return _0x4dc360(_0xaa77d8,_0x5e5652);}},_0x37a8b9=_0x220e83['zurbw'](getEnvDir,_0x1a00ab),_0x4bff6b=join(_0x37a8b9,_0x49a281(0x140)),_0x3be91b=_0x220e83[_0x49a281(0x11e)](join,_0x37a8b9,_0x220e83[_0x49a281(0x10b)]);let _0x31353f,_0x28c840;if(_0x220e83['VgkKA'](existsSync,_0x4bff6b))try{const _0x4604a7=await getToken();if(!_0x4604a7)throw new Error(_0x220e83[_0x49a281(0x13f)]);const _0x5b343d=await _0x220e83[_0x49a281(0x10a)](readFile,_0x4bff6b),_0x1d0b4c=_0x220e83['RJnOQ'](decrypt,_0x5b343d,_0x4604a7);_0x28c840=join(tmpdir(),_0x49a281(0x15e)+Date['now']()+_0x49a281(0x171)),await writeFile(_0x28c840,_0x1d0b4c),_0x31353f=_0x28c840;}catch(_0x237df6){const _0x27009d=_0x237df6 instanceof Error?_0x237df6[_0x49a281(0x11a)]:String(_0x237df6);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x27009d);}else existsSync(_0x3be91b)&&(_0x31353f=_0x3be91b);const _0x26a4a2=_0x1ea73e||randomUUID(),_0x4b154b=_0x220e83['lVbFQ'](join,getRangerDir(),_0x220e83[_0x49a281(0x116)],_0x26a4a2),_0x428fff=_0x220e83[_0x49a281(0x10d)](Boolean,_0x16afc9['cdpEndpoint']),_0x10cc8b=_0x428fff?{'browserName':'chromium','cdpEndpoint':_0x16afc9['cdpEndpoint']}:((()=>{const _0xd3a7a4=_0x49a281,{launchOptions:_0x252143,contextOptions:_0x5a7174}=_0x220e83[_0xd3a7a4(0x12b)](buildBrowserOptionsFromSettings,_0x16afc9,{'headless':_0x3e056a?![]:_0x16afc9[_0xd3a7a4(0x14e)]??!![],'storageStatePath':_0x31353f});if(_0x220e83['ykoaT'](process['getuid']?.(),0x0)){const _0x247aa8=[_0x220e83['Fpqiv'],'--disable-setuid-sandbox'],_0x4e35db=_0x252143[_0xd3a7a4(0x15d)]??[],_0x170c6a=_0x247aa8[_0xd3a7a4(0x121)](_0x48ee9d=>!_0x4e35db[_0xd3a7a4(0x13e)](_0x48ee9d));_0x252143[_0xd3a7a4(0x15d)]=[..._0x4e35db,..._0x170c6a];}return{'isolated':!![],'browserName':_0x220e83[_0xd3a7a4(0x164)],'launchOptions':_0x252143,'contextOptions':{..._0x5a7174,'permissions':[_0x220e83['fUfkq'],_0x220e83[_0xd3a7a4(0x143)]],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x428fff){const _0x3db647=_0x10cc8b['contextOptions'];if(_0x3db647[_0x49a281(0x16c)]===undefined)delete _0x3db647['userAgent'];if(_0x220e83[_0x49a281(0x155)](_0x3db647['storageState'],undefined))delete _0x3db647['storageState'];}const _0x50b543={'browser':_0x10cc8b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4b154b,'outputMode':'file','codegen':'none'},_0xaf81d=_0x220e83[_0x49a281(0x10c)](join,tmpdir(),_0x220e83[_0x49a281(0x12d)]);!_0x220e83[_0x49a281(0x10a)](existsSync,_0xaf81d)&&await _0x220e83['nLMZU'](mkdir,_0xaf81d,{'recursive':!![]});const _0x289a89=join(_0xaf81d,_0x1a00ab+'-'+Date['now']()+'-cli.json');return await _0x220e83['vmzXt'](writeFile,_0x289a89,JSON[_0x49a281(0x127)](_0x50b543,null,0x2)),{'configPath':_0x289a89,'tempAuthPath':_0x28c840};}export function getNestedValue(_0x35cfe7,_0xfd8020){const _0x561e64=_0xf58312,_0x3af1ac={'iPrnD':function(_0x368afa,_0x1dbc3b){return _0x368afa(_0x1dbc3b);}},_0x46bd70=_0x3af1ac[_0x561e64(0x175)](parseKeyPath,_0xfd8020);let _0x6bf48b=_0x35cfe7;for(const _0x3978a6 of _0x46bd70){if(_0x6bf48b===null||_0x6bf48b===undefined||typeof _0x6bf48b!==_0x561e64(0x170))return undefined;_0x6bf48b=_0x6bf48b[_0x3978a6];}return _0x6bf48b;}export function setNestedValue(_0x1245c9,_0x4ceee6,_0x2c7e0f){const _0x4f096d=_0xf58312,_0x30c9b2={'hSdGi':_0x4f096d(0x170)},_0x414fc7=parseKeyPath(_0x4ceee6);let _0x48593e=_0x1245c9;for(let _0x382c76=0x0;_0x382c76<_0x414fc7[_0x4f096d(0x132)]-0x1;_0x382c76++){const _0x4ed259=_0x414fc7[_0x382c76];(!(_0x4ed259 in _0x48593e)||typeof _0x48593e[_0x4ed259]!==_0x30c9b2[_0x4f096d(0x112)])&&(_0x48593e[_0x4ed259]={}),_0x48593e=_0x48593e[_0x4ed259];}_0x48593e[_0x414fc7[_0x414fc7['length']-0x1]]=_0x2c7e0f;}export function deleteNestedValue(_0x4aa0eb,_0x990641){const _0x1065c2=_0xf58312,_0x5e35bb={'CBZRi':_0x1065c2(0x170),'UUsXU':function(_0x3bcd63,_0x566441){return _0x3bcd63===_0x566441;},'KNIDM':function(_0x325367,_0x5083fa){return _0x325367-_0x5083fa;}},_0x49f7f7=parseKeyPath(_0x990641);let _0xb865d4=_0x4aa0eb;for(let _0xe21038=0x0;_0xe21038<_0x49f7f7[_0x1065c2(0x132)]-0x1;_0xe21038++){if(_0xb865d4===null||_0xb865d4===undefined||typeof _0xb865d4!==_0x5e35bb['CBZRi'])return![];_0xb865d4=_0xb865d4[_0x49f7f7[_0xe21038]];}if(_0x5e35bb[_0x1065c2(0x111)](_0xb865d4,null)||_0x5e35bb[_0x1065c2(0x111)](_0xb865d4,undefined)||typeof _0xb865d4!==_0x5e35bb['CBZRi'])return![];const _0x15e750=_0x49f7f7[_0x5e35bb['KNIDM'](_0x49f7f7['length'],0x1)];if(_0x15e750 in _0xb865d4)return delete _0xb865d4[_0x15e750],!![];return![];}function parseKeyPath(_0x88a4b9){const _0x1b64db=_0xf58312,_0x3aaa64={'fJQjf':function(_0x3db8f5,_0x4db296){return _0x3db8f5===_0x4db296;}},_0x3b2a36=_0x88a4b9['split']('.');return _0x3aaa64['fJQjf'](_0x3b2a36[0x0],'header')&&(_0x3b2a36[0x0]='headers'),_0x3b2a36[0x0]===_0x1b64db(0x145)&&(_0x3b2a36[0x0]=_0x1b64db(0x113)),_0x3b2a36;}export function formatSettings(_0xbd836d,_0x14dc11=0x0){const _0x47c3cd=_0xf58312,_0x49c1cf={'TEVCI':function(_0x509cf6,_0x3c3da7){return _0x509cf6===_0x3c3da7;}},_0x631b0e=[],_0x44373b='\x20\x20'['repeat'](_0x14dc11);for(const [_0x15755b,_0x1b081a]of Object[_0x47c3cd(0x14b)](_0xbd836d)){if(_0x1b081a===undefined)continue;if(_0x49c1cf['TEVCI'](typeof _0x1b081a,_0x47c3cd(0x170))&&_0x1b081a!==null){_0x631b0e['push'](''+_0x44373b+_0x15755b+':');for(const [_0x5c0beb,_0x5b5fc8]of Object[_0x47c3cd(0x14b)](_0x1b081a)){_0x631b0e['push'](_0x44373b+'\x20\x20'+_0x5c0beb+':\x20'+_0x5b5fc8);}}else _0x631b0e[_0x47c3cd(0x117)](''+_0x44373b+_0x15755b+':\x20'+_0x1b081a);}return _0x631b0e[_0x47c3cd(0x174)]('\x0a');}
|
|
1
|
+
const _0x204fae=_0x21f3;(function(_0x37df03,_0xe729af){const _0x357646=_0x21f3,_0x45f110=_0x37df03();while(!![]){try{const _0x45c788=parseInt(_0x357646(0xca))/0x1+parseInt(_0x357646(0xac))/0x2*(-parseInt(_0x357646(0x9b))/0x3)+-parseInt(_0x357646(0xb0))/0x4*(-parseInt(_0x357646(0xe1))/0x5)+-parseInt(_0x357646(0xbd))/0x6+-parseInt(_0x357646(0xcc))/0x7*(-parseInt(_0x357646(0xc5))/0x8)+-parseInt(_0x357646(0xc8))/0x9*(-parseInt(_0x357646(0xda))/0xa)+parseInt(_0x357646(0xa2))/0xb;if(_0x45c788===_0xe729af)break;else _0x45f110['push'](_0x45f110['shift']());}catch(_0x42f79c){_0x45f110['push'](_0x45f110['shift']());}}}(_0x4265,0x2d30a));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';function _0x4265(){const _0x489b6a=['settings.json','core','EjAIQ','ElmfQ','hvZOg','1250676GruBFu','args','XAqrp','pathK','filter','ranger-config','all','--no-sandbox','8dgjuVC','--allow-insecure-localhost','push','27myzqui','path','187253jnlsVz','cdpEndpoint','1352141RvXqRk','local','headless','string','setupHeaders','browser','DGHbA','object','sessions','BxCed','repeat','allowInsecureLocalhost','pnDhK','hGhhs','139660sOvvJw','Mknol','FtVJL','ENOENT','sEwbp','KDLFR','clipboard-read','40vQElUP','storageStatePath','auth.json','includes','tvxTI','getuid','abzdD','.json','file','--disable-features=WebBluetooth','Qrmte','extraHTTPHeaders','VycyI','meAme','launchOptions','hvXVX','SQkDD','contextOptions','entries','fzEFm','isArray','tabs','owpfk','--disable-setuid-sandbox','fRCPQ','userAgent','now','oUvha','uoajX','EHrhH','storageState','pkkYk','LroWg','CKIeZ','--disable-web-security','length','87ZrpgCT','aqqEL','map','XVnLD','legacy','tempAuthPath','SqksV','1487233RFCkIk','boolean','clipboard-write','YHeyz','WNSKI','tYjxs','bzEse','EICOr','ETkXN','message','19874mfDMhm','UqApi','VWRGs','zQroa','62100prNtLT','fromEntries','chromium','WUvJH','allow','parse','env','location'];_0x4265=function(){return _0x489b6a;};return _0x4265();}export function getEnvDir(_0x392d5d){const _0x5ac2a1=_0x21f3,_0x2137b3={'pkkYk':function(_0x533af4){return _0x533af4();},'UqApi':function(_0x3e22b1,_0x26438b,_0x3b54af,_0x1dc586){return _0x3e22b1(_0x26438b,_0x3b54af,_0x1dc586);},'hDLQQ':'local','tYjxs':function(_0x542d77,_0x5c12d0,_0x4774e6){return _0x542d77(_0x5c12d0,_0x4774e6);},'EICOr':function(_0x3303da,_0x4e5ddb){return _0x3303da(_0x4e5ddb);}},_0xe0034b=_0x2137b3[_0x5ac2a1(0x96)](getRangerDir),_0x2f7342=_0x2137b3['UqApi'](join,_0xe0034b,'ci',_0x392d5d),_0x2291a3=_0x2137b3[_0x5ac2a1(0xad)](join,_0xe0034b,_0x2137b3['hDLQQ'],_0x392d5d),_0x1d803d=join(_0xe0034b,_0x392d5d),_0x50e939=_0x2137b3[_0x5ac2a1(0xa7)](join,_0xe0034b,_0x5ac2a1(0xcd)),_0x2efceb=join(_0xe0034b,'ci');if(_0x2137b3[_0x5ac2a1(0xa9)](existsSync,_0x2f7342))return _0x2f7342;if(existsSync(_0x2291a3))return _0x2291a3;if(existsSync(_0x1d803d)&&(_0x1d803d!==_0x50e939&&_0x1d803d!==_0x2efceb?!![]:hasLegacyProfileFiles(_0x1d803d)))return _0x1d803d;return _0x2291a3;}export function findExistingEnv(_0x3959d8,_0x315053){const _0x20f9e6=_0x21f3,_0x258e9c={'Mknol':_0x20f9e6(0xcd),'uywsQ':function(_0x3929a1,_0x302ff0){return _0x3929a1===_0x302ff0;},'fzEFm':function(_0x266f06,_0x252f7c){return _0x266f06(_0x252f7c);}},_0xc1171b=getRangerDir(),_0x4311de=_0x315053?.['locations']??['ci',_0x258e9c[_0x20f9e6(0xdb)],_0x20f9e6(0x9f)],_0x5221dc=join(_0xc1171b,_0x258e9c['Mknol']),_0x34b975=join(_0xc1171b,'ci'),_0x4e42ce=[{'location':'ci','path':join(_0xc1171b,'ci',_0x3959d8)},{'location':_0x258e9c[_0x20f9e6(0xdb)],'path':join(_0xc1171b,'local',_0x3959d8)},{'location':'legacy','path':join(_0xc1171b,_0x3959d8)}];for(const _0x580379 of _0x4e42ce){if(_0x4311de[_0x20f9e6(0xe4)](_0x580379[_0x20f9e6(0xb7)])&&existsSync(_0x580379[_0x20f9e6(0xc9)])){if(_0x580379['location']==='legacy'&&(_0x580379[_0x20f9e6(0xc9)]===_0x5221dc||_0x258e9c['uywsQ'](_0x580379[_0x20f9e6(0xc9)],_0x34b975))&&!_0x258e9c[_0x20f9e6(0xf4)](hasLegacyProfileFiles,_0x580379['path']))continue;return{'path':_0x580379['path'],'location':_0x580379['location']};}}return null;}function hasLegacyProfileFiles(_0x29ae82){const _0x1a1ea3=_0x21f3,_0x16cbe1={'ZcQHe':function(_0x1d0f20,_0x4f1920,_0x16ed75){return _0x1d0f20(_0x4f1920,_0x16ed75);},'tvxTI':function(_0x5cdc92,_0x4ce12f){return _0x5cdc92(_0x4ce12f);},'KDLFR':function(_0x27d61b,_0x299d73){return _0x27d61b(_0x299d73);},'SqksV':'auth.json.enc'};return existsSync(_0x16cbe1['ZcQHe'](join,_0x29ae82,_0x1a1ea3(0xb8)))||_0x16cbe1[_0x1a1ea3(0xe5)](existsSync,join(_0x29ae82,'auth.json'))||_0x16cbe1[_0x1a1ea3(0xdf)](existsSync,_0x16cbe1['ZcQHe'](join,_0x29ae82,_0x16cbe1[_0x1a1ea3(0xa1)]));}export function isEnvCi(_0x105ff2){const _0xddbc5b=_0x21f3,_0x2a6d6e={'hvXVX':function(_0x41985e,_0x159b77){return _0x41985e(_0x159b77);},'meAme':function(_0x4ba93c){return _0x4ba93c();}};return _0x2a6d6e[_0xddbc5b(0xf0)](existsSync,join(_0x2a6d6e[_0xddbc5b(0xee)](getRangerDir),'ci',_0x105ff2));}export async function cleanupTempFiles(_0x468a19){const _0x39ac32=_0x21f3,_0x478d4f={'VROkd':function(_0x5915ed,_0x2de111){return _0x5915ed!==_0x2de111;}},_0x5cb762=[_0x468a19[_0x39ac32(0xa0)],_0x468a19['configPath']]['filter'](Boolean);await Promise[_0x39ac32(0xc3)](_0x5cb762['map'](_0x1eeeac=>unlink(_0x1eeeac)['catch'](_0x514b8e=>{const _0x3f1a4e=_0x39ac32;_0x478d4f['VROkd'](_0x514b8e['code'],_0x3f1a4e(0xdd))&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x1eeeac+':',_0x514b8e[_0x3f1a4e(0xab)]);})));}export function getSettingsPath(_0x59c655){const _0x52875a=_0x21f3,_0x39f245={'iLlEA':function(_0x3353fd,_0x208fcd,_0x3ba389){return _0x3353fd(_0x208fcd,_0x3ba389);},'VWRGs':_0x52875a(0xb8)};return _0x39f245['iLlEA'](join,getEnvDir(_0x59c655),_0x39f245[_0x52875a(0xae)]);}export async function loadSettings(_0x4f1b7a){const _0x750a37=_0x21f3,_0x2bb8fb={'yotfI':function(_0x3ec97d,_0x15538e){return _0x3ec97d(_0x15538e);},'ZCJCf':function(_0x15a999,_0x1625c7){return _0x15a999(_0x1625c7);},'skPQU':function(_0xb0837c,_0x67a7bc,_0x2045d8){return _0xb0837c(_0x67a7bc,_0x2045d8);}},_0x57e399=_0x2bb8fb['yotfI'](getSettingsPath,_0x4f1b7a);if(!_0x2bb8fb['ZCJCf'](existsSync,_0x57e399))return{};try{const _0x190e68=await _0x2bb8fb['skPQU'](readFile,_0x57e399,'utf-8');return JSON[_0x750a37(0xb5)](_0x190e68);}catch{return{};}}export async function saveSettings(_0x2cd9a8,_0x395021){const _0x560851=_0x21f3,_0x164b72={'zQroa':function(_0x2513ea,_0x57fb4b){return _0x2513ea(_0x57fb4b);},'EjAIQ':function(_0x4c2e11,_0x32f29d,_0x1af0b3){return _0x4c2e11(_0x32f29d,_0x1af0b3);}},_0x5ad298=_0x164b72[_0x560851(0xaf)](getSettingsPath,_0x2cd9a8),_0x24b397=_0x164b72[_0x560851(0xaf)](dirname,_0x5ad298);!existsSync(_0x24b397)&&await _0x164b72['EjAIQ'](mkdir,_0x24b397,{'recursive':!![]}),await _0x164b72[_0x560851(0xba)](writeFile,_0x5ad298,JSON['stringify'](_0x395021,null,0x2));}export function resolveEnvVars(_0xa4d8f8){const _0x1ab9a1=_0x21f3,_0x3368ed={'XAqrp':function(_0x4bdb4e,_0x5e5fab){return _0x4bdb4e===_0x5e5fab;}};if(_0x3368ed[_0x1ab9a1(0xbf)](typeof _0xa4d8f8,_0x1ab9a1(0xcf)))return _0xa4d8f8['replace'](/\$\{(\w+)\}/g,(_0x5ce6c8,_0x13313e)=>{const _0x38ae4b=_0x1ab9a1,_0x57ac4b=process[_0x38ae4b(0xb6)][_0x13313e];if(_0x57ac4b===undefined)throw new Error('Environment\x20variable\x20'+_0x13313e+'\x20is\x20not\x20set');return _0x57ac4b;});if(Array[_0x1ab9a1(0x8b)](_0xa4d8f8))return _0xa4d8f8[_0x1ab9a1(0x9d)](resolveEnvVars);if(_0xa4d8f8&&typeof _0xa4d8f8==='object')return Object[_0x1ab9a1(0xb1)](Object['entries'](_0xa4d8f8)['map'](([_0x4b520f,_0x3f31d1])=>[_0x4b520f,resolveEnvVars(_0x3f31d1)]));return _0xa4d8f8;}const isRecord=_0x82afbd=>typeof _0x82afbd==='object'&&_0x82afbd!==null&&!Array[_0x204fae(0x8b)](_0x82afbd),asRecord=_0x5a28a0=>isRecord(_0x5a28a0)?_0x5a28a0:undefined,mergeHeaders=(_0x410c01,_0x4f9b59)=>{const _0x30a88f=_0x204fae,_0x53ffb7={'CedRj':function(_0x137dc5,_0x5bbbfa){return _0x137dc5??_0x5bbbfa;}},_0x2cb2fa={..._0x53ffb7['CedRj'](_0x410c01,{}),..._0x4f9b59??{}};return Object['keys'](_0x2cb2fa)[_0x30a88f(0x9a)]?_0x2cb2fa:undefined;},SAFE_MODE_ARGS=[_0x204fae(0xea)],ALLOW_LOCALHOST_ARGS=[_0x204fae(0x99),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x204fae(0xc6)];export function buildBrowserOptionsFromSettings(_0x13eea8,_0x43ec8c={}){const _0x218d09=_0x204fae,_0x2f0632={'gYFiU':function(_0x5b3b18,_0x3a9f53){return _0x5b3b18(_0x3a9f53);},'KhxVx':_0x218d09(0xa3),'DDtQI':function(_0xfd578,_0x4a17dd){return _0xfd578(_0x4a17dd);},'ElmfQ':function(_0x4c0ee6,_0xb2f49f){return _0x4c0ee6===_0xb2f49f;},'FtVJL':_0x218d09(0xcf),'beEjI':function(_0x11413d,_0x88097,_0x3874bf){return _0x11413d(_0x88097,_0x3874bf);}},_0x235f6f=asRecord(_0x13eea8[_0x218d09(0xd1)]),_0x2eef0b={..._0x2f0632['gYFiU'](asRecord,_0x235f6f?.[_0x218d09(0xef)])??{}};typeof _0x43ec8c[_0x218d09(0xce)]===_0x2f0632['KhxVx']&&(_0x2eef0b['headless']=_0x43ec8c['headless']);if(_0x13eea8['safeMode']){const _0x3a5a0e=_0x2eef0b[_0x218d09(0xbe)]??[],_0x5b8522=SAFE_MODE_ARGS[_0x218d09(0xc1)](_0x3a2d77=>!_0x3a5a0e['includes'](_0x3a2d77));_0x2eef0b[_0x218d09(0xbe)]=[..._0x3a5a0e,..._0x5b8522];}if(_0x13eea8[_0x218d09(0xd7)]){const _0x20bd71=_0x2eef0b['args']??[],_0x3689f4=ALLOW_LOCALHOST_ARGS['filter'](_0x5df028=>!_0x20bd71[_0x218d09(0xe4)](_0x5df028));_0x2eef0b['args']=[..._0x20bd71,..._0x3689f4];}const _0x2da0ea={..._0x2f0632['DDtQI'](asRecord,_0x235f6f?.['contextOptions'])??{}};_0x2da0ea['ignoreHTTPSErrors']=!![];_0x2f0632[_0x218d09(0xbb)](typeof _0x13eea8[_0x218d09(0x90)],_0x2f0632[_0x218d09(0xdc)])&&(_0x2da0ea['userAgent']=_0x13eea8['userAgent']);const _0x467d8e=_0x2f0632['beEjI'](mergeHeaders,_0x2f0632['DDtQI'](asRecord,_0x2da0ea['extraHTTPHeaders']),asRecord(_0x13eea8['headers']));return _0x467d8e?_0x2da0ea['extraHTTPHeaders']=_0x467d8e:delete _0x2da0ea[_0x218d09(0xec)],_0x43ec8c[_0x218d09(0xe2)]&&(_0x2da0ea['storageState']=_0x43ec8c['storageStatePath']),{'launchOptions':_0x2eef0b,'contextOptions':_0x2da0ea};}export async function buildPlaywrightConfig(_0x4e9a4e,_0x55ff9a,_0x58fad4,_0x599372){const _0x37bb39=_0x204fae,_0x50bc2f={'VycyI':_0x37bb39(0xe0),'iKPcg':function(_0x1a89c9,_0x1973df){return _0x1a89c9(_0x1973df);},'RtHtE':_0x37bb39(0xe3),'XVnLD':function(_0x4968c6){return _0x4968c6();},'YHeyz':function(_0x63ac09,_0x5c2839){return _0x63ac09(_0x5c2839);},'oUvha':function(_0x6bcb52,_0x3dfe39,_0x11e490){return _0x6bcb52(_0x3dfe39,_0x11e490);},'sciIx':function(_0x1adf34){return _0x1adf34();},'GHcCo':function(_0x18bf0c){return _0x18bf0c();},'SQkDD':function(_0x48faf2,_0x4571e7,_0x4339b5,_0x50405b){return _0x48faf2(_0x4571e7,_0x4339b5,_0x50405b);},'QkfLB':function(_0x58455b){return _0x58455b();},'yuScv':_0x37bb39(0x8c),'uThaY':function(_0xe8fe25,_0x1fc2b7){return _0xe8fe25===_0x1fc2b7;},'owpfk':function(_0x1a1d81,_0x3b40b5,_0x43037e){return _0x1a1d81(_0x3b40b5,_0x43037e);}},_0x2bc8f6=_0x50bc2f['iKPcg'](getEnvDir,_0x55ff9a),_0x2b6ef9=join(_0x2bc8f6,'auth.json.enc'),_0x3892b1=join(_0x2bc8f6,_0x50bc2f['RtHtE']);let _0x30d29c,_0x3b523a;if(existsSync(_0x2b6ef9))try{const _0x3eb001=await _0x50bc2f[_0x37bb39(0x9e)](getToken);if(!_0x3eb001)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2951dc=await _0x50bc2f[_0x37bb39(0xa5)](readFile,_0x2b6ef9),_0x2f2fb8=_0x50bc2f[_0x37bb39(0x92)](decrypt,_0x2951dc,_0x3eb001);_0x3b523a=join(_0x50bc2f['sciIx'](tmpdir),'ranger-auth-'+Date['now']()+_0x37bb39(0xe8)),await writeFile(_0x3b523a,_0x2f2fb8),_0x30d29c=_0x3b523a;}catch(_0x2db870){const _0x1c270f=_0x2db870 instanceof Error?_0x2db870[_0x37bb39(0xab)]:String(_0x2db870);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1c270f);}else existsSync(_0x3892b1)&&(_0x30d29c=_0x3892b1);const _0x1084a1=_0x58fad4||_0x50bc2f['GHcCo'](randomUUID),_0x4f54f3=_0x50bc2f[_0x37bb39(0xf1)](join,_0x50bc2f['QkfLB'](getRangerDir),_0x37bb39(0xd4),_0x1084a1),_0x2be073=Boolean(_0x4e9a4e[_0x37bb39(0xcb)]),_0x2a2015=_0x2be073?{'browserName':'chromium','cdpEndpoint':_0x4e9a4e[_0x37bb39(0xcb)]}:((()=>{const _0x3ae781=_0x37bb39,{launchOptions:_0x6991af,contextOptions:_0x1719de}=buildBrowserOptionsFromSettings(_0x4e9a4e,{'headless':_0x599372?![]:_0x4e9a4e[_0x3ae781(0xce)]??!![],'storageStatePath':_0x30d29c});if(process['getuid']?.()===0x0){const _0x2a2546=['--no-sandbox',_0x3ae781(0x8e)],_0x714134=_0x6991af['args']??[],_0x266beb=_0x2a2546['filter'](_0x5d10f5=>!_0x714134['includes'](_0x5d10f5));_0x6991af[_0x3ae781(0xbe)]=[..._0x714134,..._0x266beb];}return{'isolated':!![],'browserName':_0x3ae781(0xb2),'launchOptions':_0x6991af,'contextOptions':{..._0x1719de,'permissions':[_0x50bc2f[_0x3ae781(0xed)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1f4907={'name':_0x55ff9a,'browser':_0x2a2015,'capabilities':[_0x37bb39(0xb9),_0x50bc2f['yuScv'],'install','pdf','vision'],'imageResponses':_0x37bb39(0xb4),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4f54f3};if(!_0x2be073){const _0x4aa063=_0x1f4907['browser'],_0x4993c4=_0x4aa063[_0x37bb39(0xf2)];if(_0x50bc2f['uThaY'](_0x4993c4[_0x37bb39(0x90)],undefined))delete _0x4993c4['userAgent'];if(_0x4993c4[_0x37bb39(0x95)]===undefined)delete _0x4993c4[_0x37bb39(0x95)];}const _0x448e22=join(_0x50bc2f[_0x37bb39(0x9e)](tmpdir),_0x37bb39(0xc2));!existsSync(_0x448e22)&&await mkdir(_0x448e22,{'recursive':!![]});const _0x334e37=_0x50bc2f[_0x37bb39(0x8d)](join,_0x448e22,_0x55ff9a+'-'+Date[_0x37bb39(0x91)]()+'.json');return await writeFile(_0x334e37,JSON['stringify'](_0x1f4907,null,0x2)),{'configPath':_0x334e37,'tempAuthPath':_0x3b523a};}export async function buildPlaywrightCliConfig(_0x555361,_0x556d99,_0x549343,_0x161494){const _0x43fb6d=_0x204fae,_0x14aee4={'APEBE':_0x43fb6d(0xc4),'pathK':_0x43fb6d(0x8e),'CDiXX':_0x43fb6d(0xe0),'tmXPP':_0x43fb6d(0xa4),'sEwbp':function(_0xc75616,_0x2edc8c){return _0xc75616(_0x2edc8c);},'hvZOg':function(_0x1ae875,_0x3f19c7,_0x2c443e){return _0x1ae875(_0x3f19c7,_0x2c443e);},'ImeRJ':_0x43fb6d(0xe3),'ETkXN':function(_0x1e7094){return _0x1e7094();},'hGhhs':function(_0x11a1fd,_0x38c1fb){return _0x11a1fd instanceof _0x38c1fb;},'uoajX':function(_0x3a2733,_0x2673ae,_0x392684,_0x186efd){return _0x3a2733(_0x2673ae,_0x392684,_0x186efd);},'aqqEL':_0x43fb6d(0xd4),'rkSEd':function(_0x40a882,_0x60ca5c){return _0x40a882(_0x60ca5c);},'WNSKI':function(_0x2de01b,_0x326107){return _0x2de01b===_0x326107;},'QkWot':_0x43fb6d(0xe9),'EHrhH':'none','CKIeZ':function(_0x36553f,_0x331707,_0x560ab7){return _0x36553f(_0x331707,_0x560ab7);},'iQMYt':_0x43fb6d(0xc2),'ULGfA':function(_0x2d675a,_0x217260){return _0x2d675a(_0x217260);},'pnDhK':function(_0x290480,_0x5b6c4e,_0x395805){return _0x290480(_0x5b6c4e,_0x395805);}},_0xe8176=_0x14aee4['sEwbp'](getEnvDir,_0x556d99),_0x1248f0=join(_0xe8176,'auth.json.enc'),_0x65c613=_0x14aee4[_0x43fb6d(0xbc)](join,_0xe8176,_0x14aee4['ImeRJ']);let _0x3494a8,_0x2cf3a0;if(_0x14aee4[_0x43fb6d(0xde)](existsSync,_0x1248f0))try{const _0x2c58ab=await getToken();if(!_0x2c58ab)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x12de8a=await readFile(_0x1248f0),_0x4723f9=decrypt(_0x12de8a,_0x2c58ab);_0x2cf3a0=join(_0x14aee4[_0x43fb6d(0xaa)](tmpdir),'ranger-auth-'+Date[_0x43fb6d(0x91)]()+'.json'),await _0x14aee4['hvZOg'](writeFile,_0x2cf3a0,_0x4723f9),_0x3494a8=_0x2cf3a0;}catch(_0x4941d0){const _0x45d102=_0x14aee4[_0x43fb6d(0xd9)](_0x4941d0,Error)?_0x4941d0['message']:String(_0x4941d0);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x45d102);}else _0x14aee4[_0x43fb6d(0xde)](existsSync,_0x65c613)&&(_0x3494a8=_0x65c613);const _0x3c5ea5=_0x549343||_0x14aee4['ETkXN'](randomUUID),_0x488623=_0x14aee4[_0x43fb6d(0x93)](join,getRangerDir(),_0x14aee4[_0x43fb6d(0x9c)],_0x3c5ea5),_0x503c73=_0x14aee4['rkSEd'](Boolean,_0x555361[_0x43fb6d(0xcb)]),_0xca3b65=_0x503c73?{'browserName':_0x43fb6d(0xb2),'cdpEndpoint':_0x555361[_0x43fb6d(0xcb)]}:((()=>{const _0xf2cd63=_0x43fb6d,{launchOptions:_0x3e59be,contextOptions:_0x420fcc}=buildBrowserOptionsFromSettings(_0x555361,{'headless':_0x161494?![]:_0x555361['headless']??!![],'storageStatePath':_0x3494a8});if(process[_0xf2cd63(0xe6)]?.()===0x0){const _0x879644=[_0x14aee4['APEBE'],_0x14aee4[_0xf2cd63(0xc0)]],_0x1b037a=_0x3e59be['args']??[],_0x392415=_0x879644[_0xf2cd63(0xc1)](_0x5ef7ad=>!_0x1b037a['includes'](_0x5ef7ad));_0x3e59be[_0xf2cd63(0xbe)]=[..._0x1b037a,..._0x392415];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x3e59be,'contextOptions':{..._0x420fcc,'permissions':[_0x14aee4['CDiXX'],_0x14aee4['tmXPP']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x503c73){const _0x41a6f5=_0xca3b65[_0x43fb6d(0xf2)];if(_0x14aee4[_0x43fb6d(0xa6)](_0x41a6f5['userAgent'],undefined))delete _0x41a6f5[_0x43fb6d(0x90)];if(_0x14aee4[_0x43fb6d(0xa6)](_0x41a6f5[_0x43fb6d(0x95)],undefined))delete _0x41a6f5['storageState'];}const _0x657598={'browser':_0xca3b65,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x488623,'outputMode':_0x14aee4['QkWot'],'codegen':_0x14aee4[_0x43fb6d(0x94)]},_0x597388=_0x14aee4[_0x43fb6d(0x98)](join,_0x14aee4['ETkXN'](tmpdir),_0x14aee4['iQMYt']);!_0x14aee4['ULGfA'](existsSync,_0x597388)&&await _0x14aee4[_0x43fb6d(0x98)](mkdir,_0x597388,{'recursive':!![]});const _0x4db5b1=_0x14aee4[_0x43fb6d(0xd8)](join,_0x597388,_0x556d99+'-'+Date['now']()+'-cli.json');return await writeFile(_0x4db5b1,JSON['stringify'](_0x657598,null,0x2)),{'configPath':_0x4db5b1,'tempAuthPath':_0x2cf3a0};}export function getNestedValue(_0xba9cfe,_0x5c5dda){const _0x258215=_0x204fae,_0x180643={'VfxuE':function(_0x58605e,_0x291c15){return _0x58605e===_0x291c15;},'WUvJH':function(_0xaa07b2,_0x1d00be){return _0xaa07b2===_0x1d00be;},'abzdD':_0x258215(0xd3)},_0x400520=parseKeyPath(_0x5c5dda);let _0x2853dd=_0xba9cfe;for(const _0x44fdb9 of _0x400520){if(_0x180643['VfxuE'](_0x2853dd,null)||_0x180643[_0x258215(0xb3)](_0x2853dd,undefined)||typeof _0x2853dd!==_0x180643[_0x258215(0xe7)])return undefined;_0x2853dd=_0x2853dd[_0x44fdb9];}return _0x2853dd;}function _0x21f3(_0x2a47fe,_0x156c1d){_0x2a47fe=_0x2a47fe-0x8b;const _0x426592=_0x4265();let _0x21f3df=_0x426592[_0x2a47fe];return _0x21f3df;}export function setNestedValue(_0x2e36fc,_0x4ec5e1,_0x5cc355){const _0x19c0b8=_0x204fae,_0x2610c2={'lFoyH':function(_0x5a1758,_0x167ff8){return _0x5a1758<_0x167ff8;},'abnVa':function(_0x29737b,_0x3cdca7){return _0x29737b-_0x3cdca7;},'BwMWw':function(_0x49b6cb,_0x1dd3de){return _0x49b6cb in _0x1dd3de;},'hCJai':function(_0x268f8c,_0x546ed0){return _0x268f8c!==_0x546ed0;}},_0x539b31=parseKeyPath(_0x4ec5e1);let _0x75a857=_0x2e36fc;for(let _0x334485=0x0;_0x2610c2['lFoyH'](_0x334485,_0x2610c2['abnVa'](_0x539b31[_0x19c0b8(0x9a)],0x1));_0x334485++){const _0x53f445=_0x539b31[_0x334485];(!_0x2610c2['BwMWw'](_0x53f445,_0x75a857)||_0x2610c2['hCJai'](typeof _0x75a857[_0x53f445],'object'))&&(_0x75a857[_0x53f445]={}),_0x75a857=_0x75a857[_0x53f445];}_0x75a857[_0x539b31[_0x539b31[_0x19c0b8(0x9a)]-0x1]]=_0x5cc355;}export function deleteNestedValue(_0xd40a60,_0x578c75){const _0x5db874=_0x204fae,_0xf5a92b={'egFDq':function(_0x1168f5,_0x434f8b){return _0x1168f5<_0x434f8b;},'BxCed':function(_0x19b151,_0x1767b7){return _0x19b151-_0x1767b7;},'NwgNd':function(_0x53e6c9,_0x4b0f67){return _0x53e6c9===_0x4b0f67;},'DGHbA':function(_0x9c3c08,_0x3b0723){return _0x9c3c08!==_0x3b0723;},'fRCPQ':function(_0x3b4dac,_0x19af44){return _0x3b4dac-_0x19af44;},'bzEse':function(_0x1d0e62,_0x2bdd83){return _0x1d0e62 in _0x2bdd83;}},_0x19efd8=parseKeyPath(_0x578c75);let _0x2daa68=_0xd40a60;for(let _0x4e8118=0x0;_0xf5a92b['egFDq'](_0x4e8118,_0xf5a92b[_0x5db874(0xd5)](_0x19efd8[_0x5db874(0x9a)],0x1));_0x4e8118++){if(_0xf5a92b['NwgNd'](_0x2daa68,null)||_0x2daa68===undefined||_0xf5a92b[_0x5db874(0xd2)](typeof _0x2daa68,'object'))return![];_0x2daa68=_0x2daa68[_0x19efd8[_0x4e8118]];}if(_0x2daa68===null||_0x2daa68===undefined||typeof _0x2daa68!=='object')return![];const _0x3aed5c=_0x19efd8[_0xf5a92b[_0x5db874(0x8f)](_0x19efd8[_0x5db874(0x9a)],0x1)];if(_0xf5a92b[_0x5db874(0xa8)](_0x3aed5c,_0x2daa68))return delete _0x2daa68[_0x3aed5c],!![];return![];}function parseKeyPath(_0x5aebe5){const _0x47b142=_0x204fae,_0x28475b={'fJixj':function(_0x54799b,_0x4aa5e1){return _0x54799b===_0x4aa5e1;}},_0x1fff50=_0x5aebe5['split']('.');return _0x28475b['fJixj'](_0x1fff50[0x0],'header')&&(_0x1fff50[0x0]='headers'),_0x1fff50[0x0]==='setupHeader'&&(_0x1fff50[0x0]=_0x47b142(0xd0)),_0x1fff50;}export function formatSettings(_0x471e0e,_0x5e004b=0x0){const _0x371069=_0x204fae,_0x2818e4={'LroWg':function(_0x52f379,_0x42966e){return _0x52f379===_0x42966e;},'Qrmte':function(_0xed513d,_0x58314a){return _0xed513d!==_0x58314a;}},_0x4e2ee8=[],_0x54c841='\x20\x20'[_0x371069(0xd6)](_0x5e004b);for(const [_0x32512a,_0x3db4ea]of Object['entries'](_0x471e0e)){if(_0x2818e4[_0x371069(0x97)](_0x3db4ea,undefined))continue;if(typeof _0x3db4ea===_0x371069(0xd3)&&_0x2818e4[_0x371069(0xeb)](_0x3db4ea,null)){_0x4e2ee8['push'](''+_0x54c841+_0x32512a+':');for(const [_0x655b5,_0xaa05bb]of Object[_0x371069(0xf3)](_0x3db4ea)){_0x4e2ee8[_0x371069(0xc7)](_0x54c841+'\x20\x20'+_0x655b5+':\x20'+_0xaa05bb);}}else _0x4e2ee8['push'](''+_0x54c841+_0x32512a+':\x20'+_0x3db4ea);}return _0x4e2ee8['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5672(_0x2dce6a,_0x5d53a8){_0x2dce6a=_0x2dce6a-0x1f3;const _0x47a78d=_0x47a7();let _0x567260=_0x47a78d[_0x2dce6a];return _0x567260;}(function(_0x36b033,_0x57130e){const _0x6b827f=_0x5672,_0x4deed9=_0x36b033();while(!![]){try{const _0x481f98=parseInt(_0x6b827f(0x1f4))/0x1*(-parseInt(_0x6b827f(0x1fc))/0x2)+parseInt(_0x6b827f(0x1fd))/0x3+parseInt(_0x6b827f(0x1f3))/0x4*(parseInt(_0x6b827f(0x1f6))/0x5)+parseInt(_0x6b827f(0x1f9))/0x6*(parseInt(_0x6b827f(0x1ff))/0x7)+parseInt(_0x6b827f(0x1fa))/0x8*(-parseInt(_0x6b827f(0x200))/0x9)+parseInt(_0x6b827f(0x1f7))/0xa*(parseInt(_0x6b827f(0x1fb))/0xb)+-parseInt(_0x6b827f(0x1fe))/0xc*(parseInt(_0x6b827f(0x201))/0xd);if(_0x481f98===_0x57130e)break;else _0x4deed9['push'](_0x4deed9['shift']());}catch(_0x3a972d){_0x4deed9['push'](_0x4deed9['shift']());}}}(_0x47a7,0x3a0f0));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x51f139){const _0x50440b=_0x5672,_0xb00d0f={'oqWds':function(_0x9a12ee,_0xe3541d,_0x2537f4,_0x39f695,_0x25a973){return _0x9a12ee(_0xe3541d,_0x2537f4,_0x39f695,_0x25a973);},'ZXXEr':'skills','TcwMm':function(_0x2c0724,_0x5b0424,_0x3cd610){return _0x2c0724(_0x5b0424,_0x3cd610);}},_0x5e26fc=_0xb00d0f['oqWds'](join,__dirname,'..','..',_0xb00d0f[_0x50440b(0x203)]),_0x42caa5=_0xb00d0f['TcwMm'](join,_0x5e26fc,_0x51f139);try{return readFileSync(_0x42caa5,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x312ea2=_0x5672,_0x8462d5={'ErZsQ':function(_0x160b76,_0x5034fe){return _0x160b76(_0x5034fe);},'StOnG':_0x312ea2(0x202)};return _0x8462d5[_0x312ea2(0x1f8)](readSkillContent,_0x8462d5[_0x312ea2(0x1f5)]);}function _0x47a7(){const _0x13a172=['104032ExEuwN','922185iFZOIB','324JgMjqe','3137743pzdOKB','35514HxwRTL','276406uamenZ','ranger/SKILL.md','ZXXEr','316doPVOi','1FBDXgI','StOnG','11690fRetbr','10BBMUoJ','ErZsQ','6PllEiU','632grBsEJ','2588146JSrtEL'];_0x47a7=function(){return _0x13a172;};return _0x47a7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x193d(_0x583268,_0x5e9de2){_0x583268=_0x583268-0x10a;const _0xa895f3=_0xa895();let _0x193dd4=_0xa895f3[_0x583268];return _0x193dd4;}const _0x2feb93=_0x193d;(function(_0x32844c,_0x307971){const _0x2d4339=_0x193d,_0x42fde5=_0x32844c();while(!![]){try{const _0x483fcd=parseInt(_0x2d4339(0x129))/0x1*(-parseInt(_0x2d4339(0x126))/0x2)+parseInt(_0x2d4339(0x12d))/0x3+parseInt(_0x2d4339(0x10e))/0x4*(-parseInt(_0x2d4339(0x12b))/0x5)+-parseInt(_0x2d4339(0x10a))/0x6+-parseInt(_0x2d4339(0x118))/0x7+-parseInt(_0x2d4339(0x128))/0x8+-parseInt(_0x2d4339(0x112))/0x9*(-parseInt(_0x2d4339(0x124))/0xa);if(_0x483fcd===_0x307971)break;else _0x42fde5['push'](_0x42fde5['shift']());}catch(_0x194428){_0x42fde5['push'](_0x42fde5['shift']());}}}(_0xa895,0x41d91));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=[_0x2feb93(0x12c)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x2feb93(0x12a),_0x2feb93(0x117)];export async function installSkill(_0x21a919,_0x457c6b={}){const _0x1d896e=_0x2feb93,_0x38b405={'DVvkM':'project','ONXDa':_0x1d896e(0x110),'ZDKXk':function(_0x32deac,_0x5be152,_0xaeddcb){return _0x32deac(_0x5be152,_0xaeddcb);},'alAMW':function(_0x587f10,_0x4b2f9b,_0x2a07aa){return _0x587f10(_0x4b2f9b,_0x2a07aa);},'WVSps':function(_0x41ff25,_0xe4c71b){return _0x41ff25(_0xe4c71b);},'mskxT':function(_0x140365,_0x3d01a7,_0xe20c25){return _0x140365(_0x3d01a7,_0xe20c25);},'JVteU':function(_0x37d613,_0x30045f){return _0x37d613===_0x30045f;},'ULjCM':_0x1d896e(0x11f),'YbMIW':function(_0x117620,_0x311eb2,_0x356780){return _0x117620(_0x311eb2,_0x356780);},'jtnbI':function(_0x40994f,_0x173df1,_0x3e27e2){return _0x40994f(_0x173df1,_0x3e27e2);},'KabbE':function(_0x5d996d,_0x1eaa67,_0x1558b6){return _0x5d996d(_0x1eaa67,_0x1558b6);},'UhJIg':_0x1d896e(0x11e),'Aksii':'SKILL.md','tmSoI':function(_0x1c0d9e,_0x6dadd2){return _0x1c0d9e(_0x6dadd2);}},{level:level=_0x38b405[_0x1d896e(0x10b)],cliVersion:_0x250659,platform:platform=_0x38b405[_0x1d896e(0x130)]}=_0x457c6b,_0x51725d=getSourceSkillsDir(),_0x20e21c=_0x38b405['ZDKXk'](join,_0x51725d,_0x21a919),_0x4214c9=_0x38b405[_0x1d896e(0x113)](join,_0x51725d,_0x21a919+_0x1d896e(0x114)),_0x166dbd=_0x38b405['WVSps'](existsSync,_0x20e21c)&&statSync(_0x20e21c)['isDirectory']()&&_0x38b405['WVSps'](existsSync,_0x38b405['mskxT'](join,_0x20e21c,_0x1d896e(0x11b))),_0x2c941f=existsSync(_0x4214c9);if(!_0x166dbd&&!_0x2c941f)return console[_0x1d896e(0x127)]('\x20\x20Skill\x20not\x20found:\x20'+_0x21a919),![];const _0x6a1547=_0x38b405['JVteU'](platform,_0x38b405['ULjCM'])?_0x38b405[_0x1d896e(0x10f)](getOpencodeSkillsDir,level):_0x38b405['WVSps'](getSkillsDir,level),_0x1f5eb4=_0x38b405[_0x1d896e(0x11a)](join,_0x6a1547,_0x21a919);await _0x38b405['jtnbI'](mkdir,_0x1f5eb4,{'recursive':!![]});let _0x1c62e7,_0x3bbea4=[];if(_0x166dbd){const _0x389c86=await readdir(_0x20e21c),_0x139db1=_0x389c86[_0x1d896e(0x123)](_0x203617=>_0x203617[_0x1d896e(0x12f)](_0x1d896e(0x114)));for(const _0x368cd8 of _0x139db1){const _0x385406=_0x38b405[_0x1d896e(0x120)](join,_0x20e21c,_0x368cd8),_0x3677ce=_0x38b405[_0x1d896e(0x125)](join,_0x1f5eb4,_0x368cd8);await _0x38b405[_0x1d896e(0x121)](copyFile,_0x385406,_0x3677ce),_0x3bbea4[_0x1d896e(0x119)](_0x368cd8);}_0x1c62e7=await _0x38b405[_0x1d896e(0x120)](readFile,join(_0x20e21c,'SKILL.md'),_0x38b405[_0x1d896e(0x12e)]);}else{_0x1c62e7=await readFile(_0x4214c9,_0x38b405[_0x1d896e(0x12e)]);const _0x4161e6=_0x38b405['ZDKXk'](join,_0x1f5eb4,_0x38b405[_0x1d896e(0x111)]);await writeFile(_0x4161e6,_0x1c62e7,'utf-8'),_0x3bbea4['push'](_0x38b405['Aksii']);}const {name:_0x54ef55}=_0x38b405[_0x1d896e(0x122)](parseFrontmatter,_0x1c62e7);return console[_0x1d896e(0x10d)]('\x20\x20Installed\x20skill:\x20'+_0x54ef55),console[_0x1d896e(0x10d)]('\x20\x20Location:\x20'+_0x1f5eb4),_0x3bbea4['length']>0x1&&console['log']('\x20\x20Files:\x20'+_0x3bbea4[_0x1d896e(0x11d)](',\x20')),logLocalAgentInstallation(_0x21a919,{'skillDisplayName':_0x54ef55,'installLevel':level},_0x250659)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x30b694=_0x2feb93,_0x914b06={'Wzoni':function(_0x1e1aa5,_0x43f54d,_0x4f1087,_0x5b96e2,_0x11a3b5,_0x435edf){return _0x1e1aa5(_0x43f54d,_0x4f1087,_0x5b96e2,_0x11a3b5,_0x435edf);},'PStzy':function(_0x8d06b7,_0x167e74){return _0x8d06b7(_0x167e74);}},_0x4b18c7=[join(__dirname,'..','..',_0x30b694(0x10c)),_0x914b06['Wzoni'](join,__dirname,'..','..','..',_0x30b694(0x10c))];for(const _0x5a7e9b of _0x4b18c7){if(_0x914b06['PStzy'](existsSync,_0x5a7e9b))return _0x5a7e9b;}return _0x4b18c7[0x0];}function _0xa895(){const _0x23d269=['WVSps','claude','Aksii','31869eSXShq','alAMW','.md','trim','match','feature-tracker','1040431YkueYx','push','YbMIW','SKILL.md','\x20\x20Removed\x20deprecated\x20skill:\x20','join','utf-8','opencode','KabbE','mskxT','tmSoI','filter','5090fFiVMT','ZDKXk','485542VCgHgt','warn','995712ZrvZog','1TJZGdC','bug-bash','2452135vVpHie','ranger','24783ytiguR','UhJIg','endsWith','ONXDa','3207732eNnrKq','DVvkM','skills','log','4aqNmYV'];_0xa895=function(){return _0x23d269;};return _0xa895();}function parseFrontmatter(_0x4c85f1){const _0x18f7be=_0x2feb93,_0xab7cd5=_0x4c85f1[_0x18f7be(0x116)](/^---\n([\s\S]+?)\n---/);if(!_0xab7cd5)throw new Error('Invalid\x20skill\x20frontmatter');const _0xbff4c3=_0xab7cd5[0x1],_0x69e984=_0xbff4c3[_0x18f7be(0x116)](/name:\s*(.+)/),_0x53957f=_0xbff4c3[_0x18f7be(0x116)](/description:\s*"?(.+?)"?\n/);return{'name':_0x69e984?.[0x1][_0x18f7be(0x115)]()||'','description':_0x53957f?.[0x1]['trim']()||''};}export async function removeSkill(_0x5c8a28,_0x4e242f){const _0x9a8ef2=_0x2feb93,_0x4707c3={'gYYNd':function(_0x3432ef,_0x5ec26e){return _0x3432ef(_0x5ec26e);}},_0x58a76c=getSkillsDir(_0x4e242f),_0x1f0a95=join(_0x58a76c,_0x5c8a28);if(!_0x4707c3['gYYNd'](existsSync,_0x1f0a95))return![];try{return await rm(_0x1f0a95,{'recursive':!![]}),console['log'](_0x9a8ef2(0x11c)+_0x5c8a28),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5c8a28),![];}}
|