@ranger-testing/ranger-cli 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/browserSessionsApi.js +1 -1
  35. package/build/commands/utils/claudeConfig.js +1 -1
  36. package/build/commands/utils/claudePlugin.js +1 -1
  37. package/build/commands/utils/crypto.js +1 -1
  38. package/build/commands/utils/desirePathLog.js +1 -1
  39. package/build/commands/utils/deviceAuth.js +1 -1
  40. package/build/commands/utils/environment.js +1 -1
  41. package/build/commands/utils/featureApi.js +1 -1
  42. package/build/commands/utils/featureReportGenerator.js +1 -1
  43. package/build/commands/utils/fixWebmDuration.js +1 -1
  44. package/build/commands/utils/git.js +1 -1
  45. package/build/commands/utils/keychain.js +1 -1
  46. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  47. package/build/commands/utils/mcpImageBase64.js +1 -1
  48. package/build/commands/utils/model.js +1 -1
  49. package/build/commands/utils/opencodeConfig.js +1 -1
  50. package/build/commands/utils/profileMessages.js +1 -1
  51. package/build/commands/utils/profileSetupBanner.js +1 -1
  52. package/build/commands/utils/rangerConfig.js +1 -1
  53. package/build/commands/utils/rangerRoot.js +1 -1
  54. package/build/commands/utils/reportGenerator.js +1 -1
  55. package/build/commands/utils/retry.js +1 -1
  56. package/build/commands/utils/sessionCache.js +1 -1
  57. package/build/commands/utils/settings.js +1 -1
  58. package/build/commands/utils/skillContent.js +1 -1
  59. package/build/commands/utils/skills.js +1 -1
  60. package/build/commands/utils/telemetry.js +1 -1
  61. package/build/commands/utils/userApi.js +1 -1
  62. package/build/commands/utils/version.js +1 -1
  63. package/build/commands/verifyFeature.js +1 -1
  64. package/build/commands/verifyInBrowser.js +1 -1
  65. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x17215b,_0x4a4e50){const _0x66fdcd=_0x59e0,_0x326188=_0x17215b();while(!![]){try{const _0x2e1b8a=-parseInt(_0x66fdcd(0x16d))/0x1*(parseInt(_0x66fdcd(0x165))/0x2)+-parseInt(_0x66fdcd(0x156))/0x3*(-parseInt(_0x66fdcd(0x15c))/0x4)+-parseInt(_0x66fdcd(0x162))/0x5*(-parseInt(_0x66fdcd(0x15f))/0x6)+parseInt(_0x66fdcd(0x154))/0x7*(-parseInt(_0x66fdcd(0x14e))/0x8)+-parseInt(_0x66fdcd(0x167))/0x9+parseInt(_0x66fdcd(0x159))/0xa+parseInt(_0x66fdcd(0x168))/0xb*(-parseInt(_0x66fdcd(0x163))/0xc);if(_0x2e1b8a===_0x4a4e50)break;else _0x326188['push'](_0x326188['shift']());}catch(_0x3ce2af){_0x326188['push'](_0x326188['shift']());}}}(_0x5097,0xaf6fb));import{readdir}from'fs/promises';import{join}from'path';function _0x59e0(_0x562aa8,_0x3ed6f8){_0x562aa8=_0x562aa8-0x149;const _0x5097fc=_0x5097();let _0x59e0a5=_0x5097fc[_0x562aa8];return _0x59e0a5;}import{existsSync}from'fs';export async function collectScreenshots(_0x242f48){const _0x28c7b7=_0x59e0,_0x39883d=[],_0x424eae=[];if(!existsSync(_0x242f48))return{'screenshots':_0x39883d,'paths':_0x424eae};const _0x29fbf8=await readdir(_0x242f48),_0x366ec4=_0x29fbf8[_0x28c7b7(0x14a)](_0x2cf548=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x2cf548))['sort']();for(const _0x991803 of _0x366ec4){const _0xfcd9c2=join(_0x242f48,_0x991803);_0x39883d['push']({'filename':_0x991803,'path':_0xfcd9c2,'relativePath':'./'+_0x991803}),_0x424eae['push'](_0xfcd9c2);}return{'screenshots':_0x39883d,'paths':_0x424eae};}function getSeverityEmoji(_0x275bb2){const _0x463607=_0x59e0,_0x4b4fbd={'ToAHP':'BLOCKER'};switch(_0x275bb2){case _0x4b4fbd['ToAHP']:return'🔴';case _0x463607(0x166):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x5f5a93){const _0x1ab54e=_0x59e0,_0x13294f=_0x5f5a93['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x4a2332=_0x13294f['replace'](/^\d+-/,'');return _0x4a2332['split']('-')[_0x1ab54e(0x150)](_0x645463=>_0x645463['charAt'](0x0)['toUpperCase']()+_0x645463[_0x1ab54e(0x160)](0x1))[_0x1ab54e(0x151)]('\x20');}function _0x5097(){const _0x7fc9c=['toFixed','19ViCbCj','---','filter','filename','**Status:**\x20','fawfi','488qhtPCe','##\x20Result','map','join','##\x20Task','##\x20Screenshots\x20(','74914PcBGzT','length','15711ouZXeY','apFai','#\x20Verification\x20Report','7222090VtiOIo','PASSED','description','1084HsBNEO','**Session:**\x20`','ISSUES\x20FOUND','1019142iqIBDV','slice','####\x20','15Sorypr','142836JReoev','push','102740KQnSLL','MAJOR','696699suCJho','209oPOGYz','**Duration:**\x20','severity','screenshot'];_0x5097=function(){return _0x7fc9c;};return _0x5097();}export function generateMarkdownReport(_0x1ed226){const _0x5af4ff=_0x59e0,_0x386ad4={'fawfi':function(_0x4ff409,_0x543312){return _0x4ff409/_0x543312;},'CmggX':_0x5af4ff(0x15a),'apFai':function(_0x206a30,_0x1443ec){return _0x206a30>_0x1443ec;},'hQVUR':function(_0x1840aa,_0x395b4d){return _0x1840aa>_0x395b4d;}},{sessionId:_0x2c5065,task:_0x3c2c1d,url:_0x598e18,success:_0xcb534,summary:_0x3e7fe1,issues:_0x3a6a51,screenshots:_0xacb3b0,durationMs:_0x37e8c5,traceViewerUrl:_0x2ff4ce}=_0x1ed226,_0x4344ba=new Date()['toISOString'](),_0x5e2676=_0x386ad4[_0x5af4ff(0x14d)](_0x37e8c5,0x3e8)[_0x5af4ff(0x16c)](0x1),_0x5c14c1=[];_0x5c14c1[_0x5af4ff(0x164)](_0x5af4ff(0x158)),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1['push'](_0x5af4ff(0x15d)+_0x2c5065+'`'),_0x5c14c1[_0x5af4ff(0x164)]('**Generated:**\x20'+_0x4344ba),_0x5c14c1['push'](_0x5af4ff(0x169)+_0x5e2676+'s'),_0x5c14c1['push'](''),_0x5c14c1['push'](_0x5af4ff(0x152)),_0x5c14c1['push'](''),_0x5c14c1['push']('**URL:**\x20'+_0x598e18),_0x5c14c1['push'](''),_0x5c14c1[_0x5af4ff(0x164)]('>\x20'+_0x3c2c1d),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1[_0x5af4ff(0x164)](_0x5af4ff(0x14f)),_0x5c14c1['push']('');const _0x5d2669=_0xcb534?'✅':'❌';_0x5c14c1['push'](_0x5af4ff(0x14c)+_0x5d2669+'\x20'+(_0xcb534?_0x386ad4['CmggX']:_0x5af4ff(0x15e))),_0x5c14c1['push'](''),_0x5c14c1[_0x5af4ff(0x164)]('###\x20Summary'),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1[_0x5af4ff(0x164)](_0x3e7fe1),_0x5c14c1[_0x5af4ff(0x164)]('');if(_0x3a6a51&&_0x386ad4[_0x5af4ff(0x157)](_0x3a6a51[_0x5af4ff(0x155)],0x0)){_0x5c14c1[_0x5af4ff(0x164)]('###\x20Issues\x20Found\x20('+_0x3a6a51[_0x5af4ff(0x155)]+')'),_0x5c14c1[_0x5af4ff(0x164)]('');for(const _0x473ca4 of _0x3a6a51){const _0x1548ca=getSeverityEmoji(_0x473ca4['severity']);_0x5c14c1[_0x5af4ff(0x164)](_0x5af4ff(0x161)+_0x1548ca+'\x20['+_0x473ca4[_0x5af4ff(0x16a)]+']\x20Issue'),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1['push'](_0x473ca4[_0x5af4ff(0x15b)]),_0x5c14c1[_0x5af4ff(0x164)]('');if(_0x473ca4['screenshot']){const _0x594e4d=_0x473ca4[_0x5af4ff(0x16b)],_0x3ea730=_0xacb3b0['find'](_0x227b5f=>_0x227b5f['filename']===_0x594e4d||_0x227b5f['filename']['includes'](_0x594e4d));_0x3ea730&&(_0x5c14c1['push']('**Screenshot:**'),_0x5c14c1['push'](''),_0x5c14c1['push']('!['+_0x594e4d+']('+_0x3ea730['relativePath']+')'),_0x5c14c1[_0x5af4ff(0x164)](''));}}}if(_0x386ad4['hQVUR'](_0xacb3b0['length'],0x0)){_0x5c14c1['push'](_0x5af4ff(0x153)+_0xacb3b0[_0x5af4ff(0x155)]+')'),_0x5c14c1['push']('');for(const _0x405b64 of _0xacb3b0){const _0x93bfe9=formatScreenshotCaption(_0x405b64['filename']);_0x5c14c1[_0x5af4ff(0x164)]('###\x20'+_0x93bfe9),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1['push']('!['+_0x405b64[_0x5af4ff(0x14b)]+']('+_0x405b64['relativePath']+')'),_0x5c14c1[_0x5af4ff(0x164)]('');}}return _0x2ff4ce&&(_0x5c14c1[_0x5af4ff(0x164)](_0x5af4ff(0x149)),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1[_0x5af4ff(0x164)]('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x2ff4ce+')'),_0x5c14c1[_0x5af4ff(0x164)]('')),_0x5c14c1[_0x5af4ff(0x151)]('\x0a');}
1
+ function _0x381b(_0x52b504,_0x1f8ec5){_0x52b504=_0x52b504-0xfd;const _0x42eadd=_0x42ea();let _0x381b32=_0x42eadd[_0x52b504];return _0x381b32;}(function(_0x83a4f1,_0x1f04b6){const _0x51a29b=_0x381b,_0x263ad2=_0x83a4f1();while(!![]){try{const _0x4968dd=parseInt(_0x51a29b(0x10e))/0x1*(-parseInt(_0x51a29b(0x102))/0x2)+parseInt(_0x51a29b(0x107))/0x3+-parseInt(_0x51a29b(0x10d))/0x4+parseInt(_0x51a29b(0x116))/0x5*(parseInt(_0x51a29b(0x117))/0x6)+parseInt(_0x51a29b(0x110))/0x7*(-parseInt(_0x51a29b(0x121))/0x8)+parseInt(_0x51a29b(0x119))/0x9*(-parseInt(_0x51a29b(0x11a))/0xa)+parseInt(_0x51a29b(0x104))/0xb*(parseInt(_0x51a29b(0x112))/0xc);if(_0x4968dd===_0x1f04b6)break;else _0x263ad2['push'](_0x263ad2['shift']());}catch(_0x2f9a43){_0x263ad2['push'](_0x263ad2['shift']());}}}(_0x42ea,0xe1591));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x3f384d){const _0x21a719=_0x381b,_0x16c418={'BdtHc':function(_0x134e78,_0x323e84){return _0x134e78(_0x323e84);}},_0x2c08e4=[],_0x1bd596=[];if(!existsSync(_0x3f384d))return{'screenshots':_0x2c08e4,'paths':_0x1bd596};const _0x13b785=await _0x16c418['BdtHc'](readdir,_0x3f384d),_0x6b5fcd=_0x13b785['filter'](_0x23530a=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x23530a))[_0x21a719(0x115)]();for(const _0x426d7b of _0x6b5fcd){const _0x28f0dc=join(_0x3f384d,_0x426d7b);_0x2c08e4[_0x21a719(0x114)]({'filename':_0x426d7b,'path':_0x28f0dc,'relativePath':'./'+_0x426d7b}),_0x1bd596[_0x21a719(0x114)](_0x28f0dc);}return{'screenshots':_0x2c08e4,'paths':_0x1bd596};}function getSeverityEmoji(_0x547749){const _0x4fb2c8=_0x381b,_0x465b8f={'KyljA':'MAJOR'};switch(_0x547749){case _0x4fb2c8(0xfe):return'🔴';case _0x465b8f[_0x4fb2c8(0x120)]:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x2085d7){const _0x2b9ac4=_0x381b,_0x3f5fb1=_0x2085d7['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0xb48089=_0x3f5fb1[_0x2b9ac4(0x100)](/^\d+-/,'');return _0xb48089['split']('-')[_0x2b9ac4(0x10f)](_0x30a085=>_0x30a085[_0x2b9ac4(0x10c)](0x0)[_0x2b9ac4(0x103)]()+_0x30a085['slice'](0x1))[_0x2b9ac4(0x11b)]('\x20');}function _0x42ea(){const _0x25c0f4=['charAt','2423016NZTWqA','1350088RSbKxh','map','29911NzCrOS','**URL:**\x20','120ncqDmW','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','push','sort','5YcMDYF','3655764WNSEuO','find','171gjcxwx','677020RlNnxl','join','###\x20Summary','**Screenshot:**','length','PASSED','KyljA','136ctgCZX','screenshot','BLOCKER','filename','replace','severity','2MhsTUX','toUpperCase','2097359xXDXZH','**Status:**\x20','wNdhu','5165586SLBmBW','---','###\x20Issues\x20Found\x20(','###\x20','toISOString'];_0x42ea=function(){return _0x25c0f4;};return _0x42ea();}export function generateMarkdownReport(_0x48bcc2){const _0x5f5303=_0x381b,_0x51919b={'icBMT':function(_0x272130,_0x44ec82){return _0x272130/_0x44ec82;},'wNdhu':'ISSUES\x20FOUND','EEeQS':function(_0x2619cc,_0x1c0657){return _0x2619cc>_0x1c0657;}},{sessionId:_0x30935f,task:_0x430e58,url:_0x2f22e3,success:_0x1307ea,summary:_0x2939bc,issues:_0x5ce41e,screenshots:_0x3e03af,durationMs:_0x127fe0,traceViewerUrl:_0x3c8e97}=_0x48bcc2,_0x29a45e=new Date()[_0x5f5303(0x10b)](),_0x4bdc57=_0x51919b['icBMT'](_0x127fe0,0x3e8)['toFixed'](0x1),_0x261cb2=[];_0x261cb2[_0x5f5303(0x114)]('#\x20Verification\x20Report'),_0x261cb2['push'](''),_0x261cb2['push']('**Session:**\x20`'+_0x30935f+'`'),_0x261cb2[_0x5f5303(0x114)]('**Generated:**\x20'+_0x29a45e),_0x261cb2['push']('**Duration:**\x20'+_0x4bdc57+'s'),_0x261cb2[_0x5f5303(0x114)](''),_0x261cb2[_0x5f5303(0x114)]('##\x20Task'),_0x261cb2['push'](''),_0x261cb2[_0x5f5303(0x114)](_0x5f5303(0x111)+_0x2f22e3),_0x261cb2[_0x5f5303(0x114)](''),_0x261cb2['push']('>\x20'+_0x430e58),_0x261cb2[_0x5f5303(0x114)](''),_0x261cb2['push']('##\x20Result'),_0x261cb2[_0x5f5303(0x114)]('');const _0x14e150=_0x1307ea?'✅':'❌';_0x261cb2[_0x5f5303(0x114)](_0x5f5303(0x105)+_0x14e150+'\x20'+(_0x1307ea?_0x5f5303(0x11f):_0x51919b[_0x5f5303(0x106)])),_0x261cb2['push'](''),_0x261cb2[_0x5f5303(0x114)](_0x5f5303(0x11c)),_0x261cb2['push'](''),_0x261cb2['push'](_0x2939bc),_0x261cb2['push']('');if(_0x5ce41e&&_0x51919b['EEeQS'](_0x5ce41e[_0x5f5303(0x11e)],0x0)){_0x261cb2[_0x5f5303(0x114)](_0x5f5303(0x109)+_0x5ce41e['length']+')'),_0x261cb2['push']('');for(const _0x5e2430 of _0x5ce41e){const _0x4a1285=getSeverityEmoji(_0x5e2430['severity']);_0x261cb2[_0x5f5303(0x114)]('####\x20'+_0x4a1285+'\x20['+_0x5e2430[_0x5f5303(0x101)]+']\x20Issue'),_0x261cb2['push'](''),_0x261cb2[_0x5f5303(0x114)](_0x5e2430['description']),_0x261cb2[_0x5f5303(0x114)]('');if(_0x5e2430['screenshot']){const _0x1943ad=_0x5e2430[_0x5f5303(0xfd)],_0x239313=_0x3e03af[_0x5f5303(0x118)](_0x5b4560=>_0x5b4560['filename']===_0x1943ad||_0x5b4560['filename']['includes'](_0x1943ad));_0x239313&&(_0x261cb2[_0x5f5303(0x114)](_0x5f5303(0x11d)),_0x261cb2['push'](''),_0x261cb2['push']('!['+_0x1943ad+']('+_0x239313['relativePath']+')'),_0x261cb2['push'](''));}}}if(_0x3e03af['length']>0x0){_0x261cb2['push']('##\x20Screenshots\x20('+_0x3e03af['length']+')'),_0x261cb2[_0x5f5303(0x114)]('');for(const _0x1e5aa9 of _0x3e03af){const _0x345087=formatScreenshotCaption(_0x1e5aa9[_0x5f5303(0xff)]);_0x261cb2[_0x5f5303(0x114)](_0x5f5303(0x10a)+_0x345087),_0x261cb2[_0x5f5303(0x114)](''),_0x261cb2['push']('!['+_0x1e5aa9['filename']+']('+_0x1e5aa9['relativePath']+')'),_0x261cb2[_0x5f5303(0x114)]('');}}return _0x3c8e97&&(_0x261cb2[_0x5f5303(0x114)](_0x5f5303(0x108)),_0x261cb2['push'](''),_0x261cb2[_0x5f5303(0x114)](_0x5f5303(0x113)+_0x3c8e97+')'),_0x261cb2['push']('')),_0x261cb2[_0x5f5303(0x11b)]('\x0a');}
@@ -1 +1 @@
1
- function _0x56e9(_0x483b20,_0x14ce18){_0x483b20=_0x483b20-0x158;const _0x381878=_0x3818();let _0x56e957=_0x381878[_0x483b20];return _0x56e957;}(function(_0x1dd333,_0x48797a){const _0x4ba383=_0x56e9,_0x1c860d=_0x1dd333();while(!![]){try{const _0x591355=-parseInt(_0x4ba383(0x15d))/0x1+parseInt(_0x4ba383(0x15b))/0x2*(-parseInt(_0x4ba383(0x160))/0x3)+-parseInt(_0x4ba383(0x159))/0x4*(parseInt(_0x4ba383(0x165))/0x5)+parseInt(_0x4ba383(0x162))/0x6*(parseInt(_0x4ba383(0x15a))/0x7)+parseInt(_0x4ba383(0x166))/0x8+parseInt(_0x4ba383(0x15f))/0x9+-parseInt(_0x4ba383(0x163))/0xa*(-parseInt(_0x4ba383(0x161))/0xb);if(_0x591355===_0x48797a)break;else _0x1c860d['push'](_0x1c860d['shift']());}catch(_0x50d9de){_0x1c860d['push'](_0x1c860d['shift']());}}}(_0x3818,0x9cf84));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x3818(){const _0x263a01=['4707SyjsuS','33dKTvNi','282eFPFNs','4790150xdxquh','label','2395zkVKaj','7563472qdYhWs','wvZHf','ms...','pow','752tsmfIL','31493uYPfoO','1070zDIrqy','maxRetries','1135757VSWdqG','),\x20retrying\x20in\x20','1028160NIOels'];_0x3818=function(){return _0x263a01;};return _0x3818();}export async function withRetry(_0xd4765,_0xb1aab0){const _0x3d4ec2=_0x56e9,_0x45a60d={'wvZHf':function(_0x1709d8,_0x173e89){return _0x1709d8 instanceof _0x173e89;},'DJVGc':function(_0x5323fd,_0x3008f1){return _0x5323fd*_0x3008f1;}},_0x1aeedb=_0xb1aab0?.[_0x3d4ec2(0x15c)]??DEFAULT_MAX_RETRIES,_0x5a33bc=_0xb1aab0?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x1fb90b;for(let _0x526e1e=0x0;_0x526e1e<=_0x1aeedb;_0x526e1e++){try{return await _0xd4765();}catch(_0x96e69f){_0x1fb90b=_0x45a60d[_0x3d4ec2(0x167)](_0x96e69f,Error)?_0x96e69f:new Error(String(_0x96e69f));if(_0x526e1e<_0x1aeedb){const _0x15d09e=_0x45a60d['DJVGc'](_0x5a33bc,Math[_0x3d4ec2(0x158)](0x2,_0x526e1e));_0xb1aab0?.['label']&&console['error'](_0xb1aab0[_0x3d4ec2(0x164)]+'\x20failed\x20(attempt\x20'+(_0x526e1e+0x1)+'/'+(_0x1aeedb+0x1)+_0x3d4ec2(0x15e)+_0x15d09e+_0x3d4ec2(0x168)),await new Promise(_0x5731f7=>setTimeout(_0x5731f7,_0x15d09e));}}}throw _0x1fb90b;}
1
+ (function(_0xec893c,_0x403d9e){const _0x1b6003=_0x24db,_0xc83bed=_0xec893c();while(!![]){try{const _0x4813e3=-parseInt(_0x1b6003(0x15f))/0x1*(parseInt(_0x1b6003(0x153))/0x2)+parseInt(_0x1b6003(0x15d))/0x3*(parseInt(_0x1b6003(0x155))/0x4)+-parseInt(_0x1b6003(0x157))/0x5*(-parseInt(_0x1b6003(0x159))/0x6)+-parseInt(_0x1b6003(0x15a))/0x7+parseInt(_0x1b6003(0x161))/0x8*(-parseInt(_0x1b6003(0x158))/0x9)+-parseInt(_0x1b6003(0x152))/0xa+parseInt(_0x1b6003(0x160))/0xb;if(_0x4813e3===_0x403d9e)break;else _0xc83bed['push'](_0xc83bed['shift']());}catch(_0x5bff39){_0xc83bed['push'](_0xc83bed['shift']());}}}(_0x3fdf,0xbe843));function _0x3fdf(){const _0x2a304e=['15397MlMsAm','28419941UcaOpX','24ZxUEQs','XTSAe','7746830CByCwv','166WcvtVP','baseDelayMs','138412TwPWSU','TVPxR','5WAmvcP','2318634vUuUTC','5932146HSpTIt','1460732jaZYRN','error','\x20failed\x20(attempt\x20','21GxwrRC','ms...'];_0x3fdf=function(){return _0x2a304e;};return _0x3fdf();}function _0x24db(_0x2e039a,_0x308a13){_0x2e039a=_0x2e039a-0x151;const _0x3fdfc0=_0x3fdf();let _0x24dbe7=_0x3fdfc0[_0x2e039a];return _0x24dbe7;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0xda3e61,_0x3194a2){const _0x40f387=_0x24db,_0x224045={'TVPxR':function(_0x48de01){return _0x48de01();},'NmkUC':function(_0x32367b,_0x5705cc){return _0x32367b<_0x5705cc;},'XTSAe':function(_0x369498,_0x4fe33f){return _0x369498*_0x4fe33f;},'szhwR':function(_0x2734c9,_0xbc301){return _0x2734c9+_0xbc301;}},_0x3978a4=_0x3194a2?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x548368=_0x3194a2?.[_0x40f387(0x154)]??DEFAULT_BASE_DELAY_MS;let _0x277ad1;for(let _0x673612=0x0;_0x673612<=_0x3978a4;_0x673612++){try{return await _0x224045[_0x40f387(0x156)](_0xda3e61);}catch(_0x3542d4){_0x277ad1=_0x3542d4 instanceof Error?_0x3542d4:new Error(String(_0x3542d4));if(_0x224045['NmkUC'](_0x673612,_0x3978a4)){const _0x828623=_0x224045[_0x40f387(0x151)](_0x548368,Math['pow'](0x2,_0x673612));_0x3194a2?.['label']&&console[_0x40f387(0x15b)](_0x3194a2['label']+_0x40f387(0x15c)+_0x224045['szhwR'](_0x673612,0x1)+'/'+_0x224045['szhwR'](_0x3978a4,0x1)+'),\x20retrying\x20in\x20'+_0x828623+_0x40f387(0x15e)),await new Promise(_0x35c100=>setTimeout(_0x35c100,_0x828623));}}}throw _0x277ad1;}
@@ -1 +1 @@
1
- const _0x3b8885=_0x4873;(function(_0x4c416a,_0x123cbb){const _0x32bcc0=_0x4873,_0x3b3d0b=_0x4c416a();while(!![]){try{const _0xf871fe=parseInt(_0x32bcc0(0x1c6))/0x1*(parseInt(_0x32bcc0(0x1df))/0x2)+parseInt(_0x32bcc0(0x1d7))/0x3+parseInt(_0x32bcc0(0x1e8))/0x4*(-parseInt(_0x32bcc0(0x1d6))/0x5)+parseInt(_0x32bcc0(0x1dd))/0x6*(-parseInt(_0x32bcc0(0x1e9))/0x7)+-parseInt(_0x32bcc0(0x1da))/0x8+-parseInt(_0x32bcc0(0x1f0))/0x9*(-parseInt(_0x32bcc0(0x1db))/0xa)+parseInt(_0x32bcc0(0x1ed))/0xb;if(_0xf871fe===_0x123cbb)break;else _0x3b3d0b['push'](_0x3b3d0b['shift']());}catch(_0x5dc490){_0x3b3d0b['push'](_0x3b3d0b['shift']());}}}(_0x1782,0x472a9));import*as _0x35318d from'fs';import*as _0x9f684 from'path';import*as _0x310575 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x9f684[_0x3b8885(0x1e3)](_0x310575[_0x3b8885(0x1c9)](),_0x3b8885(0x1ce),_0x3b8885(0x1cc));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x351eeb=_0x3b8885;try{if(_0x35318d['existsSync'](CACHE_FILE)){const _0x561bb7=JSON['parse'](_0x35318d['readFileSync'](CACHE_FILE,_0x351eeb(0x1e5)));return{'version':0x3,'sessions':_0x561bb7['sessions']||{},'branches':_0x561bb7[_0x351eeb(0x1d1)]||{},'lastEnabledSessionClearedAt':_0x561bb7['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x511281){const _0x2cacb6=_0x3b8885;try{const _0x229173=_0x9f684[_0x2cacb6(0x1c0)](CACHE_FILE);!_0x35318d[_0x2cacb6(0x1f2)](_0x229173)&&_0x35318d['mkdirSync'](_0x229173,{'recursive':!![]}),_0x35318d[_0x2cacb6(0x1c1)](CACHE_FILE,JSON[_0x2cacb6(0x1e7)](_0x511281,null,0x2));}catch{}}export function getCurrentBranch(){const _0x180cea=_0x3b8885,_0x39b3d6={'bZAMd':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','WxwCM':'utf-8','TVNDU':'pipe','ROZmf':function(_0x4d8be3,_0x41cf12){return _0x4d8be3===_0x41cf12;},'CaWNH':'HEAD'};try{const _0x232533=execSync(_0x39b3d6[_0x180cea(0x1ef)],{'encoding':_0x39b3d6['WxwCM'],'stdio':[_0x39b3d6[_0x180cea(0x1f1)],_0x39b3d6['TVNDU'],'pipe']})[_0x180cea(0x1ec)]();if(!_0x232533||_0x39b3d6['ROZmf'](_0x232533,_0x39b3d6['CaWNH']))return null;return _0x232533;}catch{return null;}}export function enableBranch(_0x1b2f83){const _0x205559=_0x3b8885,_0x3bc00c={'ZaHfB':function(_0x1c3016){return _0x1c3016();}},_0x48986b=_0x3bc00c['ZaHfB'](loadCache);_0x48986b[_0x205559(0x1d1)][_0x1b2f83]=!![],saveCache(_0x48986b);}function _0x1782(){const _0x481827=['dTPVA','refOP','DUIJB','join','gMgbJ','utf-8','lastEnabledSessionClearedAt','stringify','140sfSxOZ','7728cSOtVv','currentBranch','toISOString','trim','578611Ejwrhu','UOVmJ','bZAMd','4038957JpJxYk','TVNDU','existsSync','dirname','writeFileSync','now','VROhY','prompted','CpXOE','82eckKpc','WBBcB','Zaogj','homedir','lastPlanReminderAt','sessions','.ranger_cache.json','xWwgI','.claude','registeredAt','ufRnZ','branches','eCokG','master','CMMdF','enabled','32555gJpYjx','1453677btRdIV','clear','miOMv','3564760MsEheA','10sBIgNp','WsVam','2532LRqoVk','main','10852JsgOIy'];_0x1782=function(){return _0x481827;};return _0x1782();}export function disableBranch(_0x5742b3){const _0x386d1a=_0x3b8885,_0x1aeb00={'refOP':function(_0x1adac0){return _0x1adac0();},'JnxZi':function(_0x3f446c,_0x11a6fe){return _0x3f446c(_0x11a6fe);}},_0x2cdaa0=_0x1aeb00[_0x386d1a(0x1e1)](loadCache);delete _0x2cdaa0[_0x386d1a(0x1d1)][_0x5742b3],_0x1aeb00['JnxZi'](saveCache,_0x2cdaa0);}export function isBranchEnabled(_0x2d359f){const _0x75c790=_0x3b8885,_0x382f99={'dTPVA':function(_0x57a13b,_0x37c8db){return _0x57a13b===_0x37c8db;}},_0x16a75c=loadCache();return _0x382f99[_0x75c790(0x1e0)](_0x16a75c['branches'][_0x2d359f],!![]);}function getOrCreateSession(_0x571f93,_0x471fbb){const _0x10e2a8=_0x3b8885;return!_0x571f93[_0x10e2a8(0x1cb)][_0x471fbb]&&(_0x571f93[_0x10e2a8(0x1cb)][_0x471fbb]={}),_0x571f93[_0x10e2a8(0x1cb)][_0x471fbb];}export function enableSession(_0x24d0e3){const _0x3c5505=_0x3b8885,_0x4a83a5={'VROhY':function(_0x2fdab2){return _0x2fdab2();},'Zaogj':function(_0x5726d2,_0x54259c){return _0x5726d2!==_0x54259c;},'RcAIh':'master'},_0x25eb70=_0x4a83a5[_0x3c5505(0x1c3)](loadCache),_0x45217e=getOrCreateSession(_0x25eb70,_0x24d0e3);_0x45217e[_0x3c5505(0x1d5)]=!![];const _0x22f336=getCurrentBranch();_0x22f336&&_0x4a83a5[_0x3c5505(0x1c8)](_0x22f336,_0x3c5505(0x1de))&&_0x22f336!==_0x4a83a5['RcAIh']&&(_0x25eb70['branches'][_0x22f336]=!![],_0x45217e[_0x3c5505(0x1ea)]=_0x22f336),saveCache(_0x25eb70);}export function isSessionEnabled(_0x49da35){const _0x21e5b1=_0x3b8885,_0x5a46dc={'qEtyf':function(_0x59f292,_0x593201){return _0x59f292===_0x593201;}},_0x43dd21=loadCache(),_0x128177=getCurrentBranch();if(!_0x128177||_0x128177===_0x21e5b1(0x1de)||_0x5a46dc['qEtyf'](_0x128177,_0x21e5b1(0x1d3)))return _0x43dd21[_0x21e5b1(0x1cb)][_0x49da35]?.[_0x21e5b1(0x1d5)]===!![];const _0x437b92=_0x43dd21[_0x21e5b1(0x1d1)][_0x128177]===!![],_0x10c5b4=_0x5a46dc['qEtyf'](_0x43dd21['sessions'][_0x49da35]?.['enabled'],!![]);return _0x437b92||_0x10c5b4;}export function disableSession(_0x47e429){const _0x2a0902={'mxfFP':function(_0x48fb0f,_0x5cc3a5,_0x4831cf){return _0x48fb0f(_0x5cc3a5,_0x4831cf);}},_0xe64db2=loadCache(),_0x411d94=_0x2a0902['mxfFP'](getOrCreateSession,_0xe64db2,_0x47e429);_0x411d94['enabled']=![],saveCache(_0xe64db2);}export function updateBranchTracking(_0x1c4535){const _0x304beb=_0x3b8885,_0x10158e={'sRDhJ':function(_0x45df8f){return _0x45df8f();},'eCokG':'main','WBBcB':function(_0x453672,_0x192aff){return _0x453672!==_0x192aff;}},_0x6cbc67=_0x10158e['sRDhJ'](loadCache),_0x10fccd=_0x6cbc67[_0x304beb(0x1cb)][_0x1c4535];if(!_0x10fccd?.['enabled'])return;const _0x9eef9b=getCurrentBranch();if(!_0x9eef9b||_0x9eef9b===_0x10158e[_0x304beb(0x1d2)]||_0x9eef9b===_0x304beb(0x1d3))return;_0x10158e[_0x304beb(0x1c7)](_0x10fccd[_0x304beb(0x1ea)],_0x9eef9b)&&(_0x6cbc67['branches'][_0x9eef9b]=!![],_0x10fccd['currentBranch']=_0x9eef9b,saveCache(_0x6cbc67));}export function initBranchTracking(_0x504ffe){const _0x382a07=_0x3b8885,_0x38c87e={'ufRnZ':function(_0x59381f){return _0x59381f();},'mwTCg':'main','CcmfH':function(_0xbd0e63,_0x58c700){return _0xbd0e63===_0x58c700;},'wsadO':'master','xWwgI':function(_0x259bc1,_0x558165,_0x23be03){return _0x259bc1(_0x558165,_0x23be03);}},_0xeb7901=_0x38c87e[_0x382a07(0x1d0)](loadCache),_0x1e9246=getCurrentBranch();if(!_0x1e9246||_0x1e9246===_0x38c87e['mwTCg']||_0x38c87e['CcmfH'](_0x1e9246,_0x38c87e['wsadO']))return;if(_0xeb7901['branches'][_0x1e9246]===!![]){const _0x21d62e=_0x38c87e[_0x382a07(0x1cd)](getOrCreateSession,_0xeb7901,_0x504ffe);_0x21d62e[_0x382a07(0x1d5)]=!![],_0x21d62e['currentBranch']=_0x1e9246,saveCache(_0xeb7901);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x117d5a){const _0x54b241=_0x3b8885,_0x12c637={'HxrzU':function(_0x2fcb8b){return _0x2fcb8b();},'CGSGJ':function(_0x38d212,_0x522141){return _0x38d212(_0x522141);}},_0x439d98=_0x12c637['HxrzU'](loadCache),_0x3cddf2=_0x439d98['sessions'][_0x117d5a];_0x3cddf2?.[_0x54b241(0x1d5)]&&(_0x439d98[_0x54b241(0x1e6)]=Date[_0x54b241(0x1c2)](),_0x12c637['CGSGJ'](saveCache,_0x439d98));}export function shouldAutoEnableAfterClear(_0x1b78df){const _0x44acbb=_0x3b8885,_0x173a55={'oHRbv':function(_0x4a1c1f,_0x1334d9){return _0x4a1c1f!==_0x1334d9;},'WsVam':function(_0x3bfdae,_0x40c833){return _0x3bfdae-_0x40c833;},'gMgbJ':function(_0x29e038,_0xcaa6a6){return _0x29e038<=_0xcaa6a6;}};if(_0x173a55['oHRbv'](_0x1b78df,_0x44acbb(0x1d8)))return![];const _0x5f096e=loadCache(),_0x5f5255=_0x5f096e['lastEnabledSessionClearedAt'];if(!_0x5f5255)return![];const _0x43dff8=_0x173a55[_0x44acbb(0x1dc)](Date[_0x44acbb(0x1c2)](),_0x5f5255);return _0x173a55[_0x44acbb(0x1e4)](_0x43dff8,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x528b28){const _0x3f0b31=_0x3b8885,_0x241130={'miOMv':function(_0x5afc17){return _0x5afc17();},'XVGTj':function(_0x1dde5f,_0x418337){return _0x1dde5f!==_0x418337;},'CMMdF':'main','ArnoM':'master'},_0x2b57f5=_0x241130[_0x3f0b31(0x1d9)](loadCache),_0x4e5d44=getOrCreateSession(_0x2b57f5,_0x528b28);_0x4e5d44[_0x3f0b31(0x1d5)]=!![];const _0x4d9d19=getCurrentBranch();_0x4d9d19&&_0x241130['XVGTj'](_0x4d9d19,_0x241130[_0x3f0b31(0x1d4)])&&_0x241130['XVGTj'](_0x4d9d19,_0x241130['ArnoM'])&&(_0x4e5d44['currentBranch']=_0x4d9d19),delete _0x2b57f5[_0x3f0b31(0x1e6)],saveCache(_0x2b57f5);}export function registerSession(_0x398c62,_0x41ffbd){const _0x3981a3=_0x3b8885,_0x362df1={'TbgEK':function(_0x4cbba0){return _0x4cbba0();},'PYSWz':function(_0x1e4b65,_0x273d12,_0x156d47){return _0x1e4b65(_0x273d12,_0x156d47);},'uPrgl':function(_0x298776,_0x46c876){return _0x298776(_0x46c876);}},_0x2f38e3=_0x362df1['TbgEK'](loadCache),_0x5140ae=_0x362df1['PYSWz'](getOrCreateSession,_0x2f38e3,_0x398c62);_0x5140ae['featureId']=_0x41ffbd,_0x5140ae[_0x3981a3(0x1cf)]=new Date()[_0x3981a3(0x1eb)](),_0x362df1['uPrgl'](saveCache,_0x2f38e3);}export function getSessionEntry(_0x270c19){const _0x2b6188=_0x3b8885,_0x526103={'DUIJB':function(_0x5903d8){return _0x5903d8();}},_0x4eaaed=_0x526103[_0x2b6188(0x1e2)](loadCache),_0x30c4f0=_0x4eaaed[_0x2b6188(0x1cb)][_0x270c19];if(_0x30c4f0?.['featureId']&&_0x30c4f0?.[_0x2b6188(0x1cf)])return{'featureId':_0x30c4f0['featureId'],'registeredAt':_0x30c4f0[_0x2b6188(0x1cf)]};return null;}function _0x4873(_0x2bdd76,_0x55a40f){_0x2bdd76=_0x2bdd76-0x1c0;const _0x178291=_0x1782();let _0x487331=_0x178291[_0x2bdd76];return _0x487331;}export function unregisterSession(_0x4f4f09){const _0x5df50e={'ACYKx':function(_0x34de8e){return _0x34de8e();}},_0x20955e=_0x5df50e['ACYKx'](loadCache),_0x25acbc=_0x20955e['sessions'][_0x4f4f09];_0x25acbc&&(delete _0x25acbc['featureId'],delete _0x25acbc['registeredAt'],saveCache(_0x20955e));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x471fa2){const _0x42a98c=_0x3b8885,_0x4a6ef7={'CpXOE':function(_0x189505){return _0x189505();}},_0x452284=_0x4a6ef7[_0x42a98c(0x1c5)](loadCache),_0xa6347e=getOrCreateSession(_0x452284,_0x471fa2),_0x34f3ae=_0xa6347e['lastPlanReminderAt']||0x0,_0xa73b9=Date[_0x42a98c(0x1c2)]();if(_0xa73b9-_0x34f3ae>=PLAN_REMINDER_INTERVAL_MS)return _0xa6347e[_0x42a98c(0x1ca)]=_0xa73b9,saveCache(_0x452284),!![];return![];}export function hasSessionBeenPrompted(_0x1ed6e8){const _0x11c680=_0x3b8885,_0x3aa370=loadCache();return _0x3aa370['sessions'][_0x1ed6e8]?.[_0x11c680(0x1c4)]===!![];}export function markSessionPrompted(_0xa9f4fb){const _0x328e15=_0x3b8885,_0x3c049e={'UOVmJ':function(_0x2ad8c4,_0x298e91){return _0x2ad8c4(_0x298e91);}},_0x3b9bc0=loadCache(),_0x10cefc=getOrCreateSession(_0x3b9bc0,_0xa9f4fb);_0x10cefc['prompted']=!![],_0x3c049e[_0x328e15(0x1ee)](saveCache,_0x3b9bc0);}export function getCacheFile(){return CACHE_FILE;}
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 +1 @@
1
- (function(_0x3d4bf2,_0xab0b49){const _0x4bf30b=_0x2647,_0x257b68=_0x3d4bf2();while(!![]){try{const _0x396bf2=parseInt(_0x4bf30b(0x12c))/0x1+-parseInt(_0x4bf30b(0x114))/0x2*(parseInt(_0x4bf30b(0x10e))/0x3)+parseInt(_0x4bf30b(0xf9))/0x4*(parseInt(_0x4bf30b(0x144))/0x5)+parseInt(_0x4bf30b(0x121))/0x6*(-parseInt(_0x4bf30b(0x105))/0x7)+parseInt(_0x4bf30b(0x136))/0x8*(parseInt(_0x4bf30b(0x139))/0x9)+-parseInt(_0x4bf30b(0x10a))/0xa+parseInt(_0x4bf30b(0x143))/0xb*(parseInt(_0x4bf30b(0x112))/0xc);if(_0x396bf2===_0xab0b49)break;else _0x257b68['push'](_0x257b68['shift']());}catch(_0x571321){_0x257b68['push'](_0x257b68['shift']());}}}(_0x3447,0xb5b29));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(_0x27a44b){const _0x363fcb=_0x2647,_0x478639={'cYNUq':function(_0x1be75d){return _0x1be75d();},'vFReQ':function(_0x2fdd81,_0x4a4d7d,_0x47d5fa,_0x153e87){return _0x2fdd81(_0x4a4d7d,_0x47d5fa,_0x153e87);},'ecnFH':function(_0x44ac81,_0x455612,_0x45beb6,_0x1e2388){return _0x44ac81(_0x455612,_0x45beb6,_0x1e2388);},'XVpfb':function(_0x402ade,_0x463bcc,_0x43043e){return _0x402ade(_0x463bcc,_0x43043e);},'kCDYQ':function(_0x25ec5a,_0x3ca41e,_0x38faf7){return _0x25ec5a(_0x3ca41e,_0x38faf7);},'xSiEF':function(_0x3d118d,_0x5e6dff){return _0x3d118d(_0x5e6dff);}},_0x512f06=_0x478639[_0x363fcb(0x137)](getRangerDir),_0x266f17=_0x478639['vFReQ'](join,_0x512f06,'ci',_0x27a44b),_0x4c5d88=_0x478639['ecnFH'](join,_0x512f06,'local',_0x27a44b),_0x3fb019=join(_0x512f06,_0x27a44b),_0x206b52=_0x478639[_0x363fcb(0x115)](join,_0x512f06,_0x363fcb(0x13f)),_0x341f21=_0x478639[_0x363fcb(0x11c)](join,_0x512f06,'ci');if(existsSync(_0x266f17))return _0x266f17;if(_0x478639['xSiEF'](existsSync,_0x4c5d88))return _0x4c5d88;if(existsSync(_0x3fb019)&&(_0x3fb019!==_0x206b52&&_0x3fb019!==_0x341f21?!![]:hasLegacyProfileFiles(_0x3fb019)))return _0x3fb019;return _0x4c5d88;}export function findExistingEnv(_0x267df0,_0x37266f){const _0x179d64=_0x2647,_0x1a9466={'jeIaO':function(_0x336b02,_0x276a2d,_0x277a94){return _0x336b02(_0x276a2d,_0x277a94);},'HVOPF':function(_0x5f987a,_0x2a2f55,_0x3df2b6,_0x193c88){return _0x5f987a(_0x2a2f55,_0x3df2b6,_0x193c88);},'ofrUw':'legacy','ATPkL':function(_0x2d634f,_0x9799a7,_0x129e2b){return _0x2d634f(_0x9799a7,_0x129e2b);},'nSMuO':function(_0xc0f1f0,_0x2b16f9){return _0xc0f1f0===_0x2b16f9;},'sSOyI':function(_0x4c3c86,_0x37a174){return _0x4c3c86(_0x37a174);}},_0x1e6287=getRangerDir(),_0x5e2b16=_0x37266f?.[_0x179d64(0x101)]??['ci','local',_0x179d64(0x13a)],_0x162bbc=_0x1a9466[_0x179d64(0x140)](join,_0x1e6287,_0x179d64(0x13f)),_0x95dfff=_0x1a9466[_0x179d64(0x140)](join,_0x1e6287,'ci'),_0x4bff3e=[{'location':'ci','path':_0x1a9466['HVOPF'](join,_0x1e6287,'ci',_0x267df0)},{'location':'local','path':_0x1a9466[_0x179d64(0x117)](join,_0x1e6287,'local',_0x267df0)},{'location':_0x1a9466['ofrUw'],'path':_0x1a9466[_0x179d64(0xf5)](join,_0x1e6287,_0x267df0)}];for(const _0x512348 of _0x4bff3e){if(_0x5e2b16['includes'](_0x512348[_0x179d64(0x107)])&&existsSync(_0x512348[_0x179d64(0x104)])){if(_0x512348[_0x179d64(0x107)]===_0x1a9466['ofrUw']&&(_0x512348['path']===_0x162bbc||_0x1a9466['nSMuO'](_0x512348[_0x179d64(0x104)],_0x95dfff))&&!_0x1a9466[_0x179d64(0x12d)](hasLegacyProfileFiles,_0x512348['path']))continue;return{'path':_0x512348[_0x179d64(0x104)],'location':_0x512348['location']};}}return null;}function hasLegacyProfileFiles(_0x26acac){const _0x225f61=_0x2647,_0x157c1e={'uTChZ':function(_0x27c0ce,_0x2a2e4c,_0x3d5d4d){return _0x27c0ce(_0x2a2e4c,_0x3d5d4d);},'ITeVK':_0x225f61(0x122),'YVMLN':function(_0x306c53,_0x242cbc,_0x37f3c2){return _0x306c53(_0x242cbc,_0x37f3c2);},'GeFyX':_0x225f61(0xf4),'WeHdz':function(_0x1f8303,_0x229e5f){return _0x1f8303(_0x229e5f);}};return existsSync(_0x157c1e[_0x225f61(0x110)](join,_0x26acac,_0x157c1e[_0x225f61(0x131)]))||existsSync(_0x157c1e[_0x225f61(0x120)](join,_0x26acac,_0x157c1e[_0x225f61(0x119)]))||_0x157c1e[_0x225f61(0x141)](existsSync,join(_0x26acac,'auth.json.enc'));}export function isEnvCi(_0x413d91){const _0x10357f=_0x2647,_0x3bd8e5={'dgqkj':function(_0x492e87,_0x2b4be1){return _0x492e87(_0x2b4be1);},'uxowR':function(_0x6c1197,_0x1415c4,_0x40aa71,_0x5c43dc){return _0x6c1197(_0x1415c4,_0x40aa71,_0x5c43dc);}};return _0x3bd8e5[_0x10357f(0xf6)](existsSync,_0x3bd8e5[_0x10357f(0x11d)](join,getRangerDir(),'ci',_0x413d91));}export async function cleanupTempFiles(_0x1e7d41){const _0x25f396=_0x2647,_0x23bf5b={'FXcPi':_0x25f396(0x116)},_0x42132f=[_0x1e7d41[_0x25f396(0x128)],_0x1e7d41[_0x25f396(0x133)]]['filter'](Boolean);await Promise[_0x25f396(0x103)](_0x42132f['map'](_0x149627=>unlink(_0x149627)['catch'](_0x2c3fb7=>{const _0x2a4062=_0x25f396;_0x2c3fb7[_0x2a4062(0x138)]!==_0x23bf5b[_0x2a4062(0x102)]&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x149627+':',_0x2c3fb7[_0x2a4062(0x118)]);})));}export function getSettingsPath(_0x52c904){return join(getEnvDir(_0x52c904),'settings.json');}export async function loadSettings(_0x1de337){const _0x55519f=_0x2647,_0xe356b6={'DRyla':function(_0x4c310f,_0x4964a6){return _0x4c310f(_0x4964a6);},'YysDw':function(_0x2a5ef8,_0x46ae0e,_0x23cf80){return _0x2a5ef8(_0x46ae0e,_0x23cf80);}},_0x3bfa26=_0xe356b6[_0x55519f(0x11f)](getSettingsPath,_0x1de337);if(!existsSync(_0x3bfa26))return{};try{const _0x1c5ca0=await _0xe356b6[_0x55519f(0x106)](readFile,_0x3bfa26,_0x55519f(0x142));return JSON['parse'](_0x1c5ca0);}catch{return{};}}export async function saveSettings(_0x499dd9,_0x1a0c89){const _0xa29ec2=_0x2647,_0x377972={'NkEWm':function(_0x5a03af,_0x57f513){return _0x5a03af(_0x57f513);},'QZotS':function(_0x24b4ca,_0x1ea18d){return _0x24b4ca(_0x1ea18d);},'mwnkY':function(_0x3d2c07,_0x4db269,_0x19bfa5){return _0x3d2c07(_0x4db269,_0x19bfa5);}},_0x1986c5=_0x377972[_0xa29ec2(0x109)](getSettingsPath,_0x499dd9),_0x4c357f=_0x377972[_0xa29ec2(0x127)](dirname,_0x1986c5);!_0x377972['NkEWm'](existsSync,_0x4c357f)&&await mkdir(_0x4c357f,{'recursive':!![]}),await _0x377972['mwnkY'](writeFile,_0x1986c5,JSON['stringify'](_0x1a0c89,null,0x2));}function _0x2647(_0x531eba,_0x551124){_0x531eba=_0x531eba-0xf4;const _0x3447d5=_0x3447();let _0x26474d=_0x3447d5[_0x531eba];return _0x26474d;}export function resolveEnvVars(_0x1a8800){const _0x294319=_0x2647,_0x488aae={'LltBX':function(_0x2d107c,_0x40bf95){return _0x2d107c===_0x40bf95;},'loJHU':_0x294319(0x11a),'WQFHx':function(_0x1172b8,_0x40e570){return _0x1172b8===_0x40e570;}};if(typeof _0x1a8800===_0x488aae['loJHU'])return _0x1a8800['replace'](/\$\{(\w+)\}/g,(_0x4c4e90,_0x1c0106)=>{const _0x1001ef=_0x294319,_0x2bad39=process[_0x1001ef(0x132)][_0x1c0106];if(_0x488aae['LltBX'](_0x2bad39,undefined))throw new Error(_0x1001ef(0x124)+_0x1c0106+_0x1001ef(0x111));return _0x2bad39;});if(Array['isArray'](_0x1a8800))return _0x1a8800['map'](resolveEnvVars);if(_0x1a8800&&_0x488aae[_0x294319(0x11b)](typeof _0x1a8800,_0x294319(0x113)))return Object['fromEntries'](Object['entries'](_0x1a8800)[_0x294319(0xfb)](([_0x8531a1,_0x1ea311])=>[_0x8531a1,resolveEnvVars(_0x1ea311)]));return _0x1a8800;}function _0x3447(){const _0xb56362=['push','vision','userAgent','ITeVK','env','configPath','cdpEndpoint','JqdFB','40BqRTPf','cYNUq','code','817461emMxKt','legacy','join','split','KTbmu','NSfvy','local','jeIaO','WeHdz','utf-8','26903547sFYVeS','614920FKcPiN','--disable-setuid-sandbox','headers','auth.json','ATPkL','dgqkj','kJcMK','BavtV','16ZYGGFc','stringify','map','zCZVI','upOHK','browser','chromium','YzUdK','locations','FXcPi','all','path','47614SXahnh','YysDw','location','Failed\x20to\x20decrypt\x20auth\x20state:\x20','NkEWm','11573460tyoElX','mVOBv','auth.json.enc','ZysIV','4384110STuror','ranger-auth-','uTChZ','\x20is\x20not\x20set','12udElCN','object','2jUgALN','XVpfb','ENOENT','HVOPF','message','GeFyX','string','WQFHx','kCDYQ','uxowR','bJfqC','DRyla','YVMLN','408rbNdDN','settings.json','jWCXR','Environment\x20variable\x20','.json','repeat','QZotS','tempAuthPath','length','now','XtCrS','433627PSZLFS','sSOyI'];_0x3447=function(){return _0xb56362;};return _0x3447();}export async function buildPlaywrightConfig(_0xa5d4c6,_0x901a26,_0x251151,_0x322981){const _0x3649ee=_0x2647,_0x384640={'mVOBv':function(_0x104ddc,_0x2b2d66){return _0x104ddc(_0x2b2d66);},'YzUdK':function(_0x3c97a5,_0x585d0c,_0x2f6c4b){return _0x3c97a5(_0x585d0c,_0x2f6c4b);},'tXtRH':_0x3649ee(0x10c),'fmxkW':'auth.json','jWCXR':function(_0x49d7cb){return _0x49d7cb();},'TFdLx':function(_0x40da2a,_0x4d129c,_0x4b3f65){return _0x40da2a(_0x4d129c,_0x4b3f65);},'xhQXh':function(_0x14f77d,_0x131af5){return _0x14f77d(_0x131af5);},'VavOY':function(_0x26e73a,_0x445e0f,_0x37eb14,_0x18f1b7){return _0x26e73a(_0x445e0f,_0x37eb14,_0x18f1b7);},'NSfvy':function(_0x5730db){return _0x5730db();},'lsnoS':'sessions','YIvLF':function(_0x24afa2,_0x2c5e29){return _0x24afa2(_0x2c5e29);},'JROUS':'chromium','egCzP':'--no-sandbox','YsrpV':'clipboard-read','qdvsj':'clipboard-write','bJfqC':'core','YZUdh':'tabs','ZysIV':'allow','JODwM':'ranger-config','JLvty':function(_0x30c42c,_0x531b32){return _0x30c42c(_0x531b32);}},_0x499c15=_0x384640['mVOBv'](getEnvDir,_0x901a26),_0x290945=_0x384640[_0x3649ee(0x100)](join,_0x499c15,_0x384640['tXtRH']),_0x3a4505=_0x384640[_0x3649ee(0x100)](join,_0x499c15,_0x384640['fmxkW']);let _0x371151,_0x862076;if(_0x384640[_0x3649ee(0x10b)](existsSync,_0x290945))try{const _0x5e4c68=await _0x384640['jWCXR'](getToken);if(!_0x5e4c68)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x15a2ae=await _0x384640['mVOBv'](readFile,_0x290945),_0x2066a9=decrypt(_0x15a2ae,_0x5e4c68);_0x862076=join(_0x384640[_0x3649ee(0x123)](tmpdir),_0x3649ee(0x10f)+Date[_0x3649ee(0x12a)]()+_0x3649ee(0x125)),await _0x384640['TFdLx'](writeFile,_0x862076,_0x2066a9),_0x371151=_0x862076;}catch(_0x3a96b9){const _0x22430f=_0x3a96b9 instanceof Error?_0x3a96b9['message']:String(_0x3a96b9);throw new Error(_0x3649ee(0x108)+_0x22430f);}else _0x384640['xhQXh'](existsSync,_0x3a4505)&&(_0x371151=_0x3a4505);const _0x283637=_0x251151||randomUUID(),_0x20aee1=_0x384640['VavOY'](join,_0x384640['NSfvy'](getRangerDir),_0x384640['lsnoS'],_0x283637),_0x4ac386=_0x384640['YIvLF'](Boolean,_0xa5d4c6[_0x3649ee(0x134)]),_0x52a373=_0x4ac386?{'browserName':_0x3649ee(0xff),'cdpEndpoint':_0xa5d4c6[_0x3649ee(0x134)]}:{'isolated':!![],'browserName':_0x384640['JROUS'],'launchOptions':{'headless':_0x322981?![]:_0xa5d4c6['headless']??!![],...process['getuid']?.()===0x0&&{'args':[_0x384640['egCzP'],_0x3649ee(0x145)]}},'contextOptions':{'permissions':[_0x384640['YsrpV'],_0x384640['qdvsj']],'userAgent':_0xa5d4c6[_0x3649ee(0x130)]||undefined,'extraHTTPHeaders':_0xa5d4c6[_0x3649ee(0x146)]||{},'storageState':_0x371151,'viewport':{'width':0x500,'height':0x2d0}}},_0x87aacc={'name':_0x901a26,'browser':_0x52a373,'capabilities':[_0x384640[_0x3649ee(0x11e)],_0x384640['YZUdh'],'install','pdf',_0x3649ee(0x12f)],'imageResponses':_0x384640[_0x3649ee(0x10d)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x20aee1};if(!_0x4ac386){const _0x2ce8ce=_0x87aacc[_0x3649ee(0xfe)],_0x5380eb=_0x2ce8ce['contextOptions'];if(_0x5380eb['userAgent']===undefined)delete _0x5380eb['userAgent'];if(_0x5380eb['storageState']===undefined)delete _0x5380eb['storageState'];}const _0x3c7787=join(_0x384640[_0x3649ee(0x13e)](tmpdir),_0x384640['JODwM']);!_0x384640['JLvty'](existsSync,_0x3c7787)&&await mkdir(_0x3c7787,{'recursive':!![]});const _0x5167a6=join(_0x3c7787,_0x901a26+'-'+Date[_0x3649ee(0x12a)]()+_0x3649ee(0x125));return await writeFile(_0x5167a6,JSON[_0x3649ee(0xfa)](_0x87aacc,null,0x2)),{'configPath':_0x5167a6,'tempAuthPath':_0x862076};}export function getNestedValue(_0x2aa4cf,_0x2b4eaf){const _0x5c263d=_0x2647,_0x449950={'JqdFB':function(_0x28245c,_0x53f6f9){return _0x28245c(_0x53f6f9);},'zCZVI':function(_0x3e249b,_0x33a058){return _0x3e249b===_0x33a058;},'upOHK':function(_0x24aa9e,_0x2e18c3){return _0x24aa9e!==_0x2e18c3;}},_0x3004f2=_0x449950[_0x5c263d(0x135)](parseKeyPath,_0x2b4eaf);let _0x4eb567=_0x2aa4cf;for(const _0x5dde16 of _0x3004f2){if(_0x4eb567===null||_0x449950[_0x5c263d(0xfc)](_0x4eb567,undefined)||_0x449950[_0x5c263d(0xfd)](typeof _0x4eb567,_0x5c263d(0x113)))return undefined;_0x4eb567=_0x4eb567[_0x5dde16];}return _0x4eb567;}export function setNestedValue(_0xae76a9,_0x2bbf6b,_0xf967b3){const _0x507a7d=_0x2647,_0x5b12fa={'apyaM':function(_0x1d963c,_0x1f9fc1){return _0x1d963c(_0x1f9fc1);},'BavtV':function(_0x2d90cb,_0x2ffc70){return _0x2d90cb<_0x2ffc70;},'LiCBm':function(_0x4b049b,_0x2db992){return _0x4b049b in _0x2db992;},'scbUj':_0x507a7d(0x113)},_0x4d97c3=_0x5b12fa['apyaM'](parseKeyPath,_0x2bbf6b);let _0x128a4a=_0xae76a9;for(let _0x4e2c44=0x0;_0x5b12fa[_0x507a7d(0xf8)](_0x4e2c44,_0x4d97c3[_0x507a7d(0x129)]-0x1);_0x4e2c44++){const _0x5f1117=_0x4d97c3[_0x4e2c44];(!_0x5b12fa['LiCBm'](_0x5f1117,_0x128a4a)||typeof _0x128a4a[_0x5f1117]!==_0x5b12fa['scbUj'])&&(_0x128a4a[_0x5f1117]={}),_0x128a4a=_0x128a4a[_0x5f1117];}_0x128a4a[_0x4d97c3[_0x4d97c3[_0x507a7d(0x129)]-0x1]]=_0xf967b3;}export function deleteNestedValue(_0x31ad9b,_0xbdf270){const _0x2f9684=_0x2647,_0x388a7b={'XtCrS':function(_0x2950fb,_0x5abd0b){return _0x2950fb(_0x5abd0b);},'kJcMK':_0x2f9684(0x113)},_0x1e7257=_0x388a7b[_0x2f9684(0x12b)](parseKeyPath,_0xbdf270);let _0x2de7d3=_0x31ad9b;for(let _0x40ffe9=0x0;_0x40ffe9<_0x1e7257['length']-0x1;_0x40ffe9++){if(_0x2de7d3===null||_0x2de7d3===undefined||typeof _0x2de7d3!==_0x388a7b[_0x2f9684(0xf7)])return![];_0x2de7d3=_0x2de7d3[_0x1e7257[_0x40ffe9]];}if(_0x2de7d3===null||_0x2de7d3===undefined||typeof _0x2de7d3!==_0x388a7b[_0x2f9684(0xf7)])return![];const _0x552183=_0x1e7257[_0x1e7257['length']-0x1];if(_0x552183 in _0x2de7d3)return delete _0x2de7d3[_0x552183],!![];return![];}function parseKeyPath(_0x3c7391){const _0x31091b=_0x2647,_0x4c5a0b={'KTbmu':function(_0x1d7491,_0x24bfe4){return _0x1d7491===_0x24bfe4;},'wdKfA':'header','lJjRB':_0x31091b(0x146)},_0xd21826=_0x3c7391[_0x31091b(0x13c)]('.');return _0x4c5a0b[_0x31091b(0x13d)](_0xd21826[0x0],_0x4c5a0b['wdKfA'])&&(_0xd21826[0x0]=_0x4c5a0b['lJjRB']),_0xd21826;}export function formatSettings(_0x22417e,_0x2d669d=0x0){const _0x112c7d=_0x2647,_0x5c77b7={'hwfdo':function(_0x5612c9,_0x30fad2){return _0x5612c9===_0x30fad2;}},_0x1409c6=[],_0x29d7b5='\x20\x20'[_0x112c7d(0x126)](_0x2d669d);for(const [_0x221124,_0x30484e]of Object['entries'](_0x22417e)){if(_0x5c77b7['hwfdo'](_0x30484e,undefined))continue;if(_0x5c77b7['hwfdo'](typeof _0x30484e,_0x112c7d(0x113))&&_0x30484e!==null){_0x1409c6[_0x112c7d(0x12e)](''+_0x29d7b5+_0x221124+':');for(const [_0x3f22b8,_0x3ae247]of Object['entries'](_0x30484e)){_0x1409c6['push'](_0x29d7b5+'\x20\x20'+_0x3f22b8+':\x20'+_0x3ae247);}}else _0x1409c6[_0x112c7d(0x12e)](''+_0x29d7b5+_0x221124+':\x20'+_0x30484e);}return _0x1409c6[_0x112c7d(0x13b)]('\x0a');}
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 +1 @@
1
- (function(_0x1ec32a,_0x1ccf74){const _0x75bfd6=_0x2120,_0x39ec1e=_0x1ec32a();while(!![]){try{const _0xfc6056=parseInt(_0x75bfd6(0x1c8))/0x1*(-parseInt(_0x75bfd6(0x1c5))/0x2)+-parseInt(_0x75bfd6(0x1d3))/0x3*(-parseInt(_0x75bfd6(0x1cd))/0x4)+parseInt(_0x75bfd6(0x1cf))/0x5+parseInt(_0x75bfd6(0x1d0))/0x6*(-parseInt(_0x75bfd6(0x1c7))/0x7)+parseInt(_0x75bfd6(0x1ce))/0x8*(-parseInt(_0x75bfd6(0x1c9))/0x9)+-parseInt(_0x75bfd6(0x1cb))/0xa+parseInt(_0x75bfd6(0x1cc))/0xb;if(_0xfc6056===_0x1ccf74)break;else _0x39ec1e['push'](_0x39ec1e['shift']());}catch(_0x364719){_0x39ec1e['push'](_0x39ec1e['shift']());}}}(_0x4f65,0xdc59f));import{readFileSync}from'fs';function _0x4f65(){const _0x371ffc=['5579370klApwS','3292566SsdYym','utf-8','skills','30KHrqHE','2WDCHVD','ranger/SKILL.md','21jGQamD','41521IXzMwZ','703287ZDYOcT','CEhgF','673710EPcCog','12031987XXFPVi','460532sQDjtz','72IbCNRN'];_0x4f65=function(){return _0x371ffc;};return _0x4f65();}function _0x2120(_0x4b7e5c,_0x59af1f){_0x4b7e5c=_0x4b7e5c-0x1c5;const _0x4f65cc=_0x4f65();let _0x212046=_0x4f65cc[_0x4b7e5c];return _0x212046;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x486267){const _0x20e073=_0x2120,_0x551ea5={'DtAsX':function(_0x2b0b85,_0x4b7fd9,_0x228657,_0xf4297b,_0x5cbc70){return _0x2b0b85(_0x4b7fd9,_0x228657,_0xf4297b,_0x5cbc70);},'CEhgF':function(_0x3f7389,_0x34f760,_0x2711b2){return _0x3f7389(_0x34f760,_0x2711b2);},'JQiXO':_0x20e073(0x1d1)},_0xb36265=_0x551ea5['DtAsX'](join,__dirname,'..','..',_0x20e073(0x1d2)),_0x27c437=_0x551ea5[_0x20e073(0x1ca)](join,_0xb36265,_0x486267);try{return readFileSync(_0x27c437,_0x551ea5['JQiXO']);}catch{return'';}}export function getRangerSkillContent(){const _0x8536f4=_0x2120;return readSkillContent(_0x8536f4(0x1c6));}
1
+ (function(_0x57b883,_0x50d412){const _0xc39cb9=_0x2450,_0x1312f5=_0x57b883();while(!![]){try{const _0x399231=parseInt(_0xc39cb9(0x1a8))/0x1*(parseInt(_0xc39cb9(0x1aa))/0x2)+parseInt(_0xc39cb9(0x19f))/0x3+-parseInt(_0xc39cb9(0x1a3))/0x4*(parseInt(_0xc39cb9(0x1ab))/0x5)+parseInt(_0xc39cb9(0x1a1))/0x6*(parseInt(_0xc39cb9(0x1a9))/0x7)+parseInt(_0xc39cb9(0x1a7))/0x8*(-parseInt(_0xc39cb9(0x1a4))/0x9)+-parseInt(_0xc39cb9(0x1a5))/0xa*(parseInt(_0xc39cb9(0x1a2))/0xb)+-parseInt(_0xc39cb9(0x1a6))/0xc*(-parseInt(_0xc39cb9(0x1a0))/0xd);if(_0x399231===_0x50d412)break;else _0x1312f5['push'](_0x1312f5['shift']());}catch(_0x3ce17b){_0x1312f5['push'](_0x1312f5['shift']());}}}(_0x158f,0x9172c));function _0x158f(){const _0x40f23b=['13HHFqLB','5429538oyFVUm','3883TsQRXl','4396xeEFmz','558081CWAjOF','2420ECexpo','6573804BncJCU','72XcJuig','1qbuact','7gyVGSS','808552GOqjav','5095ZczcbI','1506384soUvKi'];_0x158f=function(){return _0x40f23b;};return _0x158f();}function _0x2450(_0xb08759,_0x28d613){_0xb08759=_0xb08759-0x19f;const _0x158f65=_0x158f();let _0x2450a8=_0x158f65[_0xb08759];return _0x2450a8;}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5c1512){const _0x19b0ae={'jmTsi':function(_0x32aff8,_0x16bfe7,_0x3d5a19,_0x1cc6b2,_0xc5a6dc){return _0x32aff8(_0x16bfe7,_0x3d5a19,_0x1cc6b2,_0xc5a6dc);},'pUBTP':function(_0x406572,_0x2cfe8e,_0x2995ca){return _0x406572(_0x2cfe8e,_0x2995ca);},'BCUCv':'utf-8'},_0x2e07db=_0x19b0ae['jmTsi'](join,__dirname,'..','..','skills'),_0x4a03c5=join(_0x2e07db,_0x5c1512);try{return _0x19b0ae['pUBTP'](readFileSync,_0x4a03c5,_0x19b0ae['BCUCv']);}catch{return'';}}export function getRangerSkillContent(){const _0x1e994a={'ysgPb':function(_0x2e50dd,_0x294490){return _0x2e50dd(_0x294490);}};return _0x1e994a['ysgPb'](readSkillContent,'ranger/SKILL.md');}
@@ -1 +1 @@
1
- const _0x3655c5=_0x50fa;(function(_0x5f4f23,_0x1784ba){const _0x563750=_0x50fa,_0x4111ed=_0x5f4f23();while(!![]){try{const _0x42734a=parseInt(_0x563750(0x1eb))/0x1*(parseInt(_0x563750(0x1df))/0x2)+parseInt(_0x563750(0x1e4))/0x3*(parseInt(_0x563750(0x1db))/0x4)+parseInt(_0x563750(0x1f3))/0x5*(parseInt(_0x563750(0x1e5))/0x6)+parseInt(_0x563750(0x1f0))/0x7*(parseInt(_0x563750(0x1e0))/0x8)+parseInt(_0x563750(0x1d8))/0x9*(parseInt(_0x563750(0x1ed))/0xa)+parseInt(_0x563750(0x1ea))/0xb+-parseInt(_0x563750(0x1d7))/0xc;if(_0x42734a===_0x1784ba)break;else _0x4111ed['push'](_0x4111ed['shift']());}catch(_0x5e249c){_0x4111ed['push'](_0x4111ed['shift']());}}}(_0xd0bf,0x4034d));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0xd0bf(){const _0x82f2dc=['\x20\x20Installed\x20skill:\x20','hVbnY','zkEWQ','320683JmoiPd','7XQpeZR','hlcYm','8770eQXkip','LXTDB','claude','112399RZtvdD','ranger','skills','2215FkeGTw','push','8756412ukeFZj','333XpuOoI','Invalid\x20skill\x20frontmatter','uToft','1570124DgvjUE','warn','bug-bash','endsWith','72934RNMrfv','48DAgvTF','nUjvb','SKILL.md','UCBoO','3FTBJgP','2532gjHFuD','log'];_0xd0bf=function(){return _0x82f2dc;};return _0xd0bf();}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=[_0x3655c5(0x1f1)];function _0x50fa(_0x2a5c99,_0x590c02){_0x2a5c99=_0x2a5c99-0x1d6;const _0xd0bf64=_0xd0bf();let _0x50fa80=_0xd0bf64[_0x2a5c99];return _0x50fa80;}export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x3655c5(0x1dd),'feature-tracker'];export async function installSkill(_0x41f9ec,_0x5c2843={}){const _0x110006=_0x3655c5,_0x984c1a={'UCBoO':function(_0x3958af,_0x2a43b3,_0x26f550){return _0x3958af(_0x2a43b3,_0x26f550);},'haJcp':function(_0x1564d9,_0x12e5d7){return _0x1564d9(_0x12e5d7);},'hlcYm':_0x110006(0x1e2),'jZDyw':function(_0x5e494c,_0x10d1ce){return _0x5e494c&&_0x10d1ce;},'pddwH':function(_0x5f4295,_0x241de1){return _0x5f4295(_0x241de1);},'nUjvb':'utf-8','zkEWQ':function(_0x4ad120,_0xf99d43){return _0x4ad120(_0xf99d43);},'cpEgb':function(_0xc22e7d,_0x1e9cd0){return _0xc22e7d>_0x1e9cd0;},'uToft':function(_0x3133eb,_0x31e8e2,_0x443233,_0x13c5e8){return _0x3133eb(_0x31e8e2,_0x443233,_0x13c5e8);}},{level:level='project',cliVersion:_0x5c8b0b,platform:platform=_0x110006(0x1ef)}=_0x5c2843,_0x289b83=getSourceSkillsDir(),_0x359eb5=join(_0x289b83,_0x41f9ec),_0x1662a5=_0x984c1a[_0x110006(0x1e3)](join,_0x289b83,_0x41f9ec+'.md'),_0x491374=existsSync(_0x359eb5)&&statSync(_0x359eb5)['isDirectory']()&&_0x984c1a['haJcp'](existsSync,join(_0x359eb5,_0x984c1a[_0x110006(0x1ec)])),_0x122c45=_0x984c1a['haJcp'](existsSync,_0x1662a5);if(_0x984c1a['jZDyw'](!_0x491374,!_0x122c45))return console[_0x110006(0x1dc)]('\x20\x20Skill\x20not\x20found:\x20'+_0x41f9ec),![];const _0x429853=platform==='opencode'?_0x984c1a['pddwH'](getOpencodeSkillsDir,level):getSkillsDir(level),_0x1d06c3=join(_0x429853,_0x41f9ec);await _0x984c1a['UCBoO'](mkdir,_0x1d06c3,{'recursive':!![]});let _0x2337f7,_0x52d9be=[];if(_0x491374){const _0x36f6a6=await readdir(_0x359eb5),_0x1a84dc=_0x36f6a6['filter'](_0x5b6495=>_0x5b6495[_0x110006(0x1de)]('.md'));for(const _0x3f74e1 of _0x1a84dc){const _0x446e18=_0x984c1a[_0x110006(0x1e3)](join,_0x359eb5,_0x3f74e1),_0x1e8f41=join(_0x1d06c3,_0x3f74e1);await copyFile(_0x446e18,_0x1e8f41),_0x52d9be['push'](_0x3f74e1);}_0x2337f7=await readFile(join(_0x359eb5,_0x984c1a[_0x110006(0x1ec)]),_0x984c1a['nUjvb']);}else{_0x2337f7=await _0x984c1a['UCBoO'](readFile,_0x1662a5,'utf-8');const _0x3b914f=join(_0x1d06c3,_0x984c1a['hlcYm']);await writeFile(_0x3b914f,_0x2337f7,_0x984c1a[_0x110006(0x1e1)]),_0x52d9be[_0x110006(0x1d6)](_0x984c1a[_0x110006(0x1ec)]);}const {name:_0x16f76a}=_0x984c1a[_0x110006(0x1e9)](parseFrontmatter,_0x2337f7);return console[_0x110006(0x1e6)](_0x110006(0x1e7)+_0x16f76a),console[_0x110006(0x1e6)]('\x20\x20Location:\x20'+_0x1d06c3),_0x984c1a['cpEgb'](_0x52d9be['length'],0x1)&&console['log']('\x20\x20Files:\x20'+_0x52d9be['join'](',\x20')),_0x984c1a[_0x110006(0x1da)](logLocalAgentInstallation,_0x41f9ec,{'skillDisplayName':_0x16f76a,'installLevel':level},_0x5c8b0b)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1c0aa9=_0x3655c5,_0x489131={'ANlZD':function(_0x4b5012,_0x2be419,_0x19745c,_0x58b9f3,_0x1473b2){return _0x4b5012(_0x2be419,_0x19745c,_0x58b9f3,_0x1473b2);},'IwJtJ':function(_0xdd3fea,_0x59d244,_0x34f14b,_0x3d4413,_0x30f15f,_0x1b26ff){return _0xdd3fea(_0x59d244,_0x34f14b,_0x3d4413,_0x30f15f,_0x1b26ff);},'hVbnY':'skills'},_0x3641c2=[_0x489131['ANlZD'](join,__dirname,'..','..',_0x1c0aa9(0x1f2)),_0x489131['IwJtJ'](join,__dirname,'..','..','..',_0x489131[_0x1c0aa9(0x1e8)])];for(const _0x359429 of _0x3641c2){if(existsSync(_0x359429))return _0x359429;}return _0x3641c2[0x0];}function parseFrontmatter(_0x8850c3){const _0x554132=_0x3655c5,_0x2c1cf3=_0x8850c3['match'](/^---\n([\s\S]+?)\n---/);if(!_0x2c1cf3)throw new Error(_0x554132(0x1d9));const _0x47db57=_0x2c1cf3[0x1],_0xd42bf4=_0x47db57['match'](/name:\s*(.+)/),_0x2ab980=_0x47db57['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0xd42bf4?.[0x1]['trim']()||'','description':_0x2ab980?.[0x1]['trim']()||''};}export async function removeSkill(_0x1ea26c,_0x9dc31e){const _0x38b019=_0x3655c5,_0x2df06e={'oOJGq':function(_0x32cdcb,_0x3471cb){return _0x32cdcb(_0x3471cb);},'hahug':function(_0x1c7bd6,_0x2eb951,_0x256909){return _0x1c7bd6(_0x2eb951,_0x256909);},'LXTDB':function(_0x4c2dfc,_0x18ca8d){return _0x4c2dfc(_0x18ca8d);}},_0x3e94b5=_0x2df06e['oOJGq'](getSkillsDir,_0x9dc31e),_0xa13c59=_0x2df06e['hahug'](join,_0x3e94b5,_0x1ea26c);if(!_0x2df06e[_0x38b019(0x1ee)](existsSync,_0xa13c59))return![];try{return await rm(_0xa13c59,{'recursive':!![]}),console[_0x38b019(0x1e6)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x1ea26c),!![];}catch{return console[_0x38b019(0x1dc)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x1ea26c),![];}}
1
+ function _0x4d15(_0x114251,_0x278743){_0x114251=_0x114251-0x78;const _0x5169ad=_0x5169();let _0x4d1577=_0x5169ad[_0x114251];return _0x4d1577;}const _0x4203a3=_0x4d15;(function(_0x3af201,_0x30ea3a){const _0x143202=_0x4d15,_0x561f6c=_0x3af201();while(!![]){try{const _0x1903ae=parseInt(_0x143202(0x87))/0x1*(parseInt(_0x143202(0x8b))/0x2)+parseInt(_0x143202(0x8d))/0x3*(parseInt(_0x143202(0x8a))/0x4)+-parseInt(_0x143202(0x78))/0x5*(-parseInt(_0x143202(0x7d))/0x6)+parseInt(_0x143202(0x86))/0x7+-parseInt(_0x143202(0x98))/0x8+parseInt(_0x143202(0x7f))/0x9*(parseInt(_0x143202(0x94))/0xa)+-parseInt(_0x143202(0x90))/0xb*(parseInt(_0x143202(0x93))/0xc);if(_0x1903ae===_0x30ea3a)break;else _0x561f6c['push'](_0x561f6c['shift']());}catch(_0x4f80c5){_0x561f6c['push'](_0x561f6c['shift']());}}}(_0x5169,0x786db));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x5169(){const _0x1fb896=['654DSZqnW','warn','27jYvVPM','skills','e2e-test-recommender','log','join','fksQY','opencode','2093861WBAgTf','1LgpOxu','bug-bash','trim','3686632wbtyNW','1703404vNNKLv','\x20\x20Location:\x20','3PFJWcP','aeftE','push','2936131olpylL','Cyqvh','dRhEV','84ZQsXXg','1663980SRRXEW','Stogd','SKILL.md','\x20\x20Skill\x20not\x20found:\x20','2036288nOspzS','OSZum','match','IhlSB','2045owAACC','project','isDirectory','oXRNq','NPzdB'];_0x5169=function(){return _0x1fb896;};return _0x5169();}import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=[_0x4203a3(0x81),_0x4203a3(0x88),'feature-tracker'];export async function installSkill(_0x4feede,_0x1b8f7c={}){const _0xa61667=_0x4203a3,_0x455706={'Cyqvh':function(_0x4989b8,_0x350436,_0x1276c8){return _0x4989b8(_0x350436,_0x1276c8);},'Stogd':function(_0x554dca,_0x63977f){return _0x554dca&&_0x63977f;},'ckCXJ':function(_0x215f52,_0x1e9b85){return _0x215f52(_0x1e9b85);},'OSZum':function(_0x5486e8,_0x1ae7d0,_0x151c90){return _0x5486e8(_0x1ae7d0,_0x151c90);},'eGBmn':function(_0x7a45f4,_0x4c5bc2,_0x2e49ef){return _0x7a45f4(_0x4c5bc2,_0x2e49ef);},'IhlSB':'utf-8','EHyYL':function(_0x4f4021,_0x1922cc,_0x152025){return _0x4f4021(_0x1922cc,_0x152025);},'FjGQE':_0xa61667(0x96),'rTobQ':function(_0x1d00b0,_0x13140c,_0x2d61e0,_0x187b34){return _0x1d00b0(_0x13140c,_0x2d61e0,_0x187b34);},'NPzdB':function(_0x44b50e,_0x4c5d26){return _0x44b50e(_0x4c5d26);},'sZRrF':function(_0x209be6,_0x294c6d){return _0x209be6>_0x294c6d;},'BSWFz':function(_0x4a7c99,_0x894ac2,_0x23d4e8,_0x5cc7c1){return _0x4a7c99(_0x894ac2,_0x23d4e8,_0x5cc7c1);}},{level:level=_0xa61667(0x79),cliVersion:_0x2b066a,platform:platform='claude'}=_0x1b8f7c,_0x54c1be=getSourceSkillsDir(),_0x24e4e0=join(_0x54c1be,_0x4feede),_0x2c42fd=join(_0x54c1be,_0x4feede+'.md'),_0x42ffa0=existsSync(_0x24e4e0)&&statSync(_0x24e4e0)[_0xa61667(0x7a)]()&&existsSync(_0x455706[_0xa61667(0x91)](join,_0x24e4e0,'SKILL.md')),_0x53cc48=existsSync(_0x2c42fd);if(_0x455706[_0xa61667(0x95)](!_0x42ffa0,!_0x53cc48))return console[_0xa61667(0x7e)](_0xa61667(0x97)+_0x4feede),![];const _0x2aa474=platform===_0xa61667(0x85)?_0x455706['ckCXJ'](getOpencodeSkillsDir,level):_0x455706['ckCXJ'](getSkillsDir,level),_0x5d43aa=_0x455706['Cyqvh'](join,_0x2aa474,_0x4feede);await mkdir(_0x5d43aa,{'recursive':!![]});let _0x1eee70,_0x548664=[];if(_0x42ffa0){const _0x2a9dbc=await readdir(_0x24e4e0),_0x2dda36=_0x2a9dbc['filter'](_0x28bbb1=>_0x28bbb1['endsWith']('.md'));for(const _0xae16cf of _0x2dda36){const _0x13d71b=_0x455706[_0xa61667(0x99)](join,_0x24e4e0,_0xae16cf),_0x348ec9=join(_0x5d43aa,_0xae16cf);await copyFile(_0x13d71b,_0x348ec9),_0x548664[_0xa61667(0x8f)](_0xae16cf);}_0x1eee70=await readFile(join(_0x24e4e0,_0xa61667(0x96)),'utf-8');}else{_0x1eee70=await _0x455706['eGBmn'](readFile,_0x2c42fd,_0x455706[_0xa61667(0x9b)]);const _0x5c8dfc=_0x455706['EHyYL'](join,_0x5d43aa,_0x455706['FjGQE']);await _0x455706['rTobQ'](writeFile,_0x5c8dfc,_0x1eee70,_0x455706[_0xa61667(0x9b)]),_0x548664['push'](_0xa61667(0x96));}const {name:_0x1208e9}=_0x455706[_0xa61667(0x7c)](parseFrontmatter,_0x1eee70);return console[_0xa61667(0x82)]('\x20\x20Installed\x20skill:\x20'+_0x1208e9),console[_0xa61667(0x82)](_0xa61667(0x8c)+_0x5d43aa),_0x455706['sZRrF'](_0x548664['length'],0x1)&&console[_0xa61667(0x82)]('\x20\x20Files:\x20'+_0x548664[_0xa61667(0x83)](',\x20')),_0x455706['BSWFz'](logLocalAgentInstallation,_0x4feede,{'skillDisplayName':_0x1208e9,'installLevel':level},_0x2b066a)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x44613c=_0x4203a3,_0x61e0a8={'dRhEV':function(_0x1900bd,_0x96eecb,_0x463f3c,_0x4e2012,_0x113c50){return _0x1900bd(_0x96eecb,_0x463f3c,_0x4e2012,_0x113c50);}},_0x42538e=[_0x61e0a8[_0x44613c(0x92)](join,__dirname,'..','..','skills'),join(__dirname,'..','..','..',_0x44613c(0x80))];for(const _0x5199d4 of _0x42538e){if(existsSync(_0x5199d4))return _0x5199d4;}return _0x42538e[0x0];}function parseFrontmatter(_0x1795b9){const _0x2cd846=_0x4203a3,_0x1073dc=_0x1795b9['match'](/^---\n([\s\S]+?)\n---/);if(!_0x1073dc)throw new Error('Invalid\x20skill\x20frontmatter');const _0x860f65=_0x1073dc[0x1],_0x2d3845=_0x860f65[_0x2cd846(0x9a)](/name:\s*(.+)/),_0x564b9a=_0x860f65[_0x2cd846(0x9a)](/description:\s*"?(.+?)"?\n/);return{'name':_0x2d3845?.[0x1]['trim']()||'','description':_0x564b9a?.[0x1][_0x2cd846(0x89)]()||''};}export async function removeSkill(_0x282441,_0x5dc3f6){const _0x174398=_0x4203a3,_0xd830be={'aeftE':function(_0xfb67a9,_0x37a965){return _0xfb67a9(_0x37a965);},'oXRNq':function(_0x152e31,_0x28bdea){return _0x152e31(_0x28bdea);},'fksQY':function(_0x1736a1,_0x3902cf,_0x3624c4){return _0x1736a1(_0x3902cf,_0x3624c4);}},_0x5830b9=_0xd830be[_0x174398(0x8e)](getSkillsDir,_0x5dc3f6),_0x3a1e03=join(_0x5830b9,_0x282441);if(!_0xd830be[_0x174398(0x7b)](existsSync,_0x3a1e03))return![];try{return await _0xd830be[_0x174398(0x84)](rm,_0x3a1e03,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x282441),!![];}catch{return console[_0x174398(0x7e)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x282441),![];}}
@@ -1 +1 @@
1
- const _0x5af64c=_0x2a1f;(function(_0x5857b3,_0x4c3565){const _0x2e4b3e=_0x2a1f,_0x175015=_0x5857b3();while(!![]){try{const _0x34f1ae=parseInt(_0x2e4b3e(0x1a4))/0x1*(-parseInt(_0x2e4b3e(0x1b7))/0x2)+parseInt(_0x2e4b3e(0x1ad))/0x3+parseInt(_0x2e4b3e(0x1b0))/0x4*(-parseInt(_0x2e4b3e(0x1c2))/0x5)+parseInt(_0x2e4b3e(0x1c7))/0x6+-parseInt(_0x2e4b3e(0x18d))/0x7*(-parseInt(_0x2e4b3e(0x17f))/0x8)+parseInt(_0x2e4b3e(0x197))/0x9+parseInt(_0x2e4b3e(0x1bb))/0xa;if(_0x34f1ae===_0x4c3565)break;else _0x175015['push'](_0x175015['shift']());}catch(_0x4fb3e2){_0x175015['push'](_0x175015['shift']());}}}(_0x2757,0x1a72c));import{randomUUID}from'crypto';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';function _0x2757(){const _0x2b67ba=['phaseCounter','flushAsync','message','phase_error','RoymC','1110726PCalLs','TzVpg','errorType','isTty','teDSR','POST','tRAsL','phase_start','constructor','trackCommandEnd','xWQwq','snwqA','signal','24lAlPDs','Unknown','trim','durationMs','featureId','utf-8','now','flushing','flush','290979GopzCm','commandStartTime','Bearer\x20','1172mfinSa','GITHUB_ACTIONS','trackPhaseEnd','push','KmfSy','buffer','ESlbm','16380zgpmPX','delete','QgjIG','sendBatch','811710pMIxrI','ZxAcS','stdout','slice','trackPhaseStart','/api/v1/mcp/cli-telemetry','isCI','2540VjcFWF','length','LTdYv','set','.ranger','238704YzhwsE','command_error','phaseStartTimes','abort','isTTY','name','commandId','checklistItemId','success','449496CrukWV','zovrX','sendImmediate','env','metadata','buildEvent','finally','platform','wWqez','\x20event(s)\x20to\x20','trackCommandStart','browserSessionId','nodeVersion','stringify','14NDeAUt','wYYrV','deviceId','toISOString','cliVersion'];_0x2757=function(){return _0x2b67ba;};return _0x2757();}import{getCurrentVersion}from'./version.js';function _0x2a1f(_0x2a4d10,_0x948993){_0x2a4d10=_0x2a4d10-0x17a;const _0x2757f2=_0x2757();let _0x2a1f49=_0x2757f2[_0x2a4d10];return _0x2a1f49;}let cachedDeviceId=null;function getDeviceId(){const _0x5cce63=_0x2a1f,_0x5bc172={'zovrX':function(_0x2e68ec,_0x4df0d9,_0x46e1cb){return _0x2e68ec(_0x4df0d9,_0x46e1cb);},'qqKGt':function(_0x368475){return _0x368475();},'ZxAcS':_0x5cce63(0x1c6),'oCiME':'.session','LTdYv':function(_0x5bcbc8,_0x30fad0){return _0x5bcbc8(_0x30fad0);},'ZzznH':_0x5cce63(0x1a9),'jyuEz':function(_0x1c0fd8,_0x2ae206,_0x16d810){return _0x1c0fd8(_0x2ae206,_0x16d810);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x12ed46=_0x5bc172[_0x5cce63(0x180)](join,_0x5bc172['qqKGt'](homedir),_0x5bc172[_0x5cce63(0x1bc)]),_0x36d3e9=_0x5bc172['zovrX'](join,_0x12ed46,_0x5bc172['oCiME']);if(_0x5bc172[_0x5cce63(0x1c4)](existsSync,_0x36d3e9)){cachedDeviceId=readFileSync(_0x36d3e9,_0x5bc172['ZzznH'])[_0x5cce63(0x1a6)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),mkdirSync(_0x12ed46,{'recursive':!![]}),_0x5bc172['jyuEz'](writeFileSync,_0x36d3e9,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x5af64c(0x17c)];['command'];[_0x5af64c(0x1ae)];[_0x5af64c(0x192)]=0x0;[_0x5af64c(0x1c9)]=new Map();[_0x5af64c(0x1ab)]=null;[_0x5af64c(0x18f)];[_0x5af64c(0x191)];['nodeVersion'];['platform'];['isTty'];[_0x5af64c(0x1c1)];['featureId'];['checklistItemId'];[_0x5af64c(0x18a)];constructor(_0x49dbfc){const _0x50bd77=_0x5af64c;this['commandId']=randomUUID(),this['command']=_0x49dbfc,this['commandStartTime']=Date['now'](),this[_0x50bd77(0x18f)]=getDeviceId(),this['cliVersion']=getCurrentVersion(),this[_0x50bd77(0x18b)]=process['version'],this['platform']=process[_0x50bd77(0x186)],this[_0x50bd77(0x19a)]=process[_0x50bd77(0x1bd)][_0x50bd77(0x17a)]??![],this['isCI']=!!(process['env']['CI']||process['env'][_0x50bd77(0x1b1)]);}['setContext'](_0x581aad){const _0x39513b=_0x5af64c;if(_0x581aad[_0x39513b(0x1a8)])this[_0x39513b(0x1a8)]=_0x581aad[_0x39513b(0x1a8)];if(_0x581aad['checklistItemId'])this[_0x39513b(0x17d)]=_0x581aad['checklistItemId'];if(_0x581aad['browserSessionId'])this[_0x39513b(0x18a)]=_0x581aad[_0x39513b(0x18a)];}async['trackCommandStart'](_0x865923){const _0x26c679=_0x5af64c,_0x141687={'QgjIG':'command_start'},_0x24dd2e=this['buildEvent']({'eventType':_0x141687[_0x26c679(0x1b9)],'metadata':_0x865923});await this['sendImmediate'](_0x24dd2e);}async[_0x5af64c(0x1a0)](_0x1c0fa8,_0x30b643){const _0x295b06=_0x5af64c,_0x50e827={'xWQwq':'command_end'},_0x345263=this[_0x295b06(0x184)]({'eventType':_0x50e827[_0x295b06(0x1a1)],'outcome':_0x1c0fa8,'durationMs':Date[_0x295b06(0x1aa)]()-this['commandStartTime'],'metadata':_0x30b643});await this[_0x295b06(0x181)](_0x345263),await this[_0x295b06(0x1ac)]();}async['trackCommandError'](_0x2cd7dc,_0x83ee4d){const _0x42a977=_0x5af64c,_0x4ac8c5={'snwqA':function(_0x2c01c7,_0x51e826,_0x48b052){return _0x2c01c7(_0x51e826,_0x48b052);},'RoymC':_0x42a977(0x1a5)},_0x9b52a1=this['buildEvent']({'eventType':_0x42a977(0x1c8),'errorMessage':_0x4ac8c5[_0x42a977(0x1a2)](truncate,_0x2cd7dc instanceof Error?_0x2cd7dc[_0x42a977(0x194)]:String(_0x2cd7dc),0x1f4),'errorType':_0x2cd7dc instanceof Error?_0x2cd7dc['constructor'][_0x42a977(0x17b)]:_0x4ac8c5[_0x42a977(0x196)],'durationMs':Date[_0x42a977(0x1aa)]()-this[_0x42a977(0x1ae)],'metadata':_0x83ee4d});await this[_0x42a977(0x181)](_0x9b52a1),await this[_0x42a977(0x1ac)]();}[_0x5af64c(0x1bf)](_0xfa876f,_0x2ac1f9){const _0xad855f=_0x5af64c;this[_0xad855f(0x192)]++,this['phaseStartTimes'][_0xad855f(0x1c5)](_0xfa876f,Date[_0xad855f(0x1aa)]());const _0x5e702f=this[_0xad855f(0x184)]({'eventType':_0xad855f(0x19e),'phase':_0xfa876f,'phaseIndex':this[_0xad855f(0x192)],'metadata':_0x2ac1f9});this['buffer'][_0xad855f(0x1b3)](_0x5e702f);}[_0x5af64c(0x1b2)](_0x5f41f2,_0xddb53b){const _0x2ea8bf=_0x5af64c,_0xf1a030={'ESlbm':function(_0x2904f2,_0x484a00){return _0x2904f2-_0x484a00;},'wWqez':function(_0x4c342c,_0xf34e5d){return _0x4c342c>=_0xf34e5d;}},_0x15528a=this[_0x2ea8bf(0x1c9)]['get'](_0x5f41f2),_0x566844=_0x15528a?_0xf1a030[_0x2ea8bf(0x1b6)](Date['now'](),_0x15528a):undefined;this['phaseStartTimes'][_0x2ea8bf(0x1b8)](_0x5f41f2);const _0x537794=this['buildEvent']({'eventType':'phase_end','phase':_0x5f41f2,'durationMs':_0x566844,'metadata':_0xddb53b});this[_0x2ea8bf(0x1b5)]['push'](_0x537794),_0xf1a030[_0x2ea8bf(0x187)](this[_0x2ea8bf(0x1b5)][_0x2ea8bf(0x1c3)],0xa)&&this['flushAsync']();}async['trackPhaseError'](_0x436c3f,_0xb8e5a7,_0x18b60c){const _0x2290b4=_0x5af64c,_0x25ec09={'Iracd':function(_0x11ce3e,_0x8ea272){return _0x11ce3e-_0x8ea272;},'uHPpG':function(_0x1a5d6a,_0x1ee7df,_0x4f957a){return _0x1a5d6a(_0x1ee7df,_0x4f957a);},'ARYUf':function(_0x3d2bdc,_0x4292ac){return _0x3d2bdc instanceof _0x4292ac;}},_0x2b8246=this[_0x2290b4(0x1c9)]['get'](_0x436c3f),_0x5a4546=_0x2b8246?_0x25ec09['Iracd'](Date['now'](),_0x2b8246):undefined;this[_0x2290b4(0x1c9)][_0x2290b4(0x1b8)](_0x436c3f);const _0x57d358=this[_0x2290b4(0x184)]({'eventType':_0x2290b4(0x195),'phase':_0x436c3f,'durationMs':_0x5a4546,'errorMessage':_0x25ec09['uHPpG'](truncate,_0xb8e5a7 instanceof Error?_0xb8e5a7['message']:String(_0xb8e5a7),0x1f4),'errorType':_0x25ec09['ARYUf'](_0xb8e5a7,Error)?_0xb8e5a7[_0x2290b4(0x19f)]['name']:'Unknown','metadata':_0x18b60c});await this['sendImmediate'](_0x57d358);}async[_0x5af64c(0x1ac)](){const _0x9249a2=_0x5af64c;if(this['buffer'][_0x9249a2(0x1c3)]===0x0)return;const _0x22f4e4=this[_0x9249a2(0x1b5)]['splice'](0x0);try{await this['sendBatch'](_0x22f4e4);}catch{}}['buildEvent'](_0x3fa17f){const _0x13522d=_0x5af64c;return{'eventType':_0x3fa17f['eventType'],'command':this['command'],'commandId':this[_0x13522d(0x17c)],'deviceId':this['deviceId'],'timestamp':new Date()[_0x13522d(0x190)](),'durationMs':_0x3fa17f[_0x13522d(0x1a7)],'phase':_0x3fa17f['phase'],'phaseIndex':_0x3fa17f['phaseIndex'],'outcome':_0x3fa17f['outcome'],'errorMessage':_0x3fa17f['errorMessage'],'errorType':_0x3fa17f[_0x13522d(0x199)],'featureId':this['featureId'],'checklistItemId':this[_0x13522d(0x17d)],'browserSessionId':this['browserSessionId'],'evaluation':_0x3fa17f['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x13522d(0x18b)],'platform':this['platform'],'isTty':this[_0x13522d(0x19a)],'isCI':this['isCI'],'metadata':_0x3fa17f[_0x13522d(0x183)]};}async['sendImmediate'](_0x4fd92e){const _0x447b12=_0x5af64c;try{await this[_0x447b12(0x1ba)]([_0x4fd92e]);}catch{}}[_0x5af64c(0x193)](){const _0x43f850=_0x5af64c;if(this['flushing'])return;this['flushing']=this[_0x43f850(0x1ac)]()[_0x43f850(0x185)](()=>{this['flushing']=null;});}async[_0x5af64c(0x1ba)](_0x5cdb67){const _0x2e4003=_0x5af64c,_0x4419ce={'tRAsL':'application/json','wYYrV':'Authorization','teDSR':function(_0x2b8bc6,_0x37e02c,_0x5a89f4){return _0x2b8bc6(_0x37e02c,_0x5a89f4);},'KmfSy':_0x2e4003(0x19c)},_0x1079cc=await getToken()['catch'](()=>null),_0x596d27=getApiBaseUrl(),_0x39f303={'Content-Type':_0x4419ce[_0x2e4003(0x19d)]};_0x1079cc&&(_0x39f303[_0x4419ce[_0x2e4003(0x18e)]]=_0x2e4003(0x1af)+_0x1079cc);const _0x1bd8c0={'events':_0x5cdb67};process[_0x2e4003(0x182)]['DEBUG']&&console['error']('[telemetry]\x20Sending\x20'+_0x5cdb67['length']+_0x2e4003(0x188)+_0x596d27+_0x2e4003(0x1c0));const _0x59ad4f=new AbortController(),_0x30b652=_0x4419ce[_0x2e4003(0x19b)](setTimeout,()=>_0x59ad4f[_0x2e4003(0x1ca)](),0x1388);try{await _0x4419ce['teDSR'](fetch,_0x596d27+_0x2e4003(0x1c0),{'method':_0x4419ce[_0x2e4003(0x1b4)],'headers':_0x39f303,'body':JSON[_0x2e4003(0x18c)](_0x1bd8c0),'signal':_0x59ad4f[_0x2e4003(0x1a3)]});}finally{clearTimeout(_0x30b652);}}}let currentCollector=null;export function createTelemetryCollector(_0x42ec92){return currentCollector=new TelemetryCollector(_0x42ec92),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x4f4f47,_0x37ea24,_0x5817c7){const _0x40219c=_0x5af64c,_0x46b0f6={'TzVpg':function(_0x1551dd,_0xa5e89c){return _0x1551dd(_0xa5e89c);}},_0x3b1045=_0x46b0f6['TzVpg'](createTelemetryCollector,_0x4f4f47);await _0x3b1045[_0x40219c(0x189)](_0x5817c7);try{const _0x4de0df=await _0x46b0f6[_0x40219c(0x198)](_0x37ea24,_0x3b1045);return await _0x3b1045[_0x40219c(0x1a0)](_0x40219c(0x17e)),_0x4de0df;}catch(_0x2bbd7d){await _0x3b1045['trackCommandError'](_0x2bbd7d);throw _0x2bbd7d;}finally{await _0x3b1045['flush']();}}function truncate(_0x3a6919,_0x33ff37){const _0x327255=_0x5af64c;return _0x3a6919['length']>_0x33ff37?_0x3a6919[_0x327255(0x1be)](0x0,_0x33ff37)+'...':_0x3a6919;}
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 +1 @@
1
- (function(_0x4042c3,_0x38b2d5){const _0x1212bb=_0x8480,_0x5f0901=_0x4042c3();while(!![]){try{const _0x82cd0c=parseInt(_0x1212bb(0x79))/0x1+parseInt(_0x1212bb(0x74))/0x2*(-parseInt(_0x1212bb(0x6c))/0x3)+parseInt(_0x1212bb(0x76))/0x4+parseInt(_0x1212bb(0x6e))/0x5*(parseInt(_0x1212bb(0x77))/0x6)+parseInt(_0x1212bb(0x75))/0x7+-parseInt(_0x1212bb(0x6d))/0x8*(parseInt(_0x1212bb(0x6f))/0x9)+parseInt(_0x1212bb(0x78))/0xa*(-parseInt(_0x1212bb(0x71))/0xb);if(_0x82cd0c===_0x38b2d5)break;else _0x5f0901['push'](_0x5f0901['shift']());}catch(_0x54ae0d){_0x5f0901['push'](_0x5f0901['shift']());}}}(_0x4c86,0x423f2));function _0x8480(_0x2196a1,_0x5000ef){_0x2196a1=_0x2196a1-0x6c;const _0x4c86c7=_0x4c86();let _0x848014=_0x4c86c7[_0x2196a1];return _0x848014;}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0xe6afd9){const _0x17e7e0=_0x8480,_0x13d87c={'UAcOL':function(_0x5a1424,_0x2f8af2,_0x49c19f){return _0x5a1424(_0x2f8af2,_0x49c19f);},'Mlebo':function(_0x285312,_0x2678c5){return _0x285312 instanceof _0x2678c5;},'rmZqv':function(_0x211338,_0x3ebe57){return _0x211338(_0x3ebe57);}},_0x3474b5=getApiBaseUrl();try{const _0x1c3450=await _0x13d87c[_0x17e7e0(0x7b)](fetch,_0x3474b5+'/api/v1/mcp/me',{'method':_0x17e7e0(0x70),'headers':{'Authorization':'Bearer\x20'+_0xe6afd9}});if(!_0x1c3450['ok'])return{'success':![],'error':_0x1c3450['status']+'\x20'+_0x1c3450['statusText'],'status':_0x1c3450['status']};const _0x4e7fa1=await _0x1c3450[_0x17e7e0(0x72)]();return{'success':!![],'user':_0x4e7fa1};}catch(_0x53ad05){return{'success':![],'error':_0x13d87c[_0x17e7e0(0x7a)](_0x53ad05,Error)?_0x53ad05[_0x17e7e0(0x73)]:_0x13d87c['rmZqv'](String,_0x53ad05)};}}function _0x4c86(){const _0x2ad55b=['35610iQdyvc','169020MEjhyU','412208CtQIzs','Mlebo','UAcOL','27bnKJCk','1352OzAXos','285iEPkaf','17379DFfdzi','GET','429mDZagq','json','message','17902pRRDHQ','3164700qeIddw','539276hEEqNx'];_0x4c86=function(){return _0x2ad55b;};return _0x4c86();}
1
+ (function(_0x3fe5c4,_0x1f4d98){const _0x23a7e2=_0xb01b,_0x22a13e=_0x3fe5c4();while(!![]){try{const _0x55cc3e=parseInt(_0x23a7e2(0x1c2))/0x1*(-parseInt(_0x23a7e2(0x1c3))/0x2)+parseInt(_0x23a7e2(0x1c9))/0x3*(parseInt(_0x23a7e2(0x1c4))/0x4)+-parseInt(_0x23a7e2(0x1c7))/0x5*(parseInt(_0x23a7e2(0x1bd))/0x6)+parseInt(_0x23a7e2(0x1be))/0x7+parseInt(_0x23a7e2(0x1c6))/0x8*(parseInt(_0x23a7e2(0x1c1))/0x9)+parseInt(_0x23a7e2(0x1bf))/0xa*(parseInt(_0x23a7e2(0x1c8))/0xb)+parseInt(_0x23a7e2(0x1c0))/0xc;if(_0x55cc3e===_0x1f4d98)break;else _0x22a13e['push'](_0x22a13e['shift']());}catch(_0x4c7065){_0x22a13e['push'](_0x22a13e['shift']());}}}(_0x546c,0x7fa47));import{getApiBaseUrl}from'./environment.js';function _0xb01b(_0x5bc684,_0x5ec09a){_0x5bc684=_0x5bc684-0x1bc;const _0x546c35=_0x546c();let _0xb01ba5=_0x546c35[_0x5bc684];return _0xb01ba5;}export async function getCurrentUser(_0x1a592d){const _0x56b576=_0xb01b,_0x301a09={'yBpkp':function(_0x2a1c9e,_0x1b9f69){return _0x2a1c9e(_0x1b9f69);}},_0x2e1a75=getApiBaseUrl();try{const _0x3f0112=await fetch(_0x2e1a75+'/api/v1/mcp/me',{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x1a592d}});if(!_0x3f0112['ok'])return{'success':![],'error':_0x3f0112['status']+'\x20'+_0x3f0112['statusText'],'status':_0x3f0112[_0x56b576(0x1c5)]};const _0x400679=await _0x3f0112['json']();return{'success':!![],'user':_0x400679};}catch(_0x3562d0){return{'success':![],'error':_0x3562d0 instanceof Error?_0x3562d0[_0x56b576(0x1bc)]:_0x301a09['yBpkp'](String,_0x3562d0)};}}function _0x546c(){const _0x36f356=['580738klfrVr','504VTwUtA','status','8CmfRdS','5fOxjFV','99ESXetc','8655uSXCFg','message','4902372eqUcLD','2780792bRYEUR','66470jTXQpT','6720480SHaoOC','2246625cXoMzI','1qGNgJu'];_0x546c=function(){return _0x36f356;};return _0x546c();}
@@ -1 +1 @@
1
- (function(_0x16889f,_0x22cc69){const _0x5439b7=_0x423d,_0x310e47=_0x16889f();while(!![]){try{const _0x2033d1=parseInt(_0x5439b7(0x193))/0x1+-parseInt(_0x5439b7(0x196))/0x2*(-parseInt(_0x5439b7(0x19d))/0x3)+parseInt(_0x5439b7(0x19a))/0x4+parseInt(_0x5439b7(0x19e))/0x5+-parseInt(_0x5439b7(0x19b))/0x6+parseInt(_0x5439b7(0x191))/0x7+-parseInt(_0x5439b7(0x195))/0x8;if(_0x2033d1===_0x22cc69)break;else _0x310e47['push'](_0x310e47['shift']());}catch(_0x95cdc3){_0x310e47['push'](_0x310e47['shift']());}}}(_0x10da,0x902ee));import{readFileSync}from'fs';import{existsSync}from'fs';function _0x423d(_0x25dd93,_0x10500f){_0x25dd93=_0x25dd93-0x190;const _0x10da95=_0x10da();let _0x423da5=_0x10da95[_0x25dd93];return _0x423da5;}import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x10da(){const _0x2e2bec=['4726445FKeFSL','split','1345897FHoiHU','npm\x20view\x20','573403xyQhOm','KvWsh','15126128kzxqql','232574RmaJRm','utf-8','PugoS','fDpCF','1255088yXnsJx','51258YKUYmh','trim','12bMeanQ'];_0x10da=function(){return _0x2e2bec;};return _0x10da();}export const PACKAGE_NAME='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0xee4650=_0x423d,_0x390982={'cjIKu':function(_0x12d0b6,_0xd1f19c,_0x30f673,_0x576f4a,_0x2f1de4,_0x4d71d1){return _0x12d0b6(_0xd1f19c,_0x30f673,_0x576f4a,_0x2f1de4,_0x4d71d1);},'BrhjG':function(_0x5a1901,_0x41bb54){return _0x5a1901(_0x41bb54);},'PugoS':function(_0x4665cb,_0x138ac4,_0x4f929b){return _0x4665cb(_0x138ac4,_0x4f929b);},'KvWsh':'unknown'},_0x1abbff=[join(__dirname,'..','..','package.json'),_0x390982['cjIKu'](join,__dirname,'..','..','..','package.json')];for(const _0xadd3d1 of _0x1abbff){if(_0x390982['BrhjG'](existsSync,_0xadd3d1))try{const _0x279025=JSON['parse'](_0x390982[_0xee4650(0x198)](readFileSync,_0xadd3d1,_0xee4650(0x197)));return _0x279025['version']||_0x390982[_0xee4650(0x194)];}catch{continue;}}return _0x390982[_0xee4650(0x194)];}export function getLatestVersion(){const _0x5db804=_0x423d,_0x8f44ff={'fDpCF':'utf-8'};try{const _0x3b243b=execSync(_0x5db804(0x192)+PACKAGE_NAME+'\x20version\x202>/dev/null',{'encoding':_0x8f44ff[_0x5db804(0x199)],'timeout':0x1388});return _0x3b243b[_0x5db804(0x19c)]();}catch{return null;}}export function compareVersions(_0x5250db,_0x426ffb){const _0x25e2bd=_0x423d,_0x379326={'SasaY':function(_0x1841d8,_0x340fbe){return _0x1841d8<_0x340fbe;}},_0x56d276=_0x5250db[_0x25e2bd(0x190)]('.')['map'](Number),_0x1b6f84=_0x426ffb[_0x25e2bd(0x190)]('.')['map'](Number);for(let _0x1b1749=0x0;_0x1b1749<0x3;_0x1b1749++){const _0x122c67=_0x56d276[_0x1b1749]||0x0,_0x1640f5=_0x1b6f84[_0x1b1749]||0x0;if(_0x1640f5>_0x122c67)return 0x1;if(_0x379326['SasaY'](_0x1640f5,_0x122c67))return-0x1;}return 0x0;}
1
+ function _0x13a3(){const _0x54ffb0=['2949615CiyIwp','version','2434775aMdsUc','8293YovJlI','1132664dZaQeZ','1865UWqngM','9132twflAJ','rQDYh','7539128QuJxXr','utf-8','10844037IxGVww','10Kqhwhz','package.json','parse','map','sHgII','126imdYXr','npm\x20view\x20','\x20version\x202>/dev/null'];_0x13a3=function(){return _0x54ffb0;};return _0x13a3();}(function(_0x3bdd63,_0x52b235){const _0x179919=_0x5d4e,_0x1a92b8=_0x3bdd63();while(!![]){try{const _0x4c5ca1=parseInt(_0x179919(0x1ce))/0x1*(-parseInt(_0x179919(0x1c8))/0x2)+-parseInt(_0x179919(0x1cb))/0x3+-parseInt(_0x179919(0x1cf))/0x4+parseInt(_0x179919(0x1d0))/0x5*(parseInt(_0x179919(0x1d1))/0x6)+-parseInt(_0x179919(0x1cd))/0x7+parseInt(_0x179919(0x1d3))/0x8+parseInt(_0x179919(0x1d5))/0x9*(parseInt(_0x179919(0x1d6))/0xa);if(_0x4c5ca1===_0x52b235)break;else _0x1a92b8['push'](_0x1a92b8['shift']());}catch(_0x4527fc){_0x1a92b8['push'](_0x1a92b8['shift']());}}}(_0x13a3,0x8d31f));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x500d73=_0x5d4e,_0x1ca73f={'TTVuh':_0x500d73(0x1c4),'zmlMS':function(_0x58ec94,_0x531f34,_0x5e1637,_0x2f2cf0,_0x212f2b,_0x4bd94a){return _0x58ec94(_0x531f34,_0x5e1637,_0x2f2cf0,_0x212f2b,_0x4bd94a);},'rQDYh':function(_0x4b8fae,_0x14af3e){return _0x4b8fae(_0x14af3e);},'sHgII':'utf-8','CLprx':'unknown'},_0x5722fb=[join(__dirname,'..','..',_0x1ca73f['TTVuh']),_0x1ca73f['zmlMS'](join,__dirname,'..','..','..',_0x1ca73f['TTVuh'])];for(const _0x51f9ee of _0x5722fb){if(_0x1ca73f[_0x500d73(0x1d2)](existsSync,_0x51f9ee))try{const _0x154cc9=JSON[_0x500d73(0x1c5)](readFileSync(_0x51f9ee,_0x1ca73f[_0x500d73(0x1c7)]));return _0x154cc9[_0x500d73(0x1cc)]||_0x1ca73f['CLprx'];}catch{continue;}}return'unknown';}function _0x5d4e(_0x2e87fc,_0x5838de){_0x2e87fc=_0x2e87fc-0x1c4;const _0x13a307=_0x13a3();let _0x5d4e49=_0x13a307[_0x2e87fc];return _0x5d4e49;}export function getLatestVersion(){const _0x48d42b=_0x5d4e;try{const _0x11555e=execSync(_0x48d42b(0x1c9)+PACKAGE_NAME+_0x48d42b(0x1ca),{'encoding':_0x48d42b(0x1d4),'timeout':0x1388});return _0x11555e['trim']();}catch{return null;}}export function compareVersions(_0x32817d,_0x1da5ba){const _0x827b36=_0x5d4e,_0x144c6c={'OfTGq':function(_0x1ae135,_0x31f90d){return _0x1ae135<_0x31f90d;},'JmTBq':function(_0x21319b,_0x3c07bf){return _0x21319b>_0x3c07bf;}},_0x35c281=_0x32817d['split']('.')[_0x827b36(0x1c6)](Number),_0x2f98e5=_0x1da5ba['split']('.')[_0x827b36(0x1c6)](Number);for(let _0x2f1afd=0x0;_0x144c6c['OfTGq'](_0x2f1afd,0x3);_0x2f1afd++){const _0x49fff5=_0x35c281[_0x2f1afd]||0x0,_0x2f9e16=_0x2f98e5[_0x2f1afd]||0x0;if(_0x144c6c['JmTBq'](_0x2f9e16,_0x49fff5))return 0x1;if(_0x2f9e16<_0x49fff5)return-0x1;}return 0x0;}