@ranger-testing/ranger-cli 3.1.3-alpha.546c9e8-43 → 3.1.3

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 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/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 -1
  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 -1
  85. package/package.json +2 -2
@@ -1 +1 @@
1
- (function(_0x37073b,_0x536d2e){const _0x1a6483=_0xfc79,_0x1e1bb6=_0x37073b();while(!![]){try{const _0x331815=-parseInt(_0x1a6483(0x1a6))/0x1*(-parseInt(_0x1a6483(0x178))/0x2)+parseInt(_0x1a6483(0x187))/0x3+parseInt(_0x1a6483(0x190))/0x4*(parseInt(_0x1a6483(0x192))/0x5)+-parseInt(_0x1a6483(0x166))/0x6+-parseInt(_0x1a6483(0x19c))/0x7*(parseInt(_0x1a6483(0x17a))/0x8)+-parseInt(_0x1a6483(0x196))/0x9*(-parseInt(_0x1a6483(0x18b))/0xa)+parseInt(_0x1a6483(0x18a))/0xb*(parseInt(_0x1a6483(0x16a))/0xc);if(_0x331815===_0x536d2e)break;else _0x1e1bb6['push'](_0x1e1bb6['shift']());}catch(_0x10e77a){_0x1e1bb6['push'](_0x1e1bb6['shift']());}}}(_0x1d10,0x60c55));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile,writeFile}from'fs/promises';import{installSkill,removeSkill,RANGER_MANAGED_SKILLS,DEPRECATED_SKILLS}from'./utils/skills.js';import{PACKAGE_NAME,getCurrentVersion,getLatestVersion,compareVersions}from'./utils/version.js';import{getProjectRoot,getSkillsDir}from'./utils/claudeConfig.js';import{getOpencodeSkillsDir}from'./utils/opencodeConfig.js';import{join}from'path';import{getRangerDir}from'./utils/rangerRoot.js';import{getPluginInfo,isMarketplaceAdded,isPluginInstalled}from'./utils/claudePlugin.js';function _0x1d10(){const _0x8908ed=['kfEUx','\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','test','ignore','inherit','\x0aSuccessfully\x20updated\x20to\x20version\x20',').\x20Staying\x20on\x20','aFhgZ','log','qpzPK','RuMfa','QaThg','\x0a✅\x20Update\x20complete!','705912bbevbC','ranger@trailhead','PpKuX','xOnfZ','627132zVaLfN','bMjWt','\x0aYour\x20version\x20(','VUmSW','hORdQ','VyFgV','Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22','project','cwd','Latest\x20version:\x20\x20','Ejysh','warn','OJwAG','zFmQS','24crCjdo','user','4755912PHhKrJ','latest','\x22.\x20','Attempting\x20install\x20anyway...','push','timeoutMs','@latest','TKbqm','FYqco','dUYUo','length','.gitignore','\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','507624qHRpxH','\x20channel.',')\x20is\x20newer\x20than\x20the\x20published\x20version\x20(','77UfMPoD','1443720gbfmwK','plugin','Update\x20failed.','OQAOJ','\x0aSuccessfully\x20installed\x20','485228SVxrOg','SlLlT','5mdTzMx','win32','split','endsWith','18Dvllcw','mVgER','\x20skill\x20','claude','opencode','.0.0','7lRjSLY','zpAyh','\x0aReinstalling\x20','\x0aInstalling\x20','ttLkB','lLYNc','some','\x0aClaude\x20marketplace\x20updated\x20(trailhead).','stdio','install','13619DxrGrb','SXWZU','version','update','DhSqR','Prerelease\x20channel\x20detected\x20(@','error','Checking\x20for\x20updates...','\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','Avjwl','local','close'];_0x1d10=function(){return _0x8908ed;};return _0x1d10();}const CLAUDE_COMMAND_TIMEOUT_MS=0x1d4c0;async function runCommand(_0x22c20d,_0x146433,_0x10cd87){const _0x48202f=_0xfc79,_0x5a73ce={'DhSqR':function(_0x5cb1d9,_0xb67167){return _0x5cb1d9(_0xb67167);},'xOnfZ':function(_0x258346,_0x2eee70,_0x12ebc1,_0x1e11d3){return _0x258346(_0x2eee70,_0x12ebc1,_0x1e11d3);},'SlLlT':_0x48202f(0x15d),'brVbj':_0x48202f(0x193),'hNTkd':'error'};return new Promise(_0x3e7b89=>{const _0x1b2521=_0x48202f;let _0x514f3e=![],_0x90a8b9;const _0x15bdb6=_0x441691=>{const _0x2d6b08=_0xfc79;if(_0x514f3e)return;_0x514f3e=!![],_0x90a8b9&&clearTimeout(_0x90a8b9),_0x5a73ce[_0x2d6b08(0x1aa)](_0x3e7b89,_0x441691);},_0x370a42=_0x5a73ce[_0x1b2521(0x169)](spawn,_0x22c20d,_0x146433,{'stdio':['ignore',_0x10cd87?.[_0x1b2521(0x1a4)]??_0x5a73ce[_0x1b2521(0x191)],_0x10cd87?.['stdio']??_0x1b2521(0x15d)],'cwd':_0x10cd87?.[_0x1b2521(0x172)],'shell':process['platform']===_0x5a73ce['brVbj']});_0x90a8b9=_0x10cd87?.[_0x1b2521(0x17f)]?setTimeout(()=>{const _0x59232d=_0x1b2521;_0x370a42['kill'](),_0x370a42['unref'](),_0x5a73ce[_0x59232d(0x1aa)](_0x15bdb6,![]);},_0x10cd87['timeoutMs']):undefined,_0x370a42['on'](_0x1b2521(0x158),_0x2ee264=>{_0x15bdb6(_0x2ee264===0x0);}),_0x370a42['on'](_0x5a73ce['hNTkd'],()=>{const _0x5c9c5a=_0x1b2521;_0x5a73ce[_0x5c9c5a(0x1aa)](_0x15bdb6,![]);});});}export function resolveDistTag(_0x37de87){const _0x11db03=_0xfc79,_0x48c601={'kfEUx':'beta','zFmQS':_0x11db03(0x17b)};if(/-alpha\./i[_0x11db03(0x15b)](_0x37de87))return'alpha';if(/-beta\./i[_0x11db03(0x15b)](_0x37de87))return _0x48c601[_0x11db03(0x159)];if(/-rc\./i['test'](_0x37de87))return'rc';return _0x48c601[_0x11db03(0x177)];}function _0xfc79(_0xc17b8c,_0x18786a){_0xc17b8c=_0xc17b8c-0x153;const _0x1d10a6=_0x1d10();let _0xfc7933=_0x1d10a6[_0xc17b8c];return _0xfc7933;}export function resolveInstallTarget(_0x182269){const _0x2e4a0e=_0xfc79,_0x53a563={'wZYal':function(_0x5d48eb,_0x289f10){return _0x5d48eb(_0x289f10);},'qpzPK':function(_0x1f513d,_0x3347f4){return _0x1f513d!==_0x3347f4;},'ySkwa':_0x2e4a0e(0x17b)},_0x282837=_0x53a563['wZYal'](resolveDistTag,_0x182269);if(_0x53a563[_0x2e4a0e(0x162)](_0x282837,'latest'))return _0x282837;const _0x49b897=_0x182269[_0x2e4a0e(0x194)]('.')[0x0],_0x47d058=parseInt(_0x49b897,0xa);if(!Number['isFinite'](_0x47d058))return _0x53a563['ySkwa'];return'^'+_0x47d058+_0x2e4a0e(0x19b);}async function runInstall(_0x2e6ed1){const _0x4adfe6=_0xfc79,_0x18f13c={'qXiTA':_0x4adfe6(0x1a5),'KScPf':_0x4adfe6(0x15c),'VUmSW':_0x4adfe6(0x15d),'mLOor':function(_0x65f93,_0x284a2f){return _0x65f93===_0x284a2f;},'aFhgZ':'win32'},_0x35c35f=resolveInstallTarget(_0x2e6ed1);return new Promise(_0x4d77fd=>{const _0x3aa049=_0x4adfe6;console['log'](_0x3aa049(0x19f)+PACKAGE_NAME+'@'+_0x35c35f+'...\x0a');const _0x352352=spawn('npm',[_0x18f13c['qXiTA'],'-g',PACKAGE_NAME+'@'+_0x35c35f],{'stdio':[_0x18f13c['KScPf'],_0x18f13c['VUmSW'],_0x18f13c[_0x3aa049(0x16d)]],'shell':_0x18f13c['mLOor'](process['platform'],_0x18f13c[_0x3aa049(0x160)])});_0x352352['on']('close',_0x485bb6=>{_0x4d77fd(_0x485bb6===0x0);}),_0x352352['on']('error',()=>{_0x4d77fd(![]);});});}async function updateClaudeMarketplace(){const _0x2ada12=_0xfc79,_0x76a962={'qflwf':'claude','SXWZU':_0x2ada12(0x18c)},_0x2691ce=await runCommand(_0x76a962['qflwf'],[_0x76a962[_0x2ada12(0x1a7)],'marketplace','update','trailhead'],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x2691ce)throw new Error('Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).');}async function updateClaudePlugin(_0x1bc92f='user'){const _0x299a3f=_0xfc79,_0xa2afeb={'IVbtJ':function(_0x532cde,_0x4de7f1,_0x5ac5d1,_0x4b3147){return _0x532cde(_0x4de7f1,_0x5ac5d1,_0x4b3147);},'oqVwF':_0x299a3f(0x199),'TbyGW':'project','dUYUo':'local','zGozi':function(_0x1922fe){return _0x1922fe();}},_0x5ef698=['plugin',_0x299a3f(0x1a9),'ranger@trailhead'];_0x1bc92f!==_0x299a3f(0x179)&&_0x5ef698[_0x299a3f(0x17e)]('--scope',_0x1bc92f);const _0x4b96bd=await _0xa2afeb['IVbtJ'](runCommand,_0xa2afeb['oqVwF'],_0x5ef698,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x1bc92f===_0xa2afeb['TbyGW']||_0x1bc92f===_0xa2afeb[_0x299a3f(0x183)]?_0xa2afeb['zGozi'](getProjectRoot):undefined});if(!_0x4b96bd)throw new Error('Claude\x20plugin\x20update\x20failed\x20for\x20'+_0x1bc92f+_0x299a3f(0x155));}function isSkillInstalled(_0x14991,_0x4b098b,_0x249212){const _0x519332=_0xfc79,_0x2d841b={'RuMfa':_0x519332(0x19a),'OQAOJ':function(_0x8ccfd6,_0x1117d1){return _0x8ccfd6(_0x1117d1);}},_0x1bf558=_0x249212===_0x2d841b[_0x519332(0x163)]?getOpencodeSkillsDir(_0x4b098b):getSkillsDir(_0x4b098b),_0x473fca=join(_0x1bf558,_0x14991);return _0x2d841b[_0x519332(0x18e)](existsSync,_0x473fca);}async function reinstallSkills(_0x34a879){const _0x181a4a=_0xfc79,_0x396a38={'hORdQ':_0x181a4a(0x179),'bMjWt':_0x181a4a(0x199)},_0x2b7c5b=[_0x181a4a(0x171),_0x396a38[_0x181a4a(0x16e)]],_0x2ea1ee=[];for(const _0x150244 of _0x2b7c5b){for(const _0x5be114 of RANGER_MANAGED_SKILLS){isSkillInstalled(_0x5be114,_0x150244,_0x396a38[_0x181a4a(0x16b)])&&_0x2ea1ee[_0x181a4a(0x17e)]({'skillName':_0x5be114,'level':_0x150244,'platform':_0x396a38['bMjWt']}),isSkillInstalled(_0x5be114,_0x150244,_0x181a4a(0x19a))&&_0x2ea1ee['push']({'skillName':_0x5be114,'level':_0x150244,'platform':'opencode'});}}for(const _0x554f06 of _0x2b7c5b){for(const _0x6a8ca0 of DEPRECATED_SKILLS){await removeSkill(_0x6a8ca0,_0x554f06);}}if(_0x2ea1ee['length']===0x0){console[_0x181a4a(0x161)](_0x181a4a(0x15a));return;}console['log'](_0x181a4a(0x19e)+_0x2ea1ee['length']+'\x20ranger-managed\x20skill(s)...');for(const {skillName:_0x2e2727,level:_0x322801,platform:_0x592a38}of _0x2ea1ee){try{await installSkill(_0x2e2727,{'level':_0x322801,'cliVersion':_0x34a879,'platform':_0x592a38});}catch(_0xddf2e9){console[_0x181a4a(0x175)]('\x20\x20Failed\x20to\x20reinstall\x20'+_0x592a38+'\x20'+_0x322801+_0x181a4a(0x198)+_0x2e2727+':',_0xddf2e9);}}}async function ensureActiveProfileGitignored(){const _0x299fa6=_0xfc79,_0x4156a6={'QaThg':function(_0x326e0b,_0x4de9f4,_0x465433){return _0x326e0b(_0x4de9f4,_0x465433);},'Ejysh':function(_0x4af0be,_0x26f1aa){return _0x4af0be(_0x26f1aa);},'TKbqm':'utf-8','tFNcU':function(_0x43c7fc,_0x5ccbe7,_0x45ea87,_0x575bda){return _0x43c7fc(_0x5ccbe7,_0x45ea87,_0x575bda);}},_0x4a1a57=_0x4156a6[_0x299fa6(0x164)](join,getRangerDir(),_0x299fa6(0x185));if(!_0x4156a6[_0x299fa6(0x174)](existsSync,_0x4a1a57))return![];let _0x19ba45='';try{_0x19ba45=await _0x4156a6[_0x299fa6(0x164)](readFile,_0x4a1a57,_0x4156a6['TKbqm']);}catch{return![];}const _0x9af764=_0x19ba45['split'](/\r?\n/);if(_0x9af764[_0x299fa6(0x1a2)](_0x32810b=>_0x32810b['trim']()==='active-profile.txt'))return![];let _0x5aef81=_0x9af764['findIndex'](_0x5ad42e=>_0x5ad42e['trim']()==='active-feature.txt');_0x5aef81===-0x1&&(_0x5aef81=_0x9af764[_0x299fa6(0x184)]);_0x9af764['splice'](_0x5aef81,0x0,'active-profile.txt');let _0x165b5d=_0x9af764['join']('\x0a');!_0x165b5d[_0x299fa6(0x195)]('\x0a')&&(_0x165b5d+='\x0a');try{await _0x4156a6['tFNcU'](writeFile,_0x4a1a57,_0x165b5d,_0x4156a6[_0x299fa6(0x181)]);}catch{return![];}return!![];}export async function update(){const _0x3af6d4=_0xfc79,_0x45e1d1={'FYqco':function(_0x5e652a){return _0x5e652a();},'PpKuX':function(_0x407374,_0x12adf0){return _0x407374(_0x12adf0);},'YhuMz':function(_0x2d231a,_0x515a8a){return _0x2d231a!==_0x515a8a;},'VyFgV':_0x3af6d4(0x154),'zpAyh':function(_0x38b72d,_0x1227c9){return _0x38b72d+_0x1227c9;},'yeYsU':function(_0x17b3df,_0x5e02d1,_0x5b9ee5){return _0x17b3df(_0x5e02d1,_0x5b9ee5);},'HXlcM':function(_0x25acf1,_0x1a8b70){return _0x25acf1===_0x1a8b70;},'ygSmP':'\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','IJVFT':function(_0x226faa,_0x55fb6e){return _0x226faa<_0x55fb6e;},'ttLkB':function(_0x47a9ba,_0x4a67ef){return _0x47a9ba(_0x4a67ef);},'RcGFo':function(_0x273ff4,_0x2d563a){return _0x273ff4(_0x2d563a);},'Avjwl':_0x3af6d4(0x167),'lLYNc':function(_0x2bb970){return _0x2bb970();},'JVeEa':_0x3af6d4(0x1a3),'NyQzs':_0x3af6d4(0x179),'OJwAG':function(_0x5d9e29,_0x54a6aa){return _0x5d9e29===_0x54a6aa;},'rTSjg':'project','mVgER':_0x3af6d4(0x186)},_0x7ced9f=_0x45e1d1[_0x3af6d4(0x182)](getCurrentVersion);console['log']('\x0aCurrent\x20version:\x20'+_0x7ced9f);const _0x2f2a81=_0x45e1d1[_0x3af6d4(0x168)](resolveDistTag,_0x7ced9f);if(_0x45e1d1['YhuMz'](_0x2f2a81,'latest')){console['log'](_0x3af6d4(0x1ab)+_0x2f2a81+_0x3af6d4(0x15f)+_0x2f2a81+'\x20—\x20reinstalling\x20@'+_0x2f2a81+'...');const _0x3627af=await _0x45e1d1['PpKuX'](runInstall,_0x7ced9f);if(!_0x3627af)throw new Error('Update\x20failed\x20for\x20@'+_0x2f2a81+_0x3af6d4(0x188));const _0x21ac88=getCurrentVersion();console['log'](_0x3af6d4(0x18f)+PACKAGE_NAME+'@'+_0x2f2a81+'.'),await reinstallSkills(_0x21ac88),await _0x45e1d1[_0x3af6d4(0x182)](ensureActiveProfileGitignored),console['log']('\x0a✅\x20Update\x20complete!');return;}console[_0x3af6d4(0x161)](_0x45e1d1[_0x3af6d4(0x16f)]);const _0x4527cb=parseInt(_0x7ced9f[_0x3af6d4(0x194)]('.')[0x0],0xa);if(!Number['isFinite'](_0x4527cb))throw new Error(_0x45e1d1[_0x3af6d4(0x19d)](_0x45e1d1['zpAyh'](_0x3af6d4(0x170)+_0x7ced9f+_0x3af6d4(0x17c),'Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20'),'npm\x20i\x20-g\x20'+PACKAGE_NAME+_0x3af6d4(0x180)));const _0xf715c9=getLatestVersion(_0x4527cb);let _0x48fb8c=_0x7ced9f;if(!_0xf715c9[_0x3af6d4(0x1a8)]){console['warn']('\x0aCould\x20not\x20check\x20latest\x20version:\x20'+_0xf715c9['error']),console[_0x3af6d4(0x161)](_0x3af6d4(0x17d));const _0x198e56=await _0x45e1d1[_0x3af6d4(0x168)](runInstall,_0x7ced9f);if(_0x198e56)console[_0x3af6d4(0x161)]('\x0aSuccessfully\x20installed\x20latest\x20version.'),_0x48fb8c=_0x45e1d1['FYqco'](getCurrentVersion);else throw new Error('Update\x20failed:\x20'+_0xf715c9[_0x3af6d4(0x153)]);}else{const _0x27e495=_0xf715c9[_0x3af6d4(0x1a8)];console['log'](_0x3af6d4(0x173)+_0x27e495);const _0x28489b=_0x45e1d1['yeYsU'](compareVersions,_0x7ced9f,_0x27e495);if(_0x45e1d1['HXlcM'](_0x28489b,0x0))console[_0x3af6d4(0x161)](_0x45e1d1['ygSmP']);else{if(_0x45e1d1['IJVFT'](_0x28489b,0x0))console['log'](_0x3af6d4(0x16c)+_0x7ced9f+_0x3af6d4(0x189)+_0x27e495+').');else{const _0x396fdf=await _0x45e1d1[_0x3af6d4(0x1a0)](runInstall,_0x7ced9f);if(_0x396fdf)console[_0x3af6d4(0x161)](_0x3af6d4(0x15e)+_0x27e495),_0x48fb8c=_0x27e495;else throw new Error(_0x3af6d4(0x18d));}}}await _0x45e1d1['ttLkB'](reinstallSkills,_0x48fb8c);const _0x344664=await _0x45e1d1[_0x3af6d4(0x168)](isMarketplaceAdded,'trailhead'),_0x58866a=await _0x45e1d1['RcGFo'](isPluginInstalled,_0x45e1d1[_0x3af6d4(0x156)]);_0x344664&&(await _0x45e1d1[_0x3af6d4(0x1a1)](updateClaudeMarketplace),console['log'](_0x45e1d1['JVeEa']));if(_0x58866a){const _0x5ed84e=await getPluginInfo(_0x3af6d4(0x167)),_0x41a79c=_0x5ed84e?.['scope']??_0x45e1d1['NyQzs'];await updateClaudePlugin(_0x41a79c);if(_0x45e1d1['OJwAG'](_0x41a79c,_0x45e1d1['rTSjg']))console[_0x3af6d4(0x161)]('\x0aClaude\x20plugin\x20updated\x20(project\x20scope).');else _0x45e1d1[_0x3af6d4(0x176)](_0x41a79c,_0x3af6d4(0x157))?console[_0x3af6d4(0x161)]('\x0aClaude\x20plugin\x20updated\x20(local\x20scope).'):console[_0x3af6d4(0x161)](_0x45e1d1[_0x3af6d4(0x197)]);}const _0xc19c4=await ensureActiveProfileGitignored();console[_0x3af6d4(0x161)](_0x3af6d4(0x165));}
1
+ (function(_0x23cef9,_0x4f1a60){const _0x3976a6=_0x2751,_0x365db2=_0x23cef9();while(!![]){try{const _0x6f228e=-parseInt(_0x3976a6(0x125))/0x1+-parseInt(_0x3976a6(0x15b))/0x2+-parseInt(_0x3976a6(0x165))/0x3*(-parseInt(_0x3976a6(0x161))/0x4)+-parseInt(_0x3976a6(0x15c))/0x5+-parseInt(_0x3976a6(0x14e))/0x6*(parseInt(_0x3976a6(0x167))/0x7)+-parseInt(_0x3976a6(0x138))/0x8+-parseInt(_0x3976a6(0x110))/0x9*(-parseInt(_0x3976a6(0x162))/0xa);if(_0x6f228e===_0x4f1a60)break;else _0x365db2['push'](_0x365db2['shift']());}catch(_0x1714ad){_0x365db2['push'](_0x365db2['shift']());}}}(_0x5dbf,0xe7eb4));import{spawn}from'child_process';function _0x5dbf(){const _0x8a34ad=['\x0aCould\x20not\x20check\x20latest\x20version:\x20','utf-8','cwd','marketplace','14756392wSEZgV','MdgiY','vANLT','qVJVm','BRviq','Latest\x20version:\x20\x20','pauVk','push','YjpPQ','\x0aSuccessfully\x20installed\x20','WUYvA','KhsKI','Update\x20failed\x20for\x20@','update','XFPPG','JFxwy','ranger@trailhead','\x0aClaude\x20marketplace\x20updated\x20(trailhead).','OKZtk','UJdDd','MueZT','active-profile.txt','2586NrQaSA','Claude\x20plugin\x20update\x20failed\x20for\x20','win32','test','FsoaN','platform','\x22.\x20','user','kyZrP','error','plugin','Qxwpb','log','3108846VCPPfA','1454480sqxjRp','QFwqW','FCqdH','isFinite','egmji','4vvqcCp','40pBkABb','\x20scope\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','warn','2064651bhFWMV','splice','11151fKVQYA','kill','\x20channel.','\x0aClaude\x20plugin\x20updated\x20(project\x20scope).','scope','alpha','claude','\x0aClaude\x20plugin\x20updated\x20(local\x20scope).','YNBlS','timeoutMs','unref','ymeSx','beta','trailhead','Wxlck','10874403fcmEwc','ignore','inherit','vybmI','--scope','fwNEl','\x0aYour\x20version\x20(','\x0aInstalling\x20','xtMXx','TrVue','hChGo','zUKdk','bYAFL','Claude\x20marketplace\x20update\x20command\x20failed\x20(timed\x20out,\x20failed\x20to\x20start,\x20or\x20exited\x20with\x20a\x20non-zero\x20status).','length','OnQIQ','ZEbZj','uQTvz','hubzH','Uuudc','split','194894aAlkJw','@latest','.0.0','oulKZ','project','Update\x20failed.','join','latest','close','\x20ranger-managed\x20skill(s)...','hyQEl','fJKnz','local','Could\x20not\x20determine\x20the\x20current\x20major\x20version\x20from\x20\x22','VvErP'];_0x5dbf=function(){return _0x8a34ad;};return _0x5dbf();}import{existsSync}from'fs';import{readFile,writeFile}from'fs/promises';import{installSkill,removeSkill,RANGER_MANAGED_SKILLS,DEPRECATED_SKILLS}from'./utils/skills.js';import{PACKAGE_NAME,getCurrentVersion,getLatestVersion,compareVersions}from'./utils/version.js';import{getProjectRoot,getSkillsDir}from'./utils/claudeConfig.js';import{getOpencodeSkillsDir}from'./utils/opencodeConfig.js';import{join}from'path';import{getRangerDir}from'./utils/rangerRoot.js';import{getPluginInfo,isMarketplaceAdded,isPluginInstalled}from'./utils/claudePlugin.js';const CLAUDE_COMMAND_TIMEOUT_MS=0x1d4c0;async function runCommand(_0xd90d6d,_0x241b79,_0x200c1c){const _0x362c37=_0x2751,_0x45295c={'WUYvA':function(_0x7edf08,_0x342317){return _0x7edf08(_0x342317);},'qVJVm':function(_0x443a98,_0x6102ba,_0x4a0b55,_0x520d0c){return _0x443a98(_0x6102ba,_0x4a0b55,_0x520d0c);},'kyZrP':_0x362c37(0x111),'zUKdk':_0x362c37(0x112),'OKZtk':function(_0x1e7e7c,_0x5b2be2,_0x2a9633){return _0x1e7e7c(_0x5b2be2,_0x2a9633);}};return new Promise(_0x37dcd4=>{const _0xc4e1fc=_0x362c37,_0x152f11={'Wxlck':function(_0x4aa00b,_0x40da32){const _0x4fe98e=_0x2751;return _0x45295c[_0x4fe98e(0x142)](_0x4aa00b,_0x40da32);},'xmXta':function(_0xd9bb64,_0x318a49){return _0x45295c['WUYvA'](_0xd9bb64,_0x318a49);}};let _0x1dc522=![],_0x45953c;const _0x588a66=_0x36964c=>{if(_0x1dc522)return;_0x1dc522=!![],_0x45953c&&clearTimeout(_0x45953c),_0x37dcd4(_0x36964c);},_0x3803c4=_0x45295c[_0xc4e1fc(0x13b)](spawn,_0xd90d6d,_0x241b79,{'stdio':[_0x45295c[_0xc4e1fc(0x156)],_0x200c1c?.['stdio']??_0x45295c[_0xc4e1fc(0x11b)],_0x200c1c?.['stdio']??_0xc4e1fc(0x112)],'cwd':_0x200c1c?.[_0xc4e1fc(0x136)],'shell':process[_0xc4e1fc(0x153)]==='win32'});_0x45953c=_0x200c1c?.[_0xc4e1fc(0x10a)]?_0x45295c[_0xc4e1fc(0x14a)](setTimeout,()=>{const _0x3e55db=_0xc4e1fc;_0x3803c4[_0x3e55db(0x102)](),_0x3803c4[_0x3e55db(0x10b)](),_0x588a66(![]);},_0x200c1c['timeoutMs']):undefined,_0x3803c4['on']('close',_0x92eed3=>{const _0x5181d8=_0xc4e1fc;_0x152f11[_0x5181d8(0x10f)](_0x588a66,_0x92eed3===0x0);}),_0x3803c4['on'](_0xc4e1fc(0x157),()=>{_0x152f11['xmXta'](_0x588a66,![]);});});}export function resolveDistTag(_0x5dc6c2){const _0x39985d=_0x2751,_0x2c698e={'pauVk':_0x39985d(0x106),'kZbso':_0x39985d(0x10d),'FsoaN':_0x39985d(0x12c)};if(/-alpha\./i[_0x39985d(0x151)](_0x5dc6c2))return _0x2c698e[_0x39985d(0x13e)];if(/-beta\./i[_0x39985d(0x151)](_0x5dc6c2))return _0x2c698e['kZbso'];if(/-rc\./i[_0x39985d(0x151)](_0x5dc6c2))return'rc';return _0x2c698e[_0x39985d(0x152)];}export function resolveInstallTarget(_0x44e41b){const _0x431aee=_0x2751,_0x553dd9={'DnSNG':function(_0x4f2bc5,_0xb58ab2){return _0x4f2bc5(_0xb58ab2);},'utNUt':function(_0x1f1361,_0x4c6eaf){return _0x1f1361!==_0x4c6eaf;},'XcpGZ':'latest','YNBlS':function(_0x4b4fd6,_0x2ac028,_0x2fc657){return _0x4b4fd6(_0x2ac028,_0x2fc657);}},_0x3689d7=_0x553dd9['DnSNG'](resolveDistTag,_0x44e41b);if(_0x553dd9['utNUt'](_0x3689d7,_0x553dd9['XcpGZ']))return _0x3689d7;const _0x38318a=_0x44e41b['split']('.')[0x0],_0x1f03be=_0x553dd9[_0x431aee(0x109)](parseInt,_0x38318a,0xa);if(!Number[_0x431aee(0x15f)](_0x1f03be))return'latest';return'^'+_0x1f03be+_0x431aee(0x127);}function _0x2751(_0x30368a,_0x25e722){_0x30368a=_0x30368a-0x102;const _0x5dbf15=_0x5dbf();let _0x2751d2=_0x5dbf15[_0x30368a];return _0x2751d2;}async function runInstall(_0x443b38){const _0x234235=_0x2751,_0xdec51={'bYAFL':function(_0x568358,_0x326dd5,_0x2188b7,_0x5b4d8a){return _0x568358(_0x326dd5,_0x2188b7,_0x5b4d8a);},'ZLKMK':'npm','YjpPQ':'inherit','RmTpE':function(_0x2f0821,_0x46afb5){return _0x2f0821===_0x46afb5;},'mPRjP':_0x234235(0x150),'UJdDd':_0x234235(0x12d),'SzOqk':_0x234235(0x157)},_0x3aabc4=resolveInstallTarget(_0x443b38);return new Promise(_0x4298d6=>{const _0x54e639=_0x234235,_0xc59c63={'egmji':function(_0x50e043,_0x420404){return _0x50e043(_0x420404);}};console[_0x54e639(0x15a)](_0x54e639(0x117)+PACKAGE_NAME+'@'+_0x3aabc4+'...\x0a');const _0xfecd71=_0xdec51[_0x54e639(0x11c)](spawn,_0xdec51['ZLKMK'],['install','-g',PACKAGE_NAME+'@'+_0x3aabc4],{'stdio':['ignore',_0xdec51[_0x54e639(0x140)],_0xdec51['YjpPQ']],'shell':_0xdec51['RmTpE'](process['platform'],_0xdec51['mPRjP'])});_0xfecd71['on'](_0xdec51[_0x54e639(0x14b)],_0x5238aa=>{_0x4298d6(_0x5238aa===0x0);}),_0xfecd71['on'](_0xdec51['SzOqk'],()=>{const _0x48c1f3=_0x54e639;_0xc59c63[_0x48c1f3(0x160)](_0x4298d6,![]);});});}async function updateClaudeMarketplace(){const _0x3cd100=_0x2751,_0x49f646={'TrVue':'claude','oulKZ':_0x3cd100(0x158)},_0x507534=await runCommand(_0x49f646[_0x3cd100(0x119)],[_0x49f646[_0x3cd100(0x128)],_0x3cd100(0x137),_0x3cd100(0x145),_0x3cd100(0x10e)],{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS});if(!_0x507534)throw new Error(_0x3cd100(0x11d));}async function updateClaudePlugin(_0x38f654='user'){const _0x111180=_0x2751,_0x2670a3={'xZFHK':'plugin','ZEbZj':'update','Gmjds':'ranger@trailhead','xtMXx':function(_0x399b50,_0x40c920){return _0x399b50!==_0x40c920;},'GwAyA':'claude','hubzH':function(_0x2867a4,_0x4098ca){return _0x2867a4===_0x4098ca;},'KhsKI':'project'},_0xae01e2=[_0x2670a3['xZFHK'],_0x2670a3[_0x111180(0x120)],_0x2670a3['Gmjds']];_0x2670a3[_0x111180(0x118)](_0x38f654,_0x111180(0x155))&&_0xae01e2[_0x111180(0x13f)](_0x111180(0x114),_0x38f654);const _0x124491=await runCommand(_0x2670a3['GwAyA'],_0xae01e2,{'timeoutMs':CLAUDE_COMMAND_TIMEOUT_MS,'cwd':_0x2670a3[_0x111180(0x122)](_0x38f654,_0x2670a3[_0x111180(0x143)])||_0x38f654==='local'?getProjectRoot():undefined});if(!_0x124491)throw new Error(_0x111180(0x14f)+_0x38f654+_0x111180(0x163));}function isSkillInstalled(_0x386463,_0x4d3d1d,_0x19c82a){const _0x1cdfb6=_0x2751,_0x5d24e7={'ucZJx':function(_0x50c377,_0x1f3d6b){return _0x50c377(_0x1f3d6b);},'vANLT':function(_0x4f109d,_0x4f6242){return _0x4f109d(_0x4f6242);},'fJKnz':function(_0x231865,_0x4bc66d,_0x300c60){return _0x231865(_0x4bc66d,_0x300c60);},'ztUKz':function(_0x3377dc,_0x3c3eb8){return _0x3377dc(_0x3c3eb8);}},_0xfea70e=_0x19c82a==='opencode'?_0x5d24e7['ucZJx'](getOpencodeSkillsDir,_0x4d3d1d):_0x5d24e7[_0x1cdfb6(0x13a)](getSkillsDir,_0x4d3d1d),_0x123ef4=_0x5d24e7[_0x1cdfb6(0x130)](join,_0xfea70e,_0x386463);return _0x5d24e7['ztUKz'](existsSync,_0x123ef4);}async function reinstallSkills(_0x136f35){const _0x5c9ad=_0x2751,_0x166a5a={'fwNEl':_0x5c9ad(0x129),'XFPPG':_0x5c9ad(0x155),'TsVkZ':'claude','Twyoc':'opencode','MueZT':'\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','vybmI':function(_0x15eb39,_0x10e91b,_0x7e54fe){return _0x15eb39(_0x10e91b,_0x7e54fe);}},_0x33a3de=[_0x166a5a[_0x5c9ad(0x115)],_0x166a5a[_0x5c9ad(0x146)]],_0x309001=[];for(const _0x37a99d of _0x33a3de){for(const _0x449b32 of RANGER_MANAGED_SKILLS){isSkillInstalled(_0x449b32,_0x37a99d,_0x5c9ad(0x107))&&_0x309001['push']({'skillName':_0x449b32,'level':_0x37a99d,'platform':_0x166a5a['TsVkZ']}),isSkillInstalled(_0x449b32,_0x37a99d,'opencode')&&_0x309001[_0x5c9ad(0x13f)]({'skillName':_0x449b32,'level':_0x37a99d,'platform':_0x166a5a['Twyoc']});}}for(const _0x38c126 of _0x33a3de){for(const _0x271175 of DEPRECATED_SKILLS){await removeSkill(_0x271175,_0x38c126);}}if(_0x309001[_0x5c9ad(0x11e)]===0x0){console[_0x5c9ad(0x15a)](_0x166a5a[_0x5c9ad(0x14c)]);return;}console[_0x5c9ad(0x15a)]('\x0aReinstalling\x20'+_0x309001[_0x5c9ad(0x11e)]+_0x5c9ad(0x12e));for(const {skillName:_0x5334d,level:_0x44beb2,platform:_0x104e66}of _0x309001){try{await _0x166a5a[_0x5c9ad(0x113)](installSkill,_0x5334d,{'level':_0x44beb2,'cliVersion':_0x136f35,'platform':_0x104e66});}catch(_0x4efa08){console[_0x5c9ad(0x164)]('\x20\x20Failed\x20to\x20reinstall\x20'+_0x104e66+'\x20'+_0x44beb2+'\x20skill\x20'+_0x5334d+':',_0x4efa08);}}}async function ensureActiveProfileGitignored(){const _0x1afbc1=_0x2751,_0x335ff5={'koGNC':function(_0x358039){return _0x358039();},'ymeSx':function(_0x5d3202,_0x4c1c76){return _0x5d3202(_0x4c1c76);},'OnQIQ':function(_0x70774f,_0x2e4f5a,_0x1cc259){return _0x70774f(_0x2e4f5a,_0x1cc259);},'tCYWf':function(_0x38204a,_0x1f4894){return _0x38204a===_0x1f4894;},'KxbGO':function(_0x229985,_0x999caf,_0x292032,_0x16012c){return _0x229985(_0x999caf,_0x292032,_0x16012c);},'aJwih':_0x1afbc1(0x135)},_0x3d9be0=join(_0x335ff5['koGNC'](getRangerDir),'.gitignore');if(!_0x335ff5[_0x1afbc1(0x10c)](existsSync,_0x3d9be0))return![];let _0x31866c='';try{_0x31866c=await _0x335ff5[_0x1afbc1(0x11f)](readFile,_0x3d9be0,_0x1afbc1(0x135));}catch{return![];}const _0x30a3bf=_0x31866c[_0x1afbc1(0x124)](/\r?\n/);if(_0x30a3bf['some'](_0xb9b352=>_0xb9b352['trim']()==='active-profile.txt'))return![];let _0xba0000=_0x30a3bf['findIndex'](_0x487142=>_0x487142['trim']()==='active-feature.txt');_0x335ff5['tCYWf'](_0xba0000,-0x1)&&(_0xba0000=_0x30a3bf['length']);_0x30a3bf[_0x1afbc1(0x166)](_0xba0000,0x0,_0x1afbc1(0x14d));let _0x5c8d8d=_0x30a3bf[_0x1afbc1(0x12b)]('\x0a');!_0x5c8d8d['endsWith']('\x0a')&&(_0x5c8d8d+='\x0a');try{await _0x335ff5['KxbGO'](writeFile,_0x3d9be0,_0x5c8d8d,_0x335ff5['aJwih']);}catch{return![];}return!![];}export async function update(){const _0x55c3cd=_0x2751,_0x32c2b9={'MdgiY':function(_0x1613b7,_0x4bd002){return _0x1613b7(_0x4bd002);},'yZqok':function(_0x28c8b9,_0x22b6ab){return _0x28c8b9!==_0x22b6ab;},'FCqdH':'latest','GTzkv':function(_0x52b072,_0x47c98f){return _0x52b072(_0x47c98f);},'Qxwpb':function(_0x49b7e6){return _0x49b7e6();},'QFwqW':'\x0a✅\x20Update\x20complete!','Youfe':'Checking\x20for\x20updates...','JFxwy':function(_0x1de681,_0xd9efe0,_0x11f5af){return _0x1de681(_0xd9efe0,_0x11f5af);},'uQTvz':function(_0x198167,_0x264e46){return _0x198167+_0x264e46;},'QYBvq':'Attempting\x20install\x20anyway...','mRswH':'\x0aSuccessfully\x20installed\x20latest\x20version.','thuMb':function(_0x352774,_0x44675f){return _0x352774===_0x44675f;},'UjdIv':'\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','hyQEl':_0x55c3cd(0x12a),'Uuudc':_0x55c3cd(0x10e),'FspGC':function(_0x2667b2,_0x37b077){return _0x2667b2(_0x37b077);},'VvErP':_0x55c3cd(0x155),'BRviq':function(_0x2d4a43,_0x45525a){return _0x2d4a43===_0x45525a;},'tuTHH':'\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','hChGo':function(_0x3ee78e){return _0x3ee78e();}},_0x2e2890=getCurrentVersion();console['log']('\x0aCurrent\x20version:\x20'+_0x2e2890);const _0x1b0c13=_0x32c2b9[_0x55c3cd(0x139)](resolveDistTag,_0x2e2890);if(_0x32c2b9['yZqok'](_0x1b0c13,_0x32c2b9[_0x55c3cd(0x15e)])){console[_0x55c3cd(0x15a)]('Prerelease\x20channel\x20detected\x20(@'+_0x1b0c13+').\x20Staying\x20on\x20'+_0x1b0c13+'\x20—\x20reinstalling\x20@'+_0x1b0c13+'...');const _0x43eb9f=await _0x32c2b9['GTzkv'](runInstall,_0x2e2890);if(!_0x43eb9f)throw new Error(_0x55c3cd(0x144)+_0x1b0c13+_0x55c3cd(0x103));const _0x17fe82=getCurrentVersion();console[_0x55c3cd(0x15a)](_0x55c3cd(0x141)+PACKAGE_NAME+'@'+_0x1b0c13+'.'),await reinstallSkills(_0x17fe82),await _0x32c2b9[_0x55c3cd(0x159)](ensureActiveProfileGitignored),console['log'](_0x32c2b9[_0x55c3cd(0x15d)]);return;}console['log'](_0x32c2b9['Youfe']);const _0x1bebd0=_0x32c2b9[_0x55c3cd(0x147)](parseInt,_0x2e2890[_0x55c3cd(0x124)]('.')[0x0],0xa);if(!Number['isFinite'](_0x1bebd0))throw new Error(_0x32c2b9[_0x55c3cd(0x121)](_0x55c3cd(0x132)+_0x2e2890+_0x55c3cd(0x154),'Aborting\x20to\x20avoid\x20a\x20cross-major\x20upgrade.\x20Reinstall\x20explicitly\x20with:\x20')+('npm\x20i\x20-g\x20'+PACKAGE_NAME+_0x55c3cd(0x126)));const _0x3e1683=getLatestVersion(_0x1bebd0);let _0x3c8de3=_0x2e2890;if(!_0x3e1683['version']){console[_0x55c3cd(0x164)](_0x55c3cd(0x134)+_0x3e1683[_0x55c3cd(0x157)]),console['log'](_0x32c2b9['QYBvq']);const _0x1b3fa3=await runInstall(_0x2e2890);if(_0x1b3fa3)console['log'](_0x32c2b9['mRswH']),_0x3c8de3=getCurrentVersion();else throw new Error('Update\x20failed:\x20'+_0x3e1683['error']);}else{const _0x1246c1=_0x3e1683['version'];console[_0x55c3cd(0x15a)](_0x55c3cd(0x13d)+_0x1246c1);const _0x46e342=compareVersions(_0x2e2890,_0x1246c1);if(_0x32c2b9['thuMb'](_0x46e342,0x0))console[_0x55c3cd(0x15a)](_0x32c2b9['UjdIv']);else{if(_0x46e342<0x0)console['log'](_0x55c3cd(0x116)+_0x2e2890+')\x20is\x20newer\x20than\x20the\x20published\x20version\x20('+_0x1246c1+').');else{const _0x1ac05c=await runInstall(_0x2e2890);if(_0x1ac05c)console[_0x55c3cd(0x15a)]('\x0aSuccessfully\x20updated\x20to\x20version\x20'+_0x1246c1),_0x3c8de3=_0x1246c1;else throw new Error(_0x32c2b9[_0x55c3cd(0x12f)]);}}}await reinstallSkills(_0x3c8de3);const _0x1ab37a=await _0x32c2b9[_0x55c3cd(0x139)](isMarketplaceAdded,_0x32c2b9[_0x55c3cd(0x123)]),_0x38d867=await _0x32c2b9['FspGC'](isPluginInstalled,_0x55c3cd(0x148));_0x1ab37a&&(await updateClaudeMarketplace(),console[_0x55c3cd(0x15a)](_0x55c3cd(0x149)));if(_0x38d867){const _0x1b8355=await _0x32c2b9['GTzkv'](getPluginInfo,_0x55c3cd(0x148)),_0x281920=_0x1b8355?.[_0x55c3cd(0x105)]??_0x32c2b9[_0x55c3cd(0x133)];await updateClaudePlugin(_0x281920);if(_0x281920===_0x55c3cd(0x129))console[_0x55c3cd(0x15a)](_0x55c3cd(0x104));else _0x32c2b9[_0x55c3cd(0x13c)](_0x281920,_0x55c3cd(0x131))?console[_0x55c3cd(0x15a)](_0x55c3cd(0x108)):console['log'](_0x32c2b9['tuTHH']);}const _0x36179b=await _0x32c2b9[_0x55c3cd(0x11a)](ensureActiveProfileGitignored);console['log'](_0x32c2b9[_0x55c3cd(0x15d)]);}
@@ -1 +1 @@
1
- (function(_0x360114,_0x33b1f1){const _0x4cbad2=_0x59ac,_0x33ea73=_0x360114();while(!![]){try{const _0x477678=-parseInt(_0x4cbad2(0x162))/0x1+-parseInt(_0x4cbad2(0x164))/0x2*(parseInt(_0x4cbad2(0x14a))/0x3)+-parseInt(_0x4cbad2(0x155))/0x4+-parseInt(_0x4cbad2(0x15e))/0x5+parseInt(_0x4cbad2(0x142))/0x6*(parseInt(_0x4cbad2(0x167))/0x7)+parseInt(_0x4cbad2(0x163))/0x8+-parseInt(_0x4cbad2(0x15a))/0x9*(-parseInt(_0x4cbad2(0x15b))/0xa);if(_0x477678===_0x33b1f1)break;else _0x33ea73['push'](_0x33ea73['shift']());}catch(_0x21861d){_0x33ea73['push'](_0x33ea73['shift']());}}}(_0x3a94,0xa4692));function _0x3a94(){const _0x1ddf10=['\x20\x20ranger\x20profile\x20add\x20','Refreshing\x20session\x20for\x20\x22','settings','10224108xkXRsR','10ZWAKMI','✓\x20Session\x20refreshed\x20for\x20\x22','message','673190bpiDCO','environmentKey','\x20--url\x20<your-app-url>\x0a','Capturing\x20a\x20fresh\x20session\x20for\x20\x22','757210smnbnM','4195680NStCsg','52vpHXKC','exit','setupHeaders','77qHOnjo','HbeMr','log','test_output','error','248754LpPaIS','legacy','\x22\x20via\x20server-side\x20login...','PAwhc','vjnCi','ETiTu','not_configured','WpPmR','59529isSSwP','Run\x20`ranger\x20profile\x20update\x20','\x20\x20Falling\x20back\x20to\x20headed\x20browser...','lshEY','Profile\x20\x22','No\x20profile\x20named\x20\x22','FmFNK','domains','drVuQ','\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a','`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).','141316PvSRCV','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a'];_0x3a94=function(){return _0x1ddf10;};return _0x3a94();}import{fetchAuthConfig,fetchCloudProfile,manualBrowserLogin,serverSideLogin}from'./utils/cloudProfile.js';function _0x59ac(_0x28af93,_0x554bb3){_0x28af93=_0x28af93-0x141;const _0x3a9449=_0x3a94();let _0x59ac79=_0x3a9449[_0x28af93];return _0x59ac79;}import{isInteractive,resolveAuthEnvironmentLocally}from'./utils/cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./utils/projectsConfig.js';import{getEnvNames}from'./env.js';export async function updateEnv(_0x1fdd77,_0x2a8685,_0x4d9d89){const _0x2cea33=_0x59ac,_0x14cddd={'YsOPI':_0x2cea33(0x143),'wisar':function(_0x13aab6,_0x38f560){return _0x13aab6===_0x38f560;},'WYUiM':'local','WpPmR':function(_0x296fae,_0x1aa1e9){return _0x296fae===_0x1aa1e9;},'lshEY':function(_0x4297bf,_0x3907e8){return _0x4297bf+_0x3907e8;},'ETiTu':function(_0x362cda,_0x3fb67c){return _0x362cda+_0x3fb67c;},'HbeMr':function(_0x30b4a5,_0x5a7acd,_0x200151){return _0x30b4a5(_0x5a7acd,_0x200151);},'drVuQ':function(_0x4e0ce7,_0x23a20f,_0x374348){return _0x4e0ce7(_0x23a20f,_0x374348);},'SMqRF':function(_0x136543,_0x174182){return _0x136543===_0x174182;},'ybYtC':function(_0x381ed4,_0x45538c){return _0x381ed4 instanceof _0x45538c;},'vjnCi':'\x20\x20Falling\x20back\x20to\x20headed\x20browser...','PAwhc':function(_0x426a8a,_0x237af1){return _0x426a8a??_0x237af1;},'FmFNK':function(_0x275dd8){return _0x275dd8();}},_0x149277=await fetchCloudProfile(_0x1fdd77);if(!_0x149277){const {envTypes:_0x3257af}=await getEnvNames(),_0x4990d0=_0x3257af[_0x1fdd77];(_0x4990d0===_0x14cddd['YsOPI']||_0x14cddd['wisar'](_0x4990d0,_0x14cddd['WYUiM'])||_0x14cddd[_0x2cea33(0x149)](_0x4990d0,'ci'))&&(console['error'](_0x14cddd['lshEY'](_0x14cddd[_0x2cea33(0x14d)](_0x14cddd[_0x2cea33(0x147)]('Profile\x20\x22'+_0x1fdd77+'\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a',_0x2cea33(0x156)),'\x0a'),'\x20\x20ranger\x20profile\x20add\x20'+_0x1fdd77+'\x0a')),process['exit'](0x1));}!_0x149277&&(console['error'](_0x14cddd['lshEY'](_0x14cddd['lshEY'](_0x2cea33(0x14f)+_0x1fdd77+'\x22\x20found.\x0a','Create\x20it\x20with:\x0a')+'\x0a',_0x2cea33(0x157)+_0x1fdd77+'\x0a')),process[_0x2cea33(0x165)](0x1));const _0x46ff94=await fetchAuthConfig()['catch'](()=>null),_0x494579=_0x149277['environmentKey']&&_0x46ff94?_0x14cddd[_0x2cea33(0x168)](resolveAuthEnvironmentLocally,_0x46ff94,_0x149277[_0x2cea33(0x15f)]):null;if(_0x149277[_0x2cea33(0x15f)]&&_0x494579&&!_0x4d9d89?.['manual']){console['log'](_0x2cea33(0x158)+_0x1fdd77+_0x2cea33(0x144));try{const _0x3ff041=await _0x14cddd[_0x2cea33(0x152)](serverSideLogin,_0x1fdd77,{'force':!![]});if(_0x14cddd['SMqRF'](_0x3ff041['status'],'success')){console[_0x2cea33(0x169)](_0x2cea33(0x15c)+_0x1fdd77+'\x22.');return;}_0x3ff041['status']===_0x2cea33(0x148)?console['log']('\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...'):(_0x3ff041[_0x2cea33(0x16a)]&&(console[_0x2cea33(0x169)]('\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:'),console['log'](_0x3ff041[_0x2cea33(0x16a)])),console[_0x2cea33(0x169)](_0x2cea33(0x14c)));}catch(_0x2ad247){console[_0x2cea33(0x169)]('\x20\x20Server-side\x20login\x20error:\x20'+(_0x14cddd['ybYtC'](_0x2ad247,Error)?_0x2ad247[_0x2cea33(0x15d)]:String(_0x2ad247))),console['log'](_0x14cddd[_0x2cea33(0x146)]);}}const _0x298b3f=_0x14cddd['drVuQ'](readProfileOverrides,process['cwd'](),_0x1fdd77),_0x5340ea=mergeCloudProfileSettings(_0x149277[_0x2cea33(0x159)]??{},_0x14cddd[_0x2cea33(0x145)](_0x298b3f,undefined)),_0x291561=_0x5340ea['setupHeaders'],_0x209181=_0x5340ea['baseUrl'],_0x4d03bf=_0x494579?{..._0x494579,'domains':_0x209181?[_0x209181,..._0x494579[_0x2cea33(0x151)]]:_0x494579['domains'],'setupHeaders':_0x291561??_0x494579[_0x2cea33(0x166)]}:_0x209181?{'key':_0x149277[_0x2cea33(0x15f)]??'','domains':[_0x209181],'setupHeaders':_0x291561}:null;!_0x4d03bf&&(console[_0x2cea33(0x141)](_0x2cea33(0x14e)+_0x1fdd77+_0x2cea33(0x153)+'Re-create\x20it\x20with:\x0a'+'\x0a'+(_0x2cea33(0x157)+_0x1fdd77+_0x2cea33(0x160))),process['exit'](0x1)),!_0x14cddd[_0x2cea33(0x150)](isInteractive)&&(console['error']('Can\x27t\x20refresh\x20\x22'+_0x1fdd77+'\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a'+(_0x2cea33(0x14b)+_0x1fdd77+_0x2cea33(0x154))),process['exit'](0x1)),console['log'](_0x2cea33(0x161)+_0x1fdd77+'\x22\x20via\x20headed\x20browser...'),await manualBrowserLogin(_0x149277,_0x4d03bf),console['log']('✓\x20Session\x20refreshed\x20for\x20\x22'+_0x1fdd77+'\x22.');}
1
+ (function(_0x6331f5,_0x49bfcd){const _0x1889f9=_0xc384,_0x57f0a2=_0x6331f5();while(!![]){try{const _0x5b34ca=parseInt(_0x1889f9(0xe0))/0x1+parseInt(_0x1889f9(0xf7))/0x2+-parseInt(_0x1889f9(0xd5))/0x3*(-parseInt(_0x1889f9(0xe5))/0x4)+parseInt(_0x1889f9(0xe9))/0x5*(-parseInt(_0x1889f9(0xdf))/0x6)+parseInt(_0x1889f9(0xf3))/0x7*(parseInt(_0x1889f9(0xdb))/0x8)+-parseInt(_0x1889f9(0xf6))/0x9*(parseInt(_0x1889f9(0xeb))/0xa)+-parseInt(_0x1889f9(0xe2))/0xb;if(_0x5b34ca===_0x49bfcd)break;else _0x57f0a2['push'](_0x57f0a2['shift']());}catch(_0x169584){_0x57f0a2['push'](_0x57f0a2['shift']());}}}(_0xb810,0xe0d8c));function _0xb810(){const _0x323ca2=['6840195eIYaHF','\x20\x20ranger\x20profile\x20add\x20','3431770DfnFhq','✓\x20Session\x20refreshed\x20for\x20\x22','VylNG','Profile\x20\x22','test_output','acASc','bbpwp','KDvni','1799rWKOjL','GBOrY','\x0a\x20\x20Server-side\x20login\x20failed.\x20Test\x20output:','36uKMeVq','2952200APUmTj','\x22\x20via\x20server-side\x20login...','YMwPd','Refreshing\x20session\x20for\x20\x22','uCNvF','Run\x20`ranger\x20profile\x20update\x20','log','not_configured','domains','settings','55446vNKkCn','exEgB','`\x20from\x20a\x20local\x20terminal,\x20or\x20set\x20up\x20automated\x20login\x20for\x20your\x20team\x20(contact\x20eng@ranger.net).','wQEKi','error','exit','53824yXoqdj','NAHea','\x20\x20Server-side\x20login\x20error:\x20','\x20\x20Falling\x20back\x20to\x20headed\x20browser...','6RFCPDU','1706120uTHbPv','setupHeaders','21877647XoZuXj','status','No\x20profile\x20named\x20\x22','160RmkhaJ','tWHql','\x22\x20found.\x0a','FnYjp'];_0xb810=function(){return _0x323ca2;};return _0xb810();}import{fetchAuthConfig,fetchCloudProfile,manualBrowserLogin,serverSideLogin}from'./utils/cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./utils/cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./utils/projectsConfig.js';import{getEnvNames}from'./env.js';function _0xc384(_0x12ed93,_0x379f88){_0x12ed93=_0x12ed93-0xd4;const _0xb81068=_0xb810();let _0xc384c2=_0xb81068[_0x12ed93];return _0xc384c2;}export async function updateEnv(_0x2d4957,_0x575e7e,_0x43396f){const _0x2d649b=_0xc384,_0x5ee08d={'tWHql':function(_0x5ad581){return _0x5ad581();},'zkeCe':'legacy','acASc':function(_0x7ef8e0,_0x362602){return _0x7ef8e0+_0x362602;},'FnYjp':function(_0x20816c,_0x435625){return _0x20816c+_0x435625;},'YMwPd':function(_0x501f25){return _0x501f25();},'wQEKi':function(_0x21f732,_0x50100e,_0x513b63){return _0x21f732(_0x50100e,_0x513b63);},'Lmkxw':function(_0x1d6a05,_0x21e7e9,_0x293db1){return _0x1d6a05(_0x21e7e9,_0x293db1);},'NAHea':function(_0x538e6e,_0x2f84a9){return _0x538e6e===_0x2f84a9;},'VylNG':_0x2d649b(0xfe),'uAmkS':'\x20\x20Server-side\x20login\x20not\x20configured\x20for\x20this\x20org.\x20Falling\x20back\x20to\x20headed\x20browser...','KDvni':_0x2d649b(0xf5),'GBOrY':_0x2d649b(0xde),'bbpwp':function(_0x4fc8a1,_0x56995b){return _0x4fc8a1 instanceof _0x56995b;},'tHhbb':function(_0x54d4c9,_0x59cae2){return _0x54d4c9(_0x59cae2);},'exEgB':function(_0x36789c,_0x506914,_0x4f0a62){return _0x36789c(_0x506914,_0x4f0a62);},'uCNvF':function(_0x598dd3,_0x2b9980){return _0x598dd3??_0x2b9980;}},_0x3dccc6=await fetchCloudProfile(_0x2d4957);if(!_0x3dccc6){const {envTypes:_0x59ae75}=await _0x5ee08d['tWHql'](getEnvNames),_0x34baeb=_0x59ae75[_0x2d4957];(_0x34baeb===_0x5ee08d['zkeCe']||_0x34baeb==='local'||_0x34baeb==='ci')&&(console[_0x2d649b(0xd9)](_0x5ee08d[_0x2d649b(0xf0)](_0x5ee08d['FnYjp'](_0x2d649b(0xee)+_0x2d4957+'\x22\x20is\x20a\x20legacy\x20on-disk\x20profile\x20and\x20can\x20no\x20longer\x20be\x20refreshed\x20in\x20place.\x0a','Migrate\x20it\x20to\x20a\x20cloud\x20profile\x20by\x20running:\x0a'),'\x0a')+('\x20\x20ranger\x20profile\x20add\x20'+_0x2d4957+'\x0a')),process['exit'](0x1));}!_0x3dccc6&&(console[_0x2d649b(0xd9)](_0x5ee08d['acASc'](_0x2d649b(0xe4)+_0x2d4957+_0x2d649b(0xe7)+'Create\x20it\x20with:\x0a'+'\x0a',_0x2d649b(0xea)+_0x2d4957+'\x0a')),process[_0x2d649b(0xda)](0x1));const _0x7b022f=await _0x5ee08d[_0x2d649b(0xf9)](fetchAuthConfig)['catch'](()=>null),_0x527f5f=_0x3dccc6['environmentKey']&&_0x7b022f?_0x5ee08d['wQEKi'](resolveAuthEnvironmentLocally,_0x7b022f,_0x3dccc6['environmentKey']):null;if(_0x3dccc6['environmentKey']&&_0x527f5f&&!_0x43396f?.['manual']){console['log'](_0x2d649b(0xfa)+_0x2d4957+_0x2d649b(0xf8));try{const _0x2a2e76=await _0x5ee08d['Lmkxw'](serverSideLogin,_0x2d4957,{'force':!![]});if(_0x5ee08d[_0x2d649b(0xdc)](_0x2a2e76[_0x2d649b(0xe3)],'success')){console['log'](_0x2d649b(0xec)+_0x2d4957+'\x22.');return;}_0x2a2e76[_0x2d649b(0xe3)]===_0x5ee08d[_0x2d649b(0xed)]?console['log'](_0x5ee08d['uAmkS']):(_0x2a2e76['test_output']&&(console['log'](_0x5ee08d[_0x2d649b(0xf2)]),console['log'](_0x2a2e76[_0x2d649b(0xef)])),console[_0x2d649b(0xfd)](_0x5ee08d[_0x2d649b(0xf4)]));}catch(_0x3f9f40){console['log'](_0x2d649b(0xdd)+(_0x5ee08d[_0x2d649b(0xf1)](_0x3f9f40,Error)?_0x3f9f40['message']:_0x5ee08d['tHhbb'](String,_0x3f9f40))),console[_0x2d649b(0xfd)](_0x5ee08d[_0x2d649b(0xf4)]);}}const _0x11c6ef=_0x5ee08d[_0x2d649b(0xd8)](readProfileOverrides,process['cwd'](),_0x2d4957),_0x4019f1=_0x5ee08d[_0x2d649b(0xd6)](mergeCloudProfileSettings,_0x3dccc6[_0x2d649b(0xd4)]??{},_0x5ee08d[_0x2d649b(0xfb)](_0x11c6ef,undefined)),_0x1abb99=_0x4019f1[_0x2d649b(0xe1)],_0x5ebdac=_0x4019f1['baseUrl'],_0x249a10=_0x527f5f?{..._0x527f5f,'domains':_0x5ebdac?[_0x5ebdac,..._0x527f5f[_0x2d649b(0xff)]]:_0x527f5f['domains'],'setupHeaders':_0x1abb99??_0x527f5f['setupHeaders']}:_0x5ebdac?{'key':_0x3dccc6['environmentKey']??'','domains':[_0x5ebdac],'setupHeaders':_0x1abb99}:null;!_0x249a10&&(console[_0x2d649b(0xd9)](_0x2d649b(0xee)+_0x2d4957+'\x22\x20has\x20no\x20URL\x20on\x20file\x20to\x20refresh\x20against.\x0a'+'Re-create\x20it\x20with:\x0a'+'\x0a'+('\x20\x20ranger\x20profile\x20add\x20'+_0x2d4957+'\x20--url\x20<your-app-url>\x0a')),process[_0x2d649b(0xda)](0x1)),!_0x5ee08d[_0x2d649b(0xe6)](isInteractive)&&(console['error'](_0x5ee08d[_0x2d649b(0xe8)]('Can\x27t\x20refresh\x20\x22'+_0x2d4957+'\x22\x20non-interactively\x20—\x20this\x20profile\x20needs\x20a\x20headed\x20browser\x20to\x20capture\x20a\x20session.\x0a',_0x2d649b(0xfc)+_0x2d4957+_0x2d649b(0xd7))),process['exit'](0x1)),console[_0x2d649b(0xfd)]('Capturing\x20a\x20fresh\x20session\x20for\x20\x22'+_0x2d4957+'\x22\x20via\x20headed\x20browser...'),await manualBrowserLogin(_0x3dccc6,_0x249a10),console['log']('✓\x20Session\x20refreshed\x20for\x20\x22'+_0x2d4957+'\x22.');}
@@ -1 +1 @@
1
- (function(_0x3d6b0f,_0x487eb1){const _0x34e7b4=_0x981f,_0x2eea34=_0x3d6b0f();while(!![]){try{const _0xae8cf0=parseInt(_0x34e7b4(0x17b))/0x1+-parseInt(_0x34e7b4(0x17e))/0x2+-parseInt(_0x34e7b4(0x179))/0x3*(-parseInt(_0x34e7b4(0x171))/0x4)+parseInt(_0x34e7b4(0x16f))/0x5*(parseInt(_0x34e7b4(0x172))/0x6)+parseInt(_0x34e7b4(0x17d))/0x7+parseInt(_0x34e7b4(0x177))/0x8+parseInt(_0x34e7b4(0x175))/0x9*(-parseInt(_0x34e7b4(0x170))/0xa);if(_0xae8cf0===_0x487eb1)break;else _0x2eea34['push'](_0x2eea34['shift']());}catch(_0x2e367f){_0x2eea34['push'](_0x2eea34['shift']());}}}(_0x5602,0x28e0b));import{join}from'path';function _0x981f(_0x197349,_0x4fb7e4){_0x197349=_0x197349-0x16c;const _0x5602c1=_0x5602();let _0x5325db=_0x5602c1[_0x197349];return _0x5325db;}import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x5602(){const _0x4709c7=['\x0a✓\x20Now\x20using\x20profile\x20\x22','35UvIzWq','30MLVxmy','24RyZLKF','119754pUiIiQ','bnosg','Profile\x20\x22','1290186byKVXH','`ranger\x20profile\x20add\x20','1570832qpCGuv','IYtWI','6246CspClT','`\x20to\x20create\x20one.','275609zElLvx','nXABF','12068qZKPKA','56790GBZoIN','settings.json','yQMFT','log','WvyXN'];_0x5602=function(){return _0x4709c7;};return _0x5602();}export async function useEnv(_0x585c93){const _0x524618=_0x981f,_0x30e545={'yQMFT':function(_0x36d65b,_0x20dee3){return _0x36d65b(_0x20dee3);},'bnosg':function(_0x42128f,_0x44d58d,_0x4ecf1e){return _0x42128f(_0x44d58d,_0x4ecf1e);},'nXABF':function(_0x5827c8,_0x40b395){return _0x5827c8(_0x40b395);},'WvyXN':function(_0x5144d0,_0xdb6db5){return _0x5144d0 instanceof _0xdb6db5;},'IYtWI':function(_0x3133a0,_0x418a80){return _0x3133a0===_0x418a80;},'oGdkP':function(_0x3c3cd2,_0x3fd304){return _0x3c3cd2+_0x3fd304;}},_0x5892df=_0x30e545[_0x524618(0x180)](getEnvDir,_0x585c93),_0x786f06=_0x30e545[_0x524618(0x173)](join,_0x5892df,_0x524618(0x17f)),_0x9f4319=_0x30e545[_0x524618(0x17c)](existsSync,_0x5892df)&&_0x30e545['nXABF'](existsSync,_0x786f06);if(_0x9f4319){await _0x30e545['nXABF'](writeActiveProfileName,_0x585c93),console[_0x524618(0x16c)](_0x524618(0x16e)+_0x585c93+'\x22');return;}let _0x3f2db2=null,_0x5295b9=![];try{_0x3f2db2=await fetchCloudProfile(_0x585c93);if(!_0x3f2db2)_0x5295b9=!![];}catch(_0x27b23e){_0x30e545[_0x524618(0x16d)](_0x27b23e,ApiError)&&_0x30e545[_0x524618(0x178)](_0x27b23e['status'],0x194)&&(_0x5295b9=!![]);}if(_0x5295b9)throw new Error(_0x30e545['oGdkP'](_0x524618(0x174)+_0x585c93+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20','Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+(_0x524618(0x176)+_0x585c93+_0x524618(0x17a)));await writeActiveProfileName(_0x585c93),console[_0x524618(0x16c)](_0x524618(0x16e)+_0x585c93+'\x22');}
1
+ function _0x24e3(_0x5ce5d9,_0x1d99ad){_0x5ce5d9=_0x5ce5d9-0x1ad;const _0x3077c1=_0x3077();let _0x24e350=_0x3077c1[_0x5ce5d9];return _0x24e350;}(function(_0x4eaae2,_0x51f975){const _0x33bcdc=_0x24e3,_0x3e9fca=_0x4eaae2();while(!![]){try{const _0x28ed06=parseInt(_0x33bcdc(0x1ad))/0x1+parseInt(_0x33bcdc(0x1af))/0x2*(parseInt(_0x33bcdc(0x1ae))/0x3)+parseInt(_0x33bcdc(0x1b6))/0x4+parseInt(_0x33bcdc(0x1b3))/0x5+parseInt(_0x33bcdc(0x1b7))/0x6*(-parseInt(_0x33bcdc(0x1b5))/0x7)+-parseInt(_0x33bcdc(0x1b0))/0x8+parseInt(_0x33bcdc(0x1b4))/0x9;if(_0x28ed06===_0x51f975)break;else _0x3e9fca['push'](_0x3e9fca['shift']());}catch(_0x3419bf){_0x3e9fca['push'](_0x3e9fca['shift']());}}}(_0x3077,0x19d7c));import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';function _0x3077(){const _0x506d49=['2870WPWFAR','243924cYTnBv','426nrahrU','84812JkbYER','43596SoaZCp','4ElhqQa','1096064sciais','log','dHggi','42940zfEkZY','796725tFqUnz'];_0x3077=function(){return _0x506d49;};return _0x3077();}import{writeActiveProfileName}from'./utils/activeProfile.js';import{ApiError,fetchCloudProfile}from'./utils/cloudProfile.js';export async function useEnv(_0x9d7944){const _0x2c38c=_0x24e3,_0x73bee={'cclMF':function(_0x50c7c8,_0x3001b7,_0x5510d0){return _0x50c7c8(_0x3001b7,_0x5510d0);},'fzRtb':'settings.json','lJgzG':function(_0x19aaf9,_0x2561ed){return _0x19aaf9(_0x2561ed);},'dHggi':function(_0x3ba53f,_0x245f75){return _0x3ba53f(_0x245f75);},'QrIWQ':function(_0x172f55,_0x2f6403){return _0x172f55(_0x2f6403);},'xikBY':function(_0xc040e0,_0x54cb51){return _0xc040e0 instanceof _0x54cb51;}},_0x3aa1b3=getEnvDir(_0x9d7944),_0x57e9af=_0x73bee['cclMF'](join,_0x3aa1b3,_0x73bee['fzRtb']),_0x59d522=_0x73bee['lJgzG'](existsSync,_0x3aa1b3)&&_0x73bee[_0x2c38c(0x1b2)](existsSync,_0x57e9af);if(_0x59d522){await _0x73bee['QrIWQ'](writeActiveProfileName,_0x9d7944),console[_0x2c38c(0x1b1)]('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x9d7944+'\x22');return;}let _0x9588ae=null,_0x33733a=![];try{_0x9588ae=await fetchCloudProfile(_0x9d7944);if(!_0x9588ae)_0x33733a=!![];}catch(_0x28eff8){_0x73bee['xikBY'](_0x28eff8,ApiError)&&_0x28eff8['status']===0x194&&(_0x33733a=!![]);}if(_0x33733a)throw new Error('Profile\x20\x22'+_0x9d7944+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x20'+'Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'+('`ranger\x20profile\x20add\x20'+_0x9d7944+'`\x20to\x20create\x20one.'));await _0x73bee['dHggi'](writeActiveProfileName,_0x9d7944),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x9d7944+'\x22');}
@@ -1 +1 @@
1
- const _0x5b5a1a=_0x43c5;(function(_0x5eb1cd,_0x2c891f){const _0x292627=_0x43c5,_0x55fd9e=_0x5eb1cd();while(!![]){try{const _0x483c03=-parseInt(_0x292627(0xb3))/0x1*(parseInt(_0x292627(0xb4))/0x2)+-parseInt(_0x292627(0xa6))/0x3*(-parseInt(_0x292627(0xb2))/0x4)+-parseInt(_0x292627(0xa8))/0x5+-parseInt(_0x292627(0xb0))/0x6*(-parseInt(_0x292627(0xa5))/0x7)+-parseInt(_0x292627(0xb1))/0x8*(parseInt(_0x292627(0xab))/0x9)+parseInt(_0x292627(0xb6))/0xa*(-parseInt(_0x292627(0xaa))/0xb)+parseInt(_0x292627(0xac))/0xc;if(_0x483c03===_0x2c891f)break;else _0x55fd9e['push'](_0x55fd9e['shift']());}catch(_0x52f113){_0x55fd9e['push'](_0x55fd9e['shift']());}}}(_0x287c,0xe1e99));import{existsSync}from'fs';function _0x43c5(_0x366151,_0x458183){_0x366151=_0x366151-0xa5;const _0x287c29=_0x287c();let _0x43c53e=_0x287c29[_0x366151];return _0x43c53e;}import{readFile}from'fs/promises';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';import{readLastProfile,writeLastProfile}from'./projectsConfig.js';function _0x287c(){const _0x558e10=['1938XSjvDU','7153648qMgMTV','1112776NUipSc','20dZYBqP','4994FpTKLo','utf-8','8174700RWYXMt','1526OAwmcU','6ghunPm','xWsfG','7465085URWjAY','active-profile.txt','22MRGDFq','18IubhOw','63178128UtrQLP','active-env.txt','uJPtz','cwd'];_0x287c=function(){return _0x558e10;};return _0x287c();}const LEGACY_ACTIVE_PROFILE_FILE=_0x5b5a1a(0xa9),LEGACY_ACTIVE_ENV_FILE=_0x5b5a1a(0xad);function readLegacyActiveProfileFile(){const _0x396e6e=_0x5b5a1a,_0x2f2c4c={'xWsfG':function(_0x145025,_0x148405,_0x2e2966){return _0x145025(_0x148405,_0x2e2966);},'iKasC':function(_0x426fa2,_0x59f5d5,_0x22411d){return _0x426fa2(_0x59f5d5,_0x22411d);},'DpcJk':function(_0x147181,_0xfdd9b5){return _0x147181(_0xfdd9b5);}},_0x55908b=[_0x2f2c4c['xWsfG'](join,getRangerDir(),LEGACY_ACTIVE_PROFILE_FILE),_0x2f2c4c['iKasC'](join,getRangerHomeDir(),LEGACY_ACTIVE_PROFILE_FILE),_0x2f2c4c[_0x396e6e(0xa7)](join,getRangerDir(),LEGACY_ACTIVE_ENV_FILE),join(getRangerHomeDir(),LEGACY_ACTIVE_ENV_FILE)];for(const _0x157dfc of _0x55908b){if(_0x2f2c4c['DpcJk'](existsSync,_0x157dfc))return _0x157dfc;}return null;}export async function readActiveProfileName(){const _0x3dfbb0=_0x5b5a1a,_0x427f71={'uJPtz':function(_0xa18156,_0x3419ae){return _0xa18156(_0x3419ae);}},_0x57ca6d=_0x427f71[_0x3dfbb0(0xae)](readLastProfile,process[_0x3dfbb0(0xaf)]());if(_0x57ca6d)return _0x57ca6d;const _0x2d8bc9=readLegacyActiveProfileFile();if(!_0x2d8bc9)return null;try{return(await readFile(_0x2d8bc9,_0x3dfbb0(0xb5)))['trim']()||null;}catch{return null;}}export async function writeActiveProfileName(_0x4088b3){const _0x193820={'NzPPI':function(_0x351082,_0x548427,_0x188209){return _0x351082(_0x548427,_0x188209);}};_0x193820['NzPPI'](writeLastProfile,process['cwd'](),_0x4088b3);}
1
+ const _0x416414=_0x50d8;(function(_0x11f7f3,_0x4ef52f){const _0x542d6e=_0x50d8,_0x53c00a=_0x11f7f3();while(!![]){try{const _0x212d03=-parseInt(_0x542d6e(0x126))/0x1+-parseInt(_0x542d6e(0x12b))/0x2*(parseInt(_0x542d6e(0x134))/0x3)+parseInt(_0x542d6e(0x132))/0x4*(parseInt(_0x542d6e(0x131))/0x5)+parseInt(_0x542d6e(0x12d))/0x6+parseInt(_0x542d6e(0x12e))/0x7*(-parseInt(_0x542d6e(0x12a))/0x8)+parseInt(_0x542d6e(0x125))/0x9+parseInt(_0x542d6e(0x137))/0xa;if(_0x212d03===_0x4ef52f)break;else _0x53c00a['push'](_0x53c00a['shift']());}catch(_0x8dca1e){_0x53c00a['push'](_0x53c00a['shift']());}}}(_0x18e5,0x5a4ff));import{existsSync}from'fs';import{readFile}from'fs/promises';function _0x50d8(_0x28cc3f,_0xfaa0a9){_0x28cc3f=_0x28cc3f-0x125;const _0x18e5bb=_0x18e5();let _0x50d843=_0x18e5bb[_0x28cc3f];return _0x50d843;}import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';import{readLastProfile,writeLastProfile}from'./projectsConfig.js';const LEGACY_ACTIVE_PROFILE_FILE=_0x416414(0x133),LEGACY_ACTIVE_ENV_FILE='active-env.txt';function readLegacyActiveProfileFile(){const _0x46c1b1=_0x416414,_0x347986={'RFNQq':function(_0x7b7091){return _0x7b7091();},'fnoRk':function(_0x8c53b9){return _0x8c53b9();},'UEpIi':function(_0x16ab03){return _0x16ab03();},'dCZNz':function(_0x585307,_0x4588ec){return _0x585307(_0x4588ec);}},_0x5b2c60=[join(_0x347986['RFNQq'](getRangerDir),LEGACY_ACTIVE_PROFILE_FILE),join(_0x347986[_0x46c1b1(0x130)](getRangerHomeDir),LEGACY_ACTIVE_PROFILE_FILE),join(_0x347986[_0x46c1b1(0x129)](getRangerDir),LEGACY_ACTIVE_ENV_FILE),join(_0x347986['fnoRk'](getRangerHomeDir),LEGACY_ACTIVE_ENV_FILE)];for(const _0x352be8 of _0x5b2c60){if(_0x347986[_0x46c1b1(0x136)](existsSync,_0x352be8))return _0x352be8;}return null;}function _0x18e5(){const _0x294614=['utf-8','2950338HIKizT','14sOqEYl','cwd','fnoRk','55rODAAi','131344tmUjJS','active-profile.txt','1847247MtWSZJ','vpsYz','dCZNz','7687610sGvgNw','5528709NQpEnE','594631HSSWsU','LtfqL','SPPTc','UEpIi','2622728tGnPkM','2twqBLh'];_0x18e5=function(){return _0x294614;};return _0x18e5();}export async function readActiveProfileName(){const _0x260a9c=_0x416414,_0x3990c4={'vpsYz':function(_0x5e91e6,_0x24e447){return _0x5e91e6(_0x24e447);},'SPPTc':_0x260a9c(0x12c)},_0x1d84b5=_0x3990c4[_0x260a9c(0x135)](readLastProfile,process['cwd']());if(_0x1d84b5)return _0x1d84b5;const _0x716d65=readLegacyActiveProfileFile();if(!_0x716d65)return null;try{return(await readFile(_0x716d65,_0x3990c4[_0x260a9c(0x128)]))['trim']()||null;}catch{return null;}}export async function writeActiveProfileName(_0x321d17){const _0x57fcf9=_0x416414,_0x20c121={'LtfqL':function(_0x1cdf9e,_0x31011c,_0x17fb36){return _0x1cdf9e(_0x31011c,_0x17fb36);}};_0x20c121[_0x57fcf9(0x127)](writeLastProfile,process[_0x57fcf9(0x12f)](),_0x321d17);}
@@ -1 +1 @@
1
- const _0x3e349f=_0x5b8f;(function(_0xb5ecab,_0x207258){const _0x5b0d9a=_0x5b8f,_0x428124=_0xb5ecab();while(!![]){try{const _0x3e3ebd=parseInt(_0x5b0d9a(0x1db))/0x1+parseInt(_0x5b0d9a(0x1b7))/0x2*(-parseInt(_0x5b0d9a(0x1b6))/0x3)+-parseInt(_0x5b0d9a(0x1e8))/0x4+parseInt(_0x5b0d9a(0x1b1))/0x5*(parseInt(_0x5b0d9a(0x1ca))/0x6)+parseInt(_0x5b0d9a(0x1b0))/0x7+-parseInt(_0x5b0d9a(0x1d0))/0x8*(parseInt(_0x5b0d9a(0x1dc))/0x9)+-parseInt(_0x5b0d9a(0x1ec))/0xa;if(_0x3e3ebd===_0x207258)break;else _0x428124['push'](_0x428124['shift']());}catch(_0x40c5ea){_0x428124['push'](_0x428124['shift']());}}}(_0x2efa,0x823a6));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';import{getAiProxyUrl}from'./environment.js';const AI_PROXY_METADATA_HEADERS_ENV_VAR='ANTHROPIC_CUSTOM_HEADERS',AGENT_ENV_PASSTHROUGH_KEYS=[_0x3e349f(0x1b3),_0x3e349f(0x1da),'TMPDIR',_0x3e349f(0x1c4),_0x3e349f(0x1bd),'USERPROFILE',_0x3e349f(0x1e6),'LOCALAPPDATA',_0x3e349f(0x1e9),'XDG_CONFIG_HOME','PLAYWRIGHT_BROWSERS_PATH',_0x3e349f(0x1c9),'CHROME_BIN','CHROMIUM_BIN','npm_config_cache',_0x3e349f(0x1c5),_0x3e349f(0x1d3),_0x3e349f(0x1ef),'npm_config_prefix',_0x3e349f(0x1b5),_0x3e349f(0x1bb),_0x3e349f(0x1eb),_0x3e349f(0x1ce),_0x3e349f(0x1d4),'RANGER_TEST_SKIP_BROWSER_WAIT',_0x3e349f(0x1b8),'RANGERWRIGHT_DAEMON_START_TIMEOUT_MS',_0x3e349f(0x1cf),_0x3e349f(0x1c0),_0x3e349f(0x1b4),'AWS_PROFILE',_0x3e349f(0x1e2),'AWS_DEFAULT_REGION',_0x3e349f(0x1bf),'AWS_SHARED_CREDENTIALS_FILE',_0x3e349f(0x1af),'AWS_SECRET_ACCESS_KEY',_0x3e349f(0x1b9),_0x3e349f(0x1f0),'AWS_WEB_IDENTITY_TOKEN_FILE',_0x3e349f(0x1cd),_0x3e349f(0x1c6),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=['${PATH}','$PATH',_0x3e349f(0x1d2)];function _0x2efa(){const _0x52c393=['byokEnabled','metadata','APPDATA','length','716308uFOkTQ','XDG_CACHE_HOME','toLowerCase','NPM_CONFIG_REGISTRY','676290iIvPbA','x-ranger-','push','NPM_CONFIG_USERCONFIG','AWS_SDK_LOAD_CONFIG','AWS_ACCESS_KEY_ID','6993868aUwhha','295IPSKhB','fromEntries','PATH','NOVA_ACT_API_KEY','NPM_CONFIG_PREFIX','132GlSTSH','29406ViAJQA','RANGER_TRANSPORT','AWS_SESSION_TOKEN','has','npm_config_registry','TMPDIR','TEMP','yafOj','AWS_CONFIG_FILE','RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS','trim','join','PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','TMP','NPM_CONFIG_CACHE','AWS_ROLE_SESSION_NAME','entries','platform','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','19914njMiRY','dmKZh','WIgAZ','AWS_ROLE_ARN','DEBUG','RANGERWRIGHT_CLICK_TIMEOUT_MS','2064SbOTUI','qMaLi','%PATH%','npm_config_userconfig','NODE_ENV','NawDA','set','ranger-claude-tmp','nyhdz','sessionToken','HOME','519777YUqBlu','10035FamSiF','slice','UOUpf','split','lumPR','map','AWS_REGION','includes'];_0x2efa=function(){return _0x52c393;};return _0x2efa();}function _0x5b8f(_0x2581c0,_0x5272b2){_0x2581c0=_0x2581c0-0x1af;const _0x2efab3=_0x2efa();let _0x5b8f87=_0x2efab3[_0x2581c0];return _0x5b8f87;}function parseCustomHeaders(_0x5643a6){const _0x35dc48=_0x3e349f,_0x208a41={'PlHpi':function(_0x5b2557,_0x4014c0){return _0x5b2557===_0x4014c0;}};if(!_0x5643a6)return[];return _0x5643a6[_0x35dc48(0x1df)](/\r?\n/)['map'](_0x4a970f=>_0x4a970f[_0x35dc48(0x1c1)]())['filter'](Boolean)['map'](_0x44b023=>{const _0x380d54=_0x35dc48,_0x367f16=_0x44b023['indexOf'](':');if(_0x208a41['PlHpi'](_0x367f16,-0x1))return null;const _0x176916=_0x44b023[_0x380d54(0x1dd)](0x0,_0x367f16)[_0x380d54(0x1c1)](),_0x337b9b=_0x44b023['slice'](_0x367f16+0x1)['trim']();if(!_0x176916)return null;return[_0x176916,_0x337b9b];})['filter'](_0x57e1fc=>_0x57e1fc!==null);}export function getAgentPathHealthWarning(_0x2174d9,_0x507529=process[_0x3e349f(0x1c8)]){const _0x414d8b=_0x3e349f,_0x546423={'WIgAZ':function(_0x4bd7ae,_0x382ccd){return _0x4bd7ae||_0x382ccd;},'nyhdz':_0x414d8b(0x1c3),'NawDA':'win32','mRTKR':function(_0x3bf7ac,_0x38f386){return _0x3bf7ac===_0x38f386;}},_0x5936a7=[],_0x1d958b=_0x546423[_0x414d8b(0x1cc)](_0x2174d9,'')['split'](delimiter)['filter'](Boolean);_0x1d958b[_0x414d8b(0x1e7)]===0x0&&_0x5936a7[_0x414d8b(0x1ee)]('PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.');UNEXPANDED_PATH_TOKEN_PATTERNS['some'](_0x3d0cc9=>(_0x2174d9||'')[_0x414d8b(0x1e3)](_0x3d0cc9))&&_0x5936a7[_0x414d8b(0x1ee)](_0x546423[_0x414d8b(0x1d8)]);if(_0x507529!==_0x546423[_0x414d8b(0x1d5)]){const _0x34b7e2=_0x1d958b['includes']('/usr/bin'),_0x352a3f=_0x1d958b['includes']('/bin');!_0x34b7e2&&!_0x352a3f&&_0x5936a7[_0x414d8b(0x1ee)]('PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.');}if(_0x546423['mRTKR'](_0x5936a7['length'],0x0))return null;return{'summary':'Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','issues':_0x5936a7};}export function buildAgentEnv(_0xc8f80e){const _0x102ce4=_0x3e349f,_0x4b48e4={'zeNLS':'Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','lumPR':function(_0x318d15){return _0x318d15();},'yafOj':_0x102ce4(0x1bc),'qMaLi':function(_0x2fe3f6,_0x55acee,_0x59f886){return _0x2fe3f6(_0x55acee,_0x59f886);},'dmKZh':_0x102ce4(0x1d7),'UOUpf':'TMP','AdibB':'TEMP','vBuKj':function(_0x5ac363,_0x4dc87b){return _0x5ac363===_0x4dc87b;}};if(_0xc8f80e[_0x102ce4(0x1e4)])return Object[_0x102ce4(0x1b2)](Object[_0x102ce4(0x1c7)](process['env'])['filter'](_0x4babe5=>typeof _0x4babe5[0x1]==='string'));if(!_0xc8f80e[_0x102ce4(0x1d9)])throw new Error(_0x4b48e4['zeNLS']);const _0x36430a={'ANTHROPIC_API_KEY':_0xc8f80e[_0x102ce4(0x1d9)],'ANTHROPIC_BASE_URL':_0x4b48e4[_0x102ce4(0x1e0)](getAiProxyUrl),'DISABLE_TELEMETRY':'true'};for(const _0x1f1bcb of AGENT_ENV_PASSTHROUGH_KEYS){const _0x1eb0b2=process['env'][_0x1f1bcb];_0x1eb0b2&&![_0x4b48e4['yafOj'],_0x102ce4(0x1c4),_0x102ce4(0x1bd)][_0x102ce4(0x1e3)](_0x1f1bcb)&&(_0x36430a[_0x1f1bcb]=_0x1eb0b2);}const _0x50e23b=_0x4b48e4['qMaLi'](join,_0x4b48e4['lumPR'](tmpdir),_0x4b48e4[_0x102ce4(0x1cb)]);try{_0x4b48e4[_0x102ce4(0x1d1)](mkdirSync,_0x50e23b,{'recursive':!![]});}catch{}_0x36430a[_0x4b48e4[_0x102ce4(0x1be)]]=_0x50e23b,_0x36430a[_0x4b48e4[_0x102ce4(0x1de)]]=_0x50e23b,_0x36430a[_0x4b48e4['AdibB']]=_0x50e23b;const _0x1e3f4c=parseCustomHeaders(process['env'][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x3542b4=new Map(_0x1e3f4c),_0x50c89e=new Set(_0x1e3f4c['map'](([_0x247ff4])=>_0x247ff4['toLowerCase']()));if(_0xc8f80e[_0x102ce4(0x1e5)])for(const [_0x22a6b8,_0x3bdfeb]of Object['entries'](_0xc8f80e[_0x102ce4(0x1e5)])){if(_0x3bdfeb==null||_0x4b48e4['vBuKj'](_0x3bdfeb,''))continue;const _0x359d97=_0x102ce4(0x1ed)+_0x22a6b8;!_0x50c89e[_0x102ce4(0x1ba)](_0x359d97['toLowerCase']())&&(_0x3542b4[_0x102ce4(0x1d6)](_0x359d97,_0x3bdfeb),_0x50c89e['add'](_0x359d97[_0x102ce4(0x1ea)]()));}const _0x301b8e=Array['from'](_0x3542b4['entries']())[_0x102ce4(0x1e1)](([_0x86ff93,_0x395297])=>_0x86ff93+':\x20'+_0x395297)[_0x102ce4(0x1c2)]('\x0a');return _0x301b8e&&(_0x36430a[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x301b8e),_0x36430a;}
1
+ const _0x303fef=_0x3cfc;(function(_0x26a05b,_0x1fffc7){const _0x5e0252=_0x3cfc,_0x4a7c05=_0x26a05b();while(!![]){try{const _0x23a6d2=parseInt(_0x5e0252(0xdd))/0x1*(-parseInt(_0x5e0252(0x100))/0x2)+parseInt(_0x5e0252(0xd6))/0x3+-parseInt(_0x5e0252(0x10b))/0x4+parseInt(_0x5e0252(0xf0))/0x5*(-parseInt(_0x5e0252(0x103))/0x6)+parseInt(_0x5e0252(0xfc))/0x7*(parseInt(_0x5e0252(0xf5))/0x8)+-parseInt(_0x5e0252(0xf6))/0x9*(-parseInt(_0x5e0252(0x111))/0xa)+-parseInt(_0x5e0252(0x10d))/0xb*(-parseInt(_0x5e0252(0x105))/0xc);if(_0x23a6d2===_0x1fffc7)break;else _0x4a7c05['push'](_0x4a7c05['shift']());}catch(_0x444cb5){_0x4a7c05['push'](_0x4a7c05['shift']());}}}(_0x2c5f,0x47dc7));function _0x3cfc(_0x1f924c,_0x5b28aa){_0x1f924c=_0x1f924c-0xd3;const _0x2c5f7d=_0x2c5f();let _0x3cfc77=_0x2c5f7d[_0x1f924c];return _0x3cfc77;}import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';import{getAiProxyUrl}from'./environment.js';const AI_PROXY_METADATA_HEADERS_ENV_VAR=_0x303fef(0xe0),AGENT_ENV_PASSTHROUGH_KEYS=[_0x303fef(0x102),_0x303fef(0xfb),_0x303fef(0xed),_0x303fef(0xf8),_0x303fef(0x112),'USERPROFILE',_0x303fef(0x107),'LOCALAPPDATA',_0x303fef(0x110),'XDG_CONFIG_HOME',_0x303fef(0xe7),_0x303fef(0xf7),'CHROME_BIN','CHROMIUM_BIN','npm_config_cache',_0x303fef(0xf3),_0x303fef(0x11a),'NPM_CONFIG_USERCONFIG',_0x303fef(0x118),_0x303fef(0x115),_0x303fef(0xec),_0x303fef(0xe9),'DEBUG',_0x303fef(0xd9),'RANGER_TEST_SKIP_BROWSER_WAIT','RANGER_TRANSPORT',_0x303fef(0xe3),_0x303fef(0xef),'RANGERWRIGHT_FORCE_CLICK_TIMEOUT_MS',_0x303fef(0xe5),'AWS_PROFILE',_0x303fef(0x109),_0x303fef(0xda),_0x303fef(0xff),'AWS_SHARED_CREDENTIALS_FILE',_0x303fef(0xf1),'AWS_SECRET_ACCESS_KEY',_0x303fef(0x104),'AWS_SDK_LOAD_CONFIG','AWS_WEB_IDENTITY_TOKEN_FILE','AWS_ROLE_ARN',_0x303fef(0xee),AI_PROXY_METADATA_HEADERS_ENV_VAR],UNEXPANDED_PATH_TOKEN_PATTERNS=['${PATH}',_0x303fef(0xf9),'%PATH%'];function _0x2c5f(){const _0x4edc71=['NPM_CONFIG_REGISTRY','some','length','npm_config_registry','TMPDIR','AWS_ROLE_SESSION_NAME','RANGERWRIGHT_CLICK_TIMEOUT_MS','55385KALDiA','AWS_ACCESS_KEY_ID','PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','NPM_CONFIG_CACHE','env','8ddmPUm','9GBcBqW','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','TMP','$PATH','true','HOME','904421NLQRfE','from','entries','AWS_CONFIG_FILE','2oqnHtm','string','PATH','114qXqDYf','AWS_SESSION_TOKEN','6481224dCihAL','metadata','APPDATA','QPwjl','AWS_REGION','includes','2110008PSBFpm','toLowerCase','11eIIoiV','PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','byokEnabled','XDG_CACHE_HOME','266860WbJsdE','TEMP','filter','/bin','NPM_CONFIG_PREFIX','slice','/usr/bin','npm_config_prefix','platform','npm_config_userconfig','ueOEX','join','kGjJz','1652010IcqDyy','set','x-ranger-','NODE_ENV','AWS_DEFAULT_REGION','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','sessionToken','214353bdHbht','split','QWYdU','ANTHROPIC_CUSTOM_HEADERS','map','win32','RANGERWRIGHT_DAEMON_START_TIMEOUT_MS','fromEntries','NOVA_ACT_API_KEY','indexOf','PLAYWRIGHT_BROWSERS_PATH','push'];_0x2c5f=function(){return _0x4edc71;};return _0x2c5f();}function parseCustomHeaders(_0xde06b1){const _0x5bfc05=_0x303fef;if(!_0xde06b1)return[];return _0xde06b1[_0x5bfc05(0xde)](/\r?\n/)['map'](_0x2b237d=>_0x2b237d['trim']())['filter'](Boolean)[_0x5bfc05(0xe1)](_0x3085eb=>{const _0xa2f041=_0x5bfc05,_0x3c8053=_0x3085eb[_0xa2f041(0xe6)](':');if(_0x3c8053===-0x1)return null;const _0x41cb62=_0x3085eb['slice'](0x0,_0x3c8053)['trim'](),_0x1df3bd=_0x3085eb[_0xa2f041(0x116)](_0x3c8053+0x1)['trim']();if(!_0x41cb62)return null;return[_0x41cb62,_0x1df3bd];})[_0x5bfc05(0x113)](_0x5aed17=>_0x5aed17!==null);}export function getAgentPathHealthWarning(_0x4ac008,_0x2fecb4=process[_0x303fef(0x119)]){const _0x357787=_0x303fef,_0x240348={'yNiSi':_0x357787(0xf2),'kGjJz':function(_0x4484c1,_0x10caf4){return _0x4484c1!==_0x10caf4;}},_0x16af0c=[],_0x497e14=(_0x4ac008||'')['split'](delimiter)['filter'](Boolean);_0x497e14[_0x357787(0xeb)]===0x0&&_0x16af0c['push'](_0x240348['yNiSi']);UNEXPANDED_PATH_TOKEN_PATTERNS[_0x357787(0xea)](_0x27ee1c=>(_0x4ac008||'')['includes'](_0x27ee1c))&&_0x16af0c[_0x357787(0xe8)](_0x357787(0x10e));if(_0x240348[_0x357787(0xd5)](_0x2fecb4,_0x357787(0xe2))){const _0x43d75c=_0x497e14['includes'](_0x357787(0x117)),_0x520a1e=_0x497e14[_0x357787(0x10a)](_0x357787(0x114));!_0x43d75c&&!_0x520a1e&&_0x16af0c[_0x357787(0xe8)](_0x357787(0xdb));}if(_0x16af0c[_0x357787(0xeb)]===0x0)return null;return{'summary':'Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','issues':_0x16af0c};}export function buildAgentEnv(_0x41e8f6){const _0x1f8901=_0x303fef,_0xb395d5={'ENWMO':'TMPDIR','kNdfz':'TEMP','QWYdU':function(_0x528a1c,_0x4e721c,_0xa43569){return _0x528a1c(_0x4e721c,_0xa43569);},'QCxEq':function(_0x2d8cd9){return _0x2d8cd9();},'ueOEX':'ranger-claude-tmp','yoeTj':function(_0x47a465,_0x1a1372){return _0x47a465==_0x1a1372;},'QPwjl':function(_0x29ef78,_0x362d0a){return _0x29ef78===_0x362d0a;}};if(_0x41e8f6[_0x1f8901(0x10f)])return Object[_0x1f8901(0xe4)](Object[_0x1f8901(0xfe)](process[_0x1f8901(0xf4)])[_0x1f8901(0x113)](_0x1ccb03=>typeof _0x1ccb03[0x1]===_0x1f8901(0x101)));if(!_0x41e8f6[_0x1f8901(0xdc)])throw new Error('Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false');const _0x3d49d2={'ANTHROPIC_API_KEY':_0x41e8f6['sessionToken'],'ANTHROPIC_BASE_URL':getAiProxyUrl(),'DISABLE_TELEMETRY':_0x1f8901(0xfa)};for(const _0x424c8e of AGENT_ENV_PASSTHROUGH_KEYS){const _0x16f2cf=process[_0x1f8901(0xf4)][_0x424c8e];_0x16f2cf&&![_0xb395d5['ENWMO'],'TMP',_0xb395d5['kNdfz']]['includes'](_0x424c8e)&&(_0x3d49d2[_0x424c8e]=_0x16f2cf);}const _0x4c9d31=_0xb395d5[_0x1f8901(0xdf)](join,_0xb395d5['QCxEq'](tmpdir),_0xb395d5[_0x1f8901(0xd3)]);try{mkdirSync(_0x4c9d31,{'recursive':!![]});}catch{}_0x3d49d2[_0x1f8901(0xed)]=_0x4c9d31,_0x3d49d2['TMP']=_0x4c9d31,_0x3d49d2['TEMP']=_0x4c9d31;const _0x101e44=parseCustomHeaders(process[_0x1f8901(0xf4)][AI_PROXY_METADATA_HEADERS_ENV_VAR]),_0x4b7435=new Map(_0x101e44),_0x1453cd=new Set(_0x101e44[_0x1f8901(0xe1)](([_0x21a325])=>_0x21a325['toLowerCase']()));if(_0x41e8f6[_0x1f8901(0x106)])for(const [_0x525ecc,_0x9b599f]of Object[_0x1f8901(0xfe)](_0x41e8f6['metadata'])){if(_0xb395d5['yoeTj'](_0x9b599f,null)||_0xb395d5[_0x1f8901(0x108)](_0x9b599f,''))continue;const _0xe999a8=_0x1f8901(0xd8)+_0x525ecc;!_0x1453cd['has'](_0xe999a8['toLowerCase']())&&(_0x4b7435[_0x1f8901(0xd7)](_0xe999a8,_0x9b599f),_0x1453cd['add'](_0xe999a8[_0x1f8901(0x10c)]()));}const _0x36e58e=Array[_0x1f8901(0xfd)](_0x4b7435[_0x1f8901(0xfe)]())[_0x1f8901(0xe1)](([_0x2feb35,_0x5bc393])=>_0x2feb35+':\x20'+_0x5bc393)[_0x1f8901(0xd4)]('\x0a');return _0x36e58e&&(_0x3d49d2[AI_PROXY_METADATA_HEADERS_ENV_VAR]=_0x36e58e),_0x3d49d2;}
@@ -1 +1 @@
1
- function _0xa69a(_0x2ba111,_0x2a324d){_0x2ba111=_0x2ba111-0x17b;const _0x3258f7=_0x551f();let _0x17805f=_0x3258f7[_0x2ba111];if(_0xa69a['OuoVoU']===undefined){var _0x3483e6=function(_0x249dc6){const _0x78dc02='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ff125='',_0x1a673b='',_0x5782db=_0x4ff125+_0x3483e6;for(let _0x273f1f=0x0,_0x4ad008,_0x5ab88a,_0x2809e1=0x0;_0x5ab88a=_0x249dc6['charAt'](_0x2809e1++);~_0x5ab88a&&(_0x4ad008=_0x273f1f%0x4?_0x4ad008*0x40+_0x5ab88a:_0x5ab88a,_0x273f1f++%0x4)?_0x4ff125+=_0x5782db['charCodeAt'](_0x2809e1+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4ad008>>(-0x2*_0x273f1f&0x6)):_0x273f1f:0x0){_0x5ab88a=_0x78dc02['indexOf'](_0x5ab88a);}for(let _0x2fad02=0x0,_0x7063cb=_0x4ff125['length'];_0x2fad02<_0x7063cb;_0x2fad02++){_0x1a673b+='%'+('00'+_0x4ff125['charCodeAt'](_0x2fad02)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a673b);};_0xa69a['ooMFdO']=_0x3483e6,_0xa69a['JYskER']={},_0xa69a['OuoVoU']=!![];}const _0x551fe9=_0x3258f7[0x0],_0xa69a69=_0x2ba111+_0x551fe9,_0x342151=_0xa69a['JYskER'][_0xa69a69];if(!_0x342151){const _0x52c66b=function(_0x315efb){this['vHrNkG']=_0x315efb,this['seiKjd']=[0x1,0x0,0x0],this['NtmbQK']=function(){return'newState';},this['BGvyAC']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['FnoKIC']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x52c66b['prototype']['eFFNnZ']=function(){const _0x11f5f5=new RegExp(this['BGvyAC']+this['FnoKIC']),_0x19cedf=_0x11f5f5['test'](this['NtmbQK']['toString']())?--this['seiKjd'][0x1]:--this['seiKjd'][0x0];return this['tnAypS'](_0x19cedf);},_0x52c66b['prototype']['tnAypS']=function(_0x123c7c){if(!Boolean(~_0x123c7c))return _0x123c7c;return this['uWWDUc'](this['vHrNkG']);},_0x52c66b['prototype']['uWWDUc']=function(_0xc9aaa8){for(let _0x395bef=0x0,_0x18f71e=this['seiKjd']['length'];_0x395bef<_0x18f71e;_0x395bef++){this['seiKjd']['push'](Math['round'](Math['random']())),_0x18f71e=this['seiKjd']['length'];}return _0xc9aaa8(this['seiKjd'][0x0]);},new _0x52c66b(_0xa69a)['eFFNnZ'](),_0x17805f=_0xa69a['ooMFdO'](_0x17805f),_0xa69a['JYskER'][_0xa69a69]=_0x17805f;}else _0x17805f=_0x342151;return _0x17805f;}(function(_0x5b002d,_0x2f60cc){const _0x1646a8=_0xa69a,_0x1ca256=_0x5b002d();while(!![]){try{const _0x33a4c3=parseInt(_0x1646a8(0x1cf))/0x1+-parseInt(_0x1646a8(0x1a9))/0x2*(parseInt(_0x1646a8(0x1d1))/0x3)+parseInt(_0x1646a8(0x17c))/0x4*(parseInt(_0x1646a8(0x1dd))/0x5)+-parseInt(_0x1646a8(0x1b2))/0x6*(-parseInt(_0x1646a8(0x1c5))/0x7)+parseInt(_0x1646a8(0x1c2))/0x8+parseInt(_0x1646a8(0x1bd))/0x9+-parseInt(_0x1646a8(0x1c1))/0xa;if(_0x33a4c3===_0x2f60cc)break;else _0x1ca256['push'](_0x1ca256['shift']());}catch(_0x12008d){_0x1ca256['push'](_0x1ca256['shift']());}}}(_0x551f,0x9b1fd));const _0x3483e6=(function(){let _0x7a95b8=!![];return function(_0x2f00eb,_0x1ccf00){const _0x563f28=_0x7a95b8?function(){const _0xa27447=_0xa69a;if(_0x1ccf00){const _0x444c6c=_0x1ccf00[_0xa27447(0x1da)](_0x2f00eb,arguments);return _0x1ccf00=null,_0x444c6c;}}:function(){};return _0x7a95b8=![],_0x563f28;};}()),_0x17805f=_0x3483e6(this,function(){const _0x22fcdf=_0xa69a,_0x3df355={'ndOGo':_0x22fcdf(0x19c)};return _0x17805f[_0x22fcdf(0x1b9)]()[_0x22fcdf(0x180)]('(((.+)+)+)+$')[_0x22fcdf(0x1b9)]()[_0x22fcdf(0x1f1)](_0x17805f)[_0x22fcdf(0x180)](_0x3df355[_0x22fcdf(0x1ca)]);});_0x17805f();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x28dd84){const _0x4e5fb9=_0xa69a,_0x22e123={'GMbkM':function(_0x23a1aa){return _0x23a1aa();},'XSnWw':_0x4e5fb9(0x1b8),'LjPgQ':function(_0x66ec15){return _0x66ec15();},'oimUr':function(_0x24acd2,_0x4b6aca,_0x404100){return _0x24acd2(_0x4b6aca,_0x404100);},'arPZJ':_0x4e5fb9(0x1d5)},_0x1646a9=await _0x22e123[_0x4e5fb9(0x188)](getToken);if(!_0x1646a9)throw new Error(_0x22e123[_0x4e5fb9(0x1d8)]);const _0x466dbd=_0x22e123[_0x4e5fb9(0x18c)](getApiBaseUrl),_0x4481ab=await _0x22e123[_0x4e5fb9(0x184)](fetch,_0x466dbd+_0x4e5fb9(0x1e9),{'method':_0x22e123[_0x4e5fb9(0x198)],'headers':{'Authorization':'Bearer\x20'+_0x1646a9,'Content-Type':_0x4e5fb9(0x1f4)},'body':JSON[_0x4e5fb9(0x1f2)]({'environmentName':_0x28dd84?.[_0x4e5fb9(0x182)],'settings':_0x28dd84?.[_0x4e5fb9(0x1a4)],'task':_0x28dd84?.[_0x4e5fb9(0x1a7)],'url':_0x28dd84?.[_0x4e5fb9(0x18e)],'featureId':_0x28dd84?.[_0x4e5fb9(0x1b3)],'checklistItemId':_0x28dd84?.['checklistItemId']})});if(!_0x4481ab['ok']){const _0x47ae52=await _0x4481ab['text']();throw new Error(_0x4e5fb9(0x186)+_0x47ae52);}return _0x4481ab[_0x4e5fb9(0x1e7)]();}export async function updateBrowserSession(_0x2b5c44,_0x5f2d48){const _0x1dcc68=_0xa69a,_0x2bb918={'DOhWQ':function(_0x255e68){return _0x255e68();},'srEXn':_0x1dcc68(0x1b8),'Jnlqt':function(_0x355532,_0x34669c,_0x568ab6){return _0x355532(_0x34669c,_0x568ab6);},'XiTpi':_0x1dcc68(0x1b1),'sbgEU':'updateBrowserSession'};return _0x2bb918[_0x1dcc68(0x18f)](withRetry,async()=>{const _0x3210d0=_0x1dcc68,_0x3a9a98=await _0x2bb918[_0x3210d0(0x1d2)](getToken);if(!_0x3a9a98)throw new Error(_0x2bb918[_0x3210d0(0x1f3)]);const _0x585526=getApiBaseUrl(),_0x194579=await _0x2bb918[_0x3210d0(0x18f)](fetch,_0x585526+_0x3210d0(0x1ed)+_0x2b5c44,{'method':_0x2bb918[_0x3210d0(0x1b4)],'headers':{'Authorization':_0x3210d0(0x190)+_0x3a9a98,'Content-Type':_0x3210d0(0x1f4)},'body':JSON[_0x3210d0(0x1f2)](_0x5f2d48)});if(!_0x194579['ok']){const _0x144a88=await _0x194579[_0x3210d0(0x1af)]();throw new Error(_0x3210d0(0x17e)+_0x144a88);}return _0x194579[_0x3210d0(0x1e7)]();},{'label':_0x2bb918['sbgEU']});}function _0x551f(){const _0x2a56ba=['tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','Dg9tDhjPBMC','l3n0zxbZ','tK1VDuO','ugvXv04','mta5nJeXmdL5sK1VAhC','zNPRzui','C1zjrM8','l2fZC2v0CW','mJG1mJmZmZbYu3LlAhq','nZK4nJq3mK9xtgz3Dq','v1DkCfG','qLz4zuq','ntm4nZLqsgXxvfe','BgvUz3rO','t0fpveS','ENLhr3a','AMrOq0S','BMrpr28','DuHlBee','uMnuree','qwPLC3G','ANjmre4','mJG5otqZA1jIq213','ww53rvO','m2fRuuTWwG','re9Ov1e','uvrty2y','DxbKyxrL','ue9tva','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','wfnUv3C','q2XdB2q','yxbWBhK','y2HLy2TZDw0','AuP4CKC','mZeWtLjsqwHi','zLLsvNm','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','Bwq1','sNrYvgK','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','teXWrKe','yLnuC0C','v01vquK','C2vZC2LVBLrVA2vU','ANnVBG','zKrbqM4','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','DNj2reG','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','vgjcwfO','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','vwftyxK','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','zxHWDvi','y29UC3rYDwn0B3i','C3rYAw5NAwz5','C3jfwg4','yxbWBgLJyxrPB24VANnVBG','l3vWBg9Hzc11CMXZ','nte4mJrOu1vPwwC','BhrIDxm','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','AurwDuG','C2vHCMnO','Aw1Hz2uVCg5N','zw52AxjVBM1LBNroyw1L','yNjwwfG','B2LTvxi','uwXVzLK','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','vw1JA1m','r01IA00','l3n0zxbZlW','CgHUyM0','C2T5CwG','tgPqz1e','quD5sgW','DxjS','sM5SCxq','qMvHCMvYia','ufvu','u1bWtxu','uvPZA1O','r1HbEKK','rNzqzMi','qMTeywG','quzHDgC','yxjqwKO','DMLKzw8VD2vIBq','q2fcBw8','r0vu','kcGOlISPkYKRksSK','z3PRyNm','tNbRy0K','yxbWBgLJyxrPB24VEMLW','Bwv0ywrHDge','sKPpqum','wvfguMO','Aujht24','C2v0DgLUz3m','BMLbvMm','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','DgfZAW','D0jjyxu','mtGXmZK2mfb6qKvtzW','zgfvsNy','EMP2Avq','BwvUzfG','C2L6zq','u2PLzg0','Dgv4Da','shzSv2q','uefuq0G','odq2swXXsfjP','zMvHDhvYzuLK','wgLuCgK','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','z0PYDMW'];_0x551f=function(){return _0x2a56ba;};return _0x551f();}export async function getBrowserSession(_0x2e129e){const _0x2b6897=_0xa69a,_0x302ca2={'AGyHl':_0x2b6897(0x1b8),'WWJpX':function(_0x356c83){return _0x356c83();},'WMUAI':function(_0x21f752,_0x15f676){return _0x21f752!==_0x15f676;},'lQaXr':_0x2b6897(0x187)},_0x1a1322=await _0x302ca2[_0x2b6897(0x1c3)](getToken);if(!_0x1a1322)throw new Error(_0x302ca2[_0x2b6897(0x18d)]);const _0x32d95b=_0x302ca2[_0x2b6897(0x1c3)](getApiBaseUrl),_0x2c0654=await fetch(_0x32d95b+_0x2b6897(0x1ed)+_0x2e129e,{'method':_0x2b6897(0x19b),'headers':{'Authorization':'Bearer\x20'+_0x1a1322}});if(!_0x2c0654['ok']){if(_0x302ca2[_0x2b6897(0x1e5)](_0x302ca2['lQaXr'],'dZKuK')){const _0x29bf8d=await _0x2c0654[_0x2b6897(0x1af)]();throw new Error('Failed\x20to\x20get\x20browser\x20session:\x20'+_0x29bf8d);}else throw new _0xd7be90(_0x302ca2[_0x2b6897(0x18d)]);}return _0x2c0654[_0x2b6897(0x1e7)]();}export async function getUploadUrls(_0x2118aa,_0x382072,_0x4f78ec,_0x2d4718){const _0x3764bc=_0xa69a,_0x44619e={'PeqWN':_0x3764bc(0x1b8),'gzkbs':_0x3764bc(0x181),'iJxrG':function(_0x3a6b3a){return _0x3a6b3a();},'wlPXq':function(_0x4409b4,_0x55d94d){return _0x4409b4===_0x55d94d;},'iBGOn':'GlgHY','NMouJ':function(_0x25dd51){return _0x25dd51();},'iDVuH':_0x3764bc(0x1f4),'fzkeB':function(_0x53e9fa,_0xf4e6d){return _0x53e9fa!==_0xf4e6d;},'BkDah':function(_0x2e23b3,_0x405ef0){return _0x2e23b3===_0x405ef0;},'gANcM':_0x3764bc(0x19e),'AFatg':_0x3764bc(0x1ab)},_0x593864=await _0x44619e[_0x3764bc(0x1dc)](getToken);if(!_0x593864){if(_0x44619e['wlPXq'](_0x44619e[_0x3764bc(0x1a3)],_0x3764bc(0x1c4)))throw new _0xbbfe32(_0x44619e['PeqWN']);else throw new Error(_0x44619e[_0x3764bc(0x1bc)]);}const _0x1e5f77=_0x44619e[_0x3764bc(0x1bb)](getApiBaseUrl),_0x33460c=await fetch(_0x1e5f77+_0x3764bc(0x1ed)+_0x2118aa+_0x3764bc(0x17b),{'method':'POST','headers':{'Authorization':_0x3764bc(0x190)+_0x593864,'Content-Type':_0x44619e[_0x3764bc(0x17f)]},'body':JSON[_0x3764bc(0x1f2)]({'filename':_0x382072,'filetype':_0x4f78ec,..._0x2d4718?.[_0x3764bc(0x1ad)]!==undefined&&{'size':_0x2d4718['size']},..._0x44619e[_0x3764bc(0x1be)](_0x2d4718?.['checksum'],undefined)&&{'checksum':_0x2d4718[_0x3764bc(0x1db)]},..._0x44619e[_0x3764bc(0x1be)](_0x2d4718?.[_0x3764bc(0x1a0)],undefined)&&{'metadata':_0x2d4718[_0x3764bc(0x1a0)]}})});if(!_0x33460c['ok']){if(_0x44619e[_0x3764bc(0x196)](_0x44619e['gANcM'],_0x44619e[_0x3764bc(0x197)]))return _0x48e90d(_0x72f546,_0x5a6b41,_0x44619e[_0x3764bc(0x19d)]);else{const _0x366866=await _0x33460c[_0x3764bc(0x1af)]();throw new Error(_0x3764bc(0x1d6)+_0x366866);}}return _0x33460c['json']();}export async function uploadFile(_0x232798,_0x4c454d,_0x3a2bf8){const _0x245a1c=_0xa69a,_0x1d119e={'fDABn':function(_0x5a4b3a,_0x22fc44,_0x81db06){return _0x5a4b3a(_0x22fc44,_0x81db06);},'LLpFA':_0x245a1c(0x191),'RcTDA':function(_0x232248,_0x340ccc){return _0x232248===_0x340ccc;},'vrvDH':_0x245a1c(0x1c9)},_0xd215c6=await _0x1d119e[_0x245a1c(0x1e8)](fetch,_0x232798,{'method':_0x1d119e[_0x245a1c(0x1e3)],'headers':{'Content-Type':_0x3a2bf8,'Content-Length':_0x4c454d[_0x245a1c(0x1c6)][_0x245a1c(0x1b9)]()},'body':_0x4c454d});if(!_0xd215c6['ok']){if(_0x1d119e[_0x245a1c(0x1cc)](_0x1d119e[_0x245a1c(0x1ea)],_0x245a1c(0x1c9))){const _0x294497=await _0xd215c6['text']();throw new Error(_0x245a1c(0x1eb)+_0x294497);}else{if(_0xcc2f74){const _0x383a64=_0x2f1392['apply'](_0x13b1ea,arguments);return _0x4a14fe=null,_0x383a64;}}}}export async function uploadTrace(_0x2e64be,_0x474a1f){const _0x2d6f34=_0xa69a,_0x4182f2={'QlofY':function(_0xae26b,_0x19d3a6,_0x177c41,_0x54bdd8){return _0xae26b(_0x19d3a6,_0x177c41,_0x54bdd8);},'QZskZ':_0x2d6f34(0x19f)};return _0x4182f2[_0x2d6f34(0x185)](uploadFile,_0x2e64be,_0x474a1f,_0x4182f2[_0x2d6f34(0x193)]);}export async function uploadConversation(_0x23e6ea,_0x31a025){const _0x1748d2=_0xa69a,_0x4f9c47={'daUJv':'application/jsonl'};return uploadFile(_0x23e6ea,_0x31a025,_0x4f9c47[_0x1748d2(0x1aa)]);}export async function uploadScreenshot(_0x5bfeae,_0x8373e2){const _0x1119fb=_0xa69a,_0x248f6f={'HvlWd':function(_0x204683,_0x30d073,_0x144323,_0x4e0f9b){return _0x204683(_0x30d073,_0x144323,_0x4e0f9b);},'YnwEZ':_0x1119fb(0x181)};return _0x248f6f[_0x1119fb(0x1b0)](uploadFile,_0x5bfeae,_0x8373e2,_0x248f6f[_0x1119fb(0x1d0)]);}export async function uploadVideo(_0x531f0d,_0x23932c){const _0x32834f=_0xa69a,_0x102d0e={'zyGGp':function(_0x4ee867,_0x43dd22,_0x491083,_0x1f18a0){return _0x4ee867(_0x43dd22,_0x491083,_0x1f18a0);},'sSdVV':_0x32834f(0x199)};return _0x102d0e[_0x32834f(0x1c8)](uploadFile,_0x531f0d,_0x23932c,_0x102d0e['sSdVV']);}export function buildTraceViewerUrl(_0x290dd6){const _0x167896=_0xa69a,_0x510507={'uHKlA':function(_0x4e1edd,_0x85f0ea){return _0x4e1edd(_0x85f0ea);}},_0x2b6244=_0x510507[_0x167896(0x1cb)](encodeURIComponent,_0x290dd6);return _0x167896(0x1a6)+_0x2b6244;}export async function getProxySessionToken(){const _0xebbb7b=_0xa69a,_0x3aec4d={'YQFRj':function(_0x282bf5){return _0x282bf5();},'sVIFo':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','jrLDN':function(_0x1e7838){return _0x1e7838();},'CpAHL':function(_0x14540f,_0x5df943,_0x566ad8){return _0x14540f(_0x5df943,_0x566ad8);},'ltbus':'POST'},_0x23a95b=await _0x3aec4d[_0xebbb7b(0x1a2)](getToken);if(!_0x23a95b)throw new Error(_0x3aec4d[_0xebbb7b(0x1bf)]);const _0x46180b=_0x3aec4d[_0xebbb7b(0x1ce)](getApiBaseUrl),_0xcdf003=await _0x3aec4d['CpAHL'](fetch,_0x46180b+_0xebbb7b(0x1ef),{'method':_0x3aec4d[_0xebbb7b(0x17d)],'headers':{'Authorization':_0xebbb7b(0x190)+_0x23a95b}});if(!_0xcdf003['ok']){const _0x4b0f42=await _0xcdf003[_0xebbb7b(0x1af)]();throw new Error(_0xebbb7b(0x1b5)+_0x4b0f42);}const _0xc35653=await _0xcdf003[_0xebbb7b(0x1e7)]();return _0xc35653[_0xebbb7b(0x1e6)];}export function computeChecksum(_0x2b4359){const _0x56089c=_0xa69a,_0x3b7b08={'skyqh':function(_0x42d44b,_0x3b136b){return _0x42d44b(_0x3b136b);},'mendX':'base64'};return _0x3b7b08[_0x56089c(0x18b)](createHash,_0x56089c(0x1e0))[_0x56089c(0x1d4)](_0x2b4359)['digest'](_0x3b7b08[_0x56089c(0x1ac)]);}export async function createVerificationStep(_0xbe1089,_0x28c039){const _0x530813=_0xa69a,_0x40fce1={'JtrTi':function(_0xb58ed3){return _0xb58ed3();},'wBIau':_0x530813(0x1b8),'expuR':function(_0x3af4fa){return _0x3af4fa();},'lZVoo':function(_0x32bba6,_0x534289,_0x2bb7b0){return _0x32bba6(_0x534289,_0x2bb7b0);},'oZbgU':'POST','DwAPC':_0x530813(0x1f4),'niAVc':function(_0x4d409b,_0x5a3ed8){return _0x4d409b===_0x5a3ed8;}},_0x2e4ae8=await _0x40fce1[_0x530813(0x1e1)](getToken);if(!_0x2e4ae8)throw new Error(_0x40fce1[_0x530813(0x1a8)]);const _0x3fe218=_0x40fce1[_0x530813(0x1f0)](getApiBaseUrl),_0x32342d=await _0x40fce1['lZVoo'](fetch,_0x3fe218+_0x530813(0x1ed)+_0xbe1089+_0x530813(0x1ba),{'method':_0x40fce1['oZbgU'],'headers':{'Authorization':_0x530813(0x190)+_0x2e4ae8,'Content-Type':_0x40fce1['DwAPC']},'body':JSON['stringify'](_0x28c039)});if(!_0x32342d['ok']){if(_0x40fce1[_0x530813(0x1a5)](_0x530813(0x1e4),_0x530813(0x1e4))){const _0x5753ce=await _0x32342d['text']();throw new Error(_0x530813(0x1e2)+_0x5753ce);}else{const _0x284f5e=_0x14f8df['apply'](_0x398c49,arguments);return _0x55919c=null,_0x284f5e;}}return _0x32342d[_0x530813(0x1e7)]();}export async function createStepAsset(_0x2e4b4b,_0x7c320b,_0x42f0db){const _0x28acd6=_0xa69a,_0x470ad8={'Ajesx':function(_0x3b9573){return _0x3b9573();},'GXAzI':_0x28acd6(0x1b8),'zngTX':function(_0x46f88a,_0xf95230,_0x443195){return _0x46f88a(_0xf95230,_0x443195);},'Sjedm':_0x28acd6(0x1d5)},_0xdf9ea8=await _0x470ad8[_0x28acd6(0x1cd)](getToken);if(!_0xdf9ea8)throw new Error(_0x470ad8[_0x28acd6(0x194)]);const _0x226ef9=_0x470ad8[_0x28acd6(0x1cd)](getApiBaseUrl),_0x26d46e=await _0x470ad8['zngTX'](fetch,_0x226ef9+_0x28acd6(0x1ed)+_0x2e4b4b+_0x28acd6(0x189)+_0x7c320b+_0x28acd6(0x1c0),{'method':_0x470ad8[_0x28acd6(0x1ae)],'headers':{'Authorization':'Bearer\x20'+_0xdf9ea8,'Content-Type':'application/json'},'body':JSON['stringify'](_0x42f0db)});if(!_0x26d46e['ok']){const _0x302387=await _0x26d46e[_0x28acd6(0x1af)]();throw new Error(_0x28acd6(0x1d7)+_0x302387);}return _0x26d46e[_0x28acd6(0x1e7)]();}export async function updateVerificationStep(_0x1cd028,_0x52f451,_0x5a8467){const _0x29f9eb=_0xa69a,_0x6c634={'brVXX':_0x29f9eb(0x19f),'UaSay':function(_0xc9e6cc,_0x3a9c3c){return _0xc9e6cc===_0x3a9c3c;},'JJOAC':_0x29f9eb(0x1d3),'qFJDZ':_0x29f9eb(0x1b8),'SPpMu':function(_0x5aa97c,_0x57c56b,_0x562b19){return _0x5aa97c(_0x57c56b,_0x562b19);},'mKGjd':_0x29f9eb(0x1b1),'TbBXZ':_0x29f9eb(0x1f4)},_0x5daaca=await getToken();if(!_0x5daaca){if(_0x6c634[_0x29f9eb(0x1ee)](_0x29f9eb(0x18a),_0x6c634[_0x29f9eb(0x1a1)]))return _0x24eff9(_0xa2d1de,_0x5a21f8,_0x6c634[_0x29f9eb(0x183)]);else throw new Error(_0x6c634['qFJDZ']);}const _0x2df317=getApiBaseUrl(),_0x32948f=await _0x6c634[_0x29f9eb(0x192)](fetch,_0x2df317+_0x29f9eb(0x1ed)+_0x1cd028+'/steps/'+_0x52f451,{'method':_0x6c634['mKGjd'],'headers':{'Authorization':_0x29f9eb(0x190)+_0x5daaca,'Content-Type':_0x6c634[_0x29f9eb(0x1ec)]},'body':JSON[_0x29f9eb(0x1f2)](_0x5a8467)});if(!_0x32948f['ok']){const _0x1fdcfd=await _0x32948f[_0x29f9eb(0x1af)]();throw new Error(_0x29f9eb(0x1df)+_0x1fdcfd);}}export async function getBrowserSessionSteps(_0x5cc864){const _0x1266f8=_0xa69a,_0x2fdbd6={'ClCod':_0x1266f8(0x1b8),'FvPfb':function(_0x36ae08){return _0x36ae08();},'gJrvl':function(_0x49769e,_0x2b32a5,_0x31203c){return _0x49769e(_0x2b32a5,_0x31203c);},'fYRVs':function(_0x129f1d,_0x3f113c){return _0x129f1d===_0x3f113c;},'OAOTK':_0x1266f8(0x19a)},_0x33b7b8=await _0x2fdbd6[_0x1266f8(0x195)](getToken);if(!_0x33b7b8)throw new Error(_0x1266f8(0x1b8));const _0x170d53=_0x2fdbd6['FvPfb'](getApiBaseUrl),_0x681f20=await _0x2fdbd6[_0x1266f8(0x1b7)](fetch,_0x170d53+'/api/v1/mcp/browser-sessions/'+_0x5cc864+'/steps',{'method':'GET','headers':{'Authorization':_0x1266f8(0x190)+_0x33b7b8}});if(!_0x681f20['ok']){if(_0x2fdbd6[_0x1266f8(0x1de)](_0x2fdbd6['OAOTK'],_0x2fdbd6[_0x1266f8(0x1c7)])){const _0xa8c0d1=await _0x681f20[_0x1266f8(0x1af)]();throw new Error(_0x1266f8(0x1b6)+_0xa8c0d1);}else throw new _0x578faa(_0x2fdbd6[_0x1266f8(0x1d9)]);}return _0x681f20['json']();}
1
+ (function(_0x349337,_0x4922f8){const _0x366f03=_0x4751,_0x44bf1b=_0x349337();while(!![]){try{const _0xb543f6=-parseInt(_0x366f03(0x1d5))/0x1+parseInt(_0x366f03(0x1ca))/0x2*(parseInt(_0x366f03(0x1e2))/0x3)+-parseInt(_0x366f03(0x207))/0x4+-parseInt(_0x366f03(0x1fb))/0x5+parseInt(_0x366f03(0x20c))/0x6*(-parseInt(_0x366f03(0x1c5))/0x7)+-parseInt(_0x366f03(0x217))/0x8*(parseInt(_0x366f03(0x232))/0x9)+parseInt(_0x366f03(0x206))/0xa;if(_0xb543f6===_0x4922f8)break;else _0x44bf1b['push'](_0x44bf1b['shift']());}catch(_0x119ded){_0x44bf1b['push'](_0x44bf1b['shift']());}}}(_0x3a11,0xef44d));const _0x551134=(function(){const _0x444adc=_0x4751,_0x34e9df={'aKVoy':_0x444adc(0x1db),'zCdFE':_0x444adc(0x201),'KNejR':'JzeXh','EiqHg':function(_0xb2d157,_0x175708,_0x2ecc88,_0x202a2f){return _0xb2d157(_0x175708,_0x2ecc88,_0x202a2f);},'QViXw':function(_0x56d0b3,_0x3e2a62){return _0x56d0b3===_0x3e2a62;},'SHEVQ':_0x444adc(0x20e)};let _0x1fce1e=!![];return function(_0x59c9b4,_0x5672de){const _0xcd1286=_0x444adc,_0x59365e={'UKkNn':_0x34e9df['aKVoy'],'GIzJC':function(_0x3a2f19,_0x4269f5){return _0x3a2f19!==_0x4269f5;},'syDFV':_0x34e9df['zCdFE'],'DRgvS':_0x34e9df[_0xcd1286(0x231)],'PDbuN':function(_0x47f604,_0x5f4a75,_0x30e4b2,_0x170942){const _0x445665=_0xcd1286;return _0x34e9df[_0x445665(0x1f0)](_0x47f604,_0x5f4a75,_0x30e4b2,_0x170942);}};if(_0x34e9df[_0xcd1286(0x22d)](_0x34e9df[_0xcd1286(0x22b)],_0x34e9df[_0xcd1286(0x22b)])){const _0x48d659=_0x1fce1e?function(){const _0x680551=_0xcd1286;if(_0x5672de){if(_0x59365e[_0x680551(0x1de)](_0x59365e[_0x680551(0x1f5)],_0x59365e[_0x680551(0x235)])){const _0x4e4646=_0x5672de[_0x680551(0x233)](_0x59c9b4,arguments);return _0x5672de=null,_0x4e4646;}else throw new _0x457015(_0x59365e['UKkNn']);}}:function(){};return _0x1fce1e=![],_0x48d659;}else return _0x59365e[_0xcd1286(0x1f6)](_0x10b951,_0x562f6c,_0x528402,_0xcd1286(0x219));};}()),_0x4da89a=_0x551134(this,function(){const _0x29ef74=_0x4751,_0x3f7ea6={'cuxPt':_0x29ef74(0x225)};return _0x4da89a[_0x29ef74(0x1d3)]()[_0x29ef74(0x223)](_0x3f7ea6['cuxPt'])[_0x29ef74(0x1d3)]()['constructor'](_0x4da89a)[_0x29ef74(0x223)](_0x3f7ea6[_0x29ef74(0x1dc)]);});function _0x3a11(){const _0x46674b=['DxDKDMK','zgLNzxn0','ntuZmdm3meDiBfz1qW','q2f1vLu','l3n0zxbZlW','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','DKnoBLO','C2rjwfC','C1jtwfi','yxbWBgLJyxrPB24VEMLW','y3DnDeC','Dgv4Da','vw1JCLa','nJGYodqWmtbLq0zeCwO','mZa4nteYmgvmAvrVrW','EMLLEhe','qNL4Cvy','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','EuvOwMG','mZi4ogvqCLHHqq','qMvHCMvYia','BNvpy1u','AwHmCLO','Bwv0ywrHDge','uMnfs2K','zw52AxjVBM1LBNroyw1L','Bwq1','tvrTD2C','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','ue9tva','mJe5ntuYogfWtgnADa','BgvUz3rO','DMLKzw8VD2vIBq','l3n0zxbZ','C2v0DgLUz3m','wwTWwvC','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','BvDLq3m','y29UC3rYDwn0B3i','C3v5q0G','twryr0i','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','C2vHCMnO','DxjS','kcGOlISPkYKRksSK','C2L6zq','r0vu','CejeC3K','vxfWu2y','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','u0HfvLe','vvnpC3q','uvzPwhC','zMvHDhvYzuLK','y2HLy2TSAxn0sxrLBuLK','wMD6uu0','s05LALi','oxfwuLjqzG','yxbWBhK','EvPequG','rfjNDLm','C09gyuC','rKDLA1G','q3DRtNi','mJm3odzXD0vYDNG','ruDIyxq','uuXiywG','Bu5Irxq','qM9OsLa','nefKyw1iwa','zvLbtgu','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','qLfmENG','rMXfrLu','uKjKuMy','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','BMfqrMm','tM9YEgq','Dg9tDhjPBMC','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','mtKZodeWm2vlDLLJBq','C3rYAw5NAwz5','ALzQDuC','vxzhz2S','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','DhbnrLG','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','y3v4uhq','BhjJwu8','r0L6sKm','re5jvMq','C2vZC2LVBLrVA2vU','Aw1Hz2uVCg5N','mtu1ndy5tufls1rv','rgvdrMK','r2Lqr28','wMrRCLC','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','AxDxu1e','tg5IENK','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','DxbKyxrLqNjVD3nLCLnLC3nPB24','Aw1pAeu','CfDLEMG','yxbWBgLJyxrPB24VANnVBG','y2HLy2TZDw0','D1HWB28','rwLXsgC','uefuq0G','yxbWBgLJyxrPB24VANnVBMW','vxfdCMq','tw5vsfq','C3LerLy','uerIDu4','ANnVBG','CNbIwfK'];_0x3a11=function(){return _0x46674b;};return _0x3a11();}_0x4da89a();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x147796){const _0x19e418=_0x4751,_0x32708a={'lrcYO':function(_0x24ec07){return _0x24ec07();},'IyrRP':_0x19e418(0x1db),'tpMFX':function(_0x4c9e22){return _0x4c9e22();},'UvGgk':_0x19e418(0x1ed)},_0x17e40d=await _0x32708a[_0x19e418(0x1dd)](getToken);if(!_0x17e40d)throw new Error(_0x32708a['IyrRP']);const _0x31d804=_0x32708a[_0x19e418(0x1da)](getApiBaseUrl),_0x395145=await fetch(_0x31d804+_0x19e418(0x21d),{'method':_0x19e418(0x216),'headers':{'Authorization':'Bearer\x20'+_0x17e40d,'Content-Type':_0x32708a[_0x19e418(0x1d8)]},'body':JSON[_0x19e418(0x1d6)]({'environmentName':_0x147796?.[_0x19e418(0x212)],'settings':_0x147796?.[_0x19e418(0x21b)],'task':_0x147796?.['task'],'url':_0x147796?.[_0x19e418(0x224)],'featureId':_0x147796?.[_0x19e418(0x22e)],'checklistItemId':_0x147796?.[_0x19e418(0x22f)]})});if(!_0x395145['ok']){const _0x4fc97d=await _0x395145[_0x19e418(0x204)]();throw new Error(_0x19e418(0x1d0)+_0x4fc97d);}return _0x395145[_0x19e418(0x1f7)]();}export async function updateBrowserSession(_0x4df246,_0x483bcb){const _0x17a377=_0x4751,_0x5e27f2={'uwdvi':_0x17a377(0x202),'jVjuG':function(_0x166ad0){return _0x166ad0();},'UmcrP':function(_0x418e59,_0x48fa48){return _0x418e59!==_0x48fa48;},'Norxd':_0x17a377(0x1e4),'QLHah':_0x17a377(0x1db),'KkFAM':function(_0x14c106,_0x12a7dc,_0x307cd7){return _0x14c106(_0x12a7dc,_0x307cd7);},'ziexq':_0x17a377(0x1f1),'RjbxE':'application/json','mNbEt':_0x17a377(0x1ea)};return withRetry(async()=>{const _0x3fe24d=_0x17a377,_0x778e69=await _0x5e27f2[_0x3fe24d(0x1d7)](getToken);if(!_0x778e69){if(_0x5e27f2[_0x3fe24d(0x205)]('GiPGo',_0x5e27f2[_0x3fe24d(0x1d2)]))return _0x20677f(_0x50276d,_0x155460,_0x5e27f2[_0x3fe24d(0x1f9)]);else throw new Error(_0x5e27f2[_0x3fe24d(0x1c7)]);}const _0x2da701=_0x5e27f2[_0x3fe24d(0x1d7)](getApiBaseUrl),_0x2dbbef=await _0x5e27f2['KkFAM'](fetch,_0x2da701+_0x3fe24d(0x1e9)+_0x4df246,{'method':_0x5e27f2[_0x3fe24d(0x208)],'headers':{'Authorization':_0x3fe24d(0x20d)+_0x778e69,'Content-Type':_0x5e27f2['RjbxE']},'body':JSON[_0x3fe24d(0x1d6)](_0x483bcb)});if(!_0x2dbbef['ok']){const _0x4c14a7=await _0x2dbbef[_0x3fe24d(0x204)]();throw new Error(_0x3fe24d(0x1d9)+_0x4c14a7);}return _0x2dbbef[_0x3fe24d(0x1f7)]();},{'label':_0x5e27f2[_0x17a377(0x1c8)]});}export async function getBrowserSession(_0x58588b){const _0x594343=_0x4751,_0x28a343={'AnhWs':_0x594343(0x225),'vCNnZ':function(_0x1b2685){return _0x1b2685();},'SojOd':function(_0x5c464a,_0x26d166){return _0x5c464a===_0x26d166;},'bIsyy':_0x594343(0x1db),'CwkNr':function(_0x16a432,_0x9e1a4f,_0x3d8cd7){return _0x16a432(_0x9e1a4f,_0x3d8cd7);}},_0x1a1d3a=await _0x28a343['vCNnZ'](getToken);if(!_0x1a1d3a){if(_0x28a343['SojOd'](_0x594343(0x1ce),_0x594343(0x1ce)))throw new Error(_0x28a343['bIsyy']);else return _0x6250f8[_0x594343(0x1d3)]()[_0x594343(0x223)](ayjjWy['AnhWs'])[_0x594343(0x1d3)]()[_0x594343(0x21f)](_0x2f99ed)[_0x594343(0x223)]('(((.+)+)+)+$');}const _0x3ab6d9=_0x28a343[_0x594343(0x1ff)](getApiBaseUrl),_0x5bcf88=await _0x28a343[_0x594343(0x1c4)](fetch,_0x3ab6d9+'/api/v1/mcp/browser-sessions/'+_0x58588b,{'method':_0x594343(0x227),'headers':{'Authorization':_0x594343(0x20d)+_0x1a1d3a}});if(!_0x5bcf88['ok']){const _0x236ef0=await _0x5bcf88[_0x594343(0x204)]();throw new Error(_0x594343(0x20a)+_0x236ef0);}return _0x5bcf88['json']();}export async function getUploadUrls(_0xc2bb98,_0x2e32b6,_0x127df1,_0x820a3a){const _0x5bae97=_0x4751,_0x567a49={'DNIVd':_0x5bae97(0x1e1),'mWeCs':function(_0x45ccdf){return _0x45ccdf();},'JKLQE':function(_0x202fc6,_0x3705cf,_0x3a5e1e){return _0x202fc6(_0x3705cf,_0x3a5e1e);},'UqCrd':'POST','GVPkH':_0x5bae97(0x1ed),'suyCH':function(_0x3474d7,_0x4c7a00){return _0x3474d7!==_0x4c7a00;},'wXpoo':_0x5bae97(0x1e5)},_0x3d33e2=await _0x567a49[_0x5bae97(0x21e)](getToken);if(!_0x3d33e2)throw new Error(_0x5bae97(0x1db));const _0x1bbdbc=_0x567a49[_0x5bae97(0x21e)](getApiBaseUrl),_0x48e3e6=await _0x567a49['JKLQE'](fetch,_0x1bbdbc+_0x5bae97(0x1e9)+_0xc2bb98+'/upload-urls',{'method':_0x567a49[_0x5bae97(0x1f3)],'headers':{'Authorization':'Bearer\x20'+_0x3d33e2,'Content-Type':_0x567a49['GVPkH']},'body':JSON[_0x5bae97(0x1d6)]({'filename':_0x2e32b6,'filetype':_0x127df1,..._0x820a3a?.[_0x5bae97(0x226)]!==undefined&&{'size':_0x820a3a[_0x5bae97(0x226)]},..._0x567a49[_0x5bae97(0x220)](_0x820a3a?.[_0x5bae97(0x1ee)],undefined)&&{'checksum':_0x820a3a[_0x5bae97(0x1ee)]},..._0x567a49[_0x5bae97(0x220)](_0x820a3a?.[_0x5bae97(0x210)],undefined)&&{'metadata':_0x820a3a[_0x5bae97(0x210)]}})});if(!_0x48e3e6['ok']){if(_0x567a49[_0x5bae97(0x1ef)]===_0x5bae97(0x21c))return _0x2db4a2(_0x435fd7,_0x3bf68e,_0x567a49[_0x5bae97(0x1df)]);else{const _0x287947=await _0x48e3e6[_0x5bae97(0x204)]();throw new Error('Failed\x20to\x20get\x20upload\x20URLs:\x20'+_0x287947);}}return _0x48e3e6[_0x5bae97(0x1f7)]();}export async function uploadFile(_0x2ade66,_0x2c71a2,_0x6cc5eb){const _0x38c976=_0x4751,_0x83ab98={'CauVU':'PUT'},_0x296995=await fetch(_0x2ade66,{'method':_0x83ab98[_0x38c976(0x1fc)],'headers':{'Content-Type':_0x6cc5eb,'Content-Length':_0x2c71a2[_0x38c976(0x218)][_0x38c976(0x1d3)]()},'body':_0x2c71a2});if(!_0x296995['ok']){const _0x108842=await _0x296995['text']();throw new Error(_0x38c976(0x1d4)+_0x108842);}}export async function uploadTrace(_0x105476,_0x4a0a23){const _0x20ecfe=_0x4751,_0x2ef8f1={'Lnbzy':function(_0x3568a,_0x4042de,_0x2ea290,_0x124bfe){return _0x3568a(_0x4042de,_0x2ea290,_0x124bfe);},'OnHiy':_0x20ecfe(0x202)};return _0x2ef8f1[_0x20ecfe(0x1e8)](uploadFile,_0x105476,_0x4a0a23,_0x2ef8f1['OnHiy']);}export async function uploadConversation(_0x5db4b0,_0x3cfed2){const _0x5ad287=_0x4751;return uploadFile(_0x5db4b0,_0x3cfed2,_0x5ad287(0x1f2));}export async function uploadScreenshot(_0x20c67c,_0x2f0fc0){const _0x3ccec3=_0x4751,_0x3c391b={'rpbXY':_0x3ccec3(0x1e1)};return uploadFile(_0x20c67c,_0x2f0fc0,_0x3c391b[_0x3ccec3(0x1f8)]);}export async function uploadVideo(_0x2e9a1b,_0x2222c4){const _0x4c0776=_0x4751,_0x6a3587={'FGekX':_0x4c0776(0x219)};return uploadFile(_0x2e9a1b,_0x2222c4,_0x6a3587[_0x4c0776(0x1c3)]);}export function buildTraceViewerUrl(_0x4a686e){const _0x3716ba=_0x4751,_0xa96418={'MdXGB':function(_0x9e74e7,_0x294a07){return _0x9e74e7(_0x294a07);}},_0x4111c1=_0xa96418[_0x3716ba(0x221)](encodeURIComponent,_0x4a686e);return _0x3716ba(0x215)+_0x4111c1;}export async function getProxySessionToken(){const _0x296ff1=_0x4751,_0x43c9a5={'yZDAH':function(_0x2ae826){return _0x2ae826();},'pWezh':function(_0x382771,_0x475e34,_0x4a947c){return _0x382771(_0x475e34,_0x4a947c);}},_0x441494=await _0x43c9a5[_0x296ff1(0x234)](getToken);if(!_0x441494)throw new Error(_0x296ff1(0x1db));const _0x5d3bfa=_0x43c9a5[_0x296ff1(0x234)](getApiBaseUrl),_0x19ab02=await _0x43c9a5[_0x296ff1(0x1ec)](fetch,_0x5d3bfa+_0x296ff1(0x1fe),{'method':'POST','headers':{'Authorization':_0x296ff1(0x20d)+_0x441494}});if(!_0x19ab02['ok']){const _0x4b00d8=await _0x19ab02[_0x296ff1(0x204)]();throw new Error(_0x296ff1(0x222)+_0x4b00d8);}const _0x247c79=await _0x19ab02[_0x296ff1(0x1f7)]();return _0x247c79[_0x296ff1(0x1e0)];}export function computeChecksum(_0x17c47b){const _0x31c6f7=_0x4751,_0x5a0c85={'etBkX':_0x31c6f7(0x213),'QBEho':'base64'};return createHash(_0x5a0c85['etBkX'])['update'](_0x17c47b)[_0x31c6f7(0x1fa)](_0x5a0c85['QBEho']);}export async function createVerificationStep(_0x11a22e,_0xf8b403){const _0x194ee6=_0x4751,_0x579090={'USOst':function(_0x50142c){return _0x50142c();},'BQLzx':function(_0x3b2b72,_0x3ec3c0){return _0x3b2b72===_0x3ec3c0;},'ByxqV':_0x194ee6(0x1c6),'eYALe':_0x194ee6(0x1db),'sOFaG':function(_0x193a8f,_0x519a08,_0x42ed23){return _0x193a8f(_0x519a08,_0x42ed23);},'wSioZ':_0x194ee6(0x1ed)},_0x18fb53=await _0x579090[_0x194ee6(0x22c)](getToken);if(!_0x18fb53){if(_0x579090[_0x194ee6(0x1cd)](_0x194ee6(0x230),_0x579090[_0x194ee6(0x209)]))throw new _0x1d1ed4(_0x194ee6(0x1db));else throw new Error(_0x579090[_0x194ee6(0x1cb)]);}const _0x528b50=getApiBaseUrl(),_0x12dfa1=await _0x579090[_0x194ee6(0x1c2)](fetch,_0x528b50+_0x194ee6(0x1e9)+_0x11a22e+_0x194ee6(0x21a),{'method':'POST','headers':{'Authorization':_0x194ee6(0x20d)+_0x18fb53,'Content-Type':_0x579090['wSioZ']},'body':JSON[_0x194ee6(0x1d6)](_0xf8b403)});if(!_0x12dfa1['ok']){const _0x41507b=await _0x12dfa1[_0x194ee6(0x204)]();throw new Error('Failed\x20to\x20create\x20verification\x20step:\x20'+_0x41507b);}return _0x12dfa1[_0x194ee6(0x1f7)]();}export async function createStepAsset(_0x2cbd71,_0x5c0406,_0x1d97ac){const _0x3019ad=_0x4751,_0x5ee832={'iwWSQ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','naPFc':function(_0x476cad,_0x4fa98b,_0x2dd250){return _0x476cad(_0x4fa98b,_0x2dd250);},'RBdRf':_0x3019ad(0x216),'oRteA':_0x3019ad(0x1ed),'YWcee':_0x3019ad(0x203),'BohJP':_0x3019ad(0x200)},_0x4474f7=await getToken();if(!_0x4474f7)throw new Error(_0x3019ad(0x1db));const _0x323999=getApiBaseUrl(),_0xf8167e=await _0x5ee832[_0x3019ad(0x1d1)](fetch,_0x323999+_0x3019ad(0x1e9)+_0x2cbd71+_0x3019ad(0x1fd)+_0x5c0406+'/assets',{'method':_0x5ee832[_0x3019ad(0x1cf)],'headers':{'Authorization':_0x3019ad(0x20d)+_0x4474f7,'Content-Type':_0x5ee832['oRteA']},'body':JSON[_0x3019ad(0x1d6)](_0x1d97ac)});if(!_0xf8167e['ok']){if(_0x5ee832['YWcee']!==_0x5ee832[_0x3019ad(0x1c9)]){const _0x5cf983=await _0xf8167e['text']();throw new Error(_0x3019ad(0x22a)+_0x5cf983);}else throw new _0x3a455d(_0x5ee832[_0x3019ad(0x1e7)]);}return _0xf8167e[_0x3019ad(0x1f7)]();}function _0x4751(_0x2a3a3d,_0x157fbb){_0x2a3a3d=_0x2a3a3d-0x1c2;const _0x4a5cdc=_0x3a11();let _0x4da89a=_0x4a5cdc[_0x2a3a3d];if(_0x4751['CKAVYf']===undefined){var _0x551134=function(_0x18ef99){const _0x57a3ac='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2fb7f0='',_0x452459='',_0x2845be=_0x2fb7f0+_0x551134;for(let _0x5a9440=0x0,_0x2c08ea,_0x2ac11e,_0x77bc29=0x0;_0x2ac11e=_0x18ef99['charAt'](_0x77bc29++);~_0x2ac11e&&(_0x2c08ea=_0x5a9440%0x4?_0x2c08ea*0x40+_0x2ac11e:_0x2ac11e,_0x5a9440++%0x4)?_0x2fb7f0+=_0x2845be['charCodeAt'](_0x77bc29+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2c08ea>>(-0x2*_0x5a9440&0x6)):_0x5a9440:0x0){_0x2ac11e=_0x57a3ac['indexOf'](_0x2ac11e);}for(let _0x1e8494=0x0,_0x4a60f1=_0x2fb7f0['length'];_0x1e8494<_0x4a60f1;_0x1e8494++){_0x452459+='%'+('00'+_0x2fb7f0['charCodeAt'](_0x1e8494)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x452459);};_0x4751['UPGPAq']=_0x551134,_0x4751['bzodGC']={},_0x4751['CKAVYf']=!![];}const _0x3a118c=_0x4a5cdc[0x0],_0x475107=_0x2a3a3d+_0x3a118c,_0x5d2856=_0x4751['bzodGC'][_0x475107];if(!_0x5d2856){const _0x5b3169=function(_0x25d975){this['mLwslv']=_0x25d975,this['fUQPry']=[0x1,0x0,0x0],this['biWGGp']=function(){return'newState';},this['OeFXZE']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['SsocwV']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5b3169['prototype']['sFitrD']=function(){const _0x50bea9=new RegExp(this['OeFXZE']+this['SsocwV']),_0xdb6512=_0x50bea9['test'](this['biWGGp']['toString']())?--this['fUQPry'][0x1]:--this['fUQPry'][0x0];return this['EAzrtM'](_0xdb6512);},_0x5b3169['prototype']['EAzrtM']=function(_0x27b5f8){if(!Boolean(~_0x27b5f8))return _0x27b5f8;return this['bAQYOU'](this['mLwslv']);},_0x5b3169['prototype']['bAQYOU']=function(_0x524bf0){for(let _0x59f5ea=0x0,_0x128ca5=this['fUQPry']['length'];_0x59f5ea<_0x128ca5;_0x59f5ea++){this['fUQPry']['push'](Math['round'](Math['random']())),_0x128ca5=this['fUQPry']['length'];}return _0x524bf0(this['fUQPry'][0x0]);},new _0x5b3169(_0x4751)['sFitrD'](),_0x4da89a=_0x4751['UPGPAq'](_0x4da89a),_0x4751['bzodGC'][_0x475107]=_0x4da89a;}else _0x4da89a=_0x5d2856;return _0x4da89a;}export async function updateVerificationStep(_0x3b7bce,_0x12c1a6,_0x72a20f){const _0x10f6eb=_0x4751,_0x41b9e9={'ihLrZ':function(_0x3c004b,_0x1e7f3a){return _0x3c004b(_0x1e7f3a);},'yEhZh':function(_0x2e565f){return _0x2e565f();},'MTmwg':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','imOhE':function(_0x268ca9,_0xd7060d,_0x30459a){return _0x268ca9(_0xd7060d,_0x30459a);},'pBDsy':_0x10f6eb(0x1f1),'WDeeP':_0x10f6eb(0x1ed),'HwspR':function(_0x322f28,_0x3e3e49){return _0x322f28===_0x3e3e49;},'RcEKi':_0x10f6eb(0x1e3)},_0x2509a5=await _0x41b9e9['yEhZh'](getToken);if(!_0x2509a5)throw new Error(_0x41b9e9[_0x10f6eb(0x214)]);const _0x5a7b23=_0x41b9e9[_0x10f6eb(0x20b)](getApiBaseUrl),_0x4a2d9b=await _0x41b9e9[_0x10f6eb(0x1eb)](fetch,_0x5a7b23+_0x10f6eb(0x1e9)+_0x3b7bce+'/steps/'+_0x12c1a6,{'method':_0x41b9e9[_0x10f6eb(0x228)],'headers':{'Authorization':_0x10f6eb(0x20d)+_0x2509a5,'Content-Type':_0x41b9e9['WDeeP']},'body':JSON['stringify'](_0x72a20f)});if(!_0x4a2d9b['ok']){if(_0x41b9e9['HwspR'](_0x41b9e9[_0x10f6eb(0x211)],_0x10f6eb(0x1e3))){const _0x14e42a=await _0x4a2d9b['text']();throw new Error(_0x10f6eb(0x1e6)+_0x14e42a);}else{const _0x2bbc2c=_0x41b9e9[_0x10f6eb(0x20f)](_0x128b33,_0x56f7bc);return _0x10f6eb(0x215)+_0x2bbc2c;}}}export async function getBrowserSessionSteps(_0x4b6ad4){const _0x396631=_0x4751,_0x1ceb6e={'MnUHT':function(_0xdb1962){return _0xdb1962();},'UqpSf':_0x396631(0x227)},_0x354716=await _0x1ceb6e[_0x396631(0x1f4)](getToken);if(!_0x354716)throw new Error(_0x396631(0x1db));const _0x2d9d47=getApiBaseUrl(),_0x46b8fd=await fetch(_0x2d9d47+_0x396631(0x1e9)+_0x4b6ad4+_0x396631(0x21a),{'method':_0x1ceb6e[_0x396631(0x229)],'headers':{'Authorization':_0x396631(0x20d)+_0x354716}});if(!_0x46b8fd['ok']){const _0x552478=await _0x46b8fd[_0x396631(0x204)]();throw new Error(_0x396631(0x1cc)+_0x552478);}return _0x46b8fd[_0x396631(0x1f7)]();}
@@ -1 +1 @@
1
- (function(_0x47e4ac,_0x74f3bf){const _0x2ff1e3=_0x328f,_0xcbd719=_0x47e4ac();while(!![]){try{const _0x38dbf0=parseInt(_0x2ff1e3(0x13b))/0x1+-parseInt(_0x2ff1e3(0x13c))/0x2+parseInt(_0x2ff1e3(0x142))/0x3*(-parseInt(_0x2ff1e3(0x140))/0x4)+-parseInt(_0x2ff1e3(0x12c))/0x5+-parseInt(_0x2ff1e3(0x132))/0x6+-parseInt(_0x2ff1e3(0x137))/0x7*(parseInt(_0x2ff1e3(0x13f))/0x8)+parseInt(_0x2ff1e3(0x134))/0x9;if(_0x38dbf0===_0x74f3bf)break;else _0xcbd719['push'](_0xcbd719['shift']());}catch(_0x2e4b83){_0xcbd719['push'](_0xcbd719['shift']());}}}(_0x135b,0xea66d));import{homedir}from'os';import{join,dirname,parse}from'path';function _0x135b(){const _0x105eb4=['QNoOR','skills','31367EOMtiO','stringify','CLAUDE_CONFIG_DIR','root','1259025CGbUjb','1418936AmSRxJ','DGywW','qXein','2528VWVOdh','4216NRLTGc','MkMpK','1047jwlhqt','utf-8','WSHgT','sSLHx','scygt','env','1000070ZmmkJb','ThZKM','cwd','IYJBt','.claude','.git','8873568ggwPhl','parse','34860024jMZIGg'];_0x135b=function(){return _0x105eb4;};return _0x135b();}import{existsSync}from'fs';import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x39f1b2=_0x328f,_0x835074={'mDvPM':function(_0x25282b,_0x2118cf,_0x545acc){return _0x25282b(_0x2118cf,_0x545acc);},'ThZKM':function(_0x22472e){return _0x22472e();}};return process[_0x39f1b2(0x12b)][_0x39f1b2(0x139)]||_0x835074['mDvPM'](join,_0x835074[_0x39f1b2(0x12d)](homedir),_0x39f1b2(0x130));}export function getUserSkillsDir(){const _0xa8d84c=_0x328f,_0x5b8987={'IYJBt':function(_0x1dc21b,_0xeb5a09,_0x5a5a6b){return _0x1dc21b(_0xeb5a09,_0x5a5a6b);},'YAAWU':function(_0x18b462){return _0x18b462();},'ZycDW':_0xa8d84c(0x136)};return _0x5b8987[_0xa8d84c(0x12f)](join,_0x5b8987['YAAWU'](getClaudeConfigDir),_0x5b8987['ZycDW']);}export function getProjectRoot(){const _0x3379d1=_0x328f,_0x4484cb={'PLDAl':function(_0x271564,_0x44170e){return _0x271564!==_0x44170e;},'qXein':_0x3379d1(0x130),'rnCOO':function(_0x57338a,_0x4e429a){return _0x57338a(_0x4e429a);},'jhapP':function(_0x3c7729,_0x217a1d,_0x17a3af){return _0x3c7729(_0x217a1d,_0x17a3af);},'sSLHx':_0x3379d1(0x131)};let _0x162e73=process['cwd']();const _0x56136f=parse(_0x162e73)[_0x3379d1(0x13a)];while(_0x4484cb['PLDAl'](_0x162e73,_0x56136f)){if(existsSync(join(_0x162e73,_0x4484cb[_0x3379d1(0x13e)])))return _0x162e73;if(_0x4484cb['rnCOO'](existsSync,_0x4484cb['jhapP'](join,_0x162e73,_0x4484cb[_0x3379d1(0x129)])))return _0x162e73;_0x162e73=dirname(_0x162e73);}return process[_0x3379d1(0x12e)]();}export function getProjectSkillsDir(){const _0x185c60={'zCiKx':function(_0x163615,_0x528d56,_0x429248,_0x1025d9){return _0x163615(_0x528d56,_0x429248,_0x1025d9);},'jUdLt':function(_0xc5dbec){return _0xc5dbec();}};return _0x185c60['zCiKx'](join,_0x185c60['jUdLt'](getProjectRoot),'.claude','skills');}export function getSkillsDir(_0x248c49){const _0x1fd13a=_0x328f,_0x5718c5={'QNoOR':function(_0xae9af4,_0x243958){return _0xae9af4===_0x243958;},'GlwIx':'user','gqKjM':function(_0xce3cee){return _0xce3cee();}};return _0x5718c5[_0x1fd13a(0x135)](_0x248c49,_0x5718c5['GlwIx'])?_0x5718c5['gqKjM'](getUserSkillsDir):getProjectSkillsDir();}export function getSettingsPath(){const _0x5d9053=_0x328f,_0x5ed836={'lDkNe':function(_0x439968,_0x1f7a2d,_0x23db87){return _0x439968(_0x1f7a2d,_0x23db87);},'scygt':function(_0x30cdc4){return _0x30cdc4();}};return _0x5ed836['lDkNe'](join,_0x5ed836[_0x5d9053(0x12a)](getClaudeConfigDir),'settings.json');}export async function loadClaudeSettings(){const _0x2fe37d=_0x328f,_0x38a6b9={'MkMpK':function(_0x5b66df){return _0x5b66df();}},_0x1c6656=_0x38a6b9[_0x2fe37d(0x141)](getSettingsPath);if(!existsSync(_0x1c6656))return{};try{const _0x522321=await readFile(_0x1c6656,'utf-8');return JSON[_0x2fe37d(0x133)](_0x522321);}catch{return{};}}function _0x328f(_0x50924e,_0x941a51){_0x50924e=_0x50924e-0x128;const _0x135b9b=_0x135b();let _0x328fdf=_0x135b9b[_0x50924e];return _0x328fdf;}export async function saveClaudeSettings(_0x3d2dad){const _0x222caa=_0x328f,_0x51d384={'trEpm':function(_0x32e816,_0x3e76db){return _0x32e816(_0x3e76db);},'qbIYS':function(_0x1d7dbc,_0x61af8b,_0x2a4d41,_0x204ae9){return _0x1d7dbc(_0x61af8b,_0x2a4d41,_0x204ae9);},'WSHgT':function(_0x4a5033,_0x1584c2){return _0x4a5033+_0x1584c2;},'DGywW':_0x222caa(0x143)},_0x14b676=getSettingsPath(),_0x643ad5=getClaudeConfigDir();!_0x51d384['trEpm'](existsSync,_0x643ad5)&&await mkdir(_0x643ad5,{'recursive':!![]}),await _0x51d384['qbIYS'](writeFile,_0x14b676,_0x51d384[_0x222caa(0x128)](JSON[_0x222caa(0x138)](_0x3d2dad,null,0x2),'\x0a'),_0x51d384[_0x222caa(0x13d)]);}
1
+ (function(_0x1a04db,_0x50d65e){const _0x1048a5=_0x48b3,_0xe9a819=_0x1a04db();while(!![]){try{const _0x4d460c=-parseInt(_0x1048a5(0x1c8))/0x1+-parseInt(_0x1048a5(0x1bf))/0x2*(parseInt(_0x1048a5(0x1ce))/0x3)+-parseInt(_0x1048a5(0x1c0))/0x4+-parseInt(_0x1048a5(0x1c9))/0x5*(-parseInt(_0x1048a5(0x1be))/0x6)+parseInt(_0x1048a5(0x1c6))/0x7*(-parseInt(_0x1048a5(0x1d0))/0x8)+-parseInt(_0x1048a5(0x1c4))/0x9*(-parseInt(_0x1048a5(0x1bd))/0xa)+-parseInt(_0x1048a5(0x1c7))/0xb*(-parseInt(_0x1048a5(0x1c2))/0xc);if(_0x4d460c===_0x50d65e)break;else _0xe9a819['push'](_0xe9a819['shift']());}catch(_0x3f7a7c){_0xe9a819['push'](_0xe9a819['shift']());}}}(_0x2bba,0xdabad));function _0x48b3(_0x44e881,_0x2ea519){_0x44e881=_0x44e881-0x1b5;const _0x2bba2b=_0x2bba();let _0x48b31e=_0x2bba2b[_0x44e881];return _0x48b31e;}import{homedir}from'os';import{join,dirname,parse}from'path';function _0x2bba(){const _0x4b42c1=['15393851RqRDRO','1425305yrFsaR','1090Xcqnpp','CLAUDE_CONFIG_DIR','skills','utf-8','env','33486uKGzRx','parse','17072fTNmfB','MNosx','rfCPq','cwd','fUBGb','RuyTO','aTaDJ','EvtjL','wZfAM','10sHXDkZ','24594CzgKIs','212FYYBUe','3497136ASZgsa','WavAm','36yVCrWR','.claude','1628271NmfeYY','.git','2933nxgBMR'];_0x2bba=function(){return _0x4b42c1;};return _0x2bba();}import{existsSync}from'fs';import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x5e30c9=_0x48b3,_0x3947d9={'fUBGb':_0x5e30c9(0x1c3)};return process[_0x5e30c9(0x1cd)][_0x5e30c9(0x1ca)]||join(homedir(),_0x3947d9[_0x5e30c9(0x1b8)]);}export function getUserSkillsDir(){const _0x9ab99d=_0x48b3,_0xa46d86={'JSPrZ':function(_0x40b05c,_0x36c632,_0x4f44b6){return _0x40b05c(_0x36c632,_0x4f44b6);},'nGiZJ':function(_0x4e74d9){return _0x4e74d9();}};return _0xa46d86['JSPrZ'](join,_0xa46d86['nGiZJ'](getClaudeConfigDir),_0x9ab99d(0x1cb));}export function getProjectRoot(){const _0x139c48=_0x48b3,_0x5b3e1f={'sFDyU':function(_0x5abd32,_0x280bff,_0x5d26b1){return _0x5abd32(_0x280bff,_0x5d26b1);},'EvtjL':'.claude','aTaDJ':function(_0x50d2d5,_0x39e7ec){return _0x50d2d5(_0x39e7ec);},'rfCPq':function(_0x1e7477,_0x3f4965,_0x3eb8c5){return _0x1e7477(_0x3f4965,_0x3eb8c5);},'leVsl':_0x139c48(0x1c5)};let _0xe7a2db=process[_0x139c48(0x1b7)]();const _0x530c98=parse(_0xe7a2db)['root'];while(_0xe7a2db!==_0x530c98){if(existsSync(_0x5b3e1f['sFDyU'](join,_0xe7a2db,_0x5b3e1f[_0x139c48(0x1bb)])))return _0xe7a2db;if(_0x5b3e1f['aTaDJ'](existsSync,_0x5b3e1f[_0x139c48(0x1b6)](join,_0xe7a2db,_0x5b3e1f['leVsl'])))return _0xe7a2db;_0xe7a2db=_0x5b3e1f[_0x139c48(0x1ba)](dirname,_0xe7a2db);}return process[_0x139c48(0x1b7)]();}export function getProjectSkillsDir(){const _0x231e9e=_0x48b3,_0x1257c1={'aGLgl':function(_0x188517){return _0x188517();},'jhUNj':'skills'};return join(_0x1257c1['aGLgl'](getProjectRoot),_0x231e9e(0x1c3),_0x1257c1['jhUNj']);}export function getSkillsDir(_0x116b50){const _0x2f5e16=_0x48b3,_0x43978b={'MNosx':function(_0xed1cdd,_0x346ef0){return _0xed1cdd===_0x346ef0;}};return _0x43978b[_0x2f5e16(0x1b5)](_0x116b50,'user')?getUserSkillsDir():getProjectSkillsDir();}export function getSettingsPath(){const _0x3da249=_0x48b3,_0x273d0a={'wDmVe':function(_0x343ada,_0x40fe60,_0x37c689){return _0x343ada(_0x40fe60,_0x37c689);},'QiIYN':function(_0x166179){return _0x166179();},'WavAm':'settings.json'};return _0x273d0a['wDmVe'](join,_0x273d0a['QiIYN'](getClaudeConfigDir),_0x273d0a[_0x3da249(0x1c1)]);}export async function loadClaudeSettings(){const _0x70f3c8=_0x48b3,_0x5537dc={'RuyTO':function(_0x2af0bf,_0x9f55c6,_0x5806f2){return _0x2af0bf(_0x9f55c6,_0x5806f2);}},_0x3fcd86=getSettingsPath();if(!existsSync(_0x3fcd86))return{};try{const _0x3425c0=await _0x5537dc[_0x70f3c8(0x1b9)](readFile,_0x3fcd86,_0x70f3c8(0x1cc));return JSON[_0x70f3c8(0x1cf)](_0x3425c0);}catch{return{};}}export async function saveClaudeSettings(_0x1929df){const _0x49962a=_0x48b3,_0x43133b={'RUWMg':function(_0x3ffbdb){return _0x3ffbdb();},'wZfAM':function(_0x5ed546,_0x3b5957){return _0x5ed546(_0x3b5957);},'XkaUf':function(_0x985de5,_0x30bdda,_0x438f47){return _0x985de5(_0x30bdda,_0x438f47);},'XcumZ':function(_0x4bf3b1,_0x1e2ba1){return _0x4bf3b1+_0x1e2ba1;},'nCOnu':_0x49962a(0x1cc)},_0x2919bd=_0x43133b['RUWMg'](getSettingsPath),_0x3792da=getClaudeConfigDir();!_0x43133b[_0x49962a(0x1bc)](existsSync,_0x3792da)&&await _0x43133b['XkaUf'](mkdir,_0x3792da,{'recursive':!![]}),await writeFile(_0x2919bd,_0x43133b['XcumZ'](JSON['stringify'](_0x1929df,null,0x2),'\x0a'),_0x43133b['nCOnu']);}
@@ -1 +1 @@
1
- (function(_0x66cac8,_0x52867d){const _0x242fde=_0x18d0,_0x57aab4=_0x66cac8();while(!![]){try{const _0x1e863f=parseInt(_0x242fde(0x7b))/0x1*(parseInt(_0x242fde(0x75))/0x2)+parseInt(_0x242fde(0x74))/0x3*(parseInt(_0x242fde(0x80))/0x4)+-parseInt(_0x242fde(0x77))/0x5+-parseInt(_0x242fde(0x7f))/0x6*(parseInt(_0x242fde(0x7c))/0x7)+parseInt(_0x242fde(0x7e))/0x8+parseInt(_0x242fde(0x76))/0x9*(-parseInt(_0x242fde(0x78))/0xa)+-parseInt(_0x242fde(0x79))/0xb*(-parseInt(_0x242fde(0x7a))/0xc);if(_0x1e863f===_0x52867d)break;else _0x57aab4['push'](_0x57aab4['shift']());}catch(_0x3373a1){_0x57aab4['push'](_0x57aab4['shift']());}}}(_0x5de8,0x586f3));function _0x18d0(_0x4f195e,_0x399ff9){_0x4f195e=_0x4f195e-0x74;const _0x5de843=_0x5de8();let _0x18d03f=_0x5de843[_0x4f195e];return _0x18d03f;}function _0x5de8(){const _0x5766af=['4DhJFfD','88440QkDFtm','68298gAozWP','100260lQLIma','2315690OmqjTC','240tnaPYA','407VhKFhl','134076tahZPI','17JQJyhQ','7BEaLLW','stringify','2140584EuhPHH','1189572noQhGV'];_0x5de8=function(){return _0x5766af;};return _0x5de8();}import{isByokEnabled}from'./environment.js';const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};export function buildClaudeOverrideExtraArgs(){const _0x4ec838=_0x18d0;if(isByokEnabled())return{};return{'settings':JSON[_0x4ec838(0x7d)](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
1
+ function _0x3598(){const _0x514450=['2665aafTnF','32GGDkWe','8411580EAnqJZ','9188YiBdkL','7962498fLltHS','565071Ttisuj','2251396FFkUKF','911788DsbAlp','12452310KabUoo','1AiMmyI'];_0x3598=function(){return _0x514450;};return _0x3598();}(function(_0x15dab9,_0x2fe745){const _0x39748f=_0x1ee7,_0x1a7cca=_0x15dab9();while(!![]){try{const _0x347c4e=-parseInt(_0x39748f(0x161))/0x1*(parseInt(_0x39748f(0x15f))/0x2)+parseInt(_0x39748f(0x15d))/0x3+-parseInt(_0x39748f(0x15b))/0x4*(parseInt(_0x39748f(0x162))/0x5)+parseInt(_0x39748f(0x15c))/0x6+-parseInt(_0x39748f(0x15e))/0x7*(parseInt(_0x39748f(0x163))/0x8)+parseInt(_0x39748f(0x164))/0x9+parseInt(_0x39748f(0x160))/0xa;if(_0x347c4e===_0x2fe745)break;else _0x1a7cca['push'](_0x1a7cca['shift']());}catch(_0x23ccda){_0x1a7cca['push'](_0x1a7cca['shift']());}}}(_0x3598,0xb1e08));import{isByokEnabled}from'./environment.js';function _0x1ee7(_0xe9808c,_0x39f000){_0xe9808c=_0xe9808c-0x15b;const _0x3598f6=_0x3598();let _0x1ee7aa=_0x3598f6[_0xe9808c];return _0x1ee7aa;}const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};export function buildClaudeOverrideExtraArgs(){if(isByokEnabled())return{};return{'settings':JSON['stringify'](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
@@ -1 +1 @@
1
- (function(_0x133dc9,_0x4418b3){const _0x3a4e0f=_0x3ca3,_0xff0381=_0x133dc9();while(!![]){try{const _0x52a061=parseInt(_0x3a4e0f(0x169))/0x1+-parseInt(_0x3a4e0f(0x165))/0x2+parseInt(_0x3a4e0f(0x148))/0x3+parseInt(_0x3a4e0f(0x15c))/0x4+-parseInt(_0x3a4e0f(0x153))/0x5*(parseInt(_0x3a4e0f(0x15f))/0x6)+-parseInt(_0x3a4e0f(0x168))/0x7+-parseInt(_0x3a4e0f(0x140))/0x8*(-parseInt(_0x3a4e0f(0x16b))/0x9);if(_0x52a061===_0x4418b3)break;else _0xff0381['push'](_0xff0381['shift']());}catch(_0x136c75){_0xff0381['push'](_0xff0381['shift']());}}}(_0x1dd4,0x31aff));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile}from'fs/promises';import{join,resolve}from'path';import{getClaudeConfigDir,getProjectRoot}from'./claudeConfig.js';function _0x1dd4(){const _0x58f2d9=['69466zbHEqd','projectPath','3483UoFhQK','length','stderr','5160akaFln','project','toString','inherit','claude','success','KQxhq','XqYVs','493437UkUnzv','Xbdmh','data','IjMaC','stdout','plugin','mLZla','version','UzOrW','nRain','includes','65WksChT','enabled','toLowerCase','parse','DjlIj','cwd','GdljK','error','marketplace','1320532rZJPUD','output','captureOutput','14544wefJfK','scope','ignore','uXVoF','match','AvJSW','665490DccOgh','installed_plugins.json','ASLHE','1721419RdUsol'];_0x1dd4=function(){return _0x58f2d9;};return _0x1dd4();}export function runClaudeCommand(_0x58a387,_0x26ab22){const _0xa90af0=_0x3ca3,_0x3dff60={'IjMaC':function(_0x55e9a5,_0x46b189){return _0x55e9a5===_0x46b189;},'uXVoF':function(_0x1edd85,_0xa99d55){return _0x1edd85(_0xa99d55);},'XqYVs':_0xa90af0(0x161),'DjlIj':_0xa90af0(0x143),'hLxrb':function(_0x58cb75,_0x442097,_0x277131,_0x7834f9){return _0x58cb75(_0x442097,_0x277131,_0x7834f9);},'nRain':_0xa90af0(0x144),'UzOrW':'data'};return new Promise(_0x36f551=>{const _0x1f6bb1=_0xa90af0,_0x54f897=_0x26ab22?.[_0x1f6bb1(0x15e)]?[_0x3dff60[_0x1f6bb1(0x147)],'pipe','pipe']:['ignore','inherit',_0x3dff60[_0x1f6bb1(0x157)]],_0x31f793=_0x3dff60['hLxrb'](spawn,_0x3dff60[_0x1f6bb1(0x151)],_0x58a387,{'stdio':_0x54f897,'cwd':_0x26ab22?.[_0x1f6bb1(0x158)]});let _0x3f3965='';_0x26ab22?.[_0x1f6bb1(0x15e)]&&_0x31f793['stdout']&&_0x31f793[_0x1f6bb1(0x14c)]['on'](_0x3dff60[_0x1f6bb1(0x150)],_0x22cca5=>{const _0x2602c8=_0x1f6bb1;_0x3f3965+=_0x22cca5[_0x2602c8(0x142)]();}),_0x26ab22?.[_0x1f6bb1(0x15e)]&&_0x31f793['stderr']&&_0x31f793[_0x1f6bb1(0x13f)]['on'](_0x1f6bb1(0x14a),_0x2b35c2=>{_0x3f3965+=_0x2b35c2['toString']();}),_0x31f793['on']('close',_0x58a7f1=>{const _0x308696=_0x1f6bb1;_0x3dff60[_0x308696(0x14b)](_0x58a7f1,0x0)?_0x3dff60[_0x308696(0x162)](_0x36f551,{'success':!![],'output':_0x3f3965}):_0x36f551({'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x58a7f1,'output':_0x3f3965});}),_0x31f793['on'](_0x1f6bb1(0x15a),_0x5f359a=>{_0x36f551({'success':![],'error':_0x5f359a['message']});});});}export async function isMarketplaceAdded(_0x4100f4){const _0x11886a=_0x3ca3,_0x1e3db6={'mLZla':function(_0x4ad824,_0x37a306,_0x18361d){return _0x4ad824(_0x37a306,_0x18361d);},'pgzXK':_0x11886a(0x14d),'sXVdo':'list'},_0x49d165=await _0x1e3db6[_0x11886a(0x14e)](runClaudeCommand,[_0x1e3db6['pgzXK'],_0x11886a(0x15b),_0x1e3db6['sXVdo']],{'captureOutput':!![]});if(!_0x49d165[_0x11886a(0x145)]||!_0x49d165[_0x11886a(0x15d)])return![];return _0x49d165['output']['includes'](_0x4100f4);}function _0x3ca3(_0x27e24f,_0x2f42db){_0x27e24f=_0x27e24f-0x13e;const _0x1dd4a7=_0x1dd4();let _0x3ca3ca=_0x1dd4a7[_0x27e24f];return _0x3ca3ca;}export async function isPluginInstalled(_0x1b32be){const _0x5db19d=_0x3ca3,_0x4ca92f=await getInstalledPluginInfoFromRegistry(_0x1b32be);if(_0x4ca92f[_0x5db19d(0x13e)]>0x0)return!![];const _0x1136d1=await runClaudeCommand([_0x5db19d(0x14d),'list'],{'captureOutput':!![]});if(!_0x1136d1['success']||!_0x1136d1['output'])return![];return _0x1136d1[_0x5db19d(0x15d)][_0x5db19d(0x152)](_0x1b32be);}function getInstalledPluginsPath(){const _0x5c4233=_0x3ca3,_0x3a5071={'GdljK':function(_0xc51e31){return _0xc51e31();}};return join(_0x3a5071[_0x5c4233(0x159)](getClaudeConfigDir),'plugins',_0x5c4233(0x166));}function sortPluginInfo(_0x322275,_0x256815){const _0x5427b1=_0x3ca3,_0x4aab34={'KQxhq':'user'},_0x23828a={'project':0x0,'local':0x1,'user':0x2};return _0x23828a[_0x322275['scope']??_0x4aab34['KQxhq']]-_0x23828a[_0x256815[_0x5427b1(0x160)]??_0x4aab34[_0x5427b1(0x146)]];}export function parseInstalledPluginInfo(_0xa4a35b,_0x36efb5,_0x5c7e23){const _0x262715=_0x3ca3,_0x3f07c3={'bzMQd':_0x262715(0x141),'GpWOm':'local','ASLHE':function(_0x698f8f,_0x3df1e3){return _0x698f8f===_0x3df1e3;},'Xbdmh':function(_0x21c0b4,_0x3526cc){return _0x21c0b4(_0x3526cc);}},_0x1af93a=JSON[_0x262715(0x156)](_0xa4a35b),_0x18fcb8=_0x3f07c3[_0x262715(0x149)](resolve,_0x5c7e23),_0x5a62e4=_0x1af93a['plugins']?.[_0x36efb5]??[];return _0x5a62e4['filter'](_0x5c16b4=>{const _0x495bd9=_0x262715;if(_0x5c16b4['scope']!==_0x3f07c3['bzMQd']&&_0x5c16b4[_0x495bd9(0x160)]!==_0x3f07c3['GpWOm'])return!![];if(!_0x5c16b4['projectPath'])return!![];return _0x3f07c3[_0x495bd9(0x167)](_0x3f07c3['Xbdmh'](resolve,_0x5c16b4[_0x495bd9(0x16a)]),_0x18fcb8);})['map'](_0x3cb1c5=>({'name':_0x36efb5,'scope':_0x3cb1c5['scope'],'version':_0x3cb1c5[_0x262715(0x14f)]}))['sort'](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0x5c4790){const _0x3b3dce={'FRGaV':function(_0x25d722,_0x3a628e,_0x4916ea){return _0x25d722(_0x3a628e,_0x4916ea);},'zEiNj':'utf-8'},_0x4a08c3=getInstalledPluginsPath();if(!existsSync(_0x4a08c3))return[];try{const _0xa9f546=await _0x3b3dce['FRGaV'](readFile,_0x4a08c3,_0x3b3dce['zEiNj']);return parseInstalledPluginInfo(_0xa9f546,_0x5c4790,getProjectRoot());}catch{return[];}}export async function getPluginInfo(_0x39c5ea){const _0x3d81e5=_0x3ca3,_0x6a9cf0={'jFEte':function(_0x528d38,_0x3fa824){return _0x528d38(_0x3fa824);},'jPZYy':_0x3d81e5(0x14d),'tWGJq':'list','AvJSW':function(_0x4642ed,_0x2d2be4){return _0x4642ed===_0x2d2be4;}},_0x538087=await _0x6a9cf0['jFEte'](getInstalledPluginInfoFromRegistry,_0x39c5ea);if(_0x538087['length']>0x0)return _0x538087[0x0];const _0x1d98dc=await runClaudeCommand([_0x6a9cf0['jPZYy'],_0x6a9cf0['tWGJq']],{'captureOutput':!![]});if(!_0x1d98dc['success']||!_0x1d98dc['output'])return null;if(!_0x1d98dc[_0x3d81e5(0x15d)]['includes'](_0x39c5ea))return null;const _0x21517f={'name':_0x39c5ea},_0xcccc01=_0x1d98dc[_0x3d81e5(0x15d)][_0x3d81e5(0x163)](new RegExp(_0x39c5ea+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0xcccc01&&(_0x21517f['scope']=_0xcccc01[0x1][_0x3d81e5(0x155)]());const _0x3ebaf7=_0x1d98dc[_0x3d81e5(0x15d)]['match'](new RegExp(_0x39c5ea+'[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','i'));_0x3ebaf7&&(_0x21517f['version']=_0x3ebaf7[0x1]);const _0x3a1546=_0x1d98dc[_0x3d81e5(0x15d)]['match'](new RegExp(_0x39c5ea+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x3a1546&&(_0x21517f[_0x3d81e5(0x154)]=_0x6a9cf0[_0x3d81e5(0x164)](_0x3a1546[0x1]['toLowerCase'](),'enabled')),_0x21517f;}
1
+ (function(_0x726998,_0x2cc604){const _0x4903fe=_0x16f2,_0x4ad783=_0x726998();while(!![]){try{const _0xc7e6fd=-parseInt(_0x4903fe(0x10b))/0x1+-parseInt(_0x4903fe(0xfe))/0x2+parseInt(_0x4903fe(0x10c))/0x3*(-parseInt(_0x4903fe(0xfd))/0x4)+parseInt(_0x4903fe(0xe5))/0x5*(parseInt(_0x4903fe(0xf1))/0x6)+-parseInt(_0x4903fe(0xf8))/0x7*(parseInt(_0x4903fe(0x101))/0x8)+parseInt(_0x4903fe(0xef))/0x9+parseInt(_0x4903fe(0x10d))/0xa;if(_0xc7e6fd===_0x2cc604)break;else _0x4ad783['push'](_0x4ad783['shift']());}catch(_0x558aef){_0x4ad783['push'](_0x4ad783['shift']());}}}(_0x42f7,0x6f514));import{spawn}from'child_process';import{existsSync}from'fs';import{readFile}from'fs/promises';import{join,resolve}from'path';import{getClaudeConfigDir,getProjectRoot}from'./claudeConfig.js';export function runClaudeCommand(_0x193627,_0xcdc554){const _0x3a1d35=_0x16f2,_0x948275={'nhqvs':function(_0x5eaf68,_0x188e11){return _0x5eaf68(_0x188e11);},'NBVjW':function(_0x5960fd,_0x5dd9e6){return _0x5960fd(_0x5dd9e6);},'INZpR':_0x3a1d35(0x10a),'OowPF':_0x3a1d35(0xf2),'BvbMR':'error'};return new Promise(_0x2e8b99=>{const _0x246e5d=_0x3a1d35,_0x33f0b3=_0xcdc554?.['captureOutput']?[_0x948275[_0x246e5d(0x109)],_0x246e5d(0xe8),'pipe']:[_0x948275['INZpR'],_0x246e5d(0x102),_0x246e5d(0x102)],_0x430cc6=spawn(_0x246e5d(0xf0),_0x193627,{'stdio':_0x33f0b3,'cwd':_0xcdc554?.[_0x246e5d(0xe6)]});let _0x50f2fd='';_0xcdc554?.['captureOutput']&&_0x430cc6[_0x246e5d(0xee)]&&_0x430cc6['stdout']['on'](_0x948275['OowPF'],_0x279bf3=>{_0x50f2fd+=_0x279bf3['toString']();}),_0xcdc554?.['captureOutput']&&_0x430cc6[_0x246e5d(0xfc)]&&_0x430cc6['stderr']['on'](_0x948275['OowPF'],_0x1200ed=>{_0x50f2fd+=_0x1200ed['toString']();}),_0x430cc6['on']('close',_0x5245db=>{_0x5245db===0x0?_0x948275['nhqvs'](_0x2e8b99,{'success':!![],'output':_0x50f2fd}):_0x948275['NBVjW'](_0x2e8b99,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x5245db,'output':_0x50f2fd});}),_0x430cc6['on'](_0x948275[_0x246e5d(0xe4)],_0x3e82c6=>{const _0x359135=_0x246e5d;_0x2e8b99({'success':![],'error':_0x3e82c6[_0x359135(0xf7)]});});});}export async function isMarketplaceAdded(_0x201c2e){const _0x4b3f3d=_0x16f2,_0x2ea5e0={'wDLzh':function(_0x10dbaa,_0x299bc9,_0x38a743){return _0x10dbaa(_0x299bc9,_0x38a743);},'QcSyS':'plugin'},_0x58d9c5=await _0x2ea5e0['wDLzh'](runClaudeCommand,[_0x2ea5e0['QcSyS'],'marketplace',_0x4b3f3d(0x100)],{'captureOutput':!![]});if(!_0x58d9c5['success']||!_0x58d9c5[_0x4b3f3d(0xfa)])return![];return _0x58d9c5[_0x4b3f3d(0xfa)]['includes'](_0x201c2e);}export async function isPluginInstalled(_0x485770){const _0x1b438f=_0x16f2,_0x521a36={'YhXKP':function(_0x1117ab,_0x92f587){return _0x1117ab>_0x92f587;},'EGhAK':function(_0x5591b8,_0x41137b,_0x26fe59){return _0x5591b8(_0x41137b,_0x26fe59);},'IQhum':'plugin'},_0x5c9798=await getInstalledPluginInfoFromRegistry(_0x485770);if(_0x521a36[_0x1b438f(0xed)](_0x5c9798['length'],0x0))return!![];const _0x4062be=await _0x521a36[_0x1b438f(0x104)](runClaudeCommand,[_0x521a36['IQhum'],'list'],{'captureOutput':!![]});if(!_0x4062be[_0x1b438f(0xe1)]||!_0x4062be['output'])return![];return _0x4062be[_0x1b438f(0xfa)][_0x1b438f(0xf4)](_0x485770);}function getInstalledPluginsPath(){const _0x1802a9=_0x16f2,_0x3d1c2e={'mOtpy':function(_0x8eecfc,_0x46863d,_0x2c62c4,_0x158246){return _0x8eecfc(_0x46863d,_0x2c62c4,_0x158246);},'ejpQb':function(_0x3ed8bc){return _0x3ed8bc();}};return _0x3d1c2e[_0x1802a9(0xe2)](join,_0x3d1c2e['ejpQb'](getClaudeConfigDir),_0x1802a9(0x105),'installed_plugins.json');}function sortPluginInfo(_0x74a09f,_0x1ee1ff){const _0x4aa379=_0x16f2,_0x355747={'cpipZ':function(_0x59d0c7,_0xf306e2){return _0x59d0c7-_0xf306e2;},'aXsAX':'user'},_0x168b33={'project':0x0,'local':0x1,'user':0x2};return _0x355747[_0x4aa379(0x107)](_0x168b33[_0x74a09f['scope']??_0x355747[_0x4aa379(0xf9)]],_0x168b33[_0x1ee1ff[_0x4aa379(0xfb)]??'user']);}export function parseInstalledPluginInfo(_0x46faa9,_0x155169,_0x6133a6){const _0x53b180=_0x16f2,_0x2073a4={'AigDp':function(_0xa017bc,_0x18c098){return _0xa017bc!==_0x18c098;},'nHMIc':'local','XNRML':function(_0x3dde52,_0x3b242f){return _0x3dde52===_0x3b242f;}},_0x490c17=JSON['parse'](_0x46faa9),_0x5cafc1=resolve(_0x6133a6),_0x40d9f9=_0x490c17['plugins']?.[_0x155169]??[];return _0x40d9f9['filter'](_0x356d91=>{const _0x452e1c=_0x16f2;if(_0x356d91['scope']!=='project'&&_0x2073a4[_0x452e1c(0xf3)](_0x356d91['scope'],_0x2073a4[_0x452e1c(0x103)]))return!![];if(!_0x356d91['projectPath'])return!![];return _0x2073a4['XNRML'](resolve(_0x356d91[_0x452e1c(0xf6)]),_0x5cafc1);})[_0x53b180(0xec)](_0x457d26=>({'name':_0x155169,'scope':_0x457d26['scope'],'version':_0x457d26['version']}))['sort'](sortPluginInfo);}async function getInstalledPluginInfoFromRegistry(_0x16ff1f){const _0x35a118=_0x16f2,_0x51648a={'StCFv':function(_0x4c9a6a){return _0x4c9a6a();},'prDNA':function(_0x38ba4a,_0x1519ef){return _0x38ba4a(_0x1519ef);},'sZIWI':function(_0x39de91,_0x130b22,_0x35d6d3){return _0x39de91(_0x130b22,_0x35d6d3);},'KUfQl':_0x35a118(0xea),'ByzFy':function(_0x1cc877,_0x2f2d9f,_0x537c2a,_0x1810e0){return _0x1cc877(_0x2f2d9f,_0x537c2a,_0x1810e0);}},_0x4121ae=_0x51648a[_0x35a118(0x108)](getInstalledPluginsPath);if(!_0x51648a[_0x35a118(0xe3)](existsSync,_0x4121ae))return[];try{const _0x257745=await _0x51648a['sZIWI'](readFile,_0x4121ae,_0x51648a['KUfQl']);return _0x51648a['ByzFy'](parseInstalledPluginInfo,_0x257745,_0x16ff1f,_0x51648a['StCFv'](getProjectRoot));}catch{return[];}}export async function getPluginInfo(_0x1051e3){const _0x2e7020=_0x16f2,_0x328dc0={'jsBiU':function(_0x4d2676,_0x5bd502){return _0x4d2676(_0x5bd502);},'IZtUE':_0x2e7020(0x100),'DyoYu':function(_0xa38d5b,_0x251f75){return _0xa38d5b===_0x251f75;}},_0x3524bf=await _0x328dc0['jsBiU'](getInstalledPluginInfoFromRegistry,_0x1051e3);if(_0x3524bf[_0x2e7020(0xe9)]>0x0)return _0x3524bf[0x0];const _0x4116b7=await runClaudeCommand([_0x2e7020(0xf5),_0x328dc0['IZtUE']],{'captureOutput':!![]});if(!_0x4116b7['success']||!_0x4116b7['output'])return null;if(!_0x4116b7[_0x2e7020(0xfa)]['includes'](_0x1051e3))return null;const _0x16c06a={'name':_0x1051e3},_0x5941ad=_0x4116b7['output'][_0x2e7020(0xff)](new RegExp(_0x1051e3+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0x5941ad&&(_0x16c06a[_0x2e7020(0xfb)]=_0x5941ad[0x1][_0x2e7020(0xe7)]());const _0x4b7732=_0x4116b7['output'][_0x2e7020(0xff)](new RegExp(_0x1051e3+'[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','i'));_0x4b7732&&(_0x16c06a[_0x2e7020(0xeb)]=_0x4b7732[0x1]);const _0x5d338f=_0x4116b7['output'][_0x2e7020(0xff)](new RegExp(_0x1051e3+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x5d338f&&(_0x16c06a[_0x2e7020(0x10e)]=_0x328dc0[_0x2e7020(0x106)](_0x5d338f[0x1][_0x2e7020(0xe7)](),_0x2e7020(0x10e))),_0x16c06a;}function _0x16f2(_0x5d64e2,_0x311c45){_0x5d64e2=_0x5d64e2-0xe1;const _0x42f776=_0x42f7();let _0x16f26f=_0x42f776[_0x5d64e2];return _0x16f26f;}function _0x42f7(){const _0x1d6360=['map','YhXKP','stdout','366462umIWhI','claude','162cWOWNi','data','AigDp','includes','plugin','projectPath','message','295253pQLUOo','aXsAX','output','scope','stderr','31268sDpngT','208990XZcZJI','match','list','128Lsojbq','inherit','nHMIc','EGhAK','plugins','DyoYu','cpipZ','StCFv','INZpR','ignore','692661ydUMuj','177wWvokM','22131640xrGzuV','enabled','success','mOtpy','prDNA','BvbMR','25055EMenZe','cwd','toLowerCase','pipe','length','utf-8','version'];_0x42f7=function(){return _0x1d6360;};return _0x42f7();}