@ranger-testing/ranger-cli 3.1.5-alpha.9b89f77-48 → 3.1.5

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 (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.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/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +5 -3
@@ -1 +1 @@
1
- (function(_0x4e793c,_0x1e42b9){const _0x30dc08=_0x45d5,_0x85db93=_0x4e793c();while(!![]){try{const _0x542723=-parseInt(_0x30dc08(0x16a))/0x1+parseInt(_0x30dc08(0x18d))/0x2+parseInt(_0x30dc08(0x16c))/0x3*(parseInt(_0x30dc08(0x181))/0x4)+parseInt(_0x30dc08(0x17a))/0x5+-parseInt(_0x30dc08(0x195))/0x6+parseInt(_0x30dc08(0x19e))/0x7*(-parseInt(_0x30dc08(0x172))/0x8)+-parseInt(_0x30dc08(0x179))/0x9*(-parseInt(_0x30dc08(0x174))/0xa);if(_0x542723===_0x1e42b9)break;else _0x85db93['push'](_0x85db93['shift']());}catch(_0x2e11de){_0x85db93['push'](_0x85db93['shift']());}}}(_0x1a95,0x898e4));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';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(_0x57cbf4,_0xc5a6bf,_0x1f6aac){const _0x1d3b91=_0x45d5,_0x49f21a={'VqZQF':function(_0x8c6f04,_0x5c9587){return _0x8c6f04(_0x5c9587);},'CJcaf':function(_0x513bb5,_0xef5410){return _0x513bb5(_0xef5410);},'HnfOH':'ignore','OnPqM':_0x1d3b91(0x1a0),'ydvYw':function(_0x20b8de,_0x186e14){return _0x20b8de===_0x186e14;},'KGtnP':'win32','JFdOl':function(_0xc0f9c1,_0x25bc85,_0x240570){return _0xc0f9c1(_0x25bc85,_0x240570);},'zHQTX':_0x1d3b91(0x176)};return new Promise(_0x27c604=>{const _0x18167b=_0x1d3b91,_0x1cd94d={'lJsQk':function(_0x1d7b42,_0x4fb07d){return _0x49f21a['VqZQF'](_0x1d7b42,_0x4fb07d);},'ShRMN':function(_0x52818b,_0x167aa2){const _0x12da97=_0x45d5;return _0x49f21a[_0x12da97(0x16d)](_0x52818b,_0x167aa2);},'rLJPB':function(_0x53c117,_0x5d23de){return _0x53c117(_0x5d23de);}};let _0x45c572=![],_0x245400;const _0x33e97d=_0x2c90df=>{const _0x256556=_0x45d5;if(_0x45c572)return;_0x45c572=!![],_0x245400&&_0x1cd94d[_0x256556(0x151)](clearTimeout,_0x245400),_0x1cd94d[_0x256556(0x17f)](_0x27c604,_0x2c90df);},_0x415717=spawn(_0x57cbf4,_0xc5a6bf,{'stdio':[_0x49f21a[_0x18167b(0x1ad)],_0x1f6aac?.['stdio']??_0x18167b(0x1a0),_0x1f6aac?.['stdio']??_0x49f21a['OnPqM']],'cwd':_0x1f6aac?.['cwd'],'shell':_0x49f21a['ydvYw'](process[_0x18167b(0x19f)],_0x49f21a[_0x18167b(0x18a)])});_0x245400=_0x1f6aac?.[_0x18167b(0x15e)]?_0x49f21a[_0x18167b(0x182)](setTimeout,()=>{const _0x2d35d7=_0x18167b;_0x415717[_0x2d35d7(0x1a8)](),_0x415717['unref'](),_0x33e97d(![]);},_0x1f6aac['timeoutMs']):undefined,_0x415717['on'](_0x49f21a['zHQTX'],_0x47cb67=>{const _0x29b034=_0x18167b;_0x1cd94d[_0x29b034(0x15d)](_0x33e97d,_0x47cb67===0x0);}),_0x415717['on'](_0x18167b(0x17e),()=>{_0x33e97d(![]);});});}export function resolveDistTag(_0x4d7542){const _0x2d1554=_0x45d5,_0x57d719={'OQtBG':'alpha','HkMYM':'latest'};if(/-alpha\./i['test'](_0x4d7542))return _0x57d719[_0x2d1554(0x163)];if(/-beta\./i['test'](_0x4d7542))return'beta';if(/-rc\./i[_0x2d1554(0x180)](_0x4d7542))return'rc';return _0x57d719['HkMYM'];}export function resolveInstallTarget(_0x2285a7){const _0x214eaf=_0x45d5,_0x2acc5a={'xkGyQ':_0x214eaf(0x18b)},_0xb4f8df=resolveDistTag(_0x2285a7);if(_0xb4f8df!==_0x2acc5a[_0x214eaf(0x189)])return _0xb4f8df;const _0x3a430b=_0x2285a7['split']('.')[0x0],_0x4b1dce=parseInt(_0x3a430b,0xa);if(!Number[_0x214eaf(0x188)](_0x4b1dce))return _0x2acc5a['xkGyQ'];return'^'+_0x4b1dce+'.0.0';}async function runInstall(_0x266761){const _0x54bb20=_0x45d5,_0xf5acaf={'QaoRw':function(_0x3c7c2f,_0x2038b9){return _0x3c7c2f===_0x2038b9;},'fxoVO':function(_0x232550,_0x5e09df){return _0x232550(_0x5e09df);},'XYFLt':function(_0x318669,_0x3fc1eb,_0x16ff40,_0x2064ae){return _0x318669(_0x3fc1eb,_0x16ff40,_0x2064ae);},'VYYxP':'npm','wFZqK':'install','TMuCn':_0x54bb20(0x18e),'diNdo':_0x54bb20(0x17c),'vhNBH':_0x54bb20(0x176)},_0xacc053=resolveInstallTarget(_0x266761);return new Promise(_0x48f759=>{const _0x6edd32=_0x54bb20,_0x36c1b2={'RpNSv':function(_0x5b7c88,_0x231004){return _0xf5acaf['fxoVO'](_0x5b7c88,_0x231004);}};console['log'](_0x6edd32(0x166)+PACKAGE_NAME+'@'+_0xacc053+_0x6edd32(0x178));const _0x4bf84c=_0xf5acaf[_0x6edd32(0x165)](spawn,_0xf5acaf['VYYxP'],[_0xf5acaf['wFZqK'],'-g',PACKAGE_NAME+'@'+_0xacc053],{'stdio':[_0xf5acaf[_0x6edd32(0x1a1)],'inherit','inherit'],'shell':process['platform']===_0xf5acaf['diNdo']});_0x4bf84c['on'](_0xf5acaf['vhNBH'],_0x4c2fbe=>{_0x48f759(_0xf5acaf['QaoRw'](_0x4c2fbe,0x0));}),_0x4bf84c['on']('error',()=>{_0x36c1b2['RpNSv'](_0x48f759,![]);});});}async function updateClaudeMarketplace(){const _0x1c8912=_0x45d5,_0x58713d={'yVcfr':'claude','IZnzg':_0x1c8912(0x190),'fDcMc':'marketplace','ISMOT':_0x1c8912(0x156)},_0x4b58c6=await runCommand(_0x58713d[_0x1c8912(0x1a6)],[_0x58713d[_0x1c8912(0x177)],_0x58713d[_0x1c8912(0x1a2)],'update',_0x58713d['ISMOT']],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x4b58c6)throw new Error('Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}async function updateClaudePlugin(_0x142798='user'){const _0x3ae8a2=_0x45d5,_0x5af28c={'BukQc':'update','IzlRP':'ranger@trailhead','FWNCv':'user','rjKwx':_0x3ae8a2(0x1a4),'TzpsL':'claude','sEDUS':'local'},_0x23b355=['plugin',_0x5af28c['BukQc'],_0x5af28c[_0x3ae8a2(0x160)]];_0x142798!==_0x5af28c[_0x3ae8a2(0x192)]&&_0x23b355[_0x3ae8a2(0x19a)](_0x5af28c['rjKwx'],_0x142798);const _0x3b05ca=await runCommand(_0x5af28c['TzpsL'],_0x23b355,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x142798==='project'||_0x142798===_0x5af28c[_0x3ae8a2(0x15c)]?getProjectRoot():undefined});if(!_0x3b05ca)throw new Error('Claude\x20plugin\x20update\x20failed\x20for\x20'+_0x142798+'\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}function isSkillInstalled(_0x52edbc,_0x5bab42,_0x547596){const _0x42c550=_0x45d5,_0x486671={'YSTVp':function(_0x4b8003,_0x4220b2){return _0x4b8003===_0x4220b2;},'lVkji':function(_0x5747c2,_0x2830e6){return _0x5747c2(_0x2830e6);}},_0x31bf85=_0x486671['YSTVp'](_0x547596,'opencode')?_0x486671['lVkji'](getOpencodeSkillsDir,_0x5bab42):getSkillsDir(_0x5bab42),_0x1572c6=join(_0x31bf85,_0x52edbc);return _0x486671[_0x42c550(0x1ae)](existsSync,_0x1572c6);}function _0x1a95(){const _0x391dd9=['ignore','ezbKC','plugin','pGvXh','FWNCv','Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20','Update\x20failed:\x20','4469052DkxQmq','\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','split','unHYY','nMPQI','push','\x20—\x20reinstalling\x20@','user','trim','9086cpiHaV','platform','inherit','TMuCn','fDcMc','FJeRI','--scope','BABgg','yVcfr','Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22','kill','habSP','\x20ranger-managed\x20skill(s)...','OumQD','oQiJh','HnfOH','lVkji',')\x20is\x20newer\x20than\x20the\x20published\x20version\x20(','Latest\x20version:\x20\x20','lJsQk','UHVEn','kLiJd','\x0aCould\x20not\x20check\x20latest\x20version:\x20','\x0aClaude\x20marketplace\x20updated\x20(trailhead).','trailhead','LyaaO','some','project','Update\x20failed\x20for\x20@','opencode','sEDUS','rLJPB','timeoutMs','log','IzlRP','claude','\x0aSuccessfully\x20updated\x20to\x20version\x20','OQtBG','...','XYFLt','\x0aInstalling\x20','atYHL','\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','Attempting\x20install\x20anyway...','149527eyMMIu','version','250791ubreDA','CJcaf','@latest','active-profile.txt','nEQpG','\x0aReinstalling\x20','2568eXokCz','.gitignore','1462490tqtesO','xtOeY','close','IZnzg','...\x0a','27htwmhf','1598100dTtzWl','length','win32','aLXzf','error','ShRMN','test','16yfkohU','JFdOl','\x0aYour\x20version\x20(','utf-8','ranger@trailhead','\x0aClaude\x20plugin\x20updated\x20(project\x20scope).','nTkTG','isFinite','xkGyQ','KGtnP','latest','\x20channel.','1563400MtWnup'];_0x1a95=function(){return _0x391dd9;};return _0x1a95();}function _0x45d5(_0xb60b51,_0xbd493e){_0xb60b51=_0xb60b51-0x150;const _0x1a95e5=_0x1a95();let _0x45d51a=_0x1a95e5[_0xb60b51];return _0x45d51a;}async function reinstallSkills(_0x2388ca){const _0x5a1e0f=_0x45d5,_0x2b7387={'ezbKC':_0x5a1e0f(0x159),'OumQD':'user','kLiJd':function(_0x3e09e9,_0x294e4e,_0x1f6ea6,_0x2717fd){return _0x3e09e9(_0x294e4e,_0x1f6ea6,_0x2717fd);},'nEQpG':_0x5a1e0f(0x161),'unHYY':function(_0x3a12db,_0x5a05c5,_0x41996c,_0x141f86){return _0x3a12db(_0x5a05c5,_0x41996c,_0x141f86);},'BABgg':'opencode'},_0x2171c=[_0x2b7387[_0x5a1e0f(0x18f)],_0x2b7387[_0x5a1e0f(0x1ab)]],_0x47be0a=[];for(const _0x21efc5 of _0x2171c){for(const _0x2d4c08 of RANGER_MANAGED_SKILLS){_0x2b7387[_0x5a1e0f(0x153)](isSkillInstalled,_0x2d4c08,_0x21efc5,_0x5a1e0f(0x161))&&_0x47be0a[_0x5a1e0f(0x19a)]({'skillName':_0x2d4c08,'level':_0x21efc5,'platform':_0x2b7387[_0x5a1e0f(0x170)]}),_0x2b7387[_0x5a1e0f(0x198)](isSkillInstalled,_0x2d4c08,_0x21efc5,_0x2b7387[_0x5a1e0f(0x1a5)])&&_0x47be0a['push']({'skillName':_0x2d4c08,'level':_0x21efc5,'platform':_0x5a1e0f(0x15b)});}}for(const _0x1b870f of _0x2171c){for(const _0x411a4a of DEPRECATED_SKILLS){await removeSkill(_0x411a4a,_0x1b870f);}}if(_0x47be0a[_0x5a1e0f(0x17b)]===0x0){console['log'](_0x5a1e0f(0x196));return;}console[_0x5a1e0f(0x15f)](_0x5a1e0f(0x171)+_0x47be0a['length']+_0x5a1e0f(0x1aa));for(const {skillName:_0x452950,level:_0x16c47d,platform:_0x1550b1}of _0x47be0a){try{await installSkill(_0x452950,{'level':_0x16c47d,'cliVersion':_0x2388ca,'platform':_0x1550b1});}catch(_0x2b9945){console['warn']('\x20\x20Failed\x20to\x20reinstall\x20'+_0x1550b1+'\x20'+_0x16c47d+'\x20skill\x20'+_0x452950+':',_0x2b9945);}}}async function ensureActiveProfileGitignored(){const _0x373963=_0x45d5,_0x41eccc={'atYHL':function(_0x5efff2,_0x255ab8,_0x2f445c){return _0x5efff2(_0x255ab8,_0x2f445c);},'aLXzf':function(_0x4f2f80,_0x31f446){return _0x4f2f80===_0x31f446;},'habSP':_0x373963(0x16f),'nTkTG':function(_0x115419,_0x581752,_0x4ebf95,_0x7dfe8a){return _0x115419(_0x581752,_0x4ebf95,_0x7dfe8a);}},_0x5b6f06=_0x41eccc[_0x373963(0x167)](join,getRangerDir(),_0x373963(0x173));if(!existsSync(_0x5b6f06))return![];let _0x43186e='';try{_0x43186e=await _0x41eccc[_0x373963(0x167)](readFile,_0x5b6f06,_0x373963(0x184));}catch{return![];}const _0x445674=_0x43186e[_0x373963(0x197)](/\r?\n/);if(_0x445674[_0x373963(0x158)](_0x50f053=>_0x50f053['trim']()==='active-profile.txt'))return![];let _0x263d38=_0x445674['findIndex'](_0x3051d2=>_0x3051d2[_0x373963(0x19d)]()==='active-feature.txt');_0x41eccc[_0x373963(0x17d)](_0x263d38,-0x1)&&(_0x263d38=_0x445674[_0x373963(0x17b)]);_0x445674['splice'](_0x263d38,0x0,_0x41eccc[_0x373963(0x1a9)]);let _0x218b0a=_0x445674['join']('\x0a');!_0x218b0a['endsWith']('\x0a')&&(_0x218b0a+='\x0a');try{await _0x41eccc[_0x373963(0x187)](writeFile,_0x5b6f06,_0x218b0a,'utf-8');}catch{return![];}return!![];}export async function update(){const _0x10834c=_0x45d5,_0x2c8612={'UHVEn':function(_0xa903ba,_0x542169){return _0xa903ba(_0x542169);},'mQpbR':function(_0x3e9f31,_0x30ae68){return _0x3e9f31!==_0x30ae68;},'pGvXh':'latest','xtOeY':'\x0a✅\x20Update\x20complete!','oQiJh':function(_0x2fd981,_0x1e502c,_0x28cd71){return _0x2fd981(_0x1e502c,_0x28cd71);},'IsGpa':function(_0x136051,_0x50086b){return _0x136051+_0x50086b;},'ndYLX':_0x10834c(0x169),'nMPQI':function(_0x386b4b,_0x30090b){return _0x386b4b(_0x30090b);},'eFOAb':'\x0aSuccessfully\x20installed\x20latest\x20version.','UGkXH':'\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','yZonm':function(_0x28b63c,_0x4af008){return _0x28b63c(_0x4af008);},'WuYAp':_0x10834c(0x185),'IXmTF':_0x10834c(0x186),'wKIOd':'local','FJeRI':_0x10834c(0x168),'LyaaO':function(_0x334e23){return _0x334e23();}},_0x157a4e=getCurrentVersion();console[_0x10834c(0x15f)]('\x0aCurrent\x20version:\x20'+_0x157a4e);const _0x1a5069=_0x2c8612[_0x10834c(0x152)](resolveDistTag,_0x157a4e);if(_0x2c8612['mQpbR'](_0x1a5069,_0x2c8612[_0x10834c(0x191)])){console[_0x10834c(0x15f)]('Prerelease\x20channel\x20detected\x20(@'+_0x1a5069+').\x20Staying\x20on\x20'+_0x1a5069+_0x10834c(0x19b)+_0x1a5069+_0x10834c(0x164));const _0x133977=await _0x2c8612['UHVEn'](runInstall,_0x157a4e);if(!_0x133977)throw new Error(_0x10834c(0x15a)+_0x1a5069+_0x10834c(0x18c));const _0x479aa9=getCurrentVersion();console['log']('\x0aSuccessfully\x20installed\x20'+PACKAGE_NAME+'@'+_0x1a5069+'.'),await reinstallSkills(_0x479aa9),await ensureActiveProfileGitignored(),console[_0x10834c(0x15f)](_0x2c8612[_0x10834c(0x175)]);return;}console['log']('Checking\x20for\x20updates...');const _0x5e0809=_0x2c8612['oQiJh'](parseInt,_0x157a4e[_0x10834c(0x197)]('.')[0x0],0xa);if(!Number[_0x10834c(0x188)](_0x5e0809))throw new Error(_0x2c8612['IsGpa'](_0x2c8612['IsGpa'](_0x10834c(0x1a7)+_0x157a4e+'\x22.\x20',_0x10834c(0x193)),'npm\x20i\x20-g\x20'+PACKAGE_NAME+_0x10834c(0x16e)));const _0x2c0677=getLatestVersion(_0x5e0809);let _0x5c2f23=_0x157a4e;if(!_0x2c0677[_0x10834c(0x16b)]){console['warn'](_0x10834c(0x154)+_0x2c0677['error']),console['log'](_0x2c8612['ndYLX']);const _0x30845f=await _0x2c8612['nMPQI'](runInstall,_0x157a4e);if(_0x30845f)console[_0x10834c(0x15f)](_0x2c8612['eFOAb']),_0x5c2f23=getCurrentVersion();else throw new Error(_0x10834c(0x194)+_0x2c0677[_0x10834c(0x17e)]);}else{const _0x3a1b44=_0x2c0677['version'];console['log'](_0x10834c(0x150)+_0x3a1b44);const _0x17c39e=_0x2c8612[_0x10834c(0x1ac)](compareVersions,_0x157a4e,_0x3a1b44);if(_0x17c39e===0x0)console[_0x10834c(0x15f)](_0x2c8612['UGkXH']);else{if(_0x17c39e<0x0)console['log'](_0x10834c(0x183)+_0x157a4e+_0x10834c(0x1af)+_0x3a1b44+').');else{const _0x401630=await runInstall(_0x157a4e);if(_0x401630)console['log'](_0x10834c(0x162)+_0x3a1b44),_0x5c2f23=_0x3a1b44;else throw new Error('Update\x20failed.');}}}await reinstallSkills(_0x5c2f23);const _0x5568b0=await _0x2c8612[_0x10834c(0x199)](isMarketplaceAdded,'trailhead'),_0x45cb69=await _0x2c8612['yZonm'](isPluginInstalled,_0x2c8612['WuYAp']);_0x5568b0&&(await updateClaudeMarketplace(),console['log'](_0x10834c(0x155)));if(_0x45cb69){const _0x14103f=await _0x2c8612[_0x10834c(0x199)](getPluginInfo,'ranger@trailhead'),_0x556c67=_0x14103f?.['scope']??_0x10834c(0x19c);await _0x2c8612[_0x10834c(0x152)](updateClaudePlugin,_0x556c67);if(_0x556c67==='project')console[_0x10834c(0x15f)](_0x2c8612['IXmTF']);else _0x556c67===_0x2c8612['wKIOd']?console[_0x10834c(0x15f)]('\x0aClaude\x20plugin\x20updated\x20(local\x20scope).'):console[_0x10834c(0x15f)](_0x2c8612[_0x10834c(0x1a3)]);}const _0x1df23d=await _0x2c8612[_0x10834c(0x157)](ensureActiveProfileGitignored);console[_0x10834c(0x15f)]('\x0a✅\x20Update\x20complete!');}
1
+ const _0x363c4f=_0x4c6f;(function(_0x3483fd,_0x24c90c){const _0x4ad6ef=_0x4c6f,_0x3eead3=_0x3483fd();while(!![]){try{const _0x402556=parseInt(_0x4ad6ef(0x1c7))/0x1*(parseInt(_0x4ad6ef(0x1ba))/0x2)+-parseInt(_0x4ad6ef(0x1d9))/0x3*(-parseInt(_0x4ad6ef(0x1ea))/0x4)+parseInt(_0x4ad6ef(0x20e))/0x5+-parseInt(_0x4ad6ef(0x1df))/0x6+-parseInt(_0x4ad6ef(0x1d1))/0x7+parseInt(_0x4ad6ef(0x1d8))/0x8*(-parseInt(_0x4ad6ef(0x1d3))/0x9)+parseInt(_0x4ad6ef(0x1ff))/0xa;if(_0x402556===_0x24c90c)break;else _0x3eead3['push'](_0x3eead3['shift']());}catch(_0x33de49){_0x3eead3['push'](_0x3eead3['shift']());}}}(_0x4086,0x53b4a));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';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;function _0x4086(){const _0x37a443=['GiejT','ZDyIh','sSZpX','ranger@trailhead','982464TxEREH',')\x20is\x20newer\x20than\x20the\x20published\x20version\x20(','2529vWSdwC','unref','trailhead','\x20channel.','FwDSe','9304mHmDOH','4965kdybht','stdio','close','plugin','version','LGVed','1721868ouguUq','test','inherit','OpqAh','WOYFa','uxoUe','Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22','log','OPUDk','\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','scope','556etmEnB','join','\x0aCould\x20not\x20check\x20latest\x20version:\x20','cwd','ignore','HAtLA','\x0aSuccessfully\x20installed\x20','install','Attempting\x20install\x20anyway...','push','marketplace','endsWith','length','platform','bsVAf','\x0aSuccessfully\x20updated\x20to\x20version\x20','xFIEx','update','LsAGC','weoBe','SfxYo','841140dAMRHk','DORVW','aZokJ',').\x20Staying\x20on\x20','beta','Update\x20failed:\x20','TOLQV','active-profile.txt','\x0aReinstalling\x20','IESGe','error','QCgLq','\x0aInstalling\x20','@latest','RNISv','2757690yIHWkR','pRvwn','VPRBD','kRKwJ','QGGBA','\x0aClaude\x20marketplace\x20updated\x20(trailhead).','user','462588ZHHkMK','findIndex','claude','DvJbP','Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20','latest','\x0aClaude\x20plugin\x20updated\x20(local\x20scope).','\x0a✅\x20Update\x20complete!','JqsBl','GPbrR','win32','project','some','1xzfosx','active-feature.txt','npm','trim','isFinite','local'];_0x4086=function(){return _0x37a443;};return _0x4086();}function _0x4c6f(_0x5c6ff2,_0x394487){_0x5c6ff2=_0x5c6ff2-0x1b6;const _0x408696=_0x4086();let _0x4c6f50=_0x408696[_0x5c6ff2];return _0x4c6f50;}async function runCommand(_0x4959eb,_0x358301,_0x5ccf47){const _0x41a53e=_0x4c6f,_0x4c946c={'ZDyIh':function(_0x27c476,_0x239be1){return _0x27c476(_0x239be1);},'aZokJ':function(_0x58497e,_0xf49d22,_0x44542e,_0x3b17eb){return _0x58497e(_0xf49d22,_0x44542e,_0x3b17eb);},'LGVed':_0x41a53e(0x1ee),'pRvwn':_0x41a53e(0x1e1),'cFvLU':function(_0x1b843c,_0x104a28){return _0x1b843c===_0x104a28;},'jHIYb':'win32','LsAGC':function(_0x507d3c,_0x4febc8,_0x31b723){return _0x507d3c(_0x4febc8,_0x31b723);}};return new Promise(_0x3523ff=>{const _0x88f16f=_0x41a53e,_0x1ee63b={'uyZIh':function(_0x9f7eaf,_0x4027cd){return _0x9f7eaf(_0x4027cd);},'kRKwJ':function(_0x425be8,_0x313abc){return _0x425be8(_0x313abc);}};let _0x5ab280=![],_0x4ae497;const _0x1284ff=_0x4bc9f8=>{const _0x42ce13=_0x4c6f;if(_0x5ab280)return;_0x5ab280=!![],_0x4ae497&&clearTimeout(_0x4ae497),_0x4c946c[_0x42ce13(0x1ce)](_0x3523ff,_0x4bc9f8);},_0x39dccd=_0x4c946c[_0x88f16f(0x201)](spawn,_0x4959eb,_0x358301,{'stdio':[_0x4c946c[_0x88f16f(0x1de)],_0x5ccf47?.[_0x88f16f(0x1da)]??_0x4c946c[_0x88f16f(0x20f)],_0x5ccf47?.[_0x88f16f(0x1da)]??_0x88f16f(0x1e1)],'cwd':_0x5ccf47?.[_0x88f16f(0x1ed)],'shell':_0x4c946c['cFvLU'](process[_0x88f16f(0x1f7)],_0x4c946c['jHIYb'])});_0x4ae497=_0x5ccf47?.['timeoutMs']?_0x4c946c[_0x88f16f(0x1fc)](setTimeout,()=>{const _0x41df85=_0x88f16f;_0x39dccd['kill'](),_0x39dccd[_0x41df85(0x1d4)](),_0x1ee63b['uyZIh'](_0x1284ff,![]);},_0x5ccf47['timeoutMs']):undefined,_0x39dccd['on']('close',_0x224365=>{const _0x479ea0=_0x88f16f;_0x1ee63b[_0x479ea0(0x1b6)](_0x1284ff,_0x224365===0x0);}),_0x39dccd['on'](_0x88f16f(0x209),()=>{_0x1284ff(![]);});});}export function resolveDistTag(_0x17fb4){const _0x4a6e40=_0x4c6f,_0x15756f={'QCgLq':_0x4a6e40(0x1bf)};if(/-alpha\./i[_0x4a6e40(0x1e0)](_0x17fb4))return'alpha';if(/-beta\./i[_0x4a6e40(0x1e0)](_0x17fb4))return _0x4a6e40(0x203);if(/-rc\./i['test'](_0x17fb4))return'rc';return _0x15756f[_0x4a6e40(0x20a)];}export function resolveInstallTarget(_0x4b52be){const _0xa20c8f=_0x4c6f,_0x3e97fd={'spTVB':function(_0x1d8c05,_0x55dff6){return _0x1d8c05(_0x55dff6);}},_0x5874d5=_0x3e97fd['spTVB'](resolveDistTag,_0x4b52be);if(_0x5874d5!=='latest')return _0x5874d5;const _0x3a0999=_0x4b52be['split']('.')[0x0],_0x15b515=parseInt(_0x3a0999,0xa);if(!Number['isFinite'](_0x15b515))return _0xa20c8f(0x1bf);return'^'+_0x15b515+'.0.0';}async function runInstall(_0x1cd154){const _0x298b9d=_0x4c6f,_0x1b0e4b={'xFIEx':function(_0x3f773e,_0x427a73,_0x4d890d,_0x52dc60){return _0x3f773e(_0x427a73,_0x4d890d,_0x52dc60);},'SfxYo':_0x298b9d(0x1f1),'DKroP':_0x298b9d(0x1ee),'UmoRk':_0x298b9d(0x1e1),'OpqAh':_0x298b9d(0x209)},_0x477238=resolveInstallTarget(_0x1cd154);return new Promise(_0x3b27ad=>{const _0x4f881e=_0x298b9d;console[_0x4f881e(0x1e6)](_0x4f881e(0x20b)+PACKAGE_NAME+'@'+_0x477238+'...\x0a');const _0x2fc37c=_0x1b0e4b[_0x4f881e(0x1fa)](spawn,_0x4f881e(0x1c9),[_0x1b0e4b[_0x4f881e(0x1fe)],'-g',PACKAGE_NAME+'@'+_0x477238],{'stdio':[_0x1b0e4b['DKroP'],'inherit',_0x1b0e4b['UmoRk']],'shell':process[_0x4f881e(0x1f7)]===_0x4f881e(0x1c4)});_0x2fc37c['on'](_0x4f881e(0x1db),_0x255e11=>{_0x3b27ad(_0x255e11===0x0);}),_0x2fc37c['on'](_0x1b0e4b[_0x4f881e(0x1e2)],()=>{_0x3b27ad(![]);});});}async function updateClaudeMarketplace(){const _0xd82509=_0x4c6f,_0x2bce59={'bsVAf':'claude','mBuKr':'plugin','QBXLq':_0xd82509(0x1f4),'QGGBA':'update','JqsBl':'trailhead'},_0x5798b7=await runCommand(_0x2bce59[_0xd82509(0x1f8)],[_0x2bce59['mBuKr'],_0x2bce59['QBXLq'],_0x2bce59[_0xd82509(0x1b7)],_0x2bce59[_0xd82509(0x1c2)]],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x5798b7)throw new Error('Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}async function updateClaudePlugin(_0x1e6daa=_0x363c4f(0x1b9)){const _0x203220=_0x363c4f,_0x1564c3={'GiejT':_0x203220(0x1dc),'xTuwf':_0x203220(0x1fb),'WOYFa':'ranger@trailhead','WOfXF':function(_0x380b71,_0x1ba7db){return _0x380b71!==_0x1ba7db;},'uxoUe':function(_0x162ba7,_0x409c4f,_0x1863b0,_0x4e5dc3){return _0x162ba7(_0x409c4f,_0x1863b0,_0x4e5dc3);},'DORVW':'claude','sSZpX':function(_0x284f05,_0x8c1732){return _0x284f05===_0x8c1732;}},_0x31d412=[_0x1564c3[_0x203220(0x1cd)],_0x1564c3['xTuwf'],_0x1564c3[_0x203220(0x1e3)]];_0x1564c3['WOfXF'](_0x1e6daa,_0x203220(0x1b9))&&_0x31d412['push']('--scope',_0x1e6daa);const _0x1c4f86=await _0x1564c3[_0x203220(0x1e4)](runCommand,_0x1564c3[_0x203220(0x200)],_0x31d412,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x1564c3['sSZpX'](_0x1e6daa,'project')||_0x1564c3[_0x203220(0x1cf)](_0x1e6daa,_0x203220(0x1cc))?getProjectRoot():undefined});if(!_0x1c4f86)throw new Error('Claude\x20plugin\x20update\x20failed\x20for\x20'+_0x1e6daa+'\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}function isSkillInstalled(_0x115748,_0x5dd593,_0x3333d9){const _0x30cad2=_0x363c4f,_0x2c3636={'zGqXh':function(_0x115630,_0x3e70c1){return _0x115630===_0x3e70c1;},'DvJbP':function(_0x5e43ae,_0xa60032){return _0x5e43ae(_0xa60032);}},_0xa13fcd=_0x2c3636['zGqXh'](_0x3333d9,'opencode')?_0x2c3636[_0x30cad2(0x1bd)](getOpencodeSkillsDir,_0x5dd593):getSkillsDir(_0x5dd593),_0x382f90=join(_0xa13fcd,_0x115748);return existsSync(_0x382f90);}async function reinstallSkills(_0x47f29d){const _0x20c1ac=_0x363c4f,_0xae3941={'PIolW':function(_0x5e2c07,_0x474a16,_0x4fc800,_0x537dfd){return _0x5e2c07(_0x474a16,_0x4fc800,_0x537dfd);},'TOLQV':'opencode','jGUPp':function(_0x2d742d,_0x1dad5b,_0x25c549){return _0x2d742d(_0x1dad5b,_0x25c549);},'xOMqg':'\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.'},_0x1ac589=[_0x20c1ac(0x1c5),'user'],_0x1c5153=[];for(const _0x2c4870 of _0x1ac589){for(const _0x49b92f of RANGER_MANAGED_SKILLS){_0xae3941['PIolW'](isSkillInstalled,_0x49b92f,_0x2c4870,_0x20c1ac(0x1bc))&&_0x1c5153[_0x20c1ac(0x1f3)]({'skillName':_0x49b92f,'level':_0x2c4870,'platform':'claude'}),isSkillInstalled(_0x49b92f,_0x2c4870,_0xae3941['TOLQV'])&&_0x1c5153['push']({'skillName':_0x49b92f,'level':_0x2c4870,'platform':_0xae3941[_0x20c1ac(0x205)]});}}for(const _0x531b2a of _0x1ac589){for(const _0x29eed2 of DEPRECATED_SKILLS){await _0xae3941['jGUPp'](removeSkill,_0x29eed2,_0x531b2a);}}if(_0x1c5153['length']===0x0){console['log'](_0xae3941['xOMqg']);return;}console['log'](_0x20c1ac(0x207)+_0x1c5153[_0x20c1ac(0x1f6)]+'\x20ranger-managed\x20skill(s)...');for(const {skillName:_0x1fa617,level:_0x52fdaf,platform:_0x3920da}of _0x1c5153){try{await installSkill(_0x1fa617,{'level':_0x52fdaf,'cliVersion':_0x47f29d,'platform':_0x3920da});}catch(_0x123a23){console['warn']('\x20\x20Failed\x20to\x20reinstall\x20'+_0x3920da+'\x20'+_0x52fdaf+'\x20skill\x20'+_0x1fa617+':',_0x123a23);}}}async function ensureActiveProfileGitignored(){const _0x28f9f0=_0x363c4f,_0x49c221={'GPbrR':function(_0x377e90){return _0x377e90();},'FeCuN':'.gitignore','RNISv':function(_0x115d4b,_0x3ac117){return _0x115d4b(_0x3ac117);},'tXupJ':function(_0x46e9f7,_0x51abdf,_0xf144dd,_0x140501){return _0x46e9f7(_0x51abdf,_0xf144dd,_0x140501);},'OPUDk':'utf-8'},_0x1c5a1c=join(_0x49c221[_0x28f9f0(0x1c3)](getRangerDir),_0x49c221['FeCuN']);if(!_0x49c221[_0x28f9f0(0x20d)](existsSync,_0x1c5a1c))return![];let _0x42d993='';try{_0x42d993=await readFile(_0x1c5a1c,'utf-8');}catch{return![];}const _0x36541e=_0x42d993['split'](/\r?\n/);if(_0x36541e[_0x28f9f0(0x1c6)](_0x5295f1=>_0x5295f1[_0x28f9f0(0x1ca)]()===_0x28f9f0(0x206)))return![];let _0x901e68=_0x36541e[_0x28f9f0(0x1bb)](_0x4aa67e=>_0x4aa67e[_0x28f9f0(0x1ca)]()===_0x28f9f0(0x1c8));_0x901e68===-0x1&&(_0x901e68=_0x36541e['length']);_0x36541e['splice'](_0x901e68,0x0,_0x28f9f0(0x206));let _0x2384ab=_0x36541e[_0x28f9f0(0x1eb)]('\x0a');!_0x2384ab[_0x28f9f0(0x1f5)]('\x0a')&&(_0x2384ab+='\x0a');try{await _0x49c221['tXupJ'](writeFile,_0x1c5a1c,_0x2384ab,_0x49c221[_0x28f9f0(0x1e7)]);}catch{return![];}return!![];}export async function update(){const _0x5994a4=_0x363c4f,_0x249bd7={'TrTLj':function(_0x26a6bb){return _0x26a6bb();},'VPRBD':function(_0x171dc1,_0x26ce33){return _0x171dc1(_0x26ce33);},'HAtLA':function(_0x4d0222,_0x3efa41){return _0x4d0222(_0x3efa41);},'QZalj':_0x5994a4(0x1c1),'hxlfy':function(_0x261f80,_0x21b268){return _0x261f80+_0x21b268;},'IESGe':'\x0aSuccessfully\x20installed\x20latest\x20version.','tkMJP':_0x5994a4(0x1e8),'zkHry':function(_0x41f848,_0x221a36){return _0x41f848<_0x221a36;},'FwDSe':_0x5994a4(0x1d0),'AwpQm':_0x5994a4(0x1b8),'YVenZ':_0x5994a4(0x1c5),'weoBe':function(_0x1f0ec8,_0x52cb9c){return _0x1f0ec8===_0x52cb9c;}},_0x29b4ef=_0x249bd7['TrTLj'](getCurrentVersion);console['log']('\x0aCurrent\x20version:\x20'+_0x29b4ef);const _0x2949da=_0x249bd7['VPRBD'](resolveDistTag,_0x29b4ef);if(_0x2949da!==_0x5994a4(0x1bf)){console[_0x5994a4(0x1e6)]('Prerelease\x20channel\x20detected\x20(@'+_0x2949da+_0x5994a4(0x202)+_0x2949da+'\x20—\x20reinstalling\x20@'+_0x2949da+'...');const _0x10ff75=await runInstall(_0x29b4ef);if(!_0x10ff75)throw new Error('Update\x20failed\x20for\x20@'+_0x2949da+_0x5994a4(0x1d6));const _0x171a25=_0x249bd7['TrTLj'](getCurrentVersion);console[_0x5994a4(0x1e6)](_0x5994a4(0x1f0)+PACKAGE_NAME+'@'+_0x2949da+'.'),await _0x249bd7[_0x5994a4(0x1ef)](reinstallSkills,_0x171a25),await ensureActiveProfileGitignored(),console['log'](_0x249bd7['QZalj']);return;}console['log']('Checking\x20for\x20updates...');const _0x81759a=parseInt(_0x29b4ef['split']('.')[0x0],0xa);if(!Number[_0x5994a4(0x1cb)](_0x81759a))throw new Error(_0x249bd7['hxlfy'](_0x5994a4(0x1e5)+_0x29b4ef+'\x22.\x20'+_0x5994a4(0x1be),'npm\x20i\x20-g\x20'+PACKAGE_NAME+_0x5994a4(0x20c)));const _0xa98a4b=getLatestVersion(_0x81759a);let _0x21c585=_0x29b4ef;if(!_0xa98a4b[_0x5994a4(0x1dd)]){console['warn'](_0x5994a4(0x1ec)+_0xa98a4b[_0x5994a4(0x209)]),console[_0x5994a4(0x1e6)](_0x5994a4(0x1f2));const _0x3c2c80=await _0x249bd7['HAtLA'](runInstall,_0x29b4ef);if(_0x3c2c80)console['log'](_0x249bd7[_0x5994a4(0x208)]),_0x21c585=getCurrentVersion();else throw new Error(_0x5994a4(0x204)+_0xa98a4b['error']);}else{const _0x27b415=_0xa98a4b['version'];console['log']('Latest\x20version:\x20\x20'+_0x27b415);const _0x496ed6=compareVersions(_0x29b4ef,_0x27b415);if(_0x496ed6===0x0)console['log'](_0x249bd7['tkMJP']);else{if(_0x249bd7['zkHry'](_0x496ed6,0x0))console[_0x5994a4(0x1e6)]('\x0aYour\x20version\x20('+_0x29b4ef+_0x5994a4(0x1d2)+_0x27b415+').');else{const _0x43e8c6=await _0x249bd7['HAtLA'](runInstall,_0x29b4ef);if(_0x43e8c6)console[_0x5994a4(0x1e6)](_0x5994a4(0x1f9)+_0x27b415),_0x21c585=_0x27b415;else throw new Error('Update\x20failed.');}}}await reinstallSkills(_0x21c585);const _0x5dcace=await _0x249bd7[_0x5994a4(0x210)](isMarketplaceAdded,_0x5994a4(0x1d5)),_0x56d875=await isPluginInstalled(_0x249bd7['FwDSe']);_0x5dcace&&(await updateClaudeMarketplace(),console['log'](_0x249bd7['AwpQm']));if(_0x56d875){const _0x301891=await _0x249bd7[_0x5994a4(0x1ef)](getPluginInfo,_0x249bd7[_0x5994a4(0x1d7)]),_0x5b878a=_0x301891?.[_0x5994a4(0x1e9)]??'user';await updateClaudePlugin(_0x5b878a);if(_0x5b878a===_0x249bd7['YVenZ'])console['log']('\x0aClaude\x20plugin\x20updated\x20(project\x20scope).');else _0x249bd7[_0x5994a4(0x1fd)](_0x5b878a,'local')?console[_0x5994a4(0x1e6)](_0x5994a4(0x1c0)):console['log']('\x0aClaude\x20plugin\x20updated\x20(user\x20scope).');}const _0x4875d3=await _0x249bd7['TrTLj'](ensureActiveProfileGitignored);console['log']('\x0a✅\x20Update\x20complete!');}
@@ -1 +1 @@
1
- function _0x4565(_0x2203bf,_0x581cd3){_0x2203bf=_0x2203bf-0xab;const _0x232b52=_0x232b();let _0x45657d=_0x232b52[_0x2203bf];return _0x45657d;}(function(_0x1958cd,_0x4782b2){const _0x415977=_0x4565,_0x25acef=_0x1958cd();while(!![]){try{const _0x4c82ae=-parseInt(_0x415977(0xb2))/0x1*(parseInt(_0x415977(0xac))/0x2)+parseInt(_0x415977(0xba))/0x3+parseInt(_0x415977(0xd1))/0x4+-parseInt(_0x415977(0xd0))/0x5*(-parseInt(_0x415977(0xbc))/0x6)+parseInt(_0x415977(0xae))/0x7*(parseInt(_0x415977(0xcf))/0x8)+-parseInt(_0x415977(0xb5))/0x9*(parseInt(_0x415977(0xc4))/0xa)+parseInt(_0x415977(0xab))/0xb*(-parseInt(_0x415977(0xbb))/0xc);if(_0x4c82ae===_0x4782b2)break;else _0x25acef['push'](_0x25acef['shift']());}catch(_0x36c62d){_0x25acef['push'](_0x25acef['shift']());}}}(_0x232b,0xd0598));import{fetchAuthConfig,fetchCloudProfile,manualBrowserLogin,serverSideLogin}from'./utils/cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./utils/cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./utils/projectsConfig.js';import{getEnvNames}from'./env.js';export async function updateEnv(_0x5a8a90,_0x1dc398,_0x1a4ae3){const _0x476349=_0x4565,_0x9d6012={'BDufg':function(_0x11080e){return _0x11080e();},'sEDfK':function(_0x24a1cd,_0x3d2182){return _0x24a1cd===_0x3d2182;},'ovWIp':_0x476349(0xc0),'SkwLw':_0x476349(0xb4),'LmGzA':function(_0x5da99b,_0x120a00){return _0x5da99b===_0x120a00;},'zpJRS':function(_0x29a129,_0x52ae18){return _0x29a129+_0x52ae18;},'SROaS':function(_0x11208e,_0x3b6d1d){return _0x11208e+_0x3b6d1d;},'iIELT':function(_0x36c02f,_0x1a8d68){return _0x36c02f+_0x1a8d68;},'UxScp':function(_0x362d7d,_0x26e39e,_0x50425b){return _0x362d7d(_0x26e39e,_0x50425b);},'ILLxo':'success','ujxPH':function(_0xcb2941,_0x243e9e){return _0xcb2941 instanceof _0x243e9e;},'GscsA':function(_0x20e6a8,_0x11e48f){return _0x20e6a8+_0x11e48f;}},_0x435c84=await fetchCloudProfile(_0x5a8a90);if(!_0x435c84){const {envTypes:_0x40f137}=await _0x9d6012['BDufg'](getEnvNames),_0x38b713=_0x40f137[_0x5a8a90];(_0x9d6012[_0x476349(0xbe)](_0x38b713,_0x9d6012[_0x476349(0xcd)])||_0x38b713===_0x9d6012['SkwLw']||_0x9d6012['LmGzA'](_0x38b713,'ci'))&&(console[_0x476349(0xc5)](_0x9d6012['zpJRS'](_0x9d6012['SROaS']('Profile\x20\x22'+_0x5a8a90+'\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a',_0x476349(0xb9))+'\x0a',_0x476349(0xad)+_0x5a8a90+'\x0a')),process[_0x476349(0xcb)](0x1));}!_0x435c84&&(console['error'](_0x9d6012['iIELT']('No\x20profile\x20named\x20\x22'+_0x5a8a90+_0x476349(0xb8),'Create\x20it\x20with:\x0a')+'\x0a'+('\x20\x20ranger\x20profile\x20add\x20'+_0x5a8a90+'\x0a')),process[_0x476349(0xcb)](0x1));const _0x5b2370=await _0x9d6012[_0x476349(0xaf)](fetchAuthConfig)[_0x476349(0xb0)](()=>null),_0x5dbe3f=_0x435c84[_0x476349(0xd2)]&&_0x5b2370?resolveAuthEnvironmentLocally(_0x5b2370,_0x435c84['environmentKey']):null;if(_0x435c84[_0x476349(0xd2)]&&_0x5dbe3f&&!_0x1a4ae3?.[_0x476349(0xbd)]){console[_0x476349(0xc9)](_0x476349(0xce)+_0x5a8a90+_0x476349(0xc7));try{const _0x2f544b=await _0x9d6012['UxScp'](serverSideLogin,_0x5a8a90,{'force':!![]});if(_0x2f544b[_0x476349(0xb3)]===_0x9d6012['ILLxo']){console[_0x476349(0xc9)](_0x476349(0xb1)+_0x5a8a90+'\x22.');return;}_0x2f544b[_0x476349(0xb3)]==='not_configured'?console['log']('\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...'):(_0x2f544b[_0x476349(0xc2)]&&(console[_0x476349(0xc9)](_0x476349(0xbf)),console[_0x476349(0xc9)](_0x2f544b['test_output'])),console[_0x476349(0xc9)](_0x476349(0xc6)));}catch(_0x4dc8e6){console[_0x476349(0xc9)]('\x20\x20Server-side\x20login\x20error:\x20'+(_0x9d6012['ujxPH'](_0x4dc8e6,Error)?_0x4dc8e6['message']:String(_0x4dc8e6))),console[_0x476349(0xc9)](_0x476349(0xc6));}}const _0x3b10b4=_0x9d6012[_0x476349(0xcc)](readProfileOverrides,process[_0x476349(0xca)](),_0x5a8a90),_0x2aa9df=mergeCloudProfileSettings(_0x435c84[_0x476349(0xb6)]??{},_0x3b10b4??undefined),_0x567dcc=_0x2aa9df[_0x476349(0xc1)],_0x56e8de=_0x2aa9df[_0x476349(0xd3)],_0x5e0099=_0x5dbe3f?{..._0x5dbe3f,'domains':_0x56e8de?[_0x56e8de,..._0x5dbe3f['domains']]:_0x5dbe3f['domains'],'setupHeaders':_0x567dcc??_0x5dbe3f[_0x476349(0xc1)]}:_0x56e8de?{'key':_0x435c84[_0x476349(0xd2)]??'','domains':[_0x56e8de],'setupHeaders':_0x567dcc}:null;!_0x5e0099&&(console[_0x476349(0xc5)](_0x9d6012['GscsA']('Profile\x20\x22'+_0x5a8a90+'\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a'+_0x476349(0xc3)+'\x0a','\x20\x20ranger\x20profile\x20add\x20'+_0x5a8a90+_0x476349(0xb7))),process['exit'](0x1)),!isInteractive()&&(console[_0x476349(0xc5)]('Can\x27t\x20refresh\x20\x22'+_0x5a8a90+'\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a'+(_0x476349(0xc8)+_0x5a8a90+'`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).')),process['exit'](0x1)),console['log']('Capturing\x20a\x20fresh\x20session\x20for\x20\x22'+_0x5a8a90+'\x22\x20via\x20headed\x20browser...'),await manualBrowserLogin(_0x435c84,_0x5e0099),console['log'](_0x476349(0xb1)+_0x5a8a90+'\x22.');}function _0x232b(){const _0x21cf45=['catch','✓\x20Session\x20refreshed\x20for\x20\x22','99519OZKSKf','status','local','342fZWwnD','settings','\x20--url\x20<your-app-url>\x0a','\x22\x20found.\x0a','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a','2694573bInRpp','1561704TlkDzk','252DPJyxz','manual','sEDfK','\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:','legacy','setupHeaders','test_output','Re-create\x20it\x20with:\x0a','228170BRGJCe','error','\x20\x20Falling\x20back\x20to\x20headed\x20browser...','\x22\x20via\x20server-side\x20login...','Run\x20`ranger\x20profile\x20update\x20','log','cwd','exit','UxScp','ovWIp','Refreshing\x20session\x20for\x20\x22','12403304wxQOyJ','195895mrWDtD','4774924uxoeUs','environmentKey','baseUrl','209qZTJXw','22AEEKXw','\x20\x20ranger\x20profile\x20add\x20','7hvFkgw','BDufg'];_0x232b=function(){return _0x21cf45;};return _0x232b();}
1
+ function _0x56e4(_0x5a7788,_0x511427){_0x5a7788=_0x5a7788-0xe6;const _0x2b175f=_0x2b17();let _0x56e4ce=_0x2b175f[_0x5a7788];return _0x56e4ce;}(function(_0x245823,_0x42a7ca){const _0x53166d=_0x56e4,_0x2bfbc4=_0x245823();while(!![]){try{const _0x2aa784=parseInt(_0x53166d(0x102))/0x1*(parseInt(_0x53166d(0xe7))/0x2)+-parseInt(_0x53166d(0xf6))/0x3*(parseInt(_0x53166d(0xf3))/0x4)+parseInt(_0x53166d(0x100))/0x5+-parseInt(_0x53166d(0x105))/0x6*(parseInt(_0x53166d(0xfc))/0x7)+-parseInt(_0x53166d(0x10e))/0x8*(-parseInt(_0x53166d(0x108))/0x9)+-parseInt(_0x53166d(0xe8))/0xa+-parseInt(_0x53166d(0x103))/0xb*(-parseInt(_0x53166d(0xfa))/0xc);if(_0x2aa784===_0x42a7ca)break;else _0x2bfbc4['push'](_0x2bfbc4['shift']());}catch(_0x37f1d9){_0x2bfbc4['push'](_0x2bfbc4['shift']());}}}(_0x2b17,0xaf7f1));import{fetchAuthConfig,fetchCloudProfile,manualBrowserLogin,serverSideLogin}from'./utils/cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./utils/cloudProfileSession.js';function _0x2b17(){const _0x451a5f=['2134BtcoGm','12608700tVFwzZ','\x20--url\x20<your-app-url>\x0a','error','\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:','✓\x20Session\x20refreshed\x20for\x20\x22','status','Re-create\x20it\x20with:\x0a','\x20\x20ranger\x20profile\x20add\x20','log','jlCbU','environmentKey','275348cwxUwj','dHqtA','legacy','21xgqaCG','ZRFyl','\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...','FhxDD','3683868PEfYut','exit','7UgGmDH','Profile\x20\x22','UQYUF','BBrvT','6268430MOFlHK','TzaLj','1013RxsfMc','22VgCvDn','`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).','4170594XNSFBG','domains','yphYB','9caLcwg','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a','\x22\x20found.\x0a','not_configured','catch','test_output','1665008hqcOZP','dxeyz'];_0x2b17=function(){return _0x451a5f;};return _0x2b17();}import{mergeCloudProfileSettings,readProfileOverrides}from'./utils/projectsConfig.js';import{getEnvNames}from'./env.js';export async function updateEnv(_0x2356f5,_0x48698f,_0x55d0ca){const _0x2f8e28=_0x56e4,_0x29509d={'jlCbU':function(_0x1767f1,_0x27ba06){return _0x1767f1(_0x27ba06);},'dxeyz':function(_0x54d52d,_0x14e773){return _0x54d52d===_0x14e773;},'CbeGx':_0x2f8e28(0xf5),'hIjhX':'local','BBrvT':function(_0x25b7b6,_0x449f2a){return _0x25b7b6+_0x449f2a;},'dHqtA':function(_0x1d3cba,_0x1a9aeb){return _0x1d3cba+_0x1a9aeb;},'UQYUF':function(_0x2215aa){return _0x2215aa();},'TzaLj':function(_0x3fec32,_0x5244c2,_0x55c4b1){return _0x3fec32(_0x5244c2,_0x55c4b1);},'FBOKW':function(_0x573e40,_0x3024eb,_0x147c99){return _0x573e40(_0x3024eb,_0x147c99);},'FhxDD':'success','GvvdM':_0x2f8e28(0xeb),'ZRFyl':function(_0x75325a,_0x59575f){return _0x75325a(_0x59575f);},'yphYB':function(_0x158ef7,_0x43c966){return _0x158ef7??_0x43c966;},'kESKg':function(_0x1d3df5,_0xc1fc3e){return _0x1d3df5+_0xc1fc3e;}},_0x4703cf=await _0x29509d[_0x2f8e28(0xf1)](fetchCloudProfile,_0x2356f5);if(!_0x4703cf){const {envTypes:_0x53b3d7}=await getEnvNames(),_0x1b97af=_0x53b3d7[_0x2356f5];(_0x29509d[_0x2f8e28(0xe6)](_0x1b97af,_0x29509d['CbeGx'])||_0x1b97af===_0x29509d['hIjhX']||_0x1b97af==='ci')&&(console['error'](_0x29509d[_0x2f8e28(0xff)](_0x29509d[_0x2f8e28(0xf4)]('Profile\x20\x22'+_0x2356f5+'\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a'+_0x2f8e28(0x109),'\x0a'),_0x2f8e28(0xef)+_0x2356f5+'\x0a')),process['exit'](0x1));}!_0x4703cf&&(console[_0x2f8e28(0xea)](_0x29509d['dHqtA']('No\x20profile\x20named\x20\x22'+_0x2356f5+_0x2f8e28(0x10a),'Create\x20it\x20with:\x0a')+'\x0a'+('\x20\x20ranger\x20profile\x20add\x20'+_0x2356f5+'\x0a')),process['exit'](0x1));const _0x5119ca=await _0x29509d[_0x2f8e28(0xfe)](fetchAuthConfig)[_0x2f8e28(0x10c)](()=>null),_0x393a23=_0x4703cf[_0x2f8e28(0xf2)]&&_0x5119ca?_0x29509d[_0x2f8e28(0x101)](resolveAuthEnvironmentLocally,_0x5119ca,_0x4703cf['environmentKey']):null;if(_0x4703cf['environmentKey']&&_0x393a23&&!_0x55d0ca?.['manual']){console[_0x2f8e28(0xf0)]('Refreshing\x20session\x20for\x20\x22'+_0x2356f5+'\x22\x20via\x20server-side\x20login...');try{const _0x17def0=await _0x29509d['FBOKW'](serverSideLogin,_0x2356f5,{'force':!![]});if(_0x17def0['status']===_0x29509d[_0x2f8e28(0xf9)]){console['log'](_0x2f8e28(0xec)+_0x2356f5+'\x22.');return;}_0x29509d['dxeyz'](_0x17def0[_0x2f8e28(0xed)],_0x2f8e28(0x10b))?console['log'](_0x2f8e28(0xf8)):(_0x17def0['test_output']&&(console[_0x2f8e28(0xf0)](_0x29509d['GvvdM']),console[_0x2f8e28(0xf0)](_0x17def0[_0x2f8e28(0x10d)])),console['log']('\x20\x20Falling\x20back\x20to\x20headed\x20browser...'));}catch(_0x3be837){console['log']('\x20\x20Server-side\x20login\x20error:\x20'+(_0x3be837 instanceof Error?_0x3be837['message']:_0x29509d[_0x2f8e28(0xf7)](String,_0x3be837))),console[_0x2f8e28(0xf0)]('\x20\x20Falling\x20back\x20to\x20headed\x20browser...');}}const _0x1bcf21=readProfileOverrides(process['cwd'](),_0x2356f5),_0x161926=mergeCloudProfileSettings(_0x4703cf['settings']??{},_0x29509d[_0x2f8e28(0x107)](_0x1bcf21,undefined)),_0x96f215=_0x161926['setupHeaders'],_0x5c16a3=_0x161926['baseUrl'],_0x348fee=_0x393a23?{..._0x393a23,'domains':_0x5c16a3?[_0x5c16a3,..._0x393a23[_0x2f8e28(0x106)]]:_0x393a23[_0x2f8e28(0x106)],'setupHeaders':_0x96f215??_0x393a23['setupHeaders']}:_0x5c16a3?{'key':_0x4703cf['environmentKey']??'','domains':[_0x5c16a3],'setupHeaders':_0x96f215}:null;!_0x348fee&&(console['error'](_0x29509d['kESKg'](_0x2f8e28(0xfd)+_0x2356f5+'\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a'+_0x2f8e28(0xee)+'\x0a','\x20\x20ranger\x20profile\x20add\x20'+_0x2356f5+_0x2f8e28(0xe9))),process['exit'](0x1)),!isInteractive()&&(console['error'](_0x29509d['BBrvT']('Can\x27t\x20refresh\x20\x22'+_0x2356f5+'\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a','Run\x20`ranger\x20profile\x20update\x20'+_0x2356f5+_0x2f8e28(0x104))),process[_0x2f8e28(0xfb)](0x1)),console[_0x2f8e28(0xf0)]('Capturing\x20a\x20fresh\x20session\x20for\x20\x22'+_0x2356f5+'\x22\x20via\x20headed\x20browser...'),await manualBrowserLogin(_0x4703cf,_0x348fee),console[_0x2f8e28(0xf0)]('✓\x20Session\x20refreshed\x20for\x20\x22'+_0x2356f5+'\x22.');}
@@ -1 +1 @@
1
- (function(_0x10df3b,_0x1dbc62){const _0xdfbd58=_0xd504,_0x3f4231=_0x10df3b();while(!![]){try{const _0x3eb429=-parseInt(_0xdfbd58(0x160))/0x1+-parseInt(_0xdfbd58(0x162))/0x2+-parseInt(_0xdfbd58(0x16b))/0x3*(-parseInt(_0xdfbd58(0x15d))/0x4)+parseInt(_0xdfbd58(0x168))/0x5*(-parseInt(_0xdfbd58(0x161))/0x6)+-parseInt(_0xdfbd58(0x165))/0x7*(parseInt(_0xdfbd58(0x166))/0x8)+-parseInt(_0xdfbd58(0x163))/0x9*(parseInt(_0xdfbd58(0x15e))/0xa)+parseInt(_0xdfbd58(0x15f))/0xb;if(_0x3eb429===_0x1dbc62)break;else _0x3f4231['push'](_0x3f4231['shift']());}catch(_0x264654){_0x3f4231['push'](_0x3f4231['shift']());}}}(_0x1ea8,0x8310e));function _0xd504(_0x1ad40f,_0x5482de){_0x1ad40f=_0x1ad40f-0x15d;const _0x1ea8cd=_0x1ea8();let _0xd5047e=_0x1ea8cd[_0x1ad40f];return _0xd5047e;}import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';export async function useEnv(_0x351ad3){const _0x3275c5=_0xd504,_0x4f0dc9={'OvTIw':function(_0x5b5f50,_0x46e7f4){return _0x5b5f50(_0x46e7f4);},'iWrIt':function(_0x37ad93,_0x5b9fa7,_0x192153){return _0x37ad93(_0x5b9fa7,_0x192153);},'LVeif':function(_0x4bac5e,_0x200e33){return _0x4bac5e(_0x200e33);},'iFaKz':function(_0x41baa0,_0x36e02c){return _0x41baa0(_0x36e02c);},'XsAUJ':function(_0x4fb149,_0x153342){return _0x4fb149===_0x153342;},'UoUZZ':function(_0x362221,_0xdc0869){return _0x362221+_0xdc0869;}},_0x2e1c93=_0x4f0dc9[_0x3275c5(0x164)](getEnvDir,_0x351ad3),_0x4e6205=_0x4f0dc9['iWrIt'](join,_0x2e1c93,_0x3275c5(0x16a)),_0x4e9070=_0x4f0dc9['OvTIw'](existsSync,_0x2e1c93)&&_0x4f0dc9[_0x3275c5(0x16e)](existsSync,_0x4e6205);if(_0x4e9070){await _0x4f0dc9['iFaKz'](writeActiveProfileName,_0x351ad3),console[_0x3275c5(0x167)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x351ad3+'\x22');return;}let _0x542166=null,_0x3b7eb9=![];try{_0x542166=await _0x4f0dc9['LVeif'](fetchCloudProfile,_0x351ad3);if(!_0x542166)_0x3b7eb9=!![];}catch(_0xb24b13){_0xb24b13 instanceof ApiError&&_0x4f0dc9[_0x3275c5(0x169)](_0xb24b13[_0x3275c5(0x16f)],0x194)&&(_0x3b7eb9=!![]);}if(_0x3b7eb9)throw new Error(_0x4f0dc9['UoUZZ'](_0x3275c5(0x16c)+_0x351ad3+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20'+'Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20',_0x3275c5(0x16d)+_0x351ad3+'`\x20to\x20create\x20one.'));await writeActiveProfileName(_0x351ad3),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x351ad3+'\x22');}function _0x1ea8(){const _0x5c1f40=['93188pbfLMT','22980FyYPaB','24449161stcOst','770317MGVLUf','56334pWpCCF','1141756RVgBcx','666qLnehB','OvTIw','1217783YnkLBB','24neGwDu','log','150IFgaFR','XsAUJ','settings.json','81aLXYss','Profile\x20\x22','`ranger\x20profile\x20add\x20','LVeif','status'];_0x1ea8=function(){return _0x5c1f40;};return _0x1ea8();}
1
+ function _0xa5c9(_0x2fe57e,_0x16afb1){_0x2fe57e=_0x2fe57e-0x1ee;const _0x40b8dd=_0x40b8();let _0xa5c9cb=_0x40b8dd[_0x2fe57e];return _0xa5c9cb;}(function(_0x4679c3,_0x6da604){const _0x10d342=_0xa5c9,_0x3e59b6=_0x4679c3();while(!![]){try{const _0x585fff=-parseInt(_0x10d342(0x1fc))/0x1*(parseInt(_0x10d342(0x1fb))/0x2)+-parseInt(_0x10d342(0x1f9))/0x3+-parseInt(_0x10d342(0x1f5))/0x4+-parseInt(_0x10d342(0x1f1))/0x5*(-parseInt(_0x10d342(0x1f0))/0x6)+parseInt(_0x10d342(0x1f3))/0x7+-parseInt(_0x10d342(0x1f8))/0x8*(parseInt(_0x10d342(0x1fe))/0x9)+-parseInt(_0x10d342(0x1f7))/0xa*(-parseInt(_0x10d342(0x1fd))/0xb);if(_0x585fff===_0x6da604)break;else _0x3e59b6['push'](_0x3e59b6['shift']());}catch(_0x5f0264){_0x3e59b6['push'](_0x3e59b6['shift']());}}}(_0x40b8,0x59bd4));import{join}from'path';function _0x40b8(){const _0x43c852=['11qKOvFD','963855UUqwdf','`ranger\x20profile\x20add\x20','status','812832xLAFFR','5BZaHpM','settings.json','1605457kDxLuq','log','2166632SKtTSq','\x0a✓\x20Now\x20using\x20profile\x20\x22','14972060amNxTk','8oWjqRS','1514991ASXANH','hXRQT','227138JCCbXN','3IeITHR'];_0x40b8=function(){return _0x43c852;};return _0x40b8();}import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';export async function useEnv(_0x55be66){const _0xb0db9=_0xa5c9,_0x556c0e={'hXRQT':function(_0x25cfca,_0x183ff1,_0x2eb746){return _0x25cfca(_0x183ff1,_0x2eb746);},'ONIhp':function(_0x1f28b0,_0x58f978){return _0x1f28b0(_0x58f978);},'wwEvC':function(_0x159216,_0x12a52f){return _0x159216 instanceof _0x12a52f;}},_0x406f1=getEnvDir(_0x55be66),_0x456306=_0x556c0e[_0xb0db9(0x1fa)](join,_0x406f1,_0xb0db9(0x1f2)),_0x3d28c9=existsSync(_0x406f1)&&existsSync(_0x456306);if(_0x3d28c9){await _0x556c0e['ONIhp'](writeActiveProfileName,_0x55be66),console[_0xb0db9(0x1f4)](_0xb0db9(0x1f6)+_0x55be66+'\x22');return;}let _0xe86e49=null,_0x1c81dc=![];try{_0xe86e49=await fetchCloudProfile(_0x55be66);if(!_0xe86e49)_0x1c81dc=!![];}catch(_0x232b5a){_0x556c0e['wwEvC'](_0x232b5a,ApiError)&&_0x232b5a[_0xb0db9(0x1ef)]===0x194&&(_0x1c81dc=!![]);}if(_0x1c81dc)throw new Error('Profile\x20\x22'+_0x55be66+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20'+'Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'+(_0xb0db9(0x1ee)+_0x55be66+'`\x20to\x20create\x20one.'));await writeActiveProfileName(_0x55be66),console[_0xb0db9(0x1f4)](_0xb0db9(0x1f6)+_0x55be66+'\x22');}
@@ -1 +1 @@
1
- const _0x32f652=_0x1d3f;(function(_0x59d6a1,_0x393257){const _0x215ba9=_0x1d3f,_0x5606fa=_0x59d6a1();while(!![]){try{const _0xa11003=parseInt(_0x215ba9(0x11f))/0x1*(parseInt(_0x215ba9(0x119))/0x2)+parseInt(_0x215ba9(0x122))/0x3+-parseInt(_0x215ba9(0x116))/0x4+-parseInt(_0x215ba9(0x11e))/0x5*(parseInt(_0x215ba9(0x121))/0x6)+parseInt(_0x215ba9(0x124))/0x7*(parseInt(_0x215ba9(0x11d))/0x8)+-parseInt(_0x215ba9(0x11a))/0x9+parseInt(_0x215ba9(0x115))/0xa;if(_0xa11003===_0x393257)break;else _0x5606fa['push'](_0x5606fa['shift']());}catch(_0x3f0a19){_0x5606fa['push'](_0x5606fa['shift']());}}}(_0x5dfc,0xd6ce1));import{existsSync}from'fs';import{readFile}from'fs/promises';import{join}from'path';function _0x1d3f(_0x1abebc,_0x574a7f){_0x1abebc=_0x1abebc-0x115;const _0x5dfc8f=_0x5dfc();let _0x1d3fde=_0x5dfc8f[_0x1abebc];return _0x1d3fde;}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';import{readLastProfile,writeLastProfile}from'./projectsConfig.js';function _0x5dfc(){const _0x225bff=['24WVAuUy','50510fbzxht','9utJubQ','trim','516CHhmLR','1794309eMbwol','active-profile.txt','1569631GbRaUo','18689200aCXXJT','2663780RKHsqD','cwd','EqmjD','90942iXTCUj','10209627PanrRr','hwTFX','utf-8'];_0x5dfc=function(){return _0x225bff;};return _0x5dfc();}const LEGACY_ACTIVE_PROFILE_FILE=_0x32f652(0x123),LEGACY_ACTIVE_ENV_FILE='active-env.txt';function readLegacyActiveProfileFile(){const _0x3941bd=_0x32f652,_0x2c51ef={'EqmjD':function(_0x22f0b8){return _0x22f0b8();},'AItBb':function(_0x5215bc){return _0x5215bc();}},_0x3876a8=[join(getRangerDir(),LEGACY_ACTIVE_PROFILE_FILE),join(_0x2c51ef[_0x3941bd(0x118)](getRangerHomeDir),LEGACY_ACTIVE_PROFILE_FILE),join(_0x2c51ef[_0x3941bd(0x118)](getRangerDir),LEGACY_ACTIVE_ENV_FILE),join(_0x2c51ef['AItBb'](getRangerHomeDir),LEGACY_ACTIVE_ENV_FILE)];for(const _0x3d86c7 of _0x3876a8){if(existsSync(_0x3d86c7))return _0x3d86c7;}return null;}export async function readActiveProfileName(){const _0x27ff2c=_0x32f652,_0x1e88a4={'YrFJH':function(_0x4e3cb0,_0x5798a6){return _0x4e3cb0(_0x5798a6);},'hwTFX':_0x27ff2c(0x11c)},_0x128d9b=_0x1e88a4['YrFJH'](readLastProfile,process[_0x27ff2c(0x117)]());if(_0x128d9b)return _0x128d9b;const _0x42f030=readLegacyActiveProfileFile();if(!_0x42f030)return null;try{return(await readFile(_0x42f030,_0x1e88a4[_0x27ff2c(0x11b)]))[_0x27ff2c(0x120)]()||null;}catch{return null;}}export async function writeActiveProfileName(_0x96a05a){writeLastProfile(process['cwd'](),_0x96a05a);}
1
+ function _0x5b56(){const _0x573cd2=['292608FFaXRD','440090HbUEWb','204ViPlbl','Plakz','cwd','12JoBEcF','839724ZUesbJ','16099369powkQl','9KjEEds','2700957xvQptn','2283866HWtcnK','150555ejKUKV','20HwgQuB','8ftsiiE','active-env.txt'];_0x5b56=function(){return _0x573cd2;};return _0x5b56();}const _0x1494bd=_0x2555;(function(_0xd1201e,_0x3f78cd){const _0x2250d0=_0x2555,_0x1215da=_0xd1201e();while(!![]){try{const _0x39c8d4=-parseInt(_0x2250d0(0x199))/0x1+parseInt(_0x2250d0(0x19d))/0x2+parseInt(_0x2250d0(0x193))/0x3*(-parseInt(_0x2250d0(0x190))/0x4)+-parseInt(_0x2250d0(0x18f))/0x5*(parseInt(_0x2250d0(0x195))/0x6)+-parseInt(_0x2250d0(0x19c))/0x7*(-parseInt(_0x2250d0(0x191))/0x8)+parseInt(_0x2250d0(0x19b))/0x9*(parseInt(_0x2250d0(0x194))/0xa)+-parseInt(_0x2250d0(0x19a))/0xb*(-parseInt(_0x2250d0(0x198))/0xc);if(_0x39c8d4===_0x3f78cd)break;else _0x1215da['push'](_0x1215da['shift']());}catch(_0x2e2b13){_0x1215da['push'](_0x1215da['shift']());}}}(_0x5b56,0xa70a2));function _0x2555(_0x56c993,_0x496f96){_0x56c993=_0x56c993-0x18f;const _0x5b566b=_0x5b56();let _0x255539=_0x5b566b[_0x56c993];return _0x255539;}import{existsSync}from'fs';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='active-profile.txt',LEGACY_ACTIVE_ENV_FILE=_0x1494bd(0x192);function readLegacyActiveProfileFile(){const _0x2fba72=[join(getRangerDir(),LEGACY_ACTIVE_PROFILE_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_PROFILE_FILE),join(getRangerDir(),LEGACY_ACTIVE_ENV_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_ENV_FILE)];for(const _0x37ba8c of _0x2fba72){if(existsSync(_0x37ba8c))return _0x37ba8c;}return null;}export async function readActiveProfileName(){const _0x103935=_0x1494bd,_0x429b22={'Plakz':function(_0xe67ea5,_0x435bd4){return _0xe67ea5(_0x435bd4);},'ugZOd':function(_0x577976){return _0x577976();},'AhyRV':'utf-8'},_0x5df339=_0x429b22[_0x103935(0x196)](readLastProfile,process[_0x103935(0x197)]());if(_0x5df339)return _0x5df339;const _0x51fda7=_0x429b22['ugZOd'](readLegacyActiveProfileFile);if(!_0x51fda7)return null;try{return(await readFile(_0x51fda7,_0x429b22['AhyRV']))['trim']()||null;}catch{return null;}}export async function writeActiveProfileName(_0x3f1b81){const _0x5e2616=_0x1494bd;writeLastProfile(process[_0x5e2616(0x197)](),_0x3f1b81);}
@@ -1 +1 @@
1
- const _0x2c9b88=_0x5c70;(function(_0x430eff,_0x2c2cbb){const _0x57c943=_0x5c70,_0x355293=_0x430eff();while(!![]){try{const _0x4226a7=-parseInt(_0x57c943(0x1cc))/0x1*(-parseInt(_0x57c943(0x1ed))/0x2)+parseInt(_0x57c943(0x1cd))/0x3*(-parseInt(_0x57c943(0x1cf))/0x4)+-parseInt(_0x57c943(0x1ea))/0x5+parseInt(_0x57c943(0x1fa))/0x6+-parseInt(_0x57c943(0x1d3))/0x7*(parseInt(_0x57c943(0x1e5))/0x8)+-parseInt(_0x57c943(0x1d4))/0x9*(-parseInt(_0x57c943(0x1d1))/0xa)+parseInt(_0x57c943(0x1e9))/0xb*(parseInt(_0x57c943(0x1e8))/0xc);if(_0x4226a7===_0x2c2cbb)break;else _0x355293['push'](_0x355293['shift']());}catch(_0x3109f5){_0x355293['push'](_0x355293['shift']());}}}(_0x3da4,0x911a2));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';import{getAiProxyUrl}from'./environment.js';const AI_PROXY_METADATA_HEADERS_ENV_VAR='ANTHROPIC_CUSTOM_HEADERS',AGENT_ENV_PASSTHROUGH_KEYS=[_0x2c9b88(0x1fc),'HOME',_0x2c9b88(0x1c4),'TMP',_0x2c9b88(0x1da),_0x2c9b88(0x1db),_0x2c9b88(0x1c8),'LOCALAPPDATA',_0x2c9b88(0x1e0),_0x2c9b88(0x1fe),'PLAYWRIGHT_BROWSERS_PATH',_0x2c9b88(0x1ca),'CHROME_BIN',_0x2c9b88(0x1d6),_0x2c9b88(0x201),'NPM_CONFIG_CACHE',_0x2c9b88(0x1f6),_0x2c9b88(0x1d0),'npm_config_prefix','NPM_CONFIG_PREFIX',_0x2c9b88(0x1ff),_0x2c9b88(0x1ee),'DEBUG',_0x2c9b88(0x1eb),_0x2c9b88(0x1fd),'RANGER_TRANSPORT',_0x2c9b88(0x1c6),'RANGERWRIGHT_CLICK_TIMEOUT_MS',_0x2c9b88(0x200),'NOVA_ACT_API_KEY',_0x2c9b88(0x1c7),'AWS_REGION','AWS_DEFAULT_REGION',_0x2c9b88(0x1d5),'AWS_SHARED_CREDENTIALS_FILE',_0x2c9b88(0x1d2),_0x2c9b88(0x1dd),_0x2c9b88(0x1f3),'AWS_SDK_LOAD_CONFIG','AWS_WEB_IDENTITY_TOKEN_FILE','AWS_ROLE_ARN','AWS_ROLE_SESSION_NAME',AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=[_0x2c9b88(0x1e7),'$PATH',_0x2c9b88(0x1f0)];function parseCustomHeaders(_0x3271a7){const _0x59a2cb=_0x2c9b88,_0x35aafc={'IEuIZ':function(_0x5f24d5,_0x57b572){return _0x5f24d5===_0x57b572;}};if(!_0x3271a7)return[];return _0x3271a7['split'](/\r?\n/)['map'](_0x36a127=>_0x36a127[_0x59a2cb(0x1e1)]())['filter'](Boolean)['map'](_0x5a8919=>{const _0x3ac7a8=_0x59a2cb,_0x39a6f9=_0x5a8919['indexOf'](':');if(_0x35aafc['IEuIZ'](_0x39a6f9,-0x1))return null;const _0x4beb30=_0x5a8919['slice'](0x0,_0x39a6f9)[_0x3ac7a8(0x1e1)](),_0x82d964=_0x5a8919[_0x3ac7a8(0x1cb)](_0x39a6f9+0x1)['trim']();if(!_0x4beb30)return null;return[_0x4beb30,_0x82d964];})[_0x59a2cb(0x1ec)](_0x5c6e39=>_0x5c6e39!==null);}export function getAgentPathHealthWarning(_0x3b0e0d,_0x46817a=process['platform']){const _0x4dba2a=_0x2c9b88,_0x360a4d={'rPHEq':function(_0x1785ca,_0x305dd1){return _0x1785ca||_0x305dd1;},'IxNaQ':function(_0x2dfd51,_0x2d103e){return _0x2dfd51===_0x2d103e;},'yVbax':'PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','ZqkfO':function(_0x40fdc3,_0x241f29){return _0x40fdc3!==_0x241f29;},'CuXCa':_0x4dba2a(0x1df),'yhYEi':'/usr/bin','KMQEQ':_0x4dba2a(0x202),'JzdKZ':function(_0x3664a4,_0x2e498f){return _0x3664a4===_0x2e498f;}},_0x2f203a=[],_0x1dc6ab=_0x360a4d[_0x4dba2a(0x1fb)](_0x3b0e0d,'')['split'](delimiter)[_0x4dba2a(0x1ec)](Boolean);_0x360a4d['IxNaQ'](_0x1dc6ab['length'],0x0)&&_0x2f203a[_0x4dba2a(0x1f4)]('PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.');UNEXPANDED_PATH_TOKEN_PATTERNS[_0x4dba2a(0x1ef)](_0x5f55e2=>(_0x3b0e0d||'')[_0x4dba2a(0x1f8)](_0x5f55e2))&&_0x2f203a[_0x4dba2a(0x1f4)](_0x360a4d['yVbax']);if(_0x360a4d[_0x4dba2a(0x1f1)](_0x46817a,_0x360a4d['CuXCa'])){const _0x6d6401=_0x1dc6ab['includes'](_0x360a4d[_0x4dba2a(0x1d7)]),_0x3b6d15=_0x1dc6ab[_0x4dba2a(0x1f8)]('/bin');!_0x6d6401&&!_0x3b6d15&&_0x2f203a[_0x4dba2a(0x1f4)](_0x360a4d[_0x4dba2a(0x1e3)]);}if(_0x360a4d[_0x4dba2a(0x1e4)](_0x2f203a[_0x4dba2a(0x1c5)],0x0))return null;return{'summary':'Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','issues':_0x2f203a};}function _0x3da4(){const _0x4b9ef3=['entries','AWS_SESSION_TOKEN','push','toLowerCase','npm_config_userconfig','fromEntries','includes','byokEnabled','3958572DEYptx','rPHEq','PATH','RANGER_TEST_SKIP_BROWSER_WAIT','XDG_CONFIG_HOME','npm_config_registry','RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS','npm_config_cache','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','eIQOt','ranger-claude-tmp','sessionToken','map','TMPDIR','length','RANGERWRIGHT_DAEMON_START_TIMEOUT_MS','AWS_PROFILE','APPDATA','ZPcmO','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','slice','2GNJfGA','1620maSVbK','from','276qDsufO','NPM_CONFIG_USERCONFIG','119660IirEkJ','AWS_ACCESS_KEY_ID','42HFFHhe','162SxJQqv','AWS_CONFIG_FILE','CHROMIUM_BIN','yhYEi','metadata','x-ranger-','TEMP','USERPROFILE','has','AWS_SECRET_ACCESS_KEY','HrORt','win32','XDG_CACHE_HOME','trim','TMP','KMQEQ','JzdKZ','544312anwDPY','env','${PATH}','2676fGeyxL','43329vzBgdS','3832365OvRNUh','NODE_ENV','filter','52758kXfpCL','NPM_CONFIG_REGISTRY','some','%PATH%','ZqkfO'];_0x3da4=function(){return _0x4b9ef3;};return _0x3da4();}function _0x5c70(_0x2f69f5,_0x4e9733){_0x2f69f5=_0x2f69f5-0x1c4;const _0x3da4c6=_0x3da4();let _0x5c70b6=_0x3da4c6[_0x2f69f5];return _0x5c70b6;}export function buildAgentEnv(_0x569d36){const _0x1db132=_0x2c9b88,_0x534fcc={'eIQOt':function(_0x5eecf3){return _0x5eecf3();},'HTRdT':'true','HrORt':function(_0x4348b1,_0x547e55,_0x1e1401){return _0x4348b1(_0x547e55,_0x1e1401);},'ZPcmO':_0x1db132(0x204),'PxQVb':function(_0x37d5b4,_0x9e8fdb){return _0x37d5b4(_0x9e8fdb);},'GXcyj':function(_0x7431d2,_0x46ac29){return _0x7431d2==_0x46ac29;},'VycWr':function(_0x23eab3,_0xf502f0){return _0x23eab3===_0xf502f0;}};if(_0x569d36[_0x1db132(0x1f9)])return Object[_0x1db132(0x1f7)](Object['entries'](process['env'])['filter'](_0x5243a7=>typeof _0x5243a7[0x1]==='string'));if(!_0x569d36['sessionToken'])throw new Error('Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false');const _0x1158a4={'ANTHROPIC_API_KEY':_0x569d36[_0x1db132(0x205)],'ANTHROPIC_BASE_URL':_0x534fcc[_0x1db132(0x203)](getAiProxyUrl),'DISABLE_TELEMETRY':_0x534fcc['HTRdT']};for(const _0xc9d9af of AGENT_ENV_PASSTHROUGH_KEYS){const _0x12553f=process['env'][_0xc9d9af];_0x12553f&&!['TMPDIR','TMP',_0x1db132(0x1da)]['includes'](_0xc9d9af)&&(_0x1158a4[_0xc9d9af]=_0x12553f);}const _0x5a8890=_0x534fcc[_0x1db132(0x1de)](join,tmpdir(),_0x534fcc[_0x1db132(0x1c9)]);try{mkdirSync(_0x5a8890,{'recursive':!![]});}catch{}_0x1158a4[_0x1db132(0x1c4)]=_0x5a8890,_0x1158a4[_0x1db132(0x1e2)]=_0x5a8890,_0x1158a4[_0x1db132(0x1da)]=_0x5a8890;const _0x416b01=_0x534fcc['PxQVb'](parseCustomHeaders,process[_0x1db132(0x1e6)][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x55207a=new Map(_0x416b01),_0x3a661e=new Set(_0x416b01[_0x1db132(0x206)](([_0x32c321])=>_0x32c321[_0x1db132(0x1f5)]()));if(_0x569d36[_0x1db132(0x1d8)])for(const [_0x1e7d51,_0x2a5a5c]of Object[_0x1db132(0x1f2)](_0x569d36[_0x1db132(0x1d8)])){if(_0x534fcc['GXcyj'](_0x2a5a5c,null)||_0x534fcc['VycWr'](_0x2a5a5c,''))continue;const _0x336923=_0x1db132(0x1d9)+_0x1e7d51;!_0x3a661e[_0x1db132(0x1dc)](_0x336923['toLowerCase']())&&(_0x55207a['set'](_0x336923,_0x2a5a5c),_0x3a661e['add'](_0x336923['toLowerCase']()));}const _0x395faf=Array[_0x1db132(0x1ce)](_0x55207a['entries']())['map'](([_0x3bb1db,_0x2ffb09])=>_0x3bb1db+':\x20'+_0x2ffb09)['join']('\x0a');return _0x395faf&&(_0x1158a4[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x395faf),_0x1158a4;}
1
+ function _0x2c49(_0x2cbbdf,_0x1b3e91){_0x2cbbdf=_0x2cbbdf-0x1ae;const _0x471bc3=_0x471b();let _0x2c49df=_0x471bc3[_0x2cbbdf];return _0x2c49df;}const _0x5d7c1f=_0x2c49;(function(_0xd5c095,_0x22c45e){const _0x6950e3=_0x2c49,_0x28fcb7=_0xd5c095();while(!![]){try{const _0x208d01=parseInt(_0x6950e3(0x1cb))/0x1+-parseInt(_0x6950e3(0x1e8))/0x2+-parseInt(_0x6950e3(0x1c3))/0x3*(parseInt(_0x6950e3(0x1c0))/0x4)+parseInt(_0x6950e3(0x1bb))/0x5+parseInt(_0x6950e3(0x1ce))/0x6+parseInt(_0x6950e3(0x1e7))/0x7+parseInt(_0x6950e3(0x1b2))/0x8*(-parseInt(_0x6950e3(0x1cc))/0x9);if(_0x208d01===_0x22c45e)break;else _0x28fcb7['push'](_0x28fcb7['shift']());}catch(_0x4602d4){_0x28fcb7['push'](_0x28fcb7['shift']());}}}(_0x471b,0x6baf9));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';import{getAiProxyUrl}from'./environment.js';function _0x471b(){const _0x55dfcd=['NPM_CONFIG_REGISTRY','string','ANTHROPIC_CUSTOM_HEADERS','AWS_ACCESS_KEY_ID','npm_config_prefix','LOCALAPPDATA','includes','join','agkqV','env','Mqwmb','toLowerCase','ZlZPl','NOVA_ACT_API_KEY','true','qcPAj','okbDu','PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','AWS_ROLE_SESSION_NAME','RANGERWRIGHT_CLICK_TIMEOUT_MS','Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','length','6016031BNYRWh','311882tfyAoL','raEgl','map','NPM_CONFIG_USERCONFIG','AWS_SHARED_CREDENTIALS_FILE','AWS_WEB_IDENTITY_TOKEN_FILE','push','2403512mrlcdy','NPM_CONFIG_CACHE','USERPROFILE','split','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','RANGER_TRANSPORT','has','AWS_ROLE_ARN','fromEntries','2432120JaHDdt','APPDATA','from','/bin','some','7108chWrlO','CHROMIUM_BIN','%PATH%','1053vocxyD','PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','PLAYWRIGHT_BROWSERS_PATH','PATH','RANGERWRIGHT_DAEMON_START_TIMEOUT_MS','TMPDIR','RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS','npm_config_registry','440050fQXqGb','27ZayXmD','entries','2016954NlCikl','slice','byokEnabled'];_0x471b=function(){return _0x55dfcd;};return _0x471b();}const AI_PROXY_METADATA_HEADERS_ENV_VAR=_0x5d7c1f(0x1d3),AGENT_ENV_PASSTHROUGH_KEYS=[_0x5d7c1f(0x1c6),'HOME',_0x5d7c1f(0x1c8),'TMP','TEMP',_0x5d7c1f(0x1b4),_0x5d7c1f(0x1bc),_0x5d7c1f(0x1d6),'XDG_CACHE_HOME','XDG_CONFIG_HOME',_0x5d7c1f(0x1c5),'PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','CHROME_BIN',_0x5d7c1f(0x1c1),'npm_config_cache',_0x5d7c1f(0x1b3),'npm_config_userconfig',_0x5d7c1f(0x1ae),_0x5d7c1f(0x1d5),'NPM_CONFIG_PREFIX',_0x5d7c1f(0x1ca),_0x5d7c1f(0x1d1),'DEBUG','NODE_ENV','RANGER_TEST_SKIP_BROWSER_WAIT',_0x5d7c1f(0x1b7),_0x5d7c1f(0x1c7),_0x5d7c1f(0x1e4),_0x5d7c1f(0x1c9),_0x5d7c1f(0x1de),'AWS_PROFILE','AWS_REGION','AWS_DEFAULT_REGION','AWS_CONFIG_FILE',_0x5d7c1f(0x1af),_0x5d7c1f(0x1d4),'AWS_SECRET_ACCESS_KEY','AWS_SESSION_TOKEN','AWS_SDK_LOAD_CONFIG',_0x5d7c1f(0x1b0),_0x5d7c1f(0x1b9),_0x5d7c1f(0x1e3),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=['${PATH}','$PATH',_0x5d7c1f(0x1c2)];function parseCustomHeaders(_0x5e2e8d){const _0x55ab24=_0x5d7c1f,_0x2a4ccc={'nAcUW':function(_0x5e8795,_0x4cfb82){return _0x5e8795+_0x4cfb82;}};if(!_0x5e2e8d)return[];return _0x5e2e8d[_0x55ab24(0x1b5)](/\r?\n/)['map'](_0x5b3564=>_0x5b3564['trim']())['filter'](Boolean)[_0x55ab24(0x1ea)](_0x198d41=>{const _0x3a8955=_0x55ab24,_0x4123c3=_0x198d41['indexOf'](':');if(_0x4123c3===-0x1)return null;const _0x4f88be=_0x198d41[_0x3a8955(0x1cf)](0x0,_0x4123c3)['trim'](),_0x31cf35=_0x198d41[_0x3a8955(0x1cf)](_0x2a4ccc['nAcUW'](_0x4123c3,0x1))['trim']();if(!_0x4f88be)return null;return[_0x4f88be,_0x31cf35];})['filter'](_0x128b57=>_0x128b57!==null);}export function getAgentPathHealthWarning(_0x193fac,_0x34b0f8=process['platform']){const _0x36ce1d=_0x5d7c1f,_0x3856bb={'Mqwmb':function(_0x293db0,_0x57560e){return _0x293db0===_0x57560e;},'ROWKi':_0x36ce1d(0x1c4),'okbDu':'/usr/bin','BETfn':_0x36ce1d(0x1b6)},_0x1841ac=[],_0x29984c=(_0x193fac||'')['split'](delimiter)['filter'](Boolean);_0x3856bb[_0x36ce1d(0x1db)](_0x29984c[_0x36ce1d(0x1e6)],0x0)&&_0x1841ac['push'](_0x3856bb['ROWKi']);UNEXPANDED_PATH_TOKEN_PATTERNS[_0x36ce1d(0x1bf)](_0x23af9e=>(_0x193fac||'')['includes'](_0x23af9e))&&_0x1841ac['push'](_0x36ce1d(0x1e2));if(_0x34b0f8!=='win32'){const _0x484c4b=_0x29984c[_0x36ce1d(0x1d7)](_0x3856bb[_0x36ce1d(0x1e1)]),_0x2c469a=_0x29984c[_0x36ce1d(0x1d7)](_0x36ce1d(0x1be));!_0x484c4b&&!_0x2c469a&&_0x1841ac[_0x36ce1d(0x1b1)](_0x3856bb['BETfn']);}if(_0x3856bb['Mqwmb'](_0x1841ac['length'],0x0))return null;return{'summary':'Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','issues':_0x1841ac};}export function buildAgentEnv(_0x277092){const _0x33505c=_0x5d7c1f,_0x5af88d={'gUuUs':function(_0x7b75d7){return _0x7b75d7();},'agkqV':_0x33505c(0x1df),'qcPAj':'TMP','raEgl':'ranger-claude-tmp','ZlZPl':function(_0x597263,_0x52e909,_0x44b10e){return _0x597263(_0x52e909,_0x44b10e);},'cfvEr':function(_0x4b70f9,_0x933c4b){return _0x4b70f9(_0x933c4b);},'ATVCh':function(_0x3476a2,_0x3cda7b){return _0x3476a2==_0x3cda7b;}};if(_0x277092[_0x33505c(0x1d0)])return Object[_0x33505c(0x1ba)](Object[_0x33505c(0x1cd)](process['env'])['filter'](_0x2c09e8=>typeof _0x2c09e8[0x1]===_0x33505c(0x1d2)));if(!_0x277092['sessionToken'])throw new Error(_0x33505c(0x1e5));const _0x2a1e2f={'ANTHROPIC_API_KEY':_0x277092['sessionToken'],'ANTHROPIC_BASE_URL':_0x5af88d['gUuUs'](getAiProxyUrl),'DISABLE_TELEMETRY':_0x5af88d[_0x33505c(0x1d9)]};for(const _0x2822fd of AGENT_ENV_PASSTHROUGH_KEYS){const _0x2b2a27=process[_0x33505c(0x1da)][_0x2822fd];_0x2b2a27&&!['TMPDIR',_0x5af88d[_0x33505c(0x1e0)],'TEMP']['includes'](_0x2822fd)&&(_0x2a1e2f[_0x2822fd]=_0x2b2a27);}const _0x375f0f=join(tmpdir(),_0x5af88d[_0x33505c(0x1e9)]);try{_0x5af88d[_0x33505c(0x1dd)](mkdirSync,_0x375f0f,{'recursive':!![]});}catch{}_0x2a1e2f['TMPDIR']=_0x375f0f,_0x2a1e2f[_0x5af88d['qcPAj']]=_0x375f0f,_0x2a1e2f['TEMP']=_0x375f0f;const _0x3b9c29=_0x5af88d['cfvEr'](parseCustomHeaders,process['env'][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x49ba68=new Map(_0x3b9c29),_0x2f07e4=new Set(_0x3b9c29[_0x33505c(0x1ea)](([_0xc1ec89])=>_0xc1ec89[_0x33505c(0x1dc)]()));if(_0x277092['metadata'])for(const [_0x84d17a,_0x57013f]of Object[_0x33505c(0x1cd)](_0x277092['metadata'])){if(_0x5af88d['ATVCh'](_0x57013f,null)||_0x57013f==='')continue;const _0x4abf52='x-ranger-'+_0x84d17a;!_0x2f07e4[_0x33505c(0x1b8)](_0x4abf52[_0x33505c(0x1dc)]())&&(_0x49ba68['set'](_0x4abf52,_0x57013f),_0x2f07e4['add'](_0x4abf52[_0x33505c(0x1dc)]()));}const _0x293d8e=Array[_0x33505c(0x1bd)](_0x49ba68['entries']())[_0x33505c(0x1ea)](([_0x360c1a,_0x271a68])=>_0x360c1a+':\x20'+_0x271a68)[_0x33505c(0x1d8)]('\x0a');return _0x293d8e&&(_0x2a1e2f[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x293d8e),_0x2a1e2f;}
@@ -1 +1 @@
1
- (function(_0x4ec5e4,_0x232afd){const _0x4dded4=_0xb189,_0x5e84b9=_0x4ec5e4();while(!![]){try{const _0x48d515=parseInt(_0x4dded4(0x156))/0x1*(-parseInt(_0x4dded4(0x14a))/0x2)+-parseInt(_0x4dded4(0x15f))/0x3+parseInt(_0x4dded4(0x152))/0x4*(parseInt(_0x4dded4(0x123))/0x5)+parseInt(_0x4dded4(0x124))/0x6*(parseInt(_0x4dded4(0x107))/0x7)+parseInt(_0x4dded4(0x150))/0x8+-parseInt(_0x4dded4(0x119))/0x9+parseInt(_0x4dded4(0x12c))/0xa;if(_0x48d515===_0x232afd)break;else _0x5e84b9['push'](_0x5e84b9['shift']());}catch(_0xef696d){_0x5e84b9['push'](_0x5e84b9['shift']());}}}(_0x5b2d,0xb9efd));const _0x4f3bb6=(function(){const _0x4a5a8e=_0xb189,_0x5a5b51={'tJjUd':_0x4a5a8e(0x10f),'DFHtJ':function(_0x4ed95a,_0x40cc02){return _0x4ed95a!==_0x40cc02;},'kPljX':'KBykX'};let _0x41b536=!![];return function(_0x4c4a52,_0x1044b4){const _0x195922=_0x4a5a8e;if(_0x5a5b51[_0x195922(0x13a)](_0x5a5b51[_0x195922(0x160)],_0x195922(0x143)))throw new _0x5922a8(_0x5a5b51[_0x195922(0x12b)]);else{const _0x996120=_0x41b536?function(){const _0x2b253f=_0x195922;if(_0x1044b4){const _0x4200a1=_0x1044b4[_0x2b253f(0x148)](_0x4c4a52,arguments);return _0x1044b4=null,_0x4200a1;}}:function(){};return _0x41b536=![],_0x996120;}};}()),_0x536d33=_0x4f3bb6(this,function(){const _0x4b3168=_0xb189,_0xc8ae8d={'GsLNY':_0x4b3168(0x139)};return _0x536d33[_0x4b3168(0x15b)]()[_0x4b3168(0x131)](_0xc8ae8d['GsLNY'])[_0x4b3168(0x15b)]()['constructor'](_0x536d33)[_0x4b3168(0x131)](_0xc8ae8d[_0x4b3168(0x16c)]);});_0x536d33();function _0xb189(_0x5de3b6,_0x292ce3){_0x5de3b6=_0x5de3b6-0x104;const _0xbc49b2=_0x5b2d();let _0x536d33=_0xbc49b2[_0x5de3b6];if(_0xb189['YGRxQw']===undefined){var _0x4f3bb6=function(_0x3f1934){const _0x492efa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10d9e7='',_0x49f152='',_0x159b03=_0x10d9e7+_0x4f3bb6;for(let _0x54b1b8=0x0,_0x585758,_0x4d678d,_0x4fcac9=0x0;_0x4d678d=_0x3f1934['charAt'](_0x4fcac9++);~_0x4d678d&&(_0x585758=_0x54b1b8%0x4?_0x585758*0x40+_0x4d678d:_0x4d678d,_0x54b1b8++%0x4)?_0x10d9e7+=_0x159b03['charCodeAt'](_0x4fcac9+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x585758>>(-0x2*_0x54b1b8&0x6)):_0x54b1b8:0x0){_0x4d678d=_0x492efa['indexOf'](_0x4d678d);}for(let _0x323547=0x0,_0x80f700=_0x10d9e7['length'];_0x323547<_0x80f700;_0x323547++){_0x49f152+='%'+('00'+_0x10d9e7['charCodeAt'](_0x323547)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49f152);};_0xb189['bXCzaQ']=_0x4f3bb6,_0xb189['kVdxme']={},_0xb189['YGRxQw']=!![];}const _0x5b2dd9=_0xbc49b2[0x0],_0xb18989=_0x5de3b6+_0x5b2dd9,_0x2b7e22=_0xb189['kVdxme'][_0xb18989];if(!_0x2b7e22){const _0x11fcb5=function(_0x4f827d){this['qiFPLj']=_0x4f827d,this['jwnWCC']=[0x1,0x0,0x0],this['Fciwhw']=function(){return'newState';},this['WhNCmo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['qFfCzw']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x11fcb5['prototype']['LCarnk']=function(){const _0xaa2b59=new RegExp(this['WhNCmo']+this['qFfCzw']),_0x5d03e9=_0xaa2b59['test'](this['Fciwhw']['toString']())?--this['jwnWCC'][0x1]:--this['jwnWCC'][0x0];return this['lNBquV'](_0x5d03e9);},_0x11fcb5['prototype']['lNBquV']=function(_0x1ad54d){if(!Boolean(~_0x1ad54d))return _0x1ad54d;return this['YaPQtM'](this['qiFPLj']);},_0x11fcb5['prototype']['YaPQtM']=function(_0x356ff2){for(let _0x1ce5a0=0x0,_0x1423c5=this['jwnWCC']['length'];_0x1ce5a0<_0x1423c5;_0x1ce5a0++){this['jwnWCC']['push'](Math['round'](Math['random']())),_0x1423c5=this['jwnWCC']['length'];}return _0x356ff2(this['jwnWCC'][0x0]);},new _0x11fcb5(_0xb189)['LCarnk'](),_0x536d33=_0xb189['bXCzaQ'](_0x536d33),_0xb189['kVdxme'][_0xb18989]=_0x536d33;}else _0x536d33=_0x2b7e22;return _0x536d33;}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x39f5cf){const _0x451f3a=_0xb189,_0xe165c3={'goopd':_0x451f3a(0x10f),'gyCwp':function(_0x6597d8,_0x1be30a,_0x44ae3d){return _0x6597d8(_0x1be30a,_0x44ae3d);},'FWmSY':_0x451f3a(0x140)},_0x1bac4d=await getToken();if(!_0x1bac4d)throw new Error(_0xe165c3[_0x451f3a(0x145)]);const _0x969cd4=getApiBaseUrl(),_0x413aea=await _0xe165c3[_0x451f3a(0x12e)](fetch,_0x969cd4+'/api/v1/mcp/browser-sessions',{'method':_0xe165c3[_0x451f3a(0x133)],'headers':{'Authorization':'Bearer\x20'+_0x1bac4d,'Content-Type':'application/json'},'body':JSON[_0x451f3a(0x10d)]({'environmentName':_0x39f5cf?.[_0x451f3a(0x130)],'settings':_0x39f5cf?.[_0x451f3a(0x14d)],'task':_0x39f5cf?.[_0x451f3a(0x166)],'url':_0x39f5cf?.[_0x451f3a(0x135)],'featureId':_0x39f5cf?.['featureId'],'checklistItemId':_0x39f5cf?.[_0x451f3a(0x159)]})});if(!_0x413aea['ok']){const _0x23dfb2=await _0x413aea[_0x451f3a(0x146)]();throw new Error(_0x451f3a(0x129)+_0x23dfb2);}return _0x413aea[_0x451f3a(0x134)]();}export async function updateBrowserSession(_0x580231,_0x4fb78a){const _0x9de47c=_0xb189,_0x26ac85={'rVOmt':function(_0x26997f){return _0x26997f();},'lenaL':function(_0x59d3c6){return _0x59d3c6();},'FsnZJ':function(_0x3ec27b,_0x30ab68,_0x3742c3){return _0x3ec27b(_0x30ab68,_0x3742c3);},'riEJF':_0x9de47c(0x136),'fJtBq':function(_0x1455a3,_0x55ef61,_0x9a2d2e){return _0x1455a3(_0x55ef61,_0x9a2d2e);},'qmBdQ':_0x9de47c(0x151)};return _0x26ac85[_0x9de47c(0x113)](withRetry,async()=>{const _0x321e84=_0x9de47c,_0x3b2746=await _0x26ac85['rVOmt'](getToken);if(!_0x3b2746)throw new Error(_0x321e84(0x10f));const _0x597d90=_0x26ac85[_0x321e84(0x161)](getApiBaseUrl),_0xee0a22=await _0x26ac85['FsnZJ'](fetch,_0x597d90+_0x321e84(0x13b)+_0x580231,{'method':_0x26ac85[_0x321e84(0x104)],'headers':{'Authorization':_0x321e84(0x168)+_0x3b2746,'Content-Type':_0x321e84(0x122)},'body':JSON[_0x321e84(0x10d)](_0x4fb78a)});if(!_0xee0a22['ok']){const _0x534452=await _0xee0a22[_0x321e84(0x146)]();throw new Error(_0x321e84(0x138)+_0x534452);}return _0xee0a22['json']();},{'label':_0x26ac85[_0x9de47c(0x147)]});}function _0x5b2d(){const _0x3dee70=['Bwv0ywrHDge','y2HLy2TZDw0','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','yMfZzty0','DfjswKi','zwrWEgy','r3fOChC','wwTJthe','yxbWBgLJyxrPB24VANnVBG','nuzZDMXXAq','mtqYoeH3sMvPvG','wgL5yxm','rxzoshK','wfPjsNq','qxLfrfa','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','BgvUz3rO','DePQvwq','mtG1mdu5odbMBLzztMe','Bwq1','z3LdD3a','A0nstKK','zw52AxjVBM1LBNroyw1L','C2vHCMnO','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','rLDTu1K','ANnVBG','DxjS','uefuq0G','DhL1twO','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','kcGOlISPkYKRksSK','reziDeO','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','C2L6zq','r0vu','DxbKyxrL','ue9tva','l3n0zxbZ','B09lqvq','s0j5A1G','z05XCKi','z29VCgq','Dgv4Da','Cw1czfe','yxbWBhK','DNDArKy','nhnQwvbjwG','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','C2v0DgLUz3m','BeLKC3y','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','mtmXnJm3nMDSsvffzq','DxbKyxrLqNjVD3nLCLnLC3nPB24','ntaZnZq4ng5mzvjfwq','zhDfsMe','DMLKzw8VD2vIBq','yxbWBgLJyxrPB24VANnVBMW','nte4mtK4vuzwzhHq','qujbqxK','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','y2HLy2TSAxn0sxrLBuLK','ufzps2O','Dg9tDhjPBMC','uxfTD1m','thb2rwm','wej6yLa','mZeXnZuYoeTzz1PzEq','A1bSALG','BgvUyuW','sxDUy1m','BenTDvy','ALvdBe8','rK5WEMS','DgfZAW','zMjPuMi','qMvHCMvYia','BMzkAMK','Dvz3reu','BxD2zuG','r3nmtLK','rgT3yM4','CMLfsKy','zgLNzxn0','ENPSwxG','odG5q1PoEhLq','zuj3vuq','vKToCe4','vff3AKS','BMjLtwG','ywjfs3a','C3rYAw5NAwz5','u09sA1m','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','zuPWuuW','CKXytNu','l3n0zxbZlW','zKP0qNe','AgfWsLO','BMPHs3i','qwPeAKK','zM9Lr1O','y29UC3rYDwn0B3i','ndiWode1n0L1swXhva'];_0x5b2d=function(){return _0x3dee70;};return _0x5b2d();}export async function getBrowserSession(_0x5936af){const _0x5addcf=_0xb189,_0x38162e={'lCmuV':_0x5addcf(0x10f),'kCRNI':function(_0x314161){return _0x314161();},'YkcLq':function(_0x3f7846,_0x509160,_0x3b96f8){return _0x3f7846(_0x509160,_0x3b96f8);},'ABAAy':function(_0x56865b,_0x15bcd6){return _0x56865b===_0x15bcd6;},'fieIl':_0x5addcf(0x16b),'VKNpN':'lrkUs'},_0x41e8cc=await getToken();if(!_0x41e8cc)throw new Error(_0x38162e[_0x5addcf(0x163)]);const _0x13251f=_0x38162e[_0x5addcf(0x12f)](getApiBaseUrl),_0x88fdcf=await _0x38162e[_0x5addcf(0x121)](fetch,_0x13251f+'/api/v1/mcp/browser-sessions/'+_0x5936af,{'method':_0x5addcf(0x13e),'headers':{'Authorization':'Bearer\x20'+_0x41e8cc}});if(!_0x88fdcf['ok']){if(_0x38162e[_0x5addcf(0x157)](_0x38162e['fieIl'],_0x38162e[_0x5addcf(0x109)]))throw new _0x5c34d3(_0x5addcf(0x10f));else{const _0x460ae2=await _0x88fdcf[_0x5addcf(0x146)]();throw new Error(_0x5addcf(0x14b)+_0x460ae2);}}return _0x88fdcf[_0x5addcf(0x134)]();}export async function getUploadUrls(_0x125d3d,_0x3996ee,_0x4f5b33,_0x3a130e){const _0x4a78a5=_0xb189,_0x4f7aeb={'rImfB':function(_0x242b77,_0xc84119,_0x1459f6,_0x4dc5a4){return _0x242b77(_0xc84119,_0x1459f6,_0x4dc5a4);},'nfJji':_0x4a78a5(0x155),'PVOKj':_0x4a78a5(0x10f),'edpxf':function(_0x1e6eef){return _0x1e6eef();},'uBBHX':function(_0x3a47fd,_0x1101fd,_0xa9ea5){return _0x3a47fd(_0x1101fd,_0xa9ea5);},'vwZFF':_0x4a78a5(0x140),'vUDLz':'application/json','EsDzF':function(_0x4c9518,_0x18939f){return _0x4c9518!==_0x18939f;},'foeGZ':_0x4a78a5(0x15d)},_0x22d56c=await getToken();if(!_0x22d56c)throw new Error(_0x4f7aeb[_0x4a78a5(0x15a)]);const _0x3006e4=_0x4f7aeb[_0x4a78a5(0x11f)](getApiBaseUrl),_0x52ca5b=await _0x4f7aeb['uBBHX'](fetch,_0x3006e4+_0x4a78a5(0x13b)+_0x125d3d+'/upload-urls',{'method':_0x4f7aeb[_0x4a78a5(0x149)],'headers':{'Authorization':_0x4a78a5(0x168)+_0x22d56c,'Content-Type':_0x4f7aeb['vUDLz']},'body':JSON[_0x4a78a5(0x10d)]({'filename':_0x3996ee,'filetype':_0x4f5b33,..._0x3a130e?.[_0x4a78a5(0x13d)]!==undefined&&{'size':_0x3a130e[_0x4a78a5(0x13d)]},..._0x3a130e?.[_0x4a78a5(0x11b)]!==undefined&&{'checksum':_0x3a130e[_0x4a78a5(0x11b)]},..._0x4f7aeb['EsDzF'](_0x3a130e?.[_0x4a78a5(0x11a)],undefined)&&{'metadata':_0x3a130e[_0x4a78a5(0x11a)]}})});if(!_0x52ca5b['ok']){if(_0x4f7aeb[_0x4a78a5(0x117)]!==_0x4f7aeb['foeGZ'])return _0x4f7aeb['rImfB'](_0x444c1d,_0xe03eb6,_0x4a92f1,_0x4f7aeb[_0x4a78a5(0x169)]);else{const _0x131c39=await _0x52ca5b[_0x4a78a5(0x146)]();throw new Error(_0x4a78a5(0x11c)+_0x131c39);}}return _0x52ca5b[_0x4a78a5(0x134)]();}export async function uploadFile(_0x42b7df,_0x209ba8,_0x4bdbca){const _0x3554ab=_0xb189,_0x132f91={'mgixO':_0x3554ab(0x10f),'uVwDE':function(_0x45c0b6,_0x3ccf7d,_0x40a064){return _0x45c0b6(_0x3ccf7d,_0x40a064);},'zzlYx':'PUT','Dkwbn':function(_0x5006cf,_0x11c11a){return _0x5006cf!==_0x11c11a;},'eBwUD':_0x3554ab(0x164)},_0x7263=await _0x132f91[_0x3554ab(0x16a)](fetch,_0x42b7df,{'method':_0x132f91[_0x3554ab(0x106)],'headers':{'Content-Type':_0x4bdbca,'Content-Length':_0x209ba8[_0x3554ab(0x12a)][_0x3554ab(0x15b)]()},'body':_0x209ba8});if(!_0x7263['ok']){if(_0x132f91[_0x3554ab(0x16d)](_0x3554ab(0x126),_0x132f91[_0x3554ab(0x108)])){const _0x1008ac=await _0x7263[_0x3554ab(0x146)]();throw new Error(_0x3554ab(0x14f)+_0x1008ac);}else throw new _0x5cb9b1(_0x132f91['mgixO']);}}export async function uploadTrace(_0x555341,_0x99d7ae){const _0x4e6081=_0xb189,_0x49220a={'QqmwS':function(_0x179a30,_0x3f647f,_0x5844eb,_0x3c83d2){return _0x179a30(_0x3f647f,_0x5844eb,_0x3c83d2);},'oaEIe':'application/zip'};return _0x49220a[_0x4e6081(0x15c)](uploadFile,_0x555341,_0x99d7ae,_0x49220a['oaEIe']);}export async function uploadConversation(_0xa5fc68,_0x3068a5){const _0x4dd809=_0xb189,_0x4fb504={'njaKr':function(_0x4f3588,_0x2165a2,_0x444652,_0xafa051){return _0x4f3588(_0x2165a2,_0x444652,_0xafa051);}};return _0x4fb504[_0x4dd809(0x115)](uploadFile,_0xa5fc68,_0x3068a5,_0x4dd809(0x155));}export async function uploadScreenshot(_0x505241,_0x2b2515){return uploadFile(_0x505241,_0x2b2515,'image/png');}export async function uploadVideo(_0x52d197,_0x386199){const _0x596440=_0xb189,_0x3e5ab6={'oOKAT':function(_0x1d7dea,_0x7822e4,_0x10e8b2,_0x249e4f){return _0x1d7dea(_0x7822e4,_0x10e8b2,_0x249e4f);},'AyEDP':_0x596440(0x154)};return _0x3e5ab6[_0x596440(0x142)](uploadFile,_0x52d197,_0x386199,_0x3e5ab6[_0x596440(0x128)]);}export function buildTraceViewerUrl(_0xb81cd4){const _0x452e50=encodeURIComponent(_0xb81cd4);return'https://trace.playwright.dev/?trace='+_0x452e50;}export async function getProxySessionToken(){const _0x2877a1=_0xb189,_0xada169={'fbiRb':_0x2877a1(0x10f),'tyuMj':function(_0x575898){return _0x575898();},'Xiyas':function(_0x36c191,_0x509e5d,_0xaef57a){return _0x36c191(_0x509e5d,_0xaef57a);},'XlxQV':_0x2877a1(0x140)},_0x304cd0=await getToken();if(!_0x304cd0)throw new Error(_0xada169[_0x2877a1(0x167)]);const _0x3e43d4=_0xada169[_0x2877a1(0x137)](getApiBaseUrl),_0x3828ad=await _0xada169[_0x2877a1(0x125)](fetch,_0x3e43d4+_0x2877a1(0x13c),{'method':_0xada169['XlxQV'],'headers':{'Authorization':_0x2877a1(0x168)+_0x304cd0}});if(!_0x3828ad['ok']){const _0x3082a2=await _0x3828ad[_0x2877a1(0x146)]();throw new Error(_0x2877a1(0x132)+_0x3082a2);}const _0x58a6e7=await _0x3828ad['json']();return _0x58a6e7['sessionToken'];}export function computeChecksum(_0x1abe77){const _0x49ba81=_0xb189,_0x241d13={'Gqhpw':function(_0x30f8fb,_0x476cea){return _0x30f8fb(_0x476cea);},'eJpQL':_0x49ba81(0x11d)};return _0x241d13[_0x49ba81(0x120)](createHash,_0x49ba81(0x12d))[_0x49ba81(0x13f)](_0x1abe77)[_0x49ba81(0x105)](_0x241d13[_0x49ba81(0x110)]);}export async function createVerificationStep(_0x21609c,_0xace3fd){const _0x19e9d2=_0xb189,_0x3a32f0={'hapJZ':function(_0x380a5b){return _0x380a5b();},'JpxFn':function(_0x2f11e8,_0x4627c8,_0x1889d8){return _0x2f11e8(_0x4627c8,_0x1889d8);},'gNqrB':_0x19e9d2(0x140),'Onjun':'application/json'},_0x4b9ef1=await _0x3a32f0[_0x19e9d2(0x114)](getToken);if(!_0x4b9ef1)throw new Error(_0x19e9d2(0x10f));const _0x142abc=_0x3a32f0[_0x19e9d2(0x114)](getApiBaseUrl),_0x1e6a7a=await _0x3a32f0['JpxFn'](fetch,_0x142abc+_0x19e9d2(0x13b)+_0x21609c+_0x19e9d2(0x141),{'method':_0x3a32f0[_0x19e9d2(0x144)],'headers':{'Authorization':_0x19e9d2(0x168)+_0x4b9ef1,'Content-Type':_0x3a32f0['Onjun']},'body':JSON['stringify'](_0xace3fd)});if(!_0x1e6a7a['ok']){const _0x4d54d4=await _0x1e6a7a[_0x19e9d2(0x146)]();throw new Error('Failed\x20to\x20create\x20verification\x20step:\x20'+_0x4d54d4);}return _0x1e6a7a[_0x19e9d2(0x134)]();}export async function createStepAsset(_0x3b17c1,_0x16bfd9,_0x30147b){const _0x4c1ebb=_0xb189,_0x45b514={'XBzbP':function(_0x313d24){return _0x313d24();},'abEKp':_0x4c1ebb(0x10f),'tRRZB':function(_0x28a2b0,_0x2a07b4,_0x445d81){return _0x28a2b0(_0x2a07b4,_0x445d81);},'nbeMh':'POST','dwEJa':_0x4c1ebb(0x122)},_0x18cc0b=await _0x45b514[_0x4c1ebb(0x15e)](getToken);if(!_0x18cc0b)throw new Error(_0x45b514[_0x4c1ebb(0x10c)]);const _0x160e91=_0x45b514[_0x4c1ebb(0x15e)](getApiBaseUrl),_0x22719d=await _0x45b514[_0x4c1ebb(0x11e)](fetch,_0x160e91+_0x4c1ebb(0x13b)+_0x3b17c1+'/steps/'+_0x16bfd9+'/assets',{'method':_0x45b514[_0x4c1ebb(0x10b)],'headers':{'Authorization':_0x4c1ebb(0x168)+_0x18cc0b,'Content-Type':_0x45b514[_0x4c1ebb(0x153)]},'body':JSON[_0x4c1ebb(0x10d)](_0x30147b)});if(!_0x22719d['ok']){const _0x13656d=await _0x22719d[_0x4c1ebb(0x146)]();throw new Error(_0x4c1ebb(0x14c)+_0x13656d);}return _0x22719d[_0x4c1ebb(0x134)]();}export async function updateVerificationStep(_0xde73fc,_0x32fe12,_0x2f9862){const _0x11b3f6=_0xb189,_0x4778ed={'PAxrv':function(_0x596fd2){return _0x596fd2();},'DJJDJ':function(_0x184021,_0x28ab1e){return _0x184021===_0x28ab1e;},'rLXNu':_0x11b3f6(0x127),'IwncS':_0x11b3f6(0x10f)},_0x4ae0ba=await _0x4778ed['PAxrv'](getToken);if(!_0x4ae0ba){if(_0x4778ed['DJJDJ'](_0x11b3f6(0x127),_0x4778ed[_0x11b3f6(0x111)]))throw new Error(_0x4778ed[_0x11b3f6(0x162)]);else{const _0x451880=_0x11fcb5?function(){if(_0x1ce5a0){const _0x42bf29=_0x4483fe['apply'](_0x2a9157,arguments);return _0x2510a0=null,_0x42bf29;}}:function(){};return _0x356ff2=![],_0x451880;}}const _0x59f8fb=getApiBaseUrl(),_0x32bdee=await fetch(_0x59f8fb+'/api/v1/mcp/browser-sessions/'+_0xde73fc+_0x11b3f6(0x112)+_0x32fe12,{'method':_0x11b3f6(0x136),'headers':{'Authorization':_0x11b3f6(0x168)+_0x4ae0ba,'Content-Type':_0x11b3f6(0x122)},'body':JSON['stringify'](_0x2f9862)});if(!_0x32bdee['ok']){const _0x5cc847=await _0x32bdee[_0x11b3f6(0x146)]();throw new Error('Failed\x20to\x20update\x20verification\x20step:\x20'+_0x5cc847);}}export async function getBrowserSessionSteps(_0x531d67){const _0x18e345=_0xb189,_0x37ba6f={'hXNkk':_0x18e345(0x139),'YIqmt':function(_0xe29dc0){return _0xe29dc0();},'wOQqm':_0x18e345(0x165),'lIdsv':_0x18e345(0x10a),'AjDjI':_0x18e345(0x10f),'SORkS':function(_0x3c02b4,_0x201419,_0x1c64f2){return _0x3c02b4(_0x201419,_0x1c64f2);},'vaNDz':_0x18e345(0x13e)},_0x54da02=await _0x37ba6f['YIqmt'](getToken);if(!_0x54da02){if(_0x37ba6f['wOQqm']===_0x37ba6f[_0x18e345(0x14e)])return _0x25bd7e[_0x18e345(0x15b)]()[_0x18e345(0x131)](DdmlDF['hXNkk'])[_0x18e345(0x15b)]()[_0x18e345(0x118)](_0x3a2781)[_0x18e345(0x131)](_0x18e345(0x139));else throw new Error(_0x37ba6f[_0x18e345(0x116)]);}const _0x587b84=getApiBaseUrl(),_0x19062f=await _0x37ba6f[_0x18e345(0x10e)](fetch,_0x587b84+_0x18e345(0x13b)+_0x531d67+'/steps',{'method':_0x37ba6f['vaNDz'],'headers':{'Authorization':_0x18e345(0x168)+_0x54da02}});if(!_0x19062f['ok']){const _0x53d0af=await _0x19062f[_0x18e345(0x146)]();throw new Error(_0x18e345(0x158)+_0x53d0af);}return _0x19062f[_0x18e345(0x134)]();}
1
+ (function(_0x3884aa,_0x396122){const _0x477b38=_0x5a99,_0x2acf3d=_0x3884aa();while(!![]){try{const _0x5e6dac=parseInt(_0x477b38(0x13d))/0x1*(parseInt(_0x477b38(0x11b))/0x2)+-parseInt(_0x477b38(0x130))/0x3*(-parseInt(_0x477b38(0xea))/0x4)+-parseInt(_0x477b38(0x140))/0x5*(-parseInt(_0x477b38(0xfb))/0x6)+-parseInt(_0x477b38(0x109))/0x7+-parseInt(_0x477b38(0x128))/0x8+parseInt(_0x477b38(0xfc))/0x9+parseInt(_0x477b38(0x122))/0xa*(-parseInt(_0x477b38(0x138))/0xb);if(_0x5e6dac===_0x396122)break;else _0x2acf3d['push'](_0x2acf3d['shift']());}catch(_0x36e221){_0x2acf3d['push'](_0x2acf3d['shift']());}}}(_0x1be5,0xa8585));const _0x148e09=(function(){const _0x22557e=_0x5a99,_0x10eca2={'PZeGJ':function(_0x39b308,_0x3a1a53){return _0x39b308(_0x3a1a53);},'BZPnS':function(_0x389e13,_0x506c2b){return _0x389e13===_0x506c2b;},'SzFCV':_0x22557e(0xd1)};let _0x1a5013=!![];return function(_0x32607b,_0x3cc49a){const _0x3dd968=_0x1a5013?function(){const _0x55fd99=_0x5a99,_0x47bcfa={'zQQjI':function(_0x19c966,_0x42972a){const _0x5db95e=_0x5a99;return _0x10eca2[_0x5db95e(0x116)](_0x19c966,_0x42972a);}};if(_0x3cc49a){if(_0x10eca2[_0x55fd99(0x101)](_0x10eca2[_0x55fd99(0x12f)],_0x55fd99(0xd1))){const _0x406bd2=_0x3cc49a[_0x55fd99(0x11a)](_0x32607b,arguments);return _0x3cc49a=null,_0x406bd2;}else{const _0x221948=_0x47bcfa[_0x55fd99(0xf0)](_0x21c719,_0x4fd5d3);return'https://trace.playwright.dev/?trace='+_0x221948;}}}:function(){};return _0x1a5013=![],_0x3dd968;};}()),_0x1ec6a6=_0x148e09(this,function(){const _0x1c9ad1=_0x5a99,_0x11bc26={'EIVTb':'(((.+)+)+)+$'};return _0x1ec6a6[_0x1c9ad1(0x121)]()['search'](_0x11bc26[_0x1c9ad1(0xe5)])[_0x1c9ad1(0x121)]()[_0x1c9ad1(0x136)](_0x1ec6a6)[_0x1c9ad1(0x147)](_0x11bc26[_0x1c9ad1(0xe5)]);});_0x1ec6a6();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x1509c4){const _0xf85613=_0x5a99,_0xdfc5c0={'lrhkG':_0xf85613(0x141),'zKBBf':function(_0x432374){return _0x432374();},'YuKjD':function(_0x2cbf43,_0x5b7452){return _0x2cbf43===_0x5b7452;},'aQIYV':_0xf85613(0xf4),'ioJwg':_0xf85613(0x139),'GjGNS':function(_0x3db5df,_0x5e7dfb){return _0x3db5df===_0x5e7dfb;},'zuLvU':_0xf85613(0x119),'pgbph':_0xf85613(0xd7)},_0x5d9df8=await _0xdfc5c0[_0xf85613(0x112)](getToken);if(!_0x5d9df8){if(_0xdfc5c0[_0xf85613(0xfd)](_0xdfc5c0[_0xf85613(0x10c)],_0xdfc5c0['aQIYV']))throw new Error(_0xdfc5c0[_0xf85613(0x127)]);else{const _0x22ebfd=_0xd9a51[_0xf85613(0x11a)](_0xef2d5a,arguments);return _0x166c89=null,_0x22ebfd;}}const _0x4d6d51=_0xdfc5c0['zKBBf'](getApiBaseUrl),_0x5b9b01=await fetch(_0x4d6d51+_0xf85613(0x133),{'method':_0xf85613(0xd4),'headers':{'Authorization':_0xf85613(0xf2)+_0x5d9df8,'Content-Type':_0xdfc5c0['ioJwg']},'body':JSON[_0xf85613(0x126)]({'environmentName':_0x1509c4?.['environmentName'],'settings':_0x1509c4?.['settings'],'task':_0x1509c4?.[_0xf85613(0x131)],'url':_0x1509c4?.[_0xf85613(0x111)],'featureId':_0x1509c4?.[_0xf85613(0xef)],'checklistItemId':_0x1509c4?.[_0xf85613(0xdc)]})});if(!_0x5b9b01['ok']){if(_0xdfc5c0[_0xf85613(0xd9)](_0xdfc5c0[_0xf85613(0x129)],_0xdfc5c0[_0xf85613(0xec)]))throw new _0x25fee7(_0xdfc5c0[_0xf85613(0x127)]);else{const _0xaef88f=await _0x5b9b01[_0xf85613(0x120)]();throw new Error('Failed\x20to\x20create\x20browser\x20session:\x20'+_0xaef88f);}}return _0x5b9b01[_0xf85613(0xd2)]();}export async function updateBrowserSession(_0x4ec5fa,_0x414fe9){const _0x24b9db=_0x5a99,_0xaf2479={'NsWvl':function(_0x25cf36){return _0x25cf36();},'zqJpV':function(_0x39c0ec){return _0x39c0ec();},'EhtVN':function(_0x2b1479,_0x402850,_0x6f8e2e){return _0x2b1479(_0x402850,_0x6f8e2e);},'uYBJA':_0x24b9db(0xed),'Allau':function(_0x3ea0f2,_0x5049bd){return _0x3ea0f2===_0x5049bd;},'lcreR':_0x24b9db(0x100),'rugWd':_0x24b9db(0x117)};return _0xaf2479[_0x24b9db(0xe6)](withRetry,async()=>{const _0xede508=_0x24b9db,_0x1fc860=await _0xaf2479[_0xede508(0x137)](getToken);if(!_0x1fc860)throw new Error(_0xede508(0x141));const _0x400eca=_0xaf2479[_0xede508(0x11d)](getApiBaseUrl),_0x280f30=await _0xaf2479['EhtVN'](fetch,_0x400eca+_0xede508(0x13b)+_0x4ec5fa,{'method':_0xaf2479[_0xede508(0x10a)],'headers':{'Authorization':'Bearer\x20'+_0x1fc860,'Content-Type':'application/json'},'body':JSON['stringify'](_0x414fe9)});if(!_0x280f30['ok']){if(_0xaf2479[_0xede508(0xf7)](_0xaf2479[_0xede508(0x10e)],_0xede508(0x12b))){const _0x24f4a9=_0x481852?function(){const _0x572b8f=_0xede508;if(_0x37dba0){const _0x25fa1c=_0x20c385[_0x572b8f(0x11a)](_0xe94146,arguments);return _0x5c863d=null,_0x25fa1c;}}:function(){};return _0x50807b=![],_0x24f4a9;}else{const _0x39e4c7=await _0x280f30[_0xede508(0x120)]();throw new Error('Failed\x20to\x20update\x20browser\x20session:\x20'+_0x39e4c7);}}return _0x280f30[_0xede508(0xd2)]();},{'label':_0xaf2479[_0x24b9db(0x11e)]});}export async function getBrowserSession(_0x445197){const _0x56f6a5=_0x5a99,_0x56833d={'CwfjP':function(_0x24f519){return _0x24f519();},'EgOUs':_0x56f6a5(0x141)},_0x223705=await _0x56833d[_0x56f6a5(0xd5)](getToken);if(!_0x223705)throw new Error(_0x56833d[_0x56f6a5(0x11f)]);const _0x7186e8=_0x56833d['CwfjP'](getApiBaseUrl),_0x3e2b23=await fetch(_0x7186e8+_0x56f6a5(0x13b)+_0x445197,{'method':_0x56f6a5(0xd3),'headers':{'Authorization':_0x56f6a5(0xf2)+_0x223705}});if(!_0x3e2b23['ok']){const _0x46890f=await _0x3e2b23[_0x56f6a5(0x120)]();throw new Error(_0x56f6a5(0x146)+_0x46890f);}return _0x3e2b23[_0x56f6a5(0xd2)]();}export async function getUploadUrls(_0x46d66c,_0x38b751,_0x3b9111,_0x12a50d){const _0x27e233=_0x5a99,_0x5dd4ec={'QbosP':_0x27e233(0x141),'zNpjf':function(_0x54712d){return _0x54712d();},'VxduD':_0x27e233(0xd4),'opPfH':_0x27e233(0x139),'MCtRJ':function(_0x244500,_0x30c3a1){return _0x244500!==_0x30c3a1;},'YglVj':'sAkXl'},_0x369b13=await _0x5dd4ec[_0x27e233(0x132)](getToken);if(!_0x369b13)throw new Error(_0x5dd4ec[_0x27e233(0xfe)]);const _0x4dc7da=_0x5dd4ec[_0x27e233(0x132)](getApiBaseUrl),_0x3ca14b=await fetch(_0x4dc7da+_0x27e233(0x13b)+_0x46d66c+_0x27e233(0x104),{'method':_0x5dd4ec[_0x27e233(0xcf)],'headers':{'Authorization':_0x27e233(0xf2)+_0x369b13,'Content-Type':_0x5dd4ec[_0x27e233(0x10f)]},'body':JSON['stringify']({'filename':_0x38b751,'filetype':_0x3b9111,..._0x12a50d?.[_0x27e233(0x107)]!==undefined&&{'size':_0x12a50d[_0x27e233(0x107)]},..._0x5dd4ec[_0x27e233(0xdd)](_0x12a50d?.[_0x27e233(0xf6)],undefined)&&{'checksum':_0x12a50d[_0x27e233(0xf6)]},..._0x5dd4ec[_0x27e233(0xdd)](_0x12a50d?.[_0x27e233(0xdb)],undefined)&&{'metadata':_0x12a50d[_0x27e233(0xdb)]}})});if(!_0x3ca14b['ok']){if(_0x5dd4ec[_0x27e233(0xdd)](_0x5dd4ec[_0x27e233(0x123)],_0x5dd4ec[_0x27e233(0x123)]))throw new _0x46f296(_0x5dd4ec['QbosP']);else{const _0x994a38=await _0x3ca14b['text']();throw new Error('Failed\x20to\x20get\x20upload\x20URLs:\x20'+_0x994a38);}}return _0x3ca14b[_0x27e233(0xd2)]();}export async function uploadFile(_0x12a653,_0x15d6e1,_0x32a3aa){const _0x255ff0=_0x5a99,_0x5208f9=await fetch(_0x12a653,{'method':'PUT','headers':{'Content-Type':_0x32a3aa,'Content-Length':_0x15d6e1['length']['toString']()},'body':_0x15d6e1});if(!_0x5208f9['ok']){const _0x40da64=await _0x5208f9[_0x255ff0(0x120)]();throw new Error(_0x255ff0(0x12e)+_0x40da64);}}export async function uploadTrace(_0x4365d2,_0x5d94d7){const _0x3ddcfd=_0x5a99,_0x41ef44={'Lhgtf':function(_0x5c6271,_0x419c34,_0x297cb2,_0x4e3123){return _0x5c6271(_0x419c34,_0x297cb2,_0x4e3123);}};return _0x41ef44[_0x3ddcfd(0xf9)](uploadFile,_0x4365d2,_0x5d94d7,_0x3ddcfd(0xe8));}function _0x5a99(_0x15fe83,_0x3e6177){_0x15fe83=_0x15fe83-0xcd;const _0x1abe78=_0x1be5();let _0x1ec6a6=_0x1abe78[_0x15fe83];if(_0x5a99['YWxFJX']===undefined){var _0x148e09=function(_0x390de8){const _0x2f716c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x201f5e='',_0x34aef0='',_0x293f3c=_0x201f5e+_0x148e09;for(let _0xe8bcbb=0x0,_0x12a98a,_0x1d68b2,_0x2653b0=0x0;_0x1d68b2=_0x390de8['charAt'](_0x2653b0++);~_0x1d68b2&&(_0x12a98a=_0xe8bcbb%0x4?_0x12a98a*0x40+_0x1d68b2:_0x1d68b2,_0xe8bcbb++%0x4)?_0x201f5e+=_0x293f3c['charCodeAt'](_0x2653b0+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x12a98a>>(-0x2*_0xe8bcbb&0x6)):_0xe8bcbb:0x0){_0x1d68b2=_0x2f716c['indexOf'](_0x1d68b2);}for(let _0x36cc7e=0x0,_0x483e4a=_0x201f5e['length'];_0x36cc7e<_0x483e4a;_0x36cc7e++){_0x34aef0+='%'+('00'+_0x201f5e['charCodeAt'](_0x36cc7e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34aef0);};_0x5a99['hJlbZh']=_0x148e09,_0x5a99['pUifkx']={},_0x5a99['YWxFJX']=!![];}const _0x1be5a1=_0x1abe78[0x0],_0x5a998f=_0x15fe83+_0x1be5a1,_0x30c56d=_0x5a99['pUifkx'][_0x5a998f];if(!_0x30c56d){const _0x481852=function(_0x4c8d73){this['NtHSde']=_0x4c8d73,this['GmtKPT']=[0x1,0x0,0x0],this['HBUxPE']=function(){return'newState';},this['OwpAPd']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['WIFMPR']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x481852['prototype']['yRNREi']=function(){const _0x5b5656=new RegExp(this['OwpAPd']+this['WIFMPR']),_0x1caf40=_0x5b5656['test'](this['HBUxPE']['toString']())?--this['GmtKPT'][0x1]:--this['GmtKPT'][0x0];return this['mhwWvT'](_0x1caf40);},_0x481852['prototype']['mhwWvT']=function(_0x199602){if(!Boolean(~_0x199602))return _0x199602;return this['YVYsUj'](this['NtHSde']);},_0x481852['prototype']['YVYsUj']=function(_0x50807b){for(let _0x37dba0=0x0,_0x4bc9bd=this['GmtKPT']['length'];_0x37dba0<_0x4bc9bd;_0x37dba0++){this['GmtKPT']['push'](Math['round'](Math['random']())),_0x4bc9bd=this['GmtKPT']['length'];}return _0x50807b(this['GmtKPT'][0x0]);},new _0x481852(_0x5a99)['yRNREi'](),_0x1ec6a6=_0x5a99['hJlbZh'](_0x1ec6a6),_0x5a99['pUifkx'][_0x5a998f]=_0x1ec6a6;}else _0x1ec6a6=_0x30c56d;return _0x1ec6a6;}export async function uploadConversation(_0x14b0ff,_0x46aa8c){const _0x5d063e=_0x5a99,_0x810b31={'FGMHM':function(_0x10a0f7,_0x2ce3e8,_0x12f9c1,_0x55c164){return _0x10a0f7(_0x2ce3e8,_0x12f9c1,_0x55c164);},'sTdAK':_0x5d063e(0xd6)};return _0x810b31[_0x5d063e(0xf8)](uploadFile,_0x14b0ff,_0x46aa8c,_0x810b31[_0x5d063e(0xe7)]);}export async function uploadScreenshot(_0x4fa149,_0x10d79d){const _0x5eefbf=_0x5a99,_0x431f04={'fWhOB':_0x5eefbf(0x103)};return uploadFile(_0x4fa149,_0x10d79d,_0x431f04[_0x5eefbf(0x115)]);}export async function uploadVideo(_0x5d30b1,_0x56efbc){const _0xd3de3a=_0x5a99,_0x141e4a={'KtIDA':function(_0x3cee62,_0x107157,_0x3adda1,_0x11f1a7){return _0x3cee62(_0x107157,_0x3adda1,_0x11f1a7);}};return _0x141e4a[_0xd3de3a(0x125)](uploadFile,_0x5d30b1,_0x56efbc,'video/webm');}export function buildTraceViewerUrl(_0x5f044b){const _0x2be0c6=_0x5a99,_0xba94ad={'tmOiS':function(_0x28018b,_0xb61807){return _0x28018b(_0xb61807);}},_0x429e55=_0xba94ad['tmOiS'](encodeURIComponent,_0x5f044b);return _0x2be0c6(0x142)+_0x429e55;}export async function getProxySessionToken(){const _0x5ec637=_0x5a99,_0x22f5a8={'Qlkiy':_0x5ec637(0x141),'oLkOU':function(_0x51d506){return _0x51d506();},'VNatJ':function(_0x141439,_0x5185e2,_0x302ee1){return _0x141439(_0x5185e2,_0x302ee1);},'nSkKK':'POST'},_0x5dc2fb=await getToken();if(!_0x5dc2fb)throw new Error(_0x22f5a8[_0x5ec637(0xe4)]);const _0xa8d252=_0x22f5a8[_0x5ec637(0xe3)](getApiBaseUrl),_0x573674=await _0x22f5a8[_0x5ec637(0xe9)](fetch,_0xa8d252+'/api/v1/mcp/proxy-session',{'method':_0x22f5a8['nSkKK'],'headers':{'Authorization':_0x5ec637(0xf2)+_0x5dc2fb}});if(!_0x573674['ok']){const _0x563464=await _0x573674[_0x5ec637(0x120)]();throw new Error(_0x5ec637(0x135)+_0x563464);}const _0x4eaaaa=await _0x573674[_0x5ec637(0xd2)]();return _0x4eaaaa['sessionToken'];}function _0x1be5(){const _0x12dc13=['DxbKyxrLqNjVD3nLCLnLC3nPB24','sKvmrxy','uhzbtey','yxbWBhK','mtG2mdzLqxDdrNC','D0Xwu1G','ENfkCfy','CNvNv2q','rwDpvxm','Dgv4Da','Dg9tDhjPBMC','mtaYmZG5otbLt1nWzwe','wwDSvMO','yMfZzty0','s3rjree','C3rYAw5NAwz5','BhjOA0C','mZC5ndm5mLzVA2XWuq','ENvmDLu','zgLNzxn0','C2HXweO','ENr1DM0','EMfUAfu','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','u3Pgq1y','mJK0nda1t0vgrNv6','DgfZAW','EK5WAMy','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','C21duLy','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','y29UC3rYDwn0B3i','tNnxDMW','mtf1BxnVy2y','yxbWBgLJyxrPB24VANnVBG','Bwq1','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','vMP5EM4','ndrgBKfiCw8','BwDOzw4','sKH6wMe','mtGXodvQyvHWy1m','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','rxL0y0G','vwzqsgW','DMDYrge','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','C2vHCMnO','CunQzvm','qK9ACva','vNHKDuq','yMPLA2G','A1PzD2m','ANnVBG','r0vu','ue9tva','q3DMALa','yxbWBgLJyxrPB24VANnVBMW','s0LRCM0','q3HxAhu','r2PhtLm','qxH3uNC','Bwv0ywrHDge','y2HLy2TSAxn0sxrLBuLK','tun0uKO','sxv3Cu0','CLLNv2u','BeLbCMK','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','DxbKyxrL','B0XRt1u','uwXRAxK','ruLwvgi','rwH0vK4','C1rKquS','yxbWBgLJyxrPB24VEMLW','vK5HDeO','mJHZB29VEMi','l3n0zxbZ','CgDICgG','uefuq0G','DuTKvuW','zMvHDhvYzuLK','ELfrAKK','kcGOlISPkYKRksSK','qMvHCMvYia','EM9rsKC','EuLXwfe','tu1xtNK','y2HLy2TZDw0','qwXSyxu','rKDnse0','tgHNDgy','B05Xtu8','mtiWmhLVr2PWyG','mta5ntG3nJbiwMzVAe4','wxvlAKq','uwjVC1a','l2fZC2v0CW','yKT0zuq','qLPqBLm','l3n0zxbZlW','Aw1Hz2uVCg5N','l3vWBg9Hzc11CMXZ','wLnVue8','wNjtsgm','C2L6zq','y0nhrKy','ntK3nta0nNrvy0jfzq','DvLcsKe','Bhrcz0q','yvfjwvy','BwL3zLC','BgnYzvi','B3bqzKG','rvDsEu4','DxjS','EKTcqMy','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','rMvJt0i','zLDOt0i','ufPLr0O'];_0x1be5=function(){return _0x12dc13;};return _0x1be5();}export function computeChecksum(_0x1b4be7){const _0x283861=_0x5a99,_0x185fd9={'ztuvm':_0x283861(0x13a)};return createHash(_0x185fd9[_0x283861(0x12c)])[_0x283861(0xe2)](_0x1b4be7)[_0x283861(0x12a)](_0x283861(0x124));}export async function createVerificationStep(_0x2343d4,_0x547f68){const _0x435914=_0x5a99,_0x443496={'smCRV':function(_0x3a1f61){return _0x3a1f61();},'BOZqP':_0x435914(0x141),'miwfW':function(_0x2b1c8c,_0x40abb0,_0x56ab7e){return _0x2b1c8c(_0x40abb0,_0x56ab7e);},'CxWhu':_0x435914(0xd4),'EWRyN':_0x435914(0x139)},_0x63520c=await _0x443496[_0x435914(0x134)](getToken);if(!_0x63520c)throw new Error(_0x443496[_0x435914(0xce)]);const _0x35bb5d=getApiBaseUrl(),_0x3ffb1e=await _0x443496[_0x435914(0x10d)](fetch,_0x35bb5d+_0x435914(0x13b)+_0x2343d4+_0x435914(0xeb),{'method':_0x443496[_0x435914(0xd8)],'headers':{'Authorization':_0x435914(0xf2)+_0x63520c,'Content-Type':_0x443496[_0x435914(0x110)]},'body':JSON[_0x435914(0x126)](_0x547f68)});if(!_0x3ffb1e['ok']){const _0x4451c9=await _0x3ffb1e[_0x435914(0x120)]();throw new Error('Failed\x20to\x20create\x20verification\x20step:\x20'+_0x4451c9);}return _0x3ffb1e[_0x435914(0xd2)]();}export async function createStepAsset(_0x1914ec,_0x2f40b4,_0x435909){const _0x4fc679=_0x5a99,_0x1f6d9f={'uKdUL':_0x4fc679(0x141),'BsYWv':function(_0xa33942){return _0xa33942();},'tPHuP':function(_0x55a982,_0x4d9475){return _0x55a982===_0x4d9475;},'ltBgD':_0x4fc679(0x118),'UfPHl':function(_0x8468cf,_0x4af6d2,_0x3436c0){return _0x8468cf(_0x4af6d2,_0x3436c0);},'IuwqM':_0x4fc679(0x139)},_0x43fd25=await _0x1f6d9f['BsYWv'](getToken);if(!_0x43fd25){if(_0x1f6d9f['tPHuP'](_0x1f6d9f[_0x4fc679(0x10b)],_0x4fc679(0xda)))throw new _0x18197d(_0x1f6d9f[_0x4fc679(0xee)]);else throw new Error(_0x1f6d9f['uKdUL']);}const _0xe19c7e=getApiBaseUrl(),_0x22b264=await _0x1f6d9f[_0x4fc679(0x144)](fetch,_0xe19c7e+_0x4fc679(0x13b)+_0x1914ec+_0x4fc679(0x102)+_0x2f40b4+_0x4fc679(0xff),{'method':'POST','headers':{'Authorization':_0x4fc679(0xf2)+_0x43fd25,'Content-Type':_0x1f6d9f[_0x4fc679(0xde)]},'body':JSON[_0x4fc679(0x126)](_0x435909)});if(!_0x22b264['ok']){const _0x5366c4=await _0x22b264['text']();throw new Error('Failed\x20to\x20create\x20step\x20asset:\x20'+_0x5366c4);}return _0x22b264[_0x4fc679(0xd2)]();}export async function updateVerificationStep(_0x193fed,_0x3e073c,_0x2d7cf8){const _0x5800fa=_0x5a99,_0x3d9945={'rYgWe':_0x5800fa(0xf1),'EytcH':function(_0x4d050f){return _0x4d050f();},'oNqMO':function(_0x33227c,_0x30d5d5){return _0x33227c!==_0x30d5d5;},'Vjyzn':_0x5800fa(0x12d),'ZrSHc':_0x5800fa(0xf5),'mghen':function(_0x5bcb56,_0x35d5a8,_0x58fc2b){return _0x5bcb56(_0x35d5a8,_0x58fc2b);},'lIAri':'PATCH','RFnoC':_0x5800fa(0x139),'zoQJG':_0x5800fa(0x108)},_0x509bbf=await _0x3d9945[_0x5800fa(0x143)](getToken);if(!_0x509bbf){if(_0x3d9945[_0x5800fa(0xfa)](_0x3d9945[_0x5800fa(0x13c)],_0x3d9945[_0x5800fa(0x106)]))throw new Error(_0x5800fa(0x141));else throw new _0x5c51c5('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');}const _0xb7f38e=getApiBaseUrl(),_0x3a15b9=await _0x3d9945[_0x5800fa(0x13e)](fetch,_0xb7f38e+'/api/v1/mcp/browser-sessions/'+_0x193fed+_0x5800fa(0x102)+_0x3e073c,{'method':_0x3d9945[_0x5800fa(0xe0)],'headers':{'Authorization':_0x5800fa(0xf2)+_0x509bbf,'Content-Type':_0x3d9945['RFnoC']},'body':JSON['stringify'](_0x2d7cf8)});if(!_0x3a15b9['ok']){if(_0x5800fa(0x108)!==_0x3d9945[_0x5800fa(0xf3)])return _0x500fcc[_0x5800fa(0x121)]()[_0x5800fa(0x147)](ZjFGgG['rYgWe'])['toString']()[_0x5800fa(0x136)](_0x320abe)[_0x5800fa(0x147)](ZjFGgG[_0x5800fa(0xdf)]);else{const _0x557f50=await _0x3a15b9[_0x5800fa(0x120)]();throw new Error(_0x5800fa(0xe1)+_0x557f50);}}}export async function getBrowserSessionSteps(_0x31a99e){const _0x27d87d=_0x5a99,_0x42707b={'JHzZa':_0x27d87d(0xd6),'bjekh':function(_0x5c7e49){return _0x5c7e49();},'qCjeS':function(_0x138c6a,_0x631405){return _0x138c6a!==_0x631405;},'FecOB':'wLVSX','vgrDa':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','STYMa':function(_0x11b031,_0x1faa57,_0x3bdbc4){return _0x11b031(_0x1faa57,_0x3bdbc4);},'ZSoPO':_0x27d87d(0xd3)},_0x2c5ff2=await _0x42707b[_0x27d87d(0xd0)](getToken);if(!_0x2c5ff2){if(_0x42707b[_0x27d87d(0xcd)](_0x42707b[_0x27d87d(0x114)],_0x27d87d(0x11c)))return _0x46d95a(_0x2c3d2d,_0x382697,_0x42707b[_0x27d87d(0x13f)]);else throw new Error(_0x42707b[_0x27d87d(0x145)]);}const _0x374fdc=_0x42707b[_0x27d87d(0xd0)](getApiBaseUrl),_0x193fc2=await _0x42707b['STYMa'](fetch,_0x374fdc+_0x27d87d(0x13b)+_0x31a99e+'/steps',{'method':_0x42707b[_0x27d87d(0x105)],'headers':{'Authorization':_0x27d87d(0xf2)+_0x2c5ff2}});if(!_0x193fc2['ok']){const _0x3d8520=await _0x193fc2[_0x27d87d(0x120)]();throw new Error(_0x27d87d(0x113)+_0x3d8520);}return _0x193fc2['json']();}
@@ -1 +1 @@
1
- (function(_0x1cc56c,_0x41532b){const _0x45cd5c=_0xa334,_0x383bd6=_0x1cc56c();while(!![]){try{const _0x3bd3d5=parseInt(_0x45cd5c(0x157))/0x1*(parseInt(_0x45cd5c(0x14f))/0x2)+-parseInt(_0x45cd5c(0x153))/0x3+parseInt(_0x45cd5c(0x141))/0x4*(-parseInt(_0x45cd5c(0x140))/0x5)+-parseInt(_0x45cd5c(0x14e))/0x6+parseInt(_0x45cd5c(0x150))/0x7*(-parseInt(_0x45cd5c(0x14a))/0x8)+parseInt(_0x45cd5c(0x13f))/0x9+parseInt(_0x45cd5c(0x152))/0xa;if(_0x3bd3d5===_0x41532b)break;else _0x383bd6['push'](_0x383bd6['shift']());}catch(_0x1624bb){_0x383bd6['push'](_0x383bd6['shift']());}}}(_0x130c,0xb3862));import{homedir}from'os';function _0xa334(_0x52fc0e,_0xa42fdb){_0x52fc0e=_0x52fc0e-0x13e;const _0x130c06=_0x130c();let _0xa3341=_0x130c06[_0x52fc0e];return _0xa3341;}import{join,dirname,parse}from'path';import{existsSync}from'fs';import{readFile,writeFile,mkdir}from'fs/promises';function _0x130c(){const _0x1033b3=['CnWZb','2557656pQregx','1030HeUDHx','26092RtKeOL','GJWdB','yyoEh','EFaTL','cwd','YgaYZ','UrFBr','.claude','CLAUDE_CONFIG_DIR','643688qSgucH','user','skills','utf-8','4164252xIiTdF','24BlYMAX','119NjYZem','rytPJ','44738320oJQzKU','3778287Nlgyvz','zfryi','settings.json','jYHKo','53530XJxQbq'];_0x130c=function(){return _0x1033b3;};return _0x130c();}export function getClaudeConfigDir(){const _0x561620=_0xa334,_0x347bd6={'ybTkf':function(_0x1e895d){return _0x1e895d();}};return process['env'][_0x561620(0x149)]||join(_0x347bd6['ybTkf'](homedir),_0x561620(0x148));}export function getUserSkillsDir(){const _0x39f91b=_0xa334,_0x35d595={'EFaTL':function(_0x3af9bb){return _0x3af9bb();},'CnWZb':_0x39f91b(0x14c)};return join(_0x35d595[_0x39f91b(0x144)](getClaudeConfigDir),_0x35d595[_0x39f91b(0x13e)]);}export function getProjectRoot(){const _0x74bd4e=_0xa334,_0x274e6f={'jYHKo':function(_0xc2db9c,_0x235d7d){return _0xc2db9c!==_0x235d7d;},'zfryi':function(_0x35ef70,_0x4f94c6,_0x29bbd0){return _0x35ef70(_0x4f94c6,_0x29bbd0);}};let _0x5633a5=process[_0x74bd4e(0x145)]();const _0x41f698=parse(_0x5633a5)['root'];while(_0x274e6f[_0x74bd4e(0x156)](_0x5633a5,_0x41f698)){if(existsSync(_0x274e6f[_0x74bd4e(0x154)](join,_0x5633a5,_0x74bd4e(0x148))))return _0x5633a5;if(existsSync(join(_0x5633a5,'.git')))return _0x5633a5;_0x5633a5=dirname(_0x5633a5);}return process['cwd']();}export function getProjectSkillsDir(){const _0xfab4d6=_0xa334;return join(getProjectRoot(),_0xfab4d6(0x148),_0xfab4d6(0x14c));}export function getSkillsDir(_0x9d6f6d){const _0x1aaa62=_0xa334,_0x2aa1b3={'rytPJ':function(_0x206831){return _0x206831();}};return _0x9d6f6d===_0x1aaa62(0x14b)?_0x2aa1b3['rytPJ'](getUserSkillsDir):_0x2aa1b3[_0x1aaa62(0x151)](getProjectSkillsDir);}export function getSettingsPath(){const _0xe136ca=_0xa334;return join(getClaudeConfigDir(),_0xe136ca(0x155));}export async function loadClaudeSettings(){const _0x437c05=_0xa334,_0x49a3f6={'SANKl':function(_0xb9b19){return _0xb9b19();},'yyoEh':_0x437c05(0x14d)},_0x5a1330=_0x49a3f6['SANKl'](getSettingsPath);if(!existsSync(_0x5a1330))return{};try{const _0x5e1a1a=await readFile(_0x5a1330,_0x49a3f6[_0x437c05(0x143)]);return JSON['parse'](_0x5e1a1a);}catch{return{};}}export async function saveClaudeSettings(_0x50dc99){const _0x2d6902=_0xa334,_0x5719a4={'MjbsC':function(_0x4df1c6){return _0x4df1c6();},'GJWdB':function(_0x391a04,_0x33fc2a){return _0x391a04(_0x33fc2a);},'YgaYZ':function(_0x7f4610,_0x341538,_0x350322){return _0x7f4610(_0x341538,_0x350322);},'UrFBr':function(_0x4a6529,_0x5ea582){return _0x4a6529+_0x5ea582;},'XWfVM':_0x2d6902(0x14d)},_0x4f3b09=getSettingsPath(),_0x294800=_0x5719a4['MjbsC'](getClaudeConfigDir);!_0x5719a4[_0x2d6902(0x142)](existsSync,_0x294800)&&await _0x5719a4[_0x2d6902(0x146)](mkdir,_0x294800,{'recursive':!![]}),await writeFile(_0x4f3b09,_0x5719a4[_0x2d6902(0x147)](JSON['stringify'](_0x50dc99,null,0x2),'\x0a'),_0x5719a4['XWfVM']);}
1
+ (function(_0x411ed7,_0x4e3dd0){const _0x90f7a4=_0x5d10,_0x1ecac2=_0x411ed7();while(!![]){try{const _0x37c141=-parseInt(_0x90f7a4(0x1d8))/0x1*(parseInt(_0x90f7a4(0x1d4))/0x2)+-parseInt(_0x90f7a4(0x1e0))/0x3+-parseInt(_0x90f7a4(0x1d7))/0x4+-parseInt(_0x90f7a4(0x1cf))/0x5+-parseInt(_0x90f7a4(0x1d2))/0x6*(parseInt(_0x90f7a4(0x1d3))/0x7)+parseInt(_0x90f7a4(0x1e1))/0x8*(parseInt(_0x90f7a4(0x1e6))/0x9)+parseInt(_0x90f7a4(0x1d0))/0xa;if(_0x37c141===_0x4e3dd0)break;else _0x1ecac2['push'](_0x1ecac2['shift']());}catch(_0x13ff35){_0x1ecac2['push'](_0x1ecac2['shift']());}}}(_0x56dd,0xbf1e3));import{homedir}from'os';import{join,dirname,parse}from'path';import{existsSync}from'fs';function _0x56dd(){const _0x3ac686=['cwd','UIurx','CLAUDE_CONFIG_DIR','7411305ZtOaWy','46402740wbfZAT','utf-8','18nKCczH','302897ErhUkY','15390NtrlCl','XGSTQ','root','5680608rzbmqH','88rxExIM','stringify','anTGe','.claude','LzIfZ','rvzqg','.git','gwFzO','3188799SWgWEv','64xvNGQN','KTQLP','HrtpR','favAB','skills','1029222xIrfeq'];_0x56dd=function(){return _0x3ac686;};return _0x56dd();}import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0xa9a862=_0x5d10,_0x3870b1={'LzIfZ':function(_0x526a50,_0x22bd80,_0x32d1c0){return _0x526a50(_0x22bd80,_0x32d1c0);},'zgkhf':_0xa9a862(0x1db)};return process['env'][_0xa9a862(0x1ce)]||_0x3870b1[_0xa9a862(0x1dc)](join,homedir(),_0x3870b1['zgkhf']);}function _0x5d10(_0x16a3de,_0x2fc7e1){_0x16a3de=_0x16a3de-0x1ce;const _0x56ddf7=_0x56dd();let _0x5d10aa=_0x56ddf7[_0x16a3de];return _0x5d10aa;}export function getUserSkillsDir(){const _0x5a4f82=_0x5d10;return join(getClaudeConfigDir(),_0x5a4f82(0x1e5));}export function getProjectRoot(){const _0x5657ca=_0x5d10,_0x39872a={'UJtAc':function(_0x3f79c7,_0x298c46){return _0x3f79c7(_0x298c46);},'bvtTf':function(_0xe4c7ec,_0x9586aa,_0x20fea1){return _0xe4c7ec(_0x9586aa,_0x20fea1);},'jZwrj':'.claude','SvzyJ':function(_0x5ea494,_0x3f25ed,_0x20b75e){return _0x5ea494(_0x3f25ed,_0x20b75e);},'anTGe':_0x5657ca(0x1de)};let _0x2d8fb9=process['cwd']();const _0x2acd92=_0x39872a['UJtAc'](parse,_0x2d8fb9)[_0x5657ca(0x1d6)];while(_0x2d8fb9!==_0x2acd92){if(existsSync(_0x39872a['bvtTf'](join,_0x2d8fb9,_0x39872a['jZwrj'])))return _0x2d8fb9;if(existsSync(_0x39872a['SvzyJ'](join,_0x2d8fb9,_0x39872a[_0x5657ca(0x1da)])))return _0x2d8fb9;_0x2d8fb9=dirname(_0x2d8fb9);}return process[_0x5657ca(0x1e7)]();}export function getProjectSkillsDir(){const _0x91bed5=_0x5d10,_0x3575be={'HrtpR':function(_0x18aa02,_0x49378d,_0x15be57,_0x26c89b){return _0x18aa02(_0x49378d,_0x15be57,_0x26c89b);},'FCbcl':_0x91bed5(0x1db)};return _0x3575be[_0x91bed5(0x1e3)](join,getProjectRoot(),_0x3575be['FCbcl'],'skills');}export function getSkillsDir(_0x3e30f2){const _0x457529=_0x5d10,_0x2c3222={'gwFzO':'user'};return _0x3e30f2===_0x2c3222[_0x457529(0x1df)]?getUserSkillsDir():getProjectSkillsDir();}export function getSettingsPath(){const _0x1551bd=_0x5d10,_0x24c9f2={'KTQLP':function(_0x293d15){return _0x293d15();}};return join(_0x24c9f2[_0x1551bd(0x1e2)](getClaudeConfigDir),'settings.json');}export async function loadClaudeSettings(){const _0x36936e=_0x5d10,_0x2d3c3e={'rvzqg':function(_0x33a4ba,_0x5a7c9d){return _0x33a4ba(_0x5a7c9d);},'favAB':function(_0x22f506,_0x471262,_0x18210e){return _0x22f506(_0x471262,_0x18210e);},'XGSTQ':'utf-8'},_0x4f534f=getSettingsPath();if(!_0x2d3c3e[_0x36936e(0x1dd)](existsSync,_0x4f534f))return{};try{const _0x22aa95=await _0x2d3c3e[_0x36936e(0x1e4)](readFile,_0x4f534f,_0x2d3c3e[_0x36936e(0x1d5)]);return JSON['parse'](_0x22aa95);}catch{return{};}}export async function saveClaudeSettings(_0x2d03f4){const _0x43bfea=_0x5d10,_0x118803={'AfgTE':function(_0x4539da){return _0x4539da();},'TbUiK':function(_0x55e637,_0x591965){return _0x55e637(_0x591965);},'UIurx':function(_0x458c1c,_0x71fc42,_0x491b95){return _0x458c1c(_0x71fc42,_0x491b95);},'wqMsq':function(_0x320b21,_0x3ec9df,_0x8c48d1,_0x46d158){return _0x320b21(_0x3ec9df,_0x8c48d1,_0x46d158);}},_0x2a96a3=getSettingsPath(),_0x1d3ca9=_0x118803['AfgTE'](getClaudeConfigDir);!_0x118803['TbUiK'](existsSync,_0x1d3ca9)&&await _0x118803[_0x43bfea(0x1e8)](mkdir,_0x1d3ca9,{'recursive':!![]}),await _0x118803['wqMsq'](writeFile,_0x2a96a3,JSON[_0x43bfea(0x1d9)](_0x2d03f4,null,0x2)+'\x0a',_0x43bfea(0x1d1));}
@@ -1 +1 @@
1
- function _0x3e49(){const _0x515950=['4135370OLvbPh','255054WYzwpA','1970HhNIzV','890430FkYMdw','35AzDlCX','348128bQhIjO','7407FnrvLN','2144oBCrqG','1eviZnC','stringify','2992lgzDVh','294278ggZFOq'];_0x3e49=function(){return _0x515950;};return _0x3e49();}(function(_0x40620d,_0x4d76ea){const _0x4b6e36=_0x3a9a,_0x505606=_0x40620d();while(!![]){try{const _0x293e66=-parseInt(_0x4b6e36(0x16c))/0x1*(parseInt(_0x4b6e36(0x163))/0x2)+parseInt(_0x4b6e36(0x167))/0x3+parseInt(_0x4b6e36(0x16b))/0x4*(parseInt(_0x4b6e36(0x166))/0x5)+parseInt(_0x4b6e36(0x165))/0x6*(-parseInt(_0x4b6e36(0x168))/0x7)+parseInt(_0x4b6e36(0x16e))/0x8*(-parseInt(_0x4b6e36(0x16a))/0x9)+parseInt(_0x4b6e36(0x164))/0xa+parseInt(_0x4b6e36(0x169))/0xb;if(_0x293e66===_0x4d76ea)break;else _0x505606['push'](_0x505606['shift']());}catch(_0x3188bf){_0x505606['push'](_0x505606['shift']());}}}(_0x3e49,0x45bfd));function _0x3a9a(_0x2618e2,_0x587cd9){_0x2618e2=_0x2618e2-0x163;const _0x3e4919=_0x3e49();let _0x3a9aea=_0x3e4919[_0x2618e2];return _0x3a9aea;}import{isByokEnabled}from'./environment.js';const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};export function buildClaudeOverrideExtraArgs(){const _0x16323c=_0x3a9a;if(isByokEnabled())return{};return{'settings':JSON[_0x16323c(0x16d)](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
1
+ (function(_0x7def53,_0x3ffd7c){const _0x5cc1ac=_0xfc21,_0x269a9a=_0x7def53();while(!![]){try{const _0xf92bd2=-parseInt(_0x5cc1ac(0x7f))/0x1*(parseInt(_0x5cc1ac(0x74))/0x2)+parseInt(_0x5cc1ac(0x7d))/0x3+-parseInt(_0x5cc1ac(0x7b))/0x4*(parseInt(_0x5cc1ac(0x73))/0x5)+-parseInt(_0x5cc1ac(0x79))/0x6*(-parseInt(_0x5cc1ac(0x7c))/0x7)+-parseInt(_0x5cc1ac(0x76))/0x8*(parseInt(_0x5cc1ac(0x72))/0x9)+-parseInt(_0x5cc1ac(0x75))/0xa+-parseInt(_0x5cc1ac(0x77))/0xb*(-parseInt(_0x5cc1ac(0x7e))/0xc);if(_0xf92bd2===_0x3ffd7c)break;else _0x269a9a['push'](_0x269a9a['shift']());}catch(_0x4e70fd){_0x269a9a['push'](_0x269a9a['shift']());}}}(_0x16fa,0x2536a));function _0x16fa(){const _0x19f467=['878ftYujG','2509350PedfRE','8XrGVfS','11BbmZch','stringify','7578Tkloxf','SisCw','4jARCpQ','280xPBzqx','100005VbKraY','10109868WtEPcw','508lvsRGf','2622429GKVoXD','42950eRLkaI'];_0x16fa=function(){return _0x19f467;};return _0x16fa();}import{isByokEnabled}from'./environment.js';const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};function _0xfc21(_0x4e0281,_0x2d6a62){_0x4e0281=_0x4e0281-0x72;const _0x16fab1=_0x16fa();let _0xfc2130=_0x16fab1[_0x4e0281];return _0xfc2130;}export function buildClaudeOverrideExtraArgs(){const _0x441016=_0xfc21,_0x36f561={'SisCw':function(_0x49b873){return _0x49b873();}};if(_0x36f561[_0x441016(0x7a)](isByokEnabled))return{};return{'settings':JSON[_0x441016(0x78)](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
@@ -1 +1 @@
1
- (function(_0x304ad7,_0x1a390f){const _0x2b4f1d=_0xd498,_0x3a91bc=_0x304ad7();while(!![]){try{const _0x36ede1=-parseInt(_0x2b4f1d(0x153))/0x1+parseInt(_0x2b4f1d(0x141))/0x2*(parseInt(_0x2b4f1d(0x15f))/0x3)+parseInt(_0x2b4f1d(0x14c))/0x4+parseInt(_0x2b4f1d(0x13e))/0x5+parseInt(_0x2b4f1d(0x140))/0x6*(parseInt(_0x2b4f1d(0x15c))/0x7)+parseInt(_0x2b4f1d(0x14d))/0x8*(parseInt(_0x2b4f1d(0x14b))/0x9)+-parseInt(_0x2b4f1d(0x163))/0xa;if(_0x36ede1===_0x1a390f)break;else _0x3a91bc['push'](_0x3a91bc['shift']());}catch(_0x49990d){_0x3a91bc['push'](_0x3a91bc['shift']());}}}(_0x4cbd,0xeb70a));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile}from'fs/promises';import{join,resolve}from'path';import{getClaudeConfigDir,getProjectRoot}from'./claudeConfig.js';function _0x4cbd(){const _0x591e86=['[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','19348220BOFHxw','JtbLJ','VGENQ','output','wSIhC','NuFPz','cwd','data','stdout','parse','marketplace','[\x5cs\x5cS]*?(enabled|disabled)','vkKnp','Owycb','5977905wXlEtD','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','12DZCbmm','36522NInxYn','gsqvY','whjAy','zXvlb','plugins','JTHOf','stderr','filter','length','hNBmk','90YnaiqU','5798676NajepB','235048zvUEjU','projectPath','scope','ignore','claude','Miitl','1804336zyFRCo','plugin','error','WasNq','pipe','toString','inherit','match','includes','1446011YNYwTc','success','captureOutput','222yjtBrU','list','utf-8'];_0x4cbd=function(){return _0x591e86;};return _0x4cbd();}function _0xd498(_0x426ef1,_0x3fd90f){_0x426ef1=_0x426ef1-0x139;const _0x4cbdf2=_0x4cbd();let _0xd498f8=_0x4cbdf2[_0x426ef1];return _0xd498f8;}export function runClaudeCommand(_0x4af262,_0x518647){const _0x2befd8=_0xd498,_0x21e33e={'vsaLY':function(_0x2326c3,_0x2c491b){return _0x2326c3(_0x2c491b);},'hNBmk':_0x2befd8(0x150),'fFgAi':_0x2befd8(0x157),'Owycb':'inherit','PHCWQ':function(_0x48ea4a,_0xd51194,_0xcbf5ea,_0x3c95e9){return _0x48ea4a(_0xd51194,_0xcbf5ea,_0x3c95e9);},'AzDvJ':'close','WahMp':_0x2befd8(0x155)};return new Promise(_0x318355=>{const _0x4669e6=_0x2befd8,_0x3aef97={'vkKnp':function(_0x123959,_0x3fe0bd){return _0x123959===_0x3fe0bd;},'zXvlb':function(_0x8d4222,_0x1b64f1){return _0x21e33e['vsaLY'](_0x8d4222,_0x1b64f1);}},_0x428e23=_0x518647?.[_0x4669e6(0x15e)]?[_0x21e33e[_0x4669e6(0x14a)],_0x21e33e['fFgAi'],_0x21e33e['fFgAi']]:[_0x21e33e['hNBmk'],_0x4669e6(0x159),_0x21e33e[_0x4669e6(0x13d)]],_0x5d4a08=_0x21e33e['PHCWQ'](spawn,_0x4669e6(0x151),_0x4af262,{'stdio':_0x428e23,'cwd':_0x518647?.[_0x4669e6(0x169)]});let _0x3d6755='';_0x518647?.['captureOutput']&&_0x5d4a08[_0x4669e6(0x16b)]&&_0x5d4a08[_0x4669e6(0x16b)]['on']('data',_0x141b1d=>{_0x3d6755+=_0x141b1d['toString']();}),_0x518647?.[_0x4669e6(0x15e)]&&_0x5d4a08[_0x4669e6(0x147)]&&_0x5d4a08[_0x4669e6(0x147)]['on'](_0x4669e6(0x16a),_0x5ba2e9=>{const _0x648e9a=_0x4669e6;_0x3d6755+=_0x5ba2e9[_0x648e9a(0x158)]();}),_0x5d4a08['on'](_0x21e33e['AzDvJ'],_0x5d7455=>{const _0x2eeac7=_0x4669e6;_0x3aef97[_0x2eeac7(0x13c)](_0x5d7455,0x0)?_0x3aef97[_0x2eeac7(0x144)](_0x318355,{'success':!![],'output':_0x3d6755}):_0x318355({'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x5d7455,'output':_0x3d6755});}),_0x5d4a08['on'](_0x21e33e['WahMp'],_0x3f9a8e=>{_0x318355({'success':![],'error':_0x3f9a8e['message']});});});}export async function isMarketplaceAdded(_0x3a5d6c){const _0x480383=_0xd498,_0x98c7a={'JTHOf':_0x480383(0x13a)},_0x14f5a8=await runClaudeCommand(['plugin',_0x98c7a[_0x480383(0x146)],_0x480383(0x160)],{'captureOutput':!![]});if(!_0x14f5a8['success']||!_0x14f5a8[_0x480383(0x166)])return![];return _0x14f5a8['output']['includes'](_0x3a5d6c);}export async function isPluginInstalled(_0x45db4b){const _0x34222c=_0xd498,_0x1b4c06={'FGLPk':function(_0x4acda5,_0x4e2761){return _0x4acda5(_0x4e2761);},'Miitl':function(_0x5a48f2,_0x43bd4e){return _0x5a48f2>_0x43bd4e;},'BKbIs':_0x34222c(0x154)},_0x552c11=await _0x1b4c06['FGLPk'](getInstalledPluginInfoFromRegistry,_0x45db4b);if(_0x1b4c06[_0x34222c(0x152)](_0x552c11[_0x34222c(0x149)],0x0))return!![];const _0x4a2156=await runClaudeCommand([_0x1b4c06['BKbIs'],_0x34222c(0x160)],{'captureOutput':!![]});if(!_0x4a2156[_0x34222c(0x15d)]||!_0x4a2156[_0x34222c(0x166)])return![];return _0x4a2156[_0x34222c(0x166)][_0x34222c(0x15b)](_0x45db4b);}function getInstalledPluginsPath(){const _0x1e0bb1=_0xd498,_0x15d73e={'wSIhC':function(_0x9da255,_0xbf2c0f,_0xf7053b,_0xaca2cb){return _0x9da255(_0xbf2c0f,_0xf7053b,_0xaca2cb);},'JtbLJ':function(_0x1b2918){return _0x1b2918();},'VGENQ':_0x1e0bb1(0x145)};return _0x15d73e[_0x1e0bb1(0x167)](join,_0x15d73e[_0x1e0bb1(0x164)](getClaudeConfigDir),_0x15d73e[_0x1e0bb1(0x165)],'installed_plugins.json');}function sortPluginInfo(_0x3405a5,_0x2f0469){const _0x20cb71=_0xd498,_0x2e4ff6={'ZgXzJ':function(_0x222770,_0x193947){return _0x222770-_0x193947;},'whjAy':'user'},_0x53e04a={'project':0x0,'local':0x1,'user':0x2};return _0x2e4ff6['ZgXzJ'](_0x53e04a[_0x3405a5['scope']??'user'],_0x53e04a[_0x2f0469[_0x20cb71(0x14f)]??_0x2e4ff6[_0x20cb71(0x143)]]);}export function parseInstalledPluginInfo(_0x18d425,_0x1225e7,_0xe5f999){const _0x242769=_0xd498,_0x5ad464={'micKr':'project','gsqvY':function(_0x3f21a5,_0x50489e){return _0x3f21a5!==_0x50489e;},'NuFPz':function(_0x54d7d4,_0x2ffde0){return _0x54d7d4(_0x2ffde0);}},_0x5440ec=JSON[_0x242769(0x139)](_0x18d425),_0x13e0c1=_0x5ad464[_0x242769(0x168)](resolve,_0xe5f999),_0x3ce7=_0x5440ec[_0x242769(0x145)]?.[_0x1225e7]??[];return _0x3ce7[_0x242769(0x148)](_0x25897f=>{const _0x4999ef=_0x242769;if(_0x25897f['scope']!==_0x5ad464['micKr']&&_0x5ad464[_0x4999ef(0x142)](_0x25897f[_0x4999ef(0x14f)],'local'))return!![];if(!_0x25897f[_0x4999ef(0x14e)])return!![];return resolve(_0x25897f[_0x4999ef(0x14e)])===_0x13e0c1;})['map'](_0x132ab7=>({'name':_0x1225e7,'scope':_0x132ab7[_0x242769(0x14f)],'version':_0x132ab7['version']}))['sort'](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0x11a03e){const _0x60325e=_0xd498,_0x59ac2c={'luzns':function(_0x2cfa27){return _0x2cfa27();},'WasNq':function(_0x2ae570,_0x337758){return _0x2ae570(_0x337758);},'yiGmr':function(_0x50240a,_0x99491e,_0x4fcbc3){return _0x50240a(_0x99491e,_0x4fcbc3);}},_0x35bab8=_0x59ac2c['luzns'](getInstalledPluginsPath);if(!_0x59ac2c[_0x60325e(0x156)](existsSync,_0x35bab8))return[];try{const _0x3f279a=await _0x59ac2c['yiGmr'](readFile,_0x35bab8,_0x60325e(0x161));return parseInstalledPluginInfo(_0x3f279a,_0x11a03e,getProjectRoot());}catch{return[];}}export async function getPluginInfo(_0xab7b47){const _0x115c63=_0xd498,_0x2e5015={'xIwAD':function(_0x5808b1,_0x347e3a){return _0x5808b1(_0x347e3a);},'RdiBm':_0x115c63(0x154),'SeUGf':'list','QforB':function(_0x1d84c8,_0x8ebe89){return _0x1d84c8===_0x8ebe89;},'xcJJQ':'enabled'},_0x2638f0=await _0x2e5015['xIwAD'](getInstalledPluginInfoFromRegistry,_0xab7b47);if(_0x2638f0[_0x115c63(0x149)]>0x0)return _0x2638f0[0x0];const _0x12661c=await runClaudeCommand([_0x2e5015['RdiBm'],_0x2e5015['SeUGf']],{'captureOutput':!![]});if(!_0x12661c[_0x115c63(0x15d)]||!_0x12661c['output'])return null;if(!_0x12661c['output'][_0x115c63(0x15b)](_0xab7b47))return null;const _0x3c4e39={'name':_0xab7b47},_0x421608=_0x12661c[_0x115c63(0x166)][_0x115c63(0x15a)](new RegExp(_0xab7b47+_0x115c63(0x13f),'i'));_0x421608&&(_0x3c4e39['scope']=_0x421608[0x1]['toLowerCase']());const _0x2246f2=_0x12661c['output']['match'](new RegExp(_0xab7b47+_0x115c63(0x162),'i'));_0x2246f2&&(_0x3c4e39['version']=_0x2246f2[0x1]);const _0x5ddfaf=_0x12661c[_0x115c63(0x166)]['match'](new RegExp(_0xab7b47+_0x115c63(0x13b),'i'));return _0x5ddfaf&&(_0x3c4e39['enabled']=_0x2e5015['QforB'](_0x5ddfaf[0x1]['toLowerCase'](),_0x2e5015['xcJJQ'])),_0x3c4e39;}
1
+ (function(_0x4b5400,_0x37f7b6){const _0x4ce024=_0x38b3,_0xf79cc3=_0x4b5400();while(!![]){try{const _0x1e8724=-parseInt(_0x4ce024(0x88))/0x1*(-parseInt(_0x4ce024(0x83))/0x2)+parseInt(_0x4ce024(0x75))/0x3+parseInt(_0x4ce024(0x6b))/0x4*(parseInt(_0x4ce024(0x7d))/0x5)+parseInt(_0x4ce024(0x8e))/0x6*(-parseInt(_0x4ce024(0x85))/0x7)+-parseInt(_0x4ce024(0x76))/0x8+-parseInt(_0x4ce024(0x82))/0x9*(-parseInt(_0x4ce024(0x78))/0xa)+-parseInt(_0x4ce024(0x65))/0xb;if(_0x1e8724===_0x37f7b6)break;else _0xf79cc3['push'](_0xf79cc3['shift']());}catch(_0xf008c3){_0xf79cc3['push'](_0xf79cc3['shift']());}}}(_0x2e19,0x78735));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile}from'fs/promises';function _0x2e19(){const _0x5b63eb=['2009ZCkhLY','list','cwd','851672USKcyc','claude','match','ignore','oDfrq','stdout','15084rXsqzA','toString','FuSPX','HMltE','xdUbd','enabled','CLclO','11301983WfNskO','uvign','toLowerCase','data','version','eBNZn','161260nvaYnb','QvWIb','scope','map','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','user','installed_plugins.json','output','includes','uDUcT','2811282WypkMk','1334064mcDvFw','plugin','10jsBdlA','parse','captureOutput','vOHmG','utf-8','5yUxSIp','plugins','length','local','success','5220117hvrozk','2dZNWhe','projectPath'];_0x2e19=function(){return _0x5b63eb;};return _0x2e19();}function _0x38b3(_0xee44b8,_0x3e1241){_0xee44b8=_0xee44b8-0x64;const _0x2e19b5=_0x2e19();let _0x38b3e3=_0x2e19b5[_0xee44b8];return _0x38b3e3;}import{join,resolve}from'path';import{getClaudeConfigDir,getProjectRoot}from'./claudeConfig.js';export function runClaudeCommand(_0x52da19,_0x50b051){const _0x4dccd0=_0x38b3,_0x418c2b={'SfoBm':'pipe','oDfrq':'inherit','eNArR':function(_0x26faa2,_0x45cb20,_0x37b5e5,_0x110b4f){return _0x26faa2(_0x45cb20,_0x37b5e5,_0x110b4f);},'uvign':_0x4dccd0(0x68),'sDkQZ':'close','UQrkd':'error'};return new Promise(_0x1bae4d=>{const _0xf2bda7=_0x4dccd0,_0x5a9f4f={'WbDKr':function(_0x5f350d,_0x477c9c){return _0x5f350d===_0x477c9c;},'CLclO':function(_0x180759,_0x7c5748){return _0x180759(_0x7c5748);}},_0x208495=_0x50b051?.[_0xf2bda7(0x7a)]?[_0xf2bda7(0x8b),'pipe',_0x418c2b['SfoBm']]:[_0xf2bda7(0x8b),_0x418c2b[_0xf2bda7(0x8c)],_0x418c2b[_0xf2bda7(0x8c)]],_0x3c8f70=_0x418c2b['eNArR'](spawn,_0xf2bda7(0x89),_0x52da19,{'stdio':_0x208495,'cwd':_0x50b051?.[_0xf2bda7(0x87)]});let _0x391c0a='';_0x50b051?.['captureOutput']&&_0x3c8f70[_0xf2bda7(0x8d)]&&_0x3c8f70[_0xf2bda7(0x8d)]['on'](_0x418c2b[_0xf2bda7(0x66)],_0x11e30d=>{const _0x557342=_0xf2bda7;_0x391c0a+=_0x11e30d[_0x557342(0x8f)]();}),_0x50b051?.['captureOutput']&&_0x3c8f70['stderr']&&_0x3c8f70['stderr']['on'](_0x418c2b[_0xf2bda7(0x66)],_0x284aea=>{const _0x28a43a=_0xf2bda7;_0x391c0a+=_0x284aea[_0x28a43a(0x8f)]();}),_0x3c8f70['on'](_0x418c2b['sDkQZ'],_0x4eafc7=>{_0x5a9f4f['WbDKr'](_0x4eafc7,0x0)?_0x5a9f4f['CLclO'](_0x1bae4d,{'success':!![],'output':_0x391c0a}):_0x1bae4d({'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x4eafc7,'output':_0x391c0a});}),_0x3c8f70['on'](_0x418c2b['UQrkd'],_0x1bbb0c=>{const _0x3d7658=_0xf2bda7;_0x5a9f4f[_0x3d7658(0x64)](_0x1bae4d,{'success':![],'error':_0x1bbb0c['message']});});});}export async function isMarketplaceAdded(_0x5e1314){const _0x15d1ec=_0x38b3,_0x16340c={'hOQBy':function(_0x338158,_0x439d67,_0x55bbea){return _0x338158(_0x439d67,_0x55bbea);},'LaFly':_0x15d1ec(0x77),'QvWIb':'marketplace'},_0x9934e2=await _0x16340c['hOQBy'](runClaudeCommand,[_0x16340c['LaFly'],_0x16340c[_0x15d1ec(0x6c)],'list'],{'captureOutput':!![]});if(!_0x9934e2[_0x15d1ec(0x81)]||!_0x9934e2[_0x15d1ec(0x72)])return![];return _0x9934e2['output'][_0x15d1ec(0x73)](_0x5e1314);}export async function isPluginInstalled(_0x23744){const _0x397b35=_0x38b3,_0x2e979a={'vOHmG':function(_0x94ea47,_0x2bd6c5){return _0x94ea47>_0x2bd6c5;},'uDUcT':'plugin'},_0xe92ebf=await getInstalledPluginInfoFromRegistry(_0x23744);if(_0x2e979a[_0x397b35(0x7b)](_0xe92ebf['length'],0x0))return!![];const _0x299a2e=await runClaudeCommand([_0x2e979a[_0x397b35(0x74)],_0x397b35(0x86)],{'captureOutput':!![]});if(!_0x299a2e[_0x397b35(0x81)]||!_0x299a2e[_0x397b35(0x72)])return![];return _0x299a2e[_0x397b35(0x72)]['includes'](_0x23744);}function getInstalledPluginsPath(){const _0x450c93=_0x38b3,_0x1fa4bd={'oLMzX':function(_0x528ea4,_0x7321e,_0x2f894c,_0x27b709){return _0x528ea4(_0x7321e,_0x2f894c,_0x27b709);},'eBNZn':function(_0x263330){return _0x263330();}};return _0x1fa4bd['oLMzX'](join,_0x1fa4bd[_0x450c93(0x6a)](getClaudeConfigDir),_0x450c93(0x7e),_0x450c93(0x71));}function sortPluginInfo(_0x111308,_0x13c6ee){const _0x5381b7=_0x38b3,_0x4d8dda={'HMltE':function(_0x37a2c9,_0x5ff6f6){return _0x37a2c9-_0x5ff6f6;}},_0xe20816={'project':0x0,'local':0x1,'user':0x2};return _0x4d8dda[_0x5381b7(0x91)](_0xe20816[_0x111308[_0x5381b7(0x6d)]??_0x5381b7(0x70)],_0xe20816[_0x13c6ee[_0x5381b7(0x6d)]??_0x5381b7(0x70)]);}export function parseInstalledPluginInfo(_0x566705,_0x49ab8d,_0x1ff25c){const _0x8331a9=_0x38b3,_0x2fba0a={'kQtOO':function(_0x237de7,_0x1f979c){return _0x237de7!==_0x1f979c;},'pqPma':function(_0x279ce8,_0x133c05){return _0x279ce8===_0x133c05;},'yIndv':function(_0x54715a,_0x21a025){return _0x54715a(_0x21a025);},'bpAdv':function(_0x134a0,_0x4c11a5){return _0x134a0(_0x4c11a5);}},_0x231234=JSON[_0x8331a9(0x79)](_0x566705),_0x2b6ae7=_0x2fba0a['bpAdv'](resolve,_0x1ff25c),_0xacd7d0=_0x231234[_0x8331a9(0x7e)]?.[_0x49ab8d]??[];return _0xacd7d0['filter'](_0x15992d=>{const _0x10f581=_0x8331a9;if(_0x2fba0a['kQtOO'](_0x15992d[_0x10f581(0x6d)],'project')&&_0x2fba0a['kQtOO'](_0x15992d[_0x10f581(0x6d)],_0x10f581(0x80)))return!![];if(!_0x15992d[_0x10f581(0x84)])return!![];return _0x2fba0a['pqPma'](_0x2fba0a['yIndv'](resolve,_0x15992d['projectPath']),_0x2b6ae7);})[_0x8331a9(0x6e)](_0x4effa2=>({'name':_0x49ab8d,'scope':_0x4effa2['scope'],'version':_0x4effa2[_0x8331a9(0x69)]}))['sort'](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0x1ebcfd){const _0x4820e8=_0x38b3,_0x1b1022={'scSHu':function(_0x2e6744){return _0x2e6744();},'FuSPX':_0x4820e8(0x7c),'nslrC':function(_0x307349,_0xd6e809,_0x1838f2,_0x47e286){return _0x307349(_0xd6e809,_0x1838f2,_0x47e286);}},_0x59f07c=_0x1b1022['scSHu'](getInstalledPluginsPath);if(!existsSync(_0x59f07c))return[];try{const _0x223b50=await readFile(_0x59f07c,_0x1b1022[_0x4820e8(0x90)]);return _0x1b1022['nslrC'](parseInstalledPluginInfo,_0x223b50,_0x1ebcfd,getProjectRoot());}catch{return[];}}export async function getPluginInfo(_0x4bf6fd){const _0x20ae84=_0x38b3,_0x47ebf4={'xdUbd':function(_0x57cc3b,_0x481cf8){return _0x57cc3b>_0x481cf8;},'sIUql':function(_0x20dbb6,_0x4f5758){return _0x20dbb6===_0x4f5758;},'tHKZP':_0x20ae84(0x93)},_0x1ddbe2=await getInstalledPluginInfoFromRegistry(_0x4bf6fd);if(_0x47ebf4[_0x20ae84(0x92)](_0x1ddbe2[_0x20ae84(0x7f)],0x0))return _0x1ddbe2[0x0];const _0x53a343=await runClaudeCommand(['plugin',_0x20ae84(0x86)],{'captureOutput':!![]});if(!_0x53a343[_0x20ae84(0x81)]||!_0x53a343[_0x20ae84(0x72)])return null;if(!_0x53a343[_0x20ae84(0x72)]['includes'](_0x4bf6fd))return null;const _0x5aca79={'name':_0x4bf6fd},_0x585f8c=_0x53a343['output'][_0x20ae84(0x8a)](new RegExp(_0x4bf6fd+_0x20ae84(0x6f),'i'));_0x585f8c&&(_0x5aca79[_0x20ae84(0x6d)]=_0x585f8c[0x1][_0x20ae84(0x67)]());const _0x3efded=_0x53a343['output']['match'](new RegExp(_0x4bf6fd+'[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','i'));_0x3efded&&(_0x5aca79[_0x20ae84(0x69)]=_0x3efded[0x1]);const _0x192af9=_0x53a343['output']['match'](new RegExp(_0x4bf6fd+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x192af9&&(_0x5aca79['enabled']=_0x47ebf4['sIUql'](_0x192af9[0x1]['toLowerCase'](),_0x47ebf4['tHKZP'])),_0x5aca79;}