@ranger-testing/ranger-cli 3.0.1-alpha.ffffb5b-28 → 3.1.0

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 (85) 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 -0
  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 -0
  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/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -0
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -0
  85. package/package.json +4 -1
@@ -1 +1 @@
1
- (function(_0x3988cd,_0x473fcb){const _0x326efb=_0x1309,_0x2b4ba7=_0x3988cd();while(!![]){try{const _0x3feba7=-parseInt(_0x326efb(0x9b))/0x1+parseInt(_0x326efb(0x94))/0x2+-parseInt(_0x326efb(0xb1))/0x3*(parseInt(_0x326efb(0x68))/0x4)+-parseInt(_0x326efb(0xa7))/0x5*(parseInt(_0x326efb(0x6c))/0x6)+parseInt(_0x326efb(0xa8))/0x7*(parseInt(_0x326efb(0x83))/0x8)+parseInt(_0x326efb(0xa4))/0x9+-parseInt(_0x326efb(0x9f))/0xa*(-parseInt(_0x326efb(0xaa))/0xb);if(_0x3feba7===_0x473fcb)break;else _0x2b4ba7['push'](_0x2b4ba7['shift']());}catch(_0xc6c514){_0x2b4ba7['push'](_0x2b4ba7['shift']());}}}(_0x46ff,0x6d08d));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile,writeFile}from'fs/promises';import{installSkill,removeSkill,RANGER_MANAGED_SKILLS,DEPRECATED_SKILLS}from'./utils/skills.js';function _0x1309(_0x426c1f,_0x4a3583){_0x426c1f=_0x426c1f-0x68;const _0x46ffdf=_0x46ff();let _0x130949=_0x46ffdf[_0x426c1f];return _0x130949;}function _0x46ff(){const _0x260199=['update','...\x0a','findIndex','qPyqn','jTEph','stdio','\x0aCurrent\x20version:\x20','\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','latest','\x0aInstalling\x20','8iZuqrF','kbZyz','\x0aYour\x20version\x20(','push','ranger@trailhead','jsvlb','SuyOa','Attempting\x20install\x20anyway...','yeyyC','alpha','timeoutMs','ZgLTd','qCVKe','HbCyV','\x20channel.','SCEBQ','claude','223190zhRoQR','plugin','Update\x20failed:\x20','close','PwpNK','project','install','4623sXgLlM','join','twIdV','vkmTA','10971930PrZLlD','opencode','cwd','npm','yqeXl','3316149CiDZVz','DWSNJ','MRBTz','115NMxutq','2268413aQfnXR','trailhead','11bFvIao','version','\x0aClaude\x20plugin\x20updated\x20(project\x20scope).','TRBLM','inherit','some','zNMfa','3INiPRu','ZcWHj','log','axXGe','vNAEu','\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','NEJGC','IHfHl','haqSd','EftLx','\x0a✅\x20Update\x20complete!','ignore','rijSF','user','OvUOG','warn','win32','2481052ouTCzh','qSuNo','sLwJL','endsWith','216474uIvDxw','...','--scope','length','test','kill','active-profile.txt','RLSHv','kTmWI','\x0aSuccessfully\x20updated\x20to\x20version\x20','AbUFR','Claude\x20plugin\x20update\x20failed\x20for\x20','error'];_0x46ff=function(){return _0x260199;};return _0x46ff();}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(_0x4619eb,_0x4059e9,_0x32c24e){const _0x179d76={'rgbIr':function(_0x9b253e,_0x610f0a){return _0x9b253e(_0x610f0a);},'yBVrB':function(_0x587889,_0x5aa908){return _0x587889(_0x5aa908);},'SqtQa':function(_0x1fbf2e,_0x8903c3){return _0x1fbf2e(_0x8903c3);},'NEJGC':function(_0x354148,_0x385d21,_0xf093fe,_0x1b1330){return _0x354148(_0x385d21,_0xf093fe,_0x1b1330);},'sGKNg':'ignore','IHfHl':function(_0x159a30,_0x8ab838,_0x294ad3){return _0x159a30(_0x8ab838,_0x294ad3);}};return new Promise(_0xf479a=>{const _0x4c8330=_0x1309,_0x3da5d1={'axXGe':function(_0x59aab9,_0x4c20b8){return _0x59aab9(_0x4c20b8);}};let _0x426453=![],_0x1a85a8;const _0x69c04e=_0x5d17aa=>{if(_0x426453)return;_0x426453=!![],_0x1a85a8&&_0x179d76['rgbIr'](clearTimeout,_0x1a85a8),_0x179d76['yBVrB'](_0xf479a,_0x5d17aa);},_0x4fbc30=_0x179d76[_0x4c8330(0xb7)](spawn,_0x4619eb,_0x4059e9,{'stdio':[_0x179d76['sGKNg'],_0x32c24e?.[_0x4c8330(0x7e)]??_0x4c8330(0xae),_0x32c24e?.['stdio']??_0x4c8330(0xae)],'cwd':_0x32c24e?.[_0x4c8330(0xa1)],'shell':process['platform']===_0x4c8330(0xc1)});_0x1a85a8=_0x32c24e?.[_0x4c8330(0x8d)]?_0x179d76[_0x4c8330(0xb8)](setTimeout,()=>{const _0x4aec33=_0x4c8330;_0x4fbc30[_0x4aec33(0x71)](),_0x4fbc30['unref'](),_0x3da5d1[_0x4aec33(0xb4)](_0x69c04e,![]);},_0x32c24e[_0x4c8330(0x8d)]):undefined,_0x4fbc30['on'](_0x4c8330(0x97),_0x568ae6=>{_0x179d76['SqtQa'](_0x69c04e,_0x568ae6===0x0);}),_0x4fbc30['on'](_0x4c8330(0x78),()=>{_0x69c04e(![]);});});}export function resolveDistTag(_0x212609){const _0x17bfb7=_0x1309,_0x53b0a2={'kWwiz':'beta','CBLjr':'latest'};if(/-alpha\./i[_0x17bfb7(0x70)](_0x212609))return _0x17bfb7(0x8c);if(/-beta\./i['test'](_0x212609))return _0x53b0a2['kWwiz'];if(/-rc\./i[_0x17bfb7(0x70)](_0x212609))return'rc';return _0x53b0a2['CBLjr'];}async function runInstall(_0x44b9b3='latest'){const _0x2f1efb=_0x1309,_0x46a1eb={'DWSNJ':function(_0x2296a9,_0x27a73e){return _0x2296a9(_0x27a73e);},'owwtw':function(_0x413720,_0x42626d,_0x54c62c,_0x5cc856){return _0x413720(_0x42626d,_0x54c62c,_0x5cc856);},'ZcWHj':_0x2f1efb(0xa2),'QaKmh':_0x2f1efb(0xbc),'kbZyz':'inherit','mXYqv':function(_0x4fa34c,_0x5901a7){return _0x4fa34c===_0x5901a7;},'qSuNo':'win32','KFkaz':_0x2f1efb(0x78)};return new Promise(_0x3ca509=>{const _0xfc99b3=_0x2f1efb,_0x180ce1={'HbCyV':function(_0x2f9950,_0x3f81aa){const _0xdcb913=_0x1309;return _0x46a1eb[_0xdcb913(0xa5)](_0x2f9950,_0x3f81aa);}};console['log'](_0xfc99b3(0x82)+PACKAGE_NAME+'@'+_0x44b9b3+_0xfc99b3(0x7a));const _0x51bb4c=_0x46a1eb['owwtw'](spawn,_0x46a1eb[_0xfc99b3(0xb2)],[_0xfc99b3(0x9a),'-g',PACKAGE_NAME+'@'+_0x44b9b3],{'stdio':[_0x46a1eb['QaKmh'],_0x46a1eb[_0xfc99b3(0x84)],_0xfc99b3(0xae)],'shell':_0x46a1eb['mXYqv'](process['platform'],_0x46a1eb[_0xfc99b3(0x69)])});_0x51bb4c['on'](_0xfc99b3(0x97),_0x4a715e=>{_0x3ca509(_0x4a715e===0x0);}),_0x51bb4c['on'](_0x46a1eb['KFkaz'],()=>{const _0x5749ab=_0xfc99b3;_0x180ce1[_0x5749ab(0x90)](_0x3ca509,![]);});});}async function updateClaudeMarketplace(){const _0x46eec7=_0x1309,_0x126fc6={'zNMfa':function(_0xaaf6b2,_0x55b32c,_0xa24d0b,_0x381b40){return _0xaaf6b2(_0x55b32c,_0xa24d0b,_0x381b40);},'PIKhI':_0x46eec7(0x93),'NzeIF':_0x46eec7(0x79),'AbUFR':_0x46eec7(0xa9)},_0x3353c8=await _0x126fc6[_0x46eec7(0xb0)](runCommand,_0x126fc6['PIKhI'],[_0x46eec7(0x95),'marketplace',_0x126fc6['NzeIF'],_0x126fc6[_0x46eec7(0x76)]],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x3353c8)throw new Error('Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}async function updateClaudePlugin(_0x510036='user'){const _0x2f48c7=_0x1309,_0x1118f9={'kTmWI':_0x2f48c7(0x95),'LSKYC':function(_0x1b4a8e,_0xd78f0b){return _0x1b4a8e!==_0xd78f0b;},'yqeXl':function(_0x5648e9,_0x3164aa,_0x49639a,_0x54b191){return _0x5648e9(_0x3164aa,_0x49639a,_0x54b191);},'ZgLTd':_0x2f48c7(0x93),'SCEBQ':function(_0x5c6de5,_0x34c552){return _0x5c6de5===_0x34c552;},'EftLx':'project','TTlyG':'local'},_0xded7e9=[_0x1118f9[_0x2f48c7(0x74)],'update','ranger@trailhead'];_0x1118f9['LSKYC'](_0x510036,_0x2f48c7(0xbe))&&_0xded7e9[_0x2f48c7(0x86)](_0x2f48c7(0x6e),_0x510036);const _0x171af6=await _0x1118f9[_0x2f48c7(0xa3)](runCommand,_0x1118f9[_0x2f48c7(0x8e)],_0xded7e9,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x1118f9[_0x2f48c7(0x92)](_0x510036,_0x1118f9[_0x2f48c7(0xba)])||_0x510036===_0x1118f9['TTlyG']?getProjectRoot():undefined});if(!_0x171af6)throw new Error(_0x2f48c7(0x77)+_0x510036+_0x2f48c7(0xb6));}function isSkillInstalled(_0x88f35b,_0x255c84,_0x21accb){const _0x413978=_0x1309,_0x59ed29={'RLSHv':'opencode','vNAEu':function(_0x31053b,_0x24302d){return _0x31053b(_0x24302d);},'pqKSt':function(_0x3ae065,_0x3c328d,_0x422168){return _0x3ae065(_0x3c328d,_0x422168);}},_0x589070=_0x21accb===_0x59ed29[_0x413978(0x73)]?_0x59ed29[_0x413978(0xb5)](getOpencodeSkillsDir,_0x255c84):getSkillsDir(_0x255c84),_0x2a50cc=_0x59ed29['pqKSt'](join,_0x589070,_0x88f35b);return existsSync(_0x2a50cc);}async function reinstallSkills(_0xa949da){const _0x132484=_0x1309,_0xa76d6e={'SuyOa':function(_0x24a07a,_0x577fee,_0x49a720,_0x5eb1fe){return _0x24a07a(_0x577fee,_0x49a720,_0x5eb1fe);},'RuDdY':_0x132484(0x93),'yeyyC':_0x132484(0x80),'jTEph':function(_0x29da3a,_0x22a62b,_0x7947ad){return _0x29da3a(_0x22a62b,_0x7947ad);}},_0x178e4e=['project',_0x132484(0xbe)],_0x2137de=[];for(const _0x3c3598 of _0x178e4e){for(const _0xa02175 of RANGER_MANAGED_SKILLS){_0xa76d6e[_0x132484(0x89)](isSkillInstalled,_0xa02175,_0x3c3598,_0xa76d6e['RuDdY'])&&_0x2137de['push']({'skillName':_0xa02175,'level':_0x3c3598,'platform':'claude'}),_0xa76d6e[_0x132484(0x89)](isSkillInstalled,_0xa02175,_0x3c3598,_0x132484(0xa0))&&_0x2137de[_0x132484(0x86)]({'skillName':_0xa02175,'level':_0x3c3598,'platform':'opencode'});}}for(const _0x1941f2 of _0x178e4e){for(const _0x324177 of DEPRECATED_SKILLS){await removeSkill(_0x324177,_0x1941f2);}}if(_0x2137de['length']===0x0){console['log'](_0xa76d6e[_0x132484(0x8b)]);return;}console[_0x132484(0xb3)]('\x0aReinstalling\x20'+_0x2137de[_0x132484(0x6f)]+'\x20ranger-managed\x20skill(s)...');for(const {skillName:_0xc6c36b,level:_0x33f013,platform:_0x2da024}of _0x2137de){try{await _0xa76d6e[_0x132484(0x7d)](installSkill,_0xc6c36b,{'level':_0x33f013,'cliVersion':_0xa949da,'platform':_0x2da024});}catch(_0x48f255){console[_0x132484(0xc0)]('\x20\x20Failed\x20to\x20reinstall\x20'+_0x2da024+'\x20'+_0x33f013+'\x20skill\x20'+_0xc6c36b+':',_0x48f255);}}}async function ensureActiveProfileGitignored(){const _0x4894e9=_0x1309,_0x2a497e={'zWknu':function(_0x2d002c,_0x462691,_0x202c68){return _0x2d002c(_0x462691,_0x202c68);},'FHVFC':'.gitignore','qCVKe':function(_0x518957,_0x2a0501){return _0x518957(_0x2a0501);},'qPyqn':_0x4894e9(0x72),'MRBTz':'utf-8'},_0x8e33ae=_0x2a497e['zWknu'](join,getRangerDir(),_0x2a497e['FHVFC']);if(!_0x2a497e[_0x4894e9(0x8f)](existsSync,_0x8e33ae))return![];let _0x20b5b9='';try{_0x20b5b9=await readFile(_0x8e33ae,'utf-8');}catch{return![];}const _0x4dc693=_0x20b5b9['split'](/\r?\n/);if(_0x4dc693[_0x4894e9(0xaf)](_0x1dd495=>_0x1dd495['trim']()==='active-profile.txt'))return![];let _0x2109d5=_0x4dc693[_0x4894e9(0x7b)](_0x504e91=>_0x504e91['trim']()==='active-feature.txt');_0x2109d5===-0x1&&(_0x2109d5=_0x4dc693[_0x4894e9(0x6f)]);_0x4dc693['splice'](_0x2109d5,0x0,_0x2a497e[_0x4894e9(0x7c)]);let _0x462ce9=_0x4dc693[_0x4894e9(0x9c)]('\x0a');!_0x462ce9[_0x4894e9(0x6b)]('\x0a')&&(_0x462ce9+='\x0a');try{await writeFile(_0x8e33ae,_0x462ce9,_0x2a497e[_0x4894e9(0xa6)]);}catch{return![];}return!![];}export async function update(){const _0x43e08c=_0x1309,_0x4c671a={'OvUOG':function(_0x181e55){return _0x181e55();},'sLwJL':function(_0x3ce492,_0xf2926a){return _0x3ce492(_0xf2926a);},'sywzh':function(_0x241d57){return _0x241d57();},'jJebj':function(_0x3079d3,_0x362227){return _0x3079d3(_0x362227);},'haVgl':'\x0aSuccessfully\x20installed\x20latest\x20version.','TRBLM':function(_0x14053d,_0x56d6c9){return _0x14053d===_0x56d6c9;},'zMUUG':function(_0x18c9ad,_0x21eb55){return _0x18c9ad<_0x21eb55;},'PwpNK':'Update\x20failed.','rijSF':function(_0x28ae6a,_0x4fbe18){return _0x28ae6a(_0x4fbe18);},'jsvlb':'ranger@trailhead','twIdV':'\x0aClaude\x20marketplace\x20updated\x20(trailhead).','GWbHV':_0x43e08c(0xbe),'vkmTA':_0x43e08c(0xac),'haqSd':'\x0a✅\x20Update\x20complete!'},_0x4d4530=_0x4c671a[_0x43e08c(0xbf)](getCurrentVersion);console['log'](_0x43e08c(0x7f)+_0x4d4530);const _0x117df9=_0x4c671a[_0x43e08c(0x6a)](resolveDistTag,_0x4d4530);if(_0x117df9!==_0x43e08c(0x81)){console['log']('Prerelease\x20channel\x20detected\x20(@'+_0x117df9+').\x20Staying\x20on\x20'+_0x117df9+'\x20—\x20reinstalling\x20@'+_0x117df9+_0x43e08c(0x6d));const _0x1751a6=await runInstall(_0x117df9);if(!_0x1751a6)throw new Error('Update\x20failed\x20for\x20@'+_0x117df9+_0x43e08c(0x91));const _0x258247=_0x4c671a['sywzh'](getCurrentVersion);console[_0x43e08c(0xb3)]('\x0aSuccessfully\x20installed\x20'+PACKAGE_NAME+'@'+_0x117df9+'.'),await _0x4c671a['jJebj'](reinstallSkills,_0x258247),await _0x4c671a['sywzh'](ensureActiveProfileGitignored),console[_0x43e08c(0xb3)](_0x43e08c(0xbb));return;}console['log']('Checking\x20for\x20updates...');const _0x3b38f2=getLatestVersion();let _0x9f42dd=_0x4d4530;if(!_0x3b38f2[_0x43e08c(0xab)]){console[_0x43e08c(0xc0)]('\x0aCould\x20not\x20check\x20latest\x20version:\x20'+_0x3b38f2['error']),console['log'](_0x43e08c(0x8a));const _0x435c0f=await _0x4c671a['OvUOG'](runInstall);if(_0x435c0f)console[_0x43e08c(0xb3)](_0x4c671a['haVgl']),_0x9f42dd=getCurrentVersion();else throw new Error(_0x43e08c(0x96)+_0x3b38f2[_0x43e08c(0x78)]);}else{const _0x476919=_0x3b38f2[_0x43e08c(0xab)];console[_0x43e08c(0xb3)]('Latest\x20version:\x20\x20'+_0x476919);const _0x22a1a1=compareVersions(_0x4d4530,_0x476919);if(_0x4c671a[_0x43e08c(0xad)](_0x22a1a1,0x0))console[_0x43e08c(0xb3)]('\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.');else{if(_0x4c671a['zMUUG'](_0x22a1a1,0x0))console['log'](_0x43e08c(0x85)+_0x4d4530+')\x20is\x20newer\x20than\x20the\x20published\x20version\x20('+_0x476919+').');else{const _0x19d7d2=await runInstall();if(_0x19d7d2)console['log'](_0x43e08c(0x75)+_0x476919),_0x9f42dd=_0x476919;else throw new Error(_0x4c671a[_0x43e08c(0x98)]);}}}await _0x4c671a[_0x43e08c(0xbd)](reinstallSkills,_0x9f42dd);const _0x271b29=await _0x4c671a['jJebj'](isMarketplaceAdded,_0x43e08c(0xa9)),_0xc5b437=await _0x4c671a['sLwJL'](isPluginInstalled,_0x4c671a[_0x43e08c(0x88)]);_0x271b29&&(await updateClaudeMarketplace(),console['log'](_0x4c671a[_0x43e08c(0x9d)]));if(_0xc5b437){const _0x3c49fe=await getPluginInfo(_0x43e08c(0x87)),_0x4154ee=_0x3c49fe?.['scope']??_0x4c671a['GWbHV'];await updateClaudePlugin(_0x4154ee);if(_0x4154ee===_0x43e08c(0x99))console['log'](_0x4c671a[_0x43e08c(0x9e)]);else _0x4154ee==='local'?console[_0x43e08c(0xb3)]('\x0aClaude\x20plugin\x20updated\x20(local\x20scope).'):console['log']('\x0aClaude\x20plugin\x20updated\x20(user\x20scope).');}const _0x3c1d1e=await ensureActiveProfileGitignored();console['log'](_0x4c671a[_0x43e08c(0xb9)]);}
1
+ const _0x5ead82=_0x5bda;(function(_0x599cea,_0x670c1a){const _0x54a706=_0x5bda,_0x49ffe8=_0x599cea();while(!![]){try{const _0x5a123b=-parseInt(_0x54a706(0x1d6))/0x1+-parseInt(_0x54a706(0x188))/0x2+parseInt(_0x54a706(0x192))/0x3+parseInt(_0x54a706(0x1a8))/0x4+-parseInt(_0x54a706(0x1d7))/0x5*(-parseInt(_0x54a706(0x1b1))/0x6)+-parseInt(_0x54a706(0x1ab))/0x7*(parseInt(_0x54a706(0x1bf))/0x8)+parseInt(_0x54a706(0x1b6))/0x9;if(_0x5a123b===_0x670c1a)break;else _0x49ffe8['push'](_0x49ffe8['shift']());}catch(_0x5092e7){_0x49ffe8['push'](_0x49ffe8['shift']());}}}(_0x5ccb,0xf20c7));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile,writeFile}from'fs/promises';import{installSkill,removeSkill,RANGER_MANAGED_SKILLS,DEPRECATED_SKILLS}from'./utils/skills.js';import{PACKAGE_NAME,getCurrentVersion,getLatestVersion,compareVersions}from'./utils/version.js';function _0x5ccb(){const _0x2f88c1=['\x0aCould\x20not\x20check\x20latest\x20version:\x20','\x0aInstalling\x20','eZcpp','VgNsR','545989ofJGmE','5ZqimIS','Latest\x20version:\x20\x20','sLMws','AMoID','ODiED','FCduB','gtzXa','vQPpi','ICiAQ','\x0aSuccessfully\x20installed\x20','\x0aCurrent\x20version:\x20','NpGgB','zqunN','paJNP','TQZvf','1288086cgIHZw','log','project','trailhead','CKdLt','oaPNL','ujDZv','claude','close','Claude\x20plugin\x20update\x20failed\x20for\x20','1272255LFuBZU','pvfcI','oVRBl','marketplace','JxIdj','.0.0','ranger@trailhead','\x20ranger-managed\x20skill(s)...','\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','version','\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','npm','xIlVl','Update\x20failed.','.gitignore','\x20skill\x20','inherit','latest','...\x0a','edczp','user','trim','2018488AKipek','Checking\x20for\x20updates...','isFinite','10834943KgntVa',')\x20is\x20newer\x20than\x20the\x20published\x20version\x20(','platform','QPrCT','rLfyo','stdio','2997222fdbQWs','xhxCu','xxbqq','aMPTx','LWIrl','20709612MtjNqI','\x0a✅\x20Update\x20complete!','some','warn','RggKu','ACKQM','split','\x0aSuccessfully\x20installed\x20latest\x20version.','WJrRv','8QDqIWT','active-profile.txt','fcmiC','test','\x0aYour\x20version\x20(','length','\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','plugin','uhgMl','\x20channel.','\x20—\x20reinstalling\x20@','Attempting\x20install\x20anyway...','gMcIB','beta','error','win32','local','active-feature.txt','update'];_0x5ccb=function(){return _0x2f88c1;};return _0x5ccb();}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(_0x53f580,_0x68954c,_0x2c2c28){const _0x2a82b7=_0x5bda,_0x2476d3={'TQZvf':function(_0x525993,_0x13d554){return _0x525993(_0x13d554);},'pvfcI':'ignore','CKdLt':_0x2a82b7(0x1a2),'xhxCu':_0x2a82b7(0x1ce),'cbyfA':function(_0x22f253,_0x12fe16,_0x34c0f6){return _0x22f253(_0x12fe16,_0x34c0f6);},'WvjmA':_0x2a82b7(0x190),'sLMws':_0x2a82b7(0x1cd)};return new Promise(_0x2f49a7=>{const _0x5694b2=_0x2a82b7,_0x28e187={'IchVM':function(_0x176b66,_0x2a11bf){return _0x176b66(_0x2a11bf);}};let _0x11cf1f=![],_0x4a0af3;const _0x2d5af0=_0x56a6f7=>{if(_0x11cf1f)return;_0x11cf1f=!![],_0x4a0af3&&_0x28e187['IchVM'](clearTimeout,_0x4a0af3),_0x2f49a7(_0x56a6f7);},_0x5d73e7=spawn(_0x53f580,_0x68954c,{'stdio':[_0x2476d3[_0x5694b2(0x193)],_0x2c2c28?.[_0x5694b2(0x1b0)]??_0x2476d3[_0x5694b2(0x18c)],_0x2c2c28?.['stdio']??_0x2476d3[_0x5694b2(0x18c)]],'cwd':_0x2c2c28?.['cwd'],'shell':process['platform']===_0x2476d3[_0x5694b2(0x1b2)]});_0x4a0af3=_0x2c2c28?.['timeoutMs']?_0x2476d3['cbyfA'](setTimeout,()=>{_0x5d73e7['kill'](),_0x5d73e7['unref'](),_0x2d5af0(![]);},_0x2c2c28['timeoutMs']):undefined,_0x5d73e7['on'](_0x2476d3['WvjmA'],_0x2d863f=>{_0x2d5af0(_0x2d863f===0x0);}),_0x5d73e7['on'](_0x2476d3[_0x5694b2(0x1d9)],()=>{const _0x1767b4=_0x5694b2;_0x2476d3[_0x1767b4(0x187)](_0x2d5af0,![]);});});}export function resolveDistTag(_0x5304aa){const _0x5e8018=_0x5bda,_0x2662e7={'AMoID':'alpha'};if(/-alpha\./i['test'](_0x5304aa))return _0x2662e7[_0x5e8018(0x1da)];if(/-beta\./i[_0x5e8018(0x1c2)](_0x5304aa))return _0x5e8018(0x1cc);if(/-rc\./i['test'](_0x5304aa))return'rc';return'latest';}export function resolveInstallTarget(_0x12fba4){const _0x2b8bec=_0x5bda,_0x86bc7c={'alMSk':function(_0x318f7c,_0x1897a4){return _0x318f7c!==_0x1897a4;},'zqunN':'latest'},_0x545d03=resolveDistTag(_0x12fba4);if(_0x86bc7c['alMSk'](_0x545d03,_0x86bc7c['zqunN']))return _0x545d03;const _0x242736=_0x12fba4['split']('.')[0x0],_0x5ed3fa=parseInt(_0x242736,0xa);if(!Number[_0x2b8bec(0x1aa)](_0x5ed3fa))return _0x86bc7c[_0x2b8bec(0x185)];return'^'+_0x5ed3fa+_0x2b8bec(0x197);}async function runInstall(_0x1c8686){const _0x8ff383=_0x5bda,_0x2414eb={'MnsKR':function(_0x1d0fb7,_0x52fff2){return _0x1d0fb7(_0x52fff2);},'LWIrl':function(_0x3452e4,_0x480085,_0x2e78f6,_0x4734d7){return _0x3452e4(_0x480085,_0x2e78f6,_0x4734d7);},'paJNP':_0x8ff383(0x19d),'gLqLI':'install','pKQai':'inherit','aNhlk':'win32','aMPTx':'close','NprDV':_0x8ff383(0x1cd)},_0x4e5c9d=resolveInstallTarget(_0x1c8686);return new Promise(_0x4ea797=>{const _0x54bf48=_0x8ff383,_0x5783a1={'WRRsC':function(_0x2b5f70,_0x12193c){return _0x2414eb['MnsKR'](_0x2b5f70,_0x12193c);},'gtzXa':function(_0xc502ea,_0x5a4c14){return _0xc502ea===_0x5a4c14;},'BNiXa':function(_0x11ade6,_0x23d953){return _0x11ade6(_0x23d953);}};console['log'](_0x54bf48(0x1d3)+PACKAGE_NAME+'@'+_0x4e5c9d+_0x54bf48(0x1a4));const _0xf015a7=_0x2414eb[_0x54bf48(0x1b5)](spawn,_0x2414eb[_0x54bf48(0x186)],[_0x2414eb['gLqLI'],'-g',PACKAGE_NAME+'@'+_0x4e5c9d],{'stdio':['ignore',_0x2414eb['pKQai'],'inherit'],'shell':process[_0x54bf48(0x1ad)]===_0x2414eb['aNhlk']});_0xf015a7['on'](_0x2414eb[_0x54bf48(0x1b4)],_0x412f4f=>{const _0x5df62d=_0x54bf48;_0x5783a1['WRRsC'](_0x4ea797,_0x5783a1[_0x5df62d(0x17f)](_0x412f4f,0x0));}),_0xf015a7['on'](_0x2414eb['NprDV'],()=>{_0x5783a1['BNiXa'](_0x4ea797,![]);});});}function _0x5bda(_0x382083,_0x52eb12){_0x382083=_0x382083-0x17d;const _0x5ccb94=_0x5ccb();let _0x5bda79=_0x5ccb94[_0x382083];return _0x5bda79;}async function updateClaudeMarketplace(){const _0x190b8c=_0x5bda,_0x5af3b7={'FCduB':_0x190b8c(0x195)},_0xdce88a=await runCommand(_0x190b8c(0x18f),['plugin',_0x5af3b7[_0x190b8c(0x17e)],_0x190b8c(0x1d1),_0x190b8c(0x18b)],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0xdce88a)throw new Error('Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}async function updateClaudePlugin(_0x40dd78=_0x5ead82(0x1a6)){const _0x156707=_0x5ead82,_0x1f81c7={'rLfyo':_0x156707(0x1c6),'VGlUX':_0x156707(0x1d1),'fcmiC':'ranger@trailhead','WJrRv':'user','gAznN':_0x156707(0x18f),'JpfDB':function(_0x16fceb,_0x27b808){return _0x16fceb===_0x27b808;},'ACKQM':'local','RggKu':function(_0x5c99fd){return _0x5c99fd();}},_0x5edd30=[_0x1f81c7[_0x156707(0x1af)],_0x1f81c7['VGlUX'],_0x1f81c7[_0x156707(0x1c1)]];_0x40dd78!==_0x1f81c7[_0x156707(0x1be)]&&_0x5edd30['push']('--scope',_0x40dd78);const _0xf26272=await runCommand(_0x1f81c7['gAznN'],_0x5edd30,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x40dd78===_0x156707(0x18a)||_0x1f81c7['JpfDB'](_0x40dd78,_0x1f81c7[_0x156707(0x1bb)])?_0x1f81c7[_0x156707(0x1ba)](getProjectRoot):undefined});if(!_0xf26272)throw new Error(_0x156707(0x191)+_0x40dd78+'\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}function isSkillInstalled(_0x24cb27,_0x2d9521,_0x336f51){const _0x17fe9e={'MRZfU':'opencode','Rgczw':function(_0x3f4a25,_0x33058e){return _0x3f4a25(_0x33058e);},'sGQOk':function(_0x2293fd,_0x269288){return _0x2293fd(_0x269288);}},_0x539e11=_0x336f51===_0x17fe9e['MRZfU']?_0x17fe9e['Rgczw'](getOpencodeSkillsDir,_0x2d9521):_0x17fe9e['sGQOk'](getSkillsDir,_0x2d9521),_0x2bf68b=join(_0x539e11,_0x24cb27);return existsSync(_0x2bf68b);}async function reinstallSkills(_0x42f843){const _0x2e45e1=_0x5ead82,_0x534e31={'oVRBl':function(_0x1ad6e0,_0x55d417,_0x593b72,_0x4bd8da){return _0x1ad6e0(_0x55d417,_0x593b72,_0x4bd8da);},'qrOLT':'opencode','eZcpp':function(_0xd6557f,_0x35c2fe){return _0xd6557f===_0x35c2fe;},'yryPL':function(_0x97d271,_0x3b2579,_0x1de5a1){return _0x97d271(_0x3b2579,_0x1de5a1);}},_0x5b6756=[_0x2e45e1(0x18a),_0x2e45e1(0x1a6)],_0x4cc9bb=[];for(const _0x221fb7 of _0x5b6756){for(const _0x144449 of RANGER_MANAGED_SKILLS){_0x534e31[_0x2e45e1(0x194)](isSkillInstalled,_0x144449,_0x221fb7,_0x2e45e1(0x18f))&&_0x4cc9bb['push']({'skillName':_0x144449,'level':_0x221fb7,'platform':_0x2e45e1(0x18f)}),isSkillInstalled(_0x144449,_0x221fb7,'opencode')&&_0x4cc9bb['push']({'skillName':_0x144449,'level':_0x221fb7,'platform':_0x534e31['qrOLT']});}}for(const _0x107cbe of _0x5b6756){for(const _0x2b9d4f of DEPRECATED_SKILLS){await removeSkill(_0x2b9d4f,_0x107cbe);}}if(_0x534e31[_0x2e45e1(0x1d4)](_0x4cc9bb['length'],0x0)){console['log'](_0x2e45e1(0x19a));return;}console['log']('\x0aReinstalling\x20'+_0x4cc9bb['length']+_0x2e45e1(0x199));for(const {skillName:_0x417cc2,level:_0x4def25,platform:_0x3dd7de}of _0x4cc9bb){try{await _0x534e31['yryPL'](installSkill,_0x417cc2,{'level':_0x4def25,'cliVersion':_0x42f843,'platform':_0x3dd7de});}catch(_0x4f5b1d){console['warn']('\x20\x20Failed\x20to\x20reinstall\x20'+_0x3dd7de+'\x20'+_0x4def25+_0x2e45e1(0x1a1)+_0x417cc2+':',_0x4f5b1d);}}}async function ensureActiveProfileGitignored(){const _0x588519=_0x5ead82,_0x2231d3={'ICiAQ':function(_0x56e413,_0xd9e6f0,_0x232a79){return _0x56e413(_0xd9e6f0,_0x232a79);},'zBHAN':function(_0xf6d634){return _0xf6d634();},'EtwJq':function(_0x29c260,_0x16a572){return _0x29c260(_0x16a572);},'kfKiD':function(_0xc1667f,_0x2b3a8d,_0x1e5bea){return _0xc1667f(_0x2b3a8d,_0x1e5bea);}},_0x4ab4ea=_0x2231d3[_0x588519(0x181)](join,_0x2231d3['zBHAN'](getRangerDir),_0x588519(0x1a0));if(!_0x2231d3['EtwJq'](existsSync,_0x4ab4ea))return![];let _0x4e7824='';try{_0x4e7824=await _0x2231d3['kfKiD'](readFile,_0x4ab4ea,'utf-8');}catch{return![];}const _0x58724e=_0x4e7824['split'](/\r?\n/);if(_0x58724e[_0x588519(0x1b8)](_0x431562=>_0x431562[_0x588519(0x1a7)]()==='active-profile.txt'))return![];let _0x168092=_0x58724e['findIndex'](_0x326f59=>_0x326f59[_0x588519(0x1a7)]()===_0x588519(0x1d0));_0x168092===-0x1&&(_0x168092=_0x58724e[_0x588519(0x1c4)]);_0x58724e['splice'](_0x168092,0x0,_0x588519(0x1c0));let _0x5f9245=_0x58724e['join']('\x0a');!_0x5f9245['endsWith']('\x0a')&&(_0x5f9245+='\x0a');try{await writeFile(_0x4ab4ea,_0x5f9245,'utf-8');}catch{return![];}return!![];}export async function update(){const _0x398559=_0x5ead82,_0x87550a={'oaPNL':function(_0x4d86a8){return _0x4d86a8();},'dmejV':_0x398559(0x1a3),'uhgMl':function(_0x907129,_0xb1fc43){return _0x907129(_0xb1fc43);},'kfRxZ':function(_0x39f4d9){return _0x39f4d9();},'edczp':'\x0a✅\x20Update\x20complete!','xxbqq':function(_0x41887d,_0x3a7f04){return _0x41887d+_0x3a7f04;},'nEgko':_0x398559(0x1ca),'JxIdj':_0x398559(0x1bd),'NpGgB':function(_0x25e218){return _0x25e218();},'wFvUr':function(_0x1c984,_0x2b06eb,_0x2f4f56){return _0x1c984(_0x2b06eb,_0x2f4f56);},'UWIzZ':function(_0x2911c9,_0x430f56){return _0x2911c9===_0x430f56;},'QPrCT':_0x398559(0x1c5),'EtXHr':function(_0x3e7641,_0x3f94dd){return _0x3e7641<_0x3f94dd;},'VgNsR':function(_0x2c7d3f,_0x212c1e){return _0x2c7d3f(_0x212c1e);},'ujDZv':_0x398559(0x18b),'ODiED':_0x398559(0x198),'gMcIB':'\x0aClaude\x20marketplace\x20updated\x20(trailhead).','vQPpi':_0x398559(0x1a6),'xIlVl':function(_0x14ecaa,_0x4f14b4){return _0x14ecaa(_0x4f14b4);},'DvPih':_0x398559(0x18a),'Elneo':_0x398559(0x1cf)},_0x2a1187=_0x87550a[_0x398559(0x18d)](getCurrentVersion);console[_0x398559(0x189)](_0x398559(0x183)+_0x2a1187);const _0x18a42c=resolveDistTag(_0x2a1187);if(_0x18a42c!==_0x87550a['dmejV']){console[_0x398559(0x189)]('Prerelease\x20channel\x20detected\x20(@'+_0x18a42c+').\x20Staying\x20on\x20'+_0x18a42c+_0x398559(0x1c9)+_0x18a42c+'...');const _0x2da1bc=await _0x87550a[_0x398559(0x1c7)](runInstall,_0x2a1187);if(!_0x2da1bc)throw new Error('Update\x20failed\x20for\x20@'+_0x18a42c+_0x398559(0x1c8));const _0x131aa7=getCurrentVersion();console['log'](_0x398559(0x182)+PACKAGE_NAME+'@'+_0x18a42c+'.'),await _0x87550a['uhgMl'](reinstallSkills,_0x131aa7),await _0x87550a['kfRxZ'](ensureActiveProfileGitignored),console['log'](_0x87550a[_0x398559(0x1a5)]);return;}console['log'](_0x398559(0x1a9));const _0x5c158d=parseInt(_0x2a1187[_0x398559(0x1bc)]('.')[0x0],0xa);if(!Number['isFinite'](_0x5c158d))throw new Error(_0x87550a['xxbqq'](_0x87550a[_0x398559(0x1b3)]('Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22'+_0x2a1187+'\x22.\x20','Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20'),'npm\x20i\x20-g\x20'+PACKAGE_NAME+'@latest'));const _0x49c460=getLatestVersion(_0x5c158d);let _0x447278=_0x2a1187;if(!_0x49c460['version']){console[_0x398559(0x1b9)](_0x398559(0x1d2)+_0x49c460['error']),console['log'](_0x87550a['nEgko']);const _0x5163e6=await runInstall(_0x2a1187);if(_0x5163e6)console[_0x398559(0x189)](_0x87550a[_0x398559(0x196)]),_0x447278=_0x87550a[_0x398559(0x184)](getCurrentVersion);else throw new Error('Update\x20failed:\x20'+_0x49c460['error']);}else{const _0x4699de=_0x49c460[_0x398559(0x19b)];console['log'](_0x398559(0x1d8)+_0x4699de);const _0x5875c9=_0x87550a['wFvUr'](compareVersions,_0x2a1187,_0x4699de);if(_0x87550a['UWIzZ'](_0x5875c9,0x0))console['log'](_0x87550a[_0x398559(0x1ae)]);else{if(_0x87550a['EtXHr'](_0x5875c9,0x0))console['log'](_0x398559(0x1c3)+_0x2a1187+_0x398559(0x1ac)+_0x4699de+').');else{const _0x46fc6b=await _0x87550a[_0x398559(0x1d5)](runInstall,_0x2a1187);if(_0x46fc6b)console[_0x398559(0x189)]('\x0aSuccessfully\x20updated\x20to\x20version\x20'+_0x4699de),_0x447278=_0x4699de;else throw new Error(_0x398559(0x19f));}}}await _0x87550a['uhgMl'](reinstallSkills,_0x447278);const _0x413e98=await isMarketplaceAdded(_0x87550a[_0x398559(0x18e)]),_0x451513=await isPluginInstalled(_0x87550a[_0x398559(0x17d)]);_0x413e98&&(await _0x87550a['NpGgB'](updateClaudeMarketplace),console['log'](_0x87550a[_0x398559(0x1cb)]));if(_0x451513){const _0x11ffad=await getPluginInfo('ranger@trailhead'),_0x24177a=_0x11ffad?.['scope']??_0x87550a[_0x398559(0x180)];await _0x87550a[_0x398559(0x19e)](updateClaudePlugin,_0x24177a);if(_0x87550a['UWIzZ'](_0x24177a,_0x87550a['DvPih']))console['log']('\x0aClaude\x20plugin\x20updated\x20(project\x20scope).');else _0x24177a===_0x87550a['Elneo']?console['log']('\x0aClaude\x20plugin\x20updated\x20(local\x20scope).'):console[_0x398559(0x189)](_0x398559(0x19c));}const _0x45e9a4=await ensureActiveProfileGitignored();console['log'](_0x398559(0x1b7));}
@@ -1 +1 @@
1
- function _0x3d84(){const _0x5853da=['Profile\x20\x22','message','VrZOj','status','HeSht','No\x20profile\x20named\x20\x22','\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:','8462Zswxtj','11bVQjEr','✓\x20Session\x20refreshed\x20for\x20\x22','\x22\x20via\x20headed\x20browser...','catch','477VXffIv','NJYON','1434036HYFiIi','lOeWI','environmentKey','baseUrl','944388MNKlyQ','4847890WeErpj','Capturing\x20a\x20fresh\x20session\x20for\x20\x22','log','success','\x20\x20ranger\x20profile\x20add\x20','6081512rvybbg','41312LIUelN','\x20--url\x20<your-app-url>\x0a','Can\x27t\x20refresh\x20\x22','nccIH','error','1797100eMeIDp','exit','261tiHhGM','oTPZV','Re-create\x20it\x20with:\x0a','49KkTxhI','settings'];_0x3d84=function(){return _0x5853da;};return _0x3d84();}(function(_0x11ff49,_0x287811){const _0x182764=_0x2769,_0x59276c=_0x11ff49();while(!![]){try{const _0x7d268c=parseInt(_0x182764(0x1ad))/0x1+parseInt(_0x182764(0x1a2))/0x2*(-parseInt(_0x182764(0x1bb))/0x3)+parseInt(_0x182764(0x1b3))/0x4+parseInt(_0x182764(0x1b9))/0x5+parseInt(_0x182764(0x1a9))/0x6*(-parseInt(_0x182764(0x1be))/0x7)+parseInt(_0x182764(0x1b4))/0x8*(-parseInt(_0x182764(0x1a7))/0x9)+parseInt(_0x182764(0x1ae))/0xa*(parseInt(_0x182764(0x1a3))/0xb);if(_0x7d268c===_0x287811)break;else _0x59276c['push'](_0x59276c['shift']());}catch(_0x16ed44){_0x59276c['push'](_0x59276c['shift']());}}}(_0x3d84,0xf2b60));import{fetchAuthConfig,fetchCloudProfile,manualBrowserLogin,serverSideLogin}from'./utils/cloudProfile.js';function _0x2769(_0x34b000,_0x3f99b8){_0x34b000=_0x34b000-0x19d;const _0x3d84f3=_0x3d84();let _0x2769e9=_0x3d84f3[_0x34b000];return _0x2769e9;}import{isInteractive,resolveAuthEnvironmentLocally}from'./utils/cloudProfileSession.js';import{getEnvNames}from'./env.js';export async function updateEnv(_0x3f73b2,_0x499ecb,_0x36d65f){const _0xb1bb6=_0x2769,_0x1c87ce={'VrZOj':function(_0x174f77,_0x31e08b){return _0x174f77(_0x31e08b);},'nccIH':function(_0x2223a3){return _0x2223a3();},'cuXaD':function(_0x20b75a,_0x21fb04){return _0x20b75a+_0x21fb04;},'oTPZV':function(_0x5c3789,_0xe807eb){return _0x5c3789+_0xe807eb;},'VwZAK':function(_0x2b5c1f,_0x8966cf,_0x2d9e95){return _0x2b5c1f(_0x8966cf,_0x2d9e95);},'NJYON':function(_0x11e59a,_0x182729){return _0x11e59a===_0x182729;},'lOeWI':_0xb1bb6(0x1a1),'HeSht':function(_0x5a1365,_0xab2f07,_0x3ca819){return _0x5a1365(_0xab2f07,_0x3ca819);}},_0x55c818=await _0x1c87ce[_0xb1bb6(0x19d)](fetchCloudProfile,_0x3f73b2);if(!_0x55c818){const {envTypes:_0x4c5c1c}=await _0x1c87ce[_0xb1bb6(0x1b7)](getEnvNames),_0x24fdd1=_0x4c5c1c[_0x3f73b2];(_0x24fdd1==='legacy'||_0x24fdd1==='local'||_0x24fdd1==='ci')&&(console[_0xb1bb6(0x1b8)](_0x1c87ce['cuXaD']('Profile\x20\x22'+_0x3f73b2+'\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a')+'\x0a'+(_0xb1bb6(0x1b2)+_0x3f73b2+'\x0a')),process['exit'](0x1));}!_0x55c818&&(console[_0xb1bb6(0x1b8)](_0x1c87ce['cuXaD'](_0x1c87ce[_0xb1bb6(0x1bc)](_0xb1bb6(0x1a0)+_0x3f73b2+'\x22\x20found.\x0a','Create\x20it\x20with:\x0a'),'\x0a')+(_0xb1bb6(0x1b2)+_0x3f73b2+'\x0a')),process[_0xb1bb6(0x1ba)](0x1));const _0x3beefb=await fetchAuthConfig()[_0xb1bb6(0x1a6)](()=>null),_0x36eb1e=_0x55c818['environmentKey']&&_0x3beefb?_0x1c87ce['VwZAK'](resolveAuthEnvironmentLocally,_0x3beefb,_0x55c818[_0xb1bb6(0x1ab)]):null;if(_0x55c818['environmentKey']&&_0x36eb1e){console['log']('Refreshing\x20session\x20for\x20\x22'+_0x3f73b2+'\x22\x20via\x20server-side\x20login...');try{const _0x4af46e=await serverSideLogin(_0x3f73b2,{'force':!![]});if(_0x1c87ce['NJYON'](_0x4af46e['status'],_0xb1bb6(0x1b1))){console['log'](_0xb1bb6(0x1a4)+_0x3f73b2+'\x22.');return;}_0x1c87ce[_0xb1bb6(0x1a8)](_0x4af46e[_0xb1bb6(0x19e)],'not_configured')?console[_0xb1bb6(0x1b0)]('\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...'):(_0x4af46e['test_output']&&(console['log'](_0x1c87ce[_0xb1bb6(0x1aa)]),console[_0xb1bb6(0x1b0)](_0x4af46e['test_output'])),console['log']('\x20\x20Falling\x20back\x20to\x20headed\x20browser...'));}catch(_0x993219){console[_0xb1bb6(0x1b0)]('\x20\x20Server-side\x20login\x20error:\x20'+(_0x993219 instanceof Error?_0x993219[_0xb1bb6(0x1c1)]:String(_0x993219))),console[_0xb1bb6(0x1b0)]('\x20\x20Falling\x20back\x20to\x20headed\x20browser...');}}const _0x564408=_0x55c818[_0xb1bb6(0x1bf)]??{},_0x44e01c=_0x564408['setupHeaders'],_0x3eb04d=_0x564408[_0xb1bb6(0x1ac)],_0x3ee604=_0x36eb1e?{..._0x36eb1e,'setupHeaders':_0x44e01c??_0x36eb1e['setupHeaders']}:_0x3eb04d?{'key':_0x55c818['environmentKey']??'','domains':[_0x3eb04d],'setupHeaders':_0x44e01c}:null;!_0x3ee604&&(console['error'](_0x1c87ce['cuXaD'](_0xb1bb6(0x1c0)+_0x3f73b2+'\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a'+_0xb1bb6(0x1bd),'\x0a')+(_0xb1bb6(0x1b2)+_0x3f73b2+_0xb1bb6(0x1b5))),process['exit'](0x1)),!isInteractive()&&(console[_0xb1bb6(0x1b8)](_0x1c87ce[_0xb1bb6(0x1bc)](_0xb1bb6(0x1b6)+_0x3f73b2+'\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a','Run\x20`ranger\x20profile\x20update\x20'+_0x3f73b2+'`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).')),process['exit'](0x1)),console[_0xb1bb6(0x1b0)](_0xb1bb6(0x1af)+_0x3f73b2+_0xb1bb6(0x1a5)),await _0x1c87ce[_0xb1bb6(0x19f)](manualBrowserLogin,_0x55c818,_0x3ee604),console[_0xb1bb6(0x1b0)]('✓\x20Session\x20refreshed\x20for\x20\x22'+_0x3f73b2+'\x22.');}
1
+ (function(_0x441fc0,_0x3a76ae){const _0x5c2ec6=_0x5a43,_0x146293=_0x441fc0();while(!![]){try{const _0x431c58=-parseInt(_0x5c2ec6(0x165))/0x1+parseInt(_0x5c2ec6(0x15b))/0x2+parseInt(_0x5c2ec6(0x15a))/0x3*(parseInt(_0x5c2ec6(0x162))/0x4)+-parseInt(_0x5c2ec6(0x163))/0x5*(parseInt(_0x5c2ec6(0x14f))/0x6)+-parseInt(_0x5c2ec6(0x15c))/0x7*(-parseInt(_0x5c2ec6(0x15d))/0x8)+-parseInt(_0x5c2ec6(0x14c))/0x9+-parseInt(_0x5c2ec6(0x153))/0xa;if(_0x431c58===_0x3a76ae)break;else _0x146293['push'](_0x146293['shift']());}catch(_0x49343d){_0x146293['push'](_0x146293['shift']());}}}(_0xa5d6,0x3591f));import{fetchAuthConfig,fetchCloudProfile,manualBrowserLogin,serverSideLogin}from'./utils/cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./utils/cloudProfileSession.js';function _0x5a43(_0x1c7db9,_0x181335){_0x1c7db9=_0x1c7db9-0x145;const _0xa5d6f2=_0xa5d6();let _0x5a4337=_0xa5d6f2[_0x1c7db9];return _0x5a4337;}import{mergeCloudProfileSettings,readProfileOverrides}from'./utils/projectsConfig.js';function _0xa5d6(){const _0x458f9d=['catch','849YNNwFb','544808ppJPJA','3787eBPGLu','5440sAXrnQ','\x22\x20via\x20server-side\x20login...','\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a','Create\x20it\x20with:\x0a','exit','4500EonMPH','5ERrjzf','KrKwr','429903oFSGVR','error','domains','not_configured','log','gPoOR','cwd','legacy','\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a','Hvwkj','\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a','message','setupHeaders','rQYCg','test_output','450180LbIckg','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a','Profile\x20\x22','604662riKHsm','\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:','\x20--url\x20<your-app-url>\x0a','status','1585360IJTpNJ','cXOZW','\x20\x20Falling\x20back\x20to\x20headed\x20browser...','baseUrl','LQvLD','PUSqL'];_0xa5d6=function(){return _0x458f9d;};return _0xa5d6();}import{getEnvNames}from'./env.js';export async function updateEnv(_0xd0ae03,_0x3f09de,_0x406452){const _0x1de454=_0x5a43,_0x176090={'PoCec':function(_0x5086bf){return _0x5086bf();},'xHTpC':_0x1de454(0x16c),'XnUSn':function(_0x230fc3,_0x3054ab){return _0x230fc3===_0x3054ab;},'HmgTM':'local','KrKwr':function(_0x188332,_0xbc2f33){return _0x188332===_0xbc2f33;},'JlbFe':function(_0x1a7bdd,_0x22d10e){return _0x1a7bdd+_0x22d10e;},'VLCKI':function(_0x8b6375,_0x171aab){return _0x8b6375+_0x171aab;},'DCgKc':function(_0x1ec1fb){return _0x1ec1fb();},'gPoOR':function(_0x4c48ca,_0x19b4a3,_0x560f9f){return _0x4c48ca(_0x19b4a3,_0x560f9f);},'PUSqL':function(_0x348ca6,_0x23b98c){return _0x348ca6===_0x23b98c;},'cXOZW':_0x1de454(0x150),'qysWL':_0x1de454(0x155),'LQvLD':function(_0x5e3f7b,_0x33cd91){return _0x5e3f7b instanceof _0x33cd91;},'Hvwkj':function(_0x1957ce,_0x457b9c){return _0x1957ce(_0x457b9c);},'LnTLi':function(_0x550de1,_0x762be0){return _0x550de1??_0x762be0;},'rQYCg':function(_0x1da693,_0x77718c){return _0x1da693+_0x77718c;}},_0x167157=await fetchCloudProfile(_0xd0ae03);if(!_0x167157){const {envTypes:_0x4abc8e}=await _0x176090['PoCec'](getEnvNames),_0x848e47=_0x4abc8e[_0xd0ae03];(_0x848e47===_0x176090['xHTpC']||_0x176090['XnUSn'](_0x848e47,_0x176090['HmgTM'])||_0x176090[_0x1de454(0x164)](_0x848e47,'ci'))&&(console['error'](_0x176090['JlbFe'](_0x176090['JlbFe']('Profile\x20\x22'+_0xd0ae03+_0x1de454(0x15f)+_0x1de454(0x14d),'\x0a'),'\x20\x20ranger\x20profile\x20add\x20'+_0xd0ae03+'\x0a')),process['exit'](0x1));}!_0x167157&&(console[_0x1de454(0x166)](_0x176090['VLCKI']('No\x20profile\x20named\x20\x22'+_0xd0ae03+'\x22\x20found.\x0a',_0x1de454(0x160))+'\x0a'+('\x20\x20ranger\x20profile\x20add\x20'+_0xd0ae03+'\x0a')),process[_0x1de454(0x161)](0x1));const _0x57af24=await _0x176090['DCgKc'](fetchAuthConfig)[_0x1de454(0x159)](()=>null),_0x279e4c=_0x167157['environmentKey']&&_0x57af24?_0x176090[_0x1de454(0x16a)](resolveAuthEnvironmentLocally,_0x57af24,_0x167157['environmentKey']):null;if(_0x167157['environmentKey']&&_0x279e4c&&!_0x406452?.['manual']){console[_0x1de454(0x169)]('Refreshing\x20session\x20for\x20\x22'+_0xd0ae03+_0x1de454(0x15e));try{const _0x1ed345=await _0x176090[_0x1de454(0x16a)](serverSideLogin,_0xd0ae03,{'force':!![]});if(_0x1ed345[_0x1de454(0x152)]==='success'){console[_0x1de454(0x169)]('✓\x20Session\x20refreshed\x20for\x20\x22'+_0xd0ae03+'\x22.');return;}_0x176090[_0x1de454(0x158)](_0x1ed345['status'],_0x1de454(0x168))?console[_0x1de454(0x169)]('\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...'):(_0x1ed345[_0x1de454(0x14b)]&&(console['log'](_0x176090[_0x1de454(0x154)]),console[_0x1de454(0x169)](_0x1ed345['test_output'])),console[_0x1de454(0x169)](_0x176090['qysWL']));}catch(_0xfc97de){console[_0x1de454(0x169)]('\x20\x20Server-side\x20login\x20error:\x20'+(_0x176090[_0x1de454(0x157)](_0xfc97de,Error)?_0xfc97de[_0x1de454(0x148)]:_0x176090[_0x1de454(0x146)](String,_0xfc97de))),console[_0x1de454(0x169)](_0x1de454(0x155));}}const _0x476bca=readProfileOverrides(process[_0x1de454(0x16b)](),_0xd0ae03),_0x24dc47=_0x176090[_0x1de454(0x16a)](mergeCloudProfileSettings,_0x167157['settings']??{},_0x176090['LnTLi'](_0x476bca,undefined)),_0x5cf7cb=_0x24dc47[_0x1de454(0x149)],_0xf8de22=_0x24dc47[_0x1de454(0x156)],_0x46c322=_0x279e4c?{..._0x279e4c,'domains':_0xf8de22?[_0xf8de22,..._0x279e4c[_0x1de454(0x167)]]:_0x279e4c['domains'],'setupHeaders':_0x5cf7cb??_0x279e4c[_0x1de454(0x149)]}:_0xf8de22?{'key':_0x167157['environmentKey']??'','domains':[_0xf8de22],'setupHeaders':_0x5cf7cb}:null;!_0x46c322&&(console[_0x1de454(0x166)](_0x176090[_0x1de454(0x14a)](_0x1de454(0x14e)+_0xd0ae03+_0x1de454(0x145)+'Re-create\x20it\x20with:\x0a'+'\x0a','\x20\x20ranger\x20profile\x20add\x20'+_0xd0ae03+_0x1de454(0x151))),process['exit'](0x1)),!isInteractive()&&(console['error']('Can\x27t\x20refresh\x20\x22'+_0xd0ae03+_0x1de454(0x147)+('Run\x20`ranger\x20profile\x20update\x20'+_0xd0ae03+'`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).')),process[_0x1de454(0x161)](0x1)),console['log']('Capturing\x20a\x20fresh\x20session\x20for\x20\x22'+_0xd0ae03+'\x22\x20via\x20headed\x20browser...'),await _0x176090['gPoOR'](manualBrowserLogin,_0x167157,_0x46c322),console['log']('✓\x20Session\x20refreshed\x20for\x20\x22'+_0xd0ae03+'\x22.');}
@@ -1 +1 @@
1
- (function(_0x2e329e,_0x5e0cf9){const _0x24c18e=_0x3aad,_0x5e267a=_0x2e329e();while(!![]){try{const _0x332e0b=parseInt(_0x24c18e(0xdb))/0x1+parseInt(_0x24c18e(0xd8))/0x2+parseInt(_0x24c18e(0xd4))/0x3+parseInt(_0x24c18e(0xd0))/0x4*(-parseInt(_0x24c18e(0xd7))/0x5)+parseInt(_0x24c18e(0xcf))/0x6*(-parseInt(_0x24c18e(0xd5))/0x7)+-parseInt(_0x24c18e(0xdd))/0x8+parseInt(_0x24c18e(0xda))/0x9*(-parseInt(_0x24c18e(0xd1))/0xa);if(_0x332e0b===_0x5e0cf9)break;else _0x5e267a['push'](_0x5e267a['shift']());}catch(_0xbdebb0){_0x5e267a['push'](_0x5e267a['shift']());}}}(_0x167a,0xa6b10));function _0x167a(){const _0x5dffdd=['12hoGnFe','902680gTqTcr','rhfyt','MaXVL','3709737AnDujk','23107zUQohT','log','275545NJBcVk','2284892hYKabh','\x0a✓\x20Now\x20using\x20profile\x20\x22','9BGrZOr','207628iujKvA','`ranger\x20profile\x20add\x20','6584320FKcliT','rTQLh','1500hVYMhN'];_0x167a=function(){return _0x5dffdd;};return _0x167a();}import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0x3aad(_0x2924d2,_0x56ea5d){_0x2924d2=_0x2924d2-0xce;const _0x167aa8=_0x167a();let _0x3aaddd=_0x167aa8[_0x2924d2];return _0x3aaddd;}import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';export async function useEnv(_0xe03a0b){const _0x3dc51a=_0x3aad,_0x4c6f87={'xyKPu':function(_0xd37790,_0x3cc932,_0x5bfeb2){return _0xd37790(_0x3cc932,_0x5bfeb2);},'rhfyt':'settings.json','rTQLh':function(_0x2226f2,_0x11dca4){return _0x2226f2(_0x11dca4);},'DTSMU':function(_0x56fa71,_0x5e1d8d){return _0x56fa71 instanceof _0x5e1d8d;},'MaXVL':function(_0x161335,_0x502ee5){return _0x161335===_0x502ee5;},'RKqne':function(_0x407aff,_0x1cbc6c){return _0x407aff+_0x1cbc6c;}},_0x3ccd90=getEnvDir(_0xe03a0b),_0x3e6a4a=_0x4c6f87['xyKPu'](join,_0x3ccd90,_0x4c6f87[_0x3dc51a(0xd2)]),_0x32ca0b=existsSync(_0x3ccd90)&&_0x4c6f87[_0x3dc51a(0xce)](existsSync,_0x3e6a4a);if(_0x32ca0b){await _0x4c6f87[_0x3dc51a(0xce)](writeActiveProfileName,_0xe03a0b),console[_0x3dc51a(0xd6)](_0x3dc51a(0xd9)+_0xe03a0b+'\x22');return;}let _0x27d016=null,_0x3f2214=![];try{_0x27d016=await fetchCloudProfile(_0xe03a0b);if(!_0x27d016)_0x3f2214=!![];}catch(_0x1a2ef3){_0x4c6f87['DTSMU'](_0x1a2ef3,ApiError)&&_0x4c6f87[_0x3dc51a(0xd3)](_0x1a2ef3['status'],0x194)&&(_0x3f2214=!![]);}if(_0x3f2214)throw new Error(_0x4c6f87['RKqne'](_0x4c6f87['RKqne']('Profile\x20\x22'+_0xe03a0b+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20','Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'),_0x3dc51a(0xdc)+_0xe03a0b+'`\x20to\x20create\x20one.'));await writeActiveProfileName(_0xe03a0b),console[_0x3dc51a(0xd6)](_0x3dc51a(0xd9)+_0xe03a0b+'\x22');}
1
+ (function(_0x48ff6c,_0x35552e){const _0x4d801f=_0x3e0e,_0x2b1e68=_0x48ff6c();while(!![]){try{const _0x28cf4b=-parseInt(_0x4d801f(0x139))/0x1*(parseInt(_0x4d801f(0x143))/0x2)+-parseInt(_0x4d801f(0x142))/0x3*(parseInt(_0x4d801f(0x141))/0x4)+parseInt(_0x4d801f(0x140))/0x5+-parseInt(_0x4d801f(0x13e))/0x6*(-parseInt(_0x4d801f(0x145))/0x7)+-parseInt(_0x4d801f(0x146))/0x8+parseInt(_0x4d801f(0x144))/0x9+parseInt(_0x4d801f(0x13f))/0xa;if(_0x28cf4b===_0x35552e)break;else _0x2b1e68['push'](_0x2b1e68['shift']());}catch(_0x2caa49){_0x2b1e68['push'](_0x2b1e68['shift']());}}}(_0x1579,0x98c8e));import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';function _0x3e0e(_0xd5b9f1,_0x39c7fd){_0xd5b9f1=_0xd5b9f1-0x139;const _0x15794f=_0x1579();let _0x3e0e6c=_0x15794f[_0xd5b9f1];return _0x3e0e6c;}import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';export async function useEnv(_0x1e9313){const _0x37c4f0=_0x3e0e,_0x747b4a={'fMJdY':function(_0x50afe2,_0x136192){return _0x50afe2(_0x136192);},'dLazK':function(_0x5a91a8,_0x4571f2){return _0x5a91a8(_0x4571f2);},'AtdHe':function(_0x4474fc,_0xde26d2){return _0x4474fc===_0xde26d2;},'DxITc':function(_0x3f04f2,_0xd9b44d){return _0x3f04f2+_0xd9b44d;}},_0x148d35=getEnvDir(_0x1e9313),_0x1df4d4=join(_0x148d35,'settings.json'),_0x50869c=existsSync(_0x148d35)&&existsSync(_0x1df4d4);if(_0x50869c){await _0x747b4a['fMJdY'](writeActiveProfileName,_0x1e9313),console[_0x37c4f0(0x13b)](_0x37c4f0(0x13a)+_0x1e9313+'\x22');return;}let _0xb03bf5=null,_0x4d282d=![];try{_0xb03bf5=await _0x747b4a['dLazK'](fetchCloudProfile,_0x1e9313);if(!_0xb03bf5)_0x4d282d=!![];}catch(_0x4f3c7e){_0x4f3c7e instanceof ApiError&&_0x747b4a['AtdHe'](_0x4f3c7e['status'],0x194)&&(_0x4d282d=!![]);}if(_0x4d282d)throw new Error(_0x747b4a['DxITc']('Profile\x20\x22'+_0x1e9313+_0x37c4f0(0x13c),'Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+(_0x37c4f0(0x13d)+_0x1e9313+'`\x20to\x20create\x20one.'));await _0x747b4a['fMJdY'](writeActiveProfileName,_0x1e9313),console[_0x37c4f0(0x13b)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x1e9313+'\x22');}function _0x1579(){const _0x432b3a=['149313kKdsBz','2306GAgiKI','4983903tTWHUU','28sjPvyY','1434912uzgkZV','916LNdjWe','\x0a✓\x20Now\x20using\x20profile\x20\x22','log','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20','`ranger\x20profile\x20add\x20','125952LugYtk','22817560ysLalW','930510zBulle','100USOebW'];_0x1579=function(){return _0x432b3a;};return _0x1579();}
@@ -1 +1 @@
1
- const _0x3c1efc=_0x690e;(function(_0x4af4b1,_0x39d374){const _0x3b8834=_0x690e,_0x59c86c=_0x4af4b1();while(!![]){try{const _0x351122=-parseInt(_0x3b8834(0x102))/0x1+parseInt(_0x3b8834(0xfa))/0x2*(parseInt(_0x3b8834(0x101))/0x3)+parseInt(_0x3b8834(0x104))/0x4*(parseInt(_0x3b8834(0x100))/0x5)+parseInt(_0x3b8834(0xf9))/0x6*(-parseInt(_0x3b8834(0x107))/0x7)+parseInt(_0x3b8834(0xfb))/0x8+parseInt(_0x3b8834(0xfd))/0x9+parseInt(_0x3b8834(0x109))/0xa;if(_0x351122===_0x39d374)break;else _0x59c86c['push'](_0x59c86c['shift']());}catch(_0x3d2a9d){_0x59c86c['push'](_0x59c86c['shift']());}}}(_0x1545,0x8b947));import{existsSync}from'fs';import{readFile}from'fs/promises';function _0x1545(){const _0x7c9861=['trim','7tVCnkJ','cwd','511790QYcpAf','1938228gyTJpg','638HIaNsB','620168AXbMxA','xHZKc','4054347qQrCBF','active-env.txt','yfEVa','2735465cHqZkp','5796MucxAR','847827dcGTel','SJoox','4bpkgcT','utf-8'];_0x1545=function(){return _0x7c9861;};return _0x1545();}import{join}from'path';function _0x690e(_0x2143b5,_0x1f92bf){_0x2143b5=_0x2143b5-0xf9;const _0x1545bc=_0x1545();let _0x690e7d=_0x1545bc[_0x2143b5];return _0x690e7d;}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';import{readLastProfile,writeLastProfile}from'./projectsConfig.js';const LEGACY_ACTIVE_PROFILE_FILE='active-profile.txt',LEGACY_ACTIVE_ENV_FILE=_0x3c1efc(0xfe);function readLegacyActiveProfileFile(){const _0x19c473=_0x3c1efc,_0x9bbe99={'yfEVa':function(_0x5eebc3){return _0x5eebc3();},'xHZKc':function(_0x3fdc6e,_0x1f68d4,_0x44193e){return _0x3fdc6e(_0x1f68d4,_0x44193e);},'SJoox':function(_0x2d2d18,_0x56bb56){return _0x2d2d18(_0x56bb56);}},_0x41423a=[join(_0x9bbe99[_0x19c473(0xff)](getRangerDir),LEGACY_ACTIVE_PROFILE_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_PROFILE_FILE),join(getRangerDir(),LEGACY_ACTIVE_ENV_FILE),_0x9bbe99[_0x19c473(0xfc)](join,getRangerHomeDir(),LEGACY_ACTIVE_ENV_FILE)];for(const _0x5ccfee of _0x41423a){if(_0x9bbe99[_0x19c473(0x103)](existsSync,_0x5ccfee))return _0x5ccfee;}return null;}export async function readActiveProfileName(){const _0x194bf6=_0x3c1efc,_0x9f3e9e={'RhRqg':function(_0x3c84ed,_0x314979){return _0x3c84ed(_0x314979);}},_0x5f4a4b=_0x9f3e9e['RhRqg'](readLastProfile,process[_0x194bf6(0x108)]());if(_0x5f4a4b)return _0x5f4a4b;const _0x46d9f8=readLegacyActiveProfileFile();if(!_0x46d9f8)return null;try{return(await readFile(_0x46d9f8,_0x194bf6(0x105)))[_0x194bf6(0x106)]()||null;}catch{return null;}}export async function writeActiveProfileName(_0x3771a7){const _0xce3a50=_0x3c1efc;writeLastProfile(process[_0xce3a50(0x108)](),_0x3771a7);}
1
+ function _0x2a56(_0x359573,_0x143381){_0x359573=_0x359573-0x136;const _0x28abae=_0x28ab();let _0x2a56e6=_0x28abae[_0x359573];return _0x2a56e6;}const _0x3f4582=_0x2a56;(function(_0x529eed,_0x50cdb5){const _0x3a5c21=_0x2a56,_0x298fd7=_0x529eed();while(!![]){try{const _0x467bf6=parseInt(_0x3a5c21(0x147))/0x1*(parseInt(_0x3a5c21(0x13a))/0x2)+-parseInt(_0x3a5c21(0x139))/0x3*(-parseInt(_0x3a5c21(0x148))/0x4)+parseInt(_0x3a5c21(0x144))/0x5+-parseInt(_0x3a5c21(0x13c))/0x6+-parseInt(_0x3a5c21(0x14a))/0x7*(-parseInt(_0x3a5c21(0x138))/0x8)+parseInt(_0x3a5c21(0x146))/0x9*(parseInt(_0x3a5c21(0x13b))/0xa)+parseInt(_0x3a5c21(0x141))/0xb*(-parseInt(_0x3a5c21(0x140))/0xc);if(_0x467bf6===_0x50cdb5)break;else _0x298fd7['push'](_0x298fd7['shift']());}catch(_0xa10b98){_0x298fd7['push'](_0x298fd7['shift']());}}}(_0x28ab,0x4389f));import{existsSync}from'fs';function _0x28ab(){const _0x4e6f63=['eOpOI','PlIiH','37432zZvSGm','916494IIdfNf','902526SDSRZB','10rwjhTk','3088740aWSrQd','active-profile.txt','AlHIJ','utf-8','384GYqvuX','192599oEQTxB','ECUKN','DGfqs','1931965IvTuTj','active-env.txt','1708623HYyOyx','1ghNHsM','4UOMJfN','jbmuX','28nmqExh'];_0x28ab=function(){return _0x4e6f63;};return _0x28ab();}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=_0x3f4582(0x13d),LEGACY_ACTIVE_ENV_FILE=_0x3f4582(0x145);function readLegacyActiveProfileFile(){const _0x4d3826=_0x3f4582,_0x379dd4={'PlIiH':function(_0x34bceb,_0x417835,_0x29c922){return _0x34bceb(_0x417835,_0x29c922);},'jbmuX':function(_0x16412b){return _0x16412b();},'Lqyvc':function(_0x2c0768,_0x1a8a57,_0x4c1ad9){return _0x2c0768(_0x1a8a57,_0x4c1ad9);},'QBDrA':function(_0x887231){return _0x887231();}},_0x244dda=[join(getRangerDir(),LEGACY_ACTIVE_PROFILE_FILE),_0x379dd4[_0x4d3826(0x137)](join,_0x379dd4[_0x4d3826(0x149)](getRangerHomeDir),LEGACY_ACTIVE_PROFILE_FILE),_0x379dd4[_0x4d3826(0x137)](join,getRangerDir(),LEGACY_ACTIVE_ENV_FILE),_0x379dd4['Lqyvc'](join,_0x379dd4['QBDrA'](getRangerHomeDir),LEGACY_ACTIVE_ENV_FILE)];for(const _0x4ed0b3 of _0x244dda){if(existsSync(_0x4ed0b3))return _0x4ed0b3;}return null;}export async function readActiveProfileName(){const _0xdc5b9b=_0x3f4582,_0x2e3ff5={'ECUKN':function(_0x4cd535,_0x3c147f){return _0x4cd535(_0x3c147f);},'DGfqs':function(_0x98ef47,_0x54c231,_0x1f4e99){return _0x98ef47(_0x54c231,_0x1f4e99);},'AlHIJ':_0xdc5b9b(0x13f)},_0x906d17=_0x2e3ff5[_0xdc5b9b(0x142)](readLastProfile,process['cwd']());if(_0x906d17)return _0x906d17;const _0x2c6bbf=readLegacyActiveProfileFile();if(!_0x2c6bbf)return null;try{return(await _0x2e3ff5[_0xdc5b9b(0x143)](readFile,_0x2c6bbf,_0x2e3ff5[_0xdc5b9b(0x13e)]))['trim']()||null;}catch{return null;}}export async function writeActiveProfileName(_0x59c908){const _0x406d0f=_0x3f4582,_0x137b86={'eOpOI':function(_0x55d8e1,_0x3ef1f6,_0x3db80d){return _0x55d8e1(_0x3ef1f6,_0x3db80d);}};_0x137b86[_0x406d0f(0x136)](writeLastProfile,process['cwd'](),_0x59c908);}
@@ -1 +1 @@
1
- function _0x1738(){const _0x53fb86=['entries','USERPROFILE','HGLZx','Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','767386MQGpyS','metadata','AWS_SESSION_TOKEN','%PATH%','AWS_ROLE_SESSION_NAME','TEMP','filter','49866ohfSdi','2172164WUmmXL','env','TMPDIR','1720848YpsxQC','win32','ANTHROPIC_CUSTOM_HEADERS','LOCALAPPDATA','slice','trim','map','true','includes','NPM_CONFIG_REGISTRY','JuCHr','662223muGfmu','AWS_DEFAULT_REGION','DEBUG','246870eXdAFM','push','AWS_ROLE_ARN','1400427TLtVzn','fMCSW','length','AWS_ACCESS_KEY_ID','npm_config_cache','Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','Qmhlg','ranger-claude-tmp','TMP','sessionToken','PATH','${PATH}','APPDATA','fwIUi','split','from','string','RANGER_TEST_SKIP_BROWSER_WAIT','fromEntries','set','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','HOME'];_0x1738=function(){return _0x53fb86;};return _0x1738();}const _0x45bafd=_0xd630;(function(_0x2a5e07,_0x40e805){const _0x48b6e5=_0xd630,_0xcb33bb=_0x2a5e07();while(!![]){try{const _0xd27305=-parseInt(_0x48b6e5(0xb8))/0x1+parseInt(_0x48b6e5(0xbf))/0x2+parseInt(_0x48b6e5(0xce))/0x3+parseInt(_0x48b6e5(0xc0))/0x4+parseInt(_0x48b6e5(0xd1))/0x5+parseInt(_0x48b6e5(0xc3))/0x6+parseInt(_0x48b6e5(0xd4))/0x7;if(_0xd27305===_0x40e805)break;else _0xcb33bb['push'](_0xcb33bb['shift']());}catch(_0x575c6c){_0xcb33bb['push'](_0xcb33bb['shift']());}}}(_0x1738,0x88204));import{delimiter,join}from'path';import{tmpdir}from'os';function _0xd630(_0x3b3379,_0x22a284){_0x3b3379=_0x3b3379-0xa7;const _0x1738c8=_0x1738();let _0xd6300a=_0x1738c8[_0x3b3379];return _0xd6300a;}import{mkdirSync}from'fs';import{getAiProxyUrl}from'./environment.js';const AI_PROXY_METADATA_HEADERS_ENV_VAR=_0x45bafd(0xc5),AGENT_ENV_PASSTHROUGH_KEYS=[_0x45bafd(0xa8),_0x45bafd(0xb3),_0x45bafd(0xc2),_0x45bafd(0xdc),'TEMP',_0x45bafd(0xb5),_0x45bafd(0xaa),_0x45bafd(0xc6),'XDG_CACHE_HOME','XDG_CONFIG_HOME','PLAYWRIGHT_BROWSERS_PATH','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','CHROME_BIN','CHROMIUM_BIN',_0x45bafd(0xd8),'NPM_CONFIG_CACHE','npm_config_userconfig','NPM_CONFIG_USERCONFIG','npm_config_prefix','NPM_CONFIG_PREFIX','npm_config_registry',_0x45bafd(0xcc),_0x45bafd(0xd0),'NODE_ENV',_0x45bafd(0xaf),'RANGER_TRANSPORT','NOVA_ACT_API_KEY','AWS_PROFILE','AWS_REGION',_0x45bafd(0xcf),'AWS_CONFIG_FILE','AWS_SHARED_CREDENTIALS_FILE',_0x45bafd(0xd7),'AWS_SECRET_ACCESS_KEY',_0x45bafd(0xba),'AWS_SDK_LOAD_CONFIG','AWS_WEB_IDENTITY_TOKEN_FILE',_0x45bafd(0xd3),_0x45bafd(0xbc),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=[_0x45bafd(0xa9),'$PATH',_0x45bafd(0xbb)];function parseCustomHeaders(_0x2a102e){const _0x661558=_0x45bafd,_0x3ef5cd={'bQJBp':function(_0x34482f,_0x581843){return _0x34482f+_0x581843;}};if(!_0x2a102e)return[];return _0x2a102e[_0x661558(0xac)](/\r?\n/)[_0x661558(0xc9)](_0x4106a9=>_0x4106a9[_0x661558(0xc8)]())[_0x661558(0xbe)](Boolean)[_0x661558(0xc9)](_0x4710c5=>{const _0x1c8375=_0x661558,_0x30aaf9=_0x4710c5['indexOf'](':');if(_0x30aaf9===-0x1)return null;const _0x2341e6=_0x4710c5['slice'](0x0,_0x30aaf9)['trim'](),_0x616d66=_0x4710c5[_0x1c8375(0xc7)](_0x3ef5cd['bQJBp'](_0x30aaf9,0x1))['trim']();if(!_0x2341e6)return null;return[_0x2341e6,_0x616d66];})['filter'](_0x380491=>_0x380491!==null);}export function getAgentPathHealthWarning(_0x639a34,_0xbfc14f=process['platform']){const _0x45a96c=_0x45bafd,_0x2001e1={'sEfCB':function(_0x26bdec,_0x49cbf1){return _0x26bdec===_0x49cbf1;},'eMbxI':_0x45a96c(0xc4),'HGLZx':'/bin','MEifr':function(_0x37b3f6,_0x3bdf92){return _0x37b3f6&&_0x3bdf92;}},_0x3a95b6=[],_0x344aa6=(_0x639a34||'')['split'](delimiter)['filter'](Boolean);_0x2001e1['sEfCB'](_0x344aa6['length'],0x0)&&_0x3a95b6['push']('PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.');UNEXPANDED_PATH_TOKEN_PATTERNS['some'](_0x1af07d=>(_0x639a34||'')[_0x45a96c(0xcb)](_0x1af07d))&&_0x3a95b6['push']('PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.');if(_0xbfc14f!==_0x2001e1['eMbxI']){const _0x5953fc=_0x344aa6[_0x45a96c(0xcb)]('/usr/bin'),_0x4a9bb3=_0x344aa6[_0x45a96c(0xcb)](_0x2001e1[_0x45a96c(0xb6)]);_0x2001e1['MEifr'](!_0x5953fc,!_0x4a9bb3)&&_0x3a95b6[_0x45a96c(0xd2)](_0x45a96c(0xb2));}if(_0x2001e1['sEfCB'](_0x3a95b6[_0x45a96c(0xd6)],0x0))return null;return{'summary':_0x45a96c(0xb7),'issues':_0x3a95b6};}export function buildAgentEnv(_0x4b71b5){const _0x4329d9=_0x45bafd,_0x14c88e={'Qmhlg':_0x4329d9(0xd9),'bJULH':function(_0x550da0){return _0x550da0();},'JuCHr':_0x4329d9(0xca),'fMCSW':_0x4329d9(0xc2),'EFLtZ':'TEMP','FBtWt':function(_0x6b2081,_0x573d92,_0xf95b5a){return _0x6b2081(_0x573d92,_0xf95b5a);},'KGdcm':function(_0x412ff3,_0x49777e){return _0x412ff3(_0x49777e);},'fwIUi':function(_0xc97b53,_0x302bae){return _0xc97b53===_0x302bae;}};if(_0x4b71b5['byokEnabled'])return Object[_0x4329d9(0xb0)](Object[_0x4329d9(0xb4)](process[_0x4329d9(0xc1)])[_0x4329d9(0xbe)](_0x5711bb=>typeof _0x5711bb[0x1]===_0x4329d9(0xae)));if(!_0x4b71b5[_0x4329d9(0xa7)])throw new Error(_0x14c88e[_0x4329d9(0xda)]);const _0x4030ac={'ANTHROPIC_API_KEY':_0x4b71b5['sessionToken'],'ANTHROPIC_BASE_URL':_0x14c88e['bJULH'](getAiProxyUrl),'DISABLE_TELEMETRY':_0x14c88e[_0x4329d9(0xcd)]};for(const _0x2ae3d3 of AGENT_ENV_PASSTHROUGH_KEYS){const _0x123356=process[_0x4329d9(0xc1)][_0x2ae3d3];_0x123356&&![_0x14c88e['fMCSW'],_0x4329d9(0xdc),_0x14c88e['EFLtZ']][_0x4329d9(0xcb)](_0x2ae3d3)&&(_0x4030ac[_0x2ae3d3]=_0x123356);}const _0x1b95f5=join(_0x14c88e['bJULH'](tmpdir),_0x4329d9(0xdb));try{_0x14c88e['FBtWt'](mkdirSync,_0x1b95f5,{'recursive':!![]});}catch{}_0x4030ac[_0x14c88e[_0x4329d9(0xd5)]]=_0x1b95f5,_0x4030ac[_0x4329d9(0xdc)]=_0x1b95f5,_0x4030ac[_0x4329d9(0xbd)]=_0x1b95f5;const _0x5c1b96=_0x14c88e['KGdcm'](parseCustomHeaders,process['env'][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x2c4ef5=new Map(_0x5c1b96),_0x56a106=new Set(_0x5c1b96['map'](([_0x29ab3d])=>_0x29ab3d['toLowerCase']()));if(_0x4b71b5[_0x4329d9(0xb9)])for(const [_0x263242,_0x115963]of Object[_0x4329d9(0xb4)](_0x4b71b5[_0x4329d9(0xb9)])){if(_0x115963==null||_0x14c88e[_0x4329d9(0xab)](_0x115963,''))continue;const _0x66b8ce='x-ranger-'+_0x263242;!_0x56a106['has'](_0x66b8ce['toLowerCase']())&&(_0x2c4ef5[_0x4329d9(0xb1)](_0x66b8ce,_0x115963),_0x56a106['add'](_0x66b8ce['toLowerCase']()));}const _0x490d3a=Array[_0x4329d9(0xad)](_0x2c4ef5[_0x4329d9(0xb4)]())['map'](([_0x5efaaf,_0x3dad59])=>_0x5efaaf+':\x20'+_0x3dad59)['join']('\x0a');return _0x490d3a&&(_0x4030ac[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x490d3a),_0x4030ac;}
1
+ const _0x5a8599=_0x4d99;function _0xb955(){const _0x919cf=['%PATH%','AWS_WEB_IDENTITY_TOKEN_FILE','1152568lPgrkE','x-ranger-','461424BfxJab','push','NNjHf','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','PLAYWRIGHT_BROWSERS_PATH','length','16KHrjZB','${PATH}','entries','trim','NPM_CONFIG_USERCONFIG','PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','set','sessionToken','add','Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','fromEntries','2679486jfhawk','split','RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS','toLowerCase','644990oeUDBE','PepQc','XDG_CACHE_HOME','7EXRlOv','AWS_DEFAULT_REGION','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','TMP','NODE_ENV','platform','some','filter','metadata','13027239EiTLEk','includes','XDG_CONFIG_HOME','449702RKgsCC','map','npm_config_prefix','env','win32','1595466nMFnkf','from','true','AWS_REGION','ANTHROPIC_CUSTOM_HEADERS','RANGERWRIGHT_CLICK_TIMEOUT_MS','NOVA_ACT_API_KEY','AWS_ROLE_SESSION_NAME','ranger-claude-tmp','sPPXK','/bin','TMPDIR','byokEnabled'];_0xb955=function(){return _0x919cf;};return _0xb955();}(function(_0x262174,_0x41590b){const _0x398a1b=_0x4d99,_0x5eb96f=_0x262174();while(!![]){try{const _0x24a979=-parseInt(_0x398a1b(0x214))/0x1+-parseInt(_0x398a1b(0x219))/0x2+parseInt(_0x398a1b(0x1f0))/0x3+-parseInt(_0x398a1b(0x1f6))/0x4*(parseInt(_0x398a1b(0x205))/0x5)+-parseInt(_0x398a1b(0x201))/0x6*(-parseInt(_0x398a1b(0x208))/0x7)+parseInt(_0x398a1b(0x1ee))/0x8+parseInt(_0x398a1b(0x211))/0x9;if(_0x24a979===_0x41590b)break;else _0x5eb96f['push'](_0x5eb96f['shift']());}catch(_0x44f92e){_0x5eb96f['push'](_0x5eb96f['shift']());}}}(_0xb955,0x689d8));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';function _0x4d99(_0x5226ca,_0xccf12f){_0x5226ca=_0x5226ca-0x1e1;const _0xb9550d=_0xb955();let _0x4d99d0=_0xb9550d[_0x5226ca];return _0x4d99d0;}import{getAiProxyUrl}from'./environment.js';const AI_PROXY_METADATA_HEADERS_ENV_VAR=_0x5a8599(0x1e3),AGENT_ENV_PASSTHROUGH_KEYS=['PATH','HOME',_0x5a8599(0x1ea),'TMP','TEMP','USERPROFILE','APPDATA','LOCALAPPDATA',_0x5a8599(0x207),_0x5a8599(0x213),_0x5a8599(0x1f4),_0x5a8599(0x1f3),'CHROME_BIN','CHROMIUM_BIN','npm_config_cache','NPM_CONFIG_CACHE','npm_config_userconfig',_0x5a8599(0x1fa),_0x5a8599(0x216),'NPM_CONFIG_PREFIX','npm_config_registry','NPM_CONFIG_REGISTRY','DEBUG',_0x5a8599(0x20c),'RANGER_TEST_SKIP_BROWSER_WAIT','RANGER_TRANSPORT','RANGERWRIGHT_DAEMON_START_TIMEOUT_MS',_0x5a8599(0x1e4),_0x5a8599(0x203),_0x5a8599(0x1e5),'AWS_PROFILE',_0x5a8599(0x1e2),_0x5a8599(0x209),'AWS_CONFIG_FILE','AWS_SHARED_CREDENTIALS_FILE','AWS_ACCESS_KEY_ID','AWS_SECRET_ACCESS_KEY','AWS_SESSION_TOKEN','AWS_SDK_LOAD_CONFIG',_0x5a8599(0x1ed),'AWS_ROLE_ARN',_0x5a8599(0x1e6),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=[_0x5a8599(0x1f7),'$PATH',_0x5a8599(0x1ec)];function parseCustomHeaders(_0x7dffa1){const _0x2c2ad0=_0x5a8599,_0x57a5={'NNjHf':function(_0x127578,_0x573a2f){return _0x127578===_0x573a2f;},'tgsrI':function(_0x4fc68f,_0x3646b2){return _0x4fc68f+_0x3646b2;}};if(!_0x7dffa1)return[];return _0x7dffa1['split'](/\r?\n/)[_0x2c2ad0(0x215)](_0x156183=>_0x156183['trim']())['filter'](Boolean)['map'](_0x8ad4ef=>{const _0x165663=_0x2c2ad0,_0x5e7ad2=_0x8ad4ef['indexOf'](':');if(_0x57a5[_0x165663(0x1f2)](_0x5e7ad2,-0x1))return null;const _0x191a35=_0x8ad4ef['slice'](0x0,_0x5e7ad2)[_0x165663(0x1f9)](),_0x3f0f8c=_0x8ad4ef['slice'](_0x57a5['tgsrI'](_0x5e7ad2,0x1))['trim']();if(!_0x191a35)return null;return[_0x191a35,_0x3f0f8c];})[_0x2c2ad0(0x20f)](_0x11fccf=>_0x11fccf!==null);}export function getAgentPathHealthWarning(_0x48d0a1,_0x55d681=process[_0x5a8599(0x20d)]){const _0x100b52=_0x5a8599,_0x3d02cb={'iGclY':function(_0x344b1c,_0x5680c1){return _0x344b1c||_0x5680c1;},'LIAJc':'PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','hoctF':_0x100b52(0x1fb),'Lvpks':function(_0x4dae63,_0x3e9763){return _0x4dae63!==_0x3e9763;},'sPPXK':_0x100b52(0x218),'ISbfN':function(_0x52a147,_0x98c5cd){return _0x52a147&&_0x98c5cd;},'Yagrl':_0x100b52(0x20a),'zpESB':function(_0x5bd491,_0x10a95e){return _0x5bd491===_0x10a95e;}},_0x268ee3=[],_0x4e9e58=_0x3d02cb['iGclY'](_0x48d0a1,'')[_0x100b52(0x202)](delimiter)['filter'](Boolean);_0x4e9e58['length']===0x0&&_0x268ee3['push'](_0x3d02cb['LIAJc']);UNEXPANDED_PATH_TOKEN_PATTERNS[_0x100b52(0x20e)](_0x1daa36=>(_0x48d0a1||'')[_0x100b52(0x212)](_0x1daa36))&&_0x268ee3['push'](_0x3d02cb['hoctF']);if(_0x3d02cb['Lvpks'](_0x55d681,_0x3d02cb[_0x100b52(0x1e8)])){const _0xc3e247=_0x4e9e58['includes']('/usr/bin'),_0x20c293=_0x4e9e58[_0x100b52(0x212)](_0x100b52(0x1e9));_0x3d02cb['ISbfN'](!_0xc3e247,!_0x20c293)&&_0x268ee3[_0x100b52(0x1f1)](_0x3d02cb['Yagrl']);}if(_0x3d02cb['zpESB'](_0x268ee3[_0x100b52(0x1f5)],0x0))return null;return{'summary':_0x100b52(0x1ff),'issues':_0x268ee3};}export function buildAgentEnv(_0x17553e){const _0x4709c4=_0x5a8599,_0x25a926={'PepQc':_0x4709c4(0x1ea),'JuUhZ':function(_0x289bfb){return _0x289bfb();},'LPfwf':function(_0xc52e16,_0x109b43,_0x36d67f){return _0xc52e16(_0x109b43,_0x36d67f);}};if(_0x17553e[_0x4709c4(0x1eb)])return Object[_0x4709c4(0x200)](Object['entries'](process[_0x4709c4(0x217)])['filter'](_0x33dadf=>typeof _0x33dadf[0x1]==='string'));if(!_0x17553e['sessionToken'])throw new Error('Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false');const _0x100bbc={'ANTHROPIC_API_KEY':_0x17553e[_0x4709c4(0x1fd)],'ANTHROPIC_BASE_URL':getAiProxyUrl(),'DISABLE_TELEMETRY':_0x4709c4(0x1e1)};for(const _0x3e255c of AGENT_ENV_PASSTHROUGH_KEYS){const _0x59a18a=process['env'][_0x3e255c];_0x59a18a&&![_0x25a926[_0x4709c4(0x206)],_0x4709c4(0x20b),'TEMP'][_0x4709c4(0x212)](_0x3e255c)&&(_0x100bbc[_0x3e255c]=_0x59a18a);}const _0xb9d4ef=join(_0x25a926['JuUhZ'](tmpdir),_0x4709c4(0x1e7));try{_0x25a926['LPfwf'](mkdirSync,_0xb9d4ef,{'recursive':!![]});}catch{}_0x100bbc[_0x4709c4(0x1ea)]=_0xb9d4ef,_0x100bbc[_0x4709c4(0x20b)]=_0xb9d4ef,_0x100bbc['TEMP']=_0xb9d4ef;const _0x5e239a=parseCustomHeaders(process[_0x4709c4(0x217)][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x57959a=new Map(_0x5e239a),_0x90c370=new Set(_0x5e239a['map'](([_0x5d83ef])=>_0x5d83ef[_0x4709c4(0x204)]()));if(_0x17553e['metadata'])for(const [_0x193c97,_0x2a5b96]of Object['entries'](_0x17553e[_0x4709c4(0x210)])){if(_0x2a5b96==null||_0x2a5b96==='')continue;const _0x3325ca=_0x4709c4(0x1ef)+_0x193c97;!_0x90c370['has'](_0x3325ca['toLowerCase']())&&(_0x57959a[_0x4709c4(0x1fc)](_0x3325ca,_0x2a5b96),_0x90c370[_0x4709c4(0x1fe)](_0x3325ca['toLowerCase']()));}const _0x32a374=Array[_0x4709c4(0x21a)](_0x57959a[_0x4709c4(0x1f8)]())[_0x4709c4(0x215)](([_0xb465b,_0x3ddee7])=>_0xb465b+':\x20'+_0x3ddee7)['join']('\x0a');return _0x32a374&&(_0x100bbc[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x32a374),_0x100bbc;}
@@ -1 +1 @@
1
- (function(_0x3022a4,_0xaf062e){const _0x3a79bd=_0x2dc5,_0x100e5a=_0x3022a4();while(!![]){try{const _0x4b2ae8=parseInt(_0x3a79bd(0x206))/0x1*(-parseInt(_0x3a79bd(0x23b))/0x2)+parseInt(_0x3a79bd(0x1e5))/0x3*(parseInt(_0x3a79bd(0x218))/0x4)+parseInt(_0x3a79bd(0x255))/0x5*(-parseInt(_0x3a79bd(0x205))/0x6)+-parseInt(_0x3a79bd(0x233))/0x7+-parseInt(_0x3a79bd(0x1f4))/0x8+parseInt(_0x3a79bd(0x22e))/0x9+-parseInt(_0x3a79bd(0x1fd))/0xa*(-parseInt(_0x3a79bd(0x241))/0xb);if(_0x4b2ae8===_0xaf062e)break;else _0x100e5a['push'](_0x100e5a['shift']());}catch(_0x1be95e){_0x100e5a['push'](_0x100e5a['shift']());}}}(_0x3a29,0x29108));const _0x32e530=(function(){const _0x18b7fa=_0x2dc5,_0x1c26ff={'IBDLY':_0x18b7fa(0x1e9),'hGWNU':function(_0x3e9a81,_0x3ca938){return _0x3e9a81===_0x3ca938;},'NwIzT':_0x18b7fa(0x24b),'psvBC':function(_0x239fb1,_0x4802d8){return _0x239fb1!==_0x4802d8;},'YEMUc':_0x18b7fa(0x239)};let _0x4457ea=!![];return function(_0x8e2d59,_0x39d2ee){const _0x3a70a3=_0x18b7fa,_0x5c9cda={'MFSre':_0x3a70a3(0x256),'YXOOr':function(_0x3fce13,_0x40dd4c){const _0x27d662=_0x3a70a3;return _0x1c26ff[_0x27d662(0x1fb)](_0x3fce13,_0x40dd4c);},'dgzCL':_0x1c26ff[_0x3a70a3(0x22f)],'XYsEE':_0x3a70a3(0x220)};if(_0x1c26ff[_0x3a70a3(0x1e3)](_0x1c26ff['YEMUc'],_0x1c26ff[_0x3a70a3(0x1f3)]))return _0x1eca40[_0x3a70a3(0x214)]()['search'](_0x1c26ff[_0x3a70a3(0x210)])[_0x3a70a3(0x214)]()[_0x3a70a3(0x223)](_0x20c677)[_0x3a70a3(0x23c)](_0x1c26ff[_0x3a70a3(0x210)]);else{const _0x39f843=_0x4457ea?function(){const _0x51d9f4=_0x3a70a3;if(_0x39d2ee){if(_0x5c9cda[_0x51d9f4(0x20d)](_0x5c9cda['dgzCL'],_0x5c9cda[_0x51d9f4(0x22b)]))throw new _0x5377b0(_0x5c9cda[_0x51d9f4(0x258)]);else{const _0xc752a2=_0x39d2ee[_0x51d9f4(0x25c)](_0x8e2d59,arguments);return _0x39d2ee=null,_0xc752a2;}}}:function(){};return _0x4457ea=![],_0x39f843;}};}()),_0x1e089f=_0x32e530(this,function(){const _0x452ccd=_0x2dc5,_0x50f1b4={'CJNXj':_0x452ccd(0x1e9)};return _0x1e089f['toString']()[_0x452ccd(0x23c)](_0x50f1b4[_0x452ccd(0x1eb)])[_0x452ccd(0x214)]()[_0x452ccd(0x223)](_0x1e089f)[_0x452ccd(0x23c)](_0x50f1b4[_0x452ccd(0x1eb)]);});_0x1e089f();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x123ef5){const _0x2ecde8=_0x2dc5,_0x15ba3c={'fvHBf':function(_0x30695f){return _0x30695f();},'Yuhae':_0x2ecde8(0x256),'BGYvC':function(_0x3a77f0,_0x40b75a,_0x2e4ec4){return _0x3a77f0(_0x40b75a,_0x2e4ec4);},'iOrab':'POST','PTHrP':_0x2ecde8(0x222)},_0x4cdee8=await _0x15ba3c[_0x2ecde8(0x20e)](getToken);if(!_0x4cdee8)throw new Error(_0x15ba3c[_0x2ecde8(0x232)]);const _0x3aa426=_0x15ba3c[_0x2ecde8(0x20e)](getApiBaseUrl),_0x38b29a=await _0x15ba3c[_0x2ecde8(0x221)](fetch,_0x3aa426+'/api/v1/mcp/browser-sessions',{'method':_0x15ba3c['iOrab'],'headers':{'Authorization':_0x2ecde8(0x207)+_0x4cdee8,'Content-Type':_0x15ba3c[_0x2ecde8(0x1f0)]},'body':JSON[_0x2ecde8(0x23a)]({'environmentName':_0x123ef5?.[_0x2ecde8(0x1ef)],'settings':_0x123ef5?.[_0x2ecde8(0x212)],'task':_0x123ef5?.[_0x2ecde8(0x1ed)],'url':_0x123ef5?.['url'],'featureId':_0x123ef5?.['featureId'],'checklistItemId':_0x123ef5?.[_0x2ecde8(0x259)]})});if(!_0x38b29a['ok']){const _0x47ec31=await _0x38b29a[_0x2ecde8(0x1e7)]();throw new Error(_0x2ecde8(0x21b)+_0x47ec31);}return _0x38b29a[_0x2ecde8(0x251)]();}export async function updateBrowserSession(_0xe9ab6c,_0x11229c){const _0x1c45a5=_0x2dc5,_0x3b3b70={'Zsmpk':function(_0x810219,_0x308191){return _0x810219!==_0x308191;},'GDiYv':'JQSZZ','SCJFz':function(_0x259a18){return _0x259a18();},'iItYM':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','XItnz':function(_0x22005e,_0x2e62bf,_0x331c60){return _0x22005e(_0x2e62bf,_0x331c60);},'rweIv':_0x1c45a5(0x1ec),'pBMAL':_0x1c45a5(0x222),'eBNbP':'updateBrowserSession'};return withRetry(async()=>{const _0x3f0712=_0x1c45a5,_0xfbc7fc={'rhkom':_0x3f0712(0x256)};if(_0x3b3b70[_0x3f0712(0x20c)]('JQSZZ',_0x3b3b70[_0x3f0712(0x217)]))throw new _0x122488(_0xfbc7fc[_0x3f0712(0x1f9)]);else{const _0x232c87=await _0x3b3b70[_0x3f0712(0x23f)](getToken);if(!_0x232c87)throw new Error(_0x3b3b70['iItYM']);const _0x76c51f=_0x3b3b70[_0x3f0712(0x23f)](getApiBaseUrl),_0x29ab45=await _0x3b3b70['XItnz'](fetch,_0x76c51f+_0x3f0712(0x229)+_0xe9ab6c,{'method':_0x3b3b70[_0x3f0712(0x236)],'headers':{'Authorization':'Bearer\x20'+_0x232c87,'Content-Type':_0x3b3b70[_0x3f0712(0x20b)]},'body':JSON[_0x3f0712(0x23a)](_0x11229c)});if(!_0x29ab45['ok']){const _0x185ccb=await _0x29ab45[_0x3f0712(0x1e7)]();throw new Error('Failed\x20to\x20update\x20browser\x20session:\x20'+_0x185ccb);}return _0x29ab45[_0x3f0712(0x251)]();}},{'label':_0x3b3b70[_0x1c45a5(0x224)]});}export async function getBrowserSession(_0x38d678){const _0x374a4f=_0x2dc5,_0x811691={'UrsTH':function(_0xf188ea){return _0xf188ea();},'OWrKY':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','dFvBR':function(_0x1828b8){return _0x1828b8();},'TJFtk':function(_0x29c585,_0x3ed9f5,_0x17a1f7){return _0x29c585(_0x3ed9f5,_0x17a1f7);}},_0x3b3288=await _0x811691['UrsTH'](getToken);if(!_0x3b3288)throw new Error(_0x811691['OWrKY']);const _0x3aeacd=_0x811691[_0x374a4f(0x245)](getApiBaseUrl),_0x1f9d5e=await _0x811691['TJFtk'](fetch,_0x3aeacd+_0x374a4f(0x229)+_0x38d678,{'method':_0x374a4f(0x20f),'headers':{'Authorization':_0x374a4f(0x207)+_0x3b3288}});if(!_0x1f9d5e['ok']){const _0x50d742=await _0x1f9d5e[_0x374a4f(0x1e7)]();throw new Error(_0x374a4f(0x225)+_0x50d742);}return _0x1f9d5e[_0x374a4f(0x251)]();}export async function getUploadUrls(_0x45dcd5,_0x3da30d,_0xa95e6c,_0x4c5acc){const _0x3401fd=_0x2dc5,_0x3fa0a5={'wiRwY':function(_0x38a4e6,_0x4faa3d){return _0x38a4e6(_0x4faa3d);},'YMCsX':function(_0x28d589,_0x20f040){return _0x28d589===_0x20f040;},'Xwbip':'WKDcj','IboBr':_0x3401fd(0x256),'WMxZx':function(_0x1acd15){return _0x1acd15();},'Jjhsy':function(_0x1e3c09,_0x1a6470,_0x2501a8){return _0x1e3c09(_0x1a6470,_0x2501a8);},'KVKLJ':_0x3401fd(0x222),'vGxla':function(_0x5e7d3a,_0x368845){return _0x5e7d3a!==_0x368845;},'ZqzaG':function(_0x11133f,_0x468063){return _0x11133f!==_0x468063;},'cbHFU':function(_0x3c9d02,_0x36c610){return _0x3c9d02===_0x36c610;},'yewYF':_0x3401fd(0x244)},_0x1d34bf=await getToken();if(!_0x1d34bf){if(_0x3fa0a5[_0x3401fd(0x201)](_0x3fa0a5[_0x3401fd(0x1f8)],_0x3fa0a5['Xwbip']))throw new Error(_0x3fa0a5[_0x3401fd(0x24c)]);else{const _0x27cdb6=_0x3fa0a5[_0x3401fd(0x226)](_0x55f123,_0x213e94);return _0x3401fd(0x1f1)+_0x27cdb6;}}const _0x11e2f4=_0x3fa0a5[_0x3401fd(0x243)](getApiBaseUrl),_0x1d0788=await _0x3fa0a5['Jjhsy'](fetch,_0x11e2f4+_0x3401fd(0x229)+_0x45dcd5+_0x3401fd(0x228),{'method':_0x3401fd(0x248),'headers':{'Authorization':_0x3401fd(0x207)+_0x1d34bf,'Content-Type':_0x3fa0a5[_0x3401fd(0x200)]},'body':JSON[_0x3401fd(0x23a)]({'filename':_0x3da30d,'filetype':_0xa95e6c,..._0x3fa0a5[_0x3401fd(0x231)](_0x4c5acc?.[_0x3401fd(0x1fe)],undefined)&&{'size':_0x4c5acc[_0x3401fd(0x1fe)]},..._0x3fa0a5[_0x3401fd(0x1e6)](_0x4c5acc?.['checksum'],undefined)&&{'checksum':_0x4c5acc[_0x3401fd(0x253)]},..._0x3fa0a5['vGxla'](_0x4c5acc?.['metadata'],undefined)&&{'metadata':_0x4c5acc[_0x3401fd(0x21d)]}})});if(!_0x1d0788['ok']){if(_0x3fa0a5[_0x3401fd(0x203)](_0x3fa0a5[_0x3401fd(0x208)],_0x3401fd(0x244))){const _0x20e0d9=await _0x1d0788[_0x3401fd(0x1e7)]();throw new Error(_0x3401fd(0x204)+_0x20e0d9);}else{const _0x34d052=_0x35e577['apply'](_0x34960f,arguments);return _0x5ba153=null,_0x34d052;}}return _0x1d0788[_0x3401fd(0x251)]();}export async function uploadFile(_0xdbe91,_0x5a4dba,_0x4969bc){const _0x4f49a2=_0x2dc5,_0x21b14d={'NaFgt':_0x4f49a2(0x256),'wCRhK':function(_0xb9d5c2,_0x4628b9,_0x10e0a8){return _0xb9d5c2(_0x4628b9,_0x10e0a8);},'diGCt':function(_0x3bd4fc,_0x340d14){return _0x3bd4fc!==_0x340d14;},'vlUGz':_0x4f49a2(0x235)},_0x3419a4=await _0x21b14d[_0x4f49a2(0x1e8)](fetch,_0xdbe91,{'method':_0x4f49a2(0x1f5),'headers':{'Content-Type':_0x4969bc,'Content-Length':_0x5a4dba[_0x4f49a2(0x249)][_0x4f49a2(0x214)]()},'body':_0x5a4dba});if(!_0x3419a4['ok']){if(_0x21b14d[_0x4f49a2(0x216)](_0x21b14d['vlUGz'],_0x4f49a2(0x235)))throw new _0x725150(_0x21b14d['NaFgt']);else{const _0x2f9145=await _0x3419a4[_0x4f49a2(0x1e7)]();throw new Error(_0x4f49a2(0x1e4)+_0x2f9145);}}}function _0x2dc5(_0x381290,_0x40b8c2){_0x381290=_0x381290-0x1e3;const _0x301548=_0x3a29();let _0x1e089f=_0x301548[_0x381290];if(_0x2dc5['GBegLU']===undefined){var _0x32e530=function(_0x946a30){const _0xa09728='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x51d062='',_0x26f788='',_0x2970aa=_0x51d062+_0x32e530;for(let _0x448667=0x0,_0x3f19b9,_0x38febe,_0xc5a949=0x0;_0x38febe=_0x946a30['charAt'](_0xc5a949++);~_0x38febe&&(_0x3f19b9=_0x448667%0x4?_0x3f19b9*0x40+_0x38febe:_0x38febe,_0x448667++%0x4)?_0x51d062+=_0x2970aa['charCodeAt'](_0xc5a949+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3f19b9>>(-0x2*_0x448667&0x6)):_0x448667:0x0){_0x38febe=_0xa09728['indexOf'](_0x38febe);}for(let _0x4c0bde=0x0,_0x371083=_0x51d062['length'];_0x4c0bde<_0x371083;_0x4c0bde++){_0x26f788+='%'+('00'+_0x51d062['charCodeAt'](_0x4c0bde)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x26f788);};_0x2dc5['qnNAwI']=_0x32e530,_0x2dc5['GkjStZ']={},_0x2dc5['GBegLU']=!![];}const _0x3a29f9=_0x301548[0x0],_0x2dc5ea=_0x381290+_0x3a29f9,_0x1e14c2=_0x2dc5['GkjStZ'][_0x2dc5ea];if(!_0x1e14c2){const _0x1ee981=function(_0x4011ea){this['sTOaHB']=_0x4011ea,this['TOjSRh']=[0x1,0x0,0x0],this['daDdqb']=function(){return'newState';},this['TlOLiT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['cNdSoZ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1ee981['prototype']['lHKdkB']=function(){const _0xafc1ed=new RegExp(this['TlOLiT']+this['cNdSoZ']),_0x3eed8d=_0xafc1ed['test'](this['daDdqb']['toString']())?--this['TOjSRh'][0x1]:--this['TOjSRh'][0x0];return this['GilMmY'](_0x3eed8d);},_0x1ee981['prototype']['GilMmY']=function(_0x100986){if(!Boolean(~_0x100986))return _0x100986;return this['MfOhfe'](this['sTOaHB']);},_0x1ee981['prototype']['MfOhfe']=function(_0xd8fb7){for(let _0x11243b=0x0,_0x29de94=this['TOjSRh']['length'];_0x11243b<_0x29de94;_0x11243b++){this['TOjSRh']['push'](Math['round'](Math['random']())),_0x29de94=this['TOjSRh']['length'];}return _0xd8fb7(this['TOjSRh'][0x0]);},new _0x1ee981(_0x2dc5)['lHKdkB'](),_0x1e089f=_0x2dc5['qnNAwI'](_0x1e089f),_0x2dc5['GkjStZ'][_0x2dc5ea]=_0x1e089f;}else _0x1e089f=_0x1e14c2;return _0x1e089f;}export async function uploadTrace(_0x38384d,_0x537675){const _0x1ef38b=_0x2dc5,_0x48898e={'zUmNa':function(_0x435a6e,_0x580bed,_0xece344,_0x734a63){return _0x435a6e(_0x580bed,_0xece344,_0x734a63);}};return _0x48898e['zUmNa'](uploadFile,_0x38384d,_0x537675,_0x1ef38b(0x254));}export async function uploadConversation(_0x2b372e,_0x4a2344){const _0x5a122b=_0x2dc5,_0x49436a={'YuKvF':function(_0x368fac,_0x54b34a,_0x1a0f06,_0x543de2){return _0x368fac(_0x54b34a,_0x1a0f06,_0x543de2);}};return _0x49436a['YuKvF'](uploadFile,_0x2b372e,_0x4a2344,_0x5a122b(0x21e));}export async function uploadScreenshot(_0x208c40,_0x4bf295){const _0x1258d2=_0x2dc5,_0x2e90f5={'RzXAk':function(_0xc34128,_0x2f97b4,_0x3788ff,_0x24cc55){return _0xc34128(_0x2f97b4,_0x3788ff,_0x24cc55);},'ZZnYF':'image/png'};return _0x2e90f5[_0x1258d2(0x242)](uploadFile,_0x208c40,_0x4bf295,_0x2e90f5[_0x1258d2(0x21f)]);}export async function uploadVideo(_0x2729b4,_0x5f134e){const _0x25e6b3=_0x2dc5,_0x515226={'POYYa':function(_0x1f38da,_0x117d83,_0x592b84,_0x1b5314){return _0x1f38da(_0x117d83,_0x592b84,_0x1b5314);}};return _0x515226[_0x25e6b3(0x1fc)](uploadFile,_0x2729b4,_0x5f134e,_0x25e6b3(0x24d));}export function buildTraceViewerUrl(_0x3a4444){const _0x25c7b9=_0x2dc5,_0x1fcb47={'uSRDl':function(_0x8d753e,_0x545cf0){return _0x8d753e(_0x545cf0);}},_0xe332a6=_0x1fcb47[_0x25c7b9(0x23e)](encodeURIComponent,_0x3a4444);return'https://trace.playwright.dev/?trace='+_0xe332a6;}export async function getProxySessionToken(){const _0x10bdc4=_0x2dc5,_0x27b6d3={'pQrBZ':_0x10bdc4(0x256),'kGALN':function(_0x59e846){return _0x59e846();},'rCxLY':_0x10bdc4(0x202),'YzuVw':function(_0x58a4c2,_0x63734d,_0x2ea965){return _0x58a4c2(_0x63734d,_0x2ea965);},'UCmYx':_0x10bdc4(0x248)},_0x3e1414=await _0x27b6d3[_0x10bdc4(0x22d)](getToken);if(!_0x3e1414){if(_0x27b6d3[_0x10bdc4(0x252)]!==_0x27b6d3[_0x10bdc4(0x252)])throw new _0x18e2a5(_0x27b6d3[_0x10bdc4(0x247)]);else throw new Error(_0x27b6d3[_0x10bdc4(0x247)]);}const _0x25f5a0=_0x27b6d3['kGALN'](getApiBaseUrl),_0x5d9cf0=await _0x27b6d3['YzuVw'](fetch,_0x25f5a0+_0x10bdc4(0x234),{'method':_0x27b6d3[_0x10bdc4(0x237)],'headers':{'Authorization':_0x10bdc4(0x207)+_0x3e1414}});if(!_0x5d9cf0['ok']){const _0x239ab2=await _0x5d9cf0[_0x10bdc4(0x1e7)]();throw new Error(_0x10bdc4(0x25b)+_0x239ab2);}const _0x1d6fa1=await _0x5d9cf0['json']();return _0x1d6fa1[_0x10bdc4(0x219)];}export function computeChecksum(_0x50a7f0){const _0x40efb3=_0x2dc5,_0x4b51c8={'hWGaZ':function(_0x431c65,_0xa94d78){return _0x431c65(_0xa94d78);},'FOfBN':_0x40efb3(0x209)};return _0x4b51c8[_0x40efb3(0x1ea)](createHash,_0x40efb3(0x1fa))[_0x40efb3(0x25a)](_0x50a7f0)[_0x40efb3(0x1ee)](_0x4b51c8['FOfBN']);}export async function createVerificationStep(_0x375fe6,_0x118b3e){const _0x49d73d=_0x2dc5,_0x3d47d8={'ULYvs':function(_0x3278b8){return _0x3278b8();},'ztLHT':_0x49d73d(0x256)},_0x1cda3d=await _0x3d47d8[_0x49d73d(0x20a)](getToken);if(!_0x1cda3d)throw new Error(_0x3d47d8[_0x49d73d(0x246)]);const _0xbfdb50=getApiBaseUrl(),_0x2e14b4=await fetch(_0xbfdb50+_0x49d73d(0x229)+_0x375fe6+_0x49d73d(0x22c),{'method':_0x49d73d(0x248),'headers':{'Authorization':'Bearer\x20'+_0x1cda3d,'Content-Type':'application/json'},'body':JSON[_0x49d73d(0x23a)](_0x118b3e)});if(!_0x2e14b4['ok']){const _0x170b4c=await _0x2e14b4[_0x49d73d(0x1e7)]();throw new Error(_0x49d73d(0x1f2)+_0x170b4c);}return _0x2e14b4[_0x49d73d(0x251)]();}export async function createStepAsset(_0x4ba09b,_0x4a6159,_0x3021f1){const _0x34d3e4=_0x2dc5,_0x37dbfd={'nPgHY':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','WLduN':function(_0x348ea6){return _0x348ea6();},'bUPEz':function(_0x21d4fc,_0x1e638e,_0x594968){return _0x21d4fc(_0x1e638e,_0x594968);},'YiZeT':function(_0x43b707,_0x3a4f7d){return _0x43b707!==_0x3a4f7d;},'pTbME':'qaWkE','RzwVG':_0x34d3e4(0x213)},_0x2af1ce=await getToken();if(!_0x2af1ce)throw new Error(_0x37dbfd[_0x34d3e4(0x21a)]);const _0x3cb924=_0x37dbfd['WLduN'](getApiBaseUrl),_0x285903=await _0x37dbfd[_0x34d3e4(0x250)](fetch,_0x3cb924+_0x34d3e4(0x229)+_0x4ba09b+_0x34d3e4(0x24a)+_0x4a6159+'/assets',{'method':_0x34d3e4(0x248),'headers':{'Authorization':'Bearer\x20'+_0x2af1ce,'Content-Type':_0x34d3e4(0x222)},'body':JSON['stringify'](_0x3021f1)});if(!_0x285903['ok']){if(_0x37dbfd[_0x34d3e4(0x1ff)](_0x37dbfd[_0x34d3e4(0x1f6)],_0x37dbfd['RzwVG'])){const _0x296d7a=await _0x285903[_0x34d3e4(0x1e7)]();throw new Error(_0x34d3e4(0x230)+_0x296d7a);}else{const _0x546013=_0x1ee981?function(){const _0x221795=_0x34d3e4;if(_0x11243b){const _0x2c5377=_0x1e670a[_0x221795(0x25c)](_0x1347be,arguments);return _0x17f440=null,_0x2c5377;}}:function(){};return _0xd8fb7=![],_0x546013;}}return _0x285903[_0x34d3e4(0x251)]();}function _0x3a29(){const _0x19b98e=['BwPXqMO','nZiZmJi4vu1cBvjt','uNPyqwS','v014wNG','rhjhvfG','zez2qLi','ENrmsfq','CffYqLO','ue9tva','BgvUz3rO','l3n0zxbZlW','D29qs0G','swjVqNi','DMLKzw8VD2vIBq','u2jTAwe','rKjVww4','yLvqrxO','ANnVBG','CKn4tfK','y2HLy2TZDw0','yxbWBgLJyxrPB24VEMLW','ndG1ENv4r0n4','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','tuztCMu','y2HLy2TSAxn0sxrLBuLK','DxbKyxrL','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','yxbWBhK','Chn2qKm','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','odi2mdvJqK1pt3e','wNf6yuC','Dgv4Da','D0nsAeS','kcGOlISPkYKRksSK','AfDhyvO','q0PowgO','uefuq0G','DgfZAW','zgLNzxn0','zw52AxjVBM1LBNroyw1L','ufriCLa','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','wuvnvwm','ntq1nZq0uvD2sLPk','ufvu','CfrItuu','ruLzqu4','whDIAxa','CMHRB20','Bwq1','AeDxtLu','ue9zwwe','mZbZuvDvt04','C2L6zq','wwLAzvq','s1zlteO','wu1dC1G','s2XpC0O','y2jirLu','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','otmWrLDkDvfT','mLPdAwf2rq','qMvHCMvYia','Ewv3wuy','yMfZzty0','vuXzDNm','CejnquW','wNnTCgS','wvHpt3i','zNziqMy','r0vu','sujetfK','AhDYBfC','C2v0DgLUz3m','CNrwtvm','Dg9tDhjPBMC','Dvv5zeq','zgLhq3q','r0rPwxy','ngH0A05Qsq','C2vZC2LVBLrVA2vU','BLbNsfK','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','wgLjBhe','Bwv0ywrHDge','yxbWBgLJyxrPB24VANnVBMW','wLPUwuy','z09gz2y','qKDzDKm','yxbWBgLJyxrPB24VANnVBG','y29UC3rYDwn0B3i','zujoyLa','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','D2LsD1K','AhD0whK','l3vWBg9Hzc11CMXZ','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','vwjiwfC','wfLZruu','l3n0zxbZ','A0Dbte4','mtC2mZCWm1DNqu5yra','tNDjELq','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','DKD4Bge','wxvOywu','otK3mZm5zw5ft1fq','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','CvjWDKy','CNDLsxy','vunTwxG','yMz4zMq','zNfNueq','C3rYAw5NAwz5','mJy4mtzkwKv3uu0','C2vHCMnO','q0fUDeS','DvnsrgW','u0nkrNO'];_0x3a29=function(){return _0x19b98e;};return _0x3a29();}export async function updateVerificationStep(_0x48b6d1,_0x1e3840,_0x1f98b4){const _0x8d55db=_0x2dc5,_0x594093={'EIYAN':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Sbmia':function(_0x2c8693){return _0x2c8693();},'uUydD':function(_0x21af58,_0x39e5d1){return _0x21af58!==_0x39e5d1;},'ilhEp':_0x8d55db(0x24f),'XiIlq':function(_0x2743e3,_0x37689a,_0x3afc18){return _0x2743e3(_0x37689a,_0x3afc18);},'UbHXW':_0x8d55db(0x1ec),'bfxfd':'application/json','pXZoG':function(_0x1c455b,_0x4e7aa6){return _0x1c455b!==_0x4e7aa6;},'mjqBj':'LBlyo'},_0x543be2=await _0x594093[_0x8d55db(0x24e)](getToken);if(!_0x543be2){if(_0x594093[_0x8d55db(0x215)]('VHvWD',_0x594093['ilhEp']))throw new Error(_0x594093[_0x8d55db(0x1f7)]);else{if(_0x47801b){const _0x59d9f7=_0x113bfc['apply'](_0x334d2a,arguments);return _0x458fe2=null,_0x59d9f7;}}}const _0x77270=_0x594093[_0x8d55db(0x24e)](getApiBaseUrl),_0x2a70b9=await _0x594093[_0x8d55db(0x21c)](fetch,_0x77270+_0x8d55db(0x229)+_0x48b6d1+_0x8d55db(0x24a)+_0x1e3840,{'method':_0x594093[_0x8d55db(0x22a)],'headers':{'Authorization':_0x8d55db(0x207)+_0x543be2,'Content-Type':_0x594093[_0x8d55db(0x238)]},'body':JSON[_0x8d55db(0x23a)](_0x1f98b4)});if(!_0x2a70b9['ok']){if(_0x594093['pXZoG'](_0x594093[_0x8d55db(0x240)],_0x594093[_0x8d55db(0x240)]))throw new _0xca0058(_0x594093[_0x8d55db(0x1f7)]);else{const _0x5e5b0a=await _0x2a70b9['text']();throw new Error('Failed\x20to\x20update\x20verification\x20step:\x20'+_0x5e5b0a);}}}export async function getBrowserSessionSteps(_0x40f413){const _0x3ef4df=_0x2dc5,_0x15c315={'hwtXy':function(_0x1950f8){return _0x1950f8();},'AGzyG':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','hwrlW':function(_0x563c87){return _0x563c87();},'CAntK':function(_0x3c2bc9,_0x29efae,_0x1d9c04){return _0x3c2bc9(_0x29efae,_0x1d9c04);}},_0x3edf49=await _0x15c315[_0x3ef4df(0x227)](getToken);if(!_0x3edf49)throw new Error(_0x15c315['AGzyG']);const _0x4bef55=_0x15c315[_0x3ef4df(0x211)](getApiBaseUrl),_0xe2b9c1=await _0x15c315[_0x3ef4df(0x23d)](fetch,_0x4bef55+_0x3ef4df(0x229)+_0x40f413+_0x3ef4df(0x22c),{'method':'GET','headers':{'Authorization':_0x3ef4df(0x207)+_0x3edf49}});if(!_0xe2b9c1['ok']){const _0x1cb872=await _0xe2b9c1[_0x3ef4df(0x1e7)]();throw new Error(_0x3ef4df(0x257)+_0x1cb872);}return _0xe2b9c1['json']();}
1
+ (function(_0x214fab,_0x1a3172){const _0x503b3f=_0x45b0,_0x449ab3=_0x214fab();while(!![]){try{const _0x47e0e7=parseInt(_0x503b3f(0x1ba))/0x1*(parseInt(_0x503b3f(0x1ac))/0x2)+parseInt(_0x503b3f(0x15f))/0x3*(parseInt(_0x503b3f(0x17e))/0x4)+parseInt(_0x503b3f(0x161))/0x5+parseInt(_0x503b3f(0x187))/0x6+parseInt(_0x503b3f(0x158))/0x7+-parseInt(_0x503b3f(0x1c2))/0x8+-parseInt(_0x503b3f(0x162))/0x9;if(_0x47e0e7===_0x1a3172)break;else _0x449ab3['push'](_0x449ab3['shift']());}catch(_0x112d48){_0x449ab3['push'](_0x449ab3['shift']());}}}(_0x467a,0x2dc58));const _0x158203=(function(){let _0x2b4328=!![];return function(_0x3f03aa,_0x463d23){const _0x53a9f2=_0x2b4328?function(){const _0xe9cc4e=_0x45b0;if(_0x463d23){const _0x30c749=_0x463d23[_0xe9cc4e(0x17a)](_0x3f03aa,arguments);return _0x463d23=null,_0x30c749;}}:function(){};return _0x2b4328=![],_0x53a9f2;};}()),_0x1159ca=_0x158203(this,function(){const _0x112fde=_0x45b0,_0x1ffa01={'QTkDY':'(((.+)+)+)+$'};return _0x1159ca[_0x112fde(0x18a)]()['search'](_0x1ffa01[_0x112fde(0x182)])[_0x112fde(0x18a)]()[_0x112fde(0x18d)](_0x1159ca)[_0x112fde(0x1b1)](_0x1ffa01[_0x112fde(0x182)]);});_0x1159ca();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x467a(){const _0xa978ae=['uvrRrfK','u3PLsg4','ywTpz0S','uvPHqKi','DgfZAW','nJqYmJe2uNvUy2jj','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','Agf0rLe','Dg9tDhjPBMC','Bg5RvMW','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','y29UC3rYDwn0B3i','yuvkz3u','yMfZzty0','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','sKPUEM0','ELHJBMy','Bwv0ywrHDge','q3rRu1O','zMzID3i','BgvUz3rO','DxbKyxrLqNjVD3nLCLnLC3nPB24','zM1tCeW','tgrHzxG','Aw1Hz2uVCg5N','y2HLy2TZDw0','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','Ahbgvvi','D2XWsM0','vvH0EhK','tKTrENm','CLrvC24','l3n0zxbZlW','zevdzK4','zw52AxjVBM1LBNroyw1L','BxHQsvO','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','vgzLDLm','qMvHCMvYia','CeX6sgi','uefuq0G','t3bhy00','mtrnAwj0zLe','ruj2zxm','vMPqDM8','AM9vCM8','A09nDe4','C2vHCMnO','yxbWBgLJyxrPB24VANnVBG','C3rYAw5NAwz5','rNjOzMi','C2L6zq','C1bUzhm','A3rivfe','tgvAwfq','wuTkqxm','mZy3odD1zvjkswm','txz5uMe','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','ENjltgW','z0rwsue','ruTACvK','qNf6rMy','ALfwq0O','ndeXmZeYq0PAELjv','tuTbBMC','Dxb6ExC','s3jkz08','rgftqKe','yufYyxO','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','CujTvfG','y2HLy2TSAxn0sxrLBuLK','CMjYuhu','zNftBKe','quTqrhO','zgLNzxn0','y3zrEfG','r2rOu0e','rwfwqxO','l3n0zxbZ','AhzhtwC','ue9tva','DxbKyxrL','l2fZC2v0CW','A0ffzxi','mtK5ndiXnK5Ovfvjva','v0T0r2G','DMLKzw8VD2vIBq','zgHrEeO','DhnjvfG','EhzizKm','r0vu','nJq5nti3rM13quHN','wMPLwwu','mZi1mJe1Cfnxv1Lo','nJiYodGXow5mrfHuwG','BxHwChm','DMrewK8','tNHpsMq','z0XIAuy','wuvRDuy','B3zsq1q','C2vZC2LVBLrVA2vU','vwDYwg0','u1PRwuy','rwvMz24','zhjQDxy','l3vWBg9Hzc11CMXZ','ANnVBG','DxjS','Dgv4Da','yxvuwfy','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','q1LdvLK','zMvHDhvYzuLK','qNbwDK8','ENDdq2W','s0joA3C','yxbWBhK','kcGOlISPkYKRksSK','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','z3L1vge','ngTxy1fYBa','DLfPBMW','BMLQq0S','u1vgwKe'];_0x467a=function(){return _0xa978ae;};return _0x467a();}import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x1d6ed1){const _0x1bcdf3=_0x45b0,_0x263461={'fmSpL':function(_0x3601ac,_0x4c2de1){return _0x3601ac(_0x4c2de1);},'kLKyF':'base64','EKZqY':function(_0x32d918){return _0x32d918();},'JJnzm':_0x1bcdf3(0x1c0),'nijCK':_0x1bcdf3(0x173),'mxVps':function(_0x5b0eaf){return _0x5b0eaf();},'CtkSZ':function(_0x925261,_0x399605,_0x2fdbbc){return _0x925261(_0x399605,_0x2fdbbc);},'xvHfC':_0x1bcdf3(0x1d4),'Eefgn':_0x1bcdf3(0x1b2)},_0x4250ea=await _0x263461[_0x1bcdf3(0x1bf)](getToken);if(!_0x4250ea){if(_0x263461[_0x1bcdf3(0x191)]!==_0x1bcdf3(0x18e))throw new Error(_0x263461[_0x1bcdf3(0x180)]);else return _0x263461[_0x1bcdf3(0x198)](_0x194ce1,'md5')['update'](_0x58dc8a)['digest'](_0x263461['kLKyF']);}const _0x4bfae2=_0x263461[_0x1bcdf3(0x163)](getApiBaseUrl),_0x5e6bc3=await _0x263461[_0x1bcdf3(0x194)](fetch,_0x4bfae2+'/api/v1/mcp/browser-sessions',{'method':_0x263461[_0x1bcdf3(0x15d)],'headers':{'Authorization':_0x1bcdf3(0x1a8)+_0x4250ea,'Content-Type':_0x263461[_0x1bcdf3(0x16c)]},'body':JSON['stringify']({'environmentName':_0x1d6ed1?.[_0x1bcdf3(0x1a4)],'settings':_0x1d6ed1?.['settings'],'task':_0x1d6ed1?.[_0x1bcdf3(0x186)],'url':_0x1d6ed1?.[_0x1bcdf3(0x170)],'featureId':_0x1d6ed1?.[_0x1bcdf3(0x176)],'checklistItemId':_0x1d6ed1?.[_0x1bcdf3(0x1ca)]})});if(!_0x5e6bc3['ok']){const _0x1c916a=await _0x5e6bc3['text']();throw new Error(_0x1bcdf3(0x19c)+_0x1c916a);}return _0x5e6bc3[_0x1bcdf3(0x16f)]();}export async function updateBrowserSession(_0x51dbcc,_0x464193){const _0x5a51f9=_0x45b0,_0x4ad9bd={'gLbiF':function(_0x3f5aa2,_0x417705,_0x1054ee,_0x42b2df){return _0x3f5aa2(_0x417705,_0x1054ee,_0x42b2df);},'lJsLb':'uoXHk','gyuTa':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','rqFzJ':function(_0x21fcb5){return _0x21fcb5();},'akOgK':function(_0x1920d4,_0x284571,_0x57993d){return _0x1920d4(_0x284571,_0x57993d);},'ovRCT':'application/json','fqSnA':function(_0x52368d,_0x437fc2,_0x5c77e8){return _0x52368d(_0x437fc2,_0x5c77e8);},'rTUsn':_0x5a51f9(0x197)};return _0x4ad9bd[_0x5a51f9(0x1cc)](withRetry,async()=>{const _0x152e5b=_0x5a51f9,_0x1b993d={'upzyw':function(_0x8de37b,_0xfa9d5a,_0x18f839,_0x50c02d){const _0x37316=_0x45b0;return _0x4ad9bd[_0x37316(0x166)](_0x8de37b,_0xfa9d5a,_0x18f839,_0x50c02d);}},_0x177190=await getToken();if(!_0x177190){if(_0x4ad9bd['lJsLb']===_0x4ad9bd['lJsLb'])throw new Error(_0x4ad9bd[_0x152e5b(0x17d)]);else return _0x1b993d[_0x152e5b(0x1c4)](_0xacfd7,_0x170e3d,_0x151556,_0x152e5b(0x15a));}const _0x4f9c5a=_0x4ad9bd['rqFzJ'](getApiBaseUrl),_0x3a0f84=await _0x4ad9bd[_0x152e5b(0x184)](fetch,_0x4f9c5a+_0x152e5b(0x190)+_0x51dbcc,{'method':_0x152e5b(0x1aa),'headers':{'Authorization':_0x152e5b(0x1a8)+_0x177190,'Content-Type':_0x4ad9bd[_0x152e5b(0x168)]},'body':JSON[_0x152e5b(0x1b3)](_0x464193)});if(!_0x3a0f84['ok']){const _0x2a2bee=await _0x3a0f84[_0x152e5b(0x171)]();throw new Error(_0x152e5b(0x174)+_0x2a2bee);}return _0x3a0f84[_0x152e5b(0x16f)]();},{'label':_0x4ad9bd[_0x5a51f9(0x1a1)]});}export async function getBrowserSession(_0x569e33){const _0x53264e=_0x45b0,_0x1529eb={'AKPDz':function(_0x4a65af,_0x38be12,_0x12673f,_0x3a6e4b){return _0x4a65af(_0x38be12,_0x12673f,_0x3a6e4b);},'gDVIA':'application/zip','UgrXm':_0x53264e(0x173),'Frhfb':function(_0x59394d){return _0x59394d();},'dECfN':function(_0x1fabb0,_0xd4f4ba,_0x4f0110){return _0x1fabb0(_0xd4f4ba,_0x4f0110);},'MiEGJ':'GET','MvyRa':function(_0x309024,_0x187230){return _0x309024===_0x187230;},'qBmTX':_0x53264e(0x19e)},_0x57101f=await getToken();if(!_0x57101f)throw new Error(_0x1529eb[_0x53264e(0x16a)]);const _0x550099=_0x1529eb[_0x53264e(0x1b4)](getApiBaseUrl),_0x469348=await _0x1529eb[_0x53264e(0x1a3)](fetch,_0x550099+_0x53264e(0x190)+_0x569e33,{'method':_0x1529eb['MiEGJ'],'headers':{'Authorization':_0x53264e(0x1a8)+_0x57101f}});if(!_0x469348['ok']){if(_0x1529eb[_0x53264e(0x1bb)](_0x1529eb[_0x53264e(0x1c9)],_0x1529eb[_0x53264e(0x1c9)])){const _0x36fe38=await _0x469348['text']();throw new Error('Failed\x20to\x20get\x20browser\x20session:\x20'+_0x36fe38);}else return _0x1529eb[_0x53264e(0x1cd)](_0x4056e5,_0x400ade,_0x4812c0,_0x1529eb[_0x53264e(0x1be)]);}return _0x469348[_0x53264e(0x16f)]();}export async function getUploadUrls(_0x569129,_0x101c80,_0x2ac56d,_0x22a77c){const _0x17a58e=_0x45b0,_0x3bbb99={'lnkVl':_0x17a58e(0x173),'TukIr':function(_0x55c3b4,_0x515aae,_0x3a0bed){return _0x55c3b4(_0x515aae,_0x3a0bed);},'KBNkw':_0x17a58e(0x1d4),'hatFQ':'application/json','aAraz':function(_0x5ab0e3,_0x18025b){return _0x5ab0e3!==_0x18025b;},'hvGMg':'FwWIC','CYCVY':_0x17a58e(0x164)},_0x516e19=await getToken();if(!_0x516e19)throw new Error(_0x17a58e(0x173));const _0x8bfb79=getApiBaseUrl(),_0x264b38=await _0x3bbb99['TukIr'](fetch,_0x8bfb79+'/api/v1/mcp/browser-sessions/'+_0x569129+_0x17a58e(0x16e),{'method':_0x3bbb99[_0x17a58e(0x179)],'headers':{'Authorization':_0x17a58e(0x1a8)+_0x516e19,'Content-Type':_0x3bbb99[_0x17a58e(0x189)]},'body':JSON[_0x17a58e(0x1b3)]({'filename':_0x101c80,'filetype':_0x2ac56d,..._0x3bbb99[_0x17a58e(0x1c7)](_0x22a77c?.[_0x17a58e(0x1b5)],undefined)&&{'size':_0x22a77c[_0x17a58e(0x1b5)]},..._0x3bbb99[_0x17a58e(0x1c7)](_0x22a77c?.[_0x17a58e(0x19b)],undefined)&&{'checksum':_0x22a77c[_0x17a58e(0x19b)]},..._0x3bbb99[_0x17a58e(0x1c7)](_0x22a77c?.['metadata'],undefined)&&{'metadata':_0x22a77c[_0x17a58e(0x193)]}})});if(!_0x264b38['ok']){if(_0x3bbb99[_0x17a58e(0x1d3)]!==_0x3bbb99[_0x17a58e(0x175)]){const _0x3d8830=await _0x264b38['text']();throw new Error(_0x17a58e(0x18c)+_0x3d8830);}else throw new _0x34f3ae(_0x3bbb99[_0x17a58e(0x18b)]);}return _0x264b38[_0x17a58e(0x16f)]();}export async function uploadFile(_0x26765c,_0x121821,_0x2dd943){const _0x1f6907=_0x45b0,_0x358b86={'NxOJd':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','OpGcM':function(_0x24db3d,_0x406fc9,_0x19db6e){return _0x24db3d(_0x406fc9,_0x19db6e);},'NKQzs':'PUT','joUro':function(_0x36f736,_0x39b8bf){return _0x36f736===_0x39b8bf;},'zXcnf':_0x1f6907(0x19d)},_0x193b27=await _0x358b86[_0x1f6907(0x1ab)](fetch,_0x26765c,{'method':_0x358b86[_0x1f6907(0x1a0)],'headers':{'Content-Type':_0x2dd943,'Content-Length':_0x121821[_0x1f6907(0x196)][_0x1f6907(0x18a)]()},'body':_0x121821});if(!_0x193b27['ok']){if(_0x358b86[_0x1f6907(0x1af)](_0x358b86[_0x1f6907(0x192)],_0x358b86[_0x1f6907(0x192)])){const _0x1f58a4=await _0x193b27[_0x1f6907(0x171)]();throw new Error(_0x1f6907(0x1bc)+_0x1f58a4);}else throw new _0x355182(_0x358b86[_0x1f6907(0x165)]);}}export async function uploadTrace(_0x1df769,_0x4060e9){const _0x42b9dd=_0x45b0,_0x1ee4d4={'MKAng':function(_0x325956,_0x58cf27,_0x2b50ec,_0x105e95){return _0x325956(_0x58cf27,_0x2b50ec,_0x105e95);},'vQinl':'application/zip'};return _0x1ee4d4[_0x42b9dd(0x1c3)](uploadFile,_0x1df769,_0x4060e9,_0x1ee4d4[_0x42b9dd(0x17f)]);}export async function uploadConversation(_0x2d43dc,_0x197122){return uploadFile(_0x2d43dc,_0x197122,'application/jsonl');}function _0x45b0(_0x5d6e20,_0x1e9df3){_0x5d6e20=_0x5d6e20-0x155;const _0x14ccc0=_0x467a();let _0x1159ca=_0x14ccc0[_0x5d6e20];if(_0x45b0['FvhZNO']===undefined){var _0x158203=function(_0x24ee1e){const _0x540dd4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a6fbf='',_0x10ef2c='',_0x5eb4c8=_0x1a6fbf+_0x158203;for(let _0x47730a=0x0,_0x1f7daf,_0x20c307,_0x32cce9=0x0;_0x20c307=_0x24ee1e['charAt'](_0x32cce9++);~_0x20c307&&(_0x1f7daf=_0x47730a%0x4?_0x1f7daf*0x40+_0x20c307:_0x20c307,_0x47730a++%0x4)?_0x1a6fbf+=_0x5eb4c8['charCodeAt'](_0x32cce9+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1f7daf>>(-0x2*_0x47730a&0x6)):_0x47730a:0x0){_0x20c307=_0x540dd4['indexOf'](_0x20c307);}for(let _0x332ceb=0x0,_0x2fde7a=_0x1a6fbf['length'];_0x332ceb<_0x2fde7a;_0x332ceb++){_0x10ef2c+='%'+('00'+_0x1a6fbf['charCodeAt'](_0x332ceb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x10ef2c);};_0x45b0['fAWZLI']=_0x158203,_0x45b0['zUTQOs']={},_0x45b0['FvhZNO']=!![];}const _0x467a98=_0x14ccc0[0x0],_0x45b0a3=_0x5d6e20+_0x467a98,_0x54d231=_0x45b0['zUTQOs'][_0x45b0a3];if(!_0x54d231){const _0x49f732=function(_0x37b852){this['qdlxgd']=_0x37b852,this['feFbMd']=[0x1,0x0,0x0],this['mtxErU']=function(){return'newState';},this['wOlpLO']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['iLQvui']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x49f732['prototype']['BxKDwT']=function(){const _0x53b96d=new RegExp(this['wOlpLO']+this['iLQvui']),_0x5354bf=_0x53b96d['test'](this['mtxErU']['toString']())?--this['feFbMd'][0x1]:--this['feFbMd'][0x0];return this['vuNpBt'](_0x5354bf);},_0x49f732['prototype']['vuNpBt']=function(_0x43ccf8){if(!Boolean(~_0x43ccf8))return _0x43ccf8;return this['RGMyyc'](this['qdlxgd']);},_0x49f732['prototype']['RGMyyc']=function(_0xa4d0d1){for(let _0x22049e=0x0,_0x38a09f=this['feFbMd']['length'];_0x22049e<_0x38a09f;_0x22049e++){this['feFbMd']['push'](Math['round'](Math['random']())),_0x38a09f=this['feFbMd']['length'];}return _0xa4d0d1(this['feFbMd'][0x0]);},new _0x49f732(_0x45b0)['BxKDwT'](),_0x1159ca=_0x45b0['fAWZLI'](_0x1159ca),_0x45b0['zUTQOs'][_0x45b0a3]=_0x1159ca;}else _0x1159ca=_0x54d231;return _0x1159ca;}export async function uploadScreenshot(_0x4aa880,_0x598ca7){const _0x172f75=_0x45b0,_0x36541c={'GdhSA':function(_0x40d9b1,_0x6a01e8,_0x5cf66b,_0x30e762){return _0x40d9b1(_0x6a01e8,_0x5cf66b,_0x30e762);},'mbRiP':_0x172f75(0x19a)};return _0x36541c[_0x172f75(0x1d0)](uploadFile,_0x4aa880,_0x598ca7,_0x36541c['mbRiP']);}export async function uploadVideo(_0x237f1b,_0x3d5b){const _0x5731f2={'cfkId':function(_0x4d1e20,_0x1488b8,_0x4ae432,_0x592c81){return _0x4d1e20(_0x1488b8,_0x4ae432,_0x592c81);},'YHnBv':'video/webm'};return _0x5731f2['cfkId'](uploadFile,_0x237f1b,_0x3d5b,_0x5731f2['YHnBv']);}export function buildTraceViewerUrl(_0x168990){const _0x108913={'RlByP':function(_0x44c6e9,_0x20ae09){return _0x44c6e9(_0x20ae09);}},_0x3e84d2=_0x108913['RlByP'](encodeURIComponent,_0x168990);return'https://trace.playwright.dev/?trace='+_0x3e84d2;}export async function getProxySessionToken(){const _0x2e4c50=_0x45b0,_0x4dce9d={'mxjIZ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','EBves':_0x2e4c50(0x17b),'DaSBA':function(_0x21f8a5){return _0x21f8a5();},'YKJAs':_0x2e4c50(0x16b),'VjPvo':function(_0x47d1d1,_0x39b1c0,_0x14a322){return _0x47d1d1(_0x39b1c0,_0x14a322);},'Ldaex':'POST','WKtGh':function(_0x2bc26a,_0x3f4807){return _0x2bc26a===_0x3f4807;},'EaVAz':_0x2e4c50(0x1b0)},_0x458071=await _0x4dce9d['DaSBA'](getToken);if(!_0x458071){if(_0x4dce9d[_0x2e4c50(0x1b9)]==='SZkYF')throw new Error(_0x4dce9d['mxjIZ']);else throw new _0x916886(_0x4dce9d[_0x2e4c50(0x1a5)]);}const _0x52c04e=_0x4dce9d[_0x2e4c50(0x1c6)](getApiBaseUrl),_0x44a961=await _0x4dce9d[_0x2e4c50(0x1ae)](fetch,_0x52c04e+_0x2e4c50(0x1a6),{'method':_0x4dce9d[_0x2e4c50(0x199)],'headers':{'Authorization':_0x2e4c50(0x1a8)+_0x458071}});if(!_0x44a961['ok']){if(_0x4dce9d[_0x2e4c50(0x159)](_0x4dce9d[_0x2e4c50(0x1d1)],_0x4dce9d[_0x2e4c50(0x1d1)])){const _0x25c743=await _0x44a961[_0x2e4c50(0x171)]();throw new Error(_0x2e4c50(0x1c8)+_0x25c743);}else return _0x1fa8aa[_0x2e4c50(0x18a)]()[_0x2e4c50(0x1b1)](BCjtBz[_0x2e4c50(0x1ad)])[_0x2e4c50(0x18a)]()[_0x2e4c50(0x18d)](_0x1c059e)['search'](_0x2e4c50(0x17b));}const _0x2f83a7=await _0x44a961['json']();return _0x2f83a7[_0x2e4c50(0x169)];}export function computeChecksum(_0x213443){const _0x361992=_0x45b0,_0x1f3940={'SUFZA':'md5','YEkuF':_0x361992(0x18f)};return createHash(_0x1f3940[_0x361992(0x181)])[_0x361992(0x155)](_0x213443)[_0x361992(0x1ce)](_0x1f3940[_0x361992(0x167)]);}export async function createVerificationStep(_0x1d30f4,_0x3296ea){const _0x64b4d5=_0x45b0,_0x27b3c7={'KrJgO':function(_0x839429){return _0x839429();},'QZaBB':_0x64b4d5(0x173),'pLzHb':function(_0x344f62){return _0x344f62();},'drjuv':_0x64b4d5(0x1d4),'ktHTQ':function(_0x1ee062,_0x3fdd50){return _0x1ee062!==_0x3fdd50;},'cvQxX':'gMEln'},_0x599b21=await _0x27b3c7[_0x64b4d5(0x1c5)](getToken);if(!_0x599b21)throw new Error(_0x27b3c7[_0x64b4d5(0x185)]);const _0x381f22=_0x27b3c7[_0x64b4d5(0x1a9)](getApiBaseUrl),_0x3946de=await fetch(_0x381f22+_0x64b4d5(0x190)+_0x1d30f4+_0x64b4d5(0x1d2),{'method':_0x27b3c7[_0x64b4d5(0x16d)],'headers':{'Authorization':'Bearer\x20'+_0x599b21,'Content-Type':_0x64b4d5(0x1b2)},'body':JSON[_0x64b4d5(0x1b3)](_0x3296ea)});if(!_0x3946de['ok']){if(_0x27b3c7[_0x64b4d5(0x1b7)](_0x27b3c7[_0x64b4d5(0x1cf)],_0x27b3c7[_0x64b4d5(0x1cf)])){const _0x2d7d38=_0x49f732?function(){const _0x27a31a=_0x64b4d5;if(_0x22049e){const _0x4bb02c=_0x48d600[_0x27a31a(0x17a)](_0x27cb4c,arguments);return _0x2277c2=null,_0x4bb02c;}}:function(){};return _0xa4d0d1=![],_0x2d7d38;}else{const _0x510af3=await _0x3946de[_0x64b4d5(0x171)]();throw new Error(_0x64b4d5(0x17c)+_0x510af3);}}return _0x3946de[_0x64b4d5(0x16f)]();}export async function createStepAsset(_0x49afd0,_0x28f9b2,_0x279876){const _0x44b7c8=_0x45b0,_0x251bc7={'LeZXT':function(_0x485394){return _0x485394();},'xWStg':function(_0x4fc96a){return _0x4fc96a();},'xmwsH':function(_0x4ae230,_0x4e4b07,_0xf678df){return _0x4ae230(_0x4e4b07,_0xf678df);},'UXtxy':_0x44b7c8(0x1d4),'jQVCJ':_0x44b7c8(0x1b2)},_0x16f1d6=await _0x251bc7[_0x44b7c8(0x1b8)](getToken);if(!_0x16f1d6)throw new Error(_0x44b7c8(0x173));const _0x5bca9c=_0x251bc7['xWStg'](getApiBaseUrl),_0x16772a=await _0x251bc7['xmwsH'](fetch,_0x5bca9c+_0x44b7c8(0x190)+_0x49afd0+_0x44b7c8(0x1a2)+_0x28f9b2+_0x44b7c8(0x156),{'method':_0x251bc7[_0x44b7c8(0x19f)],'headers':{'Authorization':_0x44b7c8(0x1a8)+_0x16f1d6,'Content-Type':_0x251bc7[_0x44b7c8(0x1c1)]},'body':JSON[_0x44b7c8(0x1b3)](_0x279876)});if(!_0x16772a['ok']){const _0x364f7a=await _0x16772a[_0x44b7c8(0x171)]();throw new Error('Failed\x20to\x20create\x20step\x20asset:\x20'+_0x364f7a);}return _0x16772a[_0x44b7c8(0x16f)]();}export async function updateVerificationStep(_0x4fd9c4,_0x3f0a1d,_0x28dc16){const _0x17a5a1=_0x45b0,_0x3ba7f4={'tsITX':_0x17a5a1(0x173),'kAEer':function(_0x70300a){return _0x70300a();},'ZjeYe':function(_0x6c032b){return _0x6c032b();},'ffbwr':function(_0x1801d5,_0x495b31,_0x46cfc9){return _0x1801d5(_0x495b31,_0x46cfc9);},'SzeHn':_0x17a5a1(0x1aa),'TfevS':_0x17a5a1(0x1cb),'BpVvO':'nCQpc'},_0x4eb726=await _0x3ba7f4[_0x17a5a1(0x157)](getToken);if(!_0x4eb726)throw new Error(_0x3ba7f4[_0x17a5a1(0x15c)]);const _0x5a9dc7=_0x3ba7f4[_0x17a5a1(0x160)](getApiBaseUrl),_0x1324e0=await _0x3ba7f4[_0x17a5a1(0x195)](fetch,_0x5a9dc7+_0x17a5a1(0x190)+_0x4fd9c4+'/steps/'+_0x3f0a1d,{'method':_0x3ba7f4[_0x17a5a1(0x183)],'headers':{'Authorization':_0x17a5a1(0x1a8)+_0x4eb726,'Content-Type':'application/json'},'body':JSON['stringify'](_0x28dc16)});if(!_0x1324e0['ok']){if(_0x3ba7f4[_0x17a5a1(0x1a7)]===_0x3ba7f4[_0x17a5a1(0x177)])throw new _0x122a9c(_0x3ba7f4[_0x17a5a1(0x15c)]);else{const _0x5cbb74=await _0x1324e0[_0x17a5a1(0x171)]();throw new Error(_0x17a5a1(0x188)+_0x5cbb74);}}}export async function getBrowserSessionSteps(_0x51998e){const _0x57ad02=_0x45b0,_0x54021b={'dhQxJ':_0x57ad02(0x173),'sPnds':function(_0x5dfe55){return _0x5dfe55();},'zwCCl':function(_0x4f2db6,_0x3cf984,_0x1550c4){return _0x4f2db6(_0x3cf984,_0x1550c4);},'auTXV':_0x57ad02(0x1bd)},_0x3593f7=await _0x54021b[_0x57ad02(0x1b6)](getToken);if(!_0x3593f7)throw new Error(_0x54021b[_0x57ad02(0x15b)]);const _0x52f3d9=_0x54021b['sPnds'](getApiBaseUrl),_0x29f542=await _0x54021b[_0x57ad02(0x178)](fetch,_0x52f3d9+'/api/v1/mcp/browser-sessions/'+_0x51998e+'/steps',{'method':_0x57ad02(0x15e),'headers':{'Authorization':_0x57ad02(0x1a8)+_0x3593f7}});if(!_0x29f542['ok']){if('GRICh'!==_0x54021b[_0x57ad02(0x172)]){const _0x3e8704=await _0x29f542[_0x57ad02(0x171)]();throw new Error('Failed\x20to\x20get\x20browser\x20session\x20steps:\x20'+_0x3e8704);}else throw new _0x5b9b6b(_0x54021b[_0x57ad02(0x15b)]);}return _0x29f542['json']();}
@@ -1 +1 @@
1
- (function(_0x2d9eeb,_0x4961ca){const _0x3a9104=_0x3ce8,_0x587869=_0x2d9eeb();while(!![]){try{const _0x210ae4=-parseInt(_0x3a9104(0x77))/0x1*(parseInt(_0x3a9104(0x82))/0x2)+parseInt(_0x3a9104(0x6c))/0x3+parseInt(_0x3a9104(0x7b))/0x4*(-parseInt(_0x3a9104(0x7f))/0x5)+-parseInt(_0x3a9104(0x79))/0x6+parseInt(_0x3a9104(0x78))/0x7+parseInt(_0x3a9104(0x80))/0x8+-parseInt(_0x3a9104(0x71))/0x9*(-parseInt(_0x3a9104(0x74))/0xa);if(_0x210ae4===_0x4961ca)break;else _0x587869['push'](_0x587869['shift']());}catch(_0x2311cb){_0x587869['push'](_0x587869['shift']());}}}(_0x8625,0x8a218));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 _0x22b161=_0x3ce8,_0xb142ce={'SkjmK':'.claude'};return process[_0x22b161(0x83)][_0x22b161(0x6f)]||join(homedir(),_0xb142ce['SkjmK']);}export function getUserSkillsDir(){const _0x2e1e1b=_0x3ce8,_0x586575={'OrhIR':function(_0x400bc9,_0x1c5241,_0x5cd6c0){return _0x400bc9(_0x1c5241,_0x5cd6c0);}};return _0x586575[_0x2e1e1b(0x7c)](join,getClaudeConfigDir(),_0x2e1e1b(0x76));}function _0x3ce8(_0x29612f,_0x5ed40b){_0x29612f=_0x29612f-0x6a;const _0x862534=_0x8625();let _0x3ce805=_0x862534[_0x29612f];return _0x3ce805;}export function getProjectRoot(){const _0x4baf0e=_0x3ce8,_0x11afaa={'ZqMTZ':function(_0x1726ce,_0x30fdba){return _0x1726ce(_0x30fdba);},'Wyzdi':'.claude','TUCSh':function(_0x229940,_0x134ebe,_0x36760b){return _0x229940(_0x134ebe,_0x36760b);},'FWZDj':'.git'};let _0x5d5228=process['cwd']();const _0x5cdd9c=parse(_0x5d5228)[_0x4baf0e(0x70)];while(_0x5d5228!==_0x5cdd9c){if(_0x11afaa[_0x4baf0e(0x6d)](existsSync,join(_0x5d5228,_0x11afaa['Wyzdi'])))return _0x5d5228;if(existsSync(_0x11afaa[_0x4baf0e(0x6a)](join,_0x5d5228,_0x11afaa[_0x4baf0e(0x73)])))return _0x5d5228;_0x5d5228=_0x11afaa['ZqMTZ'](dirname,_0x5d5228);}return process[_0x4baf0e(0x81)]();}function _0x8625(){const _0x3d2dfb=['779830ceESJE','utf-8','skills','3034tiBHsH','942963dEuGtr','770958nnGotm','yBOei','3793560UxRljW','OrhIR','eqTDn','.claude','5QigRza','8423032ynlHvN','cwd','564xvpZVc','env','TUCSh','HXWhW','1124613vNAlHy','ZqMTZ','parse','CLAUDE_CONFIG_DIR','root','108fpZUQd','MLFBX','FWZDj'];_0x8625=function(){return _0x3d2dfb;};return _0x8625();}export function getProjectSkillsDir(){const _0x2d6174=_0x3ce8,_0x209715={'LXTaD':function(_0x5f2e80){return _0x5f2e80();}};return join(_0x209715['LXTaD'](getProjectRoot),_0x2d6174(0x7e),_0x2d6174(0x76));}export function getSkillsDir(_0xad2601){const _0x71bc6=_0x3ce8,_0x379479={'eqTDn':'user','HXWhW':function(_0x552a66){return _0x552a66();},'jRdTu':function(_0x39493f){return _0x39493f();}};return _0xad2601===_0x379479[_0x71bc6(0x7d)]?_0x379479[_0x71bc6(0x6b)](getUserSkillsDir):_0x379479['jRdTu'](getProjectSkillsDir);}export function getSettingsPath(){return join(getClaudeConfigDir(),'settings.json');}export async function loadClaudeSettings(){const _0x300932=_0x3ce8,_0x71c01e={'MLFBX':function(_0x56274f){return _0x56274f();},'fDmcU':function(_0x37c2cb,_0xabae26){return _0x37c2cb(_0xabae26);}},_0x312b0c=_0x71c01e[_0x300932(0x72)](getSettingsPath);if(!_0x71c01e['fDmcU'](existsSync,_0x312b0c))return{};try{const _0x2d13f8=await readFile(_0x312b0c,_0x300932(0x75));return JSON[_0x300932(0x6e)](_0x2d13f8);}catch{return{};}}export async function saveClaudeSettings(_0x22ecba){const _0x4a4c50=_0x3ce8,_0x36a743={'HnYAn':function(_0x1b50f5,_0xb783c2){return _0x1b50f5(_0xb783c2);},'yBOei':_0x4a4c50(0x75)},_0x35adcf=getSettingsPath(),_0x30aa36=getClaudeConfigDir();!_0x36a743['HnYAn'](existsSync,_0x30aa36)&&await mkdir(_0x30aa36,{'recursive':!![]}),await writeFile(_0x35adcf,JSON['stringify'](_0x22ecba,null,0x2)+'\x0a',_0x36a743[_0x4a4c50(0x7a)]);}
1
+ (function(_0x4559d0,_0x18e6dc){const _0x92864b=_0x24ec,_0xd5923a=_0x4559d0();while(!![]){try{const _0x1247d6=parseInt(_0x92864b(0x8b))/0x1*(parseInt(_0x92864b(0x8d))/0x2)+parseInt(_0x92864b(0x87))/0x3+parseInt(_0x92864b(0x8f))/0x4*(parseInt(_0x92864b(0x98))/0x5)+-parseInt(_0x92864b(0x93))/0x6*(-parseInt(_0x92864b(0x97))/0x7)+-parseInt(_0x92864b(0x9c))/0x8*(parseInt(_0x92864b(0x9a))/0x9)+-parseInt(_0x92864b(0x8c))/0xa+parseInt(_0x92864b(0x95))/0xb*(-parseInt(_0x92864b(0x81))/0xc);if(_0x1247d6===_0x18e6dc)break;else _0xd5923a['push'](_0xd5923a['shift']());}catch(_0x1e7277){_0xd5923a['push'](_0xd5923a['shift']());}}}(_0x308c,0xcd709));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 _0x1e83ef=_0x24ec;return process[_0x1e83ef(0x94)][_0x1e83ef(0x9e)]||join(homedir(),'.claude');}export function getUserSkillsDir(){const _0x4831cb=_0x24ec,_0x1792f5={'SRPcS':_0x4831cb(0x9d)};return join(getClaudeConfigDir(),_0x1792f5[_0x4831cb(0x82)]);}function _0x24ec(_0xaacbfa,_0x3b6064){_0xaacbfa=_0xaacbfa-0x81;const _0x308c7d=_0x308c();let _0x24ec5b=_0x308c7d[_0xaacbfa];return _0x24ec5b;}export function getProjectRoot(){const _0x3c0db9=_0x24ec,_0x3d9121={'kBnZq':function(_0x22d4f9,_0xb29fca){return _0x22d4f9(_0xb29fca);},'zceVT':function(_0x3d89e9,_0x5d9290,_0x5dfb66){return _0x3d89e9(_0x5d9290,_0x5dfb66);},'exDfl':'.git','IiyYM':function(_0x2b7bcf,_0x871d91){return _0x2b7bcf(_0x871d91);}};let _0x4d4a00=process['cwd']();const _0x152b89=parse(_0x4d4a00)[_0x3c0db9(0x92)];while(_0x4d4a00!==_0x152b89){if(existsSync(join(_0x4d4a00,'.claude')))return _0x4d4a00;if(_0x3d9121['kBnZq'](existsSync,_0x3d9121[_0x3c0db9(0x86)](join,_0x4d4a00,_0x3d9121[_0x3c0db9(0x88)])))return _0x4d4a00;_0x4d4a00=_0x3d9121['IiyYM'](dirname,_0x4d4a00);}return process['cwd']();}export function getProjectSkillsDir(){return join(getProjectRoot(),'.claude','skills');}export function getSkillsDir(_0x1de76d){const _0x1f471a=_0x24ec,_0x304393={'vRDjU':function(_0x3c4735,_0x4301e2){return _0x3c4735===_0x4301e2;},'KVxde':_0x1f471a(0x89),'HjsZg':function(_0x54ab88){return _0x54ab88();}};return _0x304393[_0x1f471a(0x90)](_0x1de76d,_0x304393['KVxde'])?_0x304393['HjsZg'](getUserSkillsDir):getProjectSkillsDir();}function _0x308c(){const _0x336b14=['260992YiMvru','7675150ohCkoM','6xQlAic','parse','316FqjmAE','vRDjU','BSsiw','root','30zhYEte','env','473XUzEoX','txVAX','1190693AaDsfL','93845bDeXNT','settings.json','376965rBwwUB','WFWFR','96rLRKYF','skills','CLAUDE_CONFIG_DIR','652188iyhfPR','SRPcS','atyYR','GtlwC','kOpyz','zceVT','3997203byjIQW','exDfl','user','HOhtx'];_0x308c=function(){return _0x336b14;};return _0x308c();}export function getSettingsPath(){const _0x812dbc=_0x24ec;return join(getClaudeConfigDir(),_0x812dbc(0x99));}export async function loadClaudeSettings(){const _0x4c5893=_0x24ec,_0x18117e={'WFWFR':function(_0x3486fe){return _0x3486fe();},'txVAX':function(_0x14e01d,_0x5c9014){return _0x14e01d(_0x5c9014);},'HOhtx':function(_0x264b2d,_0x432588,_0x7e521e){return _0x264b2d(_0x432588,_0x7e521e);}},_0x51a028=_0x18117e[_0x4c5893(0x9b)](getSettingsPath);if(!_0x18117e[_0x4c5893(0x96)](existsSync,_0x51a028))return{};try{const _0x27dcde=await _0x18117e[_0x4c5893(0x8a)](readFile,_0x51a028,'utf-8');return JSON[_0x4c5893(0x8e)](_0x27dcde);}catch{return{};}}export async function saveClaudeSettings(_0x5ac03f){const _0x474fc6=_0x24ec,_0x1d700d={'atyYR':function(_0x9b52e7){return _0x9b52e7();},'LVold':function(_0x3bb011,_0x6de3e2){return _0x3bb011(_0x6de3e2);},'GtlwC':function(_0x4e0820,_0x58f74c,_0x25bd5c){return _0x4e0820(_0x58f74c,_0x25bd5c);},'kOpyz':function(_0x1339f7,_0x2046e6,_0x577fe0,_0x3660c4){return _0x1339f7(_0x2046e6,_0x577fe0,_0x3660c4);},'BSsiw':function(_0x2f325e,_0x3676ad){return _0x2f325e+_0x3676ad;}},_0xec84af=_0x1d700d[_0x474fc6(0x83)](getSettingsPath),_0x1ee5fd=getClaudeConfigDir();!_0x1d700d['LVold'](existsSync,_0x1ee5fd)&&await _0x1d700d[_0x474fc6(0x84)](mkdir,_0x1ee5fd,{'recursive':!![]}),await _0x1d700d[_0x474fc6(0x85)](writeFile,_0xec84af,_0x1d700d[_0x474fc6(0x91)](JSON['stringify'](_0x5ac03f,null,0x2),'\x0a'),'utf-8');}
@@ -1 +1 @@
1
- function _0x5ef7(_0x2cf691,_0x5d10af){_0x2cf691=_0x2cf691-0x18d;const _0xf0ad5c=_0xf0ad();let _0x5ef7ce=_0xf0ad5c[_0x2cf691];return _0x5ef7ce;}function _0xf0ad(){const _0x48161c=['20994sDcgOt','9wBtvFX','12962dhlctT','1085670dRjKCx','329pUqtoe','1722800PljaNs','7098RcUTAr','6875coKHJM','5iLnVHN','27HBOqZx','637396lZZhVh','732LUXnEO'];_0xf0ad=function(){return _0x48161c;};return _0xf0ad();}(function(_0x4c72fc,_0x12cfd2){const _0x2588a2=_0x5ef7,_0x5ea678=_0x4c72fc();while(!![]){try{const _0x26eb35=parseInt(_0x2588a2(0x194))/0x1*(-parseInt(_0x2588a2(0x18d))/0x2)+parseInt(_0x2588a2(0x191))/0x3+-parseInt(_0x2588a2(0x195))/0x4*(-parseInt(_0x2588a2(0x193))/0x5)+-parseInt(_0x2588a2(0x197))/0x6*(parseInt(_0x2588a2(0x18f))/0x7)+-parseInt(_0x2588a2(0x190))/0x8*(-parseInt(_0x2588a2(0x198))/0x9)+parseInt(_0x2588a2(0x18e))/0xa+-parseInt(_0x2588a2(0x192))/0xb*(parseInt(_0x2588a2(0x196))/0xc);if(_0x26eb35===_0x12cfd2)break;else _0x5ea678['push'](_0x5ea678['shift']());}catch(_0x5a49fe){_0x5ea678['push'](_0x5ea678['shift']());}}}(_0xf0ad,0x1a623));import{isByokEnabled}from'./environment.js';const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};export function buildClaudeOverrideExtraArgs(){const _0x443a2c={'iZDXR':function(_0xcabe64){return _0xcabe64();}};if(_0x443a2c['iZDXR'](isByokEnabled))return{};return{'settings':JSON['stringify'](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
1
+ function _0x15dd(_0x44f733,_0x2953a3){_0x44f733=_0x44f733-0xf5;const _0x43e737=_0x43e7();let _0x15dd1c=_0x43e737[_0x44f733];return _0x15dd1c;}(function(_0x2f49c1,_0x843a1a){const _0x3e6b7f=_0x15dd,_0x4b814c=_0x2f49c1();while(!![]){try{const _0x58a9ac=-parseInt(_0x3e6b7f(0xfb))/0x1+parseInt(_0x3e6b7f(0xf5))/0x2+parseInt(_0x3e6b7f(0xfc))/0x3*(-parseInt(_0x3e6b7f(0xf6))/0x4)+parseInt(_0x3e6b7f(0xf8))/0x5*(parseInt(_0x3e6b7f(0xfa))/0x6)+-parseInt(_0x3e6b7f(0x100))/0x7+-parseInt(_0x3e6b7f(0xff))/0x8+-parseInt(_0x3e6b7f(0xfd))/0x9*(-parseInt(_0x3e6b7f(0xf9))/0xa);if(_0x58a9ac===_0x843a1a)break;else _0x4b814c['push'](_0x4b814c['shift']());}catch(_0x540907){_0x4b814c['push'](_0x4b814c['shift']());}}}(_0x43e7,0xf0912));import{isByokEnabled}from'./environment.js';function _0x43e7(){const _0x2931c0=['695286ZbcFse','1308263eFgBSk','2253453ToJihd','18ZYFvpq','eOGMI','3956408LONQRC','6501796UmhrJQ','1757514KeTYQA','8plGspO','stringify','5Trgilx','21123340bVdXOY'];_0x43e7=function(){return _0x2931c0;};return _0x43e7();}const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};export function buildClaudeOverrideExtraArgs(){const _0x2dc344=_0x15dd,_0x313cc5={'eOGMI':function(_0x1b8493){return _0x1b8493();}};if(_0x313cc5[_0x2dc344(0xfe)](isByokEnabled))return{};return{'settings':JSON[_0x2dc344(0xf7)](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
@@ -1 +1 @@
1
- (function(_0x3296e0,_0x315412){const _0x84cbba=_0x2422,_0x410954=_0x3296e0();while(!![]){try{const _0xc408a3=parseInt(_0x84cbba(0x1f1))/0x1*(-parseInt(_0x84cbba(0x208))/0x2)+parseInt(_0x84cbba(0x1e2))/0x3*(-parseInt(_0x84cbba(0x20a))/0x4)+parseInt(_0x84cbba(0x1f7))/0x5+parseInt(_0x84cbba(0x205))/0x6*(parseInt(_0x84cbba(0x1fc))/0x7)+parseInt(_0x84cbba(0x1e1))/0x8+parseInt(_0x84cbba(0x1f5))/0x9*(parseInt(_0x84cbba(0x1e7))/0xa)+-parseInt(_0x84cbba(0x1fa))/0xb*(parseInt(_0x84cbba(0x1fe))/0xc);if(_0xc408a3===_0x315412)break;else _0x410954['push'](_0x410954['shift']());}catch(_0x1d3ca5){_0x410954['push'](_0x410954['shift']());}}}(_0x273b,0xbe3e5));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(_0x3803d8,_0xb44dd5){const _0x3dfe06=_0x2422,_0x36ceb6={'ekFbD':function(_0x56653d,_0x3184ae){return _0x56653d(_0x3184ae);},'BoKIu':'pipe','kFYVT':'inherit','XgDIt':function(_0x1f237d,_0x3e4aec,_0x37e216,_0x4c0173){return _0x1f237d(_0x3e4aec,_0x37e216,_0x4c0173);},'grmwp':_0x3dfe06(0x1e6)};return new Promise(_0x1266dd=>{const _0x5aed13=_0x3dfe06,_0x1d9e5f=_0xb44dd5?.[_0x5aed13(0x20d)]?[_0x5aed13(0x203),'pipe',_0x36ceb6[_0x5aed13(0x1ea)]]:[_0x5aed13(0x203),_0x5aed13(0x1e5),_0x36ceb6['kFYVT']],_0x48f756=_0x36ceb6[_0x5aed13(0x1f0)](spawn,_0x36ceb6[_0x5aed13(0x1eb)],_0x3803d8,{'stdio':_0x1d9e5f,'cwd':_0xb44dd5?.[_0x5aed13(0x202)]});let _0x3f358c='';_0xb44dd5?.[_0x5aed13(0x20d)]&&_0x48f756[_0x5aed13(0x201)]&&_0x48f756[_0x5aed13(0x201)]['on']('data',_0x23b6da=>{const _0x1bd97f=_0x5aed13;_0x3f358c+=_0x23b6da[_0x1bd97f(0x1fb)]();}),_0xb44dd5?.[_0x5aed13(0x20d)]&&_0x48f756[_0x5aed13(0x1f9)]&&_0x48f756[_0x5aed13(0x1f9)]['on']('data',_0x31a972=>{const _0x3bf245=_0x5aed13;_0x3f358c+=_0x31a972[_0x3bf245(0x1fb)]();}),_0x48f756['on']('close',_0x2c8a80=>{_0x2c8a80===0x0?_0x1266dd({'success':!![],'output':_0x3f358c}):_0x36ceb6['ekFbD'](_0x1266dd,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x2c8a80,'output':_0x3f358c});}),_0x48f756['on']('error',_0x403848=>{_0x1266dd({'success':![],'error':_0x403848['message']});});});}export async function isMarketplaceAdded(_0x13369c){const _0x11dbe1=_0x2422,_0x36f0e={'WGjHS':function(_0x3b4725,_0x1c4ff5,_0x36ce8e){return _0x3b4725(_0x1c4ff5,_0x36ce8e);},'IFkfa':_0x11dbe1(0x1ec)},_0x2f8106=await _0x36f0e[_0x11dbe1(0x1f2)](runClaudeCommand,[_0x36f0e['IFkfa'],_0x11dbe1(0x1e9),_0x11dbe1(0x20e)],{'captureOutput':!![]});if(!_0x2f8106[_0x11dbe1(0x206)]||!_0x2f8106[_0x11dbe1(0x207)])return![];return _0x2f8106[_0x11dbe1(0x207)]['includes'](_0x13369c);}export async function isPluginInstalled(_0x210842){const _0x423f12=_0x2422,_0x2119a3={'VSEpv':function(_0x4feeda,_0x525c41){return _0x4feeda(_0x525c41);},'fvrhp':function(_0x3432d1,_0x30c667){return _0x3432d1>_0x30c667;},'uhoQL':function(_0x3f364b,_0x2b1e2d,_0x3d4451){return _0x3f364b(_0x2b1e2d,_0x3d4451);},'CeEEw':_0x423f12(0x20e)},_0x1b0a8a=await _0x2119a3[_0x423f12(0x204)](getInstalledPluginInfoFromRegistry,_0x210842);if(_0x2119a3[_0x423f12(0x213)](_0x1b0a8a[_0x423f12(0x1f8)],0x0))return!![];const _0x37feea=await _0x2119a3[_0x423f12(0x1e3)](runClaudeCommand,['plugin',_0x2119a3[_0x423f12(0x1ef)]],{'captureOutput':!![]});if(!_0x37feea[_0x423f12(0x206)]||!_0x37feea[_0x423f12(0x207)])return![];return _0x37feea['output'][_0x423f12(0x1f6)](_0x210842);}function getInstalledPluginsPath(){const _0x27f5a9=_0x2422,_0x33360f={'QUEzh':_0x27f5a9(0x20b)};return join(getClaudeConfigDir(),'plugins',_0x33360f['QUEzh']);}function sortPluginInfo(_0x3252e7,_0x1b4a5b){const _0x110669=_0x2422,_0x2b6c16={'gUEYR':function(_0x58e831,_0x32c42a){return _0x58e831-_0x32c42a;},'kBitV':'user'},_0x47eb2f={'project':0x0,'local':0x1,'user':0x2};return _0x2b6c16['gUEYR'](_0x47eb2f[_0x3252e7[_0x110669(0x212)]??_0x110669(0x210)],_0x47eb2f[_0x1b4a5b[_0x110669(0x212)]??_0x2b6c16[_0x110669(0x1fd)]]);}export function parseInstalledPluginInfo(_0x433a7b,_0x1d0447,_0x52a5f1){const _0x521715=_0x2422,_0x2f6d3c={'glIDN':function(_0x3ab1b1,_0x1a76c3){return _0x3ab1b1!==_0x1a76c3;},'eCETd':_0x521715(0x1f3),'vgtPO':function(_0x11af05,_0x15d762){return _0x11af05(_0x15d762);}},_0x45707f=JSON['parse'](_0x433a7b),_0x1def10=resolve(_0x52a5f1),_0x39355d=_0x45707f[_0x521715(0x1f4)]?.[_0x1d0447]??[];return _0x39355d[_0x521715(0x211)](_0x1fc944=>{const _0x5db6b3=_0x521715;if(_0x2f6d3c['glIDN'](_0x1fc944['scope'],_0x2f6d3c[_0x5db6b3(0x20c)])&&_0x1fc944['scope']!==_0x5db6b3(0x209))return!![];if(!_0x1fc944['projectPath'])return!![];return _0x2f6d3c['vgtPO'](resolve,_0x1fc944['projectPath'])===_0x1def10;})['map'](_0xdd51b4=>({'name':_0x1d0447,'scope':_0xdd51b4['scope'],'version':_0xdd51b4[_0x521715(0x200)]}))[_0x521715(0x1ff)](sortPluginInfo);}function _0x273b(){const _0xdcdd06=['plugins','3129579ZnIKqP','includes','1962090cFmUcA','length','stderr','3047KqAsJt','toString','50729oYAjpf','kBitV','17124CIIMox','sort','version','stdout','cwd','ignore','VSEpv','1230eoTQgV','success','output','1430608uJKWUJ','local','3188nrfKjA','installed_plugins.json','eCETd','captureOutput','list','enabled','user','filter','scope','fvrhp','2524032sbWkMY','5070SbaWaG','uhoQL','vOAdj','inherit','claude','30uHrhCI','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','marketplace','BoKIu','grmwp','plugin','match','qAvua','CeEEw','XgDIt','1RClNFw','WGjHS','project'];_0x273b=function(){return _0xdcdd06;};return _0x273b();}async function getInstalledPluginInfoFromRegistry(_0x367629){const _0x45b986=_0x2422,_0x25cc27={'vOAdj':'utf-8','qAvua':function(_0x1c4459,_0x30c810,_0x78e1c2,_0x356e02){return _0x1c4459(_0x30c810,_0x78e1c2,_0x356e02);}},_0x477a1e=getInstalledPluginsPath();if(!existsSync(_0x477a1e))return[];try{const _0x62299a=await readFile(_0x477a1e,_0x25cc27[_0x45b986(0x1e4)]);return _0x25cc27[_0x45b986(0x1ee)](parseInstalledPluginInfo,_0x62299a,_0x367629,getProjectRoot());}catch{return[];}}function _0x2422(_0x468c63,_0x1e337f){_0x468c63=_0x468c63-0x1e1;const _0x273bce=_0x273b();let _0x2422fa=_0x273bce[_0x468c63];return _0x2422fa;}export async function getPluginInfo(_0x462ae1){const _0x16742c=_0x2422,_0x510d32=await getInstalledPluginInfoFromRegistry(_0x462ae1);if(_0x510d32['length']>0x0)return _0x510d32[0x0];const _0xf1fed5=await runClaudeCommand([_0x16742c(0x1ec),'list'],{'captureOutput':!![]});if(!_0xf1fed5[_0x16742c(0x206)]||!_0xf1fed5[_0x16742c(0x207)])return null;if(!_0xf1fed5[_0x16742c(0x207)]['includes'](_0x462ae1))return null;const _0x4c349b={'name':_0x462ae1},_0xf53a1c=_0xf1fed5[_0x16742c(0x207)]['match'](new RegExp(_0x462ae1+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0xf53a1c&&(_0x4c349b['scope']=_0xf53a1c[0x1]['toLowerCase']());const _0x487378=_0xf1fed5[_0x16742c(0x207)][_0x16742c(0x1ed)](new RegExp(_0x462ae1+_0x16742c(0x1e8),'i'));_0x487378&&(_0x4c349b[_0x16742c(0x200)]=_0x487378[0x1]);const _0x55675b=_0xf1fed5[_0x16742c(0x207)][_0x16742c(0x1ed)](new RegExp(_0x462ae1+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x55675b&&(_0x4c349b[_0x16742c(0x20f)]=_0x55675b[0x1]['toLowerCase']()===_0x16742c(0x20f)),_0x4c349b;}
1
+ (function(_0x58036b,_0x2727e9){const _0x365555=_0x3ae1,_0x40da60=_0x58036b();while(!![]){try{const _0x444d3b=parseInt(_0x365555(0x146))/0x1+-parseInt(_0x365555(0x12f))/0x2*(-parseInt(_0x365555(0x144))/0x3)+parseInt(_0x365555(0x11e))/0x4*(parseInt(_0x365555(0x137))/0x5)+-parseInt(_0x365555(0x133))/0x6*(parseInt(_0x365555(0x13f))/0x7)+-parseInt(_0x365555(0x147))/0x8*(parseInt(_0x365555(0x127))/0x9)+parseInt(_0x365555(0x140))/0xa*(-parseInt(_0x365555(0x128))/0xb)+parseInt(_0x365555(0x11a))/0xc*(parseInt(_0x365555(0x13b))/0xd);if(_0x444d3b===_0x2727e9)break;else _0x40da60['push'](_0x40da60['shift']());}catch(_0x1d878c){_0x40da60['push'](_0x40da60['shift']());}}}(_0x1cf6,0xc4ac5));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(_0x133ea9,_0x235d2c){const _0x46a930=_0x3ae1,_0x550444={'XGrpo':function(_0x5ed7c9,_0x413e89){return _0x5ed7c9(_0x413e89);},'BOcIo':function(_0x214bc9,_0x2dedfa){return _0x214bc9(_0x2dedfa);},'qaAhr':_0x46a930(0x135),'UbWua':_0x46a930(0x138),'aFlWT':_0x46a930(0x11f),'QLlUr':function(_0x5299a1,_0xc813a1,_0x43b3c7,_0x300b11){return _0x5299a1(_0xc813a1,_0x43b3c7,_0x300b11);},'SRtlN':'data','JQqgT':_0x46a930(0x12a)};return new Promise(_0x10b823=>{const _0x2f5050=_0x46a930,_0x495836={'xbiVv':function(_0x3b69ec,_0x3706d3){return _0x550444['BOcIo'](_0x3b69ec,_0x3706d3);},'rmBux':function(_0x295b9f,_0x11a98e){return _0x295b9f(_0x11a98e);}},_0xbe659f=_0x235d2c?.[_0x2f5050(0x124)]?[_0x550444[_0x2f5050(0x12c)],_0x550444['UbWua'],_0x2f5050(0x138)]:[_0x550444['qaAhr'],_0x550444['aFlWT'],_0x550444[_0x2f5050(0x12d)]],_0x2eac84=_0x550444[_0x2f5050(0x134)](spawn,'claude',_0x133ea9,{'stdio':_0xbe659f,'cwd':_0x235d2c?.['cwd']});let _0x1093ee='';_0x235d2c?.[_0x2f5050(0x124)]&&_0x2eac84[_0x2f5050(0x139)]&&_0x2eac84['stdout']['on'](_0x550444[_0x2f5050(0x12e)],_0x125ab5=>{const _0x470b89=_0x2f5050;_0x1093ee+=_0x125ab5[_0x470b89(0x13a)]();}),_0x235d2c?.[_0x2f5050(0x124)]&&_0x2eac84[_0x2f5050(0x132)]&&_0x2eac84[_0x2f5050(0x132)]['on'](_0x550444['SRtlN'],_0x231948=>{_0x1093ee+=_0x231948['toString']();}),_0x2eac84['on'](_0x550444['JQqgT'],_0x549b7c=>{_0x549b7c===0x0?_0x495836['xbiVv'](_0x10b823,{'success':!![],'output':_0x1093ee}):_0x495836['rmBux'](_0x10b823,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x549b7c,'output':_0x1093ee});}),_0x2eac84['on'](_0x2f5050(0x123),_0x194739=>{const _0x41fdd3=_0x2f5050;_0x550444[_0x41fdd3(0x121)](_0x10b823,{'success':![],'error':_0x194739['message']});});});}export async function isMarketplaceAdded(_0x503ca0){const _0x15d525=_0x3ae1,_0x1c7756={'ZETiu':function(_0x45fcdd,_0x22f710,_0x174907){return _0x45fcdd(_0x22f710,_0x174907);},'CQmby':_0x15d525(0x120)},_0x2daff6=await _0x1c7756[_0x15d525(0x11c)](runClaudeCommand,[_0x15d525(0x129),_0x1c7756['CQmby'],_0x15d525(0x149)],{'captureOutput':!![]});if(!_0x2daff6[_0x15d525(0x122)]||!_0x2daff6[_0x15d525(0x11d)])return![];return _0x2daff6['output']['includes'](_0x503ca0);}export async function isPluginInstalled(_0x104e5b){const _0x1abc27=_0x3ae1,_0x12d5b6={'pEhER':function(_0x2df400,_0x4c3abe){return _0x2df400(_0x4c3abe);},'VaaKh':function(_0x210bed,_0x3ae45d){return _0x210bed>_0x3ae45d;}},_0xa301d3=await _0x12d5b6['pEhER'](getInstalledPluginInfoFromRegistry,_0x104e5b);if(_0x12d5b6[_0x1abc27(0x141)](_0xa301d3[_0x1abc27(0x131)],0x0))return!![];const _0x13e9bd=await runClaudeCommand([_0x1abc27(0x129),_0x1abc27(0x149)],{'captureOutput':!![]});if(!_0x13e9bd['success']||!_0x13e9bd['output'])return![];return _0x13e9bd['output'][_0x1abc27(0x126)](_0x104e5b);}function getInstalledPluginsPath(){const _0x3ac6f9=_0x3ae1,_0x9a873a={'CxEii':'plugins'};return join(getClaudeConfigDir(),_0x9a873a[_0x3ac6f9(0x119)],'installed_plugins.json');}function _0x3ae1(_0x202da7,_0x57f3c7){_0x202da7=_0x202da7-0x119;const _0x1cf6d3=_0x1cf6();let _0x3ae131=_0x1cf6d3[_0x202da7];return _0x3ae131;}function sortPluginInfo(_0x25089f,_0x17126c){const _0x5c7be1=_0x3ae1,_0x2509a7={'ucKoA':function(_0x265a12,_0x123d2d){return _0x265a12-_0x123d2d;}},_0x20ae71={'project':0x0,'local':0x1,'user':0x2};return _0x2509a7[_0x5c7be1(0x13d)](_0x20ae71[_0x25089f[_0x5c7be1(0x130)]??_0x5c7be1(0x145)],_0x20ae71[_0x17126c['scope']??'user']);}export function parseInstalledPluginInfo(_0x50cd02,_0x3bf3a6,_0x404b94){const _0x4faaa3=_0x3ae1,_0xc32301={'bDLLB':function(_0x37e101,_0x656d44){return _0x37e101!==_0x656d44;},'BxclG':function(_0x470c41,_0x2d6d4e){return _0x470c41===_0x2d6d4e;},'QjCdo':function(_0x5f3212,_0x2e4479){return _0x5f3212(_0x2e4479);}},_0x4e348d=JSON['parse'](_0x50cd02),_0x3d20cc=resolve(_0x404b94),_0x5dd6f2=_0x4e348d['plugins']?.[_0x3bf3a6]??[];return _0x5dd6f2['filter'](_0x5c2256=>{const _0x8030f7=_0x3ae1;if(_0xc32301['bDLLB'](_0x5c2256[_0x8030f7(0x130)],'project')&&_0x5c2256['scope']!=='local')return!![];if(!_0x5c2256['projectPath'])return!![];return _0xc32301[_0x8030f7(0x13e)](_0xc32301['QjCdo'](resolve,_0x5c2256['projectPath']),_0x3d20cc);})['map'](_0x2def28=>({'name':_0x3bf3a6,'scope':_0x2def28[_0x4faaa3(0x130)],'version':_0x2def28[_0x4faaa3(0x143)]}))[_0x4faaa3(0x142)](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0x2c480c){const _0x134619=_0x3ae1,_0x54fb49={'ZnkUR':function(_0x4b3d95,_0x1a1f9b,_0x4d92e0){return _0x4b3d95(_0x1a1f9b,_0x4d92e0);}},_0x331501=getInstalledPluginsPath();if(!existsSync(_0x331501))return[];try{const _0x205e7a=await _0x54fb49['ZnkUR'](readFile,_0x331501,_0x134619(0x14a));return parseInstalledPluginInfo(_0x205e7a,_0x2c480c,getProjectRoot());}catch{return[];}}function _0x1cf6(){const _0x55415f=['match','list','utf-8','CxEii','17855532ttvlUe','OtBte','ZETiu','output','5524BrcQeZ','inherit','marketplace','XGrpo','success','error','captureOutput','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','includes','1287nOnGlr','2866424DiEeqx','plugin','close','enabled','qaAhr','aFlWT','SRtlN','96836iIwwDI','scope','length','stderr','330bCzHUn','QLlUr','ignore','toLowerCase','1415LflaGR','pipe','stdout','toString','26lGBfky','dFRrk','ucKoA','BxclG','173656MmrclO','60zbcddr','VaaKh','sort','version','75FaZmmB','user','319627gOGYWx','65080glvQPy'];_0x1cf6=function(){return _0x55415f;};return _0x1cf6();}export async function getPluginInfo(_0x554f44){const _0x11077f=_0x3ae1,_0x257eaf={'dCxXF':function(_0x1bea6c,_0x3d2942){return _0x1bea6c>_0x3d2942;},'dFRrk':function(_0x2b9202,_0x52790a,_0x643145){return _0x2b9202(_0x52790a,_0x643145);},'OtBte':_0x11077f(0x149),'TlpDN':'enabled'},_0x304c1c=await getInstalledPluginInfoFromRegistry(_0x554f44);if(_0x257eaf['dCxXF'](_0x304c1c[_0x11077f(0x131)],0x0))return _0x304c1c[0x0];const _0x4e2463=await _0x257eaf[_0x11077f(0x13c)](runClaudeCommand,['plugin',_0x257eaf[_0x11077f(0x11b)]],{'captureOutput':!![]});if(!_0x4e2463[_0x11077f(0x122)]||!_0x4e2463['output'])return null;if(!_0x4e2463[_0x11077f(0x11d)]['includes'](_0x554f44))return null;const _0x33754d={'name':_0x554f44},_0x4829e0=_0x4e2463['output'][_0x11077f(0x148)](new RegExp(_0x554f44+_0x11077f(0x125),'i'));_0x4829e0&&(_0x33754d[_0x11077f(0x130)]=_0x4829e0[0x1]['toLowerCase']());const _0x1b4cab=_0x4e2463['output'][_0x11077f(0x148)](new RegExp(_0x554f44+'[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','i'));_0x1b4cab&&(_0x33754d[_0x11077f(0x143)]=_0x1b4cab[0x1]);const _0x3fc625=_0x4e2463['output'][_0x11077f(0x148)](new RegExp(_0x554f44+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x3fc625&&(_0x33754d[_0x11077f(0x12b)]=_0x3fc625[0x1][_0x11077f(0x136)]()===_0x257eaf['TlpDN']),_0x33754d;}