@ranger-testing/ranger-cli 3.1.3 → 3.1.4-alpha.ffeeafe-46

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 -0
  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 +1 -1
@@ -1 +1 @@
1
- (function(_0x23cef9,_0x4f1a60){const _0x3976a6=_0x2751,_0x365db2=_0x23cef9();while(!![]){try{const _0x6f228e=-parseInt(_0x3976a6(0x125))/0x1+-parseInt(_0x3976a6(0x15b))/0x2+-parseInt(_0x3976a6(0x165))/0x3*(-parseInt(_0x3976a6(0x161))/0x4)+-parseInt(_0x3976a6(0x15c))/0x5+-parseInt(_0x3976a6(0x14e))/0x6*(parseInt(_0x3976a6(0x167))/0x7)+-parseInt(_0x3976a6(0x138))/0x8+-parseInt(_0x3976a6(0x110))/0x9*(-parseInt(_0x3976a6(0x162))/0xa);if(_0x6f228e===_0x4f1a60)break;else _0x365db2['push'](_0x365db2['shift']());}catch(_0x1714ad){_0x365db2['push'](_0x365db2['shift']());}}}(_0x5dbf,0xe7eb4));import{spawn}from'child_process';function _0x5dbf(){const _0x8a34ad=['\x0aCould\x20not\x20check\x20latest\x20version:\x20','utf-8','cwd','marketplace','14756392wSEZgV','MdgiY','vANLT','qVJVm','BRviq','Latest\x20version:\x20\x20','pauVk','push','YjpPQ','\x0aSuccessfully\x20installed\x20','WUYvA','KhsKI','Update\x20failed\x20for\x20@','update','XFPPG','JFxwy','ranger@trailhead','\x0aClaude\x20marketplace\x20updated\x20(trailhead).','OKZtk','UJdDd','MueZT','active-profile.txt','2586NrQaSA','Claude\x20plugin\x20update\x20failed\x20for\x20','win32','test','FsoaN','platform','\x22.\x20','user','kyZrP','error','plugin','Qxwpb','log','3108846VCPPfA','1454480sqxjRp','QFwqW','FCqdH','isFinite','egmji','4vvqcCp','40pBkABb','\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','warn','2064651bhFWMV','splice','11151fKVQYA','kill','\x20channel.','\x0aClaude\x20plugin\x20updated\x20(project\x20scope).','scope','alpha','claude','\x0aClaude\x20plugin\x20updated\x20(local\x20scope).','YNBlS','timeoutMs','unref','ymeSx','beta','trailhead','Wxlck','10874403fcmEwc','ignore','inherit','vybmI','--scope','fwNEl','\x0aYour\x20version\x20(','\x0aInstalling\x20','xtMXx','TrVue','hChGo','zUKdk','bYAFL','Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','length','OnQIQ','ZEbZj','uQTvz','hubzH','Uuudc','split','194894aAlkJw','@latest','.0.0','oulKZ','project','Update\x20failed.','join','latest','close','\x20ranger-managed\x20skill(s)...','hyQEl','fJKnz','local','Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22','VvErP'];_0x5dbf=function(){return _0x8a34ad;};return _0x5dbf();}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(_0xd90d6d,_0x241b79,_0x200c1c){const _0x362c37=_0x2751,_0x45295c={'WUYvA':function(_0x7edf08,_0x342317){return _0x7edf08(_0x342317);},'qVJVm':function(_0x443a98,_0x6102ba,_0x4a0b55,_0x520d0c){return _0x443a98(_0x6102ba,_0x4a0b55,_0x520d0c);},'kyZrP':_0x362c37(0x111),'zUKdk':_0x362c37(0x112),'OKZtk':function(_0x1e7e7c,_0x5b2be2,_0x2a9633){return _0x1e7e7c(_0x5b2be2,_0x2a9633);}};return new Promise(_0x37dcd4=>{const _0xc4e1fc=_0x362c37,_0x152f11={'Wxlck':function(_0x4aa00b,_0x40da32){const _0x4fe98e=_0x2751;return _0x45295c[_0x4fe98e(0x142)](_0x4aa00b,_0x40da32);},'xmXta':function(_0xd9bb64,_0x318a49){return _0x45295c['WUYvA'](_0xd9bb64,_0x318a49);}};let _0x1dc522=![],_0x45953c;const _0x588a66=_0x36964c=>{if(_0x1dc522)return;_0x1dc522=!![],_0x45953c&&clearTimeout(_0x45953c),_0x37dcd4(_0x36964c);},_0x3803c4=_0x45295c[_0xc4e1fc(0x13b)](spawn,_0xd90d6d,_0x241b79,{'stdio':[_0x45295c[_0xc4e1fc(0x156)],_0x200c1c?.['stdio']??_0x45295c[_0xc4e1fc(0x11b)],_0x200c1c?.['stdio']??_0xc4e1fc(0x112)],'cwd':_0x200c1c?.[_0xc4e1fc(0x136)],'shell':process[_0xc4e1fc(0x153)]==='win32'});_0x45953c=_0x200c1c?.[_0xc4e1fc(0x10a)]?_0x45295c[_0xc4e1fc(0x14a)](setTimeout,()=>{const _0x3e55db=_0xc4e1fc;_0x3803c4[_0x3e55db(0x102)](),_0x3803c4[_0x3e55db(0x10b)](),_0x588a66(![]);},_0x200c1c['timeoutMs']):undefined,_0x3803c4['on']('close',_0x92eed3=>{const _0x5181d8=_0xc4e1fc;_0x152f11[_0x5181d8(0x10f)](_0x588a66,_0x92eed3===0x0);}),_0x3803c4['on'](_0xc4e1fc(0x157),()=>{_0x152f11['xmXta'](_0x588a66,![]);});});}export function resolveDistTag(_0x5dc6c2){const _0x39985d=_0x2751,_0x2c698e={'pauVk':_0x39985d(0x106),'kZbso':_0x39985d(0x10d),'FsoaN':_0x39985d(0x12c)};if(/-alpha\./i[_0x39985d(0x151)](_0x5dc6c2))return _0x2c698e[_0x39985d(0x13e)];if(/-beta\./i[_0x39985d(0x151)](_0x5dc6c2))return _0x2c698e['kZbso'];if(/-rc\./i[_0x39985d(0x151)](_0x5dc6c2))return'rc';return _0x2c698e[_0x39985d(0x152)];}export function resolveInstallTarget(_0x44e41b){const _0x431aee=_0x2751,_0x553dd9={'DnSNG':function(_0x4f2bc5,_0xb58ab2){return _0x4f2bc5(_0xb58ab2);},'utNUt':function(_0x1f1361,_0x4c6eaf){return _0x1f1361!==_0x4c6eaf;},'XcpGZ':'latest','YNBlS':function(_0x4b4fd6,_0x2ac028,_0x2fc657){return _0x4b4fd6(_0x2ac028,_0x2fc657);}},_0x3689d7=_0x553dd9['DnSNG'](resolveDistTag,_0x44e41b);if(_0x553dd9['utNUt'](_0x3689d7,_0x553dd9['XcpGZ']))return _0x3689d7;const _0x38318a=_0x44e41b['split']('.')[0x0],_0x1f03be=_0x553dd9[_0x431aee(0x109)](parseInt,_0x38318a,0xa);if(!Number[_0x431aee(0x15f)](_0x1f03be))return'latest';return'^'+_0x1f03be+_0x431aee(0x127);}function _0x2751(_0x30368a,_0x25e722){_0x30368a=_0x30368a-0x102;const _0x5dbf15=_0x5dbf();let _0x2751d2=_0x5dbf15[_0x30368a];return _0x2751d2;}async function runInstall(_0x443b38){const _0x234235=_0x2751,_0xdec51={'bYAFL':function(_0x568358,_0x326dd5,_0x2188b7,_0x5b4d8a){return _0x568358(_0x326dd5,_0x2188b7,_0x5b4d8a);},'ZLKMK':'npm','YjpPQ':'inherit','RmTpE':function(_0x2f0821,_0x46afb5){return _0x2f0821===_0x46afb5;},'mPRjP':_0x234235(0x150),'UJdDd':_0x234235(0x12d),'SzOqk':_0x234235(0x157)},_0x3aabc4=resolveInstallTarget(_0x443b38);return new Promise(_0x4298d6=>{const _0x54e639=_0x234235,_0xc59c63={'egmji':function(_0x50e043,_0x420404){return _0x50e043(_0x420404);}};console[_0x54e639(0x15a)](_0x54e639(0x117)+PACKAGE_NAME+'@'+_0x3aabc4+'...\x0a');const _0xfecd71=_0xdec51[_0x54e639(0x11c)](spawn,_0xdec51['ZLKMK'],['install','-g',PACKAGE_NAME+'@'+_0x3aabc4],{'stdio':['ignore',_0xdec51[_0x54e639(0x140)],_0xdec51['YjpPQ']],'shell':_0xdec51['RmTpE'](process['platform'],_0xdec51['mPRjP'])});_0xfecd71['on'](_0xdec51[_0x54e639(0x14b)],_0x5238aa=>{_0x4298d6(_0x5238aa===0x0);}),_0xfecd71['on'](_0xdec51['SzOqk'],()=>{const _0x48c1f3=_0x54e639;_0xc59c63[_0x48c1f3(0x160)](_0x4298d6,![]);});});}async function updateClaudeMarketplace(){const _0x3cd100=_0x2751,_0x49f646={'TrVue':'claude','oulKZ':_0x3cd100(0x158)},_0x507534=await runCommand(_0x49f646[_0x3cd100(0x119)],[_0x49f646[_0x3cd100(0x128)],_0x3cd100(0x137),_0x3cd100(0x145),_0x3cd100(0x10e)],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x507534)throw new Error(_0x3cd100(0x11d));}async function updateClaudePlugin(_0x38f654='user'){const _0x111180=_0x2751,_0x2670a3={'xZFHK':'plugin','ZEbZj':'update','Gmjds':'ranger@trailhead','xtMXx':function(_0x399b50,_0x40c920){return _0x399b50!==_0x40c920;},'GwAyA':'claude','hubzH':function(_0x2867a4,_0x4098ca){return _0x2867a4===_0x4098ca;},'KhsKI':'project'},_0xae01e2=[_0x2670a3['xZFHK'],_0x2670a3[_0x111180(0x120)],_0x2670a3['Gmjds']];_0x2670a3[_0x111180(0x118)](_0x38f654,_0x111180(0x155))&&_0xae01e2[_0x111180(0x13f)](_0x111180(0x114),_0x38f654);const _0x124491=await runCommand(_0x2670a3['GwAyA'],_0xae01e2,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x2670a3[_0x111180(0x122)](_0x38f654,_0x2670a3[_0x111180(0x143)])||_0x38f654==='local'?getProjectRoot():undefined});if(!_0x124491)throw new Error(_0x111180(0x14f)+_0x38f654+_0x111180(0x163));}function isSkillInstalled(_0x386463,_0x4d3d1d,_0x19c82a){const _0x1cdfb6=_0x2751,_0x5d24e7={'ucZJx':function(_0x50c377,_0x1f3d6b){return _0x50c377(_0x1f3d6b);},'vANLT':function(_0x4f109d,_0x4f6242){return _0x4f109d(_0x4f6242);},'fJKnz':function(_0x231865,_0x4bc66d,_0x300c60){return _0x231865(_0x4bc66d,_0x300c60);},'ztUKz':function(_0x3377dc,_0x3c3eb8){return _0x3377dc(_0x3c3eb8);}},_0xfea70e=_0x19c82a==='opencode'?_0x5d24e7['ucZJx'](getOpencodeSkillsDir,_0x4d3d1d):_0x5d24e7[_0x1cdfb6(0x13a)](getSkillsDir,_0x4d3d1d),_0x123ef4=_0x5d24e7[_0x1cdfb6(0x130)](join,_0xfea70e,_0x386463);return _0x5d24e7['ztUKz'](existsSync,_0x123ef4);}async function reinstallSkills(_0x136f35){const _0x5c9ad=_0x2751,_0x166a5a={'fwNEl':_0x5c9ad(0x129),'XFPPG':_0x5c9ad(0x155),'TsVkZ':'claude','Twyoc':'opencode','MueZT':'\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','vybmI':function(_0x15eb39,_0x10e91b,_0x7e54fe){return _0x15eb39(_0x10e91b,_0x7e54fe);}},_0x33a3de=[_0x166a5a[_0x5c9ad(0x115)],_0x166a5a[_0x5c9ad(0x146)]],_0x309001=[];for(const _0x37a99d of _0x33a3de){for(const _0x449b32 of RANGER_MANAGED_SKILLS){isSkillInstalled(_0x449b32,_0x37a99d,_0x5c9ad(0x107))&&_0x309001['push']({'skillName':_0x449b32,'level':_0x37a99d,'platform':_0x166a5a['TsVkZ']}),isSkillInstalled(_0x449b32,_0x37a99d,'opencode')&&_0x309001[_0x5c9ad(0x13f)]({'skillName':_0x449b32,'level':_0x37a99d,'platform':_0x166a5a['Twyoc']});}}for(const _0x38c126 of _0x33a3de){for(const _0x271175 of DEPRECATED_SKILLS){await removeSkill(_0x271175,_0x38c126);}}if(_0x309001[_0x5c9ad(0x11e)]===0x0){console[_0x5c9ad(0x15a)](_0x166a5a[_0x5c9ad(0x14c)]);return;}console[_0x5c9ad(0x15a)]('\x0aReinstalling\x20'+_0x309001[_0x5c9ad(0x11e)]+_0x5c9ad(0x12e));for(const {skillName:_0x5334d,level:_0x44beb2,platform:_0x104e66}of _0x309001){try{await _0x166a5a[_0x5c9ad(0x113)](installSkill,_0x5334d,{'level':_0x44beb2,'cliVersion':_0x136f35,'platform':_0x104e66});}catch(_0x4efa08){console[_0x5c9ad(0x164)]('\x20\x20Failed\x20to\x20reinstall\x20'+_0x104e66+'\x20'+_0x44beb2+'\x20skill\x20'+_0x5334d+':',_0x4efa08);}}}async function ensureActiveProfileGitignored(){const _0x1afbc1=_0x2751,_0x335ff5={'koGNC':function(_0x358039){return _0x358039();},'ymeSx':function(_0x5d3202,_0x4c1c76){return _0x5d3202(_0x4c1c76);},'OnQIQ':function(_0x70774f,_0x2e4f5a,_0x1cc259){return _0x70774f(_0x2e4f5a,_0x1cc259);},'tCYWf':function(_0x38204a,_0x1f4894){return _0x38204a===_0x1f4894;},'KxbGO':function(_0x229985,_0x999caf,_0x292032,_0x16012c){return _0x229985(_0x999caf,_0x292032,_0x16012c);},'aJwih':_0x1afbc1(0x135)},_0x3d9be0=join(_0x335ff5['koGNC'](getRangerDir),'.gitignore');if(!_0x335ff5[_0x1afbc1(0x10c)](existsSync,_0x3d9be0))return![];let _0x31866c='';try{_0x31866c=await _0x335ff5[_0x1afbc1(0x11f)](readFile,_0x3d9be0,_0x1afbc1(0x135));}catch{return![];}const _0x30a3bf=_0x31866c[_0x1afbc1(0x124)](/\r?\n/);if(_0x30a3bf['some'](_0xb9b352=>_0xb9b352['trim']()==='active-profile.txt'))return![];let _0xba0000=_0x30a3bf['findIndex'](_0x487142=>_0x487142['trim']()==='active-feature.txt');_0x335ff5['tCYWf'](_0xba0000,-0x1)&&(_0xba0000=_0x30a3bf['length']);_0x30a3bf[_0x1afbc1(0x166)](_0xba0000,0x0,_0x1afbc1(0x14d));let _0x5c8d8d=_0x30a3bf[_0x1afbc1(0x12b)]('\x0a');!_0x5c8d8d['endsWith']('\x0a')&&(_0x5c8d8d+='\x0a');try{await _0x335ff5['KxbGO'](writeFile,_0x3d9be0,_0x5c8d8d,_0x335ff5['aJwih']);}catch{return![];}return!![];}export async function update(){const _0x55c3cd=_0x2751,_0x32c2b9={'MdgiY':function(_0x1613b7,_0x4bd002){return _0x1613b7(_0x4bd002);},'yZqok':function(_0x28c8b9,_0x22b6ab){return _0x28c8b9!==_0x22b6ab;},'FCqdH':'latest','GTzkv':function(_0x52b072,_0x47c98f){return _0x52b072(_0x47c98f);},'Qxwpb':function(_0x49b7e6){return _0x49b7e6();},'QFwqW':'\x0a✅\x20Update\x20complete!','Youfe':'Checking\x20for\x20updates...','JFxwy':function(_0x1de681,_0xd9efe0,_0x11f5af){return _0x1de681(_0xd9efe0,_0x11f5af);},'uQTvz':function(_0x198167,_0x264e46){return _0x198167+_0x264e46;},'QYBvq':'Attempting\x20install\x20anyway...','mRswH':'\x0aSuccessfully\x20installed\x20latest\x20version.','thuMb':function(_0x352774,_0x44675f){return _0x352774===_0x44675f;},'UjdIv':'\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','hyQEl':_0x55c3cd(0x12a),'Uuudc':_0x55c3cd(0x10e),'FspGC':function(_0x2667b2,_0x37b077){return _0x2667b2(_0x37b077);},'VvErP':_0x55c3cd(0x155),'BRviq':function(_0x2d4a43,_0x45525a){return _0x2d4a43===_0x45525a;},'tuTHH':'\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','hChGo':function(_0x3ee78e){return _0x3ee78e();}},_0x2e2890=getCurrentVersion();console['log']('\x0aCurrent\x20version:\x20'+_0x2e2890);const _0x1b0c13=_0x32c2b9[_0x55c3cd(0x139)](resolveDistTag,_0x2e2890);if(_0x32c2b9['yZqok'](_0x1b0c13,_0x32c2b9[_0x55c3cd(0x15e)])){console[_0x55c3cd(0x15a)]('Prerelease\x20channel\x20detected\x20(@'+_0x1b0c13+').\x20Staying\x20on\x20'+_0x1b0c13+'\x20—\x20reinstalling\x20@'+_0x1b0c13+'...');const _0x43eb9f=await _0x32c2b9['GTzkv'](runInstall,_0x2e2890);if(!_0x43eb9f)throw new Error(_0x55c3cd(0x144)+_0x1b0c13+_0x55c3cd(0x103));const _0x17fe82=getCurrentVersion();console[_0x55c3cd(0x15a)](_0x55c3cd(0x141)+PACKAGE_NAME+'@'+_0x1b0c13+'.'),await reinstallSkills(_0x17fe82),await _0x32c2b9[_0x55c3cd(0x159)](ensureActiveProfileGitignored),console['log'](_0x32c2b9[_0x55c3cd(0x15d)]);return;}console['log'](_0x32c2b9['Youfe']);const _0x1bebd0=_0x32c2b9[_0x55c3cd(0x147)](parseInt,_0x2e2890[_0x55c3cd(0x124)]('.')[0x0],0xa);if(!Number['isFinite'](_0x1bebd0))throw new Error(_0x32c2b9[_0x55c3cd(0x121)](_0x55c3cd(0x132)+_0x2e2890+_0x55c3cd(0x154),'Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20')+('npm\x20i\x20-g\x20'+PACKAGE_NAME+_0x55c3cd(0x126)));const _0x3e1683=getLatestVersion(_0x1bebd0);let _0x3c8de3=_0x2e2890;if(!_0x3e1683['version']){console[_0x55c3cd(0x164)](_0x55c3cd(0x134)+_0x3e1683[_0x55c3cd(0x157)]),console['log'](_0x32c2b9['QYBvq']);const _0x1b3fa3=await runInstall(_0x2e2890);if(_0x1b3fa3)console['log'](_0x32c2b9['mRswH']),_0x3c8de3=getCurrentVersion();else throw new Error('Update\x20failed:\x20'+_0x3e1683['error']);}else{const _0x1246c1=_0x3e1683['version'];console[_0x55c3cd(0x15a)](_0x55c3cd(0x13d)+_0x1246c1);const _0x46e342=compareVersions(_0x2e2890,_0x1246c1);if(_0x32c2b9['thuMb'](_0x46e342,0x0))console[_0x55c3cd(0x15a)](_0x32c2b9['UjdIv']);else{if(_0x46e342<0x0)console['log'](_0x55c3cd(0x116)+_0x2e2890+')\x20is\x20newer\x20than\x20the\x20published\x20version\x20('+_0x1246c1+').');else{const _0x1ac05c=await runInstall(_0x2e2890);if(_0x1ac05c)console[_0x55c3cd(0x15a)]('\x0aSuccessfully\x20updated\x20to\x20version\x20'+_0x1246c1),_0x3c8de3=_0x1246c1;else throw new Error(_0x32c2b9[_0x55c3cd(0x12f)]);}}}await reinstallSkills(_0x3c8de3);const _0x1ab37a=await _0x32c2b9[_0x55c3cd(0x139)](isMarketplaceAdded,_0x32c2b9[_0x55c3cd(0x123)]),_0x38d867=await _0x32c2b9['FspGC'](isPluginInstalled,_0x55c3cd(0x148));_0x1ab37a&&(await updateClaudeMarketplace(),console[_0x55c3cd(0x15a)](_0x55c3cd(0x149)));if(_0x38d867){const _0x1b8355=await _0x32c2b9['GTzkv'](getPluginInfo,_0x55c3cd(0x148)),_0x281920=_0x1b8355?.[_0x55c3cd(0x105)]??_0x32c2b9[_0x55c3cd(0x133)];await updateClaudePlugin(_0x281920);if(_0x281920===_0x55c3cd(0x129))console[_0x55c3cd(0x15a)](_0x55c3cd(0x104));else _0x32c2b9[_0x55c3cd(0x13c)](_0x281920,_0x55c3cd(0x131))?console[_0x55c3cd(0x15a)](_0x55c3cd(0x108)):console['log'](_0x32c2b9['tuTHH']);}const _0x36179b=await _0x32c2b9[_0x55c3cd(0x11a)](ensureActiveProfileGitignored);console['log'](_0x32c2b9[_0x55c3cd(0x15d)]);}
1
+ const _0x5a0017=_0x1c71;(function(_0x20ac40,_0x976683){const _0x226a5e=_0x1c71,_0x105d1c=_0x20ac40();while(!![]){try{const _0x26fa84=-parseInt(_0x226a5e(0x141))/0x1+parseInt(_0x226a5e(0x144))/0x2*(-parseInt(_0x226a5e(0x143))/0x3)+parseInt(_0x226a5e(0x195))/0x4+-parseInt(_0x226a5e(0x17a))/0x5+-parseInt(_0x226a5e(0x158))/0x6*(-parseInt(_0x226a5e(0x173))/0x7)+-parseInt(_0x226a5e(0x179))/0x8*(-parseInt(_0x226a5e(0x14f))/0x9)+-parseInt(_0x226a5e(0x163))/0xa;if(_0x26fa84===_0x976683)break;else _0x105d1c['push'](_0x105d1c['shift']());}catch(_0x486ad8){_0x105d1c['push'](_0x105d1c['shift']());}}}(_0x3117,0x71a86));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(_0x393da5,_0x3d1199,_0x443051){const _0x398765=_0x1c71,_0x34b2a7={'gfbnd':function(_0x15af20,_0x4650b7){return _0x15af20(_0x4650b7);},'PALAu':function(_0x53db50,_0x39efbd,_0x5421bc,_0x22c5fe){return _0x53db50(_0x39efbd,_0x5421bc,_0x22c5fe);},'SokBG':function(_0x36c69f,_0x20ed45){return _0x36c69f===_0x20ed45;},'SnYLO':_0x398765(0x140),'UAZUk':function(_0x47e36c,_0x43563e,_0x4286cf){return _0x47e36c(_0x43563e,_0x4286cf);}};return new Promise(_0x22bc93=>{const _0x54dedb=_0x398765,_0x1b7650={'nJTze':function(_0x44bbf5,_0x27df34){return _0x34b2a7['gfbnd'](_0x44bbf5,_0x27df34);},'JihrO':function(_0x4db110,_0x1c3322){return _0x4db110(_0x1c3322);}};let _0x30c341=![],_0x42d793;const _0x2c5211=_0x29aafd=>{if(_0x30c341)return;_0x30c341=!![],_0x42d793&&clearTimeout(_0x42d793),_0x22bc93(_0x29aafd);},_0x15082a=_0x34b2a7[_0x54dedb(0x159)](spawn,_0x393da5,_0x3d1199,{'stdio':['ignore',_0x443051?.['stdio']??'inherit',_0x443051?.[_0x54dedb(0x194)]??'inherit'],'cwd':_0x443051?.['cwd'],'shell':_0x34b2a7[_0x54dedb(0x18e)](process['platform'],_0x34b2a7[_0x54dedb(0x183)])});_0x42d793=_0x443051?.['timeoutMs']?_0x34b2a7['UAZUk'](setTimeout,()=>{const _0x415aaa=_0x54dedb;_0x15082a['kill'](),_0x15082a[_0x415aaa(0x147)](),_0x1b7650[_0x415aaa(0x16d)](_0x2c5211,![]);},_0x443051['timeoutMs']):undefined,_0x15082a['on'](_0x54dedb(0x18c),_0x536da1=>{const _0x83103c=_0x54dedb;_0x1b7650[_0x83103c(0x161)](_0x2c5211,_0x536da1===0x0);}),_0x15082a['on']('error',()=>{_0x34b2a7['gfbnd'](_0x2c5211,![]);});});}export function resolveDistTag(_0x1c7963){const _0x5970a9=_0x1c71,_0x12839d={'vKMZa':'alpha','DDACU':_0x5970a9(0x149)};if(/-alpha\./i['test'](_0x1c7963))return _0x12839d['vKMZa'];if(/-beta\./i['test'](_0x1c7963))return'beta';if(/-rc\./i[_0x5970a9(0x189)](_0x1c7963))return'rc';return _0x12839d[_0x5970a9(0x170)];}export function resolveInstallTarget(_0x1bee21){const _0x4e39e8=_0x1c71,_0x4fe4d0={'EsVJB':function(_0x205964,_0x18fd31){return _0x205964(_0x18fd31);},'PKGkb':function(_0x1c2bf7,_0x5d69a7){return _0x1c2bf7!==_0x5d69a7;},'ddOzJ':function(_0x1f40a9,_0x249ad0,_0x2fc63c){return _0x1f40a9(_0x249ad0,_0x2fc63c);},'SokXt':_0x4e39e8(0x149)},_0x1223ab=_0x4fe4d0[_0x4e39e8(0x168)](resolveDistTag,_0x1bee21);if(_0x4fe4d0['PKGkb'](_0x1223ab,_0x4e39e8(0x149)))return _0x1223ab;const _0xb696=_0x1bee21[_0x4e39e8(0x15b)]('.')[0x0],_0x2c0766=_0x4fe4d0['ddOzJ'](parseInt,_0xb696,0xa);if(!Number[_0x4e39e8(0x186)](_0x2c0766))return _0x4fe4d0[_0x4e39e8(0x167)];return'^'+_0x2c0766+_0x4e39e8(0x17e);}async function runInstall(_0x82de52){const _0x1d301d=_0x1c71,_0x358d1c={'FwMZU':function(_0x4aff17,_0x5630ca){return _0x4aff17(_0x5630ca);},'FZKam':function(_0x6bb56f,_0x45da63,_0x386f8a,_0x5518c5){return _0x6bb56f(_0x45da63,_0x386f8a,_0x5518c5);},'SFEcH':_0x1d301d(0x153),'TyGZg':_0x1d301d(0x191),'aSBEL':'close','refCT':_0x1d301d(0x154)},_0x14a5d4=_0x358d1c['FwMZU'](resolveInstallTarget,_0x82de52);return new Promise(_0xb59419=>{const _0x5aa27e=_0x1d301d,_0x19623d={'SKtFW':function(_0x547cf1,_0xbbdeeb){const _0x319aa4=_0x1c71;return _0x358d1c[_0x319aa4(0x146)](_0x547cf1,_0xbbdeeb);}};console['log']('\x0aInstalling\x20'+PACKAGE_NAME+'@'+_0x14a5d4+_0x5aa27e(0x14e));const _0x5bfef9=_0x358d1c['FZKam'](spawn,_0x358d1c['SFEcH'],[_0x358d1c[_0x5aa27e(0x16b)],'-g',PACKAGE_NAME+'@'+_0x14a5d4],{'stdio':[_0x5aa27e(0x187),'inherit','inherit'],'shell':process['platform']==='win32'});_0x5bfef9['on'](_0x358d1c['aSBEL'],_0x56d81d=>{const _0x2731ec=_0x5aa27e;_0x19623d[_0x2731ec(0x175)](_0xb59419,_0x56d81d===0x0);}),_0x5bfef9['on'](_0x358d1c[_0x5aa27e(0x15a)],()=>{_0xb59419(![]);});});}function _0x3117(){const _0x32c777=['ZrvVu','gxmUL','...\x0a','2691bhYeiL','ZzhQl','update','push','npm','error','splice','user','warn','1140576TcvaSx','PALAu','refCT','split','zNisY','loVLn','KJHtP','iWUOW','EzVlH','JihrO','project','3679960mcAPvJ','opencode','\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','Claude\x20plugin\x20update\x20failed\x20for\x20','SokXt','EsVJB','Crxeb','log','TyGZg','Update\x20failed\x20for\x20@','nJTze','\x22.\x20','Update\x20failed.','DDACU','findIndex','trailhead','28oicpOw','\x0aClaude\x20plugin\x20updated\x20(local\x20scope).','SKtFW','rfjMI','version','local','12472FIaJAO','3019055niWqBC','.gitignore','ranger@trailhead','\x0aClaude\x20marketplace\x20updated\x20(trailhead).','.0.0','\x0aCould\x20not\x20check\x20latest\x20version:\x20','xUFWK','plugin','active-profile.txt','SnYLO','Awqej','AfhZW','isFinite','ignore','vGpcV','test','LKrtr','\x0aSuccessfully\x20installed\x20','close','YctCZ','SokBG','claude','RGpvt','install','\x0a✅\x20Update\x20complete!','Latest\x20version:\x20\x20','stdio','2108488rxsWde','zhwpp','length','Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20','SXqRy','win32','93584vzCzdI','Update\x20failed:\x20','74238jAbiNF','18UWPLvT','trim','FwMZU','unref','txrCJ','latest','Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22','@latest'];_0x3117=function(){return _0x32c777;};return _0x3117();}async function updateClaudeMarketplace(){const _0x4ceabc=_0x1c71,_0x49b964={'wMaEU':function(_0x27ffda,_0x137e80,_0x1e8daa,_0x57f4b){return _0x27ffda(_0x137e80,_0x1e8daa,_0x57f4b);},'iWUOW':_0x4ceabc(0x151)},_0x45a244=await _0x49b964['wMaEU'](runCommand,'claude',[_0x4ceabc(0x181),'marketplace',_0x49b964[_0x4ceabc(0x15f)],_0x4ceabc(0x172)],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x45a244)throw new Error('Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}async function updateClaudePlugin(_0x3567f3=_0x5a0017(0x156)){const _0x3051b4=_0x5a0017,_0x164c7a={'SXqRy':_0x3051b4(0x181),'hurIZ':_0x3051b4(0x151),'RGpvt':function(_0x5ba413,_0x170d8e){return _0x5ba413!==_0x170d8e;},'BQdLs':_0x3051b4(0x156),'rXYKW':function(_0xf82cc3,_0x48bf94,_0x422006,_0x44dc90){return _0xf82cc3(_0x48bf94,_0x422006,_0x44dc90);},'loVLn':function(_0x24bcee,_0x26373e){return _0x24bcee===_0x26373e;},'EzVlH':function(_0x8f9aa5){return _0x8f9aa5();}},_0xc3c8b3=[_0x164c7a[_0x3051b4(0x13f)],_0x164c7a['hurIZ'],_0x3051b4(0x17c)];_0x164c7a[_0x3051b4(0x190)](_0x3567f3,_0x164c7a['BQdLs'])&&_0xc3c8b3[_0x3051b4(0x152)]('--scope',_0x3567f3);const _0x5c8596=await _0x164c7a['rXYKW'](runCommand,_0x3051b4(0x18f),_0xc3c8b3,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x3567f3===_0x3051b4(0x162)||_0x164c7a[_0x3051b4(0x15d)](_0x3567f3,_0x3051b4(0x178))?_0x164c7a[_0x3051b4(0x160)](getProjectRoot):undefined});if(!_0x5c8596)throw new Error(_0x3051b4(0x166)+_0x3567f3+'\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}function _0x1c71(_0x35d48e,_0xa9357){_0x35d48e=_0x35d48e-0x13c;const _0x311751=_0x3117();let _0x1c7182=_0x311751[_0x35d48e];return _0x1c7182;}function isSkillInstalled(_0xb4c1,_0x251a56,_0x3d996e){const _0x3cb028=_0x5a0017,_0x36faeb={'YctCZ':'opencode','znWdw':function(_0x5d9e14,_0x2624cd){return _0x5d9e14(_0x2624cd);}},_0x5dea3f=_0x3d996e===_0x36faeb[_0x3cb028(0x18d)]?getOpencodeSkillsDir(_0x251a56):_0x36faeb['znWdw'](getSkillsDir,_0x251a56),_0x32b0ee=join(_0x5dea3f,_0xb4c1);return existsSync(_0x32b0ee);}async function reinstallSkills(_0x1e635e){const _0x30ee2f=_0x5a0017,_0x4fbeb7={'oWHtP':_0x30ee2f(0x162),'Crxeb':'user','Awqej':function(_0x1cb213,_0x3acb2e,_0x50b333,_0x3bacb5){return _0x1cb213(_0x3acb2e,_0x50b333,_0x3bacb5);},'KJHtP':_0x30ee2f(0x18f),'kOoKF':function(_0x265847,_0x15b5dd,_0x455594,_0xd796c3){return _0x265847(_0x15b5dd,_0x455594,_0xd796c3);},'BbblI':function(_0x46fabd,_0x5401a9,_0x45a9f7){return _0x46fabd(_0x5401a9,_0x45a9f7);}},_0x41b5a6=[_0x4fbeb7['oWHtP'],_0x4fbeb7[_0x30ee2f(0x169)]],_0x45656b=[];for(const _0x5b736a of _0x41b5a6){for(const _0x589536 of RANGER_MANAGED_SKILLS){_0x4fbeb7[_0x30ee2f(0x184)](isSkillInstalled,_0x589536,_0x5b736a,_0x4fbeb7[_0x30ee2f(0x15e)])&&_0x45656b['push']({'skillName':_0x589536,'level':_0x5b736a,'platform':_0x4fbeb7[_0x30ee2f(0x15e)]}),_0x4fbeb7['kOoKF'](isSkillInstalled,_0x589536,_0x5b736a,'opencode')&&_0x45656b['push']({'skillName':_0x589536,'level':_0x5b736a,'platform':_0x30ee2f(0x164)});}}for(const _0x495032 of _0x41b5a6){for(const _0x5ac968 of DEPRECATED_SKILLS){await _0x4fbeb7['BbblI'](removeSkill,_0x5ac968,_0x495032);}}if(_0x45656b['length']===0x0){console[_0x30ee2f(0x16a)]('\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.');return;}console[_0x30ee2f(0x16a)]('\x0aReinstalling\x20'+_0x45656b[_0x30ee2f(0x13d)]+'\x20ranger-managed\x20skill(s)...');for(const {skillName:_0x548dec,level:_0x2badb9,platform:_0x21b79d}of _0x45656b){try{await _0x4fbeb7['BbblI'](installSkill,_0x548dec,{'level':_0x2badb9,'cliVersion':_0x1e635e,'platform':_0x21b79d});}catch(_0x37bd95){console[_0x30ee2f(0x157)]('\x20\x20Failed\x20to\x20reinstall\x20'+_0x21b79d+'\x20'+_0x2badb9+'\x20skill\x20'+_0x548dec+':',_0x37bd95);}}}async function ensureActiveProfileGitignored(){const _0x8e2303=_0x5a0017,_0x1fa58e={'rfjMI':_0x8e2303(0x17b),'cumST':function(_0x497016,_0x45e9e5,_0x3e374f){return _0x497016(_0x45e9e5,_0x3e374f);},'zNisY':'utf-8','wKPbS':function(_0x2ce692,_0x50804){return _0x2ce692===_0x50804;},'mnLHR':function(_0x4c1641,_0x203a06,_0x321f8b,_0xa02c8){return _0x4c1641(_0x203a06,_0x321f8b,_0xa02c8);}},_0x3d63f7=join(getRangerDir(),_0x1fa58e[_0x8e2303(0x176)]);if(!existsSync(_0x3d63f7))return![];let _0x5264e2='';try{_0x5264e2=await _0x1fa58e['cumST'](readFile,_0x3d63f7,_0x1fa58e[_0x8e2303(0x15c)]);}catch{return![];}const _0x3c58e0=_0x5264e2[_0x8e2303(0x15b)](/\r?\n/);if(_0x3c58e0['some'](_0x4543b2=>_0x4543b2[_0x8e2303(0x145)]()==='active-profile.txt'))return![];let _0x50129c=_0x3c58e0[_0x8e2303(0x171)](_0x2083e4=>_0x2083e4[_0x8e2303(0x145)]()==='active-feature.txt');_0x1fa58e['wKPbS'](_0x50129c,-0x1)&&(_0x50129c=_0x3c58e0['length']);_0x3c58e0[_0x8e2303(0x155)](_0x50129c,0x0,_0x8e2303(0x182));let _0x583071=_0x3c58e0['join']('\x0a');!_0x583071['endsWith']('\x0a')&&(_0x583071+='\x0a');try{await _0x1fa58e['mnLHR'](writeFile,_0x3d63f7,_0x583071,_0x1fa58e['zNisY']);}catch{return![];}return!![];}export async function update(){const _0x456d61=_0x5a0017,_0x3f7778={'LKrtr':function(_0x13e505){return _0x13e505();},'vGpcV':function(_0x15d006,_0xc6fa6e){return _0x15d006(_0xc6fa6e);},'txrCJ':function(_0x4de2ec){return _0x4de2ec();},'zhwpp':function(_0x250812,_0x46ce76){return _0x250812+_0x46ce76;},'DCVKZ':function(_0x31cbb7,_0x381f9b){return _0x31cbb7(_0x381f9b);},'xUFWK':'Attempting\x20install\x20anyway...','ctLBp':function(_0x45b15b,_0x5a7a83){return _0x45b15b(_0x5a7a83);},'gbFBz':function(_0x55543b,_0x4767ca,_0x5a145d){return _0x55543b(_0x4767ca,_0x5a145d);},'kCKTZ':'\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','ZzhQl':function(_0x22bbf1,_0x150dcb){return _0x22bbf1(_0x150dcb);},'ZrvVu':_0x456d61(0x16f),'WJXIw':_0x456d61(0x17d),'EdKhM':'ranger@trailhead','dVasY':_0x456d61(0x156),'Dskte':function(_0xcf416b,_0x3a78e1){return _0xcf416b===_0x3a78e1;},'HnUsX':'local','gxmUL':_0x456d61(0x165),'AfhZW':function(_0x4a1f74){return _0x4a1f74();},'TcQTC':_0x456d61(0x192)},_0x3d9bd1=_0x3f7778['LKrtr'](getCurrentVersion);console[_0x456d61(0x16a)]('\x0aCurrent\x20version:\x20'+_0x3d9bd1);const _0x1fb122=resolveDistTag(_0x3d9bd1);if(_0x1fb122!=='latest'){console['log']('Prerelease\x20channel\x20detected\x20(@'+_0x1fb122+').\x20Staying\x20on\x20'+_0x1fb122+'\x20—\x20reinstalling\x20@'+_0x1fb122+'...');const _0xc82cad=await _0x3f7778[_0x456d61(0x188)](runInstall,_0x3d9bd1);if(!_0xc82cad)throw new Error(_0x456d61(0x16c)+_0x1fb122+'\x20channel.');const _0x110f4d=getCurrentVersion();console['log'](_0x456d61(0x18b)+PACKAGE_NAME+'@'+_0x1fb122+'.'),await reinstallSkills(_0x110f4d),await _0x3f7778['txrCJ'](ensureActiveProfileGitignored),console[_0x456d61(0x16a)]('\x0a✅\x20Update\x20complete!');return;}console['log']('Checking\x20for\x20updates...');const _0x4ac9f7=parseInt(_0x3d9bd1['split']('.')[0x0],0xa);if(!Number['isFinite'](_0x4ac9f7))throw new Error(_0x3f7778[_0x456d61(0x13c)](_0x456d61(0x14a)+_0x3d9bd1+_0x456d61(0x16e),_0x456d61(0x13e))+('npm\x20i\x20-g\x20'+PACKAGE_NAME+_0x456d61(0x14b)));const _0x42d874=_0x3f7778['DCVKZ'](getLatestVersion,_0x4ac9f7);let _0x2806f9=_0x3d9bd1;if(!_0x42d874['version']){console['warn'](_0x456d61(0x17f)+_0x42d874['error']),console[_0x456d61(0x16a)](_0x3f7778[_0x456d61(0x180)]);const _0x1eb9c1=await _0x3f7778['ctLBp'](runInstall,_0x3d9bd1);if(_0x1eb9c1)console[_0x456d61(0x16a)]('\x0aSuccessfully\x20installed\x20latest\x20version.'),_0x2806f9=_0x3f7778[_0x456d61(0x18a)](getCurrentVersion);else throw new Error(_0x456d61(0x142)+_0x42d874[_0x456d61(0x154)]);}else{const _0x1bf311=_0x42d874[_0x456d61(0x177)];console['log'](_0x456d61(0x193)+_0x1bf311);const _0x467c99=_0x3f7778['gbFBz'](compareVersions,_0x3d9bd1,_0x1bf311);if(_0x467c99===0x0)console[_0x456d61(0x16a)](_0x3f7778['kCKTZ']);else{if(_0x467c99<0x0)console[_0x456d61(0x16a)]('\x0aYour\x20version\x20('+_0x3d9bd1+')\x20is\x20newer\x20than\x20the\x20published\x20version\x20('+_0x1bf311+').');else{const _0x536e52=await _0x3f7778[_0x456d61(0x150)](runInstall,_0x3d9bd1);if(_0x536e52)console[_0x456d61(0x16a)]('\x0aSuccessfully\x20updated\x20to\x20version\x20'+_0x1bf311),_0x2806f9=_0x1bf311;else throw new Error(_0x3f7778[_0x456d61(0x14c)]);}}}await reinstallSkills(_0x2806f9);const _0x545d7d=await isMarketplaceAdded('trailhead'),_0x57be42=await _0x3f7778['ctLBp'](isPluginInstalled,'ranger@trailhead');_0x545d7d&&(await _0x3f7778[_0x456d61(0x148)](updateClaudeMarketplace),console[_0x456d61(0x16a)](_0x3f7778['WJXIw']));if(_0x57be42){const _0x4fec78=await _0x3f7778['ZzhQl'](getPluginInfo,_0x3f7778['EdKhM']),_0x49612b=_0x4fec78?.['scope']??_0x3f7778['dVasY'];await _0x3f7778['DCVKZ'](updateClaudePlugin,_0x49612b);if(_0x3f7778['Dskte'](_0x49612b,_0x456d61(0x162)))console['log']('\x0aClaude\x20plugin\x20updated\x20(project\x20scope).');else _0x49612b===_0x3f7778['HnUsX']?console[_0x456d61(0x16a)](_0x456d61(0x174)):console[_0x456d61(0x16a)](_0x3f7778[_0x456d61(0x14d)]);}const _0x25d610=await _0x3f7778[_0x456d61(0x185)](ensureActiveProfileGitignored);console[_0x456d61(0x16a)](_0x3f7778['TcQTC']);}
@@ -1 +1 @@
1
- (function(_0x6331f5,_0x49bfcd){const _0x1889f9=_0xc384,_0x57f0a2=_0x6331f5();while(!![]){try{const _0x5b34ca=parseInt(_0x1889f9(0xe0))/0x1+parseInt(_0x1889f9(0xf7))/0x2+-parseInt(_0x1889f9(0xd5))/0x3*(-parseInt(_0x1889f9(0xe5))/0x4)+parseInt(_0x1889f9(0xe9))/0x5*(-parseInt(_0x1889f9(0xdf))/0x6)+parseInt(_0x1889f9(0xf3))/0x7*(parseInt(_0x1889f9(0xdb))/0x8)+-parseInt(_0x1889f9(0xf6))/0x9*(parseInt(_0x1889f9(0xeb))/0xa)+-parseInt(_0x1889f9(0xe2))/0xb;if(_0x5b34ca===_0x49bfcd)break;else _0x57f0a2['push'](_0x57f0a2['shift']());}catch(_0x169584){_0x57f0a2['push'](_0x57f0a2['shift']());}}}(_0xb810,0xe0d8c));function _0xb810(){const _0x323ca2=['6840195eIYaHF','\x20\x20ranger\x20profile\x20add\x20','3431770DfnFhq','✓\x20Session\x20refreshed\x20for\x20\x22','VylNG','Profile\x20\x22','test_output','acASc','bbpwp','KDvni','1799rWKOjL','GBOrY','\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:','36uKMeVq','2952200APUmTj','\x22\x20via\x20server-side\x20login...','YMwPd','Refreshing\x20session\x20for\x20\x22','uCNvF','Run\x20`ranger\x20profile\x20update\x20','log','not_configured','domains','settings','55446vNKkCn','exEgB','`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).','wQEKi','error','exit','53824yXoqdj','NAHea','\x20\x20Server-side\x20login\x20error:\x20','\x20\x20Falling\x20back\x20to\x20headed\x20browser...','6RFCPDU','1706120uTHbPv','setupHeaders','21877647XoZuXj','status','No\x20profile\x20named\x20\x22','160RmkhaJ','tWHql','\x22\x20found.\x0a','FnYjp'];_0xb810=function(){return _0x323ca2;};return _0xb810();}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';function _0xc384(_0x12ed93,_0x379f88){_0x12ed93=_0x12ed93-0xd4;const _0xb81068=_0xb810();let _0xc384c2=_0xb81068[_0x12ed93];return _0xc384c2;}export async function updateEnv(_0x2d4957,_0x575e7e,_0x43396f){const _0x2d649b=_0xc384,_0x5ee08d={'tWHql':function(_0x5ad581){return _0x5ad581();},'zkeCe':'legacy','acASc':function(_0x7ef8e0,_0x362602){return _0x7ef8e0+_0x362602;},'FnYjp':function(_0x20816c,_0x435625){return _0x20816c+_0x435625;},'YMwPd':function(_0x501f25){return _0x501f25();},'wQEKi':function(_0x21f732,_0x50100e,_0x513b63){return _0x21f732(_0x50100e,_0x513b63);},'Lmkxw':function(_0x1d6a05,_0x21e7e9,_0x293db1){return _0x1d6a05(_0x21e7e9,_0x293db1);},'NAHea':function(_0x538e6e,_0x2f84a9){return _0x538e6e===_0x2f84a9;},'VylNG':_0x2d649b(0xfe),'uAmkS':'\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...','KDvni':_0x2d649b(0xf5),'GBOrY':_0x2d649b(0xde),'bbpwp':function(_0x4fc8a1,_0x56995b){return _0x4fc8a1 instanceof _0x56995b;},'tHhbb':function(_0x54d4c9,_0x59cae2){return _0x54d4c9(_0x59cae2);},'exEgB':function(_0x36789c,_0x506914,_0x4f0a62){return _0x36789c(_0x506914,_0x4f0a62);},'uCNvF':function(_0x598dd3,_0x2b9980){return _0x598dd3??_0x2b9980;}},_0x3dccc6=await fetchCloudProfile(_0x2d4957);if(!_0x3dccc6){const {envTypes:_0x59ae75}=await _0x5ee08d['tWHql'](getEnvNames),_0x34baeb=_0x59ae75[_0x2d4957];(_0x34baeb===_0x5ee08d['zkeCe']||_0x34baeb==='local'||_0x34baeb==='ci')&&(console[_0x2d649b(0xd9)](_0x5ee08d[_0x2d649b(0xf0)](_0x5ee08d['FnYjp'](_0x2d649b(0xee)+_0x2d4957+'\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a'),'\x0a')+('\x20\x20ranger\x20profile\x20add\x20'+_0x2d4957+'\x0a')),process['exit'](0x1));}!_0x3dccc6&&(console[_0x2d649b(0xd9)](_0x5ee08d['acASc'](_0x2d649b(0xe4)+_0x2d4957+_0x2d649b(0xe7)+'Create\x20it\x20with:\x0a'+'\x0a',_0x2d649b(0xea)+_0x2d4957+'\x0a')),process[_0x2d649b(0xda)](0x1));const _0x7b022f=await _0x5ee08d[_0x2d649b(0xf9)](fetchAuthConfig)['catch'](()=>null),_0x527f5f=_0x3dccc6['environmentKey']&&_0x7b022f?_0x5ee08d['wQEKi'](resolveAuthEnvironmentLocally,_0x7b022f,_0x3dccc6['environmentKey']):null;if(_0x3dccc6['environmentKey']&&_0x527f5f&&!_0x43396f?.['manual']){console['log'](_0x2d649b(0xfa)+_0x2d4957+_0x2d649b(0xf8));try{const _0x2a2e76=await _0x5ee08d['Lmkxw'](serverSideLogin,_0x2d4957,{'force':!![]});if(_0x5ee08d[_0x2d649b(0xdc)](_0x2a2e76[_0x2d649b(0xe3)],'success')){console['log'](_0x2d649b(0xec)+_0x2d4957+'\x22.');return;}_0x2a2e76[_0x2d649b(0xe3)]===_0x5ee08d[_0x2d649b(0xed)]?console['log'](_0x5ee08d['uAmkS']):(_0x2a2e76['test_output']&&(console['log'](_0x5ee08d[_0x2d649b(0xf2)]),console['log'](_0x2a2e76[_0x2d649b(0xef)])),console[_0x2d649b(0xfd)](_0x5ee08d[_0x2d649b(0xf4)]));}catch(_0x3f9f40){console['log'](_0x2d649b(0xdd)+(_0x5ee08d[_0x2d649b(0xf1)](_0x3f9f40,Error)?_0x3f9f40['message']:_0x5ee08d['tHhbb'](String,_0x3f9f40))),console[_0x2d649b(0xfd)](_0x5ee08d[_0x2d649b(0xf4)]);}}const _0x11c6ef=_0x5ee08d[_0x2d649b(0xd8)](readProfileOverrides,process['cwd'](),_0x2d4957),_0x4019f1=_0x5ee08d[_0x2d649b(0xd6)](mergeCloudProfileSettings,_0x3dccc6[_0x2d649b(0xd4)]??{},_0x5ee08d[_0x2d649b(0xfb)](_0x11c6ef,undefined)),_0x1abb99=_0x4019f1[_0x2d649b(0xe1)],_0x5ebdac=_0x4019f1['baseUrl'],_0x249a10=_0x527f5f?{..._0x527f5f,'domains':_0x5ebdac?[_0x5ebdac,..._0x527f5f[_0x2d649b(0xff)]]:_0x527f5f['domains'],'setupHeaders':_0x1abb99??_0x527f5f['setupHeaders']}:_0x5ebdac?{'key':_0x3dccc6['environmentKey']??'','domains':[_0x5ebdac],'setupHeaders':_0x1abb99}:null;!_0x249a10&&(console[_0x2d649b(0xd9)](_0x2d649b(0xee)+_0x2d4957+'\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a'+'Re-create\x20it\x20with:\x0a'+'\x0a'+('\x20\x20ranger\x20profile\x20add\x20'+_0x2d4957+'\x20--url\x20<your-app-url>\x0a')),process[_0x2d649b(0xda)](0x1)),!_0x5ee08d[_0x2d649b(0xe6)](isInteractive)&&(console['error'](_0x5ee08d[_0x2d649b(0xe8)]('Can\x27t\x20refresh\x20\x22'+_0x2d4957+'\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a',_0x2d649b(0xfc)+_0x2d4957+_0x2d649b(0xd7))),process['exit'](0x1)),console[_0x2d649b(0xfd)]('Capturing\x20a\x20fresh\x20session\x20for\x20\x22'+_0x2d4957+'\x22\x20via\x20headed\x20browser...'),await manualBrowserLogin(_0x3dccc6,_0x249a10),console['log']('✓\x20Session\x20refreshed\x20for\x20\x22'+_0x2d4957+'\x22.');}
1
+ (function(_0x5563ad,_0x32a4cd){const _0x40984b=_0x41ca,_0x3f7fb6=_0x5563ad();while(!![]){try{const _0x550084=-parseInt(_0x40984b(0x190))/0x1+-parseInt(_0x40984b(0x173))/0x2*(parseInt(_0x40984b(0x196))/0x3)+-parseInt(_0x40984b(0x170))/0x4*(parseInt(_0x40984b(0x195))/0x5)+-parseInt(_0x40984b(0x197))/0x6*(-parseInt(_0x40984b(0x184))/0x7)+parseInt(_0x40984b(0x16f))/0x8*(-parseInt(_0x40984b(0x175))/0x9)+-parseInt(_0x40984b(0x17d))/0xa*(-parseInt(_0x40984b(0x18a))/0xb)+parseInt(_0x40984b(0x18b))/0xc;if(_0x550084===_0x32a4cd)break;else _0x3f7fb6['push'](_0x3f7fb6['shift']());}catch(_0x246a7d){_0x3f7fb6['push'](_0x3f7fb6['shift']());}}}(_0x2bc6,0x2c718));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';function _0x41ca(_0x22961c,_0x3edaaa){_0x22961c=_0x22961c-0x16b;const _0x2bc60e=_0x2bc6();let _0x41caa6=_0x2bc60e[_0x22961c];return _0x41caa6;}function _0x2bc6(){const _0x2fac73=['294939PeRLvS','setupHeaders','\x20\x20ranger\x20profile\x20add\x20','Can\x27t\x20refresh\x20\x22','\x22\x20via\x20server-side\x20login...','local','wnkDS','NDLwV','40GeOfQi','\x20\x20Falling\x20back\x20to\x20headed\x20browser...','klNYl','`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).','Run\x20`ranger\x20profile\x20update\x20','hnnbG','status','14WZfKhk','\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:','log','exit','error','manual','447326cTCNnn','2842680VXeoqH','ZXNDG','Refreshing\x20session\x20for\x20\x22','domains','No\x20profile\x20named\x20\x22','92803iLpUby','message','rIoih','Create\x20it\x20with:\x0a','KcSIv','40HnBVGt','24hAYTRP','431532QkkbRh','\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a','settings','success','environmentKey','8RCLonG','91228LdGAwF','\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a','legacy','13332cMouED','KleqX'];_0x2bc6=function(){return _0x2fac73;};return _0x2bc6();}export async function updateEnv(_0x2b4d7b,_0x4e637f,_0x482335){const _0x58cd29=_0x41ca,_0xb5b298={'IxxGZ':_0x58cd29(0x172),'wnkDS':function(_0x490b00,_0x48d8f2){return _0x490b00===_0x48d8f2;},'ZXNDG':function(_0x4e72fd,_0x1ee808){return _0x4e72fd+_0x1ee808;},'rIoih':function(_0x7c01dd,_0x444eda){return _0x7c01dd+_0x444eda;},'KleqX':function(_0xc0471b,_0x4fd1f7,_0x36572b){return _0xc0471b(_0x4fd1f7,_0x36572b);},'hnnbG':'\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...','yIYKS':_0x58cd29(0x17e),'KcSIv':function(_0x2d1019,_0x333b5e,_0x3fcaac){return _0x2d1019(_0x333b5e,_0x3fcaac);},'NDLwV':function(_0x50c790,_0x5aaae9,_0x33660b){return _0x50c790(_0x5aaae9,_0x33660b);},'klNYl':function(_0x2fa719,_0x309160){return _0x2fa719??_0x309160;}},_0x245d5b=await fetchCloudProfile(_0x2b4d7b);if(!_0x245d5b){const {envTypes:_0x174754}=await getEnvNames(),_0x597454=_0x174754[_0x2b4d7b];(_0x597454===_0xb5b298['IxxGZ']||_0xb5b298[_0x58cd29(0x17b)](_0x597454,_0x58cd29(0x17a))||_0xb5b298['wnkDS'](_0x597454,'ci'))&&(console[_0x58cd29(0x188)](_0xb5b298[_0x58cd29(0x18c)](_0xb5b298[_0x58cd29(0x18c)](_0xb5b298[_0x58cd29(0x18c)]('Profile\x20\x22'+_0x2b4d7b+'\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a'),'\x0a'),_0x58cd29(0x177)+_0x2b4d7b+'\x0a')),process[_0x58cd29(0x187)](0x1));}!_0x245d5b&&(console['error'](_0xb5b298[_0x58cd29(0x192)](_0x58cd29(0x18f)+_0x2b4d7b+'\x22\x20found.\x0a'+_0x58cd29(0x193),'\x0a')+('\x20\x20ranger\x20profile\x20add\x20'+_0x2b4d7b+'\x0a')),process['exit'](0x1));const _0x568d87=await fetchAuthConfig()['catch'](()=>null),_0x4d3b5a=_0x245d5b['environmentKey']&&_0x568d87?_0xb5b298['KleqX'](resolveAuthEnvironmentLocally,_0x568d87,_0x245d5b['environmentKey']):null;if(_0x245d5b[_0x58cd29(0x16e)]&&_0x4d3b5a&&!_0x482335?.[_0x58cd29(0x189)]){console[_0x58cd29(0x186)](_0x58cd29(0x18d)+_0x2b4d7b+_0x58cd29(0x179));try{const _0x194886=await _0xb5b298[_0x58cd29(0x174)](serverSideLogin,_0x2b4d7b,{'force':!![]});if(_0xb5b298[_0x58cd29(0x17b)](_0x194886['status'],_0x58cd29(0x16d))){console['log']('✓\x20Session\x20refreshed\x20for\x20\x22'+_0x2b4d7b+'\x22.');return;}_0x194886[_0x58cd29(0x183)]==='not_configured'?console[_0x58cd29(0x186)](_0xb5b298[_0x58cd29(0x182)]):(_0x194886['test_output']&&(console[_0x58cd29(0x186)](_0x58cd29(0x185)),console[_0x58cd29(0x186)](_0x194886['test_output'])),console['log'](_0xb5b298['yIYKS']));}catch(_0x56b90f){console[_0x58cd29(0x186)]('\x20\x20Server-side\x20login\x20error:\x20'+(_0x56b90f instanceof Error?_0x56b90f[_0x58cd29(0x191)]:String(_0x56b90f))),console['log'](_0xb5b298['yIYKS']);}}const _0x17bc3f=_0xb5b298[_0x58cd29(0x194)](readProfileOverrides,process['cwd'](),_0x2b4d7b),_0x58a9ec=_0xb5b298[_0x58cd29(0x17c)](mergeCloudProfileSettings,_0x245d5b[_0x58cd29(0x16c)]??{},_0xb5b298[_0x58cd29(0x17f)](_0x17bc3f,undefined)),_0x5014e6=_0x58a9ec['setupHeaders'],_0x542a77=_0x58a9ec['baseUrl'],_0x3e1540=_0x4d3b5a?{..._0x4d3b5a,'domains':_0x542a77?[_0x542a77,..._0x4d3b5a[_0x58cd29(0x18e)]]:_0x4d3b5a['domains'],'setupHeaders':_0x5014e6??_0x4d3b5a[_0x58cd29(0x176)]}:_0x542a77?{'key':_0x245d5b[_0x58cd29(0x16e)]??'','domains':[_0x542a77],'setupHeaders':_0x5014e6}:null;!_0x3e1540&&(console[_0x58cd29(0x188)](_0xb5b298['ZXNDG']('Profile\x20\x22'+_0x2b4d7b+_0x58cd29(0x171),'Re-create\x20it\x20with:\x0a')+'\x0a'+('\x20\x20ranger\x20profile\x20add\x20'+_0x2b4d7b+'\x20--url\x20<your-app-url>\x0a')),process[_0x58cd29(0x187)](0x1)),!isInteractive()&&(console['error'](_0x58cd29(0x178)+_0x2b4d7b+_0x58cd29(0x16b)+(_0x58cd29(0x181)+_0x2b4d7b+_0x58cd29(0x180))),process[_0x58cd29(0x187)](0x1)),console[_0x58cd29(0x186)]('Capturing\x20a\x20fresh\x20session\x20for\x20\x22'+_0x2b4d7b+'\x22\x20via\x20headed\x20browser...'),await _0xb5b298['KleqX'](manualBrowserLogin,_0x245d5b,_0x3e1540),console['log']('✓\x20Session\x20refreshed\x20for\x20\x22'+_0x2b4d7b+'\x22.');}
@@ -1 +1 @@
1
- function _0x24e3(_0x5ce5d9,_0x1d99ad){_0x5ce5d9=_0x5ce5d9-0x1ad;const _0x3077c1=_0x3077();let _0x24e350=_0x3077c1[_0x5ce5d9];return _0x24e350;}(function(_0x4eaae2,_0x51f975){const _0x33bcdc=_0x24e3,_0x3e9fca=_0x4eaae2();while(!![]){try{const _0x28ed06=parseInt(_0x33bcdc(0x1ad))/0x1+parseInt(_0x33bcdc(0x1af))/0x2*(parseInt(_0x33bcdc(0x1ae))/0x3)+parseInt(_0x33bcdc(0x1b6))/0x4+parseInt(_0x33bcdc(0x1b3))/0x5+parseInt(_0x33bcdc(0x1b7))/0x6*(-parseInt(_0x33bcdc(0x1b5))/0x7)+-parseInt(_0x33bcdc(0x1b0))/0x8+parseInt(_0x33bcdc(0x1b4))/0x9;if(_0x28ed06===_0x51f975)break;else _0x3e9fca['push'](_0x3e9fca['shift']());}catch(_0x3419bf){_0x3e9fca['push'](_0x3e9fca['shift']());}}}(_0x3077,0x19d7c));import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';function _0x3077(){const _0x506d49=['2870WPWFAR','243924cYTnBv','426nrahrU','84812JkbYER','43596SoaZCp','4ElhqQa','1096064sciais','log','dHggi','42940zfEkZY','796725tFqUnz'];_0x3077=function(){return _0x506d49;};return _0x3077();}import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';export async function useEnv(_0x9d7944){const _0x2c38c=_0x24e3,_0x73bee={'cclMF':function(_0x50c7c8,_0x3001b7,_0x5510d0){return _0x50c7c8(_0x3001b7,_0x5510d0);},'fzRtb':'settings.json','lJgzG':function(_0x19aaf9,_0x2561ed){return _0x19aaf9(_0x2561ed);},'dHggi':function(_0x3ba53f,_0x245f75){return _0x3ba53f(_0x245f75);},'QrIWQ':function(_0x172f55,_0x2f6403){return _0x172f55(_0x2f6403);},'xikBY':function(_0xc040e0,_0x54cb51){return _0xc040e0 instanceof _0x54cb51;}},_0x3aa1b3=getEnvDir(_0x9d7944),_0x57e9af=_0x73bee['cclMF'](join,_0x3aa1b3,_0x73bee['fzRtb']),_0x59d522=_0x73bee['lJgzG'](existsSync,_0x3aa1b3)&&_0x73bee[_0x2c38c(0x1b2)](existsSync,_0x57e9af);if(_0x59d522){await _0x73bee['QrIWQ'](writeActiveProfileName,_0x9d7944),console[_0x2c38c(0x1b1)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x9d7944+'\x22');return;}let _0x9588ae=null,_0x33733a=![];try{_0x9588ae=await fetchCloudProfile(_0x9d7944);if(!_0x9588ae)_0x33733a=!![];}catch(_0x28eff8){_0x73bee['xikBY'](_0x28eff8,ApiError)&&_0x28eff8['status']===0x194&&(_0x33733a=!![]);}if(_0x33733a)throw new Error('Profile\x20\x22'+_0x9d7944+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20'+'Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'+('`ranger\x20profile\x20add\x20'+_0x9d7944+'`\x20to\x20create\x20one.'));await _0x73bee['dHggi'](writeActiveProfileName,_0x9d7944),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x9d7944+'\x22');}
1
+ (function(_0x4a2a04,_0x38ad1f){const _0x478499=_0x18eb,_0x3b327c=_0x4a2a04();while(!![]){try{const _0xd3fdb3=parseInt(_0x478499(0x92))/0x1*(parseInt(_0x478499(0x97))/0x2)+-parseInt(_0x478499(0x9c))/0x3*(-parseInt(_0x478499(0x9a))/0x4)+-parseInt(_0x478499(0x98))/0x5*(-parseInt(_0x478499(0x9d))/0x6)+parseInt(_0x478499(0xa3))/0x7+parseInt(_0x478499(0xa2))/0x8+-parseInt(_0x478499(0x93))/0x9+-parseInt(_0x478499(0xa1))/0xa;if(_0xd3fdb3===_0x38ad1f)break;else _0x3b327c['push'](_0x3b327c['shift']());}catch(_0x1b3cc5){_0x3b327c['push'](_0x3b327c['shift']());}}}(_0x4fd6,0x80e5a));import{join}from'path';function _0x18eb(_0x1d4f32,_0x3bfe64){_0x1d4f32=_0x1d4f32-0x92;const _0x4fd637=_0x4fd6();let _0x18ebab=_0x4fd637[_0x1d4f32];return _0x18ebab;}import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x4fd6(){const _0x5775b4=['\x0a✓\x20Now\x20using\x20profile\x20\x22','settings.json','6350PMGrkh','5rUteXr','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20','292BFKCNc','status','19581aHGfHv','414858FjqOUE','log','UsmGP','`\x20to\x20create\x20one.','14415550UAoxZQ','3300152mNUiBv','6715436evrdoG','FOKGW','vutPk','86qIycdC','1989126ksJTcE','jGjMG'];_0x4fd6=function(){return _0x5775b4;};return _0x4fd6();}export async function useEnv(_0x3df953){const _0x3dd176=_0x18eb,_0x27dbd3={'UsmGP':function(_0x106eda,_0x54e158){return _0x106eda(_0x54e158);},'jGjMG':function(_0x37fc95,_0x5dd591,_0x2e96c9){return _0x37fc95(_0x5dd591,_0x2e96c9);},'ycoZq':_0x3dd176(0x96),'vutPk':function(_0x4e3fa8,_0x26c647){return _0x4e3fa8(_0x26c647);},'FOKGW':function(_0x501726,_0x3236e2){return _0x501726(_0x3236e2);},'iQerD':function(_0x4077c6,_0x3ae1ed){return _0x4077c6(_0x3ae1ed);},'zAJaz':function(_0x4115ed,_0x10e7b6){return _0x4115ed===_0x10e7b6;},'xZOaF':function(_0x5c2c65,_0x358d51){return _0x5c2c65+_0x358d51;}},_0x114948=_0x27dbd3[_0x3dd176(0x9f)](getEnvDir,_0x3df953),_0x1c209f=_0x27dbd3[_0x3dd176(0x94)](join,_0x114948,_0x27dbd3['ycoZq']),_0x5b549d=_0x27dbd3[_0x3dd176(0xa5)](existsSync,_0x114948)&&_0x27dbd3['vutPk'](existsSync,_0x1c209f);if(_0x5b549d){await _0x27dbd3[_0x3dd176(0xa4)](writeActiveProfileName,_0x3df953),console[_0x3dd176(0x9e)](_0x3dd176(0x95)+_0x3df953+'\x22');return;}let _0x537f33=null,_0x12b3cb=![];try{_0x537f33=await _0x27dbd3['iQerD'](fetchCloudProfile,_0x3df953);if(!_0x537f33)_0x12b3cb=!![];}catch(_0x4454c8){_0x4454c8 instanceof ApiError&&_0x27dbd3['zAJaz'](_0x4454c8[_0x3dd176(0x9b)],0x194)&&(_0x12b3cb=!![]);}if(_0x12b3cb)throw new Error(_0x27dbd3['xZOaF'](_0x27dbd3['xZOaF']('Profile\x20\x22'+_0x3df953+_0x3dd176(0x99),'Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'),'`ranger\x20profile\x20add\x20'+_0x3df953+_0x3dd176(0xa0)));await _0x27dbd3['UsmGP'](writeActiveProfileName,_0x3df953),console[_0x3dd176(0x9e)](_0x3dd176(0x95)+_0x3df953+'\x22');}
@@ -1 +1 @@
1
- const _0x416414=_0x50d8;(function(_0x11f7f3,_0x4ef52f){const _0x542d6e=_0x50d8,_0x53c00a=_0x11f7f3();while(!![]){try{const _0x212d03=-parseInt(_0x542d6e(0x126))/0x1+-parseInt(_0x542d6e(0x12b))/0x2*(parseInt(_0x542d6e(0x134))/0x3)+parseInt(_0x542d6e(0x132))/0x4*(parseInt(_0x542d6e(0x131))/0x5)+parseInt(_0x542d6e(0x12d))/0x6+parseInt(_0x542d6e(0x12e))/0x7*(-parseInt(_0x542d6e(0x12a))/0x8)+parseInt(_0x542d6e(0x125))/0x9+parseInt(_0x542d6e(0x137))/0xa;if(_0x212d03===_0x4ef52f)break;else _0x53c00a['push'](_0x53c00a['shift']());}catch(_0x8dca1e){_0x53c00a['push'](_0x53c00a['shift']());}}}(_0x18e5,0x5a4ff));import{existsSync}from'fs';import{readFile}from'fs/promises';function _0x50d8(_0x28cc3f,_0xfaa0a9){_0x28cc3f=_0x28cc3f-0x125;const _0x18e5bb=_0x18e5();let _0x50d843=_0x18e5bb[_0x28cc3f];return _0x50d843;}import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';import{readLastProfile,writeLastProfile}from'./projectsConfig.js';const LEGACY_ACTIVE_PROFILE_FILE=_0x416414(0x133),LEGACY_ACTIVE_ENV_FILE='active-env.txt';function readLegacyActiveProfileFile(){const _0x46c1b1=_0x416414,_0x347986={'RFNQq':function(_0x7b7091){return _0x7b7091();},'fnoRk':function(_0x8c53b9){return _0x8c53b9();},'UEpIi':function(_0x16ab03){return _0x16ab03();},'dCZNz':function(_0x585307,_0x4588ec){return _0x585307(_0x4588ec);}},_0x5b2c60=[join(_0x347986['RFNQq'](getRangerDir),LEGACY_ACTIVE_PROFILE_FILE),join(_0x347986[_0x46c1b1(0x130)](getRangerHomeDir),LEGACY_ACTIVE_PROFILE_FILE),join(_0x347986[_0x46c1b1(0x129)](getRangerDir),LEGACY_ACTIVE_ENV_FILE),join(_0x347986['fnoRk'](getRangerHomeDir),LEGACY_ACTIVE_ENV_FILE)];for(const _0x352be8 of _0x5b2c60){if(_0x347986[_0x46c1b1(0x136)](existsSync,_0x352be8))return _0x352be8;}return null;}function _0x18e5(){const _0x294614=['utf-8','2950338HIKizT','14sOqEYl','cwd','fnoRk','55rODAAi','131344tmUjJS','active-profile.txt','1847247MtWSZJ','vpsYz','dCZNz','7687610sGvgNw','5528709NQpEnE','594631HSSWsU','LtfqL','SPPTc','UEpIi','2622728tGnPkM','2twqBLh'];_0x18e5=function(){return _0x294614;};return _0x18e5();}export async function readActiveProfileName(){const _0x260a9c=_0x416414,_0x3990c4={'vpsYz':function(_0x5e91e6,_0x24e447){return _0x5e91e6(_0x24e447);},'SPPTc':_0x260a9c(0x12c)},_0x1d84b5=_0x3990c4[_0x260a9c(0x135)](readLastProfile,process['cwd']());if(_0x1d84b5)return _0x1d84b5;const _0x716d65=readLegacyActiveProfileFile();if(!_0x716d65)return null;try{return(await readFile(_0x716d65,_0x3990c4[_0x260a9c(0x128)]))['trim']()||null;}catch{return null;}}export async function writeActiveProfileName(_0x321d17){const _0x57fcf9=_0x416414,_0x20c121={'LtfqL':function(_0x1cdf9e,_0x31011c,_0x17fb36){return _0x1cdf9e(_0x31011c,_0x17fb36);}};_0x20c121[_0x57fcf9(0x127)](writeLastProfile,process[_0x57fcf9(0x12f)](),_0x321d17);}
1
+ function _0x2d0f(_0x522f8a,_0x1cdbd7){_0x522f8a=_0x522f8a-0x106;const _0x32a545=_0x32a5();let _0x2d0f3b=_0x32a545[_0x522f8a];return _0x2d0f3b;}(function(_0x2bfd23,_0x33ed5b){const _0x2b8873=_0x2d0f,_0x1f9c99=_0x2bfd23();while(!![]){try{const _0x35dc29=parseInt(_0x2b8873(0x10e))/0x1+parseInt(_0x2b8873(0x106))/0x2*(-parseInt(_0x2b8873(0x10b))/0x3)+parseInt(_0x2b8873(0x114))/0x4+parseInt(_0x2b8873(0x110))/0x5*(parseInt(_0x2b8873(0x10c))/0x6)+parseInt(_0x2b8873(0x107))/0x7+-parseInt(_0x2b8873(0x10d))/0x8+parseInt(_0x2b8873(0x113))/0x9*(parseInt(_0x2b8873(0x10f))/0xa);if(_0x35dc29===_0x33ed5b)break;else _0x1f9c99['push'](_0x1f9c99['shift']());}catch(_0x2eb09f){_0x1f9c99['push'](_0x1f9c99['shift']());}}}(_0x32a5,0x5e922));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';function _0x32a5(){const _0x3fc28f=['vkmjy','326vBoeaD','3342052IZirjZ','LPsux','yCBzw','trim','4731kpiysd','340986hADufw','4162368QWFFZX','42154kplSQL','257990uMPkSF','15Ivxnki','cwd','cwszD','153LQCqLD','144172VLCMWo'];_0x32a5=function(){return _0x3fc28f;};return _0x32a5();}const LEGACY_ACTIVE_PROFILE_FILE='active-profile.txt',LEGACY_ACTIVE_ENV_FILE='active-env.txt';function readLegacyActiveProfileFile(){const _0xb12fe8=_0x2d0f,_0x4f9d9c={'yCBzw':function(_0x1c4938){return _0x1c4938();},'RUWZh':function(_0x26263d){return _0x26263d();},'vkmjy':function(_0x1aefc2,_0x9e4f7c){return _0x1aefc2(_0x9e4f7c);}},_0x45ba8c=[join(_0x4f9d9c[_0xb12fe8(0x109)](getRangerDir),LEGACY_ACTIVE_PROFILE_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_PROFILE_FILE),join(_0x4f9d9c[_0xb12fe8(0x109)](getRangerDir),LEGACY_ACTIVE_ENV_FILE),join(_0x4f9d9c['RUWZh'](getRangerHomeDir),LEGACY_ACTIVE_ENV_FILE)];for(const _0x4bb319 of _0x45ba8c){if(_0x4f9d9c[_0xb12fe8(0x115)](existsSync,_0x4bb319))return _0x4bb319;}return null;}export async function readActiveProfileName(){const _0x422729=_0x2d0f,_0x337d2e={'FpEpW':function(_0x466d4a,_0x402649){return _0x466d4a(_0x402649);},'cwszD':function(_0x5624fd){return _0x5624fd();},'LPsux':'utf-8'},_0x17f086=_0x337d2e['FpEpW'](readLastProfile,process[_0x422729(0x111)]());if(_0x17f086)return _0x17f086;const _0x1dd434=_0x337d2e[_0x422729(0x112)](readLegacyActiveProfileFile);if(!_0x1dd434)return null;try{return(await readFile(_0x1dd434,_0x337d2e[_0x422729(0x108)]))[_0x422729(0x10a)]()||null;}catch{return null;}}export async function writeActiveProfileName(_0x402a78){const _0x2b6db9=_0x2d0f,_0x4edeb6={'RpxqT':function(_0x3c930c,_0x4b8a3e,_0x2c3280){return _0x3c930c(_0x4b8a3e,_0x2c3280);}};_0x4edeb6['RpxqT'](writeLastProfile,process[_0x2b6db9(0x111)](),_0x402a78);}
@@ -1 +1 @@
1
- const _0x303fef=_0x3cfc;(function(_0x26a05b,_0x1fffc7){const _0x5e0252=_0x3cfc,_0x4a7c05=_0x26a05b();while(!![]){try{const _0x23a6d2=parseInt(_0x5e0252(0xdd))/0x1*(-parseInt(_0x5e0252(0x100))/0x2)+parseInt(_0x5e0252(0xd6))/0x3+-parseInt(_0x5e0252(0x10b))/0x4+parseInt(_0x5e0252(0xf0))/0x5*(-parseInt(_0x5e0252(0x103))/0x6)+parseInt(_0x5e0252(0xfc))/0x7*(parseInt(_0x5e0252(0xf5))/0x8)+-parseInt(_0x5e0252(0xf6))/0x9*(-parseInt(_0x5e0252(0x111))/0xa)+-parseInt(_0x5e0252(0x10d))/0xb*(-parseInt(_0x5e0252(0x105))/0xc);if(_0x23a6d2===_0x1fffc7)break;else _0x4a7c05['push'](_0x4a7c05['shift']());}catch(_0x444cb5){_0x4a7c05['push'](_0x4a7c05['shift']());}}}(_0x2c5f,0x47dc7));function _0x3cfc(_0x1f924c,_0x5b28aa){_0x1f924c=_0x1f924c-0xd3;const _0x2c5f7d=_0x2c5f();let _0x3cfc77=_0x2c5f7d[_0x1f924c];return _0x3cfc77;}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=_0x303fef(0xe0),AGENT_ENV_PASSTHROUGH_KEYS=[_0x303fef(0x102),_0x303fef(0xfb),_0x303fef(0xed),_0x303fef(0xf8),_0x303fef(0x112),'USERPROFILE',_0x303fef(0x107),'LOCALAPPDATA',_0x303fef(0x110),'XDG_CONFIG_HOME',_0x303fef(0xe7),_0x303fef(0xf7),'CHROME_BIN','CHROMIUM_BIN','npm_config_cache',_0x303fef(0xf3),_0x303fef(0x11a),'NPM_CONFIG_USERCONFIG',_0x303fef(0x118),_0x303fef(0x115),_0x303fef(0xec),_0x303fef(0xe9),'DEBUG',_0x303fef(0xd9),'RANGER_TEST_SKIP_BROWSER_WAIT','RANGER_TRANSPORT',_0x303fef(0xe3),_0x303fef(0xef),'RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS',_0x303fef(0xe5),'AWS_PROFILE',_0x303fef(0x109),_0x303fef(0xda),_0x303fef(0xff),'AWS_SHARED_CREDENTIALS_FILE',_0x303fef(0xf1),'AWS_SECRET_ACCESS_KEY',_0x303fef(0x104),'AWS_SDK_LOAD_CONFIG','AWS_WEB_IDENTITY_TOKEN_FILE','AWS_ROLE_ARN',_0x303fef(0xee),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=['${PATH}',_0x303fef(0xf9),'%PATH%'];function _0x2c5f(){const _0x4edc71=['NPM_CONFIG_REGISTRY','some','length','npm_config_registry','TMPDIR','AWS_ROLE_SESSION_NAME','RANGERWRIGHT_CLICK_TIMEOUT_MS','55385KALDiA','AWS_ACCESS_KEY_ID','PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','NPM_CONFIG_CACHE','env','8ddmPUm','9GBcBqW','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','TMP','$PATH','true','HOME','904421NLQRfE','from','entries','AWS_CONFIG_FILE','2oqnHtm','string','PATH','114qXqDYf','AWS_SESSION_TOKEN','6481224dCihAL','metadata','APPDATA','QPwjl','AWS_REGION','includes','2110008PSBFpm','toLowerCase','11eIIoiV','PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','byokEnabled','XDG_CACHE_HOME','266860WbJsdE','TEMP','filter','/bin','NPM_CONFIG_PREFIX','slice','/usr/bin','npm_config_prefix','platform','npm_config_userconfig','ueOEX','join','kGjJz','1652010IcqDyy','set','x-ranger-','NODE_ENV','AWS_DEFAULT_REGION','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','sessionToken','214353bdHbht','split','QWYdU','ANTHROPIC_CUSTOM_HEADERS','map','win32','RANGERWRIGHT_DAEMON_START_TIMEOUT_MS','fromEntries','NOVA_ACT_API_KEY','indexOf','PLAYWRIGHT_BROWSERS_PATH','push'];_0x2c5f=function(){return _0x4edc71;};return _0x2c5f();}function parseCustomHeaders(_0xde06b1){const _0x5bfc05=_0x303fef;if(!_0xde06b1)return[];return _0xde06b1[_0x5bfc05(0xde)](/\r?\n/)['map'](_0x2b237d=>_0x2b237d['trim']())['filter'](Boolean)[_0x5bfc05(0xe1)](_0x3085eb=>{const _0xa2f041=_0x5bfc05,_0x3c8053=_0x3085eb[_0xa2f041(0xe6)](':');if(_0x3c8053===-0x1)return null;const _0x41cb62=_0x3085eb['slice'](0x0,_0x3c8053)['trim'](),_0x1df3bd=_0x3085eb[_0xa2f041(0x116)](_0x3c8053+0x1)['trim']();if(!_0x41cb62)return null;return[_0x41cb62,_0x1df3bd];})[_0x5bfc05(0x113)](_0x5aed17=>_0x5aed17!==null);}export function getAgentPathHealthWarning(_0x4ac008,_0x2fecb4=process[_0x303fef(0x119)]){const _0x357787=_0x303fef,_0x240348={'yNiSi':_0x357787(0xf2),'kGjJz':function(_0x4484c1,_0x10caf4){return _0x4484c1!==_0x10caf4;}},_0x16af0c=[],_0x497e14=(_0x4ac008||'')['split'](delimiter)['filter'](Boolean);_0x497e14[_0x357787(0xeb)]===0x0&&_0x16af0c['push'](_0x240348['yNiSi']);UNEXPANDED_PATH_TOKEN_PATTERNS[_0x357787(0xea)](_0x27ee1c=>(_0x4ac008||'')['includes'](_0x27ee1c))&&_0x16af0c[_0x357787(0xe8)](_0x357787(0x10e));if(_0x240348[_0x357787(0xd5)](_0x2fecb4,_0x357787(0xe2))){const _0x43d75c=_0x497e14['includes'](_0x357787(0x117)),_0x520a1e=_0x497e14[_0x357787(0x10a)](_0x357787(0x114));!_0x43d75c&&!_0x520a1e&&_0x16af0c[_0x357787(0xe8)](_0x357787(0xdb));}if(_0x16af0c[_0x357787(0xeb)]===0x0)return null;return{'summary':'Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','issues':_0x16af0c};}export function buildAgentEnv(_0x41e8f6){const _0x1f8901=_0x303fef,_0xb395d5={'ENWMO':'TMPDIR','kNdfz':'TEMP','QWYdU':function(_0x528a1c,_0x4e721c,_0xa43569){return _0x528a1c(_0x4e721c,_0xa43569);},'QCxEq':function(_0x2d8cd9){return _0x2d8cd9();},'ueOEX':'ranger-claude-tmp','yoeTj':function(_0x47a465,_0x1a1372){return _0x47a465==_0x1a1372;},'QPwjl':function(_0x29ef78,_0x362d0a){return _0x29ef78===_0x362d0a;}};if(_0x41e8f6[_0x1f8901(0x10f)])return Object[_0x1f8901(0xe4)](Object[_0x1f8901(0xfe)](process[_0x1f8901(0xf4)])[_0x1f8901(0x113)](_0x1ccb03=>typeof _0x1ccb03[0x1]===_0x1f8901(0x101)));if(!_0x41e8f6[_0x1f8901(0xdc)])throw new Error('Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false');const _0x3d49d2={'ANTHROPIC_API_KEY':_0x41e8f6['sessionToken'],'ANTHROPIC_BASE_URL':getAiProxyUrl(),'DISABLE_TELEMETRY':_0x1f8901(0xfa)};for(const _0x424c8e of AGENT_ENV_PASSTHROUGH_KEYS){const _0x16f2cf=process[_0x1f8901(0xf4)][_0x424c8e];_0x16f2cf&&![_0xb395d5['ENWMO'],'TMP',_0xb395d5['kNdfz']]['includes'](_0x424c8e)&&(_0x3d49d2[_0x424c8e]=_0x16f2cf);}const _0x4c9d31=_0xb395d5[_0x1f8901(0xdf)](join,_0xb395d5['QCxEq'](tmpdir),_0xb395d5[_0x1f8901(0xd3)]);try{mkdirSync(_0x4c9d31,{'recursive':!![]});}catch{}_0x3d49d2[_0x1f8901(0xed)]=_0x4c9d31,_0x3d49d2['TMP']=_0x4c9d31,_0x3d49d2['TEMP']=_0x4c9d31;const _0x101e44=parseCustomHeaders(process[_0x1f8901(0xf4)][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x4b7435=new Map(_0x101e44),_0x1453cd=new Set(_0x101e44[_0x1f8901(0xe1)](([_0x21a325])=>_0x21a325['toLowerCase']()));if(_0x41e8f6[_0x1f8901(0x106)])for(const [_0x525ecc,_0x9b599f]of Object[_0x1f8901(0xfe)](_0x41e8f6['metadata'])){if(_0xb395d5['yoeTj'](_0x9b599f,null)||_0xb395d5[_0x1f8901(0x108)](_0x9b599f,''))continue;const _0xe999a8=_0x1f8901(0xd8)+_0x525ecc;!_0x1453cd['has'](_0xe999a8['toLowerCase']())&&(_0x4b7435[_0x1f8901(0xd7)](_0xe999a8,_0x9b599f),_0x1453cd['add'](_0xe999a8[_0x1f8901(0x10c)]()));}const _0x36e58e=Array[_0x1f8901(0xfd)](_0x4b7435[_0x1f8901(0xfe)]())[_0x1f8901(0xe1)](([_0x2feb35,_0x5bc393])=>_0x2feb35+':\x20'+_0x5bc393)[_0x1f8901(0xd4)]('\x0a');return _0x36e58e&&(_0x3d49d2[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x36e58e),_0x3d49d2;}
1
+ const _0x5e1fee=_0x4635;(function(_0x1992d7,_0x3937dc){const _0x5af37e=_0x4635,_0x277f07=_0x1992d7();while(!![]){try{const _0x5407d5=-parseInt(_0x5af37e(0x185))/0x1*(-parseInt(_0x5af37e(0x19b))/0x2)+-parseInt(_0x5af37e(0x1a4))/0x3+-parseInt(_0x5af37e(0x1aa))/0x4+parseInt(_0x5af37e(0x17b))/0x5+-parseInt(_0x5af37e(0x189))/0x6*(-parseInt(_0x5af37e(0x198))/0x7)+-parseInt(_0x5af37e(0x1b7))/0x8+-parseInt(_0x5af37e(0x17f))/0x9;if(_0x5407d5===_0x3937dc)break;else _0x277f07['push'](_0x277f07['shift']());}catch(_0x2cf11a){_0x277f07['push'](_0x277f07['shift']());}}}(_0x59e0,0xbc047));function _0x4635(_0x501ea0,_0x285fa2){_0x501ea0=_0x501ea0-0x177;const _0x59e0e9=_0x59e0();let _0x46358f=_0x59e0e9[_0x501ea0];return _0x46358f;}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=_0x5e1fee(0x192),AGENT_ENV_PASSTHROUGH_KEYS=[_0x5e1fee(0x187),'HOME',_0x5e1fee(0x17c),'TMP','TEMP',_0x5e1fee(0x1b0),_0x5e1fee(0x18c),'LOCALAPPDATA','XDG_CACHE_HOME',_0x5e1fee(0x1a5),_0x5e1fee(0x188),_0x5e1fee(0x196),'CHROME_BIN',_0x5e1fee(0x197),'npm_config_cache','NPM_CONFIG_CACHE',_0x5e1fee(0x1b2),_0x5e1fee(0x1ae),_0x5e1fee(0x19c),_0x5e1fee(0x186),_0x5e1fee(0x1b1),'NPM_CONFIG_REGISTRY','DEBUG',_0x5e1fee(0x183),'RANGER_TEST_SKIP_BROWSER_WAIT',_0x5e1fee(0x1af),'RANGERWRIGHT_DAEMON_START_TIMEOUT_MS',_0x5e1fee(0x18e),_0x5e1fee(0x177),'NOVA_ACT_API_KEY','AWS_PROFILE',_0x5e1fee(0x17e),'AWS_DEFAULT_REGION','AWS_CONFIG_FILE',_0x5e1fee(0x190),'AWS_ACCESS_KEY_ID',_0x5e1fee(0x1a7),'AWS_SESSION_TOKEN',_0x5e1fee(0x1a8),_0x5e1fee(0x1a6),_0x5e1fee(0x18b),_0x5e1fee(0x1ac),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=['${PATH}',_0x5e1fee(0x1b3),_0x5e1fee(0x18d)];function parseCustomHeaders(_0x44d297){const _0x5980a2=_0x5e1fee,_0x364000={'TjaTL':function(_0x3a1c09,_0x52e41d){return _0x3a1c09===_0x52e41d;}};if(!_0x44d297)return[];return _0x44d297['split'](/\r?\n/)[_0x5980a2(0x178)](_0xe3ccca=>_0xe3ccca[_0x5980a2(0x1b9)]())['filter'](Boolean)[_0x5980a2(0x178)](_0x2b33cc=>{const _0x43e0bd=_0x5980a2,_0x3a3af6=_0x2b33cc[_0x43e0bd(0x19d)](':');if(_0x364000['TjaTL'](_0x3a3af6,-0x1))return null;const _0x4506e6=_0x2b33cc[_0x43e0bd(0x1a0)](0x0,_0x3a3af6)[_0x43e0bd(0x1b9)](),_0x4d9e0d=_0x2b33cc[_0x43e0bd(0x1a0)](_0x3a3af6+0x1)[_0x43e0bd(0x1b9)]();if(!_0x4506e6)return null;return[_0x4506e6,_0x4d9e0d];})[_0x5980a2(0x193)](_0x4950e7=>_0x4950e7!==null);}function _0x59e0(){const _0x44a050=['6TvdRHo','toLowerCase','AWS_ROLE_ARN','APPDATA','%PATH%','RANGERWRIGHT_CLICK_TIMEOUT_MS','has','AWS_SHARED_CREDENTIALS_FILE','string','ANTHROPIC_CUSTOM_HEADERS','filter','/usr/bin','includes','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','CHROMIUM_BIN','7101661uQyUjt','byokEnabled','Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','1322LQZzPV','npm_config_prefix','indexOf','metadata','Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','slice','split','jyXNx','TMP','1573071MxcyZO','XDG_CONFIG_HOME','AWS_WEB_IDENTITY_TOKEN_FILE','AWS_SECRET_ACCESS_KEY','AWS_SDK_LOAD_CONFIG','length','4448272cKMgfu','TEMP','AWS_ROLE_SESSION_NAME','push','NPM_CONFIG_USERCONFIG','RANGER_TRANSPORT','USERPROFILE','npm_config_registry','npm_config_userconfig','$PATH','true','add','xmbdq','2388080ngGPrG','aMxmo','trim','RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS','map','set','win32','7196100lvrAhB','TMPDIR','gXliL','AWS_REGION','1575306CQFVjG','entries','TWDCS','GIiLB','NODE_ENV','TxsCa','645ZYgNjY','NPM_CONFIG_PREFIX','PATH','PLAYWRIGHT_BROWSERS_PATH'];_0x59e0=function(){return _0x44a050;};return _0x59e0();}export function getAgentPathHealthWarning(_0x5a571a,_0x15c5d8=process['platform']){const _0x277fe9=_0x5e1fee,_0x1b6e85={'xmbdq':function(_0xb59062,_0x13c7ee){return _0xb59062||_0x13c7ee;},'aMxmo':'PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','HKMRo':'PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','GIiLB':_0x277fe9(0x194),'vszHg':function(_0x5c8ac4,_0x2ca9ad){return _0x5c8ac4===_0x2ca9ad;}},_0x221a01=[],_0x1f330e=_0x1b6e85[_0x277fe9(0x1b6)](_0x5a571a,'')[_0x277fe9(0x1a1)](delimiter)['filter'](Boolean);_0x1f330e['length']===0x0&&_0x221a01[_0x277fe9(0x1ad)](_0x1b6e85[_0x277fe9(0x1b8)]);UNEXPANDED_PATH_TOKEN_PATTERNS['some'](_0x323937=>(_0x5a571a||'')[_0x277fe9(0x195)](_0x323937))&&_0x221a01[_0x277fe9(0x1ad)](_0x1b6e85['HKMRo']);if(_0x15c5d8!==_0x277fe9(0x17a)){const _0x2f81b4=_0x1f330e['includes'](_0x1b6e85[_0x277fe9(0x182)]),_0x216a6a=_0x1f330e[_0x277fe9(0x195)]('/bin');!_0x2f81b4&&!_0x216a6a&&_0x221a01['push']('PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.');}if(_0x1b6e85['vszHg'](_0x221a01[_0x277fe9(0x1a9)],0x0))return null;return{'summary':_0x277fe9(0x19a),'issues':_0x221a01};}export function buildAgentEnv(_0x251988){const _0x3e0e07=_0x5e1fee,_0x4b6c85={'TxsCa':_0x3e0e07(0x19f),'RyZtM':function(_0xcbb8fc){return _0xcbb8fc();},'jyXNx':_0x3e0e07(0x1b4),'zbWXP':'TMP','gXliL':function(_0x580501){return _0x580501();},'gpxkr':'TEMP','WtzPc':function(_0x486221,_0x299dea){return _0x486221(_0x299dea);},'TWDCS':function(_0x3469c7,_0x304e08){return _0x3469c7===_0x304e08;}};if(_0x251988[_0x3e0e07(0x199)])return Object['fromEntries'](Object[_0x3e0e07(0x180)](process['env'])[_0x3e0e07(0x193)](_0x27d5e9=>typeof _0x27d5e9[0x1]===_0x3e0e07(0x191)));if(!_0x251988['sessionToken'])throw new Error(_0x4b6c85[_0x3e0e07(0x184)]);const _0x4b468f={'ANTHROPIC_API_KEY':_0x251988['sessionToken'],'ANTHROPIC_BASE_URL':_0x4b6c85['RyZtM'](getAiProxyUrl),'DISABLE_TELEMETRY':_0x4b6c85[_0x3e0e07(0x1a2)]};for(const _0x3e08d7 of AGENT_ENV_PASSTHROUGH_KEYS){const _0x12dd1d=process['env'][_0x3e08d7];_0x12dd1d&&![_0x3e0e07(0x17c),_0x4b6c85['zbWXP'],_0x3e0e07(0x1ab)][_0x3e0e07(0x195)](_0x3e08d7)&&(_0x4b468f[_0x3e08d7]=_0x12dd1d);}const _0x44a7dc=join(_0x4b6c85[_0x3e0e07(0x17d)](tmpdir),'ranger-claude-tmp');try{mkdirSync(_0x44a7dc,{'recursive':!![]});}catch{}_0x4b468f[_0x3e0e07(0x17c)]=_0x44a7dc,_0x4b468f[_0x3e0e07(0x1a3)]=_0x44a7dc,_0x4b468f[_0x4b6c85['gpxkr']]=_0x44a7dc;const _0x126084=_0x4b6c85['WtzPc'](parseCustomHeaders,process['env'][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x4c91ad=new Map(_0x126084),_0x10a536=new Set(_0x126084[_0x3e0e07(0x178)](([_0x46cffd])=>_0x46cffd['toLowerCase']()));if(_0x251988[_0x3e0e07(0x19e)])for(const [_0x304437,_0x3d2cf9]of Object['entries'](_0x251988['metadata'])){if(_0x3d2cf9==null||_0x4b6c85[_0x3e0e07(0x181)](_0x3d2cf9,''))continue;const _0x2b607a='x-ranger-'+_0x304437;!_0x10a536[_0x3e0e07(0x18f)](_0x2b607a[_0x3e0e07(0x18a)]())&&(_0x4c91ad[_0x3e0e07(0x179)](_0x2b607a,_0x3d2cf9),_0x10a536[_0x3e0e07(0x1b5)](_0x2b607a[_0x3e0e07(0x18a)]()));}const _0x28105a=Array['from'](_0x4c91ad['entries']())[_0x3e0e07(0x178)](([_0x39690c,_0xc6bb4e])=>_0x39690c+':\x20'+_0xc6bb4e)['join']('\x0a');return _0x28105a&&(_0x4b468f[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x28105a),_0x4b468f;}
@@ -1 +1 @@
1
- (function(_0x349337,_0x4922f8){const _0x366f03=_0x4751,_0x44bf1b=_0x349337();while(!![]){try{const _0xb543f6=-parseInt(_0x366f03(0x1d5))/0x1+parseInt(_0x366f03(0x1ca))/0x2*(parseInt(_0x366f03(0x1e2))/0x3)+-parseInt(_0x366f03(0x207))/0x4+-parseInt(_0x366f03(0x1fb))/0x5+parseInt(_0x366f03(0x20c))/0x6*(-parseInt(_0x366f03(0x1c5))/0x7)+-parseInt(_0x366f03(0x217))/0x8*(parseInt(_0x366f03(0x232))/0x9)+parseInt(_0x366f03(0x206))/0xa;if(_0xb543f6===_0x4922f8)break;else _0x44bf1b['push'](_0x44bf1b['shift']());}catch(_0x119ded){_0x44bf1b['push'](_0x44bf1b['shift']());}}}(_0x3a11,0xef44d));const _0x551134=(function(){const _0x444adc=_0x4751,_0x34e9df={'aKVoy':_0x444adc(0x1db),'zCdFE':_0x444adc(0x201),'KNejR':'JzeXh','EiqHg':function(_0xb2d157,_0x175708,_0x2ecc88,_0x202a2f){return _0xb2d157(_0x175708,_0x2ecc88,_0x202a2f);},'QViXw':function(_0x56d0b3,_0x3e2a62){return _0x56d0b3===_0x3e2a62;},'SHEVQ':_0x444adc(0x20e)};let _0x1fce1e=!![];return function(_0x59c9b4,_0x5672de){const _0xcd1286=_0x444adc,_0x59365e={'UKkNn':_0x34e9df['aKVoy'],'GIzJC':function(_0x3a2f19,_0x4269f5){return _0x3a2f19!==_0x4269f5;},'syDFV':_0x34e9df['zCdFE'],'DRgvS':_0x34e9df[_0xcd1286(0x231)],'PDbuN':function(_0x47f604,_0x5f4a75,_0x30e4b2,_0x170942){const _0x445665=_0xcd1286;return _0x34e9df[_0x445665(0x1f0)](_0x47f604,_0x5f4a75,_0x30e4b2,_0x170942);}};if(_0x34e9df[_0xcd1286(0x22d)](_0x34e9df[_0xcd1286(0x22b)],_0x34e9df[_0xcd1286(0x22b)])){const _0x48d659=_0x1fce1e?function(){const _0x680551=_0xcd1286;if(_0x5672de){if(_0x59365e[_0x680551(0x1de)](_0x59365e[_0x680551(0x1f5)],_0x59365e[_0x680551(0x235)])){const _0x4e4646=_0x5672de[_0x680551(0x233)](_0x59c9b4,arguments);return _0x5672de=null,_0x4e4646;}else throw new _0x457015(_0x59365e['UKkNn']);}}:function(){};return _0x1fce1e=![],_0x48d659;}else return _0x59365e[_0xcd1286(0x1f6)](_0x10b951,_0x562f6c,_0x528402,_0xcd1286(0x219));};}()),_0x4da89a=_0x551134(this,function(){const _0x29ef74=_0x4751,_0x3f7ea6={'cuxPt':_0x29ef74(0x225)};return _0x4da89a[_0x29ef74(0x1d3)]()[_0x29ef74(0x223)](_0x3f7ea6['cuxPt'])[_0x29ef74(0x1d3)]()['constructor'](_0x4da89a)[_0x29ef74(0x223)](_0x3f7ea6[_0x29ef74(0x1dc)]);});function _0x3a11(){const _0x46674b=['DxDKDMK','zgLNzxn0','ntuZmdm3meDiBfz1qW','q2f1vLu','l3n0zxbZlW','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','DKnoBLO','C2rjwfC','C1jtwfi','yxbWBgLJyxrPB24VEMLW','y3DnDeC','Dgv4Da','vw1JCLa','nJGYodqWmtbLq0zeCwO','mZa4nteYmgvmAvrVrW','EMLLEhe','qNL4Cvy','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','EuvOwMG','mZi4ogvqCLHHqq','qMvHCMvYia','BNvpy1u','AwHmCLO','Bwv0ywrHDge','uMnfs2K','zw52AxjVBM1LBNroyw1L','Bwq1','tvrTD2C','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','ue9tva','mJe5ntuYogfWtgnADa','BgvUz3rO','DMLKzw8VD2vIBq','l3n0zxbZ','C2v0DgLUz3m','wwTWwvC','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','BvDLq3m','y29UC3rYDwn0B3i','C3v5q0G','twryr0i','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','C2vHCMnO','DxjS','kcGOlISPkYKRksSK','C2L6zq','r0vu','CejeC3K','vxfWu2y','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','u0HfvLe','vvnpC3q','uvzPwhC','zMvHDhvYzuLK','y2HLy2TSAxn0sxrLBuLK','wMD6uu0','s05LALi','oxfwuLjqzG','yxbWBhK','EvPequG','rfjNDLm','C09gyuC','rKDLA1G','q3DRtNi','mJm3odzXD0vYDNG','ruDIyxq','uuXiywG','Bu5Irxq','qM9OsLa','nefKyw1iwa','zvLbtgu','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','qLfmENG','rMXfrLu','uKjKuMy','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','BMfqrMm','tM9YEgq','Dg9tDhjPBMC','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','mtKZodeWm2vlDLLJBq','C3rYAw5NAwz5','ALzQDuC','vxzhz2S','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','DhbnrLG','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','y3v4uhq','BhjJwu8','r0L6sKm','re5jvMq','C2vZC2LVBLrVA2vU','Aw1Hz2uVCg5N','mtu1ndy5tufls1rv','rgvdrMK','r2Lqr28','wMrRCLC','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','AxDxu1e','tg5IENK','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','DxbKyxrLqNjVD3nLCLnLC3nPB24','Aw1pAeu','CfDLEMG','yxbWBgLJyxrPB24VANnVBG','y2HLy2TZDw0','D1HWB28','rwLXsgC','uefuq0G','yxbWBgLJyxrPB24VANnVBMW','vxfdCMq','tw5vsfq','C3LerLy','uerIDu4','ANnVBG','CNbIwfK'];_0x3a11=function(){return _0x46674b;};return _0x3a11();}_0x4da89a();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x147796){const _0x19e418=_0x4751,_0x32708a={'lrcYO':function(_0x24ec07){return _0x24ec07();},'IyrRP':_0x19e418(0x1db),'tpMFX':function(_0x4c9e22){return _0x4c9e22();},'UvGgk':_0x19e418(0x1ed)},_0x17e40d=await _0x32708a[_0x19e418(0x1dd)](getToken);if(!_0x17e40d)throw new Error(_0x32708a['IyrRP']);const _0x31d804=_0x32708a[_0x19e418(0x1da)](getApiBaseUrl),_0x395145=await fetch(_0x31d804+_0x19e418(0x21d),{'method':_0x19e418(0x216),'headers':{'Authorization':'Bearer\x20'+_0x17e40d,'Content-Type':_0x32708a[_0x19e418(0x1d8)]},'body':JSON[_0x19e418(0x1d6)]({'environmentName':_0x147796?.[_0x19e418(0x212)],'settings':_0x147796?.[_0x19e418(0x21b)],'task':_0x147796?.['task'],'url':_0x147796?.[_0x19e418(0x224)],'featureId':_0x147796?.[_0x19e418(0x22e)],'checklistItemId':_0x147796?.[_0x19e418(0x22f)]})});if(!_0x395145['ok']){const _0x4fc97d=await _0x395145[_0x19e418(0x204)]();throw new Error(_0x19e418(0x1d0)+_0x4fc97d);}return _0x395145[_0x19e418(0x1f7)]();}export async function updateBrowserSession(_0x4df246,_0x483bcb){const _0x17a377=_0x4751,_0x5e27f2={'uwdvi':_0x17a377(0x202),'jVjuG':function(_0x166ad0){return _0x166ad0();},'UmcrP':function(_0x418e59,_0x48fa48){return _0x418e59!==_0x48fa48;},'Norxd':_0x17a377(0x1e4),'QLHah':_0x17a377(0x1db),'KkFAM':function(_0x14c106,_0x12a7dc,_0x307cd7){return _0x14c106(_0x12a7dc,_0x307cd7);},'ziexq':_0x17a377(0x1f1),'RjbxE':'application/json','mNbEt':_0x17a377(0x1ea)};return withRetry(async()=>{const _0x3fe24d=_0x17a377,_0x778e69=await _0x5e27f2[_0x3fe24d(0x1d7)](getToken);if(!_0x778e69){if(_0x5e27f2[_0x3fe24d(0x205)]('GiPGo',_0x5e27f2[_0x3fe24d(0x1d2)]))return _0x20677f(_0x50276d,_0x155460,_0x5e27f2[_0x3fe24d(0x1f9)]);else throw new Error(_0x5e27f2[_0x3fe24d(0x1c7)]);}const _0x2da701=_0x5e27f2[_0x3fe24d(0x1d7)](getApiBaseUrl),_0x2dbbef=await _0x5e27f2['KkFAM'](fetch,_0x2da701+_0x3fe24d(0x1e9)+_0x4df246,{'method':_0x5e27f2[_0x3fe24d(0x208)],'headers':{'Authorization':_0x3fe24d(0x20d)+_0x778e69,'Content-Type':_0x5e27f2['RjbxE']},'body':JSON[_0x3fe24d(0x1d6)](_0x483bcb)});if(!_0x2dbbef['ok']){const _0x4c14a7=await _0x2dbbef[_0x3fe24d(0x204)]();throw new Error(_0x3fe24d(0x1d9)+_0x4c14a7);}return _0x2dbbef[_0x3fe24d(0x1f7)]();},{'label':_0x5e27f2[_0x17a377(0x1c8)]});}export async function getBrowserSession(_0x58588b){const _0x594343=_0x4751,_0x28a343={'AnhWs':_0x594343(0x225),'vCNnZ':function(_0x1b2685){return _0x1b2685();},'SojOd':function(_0x5c464a,_0x26d166){return _0x5c464a===_0x26d166;},'bIsyy':_0x594343(0x1db),'CwkNr':function(_0x16a432,_0x9e1a4f,_0x3d8cd7){return _0x16a432(_0x9e1a4f,_0x3d8cd7);}},_0x1a1d3a=await _0x28a343['vCNnZ'](getToken);if(!_0x1a1d3a){if(_0x28a343['SojOd'](_0x594343(0x1ce),_0x594343(0x1ce)))throw new Error(_0x28a343['bIsyy']);else return _0x6250f8[_0x594343(0x1d3)]()[_0x594343(0x223)](ayjjWy['AnhWs'])[_0x594343(0x1d3)]()[_0x594343(0x21f)](_0x2f99ed)[_0x594343(0x223)]('(((.+)+)+)+$');}const _0x3ab6d9=_0x28a343[_0x594343(0x1ff)](getApiBaseUrl),_0x5bcf88=await _0x28a343[_0x594343(0x1c4)](fetch,_0x3ab6d9+'/api/v1/mcp/browser-sessions/'+_0x58588b,{'method':_0x594343(0x227),'headers':{'Authorization':_0x594343(0x20d)+_0x1a1d3a}});if(!_0x5bcf88['ok']){const _0x236ef0=await _0x5bcf88[_0x594343(0x204)]();throw new Error(_0x594343(0x20a)+_0x236ef0);}return _0x5bcf88['json']();}export async function getUploadUrls(_0xc2bb98,_0x2e32b6,_0x127df1,_0x820a3a){const _0x5bae97=_0x4751,_0x567a49={'DNIVd':_0x5bae97(0x1e1),'mWeCs':function(_0x45ccdf){return _0x45ccdf();},'JKLQE':function(_0x202fc6,_0x3705cf,_0x3a5e1e){return _0x202fc6(_0x3705cf,_0x3a5e1e);},'UqCrd':'POST','GVPkH':_0x5bae97(0x1ed),'suyCH':function(_0x3474d7,_0x4c7a00){return _0x3474d7!==_0x4c7a00;},'wXpoo':_0x5bae97(0x1e5)},_0x3d33e2=await _0x567a49[_0x5bae97(0x21e)](getToken);if(!_0x3d33e2)throw new Error(_0x5bae97(0x1db));const _0x1bbdbc=_0x567a49[_0x5bae97(0x21e)](getApiBaseUrl),_0x48e3e6=await _0x567a49['JKLQE'](fetch,_0x1bbdbc+_0x5bae97(0x1e9)+_0xc2bb98+'/upload-urls',{'method':_0x567a49[_0x5bae97(0x1f3)],'headers':{'Authorization':'Bearer\x20'+_0x3d33e2,'Content-Type':_0x567a49['GVPkH']},'body':JSON[_0x5bae97(0x1d6)]({'filename':_0x2e32b6,'filetype':_0x127df1,..._0x820a3a?.[_0x5bae97(0x226)]!==undefined&&{'size':_0x820a3a[_0x5bae97(0x226)]},..._0x567a49[_0x5bae97(0x220)](_0x820a3a?.[_0x5bae97(0x1ee)],undefined)&&{'checksum':_0x820a3a[_0x5bae97(0x1ee)]},..._0x567a49[_0x5bae97(0x220)](_0x820a3a?.[_0x5bae97(0x210)],undefined)&&{'metadata':_0x820a3a[_0x5bae97(0x210)]}})});if(!_0x48e3e6['ok']){if(_0x567a49[_0x5bae97(0x1ef)]===_0x5bae97(0x21c))return _0x2db4a2(_0x435fd7,_0x3bf68e,_0x567a49[_0x5bae97(0x1df)]);else{const _0x287947=await _0x48e3e6[_0x5bae97(0x204)]();throw new Error('Failed\x20to\x20get\x20upload\x20URLs:\x20'+_0x287947);}}return _0x48e3e6[_0x5bae97(0x1f7)]();}export async function uploadFile(_0x2ade66,_0x2c71a2,_0x6cc5eb){const _0x38c976=_0x4751,_0x83ab98={'CauVU':'PUT'},_0x296995=await fetch(_0x2ade66,{'method':_0x83ab98[_0x38c976(0x1fc)],'headers':{'Content-Type':_0x6cc5eb,'Content-Length':_0x2c71a2[_0x38c976(0x218)][_0x38c976(0x1d3)]()},'body':_0x2c71a2});if(!_0x296995['ok']){const _0x108842=await _0x296995['text']();throw new Error(_0x38c976(0x1d4)+_0x108842);}}export async function uploadTrace(_0x105476,_0x4a0a23){const _0x20ecfe=_0x4751,_0x2ef8f1={'Lnbzy':function(_0x3568a,_0x4042de,_0x2ea290,_0x124bfe){return _0x3568a(_0x4042de,_0x2ea290,_0x124bfe);},'OnHiy':_0x20ecfe(0x202)};return _0x2ef8f1[_0x20ecfe(0x1e8)](uploadFile,_0x105476,_0x4a0a23,_0x2ef8f1['OnHiy']);}export async function uploadConversation(_0x5db4b0,_0x3cfed2){const _0x5ad287=_0x4751;return uploadFile(_0x5db4b0,_0x3cfed2,_0x5ad287(0x1f2));}export async function uploadScreenshot(_0x20c67c,_0x2f0fc0){const _0x3ccec3=_0x4751,_0x3c391b={'rpbXY':_0x3ccec3(0x1e1)};return uploadFile(_0x20c67c,_0x2f0fc0,_0x3c391b[_0x3ccec3(0x1f8)]);}export async function uploadVideo(_0x2e9a1b,_0x2222c4){const _0x4c0776=_0x4751,_0x6a3587={'FGekX':_0x4c0776(0x219)};return uploadFile(_0x2e9a1b,_0x2222c4,_0x6a3587[_0x4c0776(0x1c3)]);}export function buildTraceViewerUrl(_0x4a686e){const _0x3716ba=_0x4751,_0xa96418={'MdXGB':function(_0x9e74e7,_0x294a07){return _0x9e74e7(_0x294a07);}},_0x4111c1=_0xa96418[_0x3716ba(0x221)](encodeURIComponent,_0x4a686e);return _0x3716ba(0x215)+_0x4111c1;}export async function getProxySessionToken(){const _0x296ff1=_0x4751,_0x43c9a5={'yZDAH':function(_0x2ae826){return _0x2ae826();},'pWezh':function(_0x382771,_0x475e34,_0x4a947c){return _0x382771(_0x475e34,_0x4a947c);}},_0x441494=await _0x43c9a5[_0x296ff1(0x234)](getToken);if(!_0x441494)throw new Error(_0x296ff1(0x1db));const _0x5d3bfa=_0x43c9a5[_0x296ff1(0x234)](getApiBaseUrl),_0x19ab02=await _0x43c9a5[_0x296ff1(0x1ec)](fetch,_0x5d3bfa+_0x296ff1(0x1fe),{'method':'POST','headers':{'Authorization':_0x296ff1(0x20d)+_0x441494}});if(!_0x19ab02['ok']){const _0x4b00d8=await _0x19ab02[_0x296ff1(0x204)]();throw new Error(_0x296ff1(0x222)+_0x4b00d8);}const _0x247c79=await _0x19ab02[_0x296ff1(0x1f7)]();return _0x247c79[_0x296ff1(0x1e0)];}export function computeChecksum(_0x17c47b){const _0x31c6f7=_0x4751,_0x5a0c85={'etBkX':_0x31c6f7(0x213),'QBEho':'base64'};return createHash(_0x5a0c85['etBkX'])['update'](_0x17c47b)[_0x31c6f7(0x1fa)](_0x5a0c85['QBEho']);}export async function createVerificationStep(_0x11a22e,_0xf8b403){const _0x194ee6=_0x4751,_0x579090={'USOst':function(_0x50142c){return _0x50142c();},'BQLzx':function(_0x3b2b72,_0x3ec3c0){return _0x3b2b72===_0x3ec3c0;},'ByxqV':_0x194ee6(0x1c6),'eYALe':_0x194ee6(0x1db),'sOFaG':function(_0x193a8f,_0x519a08,_0x42ed23){return _0x193a8f(_0x519a08,_0x42ed23);},'wSioZ':_0x194ee6(0x1ed)},_0x18fb53=await _0x579090[_0x194ee6(0x22c)](getToken);if(!_0x18fb53){if(_0x579090[_0x194ee6(0x1cd)](_0x194ee6(0x230),_0x579090[_0x194ee6(0x209)]))throw new _0x1d1ed4(_0x194ee6(0x1db));else throw new Error(_0x579090[_0x194ee6(0x1cb)]);}const _0x528b50=getApiBaseUrl(),_0x12dfa1=await _0x579090[_0x194ee6(0x1c2)](fetch,_0x528b50+_0x194ee6(0x1e9)+_0x11a22e+_0x194ee6(0x21a),{'method':'POST','headers':{'Authorization':_0x194ee6(0x20d)+_0x18fb53,'Content-Type':_0x579090['wSioZ']},'body':JSON[_0x194ee6(0x1d6)](_0xf8b403)});if(!_0x12dfa1['ok']){const _0x41507b=await _0x12dfa1[_0x194ee6(0x204)]();throw new Error('Failed\x20to\x20create\x20verification\x20step:\x20'+_0x41507b);}return _0x12dfa1[_0x194ee6(0x1f7)]();}export async function createStepAsset(_0x2cbd71,_0x5c0406,_0x1d97ac){const _0x3019ad=_0x4751,_0x5ee832={'iwWSQ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','naPFc':function(_0x476cad,_0x4fa98b,_0x2dd250){return _0x476cad(_0x4fa98b,_0x2dd250);},'RBdRf':_0x3019ad(0x216),'oRteA':_0x3019ad(0x1ed),'YWcee':_0x3019ad(0x203),'BohJP':_0x3019ad(0x200)},_0x4474f7=await getToken();if(!_0x4474f7)throw new Error(_0x3019ad(0x1db));const _0x323999=getApiBaseUrl(),_0xf8167e=await _0x5ee832[_0x3019ad(0x1d1)](fetch,_0x323999+_0x3019ad(0x1e9)+_0x2cbd71+_0x3019ad(0x1fd)+_0x5c0406+'/assets',{'method':_0x5ee832[_0x3019ad(0x1cf)],'headers':{'Authorization':_0x3019ad(0x20d)+_0x4474f7,'Content-Type':_0x5ee832['oRteA']},'body':JSON[_0x3019ad(0x1d6)](_0x1d97ac)});if(!_0xf8167e['ok']){if(_0x5ee832['YWcee']!==_0x5ee832[_0x3019ad(0x1c9)]){const _0x5cf983=await _0xf8167e['text']();throw new Error(_0x3019ad(0x22a)+_0x5cf983);}else throw new _0x3a455d(_0x5ee832[_0x3019ad(0x1e7)]);}return _0xf8167e[_0x3019ad(0x1f7)]();}function _0x4751(_0x2a3a3d,_0x157fbb){_0x2a3a3d=_0x2a3a3d-0x1c2;const _0x4a5cdc=_0x3a11();let _0x4da89a=_0x4a5cdc[_0x2a3a3d];if(_0x4751['CKAVYf']===undefined){var _0x551134=function(_0x18ef99){const _0x57a3ac='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2fb7f0='',_0x452459='',_0x2845be=_0x2fb7f0+_0x551134;for(let _0x5a9440=0x0,_0x2c08ea,_0x2ac11e,_0x77bc29=0x0;_0x2ac11e=_0x18ef99['charAt'](_0x77bc29++);~_0x2ac11e&&(_0x2c08ea=_0x5a9440%0x4?_0x2c08ea*0x40+_0x2ac11e:_0x2ac11e,_0x5a9440++%0x4)?_0x2fb7f0+=_0x2845be['charCodeAt'](_0x77bc29+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2c08ea>>(-0x2*_0x5a9440&0x6)):_0x5a9440:0x0){_0x2ac11e=_0x57a3ac['indexOf'](_0x2ac11e);}for(let _0x1e8494=0x0,_0x4a60f1=_0x2fb7f0['length'];_0x1e8494<_0x4a60f1;_0x1e8494++){_0x452459+='%'+('00'+_0x2fb7f0['charCodeAt'](_0x1e8494)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x452459);};_0x4751['UPGPAq']=_0x551134,_0x4751['bzodGC']={},_0x4751['CKAVYf']=!![];}const _0x3a118c=_0x4a5cdc[0x0],_0x475107=_0x2a3a3d+_0x3a118c,_0x5d2856=_0x4751['bzodGC'][_0x475107];if(!_0x5d2856){const _0x5b3169=function(_0x25d975){this['mLwslv']=_0x25d975,this['fUQPry']=[0x1,0x0,0x0],this['biWGGp']=function(){return'newState';},this['OeFXZE']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['SsocwV']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5b3169['prototype']['sFitrD']=function(){const _0x50bea9=new RegExp(this['OeFXZE']+this['SsocwV']),_0xdb6512=_0x50bea9['test'](this['biWGGp']['toString']())?--this['fUQPry'][0x1]:--this['fUQPry'][0x0];return this['EAzrtM'](_0xdb6512);},_0x5b3169['prototype']['EAzrtM']=function(_0x27b5f8){if(!Boolean(~_0x27b5f8))return _0x27b5f8;return this['bAQYOU'](this['mLwslv']);},_0x5b3169['prototype']['bAQYOU']=function(_0x524bf0){for(let _0x59f5ea=0x0,_0x128ca5=this['fUQPry']['length'];_0x59f5ea<_0x128ca5;_0x59f5ea++){this['fUQPry']['push'](Math['round'](Math['random']())),_0x128ca5=this['fUQPry']['length'];}return _0x524bf0(this['fUQPry'][0x0]);},new _0x5b3169(_0x4751)['sFitrD'](),_0x4da89a=_0x4751['UPGPAq'](_0x4da89a),_0x4751['bzodGC'][_0x475107]=_0x4da89a;}else _0x4da89a=_0x5d2856;return _0x4da89a;}export async function updateVerificationStep(_0x3b7bce,_0x12c1a6,_0x72a20f){const _0x10f6eb=_0x4751,_0x41b9e9={'ihLrZ':function(_0x3c004b,_0x1e7f3a){return _0x3c004b(_0x1e7f3a);},'yEhZh':function(_0x2e565f){return _0x2e565f();},'MTmwg':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','imOhE':function(_0x268ca9,_0xd7060d,_0x30459a){return _0x268ca9(_0xd7060d,_0x30459a);},'pBDsy':_0x10f6eb(0x1f1),'WDeeP':_0x10f6eb(0x1ed),'HwspR':function(_0x322f28,_0x3e3e49){return _0x322f28===_0x3e3e49;},'RcEKi':_0x10f6eb(0x1e3)},_0x2509a5=await _0x41b9e9['yEhZh'](getToken);if(!_0x2509a5)throw new Error(_0x41b9e9[_0x10f6eb(0x214)]);const _0x5a7b23=_0x41b9e9[_0x10f6eb(0x20b)](getApiBaseUrl),_0x4a2d9b=await _0x41b9e9[_0x10f6eb(0x1eb)](fetch,_0x5a7b23+_0x10f6eb(0x1e9)+_0x3b7bce+'/steps/'+_0x12c1a6,{'method':_0x41b9e9[_0x10f6eb(0x228)],'headers':{'Authorization':_0x10f6eb(0x20d)+_0x2509a5,'Content-Type':_0x41b9e9['WDeeP']},'body':JSON['stringify'](_0x72a20f)});if(!_0x4a2d9b['ok']){if(_0x41b9e9['HwspR'](_0x41b9e9[_0x10f6eb(0x211)],_0x10f6eb(0x1e3))){const _0x14e42a=await _0x4a2d9b['text']();throw new Error(_0x10f6eb(0x1e6)+_0x14e42a);}else{const _0x2bbc2c=_0x41b9e9[_0x10f6eb(0x20f)](_0x128b33,_0x56f7bc);return _0x10f6eb(0x215)+_0x2bbc2c;}}}export async function getBrowserSessionSteps(_0x4b6ad4){const _0x396631=_0x4751,_0x1ceb6e={'MnUHT':function(_0xdb1962){return _0xdb1962();},'UqpSf':_0x396631(0x227)},_0x354716=await _0x1ceb6e[_0x396631(0x1f4)](getToken);if(!_0x354716)throw new Error(_0x396631(0x1db));const _0x2d9d47=getApiBaseUrl(),_0x46b8fd=await fetch(_0x2d9d47+_0x396631(0x1e9)+_0x4b6ad4+_0x396631(0x21a),{'method':_0x1ceb6e[_0x396631(0x229)],'headers':{'Authorization':_0x396631(0x20d)+_0x354716}});if(!_0x46b8fd['ok']){const _0x552478=await _0x46b8fd[_0x396631(0x204)]();throw new Error(_0x396631(0x1cc)+_0x552478);}return _0x46b8fd[_0x396631(0x1f7)]();}
1
+ (function(_0x49c7ac,_0x2ad74f){const _0x4441f7=_0x2a1e,_0x13f264=_0x49c7ac();while(!![]){try{const _0x942402=-parseInt(_0x4441f7(0x156))/0x1+-parseInt(_0x4441f7(0x14b))/0x2+-parseInt(_0x4441f7(0x13a))/0x3+-parseInt(_0x4441f7(0x16c))/0x4+parseInt(_0x4441f7(0x134))/0x5+-parseInt(_0x4441f7(0x175))/0x6+parseInt(_0x4441f7(0x18e))/0x7;if(_0x942402===_0x2ad74f)break;else _0x13f264['push'](_0x13f264['shift']());}catch(_0x369b10){_0x13f264['push'](_0x13f264['shift']());}}}(_0x28d7,0xba092));const _0x392a51=(function(){const _0x325afb=_0x2a1e,_0x592145={'MYomV':function(_0x2d0705,_0x5ecbed){return _0x2d0705!==_0x5ecbed;},'vIwtT':_0x325afb(0x150),'dnWwh':_0x325afb(0x181)};let _0xc21260=!![];return function(_0x58ab22,_0x3d86cc){const _0x3a287a=_0xc21260?function(){const _0x8b0f65=_0x2a1e;if(_0x592145[_0x8b0f65(0x135)](_0x592145[_0x8b0f65(0x190)],_0x592145[_0x8b0f65(0x191)])){if(_0x3d86cc){const _0x1c9095=_0x3d86cc['apply'](_0x58ab22,arguments);return _0x3d86cc=null,_0x1c9095;}}else{const _0x119545=_0x575169?function(){const _0x36be2c=_0x8b0f65;if(_0x17ba9e){const _0x191df4=_0x46b47b[_0x36be2c(0x146)](_0x354aa8,arguments);return _0x3a95e7=null,_0x191df4;}}:function(){};return _0x2d9fa2=![],_0x119545;}}:function(){};return _0xc21260=![],_0x3a287a;};}()),_0x528452=_0x392a51(this,function(){const _0x52e343=_0x2a1e,_0x482786={'QvbPA':_0x52e343(0x157)};return _0x528452['toString']()[_0x52e343(0x18a)](_0x482786[_0x52e343(0x165)])[_0x52e343(0x149)]()['constructor'](_0x528452)['search'](_0x482786[_0x52e343(0x165)]);});function _0x2a1e(_0x9f3a79,_0x4e0ada){_0x9f3a79=_0x9f3a79-0x126;const _0x38059f=_0x28d7();let _0x528452=_0x38059f[_0x9f3a79];if(_0x2a1e['jKuVKJ']===undefined){var _0x392a51=function(_0x432459){const _0x44846d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43c425='',_0x394360='',_0x4d4351=_0x43c425+_0x392a51;for(let _0x19567a=0x0,_0x2a6f5c,_0x4966b0,_0x1e2c42=0x0;_0x4966b0=_0x432459['charAt'](_0x1e2c42++);~_0x4966b0&&(_0x2a6f5c=_0x19567a%0x4?_0x2a6f5c*0x40+_0x4966b0:_0x4966b0,_0x19567a++%0x4)?_0x43c425+=_0x4d4351['charCodeAt'](_0x1e2c42+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2a6f5c>>(-0x2*_0x19567a&0x6)):_0x19567a:0x0){_0x4966b0=_0x44846d['indexOf'](_0x4966b0);}for(let _0x524878=0x0,_0x2d627c=_0x43c425['length'];_0x524878<_0x2d627c;_0x524878++){_0x394360+='%'+('00'+_0x43c425['charCodeAt'](_0x524878)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x394360);};_0x2a1e['bWkluK']=_0x392a51,_0x2a1e['mtiiTr']={},_0x2a1e['jKuVKJ']=!![];}const _0x28d704=_0x38059f[0x0],_0x2a1ee7=_0x9f3a79+_0x28d704,_0x58c5e4=_0x2a1e['mtiiTr'][_0x2a1ee7];if(!_0x58c5e4){const _0x575169=function(_0x45abc7){this['njsIQQ']=_0x45abc7,this['fwUxax']=[0x1,0x0,0x0],this['gTWmrs']=function(){return'newState';},this['nuAnLr']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['nsPynN']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x575169['prototype']['VBSUAj']=function(){const _0x2e0fa8=new RegExp(this['nuAnLr']+this['nsPynN']),_0x419e55=_0x2e0fa8['test'](this['gTWmrs']['toString']())?--this['fwUxax'][0x1]:--this['fwUxax'][0x0];return this['iKRNvE'](_0x419e55);},_0x575169['prototype']['iKRNvE']=function(_0x11c9e3){if(!Boolean(~_0x11c9e3))return _0x11c9e3;return this['nItPjX'](this['njsIQQ']);},_0x575169['prototype']['nItPjX']=function(_0x2d9fa2){for(let _0x17ba9e=0x0,_0x1626fa=this['fwUxax']['length'];_0x17ba9e<_0x1626fa;_0x17ba9e++){this['fwUxax']['push'](Math['round'](Math['random']())),_0x1626fa=this['fwUxax']['length'];}return _0x2d9fa2(this['fwUxax'][0x0]);},new _0x575169(_0x2a1e)['VBSUAj'](),_0x528452=_0x2a1e['bWkluK'](_0x528452),_0x2a1e['mtiiTr'][_0x2a1ee7]=_0x528452;}else _0x528452=_0x58c5e4;return _0x528452;}_0x528452();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x46d2b2){const _0x1b95ff=_0x2a1e,_0x2041b1={'SjSoV':_0x1b95ff(0x16b),'HoZBi':function(_0x4fc295){return _0x4fc295();},'uAcuP':function(_0x3dee84,_0x1d0859){return _0x3dee84!==_0x1d0859;},'XNeMd':_0x1b95ff(0x18f),'fghHf':function(_0xcebd8b,_0x4f2476,_0x4f0ebc){return _0xcebd8b(_0x4f2476,_0x4f0ebc);},'XBerq':_0x1b95ff(0x19d),'jwJnX':_0x1b95ff(0x12b),'uGzXq':function(_0xd47880,_0x3649be){return _0xd47880===_0x3649be;},'dFigf':_0x1b95ff(0x139),'NnAyH':_0x1b95ff(0x13d)},_0x400cfe=await _0x2041b1['HoZBi'](getToken);if(!_0x400cfe){if(_0x2041b1[_0x1b95ff(0x12c)]('mRZKJ',_0x2041b1['XNeMd']))throw new Error(_0x2041b1[_0x1b95ff(0x192)]);else{const _0x90e5f3=_0x4b0698(_0x36e898);return'https://trace.playwright.dev/?trace='+_0x90e5f3;}}const _0x267a41=_0x2041b1['HoZBi'](getApiBaseUrl),_0x11a7ca=await _0x2041b1[_0x1b95ff(0x147)](fetch,_0x267a41+_0x1b95ff(0x15a),{'method':_0x2041b1[_0x1b95ff(0x13e)],'headers':{'Authorization':_0x1b95ff(0x19a)+_0x400cfe,'Content-Type':_0x2041b1[_0x1b95ff(0x129)]},'body':JSON['stringify']({'environmentName':_0x46d2b2?.[_0x1b95ff(0x18c)],'settings':_0x46d2b2?.[_0x1b95ff(0x12a)],'task':_0x46d2b2?.['task'],'url':_0x46d2b2?.[_0x1b95ff(0x180)],'featureId':_0x46d2b2?.[_0x1b95ff(0x161)],'checklistItemId':_0x46d2b2?.['checklistItemId']})});if(!_0x11a7ca['ok']){if(_0x2041b1['uGzXq'](_0x2041b1[_0x1b95ff(0x17f)],_0x2041b1[_0x1b95ff(0x151)]))throw new _0x4b37e0(_0x2041b1[_0x1b95ff(0x192)]);else{const _0x45ea9d=await _0x11a7ca[_0x1b95ff(0x14e)]();throw new Error(_0x1b95ff(0x188)+_0x45ea9d);}}return _0x11a7ca[_0x1b95ff(0x185)]();}export async function updateBrowserSession(_0x4964ff,_0x2a615){const _0x139d13=_0x2a1e,_0x13136d={'IOFLT':_0x139d13(0x16b),'qhzCc':function(_0x122113){return _0x122113();},'EHvSS':function(_0x1f1432,_0x2ca26d,_0x43d9ec){return _0x1f1432(_0x2ca26d,_0x43d9ec);},'tSfFH':_0x139d13(0x19c),'bmGnW':function(_0x5eb18b,_0x133afa){return _0x5eb18b===_0x133afa;},'GGqwm':_0x139d13(0x14f),'NvmgT':_0x139d13(0x153)};return _0x13136d['EHvSS'](withRetry,async()=>{const _0x2c5917=_0x139d13,_0x1dc12b=await getToken();if(!_0x1dc12b)throw new Error(_0x13136d[_0x2c5917(0x137)]);const _0x34228a=_0x13136d['qhzCc'](getApiBaseUrl),_0x8fa12c=await _0x13136d[_0x2c5917(0x12d)](fetch,_0x34228a+'/api/v1/mcp/browser-sessions/'+_0x4964ff,{'method':_0x13136d[_0x2c5917(0x17d)],'headers':{'Authorization':_0x2c5917(0x19a)+_0x1dc12b,'Content-Type':_0x2c5917(0x12b)},'body':JSON[_0x2c5917(0x19f)](_0x2a615)});if(!_0x8fa12c['ok']){if(_0x13136d[_0x2c5917(0x158)](_0x2c5917(0x14f),_0x13136d[_0x2c5917(0x19b)])){const _0x3ce500=await _0x8fa12c['text']();throw new Error(_0x2c5917(0x13f)+_0x3ce500);}else throw new _0x514553(_0x13136d[_0x2c5917(0x137)]);}return _0x8fa12c[_0x2c5917(0x185)]();},{'label':_0x13136d[_0x139d13(0x17e)]});}export async function getBrowserSession(_0x5153cc){const _0x5a8ce4=_0x2a1e,_0x1f812f={'zVZKy':_0x5a8ce4(0x16b),'bTdYs':function(_0xb86523){return _0xb86523();},'qoyQB':function(_0x4b8b38,_0x277be5,_0x5e209f){return _0x4b8b38(_0x277be5,_0x5e209f);}},_0x3ce29c=await getToken();if(!_0x3ce29c)throw new Error(_0x1f812f['zVZKy']);const _0x2ad3b1=_0x1f812f[_0x5a8ce4(0x144)](getApiBaseUrl),_0x4436a1=await _0x1f812f[_0x5a8ce4(0x172)](fetch,_0x2ad3b1+'/api/v1/mcp/browser-sessions/'+_0x5153cc,{'method':_0x5a8ce4(0x164),'headers':{'Authorization':_0x5a8ce4(0x19a)+_0x3ce29c}});if(!_0x4436a1['ok']){const _0x560e75=await _0x4436a1[_0x5a8ce4(0x14e)]();throw new Error(_0x5a8ce4(0x140)+_0x560e75);}return _0x4436a1['json']();}export async function getUploadUrls(_0x127155,_0x5c2802,_0x38d8c7,_0x412d17){const _0x3eae77=_0x2a1e,_0x1ad606={'klsIs':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','SnupW':function(_0x5d4823,_0x3a8ae7){return _0x5d4823===_0x3a8ae7;},'yCgxx':_0x3eae77(0x174),'rpNNU':_0x3eae77(0x12e),'wajss':function(_0x429f44,_0x1aedd1,_0x45f13a){return _0x429f44(_0x1aedd1,_0x45f13a);},'EubCK':_0x3eae77(0x19d),'JrBpr':function(_0x268a50,_0x57f3a5){return _0x268a50!==_0x57f3a5;},'PPoiE':function(_0x344b87,_0x47f9f6){return _0x344b87!==_0x47f9f6;},'UbiCj':_0x3eae77(0x13c)},_0x40bd06=await getToken();if(!_0x40bd06){if(_0x1ad606[_0x3eae77(0x183)](_0x1ad606[_0x3eae77(0x16a)],_0x1ad606['rpNNU'])){const _0x1b99a2=_0x3970b0[_0x3eae77(0x146)](_0x5f147c,arguments);return _0x181d83=null,_0x1b99a2;}else throw new Error(_0x1ad606['klsIs']);}const _0x23ed1b=getApiBaseUrl(),_0xca8cfa=await _0x1ad606[_0x3eae77(0x127)](fetch,_0x23ed1b+_0x3eae77(0x15c)+_0x127155+'/upload-urls',{'method':_0x1ad606[_0x3eae77(0x170)],'headers':{'Authorization':_0x3eae77(0x19a)+_0x40bd06,'Content-Type':_0x3eae77(0x12b)},'body':JSON[_0x3eae77(0x19f)]({'filename':_0x5c2802,'filetype':_0x38d8c7,..._0x1ad606[_0x3eae77(0x13b)](_0x412d17?.[_0x3eae77(0x155)],undefined)&&{'size':_0x412d17['size']},..._0x1ad606[_0x3eae77(0x148)](_0x412d17?.[_0x3eae77(0x15d)],undefined)&&{'checksum':_0x412d17[_0x3eae77(0x15d)]},..._0x412d17?.['metadata']!==undefined&&{'metadata':_0x412d17['metadata']}})});if(!_0xca8cfa['ok']){if(_0x1ad606['SnupW'](_0x1ad606['UbiCj'],_0x3eae77(0x194)))throw new _0x39c927(_0x1ad606[_0x3eae77(0x143)]);else{const _0xed3567=await _0xca8cfa['text']();throw new Error(_0x3eae77(0x169)+_0xed3567);}}return _0xca8cfa[_0x3eae77(0x185)]();}export async function uploadFile(_0x18f357,_0x3757e7,_0x4811a6){const _0x18f994=_0x2a1e,_0x3b6ecb={'JcfZb':_0x18f994(0x176)},_0xad7485=await fetch(_0x18f357,{'method':_0x3b6ecb[_0x18f994(0x167)],'headers':{'Content-Type':_0x4811a6,'Content-Length':_0x3757e7[_0x18f994(0x184)][_0x18f994(0x149)]()},'body':_0x3757e7});if(!_0xad7485['ok']){const _0x55bb3a=await _0xad7485[_0x18f994(0x14e)]();throw new Error(_0x18f994(0x130)+_0x55bb3a);}}function _0x28d7(){const _0x51b5fb=['rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','zMvHDhvYzuLK','tvbjyKC','s3HzywG','r0vu','uxzIuee','t2PMuhO','sMnMwMi','rLneAha','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','EunNEhG','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','mZq1nJaYoer1BMnzsG','sePgvvu','z3vbqvi','DxbKyxrL','rxvIq0S','sNrZuMq','Cw95uui','tw5SDva','turZDfG','nZC5nZm3ohfIDLfzwG','ufvu','yxbWBgLJyxrPB24VEMLW','zhffzxK','BKj6vvq','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','Aw1Hz2uVCg5N','rgzHsLe','DfnMrKG','tNzTz1q','zezPz2y','DxjS','BuHutLi','Bwq1','u251CfC','BgvUz3rO','ANnVBG','u3bxDLK','DgTOv2G','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','t2TcCeu','C2vHCMnO','DMLKzw8VD2vIBq','zw52AxjVBM1LBNroyw1L','rvjYy0q','mZaXmtG5mJfxEvjcwLy','z0fhvvu','DKL3Dfq','zg5xD2G','u2PtB1y','s0n1r0G','Eu9Quxm','q3flD2e','C2vZC2LVBLrVA2vU','yMfZzty0','EfjjugG','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','qMvHCMvYia','r0DXD20','uefuq0G','ue9tva','Ae9PyNK','C3rYAw5NAwz5','CLjHzhq','zerjzKq','D2fQC3m','Devvrfm','ANDkBLG','C2v0DgLUz3m','yxbWBgLJyxrPB24VANnVBG','DufJDva','ruH2u1m','C0rmve0','vhfsAhK','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','zunwEe8','svvxyMO','zgLNzxn0','mZK2ntG0mfvQDg1Jsa','tvLVBvy','zwr1Du4','su9gtfq','qvrUzgS','rhP2qwW','mtaZnZi2mLfWq1zLtG','sNjcChi','EezjBw8','ALzADxO','wejLCNe','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','C3PrC1O','zgjhr1i','A2XZsxm','yLrKwxm','t0ftCKO','yxbWBhK','zMDOsgy','ufbVAuu','Dg9tDhjPBMC','ve51BLm','mJGWmZm2nfLoC3jcsW','sLLjA0K','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','Dgv4Da','BKDSvvm','tMPgsMq','tM5bEuG','l3n0zxbZ','DxbKyxrLqNjVD3nLCLnLC3nPB24','qKLAB2G','C2L6zq','ndiYodyZzefXyMzr','kcGOlISPkYKRksSK','yM1hBLC','zenWr0y','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','uLzYque','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','y2HLy2TZDw0','uMjMr3C','l3n0zxbZlW'];_0x28d7=function(){return _0x51b5fb;};return _0x28d7();}export async function uploadTrace(_0x5d4694,_0x6b8c2f){const _0x499159=_0x2a1e,_0x3f9ce0={'RzwTA':function(_0x4c465f,_0x2e8226,_0x1e3923,_0x28b167){return _0x4c465f(_0x2e8226,_0x1e3923,_0x28b167);},'MPIbG':_0x499159(0x177)};return _0x3f9ce0['RzwTA'](uploadFile,_0x5d4694,_0x6b8c2f,_0x3f9ce0[_0x499159(0x162)]);}export async function uploadConversation(_0x1b2c63,_0x506171){const _0x4d57ac=_0x2a1e,_0x44810f={'CqKwa':function(_0x1354c0,_0x5f400c,_0x38ec0f,_0x26ce10){return _0x1354c0(_0x5f400c,_0x38ec0f,_0x26ce10);}};return _0x44810f[_0x4d57ac(0x195)](uploadFile,_0x1b2c63,_0x506171,'application/jsonl');}export async function uploadScreenshot(_0x566e63,_0x1954fc){const _0x56497c=_0x2a1e,_0x25a225={'ATndk':function(_0x2b0bb8,_0x248273,_0x1a46c3,_0x11010a){return _0x2b0bb8(_0x248273,_0x1a46c3,_0x11010a);},'ERrcD':_0x56497c(0x17b)};return _0x25a225[_0x56497c(0x138)](uploadFile,_0x566e63,_0x1954fc,_0x25a225[_0x56497c(0x18d)]);}export async function uploadVideo(_0x782a40,_0x297501){const _0x1213fc=_0x2a1e;return uploadFile(_0x782a40,_0x297501,_0x1213fc(0x18b));}export function buildTraceViewerUrl(_0x5e09a4){const _0x23a511=_0x2a1e,_0x5667a7={'KCgIY':function(_0x23dce9,_0x40506a){return _0x23dce9(_0x40506a);}},_0x448a44=_0x5667a7['KCgIY'](encodeURIComponent,_0x5e09a4);return _0x23a511(0x17a)+_0x448a44;}export async function getProxySessionToken(){const _0xd72df0=_0x2a1e,_0x2a43d7={'nBzUT':function(_0x3c0e08){return _0x3c0e08();}},_0x4abcd9=await getToken();if(!_0x4abcd9)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3ae7d8=_0x2a43d7[_0xd72df0(0x179)](getApiBaseUrl),_0x20d55f=await fetch(_0x3ae7d8+'/api/v1/mcp/proxy-session',{'method':_0xd72df0(0x19d),'headers':{'Authorization':_0xd72df0(0x19a)+_0x4abcd9}});if(!_0x20d55f['ok']){const _0x1fd441=await _0x20d55f[_0xd72df0(0x14e)]();throw new Error(_0xd72df0(0x160)+_0x1fd441);}const _0xc6bf3a=await _0x20d55f[_0xd72df0(0x185)]();return _0xc6bf3a[_0xd72df0(0x196)];}export function computeChecksum(_0x20e1bf){const _0x191442=_0x2a1e,_0x24408c={'OASrJ':function(_0x6c84c5,_0x14af4b){return _0x6c84c5(_0x14af4b);},'JtsRd':_0x191442(0x182)};return _0x24408c[_0x191442(0x145)](createHash,_0x24408c[_0x191442(0x171)])[_0x191442(0x16f)](_0x20e1bf)[_0x191442(0x133)](_0x191442(0x197));}export async function createVerificationStep(_0x222ed1,_0x2ed557){const _0xa3204=_0x2a1e,_0x24ee36={'SpWvY':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','UjZlT':function(_0x3e25fc,_0x59b308){return _0x3e25fc(_0x59b308);},'FSDhp':_0xa3204(0x182),'OjfPz':_0xa3204(0x197),'DfaJQ':function(_0x4536f2){return _0x4536f2();},'KCuGH':_0xa3204(0x141),'RbfGw':function(_0x6694d5,_0x546e0c,_0x53d902){return _0x6694d5(_0x546e0c,_0x53d902);},'KxYah':_0xa3204(0x19d),'TNunS':function(_0x5cc5d8,_0x3abfa5){return _0x5cc5d8!==_0x3abfa5;},'hOiby':'wSeRy','eCVxO':_0xa3204(0x136)},_0x5035a0=await _0x24ee36[_0xa3204(0x17c)](getToken);if(!_0x5035a0){if(_0x24ee36[_0xa3204(0x193)]!==_0x24ee36[_0xa3204(0x193)])throw new _0x412d81(_0x24ee36[_0xa3204(0x186)]);else throw new Error(_0xa3204(0x16b));}const _0x3507fa=_0x24ee36[_0xa3204(0x17c)](getApiBaseUrl),_0x47fb67=await _0x24ee36[_0xa3204(0x15e)](fetch,_0x3507fa+_0xa3204(0x15c)+_0x222ed1+_0xa3204(0x152),{'method':_0x24ee36[_0xa3204(0x163)],'headers':{'Authorization':_0xa3204(0x19a)+_0x5035a0,'Content-Type':_0xa3204(0x12b)},'body':JSON['stringify'](_0x2ed557)});if(!_0x47fb67['ok']){if(_0x24ee36[_0xa3204(0x14a)](_0x24ee36[_0xa3204(0x19e)],_0x24ee36[_0xa3204(0x131)])){const _0x1ff5f7=await _0x47fb67[_0xa3204(0x14e)]();throw new Error('Failed\x20to\x20create\x20verification\x20step:\x20'+_0x1ff5f7);}else return _0x24ee36['UjZlT'](_0xfdf30e,_0x24ee36[_0xa3204(0x168)])[_0xa3204(0x16f)](_0x5c9bfa)[_0xa3204(0x133)](_0x24ee36[_0xa3204(0x166)]);}return _0x47fb67[_0xa3204(0x185)]();}export async function createStepAsset(_0x15502e,_0x5c6d3a,_0x2d4e68){const _0x48f202=_0x2a1e,_0xc854cf={'HJFUU':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','OkBpE':function(_0x523230){return _0x523230();},'dbGGR':function(_0x28d6fa,_0x1e1576,_0x53849e){return _0x28d6fa(_0x1e1576,_0x53849e);},'kkVQQ':_0x48f202(0x12b),'IUWbj':function(_0x1b6d6b,_0x377d4a){return _0x1b6d6b===_0x377d4a;}},_0x106788=await _0xc854cf[_0x48f202(0x189)](getToken);if(!_0x106788)throw new Error(_0xc854cf[_0x48f202(0x16d)]);const _0x5795e1=_0xc854cf['OkBpE'](getApiBaseUrl),_0x403a17=await _0xc854cf[_0x48f202(0x142)](fetch,_0x5795e1+_0x48f202(0x15c)+_0x15502e+'/steps/'+_0x5c6d3a+'/assets',{'method':'POST','headers':{'Authorization':_0x48f202(0x19a)+_0x106788,'Content-Type':_0xc854cf['kkVQQ']},'body':JSON[_0x48f202(0x19f)](_0x2d4e68)});if(!_0x403a17['ok']){if(_0xc854cf[_0x48f202(0x132)](_0x48f202(0x16e),'guAAR')){const _0x171b69=await _0x403a17['text']();throw new Error(_0x48f202(0x199)+_0x171b69);}else throw new _0x4509e9(_0xc854cf[_0x48f202(0x16d)]);}return _0x403a17[_0x48f202(0x185)]();}export async function updateVerificationStep(_0x5b70a0,_0x3dd66c,_0x14243a){const _0x2f77a9=_0x2a1e,_0x537a25={'tEUDS':_0x2f77a9(0x16b),'JYIkI':function(_0x54edab){return _0x54edab();},'MnluP':function(_0x24c93d,_0x531787,_0x2a5c69){return _0x24c93d(_0x531787,_0x2a5c69);},'xRIPh':_0x2f77a9(0x12b)},_0x23165d=await getToken();if(!_0x23165d)throw new Error(_0x537a25[_0x2f77a9(0x128)]);const _0x2aad7a=_0x537a25[_0x2f77a9(0x14c)](getApiBaseUrl),_0x16ae9f=await _0x537a25[_0x2f77a9(0x173)](fetch,_0x2aad7a+'/api/v1/mcp/browser-sessions/'+_0x5b70a0+_0x2f77a9(0x15f)+_0x3dd66c,{'method':'PATCH','headers':{'Authorization':_0x2f77a9(0x19a)+_0x23165d,'Content-Type':_0x537a25[_0x2f77a9(0x198)]},'body':JSON[_0x2f77a9(0x19f)](_0x14243a)});if(!_0x16ae9f['ok']){const _0x5f1761=await _0x16ae9f[_0x2f77a9(0x14e)]();throw new Error('Failed\x20to\x20update\x20verification\x20step:\x20'+_0x5f1761);}}export async function getBrowserSessionSteps(_0x2d9fab){const _0x58a5be=_0x2a1e,_0x39871d={'dCpGF':'application/jsonl','dqEey':'video/webm','DReFp':function(_0x3fac69){return _0x3fac69();},'dDIfD':_0x58a5be(0x187),'RVrAA':_0x58a5be(0x16b),'BIZoh':function(_0x25ecff){return _0x25ecff();},'TqRhy':function(_0xa84e68,_0x2f5f11,_0x36eb60){return _0xa84e68(_0x2f5f11,_0x36eb60);},'rRadt':function(_0x53ba15,_0x4ff29a){return _0x53ba15!==_0x4ff29a;},'wuKje':'ChALa'},_0x4aff41=await _0x39871d['DReFp'](getToken);if(!_0x4aff41){if(_0x39871d[_0x58a5be(0x126)]!==_0x39871d['dDIfD'])return _0x1c1ef5(_0x3b43b8,_0x4b7f5c,_0x39871d[_0x58a5be(0x159)]);else throw new Error(_0x39871d[_0x58a5be(0x15b)]);}const _0x4cce76=_0x39871d[_0x58a5be(0x154)](getApiBaseUrl),_0x5a264c=await _0x39871d[_0x58a5be(0x12f)](fetch,_0x4cce76+_0x58a5be(0x15c)+_0x2d9fab+_0x58a5be(0x152),{'method':_0x58a5be(0x164),'headers':{'Authorization':'Bearer\x20'+_0x4aff41}});if(!_0x5a264c['ok']){if(_0x39871d[_0x58a5be(0x1a0)]('ChALa',_0x39871d['wuKje']))return _0x3d264a(_0xba880f,_0x5f46b1,_0x39871d[_0x58a5be(0x178)]);else{const _0x1cf883=await _0x5a264c[_0x58a5be(0x14e)]();throw new Error(_0x58a5be(0x14d)+_0x1cf883);}}return _0x5a264c['json']();}
@@ -1 +1 @@
1
- (function(_0x1a04db,_0x50d65e){const _0x1048a5=_0x48b3,_0xe9a819=_0x1a04db();while(!![]){try{const _0x4d460c=-parseInt(_0x1048a5(0x1c8))/0x1+-parseInt(_0x1048a5(0x1bf))/0x2*(parseInt(_0x1048a5(0x1ce))/0x3)+-parseInt(_0x1048a5(0x1c0))/0x4+-parseInt(_0x1048a5(0x1c9))/0x5*(-parseInt(_0x1048a5(0x1be))/0x6)+parseInt(_0x1048a5(0x1c6))/0x7*(-parseInt(_0x1048a5(0x1d0))/0x8)+-parseInt(_0x1048a5(0x1c4))/0x9*(-parseInt(_0x1048a5(0x1bd))/0xa)+-parseInt(_0x1048a5(0x1c7))/0xb*(-parseInt(_0x1048a5(0x1c2))/0xc);if(_0x4d460c===_0x50d65e)break;else _0xe9a819['push'](_0xe9a819['shift']());}catch(_0x3f7a7c){_0xe9a819['push'](_0xe9a819['shift']());}}}(_0x2bba,0xdabad));function _0x48b3(_0x44e881,_0x2ea519){_0x44e881=_0x44e881-0x1b5;const _0x2bba2b=_0x2bba();let _0x48b31e=_0x2bba2b[_0x44e881];return _0x48b31e;}import{homedir}from'os';import{join,dirname,parse}from'path';function _0x2bba(){const _0x4b42c1=['15393851RqRDRO','1425305yrFsaR','1090Xcqnpp','CLAUDE_CONFIG_DIR','skills','utf-8','env','33486uKGzRx','parse','17072fTNmfB','MNosx','rfCPq','cwd','fUBGb','RuyTO','aTaDJ','EvtjL','wZfAM','10sHXDkZ','24594CzgKIs','212FYYBUe','3497136ASZgsa','WavAm','36yVCrWR','.claude','1628271NmfeYY','.git','2933nxgBMR'];_0x2bba=function(){return _0x4b42c1;};return _0x2bba();}import{existsSync}from'fs';import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x5e30c9=_0x48b3,_0x3947d9={'fUBGb':_0x5e30c9(0x1c3)};return process[_0x5e30c9(0x1cd)][_0x5e30c9(0x1ca)]||join(homedir(),_0x3947d9[_0x5e30c9(0x1b8)]);}export function getUserSkillsDir(){const _0x9ab99d=_0x48b3,_0xa46d86={'JSPrZ':function(_0x40b05c,_0x36c632,_0x4f44b6){return _0x40b05c(_0x36c632,_0x4f44b6);},'nGiZJ':function(_0x4e74d9){return _0x4e74d9();}};return _0xa46d86['JSPrZ'](join,_0xa46d86['nGiZJ'](getClaudeConfigDir),_0x9ab99d(0x1cb));}export function getProjectRoot(){const _0x139c48=_0x48b3,_0x5b3e1f={'sFDyU':function(_0x5abd32,_0x280bff,_0x5d26b1){return _0x5abd32(_0x280bff,_0x5d26b1);},'EvtjL':'.claude','aTaDJ':function(_0x50d2d5,_0x39e7ec){return _0x50d2d5(_0x39e7ec);},'rfCPq':function(_0x1e7477,_0x3f4965,_0x3eb8c5){return _0x1e7477(_0x3f4965,_0x3eb8c5);},'leVsl':_0x139c48(0x1c5)};let _0xe7a2db=process[_0x139c48(0x1b7)]();const _0x530c98=parse(_0xe7a2db)['root'];while(_0xe7a2db!==_0x530c98){if(existsSync(_0x5b3e1f['sFDyU'](join,_0xe7a2db,_0x5b3e1f[_0x139c48(0x1bb)])))return _0xe7a2db;if(_0x5b3e1f['aTaDJ'](existsSync,_0x5b3e1f[_0x139c48(0x1b6)](join,_0xe7a2db,_0x5b3e1f['leVsl'])))return _0xe7a2db;_0xe7a2db=_0x5b3e1f[_0x139c48(0x1ba)](dirname,_0xe7a2db);}return process[_0x139c48(0x1b7)]();}export function getProjectSkillsDir(){const _0x231e9e=_0x48b3,_0x1257c1={'aGLgl':function(_0x188517){return _0x188517();},'jhUNj':'skills'};return join(_0x1257c1['aGLgl'](getProjectRoot),_0x231e9e(0x1c3),_0x1257c1['jhUNj']);}export function getSkillsDir(_0x116b50){const _0x2f5e16=_0x48b3,_0x43978b={'MNosx':function(_0xed1cdd,_0x346ef0){return _0xed1cdd===_0x346ef0;}};return _0x43978b[_0x2f5e16(0x1b5)](_0x116b50,'user')?getUserSkillsDir():getProjectSkillsDir();}export function getSettingsPath(){const _0x3da249=_0x48b3,_0x273d0a={'wDmVe':function(_0x343ada,_0x40fe60,_0x37c689){return _0x343ada(_0x40fe60,_0x37c689);},'QiIYN':function(_0x166179){return _0x166179();},'WavAm':'settings.json'};return _0x273d0a['wDmVe'](join,_0x273d0a['QiIYN'](getClaudeConfigDir),_0x273d0a[_0x3da249(0x1c1)]);}export async function loadClaudeSettings(){const _0x70f3c8=_0x48b3,_0x5537dc={'RuyTO':function(_0x2af0bf,_0x9f55c6,_0x5806f2){return _0x2af0bf(_0x9f55c6,_0x5806f2);}},_0x3fcd86=getSettingsPath();if(!existsSync(_0x3fcd86))return{};try{const _0x3425c0=await _0x5537dc[_0x70f3c8(0x1b9)](readFile,_0x3fcd86,_0x70f3c8(0x1cc));return JSON[_0x70f3c8(0x1cf)](_0x3425c0);}catch{return{};}}export async function saveClaudeSettings(_0x1929df){const _0x49962a=_0x48b3,_0x43133b={'RUWMg':function(_0x3ffbdb){return _0x3ffbdb();},'wZfAM':function(_0x5ed546,_0x3b5957){return _0x5ed546(_0x3b5957);},'XkaUf':function(_0x985de5,_0x30bdda,_0x438f47){return _0x985de5(_0x30bdda,_0x438f47);},'XcumZ':function(_0x4bf3b1,_0x1e2ba1){return _0x4bf3b1+_0x1e2ba1;},'nCOnu':_0x49962a(0x1cc)},_0x2919bd=_0x43133b['RUWMg'](getSettingsPath),_0x3792da=getClaudeConfigDir();!_0x43133b[_0x49962a(0x1bc)](existsSync,_0x3792da)&&await _0x43133b['XkaUf'](mkdir,_0x3792da,{'recursive':!![]}),await writeFile(_0x2919bd,_0x43133b['XcumZ'](JSON['stringify'](_0x1929df,null,0x2),'\x0a'),_0x43133b['nCOnu']);}
1
+ (function(_0x423c90,_0x131992){const _0x4f3330=_0x2062,_0x200414=_0x423c90();while(!![]){try{const _0x53b89b=parseInt(_0x4f3330(0xc6))/0x1*(-parseInt(_0x4f3330(0xda))/0x2)+parseInt(_0x4f3330(0xd5))/0x3*(parseInt(_0x4f3330(0xd3))/0x4)+-parseInt(_0x4f3330(0xc8))/0x5*(-parseInt(_0x4f3330(0xc4))/0x6)+parseInt(_0x4f3330(0xd1))/0x7*(-parseInt(_0x4f3330(0xd4))/0x8)+parseInt(_0x4f3330(0xcd))/0x9+parseInt(_0x4f3330(0xd6))/0xa*(parseInt(_0x4f3330(0xd9))/0xb)+-parseInt(_0x4f3330(0xce))/0xc;if(_0x53b89b===_0x131992)break;else _0x200414['push'](_0x200414['shift']());}catch(_0x539084){_0x200414['push'](_0x200414['shift']());}}}(_0x196c,0xb61a0));import{homedir}from'os';import{join,dirname,parse}from'path';import{existsSync}from'fs';import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x1a5b78=_0x2062,_0x4ae641={'GNVqU':function(_0x6a4465){return _0x6a4465();},'GMjwu':_0x1a5b78(0xc5)};return process[_0x1a5b78(0xd8)]['CLAUDE_CONFIG_DIR']||join(_0x4ae641['GNVqU'](homedir),_0x4ae641['GMjwu']);}function _0x2062(_0x233ee3,_0x1c2841){_0x233ee3=_0x233ee3-0xc1;const _0x196cfa=_0x196c();let _0x2062ec=_0x196cfa[_0x233ee3];return _0x2062ec;}function _0x196c(){const _0x5cf6e0=['8136888uloJmR','xukKF','JLITF','8790376nJXlPG','pssZv','2028792mQjpDq','8jWPALu','6rlRPXX','59900cOgmPD','SEmfD','env','2541nSycxe','2LSfdbq','cwd','owXpI','skills','2379984qVDaSV','.claude','1491482DKFniU','vtSRi','5brjbkP','ViFmP','saJeS','VsHIC','user','12388158BFYLPm'];_0x196c=function(){return _0x5cf6e0;};return _0x196c();}export function getUserSkillsDir(){const _0xd1e89f=_0x2062,_0x9fc871={'vtSRi':function(_0x55fe10){return _0x55fe10();}};return join(_0x9fc871[_0xd1e89f(0xc7)](getClaudeConfigDir),_0xd1e89f(0xc3));}export function getProjectRoot(){const _0x1a2c64=_0x2062,_0xd671ed={'ViFmP':function(_0x53583c,_0x212ba0){return _0x53583c(_0x212ba0);},'WdJmI':function(_0x1c3654,_0x346be8,_0x44d0d0){return _0x1c3654(_0x346be8,_0x44d0d0);},'vItHc':function(_0x2fba27,_0x143d01){return _0x2fba27(_0x143d01);},'mCCPm':'.git','LQIMI':function(_0x559a6c,_0x4e86be){return _0x559a6c(_0x4e86be);}};let _0x4d96f4=process[_0x1a2c64(0xc1)]();const _0x253b3a=_0xd671ed[_0x1a2c64(0xc9)](parse,_0x4d96f4)['root'];while(_0x4d96f4!==_0x253b3a){if(_0xd671ed['ViFmP'](existsSync,_0xd671ed['WdJmI'](join,_0x4d96f4,'.claude')))return _0x4d96f4;if(_0xd671ed['vItHc'](existsSync,join(_0x4d96f4,_0xd671ed['mCCPm'])))return _0x4d96f4;_0x4d96f4=_0xd671ed['LQIMI'](dirname,_0x4d96f4);}return process[_0x1a2c64(0xc1)]();}export function getProjectSkillsDir(){const _0x3e9e2d=_0x2062,_0x41a3c9={'SEmfD':_0x3e9e2d(0xc3)};return join(getProjectRoot(),_0x3e9e2d(0xc5),_0x41a3c9[_0x3e9e2d(0xd7)]);}export function getSkillsDir(_0x254746){const _0x2d994e=_0x2062,_0x3b15df={'VsHIC':function(_0x2a1615,_0x5378aa){return _0x2a1615===_0x5378aa;},'WtHOy':_0x2d994e(0xcc),'saJeS':function(_0x52759a){return _0x52759a();}};return _0x3b15df[_0x2d994e(0xcb)](_0x254746,_0x3b15df['WtHOy'])?_0x3b15df[_0x2d994e(0xca)](getUserSkillsDir):getProjectSkillsDir();}export function getSettingsPath(){const _0x397bb0=_0x2062,_0x4cc25f={'pBflu':function(_0x427919,_0xb27d7b,_0x20dc11){return _0x427919(_0xb27d7b,_0x20dc11);},'JLITF':'settings.json'};return _0x4cc25f['pBflu'](join,getClaudeConfigDir(),_0x4cc25f[_0x397bb0(0xd0)]);}export async function loadClaudeSettings(){const _0x48d874=_0x2062,_0x560cac={'xukKF':'utf-8'},_0x56856f=getSettingsPath();if(!existsSync(_0x56856f))return{};try{const _0x3fa971=await readFile(_0x56856f,_0x560cac[_0x48d874(0xcf)]);return JSON['parse'](_0x3fa971);}catch{return{};}}export async function saveClaudeSettings(_0x353385){const _0x315556=_0x2062,_0x4a0135={'aNCnM':function(_0x216104){return _0x216104();},'owXpI':function(_0x5f3357){return _0x5f3357();},'pssZv':function(_0x528074,_0x1da2c4){return _0x528074+_0x1da2c4;}},_0x4a9768=_0x4a0135['aNCnM'](getSettingsPath),_0x4f53a1=_0x4a0135[_0x315556(0xc2)](getClaudeConfigDir);!existsSync(_0x4f53a1)&&await mkdir(_0x4f53a1,{'recursive':!![]}),await writeFile(_0x4a9768,_0x4a0135[_0x315556(0xd2)](JSON['stringify'](_0x353385,null,0x2),'\x0a'),'utf-8');}
@@ -1 +1 @@
1
- function _0x3598(){const _0x514450=['2665aafTnF','32GGDkWe','8411580EAnqJZ','9188YiBdkL','7962498fLltHS','565071Ttisuj','2251396FFkUKF','911788DsbAlp','12452310KabUoo','1AiMmyI'];_0x3598=function(){return _0x514450;};return _0x3598();}(function(_0x15dab9,_0x2fe745){const _0x39748f=_0x1ee7,_0x1a7cca=_0x15dab9();while(!![]){try{const _0x347c4e=-parseInt(_0x39748f(0x161))/0x1*(parseInt(_0x39748f(0x15f))/0x2)+parseInt(_0x39748f(0x15d))/0x3+-parseInt(_0x39748f(0x15b))/0x4*(parseInt(_0x39748f(0x162))/0x5)+parseInt(_0x39748f(0x15c))/0x6+-parseInt(_0x39748f(0x15e))/0x7*(parseInt(_0x39748f(0x163))/0x8)+parseInt(_0x39748f(0x164))/0x9+parseInt(_0x39748f(0x160))/0xa;if(_0x347c4e===_0x2fe745)break;else _0x1a7cca['push'](_0x1a7cca['shift']());}catch(_0x23ccda){_0x1a7cca['push'](_0x1a7cca['shift']());}}}(_0x3598,0xb1e08));import{isByokEnabled}from'./environment.js';function _0x1ee7(_0xe9808c,_0x39f000){_0xe9808c=_0xe9808c-0x15b;const _0x3598f6=_0x3598();let _0x1ee7aa=_0x3598f6[_0xe9808c];return _0x1ee7aa;}const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};export function buildClaudeOverrideExtraArgs(){if(isByokEnabled())return{};return{'settings':JSON['stringify'](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
1
+ (function(_0x557ca9,_0x21c50c){const _0x492c71=_0x400e,_0xfc69b7=_0x557ca9();while(!![]){try{const _0xb591a2=parseInt(_0x492c71(0xcb))/0x1+parseInt(_0x492c71(0xc3))/0x2+parseInt(_0x492c71(0xc1))/0x3+parseInt(_0x492c71(0xc4))/0x4*(parseInt(_0x492c71(0xc7))/0x5)+parseInt(_0x492c71(0xc5))/0x6*(-parseInt(_0x492c71(0xc9))/0x7)+parseInt(_0x492c71(0xca))/0x8*(-parseInt(_0x492c71(0xc8))/0x9)+-parseInt(_0x492c71(0xc2))/0xa;if(_0xb591a2===_0x21c50c)break;else _0xfc69b7['push'](_0xfc69b7['shift']());}catch(_0x2999ce){_0xfc69b7['push'](_0xfc69b7['shift']());}}}(_0x27c8,0x7bcb1));import{isByokEnabled}from'./environment.js';function _0x27c8(){const _0x2caa4a=['stringify','55quHfKJ','9468SQNRWi','10850nAcQbO','2640pbVipH','267969pjeajP','2775570yqunAn','4909920VZruXL','869668zZNtQb','178424XqGKTM','2994jYNPJt'];_0x27c8=function(){return _0x2caa4a;};return _0x27c8();}const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};function _0x400e(_0x8dcc33,_0x9d54b9){_0x8dcc33=_0x8dcc33-0xc1;const _0x27c8b8=_0x27c8();let _0x400edb=_0x27c8b8[_0x8dcc33];return _0x400edb;}export function buildClaudeOverrideExtraArgs(){const _0x452baf=_0x400e;if(isByokEnabled())return{};return{'settings':JSON[_0x452baf(0xc6)](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
@@ -1 +1 @@
1
- (function(_0x726998,_0x2cc604){const _0x4903fe=_0x16f2,_0x4ad783=_0x726998();while(!![]){try{const _0xc7e6fd=-parseInt(_0x4903fe(0x10b))/0x1+-parseInt(_0x4903fe(0xfe))/0x2+parseInt(_0x4903fe(0x10c))/0x3*(-parseInt(_0x4903fe(0xfd))/0x4)+parseInt(_0x4903fe(0xe5))/0x5*(parseInt(_0x4903fe(0xf1))/0x6)+-parseInt(_0x4903fe(0xf8))/0x7*(parseInt(_0x4903fe(0x101))/0x8)+parseInt(_0x4903fe(0xef))/0x9+parseInt(_0x4903fe(0x10d))/0xa;if(_0xc7e6fd===_0x2cc604)break;else _0x4ad783['push'](_0x4ad783['shift']());}catch(_0x558aef){_0x4ad783['push'](_0x4ad783['shift']());}}}(_0x42f7,0x6f514));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';export function runClaudeCommand(_0x193627,_0xcdc554){const _0x3a1d35=_0x16f2,_0x948275={'nhqvs':function(_0x5eaf68,_0x188e11){return _0x5eaf68(_0x188e11);},'NBVjW':function(_0x5960fd,_0x5dd9e6){return _0x5960fd(_0x5dd9e6);},'INZpR':_0x3a1d35(0x10a),'OowPF':_0x3a1d35(0xf2),'BvbMR':'error'};return new Promise(_0x2e8b99=>{const _0x246e5d=_0x3a1d35,_0x33f0b3=_0xcdc554?.['captureOutput']?[_0x948275[_0x246e5d(0x109)],_0x246e5d(0xe8),'pipe']:[_0x948275['INZpR'],_0x246e5d(0x102),_0x246e5d(0x102)],_0x430cc6=spawn(_0x246e5d(0xf0),_0x193627,{'stdio':_0x33f0b3,'cwd':_0xcdc554?.[_0x246e5d(0xe6)]});let _0x50f2fd='';_0xcdc554?.['captureOutput']&&_0x430cc6[_0x246e5d(0xee)]&&_0x430cc6['stdout']['on'](_0x948275['OowPF'],_0x279bf3=>{_0x50f2fd+=_0x279bf3['toString']();}),_0xcdc554?.['captureOutput']&&_0x430cc6[_0x246e5d(0xfc)]&&_0x430cc6['stderr']['on'](_0x948275['OowPF'],_0x1200ed=>{_0x50f2fd+=_0x1200ed['toString']();}),_0x430cc6['on']('close',_0x5245db=>{_0x5245db===0x0?_0x948275['nhqvs'](_0x2e8b99,{'success':!![],'output':_0x50f2fd}):_0x948275['NBVjW'](_0x2e8b99,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x5245db,'output':_0x50f2fd});}),_0x430cc6['on'](_0x948275[_0x246e5d(0xe4)],_0x3e82c6=>{const _0x359135=_0x246e5d;_0x2e8b99({'success':![],'error':_0x3e82c6[_0x359135(0xf7)]});});});}export async function isMarketplaceAdded(_0x201c2e){const _0x4b3f3d=_0x16f2,_0x2ea5e0={'wDLzh':function(_0x10dbaa,_0x299bc9,_0x38a743){return _0x10dbaa(_0x299bc9,_0x38a743);},'QcSyS':'plugin'},_0x58d9c5=await _0x2ea5e0['wDLzh'](runClaudeCommand,[_0x2ea5e0['QcSyS'],'marketplace',_0x4b3f3d(0x100)],{'captureOutput':!![]});if(!_0x58d9c5['success']||!_0x58d9c5[_0x4b3f3d(0xfa)])return![];return _0x58d9c5[_0x4b3f3d(0xfa)]['includes'](_0x201c2e);}export async function isPluginInstalled(_0x485770){const _0x1b438f=_0x16f2,_0x521a36={'YhXKP':function(_0x1117ab,_0x92f587){return _0x1117ab>_0x92f587;},'EGhAK':function(_0x5591b8,_0x41137b,_0x26fe59){return _0x5591b8(_0x41137b,_0x26fe59);},'IQhum':'plugin'},_0x5c9798=await getInstalledPluginInfoFromRegistry(_0x485770);if(_0x521a36[_0x1b438f(0xed)](_0x5c9798['length'],0x0))return!![];const _0x4062be=await _0x521a36[_0x1b438f(0x104)](runClaudeCommand,[_0x521a36['IQhum'],'list'],{'captureOutput':!![]});if(!_0x4062be[_0x1b438f(0xe1)]||!_0x4062be['output'])return![];return _0x4062be[_0x1b438f(0xfa)][_0x1b438f(0xf4)](_0x485770);}function getInstalledPluginsPath(){const _0x1802a9=_0x16f2,_0x3d1c2e={'mOtpy':function(_0x8eecfc,_0x46863d,_0x2c62c4,_0x158246){return _0x8eecfc(_0x46863d,_0x2c62c4,_0x158246);},'ejpQb':function(_0x3ed8bc){return _0x3ed8bc();}};return _0x3d1c2e[_0x1802a9(0xe2)](join,_0x3d1c2e['ejpQb'](getClaudeConfigDir),_0x1802a9(0x105),'installed_plugins.json');}function sortPluginInfo(_0x74a09f,_0x1ee1ff){const _0x4aa379=_0x16f2,_0x355747={'cpipZ':function(_0x59d0c7,_0xf306e2){return _0x59d0c7-_0xf306e2;},'aXsAX':'user'},_0x168b33={'project':0x0,'local':0x1,'user':0x2};return _0x355747[_0x4aa379(0x107)](_0x168b33[_0x74a09f['scope']??_0x355747[_0x4aa379(0xf9)]],_0x168b33[_0x1ee1ff[_0x4aa379(0xfb)]??'user']);}export function parseInstalledPluginInfo(_0x46faa9,_0x155169,_0x6133a6){const _0x53b180=_0x16f2,_0x2073a4={'AigDp':function(_0xa017bc,_0x18c098){return _0xa017bc!==_0x18c098;},'nHMIc':'local','XNRML':function(_0x3dde52,_0x3b242f){return _0x3dde52===_0x3b242f;}},_0x490c17=JSON['parse'](_0x46faa9),_0x5cafc1=resolve(_0x6133a6),_0x40d9f9=_0x490c17['plugins']?.[_0x155169]??[];return _0x40d9f9['filter'](_0x356d91=>{const _0x452e1c=_0x16f2;if(_0x356d91['scope']!=='project'&&_0x2073a4[_0x452e1c(0xf3)](_0x356d91['scope'],_0x2073a4[_0x452e1c(0x103)]))return!![];if(!_0x356d91['projectPath'])return!![];return _0x2073a4['XNRML'](resolve(_0x356d91[_0x452e1c(0xf6)]),_0x5cafc1);})[_0x53b180(0xec)](_0x457d26=>({'name':_0x155169,'scope':_0x457d26['scope'],'version':_0x457d26['version']}))['sort'](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0x16ff1f){const _0x35a118=_0x16f2,_0x51648a={'StCFv':function(_0x4c9a6a){return _0x4c9a6a();},'prDNA':function(_0x38ba4a,_0x1519ef){return _0x38ba4a(_0x1519ef);},'sZIWI':function(_0x39de91,_0x130b22,_0x35d6d3){return _0x39de91(_0x130b22,_0x35d6d3);},'KUfQl':_0x35a118(0xea),'ByzFy':function(_0x1cc877,_0x2f2d9f,_0x537c2a,_0x1810e0){return _0x1cc877(_0x2f2d9f,_0x537c2a,_0x1810e0);}},_0x4121ae=_0x51648a[_0x35a118(0x108)](getInstalledPluginsPath);if(!_0x51648a[_0x35a118(0xe3)](existsSync,_0x4121ae))return[];try{const _0x257745=await _0x51648a['sZIWI'](readFile,_0x4121ae,_0x51648a['KUfQl']);return _0x51648a['ByzFy'](parseInstalledPluginInfo,_0x257745,_0x16ff1f,_0x51648a['StCFv'](getProjectRoot));}catch{return[];}}export async function getPluginInfo(_0x1051e3){const _0x2e7020=_0x16f2,_0x328dc0={'jsBiU':function(_0x4d2676,_0x5bd502){return _0x4d2676(_0x5bd502);},'IZtUE':_0x2e7020(0x100),'DyoYu':function(_0xa38d5b,_0x251f75){return _0xa38d5b===_0x251f75;}},_0x3524bf=await _0x328dc0['jsBiU'](getInstalledPluginInfoFromRegistry,_0x1051e3);if(_0x3524bf[_0x2e7020(0xe9)]>0x0)return _0x3524bf[0x0];const _0x4116b7=await runClaudeCommand([_0x2e7020(0xf5),_0x328dc0['IZtUE']],{'captureOutput':!![]});if(!_0x4116b7['success']||!_0x4116b7['output'])return null;if(!_0x4116b7[_0x2e7020(0xfa)]['includes'](_0x1051e3))return null;const _0x16c06a={'name':_0x1051e3},_0x5941ad=_0x4116b7['output'][_0x2e7020(0xff)](new RegExp(_0x1051e3+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0x5941ad&&(_0x16c06a[_0x2e7020(0xfb)]=_0x5941ad[0x1][_0x2e7020(0xe7)]());const _0x4b7732=_0x4116b7['output'][_0x2e7020(0xff)](new RegExp(_0x1051e3+'[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','i'));_0x4b7732&&(_0x16c06a[_0x2e7020(0xeb)]=_0x4b7732[0x1]);const _0x5d338f=_0x4116b7['output'][_0x2e7020(0xff)](new RegExp(_0x1051e3+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x5d338f&&(_0x16c06a[_0x2e7020(0x10e)]=_0x328dc0[_0x2e7020(0x106)](_0x5d338f[0x1][_0x2e7020(0xe7)](),_0x2e7020(0x10e))),_0x16c06a;}function _0x16f2(_0x5d64e2,_0x311c45){_0x5d64e2=_0x5d64e2-0xe1;const _0x42f776=_0x42f7();let _0x16f26f=_0x42f776[_0x5d64e2];return _0x16f26f;}function _0x42f7(){const _0x1d6360=['map','YhXKP','stdout','366462umIWhI','claude','162cWOWNi','data','AigDp','includes','plugin','projectPath','message','295253pQLUOo','aXsAX','output','scope','stderr','31268sDpngT','208990XZcZJI','match','list','128Lsojbq','inherit','nHMIc','EGhAK','plugins','DyoYu','cpipZ','StCFv','INZpR','ignore','692661ydUMuj','177wWvokM','22131640xrGzuV','enabled','success','mOtpy','prDNA','BvbMR','25055EMenZe','cwd','toLowerCase','pipe','length','utf-8','version'];_0x42f7=function(){return _0x1d6360;};return _0x42f7();}
1
+ function _0x382f(_0xb63fed,_0x1392ce){_0xb63fed=_0xb63fed-0xb5;const _0x688ea1=_0x688e();let _0x382f37=_0x688ea1[_0xb63fed];return _0x382f37;}(function(_0x49b3c9,_0x4f49d4){const _0x54f3d3=_0x382f,_0x187358=_0x49b3c9();while(!![]){try{const _0x1019d5=parseInt(_0x54f3d3(0xc4))/0x1+-parseInt(_0x54f3d3(0xcf))/0x2+parseInt(_0x54f3d3(0xcc))/0x3*(parseInt(_0x54f3d3(0xd9))/0x4)+-parseInt(_0x54f3d3(0xb5))/0x5+parseInt(_0x54f3d3(0xb9))/0x6*(-parseInt(_0x54f3d3(0xca))/0x7)+-parseInt(_0x54f3d3(0xbe))/0x8+parseInt(_0x54f3d3(0xbf))/0x9;if(_0x1019d5===_0x4f49d4)break;else _0x187358['push'](_0x187358['shift']());}catch(_0xd9b9bc){_0x187358['push'](_0x187358['shift']());}}}(_0x688e,0x68f26));import{spawn}from'child_process';import{existsSync}from'fs';function _0x688e(){const _0x892864=['toString','EUrQD','mZvYL','length','772840RcoQUK','output','nNaPn','qihkl','3066AXamKi','match','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','map','marketplace','1645984JwHElu','8225838rOHjDB','AogHu','cwd','[\x5cs\x5cS]*?(enabled|disabled)','AwRPm','688336TYNraA','toLowerCase','scope','STKxd','project','captureOutput','9457cNWYdx','message','135cQiivo','plugins','user','1288368LLNZHo','version','BIkkc','txiWg','installed_plugins.json','aIXDL','pipe','uHxak','success','projectPath','46436sMdGgc','data','plugin','sort','filter','yhngD','list','lXcWF','enabled'];_0x688e=function(){return _0x892864;};return _0x688e();}import{readFile}from'fs/promises';import{join,resolve}from'path';import{getClaudeConfigDir,getProjectRoot}from'./claudeConfig.js';export function runClaudeCommand(_0x525c18,_0x1470fc){const _0x110226=_0x382f,_0x158190={'BIkkc':function(_0x2b6509,_0x4e07ed){return _0x2b6509(_0x4e07ed);},'uHxak':function(_0x3761d0,_0x29a5a7){return _0x3761d0===_0x29a5a7;},'zalov':function(_0x55ee57,_0x650893){return _0x55ee57(_0x650893);},'nNaPn':'ignore','yhngD':_0x110226(0xd5),'EUrQD':'inherit','TaQPa':'claude','DXxVN':'close'};return new Promise(_0x404aa8=>{const _0x31357c=_0x110226,_0x2849d8={'txiWg':function(_0x468a07,_0x37e303){const _0x158a1b=_0x382f;return _0x158190[_0x158a1b(0xd6)](_0x468a07,_0x37e303);},'LGdQr':function(_0x518eb7,_0x2797a4){return _0x158190['zalov'](_0x518eb7,_0x2797a4);}},_0x1f5d98=_0x1470fc?.[_0x31357c(0xc9)]?[_0x158190[_0x31357c(0xb7)],_0x158190[_0x31357c(0xde)],_0x31357c(0xd5)]:[_0x158190[_0x31357c(0xb7)],_0x158190[_0x31357c(0xe3)],'inherit'],_0x16e3fd=spawn(_0x158190['TaQPa'],_0x525c18,{'stdio':_0x1f5d98,'cwd':_0x1470fc?.[_0x31357c(0xc1)]});let _0x4a445c='';_0x1470fc?.[_0x31357c(0xc9)]&&_0x16e3fd['stdout']&&_0x16e3fd['stdout']['on'](_0x31357c(0xda),_0x76c02=>{const _0x4303c0=_0x31357c;_0x4a445c+=_0x76c02[_0x4303c0(0xe2)]();}),_0x1470fc?.[_0x31357c(0xc9)]&&_0x16e3fd['stderr']&&_0x16e3fd['stderr']['on']('data',_0x1d1037=>{const _0x37456c=_0x31357c;_0x4a445c+=_0x1d1037[_0x37456c(0xe2)]();}),_0x16e3fd['on'](_0x158190['DXxVN'],_0x45bec7=>{const _0x10204f=_0x31357c;_0x2849d8[_0x10204f(0xd2)](_0x45bec7,0x0)?_0x404aa8({'success':!![],'output':_0x4a445c}):_0x2849d8['LGdQr'](_0x404aa8,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x45bec7,'output':_0x4a445c});}),_0x16e3fd['on']('error',_0x487a08=>{const _0x1d31df=_0x31357c;_0x158190[_0x1d31df(0xd1)](_0x404aa8,{'success':![],'error':_0x487a08[_0x1d31df(0xcb)]});});});}export async function isMarketplaceAdded(_0x2cee4c){const _0x24f781=_0x382f,_0x56b698={'rKbXb':_0x24f781(0xdb),'upUTq':_0x24f781(0xdf)},_0x43a779=await runClaudeCommand([_0x56b698['rKbXb'],_0x24f781(0xbd),_0x56b698['upUTq']],{'captureOutput':!![]});if(!_0x43a779['success']||!_0x43a779['output'])return![];return _0x43a779[_0x24f781(0xb6)]['includes'](_0x2cee4c);}export async function isPluginInstalled(_0x3ead9c){const _0x489ea2=_0x382f,_0x62ee81={'AogHu':function(_0x5491f7,_0x597d27){return _0x5491f7(_0x597d27);},'tqKDp':'plugin'},_0x507f28=await _0x62ee81[_0x489ea2(0xc0)](getInstalledPluginInfoFromRegistry,_0x3ead9c);if(_0x507f28['length']>0x0)return!![];const _0x2405ea=await runClaudeCommand([_0x62ee81['tqKDp'],_0x489ea2(0xdf)],{'captureOutput':!![]});if(!_0x2405ea['success']||!_0x2405ea['output'])return![];return _0x2405ea['output']['includes'](_0x3ead9c);}function getInstalledPluginsPath(){const _0x4dd288=_0x382f,_0x451c44={'lXcWF':function(_0x40deea,_0x30269a,_0x3b94e9,_0xc57628){return _0x40deea(_0x30269a,_0x3b94e9,_0xc57628);}};return _0x451c44[_0x4dd288(0xe0)](join,getClaudeConfigDir(),_0x4dd288(0xcd),_0x4dd288(0xd3));}function sortPluginInfo(_0x13daaf,_0x547d63){const _0x5e630a=_0x382f,_0x37b9a3={'TAlcD':_0x5e630a(0xce)},_0x3da1f5={'project':0x0,'local':0x1,'user':0x2};return _0x3da1f5[_0x13daaf[_0x5e630a(0xc6)]??_0x37b9a3['TAlcD']]-_0x3da1f5[_0x547d63[_0x5e630a(0xc6)]??_0x5e630a(0xce)];}export function parseInstalledPluginInfo(_0x28b151,_0x469fc6,_0x1613e8){const _0x3035d4=_0x382f,_0x3e69f1={'yMiXa':function(_0x4aecd7,_0x2c0a8d){return _0x4aecd7!==_0x2c0a8d;}},_0x301fe8=JSON['parse'](_0x28b151),_0x8adcab=resolve(_0x1613e8),_0x289d5c=_0x301fe8[_0x3035d4(0xcd)]?.[_0x469fc6]??[];return _0x289d5c[_0x3035d4(0xdd)](_0x2524ea=>{const _0x20d1f2=_0x3035d4;if(_0x3e69f1['yMiXa'](_0x2524ea[_0x20d1f2(0xc6)],_0x20d1f2(0xc8))&&_0x2524ea['scope']!=='local')return!![];if(!_0x2524ea[_0x20d1f2(0xd8)])return!![];return resolve(_0x2524ea['projectPath'])===_0x8adcab;})[_0x3035d4(0xbc)](_0x2c144b=>({'name':_0x469fc6,'scope':_0x2c144b['scope'],'version':_0x2c144b[_0x3035d4(0xd0)]}))[_0x3035d4(0xdc)](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0xc26d32){const _0x306de0=_0x382f,_0x4323cf={'aIXDL':function(_0x3010b2){return _0x3010b2();},'wtIDo':function(_0x158807,_0x5a7d18){return _0x158807(_0x5a7d18);},'BTmWL':'utf-8','qihkl':function(_0x29e3a7,_0x5c6b9b,_0x181aee,_0x1ab54d){return _0x29e3a7(_0x5c6b9b,_0x181aee,_0x1ab54d);}},_0x4e2398=_0x4323cf[_0x306de0(0xd4)](getInstalledPluginsPath);if(!_0x4323cf['wtIDo'](existsSync,_0x4e2398))return[];try{const _0x5e78f2=await readFile(_0x4e2398,_0x4323cf['BTmWL']);return _0x4323cf[_0x306de0(0xb8)](parseInstalledPluginInfo,_0x5e78f2,_0xc26d32,getProjectRoot());}catch{return[];}}export async function getPluginInfo(_0x268522){const _0xbdc96=_0x382f,_0x144819={'AwRPm':function(_0x5a82b9,_0x49c379){return _0x5a82b9(_0x49c379);},'mZvYL':function(_0x597dbf,_0x360d00){return _0x597dbf>_0x360d00;},'STKxd':function(_0x4d787a,_0x41e70d,_0x213b2f){return _0x4d787a(_0x41e70d,_0x213b2f);},'CWTPK':_0xbdc96(0xdb),'tBguf':_0xbdc96(0xe1)},_0x366672=await _0x144819[_0xbdc96(0xc3)](getInstalledPluginInfoFromRegistry,_0x268522);if(_0x144819[_0xbdc96(0xe4)](_0x366672[_0xbdc96(0xe5)],0x0))return _0x366672[0x0];const _0x1ab481=await _0x144819[_0xbdc96(0xc7)](runClaudeCommand,[_0x144819['CWTPK'],_0xbdc96(0xdf)],{'captureOutput':!![]});if(!_0x1ab481[_0xbdc96(0xd7)]||!_0x1ab481['output'])return null;if(!_0x1ab481['output']['includes'](_0x268522))return null;const _0x23400f={'name':_0x268522},_0x2e70eb=_0x1ab481[_0xbdc96(0xb6)]['match'](new RegExp(_0x268522+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0x2e70eb&&(_0x23400f[_0xbdc96(0xc6)]=_0x2e70eb[0x1][_0xbdc96(0xc5)]());const _0x4eaddc=_0x1ab481['output'][_0xbdc96(0xba)](new RegExp(_0x268522+_0xbdc96(0xbb),'i'));_0x4eaddc&&(_0x23400f[_0xbdc96(0xd0)]=_0x4eaddc[0x1]);const _0x35eda2=_0x1ab481[_0xbdc96(0xb6)][_0xbdc96(0xba)](new RegExp(_0x268522+_0xbdc96(0xc2),'i'));return _0x35eda2&&(_0x23400f['enabled']=_0x35eda2[0x1]['toLowerCase']()===_0x144819['tBguf']),_0x23400f;}