@ranger-testing/ranger-cli 3.1.6-alpha.aca5f9c-53 → 3.1.7-alpha.62f152a-54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x2d1217=_0x247b;(function(_0x4f67b9,_0x33a074){const _0x22a288=_0x247b,_0x307ae4=_0x4f67b9();while(!![]){try{const _0xf446fa=parseInt(_0x22a288(0x1f3))/0x1+-parseInt(_0x22a288(0x1af))/0x2*(parseInt(_0x22a288(0x1ad))/0x3)+-parseInt(_0x22a288(0x1d3))/0x4*(parseInt(_0x22a288(0x1b8))/0x5)+parseInt(_0x22a288(0x1c0))/0x6+-parseInt(_0x22a288(0x1db))/0x7*(-parseInt(_0x22a288(0x1bb))/0x8)+parseInt(_0x22a288(0x202))/0x9+parseInt(_0x22a288(0x1a7))/0xa*(-parseInt(_0x22a288(0x1c7))/0xb);if(_0xf446fa===_0x33a074)break;else _0x307ae4['push'](_0x307ae4['shift']());}catch(_0x1bc064){_0x307ae4['push'](_0x307ae4['shift']());}}}(_0x232b,0x8e607));import{spawn,execSync}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(_0x8c71a2,_0x2c8f5f,_0x598239){const _0x522ef3=_0x247b,_0x5a7935={'LSlbc':function(_0x3ffc69,_0x1490fc){return _0x3ffc69(_0x1490fc);},'RdXep':function(_0x1ef030,_0x242ecf){return _0x1ef030===_0x242ecf;},'ImjQg':function(_0x4111bd,_0x2c6fd7,_0x50216d,_0x3e2052){return _0x4111bd(_0x2c6fd7,_0x50216d,_0x3e2052);},'TEckk':_0x522ef3(0x1fd),'BkTJK':_0x522ef3(0x1f4),'yxrQB':_0x522ef3(0x1d1)};return new Promise(_0x5547df=>{const _0x490561=_0x522ef3;let _0x6a1cc4=![],_0x2ed1e4;const _0x415e28=_0x5042c0=>{if(_0x6a1cc4)return;_0x6a1cc4=!![],_0x2ed1e4&&clearTimeout(_0x2ed1e4),_0x5a7935['LSlbc'](_0x5547df,_0x5042c0);},_0x4ab3f5=_0x5a7935['ImjQg'](spawn,_0x8c71a2,_0x2c8f5f,{'stdio':[_0x490561(0x1e6),_0x598239?.[_0x490561(0x200)]??'inherit',_0x598239?.[_0x490561(0x200)]??_0x5a7935['TEckk']],'cwd':_0x598239?.['cwd'],'shell':process[_0x490561(0x1b0)]===_0x5a7935['BkTJK']});_0x2ed1e4=_0x598239?.['timeoutMs']?setTimeout(()=>{_0x4ab3f5['kill'](),_0x4ab3f5['unref'](),_0x5a7935['LSlbc'](_0x415e28,![]);},_0x598239['timeoutMs']):undefined,_0x4ab3f5['on'](_0x5a7935[_0x490561(0x1e1)],_0x2d6bc4=>{_0x415e28(_0x5a7935['RdXep'](_0x2d6bc4,0x0));}),_0x4ab3f5['on']('error',()=>{_0x415e28(![]);});});}export function resolveDistTag(_0x4f0ad0){const _0x743869=_0x247b,_0x306f39={'oAIUZ':'latest'};if(/-alpha\./i[_0x743869(0x1cc)](_0x4f0ad0))return _0x743869(0x1e9);if(/-beta\./i[_0x743869(0x1cc)](_0x4f0ad0))return'beta';if(/-rc\./i[_0x743869(0x1cc)](_0x4f0ad0))return'rc';return _0x306f39['oAIUZ'];}export function resolveInstallTarget(_0x59029d){const _0x555062=_0x247b,_0x1f194d={'uXHTC':function(_0x21bc9f,_0x2f83de){return _0x21bc9f(_0x2f83de);},'AnvRf':function(_0x454e5f,_0x182a2a,_0x3ed9e1){return _0x454e5f(_0x182a2a,_0x3ed9e1);}},_0x482937=_0x1f194d[_0x555062(0x1aa)](resolveDistTag,_0x59029d);if(_0x482937!=='latest')return _0x482937;const _0x485568=_0x59029d[_0x555062(0x1d5)]('.')[0x0],_0x2ea4f5=_0x1f194d['AnvRf'](parseInt,_0x485568,0xa);if(!Number[_0x555062(0x1f0)](_0x2ea4f5))return _0x555062(0x1ec);return'^'+_0x2ea4f5+_0x555062(0x1ca);}async function runInstall(_0x11bdbf){const _0xe98c2e=_0x247b,_0x567c78={'BllXB':function(_0x1349ba,_0x66320f){return _0x1349ba(_0x66320f);},'pBihh':function(_0x27ba2c,_0x23bc5d,_0x325033,_0x19b45d){return _0x27ba2c(_0x23bc5d,_0x325033,_0x19b45d);},'MUxpq':_0xe98c2e(0x1f9),'sbPVG':'ignore','OqFHn':_0xe98c2e(0x1fd),'ZRqKq':function(_0x2c6cfd,_0x5523f0){return _0x2c6cfd===_0x5523f0;},'CVpee':_0xe98c2e(0x1f4),'TKNRl':'error'},_0x38f7a2=resolveInstallTarget(_0x11bdbf);return new Promise(_0x5448dd=>{const _0x4f26de=_0xe98c2e,_0x2d6c4f={'rwMQA':function(_0x7f3226,_0x420e61){return _0x7f3226(_0x420e61);},'ojpmD':function(_0x307d7c,_0x528048){return _0x307d7c===_0x528048;}};console[_0x4f26de(0x1b4)]('\x0aInstalling\x20'+PACKAGE_NAME+'@'+_0x38f7a2+_0x4f26de(0x1ba));const _0x2a12b2=_0x567c78['pBihh'](spawn,_0x4f26de(0x1dc),[_0x567c78[_0x4f26de(0x207)],'-g',PACKAGE_NAME+'@'+_0x38f7a2],{'stdio':[_0x567c78['sbPVG'],_0x567c78[_0x4f26de(0x1dd)],_0x567c78['OqFHn']],'shell':_0x567c78['ZRqKq'](process['platform'],_0x567c78['CVpee'])});_0x2a12b2['on']('close',_0x4692bf=>{const _0x222758=_0x4f26de;_0x2d6c4f['rwMQA'](_0x5448dd,_0x2d6c4f[_0x222758(0x1b6)](_0x4692bf,0x0));}),_0x2a12b2['on'](_0x567c78['TKNRl'],()=>{const _0x11e49f=_0x4f26de;_0x567c78[_0x11e49f(0x201)](_0x5448dd,![]);});});}function resolveInstalledCliPath(){const _0x1a79a6=_0x247b,_0x3ec8f8={'ShfOL':_0x1a79a6(0x1b1),'nzQnI':function(_0x928f67,_0x25bc10,_0x2bb259,_0x3e5439,_0x12b80a){return _0x928f67(_0x25bc10,_0x2bb259,_0x3e5439,_0x12b80a);},'VoQVI':_0x1a79a6(0x1c1),'ySlrd':'cli.js'};try{const _0x27cdf2=execSync(_0x1a79a6(0x1ee),{'encoding':_0x3ec8f8[_0x1a79a6(0x20b)]})[_0x1a79a6(0x209)](),_0x140e01=_0x3ec8f8[_0x1a79a6(0x1ea)](join,_0x27cdf2,PACKAGE_NAME,_0x3ec8f8[_0x1a79a6(0x205)],_0x3ec8f8['ySlrd']);return existsSync(_0x140e01)?_0x140e01:null;}catch{return null;}}async function installMatchingChromium(){const _0x5610f1=_0x247b,_0x469fd5={'ccPiD':function(_0x21073b){return _0x21073b();},'YGrkX':function(_0x5afce5,_0x4495c4,_0x57fc09,_0x37dd1c){return _0x5afce5(_0x4495c4,_0x57fc09,_0x37dd1c);},'YgvUA':'setup','lspaV':'inherit','MsAal':'close','xVEOL':_0x5610f1(0x1d0)},_0x161126=resolveInstalledCliPath(),_0x4a4eeb=_0x5610f1(0x1e3);if(!_0x161126){console['log'](_0x4a4eeb);return;}await new Promise(_0x5404e4=>{const _0x1a2b58=_0x5610f1,_0x45fda3=_0x469fd5[_0x1a2b58(0x1eb)](spawn,process[_0x1a2b58(0x1e8)],[_0x161126,_0x469fd5[_0x1a2b58(0x203)],_0x1a2b58(0x1c9)],{'stdio':_0x469fd5['lspaV']});_0x45fda3['on'](_0x469fd5[_0x1a2b58(0x1fc)],()=>_0x5404e4()),_0x45fda3['on'](_0x469fd5['xVEOL'],()=>{const _0x42f44f=_0x1a2b58;console['log'](_0x4a4eeb),_0x469fd5[_0x42f44f(0x1be)](_0x5404e4);});});}function _0x247b(_0x1cfd3a,_0x58fad7){_0x1cfd3a=_0x1cfd3a-0x1a3;const _0x232b47=_0x232b();let _0x247b7c=_0x232b47[_0x1cfd3a];return _0x247b7c;}async function updateClaudeMarketplace(){const _0x56cee2=_0x247b,_0x343e84={'Qqgur':'marketplace','WPpuE':_0x56cee2(0x1e0)},_0x3cf1f=await runCommand('claude',[_0x56cee2(0x1c4),_0x343e84['Qqgur'],'update',_0x343e84[_0x56cee2(0x208)]],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x3cf1f)throw new Error('Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}async function updateClaudePlugin(_0x29e15d=_0x2d1217(0x1b2)){const _0x1f3a35=_0x2d1217,_0xe0e7d0={'bUxyG':_0x1f3a35(0x1c4),'OvyDi':_0x1f3a35(0x1d8),'DETaY':_0x1f3a35(0x1e5),'dxGKc':'--scope','JYROa':function(_0x1cc8ce,_0x371343,_0x35a489,_0x2eec42){return _0x1cc8ce(_0x371343,_0x35a489,_0x2eec42);},'AOltK':function(_0x2e7ee0,_0x2276c3){return _0x2e7ee0===_0x2276c3;},'ZebLs':'project','imZal':_0x1f3a35(0x1d6),'ItLnI':function(_0x1b7caf){return _0x1b7caf();}},_0x3d87e0=[_0xe0e7d0[_0x1f3a35(0x1a6)],_0xe0e7d0[_0x1f3a35(0x1b7)],_0xe0e7d0[_0x1f3a35(0x1ab)]];_0x29e15d!==_0x1f3a35(0x1b2)&&_0x3d87e0[_0x1f3a35(0x1c3)](_0xe0e7d0[_0x1f3a35(0x1ef)],_0x29e15d);const _0x16204c=await _0xe0e7d0['JYROa'](runCommand,_0x1f3a35(0x1e7),_0x3d87e0,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0xe0e7d0['AOltK'](_0x29e15d,_0xe0e7d0[_0x1f3a35(0x1ff)])||_0x29e15d===_0xe0e7d0[_0x1f3a35(0x1fa)]?_0xe0e7d0[_0x1f3a35(0x1cb)](getProjectRoot):undefined});if(!_0x16204c)throw new Error(_0x1f3a35(0x1fe)+_0x29e15d+_0x1f3a35(0x1f6));}function isSkillInstalled(_0x57b750,_0x2e6d85,_0x23c4df){const _0x55d686=_0x2d1217,_0x2b01eb={'wsqFG':_0x55d686(0x1c5),'Tirok':function(_0x2622ac,_0x56f864){return _0x2622ac(_0x56f864);}},_0x252909=_0x23c4df===_0x2b01eb[_0x55d686(0x204)]?_0x2b01eb[_0x55d686(0x1a5)](getOpencodeSkillsDir,_0x2e6d85):getSkillsDir(_0x2e6d85),_0x355960=join(_0x252909,_0x57b750);return existsSync(_0x355960);}async function reinstallSkills(_0x566e34){const _0x7c8d10=_0x2d1217,_0x46eb36={'fXUeW':_0x7c8d10(0x1de),'ldcha':function(_0x2473d1,_0xdc1035,_0xa79b38,_0x33565d){return _0x2473d1(_0xdc1035,_0xa79b38,_0x33565d);},'djiNW':_0x7c8d10(0x1e7),'DzDOK':_0x7c8d10(0x1c5),'OCqqD':function(_0x1d4f98,_0x3dac16,_0x4ad0af){return _0x1d4f98(_0x3dac16,_0x4ad0af);},'byqdi':function(_0x4235ac,_0x456e58){return _0x4235ac===_0x456e58;},'vdwXl':_0x7c8d10(0x1f1)},_0x405563=[_0x46eb36['fXUeW'],'user'],_0xb2c91b=[];for(const _0x1d303e of _0x405563){for(const _0x34a04e of RANGER_MANAGED_SKILLS){_0x46eb36['ldcha'](isSkillInstalled,_0x34a04e,_0x1d303e,_0x7c8d10(0x1e7))&&_0xb2c91b['push']({'skillName':_0x34a04e,'level':_0x1d303e,'platform':_0x46eb36[_0x7c8d10(0x1fb)]}),isSkillInstalled(_0x34a04e,_0x1d303e,_0x46eb36[_0x7c8d10(0x1a3)])&&_0xb2c91b['push']({'skillName':_0x34a04e,'level':_0x1d303e,'platform':_0x7c8d10(0x1c5)});}}for(const _0x56e3bd of _0x405563){for(const _0xbbc6a of DEPRECATED_SKILLS){await _0x46eb36['OCqqD'](removeSkill,_0xbbc6a,_0x56e3bd);}}if(_0x46eb36[_0x7c8d10(0x1d4)](_0xb2c91b[_0x7c8d10(0x1f2)],0x0)){console[_0x7c8d10(0x1b4)](_0x46eb36['vdwXl']);return;}console['log'](_0x7c8d10(0x1df)+_0xb2c91b[_0x7c8d10(0x1f2)]+_0x7c8d10(0x1cd));for(const {skillName:_0x2abf00,level:_0xa1509c,platform:_0x16c6a2}of _0xb2c91b){try{await _0x46eb36[_0x7c8d10(0x1f5)](installSkill,_0x2abf00,{'level':_0xa1509c,'cliVersion':_0x566e34,'platform':_0x16c6a2});}catch(_0x56fe7){console['warn']('\x20\x20Failed\x20to\x20reinstall\x20'+_0x16c6a2+'\x20'+_0xa1509c+'\x20skill\x20'+_0x2abf00+':',_0x56fe7);}}}function _0x232b(){const _0x1d3212=['DZPku','\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','error','close','\x0aClaude\x20plugin\x20updated\x20(local\x20scope).','12wcJSUV','byqdi','split','local','\x0a✅\x20Update\x20complete!','update','tNrGH','\x0aSuccessfully\x20installed\x20latest\x20version.','7nqHNoR','npm','OqFHn','project','\x0aReinstalling\x20','trailhead','yxrQB','LEdjl','\x0a\x20\x20Could\x20not\x20auto-install\x20the\x20matching\x20Chromium\x20—\x20run\x20`ranger\x20setup\x20deps`\x20to\x20install\x20it.','\x0aSuccessfully\x20updated\x20to\x20version\x20','ranger@trailhead','ignore','claude','execPath','alpha','nzQnI','YGrkX','latest','\x20channel.','npm\x20root\x20-g','dxGKc','isFinite','\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','length','662986yZeXSt','win32','OCqqD','\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','utf-8','vZzmn','install','imZal','djiNW','MsAal','inherit','Claude\x20plugin\x20update\x20failed\x20for\x20','ZebLs','stdio','BllXB','5755401kRCznt','YgvUA','wsqFG','VoQVI','Update\x20failed.','MUxpq','WPpuE','trim','QftrF','ShfOL','pxzHg','DzDOK','Update\x20failed\x20for\x20@','Tirok','bUxyG','13724020NWyrrQ','CGCOG','active-profile.txt','uXHTC','DETaY','BOaCC','3Axkezn','dhYFR','12434BFXDoV','platform','utf8','user','Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22','log','warn','ojpmD','OvyDi','988090GJLlNv','@latest','...\x0a','2498584iKzUoZ','Attempting\x20install\x20anyway...','\x0aCould\x20not\x20check\x20latest\x20version:\x20','ccPiD','version','5639100URzuwa','build',')\x20is\x20newer\x20than\x20the\x20published\x20version\x20(','push','plugin','opencode','\x20—\x20reinstalling\x20@','11oGGaTt','mlvgF','deps','.0.0','ItLnI','test','\x20ranger-managed\x20skill(s)...'];_0x232b=function(){return _0x1d3212;};return _0x232b();}async function ensureActiveProfileGitignored(){const _0x684f85=_0x2d1217,_0x301879={'dhYFR':function(_0x59f7db,_0x392d34,_0x11543b){return _0x59f7db(_0x392d34,_0x11543b);},'tNrGH':function(_0x442631){return _0x442631();},'QftrF':function(_0x5e972d,_0x11d6f8){return _0x5e972d(_0x11d6f8);},'ljOAd':_0x684f85(0x1f7),'vZzmn':function(_0x25676b,_0x3bcdc0){return _0x25676b===_0x3bcdc0;},'Vkqbr':'active-profile.txt'},_0x119945=_0x301879[_0x684f85(0x1ae)](join,_0x301879[_0x684f85(0x1d9)](getRangerDir),'.gitignore');if(!_0x301879[_0x684f85(0x20a)](existsSync,_0x119945))return![];let _0x5f0d77='';try{_0x5f0d77=await readFile(_0x119945,_0x301879['ljOAd']);}catch{return![];}const _0x13848b=_0x5f0d77[_0x684f85(0x1d5)](/\r?\n/);if(_0x13848b['some'](_0x143066=>_0x143066['trim']()===_0x684f85(0x1a9)))return![];let _0x1c21fb=_0x13848b['findIndex'](_0x1f8cce=>_0x1f8cce['trim']()==='active-feature.txt');_0x301879[_0x684f85(0x1f8)](_0x1c21fb,-0x1)&&(_0x1c21fb=_0x13848b['length']);_0x13848b['splice'](_0x1c21fb,0x0,_0x301879['Vkqbr']);let _0xb1c28e=_0x13848b['join']('\x0a');!_0xb1c28e['endsWith']('\x0a')&&(_0xb1c28e+='\x0a');try{await writeFile(_0x119945,_0xb1c28e,_0x684f85(0x1f7));}catch{return![];}return!![];}export async function update(){const _0x379579=_0x2d1217,_0x1a3bca={'LEdjl':function(_0x355dfc){return _0x355dfc();},'FEvfm':function(_0x23dd5e,_0x1d2b48){return _0x23dd5e(_0x1d2b48);},'inRSe':_0x379579(0x1ec),'cXbFQ':function(_0x2f8ba8){return _0x2f8ba8();},'LgErh':'Checking\x20for\x20updates...','WzUqQ':function(_0x431f82,_0x43eada){return _0x431f82+_0x43eada;},'mlvgF':_0x379579(0x1bc),'Yyiuc':function(_0x406970){return _0x406970();},'aFHgB':function(_0x37b230,_0x8eb6d8){return _0x37b230<_0x8eb6d8;},'CGCOG':function(_0x453cbe,_0x592db6){return _0x453cbe(_0x592db6);},'pxzHg':function(_0x2bf4cc){return _0x2bf4cc();},'QDVCg':_0x379579(0x206),'yQXsK':_0x379579(0x1e0),'DZPku':function(_0xfa8d12,_0x325fdc){return _0xfa8d12(_0x325fdc);},'filCZ':function(_0x180ce7,_0x1ebc06){return _0x180ce7===_0x1ebc06;},'SVkVf':'\x0aClaude\x20plugin\x20updated\x20(project\x20scope).','BOaCC':'local'},_0x27c7a7=_0x1a3bca['LEdjl'](getCurrentVersion);console[_0x379579(0x1b4)]('\x0aCurrent\x20version:\x20'+_0x27c7a7);const _0x341d66=_0x1a3bca['FEvfm'](resolveDistTag,_0x27c7a7);if(_0x341d66!==_0x1a3bca['inRSe']){console['log']('Prerelease\x20channel\x20detected\x20(@'+_0x341d66+').\x20Staying\x20on\x20'+_0x341d66+_0x379579(0x1c6)+_0x341d66+'...');const _0x303d32=await runInstall(_0x27c7a7);if(!_0x303d32)throw new Error(_0x379579(0x1a4)+_0x341d66+_0x379579(0x1ed));const _0x1ad017=_0x1a3bca['cXbFQ'](getCurrentVersion);console[_0x379579(0x1b4)]('\x0aSuccessfully\x20installed\x20'+PACKAGE_NAME+'@'+_0x341d66+'.'),await reinstallSkills(_0x1ad017),await _0x1a3bca['LEdjl'](installMatchingChromium),await ensureActiveProfileGitignored(),console['log'](_0x379579(0x1d7));return;}console['log'](_0x1a3bca['LgErh']);const _0x47f56a=parseInt(_0x27c7a7['split']('.')[0x0],0xa);if(!Number[_0x379579(0x1f0)](_0x47f56a))throw new Error(_0x1a3bca['WzUqQ'](_0x379579(0x1b3)+_0x27c7a7+'\x22.\x20','Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20')+('npm\x20i\x20-g\x20'+PACKAGE_NAME+_0x379579(0x1b9)));const _0x5785c6=getLatestVersion(_0x47f56a);let _0x5b3ce1=_0x27c7a7;if(!_0x5785c6['version']){console[_0x379579(0x1b5)](_0x379579(0x1bd)+_0x5785c6[_0x379579(0x1d0)]),console[_0x379579(0x1b4)](_0x1a3bca[_0x379579(0x1c8)]);const _0x2cfc0d=await runInstall(_0x27c7a7);if(_0x2cfc0d)console[_0x379579(0x1b4)](_0x379579(0x1da)),_0x5b3ce1=_0x1a3bca[_0x379579(0x1e2)](getCurrentVersion),await _0x1a3bca['Yyiuc'](installMatchingChromium);else throw new Error('Update\x20failed:\x20'+_0x5785c6['error']);}else{const _0x174fc3=_0x5785c6[_0x379579(0x1bf)];console['log']('Latest\x20version:\x20\x20'+_0x174fc3);const _0x123797=compareVersions(_0x27c7a7,_0x174fc3);if(_0x123797===0x0)console['log']('\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.');else{if(_0x1a3bca['aFHgB'](_0x123797,0x0))console['log']('\x0aYour\x20version\x20('+_0x27c7a7+_0x379579(0x1c2)+_0x174fc3+').');else{const _0x1602da=await _0x1a3bca[_0x379579(0x1a8)](runInstall,_0x27c7a7);if(_0x1602da)console[_0x379579(0x1b4)](_0x379579(0x1e4)+_0x174fc3),_0x5b3ce1=_0x174fc3,await _0x1a3bca[_0x379579(0x20c)](installMatchingChromium);else throw new Error(_0x1a3bca['QDVCg']);}}}await _0x1a3bca[_0x379579(0x1a8)](reinstallSkills,_0x5b3ce1);const _0x3cba7c=await _0x1a3bca[_0x379579(0x1a8)](isMarketplaceAdded,_0x1a3bca['yQXsK']),_0x170912=await isPluginInstalled(_0x379579(0x1e5));_0x3cba7c&&(await updateClaudeMarketplace(),console['log']('\x0aClaude\x20marketplace\x20updated\x20(trailhead).'));if(_0x170912){const _0x2c66b8=await _0x1a3bca[_0x379579(0x1ce)](getPluginInfo,'ranger@trailhead'),_0x521330=_0x2c66b8?.['scope']??_0x379579(0x1b2);await _0x1a3bca[_0x379579(0x1ce)](updateClaudePlugin,_0x521330);if(_0x1a3bca['filCZ'](_0x521330,'project'))console['log'](_0x1a3bca['SVkVf']);else _0x521330===_0x1a3bca[_0x379579(0x1ac)]?console['log'](_0x379579(0x1d2)):console['log'](_0x379579(0x1cf));}const _0x5c800f=await _0x1a3bca['pxzHg'](ensureActiveProfileGitignored);console['log'](_0x379579(0x1d7));}
1
+ const _0x18c0b6=_0x4e6a;(function(_0x4fef2b,_0x4581be){const _0x59276d=_0x4e6a,_0x58d1e2=_0x4fef2b();while(!![]){try{const _0x57c2f4=parseInt(_0x59276d(0xe5))/0x1+-parseInt(_0x59276d(0x118))/0x2*(parseInt(_0x59276d(0x10f))/0x3)+parseInt(_0x59276d(0xf7))/0x4+-parseInt(_0x59276d(0xcb))/0x5+-parseInt(_0x59276d(0xdb))/0x6*(-parseInt(_0x59276d(0xee))/0x7)+parseInt(_0x59276d(0xbd))/0x8*(-parseInt(_0x59276d(0xbc))/0x9)+-parseInt(_0x59276d(0x10b))/0xa*(-parseInt(_0x59276d(0xc0))/0xb);if(_0x57c2f4===_0x4581be)break;else _0x58d1e2['push'](_0x58d1e2['shift']());}catch(_0x404d29){_0x58d1e2['push'](_0x58d1e2['shift']());}}}(_0x13eb,0xc416f));import{spawn,execSync}from'child_process';import{existsSync}from'fs';import{readFile,writeFile}from'fs/promises';import{installSkill,removeSkill,RANGER_MANAGED_SKILLS,DEPRECATED_SKILLS}from'./utils/skills.js';function _0x4e6a(_0x4b7646,_0x1ba649){_0x4b7646=_0x4b7646-0xb8;const _0x13ebef=_0x13eb();let _0x4e6a96=_0x13ebef[_0x4b7646];return _0x4e6a96;}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(_0x37c831,_0x43a722,_0x357b48){const _0x331093=_0x4e6a,_0x51f6e7={'CHTmO':function(_0x5c204c,_0x2b972a){return _0x5c204c(_0x2b972a);},'vEVaW':function(_0x36e2d6,_0x41134e){return _0x36e2d6(_0x41134e);},'CrdWg':function(_0x7a3b71,_0x3f1fd5){return _0x7a3b71===_0x3f1fd5;},'CNRfA':'ignore','EqHVK':_0x331093(0xc4),'Qlxft':'error'};return new Promise(_0x1f482b=>{const _0x4b2588=_0x331093,_0x655736={'gdnlW':function(_0x19b71b,_0x49336e){return _0x51f6e7['CHTmO'](_0x19b71b,_0x49336e);},'MuJZf':function(_0x1c3e52,_0x3b2afd){const _0x1d15ff=_0x4e6a;return _0x51f6e7[_0x1d15ff(0xc9)](_0x1c3e52,_0x3b2afd);},'cUcFn':function(_0x343814,_0x4f1de9){const _0x54ec09=_0x4e6a;return _0x51f6e7[_0x54ec09(0xf0)](_0x343814,_0x4f1de9);},'UFKje':function(_0x2234d6,_0x1f5999){return _0x2234d6(_0x1f5999);}};let _0x4cb6f7=![],_0x30abaa;const _0x3f5b58=_0x2ec326=>{const _0x4aa079=_0x4e6a;if(_0x4cb6f7)return;_0x4cb6f7=!![],_0x30abaa&&_0x51f6e7[_0x4aa079(0xdf)](clearTimeout,_0x30abaa),_0x1f482b(_0x2ec326);},_0x2a7ae7=spawn(_0x37c831,_0x43a722,{'stdio':[_0x51f6e7[_0x4b2588(0xf1)],_0x357b48?.[_0x4b2588(0xea)]??_0x4b2588(0x121),_0x357b48?.[_0x4b2588(0xea)]??_0x4b2588(0x121)],'cwd':_0x357b48?.[_0x4b2588(0xd7)],'shell':process['platform']===_0x4b2588(0x11a)});_0x30abaa=_0x357b48?.['timeoutMs']?setTimeout(()=>{const _0x46287a=_0x4b2588;_0x2a7ae7[_0x46287a(0xc6)](),_0x2a7ae7['unref'](),_0x655736['gdnlW'](_0x3f5b58,![]);},_0x357b48[_0x4b2588(0xdd)]):undefined,_0x2a7ae7['on'](_0x51f6e7[_0x4b2588(0xc8)],_0x2202c4=>{const _0x46cf93=_0x4b2588;_0x655736[_0x46cf93(0xd0)](_0x3f5b58,_0x655736['cUcFn'](_0x2202c4,0x0));}),_0x2a7ae7['on'](_0x51f6e7[_0x4b2588(0xd2)],()=>{const _0xa29b11=_0x4b2588;_0x655736[_0xa29b11(0xc2)](_0x3f5b58,![]);});});}export function resolveDistTag(_0x33c222){const _0x1be7db=_0x4e6a,_0x455baf={'zJbWq':_0x1be7db(0xda),'ssEjN':'latest'};if(/-alpha\./i['test'](_0x33c222))return _0x455baf['zJbWq'];if(/-beta\./i['test'](_0x33c222))return _0x1be7db(0xf5);if(/-rc\./i['test'](_0x33c222))return'rc';return _0x455baf[_0x1be7db(0xd5)];}export function resolveInstallTarget(_0x3fc3ac){const _0x43d148=_0x4e6a,_0x492da4={'dSCzi':function(_0x773d8e,_0x20a968){return _0x773d8e(_0x20a968);},'maBaO':function(_0x494634,_0x2582c1){return _0x494634!==_0x2582c1;},'VWPRv':_0x43d148(0xe1)},_0x396f10=_0x492da4[_0x43d148(0x127)](resolveDistTag,_0x3fc3ac);if(_0x492da4[_0x43d148(0xf6)](_0x396f10,_0x492da4[_0x43d148(0x11e)]))return _0x396f10;const _0x191c13=_0x3fc3ac[_0x43d148(0xfb)]('.')[0x0],_0x40054c=parseInt(_0x191c13,0xa);if(!Number['isFinite'](_0x40054c))return _0x43d148(0xe1);return'^'+_0x40054c+'.0.0';}async function runInstall(_0xc28410){const _0x151c17=_0x4e6a,_0x334d82={'YGvOT':function(_0x9de69a,_0x433f0e,_0x2eccf1,_0x569438){return _0x9de69a(_0x433f0e,_0x2eccf1,_0x569438);},'RQlNy':'inherit','EAEvZ':_0x151c17(0x11a),'CvHiN':_0x151c17(0xc4)},_0x3642bb=resolveInstallTarget(_0xc28410);return new Promise(_0xe76009=>{const _0x3c4495=_0x151c17,_0xcef4db={'dLCeu':function(_0xf695fb,_0x33d37d){return _0xf695fb(_0x33d37d);}};console['log'](_0x3c4495(0xca)+PACKAGE_NAME+'@'+_0x3642bb+_0x3c4495(0x111));const _0x19e41=_0x334d82[_0x3c4495(0x110)](spawn,'npm',[_0x3c4495(0xc3),'-g',PACKAGE_NAME+'@'+_0x3642bb],{'stdio':['ignore','inherit',_0x334d82[_0x3c4495(0xe9)]],'shell':process[_0x3c4495(0xe6)]===_0x334d82['EAEvZ']});_0x19e41['on'](_0x334d82['CvHiN'],_0x5b71d4=>{_0xe76009(_0x5b71d4===0x0);}),_0x19e41['on']('error',()=>{const _0x29c60e=_0x3c4495;_0xcef4db[_0x29c60e(0x11f)](_0xe76009,![]);});});}function resolveInstalledCliPath(){const _0x22e1d2=_0x4e6a,_0x52516b={'JtwEy':function(_0x30d279,_0x3e609e,_0x5176cc){return _0x30d279(_0x3e609e,_0x5176cc);},'hNQdw':_0x22e1d2(0x115),'WSzra':_0x22e1d2(0x114),'uuXSZ':function(_0x3eaf83,_0x5c43b9,_0x5f0022,_0x318376,_0x395685){return _0x3eaf83(_0x5c43b9,_0x5f0022,_0x318376,_0x395685);},'hRKOg':_0x22e1d2(0xef)};try{const _0x349d41=_0x52516b['JtwEy'](execSync,_0x52516b['hNQdw'],{'encoding':_0x52516b['WSzra']})[_0x22e1d2(0xcd)](),_0x4eff65=_0x52516b['uuXSZ'](join,_0x349d41,PACKAGE_NAME,_0x52516b[_0x22e1d2(0xb9)],'cli.js');return existsSync(_0x4eff65)?_0x4eff65:null;}catch{return null;}}async function installMatchingChromium(){const _0x1fa2c1=_0x4e6a,_0x8afae3={'rrOMn':function(_0x29e519,_0x4743a1,_0x4e1490,_0x3ec9aa){return _0x29e519(_0x4743a1,_0x4e1490,_0x3ec9aa);},'XDIVS':_0x1fa2c1(0xc4),'UfLMQ':'error'},_0x21bec7=resolveInstalledCliPath(),_0x27b460='\x0a\x20\x20Could\x20not\x20auto-install\x20the\x20matching\x20Chromium\x20—\x20run\x20`ranger\x20setup\x20deps`\x20to\x20install\x20it.';if(!_0x21bec7){console[_0x1fa2c1(0xf2)](_0x27b460);return;}await new Promise(_0x2fa406=>{const _0x19f73c=_0x1fa2c1,_0x1b9187={'HSQmE':function(_0xb5889f){return _0xb5889f();}},_0x3bd8a4=_0x8afae3[_0x19f73c(0xd9)](spawn,process[_0x19f73c(0xd6)],[_0x21bec7,_0x19f73c(0x128),'deps'],{'stdio':'inherit'});_0x3bd8a4['on'](_0x8afae3[_0x19f73c(0xff)],()=>_0x2fa406()),_0x3bd8a4['on'](_0x8afae3['UfLMQ'],()=>{console['log'](_0x27b460),_0x1b9187['HSQmE'](_0x2fa406);});});}async function updateClaudeMarketplace(){const _0x219c64=_0x4e6a,_0x3b27d6={'hAyUZ':function(_0x17f70e,_0x26cb1c,_0x388dae,_0x33abe9){return _0x17f70e(_0x26cb1c,_0x388dae,_0x33abe9);},'gcBTy':_0x219c64(0x11b),'rywaf':'update','oOOXq':_0x219c64(0xe0)},_0x43fd5d=await _0x3b27d6['hAyUZ'](runCommand,'claude',[_0x3b27d6['gcBTy'],'marketplace',_0x3b27d6[_0x219c64(0xd1)],_0x3b27d6['oOOXq']],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x43fd5d)throw new Error(_0x219c64(0x113));}async function updateClaudePlugin(_0x305ef5=_0x18c0b6(0x122)){const _0x39ef86=_0x18c0b6,_0x293265={'Iyjbe':'plugin','YDphV':'update','DjpRo':function(_0x1ef5cf,_0x2a1e2f){return _0x1ef5cf!==_0x2a1e2f;},'sACyC':'user','wXNfs':_0x39ef86(0xfd),'GRbau':function(_0x1efa3f,_0xeee3ef){return _0x1efa3f===_0xeee3ef;},'vWTiq':_0x39ef86(0xba),'GoOhr':function(_0x3e516){return _0x3e516();}},_0xc38652=[_0x293265[_0x39ef86(0xec)],_0x293265[_0x39ef86(0xcf)],_0x39ef86(0xdc)];_0x293265[_0x39ef86(0xbf)](_0x305ef5,_0x293265[_0x39ef86(0x10a)])&&_0xc38652[_0x39ef86(0xd4)](_0x293265['wXNfs'],_0x305ef5);const _0x2b8d45=await runCommand('claude',_0xc38652,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x293265[_0x39ef86(0x105)](_0x305ef5,'project')||_0x305ef5===_0x293265[_0x39ef86(0x107)]?_0x293265['GoOhr'](getProjectRoot):undefined});if(!_0x2b8d45)throw new Error(_0x39ef86(0x102)+_0x305ef5+'\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}function isSkillInstalled(_0x10c57b,_0x1eca3d,_0x51301f){const _0x5dab0b=_0x18c0b6,_0x5579da={'foLBj':function(_0x140a8b,_0x50c82f){return _0x140a8b===_0x50c82f;},'EQAwk':_0x5dab0b(0xe2),'AINlh':function(_0x212872,_0x12945c){return _0x212872(_0x12945c);}},_0x449183=_0x5579da['foLBj'](_0x51301f,_0x5579da[_0x5dab0b(0x100)])?getOpencodeSkillsDir(_0x1eca3d):getSkillsDir(_0x1eca3d),_0x154a39=join(_0x449183,_0x10c57b);return _0x5579da[_0x5dab0b(0xf3)](existsSync,_0x154a39);}function _0x13eb(){const _0x30a202=['Qlxft','Update\x20failed:\x20','push','ssEjN','execPath','cwd','hgYRd','rrOMn','alpha','1614ZBrjLz','ranger@trailhead','timeoutMs','Latest\x20version:\x20\x20','CHTmO','trailhead','latest','opencode','.gitignore','Update\x20failed.','512567PePnXy','platform','toIhn','\x20ranger-managed\x20skill(s)...','RQlNy','stdio','\x0aClaude\x20plugin\x20updated\x20(project\x20scope).','Iyjbe','mijKx','41167sAKLGu','build','CrdWg','CNRfA','log','AINlh','FAoco','beta','maBaO','4282656VpVqtA','\x0aSuccessfully\x20installed\x20','...','zQjiX','split','length','--scope','\x0aReinstalling\x20','XDIVS','EQAwk','isFinite','Claude\x20plugin\x20update\x20failed\x20for\x20','PoLEW','\x20—\x20reinstalling\x20@','GRbau','\x22.\x20','vWTiq',').\x20Staying\x20on\x20','endsWith','sACyC','128700sAaPyo','EjVNT','warn','LIZYR','9dsucaK','YGvOT','...\x0a','NiEPe','Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','utf8','npm\x20root\x20-g','active-feature.txt','scope','262358WRJIty','findIndex','win32','plugin','WWUAF','kEJdi','VWPRv','dLCeu','dgeDw','inherit','user','fbicT','Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20','mkQKl','error','dSCzi','setup','gBHCQ','\x20\x20Failed\x20to\x20reinstall\x20','hRKOg','local','version','307917GGVOKL','352tmzNqs','\x0aClaude\x20plugin\x20updated\x20(local\x20scope).','DjpRo','451hexKhp','Update\x20failed\x20for\x20@','UFKje','install','close','project','kill','\x0aCould\x20not\x20check\x20latest\x20version:\x20','EqHVK','vEVaW','\x0aInstalling\x20','4953990LygKOw','utf-8','trim','\x0aSuccessfully\x20updated\x20to\x20version\x20','YDphV','MuJZf','rywaf'];_0x13eb=function(){return _0x30a202;};return _0x13eb();}async function reinstallSkills(_0x529627){const _0x23a670=_0x18c0b6,_0x1297ca={'LtAlB':_0x23a670(0x122),'dgeDw':function(_0x1ee330,_0x560cfc,_0x46a164,_0x21c578){return _0x1ee330(_0x560cfc,_0x46a164,_0x21c578);},'EjVNT':function(_0x50c217,_0x4ded4e,_0x516df1,_0x56c254){return _0x50c217(_0x4ded4e,_0x516df1,_0x56c254);},'hgYRd':'opencode','XZhfC':function(_0x1b618d,_0x3d9b97,_0xe13598){return _0x1b618d(_0x3d9b97,_0xe13598);},'VagOF':'\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','SvmkL':function(_0x394f82,_0x462bac,_0x4124a4){return _0x394f82(_0x462bac,_0x4124a4);}},_0x428bcf=[_0x23a670(0xc5),_0x1297ca['LtAlB']],_0x441367=[];for(const _0x20dced of _0x428bcf){for(const _0x1352b9 of RANGER_MANAGED_SKILLS){_0x1297ca[_0x23a670(0x120)](isSkillInstalled,_0x1352b9,_0x20dced,'claude')&&_0x441367['push']({'skillName':_0x1352b9,'level':_0x20dced,'platform':'claude'}),_0x1297ca[_0x23a670(0x10c)](isSkillInstalled,_0x1352b9,_0x20dced,_0x1297ca['hgYRd'])&&_0x441367[_0x23a670(0xd4)]({'skillName':_0x1352b9,'level':_0x20dced,'platform':_0x1297ca[_0x23a670(0xd8)]});}}for(const _0x1dba47 of _0x428bcf){for(const _0x53d77d of DEPRECATED_SKILLS){await _0x1297ca['XZhfC'](removeSkill,_0x53d77d,_0x1dba47);}}if(_0x441367[_0x23a670(0xfc)]===0x0){console['log'](_0x1297ca['VagOF']);return;}console[_0x23a670(0xf2)](_0x23a670(0xfe)+_0x441367[_0x23a670(0xfc)]+_0x23a670(0xe8));for(const {skillName:_0x44fc8d,level:_0x3b9028,platform:_0x108cd0}of _0x441367){try{await _0x1297ca['SvmkL'](installSkill,_0x44fc8d,{'level':_0x3b9028,'cliVersion':_0x529627,'platform':_0x108cd0});}catch(_0x1e97b6){console['warn'](_0x23a670(0xb8)+_0x108cd0+'\x20'+_0x3b9028+'\x20skill\x20'+_0x44fc8d+':',_0x1e97b6);}}}async function ensureActiveProfileGitignored(){const _0x1c0447=_0x18c0b6,_0x20a76a={'kEJdi':function(_0xf00874,_0x211919){return _0xf00874(_0x211919);},'VXYCh':_0x1c0447(0xcc),'PvoKm':function(_0x1bfd80,_0x5e978a){return _0x1bfd80===_0x5e978a;}},_0x5474f7=join(getRangerDir(),_0x1c0447(0xe3));if(!_0x20a76a[_0x1c0447(0x11d)](existsSync,_0x5474f7))return![];let _0x1b48e5='';try{_0x1b48e5=await readFile(_0x5474f7,_0x20a76a['VXYCh']);}catch{return![];}const _0x412d8b=_0x1b48e5[_0x1c0447(0xfb)](/\r?\n/);if(_0x412d8b['some'](_0x2e8ab8=>_0x2e8ab8[_0x1c0447(0xcd)]()==='active-profile.txt'))return![];let _0x13cc86=_0x412d8b[_0x1c0447(0x119)](_0x4d075b=>_0x4d075b['trim']()===_0x1c0447(0x116));_0x20a76a['PvoKm'](_0x13cc86,-0x1)&&(_0x13cc86=_0x412d8b[_0x1c0447(0xfc)]);_0x412d8b['splice'](_0x13cc86,0x0,'active-profile.txt');let _0x59738d=_0x412d8b['join']('\x0a');!_0x59738d[_0x1c0447(0x109)]('\x0a')&&(_0x59738d+='\x0a');try{await writeFile(_0x5474f7,_0x59738d,_0x1c0447(0xcc));}catch{return![];}return!![];}export async function update(){const _0x4f0de7=_0x18c0b6,_0x4d0efc={'WWUAF':function(_0xc5b215){return _0xc5b215();},'mijKx':_0x4f0de7(0xe1),'zQjiX':'Checking\x20for\x20updates...','FAoco':function(_0x3054d4,_0x2f0e40){return _0x3054d4+_0x2f0e40;},'LIZYR':function(_0x13a23a,_0x545b41){return _0x13a23a+_0x545b41;},'YPzwi':'Attempting\x20install\x20anyway...','fbicT':'\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','CbTke':function(_0xd28c75,_0xc4dd7a){return _0xd28c75<_0xc4dd7a;},'NiEPe':function(_0x36116c,_0x35c1ed){return _0x36116c(_0x35c1ed);},'PoLEW':function(_0x3046e7){return _0x3046e7();},'dfdIL':'trailhead','zuwNd':function(_0x4f0b1f,_0x22e101){return _0x4f0b1f(_0x22e101);},'pVkLT':_0x4f0de7(0xdc),'mkQKl':'\x0aClaude\x20marketplace\x20updated\x20(trailhead).','JEBor':_0x4f0de7(0x122),'GxOmb':function(_0x51a457,_0x2a45ff){return _0x51a457(_0x2a45ff);},'toIhn':_0x4f0de7(0xba),'XavQF':'\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','gBHCQ':'\x0a✅\x20Update\x20complete!'},_0x2526f2=_0x4d0efc[_0x4f0de7(0x11c)](getCurrentVersion);console[_0x4f0de7(0xf2)]('\x0aCurrent\x20version:\x20'+_0x2526f2);const _0xfdd9b3=resolveDistTag(_0x2526f2);if(_0xfdd9b3!==_0x4d0efc[_0x4f0de7(0xed)]){console['log']('Prerelease\x20channel\x20detected\x20(@'+_0xfdd9b3+_0x4f0de7(0x108)+_0xfdd9b3+_0x4f0de7(0x104)+_0xfdd9b3+_0x4f0de7(0xf9));const _0xba573f=await runInstall(_0x2526f2);if(!_0xba573f)throw new Error(_0x4f0de7(0xc1)+_0xfdd9b3+'\x20channel.');const _0x2fabe9=getCurrentVersion();console['log'](_0x4f0de7(0xf8)+PACKAGE_NAME+'@'+_0xfdd9b3+'.'),await reinstallSkills(_0x2fabe9),await installMatchingChromium(),await ensureActiveProfileGitignored(),console['log']('\x0a✅\x20Update\x20complete!');return;}console['log'](_0x4d0efc[_0x4f0de7(0xfa)]);const _0x2d4196=parseInt(_0x2526f2['split']('.')[0x0],0xa);if(!Number[_0x4f0de7(0x101)](_0x2d4196))throw new Error(_0x4d0efc[_0x4f0de7(0xf4)](_0x4d0efc[_0x4f0de7(0x10e)]('Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22'+_0x2526f2+_0x4f0de7(0x106),_0x4f0de7(0x124)),'npm\x20i\x20-g\x20'+PACKAGE_NAME+'@latest'));const _0x370da9=getLatestVersion(_0x2d4196);let _0x2f0546=_0x2526f2;if(!_0x370da9[_0x4f0de7(0xbb)]){console[_0x4f0de7(0x10d)](_0x4f0de7(0xc7)+_0x370da9[_0x4f0de7(0x126)]),console['log'](_0x4d0efc['YPzwi']);const _0x2c24dc=await runInstall(_0x2526f2);if(_0x2c24dc)console['log']('\x0aSuccessfully\x20installed\x20latest\x20version.'),_0x2f0546=getCurrentVersion(),await installMatchingChromium();else throw new Error(_0x4f0de7(0xd3)+_0x370da9['error']);}else{const _0x322d04=_0x370da9['version'];console['log'](_0x4f0de7(0xde)+_0x322d04);const _0x4a0a2b=compareVersions(_0x2526f2,_0x322d04);if(_0x4a0a2b===0x0)console[_0x4f0de7(0xf2)](_0x4d0efc[_0x4f0de7(0x123)]);else{if(_0x4d0efc['CbTke'](_0x4a0a2b,0x0))console[_0x4f0de7(0xf2)]('\x0aYour\x20version\x20('+_0x2526f2+')\x20is\x20newer\x20than\x20the\x20published\x20version\x20('+_0x322d04+').');else{const _0x12dfb7=await _0x4d0efc['NiEPe'](runInstall,_0x2526f2);if(_0x12dfb7)console['log'](_0x4f0de7(0xce)+_0x322d04),_0x2f0546=_0x322d04,await _0x4d0efc[_0x4f0de7(0x103)](installMatchingChromium);else throw new Error(_0x4f0de7(0xe4));}}}await reinstallSkills(_0x2f0546);const _0x1358e7=await _0x4d0efc[_0x4f0de7(0x112)](isMarketplaceAdded,_0x4d0efc['dfdIL']),_0x167263=await _0x4d0efc['zuwNd'](isPluginInstalled,_0x4d0efc['pVkLT']);_0x1358e7&&(await _0x4d0efc[_0x4f0de7(0x103)](updateClaudeMarketplace),console['log'](_0x4d0efc[_0x4f0de7(0x125)]));if(_0x167263){const _0x8121db=await _0x4d0efc['zuwNd'](getPluginInfo,_0x4d0efc['pVkLT']),_0x3ac9c2=_0x8121db?.[_0x4f0de7(0x117)]??_0x4d0efc['JEBor'];await _0x4d0efc['GxOmb'](updateClaudePlugin,_0x3ac9c2);if(_0x3ac9c2===_0x4f0de7(0xc5))console['log'](_0x4f0de7(0xeb));else _0x3ac9c2===_0x4d0efc[_0x4f0de7(0xe7)]?console['log'](_0x4f0de7(0xbe)):console['log'](_0x4d0efc['XavQF']);}const _0x26ae94=await ensureActiveProfileGitignored();console[_0x4f0de7(0xf2)](_0x4d0efc[_0x4f0de7(0x129)]);}
@@ -1 +1 @@
1
- (function(_0x5ac946,_0x5b7e3d){const _0x9a5792=_0x4aad,_0x319f54=_0x5ac946();while(!![]){try{const _0x30002=-parseInt(_0x9a5792(0x10c))/0x1*(parseInt(_0x9a5792(0xea))/0x2)+-parseInt(_0x9a5792(0xf7))/0x3*(parseInt(_0x9a5792(0xe8))/0x4)+parseInt(_0x9a5792(0xf9))/0x5*(-parseInt(_0x9a5792(0xf8))/0x6)+-parseInt(_0x9a5792(0xf4))/0x7+-parseInt(_0x9a5792(0x102))/0x8+parseInt(_0x9a5792(0xef))/0x9*(-parseInt(_0x9a5792(0xfb))/0xa)+parseInt(_0x9a5792(0xfc))/0xb;if(_0x30002===_0x5b7e3d)break;else _0x319f54['push'](_0x319f54['shift']());}catch(_0x1de792){_0x319f54['push'](_0x319f54['shift']());}}}(_0x1377,0x3910a));import{fetchAuthConfig,fetchCloudProfile,manualBrowserLogin,serverSideLogin}from'./utils/cloudProfile.js';function _0x4aad(_0x15bc36,_0x492285){_0x15bc36=_0x15bc36-0xe6;const _0x137731=_0x1377();let _0x4aadca=_0x137731[_0x15bc36];return _0x4aadca;}import{isInteractive,resolveAuthEnvironmentLocally}from'./utils/cloudProfileSession.js';function _0x1377(){const _0x41db99=['CciJi','message','eAtpf','status','29860urILjP','yiyUx','75146AlKeug','domains','\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a','not_configured','success','886653yJvIgT','\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a','error','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a','Run\x20`ranger\x20profile\x20update\x20','2543772iyMWOc','No\x20profile\x20named\x20\x22','setupHeaders','57QdaMaG','2324526HoXZcK','5DaJDjC','`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).','10wJSDLg','15685879oQOOFQ','catch','\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a','✓\x20Session\x20refreshed\x20for\x20\x22','Can\x27t\x20refresh\x20\x22','Refreshing\x20session\x20for\x20\x22','1308072MiwmMA','environmentKey','exit','cwd','XCRYa','oeqIc','settings','Profile\x20\x22','Capturing\x20a\x20fresh\x20session\x20for\x20\x22','log','1Qqzkim','\x20\x20Falling\x20back\x20to\x20headed\x20browser...','fqozW','local','\x20\x20Server-side\x20login\x20error:\x20'];_0x1377=function(){return _0x41db99;};return _0x1377();}import{mergeCloudProfileSettings,readProfileOverrides}from'./utils/projectsConfig.js';import{getEnvNames}from'./env.js';export async function updateEnv(_0x43bdf9,_0xdbf24,_0x271a1f){const _0x3dad23=_0x4aad,_0x31d1fc={'GZPWX':function(_0x531d99){return _0x531d99();},'XCRYa':function(_0x13d25b,_0x2ccb7a){return _0x13d25b===_0x2ccb7a;},'lnwZW':'legacy','eAtpf':function(_0x1b079,_0x160e24){return _0x1b079===_0x160e24;},'XqbHr':function(_0x10b66e,_0x942ec8,_0xe31017){return _0x10b66e(_0x942ec8,_0xe31017);},'fqozW':_0x3dad23(0xed),'CciJi':'\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...','bmeoT':'\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:','Ahmzp':_0x3dad23(0x10d),'vtbxZ':function(_0x42affc,_0x4d05c8){return _0x42affc instanceof _0x4d05c8;},'yiyUx':function(_0x5a0e20,_0x1f9721,_0x19906c){return _0x5a0e20(_0x1f9721,_0x19906c);},'vQLNg':function(_0x36251c,_0x55e6ff){return _0x36251c??_0x55e6ff;},'oeqIc':function(_0x31ed2a,_0x2bfe96){return _0x31ed2a+_0x2bfe96;},'xyJuh':function(_0x2ce5ba){return _0x2ce5ba();}},_0x1b3a4e=await fetchCloudProfile(_0x43bdf9);if(!_0x1b3a4e){const {envTypes:_0x372a8c}=await _0x31d1fc['GZPWX'](getEnvNames),_0x1d87c1=_0x372a8c[_0x43bdf9];(_0x31d1fc['XCRYa'](_0x1d87c1,_0x31d1fc['lnwZW'])||_0x31d1fc['XCRYa'](_0x1d87c1,_0x3dad23(0x10f))||_0x31d1fc[_0x3dad23(0xe6)](_0x1d87c1,'ci'))&&(console[_0x3dad23(0xf1)](_0x3dad23(0x109)+_0x43bdf9+_0x3dad23(0xec)+_0x3dad23(0xf2)+'\x0a'+('\x20\x20ranger\x20profile\x20add\x20'+_0x43bdf9+'\x0a')),process['exit'](0x1));}!_0x1b3a4e&&(console[_0x3dad23(0xf1)](_0x3dad23(0xf5)+_0x43bdf9+'\x22\x20found.\x0a'+'Create\x20it\x20with:\x0a'+'\x0a'+('\x20\x20ranger\x20profile\x20add\x20'+_0x43bdf9+'\x0a')),process[_0x3dad23(0x104)](0x1));const _0x2fac38=await fetchAuthConfig()[_0x3dad23(0xfd)](()=>null),_0x4c5cf1=_0x1b3a4e[_0x3dad23(0x103)]&&_0x2fac38?_0x31d1fc['XqbHr'](resolveAuthEnvironmentLocally,_0x2fac38,_0x1b3a4e[_0x3dad23(0x103)]):null;if(_0x1b3a4e['environmentKey']&&_0x4c5cf1&&!_0x271a1f?.['manual']){console['log'](_0x3dad23(0x101)+_0x43bdf9+'\x22\x20via\x20server-side\x20login...');try{const _0x131825=await _0x31d1fc['XqbHr'](serverSideLogin,_0x43bdf9,{'force':!![]});if(_0x131825['status']===_0x3dad23(0xee)){console[_0x3dad23(0x10b)](_0x3dad23(0xff)+_0x43bdf9+'\x22.');return;}_0x31d1fc[_0x3dad23(0x106)](_0x131825[_0x3dad23(0xe7)],_0x31d1fc[_0x3dad23(0x10e)])?console[_0x3dad23(0x10b)](_0x31d1fc[_0x3dad23(0x111)]):(_0x131825['test_output']&&(console[_0x3dad23(0x10b)](_0x31d1fc['bmeoT']),console['log'](_0x131825['test_output'])),console[_0x3dad23(0x10b)](_0x31d1fc['Ahmzp']));}catch(_0x549d1c){console[_0x3dad23(0x10b)](_0x3dad23(0x110)+(_0x31d1fc['vtbxZ'](_0x549d1c,Error)?_0x549d1c[_0x3dad23(0x112)]:String(_0x549d1c))),console[_0x3dad23(0x10b)]('\x20\x20Falling\x20back\x20to\x20headed\x20browser...');}}const _0x7ec1d3=_0x31d1fc[_0x3dad23(0xe9)](readProfileOverrides,process[_0x3dad23(0x105)](),_0x43bdf9),_0x4428ec=mergeCloudProfileSettings(_0x1b3a4e[_0x3dad23(0x108)]??{},_0x31d1fc['vQLNg'](_0x7ec1d3,undefined)),_0x5c488d=_0x4428ec[_0x3dad23(0xf6)],_0x3aa693=_0x4428ec['baseUrl'],_0xe4a8e5=_0x4c5cf1?{..._0x4c5cf1,'domains':_0x3aa693?[_0x3aa693,..._0x4c5cf1[_0x3dad23(0xeb)]]:_0x4c5cf1['domains'],'setupHeaders':_0x5c488d??_0x4c5cf1['setupHeaders']}:_0x3aa693?{'key':_0x1b3a4e[_0x3dad23(0x103)]??'','domains':[_0x3aa693],'setupHeaders':_0x5c488d}:null;!_0xe4a8e5&&(console['error'](_0x31d1fc[_0x3dad23(0x107)](_0x3dad23(0x109)+_0x43bdf9+_0x3dad23(0xfe),'Re-create\x20it\x20with:\x0a')+'\x0a'+('\x20\x20ranger\x20profile\x20add\x20'+_0x43bdf9+'\x20--url\x20<your-app-url>\x0a')),process['exit'](0x1)),!_0x31d1fc['xyJuh'](isInteractive)&&(console[_0x3dad23(0xf1)](_0x3dad23(0x100)+_0x43bdf9+_0x3dad23(0xf0)+(_0x3dad23(0xf3)+_0x43bdf9+_0x3dad23(0xfa))),process[_0x3dad23(0x104)](0x1)),console[_0x3dad23(0x10b)](_0x3dad23(0x10a)+_0x43bdf9+'\x22\x20via\x20headed\x20browser...'),await manualBrowserLogin(_0x1b3a4e,_0xe4a8e5),console[_0x3dad23(0x10b)](_0x3dad23(0xff)+_0x43bdf9+'\x22.');}
1
+ function _0x4d29(){const _0x230281=['vUqma','334082cyNDEf','22750pvgTFe','environmentKey','message','Capturing\x20a\x20fresh\x20session\x20for\x20\x22','not_configured','\x20\x20Server-side\x20login\x20error:\x20','cswUa','lEYSJ','exit','sZxHa','\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a','No\x20profile\x20named\x20\x22','1688TLctbJ','3276jBCLRI','hyrWP','456cacOsu','EBSxh','1327326VcMRcb','\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...','zDjQD','FfUxP','log','uUngx','369FiGpGi','catch','local','GfYDy','success','223776kxVMMM','`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).','Create\x20it\x20with:\x0a','\x22\x20found.\x0a','Refreshing\x20session\x20for\x20\x22','error','849815MQsSZb','MmwZR','\x20\x20ranger\x20profile\x20add\x20','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a','domains'];_0x4d29=function(){return _0x230281;};return _0x4d29();}(function(_0x1642e4,_0x30a322){const _0x2bf2d4=_0x48da,_0x297243=_0x1642e4();while(!![]){try{const _0x12e2de=parseInt(_0x2bf2d4(0xe6))/0x1+-parseInt(_0x2bf2d4(0xc9))/0x2+-parseInt(_0x2bf2d4(0xd7))/0x3*(-parseInt(_0x2bf2d4(0xd9))/0x4)+parseInt(_0x2bf2d4(0xec))/0x5+-parseInt(_0x2bf2d4(0xdb))/0x6+-parseInt(_0x2bf2d4(0xca))/0x7+parseInt(_0x2bf2d4(0xd6))/0x8*(-parseInt(_0x2bf2d4(0xe1))/0x9);if(_0x12e2de===_0x30a322)break;else _0x297243['push'](_0x297243['shift']());}catch(_0x79ada0){_0x297243['push'](_0x297243['shift']());}}}(_0x4d29,0x1cd30));function _0x48da(_0x3eff59,_0x102606){_0x3eff59=_0x3eff59-0xc7;const _0x4d2980=_0x4d29();let _0x48da6a=_0x4d2980[_0x3eff59];return _0x48da6a;}import{fetchAuthConfig,fetchCloudProfile,manualBrowserLogin,serverSideLogin}from'./utils/cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./utils/cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./utils/projectsConfig.js';import{getEnvNames}from'./env.js';export async function updateEnv(_0x161790,_0x2a3020,_0x1d5921){const _0x73bd1f=_0x48da,_0x3d3b92={'GfYDy':function(_0x12bdd1,_0xb45f56){return _0x12bdd1(_0xb45f56);},'cswUa':function(_0x3467a3,_0x3db400){return _0x3467a3===_0x3db400;},'FfUxP':'legacy','hyrWP':_0x73bd1f(0xe3),'zDjQD':function(_0xefa750,_0x4bacf8){return _0xefa750===_0x4bacf8;},'hhftd':function(_0x1e3daf,_0xacc0f1){return _0x1e3daf+_0xacc0f1;},'qtNbz':function(_0x575e10,_0x50a70e){return _0x575e10+_0x50a70e;},'hancX':function(_0x2cf88e){return _0x2cf88e();},'lEYSJ':function(_0x1e88e1,_0x7b084d,_0x2e225b){return _0x1e88e1(_0x7b084d,_0x2e225b);},'sZxHa':_0x73bd1f(0xe5),'BcdzP':function(_0x59e65e,_0x2b52ec){return _0x59e65e===_0x2b52ec;},'MmwZR':'\x20\x20Falling\x20back\x20to\x20headed\x20browser...','EBSxh':function(_0x4d8531,_0x203796,_0x30e732){return _0x4d8531(_0x203796,_0x30e732);},'uUngx':function(_0x306fe2,_0xd6ac92){return _0x306fe2??_0xd6ac92;},'aCnvY':function(_0x4f1a96,_0x1bc73c){return _0x4f1a96+_0x1bc73c;},'vUqma':function(_0x5e19fd){return _0x5e19fd();},'rFUOt':function(_0x1b7252,_0x1bc257,_0x1c61f8){return _0x1b7252(_0x1bc257,_0x1c61f8);}},_0x253504=await _0x3d3b92[_0x73bd1f(0xe4)](fetchCloudProfile,_0x161790);if(!_0x253504){const {envTypes:_0x39d844}=await getEnvNames(),_0xd9ef1b=_0x39d844[_0x161790];(_0x3d3b92[_0x73bd1f(0xd0)](_0xd9ef1b,_0x3d3b92[_0x73bd1f(0xde)])||_0x3d3b92[_0x73bd1f(0xd0)](_0xd9ef1b,_0x3d3b92[_0x73bd1f(0xd8)])||_0x3d3b92[_0x73bd1f(0xdd)](_0xd9ef1b,'ci'))&&(console[_0x73bd1f(0xeb)](_0x3d3b92['hhftd']('Profile\x20\x22'+_0x161790+'\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a'+_0x73bd1f(0xef),'\x0a')+('\x20\x20ranger\x20profile\x20add\x20'+_0x161790+'\x0a')),process['exit'](0x1));}!_0x253504&&(console[_0x73bd1f(0xeb)](_0x3d3b92['qtNbz'](_0x73bd1f(0xd5)+_0x161790+_0x73bd1f(0xe9)+_0x73bd1f(0xe8),'\x0a')+(_0x73bd1f(0xee)+_0x161790+'\x0a')),process['exit'](0x1));const _0x219b87=await _0x3d3b92['hancX'](fetchAuthConfig)[_0x73bd1f(0xe2)](()=>null),_0x11db47=_0x253504[_0x73bd1f(0xcb)]&&_0x219b87?resolveAuthEnvironmentLocally(_0x219b87,_0x253504[_0x73bd1f(0xcb)]):null;if(_0x253504['environmentKey']&&_0x11db47&&!_0x1d5921?.['manual']){console[_0x73bd1f(0xdf)](_0x73bd1f(0xea)+_0x161790+'\x22\x20via\x20server-side\x20login...');try{const _0x395b36=await _0x3d3b92['lEYSJ'](serverSideLogin,_0x161790,{'force':!![]});if(_0x395b36['status']===_0x3d3b92[_0x73bd1f(0xd3)]){console['log']('✓\x20Session\x20refreshed\x20for\x20\x22'+_0x161790+'\x22.');return;}_0x3d3b92['BcdzP'](_0x395b36['status'],_0x73bd1f(0xce))?console[_0x73bd1f(0xdf)](_0x73bd1f(0xdc)):(_0x395b36['test_output']&&(console['log']('\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:'),console['log'](_0x395b36['test_output'])),console[_0x73bd1f(0xdf)](_0x3d3b92[_0x73bd1f(0xed)]));}catch(_0x4a3f77){console['log'](_0x73bd1f(0xcf)+(_0x4a3f77 instanceof Error?_0x4a3f77[_0x73bd1f(0xcc)]:_0x3d3b92[_0x73bd1f(0xe4)](String,_0x4a3f77))),console[_0x73bd1f(0xdf)](_0x3d3b92['MmwZR']);}}const _0x56b110=_0x3d3b92[_0x73bd1f(0xd1)](readProfileOverrides,process['cwd'](),_0x161790),_0x4de9a4=_0x3d3b92[_0x73bd1f(0xda)](mergeCloudProfileSettings,_0x253504['settings']??{},_0x3d3b92[_0x73bd1f(0xe0)](_0x56b110,undefined)),_0x29954c=_0x4de9a4['setupHeaders'],_0x114087=_0x4de9a4['baseUrl'],_0x49982b=_0x11db47?{..._0x11db47,'domains':_0x114087?[_0x114087,..._0x11db47['domains']]:_0x11db47[_0x73bd1f(0xc7)],'setupHeaders':_0x29954c??_0x11db47['setupHeaders']}:_0x114087?{'key':_0x253504[_0x73bd1f(0xcb)]??'','domains':[_0x114087],'setupHeaders':_0x29954c}:null;!_0x49982b&&(console['error'](_0x3d3b92['aCnvY'](_0x3d3b92['aCnvY']('Profile\x20\x22'+_0x161790+'\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a'+'Re-create\x20it\x20with:\x0a','\x0a'),'\x20\x20ranger\x20profile\x20add\x20'+_0x161790+'\x20--url\x20<your-app-url>\x0a')),process[_0x73bd1f(0xd2)](0x1)),!_0x3d3b92[_0x73bd1f(0xc8)](isInteractive)&&(console[_0x73bd1f(0xeb)]('Can\x27t\x20refresh\x20\x22'+_0x161790+_0x73bd1f(0xd4)+('Run\x20`ranger\x20profile\x20update\x20'+_0x161790+_0x73bd1f(0xe7))),process[_0x73bd1f(0xd2)](0x1)),console['log'](_0x73bd1f(0xcd)+_0x161790+'\x22\x20via\x20headed\x20browser...'),await _0x3d3b92['rFUOt'](manualBrowserLogin,_0x253504,_0x49982b),console[_0x73bd1f(0xdf)]('✓\x20Session\x20refreshed\x20for\x20\x22'+_0x161790+'\x22.');}
@@ -1 +1 @@
1
- (function(_0x3473de,_0x432da2){const _0x17b986=_0x2106,_0x5a0e63=_0x3473de();while(!![]){try{const _0x496ec1=parseInt(_0x17b986(0x1e0))/0x1*(-parseInt(_0x17b986(0x1e3))/0x2)+parseInt(_0x17b986(0x1e4))/0x3+-parseInt(_0x17b986(0x1e8))/0x4*(parseInt(_0x17b986(0x1df))/0x5)+parseInt(_0x17b986(0x1e5))/0x6*(-parseInt(_0x17b986(0x1eb))/0x7)+-parseInt(_0x17b986(0x1ec))/0x8*(parseInt(_0x17b986(0x1e2))/0x9)+-parseInt(_0x17b986(0x1ed))/0xa*(parseInt(_0x17b986(0x1de))/0xb)+parseInt(_0x17b986(0x1e6))/0xc;if(_0x496ec1===_0x432da2)break;else _0x5a0e63['push'](_0x5a0e63['shift']());}catch(_0x7af3c1){_0x5a0e63['push'](_0x5a0e63['shift']());}}}(_0x25d8,0x28d14));function _0x2106(_0x3d2be1,_0x3d58e9){_0x3d2be1=_0x3d2be1-0x1de;const _0x25d8ea=_0x25d8();let _0x21061c=_0x25d8ea[_0x3d2be1];return _0x21061c;}import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x25d8(){const _0x5eb643=['qIOAI','2654550rnWOqH','295010ZHjUXG','744702lcQgRW','1364838BssiYI','13383540wENFzy','Profile\x20\x22','120LcYMDk','kykZm','log','7YxwRmz','8czbiqg','20HSWfSM','Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20','1246289ZOFmoy','25385gTywzR','2JcgGDx'];_0x25d8=function(){return _0x5eb643;};return _0x25d8();}export async function useEnv(_0x117410){const _0x26662b=_0x2106,_0xc6cb96={'BBCPl':function(_0xa4a814,_0x11f621){return _0xa4a814(_0x11f621);},'kykZm':function(_0x257005,_0x3e4408){return _0x257005(_0x3e4408);},'qIOAI':function(_0x214b22,_0x4c235e){return _0x214b22+_0x4c235e;}},_0x400c38=getEnvDir(_0x117410),_0x35c489=join(_0x400c38,'settings.json'),_0x46818d=_0xc6cb96['BBCPl'](existsSync,_0x400c38)&&_0xc6cb96[_0x26662b(0x1e9)](existsSync,_0x35c489);if(_0x46818d){await _0xc6cb96['kykZm'](writeActiveProfileName,_0x117410),console[_0x26662b(0x1ea)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x117410+'\x22');return;}let _0x29383d=null,_0x2e4099=![];try{_0x29383d=await fetchCloudProfile(_0x117410);if(!_0x29383d)_0x2e4099=!![];}catch(_0x55fc42){_0x55fc42 instanceof ApiError&&_0x55fc42['status']===0x194&&(_0x2e4099=!![]);}if(_0x2e4099)throw new Error(_0xc6cb96['qIOAI'](_0xc6cb96[_0x26662b(0x1e1)](_0x26662b(0x1e7)+_0x117410+_0x26662b(0x1ef),_0x26662b(0x1ee)),'`ranger\x20profile\x20add\x20'+_0x117410+'`\x20to\x20create\x20one.'));await writeActiveProfileName(_0x117410),console[_0x26662b(0x1ea)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x117410+'\x22');}
1
+ (function(_0x26123e,_0x357853){const _0x45a8e0=_0x1c4b,_0x202e1a=_0x26123e();while(!![]){try{const _0x56a712=-parseInt(_0x45a8e0(0xb9))/0x1+parseInt(_0x45a8e0(0xc4))/0x2*(parseInt(_0x45a8e0(0xbf))/0x3)+-parseInt(_0x45a8e0(0xbb))/0x4+-parseInt(_0x45a8e0(0xba))/0x5*(-parseInt(_0x45a8e0(0xc9))/0x6)+parseInt(_0x45a8e0(0xc3))/0x7+parseInt(_0x45a8e0(0xc2))/0x8*(parseInt(_0x45a8e0(0xc7))/0x9)+-parseInt(_0x45a8e0(0xc0))/0xa;if(_0x56a712===_0x357853)break;else _0x202e1a['push'](_0x202e1a['shift']());}catch(_0x554e6f){_0x202e1a['push'](_0x202e1a['shift']());}}}(_0x2e29,0x9c17a));import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';function _0x1c4b(_0x483e5e,_0x59f8ae){_0x483e5e=_0x483e5e-0xb9;const _0x2e29c2=_0x2e29();let _0x1c4b6a=_0x2e29c2[_0x483e5e];return _0x1c4b6a;}import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';export async function useEnv(_0x4ba824){const _0x1c5b93=_0x1c4b,_0x122926={'aRnug':function(_0x2c6cbc,_0x2aa39c,_0x142189){return _0x2c6cbc(_0x2aa39c,_0x142189);},'CIKCW':_0x1c5b93(0xbd),'srjWy':function(_0x4d9bbb,_0x3482e4){return _0x4d9bbb(_0x3482e4);},'XlHlV':function(_0x214d7e,_0x1e6976){return _0x214d7e(_0x1e6976);},'EDFJo':function(_0x1b5133,_0x48ff8a){return _0x1b5133+_0x48ff8a;}},_0x3d6191=getEnvDir(_0x4ba824),_0x2794=_0x122926[_0x1c5b93(0xc1)](join,_0x3d6191,_0x122926['CIKCW']),_0x292947=_0x122926['srjWy'](existsSync,_0x3d6191)&&_0x122926[_0x1c5b93(0xca)](existsSync,_0x2794);if(_0x292947){await writeActiveProfileName(_0x4ba824),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x4ba824+'\x22');return;}let _0x1d8d37=null,_0x237b53=![];try{_0x1d8d37=await fetchCloudProfile(_0x4ba824);if(!_0x1d8d37)_0x237b53=!![];}catch(_0x5db34c){_0x5db34c instanceof ApiError&&_0x5db34c['status']===0x194&&(_0x237b53=!![]);}if(_0x237b53)throw new Error(_0x122926[_0x1c5b93(0xbc)]('Profile\x20\x22'+_0x4ba824+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20','Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+(_0x1c5b93(0xc6)+_0x4ba824+_0x1c5b93(0xc8)));await writeActiveProfileName(_0x4ba824),console[_0x1c5b93(0xbe)](_0x1c5b93(0xc5)+_0x4ba824+'\x22');}function _0x2e29(){const _0x34adbf=['EDFJo','settings.json','log','1191NoVwab','10921890LhtcBG','aRnug','2144gdiJQp','4566912UmlmHo','5554XHfAdT','\x0a✓\x20Now\x20using\x20profile\x20\x22','`ranger\x20profile\x20add\x20','20439gfIAHp','`\x20to\x20create\x20one.','66hqJGKc','XlHlV','1035835YbsLIp','342870BqVAel','1401796RhyuDx'];_0x2e29=function(){return _0x34adbf;};return _0x2e29();}
@@ -1 +1 @@
1
- const _0x2d1c42=_0x36e0;(function(_0xa85298,_0xe3aa94){const _0x1e90af=_0x36e0,_0x183e60=_0xa85298();while(!![]){try{const _0x43784d=parseInt(_0x1e90af(0xb8))/0x1*(parseInt(_0x1e90af(0xc5))/0x2)+-parseInt(_0x1e90af(0xc0))/0x3+parseInt(_0x1e90af(0xbe))/0x4*(parseInt(_0x1e90af(0xc4))/0x5)+parseInt(_0x1e90af(0xc6))/0x6*(-parseInt(_0x1e90af(0xb9))/0x7)+parseInt(_0x1e90af(0xc3))/0x8+-parseInt(_0x1e90af(0xbf))/0x9+parseInt(_0x1e90af(0xc2))/0xa;if(_0x43784d===_0xe3aa94)break;else _0x183e60['push'](_0x183e60['shift']());}catch(_0x1d50f3){_0x183e60['push'](_0x183e60['shift']());}}}(_0x165d,0x4f57d));import{existsSync}from'fs';import{readFile}from'fs/promises';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';import{readLastProfile,writeLastProfile}from'./projectsConfig.js';const LEGACY_ACTIVE_PROFILE_FILE=_0x2d1c42(0xbd),LEGACY_ACTIVE_ENV_FILE='active-env.txt';function readLegacyActiveProfileFile(){const _0x54e9db=_0x2d1c42,_0x44101a={'KWFZb':function(_0x35cef4){return _0x35cef4();},'xJRCD':function(_0xebfc0d,_0x4c3654,_0x5adb12){return _0xebfc0d(_0x4c3654,_0x5adb12);},'aJxjc':function(_0x4943f9){return _0x4943f9();},'wprcD':function(_0x13f146,_0x4ecc8a){return _0x13f146(_0x4ecc8a);}},_0x52daf5=[join(_0x44101a[_0x54e9db(0xb7)](getRangerDir),LEGACY_ACTIVE_PROFILE_FILE),_0x44101a[_0x54e9db(0xbc)](join,_0x44101a['aJxjc'](getRangerHomeDir),LEGACY_ACTIVE_PROFILE_FILE),_0x44101a['xJRCD'](join,getRangerDir(),LEGACY_ACTIVE_ENV_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_ENV_FILE)];for(const _0x3f36ee of _0x52daf5){if(_0x44101a['wprcD'](existsSync,_0x3f36ee))return _0x3f36ee;}return null;}export async function readActiveProfileName(){const _0x5b3c7a=_0x2d1c42,_0xb2bbf3={'ufAYs':'utf-8'},_0x1b0d89=readLastProfile(process['cwd']());if(_0x1b0d89)return _0x1b0d89;const _0x545744=readLegacyActiveProfileFile();if(!_0x545744)return null;try{return(await readFile(_0x545744,_0xb2bbf3[_0x5b3c7a(0xbb)]))['trim']()||null;}catch{return null;}}function _0x36e0(_0x551347,_0x4d8344){_0x551347=_0x551347-0xb7;const _0x165dfc=_0x165d();let _0x36e0dd=_0x165dfc[_0x551347];return _0x36e0dd;}export async function writeActiveProfileName(_0x55f803){const _0x29a4c1=_0x2d1c42,_0x223689={'QZWuw':function(_0x4f0169,_0xd0a5ef,_0xf2e2ab){return _0x4f0169(_0xd0a5ef,_0xf2e2ab);}};_0x223689[_0x29a4c1(0xba)](writeLastProfile,process[_0x29a4c1(0xc1)](),_0x55f803);}function _0x165d(){const _0x2a0cd5=['2594664tVpuFu','240OUhtdF','803154aZcgtu','1272sPQMyN','KWFZb','1RcpILs','2996hPvmKZ','QZWuw','ufAYs','xJRCD','active-profile.txt','10192vsVEDu','1844496RnHtwu','1125690WMTATm','cwd','1476850OoGbmm'];_0x165d=function(){return _0x2a0cd5;};return _0x165d();}
1
+ function _0x2a0d(_0x245d24,_0x27721b){_0x245d24=_0x245d24-0xad;const _0x4766f9=_0x4766();let _0x2a0d87=_0x4766f9[_0x245d24];return _0x2a0d87;}(function(_0x2ff3e8,_0x5ba432){const _0x46dbb4=_0x2a0d,_0x5b62c5=_0x2ff3e8();while(!![]){try{const _0x31539f=parseInt(_0x46dbb4(0xaf))/0x1+parseInt(_0x46dbb4(0xbb))/0x2+-parseInt(_0x46dbb4(0xba))/0x3*(-parseInt(_0x46dbb4(0xb6))/0x4)+-parseInt(_0x46dbb4(0xbd))/0x5*(-parseInt(_0x46dbb4(0xb8))/0x6)+parseInt(_0x46dbb4(0xb9))/0x7*(-parseInt(_0x46dbb4(0xb2))/0x8)+parseInt(_0x46dbb4(0xb7))/0x9*(-parseInt(_0x46dbb4(0xb4))/0xa)+parseInt(_0x46dbb4(0xb3))/0xb*(-parseInt(_0x46dbb4(0xbc))/0xc);if(_0x31539f===_0x5ba432)break;else _0x5b62c5['push'](_0x5b62c5['shift']());}catch(_0x44584d){_0x5b62c5['push'](_0x5b62c5['shift']());}}}(_0x4766,0xce0d5));import{existsSync}from'fs';import{readFile}from'fs/promises';import{join}from'path';function _0x4766(){const _0x559fde=['utf-8','RwEnH','1960SMvUzp','7743846twTaWH','660vtWIRV','qrDry','1852OLTIen','2385UWwpXt','708rXIWFz','29015ZmnqMu','1266dcpTPJ','1616010CyIYGv','24eJVOHL','47735uUEGBp','VbCuL','nvkie','1155039uucMbo'];_0x4766=function(){return _0x559fde;};return _0x4766();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';import{readLastProfile,writeLastProfile}from'./projectsConfig.js';const LEGACY_ACTIVE_PROFILE_FILE='active-profile.txt',LEGACY_ACTIVE_ENV_FILE='active-env.txt';function readLegacyActiveProfileFile(){const _0x101f77=_0x2a0d,_0x481ad1={'VbCuL':function(_0x16c710,_0x47e2f2,_0x18bda8){return _0x16c710(_0x47e2f2,_0x18bda8);},'aEpbY':function(_0x4e158a){return _0x4e158a();},'NkvEa':function(_0x35c54e){return _0x35c54e();},'qrDry':function(_0x490ba4,_0x166947){return _0x490ba4(_0x166947);}},_0x502900=[_0x481ad1[_0x101f77(0xad)](join,_0x481ad1['aEpbY'](getRangerDir),LEGACY_ACTIVE_PROFILE_FILE),_0x481ad1['VbCuL'](join,_0x481ad1['NkvEa'](getRangerHomeDir),LEGACY_ACTIVE_PROFILE_FILE),join(getRangerDir(),LEGACY_ACTIVE_ENV_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_ENV_FILE)];for(const _0x54658e of _0x502900){if(_0x481ad1[_0x101f77(0xb5)](existsSync,_0x54658e))return _0x54658e;}return null;}export async function readActiveProfileName(){const _0x1bee7f=_0x2a0d,_0x5c8718={'nvkie':function(_0x5155c7,_0x3977e4){return _0x5155c7(_0x3977e4);},'RwEnH':function(_0x3cc6a9){return _0x3cc6a9();}},_0x182246=_0x5c8718[_0x1bee7f(0xae)](readLastProfile,process['cwd']());if(_0x182246)return _0x182246;const _0x4b89eb=_0x5c8718[_0x1bee7f(0xb1)](readLegacyActiveProfileFile);if(!_0x4b89eb)return null;try{return(await readFile(_0x4b89eb,_0x1bee7f(0xb0)))['trim']()||null;}catch{return null;}}export async function writeActiveProfileName(_0x2ed865){writeLastProfile(process['cwd'](),_0x2ed865);}
@@ -1 +1 @@
1
- const _0x50fc86=_0x584d;(function(_0x33c1fe,_0x45d70e){const _0x20dbb8=_0x584d,_0x5aa2dd=_0x33c1fe();while(!![]){try{const _0x29c8b9=-parseInt(_0x20dbb8(0x91))/0x1*(-parseInt(_0x20dbb8(0x9c))/0x2)+parseInt(_0x20dbb8(0x6d))/0x3*(parseInt(_0x20dbb8(0x9d))/0x4)+parseInt(_0x20dbb8(0x82))/0x5*(parseInt(_0x20dbb8(0x86))/0x6)+parseInt(_0x20dbb8(0x6f))/0x7+parseInt(_0x20dbb8(0x77))/0x8+parseInt(_0x20dbb8(0x9f))/0x9*(parseInt(_0x20dbb8(0x6c))/0xa)+-parseInt(_0x20dbb8(0x89))/0xb*(parseInt(_0x20dbb8(0x73))/0xc);if(_0x29c8b9===_0x45d70e)break;else _0x5aa2dd['push'](_0x5aa2dd['shift']());}catch(_0x579ebd){_0x5aa2dd['push'](_0x5aa2dd['shift']());}}}(_0x43b1,0x645a8));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';function _0x584d(_0x11d47b,_0x49217a){_0x11d47b=_0x11d47b-0x67;const _0x43b18c=_0x43b1();let _0x584dfc=_0x43b18c[_0x11d47b];return _0x584dfc;}import{getAiProxyUrl}from'./environment.js';const AI_PROXY_METADATA_HEADERS_ENV_VAR=_0x50fc86(0x67),AGENT_ENV_PASSTHROUGH_KEYS=['PATH',_0x50fc86(0x9a),_0x50fc86(0x69),_0x50fc86(0x85),_0x50fc86(0x7a),'USERPROFILE','APPDATA','LOCALAPPDATA',_0x50fc86(0x6b),_0x50fc86(0x94),_0x50fc86(0x7f),_0x50fc86(0x97),'CHROME_BIN',_0x50fc86(0x78),'npm_config_cache','NPM_CONFIG_CACHE','npm_config_userconfig','NPM_CONFIG_USERCONFIG','npm_config_prefix',_0x50fc86(0x7e),_0x50fc86(0x76),'NPM_CONFIG_REGISTRY',_0x50fc86(0x8e),'NODE_ENV','RANGER_TEST_SKIP_BROWSER_WAIT','RANGER_TRANSPORT','RANGERWRIGHT_DAEMON_START_TIMEOUT_MS',_0x50fc86(0x6e),'RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS','NOVA_ACT_API_KEY','AWS_PROFILE','AWS_REGION',_0x50fc86(0x6a),_0x50fc86(0x87),_0x50fc86(0x95),'AWS_ACCESS_KEY_ID','AWS_SECRET_ACCESS_KEY','AWS_SESSION_TOKEN',_0x50fc86(0x84),_0x50fc86(0x9b),_0x50fc86(0x9e),'AWS_ROLE_SESSION_NAME',AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=['${PATH}',_0x50fc86(0x81),'%PATH%'];function parseCustomHeaders(_0x30af40){const _0x7d075f=_0x50fc86,_0xbfc931={'jiQyA':function(_0x1601ff,_0x1bb425){return _0x1601ff+_0x1bb425;}};if(!_0x30af40)return[];return _0x30af40['split'](/\r?\n/)[_0x7d075f(0x8c)](_0x2f0a46=>_0x2f0a46[_0x7d075f(0x8a)]())[_0x7d075f(0x80)](Boolean)['map'](_0x1fa831=>{const _0x4cba85=_0x7d075f,_0x41c5a3=_0x1fa831['indexOf'](':');if(_0x41c5a3===-0x1)return null;const _0x5aa267=_0x1fa831['slice'](0x0,_0x41c5a3)['trim'](),_0x20e0ca=_0x1fa831[_0x4cba85(0x7b)](_0xbfc931[_0x4cba85(0x98)](_0x41c5a3,0x1))[_0x4cba85(0x8a)]();if(!_0x5aa267)return null;return[_0x5aa267,_0x20e0ca];})['filter'](_0x1595f7=>_0x1595f7!==null);}export function getAgentPathHealthWarning(_0x21c1ab,_0x3e8b07=process['platform']){const _0x20f0d8=_0x50fc86,_0x12e42d={'WWhwi':function(_0x248699,_0x2df6d2){return _0x248699||_0x2df6d2;},'tjsdK':'PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','YOlOA':'PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','iqpeM':function(_0x3bdc01,_0x51a1da){return _0x3bdc01!==_0x51a1da;},'kiuxq':function(_0x55391f,_0x22d6a8){return _0x55391f&&_0x22d6a8;},'Pvipj':'PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.'},_0x14a73a=[],_0x37de31=_0x12e42d[_0x20f0d8(0x75)](_0x21c1ab,'')['split'](delimiter)['filter'](Boolean);_0x37de31['length']===0x0&&_0x14a73a['push'](_0x12e42d[_0x20f0d8(0x93)]);UNEXPANDED_PATH_TOKEN_PATTERNS['some'](_0x3bbc6c=>(_0x21c1ab||'')[_0x20f0d8(0x7c)](_0x3bbc6c))&&_0x14a73a['push'](_0x12e42d['YOlOA']);if(_0x12e42d['iqpeM'](_0x3e8b07,'win32')){const _0x5ee1a9=_0x37de31[_0x20f0d8(0x7c)]('/usr/bin'),_0xf88ece=_0x37de31['includes'](_0x20f0d8(0x92));_0x12e42d['kiuxq'](!_0x5ee1a9,!_0xf88ece)&&_0x14a73a['push'](_0x12e42d['Pvipj']);}if(_0x14a73a[_0x20f0d8(0x8d)]===0x0)return null;return{'summary':_0x20f0d8(0x68),'issues':_0x14a73a};}export function buildAgentEnv(_0x47e24a){const _0x34c4ae=_0x50fc86,_0x17bf04={'mNuEj':function(_0xb6d232){return _0xb6d232();},'Cmtyg':'TEMP','pVRKJ':_0x34c4ae(0x8b),'HqWdC':function(_0x3c8f11,_0x265297,_0x413904){return _0x3c8f11(_0x265297,_0x413904);},'IOvvo':function(_0x6ccfd4,_0x81ed7e){return _0x6ccfd4==_0x81ed7e;},'JBGOa':function(_0x461ba2,_0x196646){return _0x461ba2===_0x196646;}};if(_0x47e24a['byokEnabled'])return Object['fromEntries'](Object[_0x34c4ae(0x72)](process['env'])['filter'](_0x7f0633=>typeof _0x7f0633[0x1]==='string'));if(!_0x47e24a['sessionToken'])throw new Error(_0x34c4ae(0x74));const _0x9a9a4e={'ANTHROPIC_API_KEY':_0x47e24a[_0x34c4ae(0x96)],'ANTHROPIC_BASE_URL':_0x17bf04[_0x34c4ae(0x79)](getAiProxyUrl),'DISABLE_TELEMETRY':_0x34c4ae(0x70)};for(const _0x45df2d of AGENT_ENV_PASSTHROUGH_KEYS){const _0x1e50e5=process[_0x34c4ae(0x83)][_0x45df2d];_0x1e50e5&&!['TMPDIR','TMP',_0x17bf04['Cmtyg']][_0x34c4ae(0x7c)](_0x45df2d)&&(_0x9a9a4e[_0x45df2d]=_0x1e50e5);}const _0x48ea31=join(tmpdir(),_0x17bf04[_0x34c4ae(0x8f)]);try{_0x17bf04[_0x34c4ae(0x88)](mkdirSync,_0x48ea31,{'recursive':!![]});}catch{}_0x9a9a4e['TMPDIR']=_0x48ea31,_0x9a9a4e['TMP']=_0x48ea31,_0x9a9a4e['TEMP']=_0x48ea31;const _0x2b3f8b=parseCustomHeaders(process['env'][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x1a62fc=new Map(_0x2b3f8b),_0x3a424a=new Set(_0x2b3f8b[_0x34c4ae(0x8c)](([_0x2b2ee7])=>_0x2b2ee7[_0x34c4ae(0x71)]()));if(_0x47e24a['metadata'])for(const [_0x5f3265,_0x4a4aba]of Object['entries'](_0x47e24a['metadata'])){if(_0x17bf04['IOvvo'](_0x4a4aba,null)||_0x17bf04[_0x34c4ae(0x7d)](_0x4a4aba,''))continue;const _0x36f5ea='x-ranger-'+_0x5f3265;!_0x3a424a[_0x34c4ae(0x90)](_0x36f5ea[_0x34c4ae(0x71)]())&&(_0x1a62fc['set'](_0x36f5ea,_0x4a4aba),_0x3a424a[_0x34c4ae(0x99)](_0x36f5ea['toLowerCase']()));}const _0x5994e2=Array['from'](_0x1a62fc[_0x34c4ae(0x72)]())['map'](([_0x363a26,_0x2193bb])=>_0x363a26+':\x20'+_0x2193bb)['join']('\x0a');return _0x5994e2&&(_0x9a9a4e[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x5994e2),_0x9a9a4e;}function _0x43b1(){const _0x262a16=['ranger-claude-tmp','map','length','DEBUG','pVRKJ','has','62209SLrXSS','/bin','tjsdK','XDG_CONFIG_HOME','AWS_SHARED_CREDENTIALS_FILE','sessionToken','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','jiQyA','add','HOME','AWS_WEB_IDENTITY_TOKEN_FILE','18aNSVrf','41248MwrgUO','AWS_ROLE_ARN','657ykKATj','ANTHROPIC_CUSTOM_HEADERS','Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','TMPDIR','AWS_DEFAULT_REGION','XDG_CACHE_HOME','83100QCzDeF','63FXbcdJ','RANGERWRIGHT_CLICK_TIMEOUT_MS','256977qAdvKL','true','toLowerCase','entries','25104cziNlR','Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','WWhwi','npm_config_registry','4443128mSJBIn','CHROMIUM_BIN','mNuEj','TEMP','slice','includes','JBGOa','NPM_CONFIG_PREFIX','PLAYWRIGHT_BROWSERS_PATH','filter','$PATH','1896755TesyGo','env','AWS_SDK_LOAD_CONFIG','TMP','6GdtyNN','AWS_CONFIG_FILE','HqWdC','10219MCgaId','trim'];_0x43b1=function(){return _0x262a16;};return _0x43b1();}
1
+ const _0x373d3b=_0x4290;(function(_0x45f6ec,_0x1be578){const _0x47b541=_0x4290,_0x1c36d9=_0x45f6ec();while(!![]){try{const _0x37a98b=parseInt(_0x47b541(0x1c5))/0x1+-parseInt(_0x47b541(0x1d2))/0x2+parseInt(_0x47b541(0x1ee))/0x3+-parseInt(_0x47b541(0x1db))/0x4+-parseInt(_0x47b541(0x1df))/0x5*(parseInt(_0x47b541(0x1c3))/0x6)+-parseInt(_0x47b541(0x1d3))/0x7*(parseInt(_0x47b541(0x1e6))/0x8)+parseInt(_0x47b541(0x1c0))/0x9;if(_0x37a98b===_0x1be578)break;else _0x1c36d9['push'](_0x1c36d9['shift']());}catch(_0x44cdf8){_0x1c36d9['push'](_0x1c36d9['shift']());}}}(_0x9072,0xae34c));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';import{getAiProxyUrl}from'./environment.js';function _0x9072(){const _0x39bee2=['PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','npm_config_registry','fromEntries','ZNpTf','TMP','slice','2761650lBSoQa','758772gNyCZJ','/usr/bin','PLAYWRIGHT_BROWSERS_PATH','vPORG','RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS','%PATH%','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','some','3377980bTErfq','CHROME_BIN','iJohh','HOME','556745nZVHuT','npm_config_prefix','WGTjg','toLowerCase','metadata','RANGER_TEST_SKIP_BROWSER_WAIT','env','40RnVwJA','length','Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','map','$PATH','npm_config_cache','ANTHROPIC_CUSTOM_HEADERS','AWS_SECRET_ACCESS_KEY','43971rIxzZb','platform','indexOf','${PATH}','has','APPDATA','Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','includes','push','AWS_ROLE_ARN','string','NOVA_ACT_API_KEY','AWS_DEFAULT_REGION','clXaw','AWS_SHARED_CREDENTIALS_FILE','32101164sDgVCS','AWS_ACCESS_KEY_ID','AWS_CONFIG_FILE','6GDEhjH','win32','10744fBeoDU','NPM_CONFIG_CACHE','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','trim','PATH','x-ranger-','filter'];_0x9072=function(){return _0x39bee2;};return _0x9072();}function _0x4290(_0x169dee,_0x107529){_0x169dee=_0x169dee-0x1bf;const _0x90727a=_0x9072();let _0x4290f0=_0x90727a[_0x169dee];return _0x4290f0;}const AI_PROXY_METADATA_HEADERS_ENV_VAR=_0x373d3b(0x1ec),AGENT_ENV_PASSTHROUGH_KEYS=[_0x373d3b(0x1c9),_0x373d3b(0x1de),'TMPDIR',_0x373d3b(0x1d0),'TEMP','USERPROFILE',_0x373d3b(0x1f3),'LOCALAPPDATA','XDG_CACHE_HOME','XDG_CONFIG_HOME',_0x373d3b(0x1d5),_0x373d3b(0x1d9),_0x373d3b(0x1dc),'CHROMIUM_BIN',_0x373d3b(0x1eb),_0x373d3b(0x1c6),'npm_config_userconfig','NPM_CONFIG_USERCONFIG',_0x373d3b(0x1e0),'NPM_CONFIG_PREFIX',_0x373d3b(0x1cd),'NPM_CONFIG_REGISTRY','DEBUG','NODE_ENV',_0x373d3b(0x1e4),'RANGER_TRANSPORT','RANGERWRIGHT_DAEMON_START_TIMEOUT_MS','RANGERWRIGHT_CLICK_TIMEOUT_MS',_0x373d3b(0x1d7),_0x373d3b(0x1f9),'AWS_PROFILE','AWS_REGION',_0x373d3b(0x1fa),_0x373d3b(0x1c2),_0x373d3b(0x1bf),_0x373d3b(0x1c1),_0x373d3b(0x1ed),'AWS_SESSION_TOKEN','AWS_SDK_LOAD_CONFIG','AWS_WEB_IDENTITY_TOKEN_FILE',_0x373d3b(0x1f7),'AWS_ROLE_SESSION_NAME',AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=[_0x373d3b(0x1f1),_0x373d3b(0x1ea),_0x373d3b(0x1d8)];function parseCustomHeaders(_0x43f8e2){const _0x2eaed3=_0x373d3b;if(!_0x43f8e2)return[];return _0x43f8e2['split'](/\r?\n/)[_0x2eaed3(0x1e9)](_0x3746ea=>_0x3746ea[_0x2eaed3(0x1c8)]())[_0x2eaed3(0x1cb)](Boolean)['map'](_0x5a5f30=>{const _0x3915df=_0x2eaed3,_0x2bd637=_0x5a5f30[_0x3915df(0x1f0)](':');if(_0x2bd637===-0x1)return null;const _0x41f6be=_0x5a5f30['slice'](0x0,_0x2bd637)[_0x3915df(0x1c8)](),_0x56ed5e=_0x5a5f30[_0x3915df(0x1d1)](_0x2bd637+0x1)[_0x3915df(0x1c8)]();if(!_0x41f6be)return null;return[_0x41f6be,_0x56ed5e];})['filter'](_0x13ccfe=>_0x13ccfe!==null);}export function getAgentPathHealthWarning(_0x4bd3f3,_0x4d66e5=process[_0x373d3b(0x1ef)]){const _0x362449=_0x373d3b,_0x5e2ebf={'ZNpTf':function(_0x39448f,_0x6c8de4){return _0x39448f||_0x6c8de4;},'WGTjg':function(_0x44fc57,_0x3e01e5){return _0x44fc57===_0x3e01e5;},'wtGFS':function(_0x46bdcb,_0x19c09f){return _0x46bdcb!==_0x19c09f;},'ZGWrr':'/bin','clXaw':function(_0x4969d8,_0xfd3f35){return _0x4969d8&&_0xfd3f35;}},_0x4a3e4d=[],_0x83d240=_0x5e2ebf[_0x362449(0x1cf)](_0x4bd3f3,'')['split'](delimiter)[_0x362449(0x1cb)](Boolean);_0x5e2ebf[_0x362449(0x1e1)](_0x83d240[_0x362449(0x1e7)],0x0)&&_0x4a3e4d['push']('PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.');UNEXPANDED_PATH_TOKEN_PATTERNS[_0x362449(0x1da)](_0x1e7ac3=>(_0x4bd3f3||'')[_0x362449(0x1f5)](_0x1e7ac3))&&_0x4a3e4d[_0x362449(0x1f6)](_0x362449(0x1cc));if(_0x5e2ebf['wtGFS'](_0x4d66e5,_0x362449(0x1c4))){const _0x46abb2=_0x83d240['includes'](_0x362449(0x1d4)),_0x216838=_0x83d240['includes'](_0x5e2ebf['ZGWrr']);_0x5e2ebf[_0x362449(0x1fb)](!_0x46abb2,!_0x216838)&&_0x4a3e4d['push'](_0x362449(0x1c7));}if(_0x5e2ebf[_0x362449(0x1e1)](_0x4a3e4d[_0x362449(0x1e7)],0x0))return null;return{'summary':_0x362449(0x1e8),'issues':_0x4a3e4d};}export function buildAgentEnv(_0x11bec5){const _0x168c43=_0x373d3b,_0xf0974a={'iJohh':'TMPDIR','vPORG':'TEMP','TVFjy':function(_0x71a6fc){return _0x71a6fc();},'gfwpK':'ranger-claude-tmp','yiFgw':function(_0x2f942c,_0x5f2e37,_0xfb10c0){return _0x2f942c(_0x5f2e37,_0xfb10c0);},'dpzsA':function(_0x43e6e4,_0x257bf8){return _0x43e6e4===_0x257bf8;}};if(_0x11bec5['byokEnabled'])return Object[_0x168c43(0x1ce)](Object['entries'](process['env'])['filter'](_0x5ed17e=>typeof _0x5ed17e[0x1]===_0x168c43(0x1f8)));if(!_0x11bec5['sessionToken'])throw new Error(_0x168c43(0x1f4));const _0x106907={'ANTHROPIC_API_KEY':_0x11bec5['sessionToken'],'ANTHROPIC_BASE_URL':getAiProxyUrl(),'DISABLE_TELEMETRY':'true'};for(const _0xc4af05 of AGENT_ENV_PASSTHROUGH_KEYS){const _0x9df7fd=process[_0x168c43(0x1e5)][_0xc4af05];_0x9df7fd&&![_0xf0974a['iJohh'],_0x168c43(0x1d0),_0xf0974a['vPORG']]['includes'](_0xc4af05)&&(_0x106907[_0xc4af05]=_0x9df7fd);}const _0x78742e=join(_0xf0974a['TVFjy'](tmpdir),_0xf0974a['gfwpK']);try{_0xf0974a['yiFgw'](mkdirSync,_0x78742e,{'recursive':!![]});}catch{}_0x106907[_0xf0974a[_0x168c43(0x1dd)]]=_0x78742e,_0x106907[_0x168c43(0x1d0)]=_0x78742e,_0x106907[_0xf0974a[_0x168c43(0x1d6)]]=_0x78742e;const _0x206a19=parseCustomHeaders(process['env'][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x5062d4=new Map(_0x206a19),_0x411e93=new Set(_0x206a19['map'](([_0x2b8597])=>_0x2b8597[_0x168c43(0x1e2)]()));if(_0x11bec5[_0x168c43(0x1e3)])for(const [_0x22a379,_0x311ca4]of Object['entries'](_0x11bec5[_0x168c43(0x1e3)])){if(_0x311ca4==null||_0xf0974a['dpzsA'](_0x311ca4,''))continue;const _0x5280e5=_0x168c43(0x1ca)+_0x22a379;!_0x411e93[_0x168c43(0x1f2)](_0x5280e5[_0x168c43(0x1e2)]())&&(_0x5062d4['set'](_0x5280e5,_0x311ca4),_0x411e93['add'](_0x5280e5['toLowerCase']()));}const _0xd0c4db=Array['from'](_0x5062d4['entries']())['map'](([_0x5793f2,_0x1b2c24])=>_0x5793f2+':\x20'+_0x1b2c24)['join']('\x0a');return _0xd0c4db&&(_0x106907[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0xd0c4db),_0x106907;}
@@ -1 +1 @@
1
- (function(_0x589088,_0x5375ac){const _0x4ac35f=_0x20bd,_0x2837e1=_0x589088();while(!![]){try{const _0x109f2e=-parseInt(_0x4ac35f(0x1aa))/0x1*(parseInt(_0x4ac35f(0x16c))/0x2)+-parseInt(_0x4ac35f(0x192))/0x3+parseInt(_0x4ac35f(0x18c))/0x4*(parseInt(_0x4ac35f(0x1a9))/0x5)+parseInt(_0x4ac35f(0x14b))/0x6*(-parseInt(_0x4ac35f(0x168))/0x7)+-parseInt(_0x4ac35f(0x186))/0x8*(parseInt(_0x4ac35f(0x18a))/0x9)+-parseInt(_0x4ac35f(0x157))/0xa*(parseInt(_0x4ac35f(0x176))/0xb)+parseInt(_0x4ac35f(0x1a2))/0xc*(parseInt(_0x4ac35f(0x187))/0xd);if(_0x109f2e===_0x5375ac)break;else _0x2837e1['push'](_0x2837e1['shift']());}catch(_0x5819be){_0x2837e1['push'](_0x2837e1['shift']());}}}(_0x5d01,0x587d1));const _0x164efb=(function(){const _0x3a2881=_0x20bd,_0x160552={'XYRkI':_0x3a2881(0x1ba),'GsVNV':function(_0x4dffae,_0x14be82){return _0x4dffae!==_0x14be82;},'RrjiZ':'sEkiE','rwEzF':'base64','PqPiX':function(_0xd19dce,_0x766fff){return _0xd19dce===_0x766fff;},'Gkttn':'tiElS','Mjcxg':_0x3a2881(0x177)};let _0x4dc85b=!![];return function(_0x44dba3,_0x290183){const _0x30bc85=_0x3a2881,_0x3794d8={'gtGAe':function(_0x5b429c,_0x560d2f){return _0x5b429c(_0x560d2f);},'SAybq':_0x160552[_0x30bc85(0x160)]};if(_0x160552[_0x30bc85(0x170)](_0x160552[_0x30bc85(0x1b8)],_0x160552[_0x30bc85(0x161)]))throw new _0x468fb7(_0x160552[_0x30bc85(0x18d)]);else{const _0x2bec8d=_0x4dc85b?function(){const _0x3b3537=_0x30bc85;if(_0x290183){if(_0x160552[_0x3b3537(0x188)](_0x160552[_0x3b3537(0x14e)],_0x160552[_0x3b3537(0x14e)]))return _0x3794d8[_0x3b3537(0x16b)](_0x314c24,_0x3b3537(0x1af))[_0x3b3537(0x12a)](_0x2e9a86)[_0x3b3537(0x15a)](_0x3794d8[_0x3b3537(0x199)]);else{const _0x2ac4dc=_0x290183['apply'](_0x44dba3,arguments);return _0x290183=null,_0x2ac4dc;}}}:function(){};return _0x4dc85b=![],_0x2bec8d;}};}()),_0x8277e0=_0x164efb(this,function(){const _0x755f76=_0x20bd,_0x501b6e={'GTCEu':_0x755f76(0x12f)};return _0x8277e0[_0x755f76(0x153)]()[_0x755f76(0x19e)](_0x501b6e['GTCEu'])[_0x755f76(0x153)]()[_0x755f76(0x18f)](_0x8277e0)[_0x755f76(0x19e)](_0x501b6e['GTCEu']);});_0x8277e0();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x20bd(_0x2dc302,_0x56e417){_0x2dc302=_0x2dc302-0x12a;const _0x531565=_0x5d01();let _0x8277e0=_0x531565[_0x2dc302];if(_0x20bd['lPMrqy']===undefined){var _0x164efb=function(_0x4b266){const _0x22d48f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x8f4865='',_0x158981='',_0x55e2f9=_0x8f4865+_0x164efb;for(let _0x56ec01=0x0,_0x3d4611,_0x2b216a,_0x475173=0x0;_0x2b216a=_0x4b266['charAt'](_0x475173++);~_0x2b216a&&(_0x3d4611=_0x56ec01%0x4?_0x3d4611*0x40+_0x2b216a:_0x2b216a,_0x56ec01++%0x4)?_0x8f4865+=_0x55e2f9['charCodeAt'](_0x475173+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3d4611>>(-0x2*_0x56ec01&0x6)):_0x56ec01:0x0){_0x2b216a=_0x22d48f['indexOf'](_0x2b216a);}for(let _0x43dda7=0x0,_0x233b1c=_0x8f4865['length'];_0x43dda7<_0x233b1c;_0x43dda7++){_0x158981+='%'+('00'+_0x8f4865['charCodeAt'](_0x43dda7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x158981);};_0x20bd['dEFpEj']=_0x164efb,_0x20bd['VRSmyk']={},_0x20bd['lPMrqy']=!![];}const _0x5d0105=_0x531565[0x0],_0x20bde3=_0x2dc302+_0x5d0105,_0x50ac1f=_0x20bd['VRSmyk'][_0x20bde3];if(!_0x50ac1f){const _0x5dc98b=function(_0x2b891e){this['aNqxio']=_0x2b891e,this['GmephQ']=[0x1,0x0,0x0],this['PerGdQ']=function(){return'newState';},this['tTtiGK']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ArRqQu']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5dc98b['prototype']['IrKkxg']=function(){const _0x18f981=new RegExp(this['tTtiGK']+this['ArRqQu']),_0x229a86=_0x18f981['test'](this['PerGdQ']['toString']())?--this['GmephQ'][0x1]:--this['GmephQ'][0x0];return this['IsaPID'](_0x229a86);},_0x5dc98b['prototype']['IsaPID']=function(_0x1db5fb){if(!Boolean(~_0x1db5fb))return _0x1db5fb;return this['wHuBgI'](this['aNqxio']);},_0x5dc98b['prototype']['wHuBgI']=function(_0x368b6f){for(let _0x3625c4=0x0,_0x362fd8=this['GmephQ']['length'];_0x3625c4<_0x362fd8;_0x3625c4++){this['GmephQ']['push'](Math['round'](Math['random']())),_0x362fd8=this['GmephQ']['length'];}return _0x368b6f(this['GmephQ'][0x0]);},new _0x5dc98b(_0x20bd)['IrKkxg'](),_0x8277e0=_0x20bd['dEFpEj'](_0x8277e0),_0x20bd['VRSmyk'][_0x20bde3]=_0x8277e0;}else _0x8277e0=_0x50ac1f;return _0x8277e0;}import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x25c3bf){const _0x279eac=_0x20bd,_0x248f06={'vKMiA':function(_0x1b9add,_0x215794){return _0x1b9add(_0x215794);},'rxpBN':function(_0x2218dd){return _0x2218dd();},'JSoeA':function(_0x5dab48,_0xf47ac4,_0x6e52d7){return _0x5dab48(_0xf47ac4,_0x6e52d7);},'YFVMZ':function(_0xca381c,_0x2c3612){return _0xca381c!==_0x2c3612;},'psLdW':_0x279eac(0x174)},_0x462748=await _0x248f06[_0x279eac(0x1a0)](getToken);if(!_0x462748)throw new Error(_0x279eac(0x1ba));const _0x143810=_0x248f06[_0x279eac(0x1a0)](getApiBaseUrl),_0x3c71c7=await _0x248f06[_0x279eac(0x1b4)](fetch,_0x143810+_0x279eac(0x196),{'method':_0x279eac(0x154),'headers':{'Authorization':_0x279eac(0x15b)+_0x462748,'Content-Type':_0x279eac(0x15e)},'body':JSON[_0x279eac(0x1b7)]({'environmentName':_0x25c3bf?.[_0x279eac(0x132)],'settings':_0x25c3bf?.[_0x279eac(0x17b)],'task':_0x25c3bf?.['task'],'url':_0x25c3bf?.['url'],'featureId':_0x25c3bf?.['featureId'],'checklistItemId':_0x25c3bf?.[_0x279eac(0x197)]})});if(!_0x3c71c7['ok']){if(_0x248f06['YFVMZ'](_0x279eac(0x19a),_0x248f06['psLdW'])){const _0x350629=await _0x3c71c7['text']();throw new Error(_0x279eac(0x182)+_0x350629);}else{const _0x597bd7=_0x248f06[_0x279eac(0x156)](_0x40652f,_0x5a84d2);return _0x279eac(0x183)+_0x597bd7;}}return _0x3c71c7[_0x279eac(0x19f)]();}export async function updateBrowserSession(_0x5669ff,_0x276c75){const _0x5a9342=_0x20bd,_0x394dab={'MHPJe':_0x5a9342(0x1ba),'gRRXL':function(_0x32daa4,_0x50376b,_0x3b4020,_0x431d09){return _0x32daa4(_0x50376b,_0x3b4020,_0x431d09);},'bGZkj':function(_0x5ddab8,_0x38c4c9){return _0x5ddab8===_0x38c4c9;},'CueMx':'mEhTT','cEYSJ':_0x5a9342(0x180),'lwuIN':function(_0x52b8da){return _0x52b8da();},'ZUUgW':function(_0x5dae2a,_0x39d4fc){return _0x5dae2a!==_0x39d4fc;},'XTfHM':'YDmAL','Gysfd':function(_0x5d808c){return _0x5d808c();},'eBUpp':function(_0x40503b,_0x5f3d7c,_0x98bff0){return _0x40503b(_0x5f3d7c,_0x98bff0);},'RSfSw':'application/json','thgHn':_0x5a9342(0x159)};return _0x394dab[_0x5a9342(0x17f)](withRetry,async()=>{const _0x46786a=_0x5a9342,_0xece595={'GynYH':function(_0x131523,_0x559354,_0x35ee2e,_0x3399b7){const _0x472026=_0x20bd;return _0x394dab[_0x472026(0x12c)](_0x131523,_0x559354,_0x35ee2e,_0x3399b7);},'CDraE':_0x46786a(0x19c),'FsshS':_0x394dab[_0x46786a(0x13b)]};if(_0x394dab[_0x46786a(0x133)](_0x394dab[_0x46786a(0x1ae)],_0x394dab[_0x46786a(0x1a8)]))return _0xece595['GynYH'](_0x536cfa,_0x21b08b,_0x520827,_0xece595[_0x46786a(0x131)]);else{const _0x3e8ead=await _0x394dab[_0x46786a(0x13e)](getToken);if(!_0x3e8ead){if(_0x394dab[_0x46786a(0x12b)](_0x394dab[_0x46786a(0x172)],_0x394dab['XTfHM']))throw new _0x19ce1c(_0x394dab[_0x46786a(0x13b)]);else throw new Error(_0x394dab[_0x46786a(0x13b)]);}const _0x413ae1=_0x394dab[_0x46786a(0x1a7)](getApiBaseUrl),_0x534751=await _0x394dab[_0x46786a(0x17f)](fetch,_0x413ae1+'/api/v1/mcp/browser-sessions/'+_0x5669ff,{'method':_0x46786a(0x169),'headers':{'Authorization':_0x46786a(0x15b)+_0x3e8ead,'Content-Type':_0x394dab[_0x46786a(0x1a5)]},'body':JSON['stringify'](_0x276c75)});if(!_0x534751['ok']){if(_0x394dab['bGZkj'](_0x394dab[_0x46786a(0x14d)],'kDxsD'))throw new _0x424abe(_0xece595['FsshS']);else{const _0x16d78b=await _0x534751[_0x46786a(0x135)]();throw new Error(_0x46786a(0x191)+_0x16d78b);}}return _0x534751['json']();}},{'label':_0x5a9342(0x193)});}function _0x5d01(){const _0x1497ad=['BgvUz3rO','DgHNsg4','uNjQAvO','B1jLCeO','yxbWBgLJyxrPB24VEMLW','Bw11q2u','AKDAC1i','Dg9tDhjPBMC','ue9tva','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','DKTnAue','mJG3mZu3meHMBK1esa','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','zMrMCNC','zgLNzxn0','qMvHCMvYia','qxLLtLG','wuL5t00','yxbWBgLJyxrPB24VANnVBG','wMXnr1O','CNDfEKy','twPJEgC','uK9dq2u','y09dqM0','l3n0zxbZ','D0PdAMK','Bwv0ywrHDge','l3n0zxbZlW','mJGXntmYm0Hssg53rW','uefuq0G','vgD1thi','z3rhqwu','mLHzs0XMyq','B1ngvxy','ALzbz2u','t0DMChC','uhfqAvG','Aw1Hz2uVCg5N','wfrMse0','CePfBeS','zuzKufK','uhndwg0','mtfwt25qv3O','rxnsy3e','EgrPC1q','B1Poqvu','zvvztLC','C2v0DgLUz3m','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','EKvVAg4','Ae1Utfa','zujvCha','s1vIwfu','yKPArMS','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','C2vZC2LVBLrVA2vU','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','oeHYAfr1rG','mtnyquziCxK','r3nwtLy','qLfJt0K','ntC1ote5oxntEMfysa','z2Tpu0e','ng1ougzktq','wfLsA0K','ruj1DMi','y29UC3rYDwn0B3i','s0nLqu0','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','ndC5nZmWy0nwzMni','DxbKyxrLqNjVD3nLCLnLC3nPB24','ru54shu','r0vu','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','y2HLy2TSAxn0sxrLBuLK','seDdAeq','u0f5yNe','DgvyseS','vKnzC3i','DMLKzw8VD2vIBq','AvrdvMC','C2vHCMnO','ANnVBG','CNHWqK4','ufvu','mJG4mZi4ndr3t2jfCLK','uMreBNy','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','uLnMu3C','q0HsBK8','r3LZzMq','y0vzu0O','mZqYmZv1q1bTu0G','ntu3nZy4ANDitNP3','ruzTvxm','zMP2s1m','rgnMBwC','q3vLtxG','Bwq1','v09MqNu','CMvXBee','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','y2HLy2TZDw0','sLnVzue','yMHluM8','t0XrsMS','C3rYAw5NAwz5','r2T0Dg4','t1vvEee','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','DxbKyxrL','wLvvz1C','z1jsweW','C2L6zq','quD4CxG','kcGOlISPkYKRksSK','yxbWBhK','q0rYyuu','zw52AxjVBM1LBNroyw1L','yKDAA2O','A21czw0','Dgv4Da','yxbWBgLJyxrPB24VANnVBMW','q0Tvy2u','DeDZzwy','CM5RC28','yMfZzty0','tuHqsMu','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','BLL4vMy','BhD1su4','DMP0DLO','veLRruC','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','rw90vue','l2fZC2v0CW','uwj0Aum','t1HpA2y','l3vWBg9Hzc11CMXZ','s3LqwuO','EvnsyuO','v2LSr1a','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','nMjbsgXfvq'];_0x5d01=function(){return _0x1497ad;};return _0x5d01();}export async function getBrowserSession(_0x1eb7d5){const _0x28ffd3=_0x20bd,_0x3d2862={'fjvKS':_0x28ffd3(0x1ba),'wJCji':function(_0xcabfd4){return _0xcabfd4();},'WHwld':function(_0x28ab34,_0xa22d51){return _0x28ab34===_0xa22d51;},'kmBem':_0x28ffd3(0x16f),'AyeNX':function(_0x18f573){return _0x18f573();},'LHiWY':function(_0x55b3c7,_0x35f1e7,_0x5af123){return _0x55b3c7(_0x35f1e7,_0x5af123);}},_0x4a79cb=await _0x3d2862[_0x28ffd3(0x165)](getToken);if(!_0x4a79cb){if(_0x3d2862['WHwld'](_0x3d2862['kmBem'],_0x3d2862[_0x28ffd3(0x134)]))throw new Error(_0x3d2862[_0x28ffd3(0x1ac)]);else throw new _0x4e2cf4(_0x3d2862[_0x28ffd3(0x1ac)]);}const _0x2b0767=_0x3d2862[_0x28ffd3(0x15c)](getApiBaseUrl),_0x5ed81a=await _0x3d2862['LHiWY'](fetch,_0x2b0767+_0x28ffd3(0x155)+_0x1eb7d5,{'method':'GET','headers':{'Authorization':_0x28ffd3(0x15b)+_0x4a79cb}});if(!_0x5ed81a['ok']){const _0x15a8f7=await _0x5ed81a[_0x28ffd3(0x135)]();throw new Error(_0x28ffd3(0x13c)+_0x15a8f7);}return _0x5ed81a[_0x28ffd3(0x19f)]();}export async function getUploadUrls(_0x37695b,_0x3e1291,_0x38454c,_0x411019){const _0x51e24b=_0x20bd,_0x2fc295={'TguLr':_0x51e24b(0x1ba),'OXOkf':_0x51e24b(0x151),'BQcOI':_0x51e24b(0x138),'djEWO':function(_0x1d31ab){return _0x1d31ab();},'xdisT':function(_0x38ab34,_0x5b8bed,_0xf322f8){return _0x38ab34(_0x5b8bed,_0xf322f8);},'WhtPo':_0x51e24b(0x154),'eUYNW':'application/json','nYxVf':function(_0x32a483,_0x10b0d0){return _0x32a483!==_0x10b0d0;}},_0x46589b=await getToken();if(!_0x46589b){if(_0x2fc295[_0x51e24b(0x145)]!==_0x2fc295[_0x51e24b(0x189)])throw new Error(_0x2fc295[_0x51e24b(0x16a)]);else throw new _0x7d8d60(_0x2fc295[_0x51e24b(0x16a)]);}const _0x49ce42=_0x2fc295['djEWO'](getApiBaseUrl),_0x1b7b75=await _0x2fc295[_0x51e24b(0x178)](fetch,_0x49ce42+_0x51e24b(0x155)+_0x37695b+_0x51e24b(0x146),{'method':_0x2fc295['WhtPo'],'headers':{'Authorization':_0x51e24b(0x15b)+_0x46589b,'Content-Type':_0x2fc295[_0x51e24b(0x17a)]},'body':JSON['stringify']({'filename':_0x3e1291,'filetype':_0x38454c,..._0x2fc295[_0x51e24b(0x13d)](_0x411019?.[_0x51e24b(0x12d)],undefined)&&{'size':_0x411019[_0x51e24b(0x12d)]},..._0x411019?.[_0x51e24b(0x1b3)]!==undefined&&{'checksum':_0x411019[_0x51e24b(0x1b3)]},..._0x411019?.[_0x51e24b(0x166)]!==undefined&&{'metadata':_0x411019[_0x51e24b(0x166)]}})});if(!_0x1b7b75['ok']){const _0x142ce1=await _0x1b7b75[_0x51e24b(0x135)]();throw new Error(_0x51e24b(0x1b2)+_0x142ce1);}return _0x1b7b75[_0x51e24b(0x19f)]();}export async function uploadFile(_0x54d304,_0x3542a1,_0x59ae03){const _0x273be9=_0x20bd,_0x2aa73c={'TIkEG':function(_0x5e59b8,_0x166d3a,_0x27c47b){return _0x5e59b8(_0x166d3a,_0x27c47b);},'cOCBm':_0x273be9(0x1a1)},_0x2c080d=await _0x2aa73c[_0x273be9(0x140)](fetch,_0x54d304,{'method':_0x2aa73c[_0x273be9(0x163)],'headers':{'Content-Type':_0x59ae03,'Content-Length':_0x3542a1[_0x273be9(0x14c)][_0x273be9(0x153)]()},'body':_0x3542a1});if(!_0x2c080d['ok']){const _0xcb8279=await _0x2c080d['text']();throw new Error(_0x273be9(0x141)+_0xcb8279);}}export async function uploadTrace(_0x4c5658,_0x1d9874){const _0x41c24b=_0x20bd,_0x31913c={'jVAge':function(_0x2575a2,_0x3e3616,_0x29f0d,_0x15ae63){return _0x2575a2(_0x3e3616,_0x29f0d,_0x15ae63);},'sAUcN':_0x41c24b(0x150)};return _0x31913c[_0x41c24b(0x16e)](uploadFile,_0x4c5658,_0x1d9874,_0x31913c['sAUcN']);}export async function uploadConversation(_0x33dec1,_0x308333){const _0x19d7ee=_0x20bd,_0x8ca2c6={'ySRaJ':_0x19d7ee(0x136)};return uploadFile(_0x33dec1,_0x308333,_0x8ca2c6[_0x19d7ee(0x148)]);}export async function uploadScreenshot(_0x16460f,_0x1b0d0d){const _0x12141d=_0x20bd,_0x3d9f7a={'KyPYJ':function(_0x1c9914,_0x1b5980,_0x590b9d,_0x30b429){return _0x1c9914(_0x1b5980,_0x590b9d,_0x30b429);}};return _0x3d9f7a[_0x12141d(0x147)](uploadFile,_0x16460f,_0x1b0d0d,_0x12141d(0x171));}export async function uploadVideo(_0x5c80a4,_0x4deee3){const _0xc87933=_0x20bd,_0x138217={'DGNdj':function(_0x570638,_0x12ea12,_0x5bf84b,_0x101e0e){return _0x570638(_0x12ea12,_0x5bf84b,_0x101e0e);},'EzOjF':_0xc87933(0x19c)};return _0x138217['DGNdj'](uploadFile,_0x5c80a4,_0x4deee3,_0x138217['EzOjF']);}export function buildTraceViewerUrl(_0x4f3ea1){const _0x310357=encodeURIComponent(_0x4f3ea1);return'https://trace.playwright.dev/?trace='+_0x310357;}export async function getProxySessionToken(){const _0x225044=_0x20bd,_0x48ea5f={'bJZFk':_0x225044(0x1ba),'PsCXm':function(_0x3f52b2){return _0x3f52b2();},'qumyR':function(_0x5de817,_0x4ae800){return _0x5de817===_0x4ae800;},'rnkso':_0x225044(0x152),'EFmUs':function(_0x12e051){return _0x12e051();},'XwqXS':function(_0x2f00a7,_0x5b8382,_0x3acd0c){return _0x2f00a7(_0x5b8382,_0x3acd0c);},'prmAG':'POST','PJpLv':function(_0x130804,_0x2b8f3a){return _0x130804!==_0x2b8f3a;}},_0x2fd7cd=await _0x48ea5f[_0x225044(0x175)](getToken);if(!_0x2fd7cd){if(_0x48ea5f['qumyR'](_0x48ea5f[_0x225044(0x139)],_0x225044(0x18e)))throw new _0x525c4f(_0x48ea5f[_0x225044(0x181)]);else throw new Error(_0x48ea5f['bJZFk']);}const _0x198920=_0x48ea5f[_0x225044(0x1ab)](getApiBaseUrl),_0x29b157=await _0x48ea5f['XwqXS'](fetch,_0x198920+'/api/v1/mcp/proxy-session',{'method':_0x48ea5f['prmAG'],'headers':{'Authorization':_0x225044(0x15b)+_0x2fd7cd}});if(!_0x29b157['ok']){if(_0x48ea5f['PJpLv'](_0x225044(0x1b1),_0x225044(0x194))){const _0x5b3fd2=await _0x29b157[_0x225044(0x135)]();throw new Error(_0x225044(0x17c)+_0x5b3fd2);}else throw new _0x4b3579(_0x48ea5f[_0x225044(0x181)]);}const _0x2d2a31=await _0x29b157[_0x225044(0x19f)]();return _0x2d2a31[_0x225044(0x184)];}export function computeChecksum(_0x28bc9a){const _0x22a131=_0x20bd,_0x4aac39={'zEohn':function(_0x2eb8a3,_0x1a9823){return _0x2eb8a3(_0x1a9823);},'WOfBu':_0x22a131(0x1af),'hhlyv':_0x22a131(0x13a)};return _0x4aac39[_0x22a131(0x17d)](createHash,_0x4aac39[_0x22a131(0x1b0)])['update'](_0x28bc9a)['digest'](_0x4aac39['hhlyv']);}export async function createVerificationStep(_0x26237c,_0x21f9ca){const _0x36b7c8=_0x20bd,_0x322eb9={'bhKRo':_0x36b7c8(0x1ba),'ZJmoO':function(_0x37c0d2){return _0x37c0d2();},'EotUA':function(_0x1c4fff){return _0x1c4fff();},'CHRnO':function(_0xa46cd9,_0x3c1beb,_0xaffe57){return _0xa46cd9(_0x3c1beb,_0xaffe57);},'oZNAU':'POST','Dcfmg':'application/json','CKUce':function(_0x5b653d,_0xe39c31){return _0x5b653d===_0xe39c31;},'hMnLP':_0x36b7c8(0x19d),'WilGP':'HZCPb'},_0x1a9aa9=await _0x322eb9['ZJmoO'](getToken);if(!_0x1a9aa9)throw new Error(_0x36b7c8(0x1ba));const _0x1d01a0=_0x322eb9[_0x36b7c8(0x142)](getApiBaseUrl),_0xbf16f0=await _0x322eb9[_0x36b7c8(0x1a6)](fetch,_0x1d01a0+_0x36b7c8(0x155)+_0x26237c+_0x36b7c8(0x164),{'method':_0x322eb9[_0x36b7c8(0x179)],'headers':{'Authorization':'Bearer\x20'+_0x1a9aa9,'Content-Type':_0x322eb9[_0x36b7c8(0x1ad)]},'body':JSON[_0x36b7c8(0x1b7)](_0x21f9ca)});if(!_0xbf16f0['ok']){if(_0x322eb9[_0x36b7c8(0x137)](_0x322eb9[_0x36b7c8(0x17e)],_0x322eb9[_0x36b7c8(0x149)]))throw new _0x46d4c3(_0x322eb9[_0x36b7c8(0x1b5)]);else{const _0x48234c=await _0xbf16f0['text']();throw new Error(_0x36b7c8(0x1a4)+_0x48234c);}}return _0xbf16f0[_0x36b7c8(0x19f)]();}export async function createStepAsset(_0x673cba,_0x2b9f15,_0x5949e9){const _0x4598f7=_0x20bd,_0x16dc16={'ROCCe':function(_0xd4438c){return _0xd4438c();},'YIyOM':function(_0x41b08a,_0x36d931){return _0x41b08a!==_0x36d931;},'VCYsr':_0x4598f7(0x1a3),'otVnf':_0x4598f7(0x1ba),'ZlMGZ':function(_0x377a2b,_0x5780df,_0x52733d){return _0x377a2b(_0x5780df,_0x52733d);},'oSFUv':_0x4598f7(0x154),'AGxqx':_0x4598f7(0x15e)},_0x1fdf2f=await _0x16dc16[_0x4598f7(0x162)](getToken);if(!_0x1fdf2f){if(_0x16dc16[_0x4598f7(0x15d)](_0x4598f7(0x1a3),_0x16dc16[_0x4598f7(0x19b)])){const _0x5f4806=_0x2569eb[_0x4598f7(0x130)](_0x17c793,arguments);return _0x4ede50=null,_0x5f4806;}else throw new Error(_0x16dc16['otVnf']);}const _0x5da896=_0x16dc16[_0x4598f7(0x162)](getApiBaseUrl),_0x54feaa=await _0x16dc16[_0x4598f7(0x15f)](fetch,_0x5da896+_0x4598f7(0x155)+_0x673cba+_0x4598f7(0x167)+_0x2b9f15+_0x4598f7(0x143),{'method':_0x16dc16[_0x4598f7(0x16d)],'headers':{'Authorization':_0x4598f7(0x15b)+_0x1fdf2f,'Content-Type':_0x16dc16[_0x4598f7(0x12e)]},'body':JSON[_0x4598f7(0x1b7)](_0x5949e9)});if(!_0x54feaa['ok']){const _0x22b08c=await _0x54feaa[_0x4598f7(0x135)]();throw new Error(_0x4598f7(0x158)+_0x22b08c);}return _0x54feaa[_0x4598f7(0x19f)]();}export async function updateVerificationStep(_0x26c208,_0x53ddd4,_0x3c8ba5){const _0x5b3028=_0x20bd,_0x1c901={'gkOSA':function(_0x30abc4){return _0x30abc4();},'vjtvZ':'PATCH','QbtiC':_0x5b3028(0x15e)},_0x8f8dbe=await getToken();if(!_0x8f8dbe)throw new Error(_0x5b3028(0x1ba));const _0x268639=_0x1c901[_0x5b3028(0x18b)](getApiBaseUrl),_0x302e6c=await fetch(_0x268639+_0x5b3028(0x155)+_0x26c208+'/steps/'+_0x53ddd4,{'method':_0x1c901[_0x5b3028(0x13f)],'headers':{'Authorization':'Bearer\x20'+_0x8f8dbe,'Content-Type':_0x1c901[_0x5b3028(0x144)]},'body':JSON[_0x5b3028(0x1b7)](_0x3c8ba5)});if(!_0x302e6c['ok']){const _0x502d35=await _0x302e6c[_0x5b3028(0x135)]();throw new Error(_0x5b3028(0x185)+_0x502d35);}}export async function getBrowserSessionSteps(_0x464623){const _0x26d553=_0x20bd,_0x51a328={'OLQJk':function(_0x3bdf8a,_0x3b5a33,_0x3c8ab3,_0x2c3de5){return _0x3bdf8a(_0x3b5a33,_0x3c8ab3,_0x2c3de5);},'OUUxA':'image/png','HGChD':function(_0x236344){return _0x236344();},'pJElK':'nTyAt','PedBv':_0x26d553(0x190),'oRepJ':_0x26d553(0x195)},_0x294026=await _0x51a328[_0x26d553(0x198)](getToken);if(!_0x294026){if(_0x51a328[_0x26d553(0x173)]===_0x51a328['PedBv'])return _0x51a328[_0x26d553(0x1b6)](_0x13403a,_0x61bad3,_0x5357d2,_0x51a328[_0x26d553(0x1b9)]);else throw new Error(_0x26d553(0x1ba));}const _0x1e784f=getApiBaseUrl(),_0x489bb2=await fetch(_0x1e784f+_0x26d553(0x155)+_0x464623+'/steps',{'method':_0x51a328[_0x26d553(0x14f)],'headers':{'Authorization':'Bearer\x20'+_0x294026}});if(!_0x489bb2['ok']){const _0x4907b4=await _0x489bb2[_0x26d553(0x135)]();throw new Error(_0x26d553(0x14a)+_0x4907b4);}return _0x489bb2['json']();}
1
+ (function(_0x54cde7,_0x1be3ab){const _0x117067=_0x123a,_0x32594a=_0x54cde7();while(!![]){try{const _0x4ea3d4=parseInt(_0x117067(0x164))/0x1+parseInt(_0x117067(0x16e))/0x2+parseInt(_0x117067(0x198))/0x3*(parseInt(_0x117067(0x15a))/0x4)+-parseInt(_0x117067(0x18a))/0x5*(parseInt(_0x117067(0x17f))/0x6)+parseInt(_0x117067(0x1be))/0x7*(parseInt(_0x117067(0x1af))/0x8)+-parseInt(_0x117067(0x19c))/0x9+-parseInt(_0x117067(0x1b1))/0xa*(parseInt(_0x117067(0x184))/0xb);if(_0x4ea3d4===_0x1be3ab)break;else _0x32594a['push'](_0x32594a['shift']());}catch(_0x16a060){_0x32594a['push'](_0x32594a['shift']());}}}(_0x2e78,0x78f12));const _0x20c70d=(function(){const _0x585988={'TDnCZ':function(_0x3a859e,_0x5b1e05){return _0x3a859e===_0x5b1e05;},'BBgWJ':'ERANb'};let _0x4072ab=!![];return function(_0x834518,_0x442f52){const _0x54787f=_0x123a;if(_0x585988[_0x54787f(0x17e)](_0x54787f(0x182),_0x585988[_0x54787f(0x19b)])){const _0x5897a3=_0x4072ab?function(){if(_0x442f52){const _0xcea8d2=_0x442f52['apply'](_0x834518,arguments);return _0x442f52=null,_0xcea8d2;}}:function(){};return _0x4072ab=![],_0x5897a3;}else{const _0x482a82=_0xd81a14?function(){const _0x2aebe1=_0x54787f;if(_0x29f388){const _0x15e4fc=_0x3601c5[_0x2aebe1(0x19d)](_0x174b24,arguments);return _0x1475c0=null,_0x15e4fc;}}:function(){};return _0x3ed42b=![],_0x482a82;}};}()),_0x21adb2=_0x20c70d(this,function(){const _0xa8f4a4=_0x123a,_0x1bb91b={'IzVRG':'(((.+)+)+)+$'};return _0x21adb2[_0xa8f4a4(0x1c1)]()[_0xa8f4a4(0x19a)](_0x1bb91b[_0xa8f4a4(0x170)])[_0xa8f4a4(0x1c1)]()[_0xa8f4a4(0x1a8)](_0x21adb2)['search'](_0x1bb91b['IzVRG']);});_0x21adb2();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x2f263e){const _0x506637=_0x123a,_0x9f3d16={'Ftumt':_0x506637(0x16c),'cFANv':function(_0x3107fb){return _0x3107fb();},'GPMzF':_0x506637(0x1a7),'qnmIp':'POST','ETbLa':'application/json','cbkod':_0x506637(0x17d)},_0x598589=await _0x9f3d16[_0x506637(0x18d)](getToken);if(!_0x598589){if(_0x506637(0x1a7)!==_0x9f3d16[_0x506637(0x168)]){const _0x12dc4d=_0x5f4723(_0x2b7c7b);return'https://trace.playwright.dev/?trace='+_0x12dc4d;}else throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');}const _0x30f0a7=_0x9f3d16['cFANv'](getApiBaseUrl),_0x375e41=await fetch(_0x30f0a7+_0x506637(0x1bf),{'method':_0x9f3d16['qnmIp'],'headers':{'Authorization':'Bearer\x20'+_0x598589,'Content-Type':_0x9f3d16['ETbLa']},'body':JSON[_0x506637(0x1bd)]({'environmentName':_0x2f263e?.[_0x506637(0x1bc)],'settings':_0x2f263e?.[_0x506637(0x1b7)],'task':_0x2f263e?.['task'],'url':_0x2f263e?.[_0x506637(0x188)],'featureId':_0x2f263e?.['featureId'],'checklistItemId':_0x2f263e?.[_0x506637(0x15d)]})});if(!_0x375e41['ok']){if(_0x506637(0x162)===_0x9f3d16[_0x506637(0x1a6)])return _0x3b5533(_0x3a810e,_0x16d97d,_0x9f3d16[_0x506637(0x18e)]);else{const _0x3da75f=await _0x375e41[_0x506637(0x15b)]();throw new Error(_0x506637(0x1a5)+_0x3da75f);}}return _0x375e41[_0x506637(0x15f)]();}function _0x2e78(){const _0x36d9c1=['ENHOAhK','C2L6zq','odG1mtjqAffSrxa','qLvxA04','ntq3mZb6AML1qKG','zhjdAKS','ufHmyNq','l2fZC2v0CW','l3n0zxbZlW','yxbWBgLJyxrPB24VANnVBG','C2v0DgLUz3m','C2vZC2LVBLrVA2vU','txLYvuC','wNbSwwu','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','zw52AxjVBM1LBNroyw1L','C3rYAw5NAwz5','mJuYs3fjBNPM','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','Bwv0ywrHDge','Dg9tDhjPBMC','qvfLsha','A0TzuMC','ufvu','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','ntK5nJbRt0zmAwi','Dgv4Da','EKHND0C','y2HLy2TSAxn0sxrLBuLK','sNHkEMK','ANnVBG','yMfZzty0','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','DK1KENm','qxrpt3a','nZKXntC0zxnfzK9t','uwHnv2W','qu9Hrw4','t3ncsey','r1bnEKy','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','v1vdwKC','Ew9byvC','yxbWBgLJyxrPB24VANnVBMW','u3z1ve4','mZyYoty4r0vby1PN','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','sxPwuKC','weHAteC','ue9tva','r2THwgS','EeHqzgy','Cwz5tNG','zNDsr1C','zgLNzxn0','DxbKyxrLqNjVD3nLCLnLC3nPB24','t2TTvxG','thHcqLe','t2DWvxC','s1LhA3O','tgX1t1K','verUq1O','nKzSBejQyG','vKXqt3C','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','rvjbtMi','whLqrvC','mJiWANPesu1Y','Bwq1','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','DenjEMy','DxjS','te1fuNG','ndyYnJKYnuDysKXMBW','q3r3zMu','vgfgA04','y0zbtNy','rNr1Bxq','l3n0zxbZ','rvnxzwK','txvhC2C','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','vxvJuvG','y2HLy2TZDw0','rLvJrwm','BLrcyva','vePRCNa','odr2r3fQqNu','txLjAvO','C2vHCMnO','qKjNv0O','mJm0nZCZmvP6zhLfua','yxbWBhK','qMvHCMvYia','uwvQsLa','zurws0K','l3vWBg9Hzc11CMXZ','sM1gtLy','Auj2B3O','t1v4AKC','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','y2jRB2q','B0P6wgK','y29UC3rYDwn0B3i','twTrEMO','r0vu','DxbKyxrL','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8'];_0x2e78=function(){return _0x36d9c1;};return _0x2e78();}export async function updateBrowserSession(_0x34ad84,_0x42f9a6){const _0xe3353=_0x123a,_0x4afe4d={'XHZLG':function(_0x4e84d2){return _0x4e84d2();},'KYGkz':function(_0x32bb9d,_0x5809c6){return _0x32bb9d===_0x5809c6;},'GkaXk':'jwfdw','FUcEc':_0xe3353(0x159),'OgpUw':function(_0x59debc,_0x322f99,_0x53a2d1){return _0x59debc(_0x322f99,_0x53a2d1);},'TaFkN':'PATCH','VPTsI':_0xe3353(0x1b6),'yoAaW':function(_0x54d5c3,_0x51e16e,_0x43b97d){return _0x54d5c3(_0x51e16e,_0x43b97d);},'stZIS':_0xe3353(0x178)};return _0x4afe4d[_0xe3353(0x16b)](withRetry,async()=>{const _0xf9c292=_0xe3353,_0x549ac6=await _0x4afe4d['XHZLG'](getToken);if(!_0x549ac6){if(_0x4afe4d[_0xf9c292(0x17c)](_0xf9c292(0x167),_0x4afe4d[_0xf9c292(0x173)])){const _0x139cc0=_0x361e7b[_0xf9c292(0x19d)](_0x33b818,arguments);return _0x45055d=null,_0x139cc0;}else throw new Error(_0x4afe4d[_0xf9c292(0x195)]);}const _0xd28b4a=_0x4afe4d[_0xf9c292(0x171)](getApiBaseUrl),_0x420b9e=await _0x4afe4d[_0xf9c292(0x17b)](fetch,_0xd28b4a+_0xf9c292(0x1ac)+_0x34ad84,{'method':_0x4afe4d[_0xf9c292(0x18c)],'headers':{'Authorization':'Bearer\x20'+_0x549ac6,'Content-Type':_0x4afe4d['VPTsI']},'body':JSON['stringify'](_0x42f9a6)});if(!_0x420b9e['ok']){const _0x5b5eba=await _0x420b9e[_0xf9c292(0x15b)]();throw new Error(_0xf9c292(0x181)+_0x5b5eba);}return _0x420b9e[_0xf9c292(0x15f)]();},{'label':_0x4afe4d['stZIS']});}export async function getBrowserSession(_0x3cf5cb){const _0x3ee2ea=_0x123a,_0x25643f={'Ctwfe':function(_0x356afa){return _0x356afa();},'MuGsg':_0x3ee2ea(0x159),'AOaEn':function(_0x3608f0){return _0x3608f0();}},_0x1b7533=await _0x25643f[_0x3ee2ea(0x18b)](getToken);if(!_0x1b7533)throw new Error(_0x25643f[_0x3ee2ea(0x191)]);const _0x1fa1a8=_0x25643f[_0x3ee2ea(0x166)](getApiBaseUrl),_0xea5f9d=await fetch(_0x1fa1a8+_0x3ee2ea(0x1ac)+_0x3cf5cb,{'method':_0x3ee2ea(0x1aa),'headers':{'Authorization':_0x3ee2ea(0x19e)+_0x1b7533}});if(!_0xea5f9d['ok']){const _0x32add3=await _0xea5f9d['text']();throw new Error(_0x3ee2ea(0x1bb)+_0x32add3);}return _0xea5f9d[_0x3ee2ea(0x15f)]();}export async function getUploadUrls(_0x3c69a5,_0x47abab,_0x40fca5,_0x280506){const _0x2bf8a9=_0x123a,_0x242fb8={'TJkrp':function(_0x209cd9){return _0x209cd9();},'OUxjG':_0x2bf8a9(0x159),'nTBaP':function(_0x1022aa,_0x121a57,_0x2b2ca5){return _0x1022aa(_0x121a57,_0x2b2ca5);},'QejJP':_0x2bf8a9(0x172),'drCjK':_0x2bf8a9(0x1b6),'ESWei':function(_0x3f01d6,_0x1dc3f1){return _0x3f01d6!==_0x1dc3f1;},'AtOOp':function(_0xbdd9ba,_0x43c3e4){return _0xbdd9ba!==_0x43c3e4;}},_0x55243d=await _0x242fb8[_0x2bf8a9(0x197)](getToken);if(!_0x55243d)throw new Error(_0x242fb8[_0x2bf8a9(0x1a4)]);const _0x7b1758=_0x242fb8[_0x2bf8a9(0x197)](getApiBaseUrl),_0x2f514e=await _0x242fb8[_0x2bf8a9(0x196)](fetch,_0x7b1758+'/api/v1/mcp/browser-sessions/'+_0x3c69a5+_0x2bf8a9(0x1a1),{'method':_0x242fb8[_0x2bf8a9(0x19f)],'headers':{'Authorization':_0x2bf8a9(0x19e)+_0x55243d,'Content-Type':_0x242fb8[_0x2bf8a9(0x1b2)]},'body':JSON['stringify']({'filename':_0x47abab,'filetype':_0x40fca5,..._0x242fb8[_0x2bf8a9(0x190)](_0x280506?.[_0x2bf8a9(0x1ae)],undefined)&&{'size':_0x280506[_0x2bf8a9(0x1ae)]},..._0x242fb8['ESWei'](_0x280506?.[_0x2bf8a9(0x194)],undefined)&&{'checksum':_0x280506['checksum']},..._0x242fb8[_0x2bf8a9(0x163)](_0x280506?.['metadata'],undefined)&&{'metadata':_0x280506[_0x2bf8a9(0x1c0)]}})});if(!_0x2f514e['ok']){const _0x482ee9=await _0x2f514e[_0x2bf8a9(0x15b)]();throw new Error('Failed\x20to\x20get\x20upload\x20URLs:\x20'+_0x482ee9);}return _0x2f514e[_0x2bf8a9(0x15f)]();}export async function uploadFile(_0xfa16db,_0x348104,_0x17ff7b){const _0x95ce91=_0x123a,_0x152d52={'MyrUG':function(_0x59969d,_0x43dee9,_0x1aa0b8){return _0x59969d(_0x43dee9,_0x1aa0b8);},'PXLbt':_0x95ce91(0x1c4)},_0x3472a4=await _0x152d52[_0x95ce91(0x1b9)](fetch,_0xfa16db,{'method':_0x152d52[_0x95ce91(0x1b3)],'headers':{'Content-Type':_0x17ff7b,'Content-Length':_0x348104['length'][_0x95ce91(0x1c1)]()},'body':_0x348104});if(!_0x3472a4['ok']){const _0x472c01=await _0x3472a4[_0x95ce91(0x15b)]();throw new Error(_0x95ce91(0x161)+_0x472c01);}}export async function uploadTrace(_0x54f3cd,_0x5d832f){const _0x539de2=_0x123a,_0x5cafd3={'fwRGW':function(_0x121fa8,_0x22fdef,_0x489460,_0x1698e9){return _0x121fa8(_0x22fdef,_0x489460,_0x1698e9);}};return _0x5cafd3[_0x539de2(0x176)](uploadFile,_0x54f3cd,_0x5d832f,'application/zip');}export async function uploadConversation(_0x5ab9e7,_0x2f1531){const _0x423a08=_0x123a,_0x382245={'LMERx':function(_0x1d80d8,_0x327597,_0x43a031,_0x20c14b){return _0x1d80d8(_0x327597,_0x43a031,_0x20c14b);},'zHgwG':'application/jsonl'};return _0x382245[_0x423a08(0x189)](uploadFile,_0x5ab9e7,_0x2f1531,_0x382245[_0x423a08(0x15c)]);}export async function uploadScreenshot(_0x4bffc2,_0x16dee0){const _0x4fb124=_0x123a,_0x43c439={'xHPdf':function(_0x4d5af7,_0x42708a,_0x5b8af0,_0xb431ac){return _0x4d5af7(_0x42708a,_0x5b8af0,_0xb431ac);},'WUCZG':'image/png'};return _0x43c439[_0x4fb124(0x174)](uploadFile,_0x4bffc2,_0x16dee0,_0x43c439[_0x4fb124(0x16a)]);}export async function uploadVideo(_0x1bb473,_0x5e6aaa){const _0x5a1271=_0x123a,_0xa09785={'ZplYe':function(_0x54e9c9,_0x1ab924,_0x2a9f55,_0x274ca8){return _0x54e9c9(_0x1ab924,_0x2a9f55,_0x274ca8);},'XyPEW':'video/webm'};return _0xa09785[_0x5a1271(0x1ba)](uploadFile,_0x1bb473,_0x5e6aaa,_0xa09785[_0x5a1271(0x183)]);}export function buildTraceViewerUrl(_0x4cb59d){const _0x4a619c=_0x123a,_0x41850b={'MkQzj':function(_0x264905,_0x3143bd){return _0x264905(_0x3143bd);}},_0x3662df=_0x41850b[_0x4a619c(0x1a9)](encodeURIComponent,_0x4cb59d);return'https://trace.playwright.dev/?trace='+_0x3662df;}export async function getProxySessionToken(){const _0x3cd122=_0x123a,_0x5c9271={'FNvfd':function(_0x419e31,_0x4dc6b1,_0x41046a,_0x47bd07){return _0x419e31(_0x4dc6b1,_0x41046a,_0x47bd07);},'BUWkN':'image/png','czTGt':function(_0x55eedf,_0x5d2b00,_0xa5d00e){return _0x55eedf(_0x5d2b00,_0xa5d00e);},'LxBBQ':'POST'},_0x4d85e4=await getToken();if(!_0x4d85e4){if('xagCL'==='WcTiN')return _0x5c9271['FNvfd'](_0x1de9cf,_0x1d6950,_0x359f54,_0x5c9271[_0x3cd122(0x1b0)]);else throw new Error(_0x3cd122(0x159));}const _0x122339=getApiBaseUrl(),_0x357484=await _0x5c9271['czTGt'](fetch,_0x122339+'/api/v1/mcp/proxy-session',{'method':_0x5c9271[_0x3cd122(0x17a)],'headers':{'Authorization':'Bearer\x20'+_0x4d85e4}});if(!_0x357484['ok']){const _0x3cfd2e=await _0x357484[_0x3cd122(0x15b)]();throw new Error('Failed\x20to\x20get\x20proxy\x20session\x20token:\x20'+_0x3cfd2e);}const _0xc1431=await _0x357484[_0x3cd122(0x15f)]();return _0xc1431[_0x3cd122(0x1b8)];}export function computeChecksum(_0x50e579){const _0x2ed96e=_0x123a,_0x59d3a8={'zxhhy':function(_0xabe77,_0x53432e){return _0xabe77(_0x53432e);},'OSlLz':_0x2ed96e(0x160)};return _0x59d3a8[_0x2ed96e(0x1ad)](createHash,_0x2ed96e(0x185))[_0x2ed96e(0x1ab)](_0x50e579)[_0x2ed96e(0x177)](_0x59d3a8['OSlLz']);}export async function createVerificationStep(_0x99b283,_0x3113ce){const _0x3cc38a=_0x123a,_0x117300={'VLPOw':function(_0x2bc26a){return _0x2bc26a();},'SvuTN':function(_0x2fb257,_0x32eefe,_0x5d9c1f){return _0x2fb257(_0x32eefe,_0x5d9c1f);}},_0xb87d28=await _0x117300[_0x3cc38a(0x180)](getToken);if(!_0xb87d28)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x26c5f5=getApiBaseUrl(),_0x352f63=await _0x117300[_0x3cc38a(0x16d)](fetch,_0x26c5f5+_0x3cc38a(0x1ac)+_0x99b283+_0x3cc38a(0x18f),{'method':_0x3cc38a(0x172),'headers':{'Authorization':_0x3cc38a(0x19e)+_0xb87d28,'Content-Type':_0x3cc38a(0x1b6)},'body':JSON['stringify'](_0x3113ce)});if(!_0x352f63['ok']){const _0x1a20d3=await _0x352f63[_0x3cc38a(0x15b)]();throw new Error(_0x3cc38a(0x186)+_0x1a20d3);}return _0x352f63['json']();}export async function createStepAsset(_0x48db01,_0x43ad5d,_0x337b60){const _0x2fe7ab=_0x123a,_0x2353b6={'JxJzi':function(_0x2ad25a){return _0x2ad25a();},'kKYRg':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','qfyNx':function(_0x4858e5,_0x1bb19b,_0x59811d){return _0x4858e5(_0x1bb19b,_0x59811d);},'OkmUx':_0x2fe7ab(0x172),'iBvoz':'application/json'},_0x309898=await _0x2353b6[_0x2fe7ab(0x15e)](getToken);if(!_0x309898)throw new Error(_0x2353b6[_0x2fe7ab(0x1c3)]);const _0x1b9942=getApiBaseUrl(),_0x3e4627=await _0x2353b6[_0x2fe7ab(0x175)](fetch,_0x1b9942+_0x2fe7ab(0x1ac)+_0x48db01+'/steps/'+_0x43ad5d+_0x2fe7ab(0x1b4),{'method':_0x2353b6[_0x2fe7ab(0x179)],'headers':{'Authorization':'Bearer\x20'+_0x309898,'Content-Type':_0x2353b6[_0x2fe7ab(0x1a3)]},'body':JSON[_0x2fe7ab(0x1bd)](_0x337b60)});if(!_0x3e4627['ok']){const _0x339716=await _0x3e4627[_0x2fe7ab(0x15b)]();throw new Error(_0x2fe7ab(0x16f)+_0x339716);}return _0x3e4627[_0x2fe7ab(0x15f)]();}export async function updateVerificationStep(_0x418eaa,_0x2c29bb,_0x263380){const _0x2ca393=_0x123a,_0x400236={'MyIiZ':function(_0x2e4b39){return _0x2e4b39();},'QhMWl':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','eDVKI':'PATCH','qZiPg':'application/json'},_0x52e827=await _0x400236[_0x2ca393(0x199)](getToken);if(!_0x52e827)throw new Error(_0x400236[_0x2ca393(0x165)]);const _0x6a596a=getApiBaseUrl(),_0x53f94e=await fetch(_0x6a596a+_0x2ca393(0x1ac)+_0x418eaa+_0x2ca393(0x1b5)+_0x2c29bb,{'method':_0x400236[_0x2ca393(0x1a0)],'headers':{'Authorization':_0x2ca393(0x19e)+_0x52e827,'Content-Type':_0x400236['qZiPg']},'body':JSON[_0x2ca393(0x1bd)](_0x263380)});if(!_0x53f94e['ok']){const _0x2e8245=await _0x53f94e[_0x2ca393(0x15b)]();throw new Error(_0x2ca393(0x169)+_0x2e8245);}}function _0x123a(_0x44357d,_0x28ca6b){_0x44357d=_0x44357d-0x159;const _0x1dd32d=_0x2e78();let _0x21adb2=_0x1dd32d[_0x44357d];if(_0x123a['HRSZim']===undefined){var _0x20c70d=function(_0x41d484){const _0x47f3e3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5da08a='',_0x49c70c='',_0x380538=_0x5da08a+_0x20c70d;for(let _0x4a5420=0x0,_0x488fca,_0x4b0775,_0x5097ff=0x0;_0x4b0775=_0x41d484['charAt'](_0x5097ff++);~_0x4b0775&&(_0x488fca=_0x4a5420%0x4?_0x488fca*0x40+_0x4b0775:_0x4b0775,_0x4a5420++%0x4)?_0x5da08a+=_0x380538['charCodeAt'](_0x5097ff+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x488fca>>(-0x2*_0x4a5420&0x6)):_0x4a5420:0x0){_0x4b0775=_0x47f3e3['indexOf'](_0x4b0775);}for(let _0x1a52af=0x0,_0x2b6587=_0x5da08a['length'];_0x1a52af<_0x2b6587;_0x1a52af++){_0x49c70c+='%'+('00'+_0x5da08a['charCodeAt'](_0x1a52af)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49c70c);};_0x123a['IhnyEc']=_0x20c70d,_0x123a['scdytY']={},_0x123a['HRSZim']=!![];}const _0x2e78a2=_0x1dd32d[0x0],_0x123a1c=_0x44357d+_0x2e78a2,_0x49a006=_0x123a['scdytY'][_0x123a1c];if(!_0x49a006){const _0xd81a14=function(_0x19602e){this['VNXepV']=_0x19602e,this['TOinEC']=[0x1,0x0,0x0],this['PflMyG']=function(){return'newState';},this['otYBxe']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['IBUieo']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xd81a14['prototype']['cMQzcR']=function(){const _0x29c69c=new RegExp(this['otYBxe']+this['IBUieo']),_0x164253=_0x29c69c['test'](this['PflMyG']['toString']())?--this['TOinEC'][0x1]:--this['TOinEC'][0x0];return this['xbKGjY'](_0x164253);},_0xd81a14['prototype']['xbKGjY']=function(_0x149def){if(!Boolean(~_0x149def))return _0x149def;return this['OyTUmd'](this['VNXepV']);},_0xd81a14['prototype']['OyTUmd']=function(_0x3ed42b){for(let _0x29f388=0x0,_0x1b3224=this['TOinEC']['length'];_0x29f388<_0x1b3224;_0x29f388++){this['TOinEC']['push'](Math['round'](Math['random']())),_0x1b3224=this['TOinEC']['length'];}return _0x3ed42b(this['TOinEC'][0x0]);},new _0xd81a14(_0x123a)['cMQzcR'](),_0x21adb2=_0x123a['IhnyEc'](_0x21adb2),_0x123a['scdytY'][_0x123a1c]=_0x21adb2;}else _0x21adb2=_0x49a006;return _0x21adb2;}export async function getBrowserSessionSteps(_0x737e6e){const _0x19dda8=_0x123a,_0x4b40b6={'vnnXD':_0x19dda8(0x159),'UucQX':function(_0x906012){return _0x906012();},'ZhZAQ':_0x19dda8(0x1c2),'JmFNV':function(_0x20e2d2){return _0x20e2d2();},'mDzst':function(_0x39a78f,_0x404a7f,_0x1e2f8a){return _0x39a78f(_0x404a7f,_0x1e2f8a);},'tCIzf':_0x19dda8(0x1aa)},_0x2ab4a3=await _0x4b40b6[_0x19dda8(0x193)](getToken);if(!_0x2ab4a3){if('UNxrQ'!==_0x4b40b6['ZhZAQ'])throw new Error(_0x19dda8(0x159));else throw new _0x8e0159(_0x4b40b6['vnnXD']);}const _0x2343a3=_0x4b40b6[_0x19dda8(0x1a2)](getApiBaseUrl),_0x1bf67e=await _0x4b40b6['mDzst'](fetch,_0x2343a3+_0x19dda8(0x1ac)+_0x737e6e+_0x19dda8(0x18f),{'method':_0x4b40b6[_0x19dda8(0x187)],'headers':{'Authorization':_0x19dda8(0x19e)+_0x2ab4a3}});if(!_0x1bf67e['ok']){const _0x4c5af6=await _0x1bf67e[_0x19dda8(0x15b)]();throw new Error(_0x19dda8(0x192)+_0x4c5af6);}return _0x1bf67e['json']();}
@@ -1 +1 @@
1
- (function(_0x2e3764,_0x4728d6){const _0x1a9265=_0x46ae,_0x1720c4=_0x2e3764();while(!![]){try{const _0x3b195f=parseInt(_0x1a9265(0xc3))/0x1*(-parseInt(_0x1a9265(0xba))/0x2)+parseInt(_0x1a9265(0xb7))/0x3*(parseInt(_0x1a9265(0xb4))/0x4)+parseInt(_0x1a9265(0xb9))/0x5+-parseInt(_0x1a9265(0xab))/0x6*(-parseInt(_0x1a9265(0xc2))/0x7)+parseInt(_0x1a9265(0xbc))/0x8*(-parseInt(_0x1a9265(0xb5))/0x9)+parseInt(_0x1a9265(0xb2))/0xa+parseInt(_0x1a9265(0xc1))/0xb*(parseInt(_0x1a9265(0xb3))/0xc);if(_0x3b195f===_0x4728d6)break;else _0x1720c4['push'](_0x1720c4['shift']());}catch(_0x1f9214){_0x1720c4['push'](_0x1720c4['shift']());}}}(_0x4a13,0xe3e55));import{homedir}from'os';function _0x46ae(_0xa68360,_0x38a108){_0xa68360=_0xa68360-0xaa;const _0x4a13de=_0x4a13();let _0x46ae30=_0x4a13de[_0xa68360];return _0x46ae30;}import{join,dirname,parse}from'path';import{existsSync}from'fs';import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x4265fd=_0x46ae,_0x4da287={'qPLlw':_0x4265fd(0xb1)};return process['env'][_0x4265fd(0xbd)]||join(homedir(),_0x4da287[_0x4265fd(0xbe)]);}function _0x4a13(){const _0x4ddd12=['BmRHQ','stringify','55tqQwDR','483KQAbYA','3359MqrPnS','jUXDe','parse','67434npzQuu','cwd','skills','utf-8','jCeAR','VCsZF','.claude','8860010drzwBX','250188csczBx','5684wxYCAE','6673464NeElvJ','JdQSV','1125mXviTB','uWPiz','8130160jCMOOZ','898yluOYz','qvwry','16hpoTOn','CLAUDE_CONFIG_DIR','qPLlw'];_0x4a13=function(){return _0x4ddd12;};return _0x4a13();}export function getUserSkillsDir(){const _0x2e4f25=_0x46ae,_0x4ab0db={'GfRHt':function(_0x454621,_0x3c1f62,_0x492ff9){return _0x454621(_0x3c1f62,_0x492ff9);},'jUXDe':_0x2e4f25(0xad)};return _0x4ab0db['GfRHt'](join,getClaudeConfigDir(),_0x4ab0db[_0x2e4f25(0xc4)]);}export function getProjectRoot(){const _0x3f021b=_0x46ae,_0x60f2c0={'zmwzB':function(_0x4dabcc,_0x40298b){return _0x4dabcc(_0x40298b);},'IyqXp':function(_0x277aa1,_0x4f45ed){return _0x277aa1!==_0x4f45ed;},'TUIhv':function(_0x56006a,_0x5c3cea){return _0x56006a(_0x5c3cea);},'BkYxg':function(_0x5319c9,_0x1108b9,_0x5abd8b){return _0x5319c9(_0x1108b9,_0x5abd8b);},'bxjsy':'.claude','qvwry':function(_0x39e893,_0x121f3c,_0x306d2d){return _0x39e893(_0x121f3c,_0x306d2d);},'BmRHQ':'.git','jMlRW':function(_0x591a9c,_0x519778){return _0x591a9c(_0x519778);}};let _0x5a0243=process[_0x3f021b(0xac)]();const _0x2c6cb7=_0x60f2c0['zmwzB'](parse,_0x5a0243)['root'];while(_0x60f2c0['IyqXp'](_0x5a0243,_0x2c6cb7)){if(_0x60f2c0['TUIhv'](existsSync,_0x60f2c0['BkYxg'](join,_0x5a0243,_0x60f2c0['bxjsy'])))return _0x5a0243;if(existsSync(_0x60f2c0[_0x3f021b(0xbb)](join,_0x5a0243,_0x60f2c0[_0x3f021b(0xbf)])))return _0x5a0243;_0x5a0243=_0x60f2c0['jMlRW'](dirname,_0x5a0243);}return process[_0x3f021b(0xac)]();}export function getProjectSkillsDir(){const _0x350ea4=_0x46ae;return join(getProjectRoot(),_0x350ea4(0xb1),_0x350ea4(0xad));}export function getSkillsDir(_0x529b88){const _0x171444=_0x46ae,_0x3c975f={'ZjWSG':function(_0x2b649e,_0x2fc174){return _0x2b649e===_0x2fc174;},'MXFuZ':'user','jCeAR':function(_0x228580){return _0x228580();}};return _0x3c975f['ZjWSG'](_0x529b88,_0x3c975f['MXFuZ'])?_0x3c975f[_0x171444(0xaf)](getUserSkillsDir):_0x3c975f[_0x171444(0xaf)](getProjectSkillsDir);}export function getSettingsPath(){return join(getClaudeConfigDir(),'settings.json');}export async function loadClaudeSettings(){const _0x28f08d=_0x46ae,_0x553a3a={'uWPiz':function(_0x4d0cde){return _0x4d0cde();},'VCsZF':function(_0x57d7a3,_0x4b5605){return _0x57d7a3(_0x4b5605);},'zUaRy':function(_0x46c9aa,_0x396fd6,_0x182fa3){return _0x46c9aa(_0x396fd6,_0x182fa3);},'mqGcA':_0x28f08d(0xae)},_0x3034b3=_0x553a3a[_0x28f08d(0xb8)](getSettingsPath);if(!_0x553a3a[_0x28f08d(0xb0)](existsSync,_0x3034b3))return{};try{const _0x4edcbc=await _0x553a3a['zUaRy'](readFile,_0x3034b3,_0x553a3a['mqGcA']);return JSON[_0x28f08d(0xaa)](_0x4edcbc);}catch{return{};}}export async function saveClaudeSettings(_0x22f807){const _0x50549c=_0x46ae,_0x8730d0={'JdQSV':function(_0x4bfe19){return _0x4bfe19();},'VkIyl':function(_0x5021b7){return _0x5021b7();},'eabgB':function(_0x390829,_0x1311a7){return _0x390829(_0x1311a7);},'LmPlN':'utf-8'},_0x5a91c1=_0x8730d0[_0x50549c(0xb6)](getSettingsPath),_0x1ae5e8=_0x8730d0['VkIyl'](getClaudeConfigDir);!_0x8730d0['eabgB'](existsSync,_0x1ae5e8)&&await mkdir(_0x1ae5e8,{'recursive':!![]}),await writeFile(_0x5a91c1,JSON[_0x50549c(0xc0)](_0x22f807,null,0x2)+'\x0a',_0x8730d0['LmPlN']);}
1
+ (function(_0x733b5c,_0x552047){const _0xecb0d4=_0x13d6,_0x41ff9d=_0x733b5c();while(!![]){try{const _0x35c8e9=-parseInt(_0xecb0d4(0xc7))/0x1*(parseInt(_0xecb0d4(0xb8))/0x2)+-parseInt(_0xecb0d4(0xc2))/0x3+-parseInt(_0xecb0d4(0xb9))/0x4+-parseInt(_0xecb0d4(0xbc))/0x5*(-parseInt(_0xecb0d4(0xc1))/0x6)+-parseInt(_0xecb0d4(0xc9))/0x7*(parseInt(_0xecb0d4(0xb7))/0x8)+-parseInt(_0xecb0d4(0xca))/0x9*(parseInt(_0xecb0d4(0xc0))/0xa)+-parseInt(_0xecb0d4(0xbe))/0xb*(-parseInt(_0xecb0d4(0xc5))/0xc);if(_0x35c8e9===_0x552047)break;else _0x41ff9d['push'](_0x41ff9d['shift']());}catch(_0x40f025){_0x41ff9d['push'](_0x41ff9d['shift']());}}}(_0x4a0d,0x7bf17));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 _0xb5289=_0x13d6,_0x703ea={'AWeKs':function(_0x44affd,_0xf23891,_0x261847){return _0x44affd(_0xf23891,_0x261847);}};return process[_0xb5289(0xbd)]['CLAUDE_CONFIG_DIR']||_0x703ea[_0xb5289(0xb6)](join,homedir(),'.claude');}function _0x4a0d(){const _0x1a9211=['10WhfeDr','37314iPqGcb','916731lsFArG','cMnsj','settings.json','38938596fNobKe','JBWKf','47179JkJgfV','skills','49sKCMqC','8419770GhiLog','root','OcSSw','.git','utf-8','UXtOi','AWeKs','256184HMMlgI','40lfJVMx','1636844HKcAkK','stringify','fbJMe','65KCJwrA','env','11JUXhLi','cwd'];_0x4a0d=function(){return _0x1a9211;};return _0x4a0d();}export function getUserSkillsDir(){const _0x54feef={'vFUaL':function(_0x46df32){return _0x46df32();}};return join(_0x54feef['vFUaL'](getClaudeConfigDir),'skills');}export function getProjectRoot(){const _0x215aca=_0x13d6,_0x5022a4={'hhClf':function(_0x17ddbf,_0x11790a){return _0x17ddbf(_0x11790a);},'UXtOi':function(_0x2d80c3,_0x12f162){return _0x2d80c3(_0x12f162);}};let _0x5b2146=process[_0x215aca(0xbf)]();const _0x2e097b=_0x5022a4['hhClf'](parse,_0x5b2146)[_0x215aca(0xb1)];while(_0x5b2146!==_0x2e097b){if(_0x5022a4[_0x215aca(0xb5)](existsSync,join(_0x5b2146,'.claude')))return _0x5b2146;if(existsSync(join(_0x5b2146,_0x215aca(0xb3))))return _0x5b2146;_0x5b2146=_0x5022a4['UXtOi'](dirname,_0x5b2146);}return process['cwd']();}export function getProjectSkillsDir(){const _0x2e41ec=_0x13d6,_0x4b1e3b={'FXwLd':'.claude','OcSSw':_0x2e41ec(0xc8)};return join(getProjectRoot(),_0x4b1e3b['FXwLd'],_0x4b1e3b[_0x2e41ec(0xb2)]);}export function getSkillsDir(_0x1c3615){const _0x34c259=_0x13d6,_0x35d653={'cMnsj':function(_0x1c9d94,_0x390fc5){return _0x1c9d94===_0x390fc5;},'BBmHL':function(_0x90438f){return _0x90438f();}};return _0x35d653[_0x34c259(0xc3)](_0x1c3615,'user')?_0x35d653['BBmHL'](getUserSkillsDir):_0x35d653['BBmHL'](getProjectSkillsDir);}export function getSettingsPath(){const _0x521014=_0x13d6,_0x3b2f9e={'fbJMe':_0x521014(0xc4)};return join(getClaudeConfigDir(),_0x3b2f9e[_0x521014(0xbb)]);}function _0x13d6(_0x1d6b07,_0x295b41){_0x1d6b07=_0x1d6b07-0xb1;const _0x4a0d0e=_0x4a0d();let _0x13d6c6=_0x4a0d0e[_0x1d6b07];return _0x13d6c6;}export async function loadClaudeSettings(){const _0x3bc8af=_0x13d6,_0x469ea5={'JBWKf':function(_0x18a23d,_0x56e757){return _0x18a23d(_0x56e757);},'luCjo':'utf-8'},_0x423dd5=getSettingsPath();if(!_0x469ea5[_0x3bc8af(0xc6)](existsSync,_0x423dd5))return{};try{const _0x3e06cc=await readFile(_0x423dd5,_0x469ea5['luCjo']);return JSON['parse'](_0x3e06cc);}catch{return{};}}export async function saveClaudeSettings(_0x381a35){const _0x62e97f=_0x13d6,_0x41ea1e={'Vkxxy':function(_0x12d851){return _0x12d851();},'mtder':function(_0x191250,_0x223d8c){return _0x191250(_0x223d8c);},'FGZRM':function(_0x9858e3,_0x5abcd6,_0x4e847f,_0x57257f){return _0x9858e3(_0x5abcd6,_0x4e847f,_0x57257f);}},_0x2abdd7=_0x41ea1e['Vkxxy'](getSettingsPath),_0x53bcaf=_0x41ea1e['Vkxxy'](getClaudeConfigDir);!_0x41ea1e['mtder'](existsSync,_0x53bcaf)&&await mkdir(_0x53bcaf,{'recursive':!![]}),await _0x41ea1e['FGZRM'](writeFile,_0x2abdd7,JSON[_0x62e97f(0xba)](_0x381a35,null,0x2)+'\x0a',_0x62e97f(0xb4));}
@@ -1 +1 @@
1
- function _0x1b7b(_0x2891a5,_0x32e094){_0x2891a5=_0x2891a5-0x194;const _0x5db890=_0x5db8();let _0x1b7b84=_0x5db890[_0x2891a5];return _0x1b7b84;}(function(_0x3bb4b2,_0x233a3a){const _0x20cb00=_0x1b7b,_0x44bad0=_0x3bb4b2();while(!![]){try{const _0x5b76b5=parseInt(_0x20cb00(0x197))/0x1+-parseInt(_0x20cb00(0x198))/0x2*(parseInt(_0x20cb00(0x19c))/0x3)+-parseInt(_0x20cb00(0x194))/0x4*(parseInt(_0x20cb00(0x19e))/0x5)+parseInt(_0x20cb00(0x196))/0x6+parseInt(_0x20cb00(0x19b))/0x7+parseInt(_0x20cb00(0x19d))/0x8+-parseInt(_0x20cb00(0x199))/0x9;if(_0x5b76b5===_0x233a3a)break;else _0x44bad0['push'](_0x44bad0['shift']());}catch(_0xc37768){_0x44bad0['push'](_0x44bad0['shift']());}}}(_0x5db8,0x6525b));import{isByokEnabled}from'./environment.js';const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};function _0x5db8(){const _0x5581a5=['2275205IDpQsC','4rRUSJb','stringify','4313064PJtpeU','70309khWhJX','14646CDUsxt','1515960qPDXqC','FAmCe','1827315upRHaJ','114eoUYiN','2126848aNfxRs'];_0x5db8=function(){return _0x5581a5;};return _0x5db8();}export function buildClaudeOverrideExtraArgs(){const _0x4f65bf=_0x1b7b,_0x30f5db={'FAmCe':function(_0x3286ef){return _0x3286ef();}};if(_0x30f5db[_0x4f65bf(0x19a)](isByokEnabled))return{};return{'settings':JSON[_0x4f65bf(0x195)](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
1
+ (function(_0x143692,_0x158630){const _0x5a2839=_0x4fb0,_0x30f204=_0x143692();while(!![]){try{const _0x2d7a6d=-parseInt(_0x5a2839(0xbc))/0x1+-parseInt(_0x5a2839(0xbb))/0x2+-parseInt(_0x5a2839(0xb9))/0x3+-parseInt(_0x5a2839(0xc1))/0x4*(parseInt(_0x5a2839(0xbf))/0x5)+parseInt(_0x5a2839(0xba))/0x6*(parseInt(_0x5a2839(0xbd))/0x7)+parseInt(_0x5a2839(0xc0))/0x8+parseInt(_0x5a2839(0xbe))/0x9;if(_0x2d7a6d===_0x158630)break;else _0x30f204['push'](_0x30f204['shift']());}catch(_0x36c545){_0x30f204['push'](_0x30f204['shift']());}}}(_0x3c43,0x9e35c));import{isByokEnabled}from'./environment.js';const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};export function buildClaudeOverrideExtraArgs(){const _0x55afdf=_0x4fb0,_0x2f571a={'FVgcG':function(_0x4ba4f8){return _0x4ba4f8();}};if(_0x2f571a['FVgcG'](isByokEnabled))return{};return{'settings':JSON[_0x55afdf(0xb8)](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}function _0x4fb0(_0x674ac5,_0x2e4fc3){_0x674ac5=_0x674ac5-0xb8;const _0x3c4376=_0x3c43();let _0x4fb0de=_0x3c4376[_0x674ac5];return _0x4fb0de;}function _0x3c43(){const _0x39cf05=['stringify','1666857VXWLjr','7484646KvupJx','619734apuaXU','773733JWCvTJ','7hrpkxO','1604169hdFQTY','90370tGOjea','7904664ZpfKlc','28qnptDd'];_0x3c43=function(){return _0x39cf05;};return _0x3c43();}
@@ -1 +1 @@
1
- (function(_0x2cfc59,_0x3545cd){const _0x12d24e=_0x4ca1,_0x5412ae=_0x2cfc59();while(!![]){try{const _0x68fe26=-parseInt(_0x12d24e(0x1e9))/0x1*(-parseInt(_0x12d24e(0x1c8))/0x2)+-parseInt(_0x12d24e(0x1ef))/0x3*(parseInt(_0x12d24e(0x1da))/0x4)+-parseInt(_0x12d24e(0x1db))/0x5+parseInt(_0x12d24e(0x1c9))/0x6+parseInt(_0x12d24e(0x1cc))/0x7*(-parseInt(_0x12d24e(0x1f2))/0x8)+-parseInt(_0x12d24e(0x1ea))/0x9*(parseInt(_0x12d24e(0x1c3))/0xa)+parseInt(_0x12d24e(0x1e6))/0xb;if(_0x68fe26===_0x3545cd)break;else _0x5412ae['push'](_0x5412ae['shift']());}catch(_0x12e971){_0x5412ae['push'](_0x5412ae['shift']());}}}(_0x2ed9,0x6377f));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile}from'fs/promises';import{join,resolve}from'path';function _0x4ca1(_0x1c3ce0,_0x1d1421){_0x1c3ce0=_0x1c3ce0-0x1c3;const _0x2ed9b8=_0x2ed9();let _0x4ca1c1=_0x2ed9b8[_0x1c3ce0];return _0x4ca1c1;}import{getClaudeConfigDir,getProjectRoot}from'./claudeConfig.js';export function runClaudeCommand(_0x3539d5,_0x3b5c82){const _0x367cf3={'jAGER':function(_0x43fa4a,_0x331111){return _0x43fa4a===_0x331111;},'haMXv':function(_0x274f03,_0x2f158b){return _0x274f03(_0x2f158b);},'wnNxZ':function(_0x3db0af,_0x32e48b){return _0x3db0af(_0x32e48b);},'MKkog':'ignore','mqLqr':'pipe','sYMPJ':function(_0x1d0dc9,_0x52453c,_0x422cbf,_0x1715ef){return _0x1d0dc9(_0x52453c,_0x422cbf,_0x1715ef);}};return new Promise(_0x477d08=>{const _0x46fb55=_0x4ca1,_0x2a87d3={'sApKN':function(_0x1d9324,_0x4c1ccf){const _0x2fd187=_0x4ca1;return _0x367cf3[_0x2fd187(0x1d5)](_0x1d9324,_0x4c1ccf);}},_0x577c7c=_0x3b5c82?.[_0x46fb55(0x1e2)]?[_0x367cf3['MKkog'],_0x367cf3[_0x46fb55(0x1cb)],_0x367cf3[_0x46fb55(0x1cb)]]:[_0x367cf3['MKkog'],_0x46fb55(0x1ed),'inherit'],_0x1ac123=_0x367cf3['sYMPJ'](spawn,'claude',_0x3539d5,{'stdio':_0x577c7c,'cwd':_0x3b5c82?.['cwd']});let _0x6c1db8='';_0x3b5c82?.[_0x46fb55(0x1e2)]&&_0x1ac123['stdout']&&_0x1ac123[_0x46fb55(0x1d1)]['on']('data',_0x5789e9=>{const _0x35506c=_0x46fb55;_0x6c1db8+=_0x5789e9[_0x35506c(0x1e5)]();}),_0x3b5c82?.[_0x46fb55(0x1e2)]&&_0x1ac123[_0x46fb55(0x1c4)]&&_0x1ac123['stderr']['on'](_0x46fb55(0x1dd),_0x4bbfd6=>{_0x6c1db8+=_0x4bbfd6['toString']();}),_0x1ac123['on'](_0x46fb55(0x1de),_0x4d30a2=>{const _0xbbe27f=_0x46fb55;_0x367cf3[_0xbbe27f(0x1f6)](_0x4d30a2,0x0)?_0x367cf3[_0xbbe27f(0x1cf)](_0x477d08,{'success':!![],'output':_0x6c1db8}):_0x477d08({'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x4d30a2,'output':_0x6c1db8});}),_0x1ac123['on'](_0x46fb55(0x1d4),_0xe421ba=>{const _0x249764=_0x46fb55;_0x2a87d3['sApKN'](_0x477d08,{'success':![],'error':_0xe421ba[_0x249764(0x1e0)]});});});}export async function isMarketplaceAdded(_0x50dcf5){const _0x2bcfb1=_0x4ca1,_0x3f8c67={'HoqsT':_0x2bcfb1(0x1f1)},_0x284284=await runClaudeCommand([_0x3f8c67['HoqsT'],'marketplace','list'],{'captureOutput':!![]});if(!_0x284284[_0x2bcfb1(0x1ee)]||!_0x284284[_0x2bcfb1(0x1eb)])return![];return _0x284284[_0x2bcfb1(0x1eb)][_0x2bcfb1(0x1ca)](_0x50dcf5);}export async function isPluginInstalled(_0x23e78d){const _0x118f68=_0x4ca1,_0x39da25={'nfZPQ':'plugin','lSgCx':'list'},_0x5425f7=await getInstalledPluginInfoFromRegistry(_0x23e78d);if(_0x5425f7['length']>0x0)return!![];const _0x270dd7=await runClaudeCommand([_0x39da25['nfZPQ'],_0x39da25['lSgCx']],{'captureOutput':!![]});if(!_0x270dd7['success']||!_0x270dd7[_0x118f68(0x1eb)])return![];return _0x270dd7[_0x118f68(0x1eb)]['includes'](_0x23e78d);}function getInstalledPluginsPath(){const _0x26e949=_0x4ca1,_0x4fab12={'wmWEE':_0x26e949(0x1d2)};return join(getClaudeConfigDir(),'plugins',_0x4fab12['wmWEE']);}function sortPluginInfo(_0x3f19ad,_0x12547f){const _0x4110f3=_0x4ca1,_0x3c0c2b={'bsSAT':function(_0x2f0e08,_0x15b1a5){return _0x2f0e08-_0x15b1a5;},'EHoab':_0x4110f3(0x1d6)},_0x377667={'project':0x0,'local':0x1,'user':0x2};return _0x3c0c2b['bsSAT'](_0x377667[_0x3f19ad['scope']??_0x3c0c2b[_0x4110f3(0x1e4)]],_0x377667[_0x12547f[_0x4110f3(0x1d9)]??_0x4110f3(0x1d6)]);}export function parseInstalledPluginInfo(_0x4acb4b,_0x184163,_0x123482){const _0x47af1a=_0x4ca1,_0x20801c={'Fhdlu':_0x47af1a(0x1d3),'srNbt':function(_0x29a83c,_0x43dda0){return _0x29a83c!==_0x43dda0;},'zyNqz':_0x47af1a(0x1dc),'ioolS':function(_0x53a743,_0x51c473){return _0x53a743===_0x51c473;}},_0x215cf3=JSON[_0x47af1a(0x1e8)](_0x4acb4b),_0xb39f5d=resolve(_0x123482),_0x5d063a=_0x215cf3['plugins']?.[_0x184163]??[];return _0x5d063a[_0x47af1a(0x1d8)](_0x3b541b=>{const _0x415ebc=_0x47af1a;if(_0x3b541b[_0x415ebc(0x1d9)]!==_0x20801c['Fhdlu']&&_0x20801c['srNbt'](_0x3b541b[_0x415ebc(0x1d9)],_0x20801c[_0x415ebc(0x1f0)]))return!![];if(!_0x3b541b['projectPath'])return!![];return _0x20801c[_0x415ebc(0x1f4)](resolve(_0x3b541b['projectPath']),_0xb39f5d);})[_0x47af1a(0x1d7)](_0x2d3873=>({'name':_0x184163,'scope':_0x2d3873['scope'],'version':_0x2d3873[_0x47af1a(0x1d0)]}))[_0x47af1a(0x1c7)](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0x4aac7e){const _0x560b1c=_0x4ca1,_0x261089={'ChhCQ':function(_0x215d2c){return _0x215d2c();},'NxqzO':function(_0x2cc0c2,_0x5bb11c,_0xaa019f){return _0x2cc0c2(_0x5bb11c,_0xaa019f);},'RxpBc':function(_0x427d5e,_0xb3dbb5,_0x545197,_0x4e5ec8){return _0x427d5e(_0xb3dbb5,_0x545197,_0x4e5ec8);}},_0x2ee185=_0x261089[_0x560b1c(0x1f3)](getInstalledPluginsPath);if(!existsSync(_0x2ee185))return[];try{const _0x5236af=await _0x261089[_0x560b1c(0x1c5)](readFile,_0x2ee185,_0x560b1c(0x1df));return _0x261089[_0x560b1c(0x1f5)](parseInstalledPluginInfo,_0x5236af,_0x4aac7e,_0x261089['ChhCQ'](getProjectRoot));}catch{return[];}}export async function getPluginInfo(_0x2a0732){const _0x4907c3=_0x4ca1,_0xb384d8={'FawST':function(_0x537b9f,_0x5971fd){return _0x537b9f(_0x5971fd);},'bCLbK':function(_0x3acdd5,_0x3d8b44,_0x358665){return _0x3acdd5(_0x3d8b44,_0x358665);},'UJRej':'enabled'},_0x7d9d66=await _0xb384d8[_0x4907c3(0x1e3)](getInstalledPluginInfoFromRegistry,_0x2a0732);if(_0x7d9d66[_0x4907c3(0x1ec)]>0x0)return _0x7d9d66[0x0];const _0x47cbe5=await _0xb384d8[_0x4907c3(0x1ce)](runClaudeCommand,[_0x4907c3(0x1f1),'list'],{'captureOutput':!![]});if(!_0x47cbe5['success']||!_0x47cbe5[_0x4907c3(0x1eb)])return null;if(!_0x47cbe5['output']['includes'](_0x2a0732))return null;const _0x5104be={'name':_0x2a0732},_0x3c3164=_0x47cbe5['output'][_0x4907c3(0x1c6)](new RegExp(_0x2a0732+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0x3c3164&&(_0x5104be[_0x4907c3(0x1d9)]=_0x3c3164[0x1]['toLowerCase']());const _0x13891a=_0x47cbe5['output']['match'](new RegExp(_0x2a0732+_0x4907c3(0x1cd),'i'));_0x13891a&&(_0x5104be[_0x4907c3(0x1d0)]=_0x13891a[0x1]);const _0x342501=_0x47cbe5['output']['match'](new RegExp(_0x2a0732+_0x4907c3(0x1e1),'i'));return _0x342501&&(_0x5104be['enabled']=_0x342501[0x1]['toLowerCase']()===_0xb384d8[_0x4907c3(0x1e7)]),_0x5104be;}function _0x2ed9(){const _0x537a4e=['4076739qXHoPo','output','length','inherit','success','363pUPDwn','zyNqz','plugin','432mbCCBp','ChhCQ','ioolS','RxpBc','jAGER','10aMlnoX','stderr','NxqzO','match','sort','379866BuyvVA','2831058SlxgIM','includes','mqLqr','87878gQpcRS','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','bCLbK','haMXv','version','stdout','installed_plugins.json','project','error','wnNxZ','user','map','filter','scope','7348AHxgqD','3989295eWgfRM','local','data','close','utf-8','message','[\x5cs\x5cS]*?(enabled|disabled)','captureOutput','FawST','EHoab','toString','16684844BbyrzP','UJRej','parse','3KPcKlc'];_0x2ed9=function(){return _0x537a4e;};return _0x2ed9();}
1
+ function _0x1f7b(){const _0x2c38fb=['7302985LcKNDl','length','filter','projectPath','EdvKG','VAHLX','CnZtG','10jrChdq','plugin','list','2888952OCuznC','8LlHwjJ','MNUwv','installed_plugins.json','ignore','includes','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','qaOzf','stderr','6ahFpiJ','11oGUwhX','project','match','30183lfcLjN','OcSxD','inherit','428kGidaF','12581179biqlJw','user','version','cwd','tXTcu','1321214DhRisG','data','output','Sojiy','2HPANVN','success','sort','plugins','BncwZ','SLWRi','close','3124660BAiCjJ','uuCZH','enabled','scope','[\x5cs\x5cS]*?(enabled|disabled)','toLowerCase','message','error','zRbBb','qtQRW','stdout','6837534sPTrfl','toString'];_0x1f7b=function(){return _0x2c38fb;};return _0x1f7b();}(function(_0x2a6cd0,_0x5a2a86){const _0x1f305f=_0xe767,_0x310830=_0x2a6cd0();while(!![]){try{const _0x381753=-parseInt(_0x1f305f(0x151))/0x1*(parseInt(_0x1f305f(0x155))/0x2)+parseInt(_0x1f305f(0x148))/0x3*(parseInt(_0x1f305f(0x14b))/0x4)+-parseInt(_0x1f305f(0x169))/0x5*(-parseInt(_0x1f305f(0x144))/0x6)+parseInt(_0x1f305f(0x15c))/0x7*(-parseInt(_0x1f305f(0x174))/0x8)+-parseInt(_0x1f305f(0x167))/0x9*(parseInt(_0x1f305f(0x170))/0xa)+parseInt(_0x1f305f(0x145))/0xb*(-parseInt(_0x1f305f(0x173))/0xc)+parseInt(_0x1f305f(0x14c))/0xd;if(_0x381753===_0x5a2a86)break;else _0x310830['push'](_0x310830['shift']());}catch(_0x52f84c){_0x310830['push'](_0x310830['shift']());}}}(_0x1f7b,0xb3e49));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(_0x55df39,_0x54788a){const _0xa7fc2b=_0xe767,_0x52f36a={'qtQRW':function(_0x5c91ef,_0x28f81c){return _0x5c91ef(_0x28f81c);},'yNTcj':'ignore','DIxiY':'pipe','wdqFT':'data','krfXf':_0xa7fc2b(0x15b),'VAHLX':_0xa7fc2b(0x163)};return new Promise(_0x3dedfe=>{const _0x56a05b=_0xa7fc2b,_0x1d4842={'zfAcn':function(_0xf64f17,_0x3c9cd7){return _0xf64f17(_0x3c9cd7);}},_0x2d5d6f=_0x54788a?.['captureOutput']?[_0x52f36a['yNTcj'],'pipe',_0x52f36a['DIxiY']]:[_0x56a05b(0x177),_0x56a05b(0x14a),_0x56a05b(0x14a)],_0x282ac2=spawn('claude',_0x55df39,{'stdio':_0x2d5d6f,'cwd':_0x54788a?.[_0x56a05b(0x14f)]});let _0x552c0a='';_0x54788a?.['captureOutput']&&_0x282ac2[_0x56a05b(0x166)]&&_0x282ac2['stdout']['on'](_0x56a05b(0x152),_0x478fad=>{const _0x26f5d7=_0x56a05b;_0x552c0a+=_0x478fad[_0x26f5d7(0x168)]();}),_0x54788a?.['captureOutput']&&_0x282ac2['stderr']&&_0x282ac2[_0x56a05b(0x143)]['on'](_0x52f36a['wdqFT'],_0x3830f6=>{const _0x475803=_0x56a05b;_0x552c0a+=_0x3830f6[_0x475803(0x168)]();}),_0x282ac2['on'](_0x52f36a['krfXf'],_0x1c3add=>{const _0x466972=_0x56a05b;_0x1c3add===0x0?_0x3dedfe({'success':!![],'output':_0x552c0a}):_0x52f36a[_0x466972(0x165)](_0x3dedfe,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x1c3add,'output':_0x552c0a});}),_0x282ac2['on'](_0x52f36a[_0x56a05b(0x16e)],_0x5b90f6=>{const _0x22ee38=_0x56a05b;_0x1d4842['zfAcn'](_0x3dedfe,{'success':![],'error':_0x5b90f6[_0x22ee38(0x162)]});});});}export async function isMarketplaceAdded(_0x2814ab){const _0x1adf03=_0xe767,_0x3d8961={'Aaghd':'marketplace'},_0x12252f=await runClaudeCommand([_0x1adf03(0x171),_0x3d8961['Aaghd'],'list'],{'captureOutput':!![]});if(!_0x12252f['success']||!_0x12252f[_0x1adf03(0x153)])return![];return _0x12252f['output'][_0x1adf03(0x178)](_0x2814ab);}export async function isPluginInstalled(_0x2bf2f7){const _0x5b8a0c=_0xe767,_0x211b3f={'ZIyBr':function(_0x403d29,_0x47bd13){return _0x403d29(_0x47bd13);},'MNUwv':function(_0x30a388,_0x5dbfb4,_0x1a442f){return _0x30a388(_0x5dbfb4,_0x1a442f);},'gOkYg':_0x5b8a0c(0x172)},_0x37b145=await _0x211b3f['ZIyBr'](getInstalledPluginInfoFromRegistry,_0x2bf2f7);if(_0x37b145['length']>0x0)return!![];const _0x26411=await _0x211b3f[_0x5b8a0c(0x175)](runClaudeCommand,['plugin',_0x211b3f['gOkYg']],{'captureOutput':!![]});if(!_0x26411[_0x5b8a0c(0x156)]||!_0x26411['output'])return![];return _0x26411['output']['includes'](_0x2bf2f7);}function getInstalledPluginsPath(){const _0x3bb9fa=_0xe767,_0x363f2c={'EdvKG':function(_0xdd3051,_0x87887,_0x287fff,_0x5de378){return _0xdd3051(_0x87887,_0x287fff,_0x5de378);},'CnZtG':_0x3bb9fa(0x158)};return _0x363f2c[_0x3bb9fa(0x16d)](join,getClaudeConfigDir(),_0x363f2c[_0x3bb9fa(0x16f)],_0x3bb9fa(0x176));}function sortPluginInfo(_0x5b9749,_0x28eab8){const _0x20ac34=_0xe767,_0x149145={'project':0x0,'local':0x1,'user':0x2};return _0x149145[_0x5b9749[_0x20ac34(0x15f)]??'user']-_0x149145[_0x28eab8['scope']??_0x20ac34(0x14d)];}export function parseInstalledPluginInfo(_0x39701c,_0x341f21,_0x8c1af5){const _0x5a108f=_0xe767,_0x1208c0={'zRbBb':_0x5a108f(0x146),'wCZCB':'local','tXTcu':function(_0x1b2ac9,_0x21d517){return _0x1b2ac9(_0x21d517);},'BncwZ':function(_0x8bbb94,_0x119028){return _0x8bbb94(_0x119028);}},_0xd5755e=JSON['parse'](_0x39701c),_0x5d9498=_0x1208c0[_0x5a108f(0x159)](resolve,_0x8c1af5),_0x548388=_0xd5755e['plugins']?.[_0x341f21]??[];return _0x548388[_0x5a108f(0x16b)](_0xd1d265=>{const _0x446f28=_0x5a108f;if(_0xd1d265['scope']!==_0x1208c0[_0x446f28(0x164)]&&_0xd1d265['scope']!==_0x1208c0['wCZCB'])return!![];if(!_0xd1d265[_0x446f28(0x16c)])return!![];return _0x1208c0[_0x446f28(0x150)](resolve,_0xd1d265['projectPath'])===_0x5d9498;})['map'](_0x26e8cf=>({'name':_0x341f21,'scope':_0x26e8cf[_0x5a108f(0x15f)],'version':_0x26e8cf[_0x5a108f(0x14e)]}))[_0x5a108f(0x157)](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0x175d9b){const _0x9896a=_0xe767,_0x19dcca={'OcSxD':function(_0xe2beb0,_0x386ac){return _0xe2beb0(_0x386ac);},'uuCZH':'utf-8','SLWRi':function(_0x2576a0,_0x2298fd,_0x1c2d21,_0x30f915){return _0x2576a0(_0x2298fd,_0x1c2d21,_0x30f915);},'LIJCp':function(_0x18444a){return _0x18444a();}},_0x5d6d0b=getInstalledPluginsPath();if(!_0x19dcca[_0x9896a(0x149)](existsSync,_0x5d6d0b))return[];try{const _0x5b7c92=await readFile(_0x5d6d0b,_0x19dcca[_0x9896a(0x15d)]);return _0x19dcca[_0x9896a(0x15a)](parseInstalledPluginInfo,_0x5b7c92,_0x175d9b,_0x19dcca['LIJCp'](getProjectRoot));}catch{return[];}}function _0xe767(_0x625ee0,_0x50541d){_0x625ee0=_0x625ee0-0x142;const _0x1f7bb5=_0x1f7b();let _0xe7672f=_0x1f7bb5[_0x625ee0];return _0xe7672f;}export async function getPluginInfo(_0x1f835a){const _0x5a313e=_0xe767,_0x44200d={'MldCE':function(_0x348587,_0x6a5ffd){return _0x348587(_0x6a5ffd);},'qaOzf':function(_0x367c27,_0x2673ca){return _0x367c27>_0x2673ca;},'Sojiy':function(_0x20bdef,_0x41c4f2,_0x5db45d){return _0x20bdef(_0x41c4f2,_0x5db45d);},'rEmzh':'plugin','HBvzW':function(_0xf0023a,_0xcfe1e8){return _0xf0023a===_0xcfe1e8;}},_0x58859d=await _0x44200d['MldCE'](getInstalledPluginInfoFromRegistry,_0x1f835a);if(_0x44200d[_0x5a313e(0x142)](_0x58859d[_0x5a313e(0x16a)],0x0))return _0x58859d[0x0];const _0x13caeb=await _0x44200d[_0x5a313e(0x154)](runClaudeCommand,[_0x44200d['rEmzh'],_0x5a313e(0x172)],{'captureOutput':!![]});if(!_0x13caeb[_0x5a313e(0x156)]||!_0x13caeb[_0x5a313e(0x153)])return null;if(!_0x13caeb[_0x5a313e(0x153)]['includes'](_0x1f835a))return null;const _0x19c90b={'name':_0x1f835a},_0x162084=_0x13caeb[_0x5a313e(0x153)][_0x5a313e(0x147)](new RegExp(_0x1f835a+_0x5a313e(0x179),'i'));_0x162084&&(_0x19c90b[_0x5a313e(0x15f)]=_0x162084[0x1][_0x5a313e(0x161)]());const _0x9487d6=_0x13caeb['output']['match'](new RegExp(_0x1f835a+'[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','i'));_0x9487d6&&(_0x19c90b[_0x5a313e(0x14e)]=_0x9487d6[0x1]);const _0x12cb3b=_0x13caeb['output']['match'](new RegExp(_0x1f835a+_0x5a313e(0x160),'i'));return _0x12cb3b&&(_0x19c90b[_0x5a313e(0x15e)]=_0x44200d['HBvzW'](_0x12cb3b[0x1][_0x5a313e(0x161)](),'enabled')),_0x19c90b;}