@ranger-testing/ranger-cli 2.4.0 → 2.4.2

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 (70) 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/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/reportGenerator.js +1 -1
  57. package/build/commands/utils/retry.js +1 -1
  58. package/build/commands/utils/sessionCache.js +1 -1
  59. package/build/commands/utils/settings.js +1 -1
  60. package/build/commands/utils/skillContent.js +1 -1
  61. package/build/commands/utils/skills.js +1 -1
  62. package/build/commands/utils/stitchWebmFiles.js +1 -1
  63. package/build/commands/utils/telemetry.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/build/commands/verifyInBrowser.js +1 -1
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x263138,_0x4be758){const _0x549f02=_0x3392,_0x422359=_0x263138();while(!![]){try{const _0x3a78d9=parseInt(_0x549f02(0x160))/0x1+parseInt(_0x549f02(0x147))/0x2+parseInt(_0x549f02(0x142))/0x3*(-parseInt(_0x549f02(0x13d))/0x4)+-parseInt(_0x549f02(0x162))/0x5+-parseInt(_0x549f02(0x146))/0x6*(parseInt(_0x549f02(0x135))/0x7)+parseInt(_0x549f02(0x15a))/0x8*(parseInt(_0x549f02(0x131))/0x9)+parseInt(_0x549f02(0x14a))/0xa;if(_0x3a78d9===_0x4be758)break;else _0x422359['push'](_0x422359['shift']());}catch(_0x3da7a5){_0x422359['push'](_0x422359['shift']());}}}(_0x3bb5,0x8698f));function _0x3392(_0x281333,_0xd9c009){_0x281333=_0x281333-0x12c;const _0x3bb52d=_0x3bb5();let _0x3392e3=_0x3bb52d[_0x281333];return _0x3392e3;}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{getSkillsDir}from'./utils/claudeConfig.js';import{getOpencodeSkillsDir}from'./utils/opencodeConfig.js';import{join}from'path';import{migrateActiveProfileFile}from'./utils/activeProfile.js';import{getRangerDir}from'./utils/rangerRoot.js';import{isMarketplaceAdded,isPluginInstalled}from'./utils/claudePlugin.js';async function runInstall(){const _0x39e327=_0x3392,_0x472d2b={'yLtbI':function(_0xdaed99,_0x1c76a3){return _0xdaed99(_0x1c76a3);},'EUXAK':function(_0x4bb294,_0x293290,_0x1f56ad,_0x1393e6){return _0x4bb294(_0x293290,_0x1f56ad,_0x1393e6);},'ipqAg':'npm','XqsIR':'install','aXDJS':_0x39e327(0x12c)};return new Promise(_0x52e2a5=>{const _0x4ed937=_0x39e327,_0x3014b1={'sXKim':function(_0xdcce95,_0x207004){return _0x472d2b['yLtbI'](_0xdcce95,_0x207004);}};console['log'](_0x4ed937(0x16a)+PACKAGE_NAME+_0x4ed937(0x139));const _0x4cf571=_0x472d2b['EUXAK'](spawn,_0x472d2b[_0x4ed937(0x145)],[_0x472d2b['XqsIR'],'-g',PACKAGE_NAME+'@latest'],{'stdio':'inherit','shell':process['platform']===_0x4ed937(0x15b)});_0x4cf571['on'](_0x4ed937(0x137),_0x2024d9=>{_0x52e2a5(_0x2024d9===0x0);}),_0x4cf571['on'](_0x472d2b['aXDJS'],()=>{const _0x3c567a=_0x4ed937;_0x3014b1[_0x3c567a(0x13a)](_0x52e2a5,![]);});});}async function updateClaudeMarketplace(){const _0x4dc349=_0x3392,_0x357d93={'aSReW':function(_0x5d69b1,_0xe24d26){return _0x5d69b1(_0xe24d26);},'XvVeR':'marketplace','aPxaI':_0x4dc349(0x13f),'lKaUa':function(_0x9b5e15,_0x367791){return _0x9b5e15===_0x367791;}};return new Promise(_0x4d9507=>{const _0x5abf33=_0x4dc349,_0x5225cc={'McMQY':function(_0x287a66,_0x4ff5a3){const _0x1b4cd6=_0x3392;return _0x357d93[_0x1b4cd6(0x16e)](_0x287a66,_0x4ff5a3);}},_0x4a415c=spawn(_0x5abf33(0x149),['plugin',_0x357d93[_0x5abf33(0x169)],'update',_0x357d93[_0x5abf33(0x134)]],{'stdio':'pipe','shell':_0x357d93[_0x5abf33(0x14c)](process[_0x5abf33(0x138)],_0x5abf33(0x15b))});_0x4a415c['on']('close',_0x2ef7f2=>{const _0x16a5f2=_0x5abf33;_0x5225cc[_0x16a5f2(0x12e)](_0x4d9507,_0x2ef7f2===0x0);}),_0x4a415c['on']('error',()=>{_0x4d9507(![]);});});}async function updateClaudePlugin(_0x4809ae){const _0x209221=_0x3392,_0x4baeb7={'edwGX':_0x209221(0x140),'mBaop':'--scope','gZbeA':function(_0x5b5e85,_0x5c8c19,_0x3c7866,_0x20670f){return _0x5b5e85(_0x5c8c19,_0x3c7866,_0x20670f);},'uuaxe':function(_0xbcd7d0,_0x38a786){return _0xbcd7d0===_0x38a786;},'WLixC':'win32','CVMKt':_0x209221(0x137),'uIztS':'error'};return new Promise(_0xd0d977=>{const _0x86f31a=_0x209221,_0x372fdb={'tMFWc':function(_0x5e3136,_0xe212ab){return _0x5e3136(_0xe212ab);}},_0x2a8d61=[_0x86f31a(0x14d),_0x86f31a(0x148),_0x4baeb7[_0x86f31a(0x150)]];_0x4809ae&&_0x2a8d61[_0x86f31a(0x167)](_0x4baeb7['mBaop'],_0x4809ae);const _0x858aa5=_0x4baeb7['gZbeA'](spawn,'claude',_0x2a8d61,{'stdio':'pipe','shell':_0x4baeb7['uuaxe'](process[_0x86f31a(0x138)],_0x4baeb7[_0x86f31a(0x143)])});_0x858aa5['on'](_0x4baeb7[_0x86f31a(0x153)],_0x13dc9f=>{const _0x30bbb3=_0x86f31a;_0x372fdb[_0x30bbb3(0x154)](_0xd0d977,_0x13dc9f===0x0);}),_0x858aa5['on'](_0x4baeb7[_0x86f31a(0x168)],()=>{_0xd0d977(![]);});});}function isSkillInstalled(_0x31a3ad,_0x113ff0,_0xab85bd){const _0x5819cf={'dEqXe':'opencode','wKNPO':function(_0x151ef8,_0x25830d){return _0x151ef8(_0x25830d);}},_0x3c0c11=_0xab85bd===_0x5819cf['dEqXe']?getOpencodeSkillsDir(_0x113ff0):getSkillsDir(_0x113ff0),_0x5620b4=join(_0x3c0c11,_0x31a3ad);return _0x5819cf['wKNPO'](existsSync,_0x5620b4);}function _0x3bb5(){const _0x2fecf4=['CVMKt','tMFWc','sJzdx','\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','eOVLv','Claude\x20plugin\x20updated\x20(project\x20scope).','Checking\x20for\x20updates...','56856JgKShR','win32','length','lHbUB','zLrBO','FDlnS','508034wlxGkn','lQUTl','5310550zBGCgw','\x0aSuccessfully\x20updated\x20to\x20version\x20','warn','active-feature.txt','nZdep','push','uIztS','XvVeR','\x0aInstalling\x20','trim','MubKc','Latest\x20version:\x20\x20','aSReW','error','.gitignore','McMQY','EpxJH','project','603IaDlMx','version','FUisZ','aPxaI','203MBOtWv','Update\x20failed:\x20','close','platform','@latest...\x0a','sXKim','DhtlI','opencode','1832DwBNZn','AIyyR','trailhead','ranger@trailhead','utf-8','3777bZpzDi','WLixC','\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','ipqAg','84810nQXxtQ','525604qYlgPO','update','claude','13529530QyYVTD','\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','lKaUa','plugin','eawfq','cTCWL','edwGX','log','rnmhk'];_0x3bb5=function(){return _0x2fecf4;};return _0x3bb5();}async function reinstallSkills(_0xc5adfe){const _0x4b979d=_0x3392,_0x5b981d={'MubKc':'user','EpxJH':function(_0x170317,_0x376a41,_0x41e970,_0x3bb07b){return _0x170317(_0x376a41,_0x41e970,_0x3bb07b);},'EMAey':'opencode','PfXgF':function(_0x41579c,_0x5be68d,_0x2de601){return _0x41579c(_0x5be68d,_0x2de601);},'DhtlI':_0x4b979d(0x14b)},_0x2f63a6=['project',_0x5b981d[_0x4b979d(0x16c)]],_0x51b3f8=[];for(const _0x58b36b of _0x2f63a6){for(const _0x34d286 of RANGER_MANAGED_SKILLS){_0x5b981d[_0x4b979d(0x12f)](isSkillInstalled,_0x34d286,_0x58b36b,_0x4b979d(0x149))&&_0x51b3f8['push']({'skillName':_0x34d286,'level':_0x58b36b,'platform':_0x4b979d(0x149)}),_0x5b981d['EpxJH'](isSkillInstalled,_0x34d286,_0x58b36b,_0x4b979d(0x13c))&&_0x51b3f8['push']({'skillName':_0x34d286,'level':_0x58b36b,'platform':_0x5b981d['EMAey']});}}for(const _0x130d8a of _0x2f63a6){for(const _0xd49ce6 of DEPRECATED_SKILLS){await _0x5b981d['PfXgF'](removeSkill,_0xd49ce6,_0x130d8a);}}if(_0x51b3f8['length']===0x0){console['log'](_0x5b981d[_0x4b979d(0x13b)]);return;}console[_0x4b979d(0x151)]('\x0aReinstalling\x20'+_0x51b3f8['length']+'\x20ranger-managed\x20skill(s)...');for(const {skillName:_0x3d77fb,level:_0x590d4a,platform:_0x22ee58}of _0x51b3f8){try{await _0x5b981d['PfXgF'](installSkill,_0x3d77fb,{'level':_0x590d4a,'cliVersion':_0xc5adfe,'platform':_0x22ee58});}catch(_0x4837b5){console[_0x4b979d(0x164)]('\x20\x20Failed\x20to\x20reinstall\x20'+_0x22ee58+'\x20'+_0x590d4a+'\x20skill\x20'+_0x3d77fb+':',_0x4837b5);}}}async function ensureActiveProfileGitignored(){const _0x3209f7=_0x3392,_0x2ce22d={'zffCf':function(_0x3865dd,_0x2d2eb9,_0x1ef00a){return _0x3865dd(_0x2d2eb9,_0x1ef00a);},'nZdep':function(_0x4d31a0,_0x5a5903){return _0x4d31a0(_0x5a5903);},'cTCWL':function(_0x168091,_0x8fbed,_0x11f3cf){return _0x168091(_0x8fbed,_0x11f3cf);},'AIyyR':function(_0x5a8c5c,_0x908685){return _0x5a8c5c===_0x908685;},'lHbUB':function(_0x25e5fa,_0x4a6c13,_0x53c827,_0x1b8f87){return _0x25e5fa(_0x4a6c13,_0x53c827,_0x1b8f87);}},_0x16b5ab=_0x2ce22d['zffCf'](join,getRangerDir(),_0x3209f7(0x12d));if(!_0x2ce22d[_0x3209f7(0x166)](existsSync,_0x16b5ab))return![];let _0x4f9bbb='';try{_0x4f9bbb=await _0x2ce22d[_0x3209f7(0x14f)](readFile,_0x16b5ab,_0x3209f7(0x141));}catch{return![];}const _0x55a299=_0x4f9bbb['split'](/\r?\n/);if(_0x55a299['some'](_0x2d3da7=>_0x2d3da7['trim']()==='active-profile.txt'))return![];let _0x1808d7=_0x55a299['findIndex'](_0x51ca6d=>_0x51ca6d[_0x3209f7(0x16b)]()===_0x3209f7(0x165));_0x2ce22d[_0x3209f7(0x13e)](_0x1808d7,-0x1)&&(_0x1808d7=_0x55a299[_0x3209f7(0x15c)]);_0x55a299['splice'](_0x1808d7,0x0,'active-profile.txt');let _0x2414be=_0x55a299['join']('\x0a');!_0x2414be['endsWith']('\x0a')&&(_0x2414be+='\x0a');try{await _0x2ce22d[_0x3209f7(0x15d)](writeFile,_0x16b5ab,_0x2414be,'utf-8');}catch{return![];}return!![];}export async function update(){const _0x54f452=_0x3392,_0x4ebb81={'GvXZe':_0x54f452(0x159),'lQUTl':function(_0x418438){return _0x418438();},'sJzdx':function(_0x239071){return _0x239071();},'xKEpS':function(_0x33d2fc,_0x2108f5,_0x2e58d3){return _0x33d2fc(_0x2108f5,_0x2e58d3);},'eawfq':function(_0x238ea2,_0x1ce4ad){return _0x238ea2===_0x1ce4ad;},'zfxyH':function(_0x2628c5,_0x456bcc){return _0x2628c5<_0x456bcc;},'eOVLv':function(_0xa0276d){return _0xa0276d();},'FDlnS':'Update\x20failed.','FUisZ':function(_0x17d0be,_0x462eb8){return _0x17d0be(_0x462eb8);},'eoDFu':_0x54f452(0x13f),'zLrBO':'ranger@trailhead','ctiHo':function(_0x24502){return _0x24502();},'dSiZT':_0x54f452(0x130),'rnmhk':function(_0x23630f){return _0x23630f();},'QCRYI':'\x0a✅\x20Update\x20complete!'},_0x49baff=getCurrentVersion();console['log']('\x0aCurrent\x20version:\x20'+_0x49baff),console['log'](_0x4ebb81['GvXZe']);const _0x57fb54=_0x4ebb81['lQUTl'](getLatestVersion);let _0xb53f55=_0x49baff;if(!_0x57fb54['version']){console['warn']('\x0aCould\x20not\x20check\x20latest\x20version:\x20'+_0x57fb54[_0x54f452(0x12c)]),console['log']('Attempting\x20install\x20anyway...');const _0x2fbb6c=await _0x4ebb81[_0x54f452(0x161)](runInstall);if(_0x2fbb6c)console[_0x54f452(0x151)]('\x0aSuccessfully\x20installed\x20latest\x20version.'),_0xb53f55=_0x4ebb81[_0x54f452(0x155)](getCurrentVersion);else throw new Error(_0x54f452(0x136)+_0x57fb54[_0x54f452(0x12c)]);}else{const _0x1d90dd=_0x57fb54[_0x54f452(0x132)];console['log'](_0x54f452(0x16d)+_0x1d90dd);const _0x4fc8da=_0x4ebb81['xKEpS'](compareVersions,_0x49baff,_0x1d90dd);if(_0x4ebb81[_0x54f452(0x14e)](_0x4fc8da,0x0))console[_0x54f452(0x151)](_0x54f452(0x156));else{if(_0x4ebb81['zfxyH'](_0x4fc8da,0x0))console['log']('\x0aYour\x20version\x20('+_0x49baff+')\x20is\x20newer\x20than\x20the\x20published\x20version\x20('+_0x1d90dd+').');else{const _0x45c78b=await _0x4ebb81[_0x54f452(0x157)](runInstall);if(_0x45c78b)console[_0x54f452(0x151)](_0x54f452(0x163)+_0x1d90dd),_0xb53f55=_0x1d90dd;else throw new Error(_0x4ebb81[_0x54f452(0x15f)]);}}}await _0x4ebb81[_0x54f452(0x133)](reinstallSkills,_0xb53f55);const _0x2bbbee=await isMarketplaceAdded(_0x4ebb81['eoDFu']),_0x4f8115=await isPluginInstalled(_0x4ebb81[_0x54f452(0x15e)]);if(_0x2bbbee){const _0x3bfaf3=await updateClaudeMarketplace();_0x3bfaf3&&console[_0x54f452(0x151)]('\x0aClaude\x20marketplace\x20updated\x20(trailhead).');}if(_0x4f8115){const _0x248cf4=await _0x4ebb81['ctiHo'](updateClaudePlugin);_0x248cf4&&console['log'](_0x54f452(0x144));const _0x2025a1=await updateClaudePlugin(_0x4ebb81['dSiZT']);_0x2025a1&&console[_0x54f452(0x151)]((_0x248cf4?'':'\x0a')+_0x54f452(0x158));}const _0x43148c=await _0x4ebb81[_0x54f452(0x152)](migrateActiveProfileFile);_0x43148c&&console['log']('✓\x20Migrated\x20active\x20profile\x20file');const _0x4c0722=await ensureActiveProfileGitignored();console[_0x54f452(0x151)](_0x4ebb81['QCRYI']);}
1
+ (function(_0x1b2bec,_0x3a1f30){const _0x1b5f9c=_0x31fa,_0x4d084d=_0x1b2bec();while(!![]){try{const _0x55261a=parseInt(_0x1b5f9c(0x230))/0x1+-parseInt(_0x1b5f9c(0x205))/0x2+-parseInt(_0x1b5f9c(0x227))/0x3+parseInt(_0x1b5f9c(0x229))/0x4*(parseInt(_0x1b5f9c(0x22f))/0x5)+parseInt(_0x1b5f9c(0x220))/0x6+-parseInt(_0x1b5f9c(0x225))/0x7*(parseInt(_0x1b5f9c(0x212))/0x8)+parseInt(_0x1b5f9c(0x204))/0x9;if(_0x55261a===_0x3a1f30)break;else _0x4d084d['push'](_0x4d084d['shift']());}catch(_0x3adabd){_0x4d084d['push'](_0x4d084d['shift']());}}}(_0x2cea,0xccd1d));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{getSkillsDir}from'./utils/claudeConfig.js';import{getOpencodeSkillsDir}from'./utils/opencodeConfig.js';function _0x31fa(_0x2b34e8,_0x218a4f){_0x2b34e8=_0x2b34e8-0x1e9;const _0x2cea22=_0x2cea();let _0x31fa8d=_0x2cea22[_0x2b34e8];return _0x31fa8d;}import{join}from'path';import{migrateActiveProfileFile}from'./utils/activeProfile.js';function _0x2cea(){const _0x37a004=['emBLL','sscCM','\x0aClaude\x20marketplace\x20updated\x20(trailhead).','claude','findIndex','push','jyOIk','ranger@trailhead','jRKfZ','6427840xwbkZN','\x0aCould\x20not\x20check\x20latest\x20version:\x20','plugin','version','split','utf-8','splice','\x0aYour\x20version\x20(','wYJZN','nORwR','lITnP','SiRWi','npm','GOvPa','8737290ZdWQYX','\x0aYou\x20are\x20already\x20on\x20the\x20latest\x20version.','\x0aNo\x20ranger-managed\x20skills\x20found\x20to\x20reinstall.','trim','length','7TlYYPk','Attempting\x20install\x20anyway...','1480707KoQGWw','\x0aReinstalling\x20','3768pmCTqW','platform','wAnYe','error','kGtpX','\x0a✅\x20Update\x20complete!','1805EBnDkB','1104798dRdbzq','gcfps','close','opencode','active-feature.txt','rXhYB','sNCJB','pipe','log','Latest\x20version:\x20\x20','\x0aInstalling\x20','UuVFm','\x20ranger-managed\x20skill(s)...','MfptZ','\x0aClaude\x20plugin\x20updated\x20(user\x20scope).','Update\x20failed:\x20','sdHzD','project','UpCJz','gKFmI','--scope','trailhead','active-profile.txt','Claude\x20plugin\x20updated\x20(project\x20scope).','sfgXP','win32','IuNPl','\x20skill\x20','Checking\x20for\x20updates...','4571127szcplp','2545976GNCIdQ','fJjUQ','update','jHNmr'];_0x2cea=function(){return _0x37a004;};return _0x2cea();}import{getRangerDir}from'./utils/rangerRoot.js';import{isMarketplaceAdded,isPluginInstalled}from'./utils/claudePlugin.js';async function runInstall(){const _0x32e83c=_0x31fa,_0x2caa2d={'sdHzD':function(_0x4e1fbd,_0x16ffa4,_0x4e4bd9,_0xb79bdb){return _0x4e1fbd(_0x16ffa4,_0x4e4bd9,_0xb79bdb);},'wRJzx':_0x32e83c(0x21e),'lITnP':'install','wcqjK':'inherit','emBLL':_0x32e83c(0x1e9)};return new Promise(_0x5d7b2d=>{const _0x2ab963=_0x32e83c,_0x2500f8={'eMdyb':function(_0x42d28f,_0x15f330){return _0x42d28f(_0x15f330);}};console[_0x2ab963(0x1ef)](_0x2ab963(0x1f1)+PACKAGE_NAME+'@latest...\x0a');const _0x490496=_0x2caa2d[_0x2ab963(0x1f7)](spawn,_0x2caa2d['wRJzx'],[_0x2caa2d[_0x2ab963(0x21c)],'-g',PACKAGE_NAME+'@latest'],{'stdio':_0x2caa2d['wcqjK'],'shell':process[_0x2ab963(0x22a)]===_0x2ab963(0x200)});_0x490496['on'](_0x2caa2d[_0x2ab963(0x209)],_0x2daf31=>{_0x2500f8['eMdyb'](_0x5d7b2d,_0x2daf31===0x0);}),_0x490496['on'](_0x2ab963(0x22c),()=>{_0x5d7b2d(![]);});});}async function updateClaudeMarketplace(){const _0x88a605=_0x31fa,_0x4bcbd2={'kGtpX':function(_0x1024a0,_0x222c42){return _0x1024a0(_0x222c42);},'sBglX':_0x88a605(0x214),'tZweb':'marketplace','nORwR':_0x88a605(0x207),'gKFmI':'trailhead','IuNPl':'pipe','wPGHw':function(_0x5b9789,_0x358f00){return _0x5b9789===_0x358f00;},'EZtGl':'error'};return new Promise(_0x12e4a0=>{const _0x5c303e=_0x88a605,_0x41df20=spawn(_0x5c303e(0x20c),[_0x4bcbd2['sBglX'],_0x4bcbd2['tZweb'],_0x4bcbd2[_0x5c303e(0x21b)],_0x4bcbd2[_0x5c303e(0x1fa)]],{'stdio':_0x4bcbd2[_0x5c303e(0x201)],'shell':_0x4bcbd2['wPGHw'](process[_0x5c303e(0x22a)],'win32')});_0x41df20['on'](_0x5c303e(0x1e9),_0x1e42b4=>{const _0x474691=_0x5c303e;_0x4bcbd2[_0x474691(0x22d)](_0x12e4a0,_0x1e42b4===0x0);}),_0x41df20['on'](_0x4bcbd2['EZtGl'],()=>{_0x12e4a0(![]);});});}async function updateClaudePlugin(_0x2a0094){const _0x4e121b=_0x31fa,_0x34cb3e={'lfStP':'plugin','eynsO':'update','UuVFm':'ranger@trailhead','yjIxI':_0x4e121b(0x1fb),'gcfps':function(_0x1b725b,_0x298403,_0x56b164,_0x3678c1){return _0x1b725b(_0x298403,_0x56b164,_0x3678c1);},'sfgXP':_0x4e121b(0x1ee),'jHNmr':'win32'};return new Promise(_0x1ce34a=>{const _0x207ba3=_0x4e121b,_0x18cea8=[_0x34cb3e['lfStP'],_0x34cb3e['eynsO'],_0x34cb3e[_0x207ba3(0x1f2)]];_0x2a0094&&_0x18cea8['push'](_0x34cb3e['yjIxI'],_0x2a0094);const _0x19dfa9=_0x34cb3e[_0x207ba3(0x231)](spawn,_0x207ba3(0x20c),_0x18cea8,{'stdio':_0x34cb3e[_0x207ba3(0x1ff)],'shell':process[_0x207ba3(0x22a)]===_0x34cb3e[_0x207ba3(0x208)]});_0x19dfa9['on'](_0x207ba3(0x1e9),_0x36eb56=>{_0x1ce34a(_0x36eb56===0x0);}),_0x19dfa9['on'](_0x207ba3(0x22c),()=>{_0x1ce34a(![]);});});}function isSkillInstalled(_0x103d8d,_0x3585dc,_0x520bdb){const _0x45f313=_0x31fa,_0x5e9df1={'GOvPa':function(_0x41acc4,_0x25a710){return _0x41acc4(_0x25a710);},'rXhYB':function(_0x19f84f,_0x1d39ee,_0x530a48){return _0x19f84f(_0x1d39ee,_0x530a48);}},_0x3a72f3=_0x520bdb===_0x45f313(0x1ea)?getOpencodeSkillsDir(_0x3585dc):_0x5e9df1[_0x45f313(0x21f)](getSkillsDir,_0x3585dc),_0x31073b=_0x5e9df1[_0x45f313(0x1ec)](join,_0x3a72f3,_0x103d8d);return _0x5e9df1['GOvPa'](existsSync,_0x31073b);}async function reinstallSkills(_0x484376){const _0x8f4ea=_0x31fa,_0x4372b6={'jRKfZ':_0x8f4ea(0x1f8),'SiRWi':'claude','CtiAj':_0x8f4ea(0x1ea),'sNCJB':function(_0xb8f881,_0x243ca2,_0x3f1ec5){return _0xb8f881(_0x243ca2,_0x3f1ec5);},'xLHpl':_0x8f4ea(0x222)},_0x25525d=[_0x4372b6[_0x8f4ea(0x211)],'user'],_0x36b5cd=[];for(const _0x3175a9 of _0x25525d){for(const _0x264013 of RANGER_MANAGED_SKILLS){isSkillInstalled(_0x264013,_0x3175a9,_0x4372b6[_0x8f4ea(0x21d)])&&_0x36b5cd[_0x8f4ea(0x20e)]({'skillName':_0x264013,'level':_0x3175a9,'platform':'claude'}),isSkillInstalled(_0x264013,_0x3175a9,_0x4372b6['CtiAj'])&&_0x36b5cd[_0x8f4ea(0x20e)]({'skillName':_0x264013,'level':_0x3175a9,'platform':'opencode'});}}for(const _0x3b12f3 of _0x25525d){for(const _0x115a92 of DEPRECATED_SKILLS){await _0x4372b6[_0x8f4ea(0x1ed)](removeSkill,_0x115a92,_0x3b12f3);}}if(_0x36b5cd[_0x8f4ea(0x224)]===0x0){console[_0x8f4ea(0x1ef)](_0x4372b6['xLHpl']);return;}console[_0x8f4ea(0x1ef)](_0x8f4ea(0x228)+_0x36b5cd['length']+_0x8f4ea(0x1f3));for(const {skillName:_0x36af10,level:_0x135afa,platform:_0xff5c31}of _0x36b5cd){try{await installSkill(_0x36af10,{'level':_0x135afa,'cliVersion':_0x484376,'platform':_0xff5c31});}catch(_0x4bcb71){console['warn']('\x20\x20Failed\x20to\x20reinstall\x20'+_0xff5c31+'\x20'+_0x135afa+_0x8f4ea(0x202)+_0x36af10+':',_0x4bcb71);}}}async function ensureActiveProfileGitignored(){const _0x3001da=_0x31fa,_0x35a1bf={'wAnYe':function(_0x3da2ed,_0x56defd,_0x5a791e){return _0x3da2ed(_0x56defd,_0x5a791e);},'mYlAA':function(_0x14a7e1,_0x2a3c6c){return _0x14a7e1(_0x2a3c6c);},'wYJZN':_0x3001da(0x217)},_0x3dce1c=_0x35a1bf[_0x3001da(0x22b)](join,getRangerDir(),'.gitignore');if(!_0x35a1bf['mYlAA'](existsSync,_0x3dce1c))return![];let _0xebde7b='';try{_0xebde7b=await readFile(_0x3dce1c,_0x35a1bf[_0x3001da(0x21a)]);}catch{return![];}const _0x3dd2a7=_0xebde7b[_0x3001da(0x216)](/\r?\n/);if(_0x3dd2a7['some'](_0x4978cf=>_0x4978cf['trim']()===_0x3001da(0x1fd)))return![];let _0x4be6d6=_0x3dd2a7[_0x3001da(0x20d)](_0x10ad84=>_0x10ad84[_0x3001da(0x223)]()===_0x3001da(0x1eb));_0x4be6d6===-0x1&&(_0x4be6d6=_0x3dd2a7[_0x3001da(0x224)]);_0x3dd2a7[_0x3001da(0x218)](_0x4be6d6,0x0,'active-profile.txt');let _0xa070fa=_0x3dd2a7['join']('\x0a');!_0xa070fa['endsWith']('\x0a')&&(_0xa070fa+='\x0a');try{await writeFile(_0x3dce1c,_0xa070fa,_0x3001da(0x217));}catch{return![];}return!![];}export async function update(){const _0x2eba0a=_0x31fa,_0x12588f={'NxdQj':_0x2eba0a(0x203),'IRmVc':function(_0x1d612a){return _0x1d612a();},'fJjUQ':_0x2eba0a(0x226),'jyOIk':function(_0x2931af,_0x39b8c2){return _0x2931af<_0x39b8c2;},'sscCM':function(_0x521b35,_0x5cf4c2){return _0x521b35(_0x5cf4c2);},'wmTmF':_0x2eba0a(0x1fc),'MfptZ':function(_0x411775){return _0x411775();},'wFZVN':function(_0x328396,_0x404962){return _0x328396(_0x404962);},'UpCJz':'✓\x20Migrated\x20active\x20profile\x20file'},_0x5644fa=getCurrentVersion();console[_0x2eba0a(0x1ef)]('\x0aCurrent\x20version:\x20'+_0x5644fa),console[_0x2eba0a(0x1ef)](_0x12588f['NxdQj']);const _0x60d929=_0x12588f['IRmVc'](getLatestVersion);let _0x46057b=_0x5644fa;if(!_0x60d929[_0x2eba0a(0x215)]){console['warn'](_0x2eba0a(0x213)+_0x60d929[_0x2eba0a(0x22c)]),console['log'](_0x12588f[_0x2eba0a(0x206)]);const _0x223b40=await _0x12588f['IRmVc'](runInstall);if(_0x223b40)console[_0x2eba0a(0x1ef)]('\x0aSuccessfully\x20installed\x20latest\x20version.'),_0x46057b=_0x12588f['IRmVc'](getCurrentVersion);else throw new Error(_0x2eba0a(0x1f6)+_0x60d929[_0x2eba0a(0x22c)]);}else{const _0x1fe6ce=_0x60d929['version'];console['log'](_0x2eba0a(0x1f0)+_0x1fe6ce);const _0x37cec2=compareVersions(_0x5644fa,_0x1fe6ce);if(_0x37cec2===0x0)console[_0x2eba0a(0x1ef)](_0x2eba0a(0x221));else{if(_0x12588f[_0x2eba0a(0x20f)](_0x37cec2,0x0))console[_0x2eba0a(0x1ef)](_0x2eba0a(0x219)+_0x5644fa+')\x20is\x20newer\x20than\x20the\x20published\x20version\x20('+_0x1fe6ce+').');else{const _0x1b9f29=await runInstall();if(_0x1b9f29)console['log']('\x0aSuccessfully\x20updated\x20to\x20version\x20'+_0x1fe6ce),_0x46057b=_0x1fe6ce;else throw new Error('Update\x20failed.');}}}await _0x12588f[_0x2eba0a(0x20a)](reinstallSkills,_0x46057b);const _0x3a9339=await _0x12588f['sscCM'](isMarketplaceAdded,_0x12588f['wmTmF']),_0x2d11fb=await isPluginInstalled(_0x2eba0a(0x210));if(_0x3a9339){const _0x1271e7=await updateClaudeMarketplace();_0x1271e7&&console[_0x2eba0a(0x1ef)](_0x2eba0a(0x20b));}if(_0x2d11fb){const _0x463dca=await _0x12588f[_0x2eba0a(0x1f4)](updateClaudePlugin);_0x463dca&&console['log'](_0x2eba0a(0x1f5));const _0x3688f5=await _0x12588f['wFZVN'](updateClaudePlugin,'project');_0x3688f5&&console[_0x2eba0a(0x1ef)]((_0x463dca?'':'\x0a')+_0x2eba0a(0x1fe));}const _0x19a0e2=await migrateActiveProfileFile();_0x19a0e2&&console['log'](_0x12588f[_0x2eba0a(0x1f9)]);const _0x220138=await ensureActiveProfileGitignored();console['log'](_0x2eba0a(0x22e));}
@@ -1 +1 @@
1
- (function(_0x375dcb,_0x388161){const _0x39a4a3=_0x91d2,_0x4eca5a=_0x375dcb();while(!![]){try{const _0x1fc88c=-parseInt(_0x39a4a3(0x105))/0x1*(-parseInt(_0x39a4a3(0x103))/0x2)+-parseInt(_0x39a4a3(0xfb))/0x3+-parseInt(_0x39a4a3(0x119))/0x4+parseInt(_0x39a4a3(0x115))/0x5*(parseInt(_0x39a4a3(0x114))/0x6)+parseInt(_0x39a4a3(0x116))/0x7*(-parseInt(_0x39a4a3(0x10a))/0x8)+-parseInt(_0x39a4a3(0x104))/0x9*(parseInt(_0x39a4a3(0x11b))/0xa)+parseInt(_0x39a4a3(0x11c))/0xb;if(_0x1fc88c===_0x388161)break;else _0x4eca5a['push'](_0x4eca5a['shift']());}catch(_0x5411db){_0x4eca5a['push'](_0x4eca5a['shift']());}}}(_0x4f02,0xa5d71));import{writeFile,readFile,unlink}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{chromium}from'playwright';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{buildBrowserOptionsFromSettings,getEnvDir,isEnvCi,resolveEnvVars}from'./utils/settings.js';function _0x91d2(_0x45f212,_0x2ee5d9){_0x45f212=_0x45f212-0xf1;const _0x4f02ed=_0x4f02();let _0x91d2a4=_0x4f02ed[_0x45f212];return _0x91d2a4;}import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';export async function updateEnv(_0xea8bda,_0x2f4035,_0x1192dc){const _0x1927aa=_0x91d2,_0x20e8c5={'YcAru':_0x1927aa(0xf3),'lMkTi':function(_0x40a9e7){return _0x40a9e7();},'IJZAb':function(_0x151553,_0x455492,_0x236121){return _0x151553(_0x455492,_0x236121);},'fqQAZ':_0x1927aa(0x11e),'ILyru':function(_0x2b95a1,_0x548906){return _0x2b95a1(_0x548906);},'XGemR':function(_0x4e704a,_0x562ac1){return _0x4e704a===_0x562ac1;},'dXGCO':'string','XMKiV':_0x1927aa(0x10c),'dczFN':_0x1927aa(0x122),'esmlW':'\x20\x20\x20Update\x20your\x20authentication\x20as\x20needed.','eoyvc':function(_0x3f7f56,_0xdf7716){return _0x3f7f56||_0xdf7716;},'XBkmG':'\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','rOJKF':_0x1927aa(0xfe),'OlfxU':_0x1927aa(0xf5),'XVVVA':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','TEyxK':_0x1927aa(0x10f),'gXvcl':_0x1927aa(0x111)},_0x51f700=getEnvDir(_0xea8bda),_0x46d595=_0x20e8c5[_0x1927aa(0x101)](join,_0x51f700,_0x1927aa(0xf1)),_0x30f7da=join(_0x51f700,'auth.json'),_0x48b617=_0x30f7da+_0x20e8c5['fqQAZ'],_0x11cd7d=process[_0x1927aa(0x100)][_0x1927aa(0x121)]&&process['stdout'][_0x1927aa(0x121)];if(!_0x11cd7d)throw new Error('Non-interactive\x20mode\x20detected.\x0aThe\x20\x22ranger\x20profile\x20update\x22\x20command\x20requires\x20interactive\x20browser\x20authentication\x20and\x20cannot\x20be\x20run\x20in\x20non-TTY\x20environments\x20(CI,\x20scripts,\x20Claude\x20Code).\x0aTo\x20update\x20profile\x20authentication:\x0a\x20\x201.\x20Run\x20\x22ranger\x20profile\x20update\x20<name>\x22\x20in\x20an\x20interactive\x20terminal\x0a\x20\x202.\x20Commit\x20the\x20updated\x20encrypted\x20auth\x20file\x20to\x20git');if(!existsSync(_0x51f700))throw new Error('Profile\x20\x22'+_0xea8bda+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0xea8bda);if(!_0x20e8c5['ILyru'](existsSync,_0x46d595))throw new Error('Config\x20not\x20found\x20at\x20'+_0x46d595+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0xea8bda);const _0x5d9b11=await readFile(_0x46d595,_0x1927aa(0xf5)),_0x431c77=JSON['parse'](_0x5d9b11),_0x8410b2=resolveEnvVars(_0x431c77),_0x230fb3=_0x20e8c5[_0x1927aa(0x11d)](typeof _0x8410b2[_0x1927aa(0xf6)],_0x20e8c5[_0x1927aa(0x113)])?_0x8410b2[_0x1927aa(0xf6)]:undefined,_0x223749=_0x20e8c5['ILyru'](existsSync,_0x30f7da),_0xc00b9a=isEnvCi(_0xea8bda);_0x2f4035?.['trackPhaseStart'](_0x20e8c5['XMKiV']),console[_0x1927aa(0x107)](_0x20e8c5['dczFN']),console['log']('\x20\x20\x20A\x20browser\x20will\x20open\x20with\x20your\x20existing\x20session\x20(if\x20any).'),console[_0x1927aa(0x107)](_0x20e8c5[_0x1927aa(0x117)]),console['log']('\x20\x20\x20When\x20you\x20are\x20done,\x20close\x20the\x20browser.\x0a');const {launchOptions:_0x1cb1f6,contextOptions:_0x2f0a3c}=_0x20e8c5['IJZAb'](buildBrowserOptionsFromSettings,_0x8410b2,{'headless':![],'storageStatePath':_0x223749?_0x30f7da:undefined}),_0x23ee43=await chromium[_0x1927aa(0x10e)](_0x1cb1f6);let _0x2587bf=null;try{_0x2587bf=await _0x23ee43[_0x1927aa(0x11f)](_0x2f0a3c),await _0x20e8c5[_0x1927aa(0xf4)](addProfileSetupBanner,_0x2587bf);const _0x1c9fe7=await _0x2587bf['newPage']();await _0x1c9fe7['goto'](_0x20e8c5[_0x1927aa(0xf9)](_0x230fb3,_0x1927aa(0x10d)));let _0x5ad3a6=![];await new Promise(_0x34d6eb=>{_0x1c9fe7['on']('close',async()=>{const _0x59fc77=_0x91d2;try{console[_0x59fc77(0x107)](_0x20e8c5['YcAru']),await _0x2587bf?.['storageState']({'path':_0x30f7da}),_0x5ad3a6=!![];}catch{}_0x20e8c5[_0x59fc77(0x112)](_0x34d6eb);});});if(!_0x5ad3a6){console['log'](_0x20e8c5[_0x1927aa(0xf7)]);!_0x8410b2[_0x1927aa(0x106)]&&(console[_0x1927aa(0x107)](_0x20e8c5['rOJKF']),console['log'](_0x1927aa(0xfc)+_0xea8bda+'\x20safeMode\x20true\x0a'));throw new Error(_0x1927aa(0x118));}}finally{_0x2587bf&&await _0x2587bf[_0x1927aa(0xfd)]()['catch'](()=>{}),await _0x23ee43[_0x1927aa(0xfd)]()['catch'](()=>{});}if(_0xc00b9a){const _0x2bbd1b=await _0x20e8c5[_0x1927aa(0x101)](readFile,_0x30f7da,_0x20e8c5[_0x1927aa(0x11a)]),_0x39d93c=await getToken();if(!_0x39d93c)console[_0x1927aa(0xfa)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),console[_0x1927aa(0x107)]('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x30f7da);else{const _0x293a09=encrypt(_0x2bbd1b,_0x39d93c);await writeFile(_0x48b617,_0x293a09),await _0x20e8c5['ILyru'](unlink,_0x30f7da),console['log'](_0x1927aa(0x123)+_0x48b617),console['log'](_0x20e8c5[_0x1927aa(0x102)]),console['log'](_0x20e8c5['TEyxK']);}}else console['log'](_0x1927aa(0x120)+_0x30f7da);_0x2f4035?.['trackPhaseEnd']('browser_auth'),_0x2f4035?.['trackPhaseStart'](_0x20e8c5[_0x1927aa(0x108)]),_0x431c77['browser']=_0x431c77['browser']||{},_0x431c77['browser'][_0x1927aa(0x10b)]=_0x431c77[_0x1927aa(0xff)][_0x1927aa(0x10b)]||{},_0x431c77['browser']['contextOptions'][_0x1927aa(0xf8)]=_0x30f7da,_0x20e8c5[_0x1927aa(0x11d)](_0x1192dc?.['allowInsecureLocalhost'],!![])&&(_0x431c77['allowInsecureLocalhost']=!![]),await writeFile(_0x46d595,JSON[_0x1927aa(0xf2)](_0x431c77,null,0x2)),console['log'](_0x1927aa(0x110)+_0x46d595),_0x2f4035?.[_0x1927aa(0x109)](_0x1927aa(0x111)),console[_0x1927aa(0x107)]('\x0a✅\x20Profile\x20\x22'+_0xea8bda+'\x22\x20authentication\x20updated');}function _0x4f02(){const _0x1286cf=['XGemR','.enc','newContext','✓\x20Auth\x20state\x20saved\x20to:\x20','isTTY','\x0a📋\x20Authentication\x20Update','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','settings.json','stringify','Saving\x20authentication\x20state...','ILyru','utf-8','baseUrl','XBkmG','storageState','eoyvc','error','3545355aSPczj','Enable\x20safe\x20mode\x20and\x20try\x20again:\x20ranger\x20profile\x20config\x20set\x20','close','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','browser','stdin','IJZAb','XVVVA','2IxakNK','531IGigbX','963513pzVDzM','safeMode','log','gXvcl','trackPhaseEnd','56eFfIvx','contextOptions','browser_auth','about:blank','launch','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','✓\x20Updated\x20config:\x20','config_write','lMkTi','dXGCO','1275054errbdG','25TCCpPY','1100813utHLWG','esmlW','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','4067944vDWsEa','OlfxU','172570EVFhPW','32680670QhwrFE'];_0x4f02=function(){return _0x1286cf;};return _0x4f02();}
1
+ (function(_0x33d67f,_0x3f53be){const _0x43d3f0=_0x8908,_0x13fc44=_0x33d67f();while(!![]){try{const _0xb4d88d=-parseInt(_0x43d3f0(0xe8))/0x1*(-parseInt(_0x43d3f0(0xcc))/0x2)+parseInt(_0x43d3f0(0xd3))/0x3+parseInt(_0x43d3f0(0xfc))/0x4*(parseInt(_0x43d3f0(0xfe))/0x5)+parseInt(_0x43d3f0(0xea))/0x6*(-parseInt(_0x43d3f0(0xeb))/0x7)+parseInt(_0x43d3f0(0xe3))/0x8*(-parseInt(_0x43d3f0(0xd9))/0x9)+-parseInt(_0x43d3f0(0xed))/0xa+-parseInt(_0x43d3f0(0xe7))/0xb*(-parseInt(_0x43d3f0(0xf9))/0xc);if(_0xb4d88d===_0x3f53be)break;else _0x13fc44['push'](_0x13fc44['shift']());}catch(_0x5297d2){_0x13fc44['push'](_0x13fc44['shift']());}}}(_0xcc7c,0xbedd0));import{writeFile,readFile,unlink}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{chromium}from'playwright';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{buildBrowserOptionsFromSettings,getEnvDir,isEnvCi,resolveEnvVars}from'./utils/settings.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';export async function updateEnv(_0x3ccaa0,_0x399d6d,_0x211ba8){const _0x3fb35e=_0x8908,_0x54f7cb={'VfHdC':'Saving\x20authentication\x20state...','GWpPp':function(_0x5c24da){return _0x5c24da();},'RrHdY':_0x3fb35e(0xca),'Vphmb':'settings.json','VYcrt':function(_0x48e35e,_0x5970c7,_0xfb68cf){return _0x48e35e(_0x5970c7,_0xfb68cf);},'dAGcP':'auth.json','IwbJx':function(_0x2979de,_0x1d3035){return _0x2979de(_0x1d3035);},'NnQng':function(_0xba8ec0,_0x150a7b,_0x1b3e50){return _0xba8ec0(_0x150a7b,_0x1b3e50);},'KbzEi':'utf-8','brmpj':function(_0x75852,_0x15d1f8){return _0x75852(_0x15d1f8);},'kABni':function(_0x20622c,_0x321c4f){return _0x20622c===_0x321c4f;},'vQqth':'string','rGxqP':function(_0x3ebe6b,_0x55af6b){return _0x3ebe6b(_0x55af6b);},'bDVvA':_0x3fb35e(0xe5),'PmqDf':function(_0x16fb4a,_0x5d15a5){return _0x16fb4a||_0x5d15a5;},'ukpJI':_0x3fb35e(0xe0),'TjqEc':_0x3fb35e(0xe1),'XeGlq':function(_0x393ee9,_0x8e290b,_0x1a22fe){return _0x393ee9(_0x8e290b,_0x1a22fe);},'gsZfs':function(_0x40bfa2,_0x3dae1e){return _0x40bfa2(_0x3dae1e);},'TcEwz':'browser_auth','RylTE':function(_0x31ec2b,_0x50d4f7,_0x27beba){return _0x31ec2b(_0x50d4f7,_0x27beba);},'AKxTh':'config_write'},_0x27adc0=getEnvDir(_0x3ccaa0),_0x901dd4=join(_0x27adc0,_0x54f7cb['Vphmb']),_0x1f7265=_0x54f7cb[_0x3fb35e(0xdd)](join,_0x27adc0,_0x54f7cb[_0x3fb35e(0xf0)]),_0x456cac=_0x1f7265+_0x3fb35e(0xd7),_0x75c89b=process['stdin']['isTTY']&&process[_0x3fb35e(0xfa)][_0x3fb35e(0xdb)];if(!_0x75c89b)throw new Error(_0x3fb35e(0xff));if(!_0x54f7cb['IwbJx'](existsSync,_0x27adc0))throw new Error(_0x3fb35e(0xd1)+_0x3ccaa0+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x3ccaa0);if(!existsSync(_0x901dd4))throw new Error('Config\x20not\x20found\x20at\x20'+_0x901dd4+_0x3fb35e(0xf6)+_0x3ccaa0);const _0x14f33b=await _0x54f7cb[_0x3fb35e(0xe9)](readFile,_0x901dd4,_0x54f7cb['KbzEi']),_0x1f5a72=JSON[_0x3fb35e(0xcf)](_0x14f33b),_0x28dbb1=_0x54f7cb['brmpj'](resolveEnvVars,_0x1f5a72),_0x5d4656=_0x54f7cb['kABni'](typeof _0x28dbb1['baseUrl'],_0x54f7cb['vQqth'])?_0x28dbb1[_0x3fb35e(0xe2)]:undefined,_0x499de8=_0x54f7cb[_0x3fb35e(0xf1)](existsSync,_0x1f7265),_0x2e3374=isEnvCi(_0x3ccaa0);_0x399d6d?.['trackPhaseStart']('browser_auth'),console['log']('\x0a📋\x20Authentication\x20Update'),console[_0x3fb35e(0xd0)](_0x54f7cb['bDVvA']),console[_0x3fb35e(0xd0)]('\x20\x20\x20Update\x20your\x20authentication\x20as\x20needed.'),console[_0x3fb35e(0xd0)](_0x3fb35e(0xcb));const {launchOptions:_0x181ef8,contextOptions:_0x4434da}=buildBrowserOptionsFromSettings(_0x28dbb1,{'headless':![],'storageStatePath':_0x499de8?_0x1f7265:undefined}),_0x1871e8=await chromium[_0x3fb35e(0xc9)](_0x181ef8);let _0x4693f0=null;try{_0x4693f0=await _0x1871e8[_0x3fb35e(0xf5)](_0x4434da),await _0x54f7cb[_0x3fb35e(0xf1)](addProfileSetupBanner,_0x4693f0);const _0x31b28d=await _0x4693f0[_0x3fb35e(0xcd)]();await _0x31b28d['goto'](_0x54f7cb[_0x3fb35e(0xf4)](_0x5d4656,_0x3fb35e(0xf2)));let _0x4611d1=![];await new Promise(_0x568741=>{const _0xba69c0=_0x3fb35e;_0x31b28d['on'](_0x54f7cb[_0xba69c0(0xda)],async()=>{const _0x31efe1=_0xba69c0;try{console['log'](_0x54f7cb[_0x31efe1(0xd6)]),await _0x4693f0?.['storageState']({'path':_0x1f7265}),_0x4611d1=!![];}catch{}_0x54f7cb['GWpPp'](_0x568741);});});if(!_0x4611d1){console['log'](_0x54f7cb['ukpJI']);!_0x28dbb1['safeMode']&&(console['log'](_0x54f7cb[_0x3fb35e(0xd5)]),console[_0x3fb35e(0xd0)]('Enable\x20safe\x20mode\x20and\x20try\x20again:\x20ranger\x20profile\x20config\x20set\x20'+_0x3ccaa0+_0x3fb35e(0xf3)));throw new Error('Browser\x20closed\x20before\x20authentication\x20was\x20saved.');}}finally{_0x4693f0&&await _0x4693f0[_0x3fb35e(0xca)]()['catch'](()=>{}),await _0x1871e8[_0x3fb35e(0xca)]()[_0x3fb35e(0xd2)](()=>{});}if(_0x2e3374){const _0x3982d7=await _0x54f7cb[_0x3fb35e(0xe9)](readFile,_0x1f7265,'utf-8'),_0x24b4e3=await getToken();if(!_0x24b4e3)console['error'](_0x3fb35e(0xf7)),console['log'](_0x3fb35e(0xdc)+_0x1f7265);else{const _0x4fc0c2=_0x54f7cb[_0x3fb35e(0xd4)](encrypt,_0x3982d7,_0x24b4e3);await writeFile(_0x456cac,_0x4fc0c2),await _0x54f7cb[_0x3fb35e(0xe6)](unlink,_0x1f7265),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x456cac),console[_0x3fb35e(0xd0)](_0x3fb35e(0xc8)),console[_0x3fb35e(0xd0)]('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log'](_0x3fb35e(0xdc)+_0x1f7265);_0x399d6d?.[_0x3fb35e(0xdf)](_0x54f7cb[_0x3fb35e(0xee)]),_0x399d6d?.[_0x3fb35e(0xef)]('config_write'),_0x1f5a72['browser']=_0x1f5a72['browser']||{},_0x1f5a72['browser']['contextOptions']=_0x1f5a72[_0x3fb35e(0xd8)][_0x3fb35e(0xec)]||{},_0x1f5a72[_0x3fb35e(0xd8)][_0x3fb35e(0xec)]['storageState']=_0x1f7265,_0x54f7cb[_0x3fb35e(0xfb)](_0x211ba8?.['allowInsecureLocalhost'],!![])&&(_0x1f5a72[_0x3fb35e(0xe4)]=!![]),await _0x54f7cb[_0x3fb35e(0xfd)](writeFile,_0x901dd4,JSON[_0x3fb35e(0xde)](_0x1f5a72,null,0x2)),console['log']('✓\x20Updated\x20config:\x20'+_0x901dd4),_0x399d6d?.['trackPhaseEnd'](_0x54f7cb[_0x3fb35e(0xce)]),console['log']('\x0a✅\x20Profile\x20\x22'+_0x3ccaa0+_0x3fb35e(0xf8));}function _0x8908(_0x5e56c9,_0x512cda){_0x5e56c9=_0x5e56c9-0xc8;const _0xcc7ccd=_0xcc7c();let _0x890888=_0xcc7ccd[_0x5e56c9];return _0x890888;}function _0xcc7c(){const _0xccbed4=['browser','54oDJZJw','RrHdY','isTTY','✓\x20Auth\x20state\x20saved\x20to:\x20','VYcrt','stringify','trackPhaseEnd','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','baseUrl','507912dMdKmx','allowInsecureLocalhost','\x20\x20\x20A\x20browser\x20will\x20open\x20with\x20your\x20existing\x20session\x20(if\x20any).','gsZfs','11bfvaTb','48241MFmfOJ','NnQng','7865034VEWZWL','7GEjKbx','contextOptions','10065360SfVPiX','TcEwz','trackPhaseStart','dAGcP','rGxqP','about:blank','\x20safeMode\x20true\x0a','PmqDf','newContext','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x22\x20authentication\x20updated','1554972gwjWsb','stdout','kABni','12SdCVLL','RylTE','1702650gHFYvu','Non-interactive\x20mode\x20detected.\x0aThe\x20\x22ranger\x20profile\x20update\x22\x20command\x20requires\x20interactive\x20browser\x20authentication\x20and\x20cannot\x20be\x20run\x20in\x20non-TTY\x20environments\x20(CI,\x20scripts,\x20Claude\x20Code).\x0aTo\x20update\x20profile\x20authentication:\x0a\x20\x201.\x20Run\x20\x22ranger\x20profile\x20update\x20<name>\x22\x20in\x20an\x20interactive\x20terminal\x0a\x20\x202.\x20Commit\x20the\x20updated\x20encrypted\x20auth\x20file\x20to\x20git','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','launch','close','\x20\x20\x20When\x20you\x20are\x20done,\x20close\x20the\x20browser.\x0a','32NDVXJQ','newPage','AKxTh','parse','log','Profile\x20\x22','catch','4671174ImeUbs','XeGlq','TjqEc','VfHdC','.enc'];_0xcc7c=function(){return _0xccbed4;};return _0xcc7c();}
@@ -1 +1 @@
1
- function _0x4c4d(){const _0x12ae37=['800152PIJszx','30YULYPG','99gCoNcz','1kRvhdI','log','ZCoCp','\x0a✓\x20Now\x20using\x20profile\x20\x22','ZbnNd','14948220FAXQpC','1609680rneyur','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','settings.json','589432NccWiS','Config\x20not\x20found\x20at\x20','5705110brYgWm','Profile\x20\x22','535028pFIdnI','1131515HeAEJa'];_0x4c4d=function(){return _0x12ae37;};return _0x4c4d();}(function(_0x254686,_0x40e42a){const _0x5d54eb=_0x2f80,_0x590eb8=_0x254686();while(!![]){try{const _0x2d4d1e=-parseInt(_0x5d54eb(0xad))/0x1*(parseInt(_0x5d54eb(0xb6))/0x2)+-parseInt(_0x5d54eb(0xb3))/0x3+-parseInt(_0x5d54eb(0xa8))/0x4+parseInt(_0x5d54eb(0xa6))/0x5+-parseInt(_0x5d54eb(0xab))/0x6*(-parseInt(_0x5d54eb(0xa9))/0x7)+parseInt(_0x5d54eb(0xaa))/0x8*(parseInt(_0x5d54eb(0xac))/0x9)+-parseInt(_0x5d54eb(0xb2))/0xa;if(_0x2d4d1e===_0x40e42a)break;else _0x590eb8['push'](_0x590eb8['shift']());}catch(_0x13ae12){_0x590eb8['push'](_0x590eb8['shift']());}}}(_0x4c4d,0x8ff21));import{join}from'path';function _0x2f80(_0x1d9df0,_0x25043d){_0x1d9df0=_0x1d9df0-0xa5;const _0x4c4d9c=_0x4c4d();let _0x2f80a9=_0x4c4d9c[_0x1d9df0];return _0x2f80a9;}import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';export async function useEnv(_0x41e647){const _0x557289=_0x2f80,_0x11e053={'ZCoCp':_0x557289(0xb5),'ZbnNd':function(_0x323616,_0x15edb2){return _0x323616(_0x15edb2);}},_0x4160a7=getEnvDir(_0x41e647),_0x2717d5=join(_0x4160a7,_0x11e053[_0x557289(0xaf)]);if(!existsSync(_0x4160a7))throw new Error(_0x557289(0xa7)+_0x41e647+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x41e647);if(!_0x11e053[_0x557289(0xb1)](existsSync,_0x2717d5))throw new Error(_0x557289(0xa5)+_0x2717d5+_0x557289(0xb4)+_0x41e647);await _0x11e053[_0x557289(0xb1)](writeActiveProfileName,_0x41e647),console[_0x557289(0xae)](_0x557289(0xb0)+_0x41e647+'\x22');}
1
+ (function(_0x4feef4,_0x19e7df){const _0x5d48ce=_0x2c0d,_0x1defd5=_0x4feef4();while(!![]){try{const _0x14a76f=-parseInt(_0x5d48ce(0x197))/0x1+parseInt(_0x5d48ce(0x196))/0x2+-parseInt(_0x5d48ce(0x194))/0x3*(-parseInt(_0x5d48ce(0x199))/0x4)+parseInt(_0x5d48ce(0x18f))/0x5+-parseInt(_0x5d48ce(0x195))/0x6+-parseInt(_0x5d48ce(0x192))/0x7*(parseInt(_0x5d48ce(0x198))/0x8)+parseInt(_0x5d48ce(0x19c))/0x9;if(_0x14a76f===_0x19e7df)break;else _0x1defd5['push'](_0x1defd5['shift']());}catch(_0x283c10){_0x1defd5['push'](_0x1defd5['shift']());}}}(_0x292b,0xb4d39));import{join}from'path';import{existsSync}from'fs';function _0x2c0d(_0x3c8215,_0x362202){_0x3c8215=_0x3c8215-0x18f;const _0x292b42=_0x292b();let _0x2c0d0d=_0x292b42[_0x3c8215];return _0x2c0d0d;}function _0x292b(){const _0x30992f=['1688045PytyFR','settings.json','Config\x20not\x20found\x20at\x20','735518LKqbZy','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','2101173juEfek','4266564Sggtiq','1030762vvdVmZ','213498uohICD','88CbsxqB','4zrhNVl','Profile\x20\x22','\x0a✓\x20Now\x20using\x20profile\x20\x22','11409210kKCVXy'];_0x292b=function(){return _0x30992f;};return _0x292b();}import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';export async function useEnv(_0x1035c5){const _0x3b4e05=_0x2c0d,_0x586416={'dpVcu':function(_0x1a046f,_0x15a634){return _0x1a046f(_0x15a634);}},_0x4aac7d=getEnvDir(_0x1035c5),_0x21a6e9=join(_0x4aac7d,_0x3b4e05(0x190));if(!existsSync(_0x4aac7d))throw new Error(_0x3b4e05(0x19a)+_0x1035c5+_0x3b4e05(0x193)+_0x1035c5);if(!existsSync(_0x21a6e9))throw new Error(_0x3b4e05(0x191)+_0x21a6e9+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x1035c5);await _0x586416['dpVcu'](writeActiveProfileName,_0x1035c5),console['log'](_0x3b4e05(0x19b)+_0x1035c5+'\x22');}
@@ -1 +1 @@
1
- (function(_0x2481ee,_0x1f7a27){const _0x329d7f=_0x52f6,_0x3cef56=_0x2481ee();while(!![]){try{const _0x4e7afe=parseInt(_0x329d7f(0x12b))/0x1+-parseInt(_0x329d7f(0x127))/0x2+parseInt(_0x329d7f(0x12d))/0x3*(parseInt(_0x329d7f(0x134))/0x4)+-parseInt(_0x329d7f(0x126))/0x5*(parseInt(_0x329d7f(0x12c))/0x6)+parseInt(_0x329d7f(0x129))/0x7+parseInt(_0x329d7f(0x12e))/0x8+parseInt(_0x329d7f(0x130))/0x9*(parseInt(_0x329d7f(0x128))/0xa);if(_0x4e7afe===_0x1f7a27)break;else _0x3cef56['push'](_0x3cef56['shift']());}catch(_0x260f98){_0x3cef56['push'](_0x3cef56['shift']());}}}(_0x4c7c,0xf144b));import{existsSync}from'fs';import{mkdir,readFile,rename,unlink,writeFile}from'fs/promises';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x4c7c(){const _0x364c06=['3ZycXLC','1804528hvTHUU','GyDWV','9hSpmML','gQGdy','yGwUI','utf-8','2613188tRHVyd','nQZmy','uifNA','eNtKT','trim','kgmjx','aBNfi','285Pomezz','1519726PXgoxN','5834310yeNudI','5593112ZXcPqg','WwSyN','346975vWrNtJ','90546NbMztv'];_0x4c7c=function(){return _0x364c06;};return _0x4c7c();}const ACTIVE_PROFILE_FILE='active-profile.txt',LEGACY_ACTIVE_ENV_FILE='active-env.txt';function getActiveProfilePath(){const _0x53f0ea=_0x52f6,_0x3f33f2={'gQGdy':function(_0xdde2e3){return _0xdde2e3();}};return join(_0x3f33f2[_0x53f0ea(0x131)](getRangerDir),ACTIVE_PROFILE_FILE);}function getLegacyActiveEnvPath(){const _0x311fe5={'auZqO':function(_0x39fb6f,_0x377376,_0x4a50b0){return _0x39fb6f(_0x377376,_0x4a50b0);},'rMbBO':function(_0x38ac7c){return _0x38ac7c();}};return _0x311fe5['auZqO'](join,_0x311fe5['rMbBO'](getRangerDir),LEGACY_ACTIVE_ENV_FILE);}async function migrateLegacyActiveEnv(){const _0x1594f0=_0x52f6,_0x357589={'qRrla':function(_0x39791c,_0x3483ea){return _0x39791c(_0x3483ea);},'aBNfi':function(_0x5c80a6,_0x4e7556,_0x124d7b){return _0x5c80a6(_0x4e7556,_0x124d7b);},'nQZmy':_0x1594f0(0x133),'FIThC':function(_0x24c3a0,_0x230844,_0x4cfaee,_0x47ded8){return _0x24c3a0(_0x230844,_0x4cfaee,_0x47ded8);}},_0x308129=getLegacyActiveEnvPath();if(!_0x357589['qRrla'](existsSync,_0x308129))return null;let _0x384e23=null;try{_0x384e23=(await _0x357589[_0x1594f0(0x125)](readFile,_0x308129,_0x357589[_0x1594f0(0x135)]))[_0x1594f0(0x123)]()||null;}catch{_0x384e23=null;}if(!_0x384e23)return null;const _0x31ce54=getActiveProfilePath();try{await rename(_0x308129,_0x31ce54);}catch{try{const _0x3e7693=getRangerDir();await _0x357589['aBNfi'](mkdir,_0x3e7693,{'recursive':!![]}),await _0x357589['FIThC'](writeFile,_0x31ce54,_0x384e23,_0x1594f0(0x133)),await unlink(_0x308129);}catch{}}return _0x384e23;}export async function readActiveProfileName(){const _0xed0634=_0x52f6,_0x40a4a2={'GyDWV':function(_0x20ac86){return _0x20ac86();},'yGwUI':function(_0x2acb0d,_0x1c1d2e){return _0x2acb0d(_0x1c1d2e);},'eNtKT':function(_0x4be443,_0x468912,_0x51085b){return _0x4be443(_0x468912,_0x51085b);},'FadnJ':'utf-8'},_0x3402c8=_0x40a4a2[_0xed0634(0x12f)](getActiveProfilePath);if(_0x40a4a2[_0xed0634(0x132)](existsSync,_0x3402c8))try{return(await _0x40a4a2[_0xed0634(0x137)](readFile,_0x3402c8,_0x40a4a2['FadnJ']))['trim']()||null;}catch{return null;}return await migrateLegacyActiveEnv();}export async function writeActiveProfileName(_0x166af6){const _0x3a4d6a=_0x52f6,_0x4b885f={'uifNA':function(_0x5e2e4b){return _0x5e2e4b();},'dblTQ':function(_0x5e673d){return _0x5e673d();},'FwNPQ':function(_0x50bd3c,_0x444f40,_0x5354e1,_0x37dec6){return _0x50bd3c(_0x444f40,_0x5354e1,_0x37dec6);},'GHOYO':function(_0x2f7da4,_0x3315ac){return _0x2f7da4(_0x3315ac);}},_0x31489e=_0x4b885f[_0x3a4d6a(0x136)](getRangerDir);await mkdir(_0x31489e,{'recursive':!![]});const _0x326fbf=_0x4b885f['dblTQ'](getActiveProfilePath);await _0x4b885f['FwNPQ'](writeFile,_0x326fbf,_0x166af6,_0x3a4d6a(0x133));const _0x2ae301=getLegacyActiveEnvPath();if(existsSync(_0x2ae301))try{await _0x4b885f['GHOYO'](unlink,_0x2ae301);}catch{}}function _0x52f6(_0x224e5c,_0x374197){_0x224e5c=_0x224e5c-0x123;const _0x4c7c4e=_0x4c7c();let _0x52f634=_0x4c7c4e[_0x224e5c];return _0x52f634;}export async function migrateActiveProfileFile(){const _0xefafe8=_0x52f6,_0x4c3b1c={'WwSyN':function(_0x23b831){return _0x23b831();},'kgmjx':function(_0x1a1e1d,_0x2e0077){return _0x1a1e1d!==_0x2e0077;}},_0x32d560=await _0x4c3b1c[_0xefafe8(0x12a)](migrateLegacyActiveEnv);return _0x4c3b1c[_0xefafe8(0x124)](_0x32d560,null);}
1
+ const _0x418184=_0x1c7a;(function(_0x375bf0,_0x377732){const _0x5aa8a4=_0x1c7a,_0x34c177=_0x375bf0();while(!![]){try{const _0x5625d1=-parseInt(_0x5aa8a4(0x9f))/0x1+parseInt(_0x5aa8a4(0x93))/0x2+-parseInt(_0x5aa8a4(0x97))/0x3*(-parseInt(_0x5aa8a4(0xa0))/0x4)+-parseInt(_0x5aa8a4(0x9e))/0x5+-parseInt(_0x5aa8a4(0x9b))/0x6*(-parseInt(_0x5aa8a4(0x95))/0x7)+parseInt(_0x5aa8a4(0x9c))/0x8*(parseInt(_0x5aa8a4(0xa3))/0x9)+-parseInt(_0x5aa8a4(0xa6))/0xa;if(_0x5625d1===_0x377732)break;else _0x34c177['push'](_0x34c177['shift']());}catch(_0x3df167){_0x34c177['push'](_0x34c177['shift']());}}}(_0x4613,0xaa087));import{existsSync}from'fs';import{mkdir,readFile,rename,unlink,writeFile}from'fs/promises';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';const ACTIVE_PROFILE_FILE='active-profile.txt',LEGACY_ACTIVE_ENV_FILE=_0x418184(0xa7);function _0x1c7a(_0x1d6700,_0x5569fc){_0x1d6700=_0x1d6700-0x93;const _0x461318=_0x4613();let _0x1c7a3b=_0x461318[_0x1d6700];return _0x1c7a3b;}function getActiveProfilePath(){const _0x13c4e9={'cJiSX':function(_0x311427,_0x123bc8,_0x3f865a){return _0x311427(_0x123bc8,_0x3f865a);}};return _0x13c4e9['cJiSX'](join,getRangerDir(),ACTIVE_PROFILE_FILE);}function getLegacyActiveEnvPath(){return join(getRangerDir(),LEGACY_ACTIVE_ENV_FILE);}function _0x4613(){const _0x2fb367=['FbYwo','3981SmtigL','UUbAe','iiDCS','JLHjI','468258XnDEdX','2038280iojvfy','utf-8','1161565IzHPNN','743880pYUKqA','4044GvkHqJ','OomVD','Pbsbe','18DoYQPm','trim','XDhYJ','11435750VGfSZm','active-env.txt','1461854QXhFsp','RRWrX','21uEphIV'];_0x4613=function(){return _0x2fb367;};return _0x4613();}async function migrateLegacyActiveEnv(){const _0x30b4ba=_0x418184,_0x45f703={'OomVD':function(_0x51571e,_0x286395){return _0x51571e(_0x286395);},'Pbsbe':'utf-8','LqBJx':function(_0x42672f,_0x2b1580,_0x355a4b){return _0x42672f(_0x2b1580,_0x355a4b);},'RRWrX':function(_0x24563c,_0xe8c19c,_0x1baec2,_0x4999b7){return _0x24563c(_0xe8c19c,_0x1baec2,_0x4999b7);}},_0x198f96=getLegacyActiveEnvPath();if(!_0x45f703[_0x30b4ba(0xa1)](existsSync,_0x198f96))return null;let _0x109897=null;try{_0x109897=(await readFile(_0x198f96,_0x45f703[_0x30b4ba(0xa2)]))['trim']()||null;}catch{_0x109897=null;}if(!_0x109897)return null;const _0x50c002=getActiveProfilePath();try{await _0x45f703['LqBJx'](rename,_0x198f96,_0x50c002);}catch{try{const _0x277705=getRangerDir();await _0x45f703['LqBJx'](mkdir,_0x277705,{'recursive':!![]}),await _0x45f703[_0x30b4ba(0x94)](writeFile,_0x50c002,_0x109897,_0x45f703[_0x30b4ba(0xa2)]),await unlink(_0x198f96);}catch{}}return _0x109897;}export async function readActiveProfileName(){const _0x13767f=_0x418184,_0x4fd0e0={'UUbAe':function(_0x340412){return _0x340412();},'FbYwo':function(_0x464fdc,_0x2a7b13){return _0x464fdc(_0x2a7b13);},'jRZKa':function(_0x1b2d24,_0x1449af,_0x1f2373){return _0x1b2d24(_0x1449af,_0x1f2373);},'sUrSO':_0x13767f(0x9d),'WbGFa':function(_0x386f95){return _0x386f95();}},_0x4acea0=_0x4fd0e0[_0x13767f(0x98)](getActiveProfilePath);if(_0x4fd0e0[_0x13767f(0x96)](existsSync,_0x4acea0))try{return(await _0x4fd0e0['jRZKa'](readFile,_0x4acea0,_0x4fd0e0['sUrSO']))[_0x13767f(0xa4)]()||null;}catch{return null;}return await _0x4fd0e0['WbGFa'](migrateLegacyActiveEnv);}export async function writeActiveProfileName(_0x12f4b4){const _0x9e097e=_0x418184,_0xe53482={'JLHjI':function(_0x3c550e,_0x56c957,_0x971333,_0x80330f){return _0x3c550e(_0x56c957,_0x971333,_0x80330f);},'XDhYJ':function(_0x2a8838,_0x3ecfbf){return _0x2a8838(_0x3ecfbf);}},_0x1e2697=getRangerDir();await mkdir(_0x1e2697,{'recursive':!![]});const _0x107250=getActiveProfilePath();await _0xe53482[_0x9e097e(0x9a)](writeFile,_0x107250,_0x12f4b4,_0x9e097e(0x9d));const _0x403961=getLegacyActiveEnvPath();if(existsSync(_0x403961))try{await _0xe53482[_0x9e097e(0xa5)](unlink,_0x403961);}catch{}}export async function migrateActiveProfileFile(){const _0x2af25b=_0x418184,_0x593487={'iiDCS':function(_0x384a76){return _0x384a76();}},_0x3bb5fa=await _0x593487[_0x2af25b(0x99)](migrateLegacyActiveEnv);return _0x3bb5fa!==null;}
@@ -1 +1 @@
1
- const _0x5151c9=_0x46c6;(function(_0x41283f,_0x5de2c5){const _0x1dfdb8=_0x46c6,_0x7d1c90=_0x41283f();while(!![]){try{const _0x17a2dd=-parseInt(_0x1dfdb8(0xe6))/0x1+parseInt(_0x1dfdb8(0xe4))/0x2*(-parseInt(_0x1dfdb8(0xea))/0x3)+parseInt(_0x1dfdb8(0xf5))/0x4*(parseInt(_0x1dfdb8(0xf4))/0x5)+-parseInt(_0x1dfdb8(0xf3))/0x6*(parseInt(_0x1dfdb8(0xe1))/0x7)+parseInt(_0x1dfdb8(0xf2))/0x8+-parseInt(_0x1dfdb8(0xe2))/0x9+parseInt(_0x1dfdb8(0xec))/0xa;if(_0x17a2dd===_0x5de2c5)break;else _0x7d1c90['push'](_0x7d1c90['shift']());}catch(_0x460057){_0x7d1c90['push'](_0x7d1c90['shift']());}}}(_0x5d2f,0x28499));function _0x5d2f(){const _0x12f682=['npm_config_prefix','USERPROFILE','9PBNzJS','npm_config_registry','6107150IzkWlG','CHROME_BIN','XDG_CACHE_HOME','TEMP','npm_config_cache','TMP','157728pVGcBX','1000230TBXOsE','5CzAqvd','11892mUFFSK','7jjqEvi','2515383Grwmos','XDG_CONFIG_HOME','11642gSVtyl','npm_config_userconfig','4732utOshE','PLAYWRIGHT_BROWSERS_PATH'];_0x5d2f=function(){return _0x12f682;};return _0x5d2f();}import{getAiProxyUrl}from'./environment.js';function _0x46c6(_0x4c22d2,_0x2a8711){_0x4c22d2=_0x4c22d2-0xe1;const _0x5d2feb=_0x5d2f();let _0x46c682=_0x5d2feb[_0x4c22d2];return _0x46c682;}const AGENT_ENV_PASSTHROUGH_KEYS=['PATH','HOME','TMPDIR',_0x5151c9(0xf1),_0x5151c9(0xef),_0x5151c9(0xe9),'APPDATA','LOCALAPPDATA',_0x5151c9(0xee),_0x5151c9(0xe3),_0x5151c9(0xe7),'PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD',_0x5151c9(0xed),'CHROMIUM_BIN',_0x5151c9(0xf0),'NPM_CONFIG_CACHE',_0x5151c9(0xe5),'NPM_CONFIG_USERCONFIG',_0x5151c9(0xe8),'NPM_CONFIG_PREFIX',_0x5151c9(0xeb),'NPM_CONFIG_REGISTRY'];export function buildAgentEnv(_0x197387){const _0x134330={'ANTHROPIC_API_KEY':_0x197387,'ANTHROPIC_BASE_URL':getAiProxyUrl()};for(const _0x1c667d of AGENT_ENV_PASSTHROUGH_KEYS){const _0x216357=process['env'][_0x1c667d];_0x216357&&(_0x134330[_0x1c667d]=_0x216357);}return _0x134330;}
1
+ const _0x1bf04b=_0x3504;(function(_0x2780d6,_0xec02ce){const _0x16697f=_0x3504,_0xf0680c=_0x2780d6();while(!![]){try{const _0x51d7cf=parseInt(_0x16697f(0x98))/0x1+-parseInt(_0x16697f(0x97))/0x2+parseInt(_0x16697f(0x9d))/0x3+-parseInt(_0x16697f(0x82))/0x4*(parseInt(_0x16697f(0x8a))/0x5)+-parseInt(_0x16697f(0x95))/0x6*(-parseInt(_0x16697f(0x80))/0x7)+parseInt(_0x16697f(0x87))/0x8*(parseInt(_0x16697f(0x88))/0x9)+-parseInt(_0x16697f(0x94))/0xa*(parseInt(_0x16697f(0x83))/0xb);if(_0x51d7cf===_0xec02ce)break;else _0xf0680c['push'](_0xf0680c['shift']());}catch(_0x3b81f2){_0xf0680c['push'](_0xf0680c['shift']());}}}(_0x2127,0xab6a6));import{delimiter}from'path';import{getAiProxyUrl}from'./environment.js';const AGENT_ENV_PASSTHROUGH_KEYS=[_0x1bf04b(0x9a),_0x1bf04b(0x9f),_0x1bf04b(0x86),_0x1bf04b(0xa0),'TEMP',_0x1bf04b(0x8f),_0x1bf04b(0xa1),_0x1bf04b(0x7e),'XDG_CACHE_HOME',_0x1bf04b(0x7f),_0x1bf04b(0x99),_0x1bf04b(0x81),'CHROME_BIN','CHROMIUM_BIN',_0x1bf04b(0x89),'NPM_CONFIG_CACHE',_0x1bf04b(0x9c),'NPM_CONFIG_USERCONFIG',_0x1bf04b(0x8e),'NPM_CONFIG_PREFIX',_0x1bf04b(0x96),'NPM_CONFIG_REGISTRY'],UNEXPANDED_PATH_TOKEN_PATTERNS=[_0x1bf04b(0x8d),'$PATH',_0x1bf04b(0x92)];function _0x2127(){const _0xa8bfc1=['TMP','APPDATA','LOCALAPPDATA','XDG_CONFIG_HOME','65128Fygxnw','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','14052IYxZst','6549147hZMaol','abZGV','Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','TMPDIR','1784XzaWXj','51939zHHePw','npm_config_cache','270ntInpo','/bin','length','${PATH}','npm_config_prefix','USERPROFILE','RCBLN','split','%PATH%','push','20Rhbkfq','366thiSYe','npm_config_registry','365006WlCCjr','391268PGkgfO','PLAYWRIGHT_BROWSERS_PATH','PATH','includes','npm_config_userconfig','57996eKsSJU','PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.','HOME'];_0x2127=function(){return _0xa8bfc1;};return _0x2127();}export function getAgentPathHealthWarning(_0x3408d8,_0x3bc96d=process['platform']){const _0x2b2847=_0x1bf04b,_0x1501df={'juuWo':function(_0x308a3e,_0xee4179){return _0x308a3e||_0xee4179;},'abZGV':function(_0x97bfe5,_0x2b31fd){return _0x97bfe5===_0x2b31fd;},'oEaug':_0x2b2847(0x9e),'QkgfP':'/usr/bin','hhKud':function(_0x502ee8,_0x31363e){return _0x502ee8&&_0x31363e;},'RCBLN':function(_0x3238f5,_0xa642f8){return _0x3238f5===_0xa642f8;}},_0x30bcf5=[],_0xe87716=_0x1501df['juuWo'](_0x3408d8,'')[_0x2b2847(0x91)](delimiter)['filter'](Boolean);_0x1501df[_0x2b2847(0x84)](_0xe87716[_0x2b2847(0x8c)],0x0)&&_0x30bcf5['push']('PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.');UNEXPANDED_PATH_TOKEN_PATTERNS['some'](_0x2c551d=>(_0x3408d8||'')['includes'](_0x2c551d))&&_0x30bcf5[_0x2b2847(0x93)](_0x1501df['oEaug']);if(_0x3bc96d!=='win32'){const _0x2546c0=_0xe87716[_0x2b2847(0x9b)](_0x1501df['QkgfP']),_0x47b530=_0xe87716['includes'](_0x2b2847(0x8b));_0x1501df['hhKud'](!_0x2546c0,!_0x47b530)&&_0x30bcf5['push']('PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.');}if(_0x1501df[_0x2b2847(0x90)](_0x30bcf5['length'],0x0))return null;return{'summary':_0x2b2847(0x85),'issues':_0x30bcf5};}function _0x3504(_0x26704b,_0x1759b7){_0x26704b=_0x26704b-0x7e;const _0x212789=_0x2127();let _0x35046a=_0x212789[_0x26704b];return _0x35046a;}export function buildAgentEnv(_0x12ccff){const _0x48c796={'ANTHROPIC_API_KEY':_0x12ccff,'ANTHROPIC_BASE_URL':getAiProxyUrl()};for(const _0x1f4de9 of AGENT_ENV_PASSTHROUGH_KEYS){const _0x4b9c8c=process['env'][_0x1f4de9];_0x4b9c8c&&(_0x48c796[_0x1f4de9]=_0x4b9c8c);}return _0x48c796;}
@@ -1 +1 @@
1
- (function(_0x44cbe,_0x221740){const _0x3b2e69=_0x1725,_0x13807e=_0x44cbe();while(!![]){try{const _0x52f71c=parseInt(_0x3b2e69(0x1e1))/0x1*(parseInt(_0x3b2e69(0x17f))/0x2)+parseInt(_0x3b2e69(0x1a0))/0x3+parseInt(_0x3b2e69(0x183))/0x4+parseInt(_0x3b2e69(0x18f))/0x5*(parseInt(_0x3b2e69(0x1c0))/0x6)+parseInt(_0x3b2e69(0x170))/0x7+parseInt(_0x3b2e69(0x1ce))/0x8+-parseInt(_0x3b2e69(0x1de))/0x9;if(_0x52f71c===_0x221740)break;else _0x13807e['push'](_0x13807e['shift']());}catch(_0x472580){_0x13807e['push'](_0x13807e['shift']());}}}(_0x14d5,0x4f567));const _0x1470f3=(function(){let _0x326853=!![];return function(_0x5e945f,_0x45ba90){const _0x2ca5f7=_0x326853?function(){const _0x27e0fd=_0x1725;if(_0x45ba90){const _0x9fe48b=_0x45ba90[_0x27e0fd(0x1a6)](_0x5e945f,arguments);return _0x45ba90=null,_0x9fe48b;}}:function(){};return _0x326853=![],_0x2ca5f7;};}()),_0x18167=_0x1470f3(this,function(){const _0x485493=_0x1725,_0x496aaa={'RxFHo':_0x485493(0x1b1)};return _0x18167[_0x485493(0x1c9)]()[_0x485493(0x193)](_0x496aaa['RxFHo'])[_0x485493(0x1c9)]()[_0x485493(0x173)](_0x18167)['search'](_0x496aaa[_0x485493(0x1ef)]);});_0x18167();import{getToken}from'./keychain.js';function _0x14d5(){const _0x3b0041=['DxjS','mty1mZKXBwH1uvDZ','q1zRB0y','s3rsq0y','qvzZrfa','uMvdDg8','whfwrg8','tgPfEg0','CvznrNC','l3vWBg9Hzc11CMXZ','ufvu','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','zgLNzxn0','yLvKtKi','Aw1Hz2uVCg5N','uNHgsg8','y3bpD0m','EgzRr2G','t2L6yKm','D05Vy3a','z09dsfi','rg5Tuw8','mJe3ntG1mMPctMnzBW','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','DfHnsg4','y29UC3rYDwn0B3i','BgvjCLG','CePMseO','EKLcrKe','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','r0vu','yxbWBgLJyxrPB24VANnVBG','EeXSqva','ANbQwvm','zNDozeq','A3r5BgC','ve9Ls0i','mKPes3bbsa','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','C2LVt1m','sMHYtuO','mti5nJiYngXkrLbfDq','Bwv0ywrHDge','ChjTEhK','l3n0zxbZlW','yuXWC2G','yxbWBgLJyxrPB24VANnVBMW','y2rcBui','wgvXrKK','rNP3txK','sgPPzxO','yxf5uxG','ywHVA0m','nuDjtvDvEG','u0vswMm','veLkrLy','Bwq1','C2vHCMnO','BwTlyNC','C3rYAw5NAwz5','DgfZAW','ue9tva','DMLKzw8VD2vIBq','l3n0zxbZ','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','yMfZzty0','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','zM5vANC','C2v0DgLUz3m','nJq1nZK1tMDmv1nK','yxbWBgLJyxrPB24VEMLW','rKDuzgm','wLzYv2W','zMvHDhvYzuLK','sxbXBxu','yxbWBhK','t0TJr3O','B0PwwvK','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','ufnju0q','rgnVy0G','u0Hlsfe','v2HmEMS','rMrTteW','wurxCxq','Be1bD1C','kcGOlISPkYKRksSK','BgvUz3rO','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','uLrdAuO','sLP2zxq','u1rxsg8','BejYEwi','y1ruv3e','qLrSqwy','DuDbCwG','reDqy0G','C2vZC2LVBLrVA2vU','DuDOA0C','sev1BvC','Dgv4Da','nduWndC0y0LnBKHL','tM5JBKi','uefuq0G','z1DwquK','A1z1Bu0','EuzNEM4','ANnVBG','Axrwtfm','EKLiDu8','Dg9tDhjPBMC','teP3sw0','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','l2fZC2v0CW','tfzIDvK','mZKYmdm2ofLeCNDNsq','Bu1HvMi','AMv2swm','zw52AxjVBM1LBNroyw1L','y2HLy2TSAxn0sxrLBuLK','u2zhyxe','ugzQAKS','AM1qqvC','qxv5Cgu','qMvHCMvYia','B3vYBMS','DxbKyxrL','y1v1tNu','AujQB1K','C2L6zq','uxvtsM4','mteZmdeZntrqsMDSq1q','y2HLy2TZDw0'];_0x14d5=function(){return _0x3b0041;};return _0x14d5();}function _0x1725(_0x22088a,_0x455de7){_0x22088a=_0x22088a-0x16e;const _0x222082=_0x14d5();let _0x18167=_0x222082[_0x22088a];if(_0x1725['Pgopsv']===undefined){var _0x1470f3=function(_0x1c07a9){const _0xf9fa1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2791e3='',_0x3ce6b5='',_0x40af9b=_0x2791e3+_0x1470f3;for(let _0x52eb2f=0x0,_0x37a522,_0x385a98,_0xeaddc8=0x0;_0x385a98=_0x1c07a9['charAt'](_0xeaddc8++);~_0x385a98&&(_0x37a522=_0x52eb2f%0x4?_0x37a522*0x40+_0x385a98:_0x385a98,_0x52eb2f++%0x4)?_0x2791e3+=_0x40af9b['charCodeAt'](_0xeaddc8+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x37a522>>(-0x2*_0x52eb2f&0x6)):_0x52eb2f:0x0){_0x385a98=_0xf9fa1['indexOf'](_0x385a98);}for(let _0x1208f9=0x0,_0x213e24=_0x2791e3['length'];_0x1208f9<_0x213e24;_0x1208f9++){_0x3ce6b5+='%'+('00'+_0x2791e3['charCodeAt'](_0x1208f9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3ce6b5);};_0x1725['FHTUiK']=_0x1470f3,_0x1725['jMWPEE']={},_0x1725['Pgopsv']=!![];}const _0x14d59d=_0x222082[0x0],_0x172579=_0x22088a+_0x14d59d,_0x1dbc76=_0x1725['jMWPEE'][_0x172579];if(!_0x1dbc76){const _0x2ccadf=function(_0x4a6fe7){this['nOBhRW']=_0x4a6fe7,this['zxZdHC']=[0x1,0x0,0x0],this['mXlFTu']=function(){return'newState';},this['XSTtDz']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['gYzhKa']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2ccadf['prototype']['jIBBEJ']=function(){const _0x120018=new RegExp(this['XSTtDz']+this['gYzhKa']),_0x50347a=_0x120018['test'](this['mXlFTu']['toString']())?--this['zxZdHC'][0x1]:--this['zxZdHC'][0x0];return this['PGetLb'](_0x50347a);},_0x2ccadf['prototype']['PGetLb']=function(_0x2bb3de){if(!Boolean(~_0x2bb3de))return _0x2bb3de;return this['KqHUsN'](this['nOBhRW']);},_0x2ccadf['prototype']['KqHUsN']=function(_0x4b9333){for(let _0x4805f6=0x0,_0x5aa992=this['zxZdHC']['length'];_0x4805f6<_0x5aa992;_0x4805f6++){this['zxZdHC']['push'](Math['round'](Math['random']())),_0x5aa992=this['zxZdHC']['length'];}return _0x4b9333(this['zxZdHC'][0x0]);},new _0x2ccadf(_0x1725)['jIBBEJ'](),_0x18167=_0x1725['FHTUiK'](_0x18167),_0x1725['jMWPEE'][_0x172579]=_0x18167;}else _0x18167=_0x1dbc76;return _0x18167;}import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x23b7dd){const _0x1c2a89=_0x1725,_0x3c67fb={'leIrX':function(_0x12dc07){return _0x12dc07();},'jevIc':_0x1c2a89(0x19c),'OKcGz':function(_0x14d37a){return _0x14d37a();},'cUuNu':function(_0x1d5021,_0x15fe74,_0x51d8e0){return _0x1d5021(_0x15fe74,_0x51d8e0);},'BTlAf':_0x1c2a89(0x197)},_0x5c57cf=await _0x3c67fb[_0x1c2a89(0x174)](getToken);if(!_0x5c57cf)throw new Error(_0x3c67fb[_0x1c2a89(0x1d0)]);const _0x1dd970=_0x3c67fb[_0x1c2a89(0x1a7)](getApiBaseUrl),_0xdcd6b8=await _0x3c67fb[_0x1c2a89(0x1da)](fetch,_0x1dd970+_0x1c2a89(0x177),{'method':_0x3c67fb[_0x1c2a89(0x1b9)],'headers':{'Authorization':_0x1c2a89(0x1d7)+_0x5c57cf,'Content-Type':'application/json'},'body':JSON[_0x1c2a89(0x195)]({'environmentName':_0x23b7dd?.[_0x1c2a89(0x1d1)],'settings':_0x23b7dd?.[_0x1c2a89(0x19f)],'task':_0x23b7dd?.[_0x1c2a89(0x196)],'url':_0x23b7dd?.[_0x1c2a89(0x1e0)],'featureId':_0x23b7dd?.[_0x1c2a89(0x1a4)],'checklistItemId':_0x23b7dd?.[_0x1c2a89(0x1d2)]})});if(!_0xdcd6b8['ok']){const _0xb5bc72=await _0xdcd6b8['text']();throw new Error('Failed\x20to\x20create\x20browser\x20session:\x20'+_0xb5bc72);}return _0xdcd6b8[_0x1c2a89(0x1c6)]();}export async function updateBrowserSession(_0x23ebf2,_0x5ee35d){const _0x138a91=_0x1725,_0x22e4d8={'cpOwC':function(_0x103e34){return _0x103e34();},'cdBmB':_0x138a91(0x19c),'Hjiez':function(_0xa0317,_0x17e92d,_0xe80a03){return _0xa0317(_0x17e92d,_0xe80a03);},'OtyXk':_0x138a91(0x1c2),'AVsDP':'updateBrowserSession'};return _0x22e4d8['Hjiez'](withRetry,async()=>{const _0x132c7e=_0x138a91,_0x30402a=await _0x22e4d8[_0x132c7e(0x1f0)](getToken);if(!_0x30402a)throw new Error(_0x22e4d8[_0x132c7e(0x189)]);const _0x365ab=_0x22e4d8[_0x132c7e(0x1f0)](getApiBaseUrl),_0x598c0d=await _0x22e4d8[_0x132c7e(0x18c)](fetch,_0x365ab+_0x132c7e(0x19d)+_0x23ebf2,{'method':_0x22e4d8['OtyXk'],'headers':{'Authorization':'Bearer\x20'+_0x30402a,'Content-Type':_0x132c7e(0x179)},'body':JSON[_0x132c7e(0x195)](_0x5ee35d)});if(!_0x598c0d['ok']){const _0x558415=await _0x598c0d[_0x132c7e(0x1bf)]();throw new Error(_0x132c7e(0x180)+_0x558415);}return _0x598c0d[_0x132c7e(0x1c6)]();},{'label':_0x22e4d8[_0x138a91(0x1e4)]});}export async function getBrowserSession(_0x53ad4c){const _0x3a6309=_0x1725,_0x1b8c05={'XqVDo':function(_0x309223,_0x5bdca2){return _0x309223(_0x5bdca2);},'uGhkG':_0x3a6309(0x192),'wNocp':_0x3a6309(0x19b),'JhrMJ':function(_0x12d69){return _0x12d69();},'IhOkx':_0x3a6309(0x19c),'lBryb':function(_0x154bb8){return _0x154bb8();},'DcocH':function(_0x801e1c,_0x5b14e4,_0x52d283){return _0x801e1c(_0x5b14e4,_0x52d283);},'zIHuO':_0x3a6309(0x178),'jpjYS':function(_0x218200,_0x590ecc){return _0x218200!==_0x590ecc;},'ZVrWl':_0x3a6309(0x1aa)},_0x10c3f1=await _0x1b8c05[_0x3a6309(0x182)](getToken);if(!_0x10c3f1)throw new Error(_0x1b8c05['IhOkx']);const _0x513aa5=_0x1b8c05[_0x3a6309(0x1b7)](getApiBaseUrl),_0x4ee25a=await _0x1b8c05[_0x3a6309(0x1ab)](fetch,_0x513aa5+_0x3a6309(0x19d)+_0x53ad4c,{'method':_0x1b8c05[_0x3a6309(0x1c8)],'headers':{'Authorization':_0x3a6309(0x1d7)+_0x10c3f1}});if(!_0x4ee25a['ok']){if(_0x1b8c05[_0x3a6309(0x17b)](_0x1b8c05[_0x3a6309(0x1a3)],_0x1b8c05[_0x3a6309(0x1a3)]))return _0x1b8c05[_0x3a6309(0x1e6)](_0x388a57,_0x1b8c05[_0x3a6309(0x1bd)])[_0x3a6309(0x1d9)](_0x113b15)[_0x3a6309(0x1ec)](_0x1b8c05[_0x3a6309(0x1f3)]);else{const _0x5ced66=await _0x4ee25a[_0x3a6309(0x1bf)]();throw new Error('Failed\x20to\x20get\x20browser\x20session:\x20'+_0x5ced66);}}return _0x4ee25a[_0x3a6309(0x1c6)]();}export async function getUploadUrls(_0x316667,_0x41ad59,_0x365feb,_0x8a9b5){const _0x3a5acb=_0x1725,_0x26c0ae={'mkKbw':function(_0x3f0527){return _0x3f0527();},'bUdNB':function(_0x3dfd0f,_0x43dc0e){return _0x3dfd0f===_0x43dc0e;},'FdmLL':_0x3a5acb(0x1e8),'bmEds':_0x3a5acb(0x185),'EOKok':_0x3a5acb(0x19c),'QuSJn':function(_0x5b7215){return _0x5b7215();},'zIBFA':function(_0x193628,_0x395be9,_0x5dea1a){return _0x193628(_0x395be9,_0x5dea1a);},'lNZmR':_0x3a5acb(0x197),'ahokC':_0x3a5acb(0x179),'iTwXL':function(_0x42c729,_0x16a943){return _0x42c729!==_0x16a943;},'xfkGh':function(_0x5f047d,_0x452205){return _0x5f047d!==_0x452205;}},_0x4a08fa=await _0x26c0ae[_0x3a5acb(0x194)](getToken);if(!_0x4a08fa){if(_0x26c0ae[_0x3a5acb(0x1ed)](_0x26c0ae[_0x3a5acb(0x1ae)],_0x26c0ae['bmEds'])){const _0x1ce9f8=_0xcfb931[_0x3a5acb(0x1a6)](_0x459f9c,arguments);return _0x253739=null,_0x1ce9f8;}else throw new Error(_0x26c0ae['EOKok']);}const _0x794e30=_0x26c0ae[_0x3a5acb(0x1dd)](getApiBaseUrl),_0x5e7572=await _0x26c0ae[_0x3a5acb(0x176)](fetch,_0x794e30+_0x3a5acb(0x19d)+_0x316667+_0x3a5acb(0x1e9),{'method':_0x26c0ae['lNZmR'],'headers':{'Authorization':_0x3a5acb(0x1d7)+_0x4a08fa,'Content-Type':_0x26c0ae[_0x3a5acb(0x18e)]},'body':JSON[_0x3a5acb(0x195)]({'filename':_0x41ad59,'filetype':_0x365feb,..._0x26c0ae['iTwXL'](_0x8a9b5?.[_0x3a5acb(0x1dc)],undefined)&&{'size':_0x8a9b5[_0x3a5acb(0x1dc)]},..._0x26c0ae[_0x3a5acb(0x1f1)](_0x8a9b5?.[_0x3a5acb(0x1df)],undefined)&&{'checksum':_0x8a9b5[_0x3a5acb(0x1df)]},..._0x26c0ae[_0x3a5acb(0x1f1)](_0x8a9b5?.[_0x3a5acb(0x184)],undefined)&&{'metadata':_0x8a9b5[_0x3a5acb(0x184)]}})});if(!_0x5e7572['ok']){const _0x1c3e48=await _0x5e7572[_0x3a5acb(0x1bf)]();throw new Error('Failed\x20to\x20get\x20upload\x20URLs:\x20'+_0x1c3e48);}return _0x5e7572[_0x3a5acb(0x1c6)]();}export async function uploadFile(_0x203429,_0xdf8c87,_0x351b82){const _0x58f48f=_0x1725,_0x3203fb={'kVumM':function(_0x217836,_0x35ad66,_0x4cabbe){return _0x217836(_0x35ad66,_0x4cabbe);},'LVbuY':_0x58f48f(0x1ea)},_0x1190dc=await _0x3203fb[_0x58f48f(0x1c4)](fetch,_0x203429,{'method':_0x3203fb[_0x58f48f(0x1cd)],'headers':{'Content-Type':_0x351b82,'Content-Length':_0xdf8c87[_0x58f48f(0x1b2)][_0x58f48f(0x1c9)]()},'body':_0xdf8c87});if(!_0x1190dc['ok']){const _0x3e0f98=await _0x1190dc[_0x58f48f(0x1bf)]();throw new Error('Failed\x20to\x20upload\x20file:\x20'+_0x3e0f98);}}export async function uploadTrace(_0x3acf50,_0x170ea2){const _0x38ea8a=_0x1725,_0x51b5e0={'lMAwW':function(_0x21939e,_0x82b22b,_0x14348b,_0x3b3451){return _0x21939e(_0x82b22b,_0x14348b,_0x3b3451);},'JZvet':_0x38ea8a(0x1a1)};return _0x51b5e0[_0x38ea8a(0x1b0)](uploadFile,_0x3acf50,_0x170ea2,_0x51b5e0[_0x38ea8a(0x1b5)]);}export async function uploadConversation(_0x586d6e,_0x42da2f){const _0x2a2c7c=_0x1725,_0x744be8={'fnUjw':function(_0x5b0eb9,_0x23c051,_0x135cc8,_0x1efae2){return _0x5b0eb9(_0x23c051,_0x135cc8,_0x1efae2);},'yFgzn':_0x2a2c7c(0x188)};return _0x744be8[_0x2a2c7c(0x19e)](uploadFile,_0x586d6e,_0x42da2f,_0x744be8[_0x2a2c7c(0x1c5)]);}export async function uploadScreenshot(_0x1d07a9,_0x35c692){const _0x1abb69=_0x1725,_0x2e21d6={'JFVCJ':function(_0x350c5a,_0x50ba57,_0x2f6bea,_0x12c3e9){return _0x350c5a(_0x50ba57,_0x2f6bea,_0x12c3e9);},'TOeKB':_0x1abb69(0x1ee)};return _0x2e21d6['JFVCJ'](uploadFile,_0x1d07a9,_0x35c692,_0x2e21d6[_0x1abb69(0x17e)]);}export async function uploadVideo(_0x5705d2,_0x3d5081){const _0x3b1709=_0x1725,_0x1824c0={'hRZFd':function(_0xa3d4ca,_0x6994c2,_0x452972,_0x8f947f){return _0xa3d4ca(_0x6994c2,_0x452972,_0x8f947f);},'ournk':_0x3b1709(0x198)};return _0x1824c0['hRZFd'](uploadFile,_0x5705d2,_0x3d5081,_0x1824c0[_0x3b1709(0x1d8)]);}export function buildTraceViewerUrl(_0x5274c9){const _0x2b771f=_0x1725,_0x417f13=encodeURIComponent(_0x5274c9);return _0x2b771f(0x1b3)+_0x417f13;}export async function getProxySessionToken(){const _0x1a8255=_0x1725,_0x2a2efe={'SfGaq':function(_0x3d1330,_0x2068e2,_0x39715f,_0xa74d9c){return _0x3d1330(_0x2068e2,_0x39715f,_0xa74d9c);},'XeqFI':'video/webm','LJwIm':_0x1a8255(0x19c),'PWLyI':function(_0x46f533,_0x38de92){return _0x46f533===_0x38de92;},'FzwMy':_0x1a8255(0x1d5),'CVkoF':_0x1a8255(0x175),'WfKCj':function(_0x46304f,_0x515981,_0x144e50){return _0x46304f(_0x515981,_0x144e50);},'cTTWq':_0x1a8255(0x197),'OizbC':function(_0x3fbdd1,_0x475b7a){return _0x3fbdd1!==_0x475b7a;},'uGAqh':_0x1a8255(0x1af)},_0x4ad44a=await getToken();if(!_0x4ad44a){if(_0x2a2efe['PWLyI'](_0x2a2efe[_0x1a8255(0x18b)],_0x2a2efe[_0x1a8255(0x1e2)]))return _0x2a2efe[_0x1a8255(0x1d3)](_0x1cfb85,_0x273fc1,_0x3ea357,_0x2a2efe[_0x1a8255(0x18a)]);else throw new Error(_0x2a2efe[_0x1a8255(0x1ca)]);}const _0x109a23=getApiBaseUrl(),_0x171d1a=await _0x2a2efe['WfKCj'](fetch,_0x109a23+'/api/v1/mcp/proxy-session',{'method':_0x2a2efe[_0x1a8255(0x1b8)],'headers':{'Authorization':_0x1a8255(0x1d7)+_0x4ad44a}});if(!_0x171d1a['ok']){if(_0x2a2efe[_0x1a8255(0x1f2)](_0x1a8255(0x1af),_0x2a2efe[_0x1a8255(0x1ba)]))throw new _0xb3999(_0x2a2efe['LJwIm']);else{const _0x62a112=await _0x171d1a[_0x1a8255(0x1bf)]();throw new Error(_0x1a8255(0x1a9)+_0x62a112);}}const _0x49d563=await _0x171d1a[_0x1a8255(0x1c6)]();return _0x49d563[_0x1a8255(0x1bc)];}export function computeChecksum(_0x1d98d7){const _0x33db37=_0x1725,_0x5081a9={'STWHo':function(_0x499604,_0x40ce53){return _0x499604(_0x40ce53);}};return _0x5081a9[_0x33db37(0x1b6)](createHash,_0x33db37(0x192))[_0x33db37(0x1d9)](_0x1d98d7)[_0x33db37(0x1ec)](_0x33db37(0x19b));}export async function createVerificationStep(_0x4cf894,_0x2fe6e6){const _0x49ce0b=_0x1725,_0x53c9a4={'gWVAI':_0x49ce0b(0x19c),'WhLzk':function(_0x574080){return _0x574080();},'dOUhY':function(_0x5aed9e){return _0x5aed9e();},'DnmQo':function(_0x46a6bb,_0x587530,_0x3dffdd){return _0x46a6bb(_0x587530,_0x3dffdd);},'ElETl':function(_0x48e75e,_0x20ffed){return _0x48e75e===_0x20ffed;},'sioOS':_0x49ce0b(0x1a2),'SHKHQ':_0x49ce0b(0x1e3)},_0x45dc7d=await _0x53c9a4[_0x49ce0b(0x1ad)](getToken);if(!_0x45dc7d)throw new Error(_0x53c9a4['gWVAI']);const _0x57f3d3=_0x53c9a4['dOUhY'](getApiBaseUrl),_0x47b5d2=await _0x53c9a4[_0x49ce0b(0x16f)](fetch,_0x57f3d3+_0x49ce0b(0x19d)+_0x4cf894+_0x49ce0b(0x199),{'method':'POST','headers':{'Authorization':_0x49ce0b(0x1d7)+_0x45dc7d,'Content-Type':_0x49ce0b(0x179)},'body':JSON[_0x49ce0b(0x195)](_0x2fe6e6)});if(!_0x47b5d2['ok']){if(_0x53c9a4['ElETl'](_0x53c9a4[_0x49ce0b(0x181)],_0x53c9a4[_0x49ce0b(0x1ac)]))throw new _0x3032a0(_0x53c9a4[_0x49ce0b(0x1c3)]);else{const _0xd5b52c=await _0x47b5d2['text']();throw new Error(_0x49ce0b(0x1eb)+_0xd5b52c);}}return _0x47b5d2[_0x49ce0b(0x1c6)]();}export async function createStepAsset(_0x28c1a0,_0x1c4cdf,_0x25dc29){const _0x58f0e2=_0x1725,_0x54c8b4={'TIJFV':'(((.+)+)+)+$','aqyQx':function(_0x2fd894){return _0x2fd894();},'aLpsh':function(_0x16c52a,_0x3df16d){return _0x16c52a!==_0x3df16d;},'Auype':'CssHS','RTCiJ':'qLpbc','mMaVb':_0x58f0e2(0x19c),'JxtmD':function(_0x2faa11,_0x35395b,_0x46bc8c){return _0x2faa11(_0x35395b,_0x46bc8c);},'SERZc':_0x58f0e2(0x197),'tXMHn':_0x58f0e2(0x179)},_0x49d981=await _0x54c8b4[_0x58f0e2(0x18d)](getToken);if(!_0x49d981){if(_0x54c8b4[_0x58f0e2(0x187)](_0x54c8b4[_0x58f0e2(0x1d6)],_0x54c8b4[_0x58f0e2(0x1b4)]))throw new Error(_0x54c8b4[_0x58f0e2(0x1cf)]);else return _0x1b693f['toString']()[_0x58f0e2(0x193)](AzRpso[_0x58f0e2(0x191)])[_0x58f0e2(0x1c9)]()[_0x58f0e2(0x173)](_0x184b23)[_0x58f0e2(0x193)](AzRpso[_0x58f0e2(0x191)]);}const _0x433021=getApiBaseUrl(),_0x4b0b1c=await _0x54c8b4['JxtmD'](fetch,_0x433021+_0x58f0e2(0x19d)+_0x28c1a0+_0x58f0e2(0x186)+_0x1c4cdf+_0x58f0e2(0x1cc),{'method':_0x54c8b4[_0x58f0e2(0x190)],'headers':{'Authorization':'Bearer\x20'+_0x49d981,'Content-Type':_0x54c8b4[_0x58f0e2(0x172)]},'body':JSON['stringify'](_0x25dc29)});if(!_0x4b0b1c['ok']){const _0x519be4=await _0x4b0b1c['text']();throw new Error(_0x58f0e2(0x171)+_0x519be4);}return _0x4b0b1c['json']();}export async function updateVerificationStep(_0x6fb47f,_0x4b7476,_0x28e03a){const _0x3d48ed=_0x1725,_0x1dc8ba={'NncnB':_0x3d48ed(0x19c),'gOCHR':function(_0x1e2fa6){return _0x1e2fa6();},'DGPcH':function(_0x9a706e){return _0x9a706e();},'itVLS':function(_0x5e1047,_0x3e4267,_0x3fb0b4){return _0x5e1047(_0x3e4267,_0x3fb0b4);},'fwNdD':_0x3d48ed(0x179),'xLlAP':_0x3d48ed(0x1db)},_0x3c6ea9=await _0x1dc8ba[_0x3d48ed(0x16e)](getToken);if(!_0x3c6ea9)throw new Error(_0x1dc8ba[_0x3d48ed(0x1c1)]);const _0x155949=_0x1dc8ba[_0x3d48ed(0x1bb)](getApiBaseUrl),_0x120f8a=await _0x1dc8ba[_0x3d48ed(0x1c7)](fetch,_0x155949+_0x3d48ed(0x19d)+_0x6fb47f+'/steps/'+_0x4b7476,{'method':_0x3d48ed(0x1c2),'headers':{'Authorization':_0x3d48ed(0x1d7)+_0x3c6ea9,'Content-Type':_0x1dc8ba[_0x3d48ed(0x17c)]},'body':JSON[_0x3d48ed(0x195)](_0x28e03a)});if(!_0x120f8a['ok']){if(_0x3d48ed(0x1db)!==_0x1dc8ba[_0x3d48ed(0x17a)])throw new _0x1d79a7(_0x1dc8ba[_0x3d48ed(0x1c1)]);else{const _0x5c01e4=await _0x120f8a[_0x3d48ed(0x1bf)]();throw new Error(_0x3d48ed(0x1cb)+_0x5c01e4);}}}export async function getBrowserSessionSteps(_0x3a7b6c){const _0xd3c8d4=_0x1725,_0x222584={'JIXYb':function(_0x26a0a1,_0x420b99,_0x5807f4,_0x28dc9f){return _0x26a0a1(_0x420b99,_0x5807f4,_0x28dc9f);},'LjExm':'image/png','YJBzv':function(_0x347b01){return _0x347b01();},'Ipqmu':_0xd3c8d4(0x19c),'ReCto':function(_0x7332c8,_0x14a185,_0x44b6ba){return _0x7332c8(_0x14a185,_0x44b6ba);},'oJVYY':_0xd3c8d4(0x178),'ktylg':function(_0x25112b,_0x182d31){return _0x25112b===_0x182d31;}},_0x292dfa=await _0x222584['YJBzv'](getToken);if(!_0x292dfa)throw new Error(_0x222584[_0xd3c8d4(0x1a5)]);const _0x2b791e=getApiBaseUrl(),_0x38d967=await _0x222584[_0xd3c8d4(0x1e5)](fetch,_0x2b791e+_0xd3c8d4(0x19d)+_0x3a7b6c+_0xd3c8d4(0x199),{'method':_0x222584[_0xd3c8d4(0x1a8)],'headers':{'Authorization':'Bearer\x20'+_0x292dfa}});if(!_0x38d967['ok']){if(_0x222584[_0xd3c8d4(0x17d)](_0xd3c8d4(0x1be),_0xd3c8d4(0x1d4)))return _0x222584['JIXYb'](_0x82c0ae,_0x47d11c,_0x46f0bd,_0x222584[_0xd3c8d4(0x1e7)]);else{const _0x54579f=await _0x38d967[_0xd3c8d4(0x1bf)]();throw new Error(_0xd3c8d4(0x19a)+_0x54579f);}}return _0x38d967[_0xd3c8d4(0x1c6)]();}
1
+ (function(_0x599db6,_0x10b115){const _0x2ca1ef=_0x3493,_0x176183=_0x599db6();while(!![]){try{const _0xc1ba6e=-parseInt(_0x2ca1ef(0x1d7))/0x1+parseInt(_0x2ca1ef(0x1de))/0x2+parseInt(_0x2ca1ef(0x1ef))/0x3*(parseInt(_0x2ca1ef(0x1c1))/0x4)+parseInt(_0x2ca1ef(0x19a))/0x5+-parseInt(_0x2ca1ef(0x181))/0x6+parseInt(_0x2ca1ef(0x1a7))/0x7+-parseInt(_0x2ca1ef(0x197))/0x8;if(_0xc1ba6e===_0x10b115)break;else _0x176183['push'](_0x176183['shift']());}catch(_0x13740d){_0x176183['push'](_0x176183['shift']());}}}(_0x4e1f,0xa4dc6));const _0x324e49=(function(){const _0x328ea2={'GOHCL':function(_0x428b96,_0x532991,_0x257e24,_0x258562){return _0x428b96(_0x532991,_0x257e24,_0x258562);},'fPEtO':function(_0x46a5c7,_0x36e9b8){return _0x46a5c7!==_0x36e9b8;}};let _0x4f80dc=!![];return function(_0x369672,_0xce0f8c){const _0x4bb85b=_0x3493,_0x1c1a2f={'HpDnr':function(_0x2a5829,_0x5db2a1,_0x50cb51,_0x140d16){const _0xf6e846=_0x3493;return _0x328ea2[_0xf6e846(0x1da)](_0x2a5829,_0x5db2a1,_0x50cb51,_0x140d16);},'HLbbI':function(_0x238582,_0x309a70){const _0x1bee28=_0x3493;return _0x328ea2[_0x1bee28(0x17f)](_0x238582,_0x309a70);},'bYYPP':_0x4bb85b(0x1c4)},_0x4b48ee=_0x4f80dc?function(){const _0x50c5e4=_0x4bb85b,_0x1f3ce2={'jzpkn':function(_0x2eb3c6,_0x377cc8,_0x2385d4,_0xbeeb44){const _0x405686=_0x3493;return _0x1c1a2f[_0x405686(0x198)](_0x2eb3c6,_0x377cc8,_0x2385d4,_0xbeeb44);}};if(_0xce0f8c){if(_0x1c1a2f[_0x50c5e4(0x1a6)](_0x50c5e4(0x1c4),_0x1c1a2f[_0x50c5e4(0x189)]))return _0x1f3ce2[_0x50c5e4(0x1a2)](_0x599374,_0x8dc381,_0x3cc621,'video/webm');else{const _0xd596bb=_0xce0f8c[_0x50c5e4(0x196)](_0x369672,arguments);return _0xce0f8c=null,_0xd596bb;}}}:function(){};return _0x4f80dc=![],_0x4b48ee;};}()),_0x565415=_0x324e49(this,function(){const _0x51cc7a=_0x3493,_0x315dcb={'UXNvZ':_0x51cc7a(0x1cc)};return _0x565415[_0x51cc7a(0x184)]()[_0x51cc7a(0x1e9)](_0x51cc7a(0x1cc))[_0x51cc7a(0x184)]()['constructor'](_0x565415)['search'](_0x315dcb[_0x51cc7a(0x1cf)]);});_0x565415();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x3c9065){const _0x171bb1=_0x3493,_0x484582={'IitTX':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','BCSPw':function(_0xc36ce8){return _0xc36ce8();},'HItHb':function(_0x4db466,_0x1f7689,_0x5891e4){return _0x4db466(_0x1f7689,_0x5891e4);},'ENzJz':_0x171bb1(0x1ae),'wciPl':_0x171bb1(0x19c),'wWQOx':function(_0x1cb9bd,_0x343d65){return _0x1cb9bd!==_0x343d65;},'vHCXS':_0x171bb1(0x1d2)},_0x1d980c=await getToken();if(!_0x1d980c)throw new Error(_0x171bb1(0x1c0));const _0xe10ac3=_0x484582[_0x171bb1(0x1ce)](getApiBaseUrl),_0x4d046d=await _0x484582[_0x171bb1(0x1ed)](fetch,_0xe10ac3+'/api/v1/mcp/browser-sessions',{'method':_0x484582[_0x171bb1(0x18f)],'headers':{'Authorization':_0x171bb1(0x1d8)+_0x1d980c,'Content-Type':_0x484582[_0x171bb1(0x1be)]},'body':JSON[_0x171bb1(0x1a5)]({'environmentName':_0x3c9065?.[_0x171bb1(0x1bc)],'settings':_0x3c9065?.[_0x171bb1(0x1ba)],'task':_0x3c9065?.[_0x171bb1(0x192)],'url':_0x3c9065?.[_0x171bb1(0x183)],'featureId':_0x3c9065?.[_0x171bb1(0x1d1)],'checklistItemId':_0x3c9065?.['checklistItemId']})});if(!_0x4d046d['ok']){if(_0x484582[_0x171bb1(0x1b6)](_0x484582['vHCXS'],_0x484582[_0x171bb1(0x1d4)]))throw new _0x4ace76(_0x484582[_0x171bb1(0x18e)]);else{const _0x2d6743=await _0x4d046d[_0x171bb1(0x1ac)]();throw new Error(_0x171bb1(0x1c3)+_0x2d6743);}}return _0x4d046d[_0x171bb1(0x18a)]();}function _0x3493(_0x157c5d,_0x5725a5){_0x157c5d=_0x157c5d-0x178;const _0x2d3182=_0x4e1f();let _0x565415=_0x2d3182[_0x157c5d];if(_0x3493['nZHsnM']===undefined){var _0x324e49=function(_0x488afc){const _0x32f44d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57720a='',_0x213f9b='',_0x3816ff=_0x57720a+_0x324e49;for(let _0x3fc34d=0x0,_0xf9c585,_0x49ca0f,_0x263245=0x0;_0x49ca0f=_0x488afc['charAt'](_0x263245++);~_0x49ca0f&&(_0xf9c585=_0x3fc34d%0x4?_0xf9c585*0x40+_0x49ca0f:_0x49ca0f,_0x3fc34d++%0x4)?_0x57720a+=_0x3816ff['charCodeAt'](_0x263245+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0xf9c585>>(-0x2*_0x3fc34d&0x6)):_0x3fc34d:0x0){_0x49ca0f=_0x32f44d['indexOf'](_0x49ca0f);}for(let _0x45205d=0x0,_0x203aba=_0x57720a['length'];_0x45205d<_0x203aba;_0x45205d++){_0x213f9b+='%'+('00'+_0x57720a['charCodeAt'](_0x45205d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x213f9b);};_0x3493['JFQtJe']=_0x324e49,_0x3493['jSqYAf']={},_0x3493['nZHsnM']=!![];}const _0x4e1fbc=_0x2d3182[0x0],_0x349386=_0x157c5d+_0x4e1fbc,_0x2607f6=_0x3493['jSqYAf'][_0x349386];if(!_0x2607f6){const _0x4cde4b=function(_0x3db043){this['TLMQRf']=_0x3db043,this['PtDLnN']=[0x1,0x0,0x0],this['KMTiJR']=function(){return'newState';},this['BudbVe']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['CtvlGz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4cde4b['prototype']['brdgzz']=function(){const _0x585c92=new RegExp(this['BudbVe']+this['CtvlGz']),_0x54d73c=_0x585c92['test'](this['KMTiJR']['toString']())?--this['PtDLnN'][0x1]:--this['PtDLnN'][0x0];return this['dedOyA'](_0x54d73c);},_0x4cde4b['prototype']['dedOyA']=function(_0x2da5dc){if(!Boolean(~_0x2da5dc))return _0x2da5dc;return this['ERzJqk'](this['TLMQRf']);},_0x4cde4b['prototype']['ERzJqk']=function(_0x4f4ed4){for(let _0x2b1a0f=0x0,_0x216c55=this['PtDLnN']['length'];_0x2b1a0f<_0x216c55;_0x2b1a0f++){this['PtDLnN']['push'](Math['round'](Math['random']())),_0x216c55=this['PtDLnN']['length'];}return _0x4f4ed4(this['PtDLnN'][0x0]);},new _0x4cde4b(_0x3493)['brdgzz'](),_0x565415=_0x3493['JFQtJe'](_0x565415),_0x3493['jSqYAf'][_0x349386]=_0x565415;}else _0x565415=_0x2607f6;return _0x565415;}export async function updateBrowserSession(_0x30e496,_0x12deab){const _0xe3fd52=_0x3493,_0x38c32b={'gxuXa':_0xe3fd52(0x1c0),'KSvVf':function(_0x4a2ce2,_0x226316){return _0x4a2ce2===_0x226316;},'eZbsp':_0xe3fd52(0x1c9),'NmEBX':function(_0x1e3d36){return _0x1e3d36();},'ZiSqR':'LTVSa','rrgWO':function(_0x418ef4){return _0x418ef4();},'dwwjg':function(_0x5c526e,_0x3c5508,_0x379381){return _0x5c526e(_0x3c5508,_0x379381);},'uXpVQ':'application/json','Qjrgx':_0xe3fd52(0x187)};return withRetry(async()=>{const _0x1881ce=_0xe3fd52,_0x1fb054={'pWjzH':_0x38c32b['gxuXa']};if(_0x38c32b[_0x1881ce(0x1a0)](_0x1881ce(0x1c9),_0x38c32b['eZbsp'])){const _0x38e1d7=await _0x38c32b['NmEBX'](getToken);if(!_0x38e1d7){if(_0x38c32b['ZiSqR']===_0x1881ce(0x1e6))throw new Error(_0x38c32b[_0x1881ce(0x188)]);else throw new _0x3257d6(_0x1fb054[_0x1881ce(0x1d3)]);}const _0x279666=_0x38c32b[_0x1881ce(0x1b9)](getApiBaseUrl),_0x3f2d33=await _0x38c32b[_0x1881ce(0x1bf)](fetch,_0x279666+'/api/v1/mcp/browser-sessions/'+_0x30e496,{'method':_0x1881ce(0x19d),'headers':{'Authorization':_0x1881ce(0x1d8)+_0x38e1d7,'Content-Type':_0x38c32b['uXpVQ']},'body':JSON[_0x1881ce(0x1a5)](_0x12deab)});if(!_0x3f2d33['ok']){const _0x1c4b62=await _0x3f2d33[_0x1881ce(0x1ac)]();throw new Error(_0x1881ce(0x1b1)+_0x1c4b62);}return _0x3f2d33[_0x1881ce(0x18a)]();}else throw new _0x148b90(_0x1fb054['pWjzH']);},{'label':_0x38c32b[_0xe3fd52(0x1e1)]});}export async function getBrowserSession(_0x162c8d){const _0x1e2dd7=_0x3493,_0x3f0583={'VBgVO':function(_0x1eef72){return _0x1eef72();},'pSSYQ':function(_0xe01d2f,_0x3775b9,_0x34f436){return _0xe01d2f(_0x3775b9,_0x34f436);},'aywEl':'GET'},_0x555af2=await _0x3f0583[_0x1e2dd7(0x1b2)](getToken);if(!_0x555af2)throw new Error(_0x1e2dd7(0x1c0));const _0xb1b94=_0x3f0583[_0x1e2dd7(0x1b2)](getApiBaseUrl),_0x14f54c=await _0x3f0583[_0x1e2dd7(0x199)](fetch,_0xb1b94+_0x1e2dd7(0x1ee)+_0x162c8d,{'method':_0x3f0583['aywEl'],'headers':{'Authorization':_0x1e2dd7(0x1d8)+_0x555af2}});if(!_0x14f54c['ok']){const _0x28884b=await _0x14f54c['text']();throw new Error('Failed\x20to\x20get\x20browser\x20session:\x20'+_0x28884b);}return _0x14f54c[_0x1e2dd7(0x18a)]();}export async function getUploadUrls(_0x37b0f6,_0x3c4bf2,_0x1f37df,_0x346153){const _0x3bb16d=_0x3493,_0x48fe1a={'lyQYm':_0x3bb16d(0x1c0),'vCCld':function(_0x4d54d4){return _0x4d54d4();},'XBOkh':function(_0x3ee8ea,_0x399c87,_0xfbe373){return _0x3ee8ea(_0x399c87,_0xfbe373);},'USkzf':_0x3bb16d(0x1ae),'XsHUZ':_0x3bb16d(0x19c),'SVHQo':function(_0x2f95c2,_0x417a46){return _0x2f95c2!==_0x417a46;},'iqGsg':function(_0x65d9f6,_0x1ecb4d){return _0x65d9f6!==_0x1ecb4d;}},_0x9009e3=await getToken();if(!_0x9009e3)throw new Error(_0x48fe1a[_0x3bb16d(0x1e8)]);const _0x450329=_0x48fe1a[_0x3bb16d(0x1ea)](getApiBaseUrl),_0x5bfdd5=await _0x48fe1a[_0x3bb16d(0x1d9)](fetch,_0x450329+_0x3bb16d(0x1ee)+_0x37b0f6+_0x3bb16d(0x178),{'method':_0x48fe1a[_0x3bb16d(0x180)],'headers':{'Authorization':_0x3bb16d(0x1d8)+_0x9009e3,'Content-Type':_0x48fe1a[_0x3bb16d(0x19f)]},'body':JSON['stringify']({'filename':_0x3c4bf2,'filetype':_0x1f37df,..._0x48fe1a[_0x3bb16d(0x1e3)](_0x346153?.[_0x3bb16d(0x1a1)],undefined)&&{'size':_0x346153[_0x3bb16d(0x1a1)]},..._0x48fe1a[_0x3bb16d(0x1e5)](_0x346153?.['checksum'],undefined)&&{'checksum':_0x346153['checksum']},..._0x346153?.['metadata']!==undefined&&{'metadata':_0x346153['metadata']}})});if(!_0x5bfdd5['ok']){const _0x5a3f91=await _0x5bfdd5[_0x3bb16d(0x1ac)]();throw new Error('Failed\x20to\x20get\x20upload\x20URLs:\x20'+_0x5a3f91);}return _0x5bfdd5[_0x3bb16d(0x18a)]();}export async function uploadFile(_0x30a1cd,_0x1fead3,_0x11ad92){const _0x38f476=_0x3493,_0xf2d6b2={'woIkD':function(_0x2caf9d,_0x5ed260,_0xb113cd){return _0x2caf9d(_0x5ed260,_0xb113cd);},'YbDIV':_0x38f476(0x1a3)},_0x2fce18=await _0xf2d6b2[_0x38f476(0x1e0)](fetch,_0x30a1cd,{'method':_0xf2d6b2['YbDIV'],'headers':{'Content-Type':_0x11ad92,'Content-Length':_0x1fead3[_0x38f476(0x1ec)]['toString']()},'body':_0x1fead3});if(!_0x2fce18['ok']){const _0x56b3d6=await _0x2fce18[_0x38f476(0x1ac)]();throw new Error(_0x38f476(0x1af)+_0x56b3d6);}}export async function uploadTrace(_0x1515cb,_0x4ac4c8){const _0x20fddd=_0x3493,_0x57dcfe={'XUeIg':function(_0x531bcb,_0x82614d,_0x4fbcb1,_0x5b90af){return _0x531bcb(_0x82614d,_0x4fbcb1,_0x5b90af);},'lTRCF':_0x20fddd(0x1ca)};return _0x57dcfe['XUeIg'](uploadFile,_0x1515cb,_0x4ac4c8,_0x57dcfe[_0x20fddd(0x1b8)]);}export async function uploadConversation(_0x23e472,_0x43c1ee){const _0x44db1d=_0x3493,_0xc5b6cf={'UgksN':function(_0x1dfffc,_0x4bae0f,_0x377341,_0x1f61f8){return _0x1dfffc(_0x4bae0f,_0x377341,_0x1f61f8);}};return _0xc5b6cf[_0x44db1d(0x1b0)](uploadFile,_0x23e472,_0x43c1ee,_0x44db1d(0x186));}export async function uploadScreenshot(_0x27734f,_0x41e450){const _0x5ed302=_0x3493,_0x3e8494={'qPyWs':function(_0x57669d,_0x8a917f,_0x10681c,_0x35eaf8){return _0x57669d(_0x8a917f,_0x10681c,_0x35eaf8);}};return _0x3e8494[_0x5ed302(0x1b4)](uploadFile,_0x27734f,_0x41e450,_0x5ed302(0x1d0));}export async function uploadVideo(_0x5a3cae,_0x4e6194){const _0x22c049=_0x3493,_0x233288={'fBqJd':function(_0x1b0939,_0x3dc10d,_0x35aeeb,_0x12545a){return _0x1b0939(_0x3dc10d,_0x35aeeb,_0x12545a);},'uvcGK':_0x22c049(0x17b)};return _0x233288[_0x22c049(0x1e7)](uploadFile,_0x5a3cae,_0x4e6194,_0x233288[_0x22c049(0x1dd)]);}export function buildTraceViewerUrl(_0x50b6c5){const _0x468d29=_0x3493,_0x556743={'UkYsi':function(_0xad23c0,_0x268856){return _0xad23c0(_0x268856);}},_0x2e3654=_0x556743['UkYsi'](encodeURIComponent,_0x50b6c5);return _0x468d29(0x19b)+_0x2e3654;}export async function getProxySessionToken(){const _0xe87630=_0x3493,_0x1d0a23={'NjytG':function(_0xb30208){return _0xb30208();},'QuKOD':_0xe87630(0x1c0)},_0x4408a6=await _0x1d0a23[_0xe87630(0x1b7)](getToken);if(!_0x4408a6)throw new Error(_0x1d0a23[_0xe87630(0x182)]);const _0x4b9512=_0x1d0a23['NjytG'](getApiBaseUrl),_0x39058c=await fetch(_0x4b9512+_0xe87630(0x1b3),{'method':_0xe87630(0x1ae),'headers':{'Authorization':_0xe87630(0x1d8)+_0x4408a6}});if(!_0x39058c['ok']){const _0x158188=await _0x39058c[_0xe87630(0x1ac)]();throw new Error(_0xe87630(0x191)+_0x158188);}const _0x5ef817=await _0x39058c[_0xe87630(0x18a)]();return _0x5ef817[_0xe87630(0x1c8)];}export function computeChecksum(_0x59c1b5){const _0x4e8e6c=_0x3493,_0x2eef73={'zmkTt':function(_0x344772,_0x1041aa){return _0x344772(_0x1041aa);},'QDsfI':_0x4e8e6c(0x193),'BEnpp':_0x4e8e6c(0x1bb)};return _0x2eef73['zmkTt'](createHash,_0x2eef73[_0x4e8e6c(0x185)])[_0x4e8e6c(0x1df)](_0x59c1b5)['digest'](_0x2eef73[_0x4e8e6c(0x1ad)]);}export async function createVerificationStep(_0x12428b,_0x3df09f){const _0x5d06ca=_0x3493,_0x49a485={'KomME':_0x5d06ca(0x1c0),'eoewd':function(_0x4815d9){return _0x4815d9();},'NPYSl':_0x5d06ca(0x1ae),'YdmmC':'application/json'},_0x31e0a4=await getToken();if(!_0x31e0a4)throw new Error(_0x49a485[_0x5d06ca(0x1dc)]);const _0x3ce6f2=_0x49a485[_0x5d06ca(0x1d6)](getApiBaseUrl),_0x22d2bc=await fetch(_0x3ce6f2+_0x5d06ca(0x1ee)+_0x12428b+_0x5d06ca(0x17a),{'method':_0x49a485[_0x5d06ca(0x1b5)],'headers':{'Authorization':_0x5d06ca(0x1d8)+_0x31e0a4,'Content-Type':_0x49a485[_0x5d06ca(0x1a9)]},'body':JSON[_0x5d06ca(0x1a5)](_0x3df09f)});if(!_0x22d2bc['ok']){const _0x4e187d=await _0x22d2bc[_0x5d06ca(0x1ac)]();throw new Error(_0x5d06ca(0x1c2)+_0x4e187d);}return _0x22d2bc[_0x5d06ca(0x18a)]();}export async function createStepAsset(_0x24737a,_0x2a02c2,_0xa7fac3){const _0x307a1d=_0x3493,_0x4cd4ce={'Pxywc':function(_0x385c45,_0x780dcd,_0x4ed7c2,_0x153c20){return _0x385c45(_0x780dcd,_0x4ed7c2,_0x153c20);},'PYSqy':'application/jsonl','iThlh':function(_0x1ad36f){return _0x1ad36f();},'VTyHT':function(_0x5e8c96,_0x33f16c){return _0x5e8c96!==_0x33f16c;},'MRLGV':_0x307a1d(0x179),'eyWRl':function(_0x293d1d,_0x56047d,_0x1afdbf){return _0x293d1d(_0x56047d,_0x1afdbf);},'IMKYy':'POST','FAMFr':_0x307a1d(0x19c),'hYWqh':_0x307a1d(0x1c7)},_0x3244de=await _0x4cd4ce[_0x307a1d(0x1ab)](getToken);if(!_0x3244de){if(_0x4cd4ce[_0x307a1d(0x17c)](_0x307a1d(0x179),_0x4cd4ce[_0x307a1d(0x194)]))return _0x4cd4ce[_0x307a1d(0x1c5)](_0x183a75,_0xa766c1,_0x3f155f,_0x4cd4ce[_0x307a1d(0x190)]);else throw new Error(_0x307a1d(0x1c0));}const _0x37dba0=getApiBaseUrl(),_0x489a06=await _0x4cd4ce[_0x307a1d(0x1aa)](fetch,_0x37dba0+_0x307a1d(0x1ee)+_0x24737a+_0x307a1d(0x1bd)+_0x2a02c2+_0x307a1d(0x1cd),{'method':_0x4cd4ce[_0x307a1d(0x1e4)],'headers':{'Authorization':'Bearer\x20'+_0x3244de,'Content-Type':_0x4cd4ce[_0x307a1d(0x195)]},'body':JSON[_0x307a1d(0x1a5)](_0xa7fac3)});if(!_0x489a06['ok']){if(_0x4cd4ce[_0x307a1d(0x1a4)]===_0x4cd4ce[_0x307a1d(0x1a4)]){const _0x4ac40b=await _0x489a06['text']();throw new Error(_0x307a1d(0x17d)+_0x4ac40b);}else throw new _0x2e877f(_0x307a1d(0x1c0));}return _0x489a06[_0x307a1d(0x18a)]();}function _0x4e1f(){const _0x48c7d3=['zhD3AMC','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','mtu2ELPWB0Pc','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','uw9Zt2S','uhH5D2m','t2TUsLu','EhzzCLK','C2vZC2LVBLrVA2vU','z1vHEM4','yxbWBgLJyxrPB24VEMLW','r0vu','kcGOlISPkYKRksSK','l2fZC2v0CW','qKntuhC','vvHoDLO','Aw1Hz2uVCg5N','zMvHDhvYzuLK','Aw1gzMS','CfDQEKG','DKHdwfm','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','zw9LD2q','mJy5otKWsNL2wNHn','qMvHCMvYia','wejpA2G','r09iq0W','DxvpD0e','s29Ttuu','DxzJr0S','mJq1nte2vMD1ELj1','DxbKyxrL','D29jA0q','uwPYz3G','DhnvrNG','u1ziuw8','su1lwxK','AxfhC2C','tfrwu2e','zKjXsMq','BhLrww0','C2vHCMnO','DKndBgq','EhPsB00','BgvUz3rO','seL0sgi','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','ndqYndfjAKjhqK0','l3vWBg9Hzc11CMXZ','AgPRuMm','l3n0zxbZ','DMLKzw8VD2vIBq','vLr5sfq','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','veneu2u','zLbfDe8','vvnREMy','mJiWmde1oeneA0DJtG','uxvlt0q','DxjS','Dg9tDhjPBMC','uurZzKK','yxbWBgLJyxrPB24VANnVBMW','DxbKyxrLqNjVD3nLCLnLC3nPB24','z3H1wge','yLLzufa','ANnVBG','zwvMyNe','uvLIwKi','quTjtMe','swL0vfG','ru56sNO','ufLtCxK','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','DgfZAW','Bwq1','tvjmr1y','rKfnrNi','yxbWBhK','mJGYmJqWofLsyvz6zG','shbeBNi','Cfntwve','mZy2mtu0meX4Bgfuwa','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','yxbWBgLJyxrPB24VANnVBG','uefuq0G','zgLNzxn0','whnivvO','s1n2vMy','C2L6zq','ANPWA24','ufvu','AfLxCwG','C3rYAw5NAwz5','seXIyKK','mty0mtG4nvHewwTgtq','ze9zs20','wwrTBum','zxLxuMW','AvrOBgG','Dgv4Da','qKvUCha','ue9tva','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','vwDRC04','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','vKjNvK8','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','Cvb5v3m','tLbzu2W','D1Drt3G','tMP5DeC','Bfrsq0y','CNjNv08','C2v0DgLUz3m','yMfZzty0','zw52AxjVBM1LBNroyw1L','l3n0zxbZlW','D2nPugW'];_0x4e1f=function(){return _0x48c7d3;};return _0x4e1f();}export async function updateVerificationStep(_0x47885c,_0x181f34,_0x3183ea){const _0x4eba6f=_0x3493,_0x4d1b8a={'tsUFx':_0x4eba6f(0x1bb),'xzRoM':function(_0x407e1c){return _0x407e1c();},'CRMRL':_0x4eba6f(0x1c0),'uuOwA':function(_0x2dee79){return _0x2dee79();},'AKINa':_0x4eba6f(0x19d),'OknJU':_0x4eba6f(0x19c),'TCDSe':function(_0x3c3b98,_0xec0911){return _0x3c3b98!==_0xec0911;},'dOYKm':'eefbq'},_0x31448e=await _0x4d1b8a[_0x4eba6f(0x1eb)](getToken);if(!_0x31448e)throw new Error(_0x4d1b8a['CRMRL']);const _0x13576d=_0x4d1b8a[_0x4eba6f(0x1db)](getApiBaseUrl),_0x419b62=await fetch(_0x13576d+_0x4eba6f(0x1ee)+_0x47885c+'/steps/'+_0x181f34,{'method':_0x4d1b8a[_0x4eba6f(0x18d)],'headers':{'Authorization':_0x4eba6f(0x1d8)+_0x31448e,'Content-Type':_0x4d1b8a[_0x4eba6f(0x1c6)]},'body':JSON['stringify'](_0x3183ea)});if(!_0x419b62['ok']){if(_0x4d1b8a[_0x4eba6f(0x17e)](_0x4d1b8a[_0x4eba6f(0x1a8)],_0x4eba6f(0x18b)))return _0x12ce71('md5')[_0x4eba6f(0x1df)](_0x4e4cab)[_0x4eba6f(0x19e)](_0x4d1b8a[_0x4eba6f(0x1e2)]);else{const _0x500f6e=await _0x419b62['text']();throw new Error(_0x4eba6f(0x1d5)+_0x500f6e);}}}export async function getBrowserSessionSteps(_0x14da3c){const _0xa5b41=_0x3493,_0x892542={'xVDCK':function(_0x4e9f77){return _0x4e9f77();},'YzJzO':_0xa5b41(0x1c0),'QYbZB':function(_0x305cf3){return _0x305cf3();},'zKPOV':function(_0x4f8a53,_0x8f5510,_0x2acaee){return _0x4f8a53(_0x8f5510,_0x2acaee);},'ksfPv':_0xa5b41(0x1cb)},_0x2f6c7c=await _0x892542['xVDCK'](getToken);if(!_0x2f6c7c)throw new Error(_0x892542['YzJzO']);const _0x572652=_0x892542[_0xa5b41(0x18c)](getApiBaseUrl),_0x43186c=await _0x892542['zKPOV'](fetch,_0x572652+'/api/v1/mcp/browser-sessions/'+_0x14da3c+'/steps',{'method':_0x892542['ksfPv'],'headers':{'Authorization':_0xa5b41(0x1d8)+_0x2f6c7c}});if(!_0x43186c['ok']){const _0x445a03=await _0x43186c[_0xa5b41(0x1ac)]();throw new Error('Failed\x20to\x20get\x20browser\x20session\x20steps:\x20'+_0x445a03);}return _0x43186c[_0xa5b41(0x18a)]();}
@@ -1 +1 @@
1
- (function(_0x363e3e,_0x252d65){const _0x3bcd60=_0x326b,_0xf3081f=_0x363e3e();while(!![]){try{const _0x24dc8d=parseInt(_0x3bcd60(0x149))/0x1+parseInt(_0x3bcd60(0x152))/0x2+-parseInt(_0x3bcd60(0x156))/0x3*(-parseInt(_0x3bcd60(0x159))/0x4)+-parseInt(_0x3bcd60(0x158))/0x5*(-parseInt(_0x3bcd60(0x162))/0x6)+parseInt(_0x3bcd60(0x166))/0x7+parseInt(_0x3bcd60(0x153))/0x8*(parseInt(_0x3bcd60(0x145))/0x9)+parseInt(_0x3bcd60(0x15b))/0xa*(-parseInt(_0x3bcd60(0x155))/0xb);if(_0x24dc8d===_0x252d65)break;else _0xf3081f['push'](_0xf3081f['shift']());}catch(_0x38313e){_0xf3081f['push'](_0xf3081f['shift']());}}}(_0x5ad2,0x20394));import{homedir}from'os';import{join,dirname,parse}from'path';import{existsSync}from'fs';import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x14ccad=_0x326b,_0x19fd5a={'qyghh':function(_0x1cedcd,_0x278ade,_0x248988){return _0x1cedcd(_0x278ade,_0x248988);},'nsgbn':_0x14ccad(0x14f)};return process['env']['CLAUDE_CONFIG_DIR']||_0x19fd5a['qyghh'](join,homedir(),_0x19fd5a[_0x14ccad(0x15a)]);}export function getUserSkillsDir(){const _0xa55879=_0x326b,_0x1ca5fe={'ZFwvV':function(_0x583d5c,_0x5f0e86,_0x5b3158){return _0x583d5c(_0x5f0e86,_0x5b3158);},'VVzvb':function(_0x2ff01d){return _0x2ff01d();}};return _0x1ca5fe[_0xa55879(0x14d)](join,_0x1ca5fe[_0xa55879(0x14c)](getClaudeConfigDir),_0xa55879(0x15f));}export function getProjectRoot(){const _0x1db17d=_0x326b,_0x2d0311={'NiUYq':function(_0x6113f7,_0x1b5d92){return _0x6113f7(_0x1b5d92);},'oEPfN':function(_0x54ba0e,_0x16a24f){return _0x54ba0e(_0x16a24f);},'ENBOc':function(_0x29791d,_0x4308cb,_0x1c2a70){return _0x29791d(_0x4308cb,_0x1c2a70);},'lXuST':function(_0x260c87,_0x6c2169){return _0x260c87(_0x6c2169);},'eSlcp':function(_0x5c65f9,_0x502c7b,_0x1d8a09){return _0x5c65f9(_0x502c7b,_0x1d8a09);},'XVLIg':_0x1db17d(0x146)};let _0x3dc582=process[_0x1db17d(0x148)]();const _0x169e5b=_0x2d0311['NiUYq'](parse,_0x3dc582)['root'];while(_0x3dc582!==_0x169e5b){if(_0x2d0311[_0x1db17d(0x14e)](existsSync,_0x2d0311['ENBOc'](join,_0x3dc582,'.claude')))return _0x3dc582;if(_0x2d0311['lXuST'](existsSync,_0x2d0311['eSlcp'](join,_0x3dc582,_0x2d0311[_0x1db17d(0x160)])))return _0x3dc582;_0x3dc582=dirname(_0x3dc582);}return process['cwd']();}export function getProjectSkillsDir(){const _0x266d99=_0x326b,_0x5a48cb={'kfgCp':function(_0x4374ac,_0x2b1101,_0x468d50,_0x5c1d78){return _0x4374ac(_0x2b1101,_0x468d50,_0x5c1d78);},'jmpHV':function(_0x285e57){return _0x285e57();},'mWpLm':'.claude','ihbdU':'skills'};return _0x5a48cb[_0x266d99(0x15d)](join,_0x5a48cb['jmpHV'](getProjectRoot),_0x5a48cb[_0x266d99(0x157)],_0x5a48cb[_0x266d99(0x14b)]);}function _0x5ad2(){const _0x3cde40=['qSipj','kfgCp','fFUyv','skills','XVLIg','wLipg','6AXLALy','bYxVB','utf-8','stringify','557424QresWQ','parse','2314215cOTBsj','.git','MKSzi','cwd','259367tsgKFg','XjuWq','ihbdU','VVzvb','ZFwvV','oEPfN','.claude','eYXCq','user','122228tKArss','8TgIcWW','sDRAu','29513RoOeyR','3837STSTzs','mWpLm','667775BOcqBO','524swYNAf','nsgbn','3080RJyaaB'];_0x5ad2=function(){return _0x3cde40;};return _0x5ad2();}export function getSkillsDir(_0x4e1bee){const _0x3f35d4=_0x326b,_0x58370f={'sDRAu':function(_0x33db07,_0x2ce86b){return _0x33db07===_0x2ce86b;},'qSipj':function(_0x28130c){return _0x28130c();}};return _0x58370f[_0x3f35d4(0x154)](_0x4e1bee,_0x3f35d4(0x151))?_0x58370f['qSipj'](getUserSkillsDir):_0x58370f[_0x3f35d4(0x15c)](getProjectSkillsDir);}function _0x326b(_0x3cb010,_0x325c8a){_0x3cb010=_0x3cb010-0x145;const _0x5ad280=_0x5ad2();let _0x326b1b=_0x5ad280[_0x3cb010];return _0x326b1b;}export function getSettingsPath(){const _0x222616=_0x326b,_0x433afc={'fFUyv':function(_0x512b1e){return _0x512b1e();},'MKSzi':'settings.json'};return join(_0x433afc[_0x222616(0x15e)](getClaudeConfigDir),_0x433afc[_0x222616(0x147)]);}export async function loadClaudeSettings(){const _0x52fbc3=_0x326b,_0x2c96de={'OhMki':function(_0xdda257,_0x1ee804){return _0xdda257(_0x1ee804);},'XjuWq':function(_0x23f66c,_0x15f3cc,_0x2d9d7e){return _0x23f66c(_0x15f3cc,_0x2d9d7e);},'bYxVB':_0x52fbc3(0x164)},_0x4e2c14=getSettingsPath();if(!_0x2c96de['OhMki'](existsSync,_0x4e2c14))return{};try{const _0x3ff890=await _0x2c96de[_0x52fbc3(0x14a)](readFile,_0x4e2c14,_0x2c96de[_0x52fbc3(0x163)]);return JSON[_0x52fbc3(0x167)](_0x3ff890);}catch{return{};}}export async function saveClaudeSettings(_0x5cbf37){const _0x701bb5=_0x326b,_0x45dd86={'wLipg':function(_0x513ce0){return _0x513ce0();},'PXRrT':function(_0x54050f,_0x260a22){return _0x54050f(_0x260a22);},'eYXCq':function(_0x54f6f6,_0x5ae07e){return _0x54f6f6+_0x5ae07e;}},_0x4a460e=getSettingsPath(),_0x2b7dad=_0x45dd86[_0x701bb5(0x161)](getClaudeConfigDir);!_0x45dd86['PXRrT'](existsSync,_0x2b7dad)&&await mkdir(_0x2b7dad,{'recursive':!![]}),await writeFile(_0x4a460e,_0x45dd86[_0x701bb5(0x150)](JSON[_0x701bb5(0x165)](_0x5cbf37,null,0x2),'\x0a'),_0x701bb5(0x164));}
1
+ function _0x42ef(_0x490662,_0x4a80b4){_0x490662=_0x490662-0x99;const _0x415c1e=_0x415c();let _0x42eff8=_0x415c1e[_0x490662];return _0x42eff8;}(function(_0x13bbce,_0x1ac8de){const _0x2226d9=_0x42ef,_0x4545bc=_0x13bbce();while(!![]){try{const _0x422527=-parseInt(_0x2226d9(0xa1))/0x1+-parseInt(_0x2226d9(0xaa))/0x2*(parseInt(_0x2226d9(0x9b))/0x3)+parseInt(_0x2226d9(0x9c))/0x4*(-parseInt(_0x2226d9(0xa6))/0x5)+parseInt(_0x2226d9(0x9a))/0x6*(-parseInt(_0x2226d9(0xa0))/0x7)+parseInt(_0x2226d9(0xab))/0x8*(parseInt(_0x2226d9(0xb2))/0x9)+-parseInt(_0x2226d9(0x9e))/0xa+parseInt(_0x2226d9(0xa5))/0xb;if(_0x422527===_0x1ac8de)break;else _0x4545bc['push'](_0x4545bc['shift']());}catch(_0x2440fb){_0x4545bc['push'](_0x4545bc['shift']());}}}(_0x415c,0x41acf));import{homedir}from'os';import{join,dirname,parse}from'path';function _0x415c(){const _0x2c9025=['ELSLr','stringify','12643719zgDWjL','5IjgNwF','cwd','ZbsWr','.claude','8428FLIBek','2158232NihGgc','qHFIR','BeVZo','env','jbJed','JuQmn','UyWSs','9LyQNUI','cSQBu','40638oIBKAc','45IBioBX','663724liRKbL','utf-8','2839000DZFJVz','skills','399XUyUxt','251099MkffHS','user'];_0x415c=function(){return _0x2c9025;};return _0x415c();}import{existsSync}from'fs';import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x4e3633=_0x42ef,_0x23e343={'ELSLr':function(_0x4890bc){return _0x4890bc();}};return process[_0x4e3633(0xae)]['CLAUDE_CONFIG_DIR']||join(_0x23e343[_0x4e3633(0xa3)](homedir),_0x4e3633(0xa9));}export function getUserSkillsDir(){const _0x396cfa=_0x42ef,_0x389083={'UyWSs':function(_0x45baa3,_0x1f5d11,_0x18f6ca){return _0x45baa3(_0x1f5d11,_0x18f6ca);}};return _0x389083[_0x396cfa(0xb1)](join,getClaudeConfigDir(),_0x396cfa(0x9f));}export function getProjectRoot(){const _0x431c96=_0x42ef,_0x13da2e={'hhfLw':function(_0x235670,_0x42fca0){return _0x235670(_0x42fca0);},'ZbsWr':function(_0x3b4502,_0x3aa376){return _0x3b4502!==_0x3aa376;},'WpZvc':function(_0x54faa7,_0x14ced5){return _0x54faa7(_0x14ced5);},'BeVZo':function(_0x5895c5,_0x5a7b2b,_0x448b0f){return _0x5895c5(_0x5a7b2b,_0x448b0f);}};let _0x184078=process[_0x431c96(0xa7)]();const _0x2bd9cf=_0x13da2e['hhfLw'](parse,_0x184078)['root'];while(_0x13da2e[_0x431c96(0xa8)](_0x184078,_0x2bd9cf)){if(_0x13da2e['WpZvc'](existsSync,_0x13da2e[_0x431c96(0xad)](join,_0x184078,_0x431c96(0xa9))))return _0x184078;if(existsSync(join(_0x184078,'.git')))return _0x184078;_0x184078=dirname(_0x184078);}return process['cwd']();}export function getProjectSkillsDir(){const _0x4f76e1=_0x42ef,_0x18456b={'JuQmn':_0x4f76e1(0x9f)};return join(getProjectRoot(),'.claude',_0x18456b[_0x4f76e1(0xb0)]);}export function getSkillsDir(_0x3a01d4){const _0x8ac640=_0x42ef,_0x190515={'zLeFh':function(_0x3c2941){return _0x3c2941();}};return _0x3a01d4===_0x8ac640(0xa2)?getUserSkillsDir():_0x190515['zLeFh'](getProjectSkillsDir);}export function getSettingsPath(){const _0x394d97=_0x42ef,_0x625ad9={'TgFBf':function(_0x13ac20,_0x187fc5,_0x47244b){return _0x13ac20(_0x187fc5,_0x47244b);},'cSQBu':function(_0x55996b){return _0x55996b();}};return _0x625ad9['TgFBf'](join,_0x625ad9[_0x394d97(0x99)](getClaudeConfigDir),'settings.json');}export async function loadClaudeSettings(){const _0x14c662=_0x42ef,_0x4af0bd={'sTiTK':_0x14c662(0x9d)},_0x2a89fb=getSettingsPath();if(!existsSync(_0x2a89fb))return{};try{const _0x5f2d50=await readFile(_0x2a89fb,_0x4af0bd['sTiTK']);return JSON['parse'](_0x5f2d50);}catch{return{};}}export async function saveClaudeSettings(_0x2206b4){const _0x1ea534=_0x42ef,_0x58941d={'jbJed':function(_0x102627,_0x382bf9){return _0x102627(_0x382bf9);},'AdMcY':function(_0x4cccaf,_0x242419,_0xe52712){return _0x4cccaf(_0x242419,_0xe52712);},'qHFIR':function(_0x1d4125,_0x207046,_0x2d3c39,_0x1efada){return _0x1d4125(_0x207046,_0x2d3c39,_0x1efada);}},_0x55cc82=getSettingsPath(),_0x56f86e=getClaudeConfigDir();!_0x58941d[_0x1ea534(0xaf)](existsSync,_0x56f86e)&&await _0x58941d['AdMcY'](mkdir,_0x56f86e,{'recursive':!![]}),await _0x58941d[_0x1ea534(0xac)](writeFile,_0x55cc82,JSON[_0x1ea534(0xa4)](_0x2206b4,null,0x2)+'\x0a',_0x1ea534(0x9d));}
@@ -1 +1 @@
1
- (function(_0x1c3248,_0x12a3be){const _0x39abb1=_0x190f,_0x353b72=_0x1c3248();while(!![]){try{const _0x2d1c68=-parseInt(_0x39abb1(0x1c7))/0x1*(-parseInt(_0x39abb1(0x1bc))/0x2)+parseInt(_0x39abb1(0x1cb))/0x3+-parseInt(_0x39abb1(0x1c1))/0x4*(parseInt(_0x39abb1(0x1b9))/0x5)+parseInt(_0x39abb1(0x1c8))/0x6+-parseInt(_0x39abb1(0x1b8))/0x7+parseInt(_0x39abb1(0x1d3))/0x8+-parseInt(_0x39abb1(0x1bb))/0x9*(parseInt(_0x39abb1(0x1b3))/0xa);if(_0x2d1c68===_0x12a3be)break;else _0x353b72['push'](_0x353b72['shift']());}catch(_0x666967){_0x353b72['push'](_0x353b72['shift']());}}}(_0x3562,0x4f973));import{spawn}from'child_process';export function runClaudeCommand(_0x46b2f6,_0x5a849e){const _0x4a774d={'ZzEsW':function(_0x2b6239,_0xd7047d){return _0x2b6239===_0xd7047d;},'MutYk':'inherit','PhVVP':function(_0x62dca7,_0x141e64,_0xa37710,_0x119387){return _0x62dca7(_0x141e64,_0xa37710,_0x119387);},'xHtZd':'data'};return new Promise(_0x4144ed=>{const _0x245386=_0x190f,_0x13d8c8={'GcWgv':function(_0x5de859,_0x3e1681){return _0x4a774d['ZzEsW'](_0x5de859,_0x3e1681);},'cEkyl':function(_0x27da7e,_0x2830eb){return _0x27da7e(_0x2830eb);}},_0x2bf8b3=_0x5a849e?.[_0x245386(0x1cc)]?_0x245386(0x1c0):_0x4a774d[_0x245386(0x1cf)],_0x29fba1=_0x4a774d[_0x245386(0x1b6)](spawn,_0x245386(0x1cd),_0x46b2f6,{'stdio':_0x2bf8b3});let _0xf83dc9='';_0x5a849e?.['captureOutput']&&_0x29fba1[_0x245386(0x1d2)]&&_0x29fba1[_0x245386(0x1d2)]['on'](_0x4a774d['xHtZd'],_0x2159ce=>{const _0x5ef976=_0x245386;_0xf83dc9+=_0x2159ce[_0x5ef976(0x1c2)]();}),_0x5a849e?.[_0x245386(0x1cc)]&&_0x29fba1[_0x245386(0x1be)]&&_0x29fba1['stderr']['on'](_0x245386(0x1b4),_0x4d87be=>{const _0x1d07c2=_0x245386;_0xf83dc9+=_0x4d87be[_0x1d07c2(0x1c2)]();}),_0x29fba1['on']('close',_0x4ea438=>{const _0x533d55=_0x245386;_0x13d8c8[_0x533d55(0x1d0)](_0x4ea438,0x0)?_0x13d8c8['cEkyl'](_0x4144ed,{'success':!![],'output':_0xf83dc9}):_0x13d8c8[_0x533d55(0x1d4)](_0x4144ed,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x4ea438,'output':_0xf83dc9});}),_0x29fba1['on']('error',_0xd0f1a3=>{const _0x5a5b17=_0x245386;_0x13d8c8[_0x5a5b17(0x1d4)](_0x4144ed,{'success':![],'error':_0xd0f1a3['message']});});});}function _0x3562(){const _0x1abd08=['stdout','983528cTdWGy','cEkyl','10FDeDyZ','data','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','PhVVP','[\x5cs\x5cS]*?(enabled|disabled)','2028999Leknuo','29185OkeCGJ','list','4029687KHdVcx','916kuGgPw','marketplace','stderr','KjFhE','pipe','268xZDZlO','toString','version','plugin','success','output','1367LQrEje','327318aDRERT','enabled','TwKLm','1953306iVEZHo','captureOutput','claude','match','MutYk','GcWgv','scope'];_0x3562=function(){return _0x1abd08;};return _0x3562();}function _0x190f(_0x569585,_0x18dc61){_0x569585=_0x569585-0x1b3;const _0x3562d0=_0x3562();let _0x190f74=_0x3562d0[_0x569585];return _0x190f74;}export async function isMarketplaceAdded(_0x2a7a48){const _0x3f0ea8=_0x190f,_0x310faa={'TwKLm':function(_0x62a9fb,_0x5847cd,_0x1f9193){return _0x62a9fb(_0x5847cd,_0x1f9193);},'KjFhE':_0x3f0ea8(0x1ba)},_0x4f0f76=await _0x310faa[_0x3f0ea8(0x1ca)](runClaudeCommand,[_0x3f0ea8(0x1c4),_0x3f0ea8(0x1bd),_0x310faa[_0x3f0ea8(0x1bf)]],{'captureOutput':!![]});if(!_0x4f0f76[_0x3f0ea8(0x1c5)]||!_0x4f0f76[_0x3f0ea8(0x1c6)])return![];return _0x4f0f76['output']['includes'](_0x2a7a48);}export async function isPluginInstalled(_0x2ec273){const _0x240f44=_0x190f,_0x5ed046=await runClaudeCommand([_0x240f44(0x1c4),_0x240f44(0x1ba)],{'captureOutput':!![]});if(!_0x5ed046['success']||!_0x5ed046['output'])return![];return _0x5ed046[_0x240f44(0x1c6)]['includes'](_0x2ec273);}export async function getPluginInfo(_0x5dce05){const _0x4246ed=_0x190f,_0x2282d7={'oQoLI':'list','fWCRV':_0x4246ed(0x1c9)},_0x17b8f9=await runClaudeCommand(['plugin',_0x2282d7['oQoLI']],{'captureOutput':!![]});if(!_0x17b8f9[_0x4246ed(0x1c5)]||!_0x17b8f9[_0x4246ed(0x1c6)])return null;if(!_0x17b8f9['output']['includes'](_0x5dce05))return null;const _0x150029={'name':_0x5dce05},_0x2ad685=_0x17b8f9[_0x4246ed(0x1c6)][_0x4246ed(0x1ce)](new RegExp(_0x5dce05+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0x2ad685&&(_0x150029[_0x4246ed(0x1d1)]=_0x2ad685[0x1]['toLowerCase']());const _0x1f6e81=_0x17b8f9[_0x4246ed(0x1c6)]['match'](new RegExp(_0x5dce05+_0x4246ed(0x1b5),'i'));_0x1f6e81&&(_0x150029[_0x4246ed(0x1c3)]=_0x1f6e81[0x1]);const _0x538718=_0x17b8f9[_0x4246ed(0x1c6)][_0x4246ed(0x1ce)](new RegExp(_0x5dce05+_0x4246ed(0x1b7),'i'));return _0x538718&&(_0x150029['enabled']=_0x538718[0x1]['toLowerCase']()===_0x2282d7['fWCRV']),_0x150029;}
1
+ (function(_0x48e52d,_0x4cf3fe){const _0x91fe64=_0x5260,_0x15ca52=_0x48e52d();while(!![]){try{const _0x8cdec9=-parseInt(_0x91fe64(0x1f6))/0x1*(parseInt(_0x91fe64(0x1fc))/0x2)+parseInt(_0x91fe64(0x1fb))/0x3+-parseInt(_0x91fe64(0x201))/0x4*(-parseInt(_0x91fe64(0x1f7))/0x5)+parseInt(_0x91fe64(0x212))/0x6*(parseInt(_0x91fe64(0x1f2))/0x7)+parseInt(_0x91fe64(0x200))/0x8*(parseInt(_0x91fe64(0x1ef))/0x9)+parseInt(_0x91fe64(0x20f))/0xa*(parseInt(_0x91fe64(0x1f4))/0xb)+-parseInt(_0x91fe64(0x210))/0xc;if(_0x8cdec9===_0x4cf3fe)break;else _0x15ca52['push'](_0x15ca52['shift']());}catch(_0xbb2c){_0x15ca52['push'](_0x15ca52['shift']());}}}(_0x2d0b,0x84f33));import{spawn}from'child_process';export function runClaudeCommand(_0x5ed4ff,_0x4de74d){const _0x2d1e6b=_0x5260,_0xb8ade0={'sBXkH':_0x2d1e6b(0x20c),'ebKJS':function(_0x85dcd9,_0x235da8,_0x3cdc4d,_0x1b2579){return _0x85dcd9(_0x235da8,_0x3cdc4d,_0x1b2579);},'KNskf':'data','vYxOB':_0x2d1e6b(0x1f0),'NCsnE':_0x2d1e6b(0x1ff)};return new Promise(_0x593023=>{const _0x2983a4=_0x2d1e6b,_0x337edf=_0x4de74d?.['captureOutput']?'pipe':_0xb8ade0[_0x2983a4(0x206)],_0x7f4506=_0xb8ade0[_0x2983a4(0x204)](spawn,_0x2983a4(0x209),_0x5ed4ff,{'stdio':_0x337edf});let _0x580fbd='';_0x4de74d?.['captureOutput']&&_0x7f4506[_0x2983a4(0x1f1)]&&_0x7f4506[_0x2983a4(0x1f1)]['on'](_0xb8ade0['KNskf'],_0x5812c6=>{const _0x4fd3e8=_0x2983a4;_0x580fbd+=_0x5812c6[_0x4fd3e8(0x211)]();}),_0x4de74d?.['captureOutput']&&_0x7f4506[_0x2983a4(0x20e)]&&_0x7f4506['stderr']['on']('data',_0x50920e=>{const _0x720515=_0x2983a4;_0x580fbd+=_0x50920e[_0x720515(0x211)]();}),_0x7f4506['on'](_0xb8ade0[_0x2983a4(0x20b)],_0x285d4b=>{const _0x2c33f1=_0x2983a4;_0x285d4b===0x0?_0x593023({'success':!![],'output':_0x580fbd}):_0x593023({'success':![],'error':_0x2c33f1(0x1fd)+_0x285d4b,'output':_0x580fbd});}),_0x7f4506['on'](_0xb8ade0[_0x2983a4(0x20a)],_0x375682=>{const _0x510392=_0x2983a4;_0x593023({'success':![],'error':_0x375682[_0x510392(0x1f9)]});});});}export async function isMarketplaceAdded(_0x159aef){const _0x1acbb3=_0x5260,_0x56312a={'FeiFA':function(_0x4e769b,_0x445ef3,_0x4368ee){return _0x4e769b(_0x445ef3,_0x4368ee);},'AsGQR':_0x1acbb3(0x213)},_0x4e30cd=await _0x56312a['FeiFA'](runClaudeCommand,['plugin','marketplace',_0x56312a['AsGQR']],{'captureOutput':!![]});if(!_0x4e30cd['success']||!_0x4e30cd['output'])return![];return _0x4e30cd['output']['includes'](_0x159aef);}function _0x5260(_0x1c9d75,_0x322e73){_0x1c9d75=_0x1c9d75-0x1ef;const _0x2d0b0f=_0x2d0b();let _0x526055=_0x2d0b0f[_0x1c9d75];return _0x526055;}function _0x2d0b(){const _0xdbb526=['48342cnJTSs','Command\x20exited\x20with\x20code\x20','XaEsE','error','1736otOoeK','2981324eMUzKk','BEoPX','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','ebKJS','match','sBXkH','success','output','claude','NCsnE','vYxOB','inherit','toLowerCase','stderr','50EdOOUA','18903396hlYAmt','toString','30OtGpcM','list','[\x5cs\x5cS]*?(enabled|disabled)','5301IxqJmI','close','stdout','346157YnWhQX','enabled','821502hGaTzK','kjiRL','6hModHy','5vGfrhZ','version','message','plugin','2313189HwErku'];_0x2d0b=function(){return _0xdbb526;};return _0x2d0b();}export async function isPluginInstalled(_0x316188){const _0xc84896=_0x5260,_0x30a389={'kjiRL':_0xc84896(0x213)},_0x38b8a3=await runClaudeCommand([_0xc84896(0x1fa),_0x30a389[_0xc84896(0x1f5)]],{'captureOutput':!![]});if(!_0x38b8a3[_0xc84896(0x207)]||!_0x38b8a3[_0xc84896(0x208)])return![];return _0x38b8a3[_0xc84896(0x208)]['includes'](_0x316188);}export async function getPluginInfo(_0x35e1d2){const _0x2fa83d=_0x5260,_0x180c0e={'XaEsE':function(_0x32e0d9,_0x44f2d5,_0x45bb04){return _0x32e0d9(_0x44f2d5,_0x45bb04);},'BEoPX':_0x2fa83d(0x213)},_0x100fea=await _0x180c0e[_0x2fa83d(0x1fe)](runClaudeCommand,[_0x2fa83d(0x1fa),_0x180c0e[_0x2fa83d(0x202)]],{'captureOutput':!![]});if(!_0x100fea['success']||!_0x100fea['output'])return null;if(!_0x100fea['output']['includes'](_0x35e1d2))return null;const _0x549671={'name':_0x35e1d2},_0x55d29f=_0x100fea['output'][_0x2fa83d(0x205)](new RegExp(_0x35e1d2+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0x55d29f&&(_0x549671['scope']=_0x55d29f[0x1][_0x2fa83d(0x20d)]());const _0xa51f9=_0x100fea['output'][_0x2fa83d(0x205)](new RegExp(_0x35e1d2+_0x2fa83d(0x203),'i'));_0xa51f9&&(_0x549671[_0x2fa83d(0x1f8)]=_0xa51f9[0x1]);const _0x32fbac=_0x100fea[_0x2fa83d(0x208)][_0x2fa83d(0x205)](new RegExp(_0x35e1d2+_0x2fa83d(0x214),'i'));return _0x32fbac&&(_0x549671[_0x2fa83d(0x1f3)]=_0x32fbac[0x1]['toLowerCase']()===_0x2fa83d(0x1f3)),_0x549671;}
@@ -1 +1 @@
1
- const _0x5c2988=_0x1911;(function(_0x191b94,_0x9cf0ad){const _0xd8c2b9=_0x1911,_0x17698f=_0x191b94();while(!![]){try{const _0x3e5d4b=parseInt(_0xd8c2b9(0xb6))/0x1*(-parseInt(_0xd8c2b9(0xc8))/0x2)+parseInt(_0xd8c2b9(0xbb))/0x3*(-parseInt(_0xd8c2b9(0xc0))/0x4)+-parseInt(_0xd8c2b9(0xb2))/0x5+-parseInt(_0xd8c2b9(0xbe))/0x6+parseInt(_0xd8c2b9(0xc3))/0x7*(-parseInt(_0xd8c2b9(0xb4))/0x8)+-parseInt(_0xd8c2b9(0xc7))/0x9*(parseInt(_0xd8c2b9(0xba))/0xa)+parseInt(_0xd8c2b9(0xb3))/0xb*(parseInt(_0xd8c2b9(0xc4))/0xc);if(_0x3e5d4b===_0x9cf0ad)break;else _0x17698f['push'](_0x17698f['shift']());}catch(_0xf9669a){_0x17698f['push'](_0x17698f['shift']());}}}(_0x1c5e,0x3ae0f));import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';const ALGORITHM=_0x5c2988(0xbf),SALT='ranger-auth-encryption',KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;export function deriveKey(_0x23b87d){const _0x53fefa=_0x5c2988,_0x157f8b={'QKYGQ':_0x53fefa(0xb5)};return pbkdf2Sync(_0x23b87d,SALT,0x186a0,KEY_LENGTH,_0x157f8b[_0x53fefa(0xb7)]);}function _0x1c5e(){const _0x1ab75b=['24819frLBBJ','concat','update','1715520Edelxf','aes-256-gcm','96OfASlc','getAuthTag','final','2147495NfuSiP','701292ITCzsA','IjCKy','KDePA','47943sjuokM','42104wfUjvw','979025wYeoyE','253lJrGRa','8UXsMSX','sha256','5hKjvVm','QKYGQ','subarray','utf8','20PifFgq'];_0x1c5e=function(){return _0x1ab75b;};return _0x1c5e();}export function encrypt(_0x3a404d,_0xb35863){const _0x203354=_0x5c2988,_0x271c41={'naFJR':function(_0x421761,_0x4ced8d){return _0x421761(_0x4ced8d);},'IjCKy':_0x203354(0xb9)},_0x5d018a=deriveKey(_0xb35863),_0x434fb7=_0x271c41['naFJR'](randomBytes,IV_LENGTH),_0x2c641b=createCipheriv(ALGORITHM,_0x5d018a,_0x434fb7),_0x55682b=Buffer[_0x203354(0xbc)]([_0x2c641b[_0x203354(0xbd)](_0x3a404d,_0x271c41[_0x203354(0xc5)]),_0x2c641b['final']()]),_0x1d3c27=_0x2c641b[_0x203354(0xc1)]();return Buffer[_0x203354(0xbc)]([_0x434fb7,_0x1d3c27,_0x55682b]);}function _0x1911(_0x1661db,_0x43de0c){_0x1661db=_0x1661db-0xb2;const _0x1c5e5c=_0x1c5e();let _0x19114e=_0x1c5e5c[_0x1661db];return _0x19114e;}export function decrypt(_0x10403b,_0x5c91eb){const _0x24985b=_0x5c2988,_0x2fb642={'gvVDI':function(_0x36d045,_0x46a779){return _0x36d045+_0x46a779;},'KDePA':function(_0x5ce251,_0x27c92e,_0x595e81,_0x5d5bae){return _0x5ce251(_0x27c92e,_0x595e81,_0x5d5bae);},'hJMFK':function(_0x28f418,_0x46c53f){return _0x28f418+_0x46c53f;},'WbNXn':'utf8'},_0x13820d=deriveKey(_0x5c91eb),_0x2fb208=_0x10403b[_0x24985b(0xb8)](0x0,IV_LENGTH),_0x328365=_0x10403b[_0x24985b(0xb8)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x29cbeb=_0x10403b['subarray'](_0x2fb642['gvVDI'](IV_LENGTH,TAG_LENGTH)),_0x45d718=_0x2fb642[_0x24985b(0xc6)](createDecipheriv,ALGORITHM,_0x13820d,_0x2fb208);return _0x45d718['setAuthTag'](_0x328365),_0x2fb642['hJMFK'](_0x45d718['update'](_0x29cbeb),_0x45d718[_0x24985b(0xc2)](_0x2fb642['WbNXn']));}
1
+ function _0x2fc8(){const _0x1633cd=['EhJSx','966420GEnsDU','34776jMYhBU','100oKJKnH','update','199617LeFMDd','concat','2682351WeoeSY','final','10YSGNzL','346661fDaDMl','20jqHjYi','dgobf','sha256','103690VIHPVN','utf8','11206778SqSlrU','32aAxURP','aes-256-gcm'];_0x2fc8=function(){return _0x1633cd;};return _0x2fc8();}const _0x3112fb=_0x1b2b;(function(_0xe60fa8,_0x1cf7eb){const _0x2a76c5=_0x1b2b,_0x323e3d=_0xe60fa8();while(!![]){try{const _0x4a7298=-parseInt(_0x2a76c5(0x1f4))/0x1+-parseInt(_0x2a76c5(0x1fd))/0x2*(-parseInt(_0x2a76c5(0x1f7))/0x3)+parseInt(_0x2a76c5(0x1f5))/0x4*(-parseInt(_0x2a76c5(0x1ed))/0x5)+-parseInt(_0x2a76c5(0x1f3))/0x6+parseInt(_0x2a76c5(0x1fc))/0x7*(-parseInt(_0x2a76c5(0x1f0))/0x8)+-parseInt(_0x2a76c5(0x1f9))/0x9+-parseInt(_0x2a76c5(0x1fb))/0xa*(-parseInt(_0x2a76c5(0x1ef))/0xb);if(_0x4a7298===_0x1cf7eb)break;else _0x323e3d['push'](_0x323e3d['shift']());}catch(_0x14e776){_0x323e3d['push'](_0x323e3d['shift']());}}}(_0x2fc8,0x73aa1));import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';function _0x1b2b(_0x296051,_0x5f40bc){_0x296051=_0x296051-0x1ec;const _0x2fc8a9=_0x2fc8();let _0x1b2b52=_0x2fc8a9[_0x296051];return _0x1b2b52;}const ALGORITHM=_0x3112fb(0x1f1),SALT='ranger-auth-encryption',KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;export function deriveKey(_0x207f4d){const _0x3f544c=_0x3112fb,_0x10fb96={'dgobf':function(_0x23d35f,_0x410065,_0x27db21,_0x1949f8,_0x5e7481,_0xb3925){return _0x23d35f(_0x410065,_0x27db21,_0x1949f8,_0x5e7481,_0xb3925);}};return _0x10fb96[_0x3f544c(0x1fe)](pbkdf2Sync,_0x207f4d,SALT,0x186a0,KEY_LENGTH,_0x3f544c(0x1ec));}export function encrypt(_0x1d2d55,_0x11e1cc){const _0x12321a=_0x3112fb,_0x16e000={'SZhlP':_0x12321a(0x1ee)},_0x28f9d4=deriveKey(_0x11e1cc),_0xeb58f=randomBytes(IV_LENGTH),_0xe13797=createCipheriv(ALGORITHM,_0x28f9d4,_0xeb58f),_0x33218b=Buffer[_0x12321a(0x1f8)]([_0xe13797[_0x12321a(0x1f6)](_0x1d2d55,_0x16e000['SZhlP']),_0xe13797[_0x12321a(0x1fa)]()]),_0x164c09=_0xe13797['getAuthTag']();return Buffer['concat']([_0xeb58f,_0x164c09,_0x33218b]);}export function decrypt(_0x22fe0f,_0x36c8cb){const _0x386fe6=_0x3112fb,_0x46c027={'EhJSx':function(_0x145ecc,_0x3a24fb){return _0x145ecc+_0x3a24fb;}},_0x5eba69=deriveKey(_0x36c8cb),_0x494fd6=_0x22fe0f['subarray'](0x0,IV_LENGTH),_0x4514fc=_0x22fe0f['subarray'](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x350f03=_0x22fe0f['subarray'](IV_LENGTH+TAG_LENGTH),_0x717bff=createDecipheriv(ALGORITHM,_0x5eba69,_0x494fd6);return _0x717bff['setAuthTag'](_0x4514fc),_0x46c027[_0x386fe6(0x1f2)](_0x717bff[_0x386fe6(0x1f6)](_0x350f03),_0x717bff[_0x386fe6(0x1fa)]('utf8'));}
@@ -1 +1 @@
1
- const _0x5b6495=_0x143c;(function(_0x5780a9,_0x2b7490){const _0x437ca6=_0x143c,_0x216485=_0x5780a9();while(!![]){try{const _0x2d1ff6=parseInt(_0x437ca6(0x215))/0x1*(-parseInt(_0x437ca6(0x220))/0x2)+parseInt(_0x437ca6(0x1f5))/0x3*(-parseInt(_0x437ca6(0x21c))/0x4)+parseInt(_0x437ca6(0x207))/0x5*(parseInt(_0x437ca6(0x1f9))/0x6)+-parseInt(_0x437ca6(0x21e))/0x7+parseInt(_0x437ca6(0x1f4))/0x8*(-parseInt(_0x437ca6(0x222))/0x9)+parseInt(_0x437ca6(0x20d))/0xa*(-parseInt(_0x437ca6(0x21a))/0xb)+-parseInt(_0x437ca6(0x205))/0xc*(-parseInt(_0x437ca6(0x1ff))/0xd);if(_0x2d1ff6===_0x2b7490)break;else _0x216485['push'](_0x216485['shift']());}catch(_0x339011){_0x216485['push'](_0x216485['shift']());}}}(_0x3b58,0xea831));function _0x3b58(){const _0x10b2c4=['[desire-path]\x20Failed\x20to\x20send:\x20','11158qVhdlu','Missing\x20required\x20argument','ZPMms','catch','error','14908366IitMmm','stringify','232RQWSCb','Authorization','5520977WiNHvS','no_token','184CtzMyk','slice','1656855xxgZDR','toLowerCase','Not\x20enough\x20non-option\x20arguments','startsWith','RZMnp','has_token','24KFHgry','76218LnTKtC','--api-key','POST','DEBUG','2472imiRuQ','length','OSgCe','env','includes','unknown','6601595aqsFQB','rawCommand','--token','[desire-path]\x20Sending\x20log\x20to\x20','indexOf','missing_required_argument','108QfXhfS','bWKqZ','19255vTEVvQ','invalid_option_value','rfAWm','hbmEn','[REDACTED]','/api/v1/mcp/desire-path-logs','10PYfqTl','has','push','Bearer\x20','VGLAa','Invalid\x20values','featureId'];_0x3b58=function(){return _0x10b2c4;};return _0x3b58();}function _0x143c(_0xab5d22,_0xec9677){_0xab5d22=_0xab5d22-0x1f1;const _0x3b5849=_0x3b58();let _0x143c4c=_0x3b5849[_0xab5d22];return _0x143c4c;}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set([_0x5b6495(0x201),'-t','--secret',_0x5b6495(0x1f6),'--apikey','--key','--password','--pass','--auth','--authorization','--header','--cookie','--credentials']),TOKEN_PATTERNS=[/^(ranger_|rngr_|sk-|pk-|api[_-]?)/i,/^[a-zA-Z0-9_-]{32,}$/,/^eyJ[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+/];function looksLikeToken(_0x521d92){return TOKEN_PATTERNS['some'](_0x3f3fb3=>_0x3f3fb3['test'](_0x521d92));}export function sanitizeArgs(_0x20dde7){const _0x3dd0a5=_0x5b6495,_0x4e48aa={'ZPMms':function(_0x205863,_0x12bead){return _0x205863<_0x12bead;},'TaVLl':_0x3dd0a5(0x20b)},_0x52cd4b=[];let _0x3f9e4e=![];for(let _0x47f799=0x0;_0x4e48aa[_0x3dd0a5(0x217)](_0x47f799,_0x20dde7[_0x3dd0a5(0x1fa)]);_0x47f799++){const _0x3b3bea=_0x20dde7[_0x47f799];if(_0x3f9e4e){_0x52cd4b[_0x3dd0a5(0x20f)](_0x4e48aa['TaVLl']),_0x3f9e4e=![];continue;}if(_0x3b3bea[_0x3dd0a5(0x1f1)]('--')||_0x3b3bea[_0x3dd0a5(0x1f1)]('-')){const _0x48da36=_0x3b3bea[_0x3dd0a5(0x203)]('=');if(_0x48da36!==-0x1){const _0x20053e=_0x3b3bea[_0x3dd0a5(0x221)](0x0,_0x48da36)[_0x3dd0a5(0x223)]();if(SENSITIVE_FLAGS[_0x3dd0a5(0x20e)](_0x20053e)){_0x52cd4b[_0x3dd0a5(0x20f)](_0x3b3bea['slice'](0x0,_0x48da36)+'=[REDACTED]');continue;}}else{const _0x426b3b=_0x3b3bea[_0x3dd0a5(0x223)]();SENSITIVE_FLAGS['has'](_0x426b3b)&&(_0x3f9e4e=!![]);}_0x52cd4b['push'](_0x3b3bea);}else looksLikeToken(_0x3b3bea)?_0x52cd4b['push'](_0x3dd0a5(0x20b)):_0x52cd4b['push'](_0x3b3bea);}return _0x52cd4b['join']('\x20');}export async function logDesirePath(_0x4588fa){const _0x5e850a=_0x5b6495,_0x448dca={'VGLAa':function(_0x2189b0){return _0x2189b0();},'RZMnp':function(_0x11befd){return _0x11befd();},'OSgCe':function(_0x38fc0a,_0x347b01,_0x5cf537){return _0x38fc0a(_0x347b01,_0x5cf537);},'rfAWm':_0x5e850a(0x1f7)};try{const _0x57c0a9=await _0x448dca[_0x5e850a(0x211)](getToken)[_0x5e850a(0x218)](()=>null),_0x49ce50=_0x448dca[_0x5e850a(0x1f2)](getApiBaseUrl),_0xa6f682=_0x448dca['RZMnp'](getCurrentVersion),_0x5e8212=_0x57c0a9?_0x5e850a(0x1f3):_0x5e850a(0x21f),_0x136bc8={..._0x4588fa['metadata'],'authStatus':_0x5e8212,'isTty':process['stdout']['isTTY']??![]},_0x5e55cf={'Content-Type':'application/json'};_0x57c0a9&&(_0x5e55cf[_0x5e850a(0x21d)]=_0x5e850a(0x210)+_0x57c0a9);const _0xcedec2={'rawCommand':_0x4588fa[_0x5e850a(0x200)],'errorMessage':_0x4588fa['errorMessage'],'errorType':_0x4588fa['errorType'],'featureId':_0x4588fa[_0x5e850a(0x213)],'sessionId':_0x4588fa['sessionId'],'metadata':_0x136bc8,'cliVersion':_0xa6f682};process[_0x5e850a(0x1fc)][_0x5e850a(0x1f8)]&&(console['error'](_0x5e850a(0x202)+_0x49ce50+'/api/v1/mcp/desire-path-logs'),console[_0x5e850a(0x219)]('[desire-path]\x20Payload:\x20'+JSON['stringify'](_0xcedec2,null,0x2))),await _0x448dca[_0x5e850a(0x1fb)](fetch,_0x49ce50+_0x5e850a(0x20c),{'method':_0x448dca[_0x5e850a(0x209)],'headers':_0x5e55cf,'body':JSON[_0x5e850a(0x21b)](_0xcedec2)});}catch(_0x466df0){process['env']['DEBUG']&&console['error'](_0x5e850a(0x214)+_0x466df0);}}export function getErrorType(_0x47b8b0,_0x39d160){const _0x3010fc=_0x5b6495,_0x2682bf={'yxIPQ':'Unknown\x20command','kxiiQ':_0x3010fc(0x224),'hbmEn':_0x3010fc(0x204),'OaJtT':_0x3010fc(0x212),'iSyjU':_0x3010fc(0x208),'bWKqZ':_0x3010fc(0x216)};if(_0x39d160)return'runtime_error';if(!_0x47b8b0)return _0x3010fc(0x1fe);if(_0x47b8b0[_0x3010fc(0x1fd)](_0x2682bf['yxIPQ']))return'unknown_command';if(_0x47b8b0[_0x3010fc(0x1fd)]('Unknown\x20argument'))return'unknown_argument';if(_0x47b8b0[_0x3010fc(0x1fd)](_0x2682bf['kxiiQ']))return _0x2682bf[_0x3010fc(0x20a)];if(_0x47b8b0[_0x3010fc(0x1fd)](_0x2682bf['OaJtT']))return _0x2682bf['iSyjU'];if(_0x47b8b0[_0x3010fc(0x1fd)](_0x2682bf[_0x3010fc(0x206)]))return'missing_option';return'syntax_error';}
1
+ const _0x2fe001=_0xf1a1;(function(_0x290da1,_0x5e118e){const _0x5719d9=_0xf1a1,_0x1a7770=_0x290da1();while(!![]){try{const _0x30547e=-parseInt(_0x5719d9(0x8d))/0x1+parseInt(_0x5719d9(0x84))/0x2*(-parseInt(_0x5719d9(0x86))/0x3)+parseInt(_0x5719d9(0x9f))/0x4*(parseInt(_0x5719d9(0x99))/0x5)+parseInt(_0x5719d9(0x7d))/0x6*(-parseInt(_0x5719d9(0x7b))/0x7)+parseInt(_0x5719d9(0x90))/0x8*(parseInt(_0x5719d9(0x8c))/0x9)+parseInt(_0x5719d9(0x87))/0xa+parseInt(_0x5719d9(0x9c))/0xb*(parseInt(_0x5719d9(0x8f))/0xc);if(_0x30547e===_0x5e118e)break;else _0x1a7770['push'](_0x1a7770['shift']());}catch(_0x29587c){_0x1a7770['push'](_0x1a7770['shift']());}}}(_0x3e69,0x4715d));function _0xf1a1(_0x2b3496,_0x48d557){_0x2b3496=_0x2b3496-0x73;const _0x3e698e=_0x3e69();let _0xf1a1d6=_0x3e698e[_0x2b3496];return _0xf1a1d6;}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set([_0x2fe001(0x97),'-t',_0x2fe001(0xa2),'--api-key','--apikey','--key','--password',_0x2fe001(0x9e),'--auth',_0x2fe001(0xa3),_0x2fe001(0x88),'--cookie','--credentials']),TOKEN_PATTERNS=[/^(ranger_|rngr_|sk-|pk-|api[_-]?)/i,/^[a-zA-Z0-9_-]{32,}$/,/^eyJ[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+/];function looksLikeToken(_0x178409){return TOKEN_PATTERNS['some'](_0x3964c9=>_0x3964c9['test'](_0x178409));}export function sanitizeArgs(_0x448585){const _0x44feff=_0x2fe001,_0xff007e={'rfqym':'[REDACTED]','kaBfE':function(_0xeea59a,_0xeaf81d){return _0xeea59a(_0xeaf81d);}},_0x2ad618=[];let _0x3137d4=![];for(let _0x2bed67=0x0;_0x2bed67<_0x448585[_0x44feff(0x8b)];_0x2bed67++){const _0x4cd24b=_0x448585[_0x2bed67];if(_0x3137d4){_0x2ad618[_0x44feff(0x9b)](_0xff007e['rfqym']),_0x3137d4=![];continue;}if(_0x4cd24b['startsWith']('--')||_0x4cd24b[_0x44feff(0x81)]('-')){const _0x188ed5=_0x4cd24b[_0x44feff(0xa1)]('=');if(_0x188ed5!==-0x1){const _0x5eb35f=_0x4cd24b['slice'](0x0,_0x188ed5)['toLowerCase']();if(SENSITIVE_FLAGS[_0x44feff(0x77)](_0x5eb35f)){_0x2ad618['push'](_0x4cd24b['slice'](0x0,_0x188ed5)+_0x44feff(0x98));continue;}}else{const _0x362fa1=_0x4cd24b[_0x44feff(0xa0)]();SENSITIVE_FLAGS['has'](_0x362fa1)&&(_0x3137d4=!![]);}_0x2ad618[_0x44feff(0x9b)](_0x4cd24b);}else _0xff007e[_0x44feff(0xa4)](looksLikeToken,_0x4cd24b)?_0x2ad618[_0x44feff(0x9b)](_0xff007e[_0x44feff(0x91)]):_0x2ad618[_0x44feff(0x9b)](_0x4cd24b);}return _0x2ad618[_0x44feff(0x73)]('\x20');}function _0x3e69(){const _0x500fb1=['--token','=[REDACTED]','2363675FyYDTj','includes','push','1727759xfTvIk','oiZyw','--pass','4dRDBgp','toLowerCase','indexOf','--secret','--authorization','kaBfE','jSYpb','join','errorType','unknown','[desire-path]\x20Sending\x20log\x20to\x20','has','isTTY','/api/v1/mcp/desire-path-logs','Unknown\x20command','7FcjPNk','env','787038AphaWo','metadata','YdBxK','mjWPT','startsWith','Not\x20enough\x20non-option\x20arguments','errorMessage','5502aDTeAG','split','273aUlydI','2536240CwnwVw','--header','lOrQs','runtime_error','length','18eVraHz','532600XUjLlH','catch','24mjlVNF','659128lnwCRP','rfqym','Bearer\x20','stdout','error','5|3|7|0|4|6|2|1','Missing\x20required\x20argument'];_0x3e69=function(){return _0x500fb1;};return _0x3e69();}export async function logDesirePath(_0x1f0953){const _0x36b9df=_0x2fe001,_0x11b4a={'jSYpb':function(_0x124aa0){return _0x124aa0();},'icXUX':'has_token','mjWPT':'no_token','IWAsW':'application/json','YdBxK':'Authorization','hwDDv':function(_0x180da2,_0x21fa51,_0xf07878){return _0x180da2(_0x21fa51,_0xf07878);}};try{const _0x1216b8=await _0x11b4a[_0x36b9df(0xa5)](getToken)[_0x36b9df(0x8e)](()=>null),_0x17a810=_0x11b4a[_0x36b9df(0xa5)](getApiBaseUrl),_0xac405b=getCurrentVersion(),_0x376743=_0x1216b8?_0x11b4a['icXUX']:_0x11b4a[_0x36b9df(0x80)],_0x2ef313={..._0x1f0953[_0x36b9df(0x7e)],'authStatus':_0x376743,'isTty':process[_0x36b9df(0x93)][_0x36b9df(0x78)]??![]},_0x46dbc3={'Content-Type':_0x11b4a['IWAsW']};_0x1216b8&&(_0x46dbc3[_0x11b4a[_0x36b9df(0x7f)]]=_0x36b9df(0x92)+_0x1216b8);const _0x57860e={'rawCommand':_0x1f0953['rawCommand'],'errorMessage':_0x1f0953[_0x36b9df(0x83)],'errorType':_0x1f0953[_0x36b9df(0x74)],'featureId':_0x1f0953['featureId'],'sessionId':_0x1f0953['sessionId'],'metadata':_0x2ef313,'cliVersion':_0xac405b};process[_0x36b9df(0x7c)]['DEBUG']&&(console[_0x36b9df(0x94)](_0x36b9df(0x76)+_0x17a810+_0x36b9df(0x79)),console[_0x36b9df(0x94)]('[desire-path]\x20Payload:\x20'+JSON['stringify'](_0x57860e,null,0x2))),await _0x11b4a['hwDDv'](fetch,_0x17a810+'/api/v1/mcp/desire-path-logs',{'method':'POST','headers':_0x46dbc3,'body':JSON['stringify'](_0x57860e)});}catch(_0x27812f){process[_0x36b9df(0x7c)]['DEBUG']&&console[_0x36b9df(0x94)]('[desire-path]\x20Failed\x20to\x20send:\x20'+_0x27812f);}}export function getErrorType(_0x281da6,_0x38250b){const _0x2264dd=_0x2fe001,_0x3a7678={'piCUA':_0x2264dd(0x95),'lOrQs':'unknown_argument','ebJBK':_0x2264dd(0x75),'oiZyw':'Invalid\x20values'},_0x4f19a3=_0x3a7678['piCUA'][_0x2264dd(0x85)]('|');let _0x354df3=0x0;while(!![]){switch(_0x4f19a3[_0x354df3++]){case'0':if(_0x281da6['includes']('Unknown\x20argument'))return _0x3a7678[_0x2264dd(0x89)];continue;case'1':return'syntax_error';case'2':if(_0x281da6['includes'](_0x2264dd(0x96)))return'missing_option';continue;case'3':if(!_0x281da6)return _0x3a7678['ebJBK'];continue;case'4':if(_0x281da6[_0x2264dd(0x9a)](_0x2264dd(0x82)))return'missing_required_argument';continue;case'5':if(_0x38250b)return _0x2264dd(0x8a);continue;case'6':if(_0x281da6['includes'](_0x3a7678[_0x2264dd(0x9d)]))return'invalid_option_value';continue;case'7':if(_0x281da6['includes'](_0x2264dd(0x7a)))return'unknown_command';continue;}break;}}
@@ -1 +1 @@
1
- const _0x327034=_0x5466;(function(_0x181db2,_0x30ce07){const _0x52fb1e=_0x5466,_0x1c4880=_0x181db2();while(!![]){try{const _0x58e8e0=-parseInt(_0x52fb1e(0xca))/0x1*(-parseInt(_0x52fb1e(0xda))/0x2)+parseInt(_0x52fb1e(0xee))/0x3*(parseInt(_0x52fb1e(0x9e))/0x4)+parseInt(_0x52fb1e(0xd8))/0x5*(parseInt(_0x52fb1e(0xb5))/0x6)+-parseInt(_0x52fb1e(0xa2))/0x7*(-parseInt(_0x52fb1e(0xbd))/0x8)+parseInt(_0x52fb1e(0x9a))/0x9*(-parseInt(_0x52fb1e(0xc3))/0xa)+parseInt(_0x52fb1e(0xbc))/0xb*(parseInt(_0x52fb1e(0xdf))/0xc)+-parseInt(_0x52fb1e(0xc9))/0xd;if(_0x58e8e0===_0x30ce07)break;else _0x1c4880['push'](_0x1c4880['shift']());}catch(_0x2bd8c2){_0x1c4880['push'](_0x1c4880['shift']());}}}(_0x2a4a,0x1db8d));import{exec}from'child_process';import _0x1e022d from'inquirer';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL='https://api.workos.com/user_management/authorize/device',WORKOS_TOKEN_URL=_0x327034(0xec);export async function requestDeviceCode(_0x41414e){const _0x26a3f9=_0x327034,_0x14b082=await fetch(WORKOS_DEVICE_AUTH_URL,{'method':_0x26a3f9(0xd9),'headers':{'Content-Type':'application/x-www-form-urlencoded'},'body':new URLSearchParams({'client_id':_0x41414e})});if(!_0x14b082['ok']){const _0x51c121=await _0x14b082[_0x26a3f9(0xd6)]();throw new Error('Failed\x20to\x20request\x20device\x20code:\x20'+_0x14b082['status']+'\x20'+_0x51c121);}return _0x14b082['json']();}export async function pollForTokens(_0x1c187f,_0x2af4ad,_0x53b9c9,_0x9b8323){const _0x511e35=_0x327034,_0x16a7da={'kxJBZ':function(_0x144d01,_0x34d01c){return _0x144d01+_0x34d01c;},'WtvPM':function(_0x2fbd19,_0x441460){return _0x2fbd19*_0x441460;},'Myero':function(_0x4c8d55,_0x2f02c4){return _0x4c8d55<_0x2f02c4;},'CryQG':function(_0x6d39cd,_0x53fcc5){return _0x6d39cd(_0x53fcc5);},'wcKDT':'application/x-www-form-urlencoded','EeMRw':function(_0x40f170,_0x28df80){return _0x40f170===_0x28df80;},'ooFza':_0x511e35(0xe7)},_0x2180d5=_0x16a7da['kxJBZ'](Date[_0x511e35(0xe2)](),_0x16a7da['WtvPM'](_0x9b8323,0x3e8));let _0x5ee728=_0x16a7da[_0x511e35(0xa1)](_0x53b9c9,0x3e8);while(_0x16a7da['Myero'](Date['now'](),_0x2180d5)){await _0x16a7da['CryQG'](sleep,_0x5ee728);const _0x90ac0c=await fetch(WORKOS_TOKEN_URL,{'method':'POST','headers':{'Content-Type':_0x16a7da['wcKDT']},'body':new URLSearchParams({'client_id':_0x1c187f,'device_code':_0x2af4ad,'grant_type':_0x511e35(0xd7)})});if(_0x90ac0c['ok'])return _0x90ac0c[_0x511e35(0xe6)]();const _0x57083e=await _0x90ac0c['json']();if(_0x16a7da['EeMRw'](_0x57083e['error'],_0x511e35(0xb2)))continue;if(_0x57083e['error']===_0x16a7da[_0x511e35(0xf3)]){_0x5ee728+=0x3e8;continue;}throw new Error(_0x57083e['error_description']||_0x57083e['error']||'Authentication\x20failed');}throw new Error(_0x511e35(0xba));}function _0x5466(_0x4a73dd,_0x2fa360){_0x4a73dd=_0x4a73dd-0x9a;const _0x2a4af7=_0x2a4a();let _0x546630=_0x2a4af7[_0x4a73dd];return _0x546630;}async function fetchUserProfile(_0x46fff8){const _0xc1f6a3=_0x327034,_0x378d08={'GzeAu':_0xc1f6a3(0xe8)},_0x355551=getApiBaseUrl();try{const _0x4db068=await fetch(_0x355551+_0xc1f6a3(0xc2),{'method':_0x378d08[_0xc1f6a3(0xd0)],'headers':{'workos-token':_0x46fff8}});if(_0x4db068['ok'])return _0x4db068[_0xc1f6a3(0xe6)]();}catch{}return null;}function buildKeyName(_0x452350,_0x2d0130){const _0x4584c3=_0x327034,_0x444305={'HVcvM':function(_0x13c1f6,_0xc0695){return _0x13c1f6===_0xc0695;}},_0xf64418=_0x2d0130[_0x4584c3(0xcb)](_0x499645=>_0x499645[_0x4584c3(0xa3)]===_0x452350||_0x499645[_0x4584c3(0xa3)][_0x4584c3(0xdb)](_0x452350+'\x20('));if(_0x444305[_0x4584c3(0xa4)](_0xf64418[_0x4584c3(0xc8)],0x0))return _0x452350;return _0x452350+'\x20('+(_0xf64418['length']+0x1)+')';}export async function provisionApiKey(_0x5118c9){const _0x174022=_0x327034,_0xeefe5e={'nSmsR':_0x174022(0xd5),'JkaeX':function(_0x444c07,_0x4419ce,_0x302f67){return _0x444c07(_0x4419ce,_0x302f67);},'bhCWw':_0x174022(0xe8)},_0x331677=getApiBaseUrl(),_0xce2e={'Content-Type':_0xeefe5e['nSmsR'],'workos-token':_0x5118c9},_0x46ffa0=await fetchUserProfile(_0x5118c9),_0x2373e7=_0x46ffa0?.[_0x174022(0xd2)]||_0x46ffa0?.[_0x174022(0x9b)]?.['split']('@')[0x0],_0x296e42=_0x2373e7?_0x2373e7+_0x174022(0xa0):_0x174022(0xa7);let _0x442a1d=[];try{const _0x5b99f9=await _0xeefe5e[_0x174022(0xab)](fetch,_0x331677+_0x174022(0xc6),{'method':_0xeefe5e['bhCWw'],'headers':_0xce2e});if(_0x5b99f9['ok']){const _0x49acf6=await _0x5b99f9[_0x174022(0xe6)]();_0x442a1d=_0x49acf6[_0x174022(0xc5)];}}catch{}const _0x4f2f68=buildKeyName(_0x296e42,_0x442a1d),_0x447fbe=await _0xeefe5e[_0x174022(0xab)](fetch,_0x331677+_0x174022(0xc6),{'method':_0x174022(0xd9),'headers':_0xce2e,'body':JSON['stringify']({'name':_0x4f2f68,'scope':_0x174022(0xb8)})});if(!_0x447fbe['ok']){const _0x15ed4f=await _0x447fbe['text']();throw new Error(_0x174022(0xaf)+_0x447fbe['status']+'\x20'+_0x15ed4f);}const _0xbb9a43=await _0x447fbe[_0x174022(0xe6)]();return _0xbb9a43['apiKey']['token'];}export function openBrowser(_0x4a5805){const _0x424f4e=_0x327034,_0x55c77c={'PebRY':'open','xArlR':function(_0x370384,_0x3a6516){return _0x370384===_0x3a6516;},'UHvua':_0x424f4e(0xc0),'FPoWy':_0x424f4e(0xf0),'JZqaE':function(_0x5e8022,_0x121c3e){return _0x5e8022(_0x121c3e);}},_0xd6a29c=process[_0x424f4e(0xbb)],_0x349015=_0xd6a29c===_0x424f4e(0xbf)?_0x55c77c['PebRY']:_0x55c77c['xArlR'](_0xd6a29c,_0x424f4e(0xd1))?_0x55c77c[_0x424f4e(0xb1)]:_0x55c77c['FPoWy'];_0x55c77c['JZqaE'](exec,_0x349015+'\x20'+JSON['stringify'](_0x4a5805));}function _0x2a4a(){const _0x4b90d=['status','length','4442087AqUUYC','7oSxgvJ','filter','Code:\x20','toString','Invalid\x20JWT\x20format','refresh_token','GzeAu','win32','firstName','Txylb','Failed\x20to\x20fetch\x20memberships:\x20','application/json','text','urn:ietf:params:oauth:grant-type:device_code','5dZlUIb','POST','16066RZpOUH','startsWith','\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a','Waiting\x20for\x20authentication...','QjkkT','2655516vaPORB','UBAJY','henmB','now','isTTY','YXTri','base64url','json','slow_down','GET','memberships','/organization/my-memberships','QNIxN','https://api.workos.com/user_management/authenticate','Multiple\x20organizations\x20available\x20but\x20cannot\x20prompt\x20for\x20selection\x20in\x20non-interactive\x20mode.\x0a','3qQiAQb','selected','xdg-open','Select\x20an\x20organization:','Lbqjq','ooFza','1300329jaOvdQ','email','access_token','prompt','259476zDUYsD','parse','\x27s\x20CLI\x20Key','WtvPM','53564vnUNKn','name','HVcvM','application/x-www-form-urlencoded','org_id','CLI\x20Key','split','stdout','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','JkaeX','Use:\x20ranger\x20setup\x20[token]\x20or\x20set\x20RANGER_CLI_TOKEN.','ZNYJg','organizationId','Failed\x20to\x20provision\x20API\x20key:\x20','Setting\x20up\x20your\x20organization...','UHvua','authorization_pending','Failed\x20to\x20create\x20organization:\x20','HzJeJ','1042224kJUKxH','stdin','log','mcp:write','workosClientId','Device\x20authorization\x20timed\x20out','platform','11EYgWVv','96qQjejv','wIDGw','darwin','start','interval','/organization/me','10XkzABo','/organization/self-serve-signup','apiKeys','/api-keys'];_0x2a4a=function(){return _0x4b90d;};return _0x2a4a();}function decodeJwtPayload(_0x45b945){const _0x3c068e=_0x327034,_0x6398c4={'YsDlE':function(_0x50e363,_0x2e7b94){return _0x50e363!==_0x2e7b94;},'QjkkT':'utf-8'},_0x2852d6=_0x45b945[_0x3c068e(0xa8)]('.');if(_0x6398c4['YsDlE'](_0x2852d6[_0x3c068e(0xc8)],0x3))throw new Error(_0x3c068e(0xce));const _0x1fc27d=Buffer['from'](_0x2852d6[0x1],_0x3c068e(0xe5))[_0x3c068e(0xcd)](_0x6398c4[_0x3c068e(0xde)]);return JSON[_0x3c068e(0x9f)](_0x1fc27d);}async function selfServeSignup(_0x57e8ed){const _0x5172a2=_0x327034,_0xccea61={'vnkiy':function(_0x2326ac){return _0x2326ac();},'wIDGw':function(_0x30235b,_0x5aba3c,_0x34b5a6){return _0x30235b(_0x5aba3c,_0x34b5a6);},'HzJeJ':_0x5172a2(0xd9),'fyUOA':_0x5172a2(0xd5)},_0x5ebcff=_0xccea61['vnkiy'](getApiBaseUrl),_0x10730e=await _0xccea61[_0x5172a2(0xbe)](fetch,_0x5ebcff+_0x5172a2(0xc4),{'method':_0xccea61[_0x5172a2(0xb4)],'headers':{'Content-Type':_0xccea61['fyUOA'],'workos-token':_0x57e8ed}});if(!_0x10730e['ok']){const _0x1c12b8=await _0x10730e['text']();throw new Error(_0x5172a2(0xb3)+_0x10730e[_0x5172a2(0xc7)]+'\x20'+_0x1c12b8);}return _0x10730e['json']();}async function fetchMyMemberships(_0x5493e7){const _0x2b4ab3=_0x327034,_0x41629e={'Lbqjq':function(_0x3cddd4){return _0x3cddd4();},'vcugy':function(_0x49dd85,_0xd62405,_0x2f2c58){return _0x49dd85(_0xd62405,_0x2f2c58);},'CsPzL':'GET'},_0x1f77a6=_0x41629e[_0x2b4ab3(0xf2)](getApiBaseUrl),_0x486949=await _0x41629e['vcugy'](fetch,_0x1f77a6+_0x2b4ab3(0xea),{'method':_0x41629e['CsPzL'],'headers':{'workos-token':_0x5493e7}});if(!_0x486949['ok']){const _0xd8e70b=await _0x486949[_0x2b4ab3(0xd6)]();throw new Error(_0x2b4ab3(0xd4)+_0x486949[_0x2b4ab3(0xc7)]+'\x20'+_0xd8e70b);}const _0xd3461=await _0x486949[_0x2b4ab3(0xe6)]();return _0xd3461[_0x2b4ab3(0xe9)];}async function refreshTokenWithOrg(_0x3564a2,_0x182a22,_0x35979b){const _0x39a73d=_0x327034,_0x1a5eb8={'QNIxN':'POST','ZNYJg':_0x39a73d(0xa5)},_0x223334=await fetch(WORKOS_TOKEN_URL,{'method':_0x1a5eb8[_0x39a73d(0xeb)],'headers':{'Content-Type':_0x1a5eb8[_0x39a73d(0xad)]},'body':new URLSearchParams({'client_id':_0x3564a2,'grant_type':_0x39a73d(0xcf),'refresh_token':_0x182a22,'organization_id':_0x35979b})});if(!_0x223334['ok']){const _0x2979f9=await _0x223334[_0x39a73d(0xd6)]();throw new Error(_0x39a73d(0xaa)+_0x223334['status']+'\x20'+_0x2979f9);}return _0x223334['json']();}export async function runDeviceAuthFlow(){const _0x45b7bd=_0x327034,_0x57087c={'giIJt':function(_0x33e2ce,_0x3413c4){return _0x33e2ce(_0x3413c4);},'CBzEp':_0x45b7bd(0xdc),'YXTri':function(_0x3aa93f,_0x33991a){return _0x3aa93f(_0x33991a);},'Txylb':function(_0x2311e6,_0x2dcb73){return _0x2311e6+_0x2dcb73;},'henmB':_0x45b7bd(0xed),'tMbyg':'list','Pxqsl':_0x45b7bd(0xef),'UBAJY':_0x45b7bd(0xf1)},_0x111a30=getCurrentEnvironment(),_0x21354a=ENVIRONMENT_CONFIGS[_0x111a30][_0x45b7bd(0xb9)],_0x2b5e02=await _0x57087c['giIJt'](requestDeviceCode,_0x21354a);console['log']('\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...'),console['log'](_0x57087c['CBzEp']),_0x57087c[_0x45b7bd(0xe4)](openBrowser,_0x2b5e02['verification_uri_complete']),console[_0x45b7bd(0xb7)]('If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20'+_0x2b5e02['verification_uri_complete']),console['log'](_0x45b7bd(0xcc)+_0x2b5e02['user_code']+'\x0a'),process['stdout']['write'](_0x45b7bd(0xdd));let _0xb60826=await pollForTokens(_0x21354a,_0x2b5e02['device_code'],_0x2b5e02[_0x45b7bd(0xc1)],_0x2b5e02['expires_in']);console[_0x45b7bd(0xb7)]('\x20✓');const _0x3f9563=_0x57087c['YXTri'](decodeJwtPayload,_0xb60826[_0x45b7bd(0x9c)]);if(!_0x3f9563[_0x45b7bd(0xa6)]){const _0x517d8f=await _0x57087c['YXTri'](fetchMyMemberships,_0xb60826['access_token']);let _0x5abe94;if(_0x517d8f['length']===0x0){process[_0x45b7bd(0xa9)]['write'](_0x45b7bd(0xb0));const _0x3e5fee=await selfServeSignup(_0xb60826[_0x45b7bd(0x9c)]);_0x5abe94=_0x3e5fee['organizationId'],console['log']('\x20✓');}else{if(_0x517d8f[_0x45b7bd(0xc8)]===0x1)_0x5abe94=_0x517d8f[0x0]['organizationId'],console[_0x45b7bd(0xb7)]('Using\x20organization:\x20'+_0x517d8f[0x0]['name']);else{const _0x4acf8e=process[_0x45b7bd(0xb6)][_0x45b7bd(0xe3)]&&process['stdout']['isTTY'];if(!_0x4acf8e)throw new Error(_0x57087c[_0x45b7bd(0xd3)](_0x57087c[_0x45b7bd(0xe1)],_0x45b7bd(0xac)));const {selected:_0x54d566}=await _0x1e022d[_0x45b7bd(0x9d)]([{'type':_0x57087c['tMbyg'],'name':_0x57087c['Pxqsl'],'message':_0x57087c[_0x45b7bd(0xe0)],'choices':_0x517d8f['map'](_0x4f09aa=>({'name':_0x4f09aa[_0x45b7bd(0xa3)],'value':_0x4f09aa[_0x45b7bd(0xae)]}))}]);_0x5abe94=_0x54d566;}}_0xb60826=await refreshTokenWithOrg(_0x21354a,_0xb60826['refresh_token'],_0x5abe94);}process[_0x45b7bd(0xa9)]['write']('Provisioning\x20API\x20key...');const _0x1ae9b6=await provisionApiKey(_0xb60826[_0x45b7bd(0x9c)]);return console[_0x45b7bd(0xb7)]('\x20✓'),await storeToken(_0x1ae9b6),_0xb60826[_0x45b7bd(0xcf)]&&await storeRefreshToken(_0xb60826[_0x45b7bd(0xcf)]),_0x1ae9b6;}function sleep(_0xfe517d){return new Promise(_0x5bb713=>setTimeout(_0x5bb713,_0xfe517d));}
1
+ const _0x23c67e=_0x583c;(function(_0x48abdd,_0x3fb574){const _0x1a852e=_0x583c,_0xda301c=_0x48abdd();while(!![]){try{const _0x284512=parseInt(_0x1a852e(0x158))/0x1+parseInt(_0x1a852e(0x18e))/0x2*(-parseInt(_0x1a852e(0x17b))/0x3)+parseInt(_0x1a852e(0x194))/0x4+parseInt(_0x1a852e(0x151))/0x5+parseInt(_0x1a852e(0x165))/0x6*(-parseInt(_0x1a852e(0x185))/0x7)+-parseInt(_0x1a852e(0x157))/0x8+-parseInt(_0x1a852e(0x153))/0x9*(parseInt(_0x1a852e(0x170))/0xa);if(_0x284512===_0x3fb574)break;else _0xda301c['push'](_0xda301c['shift']());}catch(_0x5c5051){_0xda301c['push'](_0xda301c['shift']());}}}(_0xb6f5,0xde408));import{exec}from'child_process';import _0x296c1f from'inquirer';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';function _0xb6f5(){const _0x3d5c42=['Failed\x20to\x20provision\x20API\x20key:\x20','20648KxjjIn','697761RrnEAI','TgPCV','workosClientId','KXQVW','VPbEC','NWEay','Authentication\x20failed','status','Using\x20organization:\x20','Setting\x20up\x20your\x20organization...','log','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','apiKey','44466gKQmpJ','\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a','error_description','https://api.workos.com/user_management/authenticate','utf-8','apiKeys','application/x-www-form-urlencoded','refresh_token','application/json','user_code','verification_uri_complete','10wHPbUw','authorization_pending','now','text','xdg-open','Failed\x20to\x20request\x20device\x20code:\x20','jEdLm','split','stdout','VySgU','qPTEL','1275789ZFdwWh','Multiple\x20organizations\x20available\x20but\x20cannot\x20prompt\x20for\x20selection\x20in\x20non-interactive\x20mode.\x0a','stringify','name','map','CpzQP','Lrxjd','length','organizationId','expires_in','623nSwZdP','jccjg','write','startsWith','\x27s\x20CLI\x20Key','error','uTMIt','json','https://api.workos.com/user_management/authorize/device','2rIVgGi','rUycE','darwin','isTTY','qHQIS','eXtnD','6105408vtMICh','GET','GNFJG','6348255inPlPI','list','13463973RYOZvG','Select\x20an\x20organization:','access_token'];_0xb6f5=function(){return _0x3d5c42;};return _0xb6f5();}import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL=_0x23c67e(0x18d),WORKOS_TOKEN_URL=_0x23c67e(0x168);export async function requestDeviceCode(_0x75612f){const _0x55cbd4=_0x23c67e,_0x1e245c={'jccjg':'POST','EDDfQ':'application/x-www-form-urlencoded'},_0x25ee02=await fetch(WORKOS_DEVICE_AUTH_URL,{'method':_0x1e245c[_0x55cbd4(0x186)],'headers':{'Content-Type':_0x1e245c['EDDfQ']},'body':new URLSearchParams({'client_id':_0x75612f})});if(!_0x25ee02['ok']){const _0xeeca9c=await _0x25ee02[_0x55cbd4(0x173)]();throw new Error(_0x55cbd4(0x175)+_0x25ee02['status']+'\x20'+_0xeeca9c);}return _0x25ee02['json']();}export async function pollForTokens(_0x518ae6,_0xe12e11,_0x2882ce,_0x299929){const _0x204ffa=_0x23c67e,_0x52b49b={'rUycE':function(_0xe95ab4,_0x35ce93){return _0xe95ab4+_0x35ce93;},'NeSgu':function(_0x286f8f,_0x3cbc66){return _0x286f8f*_0x3cbc66;},'VySgU':function(_0x498703,_0x450d30){return _0x498703<_0x450d30;},'eELwV':function(_0x1a8406,_0x56dace){return _0x1a8406(_0x56dace);},'NGBFq':function(_0xcb333,_0x33402f,_0x1a390d){return _0xcb333(_0x33402f,_0x1a390d);},'qStOM':_0x204ffa(0x16b),'CpzQP':function(_0x138e89,_0x402116){return _0x138e89===_0x402116;},'Lrxjd':_0x204ffa(0x171),'PRiNy':function(_0x28467e,_0x320a2b){return _0x28467e===_0x320a2b;}},_0x416e58=_0x52b49b[_0x204ffa(0x18f)](Date['now'](),_0x52b49b['NeSgu'](_0x299929,0x3e8));let _0x24b3e7=_0x2882ce*0x3e8;while(_0x52b49b[_0x204ffa(0x179)](Date[_0x204ffa(0x172)](),_0x416e58)){await _0x52b49b['eELwV'](sleep,_0x24b3e7);const _0x30ce3b=await _0x52b49b['NGBFq'](fetch,WORKOS_TOKEN_URL,{'method':'POST','headers':{'Content-Type':_0x52b49b['qStOM']},'body':new URLSearchParams({'client_id':_0x518ae6,'device_code':_0xe12e11,'grant_type':'urn:ietf:params:oauth:grant-type:device_code'})});if(_0x30ce3b['ok'])return _0x30ce3b['json']();const _0x4fe024=await _0x30ce3b[_0x204ffa(0x18c)]();if(_0x52b49b[_0x204ffa(0x180)](_0x4fe024['error'],_0x52b49b[_0x204ffa(0x181)]))continue;if(_0x52b49b['PRiNy'](_0x4fe024['error'],'slow_down')){_0x24b3e7+=0x3e8;continue;}throw new Error(_0x4fe024[_0x204ffa(0x167)]||_0x4fe024[_0x204ffa(0x18a)]||_0x204ffa(0x15e));}throw new Error('Device\x20authorization\x20timed\x20out');}async function fetchUserProfile(_0x5396f9){const _0x36f1e2=_0x23c67e,_0x46a4e3={'mpQel':_0x36f1e2(0x195)},_0xf1844c=getApiBaseUrl();try{const _0x3b9878=await fetch(_0xf1844c+'/organization/me',{'method':_0x46a4e3['mpQel'],'headers':{'workos-token':_0x5396f9}});if(_0x3b9878['ok'])return _0x3b9878[_0x36f1e2(0x18c)]();}catch{}return null;}function buildKeyName(_0x36cd69,_0x93237c){const _0x45d4a0=_0x23c67e,_0x31d030=_0x93237c['filter'](_0x23a35f=>_0x23a35f['name']===_0x36cd69||_0x23a35f[_0x45d4a0(0x17e)][_0x45d4a0(0x188)](_0x36cd69+'\x20('));if(_0x31d030['length']===0x0)return _0x36cd69;return _0x36cd69+'\x20('+(_0x31d030['length']+0x1)+')';}function _0x583c(_0x57f0f1,_0x65151f){_0x57f0f1=_0x57f0f1-0x150;const _0xb6f505=_0xb6f5();let _0x583c06=_0xb6f505[_0x57f0f1];return _0x583c06;}export async function provisionApiKey(_0x175d7b){const _0x2afbca=_0x23c67e,_0x4dbf79={'NWEay':function(_0xd795b0){return _0xd795b0();},'jhCDi':'CLI\x20Key','TgPCV':function(_0x1e05e1,_0x433617,_0x15066a){return _0x1e05e1(_0x433617,_0x15066a);}},_0x43e1ee=_0x4dbf79[_0x2afbca(0x15d)](getApiBaseUrl),_0x59f732={'Content-Type':'application/json','workos-token':_0x175d7b},_0x478465=await fetchUserProfile(_0x175d7b),_0x4e8979=_0x478465?.['firstName']||_0x478465?.['email']?.[_0x2afbca(0x177)]('@')[0x0],_0x17867e=_0x4e8979?_0x4e8979+_0x2afbca(0x189):_0x4dbf79['jhCDi'];let _0x357b5d=[];try{const _0xf1f13d=await fetch(_0x43e1ee+'/api-keys',{'method':_0x2afbca(0x195),'headers':_0x59f732});if(_0xf1f13d['ok']){const _0x3ac9d0=await _0xf1f13d[_0x2afbca(0x18c)]();_0x357b5d=_0x3ac9d0[_0x2afbca(0x16a)];}}catch{}const _0x3b0846=_0x4dbf79[_0x2afbca(0x159)](buildKeyName,_0x17867e,_0x357b5d),_0x5c4ae3=await _0x4dbf79[_0x2afbca(0x159)](fetch,_0x43e1ee+'/api-keys',{'method':'POST','headers':_0x59f732,'body':JSON[_0x2afbca(0x17d)]({'name':_0x3b0846,'scope':'mcp:write'})});if(!_0x5c4ae3['ok']){const _0x5ef1c1=await _0x5c4ae3['text']();throw new Error(_0x2afbca(0x156)+_0x5c4ae3[_0x2afbca(0x15f)]+'\x20'+_0x5ef1c1);}const _0x22aa97=await _0x5c4ae3['json']();return _0x22aa97[_0x2afbca(0x164)]['token'];}export function openBrowser(_0x16101d){const _0x46caa1=_0x23c67e,_0x4086f7={'MNibE':function(_0x431030,_0x1f5d61){return _0x431030===_0x1f5d61;},'LSHtE':function(_0x3080ba,_0x5e3bfd){return _0x3080ba===_0x5e3bfd;},'gSkTG':'win32','pXsLN':function(_0x3e8370,_0x5ec3e8){return _0x3e8370(_0x5ec3e8);}},_0xc0a6b6=process['platform'],_0x1a8687=_0x4086f7['MNibE'](_0xc0a6b6,_0x46caa1(0x190))?'open':_0x4086f7['LSHtE'](_0xc0a6b6,_0x4086f7['gSkTG'])?'start':_0x46caa1(0x174);_0x4086f7['pXsLN'](exec,_0x1a8687+'\x20'+JSON['stringify'](_0x16101d));}function decodeJwtPayload(_0x19bc31){const _0x350827=_0x23c67e,_0x48c006={'iFjCc':function(_0x5e7a8e,_0x42a467){return _0x5e7a8e!==_0x42a467;},'uTMIt':'Invalid\x20JWT\x20format','eXtnD':_0x350827(0x169)},_0x21c63b=_0x19bc31[_0x350827(0x177)]('.');if(_0x48c006['iFjCc'](_0x21c63b['length'],0x3))throw new Error(_0x48c006[_0x350827(0x18b)]);const _0xd52c30=Buffer['from'](_0x21c63b[0x1],'base64url')['toString'](_0x48c006[_0x350827(0x193)]);return JSON['parse'](_0xd52c30);}async function selfServeSignup(_0x6ab139){const _0x1cd009=_0x23c67e,_0x47e085={'GNFJG':_0x1cd009(0x16d)},_0x3a6f77=getApiBaseUrl(),_0x2bba20=await fetch(_0x3a6f77+'/organization/self-serve-signup',{'method':'POST','headers':{'Content-Type':_0x47e085[_0x1cd009(0x150)],'workos-token':_0x6ab139}});if(!_0x2bba20['ok']){const _0x2965f7=await _0x2bba20['text']();throw new Error('Failed\x20to\x20create\x20organization:\x20'+_0x2bba20['status']+'\x20'+_0x2965f7);}return _0x2bba20[_0x1cd009(0x18c)]();}async function fetchMyMemberships(_0x2e1963){const _0x5ad636=_0x23c67e,_0x5c3267={'qPTEL':'GET'},_0x508cb9=getApiBaseUrl(),_0x205b1a=await fetch(_0x508cb9+'/organization/my-memberships',{'method':_0x5c3267[_0x5ad636(0x17a)],'headers':{'workos-token':_0x2e1963}});if(!_0x205b1a['ok']){const _0x5deb51=await _0x205b1a[_0x5ad636(0x173)]();throw new Error('Failed\x20to\x20fetch\x20memberships:\x20'+_0x205b1a[_0x5ad636(0x15f)]+'\x20'+_0x5deb51);}const _0x183a86=await _0x205b1a['json']();return _0x183a86['memberships'];}async function refreshTokenWithOrg(_0x4caea8,_0x4f057b,_0x138e63){const _0x3f2693=_0x23c67e,_0x34d54b=await fetch(WORKOS_TOKEN_URL,{'method':'POST','headers':{'Content-Type':'application/x-www-form-urlencoded'},'body':new URLSearchParams({'client_id':_0x4caea8,'grant_type':'refresh_token','refresh_token':_0x4f057b,'organization_id':_0x138e63})});if(!_0x34d54b['ok']){const _0x112bdc=await _0x34d54b['text']();throw new Error(_0x3f2693(0x163)+_0x34d54b[_0x3f2693(0x15f)]+'\x20'+_0x112bdc);}return _0x34d54b['json']();}export async function runDeviceAuthFlow(){const _0x1508c6=_0x23c67e,_0x43e609={'WIMZY':_0x1508c6(0x166),'oCgML':function(_0x18a74e,_0x3a0d16,_0xaefa1a,_0x15d147,_0x480149){return _0x18a74e(_0x3a0d16,_0xaefa1a,_0x15d147,_0x480149);},'qHQIS':function(_0x4c4980,_0x10de56){return _0x4c4980===_0x10de56;},'jEdLm':function(_0x252706,_0x4ff4df){return _0x252706+_0x4ff4df;},'VPbEC':_0x1508c6(0x17c),'cJeFO':_0x1508c6(0x154),'KXQVW':function(_0x520f98,_0x1d2308,_0x302808,_0x5952e6){return _0x520f98(_0x1d2308,_0x302808,_0x5952e6);},'FrppF':function(_0x18b521,_0xed2f14){return _0x18b521(_0xed2f14);}},_0x2f0773=getCurrentEnvironment(),_0x481b3d=ENVIRONMENT_CONFIGS[_0x2f0773][_0x1508c6(0x15a)],_0x452066=await requestDeviceCode(_0x481b3d);console['log']('\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...'),console[_0x1508c6(0x162)](_0x43e609['WIMZY']),openBrowser(_0x452066[_0x1508c6(0x16f)]),console['log']('If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20'+_0x452066['verification_uri_complete']),console[_0x1508c6(0x162)]('Code:\x20'+_0x452066[_0x1508c6(0x16e)]+'\x0a'),process[_0x1508c6(0x178)][_0x1508c6(0x187)]('Waiting\x20for\x20authentication...');let _0x5cfd7b=await _0x43e609['oCgML'](pollForTokens,_0x481b3d,_0x452066['device_code'],_0x452066['interval'],_0x452066[_0x1508c6(0x184)]);console['log']('\x20✓');const _0x5aafa7=decodeJwtPayload(_0x5cfd7b['access_token']);if(!_0x5aafa7['org_id']){const _0x1ba5b2=await fetchMyMemberships(_0x5cfd7b[_0x1508c6(0x155)]);let _0x234f27;if(_0x43e609[_0x1508c6(0x192)](_0x1ba5b2['length'],0x0)){process[_0x1508c6(0x178)][_0x1508c6(0x187)](_0x1508c6(0x161));const _0xdc3d7=await selfServeSignup(_0x5cfd7b['access_token']);_0x234f27=_0xdc3d7[_0x1508c6(0x183)],console['log']('\x20✓');}else{if(_0x1ba5b2[_0x1508c6(0x182)]===0x1)_0x234f27=_0x1ba5b2[0x0]['organizationId'],console[_0x1508c6(0x162)](_0x1508c6(0x160)+_0x1ba5b2[0x0][_0x1508c6(0x17e)]);else{const _0x18dde2=process['stdin']['isTTY']&&process[_0x1508c6(0x178)][_0x1508c6(0x191)];if(!_0x18dde2)throw new Error(_0x43e609[_0x1508c6(0x176)](_0x43e609[_0x1508c6(0x15c)],'Use:\x20ranger\x20setup\x20[token]\x20or\x20set\x20RANGER_CLI_TOKEN.'));const {selected:_0x29b8ba}=await _0x296c1f['prompt']([{'type':_0x1508c6(0x152),'name':'selected','message':_0x43e609['cJeFO'],'choices':_0x1ba5b2[_0x1508c6(0x17f)](_0x4c93b1=>({'name':_0x4c93b1[_0x1508c6(0x17e)],'value':_0x4c93b1[_0x1508c6(0x183)]}))}]);_0x234f27=_0x29b8ba;}}_0x5cfd7b=await _0x43e609[_0x1508c6(0x15b)](refreshTokenWithOrg,_0x481b3d,_0x5cfd7b[_0x1508c6(0x16c)],_0x234f27);}process['stdout'][_0x1508c6(0x187)]('Provisioning\x20API\x20key...');const _0x49e7ca=await provisionApiKey(_0x5cfd7b[_0x1508c6(0x155)]);return console['log']('\x20✓'),await storeToken(_0x49e7ca),_0x5cfd7b[_0x1508c6(0x16c)]&&await _0x43e609['FrppF'](storeRefreshToken,_0x5cfd7b['refresh_token']),_0x49e7ca;}function sleep(_0x167d97){return new Promise(_0x49c714=>setTimeout(_0x49c714,_0x167d97));}
@@ -1 +1 @@
1
- const _0x240c2a=_0x3373;(function(_0x25230f,_0x197d7d){const _0x54eac9=_0x3373,_0x16971d=_0x25230f();while(!![]){try{const _0x426fa8=parseInt(_0x54eac9(0x10e))/0x1+-parseInt(_0x54eac9(0x10f))/0x2+-parseInt(_0x54eac9(0x10b))/0x3*(parseInt(_0x54eac9(0x11c))/0x4)+-parseInt(_0x54eac9(0x106))/0x5+-parseInt(_0x54eac9(0x117))/0x6+-parseInt(_0x54eac9(0x114))/0x7*(parseInt(_0x54eac9(0x108))/0x8)+parseInt(_0x54eac9(0x107))/0x9*(parseInt(_0x54eac9(0x10c))/0xa);if(_0x426fa8===_0x197d7d)break;else _0x16971d['push'](_0x16971d['shift']());}catch(_0x2e1a0a){_0x16971d['push'](_0x16971d['shift']());}}}(_0x30e4,0x5f59e));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':'https://api.ranger.net','workosClientId':'client_01J9CBYM7M5ZETCF7G6614DXR2','aiProxyUrl':_0x240c2a(0x11e)},'staging':{'apiBaseUrl':_0x240c2a(0x10d),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':_0x240c2a(0x105)},'local':{'apiBaseUrl':_0x240c2a(0x112),'workosClientId':_0x240c2a(0x10a),'aiProxyUrl':'http://localhost:8090'}};function _0x30e4(){const _0x2a5560=['1378966NqGYWi','eMFeZ','xOVFm','http://localhost:8080','staging','2023686WVhzRJ','DqMaI','local','1812678KbeRKN','true','uyRZc','aiProxyUrl','apiBaseUrl','14856EiCENv','OKTYi','https://ai-proxy-716115358910.us-central1.run.app','playwright-cli','https://ai-proxy-301751771437.us-central1.run.app','244650HnoxXr','11133KjSNFL','8NXmEjW','PaxId','client_01J9CBYM2DKWV9HM17D95Z540K','54YRJknp','10130WgjurS','https://api.staging.ranger.net','533953MwYxvA'];_0x30e4=function(){return _0x2a5560;};return _0x30e4();}export const DEFAULT_ENVIRONMENT='prod';export function isValidEnvironment(_0x3262c0){const _0x13b6b8=_0x240c2a,_0x2e76ac={'aqbqx':function(_0x192d98,_0x5ee9c7){return _0x192d98===_0x5ee9c7;},'xOVFm':'prod','PaxId':function(_0x2992c9,_0x267e3d){return _0x2992c9===_0x267e3d;}};return _0x2e76ac['aqbqx'](_0x3262c0,_0x2e76ac[_0x13b6b8(0x111)])||_0x3262c0===_0x13b6b8(0x113)||_0x2e76ac[_0x13b6b8(0x109)](_0x3262c0,_0x13b6b8(0x116));}export function getCurrentEnvironment(){const _0xf4b1d3={'Nivfv':function(_0x4a7a06,_0x214e69){return _0x4a7a06(_0x214e69);}},_0x3dbb87=process['env']['RANGER_CLI_ENV'];if(_0x3dbb87&&_0xf4b1d3['Nivfv'](isValidEnvironment,_0x3dbb87))return _0x3dbb87;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){const _0x519b2e=_0x240c2a,_0x495f94={'uyRZc':function(_0x38d271){return _0x38d271();}};return ENVIRONMENT_CONFIGS[_0x495f94[_0x519b2e(0x119)](getCurrentEnvironment)][_0x519b2e(0x11b)];}export function getAiProxyUrl(){const _0x21aa07=_0x240c2a;return ENVIRONMENT_CONFIGS[getCurrentEnvironment()][_0x21aa07(0x11a)];}export function isMcpDisabled(){const _0x1a475f=_0x240c2a,_0x9d88d7={'eMFeZ':function(_0x4c7fe7,_0x396c99){return _0x4c7fe7===_0x396c99;}};return _0x9d88d7[_0x1a475f(0x110)](process['env']['RANGER_DISABLE_MCP'],_0x1a475f(0x118));}function _0x3373(_0x3b4242,_0x82ff6){_0x3b4242=_0x3b4242-0x105;const _0x30e472=_0x30e4();let _0x3373c3=_0x30e472[_0x3b4242];return _0x3373c3;}export function getVerificationTransport(){const _0x59994f=_0x240c2a,_0x400cfd={'OKTYi':function(_0x106f3f){return _0x106f3f();},'DIbEP':_0x59994f(0x11f),'DqMaI':'mcp'};return _0x400cfd[_0x59994f(0x11d)](isMcpDisabled)?_0x400cfd['DIbEP']:_0x400cfd[_0x59994f(0x115)];}
1
+ const _0xd015d=_0x26af;(function(_0x53072c,_0x4a5aff){const _0xd9a222=_0x26af,_0x2e5e7c=_0x53072c();while(!![]){try{const _0x12f714=parseInt(_0xd9a222(0x151))/0x1+-parseInt(_0xd9a222(0x146))/0x2+parseInt(_0xd9a222(0x154))/0x3+-parseInt(_0xd9a222(0x156))/0x4+-parseInt(_0xd9a222(0x14f))/0x5+parseInt(_0xd9a222(0x158))/0x6+parseInt(_0xd9a222(0x159))/0x7;if(_0x12f714===_0x4a5aff)break;else _0x2e5e7c['push'](_0x2e5e7c['shift']());}catch(_0x4f2bd3){_0x2e5e7c['push'](_0x2e5e7c['shift']());}}}(_0x3098,0x908fa));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':_0xd015d(0x148),'workosClientId':_0xd015d(0x15a),'aiProxyUrl':'https://ai-proxy-716115358910.us-central1.run.app'},'staging':{'apiBaseUrl':_0xd015d(0x14b),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':_0xd015d(0x150)},'local':{'apiBaseUrl':_0xd015d(0x152),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':_0xd015d(0x15b)}};export const DEFAULT_ENVIRONMENT='prod';export function isValidEnvironment(_0x3130fc){const _0x3f3241=_0xd015d,_0x273275={'jsNWn':'prod','qaZce':function(_0x5ea4f0,_0x2789ac){return _0x5ea4f0===_0x2789ac;}};return _0x3130fc===_0x273275['jsNWn']||_0x3130fc==='staging'||_0x273275[_0x3f3241(0x155)](_0x3130fc,_0x3f3241(0x14c));}export function getCurrentEnvironment(){const _0x3fdd10=_0xd015d,_0x47926c={'oybGH':function(_0x1d005d,_0x34e9dc){return _0x1d005d(_0x34e9dc);}},_0x4ad845=process[_0x3fdd10(0x14d)][_0x3fdd10(0x145)];if(_0x4ad845&&_0x47926c['oybGH'](isValidEnvironment,_0x4ad845))return _0x4ad845;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){const _0x56219c={'gsYwt':function(_0x32e4a9){return _0x32e4a9();}};return ENVIRONMENT_CONFIGS[_0x56219c['gsYwt'](getCurrentEnvironment)]['apiBaseUrl'];}export function getAiProxyUrl(){const _0x359494=_0xd015d,_0x2e9d2d={'tWPOk':function(_0x3336f1){return _0x3336f1();}};return ENVIRONMENT_CONFIGS[_0x2e9d2d['tWPOk'](getCurrentEnvironment)][_0x359494(0x153)];}function _0x3098(){const _0x4a0ad0=['http://localhost:8090','RANGER_CLI_ENV','1085944dhKRtL','qQlAQ','https://api.ranger.net','playwright-cli','true','https://api.staging.ranger.net','local','env','RANGER_DISABLE_MCP','3063000sjgBzb','https://ai-proxy-301751771437.us-central1.run.app','522469MwPZtA','http://localhost:8080','aiProxyUrl','1906656sfVRCB','qaZce','3638484PPSbOm','mcp','3277728HpYbFB','6671042NoEHPY','client_01J9CBYM7M5ZETCF7G6614DXR2'];_0x3098=function(){return _0x4a0ad0;};return _0x3098();}export function isMcpDisabled(){const _0x1a0fe5=_0xd015d;return process[_0x1a0fe5(0x14d)][_0x1a0fe5(0x14e)]===_0x1a0fe5(0x14a);}function _0x26af(_0x51a301,_0x849382){_0x51a301=_0x51a301-0x145;const _0x309881=_0x3098();let _0x26af8e=_0x309881[_0x51a301];return _0x26af8e;}export function getVerificationTransport(){const _0x59ff9f=_0xd015d,_0xfb959a={'qQlAQ':function(_0x3d3a7f){return _0x3d3a7f();}};return _0xfb959a[_0x59ff9f(0x147)](isMcpDisabled)?_0x59ff9f(0x149):_0x59ff9f(0x157);}