@ranger-testing/ranger-cli 2.5.4-alpha.57338f5-12 → 2.5.4-alpha.5f9facb-17

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 (81) hide show
  1. package/README.md +36 -14
  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/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/opencodeConfig.js +1 -1
  58. package/build/commands/utils/playwrightCli.js +1 -1
  59. package/build/commands/utils/profileMessages.js +1 -1
  60. package/build/commands/utils/profileSetupBanner.js +1 -1
  61. package/build/commands/utils/projectsConfig.js +1 -1
  62. package/build/commands/utils/rangerConfig.js +1 -1
  63. package/build/commands/utils/rangerRoot.js +1 -1
  64. package/build/commands/utils/resolveProfileContext.js +1 -1
  65. package/build/commands/utils/resolveProfileUrl.js +1 -1
  66. package/build/commands/utils/retry.js +1 -1
  67. package/build/commands/utils/sessionCache.js +1 -1
  68. package/build/commands/utils/settings.js +1 -1
  69. package/build/commands/utils/skillContent.js +1 -1
  70. package/build/commands/utils/skills.js +1 -1
  71. package/build/commands/utils/stitchWebmFiles.js +1 -1
  72. package/build/commands/utils/telemetry.js +1 -1
  73. package/build/commands/utils/tokenRefresh.js +1 -1
  74. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  75. package/build/commands/utils/userApi.js +1 -1
  76. package/build/commands/utils/version.js +1 -1
  77. package/build/commands/verifyFeature.js +1 -1
  78. package/build/commands/verifyFeatureCli.js +1 -1
  79. package/build/skills/ranger/SKILL.md +15 -5
  80. package/build/skills/ranger/verify.md +15 -3
  81. package/package.json +3 -2
@@ -1 +1 @@
1
- (function(_0x19ea43,_0x137f08){const _0x96528b=_0x4db7,_0x189db8=_0x19ea43();while(!![]){try{const _0x20757a=-parseInt(_0x96528b(0x16c))/0x1+-parseInt(_0x96528b(0x15b))/0x2+parseInt(_0x96528b(0x169))/0x3+parseInt(_0x96528b(0x16f))/0x4*(-parseInt(_0x96528b(0x15e))/0x5)+-parseInt(_0x96528b(0x162))/0x6+parseInt(_0x96528b(0x168))/0x7+parseInt(_0x96528b(0x155))/0x8;if(_0x20757a===_0x137f08)break;else _0x189db8['push'](_0x189db8['shift']());}catch(_0xebff44){_0x189db8['push'](_0x189db8['shift']());}}}(_0xfa62,0x3828a));function _0xfa62(){const _0x1e358a=['includes','plugin','stringify','3194008RwQKoU','Project\x20(shared\x20with\x20team\x20via\x20git)','ISULo','\x0a📦\x20OpenCode\x20Plugin\x0a','opencode.json','log','71296aseKNo','jXcik','Where\x20should\x20the\x20plugin\x20be\x20installed?','860345kAZoXU','isArray','dwQpO','$schema','1083594OZfEbQ','User\x20(available\x20in\x20all\x20your\x20projects)','⚠\x20Failed\x20to\x20read\x20opencode.json.\x20Please\x20add\x20the\x20plugin\x20manually.','rncZm','user','parse','2387084iZYztD','244500hNizpK','YmMBY','project','31352dpqVIu','error','pZLMA','8sZOjpe','pluginScope','https://opencode.ai/config.json','UlfGp','@ranger-testing/opencode-plugin'];_0xfa62=function(){return _0x1e358a;};return _0xfa62();}import{join}from'path';import{existsSync}from'fs';import{mkdir,readFile,writeFile}from'fs/promises';import _0x37e26c from'inquirer';import{getOpencodeConfigDir}from'../utils/opencodeConfig.js';function _0x4db7(_0x410f5a,_0x442281){_0x410f5a=_0x410f5a-0x153;const _0xfa6221=_0xfa62();let _0x4db7bc=_0xfa6221[_0x410f5a];return _0x4db7bc;}export async function ensureOpencodePluginConfig(_0x2e91cb){const _0x38dd3a=_0x4db7,_0x3d0df7={'dwQpO':function(_0x13c892,_0x17fb34){return _0x13c892(_0x17fb34);},'inRSH':function(_0x335ddf,_0x197316,_0x189b68){return _0x335ddf(_0x197316,_0x189b68);},'YmMBY':function(_0x2d5f10,_0xabd421){return _0x2d5f10(_0xabd421);},'ISULo':_0x38dd3a(0x16b),'rncZm':_0x38dd3a(0x158),'kZnMs':_0x38dd3a(0x170),'eIMTt':'user','UlfGp':_0x38dd3a(0x159),'zIQwm':_0x38dd3a(0x171),'jXcik':_0x38dd3a(0x164),'pZLMA':'✓\x20OpenCode\x20plugin\x20already\x20configured','nfZoN':function(_0x59ac76,_0x285f69){return _0x59ac76(_0x285f69);},'DYwBk':function(_0x13370b,_0xc6f5c4){return _0x13370b+_0xc6f5c4;},'jzOnY':'✓\x20OpenCode\x20plugin\x20configured'},_0x308f24=_0x3d0df7[_0x38dd3a(0x160)](existsSync,_0x3d0df7['inRSH'](join,_0x3d0df7[_0x38dd3a(0x16a)](getOpencodeConfigDir,_0x3d0df7[_0x38dd3a(0x157)]),'opencode.json'));let _0x39a487;if(_0x2e91cb)_0x39a487=_0x2e91cb;else{if(_0x308f24)_0x39a487=_0x3d0df7['ISULo'];else{console['log'](_0x3d0df7[_0x38dd3a(0x165)]);const _0x58a392=await _0x37e26c['prompt']([{'type':'list','name':_0x3d0df7['kZnMs'],'message':_0x38dd3a(0x15d),'choices':[{'name':_0x38dd3a(0x163),'value':_0x3d0df7['eIMTt']},{'name':_0x38dd3a(0x156),'value':_0x38dd3a(0x16b)}],'default':_0x38dd3a(0x166)}]);_0x39a487=_0x58a392['pluginScope'];}}const _0x359203=_0x3d0df7['inRSH'](join,getOpencodeConfigDir(_0x39a487),_0x3d0df7[_0x38dd3a(0x172)]),_0x50920c=_0x38dd3a(0x173),_0xc651be=_0x3d0df7['zIQwm'];let _0xd689bf={};if(existsSync(_0x359203))try{const _0x8af09a=await readFile(_0x359203,'utf-8');_0xd689bf=JSON[_0x38dd3a(0x167)](_0x8af09a);}catch(_0x2ee0bc){return console[_0x38dd3a(0x16d)](_0x3d0df7[_0x38dd3a(0x15c)]),{'configured':![],'scope':_0x39a487,'error':'Failed\x20to\x20read\x20opencode.json','details':_0x2ee0bc};}const _0x640b7c=Array[_0x38dd3a(0x15f)](_0xd689bf['plugin'])?_0xd689bf[_0x38dd3a(0x153)]:[];if(_0x640b7c[_0x38dd3a(0x174)](_0x50920c))return console['log'](_0x3d0df7[_0x38dd3a(0x16e)]),{'configured':![],'scope':_0x39a487};return _0xd689bf[_0x38dd3a(0x161)]=_0xd689bf[_0x38dd3a(0x161)]||_0xc651be,_0xd689bf[_0x38dd3a(0x153)]=[..._0x640b7c,_0x50920c],await mkdir(_0x3d0df7['nfZoN'](getOpencodeConfigDir,_0x39a487),{'recursive':!![]}),await _0x3d0df7['inRSH'](writeFile,_0x359203,_0x3d0df7['DYwBk'](JSON[_0x38dd3a(0x154)](_0xd689bf,null,0x2),'\x0a')),console[_0x38dd3a(0x15a)](_0x3d0df7['jzOnY']),{'configured':!![],'scope':_0x39a487};}
1
+ (function(_0x171f51,_0x50a12c){const _0x6e4134=_0x4549,_0x52a232=_0x171f51();while(!![]){try{const _0x454c5a=-parseInt(_0x6e4134(0xe8))/0x1*(-parseInt(_0x6e4134(0xf2))/0x2)+parseInt(_0x6e4134(0xe3))/0x3*(-parseInt(_0x6e4134(0xda))/0x4)+-parseInt(_0x6e4134(0xe4))/0x5+-parseInt(_0x6e4134(0xe9))/0x6*(parseInt(_0x6e4134(0xf1))/0x7)+parseInt(_0x6e4134(0xd2))/0x8*(-parseInt(_0x6e4134(0xdf))/0x9)+-parseInt(_0x6e4134(0xdd))/0xa+parseInt(_0x6e4134(0xef))/0xb;if(_0x454c5a===_0x50a12c)break;else _0x52a232['push'](_0x52a232['shift']());}catch(_0x2a83e3){_0x52a232['push'](_0x52a232['shift']());}}}(_0x28cb,0x751af));import{join}from'path';import{existsSync}from'fs';import{mkdir,readFile,writeFile}from'fs/promises';import _0x5c460f from'inquirer';function _0x28cb(){const _0x2976d1=['bvbPf','✓\x20OpenCode\x20plugin\x20already\x20configured','1047380rqIzac','SuwHP','729gzkOhp','FXPWd','plugin','parse','3HWnhYI','187670MFDzvk','@ranger-testing/opencode-plugin','QyzDc','UWOeF','31sgXkey','6198pTRQYy','Failed\x20to\x20read\x20opencode.json','includes','trfVC','prompt','bZGqq','22172139daaBfs','Where\x20should\x20the\x20plugin\x20be\x20installed?','4851fLIFGN','43926cDvOwu','bZwEH','project','isArray','RcVAv','log','39816CnfszS','$schema','pluginScope','\x0a📦\x20OpenCode\x20Plugin\x0a','user','✓\x20OpenCode\x20plugin\x20configured','opencode.json','INPoL','3822244vbJkZm'];_0x28cb=function(){return _0x2976d1;};return _0x28cb();}function _0x4549(_0x5a219e,_0x1ec0d4){_0x5a219e=_0x5a219e-0xd1;const _0x28cb80=_0x28cb();let _0x454902=_0x28cb80[_0x5a219e];return _0x454902;}import{getOpencodeConfigDir}from'../utils/opencodeConfig.js';export async function ensureOpencodePluginConfig(_0x4ebff5){const _0x50b515=_0x4549,_0xb32a1d={'bZwEH':function(_0x107801,_0x11f796){return _0x107801(_0x11f796);},'trfVC':function(_0x3d68db,_0xac9a2e,_0x3cac87){return _0x3d68db(_0xac9a2e,_0x3cac87);},'sjsJg':_0x50b515(0xf4),'TmbhY':_0x50b515(0xd8),'bZGqq':'list','QyzDc':'pluginScope','RcVAv':_0x50b515(0xf0),'lEUnw':'User\x20(available\x20in\x20all\x20your\x20projects)','FXPWd':_0x50b515(0xd6),'uoTGr':'Project\x20(shared\x20with\x20team\x20via\x20git)','bvbPf':function(_0x3c2f28,_0x5752e4){return _0x3c2f28(_0x5752e4);},'UWOeF':'https://opencode.ai/config.json','INPoL':function(_0x3ba44e,_0x7302a0){return _0x3ba44e(_0x7302a0);},'AULXH':'utf-8','BSMnX':'⚠\x20Failed\x20to\x20read\x20opencode.json.\x20Please\x20add\x20the\x20plugin\x20manually.','TCOMl':function(_0x31b317,_0x3d0d35,_0x155988){return _0x31b317(_0x3d0d35,_0x155988);},'mhgJd':function(_0x11728f,_0x4043e4){return _0x11728f+_0x4043e4;},'SuwHP':_0x50b515(0xd7)},_0x16091b=_0xb32a1d[_0x50b515(0xf3)](existsSync,_0xb32a1d[_0x50b515(0xec)](join,getOpencodeConfigDir(_0xb32a1d['sjsJg']),_0xb32a1d['TmbhY']));let _0x38f7c4;if(_0x4ebff5)_0x38f7c4=_0x4ebff5;else{if(_0x16091b)_0x38f7c4='project';else{console['log'](_0x50b515(0xd5));const _0x578580=await _0x5c460f[_0x50b515(0xed)]([{'type':_0xb32a1d[_0x50b515(0xee)],'name':_0xb32a1d[_0x50b515(0xe6)],'message':_0xb32a1d[_0x50b515(0xf6)],'choices':[{'name':_0xb32a1d['lEUnw'],'value':_0xb32a1d[_0x50b515(0xe0)]},{'name':_0xb32a1d['uoTGr'],'value':_0x50b515(0xf4)}],'default':_0xb32a1d['FXPWd']}]);_0x38f7c4=_0x578580[_0x50b515(0xd4)];}}const _0x539f24=join(_0xb32a1d[_0x50b515(0xdb)](getOpencodeConfigDir,_0x38f7c4),'opencode.json'),_0x225c8c=_0x50b515(0xe5),_0x5ddbb0=_0xb32a1d[_0x50b515(0xe7)];let _0x22d3b1={};if(_0xb32a1d[_0x50b515(0xd9)](existsSync,_0x539f24))try{const _0x26ca24=await _0xb32a1d[_0x50b515(0xec)](readFile,_0x539f24,_0xb32a1d['AULXH']);_0x22d3b1=JSON[_0x50b515(0xe2)](_0x26ca24);}catch(_0x5049f9){return console['error'](_0xb32a1d['BSMnX']),{'configured':![],'scope':_0x38f7c4,'error':_0x50b515(0xea),'details':_0x5049f9};}const _0x58d2e=Array[_0x50b515(0xf5)](_0x22d3b1[_0x50b515(0xe1)])?_0x22d3b1[_0x50b515(0xe1)]:[];if(_0x58d2e[_0x50b515(0xeb)](_0x225c8c))return console[_0x50b515(0xd1)](_0x50b515(0xdc)),{'configured':![],'scope':_0x38f7c4};return _0x22d3b1[_0x50b515(0xd3)]=_0x22d3b1[_0x50b515(0xd3)]||_0x5ddbb0,_0x22d3b1['plugin']=[..._0x58d2e,_0x225c8c],await _0xb32a1d['TCOMl'](mkdir,getOpencodeConfigDir(_0x38f7c4),{'recursive':!![]}),await writeFile(_0x539f24,_0xb32a1d['mhgJd'](JSON['stringify'](_0x22d3b1,null,0x2),'\x0a')),console[_0x50b515(0xd1)](_0xb32a1d[_0x50b515(0xde)]),{'configured':!![],'scope':_0x38f7c4};}
@@ -1 +1 @@
1
- function _0x19a4(_0x1b8667,_0x130e0f){_0x1b8667=_0x1b8667-0x94;var _0x4298d3=_0x4298();var _0x19a4a3=_0x4298d3[_0x1b8667];return _0x19a4a3;}(function(_0x579db9,_0x5c99ce){var _0x7333f7=_0x19a4,_0x5baa87=_0x579db9();while(!![]){try{var _0x388e38=-parseInt(_0x7333f7(0x94))/0x1*(parseInt(_0x7333f7(0x99))/0x2)+-parseInt(_0x7333f7(0x95))/0x3*(-parseInt(_0x7333f7(0xa1))/0x4)+parseInt(_0x7333f7(0x9d))/0x5+-parseInt(_0x7333f7(0xa2))/0x6*(parseInt(_0x7333f7(0x9b))/0x7)+-parseInt(_0x7333f7(0x96))/0x8*(-parseInt(_0x7333f7(0x97))/0x9)+parseInt(_0x7333f7(0x98))/0xa+-parseInt(_0x7333f7(0x9f))/0xb*(parseInt(_0x7333f7(0xa0))/0xc);if(_0x388e38===_0x5c99ce)break;else _0x5baa87['push'](_0x5baa87['shift']());}catch(_0x436a58){_0x5baa87['push'](_0x5baa87['shift']());}}}(_0x4298,0xb96f4));export async function setupCi(_0x4a5f8d,_0x558ed7,_0x5b824e){var _0x326b9f=_0x19a4,_0x2080bc={'xiDqZ':function(_0x55343d,_0x44e3fc){return _0x55343d+_0x44e3fc;},'zbEaV':function(_0x5d4f0c,_0x56fea6){return _0x5d4f0c+_0x56fea6;},'VGrEw':function(_0x757fd2,_0x3a1f57){return _0x757fd2+_0x3a1f57;},'XUEhn':'ranger\x20setup\x20--ci\x20writes\x20to\x20the\x20legacy\x20.ranger/ci/\x20tree\x20which\x20is\x20no\x20longer\x20supported.\x0a','GuEDW':_0x326b9f(0x9a),'PKdpk':_0x326b9f(0x9e)};console['error'](_0x2080bc[_0x326b9f(0xa3)](_0x2080bc['xiDqZ'](_0x2080bc['zbEaV'](_0x2080bc['VGrEw'](_0x2080bc['XUEhn'],'Use\x20the\x20new\x20flow:\x0a'),_0x2080bc['GuEDW']),'For\x20a\x20shared\x20cloud\x20profile:\x20ranger\x20profile\x20add\x20<account-email>\x0a'),_0x2080bc['PKdpk'])),process[_0x326b9f(0x9c)](0x1);}function _0x4298(){var _0x4ed4f8=['213507IpSyCm','422220BwHmBV','55084pRKdZe','\x20\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--base-url\x20<url>\x0a','77ThBqKE','exit','5068245Vcaohw','See:\x20docs/feature/cloud-profiles-old-vs-new-structure.md','175219bOEhAf','804zUuNpD','3090392wFKDze','179994hvCLRi','xiDqZ','1gTDZwc','3LtBYYl','120YuFfKP'];_0x4298=function(){return _0x4ed4f8;};return _0x4298();}
1
+ function _0x222d(_0x4aacbd,_0xe7828b){_0x4aacbd=_0x4aacbd-0x1df;var _0x1b254e=_0x1b25();var _0x222d1f=_0x1b254e[_0x4aacbd];return _0x222d1f;}(function(_0x274571,_0x2a1c3c){var _0x27081a=_0x222d,_0x3a4f9a=_0x274571();while(!![]){try{var _0x1cbc1e=-parseInt(_0x27081a(0x1e0))/0x1+parseInt(_0x27081a(0x1e8))/0x2*(-parseInt(_0x27081a(0x1e4))/0x3)+-parseInt(_0x27081a(0x1e3))/0x4+parseInt(_0x27081a(0x1ea))/0x5+-parseInt(_0x27081a(0x1ee))/0x6+-parseInt(_0x27081a(0x1e2))/0x7*(-parseInt(_0x27081a(0x1df))/0x8)+parseInt(_0x27081a(0x1e5))/0x9;if(_0x1cbc1e===_0x2a1c3c)break;else _0x3a4f9a['push'](_0x3a4f9a['shift']());}catch(_0x2fe1e6){_0x3a4f9a['push'](_0x3a4f9a['shift']());}}}(_0x1b25,0x50d28));export async function setupCi(_0x4780ad,_0x45f54c,_0x357b78){var _0x55c676=_0x222d,_0x547fa6={'tdEJK':function(_0x378563,_0x341c12){return _0x378563+_0x341c12;},'gJuGa':'ranger\x20setup\x20--ci\x20writes\x20to\x20the\x20legacy\x20.ranger/ci/\x20tree\x20which\x20is\x20no\x20longer\x20supported.\x0a','orTib':'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','szrTx':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','cbTfB':_0x55c676(0x1e1)};console[_0x55c676(0x1e7)](_0x547fa6['tdEJK'](_0x547fa6[_0x55c676(0x1e6)](_0x547fa6[_0x55c676(0x1e6)](_0x547fa6['gJuGa'],'\x0a')+_0x547fa6[_0x55c676(0x1ed)],_0x547fa6[_0x55c676(0x1e9)])+'\x0a'+_0x547fa6['cbTfB'],_0x55c676(0x1ec))),process[_0x55c676(0x1eb)](0x1);}function _0x1b25(){var _0x2aecda=['For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','601706KTEnok','449020xaEFdm','6LbdiMD','5432220mUWzoL','tdEJK','error','51478STlxAP','szrTx','2748060geQiyb','exit','\x20\x20https://docs.ranger.net/main/concepts/profiles','orTib','2560008CfpDfp','32EUuhEE','575575hcOvRl'];_0x1b25=function(){return _0x2aecda;};return _0x1b25();}
@@ -1 +1 @@
1
- function _0xf8f7(_0x515b0d,_0x4402ea){_0x515b0d=_0x515b0d-0xf6;const _0x3845ea=_0x3845();let _0xf8f7a0=_0x3845ea[_0x515b0d];return _0xf8f7a0;}(function(_0x833e3d,_0xd27363){const _0x4cf072=_0xf8f7,_0x2b2970=_0x833e3d();while(!![]){try{const _0x31750d=parseInt(_0x4cf072(0x123))/0x1*(parseInt(_0x4cf072(0xff))/0x2)+-parseInt(_0x4cf072(0x118))/0x3*(-parseInt(_0x4cf072(0x106))/0x4)+parseInt(_0x4cf072(0x10e))/0x5*(-parseInt(_0x4cf072(0x10a))/0x6)+-parseInt(_0x4cf072(0x10c))/0x7*(parseInt(_0x4cf072(0x110))/0x8)+-parseInt(_0x4cf072(0xf6))/0x9*(-parseInt(_0x4cf072(0x100))/0xa)+parseInt(_0x4cf072(0x114))/0xb+parseInt(_0x4cf072(0x11d))/0xc;if(_0x31750d===_0xd27363)break;else _0x2b2970['push'](_0x2b2970['shift']());}catch(_0x34474a){_0x2b2970['push'](_0x2b2970['shift']());}}}(_0x3845,0x79ca8));import{basename}from'path';import _0x1baa64 from'inquirer';import{getToken}from'./utils/keychain.js';import{installSkill}from'./utils/skills.js';import{getCurrentVersion}from'./utils/version.js';function _0x3845(){const _0x3634c3=['\x0a⚠️\x20\x20No\x20skills\x20were\x20installed.\x0a','\x20\x20-\x20Start\x20OpenCode\x20and\x20run\x20the\x20`ranger_enable`\x20tool\x20to\x20enable\x20hooks.','gYPzX','vqmLq','20238oXTawX','dvwEM','9sriaoR','BrFKC','project-level','This\x20project\x20only\x20(','VoaGj','ldgdN','user','opencode','\x0a🎯\x20Ranger\x20Skill\x20Setup\x0a','26GgrdMr','246550cnbyDt','❌\x20No\x20Ranger\x20API\x20token\x20found.\x0a','warn','claude','Mcpcq','log','972UVkJJp','/.opencode/skills/','installLevel','KgYnR','151716OlBZQo','stdout','70nMjnlq','ranger','115ITgvPr','\x20\x20Failed\x20to\x20install\x20ranger\x20skill:','503872sCKZbu','\x20skill','\x20<your-api-token>','KbNUV','4220722vSLZqF','stdin','\x20\x20-\x20Open\x20Claude\x20Code\x20in\x20plan\x20mode\x20and\x20run\x20/ranger:enable.\x20Plan\x20out\x20a\x20UI\x20feature\x20with\x20Ranger\x20and\x20watch\x20Ranger\x20test\x20it\x20for\x20you!','Non-interactive\x20mode:\x20Installing\x20skills\x20at\x20project\x20level\x20(','11517nlMWnc','\x0a✅\x20Installed\x20','autoInstall','suppressUsage','To\x20get\x20started:','1271352lJrKhd','All\x20projects\x20('];_0x3845=function(){return _0x3634c3;};return _0x3845();}import{getClaudeConfigDir,getProjectRoot}from'./utils/claudeConfig.js';import{getOpencodeConfigDir}from'./utils/opencodeConfig.js';export async function skillup(_0x54f3a1={}){const _0xc624a1=_0xf8f7,_0x18e11b={'zubvu':_0xc624a1(0xfe),'VoaGj':function(_0x3e9ea0){return _0x3e9ea0();},'gkDLO':_0xc624a1(0x11c),'Mcpcq':function(_0xb05d0d,_0x1a1d43){return _0xb05d0d===_0x1a1d43;},'BrFKC':_0xc624a1(0xfd),'KbNUV':'\x20--opencode','OnQKQ':function(_0x4abb7c,_0x4fc8ac){return _0x4abb7c===_0x4fc8ac;},'srEPF':function(_0x38e7d6){return _0x38e7d6();},'KgYnR':function(_0x5d7185,_0x10d4b9){return _0x5d7185(_0x10d4b9);},'pjnVx':function(_0x9a94da){return _0x9a94da();},'PkNRH':'Where\x20should\x20skills\x20be\x20installed?','gYPzX':_0xc624a1(0xfc),'rRgHG':'project','vqmLq':_0xc624a1(0x10d),'dvwEM':_0xc624a1(0x10f),'dTXvh':function(_0x5544bc,_0x37774f){return _0x5544bc instanceof _0x37774f;},'FXJCZ':function(_0x3a7f29,_0x124f25){return _0x3a7f29>_0x124f25;},'YFzxv':'user-level','UZPJM':_0xc624a1(0xf8),'ldgdN':function(_0x16ca30,_0x3e663f){return _0x16ca30>_0x3e663f;}};console['log'](_0x18e11b['zubvu']);const _0x5788f0=_0x54f3a1['platform']??_0xc624a1(0x103),_0x2d4d0f=await _0x18e11b[_0xc624a1(0xfa)](getToken);if(!_0x2d4d0f){console['log'](_0xc624a1(0x101)),console[_0xc624a1(0x105)](_0x18e11b['gkDLO']),console['log']('\x20\x201.\x20Get\x20your\x20API\x20token\x20from\x20https://dashboard.ranger.net/cli'),console['log']('\x20\x202.\x20Run:\x20ranger\x20setup'+(_0x18e11b[_0xc624a1(0x104)](_0x5788f0,_0x18e11b[_0xc624a1(0xf7)])?_0x18e11b[_0xc624a1(0x113)]:'')+_0xc624a1(0x112)),console[_0xc624a1(0x105)]('\x20\x203.\x20Run:\x20ranger\x20skillup'+(_0x18e11b['OnQKQ'](_0x5788f0,_0x18e11b[_0xc624a1(0xf7)])?_0x18e11b[_0xc624a1(0x113)]:'')+'\x0a');return;}console['log']('✓\x20Found\x20API\x20token');const _0x128ca9=_0x18e11b['srEPF'](getProjectRoot),_0x1735a0=_0x18e11b['KgYnR'](basename,_0x128ca9),_0x3654dc=_0x5788f0===_0x18e11b[_0xc624a1(0xf7)]?_0x18e11b[_0xc624a1(0x109)](getOpencodeConfigDir,_0xc624a1(0xfc))+'/skills/':_0x18e11b['pjnVx'](getClaudeConfigDir)+'/skills/',_0x32bc2b=_0x18e11b['OnQKQ'](_0x5788f0,_0xc624a1(0xfd))?_0x128ca9+_0xc624a1(0x107):_0x128ca9+'/.claude/skills/',_0x4543e0=process[_0xc624a1(0x115)]['isTTY']&&process[_0xc624a1(0x10b)]['isTTY'];let _0x3bfde1;if(_0x54f3a1['autoInstall'])_0x3bfde1=_0x54f3a1[_0xc624a1(0x11a)];else{if(_0x4543e0){const _0x2ba52d=await _0x1baa64['prompt']([{'type':'list','name':'installLevel','message':_0x18e11b['PkNRH'],'choices':[{'name':_0xc624a1(0x11e)+_0x3654dc+')','value':_0x18e11b[_0xc624a1(0x121)]},{'name':_0xc624a1(0xf9)+_0x32bc2b+')','value':'project'}]}]);_0x3bfde1=_0x2ba52d[_0xc624a1(0x108)];}else _0x3bfde1=_0x18e11b['rRgHG'],console['log'](_0xc624a1(0x117)+_0x32bc2b+')');}let _0x302306=0x0;const _0x3f98f6=getCurrentVersion();console[_0xc624a1(0x105)]('\x0a📦\x20Installing\x20skills...\x0a');try{const _0xa2464b=await installSkill(_0x18e11b[_0xc624a1(0x122)],{'cliVersion':_0x3f98f6,'level':_0x3bfde1,'platform':_0x5788f0});_0xa2464b&&_0x302306++;}catch(_0x131d7d){console[_0xc624a1(0x102)](_0x18e11b[_0xc624a1(0x124)],_0x18e11b['dTXvh'](_0x131d7d,Error)?_0x131d7d['message']:_0x131d7d);}if(_0x18e11b['FXJCZ'](_0x302306,0x0)){const _0x3f0bd3=_0x18e11b[_0xc624a1(0x104)](_0x3bfde1,'user')?_0x18e11b['YFzxv']:_0x18e11b['UZPJM'];console['log'](_0xc624a1(0x119)+_0x302306+'\x20'+_0x3f0bd3+_0xc624a1(0x111)+(_0x18e11b[_0xc624a1(0xfb)](_0x302306,0x1)?'s':'')+'\x20successfully!\x0a'),!_0x54f3a1[_0xc624a1(0x11b)]&&(console[_0xc624a1(0x105)]('To\x20use:'),_0x5788f0==='opencode'?console['log'](_0xc624a1(0x120)):console[_0xc624a1(0x105)](_0xc624a1(0x116)));}else console[_0xc624a1(0x105)](_0xc624a1(0x11f));}
1
+ (function(_0x304296,_0x36418e){const _0x55166d=_0x3e6e,_0x211f3c=_0x304296();while(!![]){try{const _0x5ed125=parseInt(_0x55166d(0xc3))/0x1+-parseInt(_0x55166d(0xb3))/0x2*(parseInt(_0x55166d(0xca))/0x3)+-parseInt(_0x55166d(0xbd))/0x4+parseInt(_0x55166d(0xcd))/0x5*(-parseInt(_0x55166d(0xd4))/0x6)+-parseInt(_0x55166d(0xbb))/0x7*(parseInt(_0x55166d(0xbf))/0x8)+-parseInt(_0x55166d(0xd3))/0x9+parseInt(_0x55166d(0xc2))/0xa;if(_0x5ed125===_0x36418e)break;else _0x211f3c['push'](_0x211f3c['shift']());}catch(_0x317804){_0x211f3c['push'](_0x211f3c['shift']());}}}(_0xe599,0xdf79c));import{basename}from'path';import _0x3ac249 from'inquirer';import{getToken}from'./utils/keychain.js';import{installSkill}from'./utils/skills.js';import{getCurrentVersion}from'./utils/version.js';import{getClaudeConfigDir,getProjectRoot}from'./utils/claudeConfig.js';function _0xe599(){const _0x41d735=['zYxkG','mBRAg','13507272ZlMDAo','106242hpwVrH','\x0a⚠️\x20\x20No\x20skills\x20were\x20installed.\x0a','XgoIB','❌\x20No\x20Ranger\x20API\x20token\x20found.\x0a','\x20\x202.\x20Run:\x20ranger\x20setup','installLevel','Non-interactive\x20mode:\x20Installing\x20skills\x20at\x20project\x20level\x20(','\x0a📦\x20Installing\x20skills...\x0a','All\x20projects\x20(','ranger','To\x20get\x20started:','log','qxBuk','/skills/','user','40162OfAkSg','mIQoM','stdin','opencode','stdout','Where\x20should\x20skills\x20be\x20installed?','KEspv','message','10905412zMvLJT','\x20\x20-\x20Start\x20OpenCode\x20and\x20run\x20the\x20`ranger_enable`\x20tool\x20to\x20enable\x20hooks.','1495288OoZrYQ','list','8GlqqkD','TYteb','prompt','53688360ZagZdX','582780zsUGOL','vGlaK','yzbeo','To\x20use:','itLGH','suppressUsage','MIYvy','147VzebQi','\x20--opencode','NDiCE','175pbtcjQ','/.opencode/skills/','wOkPS','atcnI'];_0xe599=function(){return _0x41d735;};return _0xe599();}import{getOpencodeConfigDir}from'./utils/opencodeConfig.js';function _0x3e6e(_0x26d724,_0x2d3f2a){_0x26d724=_0x26d724-0xb3;const _0xe59997=_0xe599();let _0x3e6edc=_0xe59997[_0x26d724];return _0x3e6edc;}export async function skillup(_0xc0c69c={}){const _0x3a7ede=_0x3e6e,_0x533302={'XgoIB':'claude','Dgtqu':_0x3a7ede(0xd7),'MIYvy':_0x3a7ede(0xde),'qxBuk':'\x20\x201.\x20Get\x20your\x20API\x20token\x20from\x20https://dashboard.ranger.net/cli','wOkPS':function(_0x5ecb0c,_0x16c891){return _0x5ecb0c===_0x16c891;},'TYteb':function(_0x369a19,_0x3662b5){return _0x369a19===_0x3662b5;},'itLGH':_0x3a7ede(0xb6),'YtUtW':_0x3a7ede(0xcb),'yzbeo':'✓\x20Found\x20API\x20token','mBRAg':function(_0x3467f7){return _0x3467f7();},'FSTxj':function(_0x59a8fb,_0x5470b4){return _0x59a8fb(_0x5470b4);},'qPvno':_0x3a7ede(0xd9),'vGlaK':_0x3a7ede(0xb8),'FyOgs':_0x3a7ede(0xe2),'zYxkG':'project','VZvhc':_0x3a7ede(0xdb),'NDiCE':function(_0x4406ac,_0x417941,_0x142d62){return _0x4406ac(_0x417941,_0x142d62);},'OlVuv':'\x20\x20Failed\x20to\x20install\x20ranger\x20skill:','mIQoM':function(_0xe92933,_0x2716a6){return _0xe92933===_0x2716a6;},'fSrGX':'user-level','KEspv':'\x20\x20-\x20Open\x20Claude\x20Code\x20in\x20plan\x20mode\x20and\x20run\x20/ranger:enable.\x20Plan\x20out\x20a\x20UI\x20feature\x20with\x20Ranger\x20and\x20watch\x20Ranger\x20test\x20it\x20for\x20you!','atcnI':_0x3a7ede(0xd5)};console['log']('\x0a🎯\x20Ranger\x20Skill\x20Setup\x0a');const _0x2122d2=_0xc0c69c['platform']??_0x533302[_0x3a7ede(0xd6)],_0x4948a0=await getToken();if(!_0x4948a0){console[_0x3a7ede(0xdf)](_0x533302['Dgtqu']),console[_0x3a7ede(0xdf)](_0x533302[_0x3a7ede(0xc9)]),console[_0x3a7ede(0xdf)](_0x533302[_0x3a7ede(0xe0)]),console['log'](_0x3a7ede(0xd8)+(_0x533302[_0x3a7ede(0xcf)](_0x2122d2,_0x3a7ede(0xb6))?'\x20--opencode':'')+'\x20<your-api-token>'),console['log']('\x20\x203.\x20Run:\x20ranger\x20skillup'+(_0x533302[_0x3a7ede(0xc0)](_0x2122d2,_0x533302['itLGH'])?_0x533302['YtUtW']:'')+'\x0a');return;}console[_0x3a7ede(0xdf)](_0x533302[_0x3a7ede(0xc5)]);const _0x2dd6f2=_0x533302[_0x3a7ede(0xd2)](getProjectRoot),_0x1c1444=basename(_0x2dd6f2),_0x26ae2e=_0x2122d2==='opencode'?_0x533302['FSTxj'](getOpencodeConfigDir,'user')+_0x3a7ede(0xe1):getClaudeConfigDir()+'/skills/',_0x218ae0=_0x2122d2===_0x533302[_0x3a7ede(0xc7)]?_0x2dd6f2+_0x3a7ede(0xce):_0x2dd6f2+'/.claude/skills/',_0x1e0f1c=process[_0x3a7ede(0xb5)]['isTTY']&&process[_0x3a7ede(0xb7)]['isTTY'];let _0x8666f7;if(_0xc0c69c['autoInstall'])_0x8666f7=_0xc0c69c['autoInstall'];else{if(_0x1e0f1c){const _0xe325fb=await _0x3ac249[_0x3a7ede(0xc1)]([{'type':_0x3a7ede(0xbe),'name':_0x533302['qPvno'],'message':_0x533302[_0x3a7ede(0xc4)],'choices':[{'name':_0x3a7ede(0xdc)+_0x26ae2e+')','value':_0x533302['FyOgs']},{'name':'This\x20project\x20only\x20('+_0x218ae0+')','value':_0x533302['zYxkG']}]}]);_0x8666f7=_0xe325fb['installLevel'];}else _0x8666f7=_0x533302[_0x3a7ede(0xd1)],console['log'](_0x3a7ede(0xda)+_0x218ae0+')');}let _0x1eb0ef=0x0;const _0x3978a4=getCurrentVersion();console['log'](_0x533302['VZvhc']);try{const _0xefc3b3=await _0x533302[_0x3a7ede(0xcc)](installSkill,_0x3a7ede(0xdd),{'cliVersion':_0x3978a4,'level':_0x8666f7,'platform':_0x2122d2});_0xefc3b3&&_0x1eb0ef++;}catch(_0x5c6fbd){console['warn'](_0x533302['OlVuv'],_0x5c6fbd instanceof Error?_0x5c6fbd[_0x3a7ede(0xba)]:_0x5c6fbd);}if(_0x1eb0ef>0x0){const _0x384680=_0x533302[_0x3a7ede(0xb4)](_0x8666f7,_0x3a7ede(0xe2))?_0x533302['fSrGX']:'project-level';console[_0x3a7ede(0xdf)]('\x0a✅\x20Installed\x20'+_0x1eb0ef+'\x20'+_0x384680+'\x20skill'+(_0x1eb0ef>0x1?'s':'')+'\x20successfully!\x0a'),!_0xc0c69c[_0x3a7ede(0xc8)]&&(console['log'](_0x3a7ede(0xc6)),_0x533302[_0x3a7ede(0xcf)](_0x2122d2,_0x533302['itLGH'])?console['log'](_0x3a7ede(0xbc)):console['log'](_0x533302[_0x3a7ede(0xb9)]));}else console['log'](_0x533302[_0x3a7ede(0xd0)]);}
@@ -1 +1 @@
1
- const _0x12da14=_0x5a86;(function(_0x4f7829,_0x5528be){const _0x265e13=_0x5a86,_0x49e020=_0x4f7829();while(!![]){try{const _0x168bb2=parseInt(_0x265e13(0x179))/0x1+parseInt(_0x265e13(0x18a))/0x2*(-parseInt(_0x265e13(0x1b0))/0x3)+-parseInt(_0x265e13(0x1ac))/0x4*(parseInt(_0x265e13(0x1cb))/0x5)+parseInt(_0x265e13(0x1e4))/0x6*(parseInt(_0x265e13(0x184))/0x7)+-parseInt(_0x265e13(0x1e1))/0x8+-parseInt(_0x265e13(0x177))/0x9*(-parseInt(_0x265e13(0x1b3))/0xa)+parseInt(_0x265e13(0x1da))/0xb*(-parseInt(_0x265e13(0x1dd))/0xc);if(_0x168bb2===_0x5528be)break;else _0x49e020['push'](_0x49e020['shift']());}catch(_0x3d49e9){_0x49e020['push'](_0x49e020['shift']());}}}(_0x95d4,0x59fa1));import{mkdir,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{createRequire}from'module';import{spawn}from'child_process';import _0x1287d4 from'inquirer';import{getToken,storeToken}from'./utils/keychain.js';import{getCurrentUser}from'./utils/userApi.js';import{chromium}from'playwright';import{addEnv}from'./addEnv.js';import{getRangerHomeDir,findGitRoot}from'./utils/rangerRoot.js';import{runDeviceAuthFlow}from'./utils/deviceAuth.js';import{findExistingEnv}from'./utils/settings.js';import{getCurrentVersion}from'./utils/version.js';import{ensureClaudePlugin,ensureClaudeSkills}from'./setup/claude.js';import{ensureOpencodePluginConfig}from'./setup/opencode.js';import{installSkill}from'./utils/skills.js';const require=createRequire(import.meta.url);export const PLAYWRIGHT_CHROMIUM_INSTALL_FALLBACK_VERSION=_0x12da14(0x193);const bold=_0x369f67=>_0x12da14(0x1db)+_0x369f67+'\x1b[0m';export function getPlaywrightVersion(){try{const _0x25d3e7=require['resolve']('playwright/package.json'),_0x44355c=require(_0x25d3e7);return _0x44355c['version'];}catch{return null;}}export function installChromiumBinary(_0x2bf272,_0x459ab0=![]){const _0x32a197=_0x12da14,_0x7378d9={'bGoYy':function(_0x5a2b88,_0x5406c4){return _0x5a2b88(_0x5406c4);},'ThgfW':function(_0x140018){return _0x140018();},'TjvQx':_0x32a197(0x1d0),'WzDCY':function(_0x2bf31d,_0x2e8f2d,_0x585cc4,_0x1f588a){return _0x2bf31d(_0x2e8f2d,_0x585cc4,_0x1f588a);},'ahdGQ':_0x32a197(0x174),'qfqxj':'ignore','oKHzm':_0x32a197(0x1b5),'fwNWg':function(_0x3101ad,_0x83c046){return _0x3101ad===_0x83c046;},'rPTrR':_0x32a197(0x170),'RbOcw':_0x32a197(0x178),'FZXex':'error'};return new Promise((_0x4fb238,_0x1d1b80)=>{const _0xaf1d66=_0x32a197,_0x3617e2={'OlNGN':function(_0x3576b2){const _0x16be7b=_0x5a86;return _0x7378d9[_0x16be7b(0x1e6)](_0x3576b2);}},_0x2eb552=['playwright@'+_0x2bf272,'install',..._0x459ab0?['--with-deps']:[],_0x7378d9[_0xaf1d66(0x17f)]],_0x5a2759=_0x7378d9['WzDCY'](spawn,_0x7378d9[_0xaf1d66(0x186)],_0x2eb552,{'stdio':[_0x7378d9['qfqxj'],_0x7378d9['oKHzm'],'inherit'],'shell':_0x7378d9['fwNWg'](process[_0xaf1d66(0x1a6)],_0x7378d9['rPTrR'])});_0x5a2759['on'](_0x7378d9['RbOcw'],_0x2cb176=>{const _0x474a00=_0xaf1d66;_0x2cb176===0x0?_0x3617e2[_0x474a00(0x1a9)](_0x4fb238):_0x1d1b80(new Error('Installation\x20failed\x20with\x20exit\x20code\x20'+_0x2cb176));}),_0x5a2759['on'](_0x7378d9['FZXex'],_0x5739ed=>{const _0x5d44ce=_0xaf1d66;_0x7378d9[_0x5d44ce(0x1cd)](_0x1d1b80,_0x5739ed);});});}export async function authenticate(_0xf57481){const _0x3dd560=_0x12da14,_0x29fe31={'TdUPQ':function(_0x43b67d){return _0x43b67d();},'UefMW':function(_0x4cd1ba,_0x3c5cd7){return _0x4cd1ba(_0x3c5cd7);},'eAssv':_0x3dd560(0x1bb),'ruMyX':function(_0x384daf,_0x2bd3d1){return _0x384daf(_0x2bd3d1);}};if(!_0xf57481){const _0x44a34b=await _0x29fe31['TdUPQ'](getToken);if(_0x44a34b){const _0x37727c=await _0x29fe31[_0x3dd560(0x1d4)](getCurrentUser,_0x44a34b);if(_0x37727c[_0x3dd560(0x1b9)])return console[_0x3dd560(0x1a2)](_0x3dd560(0x18f)+_0x37727c[_0x3dd560(0x1bf)]['organizationName']),{'token':_0x44a34b,'method':'existing_token'};}try{_0xf57481=await _0x29fe31[_0x3dd560(0x19a)](runDeviceAuthFlow);}catch(_0x4c45d2){throw new Error('Authentication\x20failed:\x20'+(_0x4c45d2 instanceof Error?_0x4c45d2[_0x3dd560(0x188)]:_0x4c45d2));}const _0x2582b6=await getCurrentUser(_0xf57481);if(!_0x2582b6['success'])throw new Error('Failed\x20to\x20validate\x20provisioned\x20API\x20key:\x20'+_0x2582b6[_0x3dd560(0x1d7)]);return console['log'](_0x3dd560(0x1c5)+_0x2582b6['user'][_0x3dd560(0x17b)]),{'token':_0xf57481,'method':_0x3dd560(0x19e)};}console['log'](_0x29fe31['eAssv']);const _0xdb1952=await _0x29fe31[_0x3dd560(0x198)](getCurrentUser,_0xf57481);if(!_0xdb1952['success']){if(_0xdb1952[_0x3dd560(0x1a0)])throw new Error(_0x3dd560(0x1c3)+_0xdb1952['error']+'.\x20Please\x20check\x20your\x20API\x20token\x20and\x20try\x20again.');else throw new Error(_0x3dd560(0x171)+_0xdb1952[_0x3dd560(0x1d7)]+_0x3dd560(0x17d));}return console['log']('✓\x20Authenticated\x20to\x20'+_0xdb1952[_0x3dd560(0x1bf)][_0x3dd560(0x17b)]),await _0x29fe31[_0x3dd560(0x198)](storeToken,_0xf57481),console['log'](process['env']['GITHUB_ENV']?'✓\x20Exported\x20credentials\x20for\x20CI':_0x3dd560(0x1b4)),{'token':_0xf57481,'method':'provided_token'};}export async function ensureRangerDir(_0x361d26){const _0xed6ef=_0x12da14,_0x33a9d2={'MCTji':function(_0x240e33,_0x32b92d){return _0x240e33(_0x32b92d);},'TklmY':_0xed6ef(0x194)};void _0x361d26;const _0x4b1cf1=getRangerHomeDir();return!_0x33a9d2[_0xed6ef(0x1c9)](existsSync,_0x4b1cf1)?(await mkdir(_0x4b1cf1,{'recursive':!![]}),console[_0xed6ef(0x1a2)](_0x33a9d2[_0xed6ef(0x1a5)]),{'path':_0x4b1cf1,'installed':!![]}):(console['log']('✓\x20~/.ranger/\x20directory\x20already\x20exists'),{'path':_0x4b1cf1,'installed':![]});}export async function ensureChromium(_0x5b37ea=![]){const _0x2d565f=_0x12da14,_0x43a53a={'nOyLv':function(_0x1fbc18,_0x132d25){return _0x1fbc18(_0x132d25);},'YIFJM':function(_0x13f6bd,_0x471fd8){return _0x13f6bd??_0x471fd8;},'OfSbb':'confirm','lCwoP':'\x0aInstalling\x20Chromium\x20browser...\x0a','WsLhk':'\x0a❌\x20Failed\x20to\x20install\x20Chromium:','duLng':function(_0x916e1,_0x2d9cfa){return _0x916e1 instanceof _0x2d9cfa;}};let _0x40951e=![];try{const _0x4490a9=chromium[_0x2d565f(0x1e2)]();_0x40951e=_0x43a53a['nOyLv'](existsSync,_0x4490a9);}catch{_0x40951e=![];}if(_0x40951e)return console['log'](_0x2d565f(0x1b1)),![];const _0x33e6a7=getPlaywrightVersion(),_0xa5cf24=_0x43a53a['YIFJM'](_0x33e6a7,PLAYWRIGHT_CHROMIUM_INSTALL_FALLBACK_VERSION),_0x5fa35b=!_0x33e6a7,_0x173020=process[_0x2d565f(0x1a8)]['isTTY']&&process[_0x2d565f(0x1ba)]['isTTY'];let _0x4485ea=!![];if(_0x173020){const {install:_0x3aae04}=await _0x1287d4['prompt']([{'type':_0x43a53a[_0x2d565f(0x187)],'name':_0x2d565f(0x1b2),'message':_0x5fa35b?_0x2d565f(0x17e)+_0xa5cf24+_0x2d565f(0x190):_0x2d565f(0x192)+_0xa5cf24+')\x20of\x20the\x20Playwright\x20Chromium\x20browser\x20is\x20not\x20installed.\x20Install\x20it\x20now?','default':!![]}]);_0x4485ea=_0x3aae04;}else console['log']('\x0aNon-interactive\x20mode:\x20Auto-installing\x20Playwright\x20Chromium\x20'+_0xa5cf24+(_0x5fa35b?'\x20(fallback\x20version)':'')+'...');if(_0x4485ea){console['log'](_0x43a53a['lCwoP']);try{await installChromiumBinary(_0xa5cf24,_0x5b37ea),console['log'](_0x2d565f(0x1d2));}catch(_0x7dcbd){console[_0x2d565f(0x1d7)](_0x43a53a['WsLhk'],_0x43a53a['duLng'](_0x7dcbd,Error)?_0x7dcbd[_0x2d565f(0x188)]:_0x7dcbd),console[_0x2d565f(0x1a2)](_0x2d565f(0x18b)),console['log'](_0x2d565f(0x1e5)+_0xa5cf24+_0x2d565f(0x185));}}else console['log']('\x0a⚠\x20Skipping\x20Chromium\x20installation.'),console[_0x2d565f(0x1a2)]('You\x20will\x20need\x20to\x20install\x20it\x20before\x20using\x20Ranger:'),console['log'](_0x2d565f(0x1e5)+_0xa5cf24+'\x20install\x20chromium');return!![];}export async function writeRangerGitignore(_0x535c8b){const _0x2a2a7c=_0x12da14,_0x195a27={'OnLOa':function(_0x4ec462,_0x314e23,_0x41c648){return _0x4ec462(_0x314e23,_0x41c648);},'ahlVK':'✓\x20Created\x20.ranger/.gitignore'},_0x56832b=_0x195a27[_0x2a2a7c(0x1c2)](join,_0x535c8b,_0x2a2a7c(0x18d)),_0xb9a37a=_0x2a2a7c(0x1e0);await _0x195a27[_0x2a2a7c(0x1c2)](writeFile,_0x56832b,_0xb9a37a),console[_0x2a2a7c(0x1a2)](_0x195a27[_0x2a2a7c(0x1cf)]);}function _0x5a86(_0x579157,_0x4ce8fb){_0x579157=_0x579157-0x16f;const _0x95d48e=_0x95d4();let _0x5a8655=_0x95d48e[_0x579157];return _0x5a8655;}function _0x95d4(){const _0x4fa806=['You\x20can\x20install\x20it\x20manually\x20by\x20running:','\x0aIn\x20Claude\x20Code,\x20run\x20','.gitignore','/ranger:enable','✓\x20Already\x20authenticated\x20to\x20','\x20now?','\x0aTo\x20verify\x20with\x20a\x20browser,\x20set\x20','The\x20required\x20version\x20(','1.58.2','✓\x20Created\x20~/.ranger/\x20directory','ranger\x20profile\x20add','\x20and\x20prompt\x20the\x20coding','\x0a\x20\x20config\x20uses\x20username+password).\x20Orgs\x20on\x20SSO/SAML/OAuth','ruMyX','qBaHQ','TdUPQ','auth','HsMQk','✓\x20Local\x20profile\x20already\x20exists','device_auth','✓\x20Skipping\x20Chromium\x20check\x20(--skip-chromium)','status','XPIHA','log','Setup\x20always\x20installs\x20at\x20user\x20scope\x20now\x20(cloud\x20profiles\x20make\x20','scope','TklmY','platform','allowInsecureLocalhost','stdin','OlNGN','with\x20scenarios\x20describing\x20what\x20to\x20verify\x20and\x20then\x20run\x20browser','UgiBN','5452vggeCw','✓\x20Skipping\x20authentication\x20(--skip-auth)','trackPhaseEnd','\x0aagent\x20like\x20usual.\x20Claude\x20will\x20create\x20a\x20feature\x20review\x20with','9AGZGuk','✓\x20Playwright\x20Chromium\x20browser\x20found','install','10wwomXy','✓\x20Stored\x20credentials\x20locally','inherit','\x20\x20Failed\x20to\x20install\x20OpenCode\x20skill:','\x0aSkipping\x20profile\x20setup\x20(--skip-auth).\x20Run\x20`ranger\x20setup`\x20with\x20auth\x20to\x20add\x20a\x20profile\x20later.\x0a','\x0a\x20\x20your\x20org\x27s\x20auth\x20config\x20drives\x20which\x20flow\x20runs.','success','stdout','Validating\x20API\x20token...','gDXYr','cZKDq','⚠\x20No\x20git\x20repository\x20found.\x20Re-run\x20with\x20`--scope\x20user`\x20to\x20store\x20the\x20profile\x20at\x20~/.ranger/.','user','opencode','profile','OnLOa','Authentication\x20failed:\x20','\x20may\x20need\x20a\x20one-time\x20headed\x20login\x20instead\x20—','✓\x20Authenticated\x20to\x20','ready','BoULs','\x0ascenarios\x20describing\x20what\x20to\x20verify\x20and\x20then\x20run\x20browser','MCTji','\x20is\x20no\x20longer\x20supported.\x20','1610hnoqsH','LrBmS','bGoYy','trackPhaseStart','ahlVK','chromium','skills','\x0a✓\x20Playwright\x20Chromium\x20installed\x20successfully','skipAuth','UefMW','IVbkg','plugin','error','skipped','HYqPw','22zpakuw','\x1b[1m','\x20\x20(or\x20use\x20','2216316fYgzgz','jPNAQ','vhNJS','\x0a\x0a#\x20Ignore\x20local-only\x20directories\x0alocal/\x0asessions/\x0abug-bashes/\x0areports/\x0afeedback-images/\x0a\x0aactive-profile.txt\x0aactive-feature.txt\x0a.gitignore\x0a\x0a#\x20Ignore\x20plaintext\x20auth\x20files\x20(encrypted\x20.enc\x20files\x20are\x20safe\x20to\x20commit)\x0a**/auth.json\x0a','437280vvfgdP','executablePath','CsGDX','48TwogbS','\x20\x20npx\x20playwright@','ThgfW','RANGER_TEST_USERNAME','OGXek','win32','Failed\x20to\x20connect\x20to\x20MCP\x20server:\x20','fXcaX','VKxjs','npx','\x0a❌\x20Profile\x20setup\x20failed:','cSpaC','5152392VGPUnv','close','265264zlSLcI','dECrW','organizationName','ranger\x20setup\x20--scope=','.\x20Please\x20check\x20your\x20network\x20connection\x20and\x20server\x20URL.','Could\x20not\x20determine\x20local\x20Playwright\x20version.\x20Install\x20Playwright\x20Chromium\x20using\x20fallback\x20version\x20','TjvQx','buNdk','ZyPZT','force','url','561358OmxKFk','\x20install\x20chromium','ahdGQ','OfSbb','message','local','165218aWZvVO'];_0x95d4=function(){return _0x4fa806;};return _0x95d4();}export async function ensureLocalEnv(_0xdabcfb,_0x956764){const _0x5130e5=_0x12da14,_0x82245c={'cSpaC':function(_0x2c6163){return _0x2c6163();},'vhNJS':function(_0x35cf1a,_0x185ba7){return _0x35cf1a!==_0x185ba7;},'IVbkg':_0x5130e5(0x1bf),'ufDQD':_0x5130e5(0x1be),'dECrW':function(_0x12a893){return _0x12a893();},'zEYrf':function(_0x367ff0,_0x1dbdff,_0x544011){return _0x367ff0(_0x1dbdff,_0x544011);},'XPIHA':_0x5130e5(0x189),'qBaHQ':_0x5130e5(0x19d),'tJTUX':function(_0x348c0f,_0x404e8f,_0x3a9972,_0x536e81){return _0x348c0f(_0x404e8f,_0x3a9972,_0x536e81);},'nntpm':_0x5130e5(0x175),'LsJWE':function(_0x3c306c,_0x3b5062){return _0x3c306c instanceof _0x3b5062;}};if(!_0x82245c[_0x5130e5(0x176)](findGitRoot)&&_0x82245c[_0x5130e5(0x1df)](_0xdabcfb?.['scope'],_0x82245c[_0x5130e5(0x1d5)]))return console[_0x5130e5(0x1a2)](_0x82245c['ufDQD']),{'ready':![],'skipped':!![]};const _0x233202=_0xdabcfb?.['scope']===_0x82245c['IVbkg']?_0x82245c[_0x5130e5(0x17a)](getRangerHomeDir):undefined;if(_0x82245c['zEYrf'](findExistingEnv,_0x82245c[_0x5130e5(0x1a1)],{'locations':[_0x82245c[_0x5130e5(0x1a1)]],'rangerDir':_0x233202}))return console['log'](_0x82245c[_0x5130e5(0x199)]),{'ready':!![],'skipped':![]};try{return await _0x82245c['tJTUX'](addEnv,'local',{'url':_0xdabcfb?.['url'],'force':_0xdabcfb?.[_0x5130e5(0x182)],'allowInsecureLocalhost':_0xdabcfb?.['allowInsecureLocalhost'],'scope':_0xdabcfb?.['scope']},_0x956764),{'ready':!![],'skipped':![]};}catch(_0x272339){return console['error'](_0x82245c['nntpm'],_0x82245c['LsJWE'](_0x272339,Error)?_0x272339['message']:_0x272339),{'ready':![],'skipped':![]};}}export async function start(_0x527efe,_0x3aa466,_0x2ff430){const _0x532cc2=_0x12da14,_0x427ea9={'ZyPZT':'\x0a🚀\x20Ranger\x20Setup\x0a','OGXek':function(_0x2446ad,_0x2daaf6){return _0x2446ad!==_0x2daaf6;},'RLAwz':function(_0xe527c1,_0x55e73d){return _0xe527c1+_0x55e73d;},'gDXYr':function(_0x5e409e,_0x2c1ada){return _0x5e409e(_0x2c1ada);},'jPNAQ':function(_0x3e5567,_0x410455){return _0x3e5567(_0x410455);},'LrBmS':_0x532cc2(0x1ad),'tOVVM':_0x532cc2(0x19b),'ynnHg':function(_0x779509,_0x2dd81a){return _0x779509(_0x2dd81a);},'UgiBN':function(_0x276e4d,_0x470946){return _0x276e4d(_0x470946);},'CsGDX':'plugin','xNoSE':function(_0x1db47e,_0x37bb7d){return _0x1db47e(_0x37bb7d);},'Bqdzb':_0x532cc2(0x1d1),'buNdk':function(_0x14889e,_0x29d46d,_0x25b4a0){return _0x14889e(_0x29d46d,_0x25b4a0);},'SHJRR':_0x532cc2(0x1c0),'hpfou':function(_0x5b197c,_0x4a1ed0){return _0x5b197c instanceof _0x4a1ed0;},'BoULs':function(_0x501794,_0x1943ad){return _0x501794(_0x1943ad);},'cZKDq':_0x532cc2(0x1c1),'fXcaX':function(_0x3b4db8,_0x5acaba,_0x3b118d){return _0x3b4db8(_0x5acaba,_0x3b118d);},'fSuHy':function(_0xcab11d,_0x2b29e0){return _0xcab11d(_0x2b29e0);},'VKxjs':'RANGER_TEST_PASSWORD','UFdNF':function(_0x232391,_0x405605){return _0x232391(_0x405605);},'zxPdc':_0x532cc2(0x195),'HsMQk':'\x0aIn\x20OpenCode,\x20enable\x20Ranger\x20hooks\x20(run\x20the\x20`ranger_enable`\x20tool)','HYqPw':'verification\x20to\x20check\x20its\x20work\x20as\x20it\x20builds.','TjFuQ':function(_0x2b5a0d,_0x522561){return _0x2b5a0d+_0x522561;},'IAYKV':function(_0x3c7163,_0x49c841){return _0x3c7163+_0x49c841;}};console['log'](_0x427ea9[_0x532cc2(0x181)]);_0x3aa466?.[_0x532cc2(0x1a4)]!==undefined&&_0x427ea9[_0x532cc2(0x16f)](_0x3aa466['scope'],'user')&&(console[_0x532cc2(0x1d7)](_0x427ea9['RLAwz'](_0x532cc2(0x17c)+_0x427ea9[_0x532cc2(0x1bc)](String,_0x3aa466[_0x532cc2(0x1a4)])+_0x532cc2(0x1ca)+_0x532cc2(0x1a3),'project-scope\x20setup\x20obsolete).\x20Drop\x20the\x20--scope\x20flag\x20or\x20pass\x20--scope=user.')),process['exit'](0x1));_0x3aa466={..._0x3aa466,'scope':_0x532cc2(0x1bf)};const _0x3ebd74=!existsSync(getRangerHomeDir());await _0x427ea9['jPNAQ'](ensureRangerDir,_0x532cc2(0x1bf));if(_0x3aa466?.['skipAuth'])console[_0x532cc2(0x1a2)](_0x427ea9[_0x532cc2(0x1cc)]),_0x2ff430?.[_0x532cc2(0x1ae)]('auth',{'isFirstRun':_0x3ebd74,'method':'skipped'});else{_0x2ff430?.[_0x532cc2(0x1ce)](_0x427ea9['tOVVM']);const _0x3b74c6=await _0x427ea9['ynnHg'](authenticate,_0x527efe);_0x2ff430?.[_0x532cc2(0x1ae)]('auth',{'isFirstRun':_0x3ebd74,'method':_0x3b74c6['method']});}_0x2ff430?.['trackPhaseStart'](_0x532cc2(0x1d0));_0x3aa466?.['skipChromium']?console['log'](_0x532cc2(0x19f)):await _0x427ea9[_0x532cc2(0x1de)](ensureChromium,_0x3aa466?.['withDeps']);_0x2ff430?.['trackPhaseEnd'](_0x532cc2(0x1d0),{'isFirstRun':_0x3ebd74,'skipped':!!_0x3aa466?.['skipChromium']}),console[_0x532cc2(0x1a2)]('\x0a✅\x20Ranger\x20setup\x20complete!\x0a');const _0x41447a=_0x3aa466?.[_0x532cc2(0x1a4)],_0xec96a8=_0x3aa466?.['opencode']??![];let _0x53a665=null;_0xec96a8?(_0x2ff430?.[_0x532cc2(0x1ce)](_0x532cc2(0x1d6)),_0x53a665=await _0x427ea9[_0x532cc2(0x1ab)](ensureOpencodePluginConfig,_0x41447a),_0x2ff430?.['trackPhaseEnd'](_0x427ea9[_0x532cc2(0x1e3)],{'isFirstRun':_0x3ebd74,'opencode':!![]})):(_0x2ff430?.[_0x532cc2(0x1ce)](_0x427ea9[_0x532cc2(0x1e3)]),await _0x427ea9['xNoSE'](ensureClaudePlugin,_0x41447a),_0x2ff430?.['trackPhaseEnd']('plugin',{'isFirstRun':_0x3ebd74}));if(_0xec96a8&&_0x53a665){_0x2ff430?.[_0x532cc2(0x1ce)](_0x427ea9['Bqdzb']);try{await _0x427ea9[_0x532cc2(0x180)](installSkill,'ranger',{'level':_0x53a665[_0x532cc2(0x1a4)],'cliVersion':getCurrentVersion(),'platform':_0x427ea9['SHJRR']}),_0x2ff430?.['trackPhaseEnd'](_0x532cc2(0x1d1),{'isFirstRun':_0x3ebd74,'opencode':!![]});}catch(_0x3a59b4){console['warn'](_0x532cc2(0x1b6),_0x427ea9['hpfou'](_0x3a59b4,Error)?_0x3a59b4['message']:_0x3a59b4),_0x2ff430?.[_0x532cc2(0x1ae)](_0x532cc2(0x1d1),{'isFirstRun':_0x3ebd74,'opencode':!![],'failed':!![]});}}else _0x2ff430?.[_0x532cc2(0x1ce)](_0x532cc2(0x1d1)),await _0x427ea9[_0x532cc2(0x1c7)](ensureClaudeSkills,_0x41447a),_0x2ff430?.[_0x532cc2(0x1ae)](_0x427ea9['Bqdzb'],{'isFirstRun':_0x3ebd74});if(_0x3aa466?.[_0x532cc2(0x1d3)])console[_0x532cc2(0x1a2)](_0x532cc2(0x1b7));else{if(_0x3aa466?.[_0x532cc2(0x183)]){_0x2ff430?.[_0x532cc2(0x1ce)](_0x427ea9[_0x532cc2(0x1bd)]);const _0x1fbf4e=await _0x427ea9[_0x532cc2(0x172)](ensureLocalEnv,{'url':_0x3aa466[_0x532cc2(0x183)],'force':_0x3aa466?.['force'],'allowInsecureLocalhost':_0x3aa466?.[_0x532cc2(0x1a7)],'scope':_0x532cc2(0x1bf)},_0x2ff430);_0x2ff430?.[_0x532cc2(0x1ae)](_0x427ea9['cZKDq'],{'isFirstRun':_0x3ebd74,'profileReady':_0x1fbf4e[_0x532cc2(0x1c6)],'userSkipped':_0x1fbf4e[_0x532cc2(0x1d8)]});}else console['log'](_0x427ea9['RLAwz'](_0x532cc2(0x191)+_0x427ea9['fSuHy'](bold,_0x532cc2(0x1e7))+'\x20','(and\x20'+_0x427ea9['gDXYr'](bold,_0x427ea9[_0x532cc2(0x173)])+'\x20when\x20the\x20org\x27s\x20login')+_0x532cc2(0x197)+_0x532cc2(0x1c4)+_0x532cc2(0x1b8)),console['log'](_0x532cc2(0x1dc)+_0x427ea9['UFdNF'](bold,_0x427ea9['zxPdc'])+'\x20for\x20explicit\x20profile\x20management).');}if(_0xec96a8)console[_0x532cc2(0x1a2)](_0x427ea9[_0x532cc2(0x19c)]),console[_0x532cc2(0x1a2)]('and\x20prompt\x20the\x20agent\x20like\x20usual.\x20Ranger\x20will\x20create\x20a\x20feature\x20review'),console['log'](_0x532cc2(0x1aa)),console['log'](_0x427ea9[_0x532cc2(0x1d9)]);else{const _0x21a93e=bold(_0x532cc2(0x18e));console[_0x532cc2(0x1a2)](_0x427ea9['TjFuQ'](_0x427ea9['IAYKV'](_0x532cc2(0x18c)+_0x21a93e+_0x532cc2(0x196)+_0x532cc2(0x1af),_0x532cc2(0x1c8)),'\x0averification\x20to\x20check\x20its\x20work\x20as\x20it\x20builds.'));}}
1
+ const _0x427b40=_0x573a;(function(_0x53880a,_0x4536c7){const _0x54ca37=_0x573a,_0x2bb5a8=_0x53880a();while(!![]){try{const _0x476309=-parseInt(_0x54ca37(0x13c))/0x1*(parseInt(_0x54ca37(0x14c))/0x2)+-parseInt(_0x54ca37(0x131))/0x3*(parseInt(_0x54ca37(0x149))/0x4)+-parseInt(_0x54ca37(0x100))/0x5+-parseInt(_0x54ca37(0x118))/0x6*(-parseInt(_0x54ca37(0xff))/0x7)+parseInt(_0x54ca37(0x14d))/0x8+-parseInt(_0x54ca37(0x148))/0x9+parseInt(_0x54ca37(0x152))/0xa*(parseInt(_0x54ca37(0x14e))/0xb);if(_0x476309===_0x4536c7)break;else _0x2bb5a8['push'](_0x2bb5a8['shift']());}catch(_0x4c1773){_0x2bb5a8['push'](_0x2bb5a8['shift']());}}}(_0x2286,0xe4cc1));import{mkdir,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{createRequire}from'module';import{spawn}from'child_process';import _0x249681 from'inquirer';import{getToken,storeToken}from'./utils/keychain.js';import{getCurrentUser}from'./utils/userApi.js';import{chromium}from'playwright';import{addEnv}from'./addEnv.js';import{getRangerHomeDir,findGitRoot}from'./utils/rangerRoot.js';import{runDeviceAuthFlow}from'./utils/deviceAuth.js';import{findExistingEnv}from'./utils/settings.js';import{getCurrentVersion}from'./utils/version.js';import{ensureClaudePlugin,ensureClaudeSkills}from'./setup/claude.js';function _0x2286(){const _0x222506=['✓\x20Already\x20authenticated\x20to\x20','QDvCs','chromium','BwMcG','method','\x0ascenarios\x20describing\x20what\x20to\x20verify\x20and\x20then\x20run\x20browser','qiRmy','prompt','\x0averification\x20to\x20check\x20its\x20work\x20as\x20it\x20builds.','szGBM','RYxoG','194243MaDyon','8643845iyshjP','organizationName','FoEoi','version','Failed\x20to\x20validate\x20provisioned\x20API\x20key:\x20','skipChromium','profile','The\x20required\x20version\x20(','\x0aagent\x20like\x20usual.\x20Claude\x20will\x20create\x20a\x20feature\x20review\x20with','yZQnj','YeJcd','sQMoc','exit','warn','status','✓\x20Skipping\x20Chromium\x20check\x20(--skip-chromium)','fGZEE','/ranger:enable','yIYnu','xWwpe','opencode','UhlzM','Cphna','user','354BLkjVa','force','\x0aIn\x20Claude\x20Code,\x20run\x20','\x0aSkipping\x20profile\x20setup\x20(--skip-auth).\x20Run\x20`ranger\x20setup`\x20with\x20auth\x20to\x20add\x20a\x20profile\x20later.\x0a','stdout','✓\x20Created\x20~/.ranger/\x20directory','QxaoW','playwright@','and\x20prompt\x20the\x20agent\x20like\x20usual.\x20Ranger\x20will\x20create\x20a\x20feature\x20review','\x0a\x0aFor\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','Setup\x20always\x20installs\x20at\x20user\x20scope\x20now\x20(cloud\x20profiles\x20make\x20','\x0a\x20\x20https://docs.ranger.net/main/concepts/profiles','executablePath','\x0a\x20\x20(opens\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20once)','project-scope\x20setup\x20obsolete).\x20Drop\x20the\x20--scope\x20flag\x20or\x20pass\x20--scope=user.','UGiCL','scope','\x0a✅\x20Ranger\x20setup\x20complete!\x0a','allowInsecureLocalhost','Validating\x20API\x20token...','GyNcO','XCiQC','env','stdin','\x0a❌\x20Failed\x20to\x20install\x20Chromium:','87rOBKNv','NGlVY','Authentication\x20failed:\x20','iNoOq','\x20is\x20no\x20longer\x20supported.\x20','pnJHm','\x1b[1m','\x0aInstalling\x20Chromium\x20browser...\x0a',')\x20of\x20the\x20Playwright\x20Chromium\x20browser\x20is\x20not\x20installed.\x20Install\x20it\x20now?','log','XLNVA','116913ahlbBT','YYoFH','skipAuth','TuHKx','aYwUy','✓\x20Stored\x20credentials\x20locally','lyARE','isTTY','⚠\x20No\x20git\x20repository\x20found.\x20Re-run\x20with\x20`--scope\x20user`\x20to\x20store\x20the\x20profile\x20at\x20~/.ranger/.','BnlSO','NrjYm','\x20install\x20chromium','7522425OEqOQO','103516TMXzou','success','trackPhaseEnd','18gkimGQ','2044712OFanUC','500379PtMbCw','with\x20scenarios\x20describing\x20what\x20to\x20verify\x20and\x20then\x20run\x20browser','GITHUB_ENV','zEHsW','750YVBerN','vGVRj','ready','Could\x20not\x20determine\x20local\x20Playwright\x20version.\x20Install\x20Playwright\x20Chromium\x20using\x20fallback\x20version\x20','.gitignore','...','message','error','trackPhaseStart','close','\x1b[0m'];_0x2286=function(){return _0x222506;};return _0x2286();}import{ensureOpencodePluginConfig}from'./setup/opencode.js';import{installSkill}from'./utils/skills.js';const require=createRequire(import.meta.url);export const PLAYWRIGHT_CHROMIUM_INSTALL_FALLBACK_VERSION='1.58.2';function _0x573a(_0x23a8f2,_0x482399){_0x23a8f2=_0x23a8f2-0xf0;const _0x228630=_0x2286();let _0x573a7a=_0x228630[_0x23a8f2];return _0x573a7a;}const bold=_0x5595e2=>_0x427b40(0x137)+_0x5595e2+_0x427b40(0xf3);export function getPlaywrightVersion(){const _0x16c108=_0x427b40,_0x1afd5e={'HiNYq':'playwright/package.json'};try{const _0x752ad6=require['resolve'](_0x1afd5e['HiNYq']),_0x29adfe=require(_0x752ad6);return _0x29adfe[_0x16c108(0x103)];}catch{return null;}}export function installChromiumBinary(_0x4946d9,_0x2a562b=![]){const _0x42d163=_0x427b40,_0x172892={'YYoFH':function(_0x5d4162,_0x63e94c){return _0x5d4162===_0x63e94c;},'LTujd':'install','xoDfR':'--with-deps','YCyXC':function(_0x427ba6,_0x3edffa,_0x172be9,_0x29de21){return _0x427ba6(_0x3edffa,_0x172be9,_0x29de21);},'NGlVY':'ignore','UhlzM':'inherit','qiRmy':'win32','mUkzJ':_0x42d163(0xf2),'TuHKx':_0x42d163(0xf0)};return new Promise((_0x53ec24,_0xe03806)=>{const _0x4994be=_0x42d163,_0xfd872e={'tUXal':function(_0x3d6261,_0x2aa660){const _0xd1277f=_0x573a;return _0x172892[_0xd1277f(0x13d)](_0x3d6261,_0x2aa660);},'NrjYm':function(_0x43a39a,_0x378a4b){return _0x43a39a(_0x378a4b);}},_0x5d1fd7=[_0x4994be(0x11f)+_0x4946d9,_0x172892['LTujd'],..._0x2a562b?[_0x172892['xoDfR']]:[],'chromium'],_0x5d177d=_0x172892['YCyXC'](spawn,'npx',_0x5d1fd7,{'stdio':[_0x172892[_0x4994be(0x132)],_0x172892['UhlzM'],_0x172892[_0x4994be(0x115)]],'shell':_0x172892['YYoFH'](process['platform'],_0x172892[_0x4994be(0xfa)])});_0x5d177d['on'](_0x172892['mUkzJ'],_0x9c6e47=>{_0xfd872e['tUXal'](_0x9c6e47,0x0)?_0x53ec24():_0xe03806(new Error('Installation\x20failed\x20with\x20exit\x20code\x20'+_0x9c6e47));}),_0x5d177d['on'](_0x172892[_0x4994be(0x13f)],_0x12ddd4=>{const _0x18c998=_0x4994be;_0xfd872e[_0x18c998(0x146)](_0xe03806,_0x12ddd4);});});}export async function authenticate(_0x30f693){const _0x3f095b=_0x427b40,_0x354453={'yZQnj':function(_0x2cb7a5){return _0x2cb7a5();},'DToGE':function(_0x38afd1,_0x29b22b){return _0x38afd1(_0x29b22b);},'nzJHA':_0x3f095b(0x12b),'QDvCs':_0x3f095b(0x141),'nQttm':'provided_token'};if(!_0x30f693){const _0x31551a=await _0x354453[_0x3f095b(0x109)](getToken);if(_0x31551a){const _0x3beec5=await getCurrentUser(_0x31551a);if(_0x3beec5[_0x3f095b(0x14a)])return console[_0x3f095b(0x13a)](_0x3f095b(0xf4)+_0x3beec5[_0x3f095b(0x117)][_0x3f095b(0x101)]),{'token':_0x31551a,'method':'existing_token'};}try{_0x30f693=await runDeviceAuthFlow();}catch(_0x19d51a){throw new Error('Authentication\x20failed:\x20'+(_0x19d51a instanceof Error?_0x19d51a[_0x3f095b(0x158)]:_0x19d51a));}const _0x2dafcd=await _0x354453['DToGE'](getCurrentUser,_0x30f693);if(!_0x2dafcd[_0x3f095b(0x14a)])throw new Error(_0x3f095b(0x104)+_0x2dafcd['error']);return console['log']('✓\x20Authenticated\x20to\x20'+_0x2dafcd['user']['organizationName']),{'token':_0x30f693,'method':'device_auth'};}console['log'](_0x354453['nzJHA']);const _0x4127a0=await getCurrentUser(_0x30f693);if(!_0x4127a0['success']){if(_0x4127a0[_0x3f095b(0x10e)])throw new Error(_0x3f095b(0x133)+_0x4127a0[_0x3f095b(0xf0)]+'.\x20Please\x20check\x20your\x20API\x20token\x20and\x20try\x20again.');else throw new Error('Failed\x20to\x20connect\x20to\x20MCP\x20server:\x20'+_0x4127a0[_0x3f095b(0xf0)]+'.\x20Please\x20check\x20your\x20network\x20connection\x20and\x20server\x20URL.');}return console[_0x3f095b(0x13a)]('✓\x20Authenticated\x20to\x20'+_0x4127a0[_0x3f095b(0x117)][_0x3f095b(0x101)]),await _0x354453['DToGE'](storeToken,_0x30f693),console['log'](process[_0x3f095b(0x12e)][_0x3f095b(0x150)]?'✓\x20Exported\x20credentials\x20for\x20CI':_0x354453[_0x3f095b(0xf5)]),{'token':_0x30f693,'method':_0x354453['nQttm']};}export async function ensureRangerDir(_0x531ec3){const _0x5ef62c=_0x427b40,_0x4bf41f={'BLdwm':function(_0x1c0608,_0xcb52f8,_0xff1848){return _0x1c0608(_0xcb52f8,_0xff1848);},'WQcDG':_0x5ef62c(0x11d)};void _0x531ec3;const _0x326b67=getRangerHomeDir();return!existsSync(_0x326b67)?(await _0x4bf41f['BLdwm'](mkdir,_0x326b67,{'recursive':!![]}),console['log'](_0x4bf41f['WQcDG']),{'path':_0x326b67,'installed':!![]}):(console['log']('✓\x20~/.ranger/\x20directory\x20already\x20exists'),{'path':_0x326b67,'installed':![]});}export async function ensureChromium(_0x4a869e=![]){const _0x42cfd3=_0x427b40,_0x392419={'ZfvXx':function(_0x5f40d5){return _0x5f40d5();},'fGZEE':function(_0x1362d0,_0x563e30){return _0x1362d0??_0x563e30;},'mFPyB':'install','aYwUy':'\x20(fallback\x20version)','YeJcd':_0x42cfd3(0x138),'xWwpe':function(_0x5c10e7,_0x11e635,_0x5208f2){return _0x5c10e7(_0x11e635,_0x5208f2);},'QxaoW':'\x0a✓\x20Playwright\x20Chromium\x20installed\x20successfully','VRPRF':function(_0x2bd2c6,_0x464620){return _0x2bd2c6 instanceof _0x464620;},'ohVoN':'You\x20can\x20install\x20it\x20manually\x20by\x20running:','eVVxw':'\x0a⚠\x20Skipping\x20Chromium\x20installation.'};let _0x329da1=![];try{const _0x3d35d5=chromium[_0x42cfd3(0x124)]();_0x329da1=existsSync(_0x3d35d5);}catch{_0x329da1=![];}if(_0x329da1)return console[_0x42cfd3(0x13a)]('✓\x20Playwright\x20Chromium\x20browser\x20found'),![];const _0x1eeeb1=_0x392419['ZfvXx'](getPlaywrightVersion),_0xb012c4=_0x392419[_0x42cfd3(0x110)](_0x1eeeb1,PLAYWRIGHT_CHROMIUM_INSTALL_FALLBACK_VERSION),_0x4e2bb7=!_0x1eeeb1,_0x3e5d96=process[_0x42cfd3(0x12f)][_0x42cfd3(0x143)]&&process[_0x42cfd3(0x11c)][_0x42cfd3(0x143)];let _0x4c820c=!![];if(_0x3e5d96){const {install:_0x8d7d65}=await _0x249681[_0x42cfd3(0xfb)]([{'type':'confirm','name':_0x392419['mFPyB'],'message':_0x4e2bb7?_0x42cfd3(0x155)+_0xb012c4+'\x20now?':_0x42cfd3(0x107)+_0xb012c4+_0x42cfd3(0x139),'default':!![]}]);_0x4c820c=_0x8d7d65;}else console[_0x42cfd3(0x13a)]('\x0aNon-interactive\x20mode:\x20Auto-installing\x20Playwright\x20Chromium\x20'+_0xb012c4+(_0x4e2bb7?_0x392419[_0x42cfd3(0x140)]:'')+_0x42cfd3(0x157));if(_0x4c820c){console['log'](_0x392419[_0x42cfd3(0x10a)]);try{await _0x392419[_0x42cfd3(0x113)](installChromiumBinary,_0xb012c4,_0x4a869e),console['log'](_0x392419[_0x42cfd3(0x11e)]);}catch(_0x288a05){console['error'](_0x42cfd3(0x130),_0x392419['VRPRF'](_0x288a05,Error)?_0x288a05[_0x42cfd3(0x158)]:_0x288a05),console[_0x42cfd3(0x13a)](_0x392419['ohVoN']),console['log']('\x20\x20npx\x20playwright@'+_0xb012c4+'\x20install\x20chromium');}}else console[_0x42cfd3(0x13a)](_0x392419['eVVxw']),console[_0x42cfd3(0x13a)]('You\x20will\x20need\x20to\x20install\x20it\x20before\x20using\x20Ranger:'),console['log']('\x20\x20npx\x20playwright@'+_0xb012c4+_0x42cfd3(0x147));return!![];}export async function writeRangerGitignore(_0xd96bfc){const _0x1ea663=_0x427b40,_0x527358={'RYxoG':function(_0x125bcf,_0x19e65d,_0x904d90){return _0x125bcf(_0x19e65d,_0x904d90);},'UGiCL':_0x1ea663(0x156),'vGVRj':function(_0x45e2e0,_0x5ae320,_0x5aba27){return _0x45e2e0(_0x5ae320,_0x5aba27);},'rxdxb':'✓\x20Created\x20.ranger/.gitignore'},_0x4bd058=_0x527358[_0x1ea663(0xfe)](join,_0xd96bfc,_0x527358[_0x1ea663(0x127)]),_0x306137='\x0a\x0a#\x20Ignore\x20local-only\x20directories\x0alocal/\x0asessions/\x0abug-bashes/\x0areports/\x0afeedback-images/\x0a\x0aactive-profile.txt\x0aactive-feature.txt\x0a.gitignore\x0a\x0a#\x20Ignore\x20plaintext\x20auth\x20files\x20(encrypted\x20.enc\x20files\x20are\x20safe\x20to\x20commit)\x0a**/auth.json\x0a';await _0x527358[_0x1ea663(0x153)](writeFile,_0x4bd058,_0x306137),console['log'](_0x527358['rxdxb']);}export async function ensureLocalEnv(_0x51901d,_0x2b0500){const _0x43b5a0=_0x427b40,_0x5f22a8={'FoEoi':function(_0x5c8fe5,_0xfda466){return _0x5c8fe5!==_0xfda466;},'GyNcO':function(_0x32e696,_0x4a6fc0){return _0x32e696===_0x4a6fc0;},'zEHsW':'✓\x20Local\x20profile\x20already\x20exists','ugyRW':function(_0x4052b4,_0x3700db,_0x2ece34,_0x5e42ac){return _0x4052b4(_0x3700db,_0x2ece34,_0x5e42ac);}};if(!findGitRoot()&&_0x5f22a8[_0x43b5a0(0x102)](_0x51901d?.['scope'],'user'))return console['log'](_0x43b5a0(0x144)),{'ready':![],'skipped':!![]};const _0x5afa40=_0x5f22a8[_0x43b5a0(0x12c)](_0x51901d?.['scope'],_0x43b5a0(0x117))?getRangerHomeDir():undefined;if(findExistingEnv('local',{'locations':['local'],'rangerDir':_0x5afa40}))return console['log'](_0x5f22a8[_0x43b5a0(0x151)]),{'ready':!![],'skipped':![]};try{return await _0x5f22a8['ugyRW'](addEnv,'local',{'url':_0x51901d?.['url'],'force':_0x51901d?.[_0x43b5a0(0x119)],'allowInsecureLocalhost':_0x51901d?.[_0x43b5a0(0x12a)],'scope':_0x51901d?.['scope']},_0x2b0500),{'ready':!![],'skipped':![]};}catch(_0x249f46){return console['error']('\x0a❌\x20Profile\x20setup\x20failed:',_0x249f46 instanceof Error?_0x249f46['message']:_0x249f46),{'ready':![],'skipped':![]};}}export async function start(_0x1d94d1,_0xa190c0,_0x5c9a4c){const _0x20e082=_0x427b40,_0x342457={'SQjfL':'\x0a🚀\x20Ranger\x20Setup\x0a','lFeHy':function(_0x5ca8f1,_0x19f941){return _0x5ca8f1!==_0x19f941;},'XLNVA':function(_0x1fe17b,_0x581eae){return _0x1fe17b+_0x581eae;},'yIYnu':function(_0xfe628d,_0x116b9b){return _0xfe628d(_0x116b9b);},'BwMcG':_0x20e082(0x117),'Cphna':function(_0x265f92,_0x41c228){return _0x265f92(_0x41c228);},'iNoOq':'✓\x20Skipping\x20authentication\x20(--skip-auth)','POkpF':'auth','szGBM':_0x20e082(0xf6),'XCiQC':'plugin','pnJHm':function(_0x46eae0,_0x56cc99){return _0x46eae0(_0x56cc99);},'TXHEo':function(_0x3863db,_0x3bc10b){return _0x3863db&&_0x3bc10b;},'BnlSO':'skills','sQMoc':function(_0x2fcef,_0x2f852e,_0xda5b3f){return _0x2fcef(_0x2f852e,_0xda5b3f);},'wcNVl':'ranger','lyARE':_0x20e082(0x106),'sklCs':'ranger\x20profile\x20add\x20<name>','vgrEK':'verification\x20to\x20check\x20its\x20work\x20as\x20it\x20builds.'};console[_0x20e082(0x13a)](_0x342457['SQjfL']);_0x342457['lFeHy'](_0xa190c0?.[_0x20e082(0x128)],undefined)&&_0x342457['lFeHy'](_0xa190c0[_0x20e082(0x128)],'user')&&(console['error'](_0x342457[_0x20e082(0x13b)]('ranger\x20setup\x20--scope='+_0x342457[_0x20e082(0x112)](String,_0xa190c0[_0x20e082(0x128)])+_0x20e082(0x135)+_0x20e082(0x122),_0x20e082(0x126))),process[_0x20e082(0x10c)](0x1));_0xa190c0={..._0xa190c0,'scope':_0x342457[_0x20e082(0xf7)]};const _0x48ab14=!_0x342457['Cphna'](existsSync,getRangerHomeDir());await ensureRangerDir(_0x20e082(0x117));if(_0xa190c0?.[_0x20e082(0x13e)])console[_0x20e082(0x13a)](_0x342457[_0x20e082(0x134)]),_0x5c9a4c?.['trackPhaseEnd'](_0x342457['POkpF'],{'isFirstRun':_0x48ab14,'method':'skipped'});else{_0x5c9a4c?.[_0x20e082(0xf1)](_0x342457['POkpF']);const _0x19c14e=await _0x342457[_0x20e082(0x116)](authenticate,_0x1d94d1);_0x5c9a4c?.['trackPhaseEnd'](_0x342457['POkpF'],{'isFirstRun':_0x48ab14,'method':_0x19c14e[_0x20e082(0xf8)]});}_0x5c9a4c?.[_0x20e082(0xf1)](_0x342457['szGBM']);_0xa190c0?.[_0x20e082(0x105)]?console[_0x20e082(0x13a)](_0x20e082(0x10f)):await ensureChromium(_0xa190c0?.['withDeps']);_0x5c9a4c?.[_0x20e082(0x14b)](_0x342457[_0x20e082(0xfd)],{'isFirstRun':_0x48ab14,'skipped':!!_0xa190c0?.['skipChromium']}),console[_0x20e082(0x13a)](_0x20e082(0x129));const _0x5f040f=_0xa190c0?.['scope'],_0x27c7f1=_0xa190c0?.[_0x20e082(0x114)]??![];let _0x525d0b=null;_0x27c7f1?(_0x5c9a4c?.['trackPhaseStart'](_0x342457[_0x20e082(0x12d)]),_0x525d0b=await _0x342457[_0x20e082(0x136)](ensureOpencodePluginConfig,_0x5f040f),_0x5c9a4c?.[_0x20e082(0x14b)]('plugin',{'isFirstRun':_0x48ab14,'opencode':!![]})):(_0x5c9a4c?.['trackPhaseStart'](_0x342457['XCiQC']),await ensureClaudePlugin(_0x5f040f),_0x5c9a4c?.[_0x20e082(0x14b)](_0x342457[_0x20e082(0x12d)],{'isFirstRun':_0x48ab14}));if(_0x342457['TXHEo'](_0x27c7f1,_0x525d0b)){_0x5c9a4c?.[_0x20e082(0xf1)](_0x342457[_0x20e082(0x145)]);try{await _0x342457[_0x20e082(0x10b)](installSkill,_0x342457['wcNVl'],{'level':_0x525d0b['scope'],'cliVersion':getCurrentVersion(),'platform':_0x20e082(0x114)}),_0x5c9a4c?.[_0x20e082(0x14b)]('skills',{'isFirstRun':_0x48ab14,'opencode':!![]});}catch(_0x41ce90){console[_0x20e082(0x10d)]('\x20\x20Failed\x20to\x20install\x20OpenCode\x20skill:',_0x41ce90 instanceof Error?_0x41ce90[_0x20e082(0x158)]:_0x41ce90),_0x5c9a4c?.['trackPhaseEnd'](_0x342457[_0x20e082(0x145)],{'isFirstRun':_0x48ab14,'opencode':!![],'failed':!![]});}}else _0x5c9a4c?.['trackPhaseStart'](_0x342457['BnlSO']),await ensureClaudeSkills(_0x5f040f),_0x5c9a4c?.[_0x20e082(0x14b)](_0x342457['BnlSO'],{'isFirstRun':_0x48ab14});if(_0xa190c0?.['skipAuth'])console['log'](_0x20e082(0x11b));else{if(_0xa190c0?.['url']){_0x5c9a4c?.['trackPhaseStart'](_0x342457[_0x20e082(0x142)]);const _0x4883d0=await ensureLocalEnv({'url':_0xa190c0['url'],'force':_0xa190c0?.['force'],'allowInsecureLocalhost':_0xa190c0?.[_0x20e082(0x12a)],'scope':_0x342457[_0x20e082(0xf7)]},_0x5c9a4c);_0x5c9a4c?.['trackPhaseEnd'](_0x20e082(0x106),{'isFirstRun':_0x48ab14,'profileReady':_0x4883d0[_0x20e082(0x154)],'userSkipped':_0x4883d0['skipped']});}else console['log'](_0x342457['XLNVA']('\x0aTo\x20set\x20up\x20a\x20profile\x20for\x20your\x20app,\x20run:'+('\x0a\x20\x20'+bold(_0x342457['sklCs']))+_0x20e082(0x125),_0x20e082(0x121))+_0x20e082(0x123));}if(_0x27c7f1)console[_0x20e082(0x13a)]('\x0aIn\x20OpenCode,\x20enable\x20Ranger\x20hooks\x20(run\x20the\x20`ranger_enable`\x20tool)'),console[_0x20e082(0x13a)](_0x20e082(0x120)),console['log'](_0x20e082(0x14f)),console['log'](_0x342457['vgrEK']);else{const _0x43dede=_0x342457['yIYnu'](bold,_0x20e082(0x111));console[_0x20e082(0x13a)](_0x342457[_0x20e082(0x13b)](_0x342457[_0x20e082(0x13b)](_0x20e082(0x11a)+_0x43dede+'\x20and\x20prompt\x20the\x20coding',_0x20e082(0x108))+_0x20e082(0xf9),_0x20e082(0xfc)));}}
@@ -1 +1 @@
1
- const _0x44fe5d=_0x129c;(function(_0x5a143a,_0x1740cd){const _0x4f1e39=_0x129c,_0x20bacb=_0x5a143a();while(!![]){try{const _0x3531ca=-parseInt(_0x4f1e39(0x92))/0x1+-parseInt(_0x4f1e39(0xd7))/0x2+parseInt(_0x4f1e39(0xd8))/0x3*(-parseInt(_0x4f1e39(0x7c))/0x4)+-parseInt(_0x4f1e39(0x81))/0x5+parseInt(_0x4f1e39(0xa6))/0x6*(-parseInt(_0x4f1e39(0xc5))/0x7)+-parseInt(_0x4f1e39(0x8d))/0x8+-parseInt(_0x4f1e39(0xa7))/0x9*(-parseInt(_0x4f1e39(0x85))/0xa);if(_0x3531ca===_0x1740cd)break;else _0x20bacb['push'](_0x20bacb['shift']());}catch(_0x4c63f9){_0x20bacb['push'](_0x20bacb['shift']());}}}(_0x3d66,0x84d37));import{readFile,readdir}from'fs/promises';function _0x129c(_0x4f604c,_0x249bbc){_0x4f604c=_0x4f604c-0x7c;const _0x3d66bb=_0x3d66();let _0x129cfa=_0x3d66bb[_0x4f604c];return _0x129cfa;}import{join,basename}from'path';import{existsSync}from'fs';import{getToken}from'./utils/keychain.js';import{getCurrentVersion,getLatestVersion}from'./utils/version.js';import{getApiBaseUrl,getCurrentEnvironment}from'./utils/environment.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getEnvNames}from'./env.js';import{getCurrentUser}from'./utils/userApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getEnvDir}from'./utils/settings.js';import{getPluginInfo}from'./utils/claudePlugin.js';import{RANGER_MANAGED_SKILLS}from'./utils/skills.js';import{spawn}from'child_process';const bold=_0xd95dea=>_0x44fe5d(0xc2)+_0xd95dea+'\x1b[0m',link=(_0x55f39f,_0x2b48f5)=>_0x44fe5d(0xcb)+_0x55f39f+'\x07'+(_0x2b48f5||_0x55f39f)+'\x1b]8;;\x07';async function getOpencodePluginStatus(){const _0x52147f=_0x44fe5d,_0x3173fd={'pWwhz':function(_0x15627e,_0x57a887){return _0x15627e(_0x57a887);},'WimtV':function(_0x3dbdb6,_0x5eaa2e){return _0x3dbdb6!==_0x5eaa2e;},'ydfxV':_0x52147f(0xb2),'Zttfx':function(_0x2e6a70,_0x27700b){return _0x2e6a70>_0x27700b;},'bIXjh':'not_configured','kawnX':_0x52147f(0xd3),'KLZUE':_0x52147f(0xb4),'uxikz':_0x52147f(0xd0)};return new Promise(_0x51dda7=>{const _0x46e28e=_0x52147f,_0x125e18={'PoDDA':function(_0x378f12,_0x211f32){const _0x2d9022=_0x129c;return _0x3173fd[_0x2d9022(0x93)](_0x378f12,_0x211f32);},'QCFOx':_0x46e28e(0x89),'tPOyv':function(_0x442463,_0x26487d){return _0x3173fd['WimtV'](_0x442463,_0x26487d);},'aYsPx':_0x3173fd['ydfxV'],'GzZFV':function(_0x55956e,_0x4851df){const _0x88e37e=_0x46e28e;return _0x3173fd[_0x88e37e(0xc8)](_0x55956e,_0x4851df);},'XsoAj':_0x3173fd[_0x46e28e(0x90)]},_0x2fd5ed=spawn('opencode',['debug',_0x46e28e(0xd4)],{'stdio':['ignore','pipe',_0x3173fd['kawnX']]});let _0x4bff22='';_0x2fd5ed[_0x46e28e(0xa5)]?.['on'](_0x46e28e(0xb4),_0x454fa3=>{const _0x333905=_0x46e28e;_0x4bff22+=_0x454fa3[_0x333905(0x83)]();}),_0x2fd5ed[_0x46e28e(0x9b)]?.['on'](_0x3173fd['KLZUE'],_0x2159ee=>{const _0x12354c=_0x46e28e;_0x4bff22+=_0x2159ee[_0x12354c(0x83)]();}),_0x2fd5ed['on'](_0x46e28e(0x8f),()=>{const _0x1de091=_0x46e28e;_0x125e18[_0x1de091(0x7e)](_0x51dda7,{'status':_0x125e18['QCFOx']});}),_0x2fd5ed['on'](_0x3173fd['uxikz'],_0x3bb556=>{const _0x93431e=_0x46e28e;if(_0x125e18['tPOyv'](_0x3bb556,0x0)){_0x125e18['PoDDA'](_0x51dda7,{'status':_0x93431e(0x89)});return;}const _0x2a60f3=_0x4bff22[_0x93431e(0xb7)]();let _0x4464c1=null;if(_0x2a60f3)try{_0x4464c1=JSON['parse'](_0x2a60f3);}catch{const _0x2ff866=_0x2a60f3[_0x93431e(0x86)](/\{[\s\S]*\}$/);if(_0x2ff866)try{_0x4464c1=JSON['parse'](_0x2ff866[0x0]);}catch{_0x4464c1=null;}}const _0x2a6270=Array['isArray'](_0x4464c1?.['plugin'])?_0x4464c1?.['plugin']:[],_0x443078=_0x2a6270[_0x93431e(0xba)](_0x219bfe=>{const _0x57bf0d=_0x93431e;if(_0x125e18[_0x57bf0d(0xc9)](typeof _0x219bfe,'string'))return![];return _0x219bfe[_0x57bf0d(0xbe)](_0x57bf0d(0x98))||_0x219bfe[_0x57bf0d(0xbe)]('opencode-plugin');});if(_0x443078){_0x51dda7({'status':_0x125e18['aYsPx'],'details':_0x125e18['GzZFV'](_0x2a6270[_0x93431e(0xb8)],0x0)?_0x2a6270[_0x93431e(0xb8)]+'\x20plugin(s)\x20configured':undefined});return;}if(_0x2a6270['length']>0x0){_0x51dda7({'status':_0x125e18['XsoAj'],'details':_0x2a6270[_0x93431e(0xb8)]+'\x20plugin(s)\x20configured'});return;}_0x51dda7({'status':_0x125e18[_0x93431e(0x88)]});});});}async function getSkillsFromDir(_0x63ae91,_0x1172e2){const _0x2332f2=_0x44fe5d,_0x2989d7={'pwKbY':function(_0x599ded,_0x3b0c36,_0xfc68b3){return _0x599ded(_0x3b0c36,_0xfc68b3);},'wBbaZ':function(_0x54b1e9,_0xb73e68,_0x1774d1,_0x5a7075){return _0x54b1e9(_0xb73e68,_0x1774d1,_0x5a7075);},'uIBhi':'SKILL.md','MbyDP':function(_0x5a8b28,_0x4b39f5){return _0x5a8b28(_0x4b39f5);},'OBwhS':function(_0x432aea,_0x673cb0,_0x9dbfda){return _0x432aea(_0x673cb0,_0x9dbfda);},'QAbkI':'utf-8'};if(!existsSync(_0x63ae91))return[];const _0x4bd464=[];try{const _0x123122=await _0x2989d7['pwKbY'](readdir,_0x63ae91,{'withFileTypes':!![]});for(const _0x525111 of _0x123122){if(_0x525111['isDirectory']()){const _0x2d8d41=_0x2989d7['wBbaZ'](join,_0x63ae91,_0x525111['name'],_0x2989d7[_0x2332f2(0xcf)]);if(_0x2989d7['MbyDP'](existsSync,_0x2d8d41)){let _0x130169=_0x525111[_0x2332f2(0xaa)];try{const _0x583dd8=await _0x2989d7[_0x2332f2(0xbd)](readFile,_0x2d8d41,_0x2989d7['QAbkI']),_0x769663=_0x583dd8[_0x2332f2(0x86)](/name:\s*(.+)/);_0x769663&&(_0x130169=_0x769663[0x1][_0x2332f2(0xb7)]());}catch{}_0x4bd464[_0x2332f2(0x87)]({'name':_0x525111['name'],'displayName':_0x130169,'path':_0x2d8d41,'level':_0x1172e2});}}}}catch{return[];}return _0x4bd464;}async function getInstalledSkills(){const _0x1b2445=_0x44fe5d,_0x16ca12={'eFmLR':function(_0x56aaf9,_0x4a4df6,_0x4af89d){return _0x56aaf9(_0x4a4df6,_0x4af89d);},'sPwDT':_0x1b2445(0x91),'MSrUm':function(_0xbea098,_0x95cab0,_0x2aa7c0){return _0xbea098(_0x95cab0,_0x2aa7c0);},'vLykE':function(_0xe00b52){return _0xe00b52();}},[_0x1c272b,_0x566026]=await Promise[_0x1b2445(0xdb)]([_0x16ca12[_0x1b2445(0xc3)](getSkillsFromDir,getProjectSkillsDir(),_0x16ca12['sPwDT']),_0x16ca12[_0x1b2445(0x9a)](getSkillsFromDir,_0x16ca12[_0x1b2445(0xa1)](getUserSkillsDir),_0x1b2445(0xb1))]);return{'project':_0x1c272b,'user':_0x566026};}async function getEnvironments(){const _0x2272ec=_0x44fe5d,_0x253803={'UmgzB':function(_0x5df3a7,_0x40b38c,_0x3d33b3){return _0x5df3a7(_0x40b38c,_0x3d33b3);},'YxSuE':_0x2272ec(0xb5),'adrBm':function(_0xc1f0ac,_0x1af590){return _0xc1f0ac(_0x1af590);},'cqAuV':function(_0xe7faf4,_0x2d1a77){return _0xe7faf4(_0x2d1a77);},'GGQlC':function(_0x2829a8,_0x4e5b3d){return _0x2829a8===_0x4e5b3d;},'NempO':function(_0x163ca4){return _0x163ca4();}},{envNames:_0xbee584,activeEnv:_0x1af0d8}=await _0x253803['NempO'](getEnvNames),_0x1ad3bb=getRangerDir();if(!existsSync(_0x1ad3bb))return{'envs':[],'activeEnv':null};const _0x5a5a56=_0xbee584[_0x2272ec(0x95)](_0x25938f=>{const _0x2c26c5=_0x2272ec,_0x38aaa1=getEnvDir(_0x25938f),_0x1a65ff=_0x253803['UmgzB'](join,_0x38aaa1,'settings.json'),_0x1507cf=join(_0x38aaa1,'auth.json'),_0x42b077=join(_0x38aaa1,_0x253803[_0x2c26c5(0x96)]);return{'name':_0x25938f,'settingsPath':_0x253803['adrBm'](existsSync,_0x1a65ff)?_0x1a65ff:_0x2c26c5(0xb9),'hasPlaintextAuth':_0x253803['cqAuV'](existsSync,_0x1507cf),'hasEncryptedAuth':_0x253803[_0x2c26c5(0xcd)](existsSync,_0x42b077),'isActive':_0x253803[_0x2c26c5(0x9e)](_0x25938f,_0x1af0d8)};});return{'envs':_0x5a5a56,'activeEnv':_0x1af0d8};}export async function status(){const _0x23f008=_0x44fe5d,_0x49ed78={'eepwL':function(_0x1c8ac8){return _0x1c8ac8();},'aWVyu':function(_0x2d94ba,_0x549bcd){return _0x2d94ba(_0x549bcd);},'gvMEk':function(_0x396a71,_0x394a5c,_0x52089c){return _0x396a71(_0x394a5c,_0x52089c);},'Kthlg':'\x0a---\x20OpenCode\x20Plugin\x20---','dkGYK':function(_0x552943,_0x572fbb){return _0x552943===_0x572fbb;},'hUsRE':'@ranger-testing/opencode-plugin','SLfSg':_0x23f008(0xca),'wddiq':'\x20\x20Not\x20configured','BmNIk':_0x23f008(0x9c),'BObZS':_0x23f008(0xa8),'pxCPc':_0x23f008(0xa4),'lvMQO':'\x20\x20Project-level:','QuRgV':function(_0x1906a9,_0x55c721,_0x3b547e){return _0x1906a9(_0x55c721,_0x3b547e);},'MefuI':function(_0x2051a2,_0x45a6a7){return _0x2051a2>_0x45a6a7;},'JKBkW':'\x20\x20User-level:','CMJCK':function(_0x4e7ef6,_0x5d98b8){return _0x4e7ef6(_0x5d98b8);},'sgEJT':function(_0x1c89b4,_0x1f9811){return _0x1c89b4(_0x1f9811);},'IAROF':'\x0a---\x20Profiles\x20---','EgvXm':function(_0x2361bd){return _0x2361bd();},'jXaSF':'\x20(active)','OIsGI':'encrypted'};console['log'](_0x23f008(0x8c));const _0x28f642=process[_0x23f008(0xa2)](),_0x44a84a=_0x49ed78[_0x23f008(0xcc)](getRangerDir);if(!existsSync(_0x44a84a)){console[_0x23f008(0x94)](_0x23f008(0xbf)+link(_0x28f642,_0x49ed78[_0x23f008(0x8b)](bold,basename(_0x28f642)))),console[_0x23f008(0x94)]('\x0aRanger\x20has\x20not\x20been\x20initialized\x20in\x20this\x20directory.'),console['log']('\x20\x20Run:\x20ranger\x20setup\x20[token]\x0a');return;}console[_0x23f008(0x94)]('Root:\x20'+_0x49ed78['gvMEk'](link,_0x28f642,bold(basename(_0x28f642))));const _0x4c7d7b=getCurrentVersion(),_0x39d922=getLatestVersion();if(_0x39d922['version']&&_0x39d922['version']!==_0x4c7d7b)console['log']('Version:\x20'+_0x4c7d7b+'\x20(latest:\x20'+_0x39d922[_0x23f008(0x7f)]+')'),console[_0x23f008(0x94)](_0x23f008(0xd5));else _0x39d922[_0x23f008(0x7f)]?console['log']('Version:\x20'+_0x4c7d7b+_0x23f008(0x84)):console['log']('Version:\x20'+_0x4c7d7b);const _0x1ea93f=await getToken();if(_0x1ea93f){const _0x4d15d3=await getCurrentUser(_0x1ea93f);_0x4d15d3['success']?console[_0x23f008(0x94)](_0x23f008(0xd9)+bold(_0x4d15d3[_0x23f008(0xb1)]['organizationName'])):(console['log']('API\x20Token:\x20✓\x20Found\x20but\x20invalid\x20or\x20expired'),console[_0x23f008(0x94)]('\x20\x20Run:\x20ranger\x20setup\x20[token]'));}else console['log']('API\x20Token:\x20✗\x20Not\x20found'),console['log'](_0x23f008(0x8a));process['env'][_0x23f008(0x80)]&&(console[_0x23f008(0x94)]('API\x20Environment:\x20'+getCurrentEnvironment()),console[_0x23f008(0x94)](_0x23f008(0xae)+_0x49ed78[_0x23f008(0xcc)](getApiBaseUrl)));console['log'](_0x49ed78['Kthlg']);const _0x409c51=await getOpencodePluginStatus();if(_0x49ed78[_0x23f008(0xc7)](_0x409c51['status'],'configured'))console['log']('\x20\x20'+bold(_0x49ed78[_0x23f008(0x82)])+':\x20configured'),_0x409c51['details']&&console['log']('\x20\x20'+_0x409c51[_0x23f008(0xab)]);else _0x409c51['status']===_0x49ed78[_0x23f008(0xda)]?(console[_0x23f008(0x94)](_0x49ed78[_0x23f008(0xdc)]),_0x409c51['details']&&console[_0x23f008(0x94)]('\x20\x20'+_0x409c51[_0x23f008(0xab)]),console['log'](_0x49ed78['BmNIk'])):console[_0x23f008(0x94)](_0x23f008(0x8e));console[_0x23f008(0x94)]('\x0a---\x20Claude\x20Code\x20Plugin\x20---');const _0x5f1153=await getPluginInfo(_0x49ed78['BObZS']);if(_0x5f1153){const _0xdd2967=_0x5f1153[_0x23f008(0xc4)]||_0x23f008(0xc0),_0x2f2d75=_0x5f1153['enabled']?_0x23f008(0xce):'disabled';console[_0x23f008(0x94)]('\x20\x20'+bold('ranger@trailhead')+_0x23f008(0x97)+_0xdd2967+',\x20'+_0x2f2d75+')');}else console[_0x23f008(0x94)]('\x20\x20Not\x20installed'),console[_0x23f008(0x94)](_0x49ed78['pxCPc']);console[_0x23f008(0x94)]('\x0a---\x20Skills\x20---');const {project:_0x352909,user:_0x506a44}=await _0x49ed78[_0x23f008(0xcc)](getInstalledSkills),_0x5e310d=_0x352909[_0x23f008(0x9d)](_0x5128b1=>RANGER_MANAGED_SKILLS['includes'](_0x5128b1[_0x23f008(0xaa)])),_0x319f24=_0x506a44[_0x23f008(0x9d)](_0x1359d4=>RANGER_MANAGED_SKILLS['includes'](_0x1359d4['name'])),_0x2e2149=_0x5e310d[_0x23f008(0xb8)]+_0x319f24['length'];if(_0x2e2149===0x0)console[_0x23f008(0x94)](_0x23f008(0xd2)),console[_0x23f008(0x94)]('\x20\x20Run:\x20ranger\x20skillup');else{if(_0x5e310d['length']>0x0){console['log'](_0x49ed78['lvMQO']);for(const _0x31122d of _0x5e310d){console['log']('\x20\x20\x20\x20'+bold(_0x31122d[_0x23f008(0xb6)])+':\x20'+_0x49ed78[_0x23f008(0xaf)](link,_0x31122d['path'],basename(_0x31122d[_0x23f008(0xa0)])));}}if(_0x49ed78[_0x23f008(0xbb)](_0x319f24[_0x23f008(0xb8)],0x0)){console[_0x23f008(0x94)](_0x49ed78[_0x23f008(0xad)]);for(const _0x493ffa of _0x319f24){console[_0x23f008(0x94)]('\x20\x20\x20\x20'+_0x49ed78['CMJCK'](bold,_0x493ffa['displayName'])+':\x20'+link(_0x493ffa[_0x23f008(0xa0)],_0x49ed78['sgEJT'](basename,_0x493ffa['path'])));}}}console['log'](_0x49ed78[_0x23f008(0xa3)]);const {envs:_0x3b64b5,activeEnv:_0x3af80c}=await _0x49ed78['EgvXm'](getEnvironments);if(_0x49ed78[_0x23f008(0xc7)](_0x3b64b5[_0x23f008(0xb8)],0x0))console[_0x23f008(0x94)]('No\x20profiles\x20configured'),console['log']('\x20\x20Run:\x20ranger\x20profile\x20add\x20<profile-name>');else{for(const _0x41ceb7 of _0x3b64b5){const _0x3f66cc=_0x41ceb7[_0x23f008(0xc1)]?_0x49ed78[_0x23f008(0x9f)]:'',_0x3a226d=_0x41ceb7['hasEncryptedAuth']?_0x49ed78[_0x23f008(0xa9)]:_0x41ceb7[_0x23f008(0xbc)]?_0x23f008(0xb0):'none';console[_0x23f008(0x94)]('\x20\x20'+_0x49ed78[_0x23f008(0xb3)](bold,_0x41ceb7[_0x23f008(0xaa)])+_0x3f66cc),console[_0x23f008(0x94)](_0x23f008(0x7d)+_0x3a226d),_0x41ceb7[_0x23f008(0xac)]!=='(not\x20found)'&&console[_0x23f008(0x94)](_0x23f008(0xc6)+link(_0x41ceb7[_0x23f008(0xac)],basename(_0x41ceb7['settingsPath'])));}!_0x3af80c&&(console['log'](_0x23f008(0xd1)),console['log'](_0x23f008(0xd6)+_0x3b64b5['map'](_0xffdbb=>_0xffdbb[_0x23f008(0xaa)])[_0x23f008(0x99)](',\x20')+')'));}console[_0x23f008(0x94)]('');}function _0x3d66(){const _0x14c302=['toString','\x20(up\x20to\x20date)','950BBgxeL','match','push','XsoAj','not_installed','\x20\x20Run:\x20ranger\x20setup\x20[token]','aWVyu','\x0a📊\x20Ranger\x20Status\x0a','3958000JFUMKp','\x20\x20OpenCode\x20not\x20installed\x20or\x20not\x20available','error','bIXjh','project','137650Xapfax','pWwhz','log','map','YxSuE',':\x20installed\x20(','@ranger-testing/opencode-plugin','join','MSrUm','stderr','\x20\x20Run:\x20ranger\x20setup\x20--opencode','filter','GGQlC','jXaSF','path','vLykE','cwd','IAROF','\x20\x20Run:\x20ranger\x20setup\x20[token]\x20\x20(includes\x20plugin\x20installation)','stdout','12bAZmMH','271377uKUPZo','ranger@trailhead','OIsGI','name','details','settingsPath','JKBkW','API\x20URL:\x20','QuRgV','plaintext','user','configured','sgEJT','data','auth.json.enc','displayName','trim','length','(not\x20found)','some','MefuI','hasPlaintextAuth','OBwhS','includes','Root:\x20','unknown','isActive','\x1b[1m','eFmLR','scope','1478666pvLnFi','\x20\x20\x20\x20Settings:\x20','dkGYK','Zttfx','tPOyv','not_configured','\x1b]8;;file://','eepwL','adrBm','enabled','uIBhi','close','\x0a\x20\x20No\x20active\x20profile\x20set','No\x20skills\x20installed','pipe','config','\x20\x20Run:\x20ranger\x20update','\x20\x20Run:\x20ranger\x20profile\x20use\x20<profile-name>\x20\x20(available:\x20','714450Wszhap','1258539PvzvaZ','Organization:\x20','SLfSg','all','wddiq','8TzryAo','\x20\x20\x20\x20Auth:\x20','PoDDA','version','DEBUG','346765LYmaSM','hUsRE'];_0x3d66=function(){return _0x14c302;};return _0x3d66();}
1
+ const _0x4c4fad=_0x56ec;(function(_0xdcb5fd,_0x2cd3d0){const _0x1851df=_0x56ec,_0x12ae99=_0xdcb5fd();while(!![]){try{const _0x5d5f9d=-parseInt(_0x1851df(0x1b6))/0x1*(parseInt(_0x1851df(0x19e))/0x2)+parseInt(_0x1851df(0x176))/0x3+-parseInt(_0x1851df(0x1b4))/0x4+-parseInt(_0x1851df(0x19f))/0x5+parseInt(_0x1851df(0x191))/0x6+parseInt(_0x1851df(0x1b1))/0x7*(-parseInt(_0x1851df(0x186))/0x8)+parseInt(_0x1851df(0x167))/0x9*(parseInt(_0x1851df(0x197))/0xa);if(_0x5d5f9d===_0x2cd3d0)break;else _0x12ae99['push'](_0x12ae99['shift']());}catch(_0x2fb506){_0x12ae99['push'](_0x12ae99['shift']());}}}(_0x20fd,0xac081));import{readFile,readdir}from'fs/promises';import{join,basename}from'path';import{existsSync}from'fs';function _0x56ec(_0x513b9d,_0x36184b){_0x513b9d=_0x513b9d-0x154;const _0x20fde4=_0x20fd();let _0x56ecbe=_0x20fde4[_0x513b9d];return _0x56ecbe;}import{getToken}from'./utils/keychain.js';import{getCurrentVersion,getLatestVersion}from'./utils/version.js';import{getApiBaseUrl,getCurrentEnvironment}from'./utils/environment.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getEnvNames}from'./env.js';import{getCurrentUser}from'./utils/userApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getEnvDir}from'./utils/settings.js';import{getPluginInfo}from'./utils/claudePlugin.js';import{RANGER_MANAGED_SKILLS}from'./utils/skills.js';import{spawn}from'child_process';const bold=_0x8aaa07=>_0x4c4fad(0x189)+_0x8aaa07+_0x4c4fad(0x15a),link=(_0x76b86f,_0x7d366)=>_0x4c4fad(0x16b)+_0x76b86f+'\x07'+(_0x7d366||_0x76b86f)+'\x1b]8;;\x07';async function getOpencodePluginStatus(){const _0x449a0d=_0x4c4fad,_0x4deca1={'ZjjsE':'string','fbQJA':_0x449a0d(0x162),'sEioa':function(_0x3866c3,_0xdbd894){return _0x3866c3(_0xdbd894);},'sASib':function(_0x58ab2d,_0x1df344){return _0x58ab2d>_0x1df344;},'eQKMA':'not_configured','YQrxd':_0x449a0d(0x174),'TZOrD':_0x449a0d(0x183),'tgLXT':_0x449a0d(0x1a1),'PLzVp':_0x449a0d(0x17a),'fGsQZ':'data','GRDSA':'close'};return new Promise(_0xea6e8c=>{const _0x5ec789=_0x449a0d,_0x205d70={'nyftf':function(_0x1ae6ab,_0x48a6dc){return _0x1ae6ab(_0x48a6dc);},'FgDDs':'not_installed'},_0xa7eb97=spawn(_0x4deca1[_0x5ec789(0x169)],[_0x4deca1[_0x5ec789(0x159)],'config'],{'stdio':[_0x4deca1['tgLXT'],_0x4deca1['PLzVp'],_0x4deca1['PLzVp']]});let _0x1cfe74='';_0xa7eb97['stdout']?.['on'](_0x4deca1['fGsQZ'],_0x5103fe=>{_0x1cfe74+=_0x5103fe['toString']();}),_0xa7eb97[_0x5ec789(0x1af)]?.['on'](_0x4deca1['fGsQZ'],_0x8be266=>{const _0x3d11cc=_0x5ec789;_0x1cfe74+=_0x8be266[_0x3d11cc(0x18f)]();}),_0xa7eb97['on']('error',()=>{const _0x7379de=_0x5ec789;_0x205d70['nyftf'](_0xea6e8c,{'status':_0x205d70[_0x7379de(0x154)]});}),_0xa7eb97['on'](_0x4deca1['GRDSA'],_0x573fab=>{const _0x3c39d3=_0x5ec789,_0x41f8f7={'Cdgqs':function(_0x4a4987,_0x9f2d18){return _0x4a4987!==_0x9f2d18;},'nPuDv':_0x4deca1['ZjjsE'],'aSLJv':_0x4deca1['fbQJA']};if(_0x573fab!==0x0){_0xea6e8c({'status':_0x3c39d3(0x18c)});return;}const _0x47de77=_0x1cfe74[_0x3c39d3(0x19c)]();let _0x4ba203=null;if(_0x47de77)try{_0x4ba203=JSON[_0x3c39d3(0x19d)](_0x47de77);}catch{const _0x23ad38=_0x47de77[_0x3c39d3(0x1ab)](/\{[\s\S]*\}$/);if(_0x23ad38)try{_0x4ba203=JSON[_0x3c39d3(0x19d)](_0x23ad38[0x0]);}catch{_0x4ba203=null;}}const _0x3f57f0=Array['isArray'](_0x4ba203?.[_0x3c39d3(0x1a3)])?_0x4ba203?.[_0x3c39d3(0x1a3)]:[],_0x2b9253=_0x3f57f0[_0x3c39d3(0x184)](_0x3061ec=>{const _0x2f2cc8=_0x3c39d3;if(_0x41f8f7[_0x2f2cc8(0x170)](typeof _0x3061ec,_0x41f8f7['nPuDv']))return![];return _0x3061ec['includes'](_0x41f8f7[_0x2f2cc8(0x19a)])||_0x3061ec[_0x2f2cc8(0x1b3)](_0x2f2cc8(0x163));});if(_0x2b9253){_0x4deca1[_0x3c39d3(0x165)](_0xea6e8c,{'status':_0x3c39d3(0x1b5),'details':_0x3f57f0['length']>0x0?_0x3f57f0['length']+'\x20plugin(s)\x20configured':undefined});return;}if(_0x4deca1['sASib'](_0x3f57f0[_0x3c39d3(0x190)],0x0)){_0x4deca1['sEioa'](_0xea6e8c,{'status':_0x4deca1['eQKMA'],'details':_0x3f57f0[_0x3c39d3(0x190)]+'\x20plugin(s)\x20configured'});return;}_0xea6e8c({'status':_0x4deca1[_0x3c39d3(0x181)]});});});}async function getSkillsFromDir(_0x59c8be,_0x2e81fe){const _0x59084e=_0x4c4fad,_0x529e22={'JcxPK':function(_0x59b4b1,_0x17a80b){return _0x59b4b1(_0x17a80b);},'wVHOb':function(_0x314daf,_0x511b24,_0x4e61d1){return _0x314daf(_0x511b24,_0x4e61d1);},'ELqLI':function(_0x42f085,_0x1b1756,_0x120efd,_0x2ee2ba){return _0x42f085(_0x1b1756,_0x120efd,_0x2ee2ba);},'vKGLO':_0x59084e(0x18a),'MSrJm':_0x59084e(0x16c)};if(!_0x529e22[_0x59084e(0x17b)](existsSync,_0x59c8be))return[];const _0x3990cf=[];try{const _0x22d33c=await _0x529e22[_0x59084e(0x166)](readdir,_0x59c8be,{'withFileTypes':!![]});for(const _0x4d3300 of _0x22d33c){if(_0x4d3300['isDirectory']()){const _0x320462=_0x529e22['ELqLI'](join,_0x59c8be,_0x4d3300[_0x59084e(0x1b7)],_0x529e22['vKGLO']);if(existsSync(_0x320462)){let _0x3c4e8d=_0x4d3300['name'];try{const _0x5a3ee4=await _0x529e22[_0x59084e(0x166)](readFile,_0x320462,_0x529e22['MSrJm']),_0x1bb6e7=_0x5a3ee4['match'](/name:\s*(.+)/);_0x1bb6e7&&(_0x3c4e8d=_0x1bb6e7[0x1]['trim']());}catch{}_0x3990cf['push']({'name':_0x4d3300['name'],'displayName':_0x3c4e8d,'path':_0x320462,'level':_0x2e81fe});}}}}catch{return[];}return _0x3990cf;}async function getInstalledSkills(){const _0x2b0d86=_0x4c4fad,_0x405bfd={'JeZip':function(_0x4852ea,_0x4fc159,_0x500f49){return _0x4852ea(_0x4fc159,_0x500f49);},'LrHIn':'project','essns':'user'},[_0xade57f,_0x19bfe8]=await Promise[_0x2b0d86(0x1a0)]([_0x405bfd['JeZip'](getSkillsFromDir,getProjectSkillsDir(),_0x405bfd['LrHIn']),getSkillsFromDir(getUserSkillsDir(),_0x405bfd[_0x2b0d86(0x168)])]);return{'project':_0xade57f,'user':_0x19bfe8};}function _0x20fd(){const _0x565527=['status','bjYOf','qKQFZ','TZOrD','\x1b[0m','\x20\x20User-level:','Version:\x20','settingsPath','NmKml','API\x20Token:\x20✗\x20Not\x20found','\x0a\x20\x20No\x20active\x20profile\x20set','No\x20profiles\x20configured','@ranger-testing/opencode-plugin','opencode-plugin','gMWps','sEioa','wVHOb','110151MazuqD','essns','YQrxd','No\x20skills\x20installed','\x1b]8;;file://','utf-8','dNHaH',':\x20configured','PAsUw','Cdgqs','env','hasEncryptedAuth','\x20\x20\x20\x20Settings:\x20','opencode','QHInA','3647160hOCmnu','join','path','ranger@trailhead','pipe','JcxPK','kArHx','\x0aRanger\x20has\x20not\x20been\x20initialized\x20in\x20this\x20directory.','zVsAw','user','HyFpE','eQKMA','unknown','debug','some','\x0a---\x20OpenCode\x20Plugin\x20---','4909592OsUwCH','jVzwn','log','\x1b[1m','SKILL.md','details','not_installed','hasPlaintextAuth','gYSIz','toString','length','6123522jonOUV','wTszl','edadd','(not\x20found)','disabled','\x20\x20Run:\x20ranger\x20setup\x20[token]\x20\x20(includes\x20plugin\x20installation)','1270jGJXTV','\x20\x20Run:\x20ranger\x20skillup','displayName','aSLJv','RpwxI','trim','parse','1857520uWZnCm','1061680naGlZt','all','ignore','\x20\x20\x20\x20','plugin','mEGJZ','Root:\x20','rKriY','enabled','\x20\x20Project-level:','MKWPs','version','match','isActive','YNHEg','auth.json.enc','stderr','\x0a📊\x20Ranger\x20Status\x0a','7xVOAIe','\x20(up\x20to\x20date)','includes','5324896gLeKXI','configured','1kCEQxi','name','FgDDs','success'];_0x20fd=function(){return _0x565527;};return _0x20fd();}async function getEnvironments(){const _0x9d8fc3=_0x4c4fad,_0x10cab1={'bjYOf':function(_0x1d577e,_0x10ce07,_0x336920){return _0x1d577e(_0x10ce07,_0x336920);},'iIenN':_0x9d8fc3(0x1ae),'zVsAw':function(_0x21cf30,_0x1bb0be){return _0x21cf30(_0x1bb0be);},'kArHx':function(_0x59303a){return _0x59303a();}},{envNames:_0x1b7d67,activeEnv:_0x3f1f1c}=await _0x10cab1['kArHx'](getEnvNames),_0x10fefe=_0x10cab1[_0x9d8fc3(0x17c)](getRangerDir);if(!existsSync(_0x10fefe))return{'envs':[],'activeEnv':null};const _0x430184=_0x1b7d67['map'](_0xb36e95=>{const _0x5b264a=_0x9d8fc3,_0x4bb923=getEnvDir(_0xb36e95),_0x406a65=_0x10cab1[_0x5b264a(0x157)](join,_0x4bb923,'settings.json'),_0x59d972=_0x10cab1[_0x5b264a(0x157)](join,_0x4bb923,'auth.json'),_0x5700f1=join(_0x4bb923,_0x10cab1['iIenN']);return{'name':_0xb36e95,'settingsPath':_0x10cab1[_0x5b264a(0x17e)](existsSync,_0x406a65)?_0x406a65:'(not\x20found)','hasPlaintextAuth':existsSync(_0x59d972),'hasEncryptedAuth':existsSync(_0x5700f1),'isActive':_0xb36e95===_0x3f1f1c};});return{'envs':_0x430184,'activeEnv':_0x3f1f1c};}export async function status(){const _0x2e73dd=_0x4c4fad,_0x6fb2a9={'MKWPs':_0x2e73dd(0x1b0),'mEGJZ':function(_0x2c3359){return _0x2c3359();},'AWNnx':function(_0x44aa2d,_0x2f24a5){return _0x44aa2d(_0x2f24a5);},'RpwxI':function(_0x3f3c18,_0x1ebf66){return _0x3f3c18(_0x1ebf66);},'PAsUw':function(_0x555c91,_0x3ca51a){return _0x555c91(_0x3ca51a);},'wTszl':function(_0x50e370,_0x1f84ed){return _0x50e370!==_0x1f84ed;},'YNHEg':function(_0x4e3ca3,_0x47dc5d){return _0x4e3ca3(_0x47dc5d);},'gYSIz':_0x2e73dd(0x185),'dNHaH':'configured','mVrpy':function(_0x4ad5a5,_0x265757){return _0x4ad5a5(_0x265757);},'HyFpE':'@ranger-testing/opencode-plugin','EPWqc':'\x20\x20Not\x20configured','xclwm':_0x2e73dd(0x182),'NmKml':_0x2e73dd(0x1a7),'QHInA':'\x20\x20Not\x20installed','wQuTe':'\x0a---\x20Skills\x20---','PuNrI':function(_0x33c96a){return _0x33c96a();},'tgeBO':function(_0x550378,_0xd15105){return _0x550378+_0xd15105;},'rKriY':function(_0x214cd3,_0x4ff547){return _0x214cd3===_0x4ff547;},'jVzwn':_0x2e73dd(0x16a),'qKQFZ':function(_0x31f7eb,_0x3e7999,_0x671254){return _0x31f7eb(_0x3e7999,_0x671254);},'wWjTQ':function(_0x505e7c,_0x48811e){return _0x505e7c(_0x48811e);},'edadd':function(_0x27f825,_0x377958){return _0x27f825>_0x377958;},'YvXEZ':_0x2e73dd(0x15b),'Ivxdi':'encrypted','vLRhB':_0x2e73dd(0x194),'gMWps':function(_0x51bcf0,_0x11bc8a,_0x435e4f){return _0x51bcf0(_0x11bc8a,_0x435e4f);}};console['log'](_0x6fb2a9[_0x2e73dd(0x1a9)]);const _0x595e94=process['cwd'](),_0x2f3a2b=_0x6fb2a9['mEGJZ'](getRangerDir);if(!_0x6fb2a9['AWNnx'](existsSync,_0x2f3a2b)){console[_0x2e73dd(0x188)](_0x2e73dd(0x1a5)+link(_0x595e94,_0x6fb2a9['AWNnx'](bold,_0x6fb2a9[_0x2e73dd(0x19b)](basename,_0x595e94)))),console[_0x2e73dd(0x188)](_0x2e73dd(0x17d)),console[_0x2e73dd(0x188)]('\x20\x20Run:\x20ranger\x20setup\x20[token]\x0a');return;}console['log'](_0x2e73dd(0x1a5)+link(_0x595e94,_0x6fb2a9['PAsUw'](bold,basename(_0x595e94))));const _0x6be19f=getCurrentVersion(),_0xcfc092=getLatestVersion();if(_0xcfc092[_0x2e73dd(0x1aa)]&&_0x6fb2a9[_0x2e73dd(0x192)](_0xcfc092[_0x2e73dd(0x1aa)],_0x6be19f))console['log'](_0x2e73dd(0x15c)+_0x6be19f+'\x20(latest:\x20'+_0xcfc092[_0x2e73dd(0x1aa)]+')'),console[_0x2e73dd(0x188)]('\x20\x20Run:\x20ranger\x20update');else _0xcfc092['version']?console['log'](_0x2e73dd(0x15c)+_0x6be19f+_0x2e73dd(0x1b2)):console[_0x2e73dd(0x188)](_0x2e73dd(0x15c)+_0x6be19f);const _0x59ee2e=await _0x6fb2a9[_0x2e73dd(0x1a4)](getToken);if(_0x59ee2e){const _0x5dd421=await _0x6fb2a9[_0x2e73dd(0x1ad)](getCurrentUser,_0x59ee2e);_0x5dd421[_0x2e73dd(0x155)]?console['log']('Organization:\x20'+_0x6fb2a9[_0x2e73dd(0x16f)](bold,_0x5dd421[_0x2e73dd(0x17f)]['organizationName'])):(console['log']('API\x20Token:\x20✓\x20Found\x20but\x20invalid\x20or\x20expired'),console[_0x2e73dd(0x188)]('\x20\x20Run:\x20ranger\x20setup\x20[token]'));}else console[_0x2e73dd(0x188)](_0x2e73dd(0x15f)),console['log']('\x20\x20Run:\x20ranger\x20setup\x20[token]');process[_0x2e73dd(0x171)]['DEBUG']&&(console[_0x2e73dd(0x188)]('API\x20Environment:\x20'+getCurrentEnvironment()),console[_0x2e73dd(0x188)]('API\x20URL:\x20'+getApiBaseUrl()));console[_0x2e73dd(0x188)](_0x6fb2a9[_0x2e73dd(0x18e)]);const _0x19d17b=await getOpencodePluginStatus();if(_0x19d17b[_0x2e73dd(0x156)]===_0x6fb2a9[_0x2e73dd(0x16d)])console[_0x2e73dd(0x188)]('\x20\x20'+_0x6fb2a9['mVrpy'](bold,_0x6fb2a9[_0x2e73dd(0x180)])+_0x2e73dd(0x16e)),_0x19d17b[_0x2e73dd(0x18b)]&&console['log']('\x20\x20'+_0x19d17b[_0x2e73dd(0x18b)]);else _0x19d17b['status']==='not_configured'?(console[_0x2e73dd(0x188)](_0x6fb2a9['EPWqc']),_0x19d17b[_0x2e73dd(0x18b)]&&console[_0x2e73dd(0x188)]('\x20\x20'+_0x19d17b[_0x2e73dd(0x18b)]),console['log']('\x20\x20Run:\x20ranger\x20setup\x20--opencode')):console[_0x2e73dd(0x188)]('\x20\x20OpenCode\x20not\x20installed\x20or\x20not\x20available');console['log']('\x0a---\x20Claude\x20Code\x20Plugin\x20---');const _0x402083=await getPluginInfo('ranger@trailhead');if(_0x402083){const _0x260df4=_0x402083['scope']||_0x6fb2a9['xclwm'],_0x294660=_0x402083['enabled']?_0x6fb2a9[_0x2e73dd(0x15e)]:_0x2e73dd(0x195);console['log']('\x20\x20'+bold(_0x2e73dd(0x179))+':\x20installed\x20('+_0x260df4+',\x20'+_0x294660+')');}else console['log'](_0x6fb2a9[_0x2e73dd(0x175)]),console[_0x2e73dd(0x188)](_0x2e73dd(0x196));console['log'](_0x6fb2a9['wQuTe']);const {project:_0x4ff25c,user:_0xf40afa}=await _0x6fb2a9['PuNrI'](getInstalledSkills),_0x4c6b15=_0x4ff25c['filter'](_0x41efe9=>RANGER_MANAGED_SKILLS['includes'](_0x41efe9[_0x2e73dd(0x1b7)])),_0x56f945=_0xf40afa['filter'](_0x49af24=>RANGER_MANAGED_SKILLS['includes'](_0x49af24[_0x2e73dd(0x1b7)])),_0x3654f4=_0x6fb2a9['tgeBO'](_0x4c6b15[_0x2e73dd(0x190)],_0x56f945['length']);if(_0x6fb2a9[_0x2e73dd(0x1a6)](_0x3654f4,0x0))console[_0x2e73dd(0x188)](_0x6fb2a9[_0x2e73dd(0x187)]),console['log'](_0x2e73dd(0x198));else{if(_0x4c6b15[_0x2e73dd(0x190)]>0x0){console['log'](_0x2e73dd(0x1a8));for(const _0x14a707 of _0x4c6b15){console[_0x2e73dd(0x188)](_0x2e73dd(0x1a2)+bold(_0x14a707[_0x2e73dd(0x199)])+':\x20'+_0x6fb2a9[_0x2e73dd(0x158)](link,_0x14a707['path'],_0x6fb2a9['wWjTQ'](basename,_0x14a707[_0x2e73dd(0x178)])));}}if(_0x6fb2a9[_0x2e73dd(0x193)](_0x56f945[_0x2e73dd(0x190)],0x0)){console['log'](_0x6fb2a9['YvXEZ']);for(const _0x3972aa of _0x56f945){console[_0x2e73dd(0x188)]('\x20\x20\x20\x20'+bold(_0x3972aa['displayName'])+':\x20'+link(_0x3972aa['path'],basename(_0x3972aa[_0x2e73dd(0x178)])));}}}console[_0x2e73dd(0x188)]('\x0a---\x20Profiles\x20---');const {envs:_0x47a5c5,activeEnv:_0x285a76}=await getEnvironments();if(_0x6fb2a9['rKriY'](_0x47a5c5['length'],0x0))console[_0x2e73dd(0x188)](_0x2e73dd(0x161)),console[_0x2e73dd(0x188)]('\x20\x20Run:\x20ranger\x20profile\x20add\x20<profile-name>');else{for(const _0x20deea of _0x47a5c5){const _0x3a0b7b=_0x20deea[_0x2e73dd(0x1ac)]?'\x20(active)':'',_0x5bdbf4=_0x20deea[_0x2e73dd(0x172)]?_0x6fb2a9['Ivxdi']:_0x20deea[_0x2e73dd(0x18d)]?'plaintext':'none';console[_0x2e73dd(0x188)]('\x20\x20'+bold(_0x20deea[_0x2e73dd(0x1b7)])+_0x3a0b7b),console[_0x2e73dd(0x188)]('\x20\x20\x20\x20Auth:\x20'+_0x5bdbf4),_0x20deea['settingsPath']!==_0x6fb2a9['vLRhB']&&console[_0x2e73dd(0x188)](_0x2e73dd(0x173)+_0x6fb2a9[_0x2e73dd(0x164)](link,_0x20deea['settingsPath'],_0x6fb2a9['YNHEg'](basename,_0x20deea[_0x2e73dd(0x15d)])));}!_0x285a76&&(console['log'](_0x2e73dd(0x160)),console[_0x2e73dd(0x188)]('\x20\x20Run:\x20ranger\x20profile\x20use\x20<profile-name>\x20\x20(available:\x20'+_0x47a5c5['map'](_0x291722=>_0x291722[_0x2e73dd(0x1b7)])[_0x2e73dd(0x177)](',\x20')+')'));}console['log']('');}
@@ -1 +1 @@
1
- const _0x3edbc4=_0x38f3;(function(_0x3cc98b,_0x356ebc){const _0x3cdf27=_0x38f3,_0x5c88fc=_0x3cc98b();while(!![]){try{const _0x536537=parseInt(_0x3cdf27(0x176))/0x1*(parseInt(_0x3cdf27(0x186))/0x2)+parseInt(_0x3cdf27(0x152))/0x3+parseInt(_0x3cdf27(0x141))/0x4*(parseInt(_0x3cdf27(0x180))/0x5)+parseInt(_0x3cdf27(0x165))/0x6*(-parseInt(_0x3cdf27(0x188))/0x7)+parseInt(_0x3cdf27(0x184))/0x8*(-parseInt(_0x3cdf27(0x14e))/0x9)+parseInt(_0x3cdf27(0x18b))/0xa*(parseInt(_0x3cdf27(0x162))/0xb)+-parseInt(_0x3cdf27(0x16a))/0xc;if(_0x536537===_0x356ebc)break;else _0x5c88fc['push'](_0x5c88fc['shift']());}catch(_0x4d8365){_0x5c88fc['push'](_0x5c88fc['shift']());}}}(_0x4d46,0x36ea3));import{spawn}from'child_process';function _0x38f3(_0x27ee43,_0x2f2c8d){_0x27ee43=_0x27ee43-0x13f;const _0x4d46a3=_0x4d46();let _0x38f3f5=_0x4d46a3[_0x27ee43];return _0x38f3f5;}import{existsSync}from'fs';import{readFile,writeFile}from'fs/promises';import{installSkill,removeSkill,RANGER_MANAGED_SKILLS,DEPRECATED_SKILLS}from'./utils/skills.js';import{PACKAGE_NAME,getCurrentVersion,getLatestVersion,compareVersions}from'./utils/version.js';import{getProjectRoot,getSkillsDir}from'./utils/claudeConfig.js';import{getOpencodeSkillsDir}from'./utils/opencodeConfig.js';import{join}from'path';import{getRangerDir}from'./utils/rangerRoot.js';import{getPluginInfo,isMarketplaceAdded,isPluginInstalled}from'./utils/claudePlugin.js';const CLAUDE_COMMAND_TIMEOUT_MS=0x1d4c0;async function runCommand(_0x3fa286,_0x15d4c1,_0x1cb032){const _0x4817b0=_0x38f3,_0x5ba5fe={'DyEru':function(_0x87e47,_0x27925a){return _0x87e47(_0x27925a);},'Olaub':function(_0x4c2d43,_0x426200){return _0x4c2d43===_0x426200;},'buOVb':'ignore','ojgeH':_0x4817b0(0x143),'LfJpb':function(_0x30a499,_0x195d46){return _0x30a499===_0x195d46;},'SyyON':'win32'};return new Promise(_0x381c58=>{const _0x4661bf=_0x4817b0;let _0x1ef498=![],_0x1d3d81;const _0x3151f1=_0x30a68a=>{if(_0x1ef498)return;_0x1ef498=!![],_0x1d3d81&&clearTimeout(_0x1d3d81),_0x381c58(_0x30a68a);},_0x148df4=spawn(_0x3fa286,_0x15d4c1,{'stdio':[_0x5ba5fe['buOVb'],_0x1cb032?.['stdio']??_0x4661bf(0x143),_0x1cb032?.[_0x4661bf(0x179)]??_0x5ba5fe[_0x4661bf(0x15b)]],'cwd':_0x1cb032?.['cwd'],'shell':_0x5ba5fe[_0x4661bf(0x17d)](process[_0x4661bf(0x159)],_0x5ba5fe[_0x4661bf(0x191)])});_0x1d3d81=_0x1cb032?.['timeoutMs']?setTimeout(()=>{const _0x28d588=_0x4661bf;_0x148df4['kill'](),_0x148df4[_0x28d588(0x17e)](),_0x3151f1(![]);},_0x1cb032[_0x4661bf(0x166)]):undefined,_0x148df4['on']('close',_0x39f857=>{const _0x4b91b4=_0x4661bf;_0x5ba5fe[_0x4b91b4(0x192)](_0x3151f1,_0x5ba5fe[_0x4b91b4(0x17c)](_0x39f857,0x0));}),_0x148df4['on']('error',()=>{_0x3151f1(![]);});});}export function resolveDistTag(_0x1cba0f){const _0x4d136f=_0x38f3,_0x2f2487={'HqTgz':_0x4d136f(0x164)};if(/-alpha\./i['test'](_0x1cba0f))return _0x2f2487[_0x4d136f(0x18f)];if(/-beta\./i['test'](_0x1cba0f))return'beta';if(/-rc\./i[_0x4d136f(0x145)](_0x1cba0f))return'rc';return'latest';}async function runInstall(_0x1b31f3='latest'){const _0x4b0b01=_0x38f3,_0x148b71={'HNFLu':function(_0x396d41,_0x2d3172,_0x99fb0b,_0x57975d){return _0x396d41(_0x2d3172,_0x99fb0b,_0x57975d);},'UKfEO':_0x4b0b01(0x160),'saTBZ':'ignore','ZARaa':'close'};return new Promise(_0x24676b=>{const _0x347105=_0x4b0b01;console[_0x347105(0x163)](_0x347105(0x144)+PACKAGE_NAME+'@'+_0x1b31f3+_0x347105(0x15a));const _0x43abec=_0x148b71['HNFLu'](spawn,'npm',[_0x148b71['UKfEO'],'-g',PACKAGE_NAME+'@'+_0x1b31f3],{'stdio':[_0x148b71[_0x347105(0x173)],_0x347105(0x143),_0x347105(0x143)],'shell':process['platform']==='win32'});_0x43abec['on'](_0x148b71[_0x347105(0x151)],_0x2cdec8=>{_0x24676b(_0x2cdec8===0x0);}),_0x43abec['on']('error',()=>{_0x24676b(![]);});});}async function updateClaudeMarketplace(){const _0x1ee044=_0x38f3,_0xbd7908={'FWyna':_0x1ee044(0x15e),'TfVsw':_0x1ee044(0x13f),'Cmnyz':'marketplace','nWJRI':_0x1ee044(0x168),'QGTyO':'Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).'},_0x415954=await runCommand(_0xbd7908['FWyna'],[_0xbd7908[_0x1ee044(0x18c)],_0xbd7908['Cmnyz'],'update',_0xbd7908[_0x1ee044(0x18e)]],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x415954)throw new Error(_0xbd7908[_0x1ee044(0x189)]);}async function updateClaudePlugin(_0x1d2c40=_0x3edbc4(0x16d)){const _0x6f5149=_0x3edbc4,_0x14d6a6={'dYwAc':'plugin','cJnoO':_0x6f5149(0x14a),'lrnKW':function(_0x15c3c3,_0xf45ac7){return _0x15c3c3!==_0xf45ac7;},'sFxlX':function(_0x25f3a3,_0x332cf0,_0x5c868c,_0x45a126){return _0x25f3a3(_0x332cf0,_0x5c868c,_0x45a126);},'WCjXU':'project','bnvHt':function(_0x4e4d79,_0x3531d1){return _0x4e4d79===_0x3531d1;},'Skmlc':'local'},_0x31bfca=[_0x14d6a6[_0x6f5149(0x14b)],'update',_0x14d6a6[_0x6f5149(0x16e)]];_0x14d6a6['lrnKW'](_0x1d2c40,'user')&&_0x31bfca[_0x6f5149(0x171)](_0x6f5149(0x14f),_0x1d2c40);const _0x50e0fa=await _0x14d6a6['sFxlX'](runCommand,'claude',_0x31bfca,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x1d2c40===_0x14d6a6[_0x6f5149(0x154)]||_0x14d6a6[_0x6f5149(0x158)](_0x1d2c40,_0x14d6a6['Skmlc'])?getProjectRoot():undefined});if(!_0x50e0fa)throw new Error('Claude\x20plugin\x20update\x20failed\x20for\x20'+_0x1d2c40+'\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}function isSkillInstalled(_0x28b8fd,_0x230129,_0x5ba117){const _0x5ae101=_0x3edbc4,_0x409f0b={'Zvsko':function(_0xa2383a,_0x49c5b3){return _0xa2383a===_0x49c5b3;},'gjMqN':_0x5ae101(0x15f),'CzNwU':function(_0x4b7840,_0x50a19b){return _0x4b7840(_0x50a19b);},'hyiWh':function(_0x1dc965,_0x3df063){return _0x1dc965(_0x3df063);}},_0x1e9ae6=_0x409f0b[_0x5ae101(0x15c)](_0x5ba117,_0x409f0b['gjMqN'])?getOpencodeSkillsDir(_0x230129):_0x409f0b['CzNwU'](getSkillsDir,_0x230129),_0xde8d2=join(_0x1e9ae6,_0x28b8fd);return _0x409f0b['hyiWh'](existsSync,_0xde8d2);}function _0x4d46(){const _0xb52e97=['DhWnv','splice','36CfKzlb','--scope','GejMy','ZARaa','1047618qzahAK','active-feature.txt','WCjXU','\x0aClaude\x20plugin\x20updated\x20(local\x20scope).','DhOpX','dWYyM','bnvHt','platform','...\x0a','ojgeH','Zvsko','\x0aClaude\x20plugin\x20updated\x20(project\x20scope).','claude','opencode','install','\x20ranger-managed\x20skill(s)...','451FiCQYz','log','alpha','138aHfcIJ','timeoutMs','trim','trailhead','\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','7419300MCAAlL','warn','QfBVx','user','cJnoO','Latest\x20version:\x20\x20','\x20channel.','push','\x0aCurrent\x20version:\x20','saTBZ','length','scope','4083qxOISP','mTaOr','Rxhuw','stdio','local','mPVht','Olaub','LfJpb','unref','.gitignore','686945QwbqqO','project','error','Attempting\x20install\x20anyway...','863368gZmBBi','utf-8','206ZYJaqI','FisnD','100219wUTxmW','QGTyO','\x0aYour\x20version\x20(','102990UbryzG','TfVsw','endsWith','nWJRI','HqTgz','\x0aClaude\x20marketplace\x20updated\x20(trailhead).','SyyON','DyEru','plugin','NUUAG','12HcmlZE','PkFxW','inherit','\x0aInstalling\x20','test','\x0a✅\x20Update\x20complete!',').\x20Staying\x20on\x20','DcYxS',')\x20is\x20newer\x20than\x20the\x20published\x20version\x20(','ranger@trailhead','dYwAc'];_0x4d46=function(){return _0xb52e97;};return _0x4d46();}async function reinstallSkills(_0x132f43){const _0x1b49a3=_0x3edbc4,_0x5d3cc9={'grGbi':'claude','MbssX':function(_0x1bc204,_0x34b5dc,_0x44167c,_0x58fcf7){return _0x1bc204(_0x34b5dc,_0x44167c,_0x58fcf7);},'DhOpX':function(_0x41a526,_0xd1ad65){return _0x41a526===_0xd1ad65;},'KBfjd':'\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.'},_0x469204=[_0x1b49a3(0x181),'user'],_0x1b86a1=[];for(const _0x330278 of _0x469204){for(const _0x4f36dc of RANGER_MANAGED_SKILLS){isSkillInstalled(_0x4f36dc,_0x330278,_0x5d3cc9['grGbi'])&&_0x1b86a1['push']({'skillName':_0x4f36dc,'level':_0x330278,'platform':'claude'}),_0x5d3cc9['MbssX'](isSkillInstalled,_0x4f36dc,_0x330278,'opencode')&&_0x1b86a1['push']({'skillName':_0x4f36dc,'level':_0x330278,'platform':'opencode'});}}for(const _0x15189a of _0x469204){for(const _0x2f820d of DEPRECATED_SKILLS){await removeSkill(_0x2f820d,_0x15189a);}}if(_0x5d3cc9[_0x1b49a3(0x156)](_0x1b86a1[_0x1b49a3(0x174)],0x0)){console[_0x1b49a3(0x163)](_0x5d3cc9['KBfjd']);return;}console[_0x1b49a3(0x163)]('\x0aReinstalling\x20'+_0x1b86a1['length']+_0x1b49a3(0x161));for(const {skillName:_0x30eeab,level:_0x1c4329,platform:_0x32d5bf}of _0x1b86a1){try{await installSkill(_0x30eeab,{'level':_0x1c4329,'cliVersion':_0x132f43,'platform':_0x32d5bf});}catch(_0x19214f){console[_0x1b49a3(0x16b)]('\x20\x20Failed\x20to\x20reinstall\x20'+_0x32d5bf+'\x20'+_0x1c4329+'\x20skill\x20'+_0x30eeab+':',_0x19214f);}}}async function ensureActiveProfileGitignored(){const _0x3d64d9=_0x3edbc4,_0x3a5539={'BYrCf':function(_0x28920b){return _0x28920b();},'fWejc':_0x3d64d9(0x17f),'wyWGT':function(_0x3c9e25,_0x4c91c3){return _0x3c9e25(_0x4c91c3);},'wSmJc':'active-profile.txt','QfBVx':_0x3d64d9(0x185)},_0x5345aa=join(_0x3a5539['BYrCf'](getRangerDir),_0x3a5539['fWejc']);if(!_0x3a5539['wyWGT'](existsSync,_0x5345aa))return![];let _0x252fb6='';try{_0x252fb6=await readFile(_0x5345aa,'utf-8');}catch{return![];}const _0x474211=_0x252fb6['split'](/\r?\n/);if(_0x474211['some'](_0x5602a5=>_0x5602a5[_0x3d64d9(0x167)]()==='active-profile.txt'))return![];let _0x45ce9a=_0x474211['findIndex'](_0xfd72af=>_0xfd72af[_0x3d64d9(0x167)]()===_0x3d64d9(0x153));_0x45ce9a===-0x1&&(_0x45ce9a=_0x474211['length']);_0x474211[_0x3d64d9(0x14d)](_0x45ce9a,0x0,_0x3a5539['wSmJc']);let _0x288e98=_0x474211['join']('\x0a');!_0x288e98[_0x3d64d9(0x18d)]('\x0a')&&(_0x288e98+='\x0a');try{await writeFile(_0x5345aa,_0x288e98,_0x3a5539[_0x3d64d9(0x16c)]);}catch{return![];}return!![];}export async function update(){const _0x58051a=_0x3edbc4,_0x23ebe7={'Rxhuw':function(_0x58f723){return _0x58f723();},'PkFxW':function(_0x1b11d2,_0x3d068a){return _0x1b11d2(_0x3d068a);},'NUUAG':function(_0xe9ca70){return _0xe9ca70();},'mTaOr':_0x58051a(0x183),'XCstK':_0x58051a(0x169),'mPVht':'Update\x20failed.','dWYyM':_0x58051a(0x14a),'jgTuT':function(_0x553c8d){return _0x553c8d();},'FisnD':function(_0x220ef9,_0x269eaa){return _0x220ef9===_0x269eaa;},'DhWnv':'project','DcYxS':function(_0x5e7700,_0x409199){return _0x5e7700===_0x409199;},'GejMy':'\x0aClaude\x20plugin\x20updated\x20(user\x20scope).'},_0x190f9f=_0x23ebe7[_0x58051a(0x178)](getCurrentVersion);console['log'](_0x58051a(0x172)+_0x190f9f);const _0x14fddc=resolveDistTag(_0x190f9f);if(_0x14fddc!=='latest'){console['log']('Prerelease\x20channel\x20detected\x20(@'+_0x14fddc+_0x58051a(0x147)+_0x14fddc+'\x20—\x20reinstalling\x20@'+_0x14fddc+'...');const _0x459699=await runInstall(_0x14fddc);if(!_0x459699)throw new Error('Update\x20failed\x20for\x20@'+_0x14fddc+_0x58051a(0x170));const _0x33f4e8=getCurrentVersion();console['log']('\x0aSuccessfully\x20installed\x20'+PACKAGE_NAME+'@'+_0x14fddc+'.'),await _0x23ebe7[_0x58051a(0x142)](reinstallSkills,_0x33f4e8),await _0x23ebe7['NUUAG'](ensureActiveProfileGitignored),console['log'](_0x58051a(0x146));return;}console['log']('Checking\x20for\x20updates...');const _0xe6541=getLatestVersion();let _0x2bf084=_0x190f9f;if(!_0xe6541['version']){console[_0x58051a(0x16b)]('\x0aCould\x20not\x20check\x20latest\x20version:\x20'+_0xe6541['error']),console[_0x58051a(0x163)](_0x23ebe7[_0x58051a(0x177)]);const _0x2869af=await _0x23ebe7[_0x58051a(0x140)](runInstall);if(_0x2869af)console['log']('\x0aSuccessfully\x20installed\x20latest\x20version.'),_0x2bf084=getCurrentVersion();else throw new Error('Update\x20failed:\x20'+_0xe6541[_0x58051a(0x182)]);}else{const _0x2cafa0=_0xe6541['version'];console[_0x58051a(0x163)](_0x58051a(0x16f)+_0x2cafa0);const _0x1f086c=compareVersions(_0x190f9f,_0x2cafa0);if(_0x1f086c===0x0)console['log'](_0x23ebe7['XCstK']);else{if(_0x1f086c<0x0)console[_0x58051a(0x163)](_0x58051a(0x18a)+_0x190f9f+_0x58051a(0x149)+_0x2cafa0+').');else{const _0x3ecc25=await _0x23ebe7[_0x58051a(0x140)](runInstall);if(_0x3ecc25)console[_0x58051a(0x163)]('\x0aSuccessfully\x20updated\x20to\x20version\x20'+_0x2cafa0),_0x2bf084=_0x2cafa0;else throw new Error(_0x23ebe7[_0x58051a(0x17b)]);}}}await reinstallSkills(_0x2bf084);const _0x1d576a=await isMarketplaceAdded('trailhead'),_0xa158e4=await isPluginInstalled(_0x23ebe7[_0x58051a(0x157)]);_0x1d576a&&(await _0x23ebe7['jgTuT'](updateClaudeMarketplace),console['log'](_0x58051a(0x190)));if(_0xa158e4){const _0x3ca3c9=await _0x23ebe7['PkFxW'](getPluginInfo,_0x58051a(0x14a)),_0x4acc3f=_0x3ca3c9?.[_0x58051a(0x175)]??'user';await updateClaudePlugin(_0x4acc3f);if(_0x23ebe7[_0x58051a(0x187)](_0x4acc3f,_0x23ebe7[_0x58051a(0x14c)]))console['log'](_0x58051a(0x15d));else _0x23ebe7[_0x58051a(0x148)](_0x4acc3f,_0x58051a(0x17a))?console['log'](_0x58051a(0x155)):console[_0x58051a(0x163)](_0x23ebe7[_0x58051a(0x150)]);}const _0x2f3d5e=await ensureActiveProfileGitignored();console['log'](_0x58051a(0x146));}
1
+ const _0x58f103=_0xf7e3;(function(_0x237841,_0x5e5cb3){const _0x5fa71a=_0xf7e3,_0xcbadd6=_0x237841();while(!![]){try{const _0x8c4a4d=-parseInt(_0x5fa71a(0xd8))/0x1*(-parseInt(_0x5fa71a(0xf4))/0x2)+parseInt(_0x5fa71a(0xda))/0x3+parseInt(_0x5fa71a(0xe8))/0x4*(parseInt(_0x5fa71a(0xec))/0x5)+-parseInt(_0x5fa71a(0xe6))/0x6+-parseInt(_0x5fa71a(0xb3))/0x7*(parseInt(_0x5fa71a(0xeb))/0x8)+parseInt(_0x5fa71a(0xb5))/0x9*(-parseInt(_0x5fa71a(0xee))/0xa)+parseInt(_0x5fa71a(0xc8))/0xb*(-parseInt(_0x5fa71a(0xf2))/0xc);if(_0x8c4a4d===_0x5e5cb3)break;else _0xcbadd6['push'](_0xcbadd6['shift']());}catch(_0x312056){_0xcbadd6['push'](_0xcbadd6['shift']());}}}(_0x18b5,0x3d08a));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile,writeFile}from'fs/promises';import{installSkill,removeSkill,RANGER_MANAGED_SKILLS,DEPRECATED_SKILLS}from'./utils/skills.js';function _0x18b5(){const _0x13c145=['push','\x0aSuccessfully\x20updated\x20to\x20version\x20','\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','claude','update','pZgof','\x0aCurrent\x20version:\x20','test','\x20—\x20reinstalling\x20@','YUNeS','112ahmgic',')\x20is\x20newer\x20than\x20the\x20published\x20version\x20(','153pYIHad','wDjkk','yVvAA','win32','MWZXT',').\x20Staying\x20on\x20','\x0aClaude\x20marketplace\x20updated\x20(trailhead).','WzIbl','error','ryWud','\x0aReinstalling\x20','latest','Prerelease\x20channel\x20detected\x20(@','BzWiN','beta','npm','user','BFoot','splice','66pBqtTX','BXOIv','enpIK','active-profile.txt','kill','\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','TKziF','omlnU','Attempting\x20install\x20anyway...','platform','some','jFFYF','onCMx','\x0aInstalling\x20','PxUin','project','106oCcRQY','BxEaJ','1334295rfssAh','Orklc','Update\x20failed.','active-feature.txt','\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','Update\x20failed:\x20','ignore','plugin','mCgrO','timeoutMs','inherit','trim','858330fgWtxl','Xdyls','1096vVSgMQ','version','jlVvF','188008jYsyHp','7330Xwtbvj','warn','78640xRtDDO','\x20skill\x20','KsJVX','yQUhW','819768ijBBQh','ZuJeF','8796zvPdBN','RuwJY','BmjiS','\x0aCould\x20not\x20check\x20latest\x20version:\x20','--scope','EZtWY','ranger@trailhead','dTeTM','VusAH','trailhead','\x0aClaude\x20plugin\x20updated\x20(local\x20scope).','mlqkF','hCgfb','log','Ntuxb','...','opencode','Latest\x20version:\x20\x20','ELBMQ'];_0x18b5=function(){return _0x13c145;};return _0x18b5();}function _0xf7e3(_0x4bc787,_0x2c90f5){_0x4bc787=_0x4bc787-0xa5;const _0x18b590=_0x18b5();let _0xf7e312=_0x18b590[_0x4bc787];return _0xf7e312;}import{PACKAGE_NAME,getCurrentVersion,getLatestVersion,compareVersions}from'./utils/version.js';import{getProjectRoot,getSkillsDir}from'./utils/claudeConfig.js';import{getOpencodeSkillsDir}from'./utils/opencodeConfig.js';import{join}from'path';import{getRangerDir}from'./utils/rangerRoot.js';import{getPluginInfo,isMarketplaceAdded,isPluginInstalled}from'./utils/claudePlugin.js';const CLAUDE_COMMAND_TIMEOUT_MS=0x1d4c0;async function runCommand(_0x31bac2,_0x1719e6,_0x49c41f){const _0xb7c8e8=_0xf7e3,_0x1a3a0e={'pZgof':function(_0x158dda,_0x33615b,_0x9bce5d,_0x4f68ed){return _0x158dda(_0x33615b,_0x9bce5d,_0x4f68ed);},'omlnU':_0xb7c8e8(0xe0),'SgvOE':function(_0x2b0ed3,_0x207132){return _0x2b0ed3===_0x207132;},'yVvAA':function(_0x46b572,_0x3d1d60,_0xc58d88){return _0x46b572(_0x3d1d60,_0xc58d88);},'JtYBg':_0xb7c8e8(0xbd)};return new Promise(_0x2c09c5=>{const _0x49ef4e=_0xb7c8e8,_0x21221e={'dTeTM':function(_0xc3d507,_0x3adc28){return _0xc3d507===_0x3adc28;}};let _0x261c1f=![],_0x6ca1ba;const _0x54752f=_0x3ec348=>{if(_0x261c1f)return;_0x261c1f=!![],_0x6ca1ba&&clearTimeout(_0x6ca1ba),_0x2c09c5(_0x3ec348);},_0x531b9a=_0x1a3a0e[_0x49ef4e(0xae)](spawn,_0x31bac2,_0x1719e6,{'stdio':[_0x1a3a0e[_0x49ef4e(0xcf)],_0x49c41f?.['stdio']??'inherit',_0x49c41f?.['stdio']??_0x49ef4e(0xe4)],'cwd':_0x49c41f?.['cwd'],'shell':_0x1a3a0e['SgvOE'](process[_0x49ef4e(0xd1)],_0x49ef4e(0xb8))});_0x6ca1ba=_0x49c41f?.[_0x49ef4e(0xe3)]?_0x1a3a0e[_0x49ef4e(0xb7)](setTimeout,()=>{const _0x1a1877=_0x49ef4e;_0x531b9a[_0x1a1877(0xcc)](),_0x531b9a['unref'](),_0x54752f(![]);},_0x49c41f['timeoutMs']):undefined,_0x531b9a['on']('close',_0x431e45=>{const _0x315751=_0x49ef4e;_0x54752f(_0x21221e[_0x315751(0xfb)](_0x431e45,0x0));}),_0x531b9a['on'](_0x1a3a0e['JtYBg'],()=>{_0x54752f(![]);});});}export function resolveDistTag(_0x4f0e1b){const _0x543903=_0xf7e3,_0xc63c43={'hCgfb':'alpha','OyBjC':_0x543903(0xc3)};if(/-alpha\./i[_0x543903(0xb0)](_0x4f0e1b))return _0xc63c43[_0x543903(0x100)];if(/-beta\./i['test'](_0x4f0e1b))return _0xc63c43['OyBjC'];if(/-rc\./i['test'](_0x4f0e1b))return'rc';return _0x543903(0xc0);}async function runInstall(_0xd64f01='latest'){const _0x14cb85=_0xf7e3,_0x3b7a15={'YUNeS':function(_0x446ebb,_0x1b45d2){return _0x446ebb(_0x1b45d2);},'RuwJY':function(_0x586dcf,_0x466622){return _0x586dcf===_0x466622;},'Orklc':function(_0x29b96b,_0x1685b4,_0x2cc9b1,_0x2c458f){return _0x29b96b(_0x1685b4,_0x2cc9b1,_0x2c458f);},'jFFYF':_0x14cb85(0xc4),'MWZXT':'ignore','yQUhW':'close','onCMx':_0x14cb85(0xbd)};return new Promise(_0x53945f=>{const _0x15f08e=_0x14cb85,_0x5f5811={'Xdyls':function(_0x1f082e,_0x8077d0){const _0x8af685=_0xf7e3;return _0x3b7a15[_0x8af685(0xb2)](_0x1f082e,_0x8077d0);},'yetGA':function(_0x4b0ab4,_0x79823a){const _0x3f5a6c=_0xf7e3;return _0x3b7a15[_0x3f5a6c(0xf5)](_0x4b0ab4,_0x79823a);}};console[_0x15f08e(0x101)](_0x15f08e(0xd5)+PACKAGE_NAME+'@'+_0xd64f01+'...\x0a');const _0x1d46b2=_0x3b7a15[_0x15f08e(0xdb)](spawn,_0x3b7a15[_0x15f08e(0xd3)],['install','-g',PACKAGE_NAME+'@'+_0xd64f01],{'stdio':[_0x3b7a15[_0x15f08e(0xb9)],'inherit',_0x15f08e(0xe4)],'shell':process[_0x15f08e(0xd1)]==='win32'});_0x1d46b2['on'](_0x3b7a15[_0x15f08e(0xf1)],_0xbc0e04=>{const _0xbbce62=_0x15f08e;_0x5f5811[_0xbbce62(0xe7)](_0x53945f,_0x5f5811['yetGA'](_0xbc0e04,0x0));}),_0x1d46b2['on'](_0x3b7a15[_0x15f08e(0xd4)],()=>{_0x53945f(![]);});});}async function updateClaudeMarketplace(){const _0x4ed340=_0xf7e3,_0x4fa02f={'EZtWY':'claude','mbrAt':_0x4ed340(0xe1),'BXOIv':'marketplace','LvUrB':_0x4ed340(0xad),'vTxGU':'Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).'},_0x22baae=await runCommand(_0x4fa02f[_0x4ed340(0xf9)],[_0x4fa02f['mbrAt'],_0x4fa02f[_0x4ed340(0xc9)],_0x4fa02f['LvUrB'],_0x4ed340(0xfd)],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x22baae)throw new Error(_0x4fa02f['vTxGU']);}async function updateClaudePlugin(_0x31aea0=_0x58f103(0xc5)){const _0x2896ef=_0x58f103,_0x1a064e={'utFTX':_0x2896ef(0xe1),'UqQDb':_0x2896ef(0xad),'Ntuxb':'ranger@trailhead','BmjiS':'claude','BzWiN':function(_0x5183e5,_0x560df5){return _0x5183e5===_0x560df5;},'sVvVD':_0x2896ef(0xd7),'JQjFJ':'local','XgbgS':function(_0x2da183){return _0x2da183();}},_0x47df5c=[_0x1a064e['utFTX'],_0x1a064e['UqQDb'],_0x1a064e[_0x2896ef(0x102)]];_0x31aea0!==_0x2896ef(0xc5)&&_0x47df5c[_0x2896ef(0xa9)](_0x2896ef(0xf8),_0x31aea0);const _0x457430=await runCommand(_0x1a064e[_0x2896ef(0xf6)],_0x47df5c,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x1a064e[_0x2896ef(0xc2)](_0x31aea0,_0x1a064e['sVvVD'])||_0x31aea0===_0x1a064e['JQjFJ']?_0x1a064e['XgbgS'](getProjectRoot):undefined});if(!_0x457430)throw new Error('Claude\x20plugin\x20update\x20failed\x20for\x20'+_0x31aea0+_0x2896ef(0xab));}function isSkillInstalled(_0x23fb05,_0x57e99a,_0xa5cfb5){const _0x27bdec=_0x58f103,_0x4567ff={'OvHdZ':'opencode','BFoot':function(_0x124ae7,_0x4ef273){return _0x124ae7(_0x4ef273);},'OljRN':function(_0x327ea4,_0x4c6673,_0x350dcd){return _0x327ea4(_0x4c6673,_0x350dcd);},'mCgrO':function(_0x48044b,_0x2e3ca3){return _0x48044b(_0x2e3ca3);}},_0x33af07=_0xa5cfb5===_0x4567ff['OvHdZ']?getOpencodeSkillsDir(_0x57e99a):_0x4567ff[_0x27bdec(0xc6)](getSkillsDir,_0x57e99a),_0x349283=_0x4567ff['OljRN'](join,_0x33af07,_0x23fb05);return _0x4567ff[_0x27bdec(0xe2)](existsSync,_0x349283);}async function reinstallSkills(_0x4b1a32){const _0x112f45=_0x58f103,_0x539cc8={'zJkeg':'project','mlqkF':'user','lplIr':_0x112f45(0xac),'jlVvF':'opencode','TKziF':function(_0x40001a,_0xc58b5d,_0x2eeee6){return _0x40001a(_0xc58b5d,_0x2eeee6);},'GYICA':function(_0x219940,_0x582729){return _0x219940===_0x582729;}},_0x1e853c=[_0x539cc8['zJkeg'],_0x539cc8[_0x112f45(0xff)]],_0x434dbd=[];for(const _0x2133db of _0x1e853c){for(const _0x253500 of RANGER_MANAGED_SKILLS){isSkillInstalled(_0x253500,_0x2133db,'claude')&&_0x434dbd['push']({'skillName':_0x253500,'level':_0x2133db,'platform':_0x539cc8['lplIr']}),isSkillInstalled(_0x253500,_0x2133db,_0x112f45(0xa6))&&_0x434dbd['push']({'skillName':_0x253500,'level':_0x2133db,'platform':_0x539cc8[_0x112f45(0xea)]});}}for(const _0x17f36a of _0x1e853c){for(const _0x37e964 of DEPRECATED_SKILLS){await _0x539cc8[_0x112f45(0xce)](removeSkill,_0x37e964,_0x17f36a);}}if(_0x539cc8['GYICA'](_0x434dbd['length'],0x0)){console['log'](_0x112f45(0xde));return;}console[_0x112f45(0x101)](_0x112f45(0xbf)+_0x434dbd['length']+'\x20ranger-managed\x20skill(s)...');for(const {skillName:_0x14c44b,level:_0x5da6ad,platform:_0x32772b}of _0x434dbd){try{await installSkill(_0x14c44b,{'level':_0x5da6ad,'cliVersion':_0x4b1a32,'platform':_0x32772b});}catch(_0x232ecf){console[_0x112f45(0xed)]('\x20\x20Failed\x20to\x20reinstall\x20'+_0x32772b+'\x20'+_0x5da6ad+_0x112f45(0xef)+_0x14c44b+':',_0x232ecf);}}}async function ensureActiveProfileGitignored(){const _0x306d28=_0x58f103,_0x55b2c9={'BQocn':function(_0x569b74,_0x4573ee,_0x3cb57f){return _0x569b74(_0x4573ee,_0x3cb57f);},'BxEaJ':'.gitignore','VusAH':'utf-8','OZNwS':_0x306d28(0xcb)},_0x5b411a=_0x55b2c9['BQocn'](join,getRangerDir(),_0x55b2c9[_0x306d28(0xd9)]);if(!existsSync(_0x5b411a))return![];let _0x3eb072='';try{_0x3eb072=await readFile(_0x5b411a,_0x55b2c9[_0x306d28(0xfc)]);}catch{return![];}const _0x128763=_0x3eb072['split'](/\r?\n/);if(_0x128763[_0x306d28(0xd2)](_0xfbfd35=>_0xfbfd35['trim']()===_0x306d28(0xcb)))return![];let _0x373edc=_0x128763['findIndex'](_0x56744c=>_0x56744c[_0x306d28(0xe5)]()===_0x306d28(0xdd));_0x373edc===-0x1&&(_0x373edc=_0x128763['length']);_0x128763[_0x306d28(0xc7)](_0x373edc,0x0,_0x55b2c9['OZNwS']);let _0x19f48a=_0x128763['join']('\x0a');!_0x19f48a['endsWith']('\x0a')&&(_0x19f48a+='\x0a');try{await writeFile(_0x5b411a,_0x19f48a,_0x55b2c9[_0x306d28(0xfc)]);}catch{return![];}return!![];}export async function update(){const _0x399b7c=_0x58f103,_0x4e0899={'KsJVX':function(_0x1d3d66,_0xefd358){return _0x1d3d66!==_0xefd358;},'zwhzr':function(_0x357e72,_0xa89976){return _0x357e72(_0xa89976);},'iKysi':function(_0x43d011,_0x4db33b){return _0x43d011(_0x4db33b);},'gcJpk':function(_0x147d74){return _0x147d74();},'wDjkk':'\x0a✅\x20Update\x20complete!','BrqdQ':_0x399b7c(0xd0),'PxUin':function(_0x35d14c){return _0x35d14c();},'wKjGf':function(_0x1e5773,_0x3fc576,_0x13e4b0){return _0x1e5773(_0x3fc576,_0x13e4b0);},'ELBMQ':'\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','ExmGh':'trailhead','helIV':function(_0xcf8694,_0x3e0011){return _0xcf8694(_0x3e0011);},'ZuJeF':'ranger@trailhead','ItuDZ':_0x399b7c(0xbb),'pSioQ':function(_0x1b761b,_0x196e97){return _0x1b761b(_0x196e97);},'ryWud':function(_0x555e5a,_0x1d0519){return _0x555e5a===_0x1d0519;},'abCgu':'project','WzIbl':'local','enpIK':_0x399b7c(0xfe),'UoRyZ':_0x399b7c(0xcd)},_0x5ed294=getCurrentVersion();console['log'](_0x399b7c(0xaf)+_0x5ed294);const _0x13528a=resolveDistTag(_0x5ed294);if(_0x4e0899[_0x399b7c(0xf0)](_0x13528a,_0x399b7c(0xc0))){console[_0x399b7c(0x101)](_0x399b7c(0xc1)+_0x13528a+_0x399b7c(0xba)+_0x13528a+_0x399b7c(0xb1)+_0x13528a+_0x399b7c(0xa5));const _0x1f4d1d=await _0x4e0899['zwhzr'](runInstall,_0x13528a);if(!_0x1f4d1d)throw new Error('Update\x20failed\x20for\x20@'+_0x13528a+'\x20channel.');const _0x865442=getCurrentVersion();console[_0x399b7c(0x101)]('\x0aSuccessfully\x20installed\x20'+PACKAGE_NAME+'@'+_0x13528a+'.'),await _0x4e0899['iKysi'](reinstallSkills,_0x865442),await _0x4e0899['gcJpk'](ensureActiveProfileGitignored),console[_0x399b7c(0x101)](_0x4e0899[_0x399b7c(0xb6)]);return;}console[_0x399b7c(0x101)]('Checking\x20for\x20updates...');const _0x1551c1=getLatestVersion();let _0x2b628a=_0x5ed294;if(!_0x1551c1[_0x399b7c(0xe9)]){console[_0x399b7c(0xed)](_0x399b7c(0xf7)+_0x1551c1[_0x399b7c(0xbd)]),console['log'](_0x4e0899['BrqdQ']);const _0x516070=await _0x4e0899[_0x399b7c(0xd6)](runInstall);if(_0x516070)console['log']('\x0aSuccessfully\x20installed\x20latest\x20version.'),_0x2b628a=getCurrentVersion();else throw new Error(_0x399b7c(0xdf)+_0x1551c1['error']);}else{const _0x3d47d2=_0x1551c1['version'];console['log'](_0x399b7c(0xa7)+_0x3d47d2);const _0x9c8c5c=_0x4e0899['wKjGf'](compareVersions,_0x5ed294,_0x3d47d2);if(_0x9c8c5c===0x0)console[_0x399b7c(0x101)](_0x4e0899[_0x399b7c(0xa8)]);else{if(_0x9c8c5c<0x0)console[_0x399b7c(0x101)]('\x0aYour\x20version\x20('+_0x5ed294+_0x399b7c(0xb4)+_0x3d47d2+').');else{const _0x57f9cb=await _0x4e0899['PxUin'](runInstall);if(_0x57f9cb)console['log'](_0x399b7c(0xaa)+_0x3d47d2),_0x2b628a=_0x3d47d2;else throw new Error(_0x399b7c(0xdc));}}}await reinstallSkills(_0x2b628a);const _0xa65c54=await isMarketplaceAdded(_0x4e0899['ExmGh']),_0x251e15=await _0x4e0899['helIV'](isPluginInstalled,_0x4e0899[_0x399b7c(0xf3)]);_0xa65c54&&(await updateClaudeMarketplace(),console[_0x399b7c(0x101)](_0x4e0899['ItuDZ']));if(_0x251e15){const _0x5749a6=await _0x4e0899['pSioQ'](getPluginInfo,_0x399b7c(0xfa)),_0x275228=_0x5749a6?.['scope']??_0x399b7c(0xc5);await _0x4e0899['helIV'](updateClaudePlugin,_0x275228);if(_0x4e0899[_0x399b7c(0xbe)](_0x275228,_0x4e0899['abCgu']))console[_0x399b7c(0x101)]('\x0aClaude\x20plugin\x20updated\x20(project\x20scope).');else _0x275228===_0x4e0899[_0x399b7c(0xbc)]?console[_0x399b7c(0x101)](_0x4e0899[_0x399b7c(0xca)]):console['log'](_0x4e0899['UoRyZ']);}const _0x4bea21=await _0x4e0899['gcJpk'](ensureActiveProfileGitignored);console[_0x399b7c(0x101)](_0x4e0899[_0x399b7c(0xb6)]);}
@@ -1 +1 @@
1
- (function(_0x1009ef,_0x131e88){var _0x4499ff=_0x4cce,_0x1ea6b3=_0x1009ef();while(!![]){try{var _0x583fa5=-parseInt(_0x4499ff(0x1f0))/0x1*(parseInt(_0x4499ff(0x1f8))/0x2)+-parseInt(_0x4499ff(0x1ec))/0x3*(parseInt(_0x4499ff(0x1eb))/0x4)+parseInt(_0x4499ff(0x1f2))/0x5+-parseInt(_0x4499ff(0x1ee))/0x6*(parseInt(_0x4499ff(0x1f4))/0x7)+-parseInt(_0x4499ff(0x1f5))/0x8+-parseInt(_0x4499ff(0x1ef))/0x9*(-parseInt(_0x4499ff(0x1f1))/0xa)+parseInt(_0x4499ff(0x1ed))/0xb*(parseInt(_0x4499ff(0x1f6))/0xc);if(_0x583fa5===_0x131e88)break;else _0x1ea6b3['push'](_0x1ea6b3['shift']());}catch(_0x1f4145){_0x1ea6b3['push'](_0x1ea6b3['shift']());}}}(_0x20f3,0xe0028));function _0x4cce(_0x5609df,_0x2707c7){_0x5609df=_0x5609df-0x1eb;var _0x20f332=_0x20f3();var _0x4cce4b=_0x20f332[_0x5609df];return _0x4cce4b;}export async function updateEnv(_0x4c6083,_0x590168,_0x16f6dd){var _0x18cb0c=_0x4cce,_0x3da309={'bIPnn':function(_0x5824ab,_0x9004ca){return _0x5824ab+_0x9004ca;},'lStCT':function(_0x257536,_0x5c92d9){return _0x257536+_0x5c92d9;},'jevfJ':'For\x20SSO/headed\x20login:\x20ranger\x20profile\x20add\x20<account-email>\x0a'};console[_0x18cb0c(0x1f3)](_0x3da309['bIPnn'](_0x3da309['lStCT'](_0x3da309['lStCT']('ranger\x20profile\x20update\x20writes\x20to\x20the\x20legacy\x20.ranger/\x20tree\x20which\x20is\x20no\x20longer\x20supported.\x0a'+'Cloud\x20profiles\x20own\x20canonical\x20session\x20state;\x20re-auth\x20via:\x0a','\x20\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--base-url\x20<url>\x0a'),_0x3da309['jevfJ']),'See:\x20docs/feature/cloud-profiles-old-vs-new-structure.md')),process[_0x18cb0c(0x1f7)](0x1);}function _0x20f3(){var _0x30a285=['88JBShjT','18RWjqxo','4217877REHDTh','4toxXGP','10OjEjAj','551140jPjdOo','error','4140339GxWFNM','14273352MVKpHI','9188232pBLzMA','exit','410506EVdlxE','1876284DcFLwj','9iQOLew'];_0x20f3=function(){return _0x30a285;};return _0x20f3();}
1
+ function _0x5c3a(){var _0x26c535=['4691480huWfqs','4YtHjyO','2932qmqvGz','exit','error','35hpazRj','BxOJA','PQrAe','Qnrdb','taoJD','3711129KxJnxm','158EilwOq','9oQZitx','16506930UGOqcb','9238856vJVyVq','6495050HGIexA','907482hTvSTZ'];_0x5c3a=function(){return _0x26c535;};return _0x5c3a();}function _0x2e67(_0x1c09a4,_0x1932c4){_0x1c09a4=_0x1c09a4-0x130;var _0x5c3ac2=_0x5c3a();var _0x2e670d=_0x5c3ac2[_0x1c09a4];return _0x2e670d;}(function(_0x44b3ce,_0x631c0e){var _0x2a15e1=_0x2e67,_0x43c163=_0x44b3ce();while(!![]){try{var _0x14f93b=-parseInt(_0x2a15e1(0x13f))/0x1*(-parseInt(_0x2a15e1(0x136))/0x2)+parseInt(_0x2a15e1(0x13e))/0x3*(-parseInt(_0x2a15e1(0x135))/0x4)+parseInt(_0x2a15e1(0x132))/0x5+-parseInt(_0x2a15e1(0x133))/0x6*(-parseInt(_0x2a15e1(0x139))/0x7)+-parseInt(_0x2a15e1(0x134))/0x8*(-parseInt(_0x2a15e1(0x140))/0x9)+-parseInt(_0x2a15e1(0x130))/0xa+parseInt(_0x2a15e1(0x131))/0xb;if(_0x14f93b===_0x631c0e)break;else _0x43c163['push'](_0x43c163['shift']());}catch(_0x430a13){_0x43c163['push'](_0x43c163['shift']());}}}(_0x5c3a,0xc987c));export async function updateEnv(_0x3feb5c,_0x5dcf00,_0x3a3150){var _0x3e63e7=_0x2e67,_0x26e2d2={'BxOJA':function(_0x2a46fd,_0x1cf387){return _0x2a46fd+_0x1cf387;},'PQrAe':function(_0x47c14b,_0x29d06d){return _0x47c14b+_0x29d06d;},'jpvnp':function(_0x4912ad,_0xdbdb44){return _0x4912ad+_0xdbdb44;},'taoJD':function(_0x50db0e,_0x549b4a){return _0x50db0e+_0x549b4a;},'RlPaQ':'ranger\x20profile\x20update\x20is\x20no\x20longer\x20supported.\x20To\x20refresh\x20authentication,\x0a','Qnrdb':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'};console[_0x3e63e7(0x138)](_0x26e2d2[_0x3e63e7(0x13a)](_0x26e2d2[_0x3e63e7(0x13b)](_0x26e2d2['jpvnp'](_0x26e2d2[_0x3e63e7(0x13d)](_0x26e2d2['RlPaQ'],'re-run\x20the\x20same\x20setup\x20that\x20created\x20the\x20profile:\x0a'),'\x0a')+_0x26e2d2[_0x3e63e7(0x13c)],'\x0a'),'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a')+'\x20\x20https://docs.ranger.net/main/concepts/profiles'),process[_0x3e63e7(0x137)](0x1);}
@@ -1 +1 @@
1
- (function(_0x5a19f2,_0x2930ef){const _0x29dec3=_0xd81a,_0x52cf0e=_0x5a19f2();while(!![]){try{const _0x560ace=parseInt(_0x29dec3(0xc6))/0x1+-parseInt(_0x29dec3(0xb9))/0x2*(-parseInt(_0x29dec3(0xbe))/0x3)+parseInt(_0x29dec3(0xba))/0x4+parseInt(_0x29dec3(0xbc))/0x5+parseInt(_0x29dec3(0xb8))/0x6*(parseInt(_0x29dec3(0xc1))/0x7)+parseInt(_0x29dec3(0xc2))/0x8*(-parseInt(_0x29dec3(0xc0))/0x9)+parseInt(_0x29dec3(0xc4))/0xa*(-parseInt(_0x29dec3(0xc3))/0xb);if(_0x560ace===_0x2930ef)break;else _0x52cf0e['push'](_0x52cf0e['shift']());}catch(_0x3f6e5c){_0x52cf0e['push'](_0x52cf0e['shift']());}}}(_0x329e,0x748de));import{join}from'path';function _0xd81a(_0x57c82f,_0x1f437b){_0x57c82f=_0x57c82f-0xb8;const _0x329ee5=_0x329e();let _0xd81add=_0x329ee5[_0x57c82f];return _0xd81add;}import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0x329e(){const _0xe42c16=['3351472TtbAAc','46717jAdcIr','2290svGhXy','`ranger\x20profile\x20add\x20','605932DhxFcP','1788sqtSgI','265332QLRkkt','1721508MyUxjz','log','2432520rMKvnG','QnYaA','6kNAMoD','lgfCK','9woBkRX','1897GfVHWk'];_0x329e=function(){return _0xe42c16;};return _0x329e();}import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';export async function useEnv(_0x3fdfb0){const _0x45915e=_0xd81a,_0x316564={'dkvel':'settings.json','QnYaA':function(_0x3fe742,_0x4873ca){return _0x3fe742(_0x4873ca);},'lgfCK':function(_0x2b3bcc,_0x1a8923){return _0x2b3bcc instanceof _0x1a8923;},'QVZdF':function(_0x27a577,_0x279930){return _0x27a577+_0x279930;}},_0x4b2771=getEnvDir(_0x3fdfb0),_0xe1b038=join(_0x4b2771,_0x316564['dkvel']),_0x95cee9=_0x316564['QnYaA'](existsSync,_0x4b2771)&&existsSync(_0xe1b038);if(_0x95cee9){await _0x316564[_0x45915e(0xbd)](writeActiveProfileName,_0x3fdfb0),console[_0x45915e(0xbb)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x3fdfb0+'\x22');return;}let _0x30b00c=null,_0x58e579=![];try{_0x30b00c=await fetchCloudProfile(_0x3fdfb0);if(!_0x30b00c)_0x58e579=!![];}catch(_0x1eaf88){_0x316564[_0x45915e(0xbf)](_0x1eaf88,ApiError)&&_0x1eaf88['status']===0x194&&(_0x58e579=!![]);}if(_0x58e579)throw new Error(_0x316564['QVZdF']('Profile\x20\x22'+_0x3fdfb0+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20'+'Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20',_0x45915e(0xc5)+_0x3fdfb0+'`\x20to\x20create\x20one.'));await _0x316564['QnYaA'](writeActiveProfileName,_0x3fdfb0),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x3fdfb0+'\x22');}
1
+ (function(_0x2916c1,_0x2fdd7f){const _0x574b32=_0x4390,_0x4ea02c=_0x2916c1();while(!![]){try{const _0x310494=-parseInt(_0x574b32(0x1c1))/0x1+-parseInt(_0x574b32(0x1b3))/0x2+-parseInt(_0x574b32(0x1b9))/0x3*(parseInt(_0x574b32(0x1ba))/0x4)+parseInt(_0x574b32(0x1b7))/0x5+-parseInt(_0x574b32(0x1bd))/0x6*(parseInt(_0x574b32(0x1c3))/0x7)+parseInt(_0x574b32(0x1c0))/0x8*(parseInt(_0x574b32(0x1c4))/0x9)+-parseInt(_0x574b32(0x1b8))/0xa*(-parseInt(_0x574b32(0x1be))/0xb);if(_0x310494===_0x2fdd7f)break;else _0x4ea02c['push'](_0x4ea02c['shift']());}catch(_0x55d162){_0x4ea02c['push'](_0x4ea02c['shift']());}}}(_0x435e,0x35e72));import{join}from'path';import{existsSync}from'fs';function _0x4390(_0x14b12f,_0x35e76e){_0x14b12f=_0x14b12f-0x1b3;const _0x435ec3=_0x435e();let _0x4390d9=_0x435ec3[_0x14b12f];return _0x4390d9;}import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x435e(){const _0x2dd8dc=['227466FiYfaZ','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20','10276WNVKNv','481626HmKUOj','438796LdmPdB','`\x20to\x20create\x20one.','`ranger\x20profile\x20add\x20','status','1875490olNBrC','4230hNqtFT','267OXnFZE','3044QSzxde','log','PHdFa','744WidnGv','5753kbaFdp','Profile\x20\x22','48mviZuS'];_0x435e=function(){return _0x2dd8dc;};return _0x435e();}export async function useEnv(_0x1f8445){const _0x5aef10=_0x4390,_0xb9fdd9={'ROSoO':function(_0xc29c4a,_0x2bea20){return _0xc29c4a(_0x2bea20);},'PHdFa':function(_0x4c412c,_0xf3de08,_0x3b2e08){return _0x4c412c(_0xf3de08,_0x3b2e08);},'dnlUU':function(_0x2bc6fd,_0x207d2f){return _0x2bc6fd instanceof _0x207d2f;}},_0x44f9f7=_0xb9fdd9['ROSoO'](getEnvDir,_0x1f8445),_0xe64382=_0xb9fdd9[_0x5aef10(0x1bc)](join,_0x44f9f7,'settings.json'),_0x206492=existsSync(_0x44f9f7)&&existsSync(_0xe64382);if(_0x206492){await writeActiveProfileName(_0x1f8445),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x1f8445+'\x22');return;}let _0x3c5624=null,_0x437fd6=![];try{_0x3c5624=await fetchCloudProfile(_0x1f8445);if(!_0x3c5624)_0x437fd6=!![];}catch(_0x3f6c2d){_0xb9fdd9['dnlUU'](_0x3f6c2d,ApiError)&&_0x3f6c2d[_0x5aef10(0x1b6)]===0x194&&(_0x437fd6=!![]);}if(_0x437fd6)throw new Error(_0x5aef10(0x1bf)+_0x1f8445+_0x5aef10(0x1c2)+'Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'+(_0x5aef10(0x1b5)+_0x1f8445+_0x5aef10(0x1b4)));await writeActiveProfileName(_0x1f8445),console[_0x5aef10(0x1bb)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x1f8445+'\x22');}
@@ -1 +1 @@
1
- const _0x52db48=_0x30ac;(function(_0x3fe01d,_0x8d1c5c){const _0x4cc9e7=_0x30ac,_0x238196=_0x3fe01d();while(!![]){try{const _0x26af80=-parseInt(_0x4cc9e7(0x1b2))/0x1*(parseInt(_0x4cc9e7(0x1b0))/0x2)+parseInt(_0x4cc9e7(0x1ab))/0x3+parseInt(_0x4cc9e7(0x1a9))/0x4+-parseInt(_0x4cc9e7(0x1ac))/0x5*(parseInt(_0x4cc9e7(0x1af))/0x6)+parseInt(_0x4cc9e7(0x1a5))/0x7*(parseInt(_0x4cc9e7(0x1ad))/0x8)+-parseInt(_0x4cc9e7(0x1a7))/0x9+parseInt(_0x4cc9e7(0x1a6))/0xa*(parseInt(_0x4cc9e7(0x1ae))/0xb);if(_0x26af80===_0x8d1c5c)break;else _0x238196['push'](_0x238196['shift']());}catch(_0x31c289){_0x238196['push'](_0x238196['shift']());}}}(_0x24f8,0xe223f));import{existsSync}from'fs';function _0x30ac(_0x3722bf,_0x290a38){_0x3722bf=_0x3722bf-0x1a3;const _0x24f8d8=_0x24f8();let _0x30ac02=_0x24f8d8[_0x3722bf];return _0x30ac02;}import{readFile}from'fs/promises';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';import{readLastProfile,writeLastProfile}from'./projectsConfig.js';const LEGACY_ACTIVE_PROFILE_FILE=_0x52db48(0x1a4),LEGACY_ACTIVE_ENV_FILE='active-env.txt';function _0x24f8(){const _0x51e593=['cwd','active-profile.txt','28HzyjPu','18470OyNgFE','14603436FYGPJA','sdviw','2174444TzrNwv','XSpUv','26076qiKRAg','105iHrJsD','3273568xRQPIw','22187MgliuK','486654NOHatm','3324644oAHjhh','pcWMZ','1YadgGH'];_0x24f8=function(){return _0x51e593;};return _0x24f8();}function readLegacyActiveProfileFile(){const _0x439feb=_0x52db48,_0x3979e5={'EZwiM':function(_0x4024b0,_0x4e71c0,_0x253169){return _0x4024b0(_0x4e71c0,_0x253169);},'pcWMZ':function(_0x2066d8){return _0x2066d8();}},_0x47b398=[_0x3979e5['EZwiM'](join,getRangerDir(),LEGACY_ACTIVE_PROFILE_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_PROFILE_FILE),join(_0x3979e5[_0x439feb(0x1b1)](getRangerDir),LEGACY_ACTIVE_ENV_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_ENV_FILE)];for(const _0x243327 of _0x47b398){if(existsSync(_0x243327))return _0x243327;}return null;}export async function readActiveProfileName(){const _0x5637ac=_0x52db48,_0x333eea={'sdviw':'utf-8'},_0x5d956f=readLastProfile(process[_0x5637ac(0x1a3)]());if(_0x5d956f)return _0x5d956f;const _0x18947a=readLegacyActiveProfileFile();if(!_0x18947a)return null;try{return(await readFile(_0x18947a,_0x333eea[_0x5637ac(0x1a8)]))['trim']()||null;}catch{return null;}}export async function writeActiveProfileName(_0x34a107){const _0x4c9a2c=_0x52db48,_0x577f85={'XSpUv':function(_0x15f18d,_0x362201,_0x5b35dc){return _0x15f18d(_0x362201,_0x5b35dc);}};_0x577f85[_0x4c9a2c(0x1aa)](writeLastProfile,process['cwd'](),_0x34a107);}
1
+ const _0x1072f3=_0x4a62;(function(_0x51238d,_0x41015d){const _0x58025d=_0x4a62,_0x2317c6=_0x51238d();while(!![]){try{const _0x2ccd30=parseInt(_0x58025d(0x10f))/0x1+-parseInt(_0x58025d(0x113))/0x2*(parseInt(_0x58025d(0x10c))/0x3)+parseInt(_0x58025d(0x117))/0x4+-parseInt(_0x58025d(0x112))/0x5*(parseInt(_0x58025d(0x111))/0x6)+-parseInt(_0x58025d(0x110))/0x7+parseInt(_0x58025d(0x10b))/0x8+-parseInt(_0x58025d(0x11a))/0x9*(-parseInt(_0x58025d(0x115))/0xa);if(_0x2ccd30===_0x41015d)break;else _0x2317c6['push'](_0x2317c6['shift']());}catch(_0x79bd4c){_0x2317c6['push'](_0x2317c6['shift']());}}}(_0x261c,0xe4591));import{existsSync}from'fs';function _0x4a62(_0x55c64b,_0x4fe6ca){_0x55c64b=_0x55c64b-0x10b;const _0x261c2a=_0x261c();let _0x4a6291=_0x261c2a[_0x55c64b];return _0x4a6291;}import{readFile}from'fs/promises';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';import{readLastProfile,writeLastProfile}from'./projectsConfig.js';function _0x261c(){const _0x1df8a9=['4486144smeTcQ','cwd','kWiAN','1078911FZhhLU','7086016zfjGJm','3435879pgDsup','ViUVv','active-env.txt','611444MoHiwa','3917193CWlHpa','24RwkRQO','1621495AdvQag','2yNbUve','CKFKL','110SntqAP','BCYUQ'];_0x261c=function(){return _0x1df8a9;};return _0x261c();}const LEGACY_ACTIVE_PROFILE_FILE='active-profile.txt',LEGACY_ACTIVE_ENV_FILE=_0x1072f3(0x10e);function readLegacyActiveProfileFile(){const _0x1d7273=_0x1072f3,_0x4e0f59={'BCYUQ':function(_0xe83983,_0x858a43,_0x17c19f){return _0xe83983(_0x858a43,_0x17c19f);},'ViUVv':function(_0xdf3be3){return _0xdf3be3();},'kWiAN':function(_0x803dca,_0x287dcd){return _0x803dca(_0x287dcd);}},_0x24b4b3=[_0x4e0f59['BCYUQ'](join,_0x4e0f59[_0x1d7273(0x10d)](getRangerDir),LEGACY_ACTIVE_PROFILE_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_PROFILE_FILE),_0x4e0f59[_0x1d7273(0x116)](join,getRangerDir(),LEGACY_ACTIVE_ENV_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_ENV_FILE)];for(const _0x2b8df0 of _0x24b4b3){if(_0x4e0f59[_0x1d7273(0x119)](existsSync,_0x2b8df0))return _0x2b8df0;}return null;}export async function readActiveProfileName(){const _0x18e9f2=_0x1072f3,_0x1c3136={'CKFKL':function(_0x49b963,_0xcae05a){return _0x49b963(_0xcae05a);},'bbgSJ':'utf-8'},_0x5126e9=_0x1c3136[_0x18e9f2(0x114)](readLastProfile,process[_0x18e9f2(0x118)]());if(_0x5126e9)return _0x5126e9;const _0x4270b=readLegacyActiveProfileFile();if(!_0x4270b)return null;try{return(await readFile(_0x4270b,_0x1c3136['bbgSJ']))['trim']()||null;}catch{return null;}}export async function writeActiveProfileName(_0x3e084f){const _0x414ccd=_0x1072f3;writeLastProfile(process[_0x414ccd(0x118)](),_0x3e084f);}
@@ -1 +1 @@
1
- const _0x472a96=_0x505e;(function(_0x532a61,_0x10ab25){const _0x2c7d95=_0x505e,_0x43cd4e=_0x532a61();while(!![]){try{const _0xe5ac39=-parseInt(_0x2c7d95(0x7d))/0x1+parseInt(_0x2c7d95(0x8f))/0x2*(-parseInt(_0x2c7d95(0x8b))/0x3)+parseInt(_0x2c7d95(0x66))/0x4*(parseInt(_0x2c7d95(0x95))/0x5)+parseInt(_0x2c7d95(0x89))/0x6*(-parseInt(_0x2c7d95(0x88))/0x7)+-parseInt(_0x2c7d95(0x84))/0x8*(parseInt(_0x2c7d95(0x76))/0x9)+parseInt(_0x2c7d95(0x96))/0xa+parseInt(_0x2c7d95(0x7c))/0xb*(parseInt(_0x2c7d95(0x9c))/0xc);if(_0xe5ac39===_0x10ab25)break;else _0x43cd4e['push'](_0x43cd4e['shift']());}catch(_0x81f598){_0x43cd4e['push'](_0x43cd4e['shift']());}}}(_0x5def,0x7b8eb));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';function _0x505e(_0x5905a1,_0x2d236e){_0x5905a1=_0x5905a1-0x65;const _0x5deff9=_0x5def();let _0x505eb3=_0x5deff9[_0x5905a1];return _0x505eb3;}import{getAiProxyUrl}from'./environment.js';const AI_PROXY_METADATA_HEADERS_ENV_VAR='ANTHROPIC_CUSTOM_HEADERS',AGENT_ENV_PASSTHROUGH_KEYS=['PATH','HOME',_0x472a96(0x9b),'TMP',_0x472a96(0x91),'USERPROFILE',_0x472a96(0x98),_0x472a96(0x67),_0x472a96(0x90),'XDG_CONFIG_HOME','PLAYWRIGHT_BROWSERS_PATH',_0x472a96(0x6c),_0x472a96(0x74),'CHROMIUM_BIN',_0x472a96(0x92),_0x472a96(0x9f),'npm_config_userconfig',_0x472a96(0x81),_0x472a96(0x75),_0x472a96(0xa3),'npm_config_registry','NPM_CONFIG_REGISTRY','DEBUG',_0x472a96(0x7f),_0x472a96(0x9a),_0x472a96(0x7a),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=['${PATH}','$PATH',_0x472a96(0x79)];function _0x5def(){const _0xa14ead=['599828mEPqxC','LOCALAPPDATA','PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','bWsbs','lglxE','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','byokEnabled','push','true','add','PyZYh','fromEntries','trim','CHROME_BIN','npm_config_prefix','2645793nDrUqy','bKqZt','length','%PATH%','RANGER_DISABLE_MCP','set','1078ysMVjW','722849mMFAfF','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','NODE_ENV','zQpgr','NPM_CONFIG_USERCONFIG','sessionToken','metadata','24bebtnG','slice','map','includes','602AeYuvq','70122QBZlnV','CdWXF','381azLNvh','/bin','filter','split','5624idCwLG','XDG_CACHE_HOME','TEMP','npm_config_cache','/usr/bin','QmTLT','25lftPEl','1911680xYhJJG','string','APPDATA','env','RANGER_TEST_SKIP_BROWSER_WAIT','TMPDIR','310056CTICnf','ranger-claude-tmp','indexOf','NPM_CONFIG_CACHE','fNuEa','platform','Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','NPM_CONFIG_PREFIX','toLowerCase','oDWXn'];_0x5def=function(){return _0xa14ead;};return _0x5def();}function parseCustomHeaders(_0x5da3db){const _0x4c55d5=_0x472a96,_0x32a972={'vAKfs':function(_0x5c2773,_0xa70bcb){return _0x5c2773===_0xa70bcb;}};if(!_0x5da3db)return[];return _0x5da3db[_0x4c55d5(0x8e)](/\r?\n/)[_0x4c55d5(0x86)](_0x1dfdf0=>_0x1dfdf0['trim']())[_0x4c55d5(0x8d)](Boolean)[_0x4c55d5(0x86)](_0x3d1bb8=>{const _0x45809f=_0x4c55d5,_0x1152a3=_0x3d1bb8[_0x45809f(0x9e)](':');if(_0x32a972['vAKfs'](_0x1152a3,-0x1))return null;const _0xaea564=_0x3d1bb8[_0x45809f(0x85)](0x0,_0x1152a3)[_0x45809f(0x73)](),_0x3ca65d=_0x3d1bb8['slice'](_0x1152a3+0x1)['trim']();if(!_0xaea564)return null;return[_0xaea564,_0x3ca65d];})['filter'](_0x3f599b=>_0x3f599b!==null);}export function getAgentPathHealthWarning(_0x5cbc44,_0x1b30de=process[_0x472a96(0xa1)]){const _0x519137=_0x472a96,_0x522704={'QmTLT':function(_0x5ddcb3,_0x3234dc){return _0x5ddcb3===_0x3234dc;},'bKqZt':'PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','PyZYh':_0x519137(0x68),'CdWXF':function(_0x296243,_0xe435eb){return _0x296243!==_0xe435eb;},'fNuEa':_0x519137(0x93),'rzBSv':function(_0x14858c,_0x543d43){return _0x14858c&&_0x543d43;}},_0x3f95ba=[],_0x36166e=(_0x5cbc44||'')[_0x519137(0x8e)](delimiter)[_0x519137(0x8d)](Boolean);_0x522704['QmTLT'](_0x36166e[_0x519137(0x78)],0x0)&&_0x3f95ba[_0x519137(0x6e)](_0x522704[_0x519137(0x77)]);UNEXPANDED_PATH_TOKEN_PATTERNS['some'](_0x44391d=>(_0x5cbc44||'')[_0x519137(0x87)](_0x44391d))&&_0x3f95ba[_0x519137(0x6e)](_0x522704[_0x519137(0x71)]);if(_0x522704[_0x519137(0x8a)](_0x1b30de,'win32')){const _0x39e55a=_0x36166e[_0x519137(0x87)](_0x522704[_0x519137(0xa0)]),_0x146418=_0x36166e[_0x519137(0x87)](_0x519137(0x8c));_0x522704['rzBSv'](!_0x39e55a,!_0x146418)&&_0x3f95ba['push'](_0x519137(0x7e));}if(_0x522704[_0x519137(0x94)](_0x3f95ba['length'],0x0))return null;return{'summary':_0x519137(0x69),'issues':_0x3f95ba};}export function buildAgentEnv(_0x28f58a){const _0x23dd43=_0x472a96,_0x26b771={'zQpgr':_0x23dd43(0xa2),'lglxE':function(_0x4f16d1){return _0x4f16d1();},'LbfaR':_0x23dd43(0x6f),'oDWXn':'TMPDIR','RDEwX':'TMP','bWsbs':_0x23dd43(0x91),'zQxWg':function(_0x3c46d8,_0x1bb810,_0x20353c){return _0x3c46d8(_0x1bb810,_0x20353c);},'alYbS':_0x23dd43(0x9d),'okBip':function(_0x1fc3c1,_0x3753a7){return _0x1fc3c1==_0x3753a7;}};if(_0x28f58a[_0x23dd43(0x6d)])return Object[_0x23dd43(0x72)](Object['entries'](process['env'])[_0x23dd43(0x8d)](_0x3e42f4=>typeof _0x3e42f4[0x1]===_0x23dd43(0x97)));if(!_0x28f58a[_0x23dd43(0x82)])throw new Error(_0x26b771[_0x23dd43(0x80)]);const _0x45fe66={'ANTHROPIC_API_KEY':_0x28f58a[_0x23dd43(0x82)],'ANTHROPIC_BASE_URL':_0x26b771[_0x23dd43(0x6b)](getAiProxyUrl),'DISABLE_TELEMETRY':_0x26b771['LbfaR']};for(const _0x233c98 of AGENT_ENV_PASSTHROUGH_KEYS){const _0x47406d=process[_0x23dd43(0x99)][_0x233c98];_0x47406d&&![_0x26b771[_0x23dd43(0x65)],_0x26b771['RDEwX'],_0x26b771[_0x23dd43(0x6a)]][_0x23dd43(0x87)](_0x233c98)&&(_0x45fe66[_0x233c98]=_0x47406d);}const _0x5adf61=_0x26b771['zQxWg'](join,tmpdir(),_0x26b771['alYbS']);try{_0x26b771['zQxWg'](mkdirSync,_0x5adf61,{'recursive':!![]});}catch{}_0x45fe66[_0x26b771['oDWXn']]=_0x5adf61,_0x45fe66[_0x26b771['RDEwX']]=_0x5adf61,_0x45fe66['TEMP']=_0x5adf61;const _0x55223b=parseCustomHeaders(process[_0x23dd43(0x99)][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x59ff22=new Map(_0x55223b),_0x3347e5=new Set(_0x55223b[_0x23dd43(0x86)](([_0x4ef9d4])=>_0x4ef9d4[_0x23dd43(0xa4)]()));if(_0x28f58a[_0x23dd43(0x83)])for(const [_0x41c824,_0x5d9e61]of Object['entries'](_0x28f58a['metadata'])){if(_0x26b771['okBip'](_0x5d9e61,null)||_0x5d9e61==='')continue;const _0x3b8435='x-ranger-'+_0x41c824;!_0x3347e5['has'](_0x3b8435[_0x23dd43(0xa4)]())&&(_0x59ff22[_0x23dd43(0x7b)](_0x3b8435,_0x5d9e61),_0x3347e5[_0x23dd43(0x70)](_0x3b8435['toLowerCase']()));}const _0x441156=Array['from'](_0x59ff22['entries']())[_0x23dd43(0x86)](([_0xbd734a,_0x390af9])=>_0xbd734a+':\x20'+_0x390af9)['join']('\x0a');return _0x441156&&(_0x45fe66[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x441156),_0x45fe66;}
1
+ const _0x1977fe=_0x1a12;(function(_0xf0099d,_0x3f45a1){const _0x4dd36b=_0x1a12,_0x148dda=_0xf0099d();while(!![]){try{const _0x55e6c1=-parseInt(_0x4dd36b(0x195))/0x1+-parseInt(_0x4dd36b(0x170))/0x2*(parseInt(_0x4dd36b(0x196))/0x3)+-parseInt(_0x4dd36b(0x16a))/0x4+parseInt(_0x4dd36b(0x164))/0x5*(parseInt(_0x4dd36b(0x177))/0x6)+parseInt(_0x4dd36b(0x176))/0x7+parseInt(_0x4dd36b(0x16b))/0x8*(-parseInt(_0x4dd36b(0x190))/0x9)+parseInt(_0x4dd36b(0x187))/0xa;if(_0x55e6c1===_0x3f45a1)break;else _0x148dda['push'](_0x148dda['shift']());}catch(_0x25d2e2){_0x148dda['push'](_0x148dda['shift']());}}}(_0x1e5d,0xb755d));import{delimiter,join}from'path';function _0x1e5d(){const _0x3b4355=['set','push','218352IIAoVi','96XJtAwZ','CHROME_BIN','metadata','npm_config_prefix','includes','CHROMIUM_BIN','add','10dhJWkn','NPM_CONFIG_PREFIX','npm_config_registry','RANGER_DISABLE_MCP','x-ranger-','env','3327404AszdpE','3080864qZFyzn','sessionToken','ranger-claude-tmp','filter','RPJCL','88030mJhLRG','NODE_ENV','GNUUq','win32','ANTHROPIC_CUSTOM_HEADERS','TEMP','3542756yamCmX','1074156oTZhFT','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','TMPDIR','map','string','USERPROFILE','oCOLh','TMP','fromEntries','split','XDG_CACHE_HOME','has','zFkfE','NPM_CONFIG_REGISTRY','MIZrZ','oZDxD','35007880Pgvwmd','entries','npm_config_cache','join','${PATH}','LOCALAPPDATA','YEHNz','APPDATA','/usr/bin','27TTiwDm','trim','bdFVJ'];_0x1e5d=function(){return _0x3b4355;};return _0x1e5d();}import{tmpdir}from'os';function _0x1a12(_0x3faf3a,_0x60645e){_0x3faf3a=_0x3faf3a-0x164;const _0x1e5d63=_0x1e5d();let _0x1a1281=_0x1e5d63[_0x3faf3a];return _0x1a1281;}import{mkdirSync}from'fs';import{getAiProxyUrl}from'./environment.js';const AI_PROXY_METADATA_HEADERS_ENV_VAR=_0x1977fe(0x174),AGENT_ENV_PASSTHROUGH_KEYS=['PATH','HOME',_0x1977fe(0x179),_0x1977fe(0x17e),_0x1977fe(0x175),_0x1977fe(0x17c),_0x1977fe(0x18e),_0x1977fe(0x18c),_0x1977fe(0x181),'XDG_CONFIG_HOME','PLAYWRIGHT_BROWSERS_PATH','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD',_0x1977fe(0x197),_0x1977fe(0x19b),_0x1977fe(0x189),'NPM_CONFIG_CACHE','npm_config_userconfig','NPM_CONFIG_USERCONFIG',_0x1977fe(0x199),_0x1977fe(0x165),_0x1977fe(0x166),_0x1977fe(0x184),'DEBUG',_0x1977fe(0x171),'RANGER_TEST_SKIP_BROWSER_WAIT',_0x1977fe(0x167),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=[_0x1977fe(0x18b),'$PATH','%PATH%'];function parseCustomHeaders(_0xb43d8a){const _0x2ddd06=_0x1977fe,_0x5ae9dd={'pEOEt':function(_0x2d2992,_0x318b45){return _0x2d2992+_0x318b45;}};if(!_0xb43d8a)return[];return _0xb43d8a[_0x2ddd06(0x180)](/\r?\n/)[_0x2ddd06(0x17a)](_0x3ba56f=>_0x3ba56f['trim']())[_0x2ddd06(0x16e)](Boolean)['map'](_0x271c5a=>{const _0x14a93f=_0x2ddd06,_0xb7f45c=_0x271c5a['indexOf'](':');if(_0xb7f45c===-0x1)return null;const _0xce7358=_0x271c5a['slice'](0x0,_0xb7f45c)[_0x14a93f(0x191)](),_0x476a78=_0x271c5a['slice'](_0x5ae9dd['pEOEt'](_0xb7f45c,0x1))['trim']();if(!_0xce7358)return null;return[_0xce7358,_0x476a78];})['filter'](_0x40f1ab=>_0x40f1ab!==null);}export function getAgentPathHealthWarning(_0x4ba76c,_0x4731f9=process['platform']){const _0x3492ab=_0x1977fe,_0x4ec0d2={'UTZam':function(_0x197bc4,_0x5d347e){return _0x197bc4||_0x5d347e;},'EdsgC':'PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','zFkfE':_0x3492ab(0x173),'sPiOM':_0x3492ab(0x18f),'ONSLz':'/bin','oCOLh':'Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.'},_0x180ee6=[],_0x288433=_0x4ec0d2['UTZam'](_0x4ba76c,'')['split'](delimiter)[_0x3492ab(0x16e)](Boolean);_0x288433['length']===0x0&&_0x180ee6[_0x3492ab(0x194)](_0x4ec0d2['EdsgC']);UNEXPANDED_PATH_TOKEN_PATTERNS['some'](_0x10dce4=>(_0x4ba76c||'')[_0x3492ab(0x19a)](_0x10dce4))&&_0x180ee6[_0x3492ab(0x194)]('PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.');if(_0x4731f9!==_0x4ec0d2[_0x3492ab(0x183)]){const _0xd00ec7=_0x288433['includes'](_0x4ec0d2['sPiOM']),_0x29248e=_0x288433[_0x3492ab(0x19a)](_0x4ec0d2['ONSLz']);!_0xd00ec7&&!_0x29248e&&_0x180ee6['push'](_0x3492ab(0x178));}if(_0x180ee6['length']===0x0)return null;return{'summary':_0x4ec0d2[_0x3492ab(0x17d)],'issues':_0x180ee6};}export function buildAgentEnv(_0xef58b){const _0x548378=_0x1977fe,_0x5ec882={'hMEQv':'Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','GNUUq':function(_0x5b8fee){return _0x5b8fee();},'Bgktv':'true','YEHNz':_0x548378(0x179),'RPJCL':'TMP','oZDxD':function(_0x4c88fd,_0x42e1b0,_0x5dd133){return _0x4c88fd(_0x42e1b0,_0x5dd133);},'MIZrZ':_0x548378(0x16d),'mGUTB':function(_0x4166b1,_0x1a9616){return _0x4166b1(_0x1a9616);},'bdFVJ':function(_0xbb6671,_0x1ef6a0){return _0xbb6671==_0x1ef6a0;}};if(_0xef58b['byokEnabled'])return Object[_0x548378(0x17f)](Object[_0x548378(0x188)](process['env'])['filter'](_0x4769ed=>typeof _0x4769ed[0x1]===_0x548378(0x17b)));if(!_0xef58b[_0x548378(0x16c)])throw new Error(_0x5ec882['hMEQv']);const _0x23b062={'ANTHROPIC_API_KEY':_0xef58b['sessionToken'],'ANTHROPIC_BASE_URL':_0x5ec882['GNUUq'](getAiProxyUrl),'DISABLE_TELEMETRY':_0x5ec882['Bgktv']};for(const _0xf43445 of AGENT_ENV_PASSTHROUGH_KEYS){const _0x59d547=process[_0x548378(0x169)][_0xf43445];_0x59d547&&![_0x5ec882['YEHNz'],_0x5ec882[_0x548378(0x16f)],_0x548378(0x175)]['includes'](_0xf43445)&&(_0x23b062[_0xf43445]=_0x59d547);}const _0x180b22=_0x5ec882[_0x548378(0x186)](join,_0x5ec882[_0x548378(0x172)](tmpdir),_0x5ec882[_0x548378(0x185)]);try{_0x5ec882[_0x548378(0x186)](mkdirSync,_0x180b22,{'recursive':!![]});}catch{}_0x23b062[_0x5ec882[_0x548378(0x18d)]]=_0x180b22,_0x23b062[_0x548378(0x17e)]=_0x180b22,_0x23b062[_0x548378(0x175)]=_0x180b22;const _0x1df319=_0x5ec882['mGUTB'](parseCustomHeaders,process[_0x548378(0x169)][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0xbc88b0=new Map(_0x1df319),_0xba6b9d=new Set(_0x1df319[_0x548378(0x17a)](([_0x317bbd])=>_0x317bbd['toLowerCase']()));if(_0xef58b[_0x548378(0x198)])for(const [_0x5c0f58,_0x3bb169]of Object[_0x548378(0x188)](_0xef58b[_0x548378(0x198)])){if(_0x5ec882[_0x548378(0x192)](_0x3bb169,null)||_0x3bb169==='')continue;const _0x372907=_0x548378(0x168)+_0x5c0f58;!_0xba6b9d[_0x548378(0x182)](_0x372907['toLowerCase']())&&(_0xbc88b0[_0x548378(0x193)](_0x372907,_0x3bb169),_0xba6b9d[_0x548378(0x19c)](_0x372907['toLowerCase']()));}const _0x2f9b2d=Array['from'](_0xbc88b0['entries']())['map'](([_0x16e7e6,_0x3d90f4])=>_0x16e7e6+':\x20'+_0x3d90f4)[_0x548378(0x18a)]('\x0a');return _0x2f9b2d&&(_0x23b062[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x2f9b2d),_0x23b062;}