@ranger-testing/ranger-cli 3.1.7-alpha.62f152a-54 → 3.1.7-alpha.a5be4ca-60

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 +15 -9
@@ -1 +1 @@
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
+ const _0x5ad9e6=_0x5e7a;(function(_0x3a3f44,_0xabacee){const _0x3f33de=_0x5e7a,_0x3a561d=_0x3a3f44();while(!![]){try{const _0x4c8e03=parseInt(_0x3f33de(0x158))/0x1+parseInt(_0x3f33de(0x149))/0x2*(parseInt(_0x3f33de(0x126))/0x3)+parseInt(_0x3f33de(0x12e))/0x4*(parseInt(_0x3f33de(0x130))/0x5)+-parseInt(_0x3f33de(0x152))/0x6*(parseInt(_0x3f33de(0x164))/0x7)+-parseInt(_0x3f33de(0x144))/0x8+parseInt(_0x3f33de(0x11e))/0x9+-parseInt(_0x3f33de(0x11a))/0xa;if(_0x4c8e03===_0xabacee)break;else _0x3a561d['push'](_0x3a561d['shift']());}catch(_0x347f7b){_0x3a561d['push'](_0x3a561d['shift']());}}}(_0x392f,0xcba80));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(_0x572052,_0x511640,_0x1e86a7){const _0x5ccec1=_0x5e7a,_0x1dea8e={'FpBWn':function(_0x4b22a3,_0x10adf5){return _0x4b22a3(_0x10adf5);},'wvDCu':_0x5ccec1(0x161),'ervAq':function(_0x195580,_0xa5b06b){return _0x195580===_0xa5b06b;},'EgKCw':_0x5ccec1(0x132)};return new Promise(_0x559d4a=>{const _0xb1a5ba=_0x5ccec1,_0x52d822={'ZhIXf':function(_0x2bff2d,_0x2a3664){return _0x1dea8e['FpBWn'](_0x2bff2d,_0x2a3664);}};let _0x21d524=![],_0x21f92f;const _0x437aab=_0x48dd76=>{if(_0x21d524)return;_0x21d524=!![],_0x21f92f&&clearTimeout(_0x21f92f),_0x559d4a(_0x48dd76);},_0x52afca=spawn(_0x572052,_0x511640,{'stdio':['ignore',_0x1e86a7?.['stdio']??_0xb1a5ba(0x161),_0x1e86a7?.[_0xb1a5ba(0x15d)]??_0x1dea8e[_0xb1a5ba(0x163)]],'cwd':_0x1e86a7?.['cwd'],'shell':_0x1dea8e[_0xb1a5ba(0x159)](process[_0xb1a5ba(0x114)],_0xb1a5ba(0x123))});_0x21f92f=_0x1e86a7?.[_0xb1a5ba(0x146)]?setTimeout(()=>{const _0x16f45e=_0xb1a5ba;_0x52afca[_0x16f45e(0x150)](),_0x52afca[_0x16f45e(0x16a)](),_0x52d822['ZhIXf'](_0x437aab,![]);},_0x1e86a7['timeoutMs']):undefined,_0x52afca['on']('close',_0x342c04=>{_0x437aab(_0x342c04===0x0);}),_0x52afca['on'](_0x1dea8e['EgKCw'],()=>{const _0x13f49e=_0xb1a5ba;_0x1dea8e[_0x13f49e(0x16b)](_0x437aab,![]);});});}function _0x392f(){const _0x4ed50f=['platform','scope','\x0aCurrent\x20version:\x20','\x0a\x20\x20Could\x20not\x20auto-install\x20the\x20matching\x20Chromium\x20—\x20run\x20`ranger\x20setup\x20deps`\x20to\x20install\x20it.','YOANp','isFinite','13654570GpJKPB','findIndex','split','beta','9654507SZKVWU','ZImMC','join','THxyn','FnHok','win32','qEaWZ','deps','55578seXuDh','XVQMR','BqnPY','execPath','\x20\x20Failed\x20to\x20reinstall\x20','Update\x20failed.','CbIhS','ihPMc','6069396uknKiV','user','5jTZLvp','bwaaV','error','vzKUE','plugin','local','\x0aClaude\x20plugin\x20updated\x20(project\x20scope).','IlfLO','Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20','ejnau','\x0aInstalling\x20','install','QKzMt','opencode','quZVi','alpha','@latest','\x0a✅\x20Update\x20complete!','ignore','...\x0a','9720344GioXZM','\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','timeoutMs','trim','close','108RRIOwR','claude',')\x20is\x20newer\x20than\x20the\x20published\x20version\x20(','\x20ranger-managed\x20skill(s)...','trailhead','tVIGh','OkkCe','kill','aiEnr','74544lxxPvZ','MYUGd','DzzIH','VqwYi','log','marketplace','1377200kidHtI','ervAq','test','ObDcU','DjXyv','stdio','hgbEA','endsWith','HnDvr','inherit','latest','wvDCu','875EUbUgE','\x0aSuccessfully\x20installed\x20latest\x20version.','.0.0','...','\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','push','unref','FpBWn','length',').\x20Staying\x20on\x20'];_0x392f=function(){return _0x4ed50f;};return _0x392f();}export function resolveDistTag(_0x474254){const _0x23ba7e=_0x5e7a,_0x805840={'zHDec':_0x23ba7e(0x13f),'IckSh':_0x23ba7e(0x11d)};if(/-alpha\./i[_0x23ba7e(0x15a)](_0x474254))return _0x805840['zHDec'];if(/-beta\./i['test'](_0x474254))return _0x805840['IckSh'];if(/-rc\./i['test'](_0x474254))return'rc';return'latest';}export function resolveInstallTarget(_0xf756b){const _0x405cd1=_0x5e7a,_0x25cf8e={'kKoAe':function(_0x6cdd27,_0x470857){return _0x6cdd27!==_0x470857;},'XzXtR':function(_0x535bd5,_0x25acb0,_0x2910c7){return _0x535bd5(_0x25acb0,_0x2910c7);}},_0xb6842=resolveDistTag(_0xf756b);if(_0x25cf8e['kKoAe'](_0xb6842,_0x405cd1(0x162)))return _0xb6842;const _0x5386b7=_0xf756b['split']('.')[0x0],_0x9d39e1=_0x25cf8e['XzXtR'](parseInt,_0x5386b7,0xa);if(!Number[_0x405cd1(0x119)](_0x9d39e1))return'latest';return'^'+_0x9d39e1+_0x405cd1(0x166);}async function runInstall(_0x1a9745){const _0x30a32c=_0x5e7a,_0x176f92={'ejnau':function(_0x156c4d,_0x19e720){return _0x156c4d(_0x19e720);},'rLzxD':'npm','qvpUd':_0x30a32c(0x142),'MYUGd':function(_0x455dca,_0x20e586){return _0x455dca===_0x20e586;},'qlWJJ':function(_0x585098,_0x5af5f0){return _0x585098(_0x5af5f0);}},_0x59cf79=_0x176f92['qlWJJ'](resolveInstallTarget,_0x1a9745);return new Promise(_0x5797c8=>{const _0x4570db=_0x30a32c,_0x4aa9d4={'Jnhfy':function(_0x26471a,_0x6ebd8e){return _0x26471a(_0x6ebd8e);},'CGotq':function(_0x5159c1,_0x17427c){return _0x5159c1===_0x17427c;}};console['log'](_0x4570db(0x13a)+PACKAGE_NAME+'@'+_0x59cf79+_0x4570db(0x143));const _0x1837f1=spawn(_0x176f92['rLzxD'],[_0x4570db(0x13b),'-g',PACKAGE_NAME+'@'+_0x59cf79],{'stdio':[_0x176f92['qvpUd'],_0x4570db(0x161),'inherit'],'shell':_0x176f92[_0x4570db(0x153)](process['platform'],_0x4570db(0x123))});_0x1837f1['on']('close',_0x1bc457=>{_0x4aa9d4['Jnhfy'](_0x5797c8,_0x4aa9d4['CGotq'](_0x1bc457,0x0));}),_0x1837f1['on']('error',()=>{const _0x326739=_0x4570db;_0x176f92[_0x326739(0x139)](_0x5797c8,![]);});});}function resolveInstalledCliPath(){const _0x479718=_0x5e7a,_0x3c5682={'QKzMt':'npm\x20root\x20-g','TGiuz':'cli.js','ihPMc':function(_0x959c6d,_0x1b1a74){return _0x959c6d(_0x1b1a74);}};try{const _0x3de03b=execSync(_0x3c5682[_0x479718(0x13c)],{'encoding':'utf8'})['trim'](),_0x33cddb=join(_0x3de03b,PACKAGE_NAME,'build',_0x3c5682['TGiuz']);return _0x3c5682[_0x479718(0x12d)](existsSync,_0x33cddb)?_0x33cddb:null;}catch{return null;}}async function installMatchingChromium(){const _0x8d7edc=_0x5e7a,_0x5671b6={'qKYty':function(_0xe87cb9,_0x44bd9c,_0xddd105,_0x32c1e7){return _0xe87cb9(_0x44bd9c,_0xddd105,_0x32c1e7);},'OkkCe':_0x8d7edc(0x148),'FnHok':'error'},_0x5382f6=resolveInstalledCliPath(),_0x213d5d=_0x8d7edc(0x117);if(!_0x5382f6){console[_0x8d7edc(0x156)](_0x213d5d);return;}await new Promise(_0x180ac2=>{const _0x14cec6=_0x8d7edc,_0x4ea253=_0x5671b6['qKYty'](spawn,process[_0x14cec6(0x129)],[_0x5382f6,'setup',_0x14cec6(0x125)],{'stdio':'inherit'});_0x4ea253['on'](_0x5671b6[_0x14cec6(0x14f)],()=>_0x180ac2()),_0x4ea253['on'](_0x5671b6[_0x14cec6(0x122)],()=>{console['log'](_0x213d5d),_0x180ac2();});});}async function updateClaudeMarketplace(){const _0x38841a=_0x5e7a,_0x466e7f={'gniGD':_0x38841a(0x14a),'AfYGZ':_0x38841a(0x134),'UeYEf':_0x38841a(0x157),'HgPrt':'Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).'},_0xfaa961=await runCommand(_0x466e7f['gniGD'],[_0x466e7f['AfYGZ'],_0x466e7f['UeYEf'],'update',_0x38841a(0x14d)],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0xfaa961)throw new Error(_0x466e7f['HgPrt']);}async function updateClaudePlugin(_0x1e236d=_0x5ad9e6(0x12f)){const _0x4d187b=_0x5ad9e6,_0x16556d={'qEaWZ':'update','THxyn':'ranger@trailhead','fYbuQ':function(_0x7e969e,_0x4f6d64){return _0x7e969e!==_0x4f6d64;},'XVQMR':'user','ObDcU':'--scope','VqwYi':function(_0x3cca40,_0x5c742b,_0x5c70ac,_0x229f32){return _0x3cca40(_0x5c742b,_0x5c70ac,_0x229f32);},'Ghemd':_0x4d187b(0x14a)},_0x16784d=['plugin',_0x16556d[_0x4d187b(0x124)],_0x16556d[_0x4d187b(0x121)]];_0x16556d['fYbuQ'](_0x1e236d,_0x16556d[_0x4d187b(0x127)])&&_0x16784d[_0x4d187b(0x169)](_0x16556d[_0x4d187b(0x15b)],_0x1e236d);const _0x2a8751=await _0x16556d[_0x4d187b(0x155)](runCommand,_0x16556d['Ghemd'],_0x16784d,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x1e236d==='project'||_0x1e236d===_0x4d187b(0x135)?getProjectRoot():undefined});if(!_0x2a8751)throw new Error('Claude\x20plugin\x20update\x20failed\x20for\x20'+_0x1e236d+_0x4d187b(0x168));}function isSkillInstalled(_0x323ea9,_0x4131a4,_0x53ddd9){const _0x309557=_0x5ad9e6,_0x40263a={'HnDvr':'opencode','YeSDj':function(_0x183465,_0x5c42fd){return _0x183465(_0x5c42fd);}},_0x4504ae=_0x53ddd9===_0x40263a[_0x309557(0x160)]?getOpencodeSkillsDir(_0x4131a4):getSkillsDir(_0x4131a4),_0x1d91e3=join(_0x4504ae,_0x323ea9);return _0x40263a['YeSDj'](existsSync,_0x1d91e3);}async function reinstallSkills(_0x4f72c8){const _0x298a78=_0x5ad9e6,_0xcae931={'tVIGh':function(_0x21f4fc,_0x4e3f66,_0x23160d,_0x4d1ca4){return _0x21f4fc(_0x4e3f66,_0x23160d,_0x4d1ca4);},'WImdl':_0x298a78(0x14a),'CbIhS':'opencode','sWjTG':function(_0xf2174b,_0x1c1f3a){return _0xf2174b===_0x1c1f3a;},'hgbEA':function(_0x507e2e,_0x3ddf0a,_0x3f69b2){return _0x507e2e(_0x3ddf0a,_0x3f69b2);}},_0x4a830e=['project','user'],_0x332b40=[];for(const _0x57fd18 of _0x4a830e){for(const _0x4befc3 of RANGER_MANAGED_SKILLS){_0xcae931[_0x298a78(0x14e)](isSkillInstalled,_0x4befc3,_0x57fd18,_0x298a78(0x14a))&&_0x332b40['push']({'skillName':_0x4befc3,'level':_0x57fd18,'platform':_0xcae931['WImdl']}),_0xcae931['tVIGh'](isSkillInstalled,_0x4befc3,_0x57fd18,_0xcae931[_0x298a78(0x12c)])&&_0x332b40[_0x298a78(0x169)]({'skillName':_0x4befc3,'level':_0x57fd18,'platform':_0x298a78(0x13d)});}}for(const _0x4b49bd of _0x4a830e){for(const _0x5d840c of DEPRECATED_SKILLS){await removeSkill(_0x5d840c,_0x4b49bd);}}if(_0xcae931['sWjTG'](_0x332b40['length'],0x0)){console[_0x298a78(0x156)]('\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.');return;}console['log']('\x0aReinstalling\x20'+_0x332b40['length']+_0x298a78(0x14c));for(const {skillName:_0x7e7842,level:_0x224719,platform:_0x1fc13d}of _0x332b40){try{await _0xcae931[_0x298a78(0x15e)](installSkill,_0x7e7842,{'level':_0x224719,'cliVersion':_0x4f72c8,'platform':_0x1fc13d});}catch(_0x2853a0){console['warn'](_0x298a78(0x12a)+_0x1fc13d+'\x20'+_0x224719+'\x20skill\x20'+_0x7e7842+':',_0x2853a0);}}}function _0x5e7a(_0xef62ff,_0x709db1){_0xef62ff=_0xef62ff-0x112;const _0x392fc9=_0x392f();let _0x5e7ac5=_0x392fc9[_0xef62ff];return _0x5e7ac5;}async function ensureActiveProfileGitignored(){const _0x4f1af7=_0x5ad9e6,_0x351c28={'DzzIH':function(_0x184c4b,_0x580979,_0x56c41b){return _0x184c4b(_0x580979,_0x56c41b);},'IlfLO':'.gitignore','quZVi':'utf-8','HVnze':function(_0xcdb767,_0x1ec905){return _0xcdb767===_0x1ec905;},'bwaaV':'active-profile.txt'},_0x1b3bd0=_0x351c28[_0x4f1af7(0x154)](join,getRangerDir(),_0x351c28[_0x4f1af7(0x137)]);if(!existsSync(_0x1b3bd0))return![];let _0x2b5b35='';try{_0x2b5b35=await readFile(_0x1b3bd0,_0x351c28[_0x4f1af7(0x13e)]);}catch{return![];}const _0x39bb1d=_0x2b5b35['split'](/\r?\n/);if(_0x39bb1d['some'](_0x29b3ab=>_0x29b3ab[_0x4f1af7(0x147)]()==='active-profile.txt'))return![];let _0x2e0dd3=_0x39bb1d[_0x4f1af7(0x11b)](_0x5dbfdb=>_0x5dbfdb['trim']()==='active-feature.txt');_0x351c28['HVnze'](_0x2e0dd3,-0x1)&&(_0x2e0dd3=_0x39bb1d[_0x4f1af7(0x112)]);_0x39bb1d['splice'](_0x2e0dd3,0x0,_0x351c28[_0x4f1af7(0x131)]);let _0x28f6a0=_0x39bb1d[_0x4f1af7(0x120)]('\x0a');!_0x28f6a0[_0x4f1af7(0x15f)]('\x0a')&&(_0x28f6a0+='\x0a');try{await writeFile(_0x1b3bd0,_0x28f6a0,_0x351c28['quZVi']);}catch{return![];}return!![];}export async function update(){const _0x48dc5a=_0x5ad9e6,_0x52169e={'eMMmq':function(_0x9a5f18,_0x691061){return _0x9a5f18+_0x691061;},'BqnPY':function(_0x1a7fa2,_0x5ad06d){return _0x1a7fa2(_0x5ad06d);},'vzKUE':function(_0x1a960a){return _0x1a960a();},'mcSNs':function(_0x5ae3d9,_0x195ebd,_0x1532ff){return _0x5ae3d9(_0x195ebd,_0x1532ff);},'ZImMC':function(_0xac8e46,_0x36941b){return _0xac8e46===_0x36941b;},'eWyhW':_0x48dc5a(0x145),'DjXyv':function(_0x280129,_0x4cc874){return _0x280129<_0x4cc874;},'lJNHR':function(_0x2d0f0b,_0x5e8db7){return _0x2d0f0b(_0x5e8db7);},'llJpU':'ranger@trailhead','ujWst':function(_0x32a52f,_0x2c09ab){return _0x32a52f(_0x2c09ab);},'tJhBS':'user','qYEYn':'project','aiEnr':'local','YOANp':'\x0aClaude\x20plugin\x20updated\x20(user\x20scope).'},_0x1d2f41=getCurrentVersion();console[_0x48dc5a(0x156)](_0x48dc5a(0x116)+_0x1d2f41);const _0xb7a2a8=resolveDistTag(_0x1d2f41);if(_0xb7a2a8!==_0x48dc5a(0x162)){console['log']('Prerelease\x20channel\x20detected\x20(@'+_0xb7a2a8+_0x48dc5a(0x113)+_0xb7a2a8+'\x20—\x20reinstalling\x20@'+_0xb7a2a8+_0x48dc5a(0x167));const _0xcf9f51=await runInstall(_0x1d2f41);if(!_0xcf9f51)throw new Error('Update\x20failed\x20for\x20@'+_0xb7a2a8+'\x20channel.');const _0x186dbf=getCurrentVersion();console['log']('\x0aSuccessfully\x20installed\x20'+PACKAGE_NAME+'@'+_0xb7a2a8+'.'),await reinstallSkills(_0x186dbf),await installMatchingChromium(),await ensureActiveProfileGitignored(),console[_0x48dc5a(0x156)](_0x48dc5a(0x141));return;}console['log']('Checking\x20for\x20updates...');const _0x33a3bb=parseInt(_0x1d2f41[_0x48dc5a(0x11c)]('.')[0x0],0xa);if(!Number['isFinite'](_0x33a3bb))throw new Error(_0x52169e['eMMmq']('Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22'+_0x1d2f41+'\x22.\x20'+_0x48dc5a(0x138),'npm\x20i\x20-g\x20'+PACKAGE_NAME+_0x48dc5a(0x140)));const _0x20e665=_0x52169e['BqnPY'](getLatestVersion,_0x33a3bb);let _0x44bbb2=_0x1d2f41;if(!_0x20e665['version']){console['warn']('\x0aCould\x20not\x20check\x20latest\x20version:\x20'+_0x20e665['error']),console['log']('Attempting\x20install\x20anyway...');const _0x3cf3cd=await runInstall(_0x1d2f41);if(_0x3cf3cd)console[_0x48dc5a(0x156)](_0x48dc5a(0x165)),_0x44bbb2=_0x52169e[_0x48dc5a(0x133)](getCurrentVersion),await installMatchingChromium();else throw new Error('Update\x20failed:\x20'+_0x20e665[_0x48dc5a(0x132)]);}else{const _0x4abc14=_0x20e665['version'];console['log']('Latest\x20version:\x20\x20'+_0x4abc14);const _0x53078d=_0x52169e['mcSNs'](compareVersions,_0x1d2f41,_0x4abc14);if(_0x52169e['ZImMC'](_0x53078d,0x0))console['log'](_0x52169e['eWyhW']);else{if(_0x52169e[_0x48dc5a(0x15c)](_0x53078d,0x0))console['log']('\x0aYour\x20version\x20('+_0x1d2f41+_0x48dc5a(0x14b)+_0x4abc14+').');else{const _0x1a4717=await runInstall(_0x1d2f41);if(_0x1a4717)console[_0x48dc5a(0x156)]('\x0aSuccessfully\x20updated\x20to\x20version\x20'+_0x4abc14),_0x44bbb2=_0x4abc14,await installMatchingChromium();else throw new Error(_0x48dc5a(0x12b));}}}await _0x52169e['lJNHR'](reinstallSkills,_0x44bbb2);const _0x1ba8ed=await _0x52169e[_0x48dc5a(0x128)](isMarketplaceAdded,'trailhead'),_0x261fa9=await isPluginInstalled(_0x52169e['llJpU']);_0x1ba8ed&&(await updateClaudeMarketplace(),console['log']('\x0aClaude\x20marketplace\x20updated\x20(trailhead).'));if(_0x261fa9){const _0x5a513b=await _0x52169e['ujWst'](getPluginInfo,_0x52169e['llJpU']),_0x25c661=_0x5a513b?.[_0x48dc5a(0x115)]??_0x52169e['tJhBS'];await updateClaudePlugin(_0x25c661);if(_0x52169e['ZImMC'](_0x25c661,_0x52169e['qYEYn']))console['log'](_0x48dc5a(0x136));else _0x52169e[_0x48dc5a(0x11f)](_0x25c661,_0x52169e[_0x48dc5a(0x151)])?console['log']('\x0aClaude\x20plugin\x20updated\x20(local\x20scope).'):console[_0x48dc5a(0x156)](_0x52169e[_0x48dc5a(0x118)]);}const _0x1d8761=await ensureActiveProfileGitignored();console[_0x48dc5a(0x156)](_0x48dc5a(0x141));}
@@ -1 +1 @@
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
+ (function(_0x8484ee,_0x3c5b7f){const _0x3533de=_0x3d26,_0x4f5ad5=_0x8484ee();while(!![]){try{const _0x5d46f3=-parseInt(_0x3533de(0xaf))/0x1+parseInt(_0x3533de(0xc4))/0x2*(-parseInt(_0x3533de(0xb0))/0x3)+parseInt(_0x3533de(0xb1))/0x4*(parseInt(_0x3533de(0xac))/0x5)+-parseInt(_0x3533de(0xc6))/0x6*(-parseInt(_0x3533de(0xc3))/0x7)+parseInt(_0x3533de(0xa8))/0x8*(-parseInt(_0x3533de(0xbc))/0x9)+parseInt(_0x3533de(0xb6))/0xa+-parseInt(_0x3533de(0xa2))/0xb*(-parseInt(_0x3533de(0xc9))/0xc);if(_0x5d46f3===_0x3c5b7f)break;else _0x4f5ad5['push'](_0x4f5ad5['shift']());}catch(_0x146863){_0x4f5ad5['push'](_0x4f5ad5['shift']());}}}(_0x2e7b,0x3360e));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(_0xb4f32f,_0x1a13b8,_0x5a6a9e){const _0x5d7051=_0x3d26,_0x24a5e1={'VchLh':function(_0x72ed12){return _0x72ed12();},'zkaKb':function(_0x5cda72,_0x27bdb6){return _0x5cda72===_0x27bdb6;},'JtHzu':_0x5d7051(0xd1),'iXSiL':function(_0x4e7d2f,_0x3d4218){return _0x4e7d2f+_0x3d4218;},'VUFlu':function(_0x2b17e9,_0x3e3d4c){return _0x2b17e9+_0x3e3d4c;},'ilksw':function(_0x53605f,_0xf95157,_0x1ed075){return _0x53605f(_0xf95157,_0x1ed075);},'gnBKO':function(_0x4560a4,_0x14d544,_0x16ef76){return _0x4560a4(_0x14d544,_0x16ef76);},'iVjRm':function(_0x55a9a6,_0x8c379){return _0x55a9a6===_0x8c379;},'sOpWk':function(_0x146fb1,_0x415a43){return _0x146fb1===_0x415a43;},'mnqNs':_0x5d7051(0xcf),'lbGxg':_0x5d7051(0xa1),'IhIwI':function(_0x22f450,_0x4bf9e2){return _0x22f450??_0x4bf9e2;},'BWhxI':function(_0x5bf0cb,_0x5e9a49){return _0x5bf0cb+_0x5e9a49;},'pqAsb':function(_0x1e2c5f,_0x503e9e){return _0x1e2c5f+_0x503e9e;}},_0x24277f=await fetchCloudProfile(_0xb4f32f);if(!_0x24277f){const {envTypes:_0x2b41ef}=await _0x24a5e1['VchLh'](getEnvNames),_0x6b0d47=_0x2b41ef[_0xb4f32f];(_0x24a5e1[_0x5d7051(0xae)](_0x6b0d47,'legacy')||_0x6b0d47===_0x24a5e1[_0x5d7051(0xa3)]||_0x6b0d47==='ci')&&(console[_0x5d7051(0xb4)](_0x5d7051(0xa5)+_0xb4f32f+'\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a'+_0x5d7051(0xbd)+'\x0a'+(_0x5d7051(0xa4)+_0xb4f32f+'\x0a')),process['exit'](0x1));}!_0x24277f&&(console[_0x5d7051(0xb4)](_0x24a5e1[_0x5d7051(0xcb)](_0x24a5e1[_0x5d7051(0xc5)]('No\x20profile\x20named\x20\x22'+_0xb4f32f+_0x5d7051(0xaa),_0x5d7051(0xd0)),'\x0a')+('\x20\x20ranger\x20profile\x20add\x20'+_0xb4f32f+'\x0a')),process[_0x5d7051(0xbf)](0x1));const _0x35ec2d=await fetchAuthConfig()[_0x5d7051(0xbe)](()=>null),_0x2297a9=_0x24277f['environmentKey']&&_0x35ec2d?_0x24a5e1[_0x5d7051(0xcc)](resolveAuthEnvironmentLocally,_0x35ec2d,_0x24277f[_0x5d7051(0xcd)]):null;if(_0x24277f['environmentKey']&&_0x2297a9&&!_0x5a6a9e?.[_0x5d7051(0xa7)]){console[_0x5d7051(0xc0)]('Refreshing\x20session\x20for\x20\x22'+_0xb4f32f+'\x22\x20via\x20server-side\x20login...');try{const _0x2a4388=await _0x24a5e1[_0x5d7051(0xba)](serverSideLogin,_0xb4f32f,{'force':!![]});if(_0x24a5e1['iVjRm'](_0x2a4388[_0x5d7051(0xab)],_0x5d7051(0xce))){console[_0x5d7051(0xc0)]('✓\x20Session\x20refreshed\x20for\x20\x22'+_0xb4f32f+'\x22.');return;}_0x24a5e1[_0x5d7051(0xc7)](_0x2a4388['status'],_0x24a5e1[_0x5d7051(0xc1)])?console[_0x5d7051(0xc0)](_0x5d7051(0xbb)):(_0x2a4388[_0x5d7051(0xa6)]&&(console[_0x5d7051(0xc0)]('\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:'),console[_0x5d7051(0xc0)](_0x2a4388['test_output'])),console[_0x5d7051(0xc0)](_0x5d7051(0xa1)));}catch(_0x47160e){console['log'](_0x5d7051(0xb2)+(_0x47160e instanceof Error?_0x47160e['message']:String(_0x47160e))),console['log'](_0x24a5e1['lbGxg']);}}const _0x5d27d4=readProfileOverrides(process[_0x5d7051(0xa9)](),_0xb4f32f),_0x223616=_0x24a5e1['ilksw'](mergeCloudProfileSettings,_0x24277f['settings']??{},_0x24a5e1[_0x5d7051(0xc2)](_0x5d27d4,undefined)),_0x451a4c=_0x223616['setupHeaders'],_0x1b0d86=_0x223616[_0x5d7051(0xb3)],_0x597571=_0x2297a9?{..._0x2297a9,'domains':_0x1b0d86?[_0x1b0d86,..._0x2297a9[_0x5d7051(0xc8)]]:_0x2297a9['domains'],'setupHeaders':_0x451a4c??_0x2297a9[_0x5d7051(0xca)]}:_0x1b0d86?{'key':_0x24277f['environmentKey']??'','domains':[_0x1b0d86],'setupHeaders':_0x451a4c}:null;!_0x597571&&(console[_0x5d7051(0xb4)](_0x24a5e1[_0x5d7051(0xc5)](_0x24a5e1[_0x5d7051(0xad)](_0x24a5e1['pqAsb']('Profile\x20\x22'+_0xb4f32f+_0x5d7051(0xb9),'Re-create\x20it\x20with:\x0a'),'\x0a'),'\x20\x20ranger\x20profile\x20add\x20'+_0xb4f32f+'\x20--url\x20<your-app-url>\x0a')),process['exit'](0x1)),!isInteractive()&&(console['error'](_0x24a5e1['BWhxI']('Can\x27t\x20refresh\x20\x22'+_0xb4f32f+_0x5d7051(0xb8),_0x5d7051(0xb7)+_0xb4f32f+'`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).')),process['exit'](0x1)),console['log'](_0x5d7051(0xb5)+_0xb4f32f+'\x22\x20via\x20headed\x20browser...'),await manualBrowserLogin(_0x24277f,_0x597571),console['log']('✓\x20Session\x20refreshed\x20for\x20\x22'+_0xb4f32f+'\x22.');}function _0x3d26(_0x260b55,_0xf1262e){_0x260b55=_0x260b55-0xa1;const _0x2e7b0a=_0x2e7b();let _0x3d26b9=_0x2e7b0a[_0x260b55];return _0x3d26b9;}function _0x2e7b(){const _0xb0912=['9480KqssGq','setupHeaders','iXSiL','ilksw','environmentKey','success','not_configured','Create\x20it\x20with:\x0a','local','\x20\x20Falling\x20back\x20to\x20headed\x20browser...','2673kerCUw','JtHzu','\x20\x20ranger\x20profile\x20add\x20','Profile\x20\x22','test_output','manual','40GUGmHS','cwd','\x22\x20found.\x0a','status','27205qlXFWC','BWhxI','zkaKb','417817tphNgc','42753XZnkkq','4yWJTib','\x20\x20Server-side\x20login\x20error:\x20','baseUrl','error','Capturing\x20a\x20fresh\x20session\x20for\x20\x22','3435670rZflbS','Run\x20`ranger\x20profile\x20update\x20','\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a','\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a','gnBKO','\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...','33786zxbIkm','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a','catch','exit','log','mnqNs','IhIwI','7OFbtQf','10MpLxNt','VUFlu','1063860njYuYz','sOpWk','domains'];_0x2e7b=function(){return _0xb0912;};return _0x2e7b();}
@@ -1 +1 @@
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
+ (function(_0x4bd417,_0x26cc61){const _0x5ad678=_0x2e4d,_0x6e3d7d=_0x4bd417();while(!![]){try{const _0x985ae=parseInt(_0x5ad678(0xf0))/0x1*(-parseInt(_0x5ad678(0xee))/0x2)+parseInt(_0x5ad678(0xf2))/0x3+-parseInt(_0x5ad678(0xf1))/0x4*(-parseInt(_0x5ad678(0xed))/0x5)+parseInt(_0x5ad678(0xf6))/0x6*(-parseInt(_0x5ad678(0xf5))/0x7)+parseInt(_0x5ad678(0xf4))/0x8+parseInt(_0x5ad678(0xef))/0x9*(-parseInt(_0x5ad678(0xf7))/0xa)+parseInt(_0x5ad678(0xeb))/0xb;if(_0x985ae===_0x26cc61)break;else _0x6e3d7d['push'](_0x6e3d7d['shift']());}catch(_0x22cfe7){_0x6e3d7d['push'](_0x6e3d7d['shift']());}}}(_0x381d,0x56b04));import{join}from'path';import{existsSync}from'fs';function _0x381d(){const _0x1aa167=['356064Xbwgub','10101ZyvjKQ','1614payVCC','3880nMqBGb','uQkyn','SUiOe','`ranger\x20profile\x20add\x20','2559931PKPYZB','Profile\x20\x22','680555lVXuqc','10996oqDGKT','3987NFfcmX','35UdvEpU','4JQUWqd','2082651OXGXdF','log'];_0x381d=function(){return _0x1aa167;};return _0x381d();}import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x2e4d(_0x208108,_0x3fdc5c){_0x208108=_0x208108-0xeb;const _0x381dae=_0x381d();let _0x2e4dc4=_0x381dae[_0x208108];return _0x2e4dc4;}export async function useEnv(_0x4d6c7f){const _0x30db28=_0x2e4d,_0x642e3b={'NaxKt':'settings.json','TGhTo':function(_0xe1c2c2,_0x2894c1){return _0xe1c2c2(_0x2894c1);},'SUiOe':function(_0x7e6cbd,_0x273ce8){return _0x7e6cbd(_0x273ce8);},'YkItN':function(_0x173d34,_0x18e13a){return _0x173d34 instanceof _0x18e13a;},'TNxMu':function(_0x5ee010,_0x3b5527){return _0x5ee010+_0x3b5527;},'uQkyn':function(_0x373c81,_0x39ce95){return _0x373c81+_0x39ce95;}},_0x383493=getEnvDir(_0x4d6c7f),_0x1e3d89=join(_0x383493,_0x642e3b['NaxKt']),_0x28bc8f=_0x642e3b['TGhTo'](existsSync,_0x383493)&&_0x642e3b[_0x30db28(0xf9)](existsSync,_0x1e3d89);if(_0x28bc8f){await writeActiveProfileName(_0x4d6c7f),console[_0x30db28(0xf3)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x4d6c7f+'\x22');return;}let _0x34bc83=null,_0x4bb1ca=![];try{_0x34bc83=await fetchCloudProfile(_0x4d6c7f);if(!_0x34bc83)_0x4bb1ca=!![];}catch(_0x439bc4){_0x642e3b['YkItN'](_0x439bc4,ApiError)&&_0x439bc4['status']===0x194&&(_0x4bb1ca=!![]);}if(_0x4bb1ca)throw new Error(_0x642e3b['TNxMu'](_0x642e3b[_0x30db28(0xf8)](_0x30db28(0xec)+_0x4d6c7f+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20','Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'),_0x30db28(0xfa)+_0x4d6c7f+'`\x20to\x20create\x20one.'));await _0x642e3b[_0x30db28(0xf9)](writeActiveProfileName,_0x4d6c7f),console[_0x30db28(0xf3)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x4d6c7f+'\x22');}
@@ -1 +1 @@
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
+ const _0x1448c8=_0x39df;function _0x39df(_0x42a80b,_0x17e8f0){_0x42a80b=_0x42a80b-0xcd;const _0x38538e=_0x3853();let _0x39dfc4=_0x38538e[_0x42a80b];return _0x39dfc4;}(function(_0x15e3d3,_0x2923f8){const _0x46f196=_0x39df,_0x53f2f5=_0x15e3d3();while(!![]){try{const _0x50da13=parseInt(_0x46f196(0xcd))/0x1*(-parseInt(_0x46f196(0xd1))/0x2)+-parseInt(_0x46f196(0xdd))/0x3*(parseInt(_0x46f196(0xd3))/0x4)+parseInt(_0x46f196(0xd7))/0x5*(-parseInt(_0x46f196(0xd6))/0x6)+-parseInt(_0x46f196(0xcf))/0x7+-parseInt(_0x46f196(0xdc))/0x8*(parseInt(_0x46f196(0xd5))/0x9)+-parseInt(_0x46f196(0xd9))/0xa*(parseInt(_0x46f196(0xd2))/0xb)+parseInt(_0x46f196(0xda))/0xc;if(_0x50da13===_0x2923f8)break;else _0x53f2f5['push'](_0x53f2f5['shift']());}catch(_0x1317ec){_0x53f2f5['push'](_0x53f2f5['shift']());}}}(_0x3853,0x8bcc9));function _0x3853(){const _0x22688f=['6376266VFrYDG','5hgmEDB','trim','130WRshQR','68237916FxVwsQ','htaRK','8787456qqEXwk','424299tncyoZ','active-profile.txt','22329MsIvxu','utf-8','1663494xCFKGt','cwd','84reGBGA','905476Qtzxoh','20ANbtNd','active-env.txt','9zTiGKo'];_0x3853=function(){return _0x22688f;};return _0x3853();}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=_0x1448c8(0xde),LEGACY_ACTIVE_ENV_FILE=_0x1448c8(0xd4);function readLegacyActiveProfileFile(){const _0x20abd6=_0x1448c8,_0xf5aece={'htaRK':function(_0x46ef74,_0x8369ee,_0x29b7fc){return _0x46ef74(_0x8369ee,_0x29b7fc);},'zWDXx':function(_0x383c29,_0x49dba5,_0x203e46){return _0x383c29(_0x49dba5,_0x203e46);},'FMnfa':function(_0x110050){return _0x110050();}},_0xecbd45=[_0xf5aece[_0x20abd6(0xdb)](join,getRangerDir(),LEGACY_ACTIVE_PROFILE_FILE),_0xf5aece['htaRK'](join,getRangerHomeDir(),LEGACY_ACTIVE_PROFILE_FILE),_0xf5aece['htaRK'](join,getRangerDir(),LEGACY_ACTIVE_ENV_FILE),_0xf5aece['zWDXx'](join,_0xf5aece['FMnfa'](getRangerHomeDir),LEGACY_ACTIVE_ENV_FILE)];for(const _0x531d29 of _0xecbd45){if(existsSync(_0x531d29))return _0x531d29;}return null;}export async function readActiveProfileName(){const _0x3c7390=_0x1448c8,_0x3021b6={'Dwtas':function(_0x19e47e,_0x540701){return _0x19e47e(_0x540701);},'eBCeu':function(_0xf4191a){return _0xf4191a();},'ZEjJV':_0x3c7390(0xce)},_0x57d15b=_0x3021b6['Dwtas'](readLastProfile,process[_0x3c7390(0xd0)]());if(_0x57d15b)return _0x57d15b;const _0x2ae3a4=_0x3021b6['eBCeu'](readLegacyActiveProfileFile);if(!_0x2ae3a4)return null;try{return(await readFile(_0x2ae3a4,_0x3021b6['ZEjJV']))[_0x3c7390(0xd8)]()||null;}catch{return null;}}export async function writeActiveProfileName(_0x485307){const _0x14544c={'vebFK':function(_0x2b6cb4,_0x37b900,_0x112c6c){return _0x2b6cb4(_0x37b900,_0x112c6c);}};_0x14544c['vebFK'](writeLastProfile,process['cwd'](),_0x485307);}
@@ -1 +1 @@
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
+ const _0x4e4955=_0x54c8;(function(_0x5ccb70,_0x2b83f2){const _0x23b4c8=_0x54c8,_0x512b07=_0x5ccb70();while(!![]){try{const _0x56a584=-parseInt(_0x23b4c8(0x85))/0x1+parseInt(_0x23b4c8(0x7d))/0x2*(-parseInt(_0x23b4c8(0xae))/0x3)+parseInt(_0x23b4c8(0x75))/0x4+-parseInt(_0x23b4c8(0x82))/0x5*(parseInt(_0x23b4c8(0x81))/0x6)+-parseInt(_0x23b4c8(0xa9))/0x7*(-parseInt(_0x23b4c8(0xb4))/0x8)+parseInt(_0x23b4c8(0x8d))/0x9*(-parseInt(_0x23b4c8(0x93))/0xa)+-parseInt(_0x23b4c8(0x92))/0xb*(-parseInt(_0x23b4c8(0xa3))/0xc);if(_0x56a584===_0x2b83f2)break;else _0x512b07['push'](_0x512b07['shift']());}catch(_0x490bd2){_0x512b07['push'](_0x512b07['shift']());}}}(_0x3977,0x8dfc3));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';import{getAiProxyUrl}from'./environment.js';function _0x54c8(_0x17c82c,_0x140f65){_0x17c82c=_0x17c82c-0x72;const _0x39775f=_0x3977();let _0x54c80d=_0x39775f[_0x17c82c];return _0x54c80d;}function _0x3977(){const _0x5cd3ef=['Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','HOME','length','855KYXhSD','some','AWS_ACCESS_KEY_ID','Lhpbp','x-ranger-','146344Jkdxls','95360OHGgvl','PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','map','join','RANGER_TRANSPORT','includes','${PATH}','PLAYWRIGHT_BROWSERS_PATH','AWS_DEFAULT_REGION','AWS_SDK_LOAD_CONFIG','AWS_CONFIG_FILE','RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS','DEBUG','split','USERPROFILE','filter','1668LTDsXO','push','XDG_CONFIG_HOME','env','txpwm','entries','2219CIbzsT','Vgkwe','npm_config_cache','/tmp','XDG_CACHE_HOME','1176501yJxHOm','metadata','NPM_CONFIG_REGISTRY','$PATH','AWS_SECRET_ACCESS_KEY','RANGERWRIGHT_DAEMON_START_TIMEOUT_MS','22136yCeYaN','set','CHROME_BIN','EFDwI','AWS_ROLE_SESSION_NAME','3686360FaIRDS','npm_config_registry','ranger-claude-tmp','string','true','PATH','/bin','RANGERWRIGHT_CLICK_TIMEOUT_MS','4tsBXtY','TEMP','toLowerCase','plGeF','390FPHeIL','50090sXlvHq','slice','AWS_SHARED_CREDENTIALS_FILE','724990EWeGwi','darwin','indexOf','TMP','APPDATA'];_0x3977=function(){return _0x5cd3ef;};return _0x3977();}const AI_PROXY_METADATA_HEADERS_ENV_VAR='ANTHROPIC_CUSTOM_HEADERS',AGENT_ENV_PASSTHROUGH_KEYS=[_0x4e4955(0x7a),_0x4e4955(0x8b),'TMPDIR','TMP','TEMP',_0x4e4955(0xa1),_0x4e4955(0x89),'LOCALAPPDATA',_0x4e4955(0xad),_0x4e4955(0xa5),_0x4e4955(0x9a),'PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD',_0x4e4955(0x72),'CHROMIUM_BIN',_0x4e4955(0xab),'NPM_CONFIG_CACHE','npm_config_userconfig','NPM_CONFIG_USERCONFIG','npm_config_prefix','NPM_CONFIG_PREFIX',_0x4e4955(0x76),_0x4e4955(0xb0),_0x4e4955(0x9f),'NODE_ENV','RANGER_TEST_SKIP_BROWSER_WAIT',_0x4e4955(0x97),_0x4e4955(0xb3),_0x4e4955(0x7c),_0x4e4955(0x9e),'NOVA_ACT_API_KEY','AWS_PROFILE','AWS_REGION',_0x4e4955(0x9b),_0x4e4955(0x9d),_0x4e4955(0x84),_0x4e4955(0x8f),_0x4e4955(0xb2),'AWS_SESSION_TOKEN',_0x4e4955(0x9c),'AWS_WEB_IDENTITY_TOKEN_FILE','AWS_ROLE_ARN',_0x4e4955(0x74),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=[_0x4e4955(0x99),_0x4e4955(0xb1),'%PATH%'];function parseCustomHeaders(_0x58c210){const _0x35a859=_0x4e4955,_0x40ede5={'zOPuL':function(_0x249978,_0x2bf1aa){return _0x249978===_0x2bf1aa;},'sEgFY':function(_0x25361a,_0x2ea5e8){return _0x25361a+_0x2ea5e8;}};if(!_0x58c210)return[];return _0x58c210[_0x35a859(0xa0)](/\r?\n/)['map'](_0x5d2861=>_0x5d2861['trim']())['filter'](Boolean)[_0x35a859(0x95)](_0x1029ca=>{const _0x558eaf=_0x35a859,_0x4ae40d=_0x1029ca[_0x558eaf(0x87)](':');if(_0x40ede5['zOPuL'](_0x4ae40d,-0x1))return null;const _0x4713e4=_0x1029ca[_0x558eaf(0x83)](0x0,_0x4ae40d)['trim'](),_0x441c68=_0x1029ca[_0x558eaf(0x83)](_0x40ede5['sEgFY'](_0x4ae40d,0x1))['trim']();if(!_0x4713e4)return null;return[_0x4713e4,_0x441c68];})[_0x35a859(0xa2)](_0x2b1e5f=>_0x2b1e5f!==null);}export function getAgentPathHealthWarning(_0x270e40,_0xed3508=process['platform']){const _0x1863c7=_0x4e4955,_0x160692={'plGeF':function(_0x2e54d7,_0x2af474){return _0x2e54d7||_0x2af474;},'Vgkwe':'PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','pIlBr':'PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.'},_0x4883c5=[],_0xb8833b=_0x160692[_0x1863c7(0x80)](_0x270e40,'')[_0x1863c7(0xa0)](delimiter)[_0x1863c7(0xa2)](Boolean);_0xb8833b[_0x1863c7(0x8c)]===0x0&&_0x4883c5['push'](_0x160692[_0x1863c7(0xaa)]);UNEXPANDED_PATH_TOKEN_PATTERNS[_0x1863c7(0x8e)](_0x1a81e1=>(_0x270e40||'')[_0x1863c7(0x98)](_0x1a81e1))&&_0x4883c5['push'](_0x1863c7(0x94));if(_0xed3508!=='win32'){const _0x5a2148=_0xb8833b['includes']('/usr/bin'),_0x132be5=_0xb8833b['includes'](_0x1863c7(0x7b));!_0x5a2148&&!_0x132be5&&_0x4883c5[_0x1863c7(0xa4)](_0x160692['pIlBr']);}if(_0x4883c5[_0x1863c7(0x8c)]===0x0)return null;return{'summary':'Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','issues':_0x4883c5};}export function buildAgentEnv(_0x5513c7){const _0x387871=_0x4e4955,_0x488f5f={'EFDwI':function(_0x45f235){return _0x45f235();},'WFyNd':_0x387871(0x79),'Lhpbp':'TMPDIR','ZirYf':function(_0x1807df,_0x21425a){return _0x1807df===_0x21425a;},'txpwm':_0x387871(0x86),'XNGZS':_0x387871(0xac),'vGRVi':function(_0x1f2d7b,_0x4a4b7d,_0x520170){return _0x1f2d7b(_0x4a4b7d,_0x520170);},'pwFRv':_0x387871(0x88)};if(_0x5513c7['byokEnabled'])return Object['fromEntries'](Object[_0x387871(0xa8)](process['env'])['filter'](_0x20f837=>typeof _0x20f837[0x1]===_0x387871(0x78)));if(!_0x5513c7['sessionToken'])throw new Error(_0x387871(0x8a));const _0xfdcf18={'ANTHROPIC_API_KEY':_0x5513c7['sessionToken'],'ANTHROPIC_BASE_URL':_0x488f5f[_0x387871(0x73)](getAiProxyUrl),'DISABLE_TELEMETRY':_0x488f5f['WFyNd']};for(const _0x45df3c of AGENT_ENV_PASSTHROUGH_KEYS){const _0x4963d9=process[_0x387871(0xa6)][_0x45df3c];_0x4963d9&&![_0x488f5f[_0x387871(0x90)],_0x387871(0x88),_0x387871(0x7e)][_0x387871(0x98)](_0x45df3c)&&(_0xfdcf18[_0x45df3c]=_0x4963d9);}const _0x2e0fab=_0x488f5f['ZirYf'](process['platform'],_0x488f5f[_0x387871(0xa7)])?_0x488f5f['XNGZS']:tmpdir(),_0x52e14b=join(_0x2e0fab,_0x387871(0x77));try{_0x488f5f['vGRVi'](mkdirSync,_0x52e14b,{'recursive':!![]});}catch{}_0xfdcf18[_0x488f5f['Lhpbp']]=_0x52e14b,_0xfdcf18[_0x488f5f['pwFRv']]=_0x52e14b,_0xfdcf18['TEMP']=_0x52e14b;const _0x11c9ec=parseCustomHeaders(process[_0x387871(0xa6)][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0xe45c0b=new Map(_0x11c9ec),_0x541249=new Set(_0x11c9ec[_0x387871(0x95)](([_0x28a3e0])=>_0x28a3e0['toLowerCase']()));if(_0x5513c7[_0x387871(0xaf)])for(const [_0x177fac,_0x58cc83]of Object['entries'](_0x5513c7[_0x387871(0xaf)])){if(_0x58cc83==null||_0x58cc83==='')continue;const _0x5d382a=_0x387871(0x91)+_0x177fac;!_0x541249['has'](_0x5d382a['toLowerCase']())&&(_0xe45c0b[_0x387871(0xb5)](_0x5d382a,_0x58cc83),_0x541249['add'](_0x5d382a[_0x387871(0x7f)]()));}const _0x57a4a2=Array['from'](_0xe45c0b[_0x387871(0xa8)]())['map'](([_0x476d68,_0x16662e])=>_0x476d68+':\x20'+_0x16662e)[_0x387871(0x96)]('\x0a');return _0x57a4a2&&(_0xfdcf18[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x57a4a2),_0xfdcf18;}
@@ -1 +1 @@
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
+ (function(_0x5bafa4,_0x3609e8){const _0x380cfa=_0x3737,_0x2e4fe0=_0x5bafa4();while(!![]){try{const _0x270d9f=parseInt(_0x380cfa(0x249))/0x1*(parseInt(_0x380cfa(0x1fb))/0x2)+-parseInt(_0x380cfa(0x20e))/0x3+-parseInt(_0x380cfa(0x22b))/0x4+-parseInt(_0x380cfa(0x260))/0x5+parseInt(_0x380cfa(0x239))/0x6+-parseInt(_0x380cfa(0x22f))/0x7*(-parseInt(_0x380cfa(0x265))/0x8)+parseInt(_0x380cfa(0x1f7))/0x9;if(_0x270d9f===_0x3609e8)break;else _0x2e4fe0['push'](_0x2e4fe0['shift']());}catch(_0x2ceb6f){_0x2e4fe0['push'](_0x2e4fe0['shift']());}}}(_0x263f,0xc91d7));const _0x463f24=(function(){let _0x5a1c8a=!![];return function(_0x113856,_0x4676e2){const _0x45b269=_0x5a1c8a?function(){const _0x4cb161=_0x3737;if(_0x4676e2){const _0x3a80d4=_0x4676e2[_0x4cb161(0x24b)](_0x113856,arguments);return _0x4676e2=null,_0x3a80d4;}}:function(){};return _0x5a1c8a=![],_0x45b269;};}()),_0x33ecfd=_0x463f24(this,function(){const _0x39a3b7=_0x3737,_0x5d6ec5={'rYhJk':_0x39a3b7(0x26a)};return _0x33ecfd[_0x39a3b7(0x1ff)]()[_0x39a3b7(0x206)](_0x5d6ec5[_0x39a3b7(0x1fe)])['toString']()[_0x39a3b7(0x1f1)](_0x33ecfd)[_0x39a3b7(0x206)](_0x5d6ec5[_0x39a3b7(0x1fe)]);});_0x33ecfd();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x5d467c){const _0x28b17b=_0x3737,_0x2a3786={'siIZq':_0x28b17b(0x25c),'IalYL':'base64','LMHEv':function(_0x5ba9b5){return _0x5ba9b5();},'qErRm':function(_0x51580d,_0x51c188){return _0x51580d!==_0x51c188;},'cbQRb':_0x28b17b(0x223),'azmYf':'nilyU','ZddZu':_0x28b17b(0x221),'OTwXT':function(_0x22fd91,_0x2ef083,_0x496808){return _0x22fd91(_0x2ef083,_0x496808);},'pPKZt':'application/json'},_0x115f13=await _0x2a3786[_0x28b17b(0x248)](getToken);if(!_0x115f13){if(_0x2a3786['qErRm'](_0x2a3786[_0x28b17b(0x23c)],_0x2a3786[_0x28b17b(0x263)]))throw new Error(_0x2a3786[_0x28b17b(0x250)]);else return _0xa32098(_0x2a3786[_0x28b17b(0x25f)])[_0x28b17b(0x23a)](_0x50422e)[_0x28b17b(0x245)](_0x2a3786[_0x28b17b(0x1f5)]);}const _0x542df9=getApiBaseUrl(),_0x123247=await _0x2a3786[_0x28b17b(0x237)](fetch,_0x542df9+_0x28b17b(0x210),{'method':_0x28b17b(0x26b),'headers':{'Authorization':_0x28b17b(0x234)+_0x115f13,'Content-Type':_0x2a3786[_0x28b17b(0x216)]},'body':JSON['stringify']({'environmentName':_0x5d467c?.[_0x28b17b(0x220)],'settings':_0x5d467c?.[_0x28b17b(0x215)],'task':_0x5d467c?.[_0x28b17b(0x257)],'url':_0x5d467c?.[_0x28b17b(0x205)],'featureId':_0x5d467c?.[_0x28b17b(0x240)],'checklistItemId':_0x5d467c?.['checklistItemId']})});if(!_0x123247['ok']){const _0x17670c=await _0x123247[_0x28b17b(0x25e)]();throw new Error(_0x28b17b(0x232)+_0x17670c);}return _0x123247[_0x28b17b(0x23d)]();}export async function updateBrowserSession(_0xb16446,_0x34c98f){const _0x947a82=_0x3737,_0x5a282b={'tVOpX':_0x947a82(0x221),'LbTRA':'mMjmZ','HdADV':function(_0x4ae420){return _0x4ae420();},'QvNcz':_0x947a82(0x1ee),'GXKOt':_0x947a82(0x219),'Vacll':function(_0x1b0848,_0x364c3b){return _0x1b0848!==_0x364c3b;},'kVMHe':_0x947a82(0x218),'ATAlN':function(_0x53c451,_0xb41a6f,_0x22c6e2){return _0x53c451(_0xb41a6f,_0x22c6e2);},'rSXtM':'updateBrowserSession'};return _0x5a282b['ATAlN'](withRetry,async()=>{const _0x410bdf=_0x947a82,_0x2d5e1f={'bVlBH':_0x5a282b[_0x410bdf(0x1fa)]};if(_0x410bdf(0x212)!==_0x5a282b['LbTRA']){if(_0xca7b1){const _0x56b732=_0x513f21[_0x410bdf(0x24b)](_0x331b58,arguments);return _0x34a7f5=null,_0x56b732;}}else{const _0x413b51=await _0x5a282b[_0x410bdf(0x258)](getToken);if(!_0x413b51){if(_0x5a282b[_0x410bdf(0x1f2)]===_0x5a282b[_0x410bdf(0x1f2)])throw new Error(_0x5a282b['tVOpX']);else throw new _0x5e1829(_0x2d5e1f[_0x410bdf(0x238)]);}const _0x13bc72=_0x5a282b[_0x410bdf(0x258)](getApiBaseUrl),_0x44a450=await fetch(_0x13bc72+_0x410bdf(0x20b)+_0xb16446,{'method':_0x5a282b[_0x410bdf(0x1f0)],'headers':{'Authorization':_0x410bdf(0x234)+_0x413b51,'Content-Type':_0x410bdf(0x1f9)},'body':JSON['stringify'](_0x34c98f)});if(!_0x44a450['ok']){if(_0x5a282b[_0x410bdf(0x22e)](_0x5a282b[_0x410bdf(0x24a)],'GvVVw')){const _0x432861=await _0x44a450[_0x410bdf(0x25e)]();throw new Error(_0x410bdf(0x253)+_0x432861);}else throw new _0x380ba6(_0x410bdf(0x221));}return _0x44a450[_0x410bdf(0x23d)]();}},{'label':_0x5a282b[_0x947a82(0x236)]});}export async function getBrowserSession(_0x2ffe4e){const _0x579398=_0x3737,_0x7fb1c2={'lAXJK':_0x579398(0x221),'fjNCU':function(_0x3ba7aa,_0x58a1a7){return _0x3ba7aa!==_0x58a1a7;},'iAmlD':_0x579398(0x254),'FZjrn':function(_0x4cc2b5){return _0x4cc2b5();},'xwewz':function(_0x22df64,_0x2f95c4,_0x321b9b){return _0x22df64(_0x2f95c4,_0x321b9b);},'uLEMS':_0x579398(0x20f),'Oksss':_0x579398(0x217),'kqHPI':'htNlt'},_0x11c303=await getToken();if(!_0x11c303){if(_0x7fb1c2['fjNCU'](_0x7fb1c2['iAmlD'],_0x7fb1c2[_0x579398(0x246)]))throw new _0x2e75c1(_0x7fb1c2['lAXJK']);else throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');}const _0x217dc5=_0x7fb1c2[_0x579398(0x231)](getApiBaseUrl),_0x433b5d=await _0x7fb1c2[_0x579398(0x20d)](fetch,_0x217dc5+_0x579398(0x20b)+_0x2ffe4e,{'method':_0x7fb1c2[_0x579398(0x26f)],'headers':{'Authorization':_0x579398(0x234)+_0x11c303}});if(!_0x433b5d['ok']){if(_0x7fb1c2[_0x579398(0x227)](_0x7fb1c2[_0x579398(0x24e)],_0x7fb1c2['kqHPI'])){const _0x59e36c=await _0x433b5d[_0x579398(0x25e)]();throw new Error('Failed\x20to\x20get\x20browser\x20session:\x20'+_0x59e36c);}else throw new _0x3479d1(_0x7fb1c2[_0x579398(0x211)]);}return _0x433b5d[_0x579398(0x23d)]();}export async function getUploadUrls(_0x5e4489,_0x4fb784,_0x1d2dd1,_0x3a96c3){const _0x6c88f1=_0x3737,_0x593c43={'JNmYG':function(_0x165902,_0x4e3b93,_0x18e4a3,_0x399389){return _0x165902(_0x4e3b93,_0x18e4a3,_0x399389);},'yXLYJ':function(_0x215891){return _0x215891();},'dxSEl':_0x6c88f1(0x243),'ElfJv':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','cWcCU':function(_0x3e072c){return _0x3e072c();},'jRNiH':function(_0x2ad5f2,_0xd36a58,_0x3e0b35){return _0x2ad5f2(_0xd36a58,_0x3e0b35);},'wxFWx':'POST','CjyKJ':_0x6c88f1(0x1f9),'uVUOq':function(_0x2e2001,_0x188900){return _0x2e2001!==_0x188900;}},_0x260637=await _0x593c43['yXLYJ'](getToken);if(!_0x260637){if(_0x6c88f1(0x243)===_0x593c43['dxSEl'])throw new Error(_0x593c43[_0x6c88f1(0x200)]);else return _0x593c43[_0x6c88f1(0x204)](_0x23c2c1,_0x3ee0db,_0x2a15a9,_0x6c88f1(0x20c));}const _0x1cdb0b=_0x593c43[_0x6c88f1(0x228)](getApiBaseUrl),_0x57d03c=await _0x593c43[_0x6c88f1(0x230)](fetch,_0x1cdb0b+'/api/v1/mcp/browser-sessions/'+_0x5e4489+_0x6c88f1(0x269),{'method':_0x593c43[_0x6c88f1(0x224)],'headers':{'Authorization':_0x6c88f1(0x234)+_0x260637,'Content-Type':_0x593c43[_0x6c88f1(0x21e)]},'body':JSON[_0x6c88f1(0x209)]({'filename':_0x4fb784,'filetype':_0x1d2dd1,..._0x593c43['uVUOq'](_0x3a96c3?.[_0x6c88f1(0x26c)],undefined)&&{'size':_0x3a96c3[_0x6c88f1(0x26c)]},..._0x3a96c3?.[_0x6c88f1(0x23b)]!==undefined&&{'checksum':_0x3a96c3[_0x6c88f1(0x23b)]},..._0x3a96c3?.['metadata']!==undefined&&{'metadata':_0x3a96c3[_0x6c88f1(0x252)]}})});if(!_0x57d03c['ok']){const _0x43e389=await _0x57d03c[_0x6c88f1(0x25e)]();throw new Error('Failed\x20to\x20get\x20upload\x20URLs:\x20'+_0x43e389);}return _0x57d03c[_0x6c88f1(0x23d)]();}export async function uploadFile(_0x64c1e2,_0x59f946,_0x3ad173){const _0x1e331a=_0x3737,_0xd50213={'rLtyo':function(_0x5444e6,_0x4c5654,_0x5bd38e){return _0x5444e6(_0x4c5654,_0x5bd38e);},'qygzp':'PUT'},_0x3ce24b=await _0xd50213['rLtyo'](fetch,_0x64c1e2,{'method':_0xd50213[_0x1e331a(0x21a)],'headers':{'Content-Type':_0x3ad173,'Content-Length':_0x59f946[_0x1e331a(0x1ef)][_0x1e331a(0x1ff)]()},'body':_0x59f946});if(!_0x3ce24b['ok']){const _0xa6d3e5=await _0x3ce24b[_0x1e331a(0x25e)]();throw new Error(_0x1e331a(0x255)+_0xa6d3e5);}}export async function uploadTrace(_0x1558a8,_0x3a93c0){const _0x39afb6=_0x3737,_0x228161={'jhRJm':function(_0x46e117,_0x29bfa2,_0x382198,_0xa45b96){return _0x46e117(_0x29bfa2,_0x382198,_0xa45b96);},'ONwBu':_0x39afb6(0x266)};return _0x228161[_0x39afb6(0x25d)](uploadFile,_0x1558a8,_0x3a93c0,_0x228161[_0x39afb6(0x24c)]);}export async function uploadConversation(_0x18e194,_0x334ada){const _0x1069fb=_0x3737,_0x2aaeb8={'McqRS':function(_0x401f69,_0x133311,_0x1ea7d7,_0x1d50fa){return _0x401f69(_0x133311,_0x1ea7d7,_0x1d50fa);},'EluZq':'application/jsonl'};return _0x2aaeb8['McqRS'](uploadFile,_0x18e194,_0x334ada,_0x2aaeb8[_0x1069fb(0x261)]);}export async function uploadScreenshot(_0x5a1c32,_0x1753cb){const _0x15a957={'rOXIf':'image/png'};return uploadFile(_0x5a1c32,_0x1753cb,_0x15a957['rOXIf']);}function _0x263f(){const _0x5e6ea7=['ndyYmdaXogjQAMPWDG','DxbKyxrL','y2HLy2TZDw0','y2jruMi','ANnVBG','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','q0rAvhO','zMvHDhvYzuLK','A05Pug0','uwLjvhm','qxnyCg8','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','zgLNzxn0','AufTBeq','sw1crfe','te1irxy','mZCWng95wuX4zW','A1znsgu','yxbWBhK','t053qNu','l3n0zxbZ','t2TZC3m','twTfvgS','wMrKwNu','Bez2qwC','Bwv0ywrHDge','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','BvnnEey','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','C2vZC2LVBLrVA2vU','DgfZAW','sgrbrfy','t2rhwvK','wxPWs2K','yMfZzty0','Bwq1','AMHssM0','Dgv4Da','C2LjwNe','nJi0mdCWnwLmENjprW','rwX1wNe','AM9ZrKi','yxPTwwy','sw1Xz1m','ntG3ndu2CeXbwhHx','yxbWBgLJyxrPB24VEMLW','ChrfyM4','DMLKzw8VD2vIBq','l3vWBg9Hzc11CMXZ','kcGOlISPkYKRksSK','ue9tva','C2L6zq','uurgsuC','ruzor20','DuXftvm','CK9iq2G','CwDMAuK','BgvUz3rO','r1Hlt3q','y29UC3rYDwn0B3i','uxzoy3O','l3n0zxbZlW','t21sv0m','swfSwuW','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','mtm3nJa3ntDkt0Hdwui','txbsuvO','yxbWBgLJyxrPB24VANnVBG','DfzpCfG','odi4wevZsujj','DKLnEvO','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','CLLOsMS','Dg9tDhjPBMC','rwXMsNy','vNrzvxC','l2fZC2v0CW','Evn0rey','sK5TwuC','DxjS','C2vHCMnO','zfrxwuq','DLrrAKK','C3rYAw5NAwz5','B0fSzfi','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','yxbWBgLJyxrPB24VANnVBMW','EhDLD3O','mtq5nZy5nLHgCLvPEG','r0vu','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','BefysKS','Bu1QBvO','tgrey24','s0PNAgK','C2v0DgLUz3m','CfblwNq','zKziC1i','sMrQwMq','uefuq0G','CxLNENa','whHXB0y','reLWyLG','r3DxBwC','q2P5s0O','vMnlz1C','zw52AxjVBM1LBNroyw1L','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','qwnRv24','vxn0sw0','D3Hgv3G','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','s3rOvKC','zMPoq1u','y1DJq1u','txn0yKm','r1jAAeS','ntmZodG5nKPjC1vWyG','q2nIrhC','AwnwwwK','vMfJBgW','n2Tpq2jQqq','ALjoAuG','rLPQCM4','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','Aen6zeC','qMvHCMvYia','vMjMtem','CLnyDe0','t1r3wfq','yLzSqKG'];_0x263f=function(){return _0x5e6ea7;};return _0x263f();}export async function uploadVideo(_0x5d62b5,_0x223226){const _0xadcc03=_0x3737;return uploadFile(_0x5d62b5,_0x223226,_0xadcc03(0x268));}export function buildTraceViewerUrl(_0xc5ebd9){const _0x39a705=_0x3737,_0x3442a5={'WcMOL':function(_0x116ba2,_0x3be6a6){return _0x116ba2(_0x3be6a6);}},_0x396cc5=_0x3442a5['WcMOL'](encodeURIComponent,_0xc5ebd9);return _0x39a705(0x225)+_0x396cc5;}export async function getProxySessionToken(){const _0x36ec71=_0x3737,_0x3f0148={'iLjXI':function(_0x317afb,_0x5449f4,_0x501b78,_0x20bc90){return _0x317afb(_0x5449f4,_0x501b78,_0x20bc90);},'eRSOi':'video/webm','GwWmg':function(_0x5b3aaa){return _0x5b3aaa();},'MMkUp':function(_0x2efb6a,_0x322391){return _0x2efb6a===_0x322391;},'GRZhK':_0x36ec71(0x259),'yStDF':_0x36ec71(0x26e),'QDFIG':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','OmRWC':function(_0x9c5346,_0x154508,_0x2d1882){return _0x9c5346(_0x154508,_0x2d1882);},'hCzdG':_0x36ec71(0x26b)},_0x518c31=await _0x3f0148[_0x36ec71(0x21d)](getToken);if(!_0x518c31){if(_0x3f0148['MMkUp'](_0x3f0148[_0x36ec71(0x22a)],_0x3f0148[_0x36ec71(0x203)]))return _0x3f0148['iLjXI'](_0x2d3eae,_0x4b357f,_0x3db086,_0x3f0148['eRSOi']);else throw new Error(_0x3f0148[_0x36ec71(0x26d)]);}const _0x50f7f2=getApiBaseUrl(),_0x196a4b=await _0x3f0148[_0x36ec71(0x1f4)](fetch,_0x50f7f2+_0x36ec71(0x1fd),{'method':_0x3f0148[_0x36ec71(0x233)],'headers':{'Authorization':_0x36ec71(0x234)+_0x518c31}});if(!_0x196a4b['ok']){const _0x403148=await _0x196a4b[_0x36ec71(0x25e)]();throw new Error(_0x36ec71(0x23e)+_0x403148);}const _0x1359af=await _0x196a4b[_0x36ec71(0x23d)]();return _0x1359af[_0x36ec71(0x256)];}export function computeChecksum(_0x405945){const _0x36f641=_0x3737,_0x3ffcad={'ImqgS':function(_0x540df3,_0x376815){return _0x540df3(_0x376815);},'DIpbX':_0x36f641(0x25c),'dTWYD':_0x36f641(0x25b)};return _0x3ffcad[_0x36f641(0x264)](createHash,_0x3ffcad[_0x36f641(0x21c)])['update'](_0x405945)['digest'](_0x3ffcad[_0x36f641(0x207)]);}export async function createVerificationStep(_0x4f2f5f,_0x5b7ea7){const _0x178b21=_0x3737,_0x52f3eb={'vTQjI':_0x178b21(0x221),'KthVG':function(_0x2e93b1,_0x4d361d){return _0x2e93b1!==_0x4d361d;},'icVYi':'cwDxc','MpRQZ':_0x178b21(0x222),'kNiPm':function(_0x2baf29){return _0x2baf29();},'MstbC':function(_0x165e1d,_0x4a79a1,_0x234507){return _0x165e1d(_0x4a79a1,_0x234507);},'XxqoF':_0x178b21(0x26b),'CcbDw':'application/json'},_0x423e6a=await getToken();if(!_0x423e6a){if(_0x52f3eb[_0x178b21(0x226)](_0x52f3eb[_0x178b21(0x22d)],_0x52f3eb[_0x178b21(0x1f8)]))throw new Error(_0x178b21(0x221));else throw new _0x38d03f(_0x52f3eb[_0x178b21(0x208)]);}const _0x1fcfdb=_0x52f3eb[_0x178b21(0x241)](getApiBaseUrl),_0x4963a2=await _0x52f3eb[_0x178b21(0x229)](fetch,_0x1fcfdb+_0x178b21(0x20b)+_0x4f2f5f+_0x178b21(0x24d),{'method':_0x52f3eb[_0x178b21(0x21b)],'headers':{'Authorization':_0x178b21(0x234)+_0x423e6a,'Content-Type':_0x52f3eb[_0x178b21(0x22c)]},'body':JSON['stringify'](_0x5b7ea7)});if(!_0x4963a2['ok']){const _0x391d03=await _0x4963a2[_0x178b21(0x25e)]();throw new Error(_0x178b21(0x1f6)+_0x391d03);}return _0x4963a2[_0x178b21(0x23d)]();}function _0x3737(_0x2a8eba,_0xb29fc9){_0x2a8eba=_0x2a8eba-0x1ed;const _0x27a3a7=_0x263f();let _0x33ecfd=_0x27a3a7[_0x2a8eba];if(_0x3737['JWEXzK']===undefined){var _0x463f24=function(_0x27b567){const _0x4704cf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c2f55='',_0x1696e7='',_0x12f884=_0x4c2f55+_0x463f24;for(let _0x4fd9f8=0x0,_0x20c4e6,_0xb86024,_0x47b6bf=0x0;_0xb86024=_0x27b567['charAt'](_0x47b6bf++);~_0xb86024&&(_0x20c4e6=_0x4fd9f8%0x4?_0x20c4e6*0x40+_0xb86024:_0xb86024,_0x4fd9f8++%0x4)?_0x4c2f55+=_0x12f884['charCodeAt'](_0x47b6bf+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x20c4e6>>(-0x2*_0x4fd9f8&0x6)):_0x4fd9f8:0x0){_0xb86024=_0x4704cf['indexOf'](_0xb86024);}for(let _0x4b342b=0x0,_0xd7ffd9=_0x4c2f55['length'];_0x4b342b<_0xd7ffd9;_0x4b342b++){_0x1696e7+='%'+('00'+_0x4c2f55['charCodeAt'](_0x4b342b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1696e7);};_0x3737['wkWIIp']=_0x463f24,_0x3737['ehYaut']={},_0x3737['JWEXzK']=!![];}const _0x263f87=_0x27a3a7[0x0],_0x3737b9=_0x2a8eba+_0x263f87,_0x268a3e=_0x3737['ehYaut'][_0x3737b9];if(!_0x268a3e){const _0x18f5c8=function(_0x355db1){this['bneImV']=_0x355db1,this['nFckvm']=[0x1,0x0,0x0],this['UHgnmM']=function(){return'newState';},this['ykordJ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['nYdwpc']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x18f5c8['prototype']['MBjdNv']=function(){const _0x8e86c6=new RegExp(this['ykordJ']+this['nYdwpc']),_0x576ffc=_0x8e86c6['test'](this['UHgnmM']['toString']())?--this['nFckvm'][0x1]:--this['nFckvm'][0x0];return this['wRhDDa'](_0x576ffc);},_0x18f5c8['prototype']['wRhDDa']=function(_0x2960ce){if(!Boolean(~_0x2960ce))return _0x2960ce;return this['FZJYCY'](this['bneImV']);},_0x18f5c8['prototype']['FZJYCY']=function(_0x37d4dc){for(let _0x28a5d0=0x0,_0x5a1436=this['nFckvm']['length'];_0x28a5d0<_0x5a1436;_0x28a5d0++){this['nFckvm']['push'](Math['round'](Math['random']())),_0x5a1436=this['nFckvm']['length'];}return _0x37d4dc(this['nFckvm'][0x0]);},new _0x18f5c8(_0x3737)['MBjdNv'](),_0x33ecfd=_0x3737['wkWIIp'](_0x33ecfd),_0x3737['ehYaut'][_0x3737b9]=_0x33ecfd;}else _0x33ecfd=_0x268a3e;return _0x33ecfd;}export async function createStepAsset(_0x25ceba,_0x2d00c7,_0x4e6e09){const _0x345fed=_0x3737,_0xcfe585={'VtYUw':_0x345fed(0x221),'lFvAg':function(_0x47cdc4){return _0x47cdc4();},'MkETk':function(_0x520c70,_0x13f0e7){return _0x520c70!==_0x13f0e7;},'LdDcn':_0x345fed(0x247),'CDZTz':_0x345fed(0x20a),'KJghi':function(_0x4717f1,_0x1776bf,_0x47a5ec){return _0x4717f1(_0x1776bf,_0x47a5ec);},'vIMyZ':_0x345fed(0x26b),'ETuNR':_0x345fed(0x1f9)},_0x5bee9d=await _0xcfe585[_0x345fed(0x251)](getToken);if(!_0x5bee9d){if(_0xcfe585[_0x345fed(0x24f)](_0xcfe585[_0x345fed(0x213)],_0xcfe585[_0x345fed(0x23f)]))throw new Error(_0x345fed(0x221));else throw new _0x1ce1a3(_0xcfe585[_0x345fed(0x201)]);}const _0x1f7c7b=_0xcfe585[_0x345fed(0x251)](getApiBaseUrl),_0x3ce430=await _0xcfe585[_0x345fed(0x214)](fetch,_0x1f7c7b+'/api/v1/mcp/browser-sessions/'+_0x25ceba+_0x345fed(0x1f3)+_0x2d00c7+_0x345fed(0x202),{'method':_0xcfe585[_0x345fed(0x1fc)],'headers':{'Authorization':'Bearer\x20'+_0x5bee9d,'Content-Type':_0xcfe585['ETuNR']},'body':JSON[_0x345fed(0x209)](_0x4e6e09)});if(!_0x3ce430['ok']){const _0x42bd65=await _0x3ce430[_0x345fed(0x25e)]();throw new Error(_0x345fed(0x244)+_0x42bd65);}return _0x3ce430[_0x345fed(0x23d)]();}export async function updateVerificationStep(_0x4dbc75,_0x264c06,_0x3544c1){const _0x4cbeed=_0x3737,_0x154ab1={'rOHCh':function(_0x47b9d0){return _0x47b9d0();},'oyWZP':_0x4cbeed(0x221),'ptEbn':function(_0x5a2fff){return _0x5a2fff();},'QiITs':function(_0x45586a,_0x3e511a,_0xb51f25){return _0x45586a(_0x3e511a,_0xb51f25);},'VcKgW':_0x4cbeed(0x1f9)},_0x135276=await _0x154ab1[_0x4cbeed(0x1ed)](getToken);if(!_0x135276)throw new Error(_0x154ab1['oyWZP']);const _0x3d9a57=_0x154ab1[_0x4cbeed(0x267)](getApiBaseUrl),_0x522f12=await _0x154ab1[_0x4cbeed(0x242)](fetch,_0x3d9a57+_0x4cbeed(0x20b)+_0x4dbc75+_0x4cbeed(0x1f3)+_0x264c06,{'method':'PATCH','headers':{'Authorization':'Bearer\x20'+_0x135276,'Content-Type':_0x154ab1[_0x4cbeed(0x21f)]},'body':JSON[_0x4cbeed(0x209)](_0x3544c1)});if(!_0x522f12['ok']){const _0x5f5a14=await _0x522f12['text']();throw new Error('Failed\x20to\x20update\x20verification\x20step:\x20'+_0x5f5a14);}}export async function getBrowserSessionSteps(_0x4bbf4f){const _0x137aa2=_0x3737,_0x2bda54={'VbfLC':function(_0xcec8ef){return _0xcec8ef();},'YzpKi':function(_0x1c1afc){return _0x1c1afc();},'josFB':_0x137aa2(0x20f)},_0x1c5920=await _0x2bda54[_0x137aa2(0x235)](getToken);if(!_0x1c5920)throw new Error(_0x137aa2(0x221));const _0x3de377=_0x2bda54[_0x137aa2(0x25a)](getApiBaseUrl),_0x503728=await fetch(_0x3de377+_0x137aa2(0x20b)+_0x4bbf4f+_0x137aa2(0x24d),{'method':_0x2bda54[_0x137aa2(0x262)],'headers':{'Authorization':_0x137aa2(0x234)+_0x1c5920}});if(!_0x503728['ok']){const _0x398ce7=await _0x503728[_0x137aa2(0x25e)]();throw new Error('Failed\x20to\x20get\x20browser\x20session\x20steps:\x20'+_0x398ce7);}return _0x503728[_0x137aa2(0x23d)]();}
@@ -1 +1 @@
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
+ (function(_0x415687,_0x5165ca){const _0x5a5157=_0xb7d5,_0x241c99=_0x415687();while(!![]){try{const _0x59e8aa=-parseInt(_0x5a5157(0x1c0))/0x1+parseInt(_0x5a5157(0x1bd))/0x2*(-parseInt(_0x5a5157(0x1bf))/0x3)+-parseInt(_0x5a5157(0x1cb))/0x4+-parseInt(_0x5a5157(0x1c4))/0x5+parseInt(_0x5a5157(0x1b9))/0x6*(-parseInt(_0x5a5157(0x1c8))/0x7)+-parseInt(_0x5a5157(0x1bc))/0x8*(-parseInt(_0x5a5157(0x1ba))/0x9)+-parseInt(_0x5a5157(0x1b8))/0xa*(-parseInt(_0x5a5157(0x1c7))/0xb);if(_0x59e8aa===_0x5165ca)break;else _0x241c99['push'](_0x241c99['shift']());}catch(_0x2e7483){_0x241c99['push'](_0x241c99['shift']());}}}(_0x441c,0xa34b7));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 _0x540f14=_0xb7d5,_0x49069b={'ravKq':'.claude'};return process[_0x540f14(0x1b7)]['CLAUDE_CONFIG_DIR']||join(homedir(),_0x49069b[_0x540f14(0x1b4)]);}function _0x441c(){const _0x4ead4e=['24auHEhN','7702PUhkct','skills','153zPsBsH','14936Lrwduy','.git','utf-8','cwd','1322750UfMeBO','hwUCa','gWToq','22sRzXiB','8567783scPoBh','yRDot','.claude','493072xxOzqp','ravKq','jDCdw','oNxqb','env','6201970ylyAYI','6QHRoih','3754755YvJDmI','uTuzg'];_0x441c=function(){return _0x4ead4e;};return _0x441c();}export function getUserSkillsDir(){const _0x1845ad=_0xb7d5,_0x567610={'jDCdw':function(_0x5c3a1c,_0x432b0b,_0x3c0e04){return _0x5c3a1c(_0x432b0b,_0x3c0e04);},'zYaWd':function(_0xc37d0b){return _0xc37d0b();}};return _0x567610[_0x1845ad(0x1b5)](join,_0x567610['zYaWd'](getClaudeConfigDir),_0x1845ad(0x1be));}export function getProjectRoot(){const _0x1dc57e=_0xb7d5,_0x2bbaa7={'cQSmd':function(_0x27951b,_0x34a6a7){return _0x27951b!==_0x34a6a7;},'ZRPOX':function(_0x44735f,_0x29a6cd,_0x35f5ea){return _0x44735f(_0x29a6cd,_0x35f5ea);},'omAfp':function(_0x5d93a2,_0xf52104){return _0x5d93a2(_0xf52104);},'JlFgL':_0x1dc57e(0x1c1)};let _0x17eb8c=process[_0x1dc57e(0x1c3)]();const _0x6c3042=parse(_0x17eb8c)['root'];while(_0x2bbaa7['cQSmd'](_0x17eb8c,_0x6c3042)){if(existsSync(_0x2bbaa7['ZRPOX'](join,_0x17eb8c,_0x1dc57e(0x1ca))))return _0x17eb8c;if(_0x2bbaa7['omAfp'](existsSync,join(_0x17eb8c,_0x2bbaa7['JlFgL'])))return _0x17eb8c;_0x17eb8c=dirname(_0x17eb8c);}return process[_0x1dc57e(0x1c3)]();}export function getProjectSkillsDir(){const _0x3de5d2=_0xb7d5,_0x1d7e2a={'uTuzg':function(_0x463233,_0x519718,_0x325f37,_0x5b4408){return _0x463233(_0x519718,_0x325f37,_0x5b4408);},'MXZWy':function(_0x185b0d){return _0x185b0d();},'ascqa':_0x3de5d2(0x1ca),'FXNjq':_0x3de5d2(0x1be)};return _0x1d7e2a[_0x3de5d2(0x1bb)](join,_0x1d7e2a['MXZWy'](getProjectRoot),_0x1d7e2a['ascqa'],_0x1d7e2a['FXNjq']);}export function getSkillsDir(_0x2a1f50){const _0x45b7c7=_0xb7d5,_0x50d3a8={'gWToq':'user'};return _0x2a1f50===_0x50d3a8[_0x45b7c7(0x1c6)]?getUserSkillsDir():getProjectSkillsDir();}function _0xb7d5(_0x146f12,_0xfb4b8e){_0x146f12=_0x146f12-0x1b4;const _0x441cbd=_0x441c();let _0xb7d516=_0x441cbd[_0x146f12];return _0xb7d516;}export function getSettingsPath(){const _0x3cfe92=_0xb7d5,_0xcdc881={'yRDot':function(_0x35c5a6,_0x85b652,_0x293d2b){return _0x35c5a6(_0x85b652,_0x293d2b);},'hwUCa':function(_0x91ccdc){return _0x91ccdc();}};return _0xcdc881[_0x3cfe92(0x1c9)](join,_0xcdc881[_0x3cfe92(0x1c5)](getClaudeConfigDir),'settings.json');}export async function loadClaudeSettings(){const _0x29cc5d=_0xb7d5,_0x9a87d9={'BUIcs':function(_0x13d15e,_0x20bbac){return _0x13d15e(_0x20bbac);}},_0x312c42=getSettingsPath();if(!_0x9a87d9['BUIcs'](existsSync,_0x312c42))return{};try{const _0x24d292=await readFile(_0x312c42,_0x29cc5d(0x1c2));return JSON['parse'](_0x24d292);}catch{return{};}}export async function saveClaudeSettings(_0x368319){const _0x207979=_0xb7d5,_0x410f9a={'oNxqb':function(_0x4e482d){return _0x4e482d();},'FgCqw':function(_0x58576d,_0x3e92e8){return _0x58576d(_0x3e92e8);},'vyAGV':'utf-8'},_0x4d32f5=getSettingsPath(),_0x404e09=_0x410f9a[_0x207979(0x1b6)](getClaudeConfigDir);!_0x410f9a['FgCqw'](existsSync,_0x404e09)&&await mkdir(_0x404e09,{'recursive':!![]}),await writeFile(_0x4d32f5,JSON['stringify'](_0x368319,null,0x2)+'\x0a',_0x410f9a['vyAGV']);}
@@ -1 +1 @@
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
+ (function(_0x4223a1,_0x3ce02e){const _0x482136=_0x5df4,_0x218f19=_0x4223a1();while(!![]){try{const _0x257429=-parseInt(_0x482136(0x106))/0x1*(parseInt(_0x482136(0x100))/0x2)+parseInt(_0x482136(0x108))/0x3*(-parseInt(_0x482136(0x102))/0x4)+parseInt(_0x482136(0x101))/0x5+parseInt(_0x482136(0x103))/0x6+-parseInt(_0x482136(0x10b))/0x7*(-parseInt(_0x482136(0x104))/0x8)+-parseInt(_0x482136(0x105))/0x9*(-parseInt(_0x482136(0x10a))/0xa)+parseInt(_0x482136(0x107))/0xb;if(_0x257429===_0x3ce02e)break;else _0x218f19['push'](_0x218f19['shift']());}catch(_0x1971a9){_0x218f19['push'](_0x218f19['shift']());}}}(_0x37ad,0xb6d73));import{isByokEnabled}from'./environment.js';const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};function _0x5df4(_0x2ed2ac,_0x4df147){_0x2ed2ac=_0x2ed2ac-0x100;const _0x37add5=_0x37ad();let _0x5df477=_0x37add5[_0x2ed2ac];return _0x5df477;}export function buildClaudeOverrideExtraArgs(){const _0x3dde42=_0x5df4;if(isByokEnabled())return{};return{'settings':JSON[_0x3dde42(0x109)](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}function _0x37ad(){const _0x250d9d=['stringify','33790NwtVlB','9437344AARxPU','260396ZgEeOc','807975KkRVsL','12BsEbku','2152728pHQcyO','8TurJqY','144IYnGBp','9ItDuqE','1070047Eqmhhp','99219SqHHOu'];_0x37ad=function(){return _0x250d9d;};return _0x37ad();}
@@ -1 +1 @@
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;}
1
+ (function(_0x25d2ec,_0x30eb5c){const _0x596a3b=_0x2cc4,_0x222487=_0x25d2ec();while(!![]){try{const _0x500fec=-parseInt(_0x596a3b(0x1c4))/0x1*(parseInt(_0x596a3b(0x1cb))/0x2)+-parseInt(_0x596a3b(0x1cd))/0x3*(parseInt(_0x596a3b(0x1b1))/0x4)+parseInt(_0x596a3b(0x1bc))/0x5+parseInt(_0x596a3b(0x1c6))/0x6+-parseInt(_0x596a3b(0x1b9))/0x7+-parseInt(_0x596a3b(0x1a6))/0x8*(-parseInt(_0x596a3b(0x1d7))/0x9)+parseInt(_0x596a3b(0x1ae))/0xa;if(_0x500fec===_0x30eb5c)break;else _0x222487['push'](_0x222487['shift']());}catch(_0x2e5434){_0x222487['push'](_0x222487['shift']());}}}(_0x58f5,0x26a54));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile}from'fs/promises';import{join,resolve}from'path';import{getClaudeConfigDir,getProjectRoot}from'./claudeConfig.js';function _0x2cc4(_0x509cfb,_0x3b923f){_0x509cfb=_0x509cfb-0x1a5;const _0x58f54d=_0x58f5();let _0x2cc47a=_0x58f54d[_0x509cfb];return _0x2cc47a;}export function runClaudeCommand(_0x111a32,_0x5879e2){const _0x5650cb=_0x2cc4,_0x47ddc7={'tqqxi':function(_0x5dab79,_0x2c4167){return _0x5dab79===_0x2c4167;},'OwJyJ':'ignore','ejrnA':_0x5650cb(0x1d3),'yykTB':function(_0x2a016a,_0x2a27ad,_0x2c4a42,_0x54b605){return _0x2a016a(_0x2a27ad,_0x2c4a42,_0x54b605);}};return new Promise(_0x52a4be=>{const _0x27a20d=_0x5650cb,_0x307c92=_0x5879e2?.['captureOutput']?[_0x47ddc7['OwJyJ'],_0x47ddc7[_0x27a20d(0x1af)],_0x27a20d(0x1d3)]:['ignore',_0x27a20d(0x1cc),'inherit'],_0x4f892f=_0x47ddc7[_0x27a20d(0x1c7)](spawn,'claude',_0x111a32,{'stdio':_0x307c92,'cwd':_0x5879e2?.['cwd']});let _0x4a8c0e='';_0x5879e2?.[_0x27a20d(0x1d0)]&&_0x4f892f['stdout']&&_0x4f892f[_0x27a20d(0x1bd)]['on']('data',_0x4c2092=>{_0x4a8c0e+=_0x4c2092['toString']();}),_0x5879e2?.[_0x27a20d(0x1d0)]&&_0x4f892f[_0x27a20d(0x1c9)]&&_0x4f892f[_0x27a20d(0x1c9)]['on'](_0x27a20d(0x1ac),_0x47636d=>{_0x4a8c0e+=_0x47636d['toString']();}),_0x4f892f['on']('close',_0x2b3a61=>{const _0x4d8ab8=_0x27a20d;_0x47ddc7['tqqxi'](_0x2b3a61,0x0)?_0x52a4be({'success':!![],'output':_0x4a8c0e}):_0x52a4be({'success':![],'error':_0x4d8ab8(0x1ad)+_0x2b3a61,'output':_0x4a8c0e});}),_0x4f892f['on'](_0x27a20d(0x1c0),_0x5593f6=>{const _0x302963=_0x27a20d;_0x52a4be({'success':![],'error':_0x5593f6[_0x302963(0x1c3)]});});});}export async function isMarketplaceAdded(_0x945d06){const _0x9ebe66=_0x2cc4,_0x261fb8={'NYSap':function(_0x17086c,_0xe2004,_0x36a883){return _0x17086c(_0xe2004,_0x36a883);},'hjNKX':'list'},_0x3d8757=await _0x261fb8[_0x9ebe66(0x1b2)](runClaudeCommand,[_0x9ebe66(0x1bf),_0x9ebe66(0x1b6),_0x261fb8[_0x9ebe66(0x1ce)]],{'captureOutput':!![]});if(!_0x3d8757['success']||!_0x3d8757['output'])return![];return _0x3d8757['output'][_0x9ebe66(0x1a5)](_0x945d06);}export async function isPluginInstalled(_0x426928){const _0x3107ca=_0x2cc4,_0x8f91b0={'FCgvp':function(_0x2eaad9,_0x2e3bb6){return _0x2eaad9(_0x2e3bb6);},'Xkrmk':function(_0x31e717,_0x3da84e,_0x152e9e){return _0x31e717(_0x3da84e,_0x152e9e);}},_0x2a984c=await _0x8f91b0[_0x3107ca(0x1c2)](getInstalledPluginInfoFromRegistry,_0x426928);if(_0x2a984c[_0x3107ca(0x1a9)]>0x0)return!![];const _0x2c1d60=await _0x8f91b0[_0x3107ca(0x1b8)](runClaudeCommand,['plugin',_0x3107ca(0x1bb)],{'captureOutput':!![]});if(!_0x2c1d60[_0x3107ca(0x1d2)]||!_0x2c1d60['output'])return![];return _0x2c1d60[_0x3107ca(0x1b4)]['includes'](_0x426928);}function getInstalledPluginsPath(){const _0x409871=_0x2cc4,_0x1da16a={'Bxunp':function(_0x58059c){return _0x58059c();},'pVHjg':'plugins'};return join(_0x1da16a[_0x409871(0x1c5)](getClaudeConfigDir),_0x1da16a['pVHjg'],'installed_plugins.json');}function sortPluginInfo(_0x52a1d4,_0xefe051){const _0x27921c=_0x2cc4,_0x234f88={'vceey':function(_0x4fd3eb,_0x50ea0e){return _0x4fd3eb-_0x50ea0e;},'urdza':'user'},_0x1e06fd={'project':0x0,'local':0x1,'user':0x2};return _0x234f88[_0x27921c(0x1b7)](_0x1e06fd[_0x52a1d4[_0x27921c(0x1a8)]??_0x27921c(0x1be)],_0x1e06fd[_0xefe051['scope']??_0x234f88[_0x27921c(0x1aa)]]);}export function parseInstalledPluginInfo(_0x9dce31,_0x395b67,_0xf53c7){const _0x142640=_0x2cc4,_0x3830cc={'sDSIv':function(_0x21af92,_0x285f1f){return _0x21af92!==_0x285f1f;},'mEnfJ':function(_0x23e900,_0x54cf10){return _0x23e900!==_0x54cf10;},'uNExm':function(_0x2ea015,_0x45651f){return _0x2ea015(_0x45651f);}},_0x2ff8fb=JSON['parse'](_0x9dce31),_0xb505a9=resolve(_0xf53c7),_0x2df64d=_0x2ff8fb[_0x142640(0x1d1)]?.[_0x395b67]??[];return _0x2df64d[_0x142640(0x1c1)](_0x10daef=>{const _0x4d9547=_0x142640;if(_0x3830cc['sDSIv'](_0x10daef[_0x4d9547(0x1a8)],_0x4d9547(0x1ab))&&_0x3830cc['mEnfJ'](_0x10daef['scope'],_0x4d9547(0x1ca)))return!![];if(!_0x10daef[_0x4d9547(0x1d6)])return!![];return _0x3830cc['uNExm'](resolve,_0x10daef['projectPath'])===_0xb505a9;})[_0x142640(0x1a7)](_0xf64028=>({'name':_0x395b67,'scope':_0xf64028['scope'],'version':_0xf64028['version']}))['sort'](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0x3a71c1){const _0x55999b=_0x2cc4,_0x105519={'WFlCH':function(_0x378a6b){return _0x378a6b();},'FLhUt':function(_0x100e75,_0x63d676,_0x2f1b26,_0xb5cec0){return _0x100e75(_0x63d676,_0x2f1b26,_0xb5cec0);}},_0x3a50be=_0x105519[_0x55999b(0x1c8)](getInstalledPluginsPath);if(!existsSync(_0x3a50be))return[];try{const _0x177c4f=await readFile(_0x3a50be,'utf-8');return _0x105519['FLhUt'](parseInstalledPluginInfo,_0x177c4f,_0x3a71c1,getProjectRoot());}catch{return[];}}function _0x58f5(){const _0x5c7950=['project','data','Command\x20exited\x20with\x20code\x20','593800aIVxzU','ejrnA','[\x5cs\x5cS]*?(enabled|disabled)','4772XWWOXz','NYSap','sRrnY','output','match','marketplace','vceey','Xkrmk','514129UpxgYt','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','list','601755NYmtMo','stdout','user','plugin','error','filter','FCgvp','message','239LDihvx','Bxunp','502188byTJbQ','yykTB','WFlCH','stderr','local','118ozSbpq','inherit','132pYRTeL','hjNKX','YOYRe','captureOutput','plugins','success','pipe','version','enabled','projectPath','171OBbida','includes','14696vXUrGZ','map','scope','length','urdza'];_0x58f5=function(){return _0x5c7950;};return _0x58f5();}export async function getPluginInfo(_0x698e31){const _0x5b47d7=_0x2cc4,_0x1d93c1={'YOYRe':function(_0x599974,_0x510dcd){return _0x599974(_0x510dcd);},'UqMXR':_0x5b47d7(0x1bb),'sRrnY':function(_0x1dada9,_0x161b6d){return _0x1dada9===_0x161b6d;}},_0x20b3ae=await _0x1d93c1[_0x5b47d7(0x1cf)](getInstalledPluginInfoFromRegistry,_0x698e31);if(_0x20b3ae['length']>0x0)return _0x20b3ae[0x0];const _0x22d0f7=await runClaudeCommand(['plugin',_0x1d93c1['UqMXR']],{'captureOutput':!![]});if(!_0x22d0f7[_0x5b47d7(0x1d2)]||!_0x22d0f7['output'])return null;if(!_0x22d0f7['output'][_0x5b47d7(0x1a5)](_0x698e31))return null;const _0x198309={'name':_0x698e31},_0x39b0c3=_0x22d0f7['output']['match'](new RegExp(_0x698e31+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0x39b0c3&&(_0x198309['scope']=_0x39b0c3[0x1]['toLowerCase']());const _0x175fe1=_0x22d0f7['output']['match'](new RegExp(_0x698e31+_0x5b47d7(0x1ba),'i'));_0x175fe1&&(_0x198309[_0x5b47d7(0x1d4)]=_0x175fe1[0x1]);const _0x1d11f5=_0x22d0f7[_0x5b47d7(0x1b4)][_0x5b47d7(0x1b5)](new RegExp(_0x698e31+_0x5b47d7(0x1b0),'i'));return _0x1d11f5&&(_0x198309['enabled']=_0x1d93c1[_0x5b47d7(0x1b3)](_0x1d11f5[0x1]['toLowerCase'](),_0x5b47d7(0x1d5))),_0x198309;}