@ranger-testing/ranger-cli 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/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/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -0
- 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/verifyInBrowser.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x16363e,_0x1f182f){const _0x94b1ca=_0x363f,_0x358f75=_0x16363e();while(!![]){try{const _0x19a0c6=-parseInt(_0x94b1ca(0x1be))/0x1*(parseInt(_0x94b1ca(0x1d8))/0x2)+-parseInt(_0x94b1ca(0x1bf))/0x3*(-parseInt(_0x94b1ca(0x1d4))/0x4)+parseInt(_0x94b1ca(0x1bb))/0x5*(-parseInt(_0x94b1ca(0x1d9))/0x6)+parseInt(_0x94b1ca(0x1c3))/0x7+parseInt(_0x94b1ca(0x1d0))/0x8+-parseInt(_0x94b1ca(0x1d1))/0x9+-parseInt(_0x94b1ca(0x1c0))/0xa*(-parseInt(_0x94b1ca(0x1c8))/0xb);if(_0x19a0c6===_0x1f182f)break;else _0x358f75['push'](_0x358f75['shift']());}catch(_0x4764e9){_0x358f75['push'](_0x358f75['shift']());}}}(_0x2883,0x67b74));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x22a1b6){const _0x45a895=_0x363f,_0x5cb4fe={'nBIPP':function(_0x12e5de,_0x2f7f71){return _0x12e5de(_0x2f7f71);},'BpYPe':function(_0x421bd9,_0x370a99,_0x42c41f){return _0x421bd9(_0x370a99,_0x42c41f);}},_0x510188=[],_0x4a7d61=[];if(!_0x5cb4fe[_0x45a895(0x1ce)](existsSync,_0x22a1b6))return{'screenshots':_0x510188,'paths':_0x4a7d61};const _0x3cbe27=await readdir(_0x22a1b6),_0x4256e0=_0x3cbe27['filter'](_0x4efea=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x4efea))[_0x45a895(0x1de)]();for(const _0xd3d77 of _0x4256e0){const _0x5741bc=_0x5cb4fe['BpYPe'](join,_0x22a1b6,_0xd3d77);_0x510188['push']({'filename':_0xd3d77,'path':_0x5741bc,'relativePath':'./'+_0xd3d77}),_0x4a7d61[_0x45a895(0x1c9)](_0x5741bc);}return{'screenshots':_0x510188,'paths':_0x4a7d61};}function getSeverityEmoji(_0x2354a4){const _0x5c7cb4=_0x363f,_0xa58183={'uWfHG':_0x5c7cb4(0x1bc)};switch(_0x2354a4){case _0x5c7cb4(0x1cb):return'🔴';case _0xa58183['uWfHG']:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x88e40d){const _0x29736d=_0x363f,_0x16a164=_0x88e40d['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x11d132=_0x16a164[_0x29736d(0x1d3)](/^\d+-/,'');return _0x11d132[_0x29736d(0x1dc)]('-')['map'](_0x3d7f53=>_0x3d7f53['charAt'](0x0)['toUpperCase']()+_0x3d7f53['slice'](0x1))['join']('\x20');}function _0x2883(){const _0x57f94e=['screenshot','nBIPP','description','1300728XhoRxA','4370715ONtPgJ','PASSED','replace','2738136GoPmUI','##\x20Result','relativePath','kIRwS','671810NiIVTH','582CrJgUJ','**Screenshot:**','toISOString','split','length','sort','###\x20Summary','7885RLMOzX','MAJOR',']\x20Issue','1tnXiyK','3ULkWqo','865750PzohAf','severity','**Generated:**\x20','3259403PXfYoy','---','MYMhp','**Status:**\x20','##\x20Screenshots\x20(','11SifyKX','push','##\x20Task','BLOCKER','**Duration:**\x20'];_0x2883=function(){return _0x57f94e;};return _0x2883();}function _0x363f(_0x2eae59,_0x5bd67d){_0x2eae59=_0x2eae59-0x1ba;const _0x2883d9=_0x2883();let _0x363f33=_0x2883d9[_0x2eae59];return _0x363f33;}export function generateMarkdownReport(_0x542a2e){const _0x1be392=_0x363f,_0x2e46c0={'vzkmt':function(_0x2def22,_0x35cffd){return _0x2def22/_0x35cffd;},'MYMhp':'ISSUES\x20FOUND','kIRwS':function(_0x38f1f4,_0x36b00c){return _0x38f1f4>_0x36b00c;}},{sessionId:_0x139ba9,task:_0x236c58,url:_0x557e02,success:_0xb7a97b,summary:_0x536b5e,issues:_0xca301c,screenshots:_0x528d28,durationMs:_0x8ad9f7,traceViewerUrl:_0x5de428}=_0x542a2e,_0xb90d44=new Date()[_0x1be392(0x1db)](),_0x114c01=_0x2e46c0['vzkmt'](_0x8ad9f7,0x3e8)['toFixed'](0x1),_0x31efff=[];_0x31efff['push']('#\x20Verification\x20Report'),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff[_0x1be392(0x1c9)]('**Session:**\x20`'+_0x139ba9+'`'),_0x31efff['push'](_0x1be392(0x1c2)+_0xb90d44),_0x31efff[_0x1be392(0x1c9)](_0x1be392(0x1cc)+_0x114c01+'s'),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff['push'](_0x1be392(0x1ca)),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff['push']('**URL:**\x20'+_0x557e02),_0x31efff['push'](''),_0x31efff['push']('>\x20'+_0x236c58),_0x31efff['push'](''),_0x31efff['push'](_0x1be392(0x1d5)),_0x31efff['push']('');const _0x4c054a=_0xb7a97b?'✅':'❌';_0x31efff['push'](_0x1be392(0x1c6)+_0x4c054a+'\x20'+(_0xb7a97b?_0x1be392(0x1d2):_0x2e46c0[_0x1be392(0x1c5)])),_0x31efff['push'](''),_0x31efff['push'](_0x1be392(0x1ba)),_0x31efff['push'](''),_0x31efff['push'](_0x536b5e),_0x31efff[_0x1be392(0x1c9)]('');if(_0xca301c&&_0x2e46c0['kIRwS'](_0xca301c[_0x1be392(0x1dd)],0x0)){_0x31efff['push']('###\x20Issues\x20Found\x20('+_0xca301c[_0x1be392(0x1dd)]+')'),_0x31efff['push']('');for(const _0x16b99a of _0xca301c){const _0x35c58d=getSeverityEmoji(_0x16b99a[_0x1be392(0x1c1)]);_0x31efff[_0x1be392(0x1c9)]('####\x20'+_0x35c58d+'\x20['+_0x16b99a[_0x1be392(0x1c1)]+_0x1be392(0x1bd)),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff['push'](_0x16b99a[_0x1be392(0x1cf)]),_0x31efff[_0x1be392(0x1c9)]('');if(_0x16b99a[_0x1be392(0x1cd)]){const _0x4b943d=_0x16b99a['screenshot'],_0x586c7f=_0x528d28['find'](_0x54de59=>_0x54de59['filename']===_0x4b943d||_0x54de59['filename']['includes'](_0x4b943d));_0x586c7f&&(_0x31efff['push'](_0x1be392(0x1da)),_0x31efff['push'](''),_0x31efff['push'](']+')'),_0x31efff['push'](''));}}}if(_0x2e46c0[_0x1be392(0x1d7)](_0x528d28[_0x1be392(0x1dd)],0x0)){_0x31efff[_0x1be392(0x1c9)](_0x1be392(0x1c7)+_0x528d28[_0x1be392(0x1dd)]+')'),_0x31efff['push']('');for(const _0x193d6a of _0x528d28){const _0x4e4b65=formatScreenshotCaption(_0x193d6a['filename']);_0x31efff['push']('###\x20'+_0x4e4b65),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff[_0x1be392(0x1c9)]('!['+_0x193d6a['filename']+']('+_0x193d6a[_0x1be392(0x1d6)]+')'),_0x31efff['push']('');}}return _0x5de428&&(_0x31efff[_0x1be392(0x1c9)](_0x1be392(0x1c4)),_0x31efff['push'](''),_0x31efff['push']('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x5de428+')'),_0x31efff[_0x1be392(0x1c9)]('')),_0x31efff['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4ed6(){const _0x5715db=['248QRoVyN','baseDelayMs','\x20failed\x20(attempt\x20','710811AnRMbL','1409424gguTAK','67757qDXuYB','zUnnf','pow','kjWJj','1243098OYIuDu','429705BubBSb','7948wdwloC','label','3367ySZekk','4aaehkq','20NyjYjR','44XHuZwG','70GAoNQn','error'];_0x4ed6=function(){return _0x5715db;};return _0x4ed6();}(function(_0x375fb3,_0x34443d){const _0x3a9b3b=_0x28ad,_0x3c1b4c=_0x375fb3();while(!![]){try{const _0x456ca9=parseInt(_0x3a9b3b(0x1d7))/0x1*(parseInt(_0x3a9b3b(0x1cd))/0x2)+-parseInt(_0x3a9b3b(0x1c9))/0x3+-parseInt(_0x3a9b3b(0x1ca))/0x4*(-parseInt(_0x3a9b3b(0x1d0))/0x5)+-parseInt(_0x3a9b3b(0x1c8))/0x6+-parseInt(_0x3a9b3b(0x1cc))/0x7*(parseInt(_0x3a9b3b(0x1d2))/0x8)+-parseInt(_0x3a9b3b(0x1d5))/0x9*(parseInt(_0x3a9b3b(0x1ce))/0xa)+-parseInt(_0x3a9b3b(0x1cf))/0xb*(-parseInt(_0x3a9b3b(0x1d6))/0xc);if(_0x456ca9===_0x34443d)break;else _0x3c1b4c['push'](_0x3c1b4c['shift']());}catch(_0x3929c6){_0x3c1b4c['push'](_0x3c1b4c['shift']());}}}(_0x4ed6,0x1ad1d));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x28ad(_0x1b7771,_0x53948e){_0x1b7771=_0x1b7771-0x1c5;const _0x4ed6ea=_0x4ed6();let _0x28ad5a=_0x4ed6ea[_0x1b7771];return _0x28ad5a;}export async function withRetry(_0x170398,_0x432797){const _0x13c9b9=_0x28ad,_0x10aa51={'kjWJj':function(_0x10b517,_0xb7659e){return _0x10b517<=_0xb7659e;},'LKcDC':function(_0x39cdb0){return _0x39cdb0();},'gsmxu':function(_0x61b256,_0x1b5c3b){return _0x61b256*_0x1b5c3b;},'zUnnf':function(_0x304c3e,_0x3bb5e0){return _0x304c3e+_0x3bb5e0;}},_0x498344=_0x432797?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4909d1=_0x432797?.[_0x13c9b9(0x1d3)]??DEFAULT_BASE_DELAY_MS;let _0x328cc2;for(let _0x3f2fe7=0x0;_0x10aa51[_0x13c9b9(0x1c7)](_0x3f2fe7,_0x498344);_0x3f2fe7++){try{return await _0x10aa51['LKcDC'](_0x170398);}catch(_0x1b6d02){_0x328cc2=_0x1b6d02 instanceof Error?_0x1b6d02:new Error(String(_0x1b6d02));if(_0x3f2fe7<_0x498344){const _0x22b878=_0x10aa51['gsmxu'](_0x4909d1,Math[_0x13c9b9(0x1c6)](0x2,_0x3f2fe7));_0x432797?.[_0x13c9b9(0x1cb)]&&console[_0x13c9b9(0x1d1)](_0x432797[_0x13c9b9(0x1cb)]+_0x13c9b9(0x1d4)+_0x10aa51[_0x13c9b9(0x1c5)](_0x3f2fe7,0x1)+'/'+(_0x498344+0x1)+'),\x20retrying\x20in\x20'+_0x22b878+'ms...'),await new Promise(_0x1a7edc=>setTimeout(_0x1a7edc,_0x22b878));}}}throw _0x328cc2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2354cf=_0x1872;(function(_0x1ed448,_0xf27554){const _0x3173fc=_0x1872,_0x194a51=_0x1ed448();while(!![]){try{const _0x3cc8bb=-parseInt(_0x3173fc(0x127))/0x1*(-parseInt(_0x3173fc(0x107))/0x2)+parseInt(_0x3173fc(0x11a))/0x3+parseInt(_0x3173fc(0xf8))/0x4*(parseInt(_0x3173fc(0x117))/0x5)+-parseInt(_0x3173fc(0xfc))/0x6*(parseInt(_0x3173fc(0x11c))/0x7)+parseInt(_0x3173fc(0xf9))/0x8+-parseInt(_0x3173fc(0x11f))/0x9*(-parseInt(_0x3173fc(0x10b))/0xa)+-parseInt(_0x3173fc(0x118))/0xb;if(_0x3cc8bb===_0xf27554)break;else _0x194a51['push'](_0x194a51['shift']());}catch(_0x528504){_0x194a51['push'](_0x194a51['shift']());}}}(_0x4ffe,0x7302c));import*as _0x556362 from'fs';import*as _0x53f2af from'path';import*as _0x2173f0 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x53f2af['join'](_0x2173f0[_0x2354cf(0x11b)](),'.claude',_0x2354cf(0x12a));function _0x1872(_0x8a57b1,_0x595176){_0x8a57b1=_0x8a57b1-0xf6;const _0x4ffe52=_0x4ffe();let _0x1872bb=_0x4ffe52[_0x8a57b1];return _0x1872bb;}function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x15ddbf=_0x2354cf,_0x3f5336={'hgNJR':_0x15ddbf(0x119),'RJvJb':function(_0x33cad9){return _0x33cad9();}};try{if(_0x556362['existsSync'](CACHE_FILE)){const _0x21af73=JSON['parse'](_0x556362['readFileSync'](CACHE_FILE,_0x3f5336[_0x15ddbf(0x101)]));return{'version':0x3,'sessions':_0x21af73[_0x15ddbf(0x105)]||{},'branches':_0x21af73[_0x15ddbf(0x116)]||{},'lastEnabledSessionClearedAt':_0x21af73[_0x15ddbf(0xfb)]};}}catch{}return _0x3f5336[_0x15ddbf(0x10d)](createEmptyCache);}function saveCache(_0x7188cd){const _0xcb78d4=_0x2354cf;try{const _0x57bb94=_0x53f2af['dirname'](CACHE_FILE);!_0x556362[_0xcb78d4(0xfa)](_0x57bb94)&&_0x556362[_0xcb78d4(0x120)](_0x57bb94,{'recursive':!![]}),_0x556362['writeFileSync'](CACHE_FILE,JSON[_0xcb78d4(0x104)](_0x7188cd,null,0x2));}catch{}}export function getCurrentBranch(){const _0x238d4d=_0x2354cf,_0x3b3006={'KAhkF':function(_0x2ce383,_0x1fe343,_0x5043fe){return _0x2ce383(_0x1fe343,_0x5043fe);},'FZXsb':'utf-8','gzWKe':'pipe','CrKtJ':function(_0x34d2e0,_0x4b6254){return _0x34d2e0===_0x4b6254;},'dbXOc':'HEAD'};try{const _0x402e9e=_0x3b3006['KAhkF'](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x3b3006[_0x238d4d(0x109)],'stdio':[_0x3b3006['gzWKe'],_0x3b3006['gzWKe'],_0x3b3006['gzWKe']]})['trim']();if(!_0x402e9e||_0x3b3006[_0x238d4d(0x102)](_0x402e9e,_0x3b3006[_0x238d4d(0x126)]))return null;return _0x402e9e;}catch{return null;}}export function enableBranch(_0x26fba9){const _0x2840c2={'oRHFn':function(_0x49c371,_0x5dd821){return _0x49c371(_0x5dd821);}},_0x2f4c17=loadCache();_0x2f4c17['branches'][_0x26fba9]=!![],_0x2840c2['oRHFn'](saveCache,_0x2f4c17);}export function disableBranch(_0x1ef1a6){const _0x490864=_0x2354cf,_0x1d1002={'Yilcd':function(_0x129fb0,_0x8fb50b){return _0x129fb0(_0x8fb50b);}},_0x4b62f8=loadCache();delete _0x4b62f8[_0x490864(0x116)][_0x1ef1a6],_0x1d1002[_0x490864(0x11e)](saveCache,_0x4b62f8);}export function isBranchEnabled(_0x4ca08f){const _0x2e2ae0=loadCache();return _0x2e2ae0['branches'][_0x4ca08f]===!![];}function getOrCreateSession(_0x44972f,_0x38af7c){const _0x1d8e0f=_0x2354cf;return!_0x44972f[_0x1d8e0f(0x105)][_0x38af7c]&&(_0x44972f['sessions'][_0x38af7c]={}),_0x44972f['sessions'][_0x38af7c];}export function enableSession(_0x34181b){const _0x299c76=_0x2354cf,_0x3f1d5d={'csGta':function(_0x39f0bf){return _0x39f0bf();},'FNsHJ':function(_0x5757b7,_0x2d463e){return _0x5757b7!==_0x2d463e;}},_0x1a2701=_0x3f1d5d['csGta'](loadCache),_0x51cd99=getOrCreateSession(_0x1a2701,_0x34181b);_0x51cd99['enabled']=!![];const _0x11f4fe=getCurrentBranch();_0x11f4fe&&_0x11f4fe!=='main'&&_0x3f1d5d[_0x299c76(0xfd)](_0x11f4fe,'master')&&(_0x1a2701['branches'][_0x11f4fe]=!![],_0x51cd99[_0x299c76(0x10f)]=_0x11f4fe),saveCache(_0x1a2701);}export function isSessionEnabled(_0xe42e65){const _0x4d08bc=_0x2354cf,_0xb6372c={'tUiyu':function(_0x1ca66a){return _0x1ca66a();},'wscbl':_0x4d08bc(0x100),'jbCKs':function(_0x5d9ab3,_0x4a877f){return _0x5d9ab3===_0x4a877f;},'qrPeY':function(_0x3b92fc,_0x355449){return _0x3b92fc===_0x355449;},'clPfN':function(_0x53c89c,_0x2b4fc6){return _0x53c89c||_0x2b4fc6;}},_0x728567=loadCache(),_0x3b1798=_0xb6372c['tUiyu'](getCurrentBranch);if(!_0x3b1798||_0x3b1798===_0xb6372c['wscbl']||_0xb6372c['jbCKs'](_0x3b1798,_0x4d08bc(0x10e)))return _0x728567[_0x4d08bc(0x105)][_0xe42e65]?.['enabled']===!![];const _0x31d720=_0xb6372c['qrPeY'](_0x728567['branches'][_0x3b1798],!![]),_0x2e6818=_0x728567[_0x4d08bc(0x105)][_0xe42e65]?.[_0x4d08bc(0x125)]===!![];return _0xb6372c['clPfN'](_0x31d720,_0x2e6818);}export function disableSession(_0x3b6fea){const _0x37bb22=_0x2354cf,_0x33372b={'pSbLh':function(_0x56ead4,_0x5d9d5a,_0x16f998){return _0x56ead4(_0x5d9d5a,_0x16f998);}},_0x54afaa=loadCache(),_0xd191db=_0x33372b['pSbLh'](getOrCreateSession,_0x54afaa,_0x3b6fea);_0xd191db[_0x37bb22(0x125)]=![],saveCache(_0x54afaa);}export function updateBranchTracking(_0x49e09c){const _0x1973d1=_0x2354cf,_0x4daca2={'GfZmV':function(_0x50879e){return _0x50879e();},'EAqrU':function(_0x244b78,_0x4d6711){return _0x244b78===_0x4d6711;},'lKCoY':function(_0x13881d,_0x3223bf){return _0x13881d===_0x3223bf;},'eWysl':_0x1973d1(0x10e),'LCYeh':function(_0x23c7da,_0x1ff159){return _0x23c7da(_0x1ff159);}},_0x4f08dc=loadCache(),_0x2783bf=_0x4f08dc['sessions'][_0x49e09c];if(!_0x2783bf?.['enabled'])return;const _0x7c20fd=_0x4daca2[_0x1973d1(0x123)](getCurrentBranch);if(!_0x7c20fd||_0x4daca2[_0x1973d1(0xf6)](_0x7c20fd,_0x1973d1(0x100))||_0x4daca2['lKCoY'](_0x7c20fd,_0x4daca2['eWysl']))return;_0x2783bf['currentBranch']!==_0x7c20fd&&(_0x4f08dc[_0x1973d1(0x116)][_0x7c20fd]=!![],_0x2783bf['currentBranch']=_0x7c20fd,_0x4daca2[_0x1973d1(0x128)](saveCache,_0x4f08dc));}export function initBranchTracking(_0x3547d5){const _0x2949e3=_0x2354cf,_0x228594={'JNiQR':function(_0x548ef8,_0x3b6347){return _0x548ef8===_0x3b6347;},'AFQAp':'master','tdElt':function(_0x4d75f7,_0x797b87){return _0x4d75f7===_0x797b87;},'eJzAw':function(_0x55d7a7,_0x21162d,_0x169e35){return _0x55d7a7(_0x21162d,_0x169e35);},'lAeRQ':function(_0x975e3f,_0x1c1e80){return _0x975e3f(_0x1c1e80);}},_0x126b0e=loadCache(),_0x2fd299=getCurrentBranch();if(!_0x2fd299||_0x228594[_0x2949e3(0xf7)](_0x2fd299,_0x2949e3(0x100))||_0x2fd299===_0x228594[_0x2949e3(0x108)])return;if(_0x228594[_0x2949e3(0x121)](_0x126b0e[_0x2949e3(0x116)][_0x2fd299],!![])){const _0x219725=_0x228594[_0x2949e3(0x106)](getOrCreateSession,_0x126b0e,_0x3547d5);_0x219725['enabled']=!![],_0x219725['currentBranch']=_0x2fd299,_0x228594[_0x2949e3(0x122)](saveCache,_0x126b0e);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x21109a){const _0xcd5b0d=_0x2354cf,_0xb0b70a={'WQles':function(_0x9a62aa){return _0x9a62aa();},'HPYLr':function(_0x5a5c35,_0x2b2b55){return _0x5a5c35(_0x2b2b55);}},_0x48623f=_0xb0b70a['WQles'](loadCache),_0x4da9a1=_0x48623f['sessions'][_0x21109a];_0x4da9a1?.[_0xcd5b0d(0x125)]&&(_0x48623f['lastEnabledSessionClearedAt']=Date[_0xcd5b0d(0x110)](),_0xb0b70a['HPYLr'](saveCache,_0x48623f));}export function shouldAutoEnableAfterClear(_0x252789){const _0x4111f7=_0x2354cf,_0x25b16c={'CRGEP':'clear','NvlAl':function(_0x392839,_0x5497d9){return _0x392839-_0x5497d9;},'lzQyM':function(_0x1a9567,_0x10cd9e){return _0x1a9567<=_0x10cd9e;}};if(_0x252789!==_0x25b16c[_0x4111f7(0x111)])return![];const _0x547034=loadCache(),_0x43a0a2=_0x547034[_0x4111f7(0xfb)];if(!_0x43a0a2)return![];const _0x32c92a=_0x25b16c[_0x4111f7(0x129)](Date[_0x4111f7(0x110)](),_0x43a0a2);return _0x25b16c[_0x4111f7(0xff)](_0x32c92a,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x1e4db4){const _0x43ea7a=_0x2354cf,_0x329773={'fVIgl':function(_0xd1a4e5){return _0xd1a4e5();},'ddsbe':function(_0x29a186){return _0x29a186();},'yfZPy':function(_0x4d2c39,_0x2f672d){return _0x4d2c39!==_0x2f672d;}},_0x53d1fb=_0x329773[_0x43ea7a(0x10c)](loadCache),_0x54be2c=getOrCreateSession(_0x53d1fb,_0x1e4db4);_0x54be2c[_0x43ea7a(0x125)]=!![];const _0x5f51b5=_0x329773['ddsbe'](getCurrentBranch);_0x5f51b5&&_0x5f51b5!=='main'&&_0x329773[_0x43ea7a(0x11d)](_0x5f51b5,'master')&&(_0x54be2c[_0x43ea7a(0x10f)]=_0x5f51b5),delete _0x53d1fb['lastEnabledSessionClearedAt'],saveCache(_0x53d1fb);}export function registerSession(_0x49acb7,_0x4264a5){const _0x29e962=_0x2354cf,_0x5867da={'kxjta':function(_0xfc15e){return _0xfc15e();}},_0x4509a7=_0x5867da[_0x29e962(0x115)](loadCache),_0x65ebc=getOrCreateSession(_0x4509a7,_0x49acb7);_0x65ebc[_0x29e962(0x124)]=_0x4264a5,_0x65ebc['registeredAt']=new Date()[_0x29e962(0xfe)](),saveCache(_0x4509a7);}function _0x4ffe(){const _0x497406=['master','currentBranch','now','CRGEP','comYc','prompted','dFtjI','kxjta','branches','10AGEKac','16444417HpWfbc','utf-8','1185012nGCJaY','homedir','35ePiFvh','yfZPy','Yilcd','109818Trtwwn','mkdirSync','tdElt','lAeRQ','GfZmV','featureId','enabled','dbXOc','354147dXxeUe','LCYeh','NvlAl','.ranger_cache.json','EAqrU','JNiQR','113676tLTOWD','3892288eCNfOR','existsSync','lastEnabledSessionClearedAt','744234XojUwp','FNsHJ','toISOString','lzQyM','main','hgNJR','CrKtJ','JTcIz','stringify','sessions','eJzAw','4wkzdxe','AFQAp','FZXsb','registeredAt','770EcjcvD','fVIgl','RJvJb'];_0x4ffe=function(){return _0x497406;};return _0x4ffe();}export function getSessionEntry(_0x43f9f2){const _0x414ee4=_0x2354cf,_0x40fc6e=loadCache(),_0x610807=_0x40fc6e['sessions'][_0x43f9f2];if(_0x610807?.[_0x414ee4(0x124)]&&_0x610807?.[_0x414ee4(0x10a)])return{'featureId':_0x610807['featureId'],'registeredAt':_0x610807[_0x414ee4(0x10a)]};return null;}export function unregisterSession(_0x2573b3){const _0x396d20=_0x2354cf,_0x5eacf7={'dFtjI':function(_0x5c3bf9,_0x244b14){return _0x5c3bf9(_0x244b14);}},_0x1ccd41=loadCache(),_0xf0116b=_0x1ccd41[_0x396d20(0x105)][_0x2573b3];_0xf0116b&&(delete _0xf0116b['featureId'],delete _0xf0116b['registeredAt'],_0x5eacf7[_0x396d20(0x114)](saveCache,_0x1ccd41));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x204fe6){const _0x205ae3=_0x2354cf,_0x5bd8d6={'comYc':function(_0x1c0dc5,_0x3d20fd,_0x3314b4){return _0x1c0dc5(_0x3d20fd,_0x3314b4);}},_0x483676=loadCache(),_0x4c74e5=_0x5bd8d6[_0x205ae3(0x112)](getOrCreateSession,_0x483676,_0x204fe6),_0x5558e8=_0x4c74e5['lastPlanReminderAt']||0x0,_0x4b2db8=Date['now']();if(_0x4b2db8-_0x5558e8>=PLAN_REMINDER_INTERVAL_MS)return _0x4c74e5['lastPlanReminderAt']=_0x4b2db8,saveCache(_0x483676),!![];return![];}export function hasSessionBeenPrompted(_0x5a33d2){const _0x4b7fb5=_0x2354cf,_0x5f4f6c={'lnHrc':function(_0x44e10c,_0x42daa7){return _0x44e10c===_0x42daa7;}},_0x1ad6b7=loadCache();return _0x5f4f6c['lnHrc'](_0x1ad6b7[_0x4b7fb5(0x105)][_0x5a33d2]?.[_0x4b7fb5(0x113)],!![]);}export function markSessionPrompted(_0x140e40){const _0x162615=_0x2354cf,_0x110dab={'JTcIz':function(_0x38cb08){return _0x38cb08();}},_0x333a86=_0x110dab[_0x162615(0x103)](loadCache),_0x3d48fc=getOrCreateSession(_0x333a86,_0x140e40);_0x3d48fc['prompted']=!![],saveCache(_0x333a86);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x13d332=_0x2262;(function(_0xf71ce2,_0x279f6f){const _0x3c13e5=_0x2262,_0x125743=_0xf71ce2();while(!![]){try{const _0xf0a787=-parseInt(_0x3c13e5(0x144))/0x1*(parseInt(_0x3c13e5(0x13f))/0x2)+-parseInt(_0x3c13e5(0x14e))/0x3+-parseInt(_0x3c13e5(0x147))/0x4+-parseInt(_0x3c13e5(0x16d))/0x5+parseInt(_0x3c13e5(0x145))/0x6*(parseInt(_0x3c13e5(0x151))/0x7)+parseInt(_0x3c13e5(0x139))/0x8*(-parseInt(_0x3c13e5(0x169))/0x9)+parseInt(_0x3c13e5(0x14f))/0xa*(parseInt(_0x3c13e5(0x15a))/0xb);if(_0xf0a787===_0x279f6f)break;else _0x125743['push'](_0x125743['shift']());}catch(_0xa244a5){_0x125743['push'](_0x125743['shift']());}}}(_0x3b95,0xabad7));import*as _0x2f3cb0 from'fs';import*as _0x23d8d0 from'path';import*as _0x1916df from'os';import{execSync}from'child_process';const CACHE_FILE=_0x23d8d0['join'](_0x1916df['homedir'](),_0x13d332(0x160),_0x13d332(0x161));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x3b95(){const _0x7bd5b8=['parse','PbzLN','readFileSync','1MASuZn','426dBrsuD','trim','2657272YJORcr','YmUsZ','WTmXA','master','registeredAt','vvbyE','FnWOy','3130764CKSCky','47383810FeMwOv','JDYji','65485qCwqch','qWLTC','now','Urldr','gIHNJ','cVrHR','TKVzZ','BetOv','JwaTp','11IDpegm','MbHDK','currentBranch','lastPlanReminderAt','lastEnabledSessionClearedAt','prompted','.claude','.ranger_cache.json','xpXjW','fKlZI','featureId','pdzde','utf-8','enabled','sessions','36fYbECG','HWnVQ','CGufS','vGpII','3937395cEmYcH','pipe','csCZP','toISOString','1935944CiyiNK','git\x20rev-parse\x20--abbrev-ref\x20HEAD','branches','mkdirSync','FEsef','main','2472076AgSQDh','DTTwm'];_0x3b95=function(){return _0x7bd5b8;};return _0x3b95();}function loadCache(){const _0x1a11aa=_0x13d332;try{if(_0x2f3cb0['existsSync'](CACHE_FILE)){const _0x545e1b=JSON[_0x1a11aa(0x141)](_0x2f3cb0[_0x1a11aa(0x143)](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x545e1b[_0x1a11aa(0x168)]||{},'branches':_0x545e1b['branches']||{},'lastEnabledSessionClearedAt':_0x545e1b[_0x1a11aa(0x15e)]};}}catch{}return createEmptyCache();}function saveCache(_0x1a1a79){const _0x504b65=_0x13d332;try{const _0x1ed614=_0x23d8d0['dirname'](CACHE_FILE);!_0x2f3cb0['existsSync'](_0x1ed614)&&_0x2f3cb0[_0x504b65(0x13c)](_0x1ed614,{'recursive':!![]}),_0x2f3cb0['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x1a1a79,null,0x2));}catch{}}export function getCurrentBranch(){const _0x510859=_0x13d332,_0xf029f1={'ArQOn':function(_0x2ade9b,_0x49dbfa,_0x3707a9){return _0x2ade9b(_0x49dbfa,_0x3707a9);},'gvLJE':_0x510859(0x166),'sZSIG':'pipe','csCZP':function(_0x5ac5da,_0x286f76){return _0x5ac5da===_0x286f76;}};try{const _0x2342a8=_0xf029f1['ArQOn'](execSync,_0x510859(0x13a),{'encoding':_0xf029f1['gvLJE'],'stdio':[_0xf029f1['sZSIG'],_0x510859(0x136),_0x510859(0x136)]})[_0x510859(0x146)]();if(!_0x2342a8||_0xf029f1[_0x510859(0x137)](_0x2342a8,'HEAD'))return null;return _0x2342a8;}catch{return null;}}export function enableBranch(_0x57b21a){const _0x304fbc=_0x13d332,_0x53bbd5={'vvbyE':function(_0xe696b4,_0xd66a24){return _0xe696b4(_0xd66a24);}},_0x1c0936=loadCache();_0x1c0936['branches'][_0x57b21a]=!![],_0x53bbd5[_0x304fbc(0x14c)](saveCache,_0x1c0936);}export function disableBranch(_0x76a7){const _0x57e010=loadCache();delete _0x57e010['branches'][_0x76a7],saveCache(_0x57e010);}export function isBranchEnabled(_0x6de7a9){const _0x1cef5f=_0x13d332,_0x433bb3={'Urldr':function(_0x454875,_0x33b2fa){return _0x454875===_0x33b2fa;}},_0x3fcff8=loadCache();return _0x433bb3[_0x1cef5f(0x154)](_0x3fcff8['branches'][_0x6de7a9],!![]);}function getOrCreateSession(_0x17fef5,_0x52f35a){const _0x399cd4=_0x13d332;return!_0x17fef5['sessions'][_0x52f35a]&&(_0x17fef5[_0x399cd4(0x168)][_0x52f35a]={}),_0x17fef5['sessions'][_0x52f35a];}export function enableSession(_0x140b8c){const _0x23dbe6=_0x13d332,_0x453f1a={'PbzLN':function(_0xecceb1){return _0xecceb1();},'KlHiV':_0x23dbe6(0x14a),'EpZqv':function(_0x2bb734,_0x18b630){return _0x2bb734(_0x18b630);}},_0xa744fc=loadCache(),_0x567fc1=getOrCreateSession(_0xa744fc,_0x140b8c);_0x567fc1['enabled']=!![];const _0x438aa1=_0x453f1a[_0x23dbe6(0x142)](getCurrentBranch);_0x438aa1&&_0x438aa1!==_0x23dbe6(0x13e)&&_0x438aa1!==_0x453f1a['KlHiV']&&(_0xa744fc[_0x23dbe6(0x13b)][_0x438aa1]=!![],_0x567fc1['currentBranch']=_0x438aa1),_0x453f1a['EpZqv'](saveCache,_0xa744fc);}export function isSessionEnabled(_0x4c3918){const _0x19b0db=_0x13d332,_0x16f7a3={'ktksi':function(_0x1dfb8f){return _0x1dfb8f();},'fKlZI':function(_0x3d804c,_0x36e914){return _0x3d804c===_0x36e914;},'cVrHR':_0x19b0db(0x14a)},_0x2afb4d=_0x16f7a3['ktksi'](loadCache),_0x507e2e=getCurrentBranch();if(!_0x507e2e||_0x16f7a3[_0x19b0db(0x163)](_0x507e2e,'main')||_0x16f7a3['fKlZI'](_0x507e2e,_0x16f7a3[_0x19b0db(0x156)]))return _0x2afb4d['sessions'][_0x4c3918]?.['enabled']===!![];const _0x53fd3d=_0x16f7a3['fKlZI'](_0x2afb4d['branches'][_0x507e2e],!![]),_0x11450f=_0x2afb4d[_0x19b0db(0x168)][_0x4c3918]?.[_0x19b0db(0x167)]===!![];return _0x53fd3d||_0x11450f;}export function disableSession(_0x152845){const _0x36a7bd=_0x13d332,_0x3c536b={'FEsef':function(_0x2c33a3){return _0x2c33a3();},'ngRrG':function(_0x2d2d35,_0x16a4cf){return _0x2d2d35(_0x16a4cf);}},_0x9ada11=_0x3c536b[_0x36a7bd(0x13d)](loadCache),_0x58110a=getOrCreateSession(_0x9ada11,_0x152845);_0x58110a[_0x36a7bd(0x167)]=![],_0x3c536b['ngRrG'](saveCache,_0x9ada11);}export function updateBranchTracking(_0x4f9a7b){const _0xa659ea=_0x13d332,_0x39c41c={'MbHDK':function(_0x57084d){return _0x57084d();},'fsXxf':function(_0x580cd5){return _0x580cd5();},'JDYji':function(_0x488f7a,_0x2cb8a2){return _0x488f7a===_0x2cb8a2;},'rFKet':_0xa659ea(0x13e),'cfiZo':function(_0x4313e7,_0x204ee7){return _0x4313e7!==_0x204ee7;}},_0xe58b7e=_0x39c41c[_0xa659ea(0x15b)](loadCache),_0x4df9e0=_0xe58b7e[_0xa659ea(0x168)][_0x4f9a7b];if(!_0x4df9e0?.['enabled'])return;const _0x3a2520=_0x39c41c['fsXxf'](getCurrentBranch);if(!_0x3a2520||_0x39c41c[_0xa659ea(0x150)](_0x3a2520,_0x39c41c['rFKet'])||_0x3a2520===_0xa659ea(0x14a))return;_0x39c41c['cfiZo'](_0x4df9e0['currentBranch'],_0x3a2520)&&(_0xe58b7e[_0xa659ea(0x13b)][_0x3a2520]=!![],_0x4df9e0['currentBranch']=_0x3a2520,saveCache(_0xe58b7e));}export function initBranchTracking(_0x417ccc){const _0x5225b2=_0x13d332,_0x2b733c={'pdzde':function(_0x5d5040){return _0x5d5040();},'TKVzZ':function(_0x4d809a,_0xdde142){return _0x4d809a===_0xdde142;},'FkHLo':_0x5225b2(0x13e),'EyfBg':_0x5225b2(0x14a)},_0x453acf=_0x2b733c[_0x5225b2(0x165)](loadCache),_0x21c6a4=getCurrentBranch();if(!_0x21c6a4||_0x2b733c[_0x5225b2(0x157)](_0x21c6a4,_0x2b733c['FkHLo'])||_0x21c6a4===_0x2b733c['EyfBg'])return;if(_0x453acf['branches'][_0x21c6a4]===!![]){const _0x562779=getOrCreateSession(_0x453acf,_0x417ccc);_0x562779[_0x5225b2(0x167)]=!![],_0x562779['currentBranch']=_0x21c6a4,saveCache(_0x453acf);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x4edee1){const _0x5389c2=_0x13d332,_0x29ba7d=loadCache(),_0x2ff799=_0x29ba7d[_0x5389c2(0x168)][_0x4edee1];_0x2ff799?.[_0x5389c2(0x167)]&&(_0x29ba7d['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x29ba7d));}export function shouldAutoEnableAfterClear(_0x455734){const _0x28d3f9=_0x13d332,_0x371fac={'FnWOy':'clear','iAEhd':function(_0x3841f7){return _0x3841f7();},'YmUsZ':function(_0x1791a6,_0x4ea792){return _0x1791a6<=_0x4ea792;}};if(_0x455734!==_0x371fac[_0x28d3f9(0x14d)])return![];const _0x5e977c=_0x371fac['iAEhd'](loadCache),_0x1c57fd=_0x5e977c[_0x28d3f9(0x15e)];if(!_0x1c57fd)return![];const _0x161fea=Date[_0x28d3f9(0x153)]()-_0x1c57fd;return _0x371fac[_0x28d3f9(0x148)](_0x161fea,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x5d300e){const _0x56ba9d=_0x13d332,_0x395de6={'yELlU':function(_0x223e9c,_0xc46758){return _0x223e9c!==_0xc46758;},'TtFTt':_0x56ba9d(0x13e),'DTTwm':'master','qZmIk':function(_0x8742a4,_0x5c1011){return _0x8742a4(_0x5c1011);}},_0x21f971=loadCache(),_0x14d3b9=getOrCreateSession(_0x21f971,_0x5d300e);_0x14d3b9['enabled']=!![];const _0x2a73da=getCurrentBranch();_0x2a73da&&_0x395de6['yELlU'](_0x2a73da,_0x395de6['TtFTt'])&&_0x2a73da!==_0x395de6[_0x56ba9d(0x140)]&&(_0x14d3b9[_0x56ba9d(0x15c)]=_0x2a73da),delete _0x21f971['lastEnabledSessionClearedAt'],_0x395de6['qZmIk'](saveCache,_0x21f971);}export function registerSession(_0x48f708,_0x18cc42){const _0x46c2c0=_0x13d332,_0x1d246b={'csQua':function(_0xc03a43){return _0xc03a43();}},_0x245fd6=_0x1d246b['csQua'](loadCache),_0x47f6ef=getOrCreateSession(_0x245fd6,_0x48f708);_0x47f6ef[_0x46c2c0(0x164)]=_0x18cc42,_0x47f6ef[_0x46c2c0(0x14b)]=new Date()[_0x46c2c0(0x138)](),saveCache(_0x245fd6);}export function getSessionEntry(_0x55bc3e){const _0x260c7f=_0x13d332,_0x39ff67={'HWnVQ':function(_0x1a42ac){return _0x1a42ac();}},_0x5b336f=_0x39ff67[_0x260c7f(0x16a)](loadCache),_0x2b27d5=_0x5b336f['sessions'][_0x55bc3e];if(_0x2b27d5?.['featureId']&&_0x2b27d5?.['registeredAt'])return{'featureId':_0x2b27d5[_0x260c7f(0x164)],'registeredAt':_0x2b27d5[_0x260c7f(0x14b)]};return null;}export function unregisterSession(_0x5c4455){const _0x54b664=_0x13d332,_0x4b0709={'vGpII':function(_0x533cf6){return _0x533cf6();},'hllCJ':function(_0x4f917d,_0x1a8599){return _0x4f917d(_0x1a8599);}},_0x4c9ce6=_0x4b0709[_0x54b664(0x16c)](loadCache),_0x6350cf=_0x4c9ce6['sessions'][_0x5c4455];_0x6350cf&&(delete _0x6350cf[_0x54b664(0x164)],delete _0x6350cf['registeredAt'],_0x4b0709['hllCJ'](saveCache,_0x4c9ce6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;function _0x2262(_0x36d783,_0x452933){_0x36d783=_0x36d783-0x136;const _0x3b95a9=_0x3b95();let _0x2262fb=_0x3b95a9[_0x36d783];return _0x2262fb;}export function shouldShowPlanReminder(_0x2ff0b8){const _0x2b98dc=_0x13d332,_0x5d4e94={'JwaTp':function(_0x8395e6){return _0x8395e6();},'xpXjW':function(_0x4b1ada,_0x1f91dd,_0xbeeb4d){return _0x4b1ada(_0x1f91dd,_0xbeeb4d);},'WTmXA':function(_0x118602,_0x3d874e){return _0x118602-_0x3d874e;},'qWLTC':function(_0x1fdc67,_0x20343e){return _0x1fdc67(_0x20343e);}},_0x2453d5=_0x5d4e94[_0x2b98dc(0x159)](loadCache),_0x44e476=_0x5d4e94[_0x2b98dc(0x162)](getOrCreateSession,_0x2453d5,_0x2ff0b8),_0x4eb769=_0x44e476[_0x2b98dc(0x15d)]||0x0,_0x3cbf43=Date[_0x2b98dc(0x153)]();if(_0x5d4e94[_0x2b98dc(0x149)](_0x3cbf43,_0x4eb769)>=PLAN_REMINDER_INTERVAL_MS)return _0x44e476[_0x2b98dc(0x15d)]=_0x3cbf43,_0x5d4e94[_0x2b98dc(0x152)](saveCache,_0x2453d5),!![];return![];}export function hasSessionBeenPrompted(_0x16b591){const _0x203f1c=_0x13d332,_0x2b8b24={'gIHNJ':function(_0xb02d43,_0x444244){return _0xb02d43===_0x444244;}},_0x47e0ba=loadCache();return _0x2b8b24[_0x203f1c(0x155)](_0x47e0ba[_0x203f1c(0x168)][_0x16b591]?.[_0x203f1c(0x15f)],!![]);}export function markSessionPrompted(_0x52698d){const _0x1f5feb=_0x13d332,_0x1b16e0={'CGufS':function(_0x1c45a1){return _0x1c45a1();},'BetOv':function(_0x23d706,_0x34ec9f,_0x10d957){return _0x23d706(_0x34ec9f,_0x10d957);},'rcAEl':function(_0xb58af8,_0x25d6e6){return _0xb58af8(_0x25d6e6);}},_0x31adc9=_0x1b16e0[_0x1f5feb(0x16b)](loadCache),_0x23a066=_0x1b16e0[_0x1f5feb(0x158)](getOrCreateSession,_0x31adc9,_0x52698d);_0x23a066[_0x1f5feb(0x15f)]=!![],_0x1b16e0['rcAEl'](saveCache,_0x31adc9);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x475b2c,_0x3cbeb7){const _0x46200c=_0x20db,_0x38a0d4=_0x475b2c();while(!![]){try{const _0x180365=parseInt(_0x46200c(0xb2))/0x1*(parseInt(_0x46200c(0xeb))/0x2)+parseInt(_0x46200c(0xc6))/0x3+parseInt(_0x46200c(0xfb))/0x4+-parseInt(_0x46200c(0xe3))/0x5*(parseInt(_0x46200c(0xe9))/0x6)+-parseInt(_0x46200c(0xf7))/0x7+-parseInt(_0x46200c(0xef))/0x8*(-parseInt(_0x46200c(0xfe))/0x9)+-parseInt(_0x46200c(0xf0))/0xa*(parseInt(_0x46200c(0xc0))/0xb);if(_0x180365===_0x3cbeb7)break;else _0x38a0d4['push'](_0x38a0d4['shift']());}catch(_0x59072f){_0x38a0d4['push'](_0x38a0d4['shift']());}}}(_0x498a,0x647e0));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';function _0x498a(){const _0xf8a365=['nhHQl','OnzaF','fnScO','928018vmQrvN','local','iXSnk','yDqHk','2105820EIoEgt','NiFLB','headers','189ivIbYh','ECMZu','SbsnC','GolRS','stringify','hURMB','1302QzxXWm','.json','push','browser','pbKgi','WAafS','hRBDc','dnzng','bGSTp','tzeAt','XYVbi','rYIsI','includes','tempAuthPath','7186674KujoFJ','ranger-config','Diore','path','\x20is\x20not\x20set','WVhNE','1899933wNacxd','replace','OJNws','pWyzV','ranger-auth-','clipboard-read','Dzunn','auth.json.enc','Environment\x20variable\x20','now','storageState','length','parse','location','warn','gRHVV','chromium','ctDlU','ENOENT','object','vision','bwAaJ','core','HtPOS','split','pdf','all','cdpEndpoint','xWGdQ','2410IpmPTy','JSgAK','locations','legacy','sessions','allow','3672rGZonx','PlQyw','634qegOEh','entries','QiJJA','getuid','218416yNKKSp','20jFJAxq','oivQD','qpoGY','sRTUz'];_0x498a=function(){return _0xf8a365;};return _0x498a();}import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x241653){const _0x27ad0e=_0x20db,_0x28eb8f={'sorrt':function(_0x10ad6f){return _0x10ad6f();},'vhMxf':'local','hURMB':function(_0x2dbeda,_0x488e74,_0x42407d){return _0x2dbeda(_0x488e74,_0x42407d);},'vzCRl':function(_0x35cdaf,_0x4909b2,_0x14be16){return _0x35cdaf(_0x4909b2,_0x14be16);},'pWyzV':function(_0x40997b,_0xbe3ef6){return _0x40997b(_0xbe3ef6);},'qYlHt':function(_0x238184,_0x536767){return _0x238184(_0x536767);},'nhHQl':function(_0x34945e,_0x58ce71){return _0x34945e!==_0x58ce71;}},_0x5bfc17=_0x28eb8f['sorrt'](getRangerDir),_0x36a422=join(_0x5bfc17,'ci',_0x241653),_0x32407e=join(_0x5bfc17,_0x28eb8f['vhMxf'],_0x241653),_0x4687ca=join(_0x5bfc17,_0x241653),_0x25d19e=_0x28eb8f[_0x27ad0e(0x103)](join,_0x5bfc17,_0x28eb8f['vhMxf']),_0x1bc077=_0x28eb8f['vzCRl'](join,_0x5bfc17,'ci');if(existsSync(_0x36a422))return _0x36a422;if(_0x28eb8f[_0x27ad0e(0xc9)](existsSync,_0x32407e))return _0x32407e;if(_0x28eb8f['qYlHt'](existsSync,_0x4687ca)&&(_0x4687ca!==_0x25d19e&&_0x28eb8f[_0x27ad0e(0xf4)](_0x4687ca,_0x1bc077)?!![]:hasLegacyProfileFiles(_0x4687ca)))return _0x4687ca;return _0x32407e;}export function findExistingEnv(_0x1995a2,_0xc0a903){const _0x2cd3c8=_0x20db,_0x3daaa9={'iiazQ':function(_0x53b5ce){return _0x53b5ce();},'ctDlU':_0x2cd3c8(0xe6),'ECMZu':function(_0x129436,_0x53d54e,_0x3e6abe){return _0x129436(_0x53d54e,_0x3e6abe);},'xWGdQ':_0x2cd3c8(0xf8),'XYVbi':function(_0x80ba49,_0x1a9ea6,_0x3e02e7,_0x37540c){return _0x80ba49(_0x1a9ea6,_0x3e02e7,_0x37540c);},'AffqE':function(_0xb01606,_0x10ccff,_0xcc985c){return _0xb01606(_0x10ccff,_0xcc985c);},'XKcBx':function(_0x4a9d47,_0x3b26a2){return _0x4a9d47===_0x3b26a2;},'fMEuV':function(_0x814fd4,_0x528da6){return _0x814fd4(_0x528da6);}},_0x3f0b34=_0x3daaa9['iiazQ'](getRangerDir),_0x418908=_0xc0a903?.[_0x2cd3c8(0xe5)]??['ci',_0x2cd3c8(0xf8),_0x3daaa9[_0x2cd3c8(0xd7)]],_0x4c3467=_0x3daaa9['ECMZu'](join,_0x3f0b34,_0x3daaa9[_0x2cd3c8(0xe2)]),_0x1003b0=_0x3daaa9[_0x2cd3c8(0xff)](join,_0x3f0b34,'ci'),_0x4e8acb=[{'location':'ci','path':join(_0x3f0b34,'ci',_0x1995a2)},{'location':'local','path':_0x3daaa9[_0x2cd3c8(0xbc)](join,_0x3f0b34,_0x3daaa9['xWGdQ'],_0x1995a2)},{'location':_0x3daaa9['ctDlU'],'path':_0x3daaa9['AffqE'](join,_0x3f0b34,_0x1995a2)}];for(const _0x890031 of _0x4e8acb){if(_0x418908[_0x2cd3c8(0xbe)](_0x890031[_0x2cd3c8(0xd3)])&&existsSync(_0x890031['path'])){if(_0x890031[_0x2cd3c8(0xd3)]==='legacy'&&(_0x890031[_0x2cd3c8(0xc3)]===_0x4c3467||_0x3daaa9['XKcBx'](_0x890031[_0x2cd3c8(0xc3)],_0x1003b0))&&!_0x3daaa9['fMEuV'](hasLegacyProfileFiles,_0x890031[_0x2cd3c8(0xc3)]))continue;return{'path':_0x890031['path'],'location':_0x890031['location']};}}return null;}function hasLegacyProfileFiles(_0x64c4c3){const _0x252158=_0x20db,_0x1b79c4={'rYIsI':function(_0x28c517,_0x3daa4c){return _0x28c517(_0x3daa4c);},'yDqHk':'settings.json','tRPlk':function(_0x573b13,_0x27d20c){return _0x573b13(_0x27d20c);},'sRTUz':function(_0x209815,_0x399345){return _0x209815(_0x399345);},'QkfDV':function(_0xc3a5b2,_0x32068f,_0x5c76eb){return _0xc3a5b2(_0x32068f,_0x5c76eb);},'SbsnC':_0x252158(0xcd)};return _0x1b79c4[_0x252158(0xbd)](existsSync,join(_0x64c4c3,_0x1b79c4[_0x252158(0xfa)]))||_0x1b79c4['tRPlk'](existsSync,join(_0x64c4c3,'auth.json'))||_0x1b79c4[_0x252158(0xf3)](existsSync,_0x1b79c4['QkfDV'](join,_0x64c4c3,_0x1b79c4[_0x252158(0x100)]));}function _0x20db(_0x23faee,_0x388994){_0x23faee=_0x23faee-0xb2;const _0x498aa2=_0x498a();let _0x20dba4=_0x498aa2[_0x23faee];return _0x20dba4;}export function isEnvCi(_0x5a9097){const _0x2186a4={'lOcQD':function(_0x2c0419,_0x23d3b5){return _0x2c0419(_0x23d3b5);}};return _0x2186a4['lOcQD'](existsSync,join(getRangerDir(),'ci',_0x5a9097));}export async function cleanupTempFiles(_0x4f21f8){const _0xe6cc3a=_0x20db,_0x2456e1={'dkIQA':function(_0x28b7ca,_0x5c65db){return _0x28b7ca!==_0x5c65db;}},_0x449887=[_0x4f21f8[_0xe6cc3a(0xbf)],_0x4f21f8['configPath']]['filter'](Boolean);await Promise[_0xe6cc3a(0xe0)](_0x449887['map'](_0x497458=>unlink(_0x497458)['catch'](_0xce3f02=>{const _0xbea048=_0xe6cc3a;_0x2456e1['dkIQA'](_0xce3f02['code'],_0xbea048(0xd8))&&console[_0xbea048(0xd4)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x497458+':',_0xce3f02['message']);})));}export function getSettingsPath(_0x2803d6){const _0x5c1121=_0x20db,_0x358779={'GolRS':function(_0x375edf,_0x1a98cb,_0x14fc4a){return _0x375edf(_0x1a98cb,_0x14fc4a);},'qpoGY':function(_0x5570bb,_0x4de41b){return _0x5570bb(_0x4de41b);},'Diore':'settings.json'};return _0x358779[_0x5c1121(0x101)](join,_0x358779[_0x5c1121(0xf2)](getEnvDir,_0x2803d6),_0x358779[_0x5c1121(0xc2)]);}export async function loadSettings(_0x217da1){const _0x37a417=_0x20db,_0x48e5ef={'OJNws':function(_0x1ef53f,_0x48f958){return _0x1ef53f(_0x48f958);}},_0x5767da=_0x48e5ef[_0x37a417(0xc8)](getSettingsPath,_0x217da1);if(!existsSync(_0x5767da))return{};try{const _0x44e634=await readFile(_0x5767da,'utf-8');return JSON[_0x37a417(0xd2)](_0x44e634);}catch{return{};}}export async function saveSettings(_0x14273e,_0x57d8c8){const _0x6691a=_0x20db,_0x1d75d0={'wbvbA':function(_0x45cb49,_0x5673d2){return _0x45cb49(_0x5673d2);},'PlQyw':function(_0x54fca1,_0x12d85a){return _0x54fca1(_0x12d85a);},'bGSTp':function(_0x86d1ee,_0x3a3c82,_0x35ed45){return _0x86d1ee(_0x3a3c82,_0x35ed45);}},_0x20cffc=getSettingsPath(_0x14273e),_0xb7bd14=_0x1d75d0['wbvbA'](dirname,_0x20cffc);!_0x1d75d0[_0x6691a(0xea)](existsSync,_0xb7bd14)&&await _0x1d75d0['bGSTp'](mkdir,_0xb7bd14,{'recursive':!![]}),await _0x1d75d0[_0x6691a(0xba)](writeFile,_0x20cffc,JSON['stringify'](_0x57d8c8,null,0x2));}export function resolveEnvVars(_0x47e197){const _0x34dd10=_0x20db,_0x28c87a={'JSgAK':function(_0x5b046a,_0x509050){return _0x5b046a===_0x509050;}};if(_0x28c87a[_0x34dd10(0xe4)](typeof _0x47e197,'string'))return _0x47e197[_0x34dd10(0xc7)](/\$\{(\w+)\}/g,(_0x201991,_0x245dc2)=>{const _0x5b0419=_0x34dd10,_0x148527=process['env'][_0x245dc2];if(_0x148527===undefined)throw new Error(_0x5b0419(0xce)+_0x245dc2+_0x5b0419(0xc4));return _0x148527;});if(Array['isArray'](_0x47e197))return _0x47e197['map'](resolveEnvVars);if(_0x47e197&&_0x28c87a[_0x34dd10(0xe4)](typeof _0x47e197,'object'))return Object['fromEntries'](Object[_0x34dd10(0xec)](_0x47e197)['map'](([_0x400f84,_0x5e8f81])=>[_0x400f84,resolveEnvVars(_0x5e8f81)]));return _0x47e197;}export async function buildPlaywrightConfig(_0x231914,_0x48b788,_0x51c358,_0x5aa341){const _0x5cdd61=_0x20db,_0x2062f9={'dnzng':function(_0x49df8a,_0x6f94ba){return _0x49df8a(_0x6f94ba);},'GlWYB':function(_0x2a85ee,_0xb616a3,_0x56be1b){return _0x2a85ee(_0xb616a3,_0x56be1b);},'AUtCJ':function(_0x4a2487,_0x2dce72,_0x214c35){return _0x4a2487(_0x2dce72,_0x214c35);},'RqfLt':'auth.json','oivQD':function(_0x2c67d5){return _0x2c67d5();},'hRBDc':function(_0x1600ad,_0x523a36){return _0x1600ad instanceof _0x523a36;},'vFWih':function(_0x4492cf,_0x5b0a30){return _0x4492cf(_0x5b0a30);},'OnzaF':'chromium','fnScO':function(_0x166765,_0x2daee4){return _0x166765===_0x2daee4;},'gRHVV':'--disable-setuid-sandbox','BWzjj':'clipboard-write','iXSnk':_0x5cdd61(0xdc),'bwAaJ':_0x5cdd61(0xdf),'gEDzg':_0x5cdd61(0xda)},_0x5c8cac=_0x2062f9[_0x5cdd61(0xb9)](getEnvDir,_0x48b788),_0x298bc7=_0x2062f9['GlWYB'](join,_0x5c8cac,'auth.json.enc'),_0x1e1b27=_0x2062f9['AUtCJ'](join,_0x5c8cac,_0x2062f9['RqfLt']);let _0x1bc24f,_0x272f35;if(existsSync(_0x298bc7))try{const _0x48c435=await _0x2062f9[_0x5cdd61(0xf1)](getToken);if(!_0x48c435)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x30a754=await readFile(_0x298bc7),_0x240e5f=decrypt(_0x30a754,_0x48c435);_0x272f35=join(tmpdir(),_0x5cdd61(0xca)+Date[_0x5cdd61(0xcf)]()+_0x5cdd61(0xb3)),await writeFile(_0x272f35,_0x240e5f),_0x1bc24f=_0x272f35;}catch(_0x2b0cce){const _0x28ed51=_0x2062f9[_0x5cdd61(0xb8)](_0x2b0cce,Error)?_0x2b0cce['message']:_0x2062f9[_0x5cdd61(0xb9)](String,_0x2b0cce);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x28ed51);}else _0x2062f9['vFWih'](existsSync,_0x1e1b27)&&(_0x1bc24f=_0x1e1b27);const _0x43fd94=_0x51c358||randomUUID(),_0x5a3c03=join(_0x2062f9[_0x5cdd61(0xf1)](getRangerDir),_0x5cdd61(0xe7),_0x43fd94),_0x202aa0=Boolean(_0x231914[_0x5cdd61(0xe1)]),_0x7be106=_0x202aa0?{'browserName':_0x2062f9[_0x5cdd61(0xf5)],'cdpEndpoint':_0x231914['cdpEndpoint']}:{'isolated':!![],'browserName':_0x5cdd61(0xd6),'launchOptions':{'headless':_0x5aa341?![]:_0x231914['headless']??!![],..._0x2062f9[_0x5cdd61(0xf6)](process[_0x5cdd61(0xee)]?.(),0x0)&&{'args':['--no-sandbox',_0x2062f9[_0x5cdd61(0xd5)]]}},'contextOptions':{'permissions':[_0x5cdd61(0xcb),_0x2062f9['BWzjj']],'userAgent':_0x231914['userAgent']||undefined,'extraHTTPHeaders':_0x231914['headers']||{},'storageState':_0x1bc24f,'viewport':{'width':0x500,'height':0x2d0}}},_0xb5627a={'name':_0x48b788,'browser':_0x7be106,'capabilities':[_0x2062f9[_0x5cdd61(0xf9)],'tabs','install',_0x2062f9[_0x5cdd61(0xdb)],_0x2062f9['gEDzg']],'imageResponses':_0x5cdd61(0xe8),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5a3c03};if(!_0x202aa0){const _0x48ce77=_0xb5627a[_0x5cdd61(0xb5)],_0x1c374c=_0x48ce77['contextOptions'];if(_0x2062f9['fnScO'](_0x1c374c['userAgent'],undefined))delete _0x1c374c['userAgent'];if(_0x1c374c[_0x5cdd61(0xd0)]===undefined)delete _0x1c374c[_0x5cdd61(0xd0)];}const _0x167560=join(tmpdir(),_0x5cdd61(0xc1));!existsSync(_0x167560)&&await mkdir(_0x167560,{'recursive':!![]});const _0x45c97f=_0x2062f9['AUtCJ'](join,_0x167560,_0x48b788+'-'+Date[_0x5cdd61(0xcf)]()+'.json');return await writeFile(_0x45c97f,JSON[_0x5cdd61(0x102)](_0xb5627a,null,0x2)),{'configPath':_0x45c97f,'tempAuthPath':_0x272f35};}export function getNestedValue(_0x4de881,_0x5be24e){const _0x310d9c=_0x20db,_0x2e117f={'QiJJA':function(_0x3528ac,_0x257f16){return _0x3528ac(_0x257f16);},'onzVb':function(_0x532140,_0x4d3c0a){return _0x532140===_0x4d3c0a;},'ThlPR':function(_0x54450b,_0x41f76f){return _0x54450b===_0x41f76f;},'NiFLB':'object'},_0x5e39d3=_0x2e117f[_0x310d9c(0xed)](parseKeyPath,_0x5be24e);let _0x40aa01=_0x4de881;for(const _0x5239b3 of _0x5e39d3){if(_0x2e117f['onzVb'](_0x40aa01,null)||_0x2e117f['ThlPR'](_0x40aa01,undefined)||typeof _0x40aa01!==_0x2e117f[_0x310d9c(0xfc)])return undefined;_0x40aa01=_0x40aa01[_0x5239b3];}return _0x40aa01;}export function setNestedValue(_0x4eace6,_0x10df25,_0xa31fa7){const _0x7f954f=_0x20db,_0x2fe9ab={'HtPOS':function(_0x244810,_0x272020){return _0x244810<_0x272020;},'mjTgw':function(_0x30f633,_0x51ce39){return _0x30f633-_0x51ce39;},'pbKgi':function(_0x5a6826,_0x26ab9d){return _0x5a6826 in _0x26ab9d;},'dNfmv':_0x7f954f(0xd9)},_0x209ad1=parseKeyPath(_0x10df25);let _0x3764d4=_0x4eace6;for(let _0x55dbcb=0x0;_0x2fe9ab[_0x7f954f(0xdd)](_0x55dbcb,_0x2fe9ab['mjTgw'](_0x209ad1['length'],0x1));_0x55dbcb++){const _0x33e052=_0x209ad1[_0x55dbcb];(!_0x2fe9ab[_0x7f954f(0xb6)](_0x33e052,_0x3764d4)||typeof _0x3764d4[_0x33e052]!==_0x2fe9ab['dNfmv'])&&(_0x3764d4[_0x33e052]={}),_0x3764d4=_0x3764d4[_0x33e052];}_0x3764d4[_0x209ad1[_0x209ad1['length']-0x1]]=_0xa31fa7;}export function deleteNestedValue(_0x5e3d85,_0x343faf){const _0x58ad06=_0x20db,_0x17f508={'qDOHr':function(_0x34702c,_0x1bbfb7){return _0x34702c(_0x1bbfb7);},'gvUeu':function(_0x44b9c0,_0x2c41c0){return _0x44b9c0<_0x2c41c0;},'jLrxH':function(_0x1eb039,_0xc8e5ea){return _0x1eb039-_0xc8e5ea;},'tzeAt':function(_0x2f3dcd,_0x1a5a78){return _0x2f3dcd===_0x1a5a78;},'bWKCM':function(_0x352378,_0x35514e){return _0x352378!==_0x35514e;}},_0x34f195=_0x17f508['qDOHr'](parseKeyPath,_0x343faf);let _0x3432f7=_0x5e3d85;for(let _0x378cab=0x0;_0x17f508['gvUeu'](_0x378cab,_0x17f508['jLrxH'](_0x34f195[_0x58ad06(0xd1)],0x1));_0x378cab++){if(_0x3432f7===null||_0x17f508[_0x58ad06(0xbb)](_0x3432f7,undefined)||typeof _0x3432f7!=='object')return![];_0x3432f7=_0x3432f7[_0x34f195[_0x378cab]];}if(_0x3432f7===null||_0x3432f7===undefined||_0x17f508['bWKCM'](typeof _0x3432f7,'object'))return![];const _0x5ae404=_0x34f195[_0x34f195['length']-0x1];if(_0x5ae404 in _0x3432f7)return delete _0x3432f7[_0x5ae404],!![];return![];}function parseKeyPath(_0x28249a){const _0x35f5a7=_0x20db,_0xd8063c={'GtMmb':function(_0x395dee,_0x25b446){return _0x395dee===_0x25b446;},'Dzunn':'header','WAafS':_0x35f5a7(0xfd)},_0x52a403=_0x28249a[_0x35f5a7(0xde)]('.');return _0xd8063c['GtMmb'](_0x52a403[0x0],_0xd8063c[_0x35f5a7(0xcc)])&&(_0x52a403[0x0]=_0xd8063c[_0x35f5a7(0xb7)]),_0x52a403;}export function formatSettings(_0x447f46,_0x1d0df6=0x0){const _0x4bf909=_0x20db,_0x1b58bd={'MyClO':function(_0x5e4a0b,_0x1e758e){return _0x5e4a0b===_0x1e758e;},'WVhNE':function(_0x451593,_0x53ced3){return _0x451593!==_0x53ced3;}},_0x4b1b8b=[],_0x4e3d4e='\x20\x20'['repeat'](_0x1d0df6);for(const [_0x6bb1f5,_0x4dfe6a]of Object[_0x4bf909(0xec)](_0x447f46)){if(_0x1b58bd['MyClO'](_0x4dfe6a,undefined))continue;if(typeof _0x4dfe6a==='object'&&_0x1b58bd[_0x4bf909(0xc5)](_0x4dfe6a,null)){_0x4b1b8b['push'](''+_0x4e3d4e+_0x6bb1f5+':');for(const [_0x2ab61c,_0x9df320]of Object[_0x4bf909(0xec)](_0x4dfe6a)){_0x4b1b8b[_0x4bf909(0xb4)](_0x4e3d4e+'\x20\x20'+_0x2ab61c+':\x20'+_0x9df320);}}else _0x4b1b8b[_0x4bf909(0xb4)](''+_0x4e3d4e+_0x6bb1f5+':\x20'+_0x4dfe6a);}return _0x4b1b8b['join']('\x0a');}
|
|
1
|
+
(function(_0x344dcc,_0x471e54){const _0x3108bc=_0x2254,_0x35b48d=_0x344dcc();while(!![]){try{const _0x5b2e25=-parseInt(_0x3108bc(0x188))/0x1*(-parseInt(_0x3108bc(0x1ce))/0x2)+parseInt(_0x3108bc(0x182))/0x3*(parseInt(_0x3108bc(0x185))/0x4)+-parseInt(_0x3108bc(0x1ca))/0x5*(parseInt(_0x3108bc(0x18f))/0x6)+-parseInt(_0x3108bc(0x18d))/0x7+parseInt(_0x3108bc(0x1ac))/0x8*(parseInt(_0x3108bc(0x1c5))/0x9)+parseInt(_0x3108bc(0x18b))/0xa+-parseInt(_0x3108bc(0x1ab))/0xb*(parseInt(_0x3108bc(0x1b8))/0xc);if(_0x5b2e25===_0x471e54)break;else _0x35b48d['push'](_0x35b48d['shift']());}catch(_0x17e55d){_0x35b48d['push'](_0x35b48d['shift']());}}}(_0x213c,0xc17c8));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(_0x2b58f2){const _0x4774db=_0x2254,_0x208edb={'lnCQO':function(_0x36dc98){return _0x36dc98();},'ZOsJk':_0x4774db(0x1c3),'Ydmgl':function(_0x57f787,_0x3ad882){return _0x57f787(_0x3ad882);},'QbFZV':function(_0x31d909,_0x216a39){return _0x31d909(_0x216a39);}},_0x3fb58f=_0x208edb['lnCQO'](getRangerDir),_0x21908a=join(_0x3fb58f,'ci',_0x2b58f2),_0x3426c0=join(_0x3fb58f,_0x208edb[_0x4774db(0x1a3)],_0x2b58f2),_0xbe53be=join(_0x3fb58f,_0x2b58f2),_0x87c48d=join(_0x3fb58f,_0x208edb['ZOsJk']),_0x557ae6=join(_0x3fb58f,'ci');if(_0x208edb[_0x4774db(0x17e)](existsSync,_0x21908a))return _0x21908a;if(_0x208edb['Ydmgl'](existsSync,_0x3426c0))return _0x3426c0;if(_0x208edb['QbFZV'](existsSync,_0xbe53be)&&(_0xbe53be!==_0x87c48d&&_0xbe53be!==_0x557ae6?!![]:hasLegacyProfileFiles(_0xbe53be)))return _0xbe53be;return _0x3426c0;}export function findExistingEnv(_0x85b28,_0x288bed){const _0x2ffca0=_0x2254,_0x1fb9d7={'XAmdd':function(_0x119be2){return _0x119be2();},'TIdKJ':_0x2ffca0(0x18a),'bhWmQ':function(_0x453cba,_0x550688,_0x31cb7e){return _0x453cba(_0x550688,_0x31cb7e);},'HixyE':'local','IAFbr':function(_0x523149,_0x28d86c,_0xe7d85,_0x287148){return _0x523149(_0x28d86c,_0xe7d85,_0x287148);},'kgxgA':function(_0x2de404,_0x27712c,_0x414ec5){return _0x2de404(_0x27712c,_0x414ec5);},'PeSby':function(_0x496f40,_0x518d14){return _0x496f40===_0x518d14;},'ydwNm':function(_0x562bb6,_0x39a282){return _0x562bb6(_0x39a282);}},_0x5a5bd2=_0x1fb9d7['XAmdd'](getRangerDir),_0x50ee83=_0x288bed?.[_0x2ffca0(0x192)]??['ci','local',_0x1fb9d7[_0x2ffca0(0x189)]],_0x39d0a6=_0x1fb9d7[_0x2ffca0(0x19d)](join,_0x5a5bd2,_0x1fb9d7['HixyE']),_0x2601d8=_0x1fb9d7[_0x2ffca0(0x19d)](join,_0x5a5bd2,'ci'),_0x5ace47=[{'location':'ci','path':_0x1fb9d7[_0x2ffca0(0x1af)](join,_0x5a5bd2,'ci',_0x85b28)},{'location':_0x1fb9d7[_0x2ffca0(0x1b1)],'path':_0x1fb9d7['IAFbr'](join,_0x5a5bd2,'local',_0x85b28)},{'location':_0x1fb9d7[_0x2ffca0(0x189)],'path':_0x1fb9d7['kgxgA'](join,_0x5a5bd2,_0x85b28)}];for(const _0x5d4ac4 of _0x5ace47){if(_0x50ee83[_0x2ffca0(0x1b0)](_0x5d4ac4[_0x2ffca0(0x1a0)])&&existsSync(_0x5d4ac4[_0x2ffca0(0x1a7)])){if(_0x5d4ac4['location']==='legacy'&&(_0x5d4ac4[_0x2ffca0(0x1a7)]===_0x39d0a6||_0x1fb9d7['PeSby'](_0x5d4ac4['path'],_0x2601d8))&&!_0x1fb9d7['ydwNm'](hasLegacyProfileFiles,_0x5d4ac4['path']))continue;return{'path':_0x5d4ac4['path'],'location':_0x5d4ac4[_0x2ffca0(0x1a0)]};}}return null;}function hasLegacyProfileFiles(_0x285baa){const _0x195b87=_0x2254,_0x1b231a={'fIddn':function(_0x141352,_0x49bbfd,_0xb98840){return _0x141352(_0x49bbfd,_0xb98840);},'RTjoF':function(_0x1b7fae,_0x1847ea){return _0x1b7fae(_0x1847ea);}};return existsSync(_0x1b231a['fIddn'](join,_0x285baa,'settings.json'))||existsSync(join(_0x285baa,'auth.json'))||_0x1b231a['RTjoF'](existsSync,_0x1b231a[_0x195b87(0x18e)](join,_0x285baa,'auth.json.enc'));}export function isEnvCi(_0x523284){return existsSync(join(getRangerDir(),'ci',_0x523284));}function _0x213c(){const _0x138aac=['orHfK','ZOsJk','catch','code','contextOptions','path','length','push','map','8305979JRXXpe','32jcXzof','BWkTK','message','IAFbr','includes','HixyE','env','vision','DfLiT','tYiEi','entries','getuid','12EBNfrC','core','KmQcr','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','repeat','VGuYI','RyzBN','gqcMK','WaqtZ','wePUP','qrfbM','local','cdpEndpoint','411633nRlxfD','.json','object','NRgoc','stringify','269995yKCjfx','all','fromEntries','utf-8','1671478NybSKf','isArray','clipboard-write','Ydmgl','VnPNQ','dXcrt','configPath','1568724waHQou','headless','replace','12GmKzsV','storageState','browser','1IWtZoa','TIdKJ','legacy','14774420gLiUPI','parse','9304862DVdwDi','fIddn','132rETVTy','oPWJB','ENOENT','locations','PcRKg','iyqTR','now','header','yAJxS','join','ranger-config','OZnKE','chromium','mHHAO','bhWmQ','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','sessions','location','settings.json'];_0x213c=function(){return _0x138aac;};return _0x213c();}export async function cleanupTempFiles(_0x470d26){const _0x2f9b16=_0x2254,_0x2526af=[_0x470d26['tempAuthPath'],_0x470d26[_0x2f9b16(0x181)]]['filter'](Boolean);await Promise[_0x2f9b16(0x1cb)](_0x2526af['map'](_0x50ea55=>unlink(_0x50ea55)[_0x2f9b16(0x1a4)](_0x3a317b=>{const _0xc80477=_0x2f9b16;_0x3a317b[_0xc80477(0x1a5)]!==_0xc80477(0x191)&&console['warn'](_0xc80477(0x1bb)+_0x50ea55+':',_0x3a317b[_0xc80477(0x1ae)]);})));}export function getSettingsPath(_0x5623f9){const _0x14a51e=_0x2254,_0x5531c3={'JvoIa':function(_0x14a0f1,_0x15cc05,_0x2a4ff6){return _0x14a0f1(_0x15cc05,_0x2a4ff6);},'RyzBN':function(_0x21279b,_0x33648d){return _0x21279b(_0x33648d);}};return _0x5531c3['JvoIa'](join,_0x5531c3[_0x14a51e(0x1be)](getEnvDir,_0x5623f9),_0x14a51e(0x1a1));}export async function loadSettings(_0x21a94b){const _0x1d4319=_0x2254,_0x3b6ecb={'kQEas':function(_0x453d3a,_0x43539d){return _0x453d3a(_0x43539d);}},_0x2f682c=getSettingsPath(_0x21a94b);if(!_0x3b6ecb['kQEas'](existsSync,_0x2f682c))return{};try{const _0x13d054=await readFile(_0x2f682c,_0x1d4319(0x1cd));return JSON[_0x1d4319(0x18c)](_0x13d054);}catch{return{};}}function _0x2254(_0x4a7e17,_0x405303){_0x4a7e17=_0x4a7e17-0x17d;const _0x213cbd=_0x213c();let _0x2254ab=_0x213cbd[_0x4a7e17];return _0x2254ab;}export async function saveSettings(_0x255ff5,_0x26a5f7){const _0x469737=_0x2254,_0x3b65fb={'qrfbM':function(_0x5c69a3,_0x546441,_0x1a39a4){return _0x5c69a3(_0x546441,_0x1a39a4);}},_0x16b7e3=getSettingsPath(_0x255ff5),_0x4919b1=dirname(_0x16b7e3);!existsSync(_0x4919b1)&&await mkdir(_0x4919b1,{'recursive':!![]}),await _0x3b65fb[_0x469737(0x1c2)](writeFile,_0x16b7e3,JSON[_0x469737(0x1c9)](_0x26a5f7,null,0x2));}export function resolveEnvVars(_0x10d9e7){const _0x536016=_0x2254,_0x54e461={'lnlCn':function(_0x8b300e,_0x557aea){return _0x8b300e===_0x557aea;},'orHfK':'string'};if(typeof _0x10d9e7===_0x54e461[_0x536016(0x1a2)])return _0x10d9e7[_0x536016(0x184)](/\$\{(\w+)\}/g,(_0x78487b,_0x548871)=>{const _0x251f52=_0x536016,_0x56ac5d=process[_0x251f52(0x1b2)][_0x548871];if(_0x54e461['lnlCn'](_0x56ac5d,undefined))throw new Error('Environment\x20variable\x20'+_0x548871+'\x20is\x20not\x20set');return _0x56ac5d;});if(Array[_0x536016(0x1cf)](_0x10d9e7))return _0x10d9e7['map'](resolveEnvVars);if(_0x10d9e7&&typeof _0x10d9e7===_0x536016(0x1c7))return Object[_0x536016(0x1cc)](Object['entries'](_0x10d9e7)[_0x536016(0x1aa)](([_0x470e2f,_0x273243])=>[_0x470e2f,resolveEnvVars(_0x273243)]));return _0x10d9e7;}export async function buildPlaywrightConfig(_0x4116e4,_0x1465c5,_0x50a84c,_0x49f4a2){const _0x5b8866=_0x2254,_0x1258bc={'VGuYI':function(_0x32f7ee,_0x303fe8,_0x124a39){return _0x32f7ee(_0x303fe8,_0x124a39);},'wePUP':'auth.json','TnzGi':function(_0x3deb76){return _0x3deb76();},'KmQcr':_0x5b8866(0x19e),'yAJxS':function(_0x3edc7a,_0xe66273){return _0x3edc7a(_0xe66273);},'OZnKE':function(_0x11636a,_0x568def){return _0x11636a(_0x568def);},'PcRKg':function(_0x54211c){return _0x54211c();},'oPWJB':'chromium','dXcrt':'--no-sandbox','XmrjW':'clipboard-read','qagkw':_0x5b8866(0x17d),'cBUPS':'tabs','IAyAy':'pdf','DfLiT':_0x5b8866(0x1b3),'iyqTR':function(_0x5458f3,_0x582351){return _0x5458f3===_0x582351;},'tYiEi':function(_0x41e0ca,_0x534436){return _0x41e0ca===_0x534436;},'NRgoc':function(_0x354f12,_0x2c4a72){return _0x354f12(_0x2c4a72);}},_0x174cf8=getEnvDir(_0x1465c5),_0x26af7d=_0x1258bc[_0x5b8866(0x1bd)](join,_0x174cf8,'auth.json.enc'),_0xb405e2=join(_0x174cf8,_0x1258bc[_0x5b8866(0x1c1)]);let _0xd5413f,_0x4eec3c;if(existsSync(_0x26af7d))try{const _0x5d7dc3=await _0x1258bc['TnzGi'](getToken);if(!_0x5d7dc3)throw new Error(_0x1258bc[_0x5b8866(0x1ba)]);const _0x504b5e=await _0x1258bc[_0x5b8866(0x197)](readFile,_0x26af7d),_0x305b00=decrypt(_0x504b5e,_0x5d7dc3);_0x4eec3c=join(tmpdir(),'ranger-auth-'+Date[_0x5b8866(0x195)]()+'.json'),await writeFile(_0x4eec3c,_0x305b00),_0xd5413f=_0x4eec3c;}catch(_0x4cf73f){const _0x228047=_0x4cf73f instanceof Error?_0x4cf73f['message']:String(_0x4cf73f);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x228047);}else _0x1258bc[_0x5b8866(0x19a)](existsSync,_0xb405e2)&&(_0xd5413f=_0xb405e2);const _0x114ab0=_0x50a84c||_0x1258bc[_0x5b8866(0x193)](randomUUID),_0x1e1a4d=join(getRangerDir(),_0x5b8866(0x19f),_0x114ab0),_0x1ac917=_0x1258bc[_0x5b8866(0x197)](Boolean,_0x4116e4[_0x5b8866(0x1c4)]),_0x47f0e7=_0x1ac917?{'browserName':_0x1258bc[_0x5b8866(0x190)],'cdpEndpoint':_0x4116e4['cdpEndpoint']}:{'isolated':!![],'browserName':_0x5b8866(0x19b),'launchOptions':{'headless':_0x49f4a2?![]:_0x4116e4[_0x5b8866(0x183)]??!![],...process[_0x5b8866(0x1b7)]?.()===0x0&&{'args':[_0x1258bc[_0x5b8866(0x180)],'--disable-setuid-sandbox']}},'contextOptions':{'permissions':[_0x1258bc['XmrjW'],_0x1258bc['qagkw']],'userAgent':_0x4116e4['userAgent']||undefined,'extraHTTPHeaders':_0x4116e4['headers']||{},'storageState':_0xd5413f,'viewport':{'width':0x500,'height':0x2d0}}},_0x1bddea={'name':_0x1465c5,'browser':_0x47f0e7,'capabilities':[_0x5b8866(0x1b9),_0x1258bc['cBUPS'],'install',_0x1258bc['IAyAy'],_0x1258bc[_0x5b8866(0x1b4)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1e1a4d};if(!_0x1ac917){const _0x1466aa=_0x1bddea[_0x5b8866(0x187)],_0x5a6fa3=_0x1466aa[_0x5b8866(0x1a6)];if(_0x1258bc[_0x5b8866(0x194)](_0x5a6fa3['userAgent'],undefined))delete _0x5a6fa3['userAgent'];if(_0x1258bc[_0x5b8866(0x1b5)](_0x5a6fa3[_0x5b8866(0x186)],undefined))delete _0x5a6fa3['storageState'];}const _0x403922=_0x1258bc['VGuYI'](join,tmpdir(),_0x5b8866(0x199));!_0x1258bc[_0x5b8866(0x1c8)](existsSync,_0x403922)&&await mkdir(_0x403922,{'recursive':!![]});const _0x12d9da=_0x1258bc['VGuYI'](join,_0x403922,_0x1465c5+'-'+Date['now']()+_0x5b8866(0x1c6));return await writeFile(_0x12d9da,JSON['stringify'](_0x1bddea,null,0x2)),{'configPath':_0x12d9da,'tempAuthPath':_0x4eec3c};}export function getNestedValue(_0x2c15b2,_0x35c041){const _0x4a6fc0=_0x2254,_0x551e7a={'gqcMK':function(_0x52b7b3,_0x29493e){return _0x52b7b3(_0x29493e);}},_0x4e9fe7=_0x551e7a[_0x4a6fc0(0x1bf)](parseKeyPath,_0x35c041);let _0x231ac2=_0x2c15b2;for(const _0x4e31f5 of _0x4e9fe7){if(_0x231ac2===null||_0x231ac2===undefined||typeof _0x231ac2!==_0x4a6fc0(0x1c7))return undefined;_0x231ac2=_0x231ac2[_0x4e31f5];}return _0x231ac2;}export function setNestedValue(_0x399a74,_0x29768c,_0x1ec1bb){const _0x525103=_0x2254,_0x168fc3={'BWkTK':function(_0x48c139,_0x6e6b3c){return _0x48c139-_0x6e6b3c;}},_0x2ddc6f=parseKeyPath(_0x29768c);let _0x3591cb=_0x399a74;for(let _0x1c9b62=0x0;_0x1c9b62<_0x168fc3[_0x525103(0x1ad)](_0x2ddc6f[_0x525103(0x1a8)],0x1);_0x1c9b62++){const _0x242d54=_0x2ddc6f[_0x1c9b62];(!(_0x242d54 in _0x3591cb)||typeof _0x3591cb[_0x242d54]!==_0x525103(0x1c7))&&(_0x3591cb[_0x242d54]={}),_0x3591cb=_0x3591cb[_0x242d54];}_0x3591cb[_0x2ddc6f[_0x168fc3[_0x525103(0x1ad)](_0x2ddc6f['length'],0x1)]]=_0x1ec1bb;}export function deleteNestedValue(_0x553a7a,_0x2f5f70){const _0x5ab909=_0x2254,_0x5ed1d8={'RrFDa':function(_0x4f3576,_0x2c921e){return _0x4f3576(_0x2c921e);},'Vwfer':function(_0x44f50b,_0x281e50){return _0x44f50b-_0x281e50;},'mHHAO':function(_0x1f3f2d,_0x18fb14){return _0x1f3f2d===_0x18fb14;},'iIhIy':function(_0x4d8d62,_0x299131){return _0x4d8d62!==_0x299131;},'WaqtZ':function(_0x40c0b6,_0xa18299){return _0x40c0b6 in _0xa18299;}},_0x15980f=_0x5ed1d8['RrFDa'](parseKeyPath,_0x2f5f70);let _0x239c2e=_0x553a7a;for(let _0x10e291=0x0;_0x10e291<_0x5ed1d8['Vwfer'](_0x15980f['length'],0x1);_0x10e291++){if(_0x5ed1d8[_0x5ab909(0x19c)](_0x239c2e,null)||_0x239c2e===undefined||_0x5ed1d8['iIhIy'](typeof _0x239c2e,'object'))return![];_0x239c2e=_0x239c2e[_0x15980f[_0x10e291]];}if(_0x239c2e===null||_0x239c2e===undefined||typeof _0x239c2e!==_0x5ab909(0x1c7))return![];const _0x1572c1=_0x15980f[_0x15980f['length']-0x1];if(_0x5ed1d8[_0x5ab909(0x1c0)](_0x1572c1,_0x239c2e))return delete _0x239c2e[_0x1572c1],!![];return![];}function parseKeyPath(_0x290af2){const _0x384dc2=_0x2254,_0x242fdb={'DHWjd':function(_0x4fd10f,_0x3f4cfc){return _0x4fd10f===_0x3f4cfc;},'ELYBp':'headers'},_0x780121=_0x290af2['split']('.');return _0x242fdb['DHWjd'](_0x780121[0x0],_0x384dc2(0x196))&&(_0x780121[0x0]=_0x242fdb['ELYBp']),_0x780121;}export function formatSettings(_0x21b383,_0x11ffbb=0x0){const _0x21cc26=_0x2254,_0x5cd982={'VnPNQ':function(_0x3e729e,_0x134ffa){return _0x3e729e===_0x134ffa;},'wgqKt':'object'},_0x47670a=[],_0x3ad258='\x20\x20'[_0x21cc26(0x1bc)](_0x11ffbb);for(const [_0x480be7,_0x4efaee]of Object['entries'](_0x21b383)){if(_0x5cd982[_0x21cc26(0x17f)](_0x4efaee,undefined))continue;if(typeof _0x4efaee===_0x5cd982['wgqKt']&&_0x4efaee!==null){_0x47670a[_0x21cc26(0x1a9)](''+_0x3ad258+_0x480be7+':');for(const [_0x3ee30f,_0x1fec28]of Object[_0x21cc26(0x1b6)](_0x4efaee)){_0x47670a['push'](_0x3ad258+'\x20\x20'+_0x3ee30f+':\x20'+_0x1fec28);}}else _0x47670a[_0x21cc26(0x1a9)](''+_0x3ad258+_0x480be7+':\x20'+_0x4efaee);}return _0x47670a[_0x21cc26(0x198)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xabd56a,_0x1280c6){const _0x48b2de=_0x331b,_0x2a7b56=_0xabd56a();while(!![]){try{const _0x496df6=parseInt(_0x48b2de(0x74))/0x1+parseInt(_0x48b2de(0x6f))/0x2+-parseInt(_0x48b2de(0x70))/0x3+-parseInt(_0x48b2de(0x71))/0x4+-parseInt(_0x48b2de(0x73))/0x5+parseInt(_0x48b2de(0x72))/0x6+parseInt(_0x48b2de(0x6d))/0x7;if(_0x496df6===_0x1280c6)break;else _0x2a7b56['push'](_0x2a7b56['shift']());}catch(_0x5ccb6c){_0x2a7b56['push'](_0x2a7b56['shift']());}}}(_0x4cb0,0x9a264));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x331b(_0x5a39c7,_0x13d038){_0x5a39c7=_0x5a39c7-0x6d;const _0x4cb08c=_0x4cb0();let _0x331b69=_0x4cb08c[_0x5a39c7];return _0x331b69;}import{fileURLToPath}from'url';function _0x4cb0(){const _0x2fd7eb=['629874RqfUXP','2585208dhQEPi','3858498hhHZXS','5521070PBCuzA','1082377JdXreF','ranger/SKILL.md','2746366wqhCdW','TaxaH','948144nocCrG'];_0x4cb0=function(){return _0x2fd7eb;};return _0x4cb0();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x18e13d){const _0x5e1d8a=_0x331b,_0x5dea58={'TaxaH':function(_0x56fdc0,_0x49e956,_0x5b817f,_0x59aef5,_0x4e11cd){return _0x56fdc0(_0x49e956,_0x5b817f,_0x59aef5,_0x4e11cd);},'KoEMg':'skills','HxqgR':function(_0x7eaa14,_0x1ca90a,_0x14c0c4){return _0x7eaa14(_0x1ca90a,_0x14c0c4);},'uxVqu':'utf-8'},_0x256959=_0x5dea58[_0x5e1d8a(0x6e)](join,__dirname,'..','..',_0x5dea58['KoEMg']),_0x3ae4fe=_0x5dea58['HxqgR'](join,_0x256959,_0x18e13d);try{return readFileSync(_0x3ae4fe,_0x5dea58['uxVqu']);}catch{return'';}}export function getRangerSkillContent(){const _0x50b04c=_0x331b;return readSkillContent(_0x50b04c(0x75));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x39f164=_0xbf2a;(function(_0x5a7911,_0x4445d6){const _0xd95797=_0xbf2a,_0x2a0092=_0x5a7911();while(!![]){try{const _0x4fb68f=parseInt(_0xd95797(0x103))/0x1+-parseInt(_0xd95797(0x118))/0x2*(parseInt(_0xd95797(0x11f))/0x3)+parseInt(_0xd95797(0x109))/0x4+-parseInt(_0xd95797(0x122))/0x5*(-parseInt(_0xd95797(0x11b))/0x6)+parseInt(_0xd95797(0x106))/0x7+-parseInt(_0xd95797(0x121))/0x8+parseInt(_0xd95797(0x10c))/0x9*(-parseInt(_0xd95797(0x110))/0xa);if(_0x4fb68f===_0x4445d6)break;else _0x2a0092['push'](_0x2a0092['shift']());}catch(_0x3c65f9){_0x2a0092['push'](_0x2a0092['shift']());}}}(_0x5ac7,0xbf256));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x5ac7(){const _0xd74abd=['ranger','6241683BRrxrj','olcIi','utf-8','4938364exVbHO','TknMW','hGHio','153tpaRXK','bHgVs','trim','xRkLg','1140670PpqMJI','log','opencode','mTart','\x20\x20Files:\x20','Invalid\x20skill\x20frontmatter','warn','feature-tracker','4WxOJrE','skills','nKbKx','18CjjfWs','Rvpuk','.md','length','138543vMeNQc','ithki','11731896UEYTeO','2163805OIqFQP','SKILL.md','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','endsWith','NeqNi','856379MlVFmr','match'];_0x5ac7=function(){return _0xd74abd;};return _0x5ac7();}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=[_0x39f164(0x105)];function _0xbf2a(_0x465fa8,_0x5f3797){_0x465fa8=_0x465fa8-0x101;const _0x5ac7e8=_0x5ac7();let _0xbf2abd=_0x5ac7e8[_0x465fa8];return _0xbf2abd;}export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x39f164(0x117)];export async function installSkill(_0x2e2c6c,_0x1c23b2={}){const _0x373ea4=_0x39f164,_0xe95c3a={'bHgVs':function(_0x2941c4){return _0x2941c4();},'NeqNi':function(_0x14b1fe,_0x39ebe8){return _0x14b1fe(_0x39ebe8);},'nKbKx':function(_0x47aee8,_0x238186,_0x573b3e){return _0x47aee8(_0x238186,_0x573b3e);},'mTart':_0x373ea4(0x123),'eVTiu':function(_0x2221a7,_0x20ec7e){return _0x2221a7===_0x20ec7e;},'hGHio':function(_0x10ce86,_0x127b0d,_0x2f727d){return _0x10ce86(_0x127b0d,_0x2f727d);},'xRkLg':function(_0x21a605,_0x179974,_0x117b7f){return _0x21a605(_0x179974,_0x117b7f);},'Rvpuk':_0x373ea4(0x108)},{level:level='project',cliVersion:_0x4de351,platform:platform='claude'}=_0x1c23b2,_0x3a1b9e=_0xe95c3a[_0x373ea4(0x10d)](getSourceSkillsDir),_0x2ffeef=join(_0x3a1b9e,_0x2e2c6c),_0x3869d7=join(_0x3a1b9e,_0x2e2c6c+'.md'),_0x2d3f2c=existsSync(_0x2ffeef)&&statSync(_0x2ffeef)['isDirectory']()&&_0xe95c3a[_0x373ea4(0x102)](existsSync,_0xe95c3a[_0x373ea4(0x11a)](join,_0x2ffeef,_0xe95c3a[_0x373ea4(0x113)])),_0x2b4e31=_0xe95c3a[_0x373ea4(0x102)](existsSync,_0x3869d7);if(!_0x2d3f2c&&!_0x2b4e31)return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x2e2c6c),![];const _0x2dfd1c=_0xe95c3a['eVTiu'](platform,_0x373ea4(0x112))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x4ca593=join(_0x2dfd1c,_0x2e2c6c);await mkdir(_0x4ca593,{'recursive':!![]});let _0x535b8b,_0x19bd79=[];if(_0x2d3f2c){const _0x37b839=await readdir(_0x2ffeef),_0x1333ad=_0x37b839['filter'](_0x5722b4=>_0x5722b4[_0x373ea4(0x101)](_0x373ea4(0x11d)));for(const _0x2646b8 of _0x1333ad){const _0x28ce4b=_0xe95c3a[_0x373ea4(0x11a)](join,_0x2ffeef,_0x2646b8),_0x5f4dda=_0xe95c3a[_0x373ea4(0x10b)](join,_0x4ca593,_0x2646b8);await copyFile(_0x28ce4b,_0x5f4dda),_0x19bd79['push'](_0x2646b8);}_0x535b8b=await _0xe95c3a[_0x373ea4(0x10f)](readFile,join(_0x2ffeef,_0x373ea4(0x123)),_0x373ea4(0x108));}else{_0x535b8b=await readFile(_0x3869d7,_0xe95c3a[_0x373ea4(0x11c)]);const _0x1d8521=_0xe95c3a['xRkLg'](join,_0x4ca593,_0x373ea4(0x123));await writeFile(_0x1d8521,_0x535b8b,_0xe95c3a['Rvpuk']),_0x19bd79['push'](_0xe95c3a[_0x373ea4(0x113)]);}const {name:_0x3491b9}=_0xe95c3a['NeqNi'](parseFrontmatter,_0x535b8b);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x3491b9),console[_0x373ea4(0x111)]('\x20\x20Location:\x20'+_0x4ca593),_0x19bd79[_0x373ea4(0x11e)]>0x1&&console[_0x373ea4(0x111)](_0x373ea4(0x114)+_0x19bd79['join'](',\x20')),logLocalAgentInstallation(_0x2e2c6c,{'skillDisplayName':_0x3491b9,'installLevel':level},_0x4de351)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x5ea030=_0x39f164,_0x2f223d={'yqeTv':function(_0x420ac6,_0x15a9f0,_0x40df7c,_0x160896,_0x2cdc7b){return _0x420ac6(_0x15a9f0,_0x40df7c,_0x160896,_0x2cdc7b);},'ithki':_0x5ea030(0x119),'olcIi':function(_0x1e7cb7,_0x2e4f16,_0x1e0327,_0x46d10d,_0x415c1a,_0x18e717){return _0x1e7cb7(_0x2e4f16,_0x1e0327,_0x46d10d,_0x415c1a,_0x18e717);}},_0x11597b=[_0x2f223d['yqeTv'](join,__dirname,'..','..',_0x2f223d['ithki']),_0x2f223d[_0x5ea030(0x107)](join,__dirname,'..','..','..',_0x2f223d[_0x5ea030(0x120)])];for(const _0x3bb6ce of _0x11597b){if(existsSync(_0x3bb6ce))return _0x3bb6ce;}return _0x11597b[0x0];}function parseFrontmatter(_0x585b11){const _0x47c0c9=_0x39f164,_0x5a907d=_0x585b11[_0x47c0c9(0x104)](/^---\n([\s\S]+?)\n---/);if(!_0x5a907d)throw new Error(_0x47c0c9(0x115));const _0x52c5ce=_0x5a907d[0x1],_0x349bec=_0x52c5ce[_0x47c0c9(0x104)](/name:\s*(.+)/),_0x2ce438=_0x52c5ce[_0x47c0c9(0x104)](/description:\s*"?(.+?)"?\n/);return{'name':_0x349bec?.[0x1][_0x47c0c9(0x10e)]()||'','description':_0x2ce438?.[0x1][_0x47c0c9(0x10e)]()||''};}export async function removeSkill(_0x4ab290,_0x5b19c9){const _0x2d8944=_0x39f164,_0x5f1816={'TknMW':function(_0xf34582,_0x3390d8){return _0xf34582(_0x3390d8);},'vUbZi':function(_0x2a8508,_0x2ed4a5,_0x53db71){return _0x2a8508(_0x2ed4a5,_0x53db71);}},_0x4e3c6b=getSkillsDir(_0x5b19c9),_0x4df949=join(_0x4e3c6b,_0x4ab290);if(!_0x5f1816[_0x2d8944(0x10a)](existsSync,_0x4df949))return![];try{return await _0x5f1816['vUbZi'](rm,_0x4df949,{'recursive':!![]}),console[_0x2d8944(0x111)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x4ab290),!![];}catch{return console[_0x2d8944(0x116)](_0x2d8944(0x124)+_0x4ab290),![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x213d49=_0x2d9a;function _0x36aa(){const _0x94890a=['/api/v1/mcp/cli-telemetry','flushing','isTTY','.ranger','jJnCC','success','commandId','trackCommandEnd','ltqBs','POST','abort','3CExXZL','TWXiG','32jRUQOm','setContext','flush','WDIZw','150110rzbkkA','browserSessionId','checklistItemId','99577GWdPuO','phase_end','name','version','JuYgA','deviceId','push','PpXVt','42560dMgXOD','1540wSoCJC','phase','buildEvent','message','featureId','sendImmediate','now','platform','Przxk','1502750mPlyxI','trackPhaseError','TvVgN','sendBatch','buffer','constructor','command_start','phaseCounter','GITHUB_ACTIONS','4873kLGYWX','[telemetry]\x20Sending\x20','isTty','GQfTW','cliVersion','evaluation','command_end','LjPjF','phaseStartTimes','stdout','ncEzZ','MqAYr','env','isCI','40RVopAn','4392TutXNw','DEBUG','5064jswhua','set','333873pxOUds','delete','trackCommandError','Unknown','phase_error','trackCommandStart','trackPhaseStart','trim','command','trackPhaseEnd'];_0x36aa=function(){return _0x94890a;};return _0x36aa();}(function(_0x4d8b21,_0x4bc6f5){const _0x4983da=_0x2d9a,_0x1665c3=_0x4d8b21();while(!![]){try{const _0x4381b0=parseInt(_0x4983da(0xd8))/0x1+parseInt(_0x4983da(0xd5))/0x2*(parseInt(_0x4983da(0xcf))/0x3)+parseInt(_0x4983da(0xb5))/0x4*(-parseInt(_0x4983da(0x94))/0x5)+-parseInt(_0x4983da(0xb8))/0x6*(-parseInt(_0x4983da(0x95))/0x7)+-parseInt(_0x4983da(0xd1))/0x8*(-parseInt(_0x4983da(0xba))/0x9)+-parseInt(_0x4983da(0x9e))/0xa+-parseInt(_0x4983da(0xa7))/0xb*(parseInt(_0x4983da(0xb6))/0xc);if(_0x4381b0===_0x4bc6f5)break;else _0x1665c3['push'](_0x1665c3['shift']());}catch(_0xafd29a){_0x1665c3['push'](_0x1665c3['shift']());}}}(_0x36aa,0x1b23f));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';function _0x2d9a(_0x380658,_0x12bed0){_0x380658=_0x380658-0x8d;const _0x36aa94=_0x36aa();let _0x2d9a9c=_0x36aa94[_0x380658];return _0x2d9a9c;}import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x2a4bc4=_0x2d9a,_0x4098ad={'Przxk':function(_0x589ab6,_0x520de8,_0x228b8a){return _0x589ab6(_0x520de8,_0x228b8a);},'kMbkT':_0x2a4bc4(0xc7),'LjPjF':function(_0x5987d2,_0x55cb76){return _0x5987d2(_0x55cb76);},'TWXiG':function(_0xd04568,_0xca395,_0x1a8647){return _0xd04568(_0xca395,_0x1a8647);},'vrWFV':function(_0x281b77){return _0x281b77();},'PpXVt':function(_0x243fd2){return _0x243fd2();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x4737ee=_0x4098ad[_0x2a4bc4(0x9d)](join,homedir(),_0x4098ad['kMbkT']),_0x602bde=join(_0x4737ee,'.session');if(_0x4098ad[_0x2a4bc4(0xae)](existsSync,_0x602bde)){cachedDeviceId=_0x4098ad[_0x2a4bc4(0xd0)](readFileSync,_0x602bde,'utf-8')[_0x2a4bc4(0xc1)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x4098ad['vrWFV'](randomUUID),mkdirSync(_0x4737ee,{'recursive':!![]}),writeFileSync(_0x602bde,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x4098ad[_0x2a4bc4(0x93)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x213d49(0xca)];['command'];['commandStartTime'];[_0x213d49(0xa5)]=0x0;['phaseStartTimes']=new Map();[_0x213d49(0xc5)]=null;[_0x213d49(0x91)];[_0x213d49(0xab)];['nodeVersion'];[_0x213d49(0x9c)];[_0x213d49(0xa9)];[_0x213d49(0xb4)];[_0x213d49(0x99)];['checklistItemId'];[_0x213d49(0xd6)];constructor(_0x3741f2){const _0x26d444=_0x213d49,_0x5b9250={'ysTpo':function(_0x251b17){return _0x251b17();},'ltqBs':function(_0x24a4b3){return _0x24a4b3();}};this['commandId']=_0x5b9250['ysTpo'](randomUUID),this[_0x26d444(0xc2)]=_0x3741f2,this['commandStartTime']=Date['now'](),this['deviceId']=_0x5b9250[_0x26d444(0xcc)](getDeviceId),this['cliVersion']=_0x5b9250['ltqBs'](getCurrentVersion),this['nodeVersion']=process[_0x26d444(0x8f)],this['platform']=process[_0x26d444(0x9c)],this[_0x26d444(0xa9)]=process[_0x26d444(0xb0)][_0x26d444(0xc6)]??![],this[_0x26d444(0xb4)]=!!(process[_0x26d444(0xb3)]['CI']||process[_0x26d444(0xb3)][_0x26d444(0xa6)]);}[_0x213d49(0xd2)](_0x407da9){const _0x529649=_0x213d49;if(_0x407da9['featureId'])this[_0x529649(0x99)]=_0x407da9[_0x529649(0x99)];if(_0x407da9[_0x529649(0xd7)])this['checklistItemId']=_0x407da9[_0x529649(0xd7)];if(_0x407da9[_0x529649(0xd6)])this['browserSessionId']=_0x407da9[_0x529649(0xd6)];}async[_0x213d49(0xbf)](_0x1ad0c6){const _0x3a4214=_0x213d49,_0x3c71ca={'tVLSg':_0x3a4214(0xa4)},_0x2cf506=this[_0x3a4214(0x97)]({'eventType':_0x3c71ca['tVLSg'],'metadata':_0x1ad0c6});await this['sendImmediate'](_0x2cf506);}async[_0x213d49(0xcb)](_0x31a9a6,_0x38145c){const _0x40cce8=_0x213d49,_0x39df02=this['buildEvent']({'eventType':_0x40cce8(0xad),'outcome':_0x31a9a6,'durationMs':Date['now']()-this['commandStartTime'],'metadata':_0x38145c});await this[_0x40cce8(0x9a)](_0x39df02),await this['flush']();}async[_0x213d49(0xbc)](_0x851ae4,_0x1922ea){const _0x399538=_0x213d49,_0xfabf95={'SFuBj':'command_error','JuYgA':function(_0x56cbe7,_0x2d0d11){return _0x56cbe7 instanceof _0x2d0d11;},'aOaOZ':function(_0x24e876,_0x4008e7){return _0x24e876 instanceof _0x4008e7;},'QwRMH':_0x399538(0xbd),'VZsVg':function(_0x386fc3,_0x2ceb1a){return _0x386fc3-_0x2ceb1a;}},_0x4a0acc=this[_0x399538(0x97)]({'eventType':_0xfabf95['SFuBj'],'errorMessage':truncate(_0xfabf95[_0x399538(0x90)](_0x851ae4,Error)?_0x851ae4[_0x399538(0x98)]:String(_0x851ae4),0x1f4),'errorType':_0xfabf95['aOaOZ'](_0x851ae4,Error)?_0x851ae4[_0x399538(0xa3)][_0x399538(0x8e)]:_0xfabf95['QwRMH'],'durationMs':_0xfabf95['VZsVg'](Date['now'](),this['commandStartTime']),'metadata':_0x1922ea});await this[_0x399538(0x9a)](_0x4a0acc),await this[_0x399538(0xd3)]();}[_0x213d49(0xc0)](_0xab885a,_0x5c7d2c){const _0x92eeaf=_0x213d49;this[_0x92eeaf(0xa5)]++,this[_0x92eeaf(0xaf)][_0x92eeaf(0xb9)](_0xab885a,Date[_0x92eeaf(0x9b)]());const _0x2bfcdd=this['buildEvent']({'eventType':'phase_start','phase':_0xab885a,'phaseIndex':this['phaseCounter'],'metadata':_0x5c7d2c});this[_0x92eeaf(0xa2)]['push'](_0x2bfcdd);}[_0x213d49(0xc3)](_0x24b2bb,_0x2211c4){const _0x394946=_0x213d49,_0x421663={'jJnCC':function(_0xeaa7f2,_0x2cf507){return _0xeaa7f2-_0x2cf507;},'ncEzZ':_0x394946(0x8d)},_0x14b60d=this[_0x394946(0xaf)]['get'](_0x24b2bb),_0x5efc78=_0x14b60d?_0x421663[_0x394946(0xc8)](Date['now'](),_0x14b60d):undefined;this[_0x394946(0xaf)][_0x394946(0xbb)](_0x24b2bb);const _0x17f34e=this[_0x394946(0x97)]({'eventType':_0x421663[_0x394946(0xb1)],'phase':_0x24b2bb,'durationMs':_0x5efc78,'metadata':_0x2211c4});this['buffer'][_0x394946(0x92)](_0x17f34e),this[_0x394946(0xa2)]['length']>=0xa&&this['flushAsync']();}async[_0x213d49(0x9f)](_0x6cea3c,_0x2460e7,_0x1caa45){const _0x3ee965=_0x213d49,_0x45ef09={'QWYpE':_0x3ee965(0xbe),'FyXYt':function(_0x39bb6a,_0x24c5b9,_0x4fed64){return _0x39bb6a(_0x24c5b9,_0x4fed64);},'TvVgN':function(_0x3a6db4,_0x56c408){return _0x3a6db4(_0x56c408);},'SjwFD':'Unknown'},_0x36d3dd=this[_0x3ee965(0xaf)]['get'](_0x6cea3c),_0x44bcbb=_0x36d3dd?Date['now']()-_0x36d3dd:undefined;this[_0x3ee965(0xaf)][_0x3ee965(0xbb)](_0x6cea3c);const _0x520b1e=this[_0x3ee965(0x97)]({'eventType':_0x45ef09['QWYpE'],'phase':_0x6cea3c,'durationMs':_0x44bcbb,'errorMessage':_0x45ef09['FyXYt'](truncate,_0x2460e7 instanceof Error?_0x2460e7['message']:_0x45ef09[_0x3ee965(0xa0)](String,_0x2460e7),0x1f4),'errorType':_0x2460e7 instanceof Error?_0x2460e7['constructor']['name']:_0x45ef09['SjwFD'],'metadata':_0x1caa45});await this[_0x3ee965(0x9a)](_0x520b1e);}async['flush'](){const _0x380fbe=_0x213d49;if(this[_0x380fbe(0xa2)]['length']===0x0)return;const _0x2bc805=this['buffer']['splice'](0x0);try{await this[_0x380fbe(0xa1)](_0x2bc805);}catch{}}['buildEvent'](_0x4039fc){const _0x318a26=_0x213d49;return{'eventType':_0x4039fc['eventType'],'command':this['command'],'commandId':this[_0x318a26(0xca)],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x4039fc['durationMs'],'phase':_0x4039fc[_0x318a26(0x96)],'phaseIndex':_0x4039fc['phaseIndex'],'outcome':_0x4039fc['outcome'],'errorMessage':_0x4039fc['errorMessage'],'errorType':_0x4039fc['errorType'],'featureId':this[_0x318a26(0x99)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x318a26(0xd6)],'evaluation':_0x4039fc[_0x318a26(0xac)],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this['platform'],'isTty':this[_0x318a26(0xa9)],'isCI':this[_0x318a26(0xb4)],'metadata':_0x4039fc['metadata']};}async[_0x213d49(0x9a)](_0x5e81e3){const _0x46b9ed=_0x213d49;try{await this[_0x46b9ed(0xa1)]([_0x5e81e3]);}catch{}}['flushAsync'](){const _0x57a8b7=_0x213d49;if(this['flushing'])return;this[_0x57a8b7(0xc5)]=this[_0x57a8b7(0xd3)]()['finally'](()=>{this['flushing']=null;});}async['sendBatch'](_0x2fda4c){const _0x27e9ae=_0x213d49,_0x21de6b={'tMAII':function(_0x4652e6){return _0x4652e6();},'JZBWI':function(_0x14c1b7){return _0x14c1b7();},'IOnhi':'application/json','GQfTW':function(_0x201084,_0x1a9724,_0x5a3da7){return _0x201084(_0x1a9724,_0x5a3da7);},'PCElA':function(_0x36efdf,_0x5d92e7){return _0x36efdf(_0x5d92e7);}},_0x3be4e7=await _0x21de6b['tMAII'](getToken)['catch'](()=>null),_0x45d6ee=_0x21de6b['JZBWI'](getApiBaseUrl),_0x1eee3b={'Content-Type':_0x21de6b['IOnhi']};_0x3be4e7&&(_0x1eee3b['Authorization']='Bearer\x20'+_0x3be4e7);const _0x24bb0f={'events':_0x2fda4c};process['env'][_0x27e9ae(0xb7)]&&console['error'](_0x27e9ae(0xa8)+_0x2fda4c['length']+'\x20event(s)\x20to\x20'+_0x45d6ee+_0x27e9ae(0xc4));const _0x25f093=new AbortController(),_0x33fd8d=_0x21de6b[_0x27e9ae(0xaa)](setTimeout,()=>_0x25f093[_0x27e9ae(0xce)](),0x1388);try{await _0x21de6b['GQfTW'](fetch,_0x45d6ee+_0x27e9ae(0xc4),{'method':_0x27e9ae(0xcd),'headers':_0x1eee3b,'body':JSON['stringify'](_0x24bb0f),'signal':_0x25f093['signal']});}finally{_0x21de6b['PCElA'](clearTimeout,_0x33fd8d);}}}let currentCollector=null;export function createTelemetryCollector(_0x29d742){return currentCollector=new TelemetryCollector(_0x29d742),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x3aaec3,_0x49843e,_0x1161a5){const _0x22e386=_0x213d49,_0xcff3ee={'IBTUz':function(_0x4951f0,_0x74192){return _0x4951f0(_0x74192);},'WDIZw':function(_0x4721e7,_0x5aa4ac){return _0x4721e7(_0x5aa4ac);},'MqAYr':_0x22e386(0xc9)},_0x5564c8=_0xcff3ee['IBTUz'](createTelemetryCollector,_0x3aaec3);await _0x5564c8['trackCommandStart'](_0x1161a5);try{const _0x58db14=await _0xcff3ee[_0x22e386(0xd4)](_0x49843e,_0x5564c8);return await _0x5564c8[_0x22e386(0xcb)](_0xcff3ee[_0x22e386(0xb2)]),_0x58db14;}catch(_0x3fbe6c){await _0x5564c8['trackCommandError'](_0x3fbe6c);throw _0x3fbe6c;}finally{await _0x5564c8['flush']();}}function truncate(_0x1664bf,_0x8e2a2){const _0x551949={'dxrPr':function(_0x31f3f6,_0x27f317){return _0x31f3f6>_0x27f317;},'GkvbQ':function(_0x4cf4a2,_0x4ea36f){return _0x4cf4a2+_0x4ea36f;},'LjfEr':'...'};return _0x551949['dxrPr'](_0x1664bf['length'],_0x8e2a2)?_0x551949['GkvbQ'](_0x1664bf['slice'](0x0,_0x8e2a2),_0x551949['LjfEr']):_0x1664bf;}
|
|
1
|
+
const _0x58d8f5=_0x25b8;function _0x321a(){const _0x118ad5=['phaseStartTimes','split','outcome','/api/v1/mcp/cli-telemetry','phase_end','24WoUelx','commandStartTime','checklistItemId','trackCommandError','commandId','abort','1236137WfbTPl','buffer','signal','message','GcoHk','iavwW','DEBUG','trackCommandEnd','catch','env','Authorization','OPAbB','toISOString','GAkLx','featureId','flushing','command_start','fufHQ','6679815MbWJva','edBAb','utf-8','eIuUd','qxiMh','platform','11994201uWabsX','success','GITHUB_ACTIONS','name','[telemetry]\x20Sending\x20','oXfoC','command_error','flush','sendImmediate','37996730BWFBJC','slice','cliVersion','AvkKg','WOdcE','1703684CnLWiG','command','browserSessionId','length','trackPhaseEnd','trackPhaseStart','isTty','constructor','6oFdsks','424703KzLIHx','nodeVersion','phase','push','.ranger','909768wlAZHt','now','eventType','phaseCounter','error','8naoPHF','PreUx','deviceId','buildEvent','get','flushAsync','.session'];_0x321a=function(){return _0x118ad5;};return _0x321a();}(function(_0x2560a2,_0x2c79b7){const _0x39adf4=_0x25b8,_0x52bef1=_0x2560a2();while(!![]){try{const _0x4bc12d=-parseInt(_0x39adf4(0x20b))/0x1*(-parseInt(_0x39adf4(0x20a))/0x2)+parseInt(_0x39adf4(0x210))/0x3+-parseInt(_0x39adf4(0x202))/0x4+parseInt(_0x39adf4(0x1ee))/0x5+parseInt(_0x39adf4(0x221))/0x6*(parseInt(_0x39adf4(0x1dc))/0x7)+parseInt(_0x39adf4(0x215))/0x8*(parseInt(_0x39adf4(0x1f4))/0x9)+-parseInt(_0x39adf4(0x1fd))/0xa;if(_0x4bc12d===_0x2c79b7)break;else _0x52bef1['push'](_0x52bef1['shift']());}catch(_0x4983bf){_0x52bef1['push'](_0x52bef1['shift']());}}}(_0x321a,0xb1703));import{randomUUID}from'crypto';function _0x25b8(_0xe1cfdc,_0x39c79e){_0xe1cfdc=_0xe1cfdc-0x1db;const _0x321a17=_0x321a();let _0x25b852=_0x321a17[_0xe1cfdc];return _0x25b852;}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x24aacc=_0x25b8,_0x2b546f={'oXfoC':function(_0x57d504,_0x5e70b6){return _0x57d504(_0x5e70b6);},'PreUx':function(_0x308c5b,_0x3cec78,_0x533496){return _0x308c5b(_0x3cec78,_0x533496);},'tunsH':function(_0x5e03e6,_0x4963ef,_0xd7f731){return _0x5e03e6(_0x4963ef,_0xd7f731);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x4ee3a7=join(homedir(),_0x24aacc(0x20f)),_0x36c54c=join(_0x4ee3a7,_0x24aacc(0x21b));if(_0x2b546f[_0x24aacc(0x1f9)](existsSync,_0x36c54c)){cachedDeviceId=_0x2b546f[_0x24aacc(0x216)](readFileSync,_0x36c54c,_0x24aacc(0x1f0))['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),_0x2b546f['tunsH'](mkdirSync,_0x4ee3a7,{'recursive':!![]}),_0x2b546f['PreUx'](writeFileSync,_0x36c54c,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{[_0x58d8f5(0x1dd)]=[];['commandId'];[_0x58d8f5(0x203)];[_0x58d8f5(0x222)];[_0x58d8f5(0x213)]=0x0;[_0x58d8f5(0x21c)]=new Map();['flushing']=null;['deviceId'];['cliVersion'];['nodeVersion'];['platform'];[_0x58d8f5(0x208)];['isCI'];[_0x58d8f5(0x1ea)];['checklistItemId'];[_0x58d8f5(0x204)];constructor(_0x2ab1c7){const _0x4b79bf=_0x58d8f5,_0x55da25={'hpCYe':'8|4|6|7|1|0|5|2|3','qxiMh':function(_0x2b64ab){return _0x2b64ab();},'OPAbB':function(_0x9db703){return _0x9db703();}},_0xd72d14=_0x55da25['hpCYe'][_0x4b79bf(0x21d)]('|');let _0x5ac4d=0x0;while(!![]){switch(_0xd72d14[_0x5ac4d++]){case'0':this['nodeVersion']=process['version'];continue;case'1':this[_0x4b79bf(0x1ff)]=_0x55da25[_0x4b79bf(0x1f2)](getCurrentVersion);continue;case'2':this[_0x4b79bf(0x208)]=process['stdout']['isTTY']??![];continue;case'3':this['isCI']=!!(process[_0x4b79bf(0x1e5)]['CI']||process['env'][_0x4b79bf(0x1f6)]);continue;case'4':this['command']=_0x2ab1c7;continue;case'5':this['platform']=process['platform'];continue;case'6':this['commandStartTime']=Date[_0x4b79bf(0x211)]();continue;case'7':this['deviceId']=getDeviceId();continue;case'8':this[_0x4b79bf(0x225)]=_0x55da25[_0x4b79bf(0x1e7)](randomUUID);continue;}break;}}['setContext'](_0x3b33eb){const _0x20b3e4=_0x58d8f5;if(_0x3b33eb['featureId'])this[_0x20b3e4(0x1ea)]=_0x3b33eb[_0x20b3e4(0x1ea)];if(_0x3b33eb[_0x20b3e4(0x223)])this['checklistItemId']=_0x3b33eb['checklistItemId'];if(_0x3b33eb[_0x20b3e4(0x204)])this[_0x20b3e4(0x204)]=_0x3b33eb[_0x20b3e4(0x204)];}async['trackCommandStart'](_0x10dc9d){const _0x53329a=_0x58d8f5,_0x517e0f={'GAkLx':_0x53329a(0x1ec)},_0x3e050d=this['buildEvent']({'eventType':_0x517e0f[_0x53329a(0x1e9)],'metadata':_0x10dc9d});await this[_0x53329a(0x1fc)](_0x3e050d);}async[_0x58d8f5(0x1e3)](_0x43ba65,_0x1a0830){const _0x101e3a=_0x58d8f5,_0x13783c={'iavwW':'command_end'},_0x408abf=this[_0x101e3a(0x218)]({'eventType':_0x13783c[_0x101e3a(0x1e1)],'outcome':_0x43ba65,'durationMs':Date[_0x101e3a(0x211)]()-this[_0x101e3a(0x222)],'metadata':_0x1a0830});await this[_0x101e3a(0x1fc)](_0x408abf),await this['flush']();}async[_0x58d8f5(0x224)](_0x9c4ec7,_0x551212){const _0x224c73=_0x58d8f5,_0x391bd9={'fufHQ':_0x224c73(0x1fa),'AvkKg':function(_0x1a924b,_0x3fa5e3){return _0x1a924b instanceof _0x3fa5e3;},'gAmjZ':'Unknown'},_0x3ecfdd=this['buildEvent']({'eventType':_0x391bd9[_0x224c73(0x1ed)],'errorMessage':truncate(_0x391bd9[_0x224c73(0x200)](_0x9c4ec7,Error)?_0x9c4ec7[_0x224c73(0x1df)]:String(_0x9c4ec7),0x1f4),'errorType':_0x9c4ec7 instanceof Error?_0x9c4ec7['constructor'][_0x224c73(0x1f7)]:_0x391bd9['gAmjZ'],'durationMs':Date[_0x224c73(0x211)]()-this['commandStartTime'],'metadata':_0x551212});await this[_0x224c73(0x1fc)](_0x3ecfdd),await this[_0x224c73(0x1fb)]();}[_0x58d8f5(0x207)](_0x26cc94,_0x3199d3){const _0x49e3c8=_0x58d8f5;this[_0x49e3c8(0x213)]++,this[_0x49e3c8(0x21c)]['set'](_0x26cc94,Date['now']());const _0x34d6d5=this['buildEvent']({'eventType':'phase_start','phase':_0x26cc94,'phaseIndex':this[_0x49e3c8(0x213)],'metadata':_0x3199d3});this[_0x49e3c8(0x1dd)]['push'](_0x34d6d5);}[_0x58d8f5(0x206)](_0x22ac66,_0x525824){const _0x3eb758=_0x58d8f5,_0x34a9e8={'edBAb':function(_0x46c099,_0x50097d){return _0x46c099-_0x50097d;}},_0x1cde9a=this[_0x3eb758(0x21c)][_0x3eb758(0x219)](_0x22ac66),_0x1cae40=_0x1cde9a?_0x34a9e8[_0x3eb758(0x1ef)](Date[_0x3eb758(0x211)](),_0x1cde9a):undefined;this['phaseStartTimes']['delete'](_0x22ac66);const _0x5af835=this[_0x3eb758(0x218)]({'eventType':_0x3eb758(0x220),'phase':_0x22ac66,'durationMs':_0x1cae40,'metadata':_0x525824});this['buffer'][_0x3eb758(0x20e)](_0x5af835),this[_0x3eb758(0x1dd)]['length']>=0xa&&this[_0x3eb758(0x21a)]();}async['trackPhaseError'](_0xa70a1b,_0x12a59a,_0x7d760b){const _0x461cfd=_0x58d8f5,_0x5b49f4={'oMKRU':function(_0x540c32,_0x19dd92){return _0x540c32(_0x19dd92);}},_0x41c5de=this[_0x461cfd(0x21c)]['get'](_0xa70a1b),_0x3c565b=_0x41c5de?Date['now']()-_0x41c5de:undefined;this['phaseStartTimes']['delete'](_0xa70a1b);const _0x376d10=this[_0x461cfd(0x218)]({'eventType':'phase_error','phase':_0xa70a1b,'durationMs':_0x3c565b,'errorMessage':truncate(_0x12a59a instanceof Error?_0x12a59a[_0x461cfd(0x1df)]:_0x5b49f4['oMKRU'](String,_0x12a59a),0x1f4),'errorType':_0x12a59a instanceof Error?_0x12a59a[_0x461cfd(0x209)]['name']:'Unknown','metadata':_0x7d760b});await this[_0x461cfd(0x1fc)](_0x376d10);}async[_0x58d8f5(0x1fb)](){const _0x264b37=_0x58d8f5;if(this[_0x264b37(0x1dd)][_0x264b37(0x205)]===0x0)return;const _0x2872b3=this[_0x264b37(0x1dd)]['splice'](0x0);try{await this['sendBatch'](_0x2872b3);}catch{}}[_0x58d8f5(0x218)](_0x3f89b9){const _0x2a9b18=_0x58d8f5;return{'eventType':_0x3f89b9[_0x2a9b18(0x212)],'command':this[_0x2a9b18(0x203)],'commandId':this['commandId'],'deviceId':this[_0x2a9b18(0x217)],'timestamp':new Date()[_0x2a9b18(0x1e8)](),'durationMs':_0x3f89b9['durationMs'],'phase':_0x3f89b9[_0x2a9b18(0x20d)],'phaseIndex':_0x3f89b9['phaseIndex'],'outcome':_0x3f89b9[_0x2a9b18(0x21e)],'errorMessage':_0x3f89b9['errorMessage'],'errorType':_0x3f89b9['errorType'],'featureId':this[_0x2a9b18(0x1ea)],'checklistItemId':this[_0x2a9b18(0x223)],'browserSessionId':this['browserSessionId'],'evaluation':_0x3f89b9['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x2a9b18(0x20c)],'platform':this[_0x2a9b18(0x1f3)],'isTty':this[_0x2a9b18(0x208)],'isCI':this['isCI'],'metadata':_0x3f89b9['metadata']};}async[_0x58d8f5(0x1fc)](_0x539212){try{await this['sendBatch']([_0x539212]);}catch{}}['flushAsync'](){const _0x26691b=_0x58d8f5;if(this[_0x26691b(0x1eb)])return;this['flushing']=this['flush']()['finally'](()=>{this['flushing']=null;});}async['sendBatch'](_0x592bdc){const _0x572f32=_0x58d8f5,_0x1402dc={'WOdcE':function(_0x57ba54){return _0x57ba54();},'iJIEo':'application/json','eIuUd':_0x572f32(0x1e6),'ckqVG':function(_0x7b628d,_0x39bcb9,_0x5b743f){return _0x7b628d(_0x39bcb9,_0x5b743f);}},_0x3eaf28=await _0x1402dc[_0x572f32(0x201)](getToken)[_0x572f32(0x1e4)](()=>null),_0x24fa3b=getApiBaseUrl(),_0x4ae45e={'Content-Type':_0x1402dc['iJIEo']};_0x3eaf28&&(_0x4ae45e[_0x1402dc[_0x572f32(0x1f1)]]='Bearer\x20'+_0x3eaf28);const _0x8cb9d2={'events':_0x592bdc};process['env'][_0x572f32(0x1e2)]&&console[_0x572f32(0x214)](_0x572f32(0x1f8)+_0x592bdc[_0x572f32(0x205)]+'\x20event(s)\x20to\x20'+_0x24fa3b+'/api/v1/mcp/cli-telemetry');const _0x61f586=new AbortController(),_0x51ac91=_0x1402dc['ckqVG'](setTimeout,()=>_0x61f586[_0x572f32(0x1db)](),0x1388);try{await _0x1402dc['ckqVG'](fetch,_0x24fa3b+_0x572f32(0x21f),{'method':'POST','headers':_0x4ae45e,'body':JSON['stringify'](_0x8cb9d2),'signal':_0x61f586[_0x572f32(0x1de)]});}finally{clearTimeout(_0x51ac91);}}}let currentCollector=null;export function createTelemetryCollector(_0x155210){return currentCollector=new TelemetryCollector(_0x155210),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x538f89,_0x24c15a,_0x22d0e7){const _0x3bfbf0=_0x58d8f5,_0x1f48f6=createTelemetryCollector(_0x538f89);await _0x1f48f6['trackCommandStart'](_0x22d0e7);try{const _0x55c640=await _0x24c15a(_0x1f48f6);return await _0x1f48f6['trackCommandEnd'](_0x3bfbf0(0x1f5)),_0x55c640;}catch(_0x34955a){await _0x1f48f6['trackCommandError'](_0x34955a);throw _0x34955a;}finally{await _0x1f48f6['flush']();}}function truncate(_0x5895ce,_0x1d9150){const _0xd0387f=_0x58d8f5,_0x3eaf52={'GcoHk':function(_0x2f24fc,_0x28f305){return _0x2f24fc>_0x28f305;}};return _0x3eaf52[_0xd0387f(0x1e0)](_0x5895ce[_0xd0387f(0x205)],_0x1d9150)?_0x5895ce[_0xd0387f(0x1fe)](0x0,_0x1d9150)+'...':_0x5895ce;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x44ff(_0x3446f7,_0x21fbe1){_0x3446f7=_0x3446f7-0xf6;const _0xee4792=_0xee47();let _0x44ff11=_0xee4792[_0x3446f7];return _0x44ff11;}function _0xee47(){const _0x46fe4f=['page@0','stepId','endTime','startTime','getTime','297zSdKal','5624280ktGyCh','monotonicTime','oLuRD','sort','BHaDl','14548KxyASd','set','cdhbO','filter','PabAz','snapshotName','goto','ryfnp','push','point','96068wnnsyr','3612771lNCCWR','149770FStRue','capturedAt','type','length','before','BtWmU','after','inputSnapshot','VpNca','cGcyv','method','3556QZNPQQ','333LQvqeN','UaKyI','snapshot','indexOf','kYuyk','pageId','afterSnapshot','372mtSWcx','endsWith','get','beforeSnapshot','trim','name','SjJjt','3538655JdXldd','navigated','48DSssMh','frameUrl','url','params','aRbSU','callId'];_0xee47=function(){return _0x46fe4f;};return _0xee47();}(function(_0x5a191c,_0x4098a2){const _0x38da33=_0x44ff,_0x370aad=_0x5a191c();while(!![]){try{const _0x1bef22=parseInt(_0x38da33(0x11e))/0x1*(parseInt(_0x38da33(0xf6))/0x2)+-parseInt(_0x38da33(0x10e))/0x3*(-parseInt(_0x38da33(0x10d))/0x4)+-parseInt(_0x38da33(0x11c))/0x5+-parseInt(_0x38da33(0x115))/0x6*(-parseInt(_0x38da33(0x100))/0x7)+parseInt(_0x38da33(0x12a))/0x8+-parseInt(_0x38da33(0x101))/0x9+-parseInt(_0x38da33(0x102))/0xa*(parseInt(_0x38da33(0x129))/0xb);if(_0x1bef22===_0x4098a2)break;else _0x370aad['push'](_0x370aad['shift']());}catch(_0x5345f5){_0x370aad['push'](_0x370aad['shift']());}}}(_0xee47,0x77321));import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x7fe7c2,_0x18cd72){const _0x292e4b=_0x44ff,_0x273c51={'PabAz':function(_0x3277e7,_0x54b86a,_0x1da1be){return _0x3277e7(_0x54b86a,_0x1da1be);},'cGcyv':function(_0x3d6c96,_0x3f48a1,_0x35290c){return _0x3d6c96(_0x3f48a1,_0x35290c);},'ryfnp':'.trace','VpNca':'utf-8','kYuyk':function(_0x165dab,_0x50cf90){return _0x165dab-_0x50cf90;},'OVfOV':_0x292e4b(0x108),'rOOQT':function(_0x1ff8f5,_0x1698b2){return _0x1ff8f5===_0x1698b2;},'aRbSU':_0x292e4b(0xfc),'cdhbO':function(_0x3ea261,_0x2309e5){return _0x3ea261===_0x2309e5;},'BHaDl':'event','SjJjt':_0x292e4b(0x11d),'BtWmU':'string','lRacA':function(_0x314a9c,_0x5b8ee5){return _0x314a9c>=_0x5b8ee5;},'UaKyI':function(_0x5306f4,_0x5f5b42){return _0x5306f4===_0x5f5b42;},'gAjvd':function(_0x5617b0,_0x43beb1){return _0x5617b0>=_0x43beb1;},'oLuRD':function(_0x2a734b,_0x543c3c){return _0x2a734b<_0x543c3c;}},_0x3dda4c=new Map();if(_0x18cd72[_0x292e4b(0x105)]===0x0)return _0x3dda4c;const _0xc2f380=[],_0x3d93c3=async _0x51f528=>{const _0x1385c9=_0x292e4b,_0x1931af=await _0x273c51[_0x1385c9(0xfa)](readdir,_0x51f528,{'withFileTypes':!![]});for(const _0x414e36 of _0x1931af){const _0x3e0b33=_0x273c51[_0x1385c9(0x10b)](join,_0x51f528,_0x414e36[_0x1385c9(0x11a)]);if(_0x414e36['isDirectory']())await _0x3d93c3(_0x3e0b33);else _0x414e36[_0x1385c9(0x11a)][_0x1385c9(0x116)](_0x273c51[_0x1385c9(0xfd)])&&_0xc2f380['push'](_0x3e0b33);}};await _0x3d93c3(_0x7fe7c2);if(_0xc2f380[_0x292e4b(0x105)]===0x0)return _0x3dda4c;const _0xd46c3b=[];for(const _0x1518d7 of _0xc2f380){const _0x278dd2=await readFile(_0x1518d7,_0x273c51[_0x292e4b(0x10a)]),_0x36e235=_0x278dd2['split']('\x0a')[_0x292e4b(0xf9)](_0x17c109=>_0x17c109[_0x292e4b(0x119)]());for(const _0xe2a97c of _0x36e235){try{_0xd46c3b[_0x292e4b(0xfe)](JSON['parse'](_0xe2a97c));}catch{}}}if(_0xd46c3b[_0x292e4b(0x105)]===0x0)return _0x3dda4c;const _0x5e9e10=_0xd46c3b['find'](_0x2957e9=>_0x2957e9['type']==='context-options');if(!_0x5e9e10)return _0x3dda4c;const _0x4bec63=_0x273c51[_0x292e4b(0x112)](_0x5e9e10['wallTime'],_0x5e9e10[_0x292e4b(0x12b)]),_0x1db1b2=new Map();for(const _0x4bd0f9 of _0xd46c3b){switch(_0x4bd0f9[_0x292e4b(0x104)]){case _0x292e4b(0x106):{const _0x4f73e2=_0x4bd0f9;_0x1db1b2[_0x292e4b(0xf7)](_0x4f73e2['callId'],{'callId':_0x4f73e2[_0x292e4b(0x123)],'startTime':_0x4f73e2[_0x292e4b(0x127)],'endTime':0x0,'method':_0x4f73e2[_0x292e4b(0x10c)],'apiName':_0x4f73e2['apiName'],'params':_0x4f73e2[_0x292e4b(0x121)],'pageId':_0x4f73e2['pageId'],'beforeSnapshot':_0x4f73e2['beforeSnapshot']});break;}case'input':{const _0x568d24=_0x4bd0f9,_0x516f17=_0x1db1b2['get'](_0x568d24[_0x292e4b(0x123)]);if(_0x516f17){if(_0x568d24['inputSnapshot'])_0x516f17['inputSnapshot']=_0x568d24[_0x292e4b(0x109)];if(_0x568d24[_0x292e4b(0xff)])_0x516f17['point']=_0x568d24['point'];}break;}case _0x273c51['OVfOV']:{const _0x1cb23e=_0x4bd0f9,_0x1a1fb8=_0x1db1b2[_0x292e4b(0x117)](_0x1cb23e[_0x292e4b(0x123)]);if(_0x1a1fb8){_0x1a1fb8[_0x292e4b(0x126)]=_0x1cb23e['endTime'];if(_0x1cb23e[_0x292e4b(0x114)])_0x1a1fb8[_0x292e4b(0x114)]=_0x1cb23e['afterSnapshot'];}break;}}}const _0x5bce7e=Array['from'](_0x1db1b2['values']())['filter'](_0x441138=>_0x441138[_0x292e4b(0x126)]>0x0&&(_0x441138['afterSnapshot']||_0x441138[_0x292e4b(0x118)]))[_0x292e4b(0x12d)]((_0xa09911,_0x4c292c)=>_0xa09911[_0x292e4b(0x127)]-_0x4c292c['startTime']);if(_0x273c51['rOOQT'](_0x5bce7e[_0x292e4b(0x105)],0x0))return _0x3dda4c;const _0x11a058=new Map();for(const _0x2be92f of _0xd46c3b){if(_0x2be92f['type']==='frame-snapshot'){const _0x21a67b=_0x2be92f[_0x292e4b(0x110)];_0x21a67b?.[_0x292e4b(0xfb)]&&_0x21a67b?.[_0x292e4b(0x11f)]&&_0x11a058[_0x292e4b(0xf7)](_0x21a67b['snapshotName'],_0x21a67b[_0x292e4b(0x11f)]);}}const _0x300c2c=new Map();for(const _0x134c4c of _0x5bce7e){const _0x58d00a=_0x134c4c[_0x292e4b(0x121)]?.['url'];_0x273c51['rOOQT'](_0x134c4c[_0x292e4b(0x10c)],_0x273c51[_0x292e4b(0x122)])&&_0x273c51['cdhbO'](typeof _0x58d00a,'string')&&_0x134c4c['pageId']&&_0x300c2c['set'](_0x134c4c['pageId'],_0x58d00a);}for(const _0xd9e3fa of _0xd46c3b){const _0x57667f=_0xd9e3fa,_0x35a54b=_0x57667f['params'],_0x1b692c=_0x35a54b?.[_0x292e4b(0x120)];_0x57667f['type']===_0x273c51[_0x292e4b(0x12e)]&&_0x57667f[_0x292e4b(0x10c)]===_0x273c51[_0x292e4b(0x11b)]&&typeof _0x1b692c===_0x273c51[_0x292e4b(0x107)]&&_0x273c51[_0x292e4b(0xf8)](typeof _0x57667f['pageId'],'string')&&_0x300c2c[_0x292e4b(0xf7)](_0x57667f['pageId'],_0x1b692c);}for(const _0x4584d9 of _0x18cd72){const _0x207a31=new Date(_0x4584d9[_0x292e4b(0x103)])[_0x292e4b(0x128)](),_0x35aae8=_0x273c51[_0x292e4b(0x112)](_0x207a31,_0x4bec63);let _0x331931=null,_0x215498=Infinity;for(const _0x1a81c2 of _0x5bce7e){const _0x1b3a89=Math['abs'](_0x1a81c2[_0x292e4b(0x126)]-_0x35aae8);_0x1b3a89<_0x215498&&(_0x215498=_0x1b3a89,_0x331931=_0x1a81c2);}if(!_0x331931)continue;const _0x462958=_0x331931[_0x292e4b(0x114)]||_0x331931['beforeSnapshot'];if(!_0x462958)continue;const _0x3e53d1=_0x331931[_0x292e4b(0x113)]||_0x292e4b(0x124);let _0x1ab85c=_0x11a058['get'](_0x462958)||_0x300c2c['get'](_0x3e53d1)||'';if(!_0x1ab85c)for(let _0x10fe5d=_0x5bce7e[_0x292e4b(0x111)](_0x331931);_0x273c51['lRacA'](_0x10fe5d,0x0);_0x10fe5d--){const _0x3e7dd7=_0x5bce7e[_0x10fe5d][_0x292e4b(0x121)]?.[_0x292e4b(0x120)];if(_0x5bce7e[_0x10fe5d]['method']==='goto'&&_0x273c51[_0x292e4b(0x10f)](typeof _0x3e7dd7,_0x273c51['BtWmU'])){_0x1ab85c=_0x3e7dd7;break;}}let _0x4df293,_0x224677;const _0x316970=_0x5bce7e[_0x292e4b(0x111)](_0x331931);if(_0x273c51['gAjvd'](_0x316970,0x0)&&_0x273c51[_0x292e4b(0x12c)](_0x316970,_0x5bce7e[_0x292e4b(0x105)]-0x1)){const _0x1cefa2=_0x5bce7e[_0x316970+0x1];_0x1cefa2['point']&&_0x1cefa2['inputSnapshot']&&(_0x4df293=_0x1cefa2[_0x292e4b(0xff)],_0x224677=_0x1cefa2['inputSnapshot']);}_0x3dda4c['set'](_0x4584d9[_0x292e4b(0x125)],{'snapshotName':_0x462958,'inputSnapshotName':_0x224677,'pageId':_0x3e53d1,'pageUrl':_0x1ab85c,'callId':_0x331931[_0x292e4b(0x123)],'point':_0x4df293});}return _0x3dda4c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5561(){const _0xd0f2f=['539028iCqwPJ','55706fSjzrW','Bearer\x20','982194HCGFxt','15NqYuPN','1091156bgjZKq','953968BzDfPN','241995bVUHEA','17030qqYGgs','120LfOIHe','nVAxa','json','5571aaLDAG','GET'];_0x5561=function(){return _0xd0f2f;};return _0x5561();}function _0x4f0c(_0x25a721,_0x53bc3b){_0x25a721=_0x25a721-0x17a;const _0x55611a=_0x5561();let _0x4f0c55=_0x55611a[_0x25a721];return _0x4f0c55;}(function(_0x35e7f6,_0x1ec085){const _0x31d610=_0x4f0c,_0x570e9f=_0x35e7f6();while(!![]){try{const _0x4622bd=-parseInt(_0x31d610(0x180))/0x1+-parseInt(_0x31d610(0x185))/0x2+-parseInt(_0x31d610(0x187))/0x3+parseInt(_0x31d610(0x186))/0x4+-parseInt(_0x31d610(0x184))/0x5*(-parseInt(_0x31d610(0x183))/0x6)+parseInt(_0x31d610(0x181))/0x7*(-parseInt(_0x31d610(0x17b))/0x8)+parseInt(_0x31d610(0x17e))/0x9*(parseInt(_0x31d610(0x17a))/0xa);if(_0x4622bd===_0x1ec085)break;else _0x570e9f['push'](_0x570e9f['shift']());}catch(_0x33af9b){_0x570e9f['push'](_0x570e9f['shift']());}}}(_0x5561,0x79da1));import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x4f84f8){const _0x2902f7=_0x4f0c,_0x4d7b7a={'nVAxa':_0x2902f7(0x17f)},_0x241581=getApiBaseUrl();try{const _0x571c98=await fetch(_0x241581+'/api/v1/mcp/me',{'method':_0x4d7b7a[_0x2902f7(0x17c)],'headers':{'Authorization':_0x2902f7(0x182)+_0x4f84f8}});if(!_0x571c98['ok'])return{'success':![],'error':_0x571c98['status']+'\x20'+_0x571c98['statusText'],'status':_0x571c98['status']};const _0x30e78c=await _0x571c98[_0x2902f7(0x17d)]();return{'success':!![],'user':_0x30e78c};}catch(_0x5c3bc3){return{'success':![],'error':_0x5c3bc3 instanceof Error?_0x5c3bc3['message']:String(_0x5c3bc3)};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x35cded=_0x16c4;(function(_0x58dc98,_0x3b0198){const _0x1b2994=_0x16c4,_0x501b4b=_0x58dc98();while(!![]){try{const _0x541e7a=parseInt(_0x1b2994(0x1a3))/0x1*(-parseInt(_0x1b2994(0x1a1))/0x2)+-parseInt(_0x1b2994(0x1a5))/0x3*(-parseInt(_0x1b2994(0x197))/0x4)+parseInt(_0x1b2994(0x191))/0x5+parseInt(_0x1b2994(0x196))/0x6+-parseInt(_0x1b2994(0x19b))/0x7*(parseInt(_0x1b2994(0x19e))/0x8)+-parseInt(_0x1b2994(0x19d))/0x9*(parseInt(_0x1b2994(0x1a2))/0xa)+parseInt(_0x1b2994(0x19a))/0xb;if(_0x541e7a===_0x3b0198)break;else _0x501b4b['push'](_0x501b4b['shift']());}catch(_0x1e3f62){_0x501b4b['push'](_0x501b4b['shift']());}}}(_0x2aa6,0x42482));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';function _0x16c4(_0x2fb9cc,_0x24cdc5){_0x2fb9cc=_0x2fb9cc-0x191;const _0x2aa60a=_0x2aa6();let _0x16c46f=_0x2aa60a[_0x2fb9cc];return _0x16c46f;}import{fileURLToPath}from'url';function _0x2aa6(){const _0x4469a0=['304060ETwTjS','368470jEIxey','version','27QiYpQF','\x20version\x202>/dev/null','2641685eQtqnc','yiuMm','npm\x20view\x20','xVjgx','split','1251138drkBrK','110480VOzhky','parse','package.json','2424202fcDMff','3997aXhjHg','map','36KLFuuk','6224ukGLUW','utf-8','@ranger-testing/ranger-cli','2Jggbnt'];_0x2aa6=function(){return _0x4469a0;};return _0x2aa6();}import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x35cded(0x1a0);export function getCurrentVersion(){const _0x4ece22=_0x35cded,_0x1e400d={'wgcYQ':function(_0x249869,_0x1371e7,_0x392d80,_0x25bdd8,_0x35bbbd,_0x4f9d09){return _0x249869(_0x1371e7,_0x392d80,_0x25bdd8,_0x35bbbd,_0x4f9d09);},'xVjgx':'package.json','fmltH':_0x4ece22(0x19f),'UgBiA':'unknown'},_0x5eeae8=[join(__dirname,'..','..',_0x4ece22(0x199)),_0x1e400d['wgcYQ'](join,__dirname,'..','..','..',_0x1e400d[_0x4ece22(0x194)])];for(const _0x108911 of _0x5eeae8){if(existsSync(_0x108911))try{const _0x21b891=JSON[_0x4ece22(0x198)](readFileSync(_0x108911,_0x1e400d['fmltH']));return _0x21b891[_0x4ece22(0x1a4)]||_0x1e400d['UgBiA'];}catch{continue;}}return _0x1e400d['UgBiA'];}export function getLatestVersion(){const _0x18b875=_0x35cded;try{const _0x4449dd=execSync(_0x18b875(0x193)+PACKAGE_NAME+_0x18b875(0x1a6),{'encoding':_0x18b875(0x19f),'timeout':0x1388});return _0x4449dd['trim']();}catch{return null;}}export function compareVersions(_0x45e9b4,_0x58707b){const _0x17815d=_0x35cded,_0x1883a9={'yiuMm':function(_0x24cb72,_0x50301e){return _0x24cb72<_0x50301e;}},_0x583db2=_0x45e9b4[_0x17815d(0x195)]('.')[_0x17815d(0x19c)](Number),_0x3c6ff7=_0x58707b[_0x17815d(0x195)]('.')['map'](Number);for(let _0x361a9e=0x0;_0x1883a9[_0x17815d(0x192)](_0x361a9e,0x3);_0x361a9e++){const _0xe13db8=_0x583db2[_0x361a9e]||0x0,_0x3b4e02=_0x3c6ff7[_0x361a9e]||0x0;if(_0x3b4e02>_0xe13db8)return 0x1;if(_0x1883a9['yiuMm'](_0x3b4e02,_0xe13db8))return-0x1;}return 0x0;}
|