@ranger-testing/ranger-cli 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) 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/traceSnapshotMapper.js +1 -0
  62. package/build/commands/utils/userApi.js +1 -1
  63. package/build/commands/utils/version.js +1 -1
  64. package/build/commands/verifyFeature.js +1 -1
  65. package/build/commands/verifyInBrowser.js +1 -1
  66. package/package.json +2 -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(_0x16363e,_0x1f182f){const _0x94b1ca=_0x363f,_0x358f75=_0x16363e();while(!![]){try{const _0x19a0c6=-parseInt(_0x94b1ca(0x1be))/0x1*(parseInt(_0x94b1ca(0x1d8))/0x2)+-parseInt(_0x94b1ca(0x1bf))/0x3*(-parseInt(_0x94b1ca(0x1d4))/0x4)+parseInt(_0x94b1ca(0x1bb))/0x5*(-parseInt(_0x94b1ca(0x1d9))/0x6)+parseInt(_0x94b1ca(0x1c3))/0x7+parseInt(_0x94b1ca(0x1d0))/0x8+-parseInt(_0x94b1ca(0x1d1))/0x9+-parseInt(_0x94b1ca(0x1c0))/0xa*(-parseInt(_0x94b1ca(0x1c8))/0xb);if(_0x19a0c6===_0x1f182f)break;else _0x358f75['push'](_0x358f75['shift']());}catch(_0x4764e9){_0x358f75['push'](_0x358f75['shift']());}}}(_0x2883,0x67b74));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x22a1b6){const _0x45a895=_0x363f,_0x5cb4fe={'nBIPP':function(_0x12e5de,_0x2f7f71){return _0x12e5de(_0x2f7f71);},'BpYPe':function(_0x421bd9,_0x370a99,_0x42c41f){return _0x421bd9(_0x370a99,_0x42c41f);}},_0x510188=[],_0x4a7d61=[];if(!_0x5cb4fe[_0x45a895(0x1ce)](existsSync,_0x22a1b6))return{'screenshots':_0x510188,'paths':_0x4a7d61};const _0x3cbe27=await readdir(_0x22a1b6),_0x4256e0=_0x3cbe27['filter'](_0x4efea=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x4efea))[_0x45a895(0x1de)]();for(const _0xd3d77 of _0x4256e0){const _0x5741bc=_0x5cb4fe['BpYPe'](join,_0x22a1b6,_0xd3d77);_0x510188['push']({'filename':_0xd3d77,'path':_0x5741bc,'relativePath':'./'+_0xd3d77}),_0x4a7d61[_0x45a895(0x1c9)](_0x5741bc);}return{'screenshots':_0x510188,'paths':_0x4a7d61};}function getSeverityEmoji(_0x2354a4){const _0x5c7cb4=_0x363f,_0xa58183={'uWfHG':_0x5c7cb4(0x1bc)};switch(_0x2354a4){case _0x5c7cb4(0x1cb):return'🔴';case _0xa58183['uWfHG']:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x88e40d){const _0x29736d=_0x363f,_0x16a164=_0x88e40d['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x11d132=_0x16a164[_0x29736d(0x1d3)](/^\d+-/,'');return _0x11d132[_0x29736d(0x1dc)]('-')['map'](_0x3d7f53=>_0x3d7f53['charAt'](0x0)['toUpperCase']()+_0x3d7f53['slice'](0x1))['join']('\x20');}function _0x2883(){const _0x57f94e=['screenshot','nBIPP','description','1300728XhoRxA','4370715ONtPgJ','PASSED','replace','2738136GoPmUI','##\x20Result','relativePath','kIRwS','671810NiIVTH','582CrJgUJ','**Screenshot:**','toISOString','split','length','sort','###\x20Summary','7885RLMOzX','MAJOR',']\x20Issue','1tnXiyK','3ULkWqo','865750PzohAf','severity','**Generated:**\x20','3259403PXfYoy','---','MYMhp','**Status:**\x20','##\x20Screenshots\x20(','11SifyKX','push','##\x20Task','BLOCKER','**Duration:**\x20'];_0x2883=function(){return _0x57f94e;};return _0x2883();}function _0x363f(_0x2eae59,_0x5bd67d){_0x2eae59=_0x2eae59-0x1ba;const _0x2883d9=_0x2883();let _0x363f33=_0x2883d9[_0x2eae59];return _0x363f33;}export function generateMarkdownReport(_0x542a2e){const _0x1be392=_0x363f,_0x2e46c0={'vzkmt':function(_0x2def22,_0x35cffd){return _0x2def22/_0x35cffd;},'MYMhp':'ISSUES\x20FOUND','kIRwS':function(_0x38f1f4,_0x36b00c){return _0x38f1f4>_0x36b00c;}},{sessionId:_0x139ba9,task:_0x236c58,url:_0x557e02,success:_0xb7a97b,summary:_0x536b5e,issues:_0xca301c,screenshots:_0x528d28,durationMs:_0x8ad9f7,traceViewerUrl:_0x5de428}=_0x542a2e,_0xb90d44=new Date()[_0x1be392(0x1db)](),_0x114c01=_0x2e46c0['vzkmt'](_0x8ad9f7,0x3e8)['toFixed'](0x1),_0x31efff=[];_0x31efff['push']('#\x20Verification\x20Report'),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff[_0x1be392(0x1c9)]('**Session:**\x20`'+_0x139ba9+'`'),_0x31efff['push'](_0x1be392(0x1c2)+_0xb90d44),_0x31efff[_0x1be392(0x1c9)](_0x1be392(0x1cc)+_0x114c01+'s'),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff['push'](_0x1be392(0x1ca)),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff['push']('**URL:**\x20'+_0x557e02),_0x31efff['push'](''),_0x31efff['push']('>\x20'+_0x236c58),_0x31efff['push'](''),_0x31efff['push'](_0x1be392(0x1d5)),_0x31efff['push']('');const _0x4c054a=_0xb7a97b?'✅':'❌';_0x31efff['push'](_0x1be392(0x1c6)+_0x4c054a+'\x20'+(_0xb7a97b?_0x1be392(0x1d2):_0x2e46c0[_0x1be392(0x1c5)])),_0x31efff['push'](''),_0x31efff['push'](_0x1be392(0x1ba)),_0x31efff['push'](''),_0x31efff['push'](_0x536b5e),_0x31efff[_0x1be392(0x1c9)]('');if(_0xca301c&&_0x2e46c0['kIRwS'](_0xca301c[_0x1be392(0x1dd)],0x0)){_0x31efff['push']('###\x20Issues\x20Found\x20('+_0xca301c[_0x1be392(0x1dd)]+')'),_0x31efff['push']('');for(const _0x16b99a of _0xca301c){const _0x35c58d=getSeverityEmoji(_0x16b99a[_0x1be392(0x1c1)]);_0x31efff[_0x1be392(0x1c9)]('####\x20'+_0x35c58d+'\x20['+_0x16b99a[_0x1be392(0x1c1)]+_0x1be392(0x1bd)),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff['push'](_0x16b99a[_0x1be392(0x1cf)]),_0x31efff[_0x1be392(0x1c9)]('');if(_0x16b99a[_0x1be392(0x1cd)]){const _0x4b943d=_0x16b99a['screenshot'],_0x586c7f=_0x528d28['find'](_0x54de59=>_0x54de59['filename']===_0x4b943d||_0x54de59['filename']['includes'](_0x4b943d));_0x586c7f&&(_0x31efff['push'](_0x1be392(0x1da)),_0x31efff['push'](''),_0x31efff['push']('!['+_0x4b943d+']('+_0x586c7f[_0x1be392(0x1d6)]+')'),_0x31efff['push'](''));}}}if(_0x2e46c0[_0x1be392(0x1d7)](_0x528d28[_0x1be392(0x1dd)],0x0)){_0x31efff[_0x1be392(0x1c9)](_0x1be392(0x1c7)+_0x528d28[_0x1be392(0x1dd)]+')'),_0x31efff['push']('');for(const _0x193d6a of _0x528d28){const _0x4e4b65=formatScreenshotCaption(_0x193d6a['filename']);_0x31efff['push']('###\x20'+_0x4e4b65),_0x31efff[_0x1be392(0x1c9)](''),_0x31efff[_0x1be392(0x1c9)]('!['+_0x193d6a['filename']+']('+_0x193d6a[_0x1be392(0x1d6)]+')'),_0x31efff['push']('');}}return _0x5de428&&(_0x31efff[_0x1be392(0x1c9)](_0x1be392(0x1c4)),_0x31efff['push'](''),_0x31efff['push']('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x5de428+')'),_0x31efff[_0x1be392(0x1c9)]('')),_0x31efff['join']('\x0a');}
@@ -1 +1 @@
1
- function _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 _0x4ed6(){const _0x5715db=['248QRoVyN','baseDelayMs','\x20failed\x20(attempt\x20','710811AnRMbL','1409424gguTAK','67757qDXuYB','zUnnf','pow','kjWJj','1243098OYIuDu','429705BubBSb','7948wdwloC','label','3367ySZekk','4aaehkq','20NyjYjR','44XHuZwG','70GAoNQn','error'];_0x4ed6=function(){return _0x5715db;};return _0x4ed6();}(function(_0x375fb3,_0x34443d){const _0x3a9b3b=_0x28ad,_0x3c1b4c=_0x375fb3();while(!![]){try{const _0x456ca9=parseInt(_0x3a9b3b(0x1d7))/0x1*(parseInt(_0x3a9b3b(0x1cd))/0x2)+-parseInt(_0x3a9b3b(0x1c9))/0x3+-parseInt(_0x3a9b3b(0x1ca))/0x4*(-parseInt(_0x3a9b3b(0x1d0))/0x5)+-parseInt(_0x3a9b3b(0x1c8))/0x6+-parseInt(_0x3a9b3b(0x1cc))/0x7*(parseInt(_0x3a9b3b(0x1d2))/0x8)+-parseInt(_0x3a9b3b(0x1d5))/0x9*(parseInt(_0x3a9b3b(0x1ce))/0xa)+-parseInt(_0x3a9b3b(0x1cf))/0xb*(-parseInt(_0x3a9b3b(0x1d6))/0xc);if(_0x456ca9===_0x34443d)break;else _0x3c1b4c['push'](_0x3c1b4c['shift']());}catch(_0x3929c6){_0x3c1b4c['push'](_0x3c1b4c['shift']());}}}(_0x4ed6,0x1ad1d));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x28ad(_0x1b7771,_0x53948e){_0x1b7771=_0x1b7771-0x1c5;const _0x4ed6ea=_0x4ed6();let _0x28ad5a=_0x4ed6ea[_0x1b7771];return _0x28ad5a;}export async function withRetry(_0x170398,_0x432797){const _0x13c9b9=_0x28ad,_0x10aa51={'kjWJj':function(_0x10b517,_0xb7659e){return _0x10b517<=_0xb7659e;},'LKcDC':function(_0x39cdb0){return _0x39cdb0();},'gsmxu':function(_0x61b256,_0x1b5c3b){return _0x61b256*_0x1b5c3b;},'zUnnf':function(_0x304c3e,_0x3bb5e0){return _0x304c3e+_0x3bb5e0;}},_0x498344=_0x432797?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4909d1=_0x432797?.[_0x13c9b9(0x1d3)]??DEFAULT_BASE_DELAY_MS;let _0x328cc2;for(let _0x3f2fe7=0x0;_0x10aa51[_0x13c9b9(0x1c7)](_0x3f2fe7,_0x498344);_0x3f2fe7++){try{return await _0x10aa51['LKcDC'](_0x170398);}catch(_0x1b6d02){_0x328cc2=_0x1b6d02 instanceof Error?_0x1b6d02:new Error(String(_0x1b6d02));if(_0x3f2fe7<_0x498344){const _0x22b878=_0x10aa51['gsmxu'](_0x4909d1,Math[_0x13c9b9(0x1c6)](0x2,_0x3f2fe7));_0x432797?.[_0x13c9b9(0x1cb)]&&console[_0x13c9b9(0x1d1)](_0x432797[_0x13c9b9(0x1cb)]+_0x13c9b9(0x1d4)+_0x10aa51[_0x13c9b9(0x1c5)](_0x3f2fe7,0x1)+'/'+(_0x498344+0x1)+'),\x20retrying\x20in\x20'+_0x22b878+'ms...'),await new Promise(_0x1a7edc=>setTimeout(_0x1a7edc,_0x22b878));}}}throw _0x328cc2;}
@@ -1 +1 @@
1
- const _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 _0x13d332=_0x2262;(function(_0xf71ce2,_0x279f6f){const _0x3c13e5=_0x2262,_0x125743=_0xf71ce2();while(!![]){try{const _0xf0a787=-parseInt(_0x3c13e5(0x144))/0x1*(parseInt(_0x3c13e5(0x13f))/0x2)+-parseInt(_0x3c13e5(0x14e))/0x3+-parseInt(_0x3c13e5(0x147))/0x4+-parseInt(_0x3c13e5(0x16d))/0x5+parseInt(_0x3c13e5(0x145))/0x6*(parseInt(_0x3c13e5(0x151))/0x7)+parseInt(_0x3c13e5(0x139))/0x8*(-parseInt(_0x3c13e5(0x169))/0x9)+parseInt(_0x3c13e5(0x14f))/0xa*(parseInt(_0x3c13e5(0x15a))/0xb);if(_0xf0a787===_0x279f6f)break;else _0x125743['push'](_0x125743['shift']());}catch(_0xa244a5){_0x125743['push'](_0x125743['shift']());}}}(_0x3b95,0xabad7));import*as _0x2f3cb0 from'fs';import*as _0x23d8d0 from'path';import*as _0x1916df from'os';import{execSync}from'child_process';const CACHE_FILE=_0x23d8d0['join'](_0x1916df['homedir'](),_0x13d332(0x160),_0x13d332(0x161));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x3b95(){const _0x7bd5b8=['parse','PbzLN','readFileSync','1MASuZn','426dBrsuD','trim','2657272YJORcr','YmUsZ','WTmXA','master','registeredAt','vvbyE','FnWOy','3130764CKSCky','47383810FeMwOv','JDYji','65485qCwqch','qWLTC','now','Urldr','gIHNJ','cVrHR','TKVzZ','BetOv','JwaTp','11IDpegm','MbHDK','currentBranch','lastPlanReminderAt','lastEnabledSessionClearedAt','prompted','.claude','.ranger_cache.json','xpXjW','fKlZI','featureId','pdzde','utf-8','enabled','sessions','36fYbECG','HWnVQ','CGufS','vGpII','3937395cEmYcH','pipe','csCZP','toISOString','1935944CiyiNK','git\x20rev-parse\x20--abbrev-ref\x20HEAD','branches','mkdirSync','FEsef','main','2472076AgSQDh','DTTwm'];_0x3b95=function(){return _0x7bd5b8;};return _0x3b95();}function loadCache(){const _0x1a11aa=_0x13d332;try{if(_0x2f3cb0['existsSync'](CACHE_FILE)){const _0x545e1b=JSON[_0x1a11aa(0x141)](_0x2f3cb0[_0x1a11aa(0x143)](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x545e1b[_0x1a11aa(0x168)]||{},'branches':_0x545e1b['branches']||{},'lastEnabledSessionClearedAt':_0x545e1b[_0x1a11aa(0x15e)]};}}catch{}return createEmptyCache();}function saveCache(_0x1a1a79){const _0x504b65=_0x13d332;try{const _0x1ed614=_0x23d8d0['dirname'](CACHE_FILE);!_0x2f3cb0['existsSync'](_0x1ed614)&&_0x2f3cb0[_0x504b65(0x13c)](_0x1ed614,{'recursive':!![]}),_0x2f3cb0['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x1a1a79,null,0x2));}catch{}}export function getCurrentBranch(){const _0x510859=_0x13d332,_0xf029f1={'ArQOn':function(_0x2ade9b,_0x49dbfa,_0x3707a9){return _0x2ade9b(_0x49dbfa,_0x3707a9);},'gvLJE':_0x510859(0x166),'sZSIG':'pipe','csCZP':function(_0x5ac5da,_0x286f76){return _0x5ac5da===_0x286f76;}};try{const _0x2342a8=_0xf029f1['ArQOn'](execSync,_0x510859(0x13a),{'encoding':_0xf029f1['gvLJE'],'stdio':[_0xf029f1['sZSIG'],_0x510859(0x136),_0x510859(0x136)]})[_0x510859(0x146)]();if(!_0x2342a8||_0xf029f1[_0x510859(0x137)](_0x2342a8,'HEAD'))return null;return _0x2342a8;}catch{return null;}}export function enableBranch(_0x57b21a){const _0x304fbc=_0x13d332,_0x53bbd5={'vvbyE':function(_0xe696b4,_0xd66a24){return _0xe696b4(_0xd66a24);}},_0x1c0936=loadCache();_0x1c0936['branches'][_0x57b21a]=!![],_0x53bbd5[_0x304fbc(0x14c)](saveCache,_0x1c0936);}export function disableBranch(_0x76a7){const _0x57e010=loadCache();delete _0x57e010['branches'][_0x76a7],saveCache(_0x57e010);}export function isBranchEnabled(_0x6de7a9){const _0x1cef5f=_0x13d332,_0x433bb3={'Urldr':function(_0x454875,_0x33b2fa){return _0x454875===_0x33b2fa;}},_0x3fcff8=loadCache();return _0x433bb3[_0x1cef5f(0x154)](_0x3fcff8['branches'][_0x6de7a9],!![]);}function getOrCreateSession(_0x17fef5,_0x52f35a){const _0x399cd4=_0x13d332;return!_0x17fef5['sessions'][_0x52f35a]&&(_0x17fef5[_0x399cd4(0x168)][_0x52f35a]={}),_0x17fef5['sessions'][_0x52f35a];}export function enableSession(_0x140b8c){const _0x23dbe6=_0x13d332,_0x453f1a={'PbzLN':function(_0xecceb1){return _0xecceb1();},'KlHiV':_0x23dbe6(0x14a),'EpZqv':function(_0x2bb734,_0x18b630){return _0x2bb734(_0x18b630);}},_0xa744fc=loadCache(),_0x567fc1=getOrCreateSession(_0xa744fc,_0x140b8c);_0x567fc1['enabled']=!![];const _0x438aa1=_0x453f1a[_0x23dbe6(0x142)](getCurrentBranch);_0x438aa1&&_0x438aa1!==_0x23dbe6(0x13e)&&_0x438aa1!==_0x453f1a['KlHiV']&&(_0xa744fc[_0x23dbe6(0x13b)][_0x438aa1]=!![],_0x567fc1['currentBranch']=_0x438aa1),_0x453f1a['EpZqv'](saveCache,_0xa744fc);}export function isSessionEnabled(_0x4c3918){const _0x19b0db=_0x13d332,_0x16f7a3={'ktksi':function(_0x1dfb8f){return _0x1dfb8f();},'fKlZI':function(_0x3d804c,_0x36e914){return _0x3d804c===_0x36e914;},'cVrHR':_0x19b0db(0x14a)},_0x2afb4d=_0x16f7a3['ktksi'](loadCache),_0x507e2e=getCurrentBranch();if(!_0x507e2e||_0x16f7a3[_0x19b0db(0x163)](_0x507e2e,'main')||_0x16f7a3['fKlZI'](_0x507e2e,_0x16f7a3[_0x19b0db(0x156)]))return _0x2afb4d['sessions'][_0x4c3918]?.['enabled']===!![];const _0x53fd3d=_0x16f7a3['fKlZI'](_0x2afb4d['branches'][_0x507e2e],!![]),_0x11450f=_0x2afb4d[_0x19b0db(0x168)][_0x4c3918]?.[_0x19b0db(0x167)]===!![];return _0x53fd3d||_0x11450f;}export function disableSession(_0x152845){const _0x36a7bd=_0x13d332,_0x3c536b={'FEsef':function(_0x2c33a3){return _0x2c33a3();},'ngRrG':function(_0x2d2d35,_0x16a4cf){return _0x2d2d35(_0x16a4cf);}},_0x9ada11=_0x3c536b[_0x36a7bd(0x13d)](loadCache),_0x58110a=getOrCreateSession(_0x9ada11,_0x152845);_0x58110a[_0x36a7bd(0x167)]=![],_0x3c536b['ngRrG'](saveCache,_0x9ada11);}export function updateBranchTracking(_0x4f9a7b){const _0xa659ea=_0x13d332,_0x39c41c={'MbHDK':function(_0x57084d){return _0x57084d();},'fsXxf':function(_0x580cd5){return _0x580cd5();},'JDYji':function(_0x488f7a,_0x2cb8a2){return _0x488f7a===_0x2cb8a2;},'rFKet':_0xa659ea(0x13e),'cfiZo':function(_0x4313e7,_0x204ee7){return _0x4313e7!==_0x204ee7;}},_0xe58b7e=_0x39c41c[_0xa659ea(0x15b)](loadCache),_0x4df9e0=_0xe58b7e[_0xa659ea(0x168)][_0x4f9a7b];if(!_0x4df9e0?.['enabled'])return;const _0x3a2520=_0x39c41c['fsXxf'](getCurrentBranch);if(!_0x3a2520||_0x39c41c[_0xa659ea(0x150)](_0x3a2520,_0x39c41c['rFKet'])||_0x3a2520===_0xa659ea(0x14a))return;_0x39c41c['cfiZo'](_0x4df9e0['currentBranch'],_0x3a2520)&&(_0xe58b7e[_0xa659ea(0x13b)][_0x3a2520]=!![],_0x4df9e0['currentBranch']=_0x3a2520,saveCache(_0xe58b7e));}export function initBranchTracking(_0x417ccc){const _0x5225b2=_0x13d332,_0x2b733c={'pdzde':function(_0x5d5040){return _0x5d5040();},'TKVzZ':function(_0x4d809a,_0xdde142){return _0x4d809a===_0xdde142;},'FkHLo':_0x5225b2(0x13e),'EyfBg':_0x5225b2(0x14a)},_0x453acf=_0x2b733c[_0x5225b2(0x165)](loadCache),_0x21c6a4=getCurrentBranch();if(!_0x21c6a4||_0x2b733c[_0x5225b2(0x157)](_0x21c6a4,_0x2b733c['FkHLo'])||_0x21c6a4===_0x2b733c['EyfBg'])return;if(_0x453acf['branches'][_0x21c6a4]===!![]){const _0x562779=getOrCreateSession(_0x453acf,_0x417ccc);_0x562779[_0x5225b2(0x167)]=!![],_0x562779['currentBranch']=_0x21c6a4,saveCache(_0x453acf);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x4edee1){const _0x5389c2=_0x13d332,_0x29ba7d=loadCache(),_0x2ff799=_0x29ba7d[_0x5389c2(0x168)][_0x4edee1];_0x2ff799?.[_0x5389c2(0x167)]&&(_0x29ba7d['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x29ba7d));}export function shouldAutoEnableAfterClear(_0x455734){const _0x28d3f9=_0x13d332,_0x371fac={'FnWOy':'clear','iAEhd':function(_0x3841f7){return _0x3841f7();},'YmUsZ':function(_0x1791a6,_0x4ea792){return _0x1791a6<=_0x4ea792;}};if(_0x455734!==_0x371fac[_0x28d3f9(0x14d)])return![];const _0x5e977c=_0x371fac['iAEhd'](loadCache),_0x1c57fd=_0x5e977c[_0x28d3f9(0x15e)];if(!_0x1c57fd)return![];const _0x161fea=Date[_0x28d3f9(0x153)]()-_0x1c57fd;return _0x371fac[_0x28d3f9(0x148)](_0x161fea,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x5d300e){const _0x56ba9d=_0x13d332,_0x395de6={'yELlU':function(_0x223e9c,_0xc46758){return _0x223e9c!==_0xc46758;},'TtFTt':_0x56ba9d(0x13e),'DTTwm':'master','qZmIk':function(_0x8742a4,_0x5c1011){return _0x8742a4(_0x5c1011);}},_0x21f971=loadCache(),_0x14d3b9=getOrCreateSession(_0x21f971,_0x5d300e);_0x14d3b9['enabled']=!![];const _0x2a73da=getCurrentBranch();_0x2a73da&&_0x395de6['yELlU'](_0x2a73da,_0x395de6['TtFTt'])&&_0x2a73da!==_0x395de6[_0x56ba9d(0x140)]&&(_0x14d3b9[_0x56ba9d(0x15c)]=_0x2a73da),delete _0x21f971['lastEnabledSessionClearedAt'],_0x395de6['qZmIk'](saveCache,_0x21f971);}export function registerSession(_0x48f708,_0x18cc42){const _0x46c2c0=_0x13d332,_0x1d246b={'csQua':function(_0xc03a43){return _0xc03a43();}},_0x245fd6=_0x1d246b['csQua'](loadCache),_0x47f6ef=getOrCreateSession(_0x245fd6,_0x48f708);_0x47f6ef[_0x46c2c0(0x164)]=_0x18cc42,_0x47f6ef[_0x46c2c0(0x14b)]=new Date()[_0x46c2c0(0x138)](),saveCache(_0x245fd6);}export function getSessionEntry(_0x55bc3e){const _0x260c7f=_0x13d332,_0x39ff67={'HWnVQ':function(_0x1a42ac){return _0x1a42ac();}},_0x5b336f=_0x39ff67[_0x260c7f(0x16a)](loadCache),_0x2b27d5=_0x5b336f['sessions'][_0x55bc3e];if(_0x2b27d5?.['featureId']&&_0x2b27d5?.['registeredAt'])return{'featureId':_0x2b27d5[_0x260c7f(0x164)],'registeredAt':_0x2b27d5[_0x260c7f(0x14b)]};return null;}export function unregisterSession(_0x5c4455){const _0x54b664=_0x13d332,_0x4b0709={'vGpII':function(_0x533cf6){return _0x533cf6();},'hllCJ':function(_0x4f917d,_0x1a8599){return _0x4f917d(_0x1a8599);}},_0x4c9ce6=_0x4b0709[_0x54b664(0x16c)](loadCache),_0x6350cf=_0x4c9ce6['sessions'][_0x5c4455];_0x6350cf&&(delete _0x6350cf[_0x54b664(0x164)],delete _0x6350cf['registeredAt'],_0x4b0709['hllCJ'](saveCache,_0x4c9ce6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;function _0x2262(_0x36d783,_0x452933){_0x36d783=_0x36d783-0x136;const _0x3b95a9=_0x3b95();let _0x2262fb=_0x3b95a9[_0x36d783];return _0x2262fb;}export function shouldShowPlanReminder(_0x2ff0b8){const _0x2b98dc=_0x13d332,_0x5d4e94={'JwaTp':function(_0x8395e6){return _0x8395e6();},'xpXjW':function(_0x4b1ada,_0x1f91dd,_0xbeeb4d){return _0x4b1ada(_0x1f91dd,_0xbeeb4d);},'WTmXA':function(_0x118602,_0x3d874e){return _0x118602-_0x3d874e;},'qWLTC':function(_0x1fdc67,_0x20343e){return _0x1fdc67(_0x20343e);}},_0x2453d5=_0x5d4e94[_0x2b98dc(0x159)](loadCache),_0x44e476=_0x5d4e94[_0x2b98dc(0x162)](getOrCreateSession,_0x2453d5,_0x2ff0b8),_0x4eb769=_0x44e476[_0x2b98dc(0x15d)]||0x0,_0x3cbf43=Date[_0x2b98dc(0x153)]();if(_0x5d4e94[_0x2b98dc(0x149)](_0x3cbf43,_0x4eb769)>=PLAN_REMINDER_INTERVAL_MS)return _0x44e476[_0x2b98dc(0x15d)]=_0x3cbf43,_0x5d4e94[_0x2b98dc(0x152)](saveCache,_0x2453d5),!![];return![];}export function hasSessionBeenPrompted(_0x16b591){const _0x203f1c=_0x13d332,_0x2b8b24={'gIHNJ':function(_0xb02d43,_0x444244){return _0xb02d43===_0x444244;}},_0x47e0ba=loadCache();return _0x2b8b24[_0x203f1c(0x155)](_0x47e0ba[_0x203f1c(0x168)][_0x16b591]?.[_0x203f1c(0x15f)],!![]);}export function markSessionPrompted(_0x52698d){const _0x1f5feb=_0x13d332,_0x1b16e0={'CGufS':function(_0x1c45a1){return _0x1c45a1();},'BetOv':function(_0x23d706,_0x34ec9f,_0x10d957){return _0x23d706(_0x34ec9f,_0x10d957);},'rcAEl':function(_0xb58af8,_0x25d6e6){return _0xb58af8(_0x25d6e6);}},_0x31adc9=_0x1b16e0[_0x1f5feb(0x16b)](loadCache),_0x23a066=_0x1b16e0[_0x1f5feb(0x158)](getOrCreateSession,_0x31adc9,_0x52698d);_0x23a066[_0x1f5feb(0x15f)]=!![],_0x1b16e0['rcAEl'](saveCache,_0x31adc9);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- (function(_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(_0x344dcc,_0x471e54){const _0x3108bc=_0x2254,_0x35b48d=_0x344dcc();while(!![]){try{const _0x5b2e25=-parseInt(_0x3108bc(0x188))/0x1*(-parseInt(_0x3108bc(0x1ce))/0x2)+parseInt(_0x3108bc(0x182))/0x3*(parseInt(_0x3108bc(0x185))/0x4)+-parseInt(_0x3108bc(0x1ca))/0x5*(parseInt(_0x3108bc(0x18f))/0x6)+-parseInt(_0x3108bc(0x18d))/0x7+parseInt(_0x3108bc(0x1ac))/0x8*(parseInt(_0x3108bc(0x1c5))/0x9)+parseInt(_0x3108bc(0x18b))/0xa+-parseInt(_0x3108bc(0x1ab))/0xb*(parseInt(_0x3108bc(0x1b8))/0xc);if(_0x5b2e25===_0x471e54)break;else _0x35b48d['push'](_0x35b48d['shift']());}catch(_0x17e55d){_0x35b48d['push'](_0x35b48d['shift']());}}}(_0x213c,0xc17c8));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x2b58f2){const _0x4774db=_0x2254,_0x208edb={'lnCQO':function(_0x36dc98){return _0x36dc98();},'ZOsJk':_0x4774db(0x1c3),'Ydmgl':function(_0x57f787,_0x3ad882){return _0x57f787(_0x3ad882);},'QbFZV':function(_0x31d909,_0x216a39){return _0x31d909(_0x216a39);}},_0x3fb58f=_0x208edb['lnCQO'](getRangerDir),_0x21908a=join(_0x3fb58f,'ci',_0x2b58f2),_0x3426c0=join(_0x3fb58f,_0x208edb[_0x4774db(0x1a3)],_0x2b58f2),_0xbe53be=join(_0x3fb58f,_0x2b58f2),_0x87c48d=join(_0x3fb58f,_0x208edb['ZOsJk']),_0x557ae6=join(_0x3fb58f,'ci');if(_0x208edb[_0x4774db(0x17e)](existsSync,_0x21908a))return _0x21908a;if(_0x208edb['Ydmgl'](existsSync,_0x3426c0))return _0x3426c0;if(_0x208edb['QbFZV'](existsSync,_0xbe53be)&&(_0xbe53be!==_0x87c48d&&_0xbe53be!==_0x557ae6?!![]:hasLegacyProfileFiles(_0xbe53be)))return _0xbe53be;return _0x3426c0;}export function findExistingEnv(_0x85b28,_0x288bed){const _0x2ffca0=_0x2254,_0x1fb9d7={'XAmdd':function(_0x119be2){return _0x119be2();},'TIdKJ':_0x2ffca0(0x18a),'bhWmQ':function(_0x453cba,_0x550688,_0x31cb7e){return _0x453cba(_0x550688,_0x31cb7e);},'HixyE':'local','IAFbr':function(_0x523149,_0x28d86c,_0xe7d85,_0x287148){return _0x523149(_0x28d86c,_0xe7d85,_0x287148);},'kgxgA':function(_0x2de404,_0x27712c,_0x414ec5){return _0x2de404(_0x27712c,_0x414ec5);},'PeSby':function(_0x496f40,_0x518d14){return _0x496f40===_0x518d14;},'ydwNm':function(_0x562bb6,_0x39a282){return _0x562bb6(_0x39a282);}},_0x5a5bd2=_0x1fb9d7['XAmdd'](getRangerDir),_0x50ee83=_0x288bed?.[_0x2ffca0(0x192)]??['ci','local',_0x1fb9d7[_0x2ffca0(0x189)]],_0x39d0a6=_0x1fb9d7[_0x2ffca0(0x19d)](join,_0x5a5bd2,_0x1fb9d7['HixyE']),_0x2601d8=_0x1fb9d7[_0x2ffca0(0x19d)](join,_0x5a5bd2,'ci'),_0x5ace47=[{'location':'ci','path':_0x1fb9d7[_0x2ffca0(0x1af)](join,_0x5a5bd2,'ci',_0x85b28)},{'location':_0x1fb9d7[_0x2ffca0(0x1b1)],'path':_0x1fb9d7['IAFbr'](join,_0x5a5bd2,'local',_0x85b28)},{'location':_0x1fb9d7[_0x2ffca0(0x189)],'path':_0x1fb9d7['kgxgA'](join,_0x5a5bd2,_0x85b28)}];for(const _0x5d4ac4 of _0x5ace47){if(_0x50ee83[_0x2ffca0(0x1b0)](_0x5d4ac4[_0x2ffca0(0x1a0)])&&existsSync(_0x5d4ac4[_0x2ffca0(0x1a7)])){if(_0x5d4ac4['location']==='legacy'&&(_0x5d4ac4[_0x2ffca0(0x1a7)]===_0x39d0a6||_0x1fb9d7['PeSby'](_0x5d4ac4['path'],_0x2601d8))&&!_0x1fb9d7['ydwNm'](hasLegacyProfileFiles,_0x5d4ac4['path']))continue;return{'path':_0x5d4ac4['path'],'location':_0x5d4ac4[_0x2ffca0(0x1a0)]};}}return null;}function hasLegacyProfileFiles(_0x285baa){const _0x195b87=_0x2254,_0x1b231a={'fIddn':function(_0x141352,_0x49bbfd,_0xb98840){return _0x141352(_0x49bbfd,_0xb98840);},'RTjoF':function(_0x1b7fae,_0x1847ea){return _0x1b7fae(_0x1847ea);}};return existsSync(_0x1b231a['fIddn'](join,_0x285baa,'settings.json'))||existsSync(join(_0x285baa,'auth.json'))||_0x1b231a['RTjoF'](existsSync,_0x1b231a[_0x195b87(0x18e)](join,_0x285baa,'auth.json.enc'));}export function isEnvCi(_0x523284){return existsSync(join(getRangerDir(),'ci',_0x523284));}function _0x213c(){const _0x138aac=['orHfK','ZOsJk','catch','code','contextOptions','path','length','push','map','8305979JRXXpe','32jcXzof','BWkTK','message','IAFbr','includes','HixyE','env','vision','DfLiT','tYiEi','entries','getuid','12EBNfrC','core','KmQcr','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','repeat','VGuYI','RyzBN','gqcMK','WaqtZ','wePUP','qrfbM','local','cdpEndpoint','411633nRlxfD','.json','object','NRgoc','stringify','269995yKCjfx','all','fromEntries','utf-8','1671478NybSKf','isArray','clipboard-write','Ydmgl','VnPNQ','dXcrt','configPath','1568724waHQou','headless','replace','12GmKzsV','storageState','browser','1IWtZoa','TIdKJ','legacy','14774420gLiUPI','parse','9304862DVdwDi','fIddn','132rETVTy','oPWJB','ENOENT','locations','PcRKg','iyqTR','now','header','yAJxS','join','ranger-config','OZnKE','chromium','mHHAO','bhWmQ','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','sessions','location','settings.json'];_0x213c=function(){return _0x138aac;};return _0x213c();}export async function cleanupTempFiles(_0x470d26){const _0x2f9b16=_0x2254,_0x2526af=[_0x470d26['tempAuthPath'],_0x470d26[_0x2f9b16(0x181)]]['filter'](Boolean);await Promise[_0x2f9b16(0x1cb)](_0x2526af['map'](_0x50ea55=>unlink(_0x50ea55)[_0x2f9b16(0x1a4)](_0x3a317b=>{const _0xc80477=_0x2f9b16;_0x3a317b[_0xc80477(0x1a5)]!==_0xc80477(0x191)&&console['warn'](_0xc80477(0x1bb)+_0x50ea55+':',_0x3a317b[_0xc80477(0x1ae)]);})));}export function getSettingsPath(_0x5623f9){const _0x14a51e=_0x2254,_0x5531c3={'JvoIa':function(_0x14a0f1,_0x15cc05,_0x2a4ff6){return _0x14a0f1(_0x15cc05,_0x2a4ff6);},'RyzBN':function(_0x21279b,_0x33648d){return _0x21279b(_0x33648d);}};return _0x5531c3['JvoIa'](join,_0x5531c3[_0x14a51e(0x1be)](getEnvDir,_0x5623f9),_0x14a51e(0x1a1));}export async function loadSettings(_0x21a94b){const _0x1d4319=_0x2254,_0x3b6ecb={'kQEas':function(_0x453d3a,_0x43539d){return _0x453d3a(_0x43539d);}},_0x2f682c=getSettingsPath(_0x21a94b);if(!_0x3b6ecb['kQEas'](existsSync,_0x2f682c))return{};try{const _0x13d054=await readFile(_0x2f682c,_0x1d4319(0x1cd));return JSON[_0x1d4319(0x18c)](_0x13d054);}catch{return{};}}function _0x2254(_0x4a7e17,_0x405303){_0x4a7e17=_0x4a7e17-0x17d;const _0x213cbd=_0x213c();let _0x2254ab=_0x213cbd[_0x4a7e17];return _0x2254ab;}export async function saveSettings(_0x255ff5,_0x26a5f7){const _0x469737=_0x2254,_0x3b65fb={'qrfbM':function(_0x5c69a3,_0x546441,_0x1a39a4){return _0x5c69a3(_0x546441,_0x1a39a4);}},_0x16b7e3=getSettingsPath(_0x255ff5),_0x4919b1=dirname(_0x16b7e3);!existsSync(_0x4919b1)&&await mkdir(_0x4919b1,{'recursive':!![]}),await _0x3b65fb[_0x469737(0x1c2)](writeFile,_0x16b7e3,JSON[_0x469737(0x1c9)](_0x26a5f7,null,0x2));}export function resolveEnvVars(_0x10d9e7){const _0x536016=_0x2254,_0x54e461={'lnlCn':function(_0x8b300e,_0x557aea){return _0x8b300e===_0x557aea;},'orHfK':'string'};if(typeof _0x10d9e7===_0x54e461[_0x536016(0x1a2)])return _0x10d9e7[_0x536016(0x184)](/\$\{(\w+)\}/g,(_0x78487b,_0x548871)=>{const _0x251f52=_0x536016,_0x56ac5d=process[_0x251f52(0x1b2)][_0x548871];if(_0x54e461['lnlCn'](_0x56ac5d,undefined))throw new Error('Environment\x20variable\x20'+_0x548871+'\x20is\x20not\x20set');return _0x56ac5d;});if(Array[_0x536016(0x1cf)](_0x10d9e7))return _0x10d9e7['map'](resolveEnvVars);if(_0x10d9e7&&typeof _0x10d9e7===_0x536016(0x1c7))return Object[_0x536016(0x1cc)](Object['entries'](_0x10d9e7)[_0x536016(0x1aa)](([_0x470e2f,_0x273243])=>[_0x470e2f,resolveEnvVars(_0x273243)]));return _0x10d9e7;}export async function buildPlaywrightConfig(_0x4116e4,_0x1465c5,_0x50a84c,_0x49f4a2){const _0x5b8866=_0x2254,_0x1258bc={'VGuYI':function(_0x32f7ee,_0x303fe8,_0x124a39){return _0x32f7ee(_0x303fe8,_0x124a39);},'wePUP':'auth.json','TnzGi':function(_0x3deb76){return _0x3deb76();},'KmQcr':_0x5b8866(0x19e),'yAJxS':function(_0x3edc7a,_0xe66273){return _0x3edc7a(_0xe66273);},'OZnKE':function(_0x11636a,_0x568def){return _0x11636a(_0x568def);},'PcRKg':function(_0x54211c){return _0x54211c();},'oPWJB':'chromium','dXcrt':'--no-sandbox','XmrjW':'clipboard-read','qagkw':_0x5b8866(0x17d),'cBUPS':'tabs','IAyAy':'pdf','DfLiT':_0x5b8866(0x1b3),'iyqTR':function(_0x5458f3,_0x582351){return _0x5458f3===_0x582351;},'tYiEi':function(_0x41e0ca,_0x534436){return _0x41e0ca===_0x534436;},'NRgoc':function(_0x354f12,_0x2c4a72){return _0x354f12(_0x2c4a72);}},_0x174cf8=getEnvDir(_0x1465c5),_0x26af7d=_0x1258bc[_0x5b8866(0x1bd)](join,_0x174cf8,'auth.json.enc'),_0xb405e2=join(_0x174cf8,_0x1258bc[_0x5b8866(0x1c1)]);let _0xd5413f,_0x4eec3c;if(existsSync(_0x26af7d))try{const _0x5d7dc3=await _0x1258bc['TnzGi'](getToken);if(!_0x5d7dc3)throw new Error(_0x1258bc[_0x5b8866(0x1ba)]);const _0x504b5e=await _0x1258bc[_0x5b8866(0x197)](readFile,_0x26af7d),_0x305b00=decrypt(_0x504b5e,_0x5d7dc3);_0x4eec3c=join(tmpdir(),'ranger-auth-'+Date[_0x5b8866(0x195)]()+'.json'),await writeFile(_0x4eec3c,_0x305b00),_0xd5413f=_0x4eec3c;}catch(_0x4cf73f){const _0x228047=_0x4cf73f instanceof Error?_0x4cf73f['message']:String(_0x4cf73f);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x228047);}else _0x1258bc[_0x5b8866(0x19a)](existsSync,_0xb405e2)&&(_0xd5413f=_0xb405e2);const _0x114ab0=_0x50a84c||_0x1258bc[_0x5b8866(0x193)](randomUUID),_0x1e1a4d=join(getRangerDir(),_0x5b8866(0x19f),_0x114ab0),_0x1ac917=_0x1258bc[_0x5b8866(0x197)](Boolean,_0x4116e4[_0x5b8866(0x1c4)]),_0x47f0e7=_0x1ac917?{'browserName':_0x1258bc[_0x5b8866(0x190)],'cdpEndpoint':_0x4116e4['cdpEndpoint']}:{'isolated':!![],'browserName':_0x5b8866(0x19b),'launchOptions':{'headless':_0x49f4a2?![]:_0x4116e4[_0x5b8866(0x183)]??!![],...process[_0x5b8866(0x1b7)]?.()===0x0&&{'args':[_0x1258bc[_0x5b8866(0x180)],'--disable-setuid-sandbox']}},'contextOptions':{'permissions':[_0x1258bc['XmrjW'],_0x1258bc['qagkw']],'userAgent':_0x4116e4['userAgent']||undefined,'extraHTTPHeaders':_0x4116e4['headers']||{},'storageState':_0xd5413f,'viewport':{'width':0x500,'height':0x2d0}}},_0x1bddea={'name':_0x1465c5,'browser':_0x47f0e7,'capabilities':[_0x5b8866(0x1b9),_0x1258bc['cBUPS'],'install',_0x1258bc['IAyAy'],_0x1258bc[_0x5b8866(0x1b4)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1e1a4d};if(!_0x1ac917){const _0x1466aa=_0x1bddea[_0x5b8866(0x187)],_0x5a6fa3=_0x1466aa[_0x5b8866(0x1a6)];if(_0x1258bc[_0x5b8866(0x194)](_0x5a6fa3['userAgent'],undefined))delete _0x5a6fa3['userAgent'];if(_0x1258bc[_0x5b8866(0x1b5)](_0x5a6fa3[_0x5b8866(0x186)],undefined))delete _0x5a6fa3['storageState'];}const _0x403922=_0x1258bc['VGuYI'](join,tmpdir(),_0x5b8866(0x199));!_0x1258bc[_0x5b8866(0x1c8)](existsSync,_0x403922)&&await mkdir(_0x403922,{'recursive':!![]});const _0x12d9da=_0x1258bc['VGuYI'](join,_0x403922,_0x1465c5+'-'+Date['now']()+_0x5b8866(0x1c6));return await writeFile(_0x12d9da,JSON['stringify'](_0x1bddea,null,0x2)),{'configPath':_0x12d9da,'tempAuthPath':_0x4eec3c};}export function getNestedValue(_0x2c15b2,_0x35c041){const _0x4a6fc0=_0x2254,_0x551e7a={'gqcMK':function(_0x52b7b3,_0x29493e){return _0x52b7b3(_0x29493e);}},_0x4e9fe7=_0x551e7a[_0x4a6fc0(0x1bf)](parseKeyPath,_0x35c041);let _0x231ac2=_0x2c15b2;for(const _0x4e31f5 of _0x4e9fe7){if(_0x231ac2===null||_0x231ac2===undefined||typeof _0x231ac2!==_0x4a6fc0(0x1c7))return undefined;_0x231ac2=_0x231ac2[_0x4e31f5];}return _0x231ac2;}export function setNestedValue(_0x399a74,_0x29768c,_0x1ec1bb){const _0x525103=_0x2254,_0x168fc3={'BWkTK':function(_0x48c139,_0x6e6b3c){return _0x48c139-_0x6e6b3c;}},_0x2ddc6f=parseKeyPath(_0x29768c);let _0x3591cb=_0x399a74;for(let _0x1c9b62=0x0;_0x1c9b62<_0x168fc3[_0x525103(0x1ad)](_0x2ddc6f[_0x525103(0x1a8)],0x1);_0x1c9b62++){const _0x242d54=_0x2ddc6f[_0x1c9b62];(!(_0x242d54 in _0x3591cb)||typeof _0x3591cb[_0x242d54]!==_0x525103(0x1c7))&&(_0x3591cb[_0x242d54]={}),_0x3591cb=_0x3591cb[_0x242d54];}_0x3591cb[_0x2ddc6f[_0x168fc3[_0x525103(0x1ad)](_0x2ddc6f['length'],0x1)]]=_0x1ec1bb;}export function deleteNestedValue(_0x553a7a,_0x2f5f70){const _0x5ab909=_0x2254,_0x5ed1d8={'RrFDa':function(_0x4f3576,_0x2c921e){return _0x4f3576(_0x2c921e);},'Vwfer':function(_0x44f50b,_0x281e50){return _0x44f50b-_0x281e50;},'mHHAO':function(_0x1f3f2d,_0x18fb14){return _0x1f3f2d===_0x18fb14;},'iIhIy':function(_0x4d8d62,_0x299131){return _0x4d8d62!==_0x299131;},'WaqtZ':function(_0x40c0b6,_0xa18299){return _0x40c0b6 in _0xa18299;}},_0x15980f=_0x5ed1d8['RrFDa'](parseKeyPath,_0x2f5f70);let _0x239c2e=_0x553a7a;for(let _0x10e291=0x0;_0x10e291<_0x5ed1d8['Vwfer'](_0x15980f['length'],0x1);_0x10e291++){if(_0x5ed1d8[_0x5ab909(0x19c)](_0x239c2e,null)||_0x239c2e===undefined||_0x5ed1d8['iIhIy'](typeof _0x239c2e,'object'))return![];_0x239c2e=_0x239c2e[_0x15980f[_0x10e291]];}if(_0x239c2e===null||_0x239c2e===undefined||typeof _0x239c2e!==_0x5ab909(0x1c7))return![];const _0x1572c1=_0x15980f[_0x15980f['length']-0x1];if(_0x5ed1d8[_0x5ab909(0x1c0)](_0x1572c1,_0x239c2e))return delete _0x239c2e[_0x1572c1],!![];return![];}function parseKeyPath(_0x290af2){const _0x384dc2=_0x2254,_0x242fdb={'DHWjd':function(_0x4fd10f,_0x3f4cfc){return _0x4fd10f===_0x3f4cfc;},'ELYBp':'headers'},_0x780121=_0x290af2['split']('.');return _0x242fdb['DHWjd'](_0x780121[0x0],_0x384dc2(0x196))&&(_0x780121[0x0]=_0x242fdb['ELYBp']),_0x780121;}export function formatSettings(_0x21b383,_0x11ffbb=0x0){const _0x21cc26=_0x2254,_0x5cd982={'VnPNQ':function(_0x3e729e,_0x134ffa){return _0x3e729e===_0x134ffa;},'wgqKt':'object'},_0x47670a=[],_0x3ad258='\x20\x20'[_0x21cc26(0x1bc)](_0x11ffbb);for(const [_0x480be7,_0x4efaee]of Object['entries'](_0x21b383)){if(_0x5cd982[_0x21cc26(0x17f)](_0x4efaee,undefined))continue;if(typeof _0x4efaee===_0x5cd982['wgqKt']&&_0x4efaee!==null){_0x47670a[_0x21cc26(0x1a9)](''+_0x3ad258+_0x480be7+':');for(const [_0x3ee30f,_0x1fec28]of Object[_0x21cc26(0x1b6)](_0x4efaee)){_0x47670a['push'](_0x3ad258+'\x20\x20'+_0x3ee30f+':\x20'+_0x1fec28);}}else _0x47670a[_0x21cc26(0x1a9)](''+_0x3ad258+_0x480be7+':\x20'+_0x4efaee);}return _0x47670a[_0x21cc26(0x198)]('\x0a');}
@@ -1 +1 @@
1
- (function(_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(_0xabd56a,_0x1280c6){const _0x48b2de=_0x331b,_0x2a7b56=_0xabd56a();while(!![]){try{const _0x496df6=parseInt(_0x48b2de(0x74))/0x1+parseInt(_0x48b2de(0x6f))/0x2+-parseInt(_0x48b2de(0x70))/0x3+-parseInt(_0x48b2de(0x71))/0x4+-parseInt(_0x48b2de(0x73))/0x5+parseInt(_0x48b2de(0x72))/0x6+parseInt(_0x48b2de(0x6d))/0x7;if(_0x496df6===_0x1280c6)break;else _0x2a7b56['push'](_0x2a7b56['shift']());}catch(_0x5ccb6c){_0x2a7b56['push'](_0x2a7b56['shift']());}}}(_0x4cb0,0x9a264));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x331b(_0x5a39c7,_0x13d038){_0x5a39c7=_0x5a39c7-0x6d;const _0x4cb08c=_0x4cb0();let _0x331b69=_0x4cb08c[_0x5a39c7];return _0x331b69;}import{fileURLToPath}from'url';function _0x4cb0(){const _0x2fd7eb=['629874RqfUXP','2585208dhQEPi','3858498hhHZXS','5521070PBCuzA','1082377JdXreF','ranger/SKILL.md','2746366wqhCdW','TaxaH','948144nocCrG'];_0x4cb0=function(){return _0x2fd7eb;};return _0x4cb0();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x18e13d){const _0x5e1d8a=_0x331b,_0x5dea58={'TaxaH':function(_0x56fdc0,_0x49e956,_0x5b817f,_0x59aef5,_0x4e11cd){return _0x56fdc0(_0x49e956,_0x5b817f,_0x59aef5,_0x4e11cd);},'KoEMg':'skills','HxqgR':function(_0x7eaa14,_0x1ca90a,_0x14c0c4){return _0x7eaa14(_0x1ca90a,_0x14c0c4);},'uxVqu':'utf-8'},_0x256959=_0x5dea58[_0x5e1d8a(0x6e)](join,__dirname,'..','..',_0x5dea58['KoEMg']),_0x3ae4fe=_0x5dea58['HxqgR'](join,_0x256959,_0x18e13d);try{return readFileSync(_0x3ae4fe,_0x5dea58['uxVqu']);}catch{return'';}}export function getRangerSkillContent(){const _0x50b04c=_0x331b;return readSkillContent(_0x50b04c(0x75));}
@@ -1 +1 @@
1
- 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
+ const _0x39f164=_0xbf2a;(function(_0x5a7911,_0x4445d6){const _0xd95797=_0xbf2a,_0x2a0092=_0x5a7911();while(!![]){try{const _0x4fb68f=parseInt(_0xd95797(0x103))/0x1+-parseInt(_0xd95797(0x118))/0x2*(parseInt(_0xd95797(0x11f))/0x3)+parseInt(_0xd95797(0x109))/0x4+-parseInt(_0xd95797(0x122))/0x5*(-parseInt(_0xd95797(0x11b))/0x6)+parseInt(_0xd95797(0x106))/0x7+-parseInt(_0xd95797(0x121))/0x8+parseInt(_0xd95797(0x10c))/0x9*(-parseInt(_0xd95797(0x110))/0xa);if(_0x4fb68f===_0x4445d6)break;else _0x2a0092['push'](_0x2a0092['shift']());}catch(_0x3c65f9){_0x2a0092['push'](_0x2a0092['shift']());}}}(_0x5ac7,0xbf256));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x5ac7(){const _0xd74abd=['ranger','6241683BRrxrj','olcIi','utf-8','4938364exVbHO','TknMW','hGHio','153tpaRXK','bHgVs','trim','xRkLg','1140670PpqMJI','log','opencode','mTart','\x20\x20Files:\x20','Invalid\x20skill\x20frontmatter','warn','feature-tracker','4WxOJrE','skills','nKbKx','18CjjfWs','Rvpuk','.md','length','138543vMeNQc','ithki','11731896UEYTeO','2163805OIqFQP','SKILL.md','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','endsWith','NeqNi','856379MlVFmr','match'];_0x5ac7=function(){return _0xd74abd;};return _0x5ac7();}import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x39f164(0x105)];function _0xbf2a(_0x465fa8,_0x5f3797){_0x465fa8=_0x465fa8-0x101;const _0x5ac7e8=_0x5ac7();let _0xbf2abd=_0x5ac7e8[_0x465fa8];return _0xbf2abd;}export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x39f164(0x117)];export async function installSkill(_0x2e2c6c,_0x1c23b2={}){const _0x373ea4=_0x39f164,_0xe95c3a={'bHgVs':function(_0x2941c4){return _0x2941c4();},'NeqNi':function(_0x14b1fe,_0x39ebe8){return _0x14b1fe(_0x39ebe8);},'nKbKx':function(_0x47aee8,_0x238186,_0x573b3e){return _0x47aee8(_0x238186,_0x573b3e);},'mTart':_0x373ea4(0x123),'eVTiu':function(_0x2221a7,_0x20ec7e){return _0x2221a7===_0x20ec7e;},'hGHio':function(_0x10ce86,_0x127b0d,_0x2f727d){return _0x10ce86(_0x127b0d,_0x2f727d);},'xRkLg':function(_0x21a605,_0x179974,_0x117b7f){return _0x21a605(_0x179974,_0x117b7f);},'Rvpuk':_0x373ea4(0x108)},{level:level='project',cliVersion:_0x4de351,platform:platform='claude'}=_0x1c23b2,_0x3a1b9e=_0xe95c3a[_0x373ea4(0x10d)](getSourceSkillsDir),_0x2ffeef=join(_0x3a1b9e,_0x2e2c6c),_0x3869d7=join(_0x3a1b9e,_0x2e2c6c+'.md'),_0x2d3f2c=existsSync(_0x2ffeef)&&statSync(_0x2ffeef)['isDirectory']()&&_0xe95c3a[_0x373ea4(0x102)](existsSync,_0xe95c3a[_0x373ea4(0x11a)](join,_0x2ffeef,_0xe95c3a[_0x373ea4(0x113)])),_0x2b4e31=_0xe95c3a[_0x373ea4(0x102)](existsSync,_0x3869d7);if(!_0x2d3f2c&&!_0x2b4e31)return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x2e2c6c),![];const _0x2dfd1c=_0xe95c3a['eVTiu'](platform,_0x373ea4(0x112))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x4ca593=join(_0x2dfd1c,_0x2e2c6c);await mkdir(_0x4ca593,{'recursive':!![]});let _0x535b8b,_0x19bd79=[];if(_0x2d3f2c){const _0x37b839=await readdir(_0x2ffeef),_0x1333ad=_0x37b839['filter'](_0x5722b4=>_0x5722b4[_0x373ea4(0x101)](_0x373ea4(0x11d)));for(const _0x2646b8 of _0x1333ad){const _0x28ce4b=_0xe95c3a[_0x373ea4(0x11a)](join,_0x2ffeef,_0x2646b8),_0x5f4dda=_0xe95c3a[_0x373ea4(0x10b)](join,_0x4ca593,_0x2646b8);await copyFile(_0x28ce4b,_0x5f4dda),_0x19bd79['push'](_0x2646b8);}_0x535b8b=await _0xe95c3a[_0x373ea4(0x10f)](readFile,join(_0x2ffeef,_0x373ea4(0x123)),_0x373ea4(0x108));}else{_0x535b8b=await readFile(_0x3869d7,_0xe95c3a[_0x373ea4(0x11c)]);const _0x1d8521=_0xe95c3a['xRkLg'](join,_0x4ca593,_0x373ea4(0x123));await writeFile(_0x1d8521,_0x535b8b,_0xe95c3a['Rvpuk']),_0x19bd79['push'](_0xe95c3a[_0x373ea4(0x113)]);}const {name:_0x3491b9}=_0xe95c3a['NeqNi'](parseFrontmatter,_0x535b8b);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x3491b9),console[_0x373ea4(0x111)]('\x20\x20Location:\x20'+_0x4ca593),_0x19bd79[_0x373ea4(0x11e)]>0x1&&console[_0x373ea4(0x111)](_0x373ea4(0x114)+_0x19bd79['join'](',\x20')),logLocalAgentInstallation(_0x2e2c6c,{'skillDisplayName':_0x3491b9,'installLevel':level},_0x4de351)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x5ea030=_0x39f164,_0x2f223d={'yqeTv':function(_0x420ac6,_0x15a9f0,_0x40df7c,_0x160896,_0x2cdc7b){return _0x420ac6(_0x15a9f0,_0x40df7c,_0x160896,_0x2cdc7b);},'ithki':_0x5ea030(0x119),'olcIi':function(_0x1e7cb7,_0x2e4f16,_0x1e0327,_0x46d10d,_0x415c1a,_0x18e717){return _0x1e7cb7(_0x2e4f16,_0x1e0327,_0x46d10d,_0x415c1a,_0x18e717);}},_0x11597b=[_0x2f223d['yqeTv'](join,__dirname,'..','..',_0x2f223d['ithki']),_0x2f223d[_0x5ea030(0x107)](join,__dirname,'..','..','..',_0x2f223d[_0x5ea030(0x120)])];for(const _0x3bb6ce of _0x11597b){if(existsSync(_0x3bb6ce))return _0x3bb6ce;}return _0x11597b[0x0];}function parseFrontmatter(_0x585b11){const _0x47c0c9=_0x39f164,_0x5a907d=_0x585b11[_0x47c0c9(0x104)](/^---\n([\s\S]+?)\n---/);if(!_0x5a907d)throw new Error(_0x47c0c9(0x115));const _0x52c5ce=_0x5a907d[0x1],_0x349bec=_0x52c5ce[_0x47c0c9(0x104)](/name:\s*(.+)/),_0x2ce438=_0x52c5ce[_0x47c0c9(0x104)](/description:\s*"?(.+?)"?\n/);return{'name':_0x349bec?.[0x1][_0x47c0c9(0x10e)]()||'','description':_0x2ce438?.[0x1][_0x47c0c9(0x10e)]()||''};}export async function removeSkill(_0x4ab290,_0x5b19c9){const _0x2d8944=_0x39f164,_0x5f1816={'TknMW':function(_0xf34582,_0x3390d8){return _0xf34582(_0x3390d8);},'vUbZi':function(_0x2a8508,_0x2ed4a5,_0x53db71){return _0x2a8508(_0x2ed4a5,_0x53db71);}},_0x4e3c6b=getSkillsDir(_0x5b19c9),_0x4df949=join(_0x4e3c6b,_0x4ab290);if(!_0x5f1816[_0x2d8944(0x10a)](existsSync,_0x4df949))return![];try{return await _0x5f1816['vUbZi'](rm,_0x4df949,{'recursive':!![]}),console[_0x2d8944(0x111)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x4ab290),!![];}catch{return console[_0x2d8944(0x116)](_0x2d8944(0x124)+_0x4ab290),![];}}
@@ -1 +1 @@
1
- const _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 _0x58d8f5=_0x25b8;function _0x321a(){const _0x118ad5=['phaseStartTimes','split','outcome','/api/v1/mcp/cli-telemetry','phase_end','24WoUelx','commandStartTime','checklistItemId','trackCommandError','commandId','abort','1236137WfbTPl','buffer','signal','message','GcoHk','iavwW','DEBUG','trackCommandEnd','catch','env','Authorization','OPAbB','toISOString','GAkLx','featureId','flushing','command_start','fufHQ','6679815MbWJva','edBAb','utf-8','eIuUd','qxiMh','platform','11994201uWabsX','success','GITHUB_ACTIONS','name','[telemetry]\x20Sending\x20','oXfoC','command_error','flush','sendImmediate','37996730BWFBJC','slice','cliVersion','AvkKg','WOdcE','1703684CnLWiG','command','browserSessionId','length','trackPhaseEnd','trackPhaseStart','isTty','constructor','6oFdsks','424703KzLIHx','nodeVersion','phase','push','.ranger','909768wlAZHt','now','eventType','phaseCounter','error','8naoPHF','PreUx','deviceId','buildEvent','get','flushAsync','.session'];_0x321a=function(){return _0x118ad5;};return _0x321a();}(function(_0x2560a2,_0x2c79b7){const _0x39adf4=_0x25b8,_0x52bef1=_0x2560a2();while(!![]){try{const _0x4bc12d=-parseInt(_0x39adf4(0x20b))/0x1*(-parseInt(_0x39adf4(0x20a))/0x2)+parseInt(_0x39adf4(0x210))/0x3+-parseInt(_0x39adf4(0x202))/0x4+parseInt(_0x39adf4(0x1ee))/0x5+parseInt(_0x39adf4(0x221))/0x6*(parseInt(_0x39adf4(0x1dc))/0x7)+parseInt(_0x39adf4(0x215))/0x8*(parseInt(_0x39adf4(0x1f4))/0x9)+-parseInt(_0x39adf4(0x1fd))/0xa;if(_0x4bc12d===_0x2c79b7)break;else _0x52bef1['push'](_0x52bef1['shift']());}catch(_0x4983bf){_0x52bef1['push'](_0x52bef1['shift']());}}}(_0x321a,0xb1703));import{randomUUID}from'crypto';function _0x25b8(_0xe1cfdc,_0x39c79e){_0xe1cfdc=_0xe1cfdc-0x1db;const _0x321a17=_0x321a();let _0x25b852=_0x321a17[_0xe1cfdc];return _0x25b852;}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x24aacc=_0x25b8,_0x2b546f={'oXfoC':function(_0x57d504,_0x5e70b6){return _0x57d504(_0x5e70b6);},'PreUx':function(_0x308c5b,_0x3cec78,_0x533496){return _0x308c5b(_0x3cec78,_0x533496);},'tunsH':function(_0x5e03e6,_0x4963ef,_0xd7f731){return _0x5e03e6(_0x4963ef,_0xd7f731);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x4ee3a7=join(homedir(),_0x24aacc(0x20f)),_0x36c54c=join(_0x4ee3a7,_0x24aacc(0x21b));if(_0x2b546f[_0x24aacc(0x1f9)](existsSync,_0x36c54c)){cachedDeviceId=_0x2b546f[_0x24aacc(0x216)](readFileSync,_0x36c54c,_0x24aacc(0x1f0))['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),_0x2b546f['tunsH'](mkdirSync,_0x4ee3a7,{'recursive':!![]}),_0x2b546f['PreUx'](writeFileSync,_0x36c54c,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{[_0x58d8f5(0x1dd)]=[];['commandId'];[_0x58d8f5(0x203)];[_0x58d8f5(0x222)];[_0x58d8f5(0x213)]=0x0;[_0x58d8f5(0x21c)]=new Map();['flushing']=null;['deviceId'];['cliVersion'];['nodeVersion'];['platform'];[_0x58d8f5(0x208)];['isCI'];[_0x58d8f5(0x1ea)];['checklistItemId'];[_0x58d8f5(0x204)];constructor(_0x2ab1c7){const _0x4b79bf=_0x58d8f5,_0x55da25={'hpCYe':'8|4|6|7|1|0|5|2|3','qxiMh':function(_0x2b64ab){return _0x2b64ab();},'OPAbB':function(_0x9db703){return _0x9db703();}},_0xd72d14=_0x55da25['hpCYe'][_0x4b79bf(0x21d)]('|');let _0x5ac4d=0x0;while(!![]){switch(_0xd72d14[_0x5ac4d++]){case'0':this['nodeVersion']=process['version'];continue;case'1':this[_0x4b79bf(0x1ff)]=_0x55da25[_0x4b79bf(0x1f2)](getCurrentVersion);continue;case'2':this[_0x4b79bf(0x208)]=process['stdout']['isTTY']??![];continue;case'3':this['isCI']=!!(process[_0x4b79bf(0x1e5)]['CI']||process['env'][_0x4b79bf(0x1f6)]);continue;case'4':this['command']=_0x2ab1c7;continue;case'5':this['platform']=process['platform'];continue;case'6':this['commandStartTime']=Date[_0x4b79bf(0x211)]();continue;case'7':this['deviceId']=getDeviceId();continue;case'8':this[_0x4b79bf(0x225)]=_0x55da25[_0x4b79bf(0x1e7)](randomUUID);continue;}break;}}['setContext'](_0x3b33eb){const _0x20b3e4=_0x58d8f5;if(_0x3b33eb['featureId'])this[_0x20b3e4(0x1ea)]=_0x3b33eb[_0x20b3e4(0x1ea)];if(_0x3b33eb[_0x20b3e4(0x223)])this['checklistItemId']=_0x3b33eb['checklistItemId'];if(_0x3b33eb[_0x20b3e4(0x204)])this[_0x20b3e4(0x204)]=_0x3b33eb[_0x20b3e4(0x204)];}async['trackCommandStart'](_0x10dc9d){const _0x53329a=_0x58d8f5,_0x517e0f={'GAkLx':_0x53329a(0x1ec)},_0x3e050d=this['buildEvent']({'eventType':_0x517e0f[_0x53329a(0x1e9)],'metadata':_0x10dc9d});await this[_0x53329a(0x1fc)](_0x3e050d);}async[_0x58d8f5(0x1e3)](_0x43ba65,_0x1a0830){const _0x101e3a=_0x58d8f5,_0x13783c={'iavwW':'command_end'},_0x408abf=this[_0x101e3a(0x218)]({'eventType':_0x13783c[_0x101e3a(0x1e1)],'outcome':_0x43ba65,'durationMs':Date[_0x101e3a(0x211)]()-this[_0x101e3a(0x222)],'metadata':_0x1a0830});await this[_0x101e3a(0x1fc)](_0x408abf),await this['flush']();}async[_0x58d8f5(0x224)](_0x9c4ec7,_0x551212){const _0x224c73=_0x58d8f5,_0x391bd9={'fufHQ':_0x224c73(0x1fa),'AvkKg':function(_0x1a924b,_0x3fa5e3){return _0x1a924b instanceof _0x3fa5e3;},'gAmjZ':'Unknown'},_0x3ecfdd=this['buildEvent']({'eventType':_0x391bd9[_0x224c73(0x1ed)],'errorMessage':truncate(_0x391bd9[_0x224c73(0x200)](_0x9c4ec7,Error)?_0x9c4ec7[_0x224c73(0x1df)]:String(_0x9c4ec7),0x1f4),'errorType':_0x9c4ec7 instanceof Error?_0x9c4ec7['constructor'][_0x224c73(0x1f7)]:_0x391bd9['gAmjZ'],'durationMs':Date[_0x224c73(0x211)]()-this['commandStartTime'],'metadata':_0x551212});await this[_0x224c73(0x1fc)](_0x3ecfdd),await this[_0x224c73(0x1fb)]();}[_0x58d8f5(0x207)](_0x26cc94,_0x3199d3){const _0x49e3c8=_0x58d8f5;this[_0x49e3c8(0x213)]++,this[_0x49e3c8(0x21c)]['set'](_0x26cc94,Date['now']());const _0x34d6d5=this['buildEvent']({'eventType':'phase_start','phase':_0x26cc94,'phaseIndex':this[_0x49e3c8(0x213)],'metadata':_0x3199d3});this[_0x49e3c8(0x1dd)]['push'](_0x34d6d5);}[_0x58d8f5(0x206)](_0x22ac66,_0x525824){const _0x3eb758=_0x58d8f5,_0x34a9e8={'edBAb':function(_0x46c099,_0x50097d){return _0x46c099-_0x50097d;}},_0x1cde9a=this[_0x3eb758(0x21c)][_0x3eb758(0x219)](_0x22ac66),_0x1cae40=_0x1cde9a?_0x34a9e8[_0x3eb758(0x1ef)](Date[_0x3eb758(0x211)](),_0x1cde9a):undefined;this['phaseStartTimes']['delete'](_0x22ac66);const _0x5af835=this[_0x3eb758(0x218)]({'eventType':_0x3eb758(0x220),'phase':_0x22ac66,'durationMs':_0x1cae40,'metadata':_0x525824});this['buffer'][_0x3eb758(0x20e)](_0x5af835),this[_0x3eb758(0x1dd)]['length']>=0xa&&this[_0x3eb758(0x21a)]();}async['trackPhaseError'](_0xa70a1b,_0x12a59a,_0x7d760b){const _0x461cfd=_0x58d8f5,_0x5b49f4={'oMKRU':function(_0x540c32,_0x19dd92){return _0x540c32(_0x19dd92);}},_0x41c5de=this[_0x461cfd(0x21c)]['get'](_0xa70a1b),_0x3c565b=_0x41c5de?Date['now']()-_0x41c5de:undefined;this['phaseStartTimes']['delete'](_0xa70a1b);const _0x376d10=this[_0x461cfd(0x218)]({'eventType':'phase_error','phase':_0xa70a1b,'durationMs':_0x3c565b,'errorMessage':truncate(_0x12a59a instanceof Error?_0x12a59a[_0x461cfd(0x1df)]:_0x5b49f4['oMKRU'](String,_0x12a59a),0x1f4),'errorType':_0x12a59a instanceof Error?_0x12a59a[_0x461cfd(0x209)]['name']:'Unknown','metadata':_0x7d760b});await this[_0x461cfd(0x1fc)](_0x376d10);}async[_0x58d8f5(0x1fb)](){const _0x264b37=_0x58d8f5;if(this[_0x264b37(0x1dd)][_0x264b37(0x205)]===0x0)return;const _0x2872b3=this[_0x264b37(0x1dd)]['splice'](0x0);try{await this['sendBatch'](_0x2872b3);}catch{}}[_0x58d8f5(0x218)](_0x3f89b9){const _0x2a9b18=_0x58d8f5;return{'eventType':_0x3f89b9[_0x2a9b18(0x212)],'command':this[_0x2a9b18(0x203)],'commandId':this['commandId'],'deviceId':this[_0x2a9b18(0x217)],'timestamp':new Date()[_0x2a9b18(0x1e8)](),'durationMs':_0x3f89b9['durationMs'],'phase':_0x3f89b9[_0x2a9b18(0x20d)],'phaseIndex':_0x3f89b9['phaseIndex'],'outcome':_0x3f89b9[_0x2a9b18(0x21e)],'errorMessage':_0x3f89b9['errorMessage'],'errorType':_0x3f89b9['errorType'],'featureId':this[_0x2a9b18(0x1ea)],'checklistItemId':this[_0x2a9b18(0x223)],'browserSessionId':this['browserSessionId'],'evaluation':_0x3f89b9['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x2a9b18(0x20c)],'platform':this[_0x2a9b18(0x1f3)],'isTty':this[_0x2a9b18(0x208)],'isCI':this['isCI'],'metadata':_0x3f89b9['metadata']};}async[_0x58d8f5(0x1fc)](_0x539212){try{await this['sendBatch']([_0x539212]);}catch{}}['flushAsync'](){const _0x26691b=_0x58d8f5;if(this[_0x26691b(0x1eb)])return;this['flushing']=this['flush']()['finally'](()=>{this['flushing']=null;});}async['sendBatch'](_0x592bdc){const _0x572f32=_0x58d8f5,_0x1402dc={'WOdcE':function(_0x57ba54){return _0x57ba54();},'iJIEo':'application/json','eIuUd':_0x572f32(0x1e6),'ckqVG':function(_0x7b628d,_0x39bcb9,_0x5b743f){return _0x7b628d(_0x39bcb9,_0x5b743f);}},_0x3eaf28=await _0x1402dc[_0x572f32(0x201)](getToken)[_0x572f32(0x1e4)](()=>null),_0x24fa3b=getApiBaseUrl(),_0x4ae45e={'Content-Type':_0x1402dc['iJIEo']};_0x3eaf28&&(_0x4ae45e[_0x1402dc[_0x572f32(0x1f1)]]='Bearer\x20'+_0x3eaf28);const _0x8cb9d2={'events':_0x592bdc};process['env'][_0x572f32(0x1e2)]&&console[_0x572f32(0x214)](_0x572f32(0x1f8)+_0x592bdc[_0x572f32(0x205)]+'\x20event(s)\x20to\x20'+_0x24fa3b+'/api/v1/mcp/cli-telemetry');const _0x61f586=new AbortController(),_0x51ac91=_0x1402dc['ckqVG'](setTimeout,()=>_0x61f586[_0x572f32(0x1db)](),0x1388);try{await _0x1402dc['ckqVG'](fetch,_0x24fa3b+_0x572f32(0x21f),{'method':'POST','headers':_0x4ae45e,'body':JSON['stringify'](_0x8cb9d2),'signal':_0x61f586[_0x572f32(0x1de)]});}finally{clearTimeout(_0x51ac91);}}}let currentCollector=null;export function createTelemetryCollector(_0x155210){return currentCollector=new TelemetryCollector(_0x155210),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x538f89,_0x24c15a,_0x22d0e7){const _0x3bfbf0=_0x58d8f5,_0x1f48f6=createTelemetryCollector(_0x538f89);await _0x1f48f6['trackCommandStart'](_0x22d0e7);try{const _0x55c640=await _0x24c15a(_0x1f48f6);return await _0x1f48f6['trackCommandEnd'](_0x3bfbf0(0x1f5)),_0x55c640;}catch(_0x34955a){await _0x1f48f6['trackCommandError'](_0x34955a);throw _0x34955a;}finally{await _0x1f48f6['flush']();}}function truncate(_0x5895ce,_0x1d9150){const _0xd0387f=_0x58d8f5,_0x3eaf52={'GcoHk':function(_0x2f24fc,_0x28f305){return _0x2f24fc>_0x28f305;}};return _0x3eaf52[_0xd0387f(0x1e0)](_0x5895ce[_0xd0387f(0x205)],_0x1d9150)?_0x5895ce[_0xd0387f(0x1fe)](0x0,_0x1d9150)+'...':_0x5895ce;}
@@ -0,0 +1 @@
1
+ function _0x44ff(_0x3446f7,_0x21fbe1){_0x3446f7=_0x3446f7-0xf6;const _0xee4792=_0xee47();let _0x44ff11=_0xee4792[_0x3446f7];return _0x44ff11;}function _0xee47(){const _0x46fe4f=['page@0','stepId','endTime','startTime','getTime','297zSdKal','5624280ktGyCh','monotonicTime','oLuRD','sort','BHaDl','14548KxyASd','set','cdhbO','filter','PabAz','snapshotName','goto','ryfnp','push','point','96068wnnsyr','3612771lNCCWR','149770FStRue','capturedAt','type','length','before','BtWmU','after','inputSnapshot','VpNca','cGcyv','method','3556QZNPQQ','333LQvqeN','UaKyI','snapshot','indexOf','kYuyk','pageId','afterSnapshot','372mtSWcx','endsWith','get','beforeSnapshot','trim','name','SjJjt','3538655JdXldd','navigated','48DSssMh','frameUrl','url','params','aRbSU','callId'];_0xee47=function(){return _0x46fe4f;};return _0xee47();}(function(_0x5a191c,_0x4098a2){const _0x38da33=_0x44ff,_0x370aad=_0x5a191c();while(!![]){try{const _0x1bef22=parseInt(_0x38da33(0x11e))/0x1*(parseInt(_0x38da33(0xf6))/0x2)+-parseInt(_0x38da33(0x10e))/0x3*(-parseInt(_0x38da33(0x10d))/0x4)+-parseInt(_0x38da33(0x11c))/0x5+-parseInt(_0x38da33(0x115))/0x6*(-parseInt(_0x38da33(0x100))/0x7)+parseInt(_0x38da33(0x12a))/0x8+-parseInt(_0x38da33(0x101))/0x9+-parseInt(_0x38da33(0x102))/0xa*(parseInt(_0x38da33(0x129))/0xb);if(_0x1bef22===_0x4098a2)break;else _0x370aad['push'](_0x370aad['shift']());}catch(_0x5345f5){_0x370aad['push'](_0x370aad['shift']());}}}(_0xee47,0x77321));import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x7fe7c2,_0x18cd72){const _0x292e4b=_0x44ff,_0x273c51={'PabAz':function(_0x3277e7,_0x54b86a,_0x1da1be){return _0x3277e7(_0x54b86a,_0x1da1be);},'cGcyv':function(_0x3d6c96,_0x3f48a1,_0x35290c){return _0x3d6c96(_0x3f48a1,_0x35290c);},'ryfnp':'.trace','VpNca':'utf-8','kYuyk':function(_0x165dab,_0x50cf90){return _0x165dab-_0x50cf90;},'OVfOV':_0x292e4b(0x108),'rOOQT':function(_0x1ff8f5,_0x1698b2){return _0x1ff8f5===_0x1698b2;},'aRbSU':_0x292e4b(0xfc),'cdhbO':function(_0x3ea261,_0x2309e5){return _0x3ea261===_0x2309e5;},'BHaDl':'event','SjJjt':_0x292e4b(0x11d),'BtWmU':'string','lRacA':function(_0x314a9c,_0x5b8ee5){return _0x314a9c>=_0x5b8ee5;},'UaKyI':function(_0x5306f4,_0x5f5b42){return _0x5306f4===_0x5f5b42;},'gAjvd':function(_0x5617b0,_0x43beb1){return _0x5617b0>=_0x43beb1;},'oLuRD':function(_0x2a734b,_0x543c3c){return _0x2a734b<_0x543c3c;}},_0x3dda4c=new Map();if(_0x18cd72[_0x292e4b(0x105)]===0x0)return _0x3dda4c;const _0xc2f380=[],_0x3d93c3=async _0x51f528=>{const _0x1385c9=_0x292e4b,_0x1931af=await _0x273c51[_0x1385c9(0xfa)](readdir,_0x51f528,{'withFileTypes':!![]});for(const _0x414e36 of _0x1931af){const _0x3e0b33=_0x273c51[_0x1385c9(0x10b)](join,_0x51f528,_0x414e36[_0x1385c9(0x11a)]);if(_0x414e36['isDirectory']())await _0x3d93c3(_0x3e0b33);else _0x414e36[_0x1385c9(0x11a)][_0x1385c9(0x116)](_0x273c51[_0x1385c9(0xfd)])&&_0xc2f380['push'](_0x3e0b33);}};await _0x3d93c3(_0x7fe7c2);if(_0xc2f380[_0x292e4b(0x105)]===0x0)return _0x3dda4c;const _0xd46c3b=[];for(const _0x1518d7 of _0xc2f380){const _0x278dd2=await readFile(_0x1518d7,_0x273c51[_0x292e4b(0x10a)]),_0x36e235=_0x278dd2['split']('\x0a')[_0x292e4b(0xf9)](_0x17c109=>_0x17c109[_0x292e4b(0x119)]());for(const _0xe2a97c of _0x36e235){try{_0xd46c3b[_0x292e4b(0xfe)](JSON['parse'](_0xe2a97c));}catch{}}}if(_0xd46c3b[_0x292e4b(0x105)]===0x0)return _0x3dda4c;const _0x5e9e10=_0xd46c3b['find'](_0x2957e9=>_0x2957e9['type']==='context-options');if(!_0x5e9e10)return _0x3dda4c;const _0x4bec63=_0x273c51[_0x292e4b(0x112)](_0x5e9e10['wallTime'],_0x5e9e10[_0x292e4b(0x12b)]),_0x1db1b2=new Map();for(const _0x4bd0f9 of _0xd46c3b){switch(_0x4bd0f9[_0x292e4b(0x104)]){case _0x292e4b(0x106):{const _0x4f73e2=_0x4bd0f9;_0x1db1b2[_0x292e4b(0xf7)](_0x4f73e2['callId'],{'callId':_0x4f73e2[_0x292e4b(0x123)],'startTime':_0x4f73e2[_0x292e4b(0x127)],'endTime':0x0,'method':_0x4f73e2[_0x292e4b(0x10c)],'apiName':_0x4f73e2['apiName'],'params':_0x4f73e2[_0x292e4b(0x121)],'pageId':_0x4f73e2['pageId'],'beforeSnapshot':_0x4f73e2['beforeSnapshot']});break;}case'input':{const _0x568d24=_0x4bd0f9,_0x516f17=_0x1db1b2['get'](_0x568d24[_0x292e4b(0x123)]);if(_0x516f17){if(_0x568d24['inputSnapshot'])_0x516f17['inputSnapshot']=_0x568d24[_0x292e4b(0x109)];if(_0x568d24[_0x292e4b(0xff)])_0x516f17['point']=_0x568d24['point'];}break;}case _0x273c51['OVfOV']:{const _0x1cb23e=_0x4bd0f9,_0x1a1fb8=_0x1db1b2[_0x292e4b(0x117)](_0x1cb23e[_0x292e4b(0x123)]);if(_0x1a1fb8){_0x1a1fb8[_0x292e4b(0x126)]=_0x1cb23e['endTime'];if(_0x1cb23e[_0x292e4b(0x114)])_0x1a1fb8[_0x292e4b(0x114)]=_0x1cb23e['afterSnapshot'];}break;}}}const _0x5bce7e=Array['from'](_0x1db1b2['values']())['filter'](_0x441138=>_0x441138[_0x292e4b(0x126)]>0x0&&(_0x441138['afterSnapshot']||_0x441138[_0x292e4b(0x118)]))[_0x292e4b(0x12d)]((_0xa09911,_0x4c292c)=>_0xa09911[_0x292e4b(0x127)]-_0x4c292c['startTime']);if(_0x273c51['rOOQT'](_0x5bce7e[_0x292e4b(0x105)],0x0))return _0x3dda4c;const _0x11a058=new Map();for(const _0x2be92f of _0xd46c3b){if(_0x2be92f['type']==='frame-snapshot'){const _0x21a67b=_0x2be92f[_0x292e4b(0x110)];_0x21a67b?.[_0x292e4b(0xfb)]&&_0x21a67b?.[_0x292e4b(0x11f)]&&_0x11a058[_0x292e4b(0xf7)](_0x21a67b['snapshotName'],_0x21a67b[_0x292e4b(0x11f)]);}}const _0x300c2c=new Map();for(const _0x134c4c of _0x5bce7e){const _0x58d00a=_0x134c4c[_0x292e4b(0x121)]?.['url'];_0x273c51['rOOQT'](_0x134c4c[_0x292e4b(0x10c)],_0x273c51[_0x292e4b(0x122)])&&_0x273c51['cdhbO'](typeof _0x58d00a,'string')&&_0x134c4c['pageId']&&_0x300c2c['set'](_0x134c4c['pageId'],_0x58d00a);}for(const _0xd9e3fa of _0xd46c3b){const _0x57667f=_0xd9e3fa,_0x35a54b=_0x57667f['params'],_0x1b692c=_0x35a54b?.[_0x292e4b(0x120)];_0x57667f['type']===_0x273c51[_0x292e4b(0x12e)]&&_0x57667f[_0x292e4b(0x10c)]===_0x273c51[_0x292e4b(0x11b)]&&typeof _0x1b692c===_0x273c51[_0x292e4b(0x107)]&&_0x273c51[_0x292e4b(0xf8)](typeof _0x57667f['pageId'],'string')&&_0x300c2c[_0x292e4b(0xf7)](_0x57667f['pageId'],_0x1b692c);}for(const _0x4584d9 of _0x18cd72){const _0x207a31=new Date(_0x4584d9[_0x292e4b(0x103)])[_0x292e4b(0x128)](),_0x35aae8=_0x273c51[_0x292e4b(0x112)](_0x207a31,_0x4bec63);let _0x331931=null,_0x215498=Infinity;for(const _0x1a81c2 of _0x5bce7e){const _0x1b3a89=Math['abs'](_0x1a81c2[_0x292e4b(0x126)]-_0x35aae8);_0x1b3a89<_0x215498&&(_0x215498=_0x1b3a89,_0x331931=_0x1a81c2);}if(!_0x331931)continue;const _0x462958=_0x331931[_0x292e4b(0x114)]||_0x331931['beforeSnapshot'];if(!_0x462958)continue;const _0x3e53d1=_0x331931[_0x292e4b(0x113)]||_0x292e4b(0x124);let _0x1ab85c=_0x11a058['get'](_0x462958)||_0x300c2c['get'](_0x3e53d1)||'';if(!_0x1ab85c)for(let _0x10fe5d=_0x5bce7e[_0x292e4b(0x111)](_0x331931);_0x273c51['lRacA'](_0x10fe5d,0x0);_0x10fe5d--){const _0x3e7dd7=_0x5bce7e[_0x10fe5d][_0x292e4b(0x121)]?.[_0x292e4b(0x120)];if(_0x5bce7e[_0x10fe5d]['method']==='goto'&&_0x273c51[_0x292e4b(0x10f)](typeof _0x3e7dd7,_0x273c51['BtWmU'])){_0x1ab85c=_0x3e7dd7;break;}}let _0x4df293,_0x224677;const _0x316970=_0x5bce7e[_0x292e4b(0x111)](_0x331931);if(_0x273c51['gAjvd'](_0x316970,0x0)&&_0x273c51[_0x292e4b(0x12c)](_0x316970,_0x5bce7e[_0x292e4b(0x105)]-0x1)){const _0x1cefa2=_0x5bce7e[_0x316970+0x1];_0x1cefa2['point']&&_0x1cefa2['inputSnapshot']&&(_0x4df293=_0x1cefa2[_0x292e4b(0xff)],_0x224677=_0x1cefa2['inputSnapshot']);}_0x3dda4c['set'](_0x4584d9[_0x292e4b(0x125)],{'snapshotName':_0x462958,'inputSnapshotName':_0x224677,'pageId':_0x3e53d1,'pageUrl':_0x1ab85c,'callId':_0x331931[_0x292e4b(0x123)],'point':_0x4df293});}return _0x3dda4c;}
@@ -1 +1 @@
1
- (function(_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 _0x5561(){const _0xd0f2f=['539028iCqwPJ','55706fSjzrW','Bearer\x20','982194HCGFxt','15NqYuPN','1091156bgjZKq','953968BzDfPN','241995bVUHEA','17030qqYGgs','120LfOIHe','nVAxa','json','5571aaLDAG','GET'];_0x5561=function(){return _0xd0f2f;};return _0x5561();}function _0x4f0c(_0x25a721,_0x53bc3b){_0x25a721=_0x25a721-0x17a;const _0x55611a=_0x5561();let _0x4f0c55=_0x55611a[_0x25a721];return _0x4f0c55;}(function(_0x35e7f6,_0x1ec085){const _0x31d610=_0x4f0c,_0x570e9f=_0x35e7f6();while(!![]){try{const _0x4622bd=-parseInt(_0x31d610(0x180))/0x1+-parseInt(_0x31d610(0x185))/0x2+-parseInt(_0x31d610(0x187))/0x3+parseInt(_0x31d610(0x186))/0x4+-parseInt(_0x31d610(0x184))/0x5*(-parseInt(_0x31d610(0x183))/0x6)+parseInt(_0x31d610(0x181))/0x7*(-parseInt(_0x31d610(0x17b))/0x8)+parseInt(_0x31d610(0x17e))/0x9*(parseInt(_0x31d610(0x17a))/0xa);if(_0x4622bd===_0x1ec085)break;else _0x570e9f['push'](_0x570e9f['shift']());}catch(_0x33af9b){_0x570e9f['push'](_0x570e9f['shift']());}}}(_0x5561,0x79da1));import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x4f84f8){const _0x2902f7=_0x4f0c,_0x4d7b7a={'nVAxa':_0x2902f7(0x17f)},_0x241581=getApiBaseUrl();try{const _0x571c98=await fetch(_0x241581+'/api/v1/mcp/me',{'method':_0x4d7b7a[_0x2902f7(0x17c)],'headers':{'Authorization':_0x2902f7(0x182)+_0x4f84f8}});if(!_0x571c98['ok'])return{'success':![],'error':_0x571c98['status']+'\x20'+_0x571c98['statusText'],'status':_0x571c98['status']};const _0x30e78c=await _0x571c98[_0x2902f7(0x17d)]();return{'success':!![],'user':_0x30e78c};}catch(_0x5c3bc3){return{'success':![],'error':_0x5c3bc3 instanceof Error?_0x5c3bc3['message']:String(_0x5c3bc3)};}}
@@ -1 +1 @@
1
- (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
+ const _0x35cded=_0x16c4;(function(_0x58dc98,_0x3b0198){const _0x1b2994=_0x16c4,_0x501b4b=_0x58dc98();while(!![]){try{const _0x541e7a=parseInt(_0x1b2994(0x1a3))/0x1*(-parseInt(_0x1b2994(0x1a1))/0x2)+-parseInt(_0x1b2994(0x1a5))/0x3*(-parseInt(_0x1b2994(0x197))/0x4)+parseInt(_0x1b2994(0x191))/0x5+parseInt(_0x1b2994(0x196))/0x6+-parseInt(_0x1b2994(0x19b))/0x7*(parseInt(_0x1b2994(0x19e))/0x8)+-parseInt(_0x1b2994(0x19d))/0x9*(parseInt(_0x1b2994(0x1a2))/0xa)+parseInt(_0x1b2994(0x19a))/0xb;if(_0x541e7a===_0x3b0198)break;else _0x501b4b['push'](_0x501b4b['shift']());}catch(_0x1e3f62){_0x501b4b['push'](_0x501b4b['shift']());}}}(_0x2aa6,0x42482));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';function _0x16c4(_0x2fb9cc,_0x24cdc5){_0x2fb9cc=_0x2fb9cc-0x191;const _0x2aa60a=_0x2aa6();let _0x16c46f=_0x2aa60a[_0x2fb9cc];return _0x16c46f;}import{fileURLToPath}from'url';function _0x2aa6(){const _0x4469a0=['304060ETwTjS','368470jEIxey','version','27QiYpQF','\x20version\x202>/dev/null','2641685eQtqnc','yiuMm','npm\x20view\x20','xVjgx','split','1251138drkBrK','110480VOzhky','parse','package.json','2424202fcDMff','3997aXhjHg','map','36KLFuuk','6224ukGLUW','utf-8','@ranger-testing/ranger-cli','2Jggbnt'];_0x2aa6=function(){return _0x4469a0;};return _0x2aa6();}import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x35cded(0x1a0);export function getCurrentVersion(){const _0x4ece22=_0x35cded,_0x1e400d={'wgcYQ':function(_0x249869,_0x1371e7,_0x392d80,_0x25bdd8,_0x35bbbd,_0x4f9d09){return _0x249869(_0x1371e7,_0x392d80,_0x25bdd8,_0x35bbbd,_0x4f9d09);},'xVjgx':'package.json','fmltH':_0x4ece22(0x19f),'UgBiA':'unknown'},_0x5eeae8=[join(__dirname,'..','..',_0x4ece22(0x199)),_0x1e400d['wgcYQ'](join,__dirname,'..','..','..',_0x1e400d[_0x4ece22(0x194)])];for(const _0x108911 of _0x5eeae8){if(existsSync(_0x108911))try{const _0x21b891=JSON[_0x4ece22(0x198)](readFileSync(_0x108911,_0x1e400d['fmltH']));return _0x21b891[_0x4ece22(0x1a4)]||_0x1e400d['UgBiA'];}catch{continue;}}return _0x1e400d['UgBiA'];}export function getLatestVersion(){const _0x18b875=_0x35cded;try{const _0x4449dd=execSync(_0x18b875(0x193)+PACKAGE_NAME+_0x18b875(0x1a6),{'encoding':_0x18b875(0x19f),'timeout':0x1388});return _0x4449dd['trim']();}catch{return null;}}export function compareVersions(_0x45e9b4,_0x58707b){const _0x17815d=_0x35cded,_0x1883a9={'yiuMm':function(_0x24cb72,_0x50301e){return _0x24cb72<_0x50301e;}},_0x583db2=_0x45e9b4[_0x17815d(0x195)]('.')[_0x17815d(0x19c)](Number),_0x3c6ff7=_0x58707b[_0x17815d(0x195)]('.')['map'](Number);for(let _0x361a9e=0x0;_0x1883a9[_0x17815d(0x192)](_0x361a9e,0x3);_0x361a9e++){const _0xe13db8=_0x583db2[_0x361a9e]||0x0,_0x3b4e02=_0x3c6ff7[_0x361a9e]||0x0;if(_0x3b4e02>_0xe13db8)return 0x1;if(_0x1883a9['yiuMm'](_0x3b4e02,_0xe13db8))return-0x1;}return 0x0;}