@ranger-testing/ranger-cli 2.1.0 → 2.1.1

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 (67) hide show
  1. package/README.md +10 -1
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -0
  49. package/build/commands/utils/model.js +1 -0
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/profileMessages.js +1 -1
  52. package/build/commands/utils/profileSetupBanner.js +1 -1
  53. package/build/commands/utils/rangerConfig.js +1 -0
  54. package/build/commands/utils/rangerRoot.js +1 -1
  55. package/build/commands/utils/reportGenerator.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/telemetry.js +1 -1
  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/build/skills/ranger/SKILL.md +16 -14
  67. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x436662=_0x3553;(function(_0x2c9df1,_0x47fe09){const _0x21fd5b=_0x3553,_0x32937d=_0x2c9df1();while(!![]){try{const _0x7fac05=-parseInt(_0x21fd5b(0x196))/0x1+-parseInt(_0x21fd5b(0x1c1))/0x2*(parseInt(_0x21fd5b(0x1c3))/0x3)+-parseInt(_0x21fd5b(0x1b0))/0x4+-parseInt(_0x21fd5b(0x190))/0x5*(-parseInt(_0x21fd5b(0x191))/0x6)+parseInt(_0x21fd5b(0x1a3))/0x7*(-parseInt(_0x21fd5b(0x1b9))/0x8)+-parseInt(_0x21fd5b(0x1a9))/0x9+parseInt(_0x21fd5b(0x1a5))/0xa;if(_0x7fac05===_0x47fe09)break;else _0x32937d['push'](_0x32937d['shift']());}catch(_0x34934f){_0x32937d['push'](_0x32937d['shift']());}}}(_0x2418,0xe4ec6));import*as _0x16eda8 from'fs';import*as _0x244cdf from'path';import*as _0x2df074 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x244cdf[_0x436662(0x198)](_0x2df074['homedir'](),'.claude',_0x436662(0x1be));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x584204=_0x436662;try{if(_0x16eda8[_0x584204(0x199)](CACHE_FILE)){const _0x5a5634=JSON[_0x584204(0x1b1)](_0x16eda8['readFileSync'](CACHE_FILE,_0x584204(0x1a2)));return{'version':0x3,'sessions':_0x5a5634['sessions']||{},'branches':_0x5a5634[_0x584204(0x1ae)]||{},'lastEnabledSessionClearedAt':_0x5a5634['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x4e8855){const _0x37e98f=_0x436662;try{const _0x2c9b3d=_0x244cdf['dirname'](CACHE_FILE);!_0x16eda8[_0x37e98f(0x199)](_0x2c9b3d)&&_0x16eda8['mkdirSync'](_0x2c9b3d,{'recursive':!![]}),_0x16eda8[_0x37e98f(0x1b2)](CACHE_FILE,JSON['stringify'](_0x4e8855,null,0x2));}catch{}}export function getCurrentBranch(){const _0x3f3c73=_0x436662,_0x5e9c2e={'oafxo':'utf-8','Qdgno':'pipe','WpFyt':function(_0x302a6d,_0x433c23){return _0x302a6d===_0x433c23;},'GqvKq':_0x3f3c73(0x1b3)};try{const _0x366dea=execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x5e9c2e['oafxo'],'stdio':[_0x5e9c2e[_0x3f3c73(0x194)],'pipe',_0x5e9c2e['Qdgno']]})[_0x3f3c73(0x1b6)]();if(!_0x366dea||_0x5e9c2e['WpFyt'](_0x366dea,_0x5e9c2e['GqvKq']))return null;return _0x366dea;}catch{return null;}}export function enableBranch(_0x5e7ac8){const _0x52582e={'WVbjd':function(_0x58f51d){return _0x58f51d();}},_0xb00c50=_0x52582e['WVbjd'](loadCache);_0xb00c50['branches'][_0x5e7ac8]=!![],saveCache(_0xb00c50);}export function disableBranch(_0x104fda){const _0x3e44fa=_0x436662,_0x5264d8={'SayOY':function(_0x4c1494){return _0x4c1494();},'MEDIv':function(_0x1b4927,_0x182ac0){return _0x1b4927(_0x182ac0);}},_0x5bf261=_0x5264d8['SayOY'](loadCache);delete _0x5bf261['branches'][_0x104fda],_0x5264d8[_0x3e44fa(0x1a0)](saveCache,_0x5bf261);}export function isBranchEnabled(_0x156943){const _0x2da4b8=_0x436662,_0x42d603={'sjUbg':function(_0x39762b){return _0x39762b();}},_0x70e50e=_0x42d603[_0x2da4b8(0x1c2)](loadCache);return _0x70e50e['branches'][_0x156943]===!![];}function getOrCreateSession(_0x72016f,_0x37978d){return!_0x72016f['sessions'][_0x37978d]&&(_0x72016f['sessions'][_0x37978d]={}),_0x72016f['sessions'][_0x37978d];}export function enableSession(_0x456781){const _0x3742bf=_0x436662,_0x4d0e0b={'YbUwB':function(_0x1cc7ad){return _0x1cc7ad();},'VCLxD':function(_0x57a4ef,_0x4050cb,_0x4be758){return _0x57a4ef(_0x4050cb,_0x4be758);},'Wvbso':_0x3742bf(0x1ad),'rWoyX':function(_0x40053c,_0x554993){return _0x40053c(_0x554993);}},_0x4feebe=_0x4d0e0b['YbUwB'](loadCache),_0x11e1f3=_0x4d0e0b[_0x3742bf(0x19b)](getOrCreateSession,_0x4feebe,_0x456781);_0x11e1f3['enabled']=!![];const _0x2d9435=getCurrentBranch();_0x2d9435&&_0x2d9435!==_0x3742bf(0x1b7)&&_0x2d9435!==_0x4d0e0b[_0x3742bf(0x19a)]&&(_0x4feebe[_0x3742bf(0x1ae)][_0x2d9435]=!![],_0x11e1f3['currentBranch']=_0x2d9435),_0x4d0e0b[_0x3742bf(0x193)](saveCache,_0x4feebe);}export function isSessionEnabled(_0x7e7a6a){const _0x4eed2b=_0x436662,_0x136732={'dXDqR':function(_0x324dd8,_0x5ae4ac){return _0x324dd8===_0x5ae4ac;},'qAgKJ':_0x4eed2b(0x1b7),'quZts':function(_0x2aeb09,_0x4fa80d){return _0x2aeb09===_0x4fa80d;},'RYDAQ':function(_0x338782,_0x47cdff){return _0x338782||_0x47cdff;}},_0x38e8ae=loadCache(),_0x55dc70=getCurrentBranch();if(!_0x55dc70||_0x136732[_0x4eed2b(0x195)](_0x55dc70,_0x136732[_0x4eed2b(0x19d)])||_0x136732['dXDqR'](_0x55dc70,'master'))return _0x38e8ae[_0x4eed2b(0x1b4)][_0x7e7a6a]?.['enabled']===!![];const _0x5a358e=_0x136732['dXDqR'](_0x38e8ae[_0x4eed2b(0x1ae)][_0x55dc70],!![]),_0x4c2afe=_0x136732[_0x4eed2b(0x1a4)](_0x38e8ae['sessions'][_0x7e7a6a]?.['enabled'],!![]);return _0x136732['RYDAQ'](_0x5a358e,_0x4c2afe);}export function disableSession(_0x2ee6bf){const _0x29f371=_0x436662,_0x2f1bd3=loadCache(),_0x369c27=getOrCreateSession(_0x2f1bd3,_0x2ee6bf);_0x369c27[_0x29f371(0x1c0)]=![],saveCache(_0x2f1bd3);}export function updateBranchTracking(_0x35eb98){const _0x3fb16c=_0x436662,_0x3de528={'kgNQk':function(_0xc7039d,_0x440038){return _0xc7039d===_0x440038;},'uGgwR':'main','hoHvw':'master','VtxfV':function(_0x261bbc,_0xb5bb5c){return _0x261bbc(_0xb5bb5c);}},_0x3880d5=loadCache(),_0x189ac2=_0x3880d5['sessions'][_0x35eb98];if(!_0x189ac2?.['enabled'])return;const _0x39b88c=getCurrentBranch();if(!_0x39b88c||_0x3de528['kgNQk'](_0x39b88c,_0x3de528[_0x3fb16c(0x1ba)])||_0x39b88c===_0x3de528[_0x3fb16c(0x1bd)])return;_0x189ac2['currentBranch']!==_0x39b88c&&(_0x3880d5[_0x3fb16c(0x1ae)][_0x39b88c]=!![],_0x189ac2[_0x3fb16c(0x1a7)]=_0x39b88c,_0x3de528[_0x3fb16c(0x1a1)](saveCache,_0x3880d5));}export function initBranchTracking(_0xa6569f){const _0x41d887=_0x436662,_0x28f3f6={'NcPsk':function(_0x3f3bb6){return _0x3f3bb6();},'EzvHg':function(_0x5a5415,_0x346dfd){return _0x5a5415===_0x346dfd;},'kCiXg':'main','VhIwU':function(_0x4d1fbb,_0x1e278a,_0x59153e){return _0x4d1fbb(_0x1e278a,_0x59153e);},'YOMCO':function(_0x3f12b5,_0x29d1e0){return _0x3f12b5(_0x29d1e0);}},_0x8a4eeb=_0x28f3f6[_0x41d887(0x1b5)](loadCache),_0x2273ee=getCurrentBranch();if(!_0x2273ee||_0x28f3f6[_0x41d887(0x1bb)](_0x2273ee,_0x28f3f6['kCiXg'])||_0x28f3f6['EzvHg'](_0x2273ee,'master'))return;if(_0x8a4eeb[_0x41d887(0x1ae)][_0x2273ee]===!![]){const _0x4c9081=_0x28f3f6['VhIwU'](getOrCreateSession,_0x8a4eeb,_0xa6569f);_0x4c9081[_0x41d887(0x1c0)]=!![],_0x4c9081[_0x41d887(0x1a7)]=_0x2273ee,_0x28f3f6['YOMCO'](saveCache,_0x8a4eeb);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x516fc4){const _0x8021c0=_0x436662,_0x3ac54c={'MeaVr':function(_0x2196e4,_0x46e5ab){return _0x2196e4(_0x46e5ab);}},_0x4972cb=loadCache(),_0x2c653c=_0x4972cb[_0x8021c0(0x1b4)][_0x516fc4];_0x2c653c?.['enabled']&&(_0x4972cb['lastEnabledSessionClearedAt']=Date[_0x8021c0(0x1bc)](),_0x3ac54c['MeaVr'](saveCache,_0x4972cb));}export function shouldAutoEnableAfterClear(_0x6c0208){const _0x3a89c2=_0x436662,_0x585266={'SBoYg':_0x3a89c2(0x19e),'xeRjB':function(_0x49abb6,_0x356a48){return _0x49abb6<=_0x356a48;}};if(_0x6c0208!==_0x585266['SBoYg'])return![];const _0x215fa2=loadCache(),_0x50cbc5=_0x215fa2['lastEnabledSessionClearedAt'];if(!_0x50cbc5)return![];const _0x4097cf=Date[_0x3a89c2(0x1bc)]()-_0x50cbc5;return _0x585266[_0x3a89c2(0x197)](_0x4097cf,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x58a582){const _0x3db84d=_0x436662,_0x3f3c79={'AWuSL':function(_0x1d1567){return _0x1d1567();},'SGXqD':function(_0x5a1e1e,_0x531e89){return _0x5a1e1e!==_0x531e89;}},_0x108334=loadCache(),_0x47d09d=getOrCreateSession(_0x108334,_0x58a582);_0x47d09d[_0x3db84d(0x1c0)]=!![];const _0x16009b=_0x3f3c79[_0x3db84d(0x1a6)](getCurrentBranch);_0x16009b&&_0x3f3c79[_0x3db84d(0x1a8)](_0x16009b,'main')&&_0x16009b!==_0x3db84d(0x1ad)&&(_0x47d09d['currentBranch']=_0x16009b),delete _0x108334['lastEnabledSessionClearedAt'],saveCache(_0x108334);}export function registerSession(_0x2b27e3,_0x16077f){const _0x5eb8a9=_0x436662,_0x15bcb9={'PaGsT':function(_0x3abc71){return _0x3abc71();},'FiGmm':function(_0x374460,_0x85ca3){return _0x374460(_0x85ca3);}},_0x2cb4cf=_0x15bcb9['PaGsT'](loadCache),_0x21a77e=getOrCreateSession(_0x2cb4cf,_0x2b27e3);_0x21a77e[_0x5eb8a9(0x192)]=_0x16077f,_0x21a77e['registeredAt']=new Date()[_0x5eb8a9(0x19c)](),_0x15bcb9[_0x5eb8a9(0x19f)](saveCache,_0x2cb4cf);}export function getSessionEntry(_0x454159){const _0x2c7ad8=_0x436662,_0x8bb61={'dnoDw':function(_0x5bae64){return _0x5bae64();}},_0x5dc616=_0x8bb61['dnoDw'](loadCache),_0x433aa1=_0x5dc616['sessions'][_0x454159];if(_0x433aa1?.[_0x2c7ad8(0x192)]&&_0x433aa1?.[_0x2c7ad8(0x1b8)])return{'featureId':_0x433aa1[_0x2c7ad8(0x192)],'registeredAt':_0x433aa1[_0x2c7ad8(0x1b8)]};return null;}function _0x2418(){const _0x368668=['.ranger_cache.json','FNtjv','enabled','326tJEShg','sjUbg','4923YHVPmh','1746375rOxomm','6JuvaeT','featureId','rWoyX','Qdgno','dXDqR','171020dKkvoD','xeRjB','join','existsSync','Wvbso','VCLxD','toISOString','qAgKJ','clear','FiGmm','MEDIv','VtxfV','utf-8','13643gkjNzN','quZts','51614160bbfOPN','AWuSL','currentBranch','SGXqD','13716414yMcfKm','CIhXd','lastPlanReminderAt','nCcvn','master','branches','spUoS','5304324ntRWEL','parse','writeFileSync','HEAD','sessions','NcPsk','trim','main','registeredAt','5272fyNGve','uGgwR','EzvHg','now','hoHvw'];_0x2418=function(){return _0x368668;};return _0x2418();}export function unregisterSession(_0x377e4f){const _0x57897b=_0x436662,_0xe71ef={'nCcvn':function(_0x111cbf){return _0x111cbf();}},_0x4a2065=_0xe71ef[_0x57897b(0x1ac)](loadCache),_0x39819e=_0x4a2065[_0x57897b(0x1b4)][_0x377e4f];_0x39819e&&(delete _0x39819e['featureId'],delete _0x39819e['registeredAt'],saveCache(_0x4a2065));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2deb8f){const _0x43a46c=_0x436662,_0x5d4f44={'FNtjv':function(_0x52492b,_0x23a69e,_0x5872ea){return _0x52492b(_0x23a69e,_0x5872ea);},'spUoS':function(_0xeafdb8,_0x297aa6){return _0xeafdb8(_0x297aa6);}},_0x313700=loadCache(),_0x1a2d09=_0x5d4f44[_0x43a46c(0x1bf)](getOrCreateSession,_0x313700,_0x2deb8f),_0x4ab247=_0x1a2d09[_0x43a46c(0x1ab)]||0x0,_0x417546=Date[_0x43a46c(0x1bc)]();if(_0x417546-_0x4ab247>=PLAN_REMINDER_INTERVAL_MS)return _0x1a2d09['lastPlanReminderAt']=_0x417546,_0x5d4f44[_0x43a46c(0x1af)](saveCache,_0x313700),!![];return![];}export function hasSessionBeenPrompted(_0xc2b9f6){const _0x4e286b=_0x436662,_0x5761df={'ROSTF':function(_0x39eb01){return _0x39eb01();},'CIhXd':function(_0x153bb3,_0x303115){return _0x153bb3===_0x303115;}},_0x1e9356=_0x5761df['ROSTF'](loadCache);return _0x5761df[_0x4e286b(0x1aa)](_0x1e9356[_0x4e286b(0x1b4)][_0xc2b9f6]?.['prompted'],!![]);}function _0x3553(_0x550ff9,_0x4a2428){_0x550ff9=_0x550ff9-0x190;const _0x2418c3=_0x2418();let _0x355322=_0x2418c3[_0x550ff9];return _0x355322;}export function markSessionPrompted(_0x31dca2){const _0x1e16be={'kqlqB':function(_0x4d1330,_0x52c6df,_0x5c63f7){return _0x4d1330(_0x52c6df,_0x5c63f7);},'ucxZr':function(_0x31ad42,_0x40cd6e){return _0x31ad42(_0x40cd6e);}},_0x3ba8b0=loadCache(),_0x2b2419=_0x1e16be['kqlqB'](getOrCreateSession,_0x3ba8b0,_0x31dca2);_0x2b2419['prompted']=!![],_0x1e16be['ucxZr'](saveCache,_0x3ba8b0);}export function getCacheFile(){return CACHE_FILE;}
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 +1 @@
1
- (function(_0x4cd0a2,_0x6612ca){const _0x54dbe8=_0x2b39,_0x4375e3=_0x4cd0a2();while(!![]){try{const _0x5d8935=-parseInt(_0x54dbe8(0x1cc))/0x1+-parseInt(_0x54dbe8(0x1bc))/0x2+-parseInt(_0x54dbe8(0x1ba))/0x3*(-parseInt(_0x54dbe8(0x199))/0x4)+-parseInt(_0x54dbe8(0x1b2))/0x5+parseInt(_0x54dbe8(0x1bd))/0x6+-parseInt(_0x54dbe8(0x1c9))/0x7+parseInt(_0x54dbe8(0x19e))/0x8;if(_0x5d8935===_0x6612ca)break;else _0x4375e3['push'](_0x4375e3['shift']());}catch(_0x383276){_0x4375e3['push'](_0x4375e3['shift']());}}}(_0xbfbf,0x75460));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';function _0x2b39(_0x57d274,_0x339277){_0x57d274=_0x57d274-0x17f;const _0xbfbf1=_0xbfbf();let _0x2b3919=_0xbfbf1[_0x57d274];return _0x2b3919;}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(_0x4b8f61){const _0xb7b6a=_0x2b39,_0x31ae27={'LiWQy':function(_0x996a08){return _0x996a08();},'PeFVw':function(_0x472d88,_0xb323db,_0x29e301,_0x547060){return _0x472d88(_0xb323db,_0x29e301,_0x547060);},'oLZPd':'local','FeNJf':function(_0x2efa7d,_0x286c23,_0x2dcdd0){return _0x2efa7d(_0x286c23,_0x2dcdd0);},'rdIns':function(_0x5e925c,_0x4d7201){return _0x5e925c(_0x4d7201);},'jebly':function(_0x41ac57,_0x34cc14){return _0x41ac57(_0x34cc14);}},_0x6a53e7=_0x31ae27['LiWQy'](getRangerDir),_0x1de89a=_0x31ae27[_0xb7b6a(0x1c5)](join,_0x6a53e7,'ci',_0x4b8f61),_0x37f052=join(_0x6a53e7,_0xb7b6a(0x193),_0x4b8f61),_0x4b29f2=join(_0x6a53e7,_0x4b8f61),_0x33c0ce=join(_0x6a53e7,_0x31ae27[_0xb7b6a(0x18f)]),_0x9ad2b7=_0x31ae27['FeNJf'](join,_0x6a53e7,'ci');if(_0x31ae27[_0xb7b6a(0x198)](existsSync,_0x1de89a))return _0x1de89a;if(existsSync(_0x37f052))return _0x37f052;if(existsSync(_0x4b29f2)&&(_0x4b29f2!==_0x33c0ce&&_0x4b29f2!==_0x9ad2b7?!![]:_0x31ae27['jebly'](hasLegacyProfileFiles,_0x4b29f2)))return _0x4b29f2;return _0x37f052;}export function findExistingEnv(_0x2044d3,_0x2473c6){const _0x32c144=_0x2b39,_0xcd94b5={'cJzmC':function(_0x20d559){return _0x20d559();},'dBVOO':'legacy','dHLEw':function(_0x4fe366,_0x161e81,_0x5c6a2){return _0x4fe366(_0x161e81,_0x5c6a2);},'yJuWt':function(_0xae8fea,_0x19f34d){return _0xae8fea===_0x19f34d;},'dQZQz':function(_0x1c64d3,_0x29f930){return _0x1c64d3(_0x29f930);}},_0x4ac946=_0xcd94b5[_0x32c144(0x19d)](getRangerDir),_0x5689b7=_0x2473c6?.[_0x32c144(0x1b7)]??['ci',_0x32c144(0x193),_0xcd94b5['dBVOO']],_0x488d89=_0xcd94b5['dHLEw'](join,_0x4ac946,_0x32c144(0x193)),_0x3a7136=join(_0x4ac946,'ci'),_0xc5202=[{'location':'ci','path':join(_0x4ac946,'ci',_0x2044d3)},{'location':_0x32c144(0x193),'path':join(_0x4ac946,_0x32c144(0x193),_0x2044d3)},{'location':_0x32c144(0x182),'path':_0xcd94b5['dHLEw'](join,_0x4ac946,_0x2044d3)}];for(const _0x311f4b of _0xc5202){if(_0x5689b7[_0x32c144(0x1c3)](_0x311f4b[_0x32c144(0x1ca)])&&existsSync(_0x311f4b[_0x32c144(0x1c1)])){if(_0xcd94b5[_0x32c144(0x1a2)](_0x311f4b['location'],'legacy')&&(_0x311f4b['path']===_0x488d89||_0x311f4b['path']===_0x3a7136)&&!_0xcd94b5['dQZQz'](hasLegacyProfileFiles,_0x311f4b['path']))continue;return{'path':_0x311f4b[_0x32c144(0x1c1)],'location':_0x311f4b[_0x32c144(0x1ca)]};}}return null;}function hasLegacyProfileFiles(_0x3ed036){const _0x47b98a=_0x2b39,_0x306477={'OWGDv':function(_0x5531d3,_0x43166f){return _0x5531d3(_0x43166f);},'ObMJs':function(_0x57c16f,_0x342405,_0x5d8a7d){return _0x57c16f(_0x342405,_0x5d8a7d);},'XzsqO':function(_0x565e05,_0x45cb94){return _0x565e05(_0x45cb94);},'rYzwk':function(_0x3842dd,_0x437f79){return _0x3842dd(_0x437f79);},'eKjsk':_0x47b98a(0x1b4)};return _0x306477[_0x47b98a(0x1a3)](existsSync,_0x306477['ObMJs'](join,_0x3ed036,'settings.json'))||_0x306477[_0x47b98a(0x1c4)](existsSync,_0x306477['ObMJs'](join,_0x3ed036,_0x47b98a(0x1cb)))||_0x306477[_0x47b98a(0x1ac)](existsSync,_0x306477['ObMJs'](join,_0x3ed036,_0x306477['eKjsk']));}export function isEnvCi(_0x54b514){const _0x22ee65=_0x2b39,_0x2ce504={'WdBBx':function(_0x3a3f19,_0x3ff006){return _0x3a3f19(_0x3ff006);},'lRmdw':function(_0x460ca2,_0x1dbc4e,_0x148d04,_0x153e3a){return _0x460ca2(_0x1dbc4e,_0x148d04,_0x153e3a);},'hTOkF':function(_0xa36b27){return _0xa36b27();}};return _0x2ce504[_0x22ee65(0x19b)](existsSync,_0x2ce504['lRmdw'](join,_0x2ce504['hTOkF'](getRangerDir),'ci',_0x54b514));}export async function cleanupTempFiles(_0xd76836){const _0x46dd2b=_0x2b39,_0x3d2412={'Bpuwh':function(_0x1bf368,_0x6cc8a2){return _0x1bf368!==_0x6cc8a2;}},_0x3f55a0=[_0xd76836['tempAuthPath'],_0xd76836[_0x46dd2b(0x1c0)]][_0x46dd2b(0x191)](Boolean);await Promise[_0x46dd2b(0x1a0)](_0x3f55a0[_0x46dd2b(0x1b1)](_0x17dda2=>unlink(_0x17dda2)['catch'](_0x462ae5=>{const _0x343395=_0x46dd2b;_0x3d2412[_0x343395(0x196)](_0x462ae5[_0x343395(0x1ae)],'ENOENT')&&console[_0x343395(0x1c7)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x17dda2+':',_0x462ae5[_0x343395(0x194)]);})));}export function getSettingsPath(_0x15bd6f){const _0x3a94e7=_0x2b39;return join(getEnvDir(_0x15bd6f),_0x3a94e7(0x1b8));}export async function loadSettings(_0x2ca51d){const _0x4cc8e9=_0x2b39,_0x3f4bfb={'MNcil':function(_0x1fee95,_0x4d2eb6){return _0x1fee95(_0x4d2eb6);},'UnxFb':function(_0x2d7b10,_0x502018,_0x520804){return _0x2d7b10(_0x502018,_0x520804);},'lRZMJ':_0x4cc8e9(0x1ab)},_0x3e1d79=getSettingsPath(_0x2ca51d);if(!_0x3f4bfb[_0x4cc8e9(0x1be)](existsSync,_0x3e1d79))return{};try{const _0x191418=await _0x3f4bfb['UnxFb'](readFile,_0x3e1d79,_0x3f4bfb[_0x4cc8e9(0x18e)]);return JSON['parse'](_0x191418);}catch{return{};}}export async function saveSettings(_0x43f5eb,_0x8517cb){const _0x359094={'UktSR':function(_0x24b92b,_0x348d84){return _0x24b92b(_0x348d84);},'vgxVi':function(_0x560a58,_0x1214fc,_0x8bf098){return _0x560a58(_0x1214fc,_0x8bf098);},'mDhnM':function(_0x2f8080,_0x10cde9,_0x370b53){return _0x2f8080(_0x10cde9,_0x370b53);}},_0x569277=_0x359094['UktSR'](getSettingsPath,_0x43f5eb),_0x83207d=dirname(_0x569277);!existsSync(_0x83207d)&&await _0x359094['vgxVi'](mkdir,_0x83207d,{'recursive':!![]}),await _0x359094['mDhnM'](writeFile,_0x569277,JSON['stringify'](_0x8517cb,null,0x2));}export function resolveEnvVars(_0x515b28){const _0x113bb4=_0x2b39,_0x1c7d39={'drtvl':function(_0xf1c414,_0x2f83c4){return _0xf1c414===_0x2f83c4;},'BTLfY':_0x113bb4(0x18d)};if(typeof _0x515b28===_0x1c7d39['BTLfY'])return _0x515b28[_0x113bb4(0x1c2)](/\$\{(\w+)\}/g,(_0xf9a21a,_0x520617)=>{const _0x3b5ea7=_0x113bb4,_0x2d797a=process[_0x3b5ea7(0x186)][_0x520617];if(_0x1c7d39[_0x3b5ea7(0x1bb)](_0x2d797a,undefined))throw new Error('Environment\x20variable\x20'+_0x520617+'\x20is\x20not\x20set');return _0x2d797a;});if(Array['isArray'](_0x515b28))return _0x515b28[_0x113bb4(0x1b1)](resolveEnvVars);if(_0x515b28&&typeof _0x515b28===_0x113bb4(0x188))return Object['fromEntries'](Object['entries'](_0x515b28)['map'](([_0x59733e,_0x2d78f5])=>[_0x59733e,resolveEnvVars(_0x2d78f5)]));return _0x515b28;}export async function buildPlaywrightConfig(_0x5f3582,_0x5ebd62,_0x14f725,_0x15a4b2){const _0x4bffed=_0x2b39,_0xeb3ddf={'trYsA':function(_0x558d3e,_0x3de534){return _0x558d3e(_0x3de534);},'HwQIS':function(_0x112777,_0x24641d,_0xb2ffef){return _0x112777(_0x24641d,_0xb2ffef);},'RQVVt':function(_0x2e399b){return _0x2e399b();},'byZzJ':function(_0x2e1c1e,_0x4c8e21){return _0x2e1c1e(_0x4c8e21);},'jzgdn':function(_0x2f392c,_0x610ae2){return _0x2f392c(_0x610ae2);},'FLWuF':function(_0x43faa4){return _0x43faa4();},'JkSkw':function(_0x196f2d,_0x30fda0,_0x42db5a,_0x2d8d1b){return _0x196f2d(_0x30fda0,_0x42db5a,_0x2d8d1b);},'sXbBF':'sessions','aCdPa':function(_0x488df8,_0x10fe31){return _0x488df8(_0x10fe31);},'rmYBD':_0x4bffed(0x187),'QEMur':'clipboard-read','DVOoQ':'vision','DHpql':function(_0x1658d1,_0x234fee){return _0x1658d1===_0x234fee;},'qZede':function(_0x9dde61,_0xe90dde,_0x302613){return _0x9dde61(_0xe90dde,_0x302613);},'oppGK':function(_0x2f2236){return _0x2f2236();},'OndDk':function(_0x137d85,_0x2240cf,_0x33e29c){return _0x137d85(_0x2240cf,_0x33e29c);}},_0x471461=_0xeb3ddf['trYsA'](getEnvDir,_0x5ebd62),_0x5766f9=_0xeb3ddf[_0x4bffed(0x1af)](join,_0x471461,'auth.json.enc'),_0x20c0d1=join(_0x471461,'auth.json');let _0x448bef,_0x1ca129;if(existsSync(_0x5766f9))try{const _0x4bf143=await _0xeb3ddf[_0x4bffed(0x1a9)](getToken);if(!_0x4bf143)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x254524=await _0xeb3ddf[_0x4bffed(0x180)](readFile,_0x5766f9),_0x501dfa=decrypt(_0x254524,_0x4bf143);_0x1ca129=join(tmpdir(),_0x4bffed(0x1a8)+Date['now']()+_0x4bffed(0x1aa)),await writeFile(_0x1ca129,_0x501dfa),_0x448bef=_0x1ca129;}catch(_0x1795e0){const _0x4af332=_0x1795e0 instanceof Error?_0x1795e0['message']:_0xeb3ddf['byZzJ'](String,_0x1795e0);throw new Error(_0x4bffed(0x1a5)+_0x4af332);}else _0xeb3ddf[_0x4bffed(0x19a)](existsSync,_0x20c0d1)&&(_0x448bef=_0x20c0d1);const _0x228618=_0x14f725||_0xeb3ddf[_0x4bffed(0x184)](randomUUID),_0x1c6c3a=_0xeb3ddf[_0x4bffed(0x1c8)](join,getRangerDir(),_0xeb3ddf[_0x4bffed(0x18c)],_0x228618),_0x449c2f=_0xeb3ddf[_0x4bffed(0x1b9)](Boolean,_0x5f3582['cdpEndpoint']),_0x450923=_0x449c2f?{'browserName':'chromium','cdpEndpoint':_0x5f3582['cdpEndpoint']}:{'isolated':!![],'browserName':_0x4bffed(0x1ad),'launchOptions':{'headless':_0x15a4b2?![]:_0x5f3582['headless']??!![],...process['getuid']?.()===0x0&&{'args':[_0xeb3ddf[_0x4bffed(0x1bf)],_0x4bffed(0x1b0)]}},'contextOptions':{'permissions':[_0xeb3ddf['QEMur'],_0x4bffed(0x1b5)],'userAgent':_0x5f3582[_0x4bffed(0x185)]||undefined,'extraHTTPHeaders':_0x5f3582['headers']||{},'storageState':_0x448bef,'viewport':{'width':0x500,'height':0x2d0}}},_0x93b170={'name':_0x5ebd62,'browser':_0x450923,'capabilities':['core',_0x4bffed(0x183),'install','pdf',_0xeb3ddf[_0x4bffed(0x1c6)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1c6c3a};if(!_0x449c2f){const _0x1fbd3e=_0x93b170[_0x4bffed(0x1a4)],_0x46ab40=_0x1fbd3e[_0x4bffed(0x1a1)];if(_0xeb3ddf[_0x4bffed(0x190)](_0x46ab40[_0x4bffed(0x185)],undefined))delete _0x46ab40['userAgent'];if(_0x46ab40[_0x4bffed(0x18a)]===undefined)delete _0x46ab40[_0x4bffed(0x18a)];}const _0x387d69=_0xeb3ddf['qZede'](join,_0xeb3ddf[_0x4bffed(0x189)](tmpdir),_0x4bffed(0x18b));!existsSync(_0x387d69)&&await _0xeb3ddf['HwQIS'](mkdir,_0x387d69,{'recursive':!![]});const _0x4c6aaf=_0xeb3ddf[_0x4bffed(0x1af)](join,_0x387d69,_0x5ebd62+'-'+Date[_0x4bffed(0x1a6)]()+_0x4bffed(0x1aa));return await _0xeb3ddf[_0x4bffed(0x181)](writeFile,_0x4c6aaf,JSON['stringify'](_0x93b170,null,0x2)),{'configPath':_0x4c6aaf,'tempAuthPath':_0x1ca129};}export function getNestedValue(_0x500ccf,_0xab9b33){const _0x2b6181=_0x2b39,_0x5123b5={'vECCo':function(_0x109590,_0x23ae33){return _0x109590(_0x23ae33);},'FPUbD':function(_0x4ab6f2,_0x10a72d){return _0x4ab6f2===_0x10a72d;},'wyOOD':function(_0x57d8e9,_0x33a4f7){return _0x57d8e9!==_0x33a4f7;}},_0x59388e=_0x5123b5['vECCo'](parseKeyPath,_0xab9b33);let _0x15d1c2=_0x500ccf;for(const _0x3073a8 of _0x59388e){if(_0x5123b5['FPUbD'](_0x15d1c2,null)||_0x15d1c2===undefined||_0x5123b5['wyOOD'](typeof _0x15d1c2,_0x2b6181(0x188)))return undefined;_0x15d1c2=_0x15d1c2[_0x3073a8];}return _0x15d1c2;}export function setNestedValue(_0x335690,_0x30199d,_0xab9ba6){const _0x43c226=_0x2b39,_0x5cb48e={'vNvie':'object'},_0xc48e17=parseKeyPath(_0x30199d);let _0x4d7637=_0x335690;for(let _0x213daa=0x0;_0x213daa<_0xc48e17[_0x43c226(0x195)]-0x1;_0x213daa++){const _0x3e4d8c=_0xc48e17[_0x213daa];(!(_0x3e4d8c in _0x4d7637)||typeof _0x4d7637[_0x3e4d8c]!==_0x5cb48e[_0x43c226(0x19c)])&&(_0x4d7637[_0x3e4d8c]={}),_0x4d7637=_0x4d7637[_0x3e4d8c];}_0x4d7637[_0xc48e17[_0xc48e17[_0x43c226(0x195)]-0x1]]=_0xab9ba6;}export function deleteNestedValue(_0x1ac4d1,_0x5a66a8){const _0x2c1f57=_0x2b39,_0x243ec3={'pXOQn':function(_0x1416c4,_0xd7981f){return _0x1416c4(_0xd7981f);},'eUoAg':function(_0x2ce4c2,_0x319cea){return _0x2ce4c2===_0x319cea;},'sNoYV':_0x2c1f57(0x188),'oHtYs':function(_0x28b4eb,_0x1669e8){return _0x28b4eb-_0x1669e8;},'CwdZD':function(_0x257d41,_0x5cb8a2){return _0x257d41 in _0x5cb8a2;}},_0x6495b=_0x243ec3['pXOQn'](parseKeyPath,_0x5a66a8);let _0x5e74db=_0x1ac4d1;for(let _0x50206f=0x0;_0x50206f<_0x6495b[_0x2c1f57(0x195)]-0x1;_0x50206f++){if(_0x5e74db===null||_0x243ec3[_0x2c1f57(0x17f)](_0x5e74db,undefined)||typeof _0x5e74db!=='object')return![];_0x5e74db=_0x5e74db[_0x6495b[_0x50206f]];}if(_0x5e74db===null||_0x5e74db===undefined||typeof _0x5e74db!==_0x243ec3['sNoYV'])return![];const _0x36e982=_0x6495b[_0x243ec3[_0x2c1f57(0x1b3)](_0x6495b['length'],0x1)];if(_0x243ec3['CwdZD'](_0x36e982,_0x5e74db))return delete _0x5e74db[_0x36e982],!![];return![];}function parseKeyPath(_0x5735a6){const _0x11e2bd=_0x2b39,_0x345662={'mSrMx':_0x11e2bd(0x1b6)},_0x265050=_0x5735a6[_0x11e2bd(0x197)]('.');return _0x265050[0x0]==='header'&&(_0x265050[0x0]=_0x345662['mSrMx']),_0x265050;}function _0xbfbf(){const _0xcebd51=['utf-8','rYzwk','chromium','code','HwQIS','--disable-setuid-sandbox','map','4574610MKoAce','oHtYs','auth.json.enc','clipboard-write','headers','locations','settings.json','aCdPa','6228NSPtwx','drtvl','1774044GzXuCT','3979296IaElCe','MNcil','rmYBD','configPath','path','replace','includes','XzsqO','PeFVw','DVOoQ','warn','JkSkw','4585602ORqldl','location','auth.json','339754ZhjPyi','eUoAg','trYsA','OndDk','legacy','tabs','FLWuF','userAgent','env','--no-sandbox','object','oppGK','storageState','ranger-config','sXbBF','string','lRZMJ','oLZPd','DHpql','filter','repeat','local','message','length','Bpuwh','split','rdIns','212bJhhlM','jzgdn','WdBBx','vNvie','cJzmC','20031136bFYmpS','push','all','contextOptions','yJuWt','OWGDv','browser','Failed\x20to\x20decrypt\x20auth\x20state:\x20','now','entries','ranger-auth-','RQVVt','.json'];_0xbfbf=function(){return _0xcebd51;};return _0xbfbf();}export function formatSettings(_0x2d9e92,_0x65f956=0x0){const _0x570aba=_0x2b39,_0x475ec6={'rEeDe':function(_0x15abbc,_0xe84fc6){return _0x15abbc===_0xe84fc6;}},_0x1e0e25=[],_0xd5dba9='\x20\x20'[_0x570aba(0x192)](_0x65f956);for(const [_0x2cb2ba,_0x4f043d]of Object['entries'](_0x2d9e92)){if(_0x475ec6['rEeDe'](_0x4f043d,undefined))continue;if(typeof _0x4f043d===_0x570aba(0x188)&&_0x4f043d!==null){_0x1e0e25[_0x570aba(0x19f)](''+_0xd5dba9+_0x2cb2ba+':');for(const [_0x26c37e,_0x80d9af]of Object[_0x570aba(0x1a7)](_0x4f043d)){_0x1e0e25['push'](_0xd5dba9+'\x20\x20'+_0x26c37e+':\x20'+_0x80d9af);}}else _0x1e0e25[_0x570aba(0x19f)](''+_0xd5dba9+_0x2cb2ba+':\x20'+_0x4f043d);}return _0x1e0e25['join']('\x0a');}
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 +1 @@
1
- (function(_0x27cdbc,_0x5e554f){const _0x5730bc=_0x4d90,_0x2326cb=_0x27cdbc();while(!![]){try{const _0xd31816=-parseInt(_0x5730bc(0x11c))/0x1+-parseInt(_0x5730bc(0x11b))/0x2*(parseInt(_0x5730bc(0x117))/0x3)+-parseInt(_0x5730bc(0x11e))/0x4*(parseInt(_0x5730bc(0x116))/0x5)+parseInt(_0x5730bc(0x11f))/0x6+parseInt(_0x5730bc(0x121))/0x7*(-parseInt(_0x5730bc(0x114))/0x8)+parseInt(_0x5730bc(0x11a))/0x9*(parseInt(_0x5730bc(0x115))/0xa)+-parseInt(_0x5730bc(0x120))/0xb*(-parseInt(_0x5730bc(0x119))/0xc);if(_0xd31816===_0x5e554f)break;else _0x2326cb['push'](_0x2326cb['shift']());}catch(_0x2d93a5){_0x2326cb['push'](_0x2326cb['shift']());}}}(_0x51ec,0xc4205));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x51ec(){const _0x5a5c7f=['778451MGNMZL','skills','628NuWALA','8695536sFarkQ','13269751BRYEXJ','7VpvapK','ranger/SKILL.md','731704ClhDCl','2010aaoyVd','25845DTTwoT','2232PbeYJI','utf-8','12wJVsjP','6543qhgNvb','852IjwuDo'];_0x51ec=function(){return _0x5a5c7f;};return _0x51ec();}export function readSkillContent(_0x5f9a3){const _0x62ead7=_0x4d90,_0x12c6e0={'XfWmq':function(_0x5db179,_0xf39fc0,_0x2a040b,_0x4b3a28,_0x1da865){return _0x5db179(_0xf39fc0,_0x2a040b,_0x4b3a28,_0x1da865);},'sDtXr':function(_0x8ee585,_0x493863,_0x33a65b){return _0x8ee585(_0x493863,_0x33a65b);},'DSNdh':_0x62ead7(0x118)},_0x296224=_0x12c6e0['XfWmq'](join,__dirname,'..','..',_0x62ead7(0x11d)),_0x4d0bb6=join(_0x296224,_0x5f9a3);try{return _0x12c6e0['sDtXr'](readFileSync,_0x4d0bb6,_0x12c6e0['DSNdh']);}catch{return'';}}function _0x4d90(_0x501028,_0x5290ea){_0x501028=_0x501028-0x114;const _0x51ec0d=_0x51ec();let _0x4d9047=_0x51ec0d[_0x501028];return _0x4d9047;}export function getRangerSkillContent(){const _0x352b08=_0x4d90;return readSkillContent(_0x352b08(0x122));}
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 +1 @@
1
- const _0x13bbca=_0x2cf0;(function(_0x3b78a3,_0x3ec257){const _0xa2547e=_0x2cf0,_0xbf8b28=_0x3b78a3();while(!![]){try{const _0x35fbed=parseInt(_0xa2547e(0x20c))/0x1+-parseInt(_0xa2547e(0x1ee))/0x2+-parseInt(_0xa2547e(0x20d))/0x3*(parseInt(_0xa2547e(0x1ff))/0x4)+-parseInt(_0xa2547e(0x210))/0x5+parseInt(_0xa2547e(0x1f3))/0x6+-parseInt(_0xa2547e(0x203))/0x7+parseInt(_0xa2547e(0x202))/0x8*(parseInt(_0xa2547e(0x1f8))/0x9);if(_0x35fbed===_0x3ec257)break;else _0xbf8b28['push'](_0xbf8b28['shift']());}catch(_0x3846bd){_0xbf8b28['push'](_0xbf8b28['shift']());}}}(_0x3f5a,0x5fb6e));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x3f5a(){const _0x36d025=['OgXVa','trim','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','2611320ZVnBvZ','ZDmFW','feature-tracker','warn','bug-bash','3296277sYhzfI','JXvhR','SKILL.md','CNeeK','FxwWD','gSxId','join','2108yAWppr','rafFM','project','40Erszro','5203506lVoyAv','PxbGf','claude','log','aIeUx','match','Invalid\x20skill\x20frontmatter','.md','\x20\x20Location:\x20','341231twTFnV','1641voAHgK','CRhTY','OpksG','2753335kLBRKO','jwcgk','skills','1266752xdCubj','catch'];_0x3f5a=function(){return _0x36d025;};return _0x3f5a();}import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';function _0x2cf0(_0x10743d,_0x772578){_0x10743d=_0x10743d-0x1ec;const _0x3f5a9f=_0x3f5a();let _0x2cf04c=_0x3f5a9f[_0x10743d];return _0x2cf04c;}import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x13bbca(0x1f7),_0x13bbca(0x1f5)];export async function installSkill(_0x26f836,_0x43da4a={}){const _0x3f34c0=_0x13bbca,_0x1feda8={'CNeeK':_0x3f34c0(0x201),'ZDmFW':function(_0x281f6d,_0x1d4b66,_0x465aee){return _0x281f6d(_0x1d4b66,_0x465aee);},'rafFM':function(_0x151840,_0x7ea7a7){return _0x151840(_0x7ea7a7);},'FxwWD':function(_0xcbb223,_0x5ad1d2){return _0xcbb223(_0x5ad1d2);},'gSxId':'opencode','gmYjx':function(_0x3a2a1a,_0x3c0a7c){return _0x3a2a1a(_0x3c0a7c);},'OgXVa':function(_0x153314,_0x2a9f18,_0x6836b8){return _0x153314(_0x2a9f18,_0x6836b8);},'hfJsp':function(_0x2b658f,_0x396276,_0x1fe8be){return _0x2b658f(_0x396276,_0x1fe8be);},'nGFSE':function(_0x50885c,_0x92e469,_0x1dc032){return _0x50885c(_0x92e469,_0x1dc032);},'aIeUx':'utf-8','jwcgk':_0x3f34c0(0x1fa),'PxbGf':function(_0x45fbd2,_0x2cf558){return _0x45fbd2>_0x2cf558;},'CRhTY':function(_0xeea9b6,_0x2376d5,_0x1d3535,_0x103af8){return _0xeea9b6(_0x2376d5,_0x1d3535,_0x103af8);}},{level:level=_0x1feda8[_0x3f34c0(0x1fb)],cliVersion:_0x1aa85d,platform:platform=_0x3f34c0(0x205)}=_0x43da4a,_0x55c09e=getSourceSkillsDir(),_0xb3b92d=join(_0x55c09e,_0x26f836),_0x451813=_0x1feda8[_0x3f34c0(0x1f4)](join,_0x55c09e,_0x26f836+'.md'),_0x5704be=existsSync(_0xb3b92d)&&_0x1feda8['rafFM'](statSync,_0xb3b92d)['isDirectory']()&&_0x1feda8['FxwWD'](existsSync,join(_0xb3b92d,_0x3f34c0(0x1fa))),_0xf7e963=_0x1feda8[_0x3f34c0(0x1fc)](existsSync,_0x451813);if(!_0x5704be&&!_0xf7e963)return console[_0x3f34c0(0x1f6)]('\x20\x20Skill\x20not\x20found:\x20'+_0x26f836),![];const _0x4f78a2=platform===_0x1feda8[_0x3f34c0(0x1fd)]?_0x1feda8['gmYjx'](getOpencodeSkillsDir,level):getSkillsDir(level),_0x2cbca2=_0x1feda8[_0x3f34c0(0x1f0)](join,_0x4f78a2,_0x26f836);await mkdir(_0x2cbca2,{'recursive':!![]});let _0x171f28,_0x56c4a1=[];if(_0x5704be){const _0x326db3=await readdir(_0xb3b92d),_0x26b2a8=_0x326db3['filter'](_0x3c2c2d=>_0x3c2c2d['endsWith'](_0x3f34c0(0x20a)));for(const _0x4e70ce of _0x26b2a8){const _0x226ad9=_0x1feda8['hfJsp'](join,_0xb3b92d,_0x4e70ce),_0x34bd46=join(_0x2cbca2,_0x4e70ce);await copyFile(_0x226ad9,_0x34bd46),_0x56c4a1['push'](_0x4e70ce);}_0x171f28=await readFile(_0x1feda8[_0x3f34c0(0x1f0)](join,_0xb3b92d,_0x3f34c0(0x1fa)),'utf-8');}else{_0x171f28=await _0x1feda8['nGFSE'](readFile,_0x451813,_0x1feda8[_0x3f34c0(0x207)]);const _0x25eec5=join(_0x2cbca2,_0x1feda8[_0x3f34c0(0x1ec)]);await writeFile(_0x25eec5,_0x171f28,_0x1feda8[_0x3f34c0(0x207)]),_0x56c4a1['push'](_0x1feda8[_0x3f34c0(0x1ec)]);}const {name:_0x1b4431}=_0x1feda8[_0x3f34c0(0x200)](parseFrontmatter,_0x171f28);return console[_0x3f34c0(0x206)]('\x20\x20Installed\x20skill:\x20'+_0x1b4431),console[_0x3f34c0(0x206)](_0x3f34c0(0x20b)+_0x2cbca2),_0x1feda8[_0x3f34c0(0x204)](_0x56c4a1['length'],0x1)&&console[_0x3f34c0(0x206)]('\x20\x20Files:\x20'+_0x56c4a1[_0x3f34c0(0x1fe)](',\x20')),_0x1feda8[_0x3f34c0(0x20e)](logLocalAgentInstallation,_0x26f836,{'skillDisplayName':_0x1b4431,'installLevel':level},_0x1aa85d)[_0x3f34c0(0x1ef)](()=>{}),!![];}function getSourceSkillsDir(){const _0x271ca1=_0x13bbca,_0x265775={'OItPy':_0x271ca1(0x1ed),'JXvhR':function(_0xb5038,_0x4aa200){return _0xb5038(_0x4aa200);}},_0x4bb1e6=[join(__dirname,'..','..',_0x265775['OItPy']),join(__dirname,'..','..','..',_0x271ca1(0x1ed))];for(const _0x142616 of _0x4bb1e6){if(_0x265775[_0x271ca1(0x1f9)](existsSync,_0x142616))return _0x142616;}return _0x4bb1e6[0x0];}function parseFrontmatter(_0x2a0705){const _0x3a82a1=_0x13bbca,_0x546508={'kGuIN':_0x3a82a1(0x209)},_0x24b9d5=_0x2a0705[_0x3a82a1(0x208)](/^---\n([\s\S]+?)\n---/);if(!_0x24b9d5)throw new Error(_0x546508['kGuIN']);const _0x6963df=_0x24b9d5[0x1],_0x11cb5d=_0x6963df[_0x3a82a1(0x208)](/name:\s*(.+)/),_0x2cc9f5=_0x6963df[_0x3a82a1(0x208)](/description:\s*"?(.+?)"?\n/);return{'name':_0x11cb5d?.[0x1][_0x3a82a1(0x1f1)]()||'','description':_0x2cc9f5?.[0x1][_0x3a82a1(0x1f1)]()||''};}export async function removeSkill(_0x16e0e8,_0x427116){const _0x2110b1=_0x13bbca,_0x216855={'OpksG':function(_0x3b36aa,_0x21e718,_0x3e95b2){return _0x3b36aa(_0x21e718,_0x3e95b2);}},_0x41e355=getSkillsDir(_0x427116),_0x3c8a03=join(_0x41e355,_0x16e0e8);if(!existsSync(_0x3c8a03))return![];try{return await _0x216855[_0x2110b1(0x20f)](rm,_0x3c8a03,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x16e0e8),!![];}catch{return console['warn'](_0x2110b1(0x1f2)+_0x16e0e8),![];}}
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 +1 @@
1
- const _0x457719=_0xfdd9;(function(_0xab939c,_0x57f899){const _0x3f469a=_0xfdd9,_0x2674f4=_0xab939c();while(!![]){try{const _0x49cc34=-parseInt(_0x3f469a(0x204))/0x1+parseInt(_0x3f469a(0x212))/0x2*(-parseInt(_0x3f469a(0x226))/0x3)+-parseInt(_0x3f469a(0x20d))/0x4*(parseInt(_0x3f469a(0x205))/0x5)+-parseInt(_0x3f469a(0x202))/0x6*(-parseInt(_0x3f469a(0x228))/0x7)+-parseInt(_0x3f469a(0x209))/0x8*(parseInt(_0x3f469a(0x21a))/0x9)+parseInt(_0x3f469a(0x1f3))/0xa+-parseInt(_0x3f469a(0x213))/0xb*(-parseInt(_0x3f469a(0x201))/0xc);if(_0x49cc34===_0x57f899)break;else _0x2674f4['push'](_0x2674f4['shift']());}catch(_0x6e8b83){_0x2674f4['push'](_0x2674f4['shift']());}}}(_0x2654,0x50f6f));import{randomUUID}from'crypto';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';export class TelemetryCollector{['buffer']=[];['commandId'];[_0x457719(0x21c)];[_0x457719(0x225)];['phaseCounter']=0x0;[_0x457719(0x229)]=new Map();[_0x457719(0x217)]=null;[_0x457719(0x1fe)];[_0x457719(0x1f9)];[_0x457719(0x211)];[_0x457719(0x200)];[_0x457719(0x21b)];[_0x457719(0x20b)];[_0x457719(0x214)];['browserSessionId'];constructor(_0x1f5123){const _0x1cd6ec=_0x457719;this[_0x1cd6ec(0x216)]=randomUUID(),this[_0x1cd6ec(0x21c)]=_0x1f5123,this['commandStartTime']=Date[_0x1cd6ec(0x1fd)](),this['cliVersion']=getCurrentVersion(),this[_0x1cd6ec(0x1f9)]=process['version'],this[_0x1cd6ec(0x211)]=process[_0x1cd6ec(0x211)],this[_0x1cd6ec(0x200)]=process['stdout']['isTTY']??![],this['isCI']=!!(process['env']['CI']||process[_0x1cd6ec(0x220)][_0x1cd6ec(0x22f)]);}['setContext'](_0x109909){const _0x43390c=_0x457719;if(_0x109909[_0x43390c(0x20b)])this[_0x43390c(0x20b)]=_0x109909['featureId'];if(_0x109909[_0x43390c(0x214)])this[_0x43390c(0x214)]=_0x109909['checklistItemId'];if(_0x109909[_0x43390c(0x1fb)])this['browserSessionId']=_0x109909[_0x43390c(0x1fb)];}async[_0x457719(0x221)](_0x810535){const _0x1c2939=_0x457719,_0x2e7df8=this['buildEvent']({'eventType':_0x1c2939(0x20a),'metadata':_0x810535});await this[_0x1c2939(0x1fc)](_0x2e7df8);}async[_0x457719(0x224)](_0x7440af,_0x2736d4){const _0x2fbc1a=_0x457719,_0x5c888={'dZuQA':'command_end'},_0x55af57=this['buildEvent']({'eventType':_0x5c888[_0x2fbc1a(0x203)],'outcome':_0x7440af,'durationMs':Date['now']()-this[_0x2fbc1a(0x225)],'metadata':_0x2736d4});await this[_0x2fbc1a(0x1fc)](_0x55af57),await this['flush']();}async[_0x457719(0x219)](_0x1038b9,_0x20ebad){const _0x919a28=_0x457719,_0xf1aed0={'TxkqR':function(_0x3ce224,_0x7f2589){return _0x3ce224 instanceof _0x7f2589;},'gvBGe':_0x919a28(0x215)},_0x11cddb=this['buildEvent']({'eventType':'command_error','errorMessage':truncate(_0x1038b9 instanceof Error?_0x1038b9['message']:String(_0x1038b9),0x1f4),'errorType':_0xf1aed0['TxkqR'](_0x1038b9,Error)?_0x1038b9[_0x919a28(0x218)][_0x919a28(0x1f6)]:_0xf1aed0[_0x919a28(0x21e)],'durationMs':Date[_0x919a28(0x1fd)]()-this[_0x919a28(0x225)],'metadata':_0x20ebad});await this['sendImmediate'](_0x11cddb),await this['flush']();}['trackPhaseStart'](_0x2e652c,_0x52a3cd){const _0x1205ca=_0x457719;this[_0x1205ca(0x20f)]++,this[_0x1205ca(0x229)]['set'](_0x2e652c,Date['now']());const _0x2f3e5b=this['buildEvent']({'eventType':'phase_start','phase':_0x2e652c,'phaseIndex':this[_0x1205ca(0x20f)],'metadata':_0x52a3cd});this[_0x1205ca(0x1f4)][_0x1205ca(0x1f5)](_0x2f3e5b);}[_0x457719(0x20e)](_0x469827,_0x1fdf34){const _0x2bedaa=_0x457719,_0x54a8e4={'KSTbG':function(_0x1ca101,_0x26f938){return _0x1ca101-_0x26f938;}},_0x55db95=this['phaseStartTimes'][_0x2bedaa(0x22d)](_0x469827),_0x473449=_0x55db95?_0x54a8e4[_0x2bedaa(0x1f8)](Date[_0x2bedaa(0x1fd)](),_0x55db95):undefined;this[_0x2bedaa(0x229)]['delete'](_0x469827);const _0x361bc5=this[_0x2bedaa(0x21f)]({'eventType':_0x2bedaa(0x223),'phase':_0x469827,'durationMs':_0x473449,'metadata':_0x1fdf34});this['buffer']['push'](_0x361bc5),this[_0x2bedaa(0x1f4)][_0x2bedaa(0x208)]>=0xa&&this[_0x2bedaa(0x22c)]();}async['trackPhaseError'](_0x286e28,_0x45c880,_0x3e4544){const _0x45744d=_0x457719,_0x15c8d5={'BofOK':function(_0x167c6a,_0x55c03e,_0x56164c){return _0x167c6a(_0x55c03e,_0x56164c);},'dPrdp':function(_0x3d8755,_0x174c12){return _0x3d8755(_0x174c12);},'rCrgb':_0x45744d(0x215)},_0x40b0f4=this['phaseStartTimes']['get'](_0x286e28),_0x524cc6=_0x40b0f4?Date[_0x45744d(0x1fd)]()-_0x40b0f4:undefined;this['phaseStartTimes']['delete'](_0x286e28);const _0x122bc0=this['buildEvent']({'eventType':'phase_error','phase':_0x286e28,'durationMs':_0x524cc6,'errorMessage':_0x15c8d5['BofOK'](truncate,_0x45c880 instanceof Error?_0x45c880[_0x45744d(0x22a)]:_0x15c8d5[_0x45744d(0x231)](String,_0x45c880),0x1f4),'errorType':_0x45c880 instanceof Error?_0x45c880[_0x45744d(0x218)]['name']:_0x15c8d5['rCrgb'],'metadata':_0x3e4544});await this[_0x45744d(0x1fc)](_0x122bc0);}async['flush'](){const _0xcaec5e=_0x457719;if(this['buffer'][_0xcaec5e(0x208)]===0x0)return;const _0x29a4de=this[_0xcaec5e(0x1f4)]['splice'](0x0);try{await this['sendBatch'](_0x29a4de);}catch{}}['buildEvent'](_0x20540f){const _0x36edd9=_0x457719;return{'eventType':_0x20540f['eventType'],'command':this['command'],'commandId':this['commandId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x20540f[_0x36edd9(0x20c)],'phase':_0x20540f['phase'],'phaseIndex':_0x20540f[_0x36edd9(0x210)],'outcome':_0x20540f['outcome'],'errorMessage':_0x20540f['errorMessage'],'errorType':_0x20540f['errorType'],'featureId':this[_0x36edd9(0x20b)],'checklistItemId':this[_0x36edd9(0x214)],'browserSessionId':this[_0x36edd9(0x1fb)],'evaluation':_0x20540f['evaluation'],'cliVersion':this[_0x36edd9(0x1fe)],'nodeVersion':this[_0x36edd9(0x1f9)],'platform':this['platform'],'isTty':this[_0x36edd9(0x200)],'isCI':this[_0x36edd9(0x21b)],'metadata':_0x20540f[_0x36edd9(0x22b)]};}async[_0x457719(0x1fc)](_0x267846){const _0x56d1f7=_0x457719;try{await this[_0x56d1f7(0x206)]([_0x267846]);}catch{}}['flushAsync'](){const _0x754bd5=_0x457719;if(this[_0x754bd5(0x217)])return;this['flushing']=this['flush']()[_0x754bd5(0x207)](()=>{const _0x4a14e0=_0x754bd5;this[_0x4a14e0(0x217)]=null;});}async[_0x457719(0x206)](_0xa9cd1c){const _0x30fe7f=_0x457719,_0xdacecb={'rHuLz':_0x30fe7f(0x222)},_0x2f3438=await getToken()[_0x30fe7f(0x227)](()=>null),_0x2a2077=getApiBaseUrl(),_0x449e1b={'Content-Type':_0xdacecb['rHuLz']};_0x2f3438&&(_0x449e1b['Authorization']='Bearer\x20'+_0x2f3438);const _0x51c77c={'events':_0xa9cd1c};process['env'][_0x30fe7f(0x230)]&&console['error']('[telemetry]\x20Sending\x20'+_0xa9cd1c[_0x30fe7f(0x208)]+_0x30fe7f(0x22e)+_0x2a2077+_0x30fe7f(0x1fa));const _0x1a445c=new AbortController(),_0x26c240=setTimeout(()=>_0x1a445c['abort'](),0x1388);try{await fetch(_0x2a2077+'/api/v1/mcp/cli-telemetry',{'method':'POST','headers':_0x449e1b,'body':JSON['stringify'](_0x51c77c),'signal':_0x1a445c['signal']});}finally{clearTimeout(_0x26c240);}}}function _0xfdd9(_0x5563e5,_0x590f98){_0x5563e5=_0x5563e5-0x1f3;const _0x2654eb=_0x2654();let _0xfdd9cb=_0x2654eb[_0x5563e5];return _0xfdd9cb;}let currentCollector=null;export function createTelemetryCollector(_0x20f727){return currentCollector=new TelemetryCollector(_0x20f727),currentCollector;}function _0x2654(){const _0x4f85bf=['browserSessionId','sendImmediate','now','cliVersion','slice','isTty','36DIuoua','1162266zomvGY','dZuQA','177132AZqICn','1055155QfbprV','sendBatch','finally','length','14608IZHLdY','command_start','featureId','durationMs','4UMzUhg','trackPhaseEnd','phaseCounter','phaseIndex','platform','792eJiuHT','4371103DGSKSN','checklistItemId','Unknown','commandId','flushing','constructor','trackCommandError','2727xOnwJh','isCI','command','success','gvBGe','buildEvent','env','trackCommandStart','application/json','phase_end','trackCommandEnd','commandStartTime','3183WhKagV','catch','7QBidZe','phaseStartTimes','message','metadata','flushAsync','get','\x20event(s)\x20to\x20','GITHUB_ACTIONS','DEBUG','dPrdp','3073980EilPYL','buffer','push','name','flush','KSTbG','nodeVersion','/api/v1/mcp/cli-telemetry'];_0x2654=function(){return _0x4f85bf;};return _0x2654();}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x29f04d,_0x2c2a83,_0x52de9d){const _0x5a1675=_0x457719,_0x572815={'FEQRw':function(_0x17621d,_0xeb98bc){return _0x17621d(_0xeb98bc);}},_0x14f9fc=createTelemetryCollector(_0x29f04d);await _0x14f9fc['trackCommandStart'](_0x52de9d);try{const _0x491937=await _0x572815['FEQRw'](_0x2c2a83,_0x14f9fc);return await _0x14f9fc['trackCommandEnd'](_0x5a1675(0x21d)),_0x491937;}catch(_0x115c80){await _0x14f9fc[_0x5a1675(0x219)](_0x115c80);throw _0x115c80;}finally{await _0x14f9fc[_0x5a1675(0x1f7)]();}}function truncate(_0x226b1f,_0x512f71){const _0x459e3c=_0x457719,_0x5a1e1c={'NpbSt':function(_0x4443ec,_0x5b8bc8){return _0x4443ec>_0x5b8bc8;}};return _0x5a1e1c['NpbSt'](_0x226b1f['length'],_0x512f71)?_0x226b1f[_0x459e3c(0x1ff)](0x0,_0x512f71)+'...':_0x226b1f;}
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 +1 @@
1
- (function(_0x3ea480,_0x1cd04c){const _0x4f36c0=_0xa565,_0x706922=_0x3ea480();while(!![]){try{const _0x3e2f7a=parseInt(_0x4f36c0(0x18b))/0x1*(-parseInt(_0x4f36c0(0x18e))/0x2)+parseInt(_0x4f36c0(0x195))/0x3+-parseInt(_0x4f36c0(0x18a))/0x4*(parseInt(_0x4f36c0(0x184))/0x5)+-parseInt(_0x4f36c0(0x190))/0x6*(-parseInt(_0x4f36c0(0x189))/0x7)+-parseInt(_0x4f36c0(0x18d))/0x8*(-parseInt(_0x4f36c0(0x18c))/0x9)+parseInt(_0x4f36c0(0x185))/0xa*(parseInt(_0x4f36c0(0x191))/0xb)+-parseInt(_0x4f36c0(0x193))/0xc;if(_0x3e2f7a===_0x1cd04c)break;else _0x706922['push'](_0x706922['shift']());}catch(_0x199500){_0x706922['push'](_0x706922['shift']());}}}(_0x4abf,0xcbb03));function _0xa565(_0x46874a,_0x1cf6e0){_0x46874a=_0x46874a-0x184;const _0x4abf6f=_0x4abf();let _0xa565ac=_0x4abf6f[_0x46874a];return _0xa565ac;}function _0x4abf(){const _0x2614ff=['30GKIkOb','GET','status','kbddh','111167FGofVT','2520196sBqvjz','11ubyIyW','18405juAdcF','952YwiVsJ','47572WvLcKS','bprCd','306crqQPO','4087171eNOZPM','Bearer\x20','13491300AEIEzn','json','2046924irJXbI','5QWNxMg'];_0x4abf=function(){return _0x2614ff;};return _0x4abf();}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x5d67f5){const _0x4d6f1d=_0xa565,_0x1e559e={'kbddh':function(_0x556f57){return _0x556f57();},'bprCd':function(_0x4715a7,_0x4d33bd){return _0x4715a7 instanceof _0x4d33bd;}},_0x2cab4b=_0x1e559e[_0x4d6f1d(0x188)](getApiBaseUrl);try{const _0x2fd390=await fetch(_0x2cab4b+'/api/v1/mcp/me',{'method':_0x4d6f1d(0x186),'headers':{'Authorization':_0x4d6f1d(0x192)+_0x5d67f5}});if(!_0x2fd390['ok'])return{'success':![],'error':_0x2fd390[_0x4d6f1d(0x187)]+'\x20'+_0x2fd390['statusText'],'status':_0x2fd390[_0x4d6f1d(0x187)]};const _0x4d4ae9=await _0x2fd390[_0x4d6f1d(0x194)]();return{'success':!![],'user':_0x4d4ae9};}catch(_0x5e6d39){return{'success':![],'error':_0x1e559e[_0x4d6f1d(0x18f)](_0x5e6d39,Error)?_0x5e6d39['message']:String(_0x5e6d39)};}}
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 +1 @@
1
- (function(_0x5b2578,_0x43b24e){const _0x5427e3=_0x5ace,_0x38ca65=_0x5b2578();while(!![]){try{const _0x2a3359=parseInt(_0x5427e3(0x1d0))/0x1*(-parseInt(_0x5427e3(0x1cf))/0x2)+-parseInt(_0x5427e3(0x1ce))/0x3+-parseInt(_0x5427e3(0x1c4))/0x4+parseInt(_0x5427e3(0x1c0))/0x5+parseInt(_0x5427e3(0x1c8))/0x6+-parseInt(_0x5427e3(0x1c9))/0x7*(parseInt(_0x5427e3(0x1d1))/0x8)+parseInt(_0x5427e3(0x1ca))/0x9;if(_0x2a3359===_0x43b24e)break;else _0x38ca65['push'](_0x38ca65['shift']());}catch(_0x5d93ec){_0x38ca65['push'](_0x38ca65['shift']());}}}(_0x2498,0x20cc1));function _0x2498(){const _0x35dbb8=['1593477MExBod','split','gQvlo','pIFzG','165027QiWMhU','2882aoreFB','9myffol','376TLSqvJ','\x20version\x202>/dev/null','utf-8','663590tKfhmc','trim','JwhqO','ntWAI','1021900eyrfvn','eGNoM','wzBTJ','package.json','1550532hjuZRR','16443evDtxu'];_0x2498=function(){return _0x35dbb8;};return _0x2498();}import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x5ace(_0x4dce94,_0x3d0ce2){_0x4dce94=_0x4dce94-0x1c0;const _0x2498c6=_0x2498();let _0x5acee7=_0x2498c6[_0x4dce94];return _0x5acee7;}export const PACKAGE_NAME='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x373988=_0x5ace,_0x53ca18={'Chwkr':function(_0x105909,_0x7b11b4,_0x3e7b84,_0x541144,_0x30abbd){return _0x105909(_0x7b11b4,_0x3e7b84,_0x541144,_0x30abbd);},'JwhqO':_0x373988(0x1c7),'gQvlo':function(_0x445c66,_0x882947,_0x493aab,_0x49bc45,_0x3e24f3,_0xd5fe91){return _0x445c66(_0x882947,_0x493aab,_0x49bc45,_0x3e24f3,_0xd5fe91);},'ntWAI':function(_0x108e9f,_0x29dab2){return _0x108e9f(_0x29dab2);},'eGNoM':function(_0x441329,_0x473a4f,_0x5b0690){return _0x441329(_0x473a4f,_0x5b0690);},'wzBTJ':_0x373988(0x1d3),'pIFzG':'unknown'},_0x3343d7=[_0x53ca18['Chwkr'](join,__dirname,'..','..',_0x53ca18['JwhqO']),_0x53ca18[_0x373988(0x1cc)](join,__dirname,'..','..','..',_0x53ca18[_0x373988(0x1c2)])];for(const _0xc09828 of _0x3343d7){if(_0x53ca18[_0x373988(0x1c3)](existsSync,_0xc09828))try{const _0xe3b630=JSON['parse'](_0x53ca18[_0x373988(0x1c5)](readFileSync,_0xc09828,_0x53ca18[_0x373988(0x1c6)]));return _0xe3b630['version']||'unknown';}catch{continue;}}return _0x53ca18[_0x373988(0x1cd)];}export function getLatestVersion(){const _0x20a589=_0x5ace,_0x2206f9={'cpUCX':function(_0x487623,_0x53bb0b,_0x498db6){return _0x487623(_0x53bb0b,_0x498db6);}};try{const _0x2e1546=_0x2206f9['cpUCX'](execSync,'npm\x20view\x20'+PACKAGE_NAME+_0x20a589(0x1d2),{'encoding':'utf-8','timeout':0x1388});return _0x2e1546[_0x20a589(0x1c1)]();}catch{return null;}}export function compareVersions(_0x501468,_0x481c4a){const _0x21de45=_0x5ace,_0x17d744={'InxvE':function(_0x102bb0,_0x33424a){return _0x102bb0<_0x33424a;},'exBgS':function(_0x54904f,_0x52aeb1){return _0x54904f>_0x52aeb1;}},_0xaa0b71=_0x501468[_0x21de45(0x1cb)]('.')['map'](Number),_0x57f575=_0x481c4a[_0x21de45(0x1cb)]('.')['map'](Number);for(let _0x1c7c2c=0x0;_0x17d744['InxvE'](_0x1c7c2c,0x3);_0x1c7c2c++){const _0x34a349=_0xaa0b71[_0x1c7c2c]||0x0,_0x18cbf6=_0x57f575[_0x1c7c2c]||0x0;if(_0x17d744['exBgS'](_0x18cbf6,_0x34a349))return 0x1;if(_0x17d744['InxvE'](_0x18cbf6,_0x34a349))return-0x1;}return 0x0;}
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;}