@ranger-testing/ranger-cli 2.4.6 → 2.4.7

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 (78) 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/claudeOverrideSettings.js +1 -1
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/tokenRefresh.js +1 -1
  66. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  67. package/build/commands/utils/userApi.js +1 -1
  68. package/build/commands/utils/version.js +1 -1
  69. package/build/commands/verifyFeature.js +1 -1
  70. package/build/commands/verifyFeatureCli.js +1 -1
  71. package/build/commands/verifyInBrowser.js +1 -1
  72. package/build/skills/ranger/SKILL.md +38 -41
  73. package/build/skills/ranger/create.md +5 -13
  74. package/build/skills/ranger/feedback.md +3 -3
  75. package/build/skills/ranger/start.md +13 -13
  76. package/build/skills/ranger/verify.md +15 -28
  77. package/package.json +5 -3
  78. package/scripts/postinstall.js +4 -1
@@ -1 +1 @@
1
- (function(_0x437e41,_0x5da857){const _0x233194=_0xcfe1,_0x212ade=_0x437e41();while(!![]){try{const _0x3dccb8=-parseInt(_0x233194(0x1c1))/0x1+parseInt(_0x233194(0x1be))/0x2+parseInt(_0x233194(0x1b3))/0x3+-parseInt(_0x233194(0x1a5))/0x4+-parseInt(_0x233194(0x1bf))/0x5*(parseInt(_0x233194(0x19c))/0x6)+-parseInt(_0x233194(0x1a1))/0x7*(parseInt(_0x233194(0x1cb))/0x8)+parseInt(_0x233194(0x1c0))/0x9;if(_0x3dccb8===_0x5da857)break;else _0x212ade['push'](_0x212ade['shift']());}catch(_0x43afff){_0x212ade['push'](_0x212ade['shift']());}}}(_0xa7eb,0x6287a));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';function _0xcfe1(_0x160699,_0x7d40fb){_0x160699=_0x160699-0x19b;const _0xa7ebb5=_0xa7eb();let _0xcfe1e7=_0xa7ebb5[_0x160699];return _0xcfe1e7;}function _0xa7eb(){const _0x5c8de7=['baseUrl','clHho','isTTY','1314204jVmShe','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','vINfn','browser_auth','extraHTTPHeaders','18151VPzmrQ','\x20\x20\x20A\x20browser\x20will\x20open\x20with\x20your\x20existing\x20session\x20(if\x20any).','setupHeaders','contextOptions','90152tHDBHZ','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','browser','Saving\x20authentication\x20state...','Config\x20not\x20found\x20at\x20','launch','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','DMyDn','allowInsecureLocalhost','Enable\x20safe\x20mode\x20and\x20try\x20again:\x20ranger\x20profile\x20config\x20set\x20','gWdHe','SxiCs','newPage','rMvMR','2332656kxNpQE','stdin','close','error','safeMode','goto','WHSQo','cErjc','yiKHQ','auth.json','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','595280aNMpac','5htHYYT','1260216UVsysQ','339289TCtPVx','llPwM','settings.json','\x20safeMode\x20true\x0a','trackPhaseEnd','NELnU','storageState','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','ADgct','trackPhaseStart','712uCJjrW','parse','log','catch','\x20\x20\x20Update\x20your\x20authentication\x20as\x20needed.','UWtdK','\x0a📋\x20Authentication\x20Update','✓\x20Auth\x20state\x20saved\x20to:\x20','ZiaDk','config_write'];_0xa7eb=function(){return _0x5c8de7;};return _0xa7eb();}import{buildBrowserOptionsFromSettings,getEnvDir,isEnvCi,resolveEnvVars}from'./utils/settings.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';export async function updateEnv(_0x9c474c,_0x3cd597,_0x231f4f){const _0x26e960=_0xcfe1,_0x286f3d={'llPwM':_0x26e960(0x1a8),'SxiCs':_0x26e960(0x1b5),'UWtdK':function(_0x302ee7,_0x4ee1b4){return _0x302ee7(_0x4ee1b4);},'cErjc':'.enc','WHSQo':function(_0x446836,_0x34e99f){return _0x446836===_0x34e99f;},'Gvfqi':'string','OcAbH':function(_0x81f60d,_0x480587){return _0x81f60d(_0x480587);},'eYGbS':_0x26e960(0x1cf),'NELnU':'\x20\x20\x20When\x20you\x20are\x20done,\x20close\x20the\x20browser.\x0a','yiKHQ':function(_0x1b3d48,_0x6f1fa9,_0x2f1198){return _0x1b3d48(_0x6f1fa9,_0x2f1198);},'rMvMR':'about:blank','clHho':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','PCeiL':function(_0x4a3daa,_0x157d61,_0x1091fc){return _0x4a3daa(_0x157d61,_0x1091fc);},'ADgct':function(_0x266fd5){return _0x266fd5();},'DMyDn':_0x26e960(0x1a6),'gWdHe':function(_0x5a2700,_0x32ff68,_0x23e9df){return _0x5a2700(_0x32ff68,_0x23e9df);},'THPSA':_0x26e960(0x19d),'ZiaDk':_0x26e960(0x19f),'vINfn':_0x26e960(0x1d4),'jkuGg':function(_0x476d14,_0x5d78f0,_0xf9c3e4){return _0x476d14(_0x5d78f0,_0xf9c3e4);}},_0x4f9416=_0x286f3d[_0x26e960(0x1d0)](getEnvDir,_0x9c474c),_0x46712e=join(_0x4f9416,_0x26e960(0x1c3)),_0x32c3ae=join(_0x4f9416,_0x26e960(0x1bc)),_0x1197b8=_0x32c3ae+_0x286f3d[_0x26e960(0x1ba)],_0x171e64=process[_0x26e960(0x1b4)]['isTTY']&&process['stdout'][_0x26e960(0x19b)];if(!_0x171e64)throw new Error(_0x26e960(0x1ab));if(!existsSync(_0x4f9416))throw new Error('Profile\x20\x22'+_0x9c474c+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x9c474c);if(!_0x286f3d[_0x26e960(0x1d0)](existsSync,_0x46712e))throw new Error(_0x26e960(0x1a9)+_0x46712e+_0x26e960(0x1bd)+_0x9c474c);const _0x3861bf=await readFile(_0x46712e,'utf-8'),_0xae9e13=JSON[_0x26e960(0x1cc)](_0x3861bf),_0x8e76db=_0x286f3d[_0x26e960(0x1d0)](resolveEnvVars,_0xae9e13),_0x2a6fe7=_0x286f3d[_0x26e960(0x1b9)](typeof _0x8e76db['baseUrl'],_0x286f3d['Gvfqi'])?_0x8e76db[_0x26e960(0x1d5)]:undefined,_0x3018d1=existsSync(_0x32c3ae),_0x4ffa7d=_0x286f3d['OcAbH'](isEnvCi,_0x9c474c);_0x3cd597?.[_0x26e960(0x1ca)]('browser_auth'),console['log'](_0x26e960(0x1d1)),console[_0x26e960(0x1cd)](_0x26e960(0x1a2)),console[_0x26e960(0x1cd)](_0x286f3d['eYGbS']),console[_0x26e960(0x1cd)](_0x286f3d[_0x26e960(0x1c6)]);const {launchOptions:_0x427448,contextOptions:_0x581697}=_0x286f3d[_0x26e960(0x1bb)](buildBrowserOptionsFromSettings,_0x8e76db,{'headless':![],'storageStatePath':_0x3018d1?_0x32c3ae:undefined});_0x8e76db[_0x26e960(0x1a3)]&&(_0x581697['extraHTTPHeaders']={..._0x581697[_0x26e960(0x1a0)],..._0x8e76db[_0x26e960(0x1a3)]});const _0x3bcc79=await chromium[_0x26e960(0x1aa)](_0x427448);let _0x57dc33=null;try{_0x57dc33=await _0x3bcc79['newContext'](_0x581697),await addProfileSetupBanner(_0x57dc33);const _0x55cbdc=await _0x57dc33[_0x26e960(0x1b1)]();await _0x55cbdc[_0x26e960(0x1b8)](_0x2a6fe7||_0x286f3d[_0x26e960(0x1b2)]);let _0x531be3=![];await new Promise(_0x244f71=>{const _0x1eb850=_0x26e960;_0x55cbdc['on'](_0x286f3d[_0x1eb850(0x1b0)],async()=>{const _0x20ac00=_0x1eb850;try{console['log'](_0x286f3d[_0x20ac00(0x1c2)]),await _0x57dc33?.[_0x20ac00(0x1c7)]({'path':_0x32c3ae}),_0x531be3=!![];}catch{}_0x244f71();});});if(!_0x531be3){console['log']('\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.');!_0x8e76db[_0x26e960(0x1b7)]&&(console['log'](_0x286f3d[_0x26e960(0x1d6)]),console[_0x26e960(0x1cd)](_0x26e960(0x1ae)+_0x9c474c+_0x26e960(0x1c4)));throw new Error(_0x26e960(0x1c8));}}finally{_0x57dc33&&await _0x57dc33[_0x26e960(0x1b5)]()[_0x26e960(0x1ce)](()=>{}),await _0x3bcc79[_0x26e960(0x1b5)]()[_0x26e960(0x1ce)](()=>{});}if(_0x4ffa7d){const _0x2d8b54=await _0x286f3d['PCeiL'](readFile,_0x32c3ae,'utf-8'),_0x2b4dae=await _0x286f3d[_0x26e960(0x1c9)](getToken);if(!_0x2b4dae)console[_0x26e960(0x1b6)](_0x286f3d[_0x26e960(0x1ac)]),console[_0x26e960(0x1cd)]('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x32c3ae);else{const _0x492cb6=_0x286f3d['PCeiL'](encrypt,_0x2d8b54,_0x2b4dae);await _0x286f3d[_0x26e960(0x1af)](writeFile,_0x1197b8,_0x492cb6),await unlink(_0x32c3ae),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x1197b8),console[_0x26e960(0x1cd)](_0x286f3d['THPSA']),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log'](_0x26e960(0x1d2)+_0x32c3ae);_0x3cd597?.[_0x26e960(0x1c5)](_0x286f3d[_0x26e960(0x1d3)]),_0x3cd597?.[_0x26e960(0x1ca)](_0x286f3d['vINfn']),_0xae9e13['browser']=_0xae9e13[_0x26e960(0x1a7)]||{},_0xae9e13[_0x26e960(0x1a7)][_0x26e960(0x1a4)]=_0xae9e13['browser']['contextOptions']||{},_0xae9e13['browser']['contextOptions'][_0x26e960(0x1c7)]=_0x32c3ae,_0x286f3d['WHSQo'](_0x231f4f?.['allowInsecureLocalhost'],!![])&&(_0xae9e13[_0x26e960(0x1ad)]=!![]),await _0x286f3d['jkuGg'](writeFile,_0x46712e,JSON['stringify'](_0xae9e13,null,0x2)),console[_0x26e960(0x1cd)]('✓\x20Updated\x20config:\x20'+_0x46712e),_0x3cd597?.[_0x26e960(0x1c5)](_0x286f3d[_0x26e960(0x19e)]),console['log']('\x0a✅\x20Profile\x20\x22'+_0x9c474c+'\x22\x20authentication\x20updated');}
1
+ (function(_0x590d59,_0x5747c2){const _0x37a512=_0x8315,_0x1dd5a=_0x590d59();while(!![]){try{const _0x3efca4=-parseInt(_0x37a512(0xa5))/0x1*(-parseInt(_0x37a512(0xc1))/0x2)+parseInt(_0x37a512(0xb5))/0x3*(-parseInt(_0x37a512(0xba))/0x4)+parseInt(_0x37a512(0xc2))/0x5*(parseInt(_0x37a512(0xb0))/0x6)+parseInt(_0x37a512(0x95))/0x7*(parseInt(_0x37a512(0xa9))/0x8)+-parseInt(_0x37a512(0x9d))/0x9+-parseInt(_0x37a512(0xb1))/0xa*(parseInt(_0x37a512(0xb4))/0xb)+parseInt(_0x37a512(0xc0))/0xc*(parseInt(_0x37a512(0xbf))/0xd);if(_0x3efca4===_0x5747c2)break;else _0x1dd5a['push'](_0x1dd5a['shift']());}catch(_0x3f7bde){_0x1dd5a['push'](_0x1dd5a['shift']());}}}(_0x42e3,0xaa2c7));import{writeFile,readFile,unlink}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x42e3(){const _0x5885a0=['about:blank','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','contextOptions','utf-8','13dzhIxi','23666748aqYCBG','871842NWWUHx','470695cUgywh','allowInsecureLocalhost','\x20\x20\x20A\x20browser\x20will\x20open\x20with\x20your\x20existing\x20session\x20(if\x20any).','trackPhaseEnd','browser','Config\x20not\x20found\x20at\x20','\x0a✅\x20Profile\x20\x22','nvVde','XrxSu','config_write','newPage','LlECT','528731jDpvHL','XAzUC','log','VdqcQ','stdout','SJhMK','launch','storageState','7442343uIWnrQ','NJDGs','✓\x20Auth\x20state\x20saved\x20to:\x20','HoHNv','parse','YcTjs','RuySw','\x20\x20\x20When\x20you\x20are\x20done,\x20close\x20the\x20browser.\x0a','1nxTzwF','hVzrX','.enc','pJZvI','8cZlgzY','baseUrl','RRxuo','browser_auth','\x22\x20authentication\x20updated','fltqA','Enable\x20safe\x20mode\x20and\x20try\x20again:\x20ranger\x20profile\x20config\x20set\x20','78uWNyBB','10SMpUaF','stringify','\x0a📋\x20Authentication\x20Update','9888406YuHSRe','6LlfXPl','\x20safeMode\x20true\x0a','Profile\x20\x22','safeMode','✓\x20Updated\x20config:\x20','2569172JYzMhU'];_0x42e3=function(){return _0x5885a0;};return _0x42e3();}import{chromium}from'playwright';import{encrypt}from'./utils/crypto.js';function _0x8315(_0x468bd2,_0x55f81c){_0x468bd2=_0x468bd2-0x93;const _0x42e367=_0x42e3();let _0x83153=_0x42e367[_0x468bd2];return _0x83153;}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(_0xbefcc0,_0x5d28e2,_0x249676){const _0x359b38=_0x8315,_0x165cb0={'pDQcP':function(_0x3b70c2){return _0x3b70c2();},'HBkCt':'close','pJZvI':function(_0x30e841,_0x3483eb){return _0x30e841(_0x3483eb);},'HoHNv':function(_0x1ef3c7,_0x19fafb,_0x1ea76c){return _0x1ef3c7(_0x19fafb,_0x1ea76c);},'RRxuo':'settings.json','VdqcQ':function(_0x230fe8,_0x5355df){return _0x230fe8+_0x5355df;},'mvDGX':_0x359b38(0xa7),'NJDGs':'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','LlECT':function(_0x3d28a7,_0x1ad114){return _0x3d28a7(_0x1ad114);},'RuySw':_0x359b38(0xbe),'tkIKP':function(_0x36d93a,_0x1b31c9){return _0x36d93a(_0x1b31c9);},'ROuXz':'string','XAzUC':function(_0x19162,_0x414096){return _0x19162(_0x414096);},'hVzrX':_0x359b38(0xac),'toQmD':_0x359b38(0xb3),'DPjVc':_0x359b38(0xc4),'fltqA':'\x20\x20\x20Update\x20your\x20authentication\x20as\x20needed.','YcTjs':_0x359b38(0xa4),'nvVde':function(_0x23aa79,_0x5407d4){return _0x23aa79||_0x5407d4;},'TWikL':'\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','XrxSu':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','SJhMK':function(_0x10afc3,_0x4618b2,_0x2526d6){return _0x10afc3(_0x4618b2,_0x2526d6);},'ggUaL':'\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','hexqx':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','jIwIB':function(_0x5b595d,_0x54e727){return _0x5b595d===_0x54e727;}},_0x210dc3=_0x165cb0[_0x359b38(0xa8)](getEnvDir,_0xbefcc0),_0x1d0014=_0x165cb0[_0x359b38(0xa0)](join,_0x210dc3,_0x165cb0[_0x359b38(0xab)]),_0x173795=join(_0x210dc3,'auth.json'),_0x49b9d2=_0x165cb0[_0x359b38(0x98)](_0x173795,_0x165cb0['mvDGX']),_0x424305=process['stdin']['isTTY']&&process[_0x359b38(0x99)]['isTTY'];if(!_0x424305)throw new Error(_0x165cb0[_0x359b38(0x9e)]);if(!_0x165cb0[_0x359b38(0xa8)](existsSync,_0x210dc3))throw new Error(_0x359b38(0xb7)+_0xbefcc0+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0xbefcc0);if(!_0x165cb0[_0x359b38(0x94)](existsSync,_0x1d0014))throw new Error(_0x359b38(0xc7)+_0x1d0014+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0xbefcc0);const _0x2f75c6=await readFile(_0x1d0014,_0x165cb0[_0x359b38(0xa3)]),_0x5f05c3=JSON[_0x359b38(0xa1)](_0x2f75c6),_0x21c796=_0x165cb0['tkIKP'](resolveEnvVars,_0x5f05c3),_0x1a04ae=typeof _0x21c796[_0x359b38(0xaa)]===_0x165cb0['ROuXz']?_0x21c796['baseUrl']:undefined,_0x1f75c0=_0x165cb0[_0x359b38(0x96)](existsSync,_0x173795),_0x5c448d=_0x165cb0[_0x359b38(0x96)](isEnvCi,_0xbefcc0);_0x5d28e2?.['trackPhaseStart'](_0x165cb0[_0x359b38(0xa6)]),console['log'](_0x165cb0['toQmD']),console['log'](_0x165cb0['DPjVc']),console[_0x359b38(0x97)](_0x165cb0[_0x359b38(0xae)]),console[_0x359b38(0x97)](_0x165cb0[_0x359b38(0xa2)]);const {launchOptions:_0x4bb597,contextOptions:_0x1570d7}=buildBrowserOptionsFromSettings(_0x21c796,{'headless':![],'storageStatePath':_0x1f75c0?_0x173795:undefined});_0x21c796['setupHeaders']&&(_0x1570d7['extraHTTPHeaders']={..._0x1570d7['extraHTTPHeaders'],..._0x21c796['setupHeaders']});const _0x1ffdf5=await chromium[_0x359b38(0x9b)](_0x4bb597);let _0x5adcdd=null;try{_0x5adcdd=await _0x1ffdf5['newContext'](_0x1570d7),await _0x165cb0[_0x359b38(0x96)](addProfileSetupBanner,_0x5adcdd);const _0xc4a50a=await _0x5adcdd[_0x359b38(0x93)]();await _0xc4a50a['goto'](_0x165cb0[_0x359b38(0xc9)](_0x1a04ae,_0x359b38(0xbb)));let _0x42d128=![];await new Promise(_0x420e73=>{_0xc4a50a['on'](_0x165cb0['HBkCt'],async()=>{try{console['log']('Saving\x20authentication\x20state...'),await _0x5adcdd?.['storageState']({'path':_0x173795}),_0x42d128=!![];}catch{}_0x165cb0['pDQcP'](_0x420e73);});});if(!_0x42d128){console['log'](_0x165cb0['TWikL']);!_0x21c796[_0x359b38(0xb8)]&&(console['log'](_0x165cb0[_0x359b38(0xca)]),console['log'](_0x359b38(0xaf)+_0xbefcc0+_0x359b38(0xb6)));throw new Error('Browser\x20closed\x20before\x20authentication\x20was\x20saved.');}}finally{_0x5adcdd&&await _0x5adcdd['close']()['catch'](()=>{}),await _0x1ffdf5['close']()['catch'](()=>{});}if(_0x5c448d){const _0x304094=await _0x165cb0[_0x359b38(0x9a)](readFile,_0x173795,_0x165cb0['RuySw']),_0x519ddc=await getToken();if(!_0x519ddc)console['error'](_0x165cb0['ggUaL']),console['log'](_0x359b38(0x9f)+_0x173795);else{const _0x59c2df=encrypt(_0x304094,_0x519ddc);await writeFile(_0x49b9d2,_0x59c2df),await unlink(_0x173795),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x49b9d2),console[_0x359b38(0x97)](_0x359b38(0xbc)),console['log'](_0x165cb0['hexqx']);}}else console[_0x359b38(0x97)]('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x173795);_0x5d28e2?.['trackPhaseEnd']('browser_auth'),_0x5d28e2?.['trackPhaseStart'](_0x359b38(0xcb)),_0x5f05c3['browser']=_0x5f05c3[_0x359b38(0xc6)]||{},_0x5f05c3[_0x359b38(0xc6)]['contextOptions']=_0x5f05c3[_0x359b38(0xc6)][_0x359b38(0xbd)]||{},_0x5f05c3[_0x359b38(0xc6)]['contextOptions'][_0x359b38(0x9c)]=_0x173795,_0x165cb0['jIwIB'](_0x249676?.['allowInsecureLocalhost'],!![])&&(_0x5f05c3[_0x359b38(0xc3)]=!![]),await _0x165cb0['SJhMK'](writeFile,_0x1d0014,JSON[_0x359b38(0xb2)](_0x5f05c3,null,0x2)),console['log'](_0x359b38(0xb9)+_0x1d0014),_0x5d28e2?.[_0x359b38(0xc5)](_0x359b38(0xcb)),console[_0x359b38(0x97)](_0x359b38(0xc8)+_0xbefcc0+_0x359b38(0xad));}
@@ -1 +1 @@
1
- function _0xb0b7(_0x3b2ead,_0x42d256){_0x3b2ead=_0x3b2ead-0x137;const _0x12d141=_0x12d1();let _0xb0b7a7=_0x12d141[_0x3b2ead];return _0xb0b7a7;}(function(_0x5c8372,_0xcddb3b){const _0x24e2be=_0xb0b7,_0x170ae9=_0x5c8372();while(!![]){try{const _0x1f8f63=parseInt(_0x24e2be(0x13b))/0x1+parseInt(_0x24e2be(0x139))/0x2*(-parseInt(_0x24e2be(0x140))/0x3)+parseInt(_0x24e2be(0x13d))/0x4+-parseInt(_0x24e2be(0x141))/0x5+parseInt(_0x24e2be(0x143))/0x6*(parseInt(_0x24e2be(0x13a))/0x7)+-parseInt(_0x24e2be(0x142))/0x8*(-parseInt(_0x24e2be(0x13c))/0x9)+parseInt(_0x24e2be(0x137))/0xa;if(_0x1f8f63===_0xcddb3b)break;else _0x170ae9['push'](_0x170ae9['shift']());}catch(_0x307df1){_0x170ae9['push'](_0x170ae9['shift']());}}}(_0x12d1,0x32cae));import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0x12d1(){const _0x49ac4a=['4MJJHfa','7DCcewz','43985pLWPGW','18kkoSCY','918240jVoEoh','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','Profile\x20\x22','249432wRVyfr','380400HZfAgZ','265304trFIgt','411198PcAXCa','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','420100HgDkMW','ofapw'];_0x12d1=function(){return _0x49ac4a;};return _0x12d1();}export async function useEnv(_0x114130){const _0x14d998=_0xb0b7,_0x32502b={'oOEag':function(_0x528ac1,_0x40672d){return _0x528ac1(_0x40672d);},'ofapw':'settings.json','qQKcQ':function(_0x164d0f,_0x53df64){return _0x164d0f(_0x53df64);},'inwho':function(_0x4fabde,_0x345afc){return _0x4fabde(_0x345afc);},'jcCMT':function(_0x2f4cf9,_0x460f82){return _0x2f4cf9(_0x460f82);}},_0x539fe3=_0x32502b['oOEag'](getEnvDir,_0x114130),_0x57e159=join(_0x539fe3,_0x32502b[_0x14d998(0x138)]);if(!_0x32502b['qQKcQ'](existsSync,_0x539fe3))throw new Error(_0x14d998(0x13f)+_0x114130+_0x14d998(0x13e)+_0x114130);if(!_0x32502b['inwho'](existsSync,_0x57e159))throw new Error('Config\x20not\x20found\x20at\x20'+_0x57e159+_0x14d998(0x144)+_0x114130);await _0x32502b['jcCMT'](writeActiveProfileName,_0x114130),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x114130+'\x22');}
1
+ (function(_0x2d2082,_0x14c698){const _0x1226d3=_0xbea9,_0x728ffb=_0x2d2082();while(!![]){try{const _0x32e4ef=-parseInt(_0x1226d3(0xa2))/0x1+parseInt(_0x1226d3(0xa0))/0x2+parseInt(_0x1226d3(0xa1))/0x3+-parseInt(_0x1226d3(0xab))/0x4*(parseInt(_0x1226d3(0x9f))/0x5)+-parseInt(_0x1226d3(0x9d))/0x6*(-parseInt(_0x1226d3(0xa3))/0x7)+parseInt(_0x1226d3(0xa7))/0x8*(parseInt(_0x1226d3(0xa8))/0x9)+-parseInt(_0x1226d3(0xad))/0xa;if(_0x32e4ef===_0x14c698)break;else _0x728ffb['push'](_0x728ffb['shift']());}catch(_0x3df9e0){_0x728ffb['push'](_0x728ffb['shift']());}}}(_0x212c,0x501f0));import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';function _0x212c(){const _0x404c35=['10241EKBAbu','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','settings.json','2840mdHWPq','5706sqApKB','Config\x20not\x20found\x20at\x20','GnpLW','8bCXPWH','\x0a✓\x20Now\x20using\x20profile\x20\x22','1910080aYsDkB','282xrRzsU','log','1331585FTZsaU','420940GMiNly','1728318LyKzph','28589AFaHhZ'];_0x212c=function(){return _0x404c35;};return _0x212c();}import{writeActiveProfileName}from'./utils/activeProfile.js';function _0xbea9(_0x430688,_0x44993d){_0x430688=_0x430688-0x9d;const _0x212cd1=_0x212c();let _0xbea9f=_0x212cd1[_0x430688];return _0xbea9f;}export async function useEnv(_0x316934){const _0x2bc656=_0xbea9,_0x973bc7={'lUlty':function(_0x44ebb2,_0x37cbff){return _0x44ebb2(_0x37cbff);},'GnpLW':function(_0x33df57,_0x3328a6){return _0x33df57(_0x3328a6);}},_0x45def3=_0x973bc7['lUlty'](getEnvDir,_0x316934),_0x40b929=join(_0x45def3,_0x2bc656(0xa6));if(!existsSync(_0x45def3))throw new Error('Profile\x20\x22'+_0x316934+_0x2bc656(0xa4)+_0x316934);if(!_0x973bc7[_0x2bc656(0xaa)](existsSync,_0x40b929))throw new Error(_0x2bc656(0xa9)+_0x40b929+_0x2bc656(0xa5)+_0x316934);await _0x973bc7['lUlty'](writeActiveProfileName,_0x316934),console[_0x2bc656(0x9e)](_0x2bc656(0xac)+_0x316934+'\x22');}
@@ -1 +1 @@
1
- const _0x8f4475=_0x3027;(function(_0x15610f,_0x612503){const _0x4b262b=_0x3027,_0x5bb6c1=_0x15610f();while(!![]){try{const _0x370dd3=-parseInt(_0x4b262b(0x148))/0x1+-parseInt(_0x4b262b(0x13d))/0x2*(parseInt(_0x4b262b(0x147))/0x3)+parseInt(_0x4b262b(0x13a))/0x4*(parseInt(_0x4b262b(0x13f))/0x5)+parseInt(_0x4b262b(0x13b))/0x6+-parseInt(_0x4b262b(0x14c))/0x7*(parseInt(_0x4b262b(0x144))/0x8)+-parseInt(_0x4b262b(0x149))/0x9*(-parseInt(_0x4b262b(0x142))/0xa)+-parseInt(_0x4b262b(0x146))/0xb;if(_0x370dd3===_0x612503)break;else _0x5bb6c1['push'](_0x5bb6c1['shift']());}catch(_0x45e042){_0x5bb6c1['push'](_0x5bb6c1['shift']());}}}(_0x2a15,0xaac81));import{existsSync}from'fs';function _0x2a15(){const _0x26c8d8=['22nISQlJ','active-env.txt','430nmyvLC','vtfOz','utf-8','60PKusZL','QSijx','360NWAGhc','zblna','17597085sYfLOx','52179HprffQ','574158NEZzLe','1696833MLTyCL','trim','Hxsaf','90888bmeBkZ','zvZMZ','LrqVj','59324iVAPDn','7453974sdYVBH','qgTgn'];_0x2a15=function(){return _0x26c8d8;};return _0x2a15();}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=_0x8f4475(0x13e);function getActiveProfilePath(){const _0x1dc540={'iAbHT':function(_0x273d09,_0x402772,_0x11257a){return _0x273d09(_0x402772,_0x11257a);}};return _0x1dc540['iAbHT'](join,getRangerDir(),ACTIVE_PROFILE_FILE);}function _0x3027(_0x444e16,_0x483486){_0x444e16=_0x444e16-0x139;const _0x2a15aa=_0x2a15();let _0x302764=_0x2a15aa[_0x444e16];return _0x302764;}function getLegacyActiveEnvPath(){return join(getRangerDir(),LEGACY_ACTIVE_ENV_FILE);}async function migrateLegacyActiveEnv(){const _0x51e4dc=_0x8f4475,_0x329795={'QSijx':function(_0x638ab9,_0x1a7e04,_0x492d90){return _0x638ab9(_0x1a7e04,_0x492d90);},'lXGCD':'utf-8','zvZMZ':function(_0x525fe2){return _0x525fe2();},'Hxsaf':function(_0x105929,_0x22b605,_0x384cf4){return _0x105929(_0x22b605,_0x384cf4);},'qgTgn':function(_0x4dbe2b,_0x2cc9f3){return _0x4dbe2b(_0x2cc9f3);}},_0x38176d=getLegacyActiveEnvPath();if(!existsSync(_0x38176d))return null;let _0x5578e7=null;try{_0x5578e7=(await _0x329795[_0x51e4dc(0x143)](readFile,_0x38176d,_0x329795['lXGCD']))[_0x51e4dc(0x14a)]()||null;}catch{_0x5578e7=null;}if(!_0x5578e7)return null;const _0x18595e=_0x329795[_0x51e4dc(0x14d)](getActiveProfilePath);try{await rename(_0x38176d,_0x18595e);}catch{try{const _0xa996dc=getRangerDir();await _0x329795[_0x51e4dc(0x14b)](mkdir,_0xa996dc,{'recursive':!![]}),await writeFile(_0x18595e,_0x5578e7,_0x51e4dc(0x141)),await _0x329795[_0x51e4dc(0x13c)](unlink,_0x38176d);}catch{}}return _0x5578e7;}export async function readActiveProfileName(){const _0x4f8670=_0x8f4475,_0x46d06a={'zblna':function(_0x5515bf){return _0x5515bf();}},_0x12ebea=_0x46d06a[_0x4f8670(0x145)](getActiveProfilePath);if(existsSync(_0x12ebea))try{return(await readFile(_0x12ebea,'utf-8'))[_0x4f8670(0x14a)]()||null;}catch{return null;}return await migrateLegacyActiveEnv();}export async function writeActiveProfileName(_0x5df936){const _0x4830b0=_0x8f4475,_0xcf124f={'vtfOz':function(_0x436aad,_0x176d66,_0xf06055,_0x355b4f){return _0x436aad(_0x176d66,_0xf06055,_0x355b4f);},'YoVEj':'utf-8','LrqVj':function(_0xa40a0e){return _0xa40a0e();},'jclxJ':function(_0x1d6f66,_0x2e10b1){return _0x1d6f66(_0x2e10b1);}},_0xdf3899=getRangerDir();await mkdir(_0xdf3899,{'recursive':!![]});const _0x1bfea6=getActiveProfilePath();await _0xcf124f[_0x4830b0(0x140)](writeFile,_0x1bfea6,_0x5df936,_0xcf124f['YoVEj']);const _0x12e3c6=_0xcf124f[_0x4830b0(0x139)](getLegacyActiveEnvPath);if(existsSync(_0x12e3c6))try{await _0xcf124f['jclxJ'](unlink,_0x12e3c6);}catch{}}export async function migrateActiveProfileFile(){const _0x209d1b={'BfvZd':function(_0x456764,_0x263697){return _0x456764!==_0x263697;}},_0x34dfe0=await migrateLegacyActiveEnv();return _0x209d1b['BfvZd'](_0x34dfe0,null);}
1
+ const _0x36efb4=_0x5c8c;(function(_0x423d5f,_0x24707b){const _0x265f74=_0x5c8c,_0x17ca9b=_0x423d5f();while(!![]){try{const _0x4e6980=-parseInt(_0x265f74(0x1e0))/0x1*(parseInt(_0x265f74(0x1e2))/0x2)+parseInt(_0x265f74(0x1d3))/0x3+parseInt(_0x265f74(0x1de))/0x4*(parseInt(_0x265f74(0x1cf))/0x5)+-parseInt(_0x265f74(0x1dd))/0x6+parseInt(_0x265f74(0x1d4))/0x7+parseInt(_0x265f74(0x1d8))/0x8*(-parseInt(_0x265f74(0x1da))/0x9)+parseInt(_0x265f74(0x1d1))/0xa;if(_0x4e6980===_0x24707b)break;else _0x17ca9b['push'](_0x17ca9b['shift']());}catch(_0x20ba9a){_0x17ca9b['push'](_0x17ca9b['shift']());}}}(_0x5278,0x47b87));function _0x5c8c(_0x12a79d,_0x177652){_0x12a79d=_0x12a79d-0x1cf;const _0x527818=_0x5278();let _0x5c8c71=_0x527818[_0x12a79d];return _0x5c8c71;}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=_0x36efb4(0x1db);function getActiveProfilePath(){const _0x40e8fb=_0x36efb4,_0xdbcab1={'coxGT':function(_0x4ec61f,_0x53cf03,_0x4d8aa7){return _0x4ec61f(_0x53cf03,_0x4d8aa7);},'CqVlC':function(_0x318b22){return _0x318b22();}};return _0xdbcab1['coxGT'](join,_0xdbcab1[_0x40e8fb(0x1d7)](getRangerDir),ACTIVE_PROFILE_FILE);}function getLegacyActiveEnvPath(){const _0x5bcf23=_0x36efb4,_0x151bff={'jQlUS':function(_0x1efced,_0x31be24,_0x10a329){return _0x1efced(_0x31be24,_0x10a329);},'KqwdY':function(_0x5dcf7e){return _0x5dcf7e();}};return _0x151bff[_0x5bcf23(0x1d5)](join,_0x151bff[_0x5bcf23(0x1df)](getRangerDir),LEGACY_ACTIVE_ENV_FILE);}async function migrateLegacyActiveEnv(){const _0xaa2d6f=_0x36efb4,_0x1e30c1={'vZGJx':function(_0x449bd8){return _0x449bd8();},'UBEbR':function(_0x5af238,_0x32a3c2,_0x2245db){return _0x5af238(_0x32a3c2,_0x2245db);},'qeaTz':function(_0xd1f683,_0x5da2c7,_0x2b55f2,_0x275053){return _0xd1f683(_0x5da2c7,_0x2b55f2,_0x275053);}},_0x514f23=_0x1e30c1['vZGJx'](getLegacyActiveEnvPath);if(!existsSync(_0x514f23))return null;let _0xd49626=null;try{_0xd49626=(await _0x1e30c1[_0xaa2d6f(0x1d2)](readFile,_0x514f23,'utf-8'))['trim']()||null;}catch{_0xd49626=null;}if(!_0xd49626)return null;const _0x1338e7=_0x1e30c1['vZGJx'](getActiveProfilePath);try{await rename(_0x514f23,_0x1338e7);}catch{try{const _0x2c29dc=_0x1e30c1['vZGJx'](getRangerDir);await _0x1e30c1[_0xaa2d6f(0x1d2)](mkdir,_0x2c29dc,{'recursive':!![]}),await _0x1e30c1[_0xaa2d6f(0x1d0)](writeFile,_0x1338e7,_0xd49626,_0xaa2d6f(0x1d9)),await unlink(_0x514f23);}catch{}}return _0xd49626;}export async function readActiveProfileName(){const _0x259aae=_0x36efb4,_0xd1194d={'kEcBB':function(_0x48d391){return _0x48d391();},'RdYyP':_0x259aae(0x1d9),'neOtW':function(_0x673597){return _0x673597();}},_0x1eb7a7=_0xd1194d['kEcBB'](getActiveProfilePath);if(existsSync(_0x1eb7a7))try{return(await readFile(_0x1eb7a7,_0xd1194d['RdYyP']))['trim']()||null;}catch{return null;}return await _0xd1194d[_0x259aae(0x1d6)](migrateLegacyActiveEnv);}export async function writeActiveProfileName(_0x1bd2a1){const _0x3adc18=_0x36efb4,_0x2f837d={'BfjKQ':function(_0x44c09e){return _0x44c09e();},'qETPu':function(_0x135180,_0x1a1f78,_0x449b95,_0x1df24c){return _0x135180(_0x1a1f78,_0x449b95,_0x1df24c);},'MnAeg':'utf-8'},_0xb213d2=_0x2f837d[_0x3adc18(0x1dc)](getRangerDir);await mkdir(_0xb213d2,{'recursive':!![]});const _0x2eab02=_0x2f837d['BfjKQ'](getActiveProfilePath);await _0x2f837d[_0x3adc18(0x1e1)](writeFile,_0x2eab02,_0x1bd2a1,_0x2f837d[_0x3adc18(0x1e3)]);const _0x1cbca0=getLegacyActiveEnvPath();if(existsSync(_0x1cbca0))try{await unlink(_0x1cbca0);}catch{}}export async function migrateActiveProfileFile(){const _0x48fc09={'kahmo':function(_0x381f96){return _0x381f96();}},_0x231628=await _0x48fc09['kahmo'](migrateLegacyActiveEnv);return _0x231628!==null;}function _0x5278(){const _0x56254c=['jQlUS','neOtW','CqVlC','16264QYesVs','utf-8','252Lgitvn','active-env.txt','BfjKQ','2426808zNwFFa','1151756LXwDcB','KqwdY','1leMBrI','qETPu','185260RXioem','MnAeg','5ywOwbs','qeaTz','2899790UxxLbv','UBEbR','344193xsIpPm','1085980MUXfQe'];_0x5278=function(){return _0x56254c;};return _0x5278();}
@@ -1 +1 @@
1
- const _0x192a0a=_0x162b;(function(_0x57acff,_0x20b2cc){const _0x54d106=_0x162b,_0x1dd71f=_0x57acff();while(!![]){try{const _0x52a34e=-parseInt(_0x54d106(0x1dc))/0x1*(parseInt(_0x54d106(0x1e2))/0x2)+-parseInt(_0x54d106(0x1d9))/0x3*(parseInt(_0x54d106(0x1ea))/0x4)+-parseInt(_0x54d106(0x1f2))/0x5+-parseInt(_0x54d106(0x1d4))/0x6*(-parseInt(_0x54d106(0x1e0))/0x7)+parseInt(_0x54d106(0x1ec))/0x8+parseInt(_0x54d106(0x1d0))/0x9+parseInt(_0x54d106(0x1cf))/0xa*(-parseInt(_0x54d106(0x1d5))/0xb);if(_0x52a34e===_0x20b2cc)break;else _0x1dd71f['push'](_0x1dd71f['shift']());}catch(_0x416a19){_0x1dd71f['push'](_0x1dd71f['shift']());}}}(_0x3545,0x1da13));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';import{getAiProxyUrl}from'./environment.js';const AGENT_ENV_PASSTHROUGH_KEYS=['PATH','HOME',_0x192a0a(0x1f3),_0x192a0a(0x1df),'TEMP',_0x192a0a(0x1de),'APPDATA','LOCALAPPDATA',_0x192a0a(0x1ed),_0x192a0a(0x1da),'PLAYWRIGHT_BROWSERS_PATH',_0x192a0a(0x1e6),'CHROME_BIN','CHROMIUM_BIN','npm_config_cache',_0x192a0a(0x1d6),'npm_config_userconfig',_0x192a0a(0x1f4),_0x192a0a(0x1e5),_0x192a0a(0x1f1),_0x192a0a(0x1cb),'NPM_CONFIG_REGISTRY','DEBUG',_0x192a0a(0x1e4),'RANGER_TEST_SKIP_BROWSER_WAIT','RANGER_DISABLE_MCP'],UNEXPANDED_PATH_TOKEN_PATTERNS=['${PATH}','$PATH',_0x192a0a(0x1ce)];function _0x3545(){const _0x44b8c3=['push','Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','24628vYjegN','srElz','1160336TpvKdd','XDG_CACHE_HOME','TEMP','/usr/bin','string','NPM_CONFIG_PREFIX','101690RurfXE','TMPDIR','NPM_CONFIG_USERCONFIG','iaccG','JbYSn','RKchy','npm_config_registry','fbfHK','sessionToken','%PATH%','2149180BfvfSs','1603881MnzfOe','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.','split','592362TbvSVS','11EyAiPz','NPM_CONFIG_CACHE','env','xirbn','27lohCQR','XDG_CONFIG_HOME','includes','1sgQBFr','length','USERPROFILE','TMP','7cKaMiR','fOGpO','19892YClFcB','oLTvD','NODE_ENV','npm_config_prefix','PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','filter'];_0x3545=function(){return _0x44b8c3;};return _0x3545();}export function getAgentPathHealthWarning(_0x3fbc08,_0x31d130=process['platform']){const _0x431930=_0x192a0a,_0x257caf={'xirbn':function(_0xb5f5cd,_0x53b5ac){return _0xb5f5cd||_0x53b5ac;},'JbYSn':function(_0x43cf64,_0x1dd31a){return _0x43cf64===_0x1dd31a;},'ttoOf':function(_0x3120d1,_0xc3739d){return _0x3120d1!==_0xc3739d;},'srElz':function(_0x5804a0,_0x12ba0c){return _0x5804a0&&_0x12ba0c;},'iaccG':_0x431930(0x1d1),'AxNIp':function(_0xbf964f,_0x4017da){return _0xbf964f===_0x4017da;}},_0x4eda00=[],_0x43e108=_0x257caf[_0x431930(0x1d8)](_0x3fbc08,'')[_0x431930(0x1d3)](delimiter)[_0x431930(0x1e7)](Boolean);_0x257caf[_0x431930(0x1c9)](_0x43e108[_0x431930(0x1dd)],0x0)&&_0x4eda00['push'](_0x431930(0x1d2));UNEXPANDED_PATH_TOKEN_PATTERNS['some'](_0x37761b=>(_0x3fbc08||'')[_0x431930(0x1db)](_0x37761b))&&_0x4eda00['push']('PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.');if(_0x257caf['ttoOf'](_0x31d130,'win32')){const _0x3a9717=_0x43e108['includes'](_0x431930(0x1ef)),_0x356e02=_0x43e108['includes']('/bin');_0x257caf[_0x431930(0x1eb)](!_0x3a9717,!_0x356e02)&&_0x4eda00[_0x431930(0x1e8)](_0x257caf[_0x431930(0x1c8)]);}if(_0x257caf['AxNIp'](_0x4eda00[_0x431930(0x1dd)],0x0))return null;return{'summary':_0x431930(0x1e9),'issues':_0x4eda00};}function _0x162b(_0x7a88da,_0x9c0e50){_0x7a88da=_0x7a88da-0x1c8;const _0x354538=_0x3545();let _0x162bce=_0x354538[_0x7a88da];return _0x162bce;}export function buildAgentEnv(_0x4e9718){const _0x1d61f8=_0x192a0a,_0x8c134b={'RKchy':_0x1d61f8(0x1f3),'fOGpO':_0x1d61f8(0x1df),'oLTvD':function(_0x464972){return _0x464972();},'RiHgX':function(_0x11b69e,_0x5ed863,_0x3f5ab7){return _0x11b69e(_0x5ed863,_0x3f5ab7);},'fbfHK':_0x1d61f8(0x1ee)};if(_0x4e9718['byokEnabled'])return Object['fromEntries'](Object['entries'](process[_0x1d61f8(0x1d7)])[_0x1d61f8(0x1e7)](_0x55a4af=>typeof _0x55a4af[0x1]===_0x1d61f8(0x1f0)));if(!_0x4e9718['sessionToken'])throw new Error('Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false');const _0x23e2e0={'ANTHROPIC_API_KEY':_0x4e9718[_0x1d61f8(0x1cd)],'ANTHROPIC_BASE_URL':getAiProxyUrl()};for(const _0x147343 of AGENT_ENV_PASSTHROUGH_KEYS){const _0x3f2078=process['env'][_0x147343];_0x3f2078&&![_0x8c134b[_0x1d61f8(0x1ca)],_0x8c134b[_0x1d61f8(0x1e1)],_0x1d61f8(0x1ee)]['includes'](_0x147343)&&(_0x23e2e0[_0x147343]=_0x3f2078);}const _0x25d47b=join(_0x8c134b[_0x1d61f8(0x1e3)](tmpdir),'ranger-claude-tmp');try{_0x8c134b['RiHgX'](mkdirSync,_0x25d47b,{'recursive':!![]});}catch{}return _0x23e2e0[_0x8c134b['RKchy']]=_0x25d47b,_0x23e2e0['TMP']=_0x25d47b,_0x23e2e0[_0x8c134b[_0x1d61f8(0x1cc)]]=_0x25d47b,_0x23e2e0;}
1
+ function _0x4554(){const _0x44a102=['tahMN','TEMP','Session\x20token\x20is\x20required\x20when\x20RANGER_BYOK=false','60TTAQFh','RANGER_TEST_SKIP_BROWSER_WAIT','push','sessionToken','qDMyY','npm_config_cache','length','HYmkN','includes','byokEnabled','Duwao','/usr/bin','NPM_CONFIG_PREFIX','${PATH}','platform','1130lCfAAO','JBMKe','896CSkYnR','NPM_CONFIG_USERCONFIG','XDG_CACHE_HOME','lItyM','HOME','147352ymUauf','split','TMPDIR','filter','TMP','2299593WjXKHr','34958205ktcZhb','PLAYWRIGHT_BROWSERS_PATH','Your\x20PATH\x20looks\x20incomplete\x20for\x20browser\x20automation.\x20Ranger\x20will\x20keep\x20going,\x20but\x20browser\x20setup\x20may\x20fail.','FYMTq','fromEntries','5428380ZhqzjM','some','PATH\x20is\x20missing\x20core\x20system\x20directories\x20like\x20`/usr/bin`\x20and\x20`/bin`.','$PATH','NODE_ENV','158565xgMRQm','npm_config_userconfig','ranger-claude-tmp','5168289MepRvO'];_0x4554=function(){return _0x44a102;};return _0x4554();}const _0x2a3bb9=_0xc8b6;(function(_0x5c666c,_0x56b4c0){const _0x2c1c83=_0xc8b6,_0x3dc5a4=_0x5c666c();while(!![]){try{const _0xf13ac2=-parseInt(_0x2c1c83(0xfe))/0x1*(parseInt(_0x2c1c83(0x100))/0x2)+-parseInt(_0x2c1c83(0xdd))/0x3+parseInt(_0x2c1c83(0xef))/0x4*(-parseInt(_0x2c1c83(0xe8))/0x5)+-parseInt(_0x2c1c83(0xe3))/0x6+-parseInt(_0x2c1c83(0xeb))/0x7+parseInt(_0x2c1c83(0x105))/0x8+parseInt(_0x2c1c83(0xde))/0x9;if(_0xf13ac2===_0x56b4c0)break;else _0x3dc5a4['push'](_0x3dc5a4['shift']());}catch(_0x407af3){_0x3dc5a4['push'](_0x3dc5a4['shift']());}}}(_0x4554,0x7cca5));import{delimiter,join}from'path';import{tmpdir}from'os';import{mkdirSync}from'fs';function _0xc8b6(_0xac94aa,_0x573793){_0xac94aa=_0xac94aa-0xda;const _0x455437=_0x4554();let _0xc8b63b=_0x455437[_0xac94aa];return _0xc8b63b;}import{getAiProxyUrl}from'./environment.js';const AGENT_ENV_PASSTHROUGH_KEYS=['PATH',_0x2a3bb9(0x104),'TMPDIR',_0x2a3bb9(0xdc),'TEMP','USERPROFILE','APPDATA','LOCALAPPDATA',_0x2a3bb9(0x102),'XDG_CONFIG_HOME',_0x2a3bb9(0xdf),'PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD','CHROME_BIN','CHROMIUM_BIN',_0x2a3bb9(0xf4),'NPM_CONFIG_CACHE',_0x2a3bb9(0xe9),_0x2a3bb9(0x101),'npm_config_prefix',_0x2a3bb9(0xfb),'npm_config_registry','NPM_CONFIG_REGISTRY','DEBUG',_0x2a3bb9(0xe7),_0x2a3bb9(0xf0),'RANGER_DISABLE_MCP'],UNEXPANDED_PATH_TOKEN_PATTERNS=[_0x2a3bb9(0xfc),_0x2a3bb9(0xe6),'%PATH%'];export function getAgentPathHealthWarning(_0x1a8de2,_0x27db60=process[_0x2a3bb9(0xfd)]){const _0xe520f5=_0x2a3bb9,_0xabdd67={'HYmkN':function(_0x502ae2,_0x509091){return _0x502ae2||_0x509091;},'FYMTq':'/bin','ktyvI':function(_0x4a0af6,_0x3c4375){return _0x4a0af6===_0x3c4375;},'gyivQ':_0xe520f5(0xe0)},_0x43d7b3=[],_0x2eebeb=_0xabdd67[_0xe520f5(0xf6)](_0x1a8de2,'')[_0xe520f5(0x106)](delimiter)['filter'](Boolean);_0x2eebeb[_0xe520f5(0xf5)]===0x0&&_0x43d7b3[_0xe520f5(0xf1)]('PATH\x20is\x20empty,\x20so\x20npm\x20and\x20core\x20system\x20tools\x20may\x20be\x20unavailable.');UNEXPANDED_PATH_TOKEN_PATTERNS[_0xe520f5(0xe4)](_0x3cfd43=>(_0x1a8de2||'')[_0xe520f5(0xf7)](_0x3cfd43))&&_0x43d7b3['push']('PATH\x20contains\x20an\x20unexpanded\x20placeholder\x20like\x20`${PATH}`\x20instead\x20of\x20the\x20expanded\x20current\x20PATH.');if(_0x27db60!=='win32'){const _0x4f38b1=_0x2eebeb[_0xe520f5(0xf7)](_0xe520f5(0xfa)),_0x28056c=_0x2eebeb['includes'](_0xabdd67[_0xe520f5(0xe1)]);!_0x4f38b1&&!_0x28056c&&_0x43d7b3['push'](_0xe520f5(0xe5));}if(_0xabdd67['ktyvI'](_0x43d7b3[_0xe520f5(0xf5)],0x0))return null;return{'summary':_0xabdd67['gyivQ'],'issues':_0x43d7b3};}export function buildAgentEnv(_0x22c6ae){const _0x23ccbe=_0x2a3bb9,_0x484b3f={'Duwao':_0x23ccbe(0xee),'lItyM':_0x23ccbe(0xda),'cqCAA':_0x23ccbe(0xdc),'tahMN':'TEMP','JBMKe':function(_0x311248,_0xe8de06,_0x31cd62){return _0x311248(_0xe8de06,_0x31cd62);},'qDMyY':function(_0x30fd5f){return _0x30fd5f();}};if(_0x22c6ae[_0x23ccbe(0xf8)])return Object[_0x23ccbe(0xe2)](Object['entries'](process['env'])[_0x23ccbe(0xdb)](_0x2b74aa=>typeof _0x2b74aa[0x1]==='string'));if(!_0x22c6ae['sessionToken'])throw new Error(_0x484b3f[_0x23ccbe(0xf9)]);const _0x471a22={'ANTHROPIC_API_KEY':_0x22c6ae[_0x23ccbe(0xf2)],'ANTHROPIC_BASE_URL':getAiProxyUrl()};for(const _0x139647 of AGENT_ENV_PASSTHROUGH_KEYS){const _0x4fa663=process['env'][_0x139647];_0x4fa663&&![_0x484b3f[_0x23ccbe(0x103)],_0x484b3f['cqCAA'],_0x484b3f[_0x23ccbe(0xec)]]['includes'](_0x139647)&&(_0x471a22[_0x139647]=_0x4fa663);}const _0x28cc77=_0x484b3f['JBMKe'](join,_0x484b3f[_0x23ccbe(0xf3)](tmpdir),_0x23ccbe(0xea));try{_0x484b3f[_0x23ccbe(0xff)](mkdirSync,_0x28cc77,{'recursive':!![]});}catch{}return _0x471a22[_0x484b3f['lItyM']]=_0x28cc77,_0x471a22['TMP']=_0x28cc77,_0x471a22[_0x23ccbe(0xed)]=_0x28cc77,_0x471a22;}
@@ -1 +1 @@
1
- (function(_0x2b4718,_0x3dfe79){const _0x4117f5=_0x59a1,_0x40dbad=_0x2b4718();while(!![]){try{const _0x395d70=-parseInt(_0x4117f5(0x16b))/0x1+-parseInt(_0x4117f5(0x165))/0x2*(parseInt(_0x4117f5(0x126))/0x3)+-parseInt(_0x4117f5(0x14c))/0x4+parseInt(_0x4117f5(0x171))/0x5+-parseInt(_0x4117f5(0x17d))/0x6+parseInt(_0x4117f5(0x15e))/0x7*(-parseInt(_0x4117f5(0x166))/0x8)+parseInt(_0x4117f5(0x160))/0x9;if(_0x395d70===_0x3dfe79)break;else _0x40dbad['push'](_0x40dbad['shift']());}catch(_0x50ee2b){_0x40dbad['push'](_0x40dbad['shift']());}}}(_0x41e7,0x75184));const _0x1e05f4=(function(){const _0x3516f5=_0x59a1,_0x109870={'cgqaU':function(_0x2b7d1e,_0x15c21e,_0x5daffb,_0x574e6f){return _0x2b7d1e(_0x15c21e,_0x5daffb,_0x574e6f);},'JOfER':_0x3516f5(0x157),'qViru':'iGpKn'};let _0x4a515c=!![];return function(_0x2f9d01,_0x184f90){const _0x18c250=_0x3516f5,_0x44795f={'nyyXp':function(_0x44262c,_0x417c4f,_0x382062,_0x54588b){return _0x109870['cgqaU'](_0x44262c,_0x417c4f,_0x382062,_0x54588b);},'LvUVF':_0x109870['JOfER'],'BFUrU':_0x109870[_0x18c250(0x12f)]},_0x459599=_0x4a515c?function(){const _0x5eea06=_0x18c250;if(_0x44795f[_0x5eea06(0x189)]!==_0x44795f[_0x5eea06(0x189)])return _0x44795f[_0x5eea06(0x13d)](_0x4c990f,_0x441032,_0x2639b8,_0x44795f[_0x5eea06(0x17c)]);else{if(_0x184f90){const _0x2ce2fe=_0x184f90[_0x5eea06(0x132)](_0x2f9d01,arguments);return _0x184f90=null,_0x2ce2fe;}}}:function(){};return _0x4a515c=![],_0x459599;};}()),_0x268c5b=_0x1e05f4(this,function(){const _0x36a857=_0x59a1,_0x527892={'bRmKl':_0x36a857(0x154)};return _0x268c5b[_0x36a857(0x172)]()['search'](_0x527892[_0x36a857(0x162)])[_0x36a857(0x172)]()[_0x36a857(0x152)](_0x268c5b)[_0x36a857(0x16a)](_0x36a857(0x154));});_0x268c5b();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x35ba45){const _0xde4849=_0x59a1,_0x405ec3={'RtzvV':function(_0x12ee04){return _0x12ee04();},'hGedz':function(_0x3a7384,_0x1f288d,_0x2d20a3){return _0x3a7384(_0x1f288d,_0x2d20a3);},'zVmLG':_0xde4849(0x178),'MNhbk':_0xde4849(0x164),'aSWTH':function(_0x5428cc,_0x59897b){return _0x5428cc===_0x59897b;},'zkOEf':_0xde4849(0x190),'LBBVp':'LWXNK'},_0x2cd4e5=await _0x405ec3['RtzvV'](getToken);if(!_0x2cd4e5)throw new Error(_0xde4849(0x163));const _0x292800=getApiBaseUrl(),_0x5675d9=await _0x405ec3['hGedz'](fetch,_0x292800+_0xde4849(0x123),{'method':_0x405ec3[_0xde4849(0x139)],'headers':{'Authorization':'Bearer\x20'+_0x2cd4e5,'Content-Type':_0x405ec3[_0xde4849(0x150)]},'body':JSON[_0xde4849(0x17e)]({'environmentName':_0x35ba45?.['environmentName'],'settings':_0x35ba45?.[_0xde4849(0x134)],'task':_0x35ba45?.[_0xde4849(0x170)],'url':_0x35ba45?.[_0xde4849(0x124)],'featureId':_0x35ba45?.[_0xde4849(0x13f)],'checklistItemId':_0x35ba45?.[_0xde4849(0x155)]})});if(!_0x5675d9['ok']){if(_0x405ec3[_0xde4849(0x182)](_0x405ec3[_0xde4849(0x161)],_0x405ec3['LBBVp'])){const _0x1db774=_0x110266?function(){if(_0x53ebf1){const _0x58676b=_0x42e81c['apply'](_0x219995,arguments);return _0x1fb02f=null,_0x58676b;}}:function(){};return _0x3dd759=![],_0x1db774;}else{const _0x53db89=await _0x5675d9['text']();throw new Error('Failed\x20to\x20create\x20browser\x20session:\x20'+_0x53db89);}}return _0x5675d9[_0xde4849(0x175)]();}export async function updateBrowserSession(_0x284a55,_0x434ce3){const _0x5cce5f=_0x59a1,_0x477412={'BgxBD':function(_0x155348,_0x387145,_0x5e39d1,_0x528576){return _0x155348(_0x387145,_0x5e39d1,_0x528576);},'rOWLc':_0x5cce5f(0x18a),'IavUk':function(_0x4f3c3e){return _0x4f3c3e();},'hnHIO':_0x5cce5f(0x163),'IHJxf':_0x5cce5f(0x151),'OWjuM':'application/json','bFRFS':function(_0x2e2538,_0x2c4b9b){return _0x2e2538!==_0x2c4b9b;},'TLUzS':'YxoOG','QEmYs':_0x5cce5f(0x191),'KpJHg':function(_0x36c74f,_0x1e3e9c,_0x1aaaec){return _0x36c74f(_0x1e3e9c,_0x1aaaec);}};return _0x477412[_0x5cce5f(0x141)](withRetry,async()=>{const _0x4a2a24=_0x5cce5f,_0x814b63=await _0x477412[_0x4a2a24(0x13c)](getToken);if(!_0x814b63)throw new Error(_0x477412[_0x4a2a24(0x13b)]);const _0x1063d4=getApiBaseUrl(),_0x116542=await fetch(_0x1063d4+_0x4a2a24(0x14b)+_0x284a55,{'method':_0x477412[_0x4a2a24(0x18f)],'headers':{'Authorization':_0x4a2a24(0x125)+_0x814b63,'Content-Type':_0x477412['OWjuM']},'body':JSON[_0x4a2a24(0x17e)](_0x434ce3)});if(!_0x116542['ok']){if(_0x477412['bFRFS'](_0x477412[_0x4a2a24(0x16d)],_0x477412[_0x4a2a24(0x135)])){const _0x274f87=await _0x116542[_0x4a2a24(0x159)]();throw new Error(_0x4a2a24(0x13a)+_0x274f87);}else return _0x477412[_0x4a2a24(0x130)](_0x340a93,_0x461109,_0x51f264,_0x477412['rOWLc']);}return _0x116542[_0x4a2a24(0x175)]();},{'label':_0x5cce5f(0x149)});}export async function getBrowserSession(_0x84b270){const _0x4b08db=_0x59a1,_0x391038={'vNEoo':function(_0x2dc2a1){return _0x2dc2a1();},'SMzwx':function(_0x12998f,_0x1c4a25,_0x54cb7f){return _0x12998f(_0x1c4a25,_0x54cb7f);},'wSGtV':'GET'},_0x2ead1b=await getToken();if(!_0x2ead1b)throw new Error(_0x4b08db(0x163));const _0x36b1d1=_0x391038['vNEoo'](getApiBaseUrl),_0x4c19a3=await _0x391038[_0x4b08db(0x153)](fetch,_0x36b1d1+'/api/v1/mcp/browser-sessions/'+_0x84b270,{'method':_0x391038[_0x4b08db(0x138)],'headers':{'Authorization':_0x4b08db(0x125)+_0x2ead1b}});if(!_0x4c19a3['ok']){const _0x264589=await _0x4c19a3['text']();throw new Error(_0x4b08db(0x131)+_0x264589);}return _0x4c19a3['json']();}export async function getUploadUrls(_0x539dec,_0x51c304,_0x2151ed,_0x59f6bd){const _0x62d330=_0x59a1,_0x28ce79={'KVqhm':function(_0x3c72e5){return _0x3c72e5();},'xsskK':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','lfXMV':_0x62d330(0x178),'mZaGg':_0x62d330(0x164),'kEqds':function(_0x5174c0,_0x204a29){return _0x5174c0!==_0x204a29;},'JNWrF':function(_0x5e1286,_0x56fad1){return _0x5e1286!==_0x56fad1;}},_0x13df77=await _0x28ce79[_0x62d330(0x146)](getToken);if(!_0x13df77)throw new Error(_0x28ce79[_0x62d330(0x18e)]);const _0x472ffc=getApiBaseUrl(),_0x56bf1c=await fetch(_0x472ffc+_0x62d330(0x14b)+_0x539dec+_0x62d330(0x17a),{'method':_0x28ce79[_0x62d330(0x15d)],'headers':{'Authorization':'Bearer\x20'+_0x13df77,'Content-Type':_0x28ce79[_0x62d330(0x136)]},'body':JSON[_0x62d330(0x17e)]({'filename':_0x51c304,'filetype':_0x2151ed,..._0x28ce79['kEqds'](_0x59f6bd?.[_0x62d330(0x15b)],undefined)&&{'size':_0x59f6bd[_0x62d330(0x15b)]},..._0x59f6bd?.[_0x62d330(0x18c)]!==undefined&&{'checksum':_0x59f6bd[_0x62d330(0x18c)]},..._0x28ce79['JNWrF'](_0x59f6bd?.[_0x62d330(0x14a)],undefined)&&{'metadata':_0x59f6bd[_0x62d330(0x14a)]}})});if(!_0x56bf1c['ok']){const _0x55a9b2=await _0x56bf1c[_0x62d330(0x159)]();throw new Error(_0x62d330(0x15f)+_0x55a9b2);}return _0x56bf1c[_0x62d330(0x175)]();}export async function uploadFile(_0x1ac187,_0x33d724,_0x159712){const _0x3461c1=_0x59a1,_0x2c6c48={'yePiK':function(_0x2a433e,_0x430832,_0x4558c9){return _0x2a433e(_0x430832,_0x4558c9);}},_0x122b86=await _0x2c6c48[_0x3461c1(0x194)](fetch,_0x1ac187,{'method':_0x3461c1(0x14d),'headers':{'Content-Type':_0x159712,'Content-Length':_0x33d724['length'][_0x3461c1(0x172)]()},'body':_0x33d724});if(!_0x122b86['ok']){const _0x268ebc=await _0x122b86[_0x3461c1(0x159)]();throw new Error('Failed\x20to\x20upload\x20file:\x20'+_0x268ebc);}}export async function uploadTrace(_0x3d0cc0,_0x1e1342){const _0x1f0596=_0x59a1,_0x56f8f8={'UMKtf':function(_0x471566,_0x3a3493,_0x5c78fc,_0x4978c5){return _0x471566(_0x3a3493,_0x5c78fc,_0x4978c5);},'CvquF':_0x1f0596(0x18a)};return _0x56f8f8[_0x1f0596(0x17f)](uploadFile,_0x3d0cc0,_0x1e1342,_0x56f8f8['CvquF']);}export async function uploadConversation(_0x348134,_0x388ac1){const _0x340167=_0x59a1,_0x32ada5={'MAvWi':_0x340167(0x184)};return uploadFile(_0x348134,_0x388ac1,_0x32ada5[_0x340167(0x129)]);}function _0x41e7(){const _0x3ea2e3=['EwvqAuS','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','DxjS','qMvHCMvYia','odK4ogffru5RzG','C2vZC2LVBLrVA2vU','qLDqvgS','tuf2v2K','vw5HvNy','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','q2rzrvu','wgzcwey','DeHqsee','CvzPCNu','qMD4qKq','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','yxbWBhK','u1vntwO','C2v0DgLUz3m','uuvTwxm','BvPHr2C','CLLADgO','D1nhDfy','ELzTteC','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','Ag5isu8','swf2vwS','BNL5wha','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','zMvHDhvYzuLK','yujSteO','s3bksgC','EK5dzLq','sfjmD2e','tLrXwhu','vhDcExC','s1zXAg0','r2XVqu0','DK12vhC','DxbKyxrLqNjVD3nLCLnLC3nPB24','Bwv0ywrHDge','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','otaZodm2EvrwwNzg','ufvu','tgjyqvO','DxbKyxrL','tu5OyMS','uefuq0G','y29UC3rYDwn0B3i','u016D3G','kcGOlISPkYKRksSK','y2HLy2TSAxn0sxrLBuLK','q3nhtM4','DMLKzw8VD2vIBq','thbKvNK','Dgv4Da','ug9uExi','C2L6zq','t1vQDxi','Bgzytvy','mte5yLPJqLn0','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','mtuXodm0ntbUCeHPvuC','EMTprwy','yLjTs2W','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','yxbWBgLJyxrPB24VANnVBG','mte2B3zZv25M','mZy2mZq0C2XlCLDM','z2P0zxG','twvYtNO','rgHrt2u','C2vHCMnO','ndm5mZa2tgHXwfbj','r0vu','veXvELm','yunWueq','l3n0zxbZ','DgfZAW','mJa1odC0mgjsD3jUDa','Dg9tDhjPBMC','s3HLrKG','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','ANnVBG','BLfNBvm','zwDWA20','ue9tva','wfflC00','l3vWBg9Hzc11CMXZ','v01Ts0u','thzvvKy','otK4nhHNsKrZCG','C3rYAw5NAwz5','vu1lDgy','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','teHvu1y','yvnxveG','l3n0zxbZlW','yxbWBgLJyxrPB24VANnVBMW','t3PXzKK','u2rbD2K','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','yMfZzty0','qKzvCLu','yxbWBgLJyxrPB24VEMLW','zgLNzxn0','y2HLy2TZDw0','ruP6suG','EhnZA0S','suHkEgy','DLPUEg4','vwToCeC','EwDuwxa','l2fZC2v0CW'];_0x41e7=function(){return _0x3ea2e3;};return _0x41e7();}export async function uploadScreenshot(_0x200866,_0x2892c0){const _0x214121=_0x59a1,_0x46d4f3={'OUjur':function(_0x49c374,_0x12090f,_0x51eb01,_0x294a0d){return _0x49c374(_0x12090f,_0x51eb01,_0x294a0d);},'fhaKE':'image/png'};return _0x46d4f3[_0x214121(0x15c)](uploadFile,_0x200866,_0x2892c0,_0x46d4f3['fhaKE']);}export async function uploadVideo(_0x337ced,_0x573edd){const _0x390bc2=_0x59a1,_0x2f12fd={'AmVHz':function(_0x1d6209,_0x5c74cf,_0xee3fb5,_0x19fc92){return _0x1d6209(_0x5c74cf,_0xee3fb5,_0x19fc92);},'nQgmS':'video/webm'};return _0x2f12fd['AmVHz'](uploadFile,_0x337ced,_0x573edd,_0x2f12fd[_0x390bc2(0x176)]);}export function buildTraceViewerUrl(_0x4cba28){const _0x1bf185=_0x59a1,_0x567864={'HRLwa':function(_0x3e4d86,_0x2d0114){return _0x3e4d86(_0x2d0114);}},_0x413e52=_0x567864[_0x1bf185(0x143)](encodeURIComponent,_0x4cba28);return _0x1bf185(0x174)+_0x413e52;}function _0x59a1(_0xaebd7e,_0x95fd8e){_0xaebd7e=_0xaebd7e-0x123;const _0x4fbd59=_0x41e7();let _0x268c5b=_0x4fbd59[_0xaebd7e];if(_0x59a1['AFsJLH']===undefined){var _0x1e05f4=function(_0x56c7c4){const _0x31bcde='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x561fab='',_0x41d5ce='',_0x39433f=_0x561fab+_0x1e05f4;for(let _0x2e22d5=0x0,_0x3ff4cb,_0x260ba2,_0x4fcefe=0x0;_0x260ba2=_0x56c7c4['charAt'](_0x4fcefe++);~_0x260ba2&&(_0x3ff4cb=_0x2e22d5%0x4?_0x3ff4cb*0x40+_0x260ba2:_0x260ba2,_0x2e22d5++%0x4)?_0x561fab+=_0x39433f['charCodeAt'](_0x4fcefe+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3ff4cb>>(-0x2*_0x2e22d5&0x6)):_0x2e22d5:0x0){_0x260ba2=_0x31bcde['indexOf'](_0x260ba2);}for(let _0x3bbebc=0x0,_0x447e2f=_0x561fab['length'];_0x3bbebc<_0x447e2f;_0x3bbebc++){_0x41d5ce+='%'+('00'+_0x561fab['charCodeAt'](_0x3bbebc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x41d5ce);};_0x59a1['SzVRvY']=_0x1e05f4,_0x59a1['Eroqky']={},_0x59a1['AFsJLH']=!![];}const _0x41e70d=_0x4fbd59[0x0],_0x59a1f1=_0xaebd7e+_0x41e70d,_0x18bb10=_0x59a1['Eroqky'][_0x59a1f1];if(!_0x18bb10){const _0x110266=function(_0x1ae62b){this['mVfexm']=_0x1ae62b,this['LBcpzK']=[0x1,0x0,0x0],this['uTJvgc']=function(){return'newState';},this['GCXade']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['NfZDIh']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x110266['prototype']['uzxENy']=function(){const _0x43d06c=new RegExp(this['GCXade']+this['NfZDIh']),_0x1a1daf=_0x43d06c['test'](this['uTJvgc']['toString']())?--this['LBcpzK'][0x1]:--this['LBcpzK'][0x0];return this['powwex'](_0x1a1daf);},_0x110266['prototype']['powwex']=function(_0x278a46){if(!Boolean(~_0x278a46))return _0x278a46;return this['SGlsVT'](this['mVfexm']);},_0x110266['prototype']['SGlsVT']=function(_0x3dd759){for(let _0x53ebf1=0x0,_0x6152d4=this['LBcpzK']['length'];_0x53ebf1<_0x6152d4;_0x53ebf1++){this['LBcpzK']['push'](Math['round'](Math['random']())),_0x6152d4=this['LBcpzK']['length'];}return _0x3dd759(this['LBcpzK'][0x0]);},new _0x110266(_0x59a1)['uzxENy'](),_0x268c5b=_0x59a1['SzVRvY'](_0x268c5b),_0x59a1['Eroqky'][_0x59a1f1]=_0x268c5b;}else _0x268c5b=_0x18bb10;return _0x268c5b;}export async function getProxySessionToken(){const _0x393190=_0x59a1,_0xeabf40={'egpkm':_0x393190(0x163),'LbXAZ':'zLBLJ','rYZtj':function(_0x4df14f){return _0x4df14f();},'dgXeV':function(_0x2144bc,_0x3d209e,_0x12ca85){return _0x2144bc(_0x3d209e,_0x12ca85);},'mcFKc':_0x393190(0x178)},_0x5c3f23=await getToken();if(!_0x5c3f23){if(_0xeabf40[_0x393190(0x14e)]===_0xeabf40[_0x393190(0x14e)])throw new Error(_0xeabf40[_0x393190(0x177)]);else throw new _0x3e64dd(_0xeabf40[_0x393190(0x177)]);}const _0x501fa2=_0xeabf40[_0x393190(0x137)](getApiBaseUrl),_0x5c580a=await _0xeabf40['dgXeV'](fetch,_0x501fa2+_0x393190(0x12b),{'method':_0xeabf40['mcFKc'],'headers':{'Authorization':_0x393190(0x125)+_0x5c3f23}});if(!_0x5c580a['ok']){const _0x399229=await _0x5c580a[_0x393190(0x159)]();throw new Error('Failed\x20to\x20get\x20proxy\x20session\x20token:\x20'+_0x399229);}const _0x355f2a=await _0x5c580a[_0x393190(0x175)]();return _0x355f2a[_0x393190(0x127)];}export function computeChecksum(_0x9a2ace){const _0xa962e5=_0x59a1,_0x3a9110={'MerNz':'md5'};return createHash(_0x3a9110[_0xa962e5(0x168)])[_0xa962e5(0x14f)](_0x9a2ace)[_0xa962e5(0x18b)](_0xa962e5(0x188));}export async function createVerificationStep(_0x2bce3d,_0x121279){const _0x1516e6=_0x59a1,_0x3bdcdd={'GloAM':_0x1516e6(0x163),'KxeFH':function(_0x13ef37){return _0x13ef37();},'UnaVv':function(_0x190fe0,_0x78c8ef){return _0x190fe0!==_0x78c8ef;},'XQKsM':_0x1516e6(0x167),'PoTyr':function(_0x447fc6){return _0x447fc6();},'tHPHA':_0x1516e6(0x164),'sMujB':'ZfqfT','DhQOe':_0x1516e6(0x158)},_0x3a9b51=await _0x3bdcdd[_0x1516e6(0x173)](getToken);if(!_0x3a9b51){if(_0x3bdcdd[_0x1516e6(0x12a)](_0x1516e6(0x167),_0x3bdcdd[_0x1516e6(0x179)]))throw new _0x4231fe(_0x3bdcdd[_0x1516e6(0x147)]);else throw new Error(_0x3bdcdd[_0x1516e6(0x147)]);}const _0x4ffae7=_0x3bdcdd[_0x1516e6(0x15a)](getApiBaseUrl),_0x48fa33=await fetch(_0x4ffae7+_0x1516e6(0x14b)+_0x2bce3d+_0x1516e6(0x16f),{'method':'POST','headers':{'Authorization':_0x1516e6(0x125)+_0x3a9b51,'Content-Type':_0x3bdcdd[_0x1516e6(0x12e)]},'body':JSON[_0x1516e6(0x17e)](_0x121279)});if(!_0x48fa33['ok']){if(_0x3bdcdd['sMujB']!==_0x3bdcdd[_0x1516e6(0x169)]){const _0x3860ac=await _0x48fa33[_0x1516e6(0x159)]();throw new Error(_0x1516e6(0x13e)+_0x3860ac);}else throw new _0x2c66be(_0x3bdcdd[_0x1516e6(0x147)]);}return _0x48fa33[_0x1516e6(0x175)]();}export async function createStepAsset(_0x52ec2f,_0x3eba2a,_0x4cba90){const _0x218da6=_0x59a1,_0xb7a901={'SdAwi':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','NTqXu':function(_0x25a051){return _0x25a051();},'CsGNn':_0x218da6(0x192),'euLZT':_0x218da6(0x142),'aBlLJ':function(_0x4899ca){return _0x4899ca();},'TwByw':function(_0x42e997,_0x27e27c,_0x5d3026){return _0x42e997(_0x27e27c,_0x5d3026);},'dHnum':_0x218da6(0x178),'vMvTw':_0x218da6(0x164)},_0x479a09=await _0xb7a901[_0x218da6(0x144)](getToken);if(!_0x479a09){if(_0xb7a901[_0x218da6(0x156)]!==_0xb7a901['euLZT'])throw new Error(_0xb7a901[_0x218da6(0x186)]);else throw new _0x36a8d7(_0xb7a901[_0x218da6(0x186)]);}const _0x1d0e49=_0xb7a901[_0x218da6(0x140)](getApiBaseUrl),_0x331dd4=await _0xb7a901[_0x218da6(0x145)](fetch,_0x1d0e49+'/api/v1/mcp/browser-sessions/'+_0x52ec2f+_0x218da6(0x183)+_0x3eba2a+_0x218da6(0x193),{'method':_0xb7a901['dHnum'],'headers':{'Authorization':_0x218da6(0x125)+_0x479a09,'Content-Type':_0xb7a901[_0x218da6(0x148)]},'body':JSON[_0x218da6(0x17e)](_0x4cba90)});if(!_0x331dd4['ok']){const _0x2790cf=await _0x331dd4['text']();throw new Error(_0x218da6(0x187)+_0x2790cf);}return _0x331dd4[_0x218da6(0x175)]();}export async function updateVerificationStep(_0x376d7a,_0x35bd22,_0x517569){const _0x1465f9=_0x59a1,_0x1239e1={'LHUSV':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','pGcdR':function(_0xe40f01){return _0xe40f01();},'UnzZZ':function(_0xccd4dc,_0x304725,_0x4eceb5){return _0xccd4dc(_0x304725,_0x4eceb5);},'iOiVl':'application/json','BWPTk':function(_0x446195,_0x1ff5f6){return _0x446195!==_0x1ff5f6;},'WMmKE':'jaydZ'},_0x4cd35a=await getToken();if(!_0x4cd35a)throw new Error(_0x1239e1[_0x1465f9(0x181)]);const _0x34ce66=_0x1239e1['pGcdR'](getApiBaseUrl),_0x47cc51=await _0x1239e1['UnzZZ'](fetch,_0x34ce66+_0x1465f9(0x14b)+_0x376d7a+_0x1465f9(0x183)+_0x35bd22,{'method':_0x1465f9(0x151),'headers':{'Authorization':'Bearer\x20'+_0x4cd35a,'Content-Type':_0x1239e1['iOiVl']},'body':JSON[_0x1465f9(0x17e)](_0x517569)});if(!_0x47cc51['ok']){if(_0x1239e1[_0x1465f9(0x128)](_0x1465f9(0x12c),_0x1239e1[_0x1465f9(0x17b)])){const _0x168790=await _0x47cc51[_0x1465f9(0x159)]();throw new Error(_0x1465f9(0x180)+_0x168790);}else throw new _0x4af374(_0x1239e1['LHUSV']);}}export async function getBrowserSessionSteps(_0x179c03){const _0x199f19=_0x59a1,_0x230827={'EJzIH':function(_0x595ae9,_0x1d62d5,_0x4913e2,_0x7a3a49){return _0x595ae9(_0x1d62d5,_0x4913e2,_0x7a3a49);},'SUMMj':'application/jsonl','IYdGz':function(_0x4e113c){return _0x4e113c();},'OzqfI':_0x199f19(0x163),'tqZoX':function(_0xdfbbc2){return _0xdfbbc2();},'XfBXF':function(_0x22203d,_0x26e85c){return _0x22203d===_0x26e85c;},'owSpU':'ymorY','aCpPD':'YgDWH'},_0x29ce95=await _0x230827['IYdGz'](getToken);if(!_0x29ce95)throw new Error(_0x230827[_0x199f19(0x185)]);const _0x317545=_0x230827['tqZoX'](getApiBaseUrl),_0x296f8e=await fetch(_0x317545+'/api/v1/mcp/browser-sessions/'+_0x179c03+'/steps',{'method':_0x199f19(0x16c),'headers':{'Authorization':_0x199f19(0x125)+_0x29ce95}});if(!_0x296f8e['ok']){if(_0x230827[_0x199f19(0x12d)](_0x230827['owSpU'],_0x230827[_0x199f19(0x16e)]))return _0x230827[_0x199f19(0x18d)](_0x50d9db,_0x34b29c,_0x445b4f,_0x230827[_0x199f19(0x133)]);else{const _0x56588b=await _0x296f8e[_0x199f19(0x159)]();throw new Error('Failed\x20to\x20get\x20browser\x20session\x20steps:\x20'+_0x56588b);}}return _0x296f8e[_0x199f19(0x175)]();}
1
+ (function(_0x1fb22c,_0x2371aa){const _0x5e2979=_0x2d4f,_0x203955=_0x1fb22c();while(!![]){try{const _0x4aa6ed=-parseInt(_0x5e2979(0x18f))/0x1*(parseInt(_0x5e2979(0x17b))/0x2)+-parseInt(_0x5e2979(0x1ce))/0x3*(parseInt(_0x5e2979(0x1b3))/0x4)+parseInt(_0x5e2979(0x188))/0x5+-parseInt(_0x5e2979(0x1e2))/0x6*(-parseInt(_0x5e2979(0x1ae))/0x7)+-parseInt(_0x5e2979(0x1d6))/0x8+parseInt(_0x5e2979(0x196))/0x9*(parseInt(_0x5e2979(0x1b7))/0xa)+parseInt(_0x5e2979(0x1a8))/0xb;if(_0x4aa6ed===_0x2371aa)break;else _0x203955['push'](_0x203955['shift']());}catch(_0x370756){_0x203955['push'](_0x203955['shift']());}}}(_0x4847,0xeb732));const _0x4cae6d=(function(){let _0x4f5fc1=!![];return function(_0x4a7f8e,_0x54bfd4){const _0x297d4e=_0x4f5fc1?function(){const _0x2a1964=_0x2d4f;if(_0x54bfd4){const _0x4b137e=_0x54bfd4[_0x2a1964(0x1e3)](_0x4a7f8e,arguments);return _0x54bfd4=null,_0x4b137e;}}:function(){};return _0x4f5fc1=![],_0x297d4e;};}()),_0x5f4265=_0x4cae6d(this,function(){const _0x26c1a1=_0x2d4f,_0x321109={'PvFWf':'(((.+)+)+)+$'};return _0x5f4265[_0x26c1a1(0x1e6)]()['search'](_0x321109[_0x26c1a1(0x1cd)])[_0x26c1a1(0x1e6)]()[_0x26c1a1(0x1d3)](_0x5f4265)['search'](_0x321109['PvFWf']);});_0x5f4265();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';function _0x2d4f(_0x1676bc,_0x34cd8d){_0x1676bc=_0x1676bc-0x173;const _0x3f113b=_0x4847();let _0x5f4265=_0x3f113b[_0x1676bc];if(_0x2d4f['vpiuPy']===undefined){var _0x4cae6d=function(_0x510060){const _0x3ae4a2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x52a835='',_0x485ee7='',_0x3a4ab6=_0x52a835+_0x4cae6d;for(let _0x550695=0x0,_0x8f497a,_0x45aea4,_0x292a50=0x0;_0x45aea4=_0x510060['charAt'](_0x292a50++);~_0x45aea4&&(_0x8f497a=_0x550695%0x4?_0x8f497a*0x40+_0x45aea4:_0x45aea4,_0x550695++%0x4)?_0x52a835+=_0x3a4ab6['charCodeAt'](_0x292a50+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x8f497a>>(-0x2*_0x550695&0x6)):_0x550695:0x0){_0x45aea4=_0x3ae4a2['indexOf'](_0x45aea4);}for(let _0x1c2492=0x0,_0xb608ea=_0x52a835['length'];_0x1c2492<_0xb608ea;_0x1c2492++){_0x485ee7+='%'+('00'+_0x52a835['charCodeAt'](_0x1c2492)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x485ee7);};_0x2d4f['HfckFH']=_0x4cae6d,_0x2d4f['SBrgJU']={},_0x2d4f['vpiuPy']=!![];}const _0x484734=_0x3f113b[0x0],_0x2d4f43=_0x1676bc+_0x484734,_0x180101=_0x2d4f['SBrgJU'][_0x2d4f43];if(!_0x180101){const _0x5d59b5=function(_0x2a091c){this['LITiuq']=_0x2a091c,this['BUIjNe']=[0x1,0x0,0x0],this['SjsOlY']=function(){return'newState';},this['KhJitW']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['tfYodX']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5d59b5['prototype']['uCcOUd']=function(){const _0x16ce0b=new RegExp(this['KhJitW']+this['tfYodX']),_0x4b11ac=_0x16ce0b['test'](this['SjsOlY']['toString']())?--this['BUIjNe'][0x1]:--this['BUIjNe'][0x0];return this['FZjtZL'](_0x4b11ac);},_0x5d59b5['prototype']['FZjtZL']=function(_0x5bf7f9){if(!Boolean(~_0x5bf7f9))return _0x5bf7f9;return this['sxGMQU'](this['LITiuq']);},_0x5d59b5['prototype']['sxGMQU']=function(_0x42cdf5){for(let _0x27d6ec=0x0,_0x5ef8d9=this['BUIjNe']['length'];_0x27d6ec<_0x5ef8d9;_0x27d6ec++){this['BUIjNe']['push'](Math['round'](Math['random']())),_0x5ef8d9=this['BUIjNe']['length'];}return _0x42cdf5(this['BUIjNe'][0x0]);},new _0x5d59b5(_0x2d4f)['uCcOUd'](),_0x5f4265=_0x2d4f['HfckFH'](_0x5f4265),_0x2d4f['SBrgJU'][_0x2d4f43]=_0x5f4265;}else _0x5f4265=_0x180101;return _0x5f4265;}export async function createBrowserSession(_0x2613bb){const _0x1e04e1=_0x2d4f,_0x40b1c5={'hdRCb':_0x1e04e1(0x1e1),'TbVWn':function(_0x178f0d){return _0x178f0d();},'HWdVy':function(_0x3ba6ea,_0x5b4fa0){return _0x3ba6ea===_0x5b4fa0;},'nOoDw':'TYelz','fISSi':_0x1e04e1(0x18c),'euosd':'application/json','RYvpp':_0x1e04e1(0x197),'idnMY':_0x1e04e1(0x1d9)},_0x4b66ce=await _0x40b1c5[_0x1e04e1(0x1d0)](getToken);if(!_0x4b66ce){if(_0x40b1c5[_0x1e04e1(0x1bc)](_0x40b1c5[_0x1e04e1(0x1db)],_0x40b1c5[_0x1e04e1(0x1db)]))throw new Error(_0x40b1c5[_0x1e04e1(0x17d)]);else return _0x1838de[_0x1e04e1(0x1e6)]()[_0x1e04e1(0x1a4)](_0x1e04e1(0x179))[_0x1e04e1(0x1e6)]()[_0x1e04e1(0x1d3)](_0x35320d)['search']('(((.+)+)+)+$');}const _0xfebe11=getApiBaseUrl(),_0xf17d20=await fetch(_0xfebe11+'/api/v1/mcp/browser-sessions',{'method':_0x40b1c5['fISSi'],'headers':{'Authorization':_0x1e04e1(0x18b)+_0x4b66ce,'Content-Type':_0x40b1c5['euosd']},'body':JSON[_0x1e04e1(0x1b2)]({'environmentName':_0x2613bb?.[_0x1e04e1(0x192)],'settings':_0x2613bb?.['settings'],'task':_0x2613bb?.[_0x1e04e1(0x1a5)],'url':_0x2613bb?.[_0x1e04e1(0x1da)],'featureId':_0x2613bb?.['featureId'],'checklistItemId':_0x2613bb?.[_0x1e04e1(0x1ba)]})});if(!_0xf17d20['ok']){if(_0x40b1c5[_0x1e04e1(0x1ac)]===_0x40b1c5[_0x1e04e1(0x17e)])throw new _0x475abd(_0x40b1c5[_0x1e04e1(0x17d)]);else{const _0x168d73=await _0xf17d20['text']();throw new Error(_0x1e04e1(0x1c9)+_0x168d73);}}return _0xf17d20[_0x1e04e1(0x1d2)]();}export async function updateBrowserSession(_0x1f5db6,_0x120b12){const _0xc8ec0c=_0x2d4f,_0x493f5f={'ifIsC':_0xc8ec0c(0x1e1),'ZEjPs':function(_0x29d6c0){return _0x29d6c0();},'mhSae':function(_0x57ab1f,_0x415d0c){return _0x57ab1f===_0x415d0c;},'lyNMN':_0xc8ec0c(0x1ad),'AyGRJ':_0xc8ec0c(0x176),'zTYhL':function(_0xd75fa0){return _0xd75fa0();},'lXBlh':function(_0x463214,_0x27855f,_0x1c3d34){return _0x463214(_0x27855f,_0x1c3d34);},'nXkIk':_0xc8ec0c(0x18d),'xQdte':_0xc8ec0c(0x182),'IkVxA':'updateBrowserSession'};return withRetry(async()=>{const _0x49bfa1=_0xc8ec0c,_0x498f55=await _0x493f5f[_0x49bfa1(0x1a2)](getToken);if(!_0x498f55){if(_0x493f5f[_0x49bfa1(0x1dd)](_0x493f5f[_0x49bfa1(0x1a0)],_0x493f5f[_0x49bfa1(0x1a6)]))throw new _0x3a0c3d(_0x493f5f[_0x49bfa1(0x1c5)]);else throw new Error(_0x493f5f[_0x49bfa1(0x1c5)]);}const _0x2d04b2=_0x493f5f[_0x49bfa1(0x17c)](getApiBaseUrl),_0x1587a4=await _0x493f5f[_0x49bfa1(0x1c6)](fetch,_0x2d04b2+_0x49bfa1(0x1e5)+_0x1f5db6,{'method':_0x493f5f[_0x49bfa1(0x18e)],'headers':{'Authorization':'Bearer\x20'+_0x498f55,'Content-Type':_0x493f5f[_0x49bfa1(0x1c4)]},'body':JSON[_0x49bfa1(0x1b2)](_0x120b12)});if(!_0x1587a4['ok']){const _0x556b0c=await _0x1587a4[_0x49bfa1(0x193)]();throw new Error(_0x49bfa1(0x195)+_0x556b0c);}return _0x1587a4['json']();},{'label':_0x493f5f[_0xc8ec0c(0x198)]});}export async function getBrowserSession(_0x193d73){const _0x47b9e1=_0x2d4f,_0x5072f4={'ltLPA':_0x47b9e1(0x1e1),'CXkWf':function(_0x4c4f59){return _0x4c4f59();},'HcpZy':function(_0x3a8c9c,_0x26e5cc){return _0x3a8c9c!==_0x26e5cc;},'CGmvz':_0x47b9e1(0x17a)},_0x1bd578=await _0x5072f4['CXkWf'](getToken);if(!_0x1bd578){if(_0x5072f4[_0x47b9e1(0x1ab)]('oTXwu',_0x47b9e1(0x1b6)))throw new _0xf99ab4(_0x5072f4[_0x47b9e1(0x189)]);else throw new Error(_0x47b9e1(0x1e1));}const _0x4409d0=getApiBaseUrl(),_0xf600a0=await fetch(_0x4409d0+_0x47b9e1(0x1e5)+_0x193d73,{'method':_0x5072f4[_0x47b9e1(0x1cf)],'headers':{'Authorization':_0x47b9e1(0x18b)+_0x1bd578}});if(!_0xf600a0['ok']){const _0xc6e326=await _0xf600a0['text']();throw new Error(_0x47b9e1(0x19a)+_0xc6e326);}return _0xf600a0[_0x47b9e1(0x1d2)]();}export async function getUploadUrls(_0x21802a,_0x3060d4,_0x1f44b2,_0x465273){const _0x3c8415=_0x2d4f,_0x168c66={'ZLRtp':_0x3c8415(0x1e1),'SpquX':function(_0x46ddb9){return _0x46ddb9();},'KPPLE':function(_0x36b65b,_0x41fd52){return _0x36b65b!==_0x41fd52;},'VjrFU':_0x3c8415(0x19f),'qBgDQ':_0x3c8415(0x18c),'quzSE':function(_0xaae438,_0x3f6b47){return _0xaae438!==_0x3f6b47;}},_0x2213e7=await _0x168c66[_0x3c8415(0x19e)](getToken);if(!_0x2213e7){if(_0x168c66['KPPLE'](_0x168c66[_0x3c8415(0x1c0)],_0x168c66['VjrFU']))throw new _0x9dc699(_0x168c66[_0x3c8415(0x199)]);else throw new Error(_0x168c66[_0x3c8415(0x199)]);}const _0x30fe0b=_0x168c66[_0x3c8415(0x19e)](getApiBaseUrl),_0x18ed81=await fetch(_0x30fe0b+_0x3c8415(0x1e5)+_0x21802a+_0x3c8415(0x186),{'method':_0x168c66['qBgDQ'],'headers':{'Authorization':_0x3c8415(0x18b)+_0x2213e7,'Content-Type':_0x3c8415(0x182)},'body':JSON[_0x3c8415(0x1b2)]({'filename':_0x3060d4,'filetype':_0x1f44b2,..._0x465273?.[_0x3c8415(0x1cc)]!==undefined&&{'size':_0x465273[_0x3c8415(0x1cc)]},..._0x168c66['KPPLE'](_0x465273?.[_0x3c8415(0x1d8)],undefined)&&{'checksum':_0x465273[_0x3c8415(0x1d8)]},..._0x168c66[_0x3c8415(0x190)](_0x465273?.[_0x3c8415(0x1a7)],undefined)&&{'metadata':_0x465273[_0x3c8415(0x1a7)]}})});if(!_0x18ed81['ok']){if(_0x168c66['quzSE']('GHpLg','GHpLg'))return _0x46ffa3(_0xc7964,_0x273c98,'image/png');else{const _0x18bb77=await _0x18ed81[_0x3c8415(0x193)]();throw new Error(_0x3c8415(0x1bf)+_0x18bb77);}}return _0x18ed81[_0x3c8415(0x1d2)]();}export async function uploadFile(_0x10a7ac,_0x2717c9,_0x1f3266){const _0xd1198f=_0x2d4f,_0x3ca123={'jqQMx':_0xd1198f(0x1b4)},_0x464e76=await fetch(_0x10a7ac,{'method':_0x3ca123[_0xd1198f(0x1c8)],'headers':{'Content-Type':_0x1f3266,'Content-Length':_0x2717c9[_0xd1198f(0x19b)][_0xd1198f(0x1e6)]()},'body':_0x2717c9});if(!_0x464e76['ok']){const _0x4a59af=await _0x464e76[_0xd1198f(0x193)]();throw new Error(_0xd1198f(0x1aa)+_0x4a59af);}}export async function uploadTrace(_0x422775,_0xdc6688){return uploadFile(_0x422775,_0xdc6688,'application/zip');}export async function uploadConversation(_0x337068,_0x323c99){const _0x23baf4=_0x2d4f,_0x3182cd={'XnMEY':_0x23baf4(0x1b8)};return uploadFile(_0x337068,_0x323c99,_0x3182cd[_0x23baf4(0x1df)]);}export async function uploadScreenshot(_0x51a50c,_0x1dfe2a){const _0x450602=_0x2d4f,_0x51efdb={'rUkqu':function(_0x653505,_0x545251,_0x18b2a1,_0x13256a){return _0x653505(_0x545251,_0x18b2a1,_0x13256a);},'PtqEt':_0x450602(0x181)};return _0x51efdb[_0x450602(0x1de)](uploadFile,_0x51a50c,_0x1dfe2a,_0x51efdb['PtqEt']);}export async function uploadVideo(_0x33e5e8,_0x8349f9){const _0x55ded7=_0x2d4f,_0x2598bf={'PlwyT':_0x55ded7(0x194)};return uploadFile(_0x33e5e8,_0x8349f9,_0x2598bf['PlwyT']);}function _0x4847(){const _0x7ae4da=['teLNq24','mtuWmJu3mJb1EvbYC0G','l3n0zxbZlW','y2HLy2TZDw0','vg5tzhq','DxjS','BK9VrhC','wMLSrwG','BwHtywu','CLvRCxu','wg5nrvK','Dhrxt2S','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','nJCYmdi0v21zExzk','yxbWBhK','yLPYsgC','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','Dg9tDhjPBMC','vM9ysLu','AKDUDgu','s214sw4','ue13C0i','u1jbv08','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB24GC3rLChm6ia','kcGOlISPkYKRksSK','r0vu','mKDnC2HiCa','ELrzAeW','Agrsq2i','AwrUtvK','t1vfEg4','q1bxz2m','Aw1Hz2uVCg5N','yxbWBgLJyxrPB24VANnVBG','txfPswS','uejTv0O','t05OCNi','l3vWBg9Hzc11CMXZ','Bwq1','ndG3mty0nwnmv3botW','Bhrmuee','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','qMvHCMvYia','ue9tva','uefuq0G','BLHRswS','mtaWodu3ofH2u2jKvG','s1bqteu','uuzfwMq','zw52AxjVBM1LBNroyw1L','Dgv4Da','DMLKzw8VD2vIBq','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','mtK1mtjqu1r4ywK','tLP1r1u','swTwEee','wKXsDha','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','BgvUz3rO','Ahzrt20','suDJAwW','u3bXDvG','teT0DuK','BhLotu4','CgTKBxe','wKvQuhm','qKXMwuC','C2vHCMnO','DgfZAW','qxLhuKO','Bwv0ywrHDge','ndmWodiWnJfls1PHrKm','DMXOqvq','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','sgnWwNK','uLL2Cha','suLTqKC','mZvVs3vkEuq','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','wgrkBfO','C2vZC2LVBLrVA2vU','C3rYAw5NAwz5','mtCYBNvvDhPh','ufvu','BfDIvue','B1ryD3u','nZmWA3Dyt3fP','yxbWBgLJyxrPB24VANnVBMW','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','y2HLy2TSAxn0sxrLBuLK','B3b4EMy','sfDKvNK','wwTAvhG','Be1IBKC','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','vMPYrLu','q2TNqKe','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','rNL3tfm','EffKDgu','AwzjC0m','BfHcBgG','ENfMv00','ANfrtxG','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','AfLUv0O','CeTHr3O','C2L6zq','uhzgv2y','mtiYnJq5sNz1quzd','q0DTDNO','vgjwv24','rMLkzeW','ANnVBG','y29UC3rYDwn0B3i','CgD5B3y'];_0x4847=function(){return _0x7ae4da;};return _0x4847();}export function buildTraceViewerUrl(_0x3fe2c7){const _0x56f6d9=_0x2d4f,_0x2f7ac2={'VoXJU':function(_0x13ef31,_0x37922d){return _0x13ef31(_0x37922d);}},_0x1095b2=_0x2f7ac2[_0x56f6d9(0x173)](encodeURIComponent,_0x3fe2c7);return _0x56f6d9(0x18a)+_0x1095b2;}export async function getProxySessionToken(){const _0x2223d4=_0x2d4f,_0x48c512={'pkdmq':function(_0xac45ed,_0x48de70){return _0xac45ed(_0x48de70);},'CkgBA':_0x2223d4(0x174),'PBmWJ':_0x2223d4(0x1b0),'hvQOm':function(_0x51b925){return _0x51b925();},'YkZTx':function(_0x11d129,_0x43d250,_0x4d2ae2){return _0x11d129(_0x43d250,_0x4d2ae2);},'DPyHE':_0x2223d4(0x18c),'OUExn':_0x2223d4(0x1e0)},_0x4cfa03=await getToken();if(!_0x4cfa03){if(_0x48c512[_0x2223d4(0x1c1)]!==_0x48c512[_0x2223d4(0x184)])throw new Error(_0x2223d4(0x1e1));else{const _0x27464b=_0x48c512[_0x2223d4(0x1a1)](_0x15d017,_0x284a44);return _0x2223d4(0x18a)+_0x27464b;}}const _0xdbd190=_0x48c512[_0x2223d4(0x19c)](getApiBaseUrl),_0x507203=await _0x48c512[_0x2223d4(0x1bd)](fetch,_0xdbd190+'/api/v1/mcp/proxy-session',{'method':_0x48c512['DPyHE'],'headers':{'Authorization':_0x2223d4(0x18b)+_0x4cfa03}});if(!_0x507203['ok']){if(_0x2223d4(0x1bb)===_0x48c512[_0x2223d4(0x17f)]){const _0x3c7612=_0x5d59b5?function(){if(_0x27d6ec){const _0x46d34a=_0x5dabde['apply'](_0x486381,arguments);return _0x285c30=null,_0x46d34a;}}:function(){};return _0x42cdf5=![],_0x3c7612;}else{const _0x4a6926=await _0x507203[_0x2223d4(0x193)]();throw new Error(_0x2223d4(0x1af)+_0x4a6926);}}const _0x3d3bad=await _0x507203['json']();return _0x3d3bad[_0x2223d4(0x1b1)];}export function computeChecksum(_0x614af2){const _0x23c386=_0x2d4f,_0x2411e1={'pgyov':_0x23c386(0x187),'ZgesN':'base64'};return createHash(_0x2411e1[_0x23c386(0x1d4)])['update'](_0x614af2)['digest'](_0x2411e1['ZgesN']);}export async function createVerificationStep(_0x271ea1,_0x59f299){const _0x369ce3=_0x2d4f,_0x2737c4={'QFEZd':function(_0x265865){return _0x265865();},'vlhAT':_0x369ce3(0x1e1),'sQsdg':_0x369ce3(0x18c),'LIgCn':_0x369ce3(0x182)},_0x462591=await _0x2737c4[_0x369ce3(0x191)](getToken);if(!_0x462591)throw new Error(_0x2737c4[_0x369ce3(0x1a9)]);const _0x4e9a26=_0x2737c4[_0x369ce3(0x191)](getApiBaseUrl),_0x466f0b=await fetch(_0x4e9a26+_0x369ce3(0x1e5)+_0x271ea1+'/steps',{'method':_0x2737c4['sQsdg'],'headers':{'Authorization':_0x369ce3(0x18b)+_0x462591,'Content-Type':_0x2737c4[_0x369ce3(0x1d5)]},'body':JSON[_0x369ce3(0x1b2)](_0x59f299)});if(!_0x466f0b['ok']){const _0x407454=await _0x466f0b[_0x369ce3(0x193)]();throw new Error('Failed\x20to\x20create\x20verification\x20step:\x20'+_0x407454);}return _0x466f0b[_0x369ce3(0x1d2)]();}export async function createStepAsset(_0x450e2e,_0x358785,_0x490be5){const _0x556f4a=_0x2d4f,_0x529f6a={'bZrHg':_0x556f4a(0x1e1),'ZilEh':function(_0x497e8d){return _0x497e8d();},'MJyjX':function(_0x5588f8,_0x22821f,_0x283a25){return _0x5588f8(_0x22821f,_0x283a25);},'lWbUA':'POST','CvDVf':_0x556f4a(0x182),'zqfWM':_0x556f4a(0x1ca),'glbUx':'OckHB'},_0x4cd44e=await _0x529f6a[_0x556f4a(0x1dc)](getToken);if(!_0x4cd44e){if(_0x556f4a(0x1d1)==='FiJdL')throw new Error(_0x529f6a[_0x556f4a(0x1e4)]);else throw new _0x23886b(_0x529f6a[_0x556f4a(0x1e4)]);}const _0x56fc4c=getApiBaseUrl(),_0x44c27e=await _0x529f6a['MJyjX'](fetch,_0x56fc4c+_0x556f4a(0x1e5)+_0x450e2e+_0x556f4a(0x1d7)+_0x358785+'/assets',{'method':_0x529f6a[_0x556f4a(0x1b5)],'headers':{'Authorization':_0x556f4a(0x18b)+_0x4cd44e,'Content-Type':_0x529f6a['CvDVf']},'body':JSON[_0x556f4a(0x1b2)](_0x490be5)});if(!_0x44c27e['ok']){if(_0x529f6a[_0x556f4a(0x1c7)]===_0x529f6a['glbUx']){const _0x175e28=_0x2eb9f4[_0x556f4a(0x1e3)](_0x3b7177,arguments);return _0x489650=null,_0x175e28;}else{const _0x4cacda=await _0x44c27e[_0x556f4a(0x193)]();throw new Error(_0x556f4a(0x1c2)+_0x4cacda);}}return _0x44c27e[_0x556f4a(0x1d2)]();}export async function updateVerificationStep(_0x25c80a,_0x13e5b2,_0x590f75){const _0x159ca2=_0x2d4f,_0x4d72c2={'IGcil':function(_0x16d3f1){return _0x16d3f1();},'UNPeF':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','MqiIk':function(_0x3f212f,_0x4b56b9,_0x1472b8){return _0x3f212f(_0x4b56b9,_0x1472b8);},'SRAWO':_0x159ca2(0x18d),'pKaGz':_0x159ca2(0x182)},_0x598d34=await _0x4d72c2[_0x159ca2(0x19d)](getToken);if(!_0x598d34)throw new Error(_0x4d72c2['UNPeF']);const _0x44cc9a=_0x4d72c2[_0x159ca2(0x19d)](getApiBaseUrl),_0x200790=await _0x4d72c2[_0x159ca2(0x183)](fetch,_0x44cc9a+_0x159ca2(0x1e5)+_0x25c80a+_0x159ca2(0x1d7)+_0x13e5b2,{'method':_0x4d72c2[_0x159ca2(0x177)],'headers':{'Authorization':_0x159ca2(0x18b)+_0x598d34,'Content-Type':_0x4d72c2[_0x159ca2(0x1cb)]},'body':JSON[_0x159ca2(0x1b2)](_0x590f75)});if(!_0x200790['ok']){const _0x2d47dd=await _0x200790[_0x159ca2(0x193)]();throw new Error(_0x159ca2(0x1b9)+_0x2d47dd);}}export async function getBrowserSessionSteps(_0xaa9403){const _0x5440fe=_0x2d4f,_0x38404b={'ONhrr':_0x5440fe(0x1e1),'qHTFt':function(_0x29f373){return _0x29f373();},'KmxIn':function(_0x510612,_0x1fdc10,_0x32576a){return _0x510612(_0x1fdc10,_0x32576a);},'FywLS':function(_0x46bd6e,_0x20c3b1){return _0x46bd6e!==_0x20c3b1;},'lMbnG':_0x5440fe(0x1a3),'EAsSL':_0x5440fe(0x180)},_0x84c7a6=await getToken();if(!_0x84c7a6)throw new Error(_0x38404b[_0x5440fe(0x185)]);const _0x2b1390=_0x38404b['qHTFt'](getApiBaseUrl),_0x13b85d=await _0x38404b[_0x5440fe(0x175)](fetch,_0x2b1390+_0x5440fe(0x1e5)+_0xaa9403+'/steps',{'method':_0x5440fe(0x17a),'headers':{'Authorization':'Bearer\x20'+_0x84c7a6}});if(!_0x13b85d['ok']){if(_0x38404b[_0x5440fe(0x1c3)](_0x38404b[_0x5440fe(0x1be)],_0x38404b['EAsSL'])){const _0x163a87=await _0x13b85d[_0x5440fe(0x193)]();throw new Error(_0x5440fe(0x178)+_0x163a87);}else{if(_0x3025be){const _0x260c4b=_0x12765d[_0x5440fe(0x1e3)](_0x424553,arguments);return _0x256520=null,_0x260c4b;}}}return _0x13b85d[_0x5440fe(0x1d2)]();}
@@ -1 +1 @@
1
- function _0xc8b7(_0x2a2d09,_0x4bda38){_0x2a2d09=_0x2a2d09-0x128;const _0x1fb4b7=_0x1fb4();let _0xc8b72a=_0x1fb4b7[_0x2a2d09];return _0xc8b72a;}(function(_0x575ec3,_0x1f0908){const _0x9a855=_0xc8b7,_0x5f3ffb=_0x575ec3();while(!![]){try{const _0x45650f=parseInt(_0x9a855(0x13f))/0x1+parseInt(_0x9a855(0x12f))/0x2+parseInt(_0x9a855(0x134))/0x3*(parseInt(_0x9a855(0x12e))/0x4)+parseInt(_0x9a855(0x136))/0x5*(-parseInt(_0x9a855(0x140))/0x6)+-parseInt(_0x9a855(0x135))/0x7*(-parseInt(_0x9a855(0x13d))/0x8)+parseInt(_0x9a855(0x133))/0x9+-parseInt(_0x9a855(0x132))/0xa;if(_0x45650f===_0x1f0908)break;else _0x5f3ffb['push'](_0x5f3ffb['shift']());}catch(_0x3341bc){_0x5f3ffb['push'](_0x5f3ffb['shift']());}}}(_0x1fb4,0x88e46));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 _0x14294d=_0xc8b7,_0x37d2ce={'EbzKn':function(_0x49658e,_0x2c7d31,_0x561074){return _0x49658e(_0x2c7d31,_0x561074);},'SBbzw':function(_0x2a39c5){return _0x2a39c5();}};return process['env']['CLAUDE_CONFIG_DIR']||_0x37d2ce[_0x14294d(0x12d)](join,_0x37d2ce['SBbzw'](homedir),'.claude');}export function getUserSkillsDir(){const _0xb20d5b=_0xc8b7,_0x3bae76={'lQXYf':function(_0xefd7d9,_0x48cd98,_0x38a92b){return _0xefd7d9(_0x48cd98,_0x38a92b);},'KGYKm':function(_0x354486){return _0x354486();}};return _0x3bae76['lQXYf'](join,_0x3bae76[_0xb20d5b(0x129)](getClaudeConfigDir),_0xb20d5b(0x12c));}export function getProjectRoot(){const _0x4c097e=_0xc8b7,_0x2f8f62={'vtxYu':function(_0x529267,_0x467fd0){return _0x529267(_0x467fd0);},'zncjb':function(_0x48d760,_0x248632){return _0x48d760(_0x248632);},'TxZwR':function(_0x28d3e6,_0x1113ef,_0x37fda9){return _0x28d3e6(_0x1113ef,_0x37fda9);},'nmuvD':'.claude','fJGNU':_0x4c097e(0x13a),'lzvUO':function(_0x34bcde,_0x2e8cb3){return _0x34bcde(_0x2e8cb3);}};let _0x39b415=process['cwd']();const _0x1fa92c=_0x2f8f62[_0x4c097e(0x139)](parse,_0x39b415)[_0x4c097e(0x13c)];while(_0x39b415!==_0x1fa92c){if(_0x2f8f62[_0x4c097e(0x128)](existsSync,_0x2f8f62['TxZwR'](join,_0x39b415,_0x2f8f62[_0x4c097e(0x137)])))return _0x39b415;if(_0x2f8f62[_0x4c097e(0x128)](existsSync,_0x2f8f62['TxZwR'](join,_0x39b415,_0x2f8f62[_0x4c097e(0x12a)])))return _0x39b415;_0x39b415=_0x2f8f62[_0x4c097e(0x131)](dirname,_0x39b415);}return process['cwd']();}export function getProjectSkillsDir(){const _0x2c9433=_0xc8b7,_0x19ab87={'TyDma':function(_0x3f61e0,_0x13d57c,_0x39ce21,_0xcf22cb){return _0x3f61e0(_0x13d57c,_0x39ce21,_0xcf22cb);},'mxrmY':_0x2c9433(0x12c)};return _0x19ab87[_0x2c9433(0x130)](join,getProjectRoot(),'.claude',_0x19ab87['mxrmY']);}export function getSkillsDir(_0x2bd64b){const _0xe2144f=_0xc8b7;return _0x2bd64b===_0xe2144f(0x141)?getUserSkillsDir():getProjectSkillsDir();}export function getSettingsPath(){const _0x5b6031=_0xc8b7,_0x5b7f83={'rbruJ':function(_0x2c14f0,_0x342238,_0x2c150b){return _0x2c14f0(_0x342238,_0x2c150b);}};return _0x5b7f83[_0x5b6031(0x142)](join,getClaudeConfigDir(),_0x5b6031(0x12b));}export async function loadClaudeSettings(){const _0x388e92=_0xc8b7,_0x271751={'GixDK':function(_0x30986b,_0x102d05){return _0x30986b(_0x102d05);},'drwhh':function(_0xca41df,_0x383af8,_0x1f76c0){return _0xca41df(_0x383af8,_0x1f76c0);},'rMVsw':'utf-8'},_0x179e20=getSettingsPath();if(!_0x271751[_0x388e92(0x138)](existsSync,_0x179e20))return{};try{const _0xdaaa03=await _0x271751['drwhh'](readFile,_0x179e20,_0x271751['rMVsw']);return JSON['parse'](_0xdaaa03);}catch{return{};}}export async function saveClaudeSettings(_0x114ec1){const _0x5c30e1=_0xc8b7,_0x1b8ffa={'idvxZ':function(_0x4bb431){return _0x4bb431();},'KZXGn':function(_0x38138d,_0x114b81,_0x18e84f){return _0x38138d(_0x114b81,_0x18e84f);},'hsgxN':function(_0xfdec20,_0x5ac018){return _0xfdec20+_0x5ac018;},'ENjSY':'utf-8'},_0x4deca6=_0x1b8ffa[_0x5c30e1(0x13e)](getSettingsPath),_0x680796=_0x1b8ffa[_0x5c30e1(0x13e)](getClaudeConfigDir);!existsSync(_0x680796)&&await _0x1b8ffa['KZXGn'](mkdir,_0x680796,{'recursive':!![]}),await writeFile(_0x4deca6,_0x1b8ffa['hsgxN'](JSON[_0x5c30e1(0x13b)](_0x114ec1,null,0x2),'\x0a'),_0x1b8ffa['ENjSY']);}function _0x1fb4(){const _0x1603c1=['7cDaJwT','2342740pMNduM','nmuvD','GixDK','vtxYu','.git','stringify','root','4871624ZuPqjv','idvxZ','653475sEQIOD','6awoSSf','user','rbruJ','zncjb','KGYKm','fJGNU','settings.json','skills','EbzKn','6268unMptM','2167870srMvsf','TyDma','lzvUO','17269020mlMPuF','458586nYndKo','687vVByWp'];_0x1fb4=function(){return _0x1603c1;};return _0x1fb4();}
1
+ (function(_0x222c08,_0x21f0cb){const _0x1f5fab=_0x3645,_0x2fca32=_0x222c08();while(!![]){try{const _0x308043=parseInt(_0x1f5fab(0x12a))/0x1+-parseInt(_0x1f5fab(0x126))/0x2+parseInt(_0x1f5fab(0x130))/0x3+-parseInt(_0x1f5fab(0x11d))/0x4*(-parseInt(_0x1f5fab(0x121))/0x5)+parseInt(_0x1f5fab(0x123))/0x6*(-parseInt(_0x1f5fab(0x124))/0x7)+-parseInt(_0x1f5fab(0x127))/0x8*(-parseInt(_0x1f5fab(0x116))/0x9)+-parseInt(_0x1f5fab(0x120))/0xa;if(_0x308043===_0x21f0cb)break;else _0x2fca32['push'](_0x2fca32['shift']());}catch(_0x25d6e9){_0x2fca32['push'](_0x2fca32['shift']());}}}(_0x26ee,0xc6645));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 _0x41844e=_0x3645,_0x5bd88b={'ZmHqE':_0x41844e(0x11c)};return process['env'][_0x41844e(0x11e)]||join(homedir(),_0x5bd88b[_0x41844e(0x117)]);}export function getUserSkillsDir(){const _0x5bb22f={'jXSeL':function(_0x5d27af){return _0x5d27af();},'hizrP':'skills'};return join(_0x5bb22f['jXSeL'](getClaudeConfigDir),_0x5bb22f['hizrP']);}export function getProjectRoot(){const _0x9eb35a=_0x3645,_0x4e0bce={'TXtmD':function(_0x2b50a8,_0x54d979){return _0x2b50a8(_0x54d979);},'kTlQo':function(_0x4b91bb,_0x28feac,_0x3f1848){return _0x4b91bb(_0x28feac,_0x3f1848);}};let _0x1ac86a=process['cwd']();const _0x16cd97=_0x4e0bce['TXtmD'](parse,_0x1ac86a)[_0x9eb35a(0x11f)];while(_0x1ac86a!==_0x16cd97){if(_0x4e0bce['TXtmD'](existsSync,_0x4e0bce[_0x9eb35a(0x12b)](join,_0x1ac86a,'.claude')))return _0x1ac86a;if(_0x4e0bce['TXtmD'](existsSync,_0x4e0bce['kTlQo'](join,_0x1ac86a,_0x9eb35a(0x118))))return _0x1ac86a;_0x1ac86a=dirname(_0x1ac86a);}return process[_0x9eb35a(0x12c)]();}function _0x26ee(){const _0x3ea974=['.git','settings.json','AsIwS','OygPm','.claude','68UJKIen','CLAUDE_CONFIG_DIR','root','16105190zbkvUG','434780GYbbZQ','VXrml','6qZftKQ','1511209KqXkkY','JSQjf','1946834RkBqhT','2675624ewxIWm','RAWSZ','uXZmr','1235969TTuchH','kTlQo','cwd','wCMZU','eHEiP','wHUuf','1691286fzMxIf','parse','9ziLXjJ','ZmHqE'];_0x26ee=function(){return _0x3ea974;};return _0x26ee();}export function getProjectSkillsDir(){const _0x4daf67=_0x3645,_0x9a7f13={'RAWSZ':'.claude'};return join(getProjectRoot(),_0x9a7f13[_0x4daf67(0x128)],'skills');}function _0x3645(_0x412876,_0x55307a){_0x412876=_0x412876-0x115;const _0x26eee5=_0x26ee();let _0x36455a=_0x26eee5[_0x412876];return _0x36455a;}export function getSkillsDir(_0x5ec7ec){const _0x123933=_0x3645,_0x4e1afb={'wCMZU':function(_0x419246,_0x365f79){return _0x419246===_0x365f79;},'wHUuf':function(_0x1af956){return _0x1af956();}};return _0x4e1afb[_0x123933(0x12d)](_0x5ec7ec,'user')?_0x4e1afb['wHUuf'](getUserSkillsDir):_0x4e1afb[_0x123933(0x12f)](getProjectSkillsDir);}export function getSettingsPath(){const _0x14a951=_0x3645,_0x303e53={'JSQjf':function(_0x3a2ee3,_0x1cf1ac,_0x276172){return _0x3a2ee3(_0x1cf1ac,_0x276172);},'qoPyh':function(_0x5e8d46){return _0x5e8d46();},'BMhkQ':_0x14a951(0x119)};return _0x303e53[_0x14a951(0x125)](join,_0x303e53['qoPyh'](getClaudeConfigDir),_0x303e53['BMhkQ']);}export async function loadClaudeSettings(){const _0x4de007=_0x3645,_0x253ca4={'dZOEJ':function(_0x55f421){return _0x55f421();},'uXZmr':function(_0x66e8ea,_0xb6ed0f,_0x5659c){return _0x66e8ea(_0xb6ed0f,_0x5659c);},'VXrml':'utf-8'},_0x33e666=_0x253ca4['dZOEJ'](getSettingsPath);if(!existsSync(_0x33e666))return{};try{const _0x394116=await _0x253ca4[_0x4de007(0x129)](readFile,_0x33e666,_0x253ca4[_0x4de007(0x122)]);return JSON[_0x4de007(0x115)](_0x394116);}catch{return{};}}export async function saveClaudeSettings(_0x26ef18){const _0x2fa15b=_0x3645,_0x4f71eb={'eHEiP':function(_0x56e1af,_0x364479,_0x563a35){return _0x56e1af(_0x364479,_0x563a35);},'AsIwS':function(_0x1eecb9,_0x4e9902){return _0x1eecb9+_0x4e9902;},'OygPm':'utf-8'},_0x2f1b93=getSettingsPath(),_0x2bb6ce=getClaudeConfigDir();!existsSync(_0x2bb6ce)&&await _0x4f71eb[_0x2fa15b(0x12e)](mkdir,_0x2bb6ce,{'recursive':!![]}),await writeFile(_0x2f1b93,_0x4f71eb[_0x2fa15b(0x11a)](JSON['stringify'](_0x26ef18,null,0x2),'\x0a'),_0x4f71eb[_0x2fa15b(0x11b)]);}
@@ -1 +1 @@
1
- (function(_0x2dd7c2,_0x4e0fc0){const _0x59e6bd=_0xa7d2,_0x8ba6dd=_0x2dd7c2();while(!![]){try{const _0xd34cf9=parseInt(_0x59e6bd(0x11d))/0x1*(-parseInt(_0x59e6bd(0x11a))/0x2)+parseInt(_0x59e6bd(0x11e))/0x3*(-parseInt(_0x59e6bd(0x120))/0x4)+-parseInt(_0x59e6bd(0x11c))/0x5*(parseInt(_0x59e6bd(0x118))/0x6)+parseInt(_0x59e6bd(0x117))/0x7+-parseInt(_0x59e6bd(0x11b))/0x8+parseInt(_0x59e6bd(0x11f))/0x9+parseInt(_0x59e6bd(0x116))/0xa*(parseInt(_0x59e6bd(0x119))/0xb);if(_0xd34cf9===_0x4e0fc0)break;else _0x8ba6dd['push'](_0x8ba6dd['shift']());}catch(_0x5075c9){_0x8ba6dd['push'](_0x8ba6dd['shift']());}}}(_0x2f47,0x91b1c));function _0xa7d2(_0xd86dee,_0x1f5ce6){_0xd86dee=_0xd86dee-0x116;const _0x2f47e6=_0x2f47();let _0xa7d215=_0x2f47e6[_0xd86dee];return _0xa7d215;}import{isByokEnabled}from'./environment.js';const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};export function buildClaudeOverrideExtraArgs(){const _0x3de840={'aDUeQ':function(_0x4ec2ee){return _0x4ec2ee();}};if(_0x3de840['aDUeQ'](isByokEnabled))return{};return{'settings':JSON['stringify'](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}function _0x2f47(){const _0x478dd4=['6pymowu','6271596FLjlne','3236xDYvuX','8715210JzTIwk','6073165AjwBRx','1020qXtHpB','11CrvlJs','441428iyvltc','5295424upyqwT','2120KMZyyl','5fyfylb'];_0x2f47=function(){return _0x478dd4;};return _0x2f47();}
1
+ function _0x5b65(){const _0x577117=['stringify','1240GXJZmf','1240AzpJqK','1530ektRpa','7JyhfDx','36399rijpPo','780165nyyCSG','174QUeOef','934932KkuvgN','4746aSjFLt','187625BpDxbd','1654904rtxeTd'];_0x5b65=function(){return _0x577117;};return _0x5b65();}(function(_0x5a96dd,_0x2570ce){const _0x218e22=_0x11bf,_0x52f82e=_0x5a96dd();while(!![]){try{const _0x577586=-parseInt(_0x218e22(0xbd))/0x1+-parseInt(_0x218e22(0xbc))/0x2*(parseInt(_0x218e22(0xba))/0x3)+-parseInt(_0x218e22(0xc1))/0x4*(-parseInt(_0x218e22(0xc0))/0x5)+parseInt(_0x218e22(0xbb))/0x6+parseInt(_0x218e22(0xb7))/0x7*(-parseInt(_0x218e22(0xbe))/0x8)+-parseInt(_0x218e22(0xb9))/0x9+-parseInt(_0x218e22(0xc2))/0xa*(-parseInt(_0x218e22(0xb8))/0xb);if(_0x577586===_0x2570ce)break;else _0x52f82e['push'](_0x52f82e['shift']());}catch(_0x8c9e56){_0x52f82e['push'](_0x52f82e['shift']());}}}(_0x5b65,0x1d56c));import{isByokEnabled}from'./environment.js';function _0x11bf(_0x353f27,_0x7000cd){_0x353f27=_0x353f27-0xb7;const _0x5b6538=_0x5b65();let _0x11bfe0=_0x5b6538[_0x353f27];return _0x11bfe0;}const RANGER_CLAUDE_OVERRIDE_SETTINGS={'env':{'CLAUDE_CODE_USE_BEDROCK':'0'}};export function buildClaudeOverrideExtraArgs(){const _0x57a4ba=_0x11bf;if(isByokEnabled())return{};return{'settings':JSON[_0x57a4ba(0xbf)](RANGER_CLAUDE_OVERRIDE_SETTINGS)};}
@@ -1 +1 @@
1
- (function(_0x6329d6,_0x2867bf){const _0x189c62=_0x18e9,_0x4bbe90=_0x6329d6();while(!![]){try{const _0x18f425=parseInt(_0x189c62(0x11c))/0x1*(-parseInt(_0x189c62(0x135))/0x2)+-parseInt(_0x189c62(0x133))/0x3*(-parseInt(_0x189c62(0x126))/0x4)+-parseInt(_0x189c62(0x125))/0x5*(parseInt(_0x189c62(0x123))/0x6)+-parseInt(_0x189c62(0x138))/0x7*(parseInt(_0x189c62(0x137))/0x8)+-parseInt(_0x189c62(0x132))/0x9+-parseInt(_0x189c62(0x130))/0xa+-parseInt(_0x189c62(0x13a))/0xb*(-parseInt(_0x189c62(0x139))/0xc);if(_0x18f425===_0x2867bf)break;else _0x4bbe90['push'](_0x4bbe90['shift']());}catch(_0x31cf1b){_0x4bbe90['push'](_0x4bbe90['shift']());}}}(_0x7b8f,0xd9739));import{spawn}from'child_process';function _0x7b8f(){const _0x2fdfa0=['[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','2miqxCS','stderr','784VEDoyo','114310vwNvox','63290916NIZjpO','11yETMko','pipe','UMVcJ','output','toString','1636563wIEnnp','enabled','KMYKo','list','includes','scope','plugin','1158102jKeyeb','match','15DvmXTE','4KhYIrP','HpkoJ','toLowerCase','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','inherit','llCFd','success','Command\x20exited\x20with\x20code\x20','marketplace','LeXFX','6274250VNrWwu','version','3711321vJPBSW','1416558EADSaR'];_0x7b8f=function(){return _0x2fdfa0;};return _0x7b8f();}export function runClaudeCommand(_0x24cf65,_0x22e76c){const _0x3d3d5a={'ZAcbA':function(_0x22f563,_0x3eee5d){return _0x22f563(_0x3eee5d);},'KMYKo':'claude','llCFd':'error'};return new Promise(_0x1c3467=>{const _0x374f1b=_0x18e9,_0x136c3b=_0x22e76c?.['captureOutput']?_0x374f1b(0x13b):_0x374f1b(0x12a),_0x331e13=spawn(_0x3d3d5a[_0x374f1b(0x11e)],_0x24cf65,{'stdio':_0x136c3b});let _0x32f1e4='';_0x22e76c?.['captureOutput']&&_0x331e13['stdout']&&_0x331e13['stdout']['on']('data',_0x394e3a=>{const _0x57df25=_0x374f1b;_0x32f1e4+=_0x394e3a[_0x57df25(0x11b)]();}),_0x22e76c?.['captureOutput']&&_0x331e13['stderr']&&_0x331e13[_0x374f1b(0x136)]['on']('data',_0x296bf4=>{_0x32f1e4+=_0x296bf4['toString']();}),_0x331e13['on']('close',_0x10d633=>{const _0x55a0be=_0x374f1b;_0x10d633===0x0?_0x1c3467({'success':!![],'output':_0x32f1e4}):_0x1c3467({'success':![],'error':_0x55a0be(0x12d)+_0x10d633,'output':_0x32f1e4});}),_0x331e13['on'](_0x3d3d5a[_0x374f1b(0x12b)],_0x36da95=>{_0x3d3d5a['ZAcbA'](_0x1c3467,{'success':![],'error':_0x36da95['message']});});});}export async function isMarketplaceAdded(_0x3bc9ad){const _0x528dad=_0x18e9,_0x3f66a0={'LeXFX':function(_0xd0e0c0,_0x99d9c4,_0x1f9a56){return _0xd0e0c0(_0x99d9c4,_0x1f9a56);}},_0x714aad=await _0x3f66a0[_0x528dad(0x12f)](runClaudeCommand,[_0x528dad(0x122),_0x528dad(0x12e),'list'],{'captureOutput':!![]});if(!_0x714aad[_0x528dad(0x12c)]||!_0x714aad[_0x528dad(0x13d)])return![];return _0x714aad['output'][_0x528dad(0x120)](_0x3bc9ad);}export async function isPluginInstalled(_0x3f4baa){const _0x2f0be8=_0x18e9,_0x39ff6d={'EtFzv':_0x2f0be8(0x122),'HpkoJ':_0x2f0be8(0x11f)},_0x5e9a4c=await runClaudeCommand([_0x39ff6d['EtFzv'],_0x39ff6d[_0x2f0be8(0x127)]],{'captureOutput':!![]});if(!_0x5e9a4c['success']||!_0x5e9a4c[_0x2f0be8(0x13d)])return![];return _0x5e9a4c[_0x2f0be8(0x13d)]['includes'](_0x3f4baa);}function _0x18e9(_0x4980e8,_0x2d7fa3){_0x4980e8=_0x4980e8-0x11b;const _0x7b8f8d=_0x7b8f();let _0x18e915=_0x7b8f8d[_0x4980e8];return _0x18e915;}export async function getPluginInfo(_0x57ffd7){const _0x315f94=_0x18e9,_0x300bda={'UMVcJ':function(_0x113e91,_0x2d08ad,_0x16faa5){return _0x113e91(_0x2d08ad,_0x16faa5);},'RKVDN':_0x315f94(0x122)},_0x2dcff0=await _0x300bda[_0x315f94(0x13c)](runClaudeCommand,[_0x300bda['RKVDN'],'list'],{'captureOutput':!![]});if(!_0x2dcff0['success']||!_0x2dcff0[_0x315f94(0x13d)])return null;if(!_0x2dcff0['output']['includes'](_0x57ffd7))return null;const _0x2a1b57={'name':_0x57ffd7},_0x5ce57b=_0x2dcff0['output'][_0x315f94(0x124)](new RegExp(_0x57ffd7+_0x315f94(0x129),'i'));_0x5ce57b&&(_0x2a1b57[_0x315f94(0x121)]=_0x5ce57b[0x1][_0x315f94(0x128)]());const _0x5db393=_0x2dcff0[_0x315f94(0x13d)][_0x315f94(0x124)](new RegExp(_0x57ffd7+_0x315f94(0x134),'i'));_0x5db393&&(_0x2a1b57[_0x315f94(0x131)]=_0x5db393[0x1]);const _0x4d387e=_0x2dcff0['output']['match'](new RegExp(_0x57ffd7+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x4d387e&&(_0x2a1b57[_0x315f94(0x11d)]=_0x4d387e[0x1]['toLowerCase']()===_0x315f94(0x11d)),_0x2a1b57;}
1
+ (function(_0x5a201e,_0x4b9260){const _0x3c4d1c=_0x3f9b,_0x5f2150=_0x5a201e();while(!![]){try{const _0x2c6ab5=parseInt(_0x3c4d1c(0x1df))/0x1+parseInt(_0x3c4d1c(0x1e7))/0x2+-parseInt(_0x3c4d1c(0x1ed))/0x3+parseInt(_0x3c4d1c(0x1f1))/0x4*(-parseInt(_0x3c4d1c(0x1d3))/0x5)+-parseInt(_0x3c4d1c(0x1f3))/0x6*(parseInt(_0x3c4d1c(0x1db))/0x7)+parseInt(_0x3c4d1c(0x1d8))/0x8*(parseInt(_0x3c4d1c(0x1de))/0x9)+parseInt(_0x3c4d1c(0x1ec))/0xa;if(_0x2c6ab5===_0x4b9260)break;else _0x5f2150['push'](_0x5f2150['shift']());}catch(_0x284cc6){_0x5f2150['push'](_0x5f2150['shift']());}}}(_0x1776,0x9f124));function _0x1776(){const _0x4657c3=['6GIVYVm','pipe','rRvBX','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','output','10DghQJM','match','enabled','claude','version','87272whDLLw','ignore','KFhAN','270214ggZCbY','marketplace','plugin','387aXrPfk','721571fWKuuu','message','stdout','eFBEe','dIQzj','success','PVtcP','scope','1086092wrcWxs','error','bRGcP','stderr','bfJZd','3734030Ljltko','801189fIHYMW','toString','captureOutput','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','2299772fMWysL','list'];_0x1776=function(){return _0x4657c3;};return _0x1776();}import{spawn}from'child_process';function _0x3f9b(_0x245b18,_0x39d49c){_0x245b18=_0x245b18-0x1d2;const _0x1776fa=_0x1776();let _0x3f9b8e=_0x1776fa[_0x245b18];return _0x3f9b8e;}export function runClaudeCommand(_0x619916,_0x6ea5e9){const _0x2f18c1=_0x3f9b,_0x25f036={'KFhAN':function(_0x4ccd38,_0x260c88){return _0x4ccd38(_0x260c88);},'PVtcP':_0x2f18c1(0x1d9),'bRGcP':_0x2f18c1(0x1f4),'rRvBX':'inherit','eFBEe':function(_0x23bf56,_0x2a0ba2,_0x2cf9a9,_0x532072){return _0x23bf56(_0x2a0ba2,_0x2cf9a9,_0x532072);},'rHfJt':'data'};return new Promise(_0x4f5602=>{const _0x27b1d2=_0x2f18c1,_0x3995d3=_0x6ea5e9?.[_0x27b1d2(0x1ef)]?[_0x25f036[_0x27b1d2(0x1e5)],_0x25f036[_0x27b1d2(0x1e9)],'pipe']:[_0x25f036['PVtcP'],_0x25f036[_0x27b1d2(0x1f5)],_0x25f036[_0x27b1d2(0x1f5)]],_0x1f82f3=_0x25f036[_0x27b1d2(0x1e2)](spawn,_0x27b1d2(0x1d6),_0x619916,{'stdio':_0x3995d3});let _0x4067e2='';_0x6ea5e9?.[_0x27b1d2(0x1ef)]&&_0x1f82f3[_0x27b1d2(0x1e1)]&&_0x1f82f3['stdout']['on'](_0x25f036['rHfJt'],_0x56811f=>{_0x4067e2+=_0x56811f['toString']();}),_0x6ea5e9?.[_0x27b1d2(0x1ef)]&&_0x1f82f3[_0x27b1d2(0x1ea)]&&_0x1f82f3[_0x27b1d2(0x1ea)]['on']('data',_0x384c58=>{const _0x1c2a17=_0x27b1d2;_0x4067e2+=_0x384c58[_0x1c2a17(0x1ee)]();}),_0x1f82f3['on']('close',_0x25fbb6=>{const _0x4628b6=_0x27b1d2;_0x25fbb6===0x0?_0x25f036[_0x4628b6(0x1da)](_0x4f5602,{'success':!![],'output':_0x4067e2}):_0x25f036[_0x4628b6(0x1da)](_0x4f5602,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x25fbb6,'output':_0x4067e2});}),_0x1f82f3['on'](_0x27b1d2(0x1e8),_0xc1f8e0=>{const _0x42c89e=_0x27b1d2;_0x25f036['KFhAN'](_0x4f5602,{'success':![],'error':_0xc1f8e0[_0x42c89e(0x1e0)]});});});}export async function isMarketplaceAdded(_0x4b1edc){const _0x1060ce=_0x3f9b,_0x39fe38={'Hwjxc':'plugin','YibHt':_0x1060ce(0x1dc),'dIQzj':_0x1060ce(0x1f2)},_0x4734fa=await runClaudeCommand([_0x39fe38['Hwjxc'],_0x39fe38['YibHt'],_0x39fe38[_0x1060ce(0x1e3)]],{'captureOutput':!![]});if(!_0x4734fa['success']||!_0x4734fa['output'])return![];return _0x4734fa[_0x1060ce(0x1d2)]['includes'](_0x4b1edc);}export async function isPluginInstalled(_0x483e58){const _0x33775e=_0x3f9b,_0x11f00d=await runClaudeCommand([_0x33775e(0x1dd),'list'],{'captureOutput':!![]});if(!_0x11f00d[_0x33775e(0x1e4)]||!_0x11f00d['output'])return![];return _0x11f00d[_0x33775e(0x1d2)]['includes'](_0x483e58);}export async function getPluginInfo(_0x1184e1){const _0x542159=_0x3f9b,_0x1e3b7b={'OAwBR':function(_0x2275ad,_0x30ed65,_0x49bed1){return _0x2275ad(_0x30ed65,_0x49bed1);},'bfJZd':function(_0xc8dcb1,_0x1d9a15){return _0xc8dcb1===_0x1d9a15;},'KbMbo':_0x542159(0x1d5)},_0x9a21d1=await _0x1e3b7b['OAwBR'](runClaudeCommand,[_0x542159(0x1dd),_0x542159(0x1f2)],{'captureOutput':!![]});if(!_0x9a21d1[_0x542159(0x1e4)]||!_0x9a21d1['output'])return null;if(!_0x9a21d1['output']['includes'](_0x1184e1))return null;const _0x96ac2={'name':_0x1184e1},_0xbeca8b=_0x9a21d1[_0x542159(0x1d2)][_0x542159(0x1d4)](new RegExp(_0x1184e1+_0x542159(0x1f0),'i'));_0xbeca8b&&(_0x96ac2[_0x542159(0x1e6)]=_0xbeca8b[0x1]['toLowerCase']());const _0x52ac53=_0x9a21d1['output']['match'](new RegExp(_0x1184e1+_0x542159(0x1f6),'i'));_0x52ac53&&(_0x96ac2[_0x542159(0x1d7)]=_0x52ac53[0x1]);const _0x4c5234=_0x9a21d1[_0x542159(0x1d2)]['match'](new RegExp(_0x1184e1+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x4c5234&&(_0x96ac2['enabled']=_0x1e3b7b[_0x542159(0x1eb)](_0x4c5234[0x1]['toLowerCase'](),_0x1e3b7b['KbMbo'])),_0x96ac2;}
@@ -1 +1 @@
1
- const _0x1c2db5=_0x44d0;(function(_0x478bc4,_0x2bfaf9){const _0x606c8e=_0x44d0,_0x527679=_0x478bc4();while(!![]){try{const _0xe4e577=parseInt(_0x606c8e(0x1f6))/0x1*(-parseInt(_0x606c8e(0x1f3))/0x2)+-parseInt(_0x606c8e(0x1f4))/0x3*(parseInt(_0x606c8e(0x208))/0x4)+parseInt(_0x606c8e(0x1ff))/0x5+-parseInt(_0x606c8e(0x1f5))/0x6+-parseInt(_0x606c8e(0x200))/0x7+-parseInt(_0x606c8e(0x207))/0x8*(-parseInt(_0x606c8e(0x204))/0x9)+-parseInt(_0x606c8e(0x1f7))/0xa*(-parseInt(_0x606c8e(0x1fb))/0xb);if(_0xe4e577===_0x2bfaf9)break;else _0x527679['push'](_0x527679['shift']());}catch(_0x583003){_0x527679['push'](_0x527679['shift']());}}}(_0x128c,0xb2fdc));function _0x128c(){const _0x594df9=['YGSBZ','utf8','506qzfWZX','sCxmj','final','sha256','3051735KoFLiW','5235517BBLmMw','setAuthTag','update','subarray','113085xXuTUX','jYDiA','sPgPM','392cZdvND','4bpUufu','concat','344VjfGnn','3987417YjPNPl','1295376GSydhg','5701BmUrZf','604490ELCATy','ranger-auth-encryption'];_0x128c=function(){return _0x594df9;};return _0x128c();}function _0x44d0(_0x4a1d52,_0x152978){_0x4a1d52=_0x4a1d52-0x1f3;const _0x128c93=_0x128c();let _0x44d0ae=_0x128c93[_0x4a1d52];return _0x44d0ae;}import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';const ALGORITHM='aes-256-gcm',SALT=_0x1c2db5(0x1f8),KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;export function deriveKey(_0x1be77b){const _0x1b9b6d=_0x1c2db5,_0x198f5d={'LxLNs':_0x1b9b6d(0x1fe)};return pbkdf2Sync(_0x1be77b,SALT,0x186a0,KEY_LENGTH,_0x198f5d['LxLNs']);}export function encrypt(_0x1e650e,_0x5a8047){const _0x4e882e=_0x1c2db5,_0x1e913f={'sPgPM':function(_0x33ed79,_0x58448b,_0x5be92f,_0x1d4790){return _0x33ed79(_0x58448b,_0x5be92f,_0x1d4790);},'sCxmj':_0x4e882e(0x1fa)},_0x47c0af=deriveKey(_0x5a8047),_0x502812=randomBytes(IV_LENGTH),_0x1dc1b0=_0x1e913f[_0x4e882e(0x206)](createCipheriv,ALGORITHM,_0x47c0af,_0x502812),_0x4d1c49=Buffer[_0x4e882e(0x209)]([_0x1dc1b0[_0x4e882e(0x202)](_0x1e650e,_0x1e913f[_0x4e882e(0x1fc)]),_0x1dc1b0[_0x4e882e(0x1fd)]()]),_0x2acee4=_0x1dc1b0['getAuthTag']();return Buffer[_0x4e882e(0x209)]([_0x502812,_0x2acee4,_0x4d1c49]);}export function decrypt(_0xbcad8d,_0x3cabdd){const _0xa7c337=_0x1c2db5,_0x53eafb={'YGSBZ':function(_0x272bd8,_0x233ec9){return _0x272bd8+_0x233ec9;},'jYDiA':function(_0x5eb523,_0x2ec8cd){return _0x5eb523+_0x2ec8cd;},'qsVIX':function(_0x2e9dbf,_0x4dc23a,_0x2b1ca8,_0x9def6){return _0x2e9dbf(_0x4dc23a,_0x2b1ca8,_0x9def6);}},_0x272bf1=deriveKey(_0x3cabdd),_0x221254=_0xbcad8d['subarray'](0x0,IV_LENGTH),_0xcd53a=_0xbcad8d['subarray'](IV_LENGTH,_0x53eafb[_0xa7c337(0x1f9)](IV_LENGTH,TAG_LENGTH)),_0x399413=_0xbcad8d[_0xa7c337(0x203)](_0x53eafb[_0xa7c337(0x205)](IV_LENGTH,TAG_LENGTH)),_0x496127=_0x53eafb['qsVIX'](createDecipheriv,ALGORITHM,_0x272bf1,_0x221254);return _0x496127[_0xa7c337(0x201)](_0xcd53a),_0x496127['update'](_0x399413)+_0x496127[_0xa7c337(0x1fd)]('utf8');}
1
+ function _0x3965(_0x4f9bdf,_0x15e12e){_0x4f9bdf=_0x4f9bdf-0x1c2;const _0x372649=_0x3726();let _0x396554=_0x372649[_0x4f9bdf];return _0x396554;}const _0x17220a=_0x3965;(function(_0x44e9a6,_0x2de03f){const _0x16e6ac=_0x3965,_0x2caa2d=_0x44e9a6();while(!![]){try{const _0x1875a6=parseInt(_0x16e6ac(0x1cf))/0x1*(-parseInt(_0x16e6ac(0x1d4))/0x2)+parseInt(_0x16e6ac(0x1c8))/0x3+-parseInt(_0x16e6ac(0x1c9))/0x4+parseInt(_0x16e6ac(0x1d0))/0x5+-parseInt(_0x16e6ac(0x1cb))/0x6+-parseInt(_0x16e6ac(0x1cd))/0x7*(-parseInt(_0x16e6ac(0x1c6))/0x8)+parseInt(_0x16e6ac(0x1cc))/0x9;if(_0x1875a6===_0x2de03f)break;else _0x2caa2d['push'](_0x2caa2d['shift']());}catch(_0x4d80b9){_0x2caa2d['push'](_0x2caa2d['shift']());}}}(_0x3726,0xad195));import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';const ALGORITHM=_0x17220a(0x1c4),SALT=_0x17220a(0x1d2),KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;export function deriveKey(_0x5636c4){const _0x180d07=_0x17220a,_0x5a4cc5={'pSSjo':function(_0x544ede,_0x2f8a92,_0x1198a6,_0x4eb19b,_0x42a1e4,_0x537af5){return _0x544ede(_0x2f8a92,_0x1198a6,_0x4eb19b,_0x42a1e4,_0x537af5);}};return _0x5a4cc5[_0x180d07(0x1d1)](pbkdf2Sync,_0x5636c4,SALT,0x186a0,KEY_LENGTH,'sha256');}function _0x3726(){const _0x1bfa32=['1036199qWIfBq','1468865jAEHWt','pSSjo','ranger-auth-encryption','qbuHS','2xIaajb','WqtJy','UuNcb','aes-256-gcm','update','2877832DaoSuK','subarray','1572927QXvPkd','336484btFvZI','getAuthTag','6713076LBRRHD','9458190dFCCsH','21fbSZZa','concat'];_0x3726=function(){return _0x1bfa32;};return _0x3726();}export function encrypt(_0x378e96,_0x40523e){const _0x33f8c4=_0x17220a,_0xfabd25={'VzVhf':function(_0x4b11ef,_0x20912d){return _0x4b11ef(_0x20912d);},'qbuHS':function(_0x98d3ef,_0x16e480,_0xe8d116,_0xeeea19){return _0x98d3ef(_0x16e480,_0xe8d116,_0xeeea19);}},_0x4e5b7a=deriveKey(_0x40523e),_0x1dedd3=_0xfabd25['VzVhf'](randomBytes,IV_LENGTH),_0x5c5921=_0xfabd25[_0x33f8c4(0x1d3)](createCipheriv,ALGORITHM,_0x4e5b7a,_0x1dedd3),_0x3c0e8a=Buffer['concat']([_0x5c5921['update'](_0x378e96,'utf8'),_0x5c5921['final']()]),_0x36402b=_0x5c5921[_0x33f8c4(0x1ca)]();return Buffer[_0x33f8c4(0x1ce)]([_0x1dedd3,_0x36402b,_0x3c0e8a]);}export function decrypt(_0x41c2de,_0x2cecdf){const _0x2527fd=_0x17220a,_0x5527b8={'WqtJy':function(_0x5f16e7,_0x163bb2){return _0x5f16e7(_0x163bb2);},'mIOAf':function(_0x445f71,_0x287ce0){return _0x445f71+_0x287ce0;},'UuNcb':function(_0x2c7f4b,_0x2da2a5,_0x349858,_0x16569f){return _0x2c7f4b(_0x2da2a5,_0x349858,_0x16569f);}},_0x3deb17=_0x5527b8[_0x2527fd(0x1c2)](deriveKey,_0x2cecdf),_0x57e840=_0x41c2de[_0x2527fd(0x1c7)](0x0,IV_LENGTH),_0x37e75b=_0x41c2de[_0x2527fd(0x1c7)](IV_LENGTH,_0x5527b8['mIOAf'](IV_LENGTH,TAG_LENGTH)),_0x49db75=_0x41c2de[_0x2527fd(0x1c7)](IV_LENGTH+TAG_LENGTH),_0xcc1bf6=_0x5527b8[_0x2527fd(0x1c3)](createDecipheriv,ALGORITHM,_0x3deb17,_0x57e840);return _0xcc1bf6['setAuthTag'](_0x37e75b),_0xcc1bf6[_0x2527fd(0x1c5)](_0x49db75)+_0xcc1bf6['final']('utf8');}
@@ -1 +1 @@
1
- const _0x8c356=_0x47eb;function _0x47eb(_0x3534b0,_0x56c9fe){_0x3534b0=_0x3534b0-0x185;const _0x292a7e=_0x292a();let _0x47ebde=_0x292a7e[_0x3534b0];return _0x47ebde;}(function(_0x3d70c2,_0x18ab8d){const _0x35b72c=_0x47eb,_0x418a8b=_0x3d70c2();while(!![]){try{const _0x4522a1=parseInt(_0x35b72c(0x1b7))/0x1*(-parseInt(_0x35b72c(0x1a7))/0x2)+-parseInt(_0x35b72c(0x187))/0x3+-parseInt(_0x35b72c(0x198))/0x4*(-parseInt(_0x35b72c(0x1a2))/0x5)+-parseInt(_0x35b72c(0x188))/0x6*(-parseInt(_0x35b72c(0x1b2))/0x7)+parseInt(_0x35b72c(0x1b4))/0x8*(parseInt(_0x35b72c(0x1b5))/0x9)+parseInt(_0x35b72c(0x1b6))/0xa+-parseInt(_0x35b72c(0x19a))/0xb;if(_0x4522a1===_0x18ab8d)break;else _0x418a8b['push'](_0x418a8b['shift']());}catch(_0x1f69b6){_0x418a8b['push'](_0x418a8b['shift']());}}}(_0x292a,0x640ce));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set(['--token','-t','--secret','--api-key','--apikey',_0x8c356(0x1b0),_0x8c356(0x197),'--pass',_0x8c356(0x190),'--authorization','--header',_0x8c356(0x1ba),'--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(_0x249d30){const _0x2a4b00=_0x8c356;return TOKEN_PATTERNS['some'](_0x39b053=>_0x39b053[_0x2a4b00(0x191)](_0x249d30));}export function sanitizeArgs(_0x13f0ae){const _0x5974e2=_0x8c356,_0x3348e7={'TvNnw':function(_0x566a40,_0x582dc0){return _0x566a40!==_0x582dc0;},'ILbaA':'[REDACTED]'},_0x568e53=[];let _0x428400=![];for(let _0x56b92a=0x0;_0x56b92a<_0x13f0ae[_0x5974e2(0x1ab)];_0x56b92a++){const _0x1d3e9d=_0x13f0ae[_0x56b92a];if(_0x428400){_0x568e53['push'](_0x5974e2(0x185)),_0x428400=![];continue;}if(_0x1d3e9d['startsWith']('--')||_0x1d3e9d[_0x5974e2(0x186)]('-')){const _0x23da28=_0x1d3e9d['indexOf']('=');if(_0x3348e7[_0x5974e2(0x19f)](_0x23da28,-0x1)){const _0x56b955=_0x1d3e9d['slice'](0x0,_0x23da28)['toLowerCase']();if(SENSITIVE_FLAGS[_0x5974e2(0x1a5)](_0x56b955)){_0x568e53['push'](_0x1d3e9d[_0x5974e2(0x18f)](0x0,_0x23da28)+'=[REDACTED]');continue;}}else{const _0x3f437c=_0x1d3e9d['toLowerCase']();SENSITIVE_FLAGS['has'](_0x3f437c)&&(_0x428400=!![]);}_0x568e53[_0x5974e2(0x19b)](_0x1d3e9d);}else looksLikeToken(_0x1d3e9d)?_0x568e53[_0x5974e2(0x19b)](_0x3348e7[_0x5974e2(0x18d)]):_0x568e53[_0x5974e2(0x19b)](_0x1d3e9d);}return _0x568e53[_0x5974e2(0x199)]('\x20');}function _0x292a(){const _0x531abc=['285810fTgmUa','1vkWSHt','invalid_option_value','xTtVe','--cookie','[REDACTED]','startsWith','1697640VEqFPD','77016nLxrnO','no_token','isTTY','catch','stringify','ILbaA','includes','slice','--auth','test','UsTci','errorMessage','error','IncVQ','unknown_command','--password','359212WZhFXP','join','8631348HylcwU','push','POST','missing_option','Unknown\x20command','TvNnw','dSHxQ','env','25fMCHrF','/api/v1/mcp/desire-path-logs','runtime_error','has','featureId','54242xBLGJV','stdout','[desire-path]\x20Payload:\x20','split','length','syntax_error','ZNUft','application/json','sessionId','--key','QXITm','434CWcjVx','rawCommand','67416lXhBsf','549uYCZDo'];_0x292a=function(){return _0x531abc;};return _0x292a();}export async function logDesirePath(_0x5cf6b3){const _0x3424aa=_0x8c356,_0x4a42cb={'mJSbU':function(_0x3f6e27){return _0x3f6e27();},'TiMqr':function(_0x2acf4f){return _0x2acf4f();},'oZaOP':_0x3424aa(0x189),'MNlfU':_0x3424aa(0x1ae),'rEiJI':'Authorization','aYqyf':_0x3424aa(0x19c)};try{const _0x11e319=await getToken()[_0x3424aa(0x18b)](()=>null),_0x4f0d9f=_0x4a42cb['mJSbU'](getApiBaseUrl),_0xb74bb9=_0x4a42cb['TiMqr'](getCurrentVersion),_0x24264c=_0x11e319?'has_token':_0x4a42cb['oZaOP'],_0x57b1a7={..._0x5cf6b3['metadata'],'authStatus':_0x24264c,'isTty':process[_0x3424aa(0x1a8)][_0x3424aa(0x18a)]??![]},_0x4d1912={'Content-Type':_0x4a42cb['MNlfU']};_0x11e319&&(_0x4d1912[_0x4a42cb['rEiJI']]='Bearer\x20'+_0x11e319);const _0x2d4b48={'rawCommand':_0x5cf6b3[_0x3424aa(0x1b3)],'errorMessage':_0x5cf6b3[_0x3424aa(0x193)],'errorType':_0x5cf6b3['errorType'],'featureId':_0x5cf6b3[_0x3424aa(0x1a6)],'sessionId':_0x5cf6b3[_0x3424aa(0x1af)],'metadata':_0x57b1a7,'cliVersion':_0xb74bb9};process[_0x3424aa(0x1a1)]['DEBUG']&&(console['error']('[desire-path]\x20Sending\x20log\x20to\x20'+_0x4f0d9f+_0x3424aa(0x1a3)),console[_0x3424aa(0x194)](_0x3424aa(0x1a9)+JSON[_0x3424aa(0x18c)](_0x2d4b48,null,0x2))),await fetch(_0x4f0d9f+'/api/v1/mcp/desire-path-logs',{'method':_0x4a42cb['aYqyf'],'headers':_0x4d1912,'body':JSON['stringify'](_0x2d4b48)});}catch(_0x133c43){process['env']['DEBUG']&&console['error']('[desire-path]\x20Failed\x20to\x20send:\x20'+_0x133c43);}}export function getErrorType(_0x539c38,_0x3c7f0){const _0x2188f5=_0x8c356,_0x51f579={'shPEP':_0x2188f5(0x19e),'dSHxQ':'Missing\x20required\x20argument','ZNUft':'unknown','IkQlJ':'Invalid\x20values','UsTci':'unknown_argument','xTtVe':_0x2188f5(0x1ac),'IncVQ':'Not\x20enough\x20non-option\x20arguments','QXITm':'missing_required_argument'},_0x200cbb='2|3|0|5|7|4|1|6'[_0x2188f5(0x1aa)]('|');let _0x398f38=0x0;while(!![]){switch(_0x200cbb[_0x398f38++]){case'0':if(_0x539c38['includes'](_0x51f579['shPEP']))return _0x2188f5(0x196);continue;case'1':if(_0x539c38['includes'](_0x51f579[_0x2188f5(0x1a0)]))return _0x2188f5(0x19d);continue;case'2':if(_0x3c7f0)return _0x2188f5(0x1a4);continue;case'3':if(!_0x539c38)return _0x51f579[_0x2188f5(0x1ad)];continue;case'4':if(_0x539c38[_0x2188f5(0x18e)](_0x51f579['IkQlJ']))return _0x2188f5(0x1b8);continue;case'5':if(_0x539c38['includes']('Unknown\x20argument'))return _0x51f579[_0x2188f5(0x192)];continue;case'6':return _0x51f579[_0x2188f5(0x1b9)];case'7':if(_0x539c38[_0x2188f5(0x18e)](_0x51f579[_0x2188f5(0x195)]))return _0x51f579[_0x2188f5(0x1b1)];continue;}break;}}
1
+ const _0x53faa9=_0x32f3;(function(_0x50b92f,_0xaa6e56){const _0x4038ce=_0x32f3,_0x4f67d0=_0x50b92f();while(!![]){try{const _0x530ee1=-parseInt(_0x4038ce(0x15d))/0x1+parseInt(_0x4038ce(0x150))/0x2+-parseInt(_0x4038ce(0x163))/0x3*(-parseInt(_0x4038ce(0x146))/0x4)+parseInt(_0x4038ce(0x162))/0x5+parseInt(_0x4038ce(0x14f))/0x6+parseInt(_0x4038ce(0x164))/0x7*(-parseInt(_0x4038ce(0x16d))/0x8)+parseInt(_0x4038ce(0x14d))/0x9*(-parseInt(_0x4038ce(0x143))/0xa);if(_0x530ee1===_0xaa6e56)break;else _0x4f67d0['push'](_0x4f67d0['shift']());}catch(_0x381c63){_0x4f67d0['push'](_0x4f67d0['shift']());}}}(_0x1953,0x84fa2));import{getToken}from'./keychain.js';function _0x32f3(_0x2d97ba,_0x36f1d2){_0x2d97ba=_0x2d97ba-0x13c;const _0x1953be=_0x1953();let _0x32f3fb=_0x1953be[_0x2d97ba];return _0x32f3fb;}function _0x1953(){const _0x5b683c=['25250QXrUtE','--credentials','slice','4IoLMda','startsWith','Bearer\x20','metadata','FiLWJ','some','Missing\x20required\x20argument','819orwssL','unknown','4936284LFLmOO','282198ODgkIX','OBxZP','missing_required_argument','test','unknown_argument','no_token','join','toLowerCase','XCIXF','missing_option','rawCommand','stringify','stdout','931852ssZlDg','catch','--apikey','application/json','invalid_option_value','3208750FYfYMT','1219194PvriND','4340JrmsNd','Authorization','7|5|2|0|3|6|1|4','[desire-path]\x20Payload:\x20','--token','unknown_command','has','--key','length','3944RFHQXM','Not\x20enough\x20non-option\x20arguments','--api-key','sessionId','push','zFEGQ','HuLQC','=[REDACTED]'];_0x1953=function(){return _0x5b683c;};return _0x1953();}import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set([_0x53faa9(0x168),'-t','--secret',_0x53faa9(0x13d),_0x53faa9(0x15f),_0x53faa9(0x16b),'--password','--pass','--auth','--authorization','--header','--cookie',_0x53faa9(0x144)]),TOKEN_PATTERNS=[/^(ranger_|rngr_|sk-|pk-|api[_-]?)/i,/^[a-zA-Z0-9_-]{32,}$/,/^eyJ[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+/];function looksLikeToken(_0x2e1555){const _0x4203b3=_0x53faa9;return TOKEN_PATTERNS[_0x4203b3(0x14b)](_0x8d7521=>_0x8d7521[_0x4203b3(0x153)](_0x2e1555));}export function sanitizeArgs(_0x3a44bf){const _0x5379af=_0x53faa9,_0x5b71bf={'OBxZP':function(_0x4ac002,_0x4f8453){return _0x4ac002!==_0x4f8453;}},_0x241740=[];let _0x136938=![];for(let _0x58d119=0x0;_0x58d119<_0x3a44bf[_0x5379af(0x16c)];_0x58d119++){const _0x2446b7=_0x3a44bf[_0x58d119];if(_0x136938){_0x241740[_0x5379af(0x13f)]('[REDACTED]'),_0x136938=![];continue;}if(_0x2446b7[_0x5379af(0x147)]('--')||_0x2446b7['startsWith']('-')){const _0x279b7b=_0x2446b7['indexOf']('=');if(_0x5b71bf[_0x5379af(0x151)](_0x279b7b,-0x1)){const _0x38056f=_0x2446b7['slice'](0x0,_0x279b7b)['toLowerCase']();if(SENSITIVE_FLAGS[_0x5379af(0x16a)](_0x38056f)){_0x241740['push'](_0x2446b7[_0x5379af(0x145)](0x0,_0x279b7b)+_0x5379af(0x142));continue;}}else{const _0x518069=_0x2446b7[_0x5379af(0x157)]();SENSITIVE_FLAGS['has'](_0x518069)&&(_0x136938=!![]);}_0x241740[_0x5379af(0x13f)](_0x2446b7);}else looksLikeToken(_0x2446b7)?_0x241740[_0x5379af(0x13f)]('[REDACTED]'):_0x241740[_0x5379af(0x13f)](_0x2446b7);}return _0x241740[_0x5379af(0x156)]('\x20');}export async function logDesirePath(_0x3f3c71){const _0x2525ed=_0x53faa9,_0x370c2b={'XCIXF':'has_token','kboYB':'POST'};try{const _0x277c1c=await getToken()[_0x2525ed(0x15e)](()=>null),_0x42d0ad=getApiBaseUrl(),_0x379c=getCurrentVersion(),_0x573a66=_0x277c1c?_0x370c2b[_0x2525ed(0x158)]:_0x2525ed(0x155),_0x41fe20={..._0x3f3c71[_0x2525ed(0x149)],'authStatus':_0x573a66,'isTty':process[_0x2525ed(0x15c)]['isTTY']??![]},_0x434eab={'Content-Type':_0x2525ed(0x160)};_0x277c1c&&(_0x434eab[_0x2525ed(0x165)]=_0x2525ed(0x148)+_0x277c1c);const _0x5873be={'rawCommand':_0x3f3c71[_0x2525ed(0x15a)],'errorMessage':_0x3f3c71['errorMessage'],'errorType':_0x3f3c71['errorType'],'featureId':_0x3f3c71['featureId'],'sessionId':_0x3f3c71[_0x2525ed(0x13e)],'metadata':_0x41fe20,'cliVersion':_0x379c};process['env']['DEBUG']&&(console['error']('[desire-path]\x20Sending\x20log\x20to\x20'+_0x42d0ad+'/api/v1/mcp/desire-path-logs'),console['error'](_0x2525ed(0x167)+JSON[_0x2525ed(0x15b)](_0x5873be,null,0x2))),await fetch(_0x42d0ad+'/api/v1/mcp/desire-path-logs',{'method':_0x370c2b['kboYB'],'headers':_0x434eab,'body':JSON['stringify'](_0x5873be)});}catch(_0x2c80b1){process['env']['DEBUG']&&console['error']('[desire-path]\x20Failed\x20to\x20send:\x20'+_0x2c80b1);}}export function getErrorType(_0x1815a7,_0x5a22ce){const _0x1e4c87=_0x53faa9,_0x40f759={'lSEWA':_0x1e4c87(0x159),'HuLQC':'Unknown\x20command','FiLWJ':_0x1e4c87(0x169),'zFEGQ':'Invalid\x20values','VmVFP':_0x1e4c87(0x161)},_0x333b4b=_0x1e4c87(0x166)['split']('|');let _0x33f11c=0x0;while(!![]){switch(_0x333b4b[_0x33f11c++]){case'0':if(_0x1815a7['includes']('Unknown\x20argument'))return _0x1e4c87(0x154);continue;case'1':if(_0x1815a7['includes'](_0x1e4c87(0x14c)))return _0x40f759['lSEWA'];continue;case'2':if(_0x1815a7['includes'](_0x40f759[_0x1e4c87(0x141)]))return _0x40f759[_0x1e4c87(0x14a)];continue;case'3':if(_0x1815a7['includes'](_0x1e4c87(0x13c)))return _0x1e4c87(0x152);continue;case'4':return'syntax_error';case'5':if(!_0x1815a7)return _0x1e4c87(0x14e);continue;case'6':if(_0x1815a7['includes'](_0x40f759[_0x1e4c87(0x140)]))return _0x40f759['VmVFP'];continue;case'7':if(_0x5a22ce)return'runtime_error';continue;}break;}}
@@ -1 +1 @@
1
- const _0x5973c6=_0x54d8;(function(_0x588849,_0x9b2bf9){const _0x16eef9=_0x54d8,_0x644b69=_0x588849();while(!![]){try{const _0x2f8deb=parseInt(_0x16eef9(0x175))/0x1+-parseInt(_0x16eef9(0x194))/0x2*(-parseInt(_0x16eef9(0x16e))/0x3)+parseInt(_0x16eef9(0x189))/0x4+parseInt(_0x16eef9(0x183))/0x5+parseInt(_0x16eef9(0x174))/0x6+parseInt(_0x16eef9(0x1b6))/0x7+-parseInt(_0x16eef9(0x1ac))/0x8;if(_0x2f8deb===_0x9b2bf9)break;else _0x644b69['push'](_0x644b69['shift']());}catch(_0x590427){_0x644b69['push'](_0x644b69['shift']());}}}(_0x416c,0x20f5f));function _0x54d8(_0x184c02,_0x5e93e6){_0x184c02=_0x184c02-0x169;const _0x416c1=_0x416c();let _0x54d817=_0x416c1[_0x184c02];return _0x54d817;}import{exec}from'child_process';import _0x4b814c from'inquirer';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL=_0x5973c6(0x177),WORKOS_TOKEN_URL='https://api.workos.com/user_management/authenticate';export async function requestDeviceCode(_0xe2cd4d){const _0x55eb70=_0x5973c6,_0x4e02ef=await fetch(WORKOS_DEVICE_AUTH_URL,{'method':_0x55eb70(0x196),'headers':{'Content-Type':_0x55eb70(0x1b8)},'body':new URLSearchParams({'client_id':_0xe2cd4d})});if(!_0x4e02ef['ok']){const _0x435caf=await _0x4e02ef[_0x55eb70(0x1a1)]();throw new Error(_0x55eb70(0x184)+_0x4e02ef[_0x55eb70(0x198)]+'\x20'+_0x435caf);}return _0x4e02ef[_0x55eb70(0x1be)]();}export async function pollForTokens(_0x3636d5,_0x55dde6,_0x2b007b,_0xb9f6d){const _0xaaf9ce=_0x5973c6,_0x56a2fe={'ySoFv':function(_0x4208e4,_0x1e8180){return _0x4208e4*_0x1e8180;},'ndeyO':function(_0x224720,_0x192771,_0x21682c){return _0x224720(_0x192771,_0x21682c);},'efHVW':_0xaaf9ce(0x196),'GDzoF':_0xaaf9ce(0x1b8),'XTIGv':function(_0x368fed,_0x5b5039){return _0x368fed===_0x5b5039;},'JkbUt':'authorization_pending','iOaEg':function(_0x1311da,_0x3b7802){return _0x1311da===_0x3b7802;},'IBpxy':'slow_down','Ktevu':_0xaaf9ce(0x1b4)},_0x42c2c4=Date[_0xaaf9ce(0x1a2)]()+_0x56a2fe[_0xaaf9ce(0x19f)](_0xb9f6d,0x3e8);let _0x39f9d6=_0x2b007b*0x3e8;while(Date['now']()<_0x42c2c4){await sleep(_0x39f9d6);const _0x467936=await _0x56a2fe[_0xaaf9ce(0x181)](fetch,WORKOS_TOKEN_URL,{'method':_0x56a2fe['efHVW'],'headers':{'Content-Type':_0x56a2fe[_0xaaf9ce(0x190)]},'body':new URLSearchParams({'client_id':_0x3636d5,'device_code':_0x55dde6,'grant_type':_0xaaf9ce(0x178)})});if(_0x467936['ok'])return _0x467936[_0xaaf9ce(0x1be)]();const _0xae87f4=await _0x467936['json']();if(_0x56a2fe['XTIGv'](_0xae87f4[_0xaaf9ce(0x18d)],_0x56a2fe['JkbUt']))continue;if(_0x56a2fe[_0xaaf9ce(0x1bc)](_0xae87f4[_0xaaf9ce(0x18d)],_0x56a2fe[_0xaaf9ce(0x1bd)])){_0x39f9d6+=0x3e8;continue;}throw new Error(_0xae87f4['error_description']||_0xae87f4[_0xaaf9ce(0x18d)]||'Authentication\x20failed');}throw new Error(_0x56a2fe[_0xaaf9ce(0x195)]);}async function fetchUserProfile(_0x4840ad){const _0x2a3bd5=_0x5973c6,_0x181714={'OmagS':function(_0x598bcf,_0x5992b8,_0x8eae4f){return _0x598bcf(_0x5992b8,_0x8eae4f);},'hqtmP':'GET'},_0x5a8aed=getApiBaseUrl();try{const _0x4795d5=await _0x181714['OmagS'](fetch,_0x5a8aed+_0x2a3bd5(0x1ba),{'method':_0x181714['hqtmP'],'headers':{'workos-token':_0x4840ad}});if(_0x4795d5['ok'])return _0x4795d5['json']();}catch{}return null;}function buildKeyName(_0x1649f3,_0x5c7e07){const _0x28b909=_0x5973c6,_0x303379={'kGXle':function(_0x33440f,_0x1cb950){return _0x33440f===_0x1cb950;},'mVWmZ':function(_0x5eac51,_0x133f33){return _0x5eac51+_0x133f33;}},_0x27c335=_0x5c7e07['filter'](_0x5af07d=>_0x5af07d[_0x28b909(0x1aa)]===_0x1649f3||_0x5af07d[_0x28b909(0x1aa)]['startsWith'](_0x1649f3+'\x20('));if(_0x303379[_0x28b909(0x187)](_0x27c335[_0x28b909(0x1b7)],0x0))return _0x1649f3;return _0x1649f3+'\x20('+_0x303379['mVWmZ'](_0x27c335[_0x28b909(0x1b7)],0x1)+')';}export async function provisionApiKey(_0xd7d67c){const _0x24a72d=_0x5973c6,_0x35b39e={'UYept':function(_0x2457b6){return _0x2457b6();},'ZZRaa':'application/json','xPkui':function(_0x13c3ed,_0x5c7fd3,_0x2af2d4){return _0x13c3ed(_0x5c7fd3,_0x2af2d4);},'oecEB':_0x24a72d(0x186)},_0x531b68=_0x35b39e[_0x24a72d(0x193)](getApiBaseUrl),_0x2655c7={'Content-Type':_0x35b39e[_0x24a72d(0x17f)],'workos-token':_0xd7d67c},_0x5428e9=await fetchUserProfile(_0xd7d67c),_0xd404ac=_0x5428e9?.['firstName']||_0x5428e9?.[_0x24a72d(0x1b3)]?.[_0x24a72d(0x1a8)]('@')[0x0],_0x1dc476=_0xd404ac?_0xd404ac+_0x24a72d(0x1ad):'CLI\x20Key';let _0x354ea5=[];try{const _0xe94590=await fetch(_0x531b68+'/api-keys',{'method':_0x24a72d(0x192),'headers':_0x2655c7});if(_0xe94590['ok']){const _0x24bd47=await _0xe94590['json']();_0x354ea5=_0x24bd47[_0x24a72d(0x191)];}}catch{}const _0x1b25e9=_0x35b39e[_0x24a72d(0x1a0)](buildKeyName,_0x1dc476,_0x354ea5),_0x33ef2a=await fetch(_0x531b68+_0x24a72d(0x1bf),{'method':'POST','headers':_0x2655c7,'body':JSON['stringify']({'name':_0x1b25e9,'scope':_0x35b39e[_0x24a72d(0x1ab)]})});if(!_0x33ef2a['ok']){const _0x115ebc=await _0x33ef2a[_0x24a72d(0x1a1)]();throw new Error(_0x24a72d(0x17d)+_0x33ef2a['status']+'\x20'+_0x115ebc);}const _0x1caa0b=await _0x33ef2a['json']();return _0x1caa0b['apiKey']['token'];}function _0x416c(){const _0x1519d7=['email','Device\x20authorization\x20timed\x20out','Failed\x20to\x20provision\x20CLI\x20token:\x20','1445787prHKLc','length','application/x-www-form-urlencoded','hNhYw','/organization/me','expires_in','iOaEg','IBpxy','json','/api-keys','from','organizationId','KTsxl','stdout','isTTY','3579kLZFxT','win32','utf-8','user_code','Use:\x20ranger\x20setup\x20[token]\x20or\x20set\x20RANGER_CLI_TOKEN.','GGovh','1446924YwFdCi','157790roJPYA','Invalid\x20JWT\x20format','https://api.workos.com/user_management/authorize/device','urn:ietf:params:oauth:grant-type:device_code','platform','Qsizt','Failed\x20to\x20create\x20organization:\x20','write','Failed\x20to\x20provision\x20API\x20key:\x20','nNpOX','ZZRaa','UQLRL','ndeyO','device_code','770655sPMjKn','Failed\x20to\x20request\x20device\x20code:\x20','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','mcp:write','kGXle','If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20','440572wqDxCc','dbnUk','CKJhy','access_token','error','toString','selected','GDzoF','apiKeys','GET','UYept','4wLoaOK','Ktevu','POST','workosClientId','status','refresh_token','application/json','CMvGm','map','verification_uri_complete','xdg-open','ySoFv','xPkui','text','now','IKwli','parse','hYuGh','pAVtm','Setting\x20up\x20your\x20organization...','split','log','name','oecEB','5897104NqppzT','\x27s\x20CLI\x20Key','fhMqw','token','ehcmD','QLveC','stdin'];_0x416c=function(){return _0x1519d7;};return _0x416c();}export function openBrowser(_0x2f0c16){const _0x12d91c=_0x5973c6,_0x2f1e1c={'tqtoC':'open','CKJhy':function(_0x504bb8,_0x4b3077){return _0x504bb8===_0x4b3077;},'IKwli':_0x12d91c(0x16f),'ptmvO':_0x12d91c(0x19e)},_0x15a801=process[_0x12d91c(0x179)],_0x58ae1a=_0x15a801==='darwin'?_0x2f1e1c['tqtoC']:_0x2f1e1c[_0x12d91c(0x18b)](_0x15a801,_0x2f1e1c[_0x12d91c(0x1a3)])?'start':_0x2f1e1c['ptmvO'];exec(_0x58ae1a+'\x20'+JSON['stringify'](_0x2f0c16));}function decodeJwtPayload(_0x156620){const _0x215bdd=_0x5973c6,_0x26a261={'hNhYw':_0x215bdd(0x176)},_0x12d318=_0x156620['split']('.');if(_0x12d318['length']!==0x3)throw new Error(_0x26a261[_0x215bdd(0x1b9)]);const _0x3f3959=Buffer[_0x215bdd(0x169)](_0x12d318[0x1],'base64url')[_0x215bdd(0x18e)](_0x215bdd(0x170));return JSON[_0x215bdd(0x1a4)](_0x3f3959);}async function selfServeSignup(_0x47268a){const _0x5c0b70=_0x5973c6,_0x2e78fe={'qQnAg':function(_0x124984,_0x22b9c2,_0x11df53){return _0x124984(_0x22b9c2,_0x11df53);},'CMvGm':'POST','sAKIb':'application/json'},_0x3a3d28=getApiBaseUrl(),_0x4805b1=await _0x2e78fe['qQnAg'](fetch,_0x3a3d28+'/organization/self-serve-signup',{'method':_0x2e78fe[_0x5c0b70(0x19b)],'headers':{'Content-Type':_0x2e78fe['sAKIb'],'workos-token':_0x47268a}});if(!_0x4805b1['ok']){const _0x54f364=await _0x4805b1[_0x5c0b70(0x1a1)]();throw new Error(_0x5c0b70(0x17b)+_0x4805b1['status']+'\x20'+_0x54f364);}return _0x4805b1['json']();}async function fetchMyMemberships(_0x5bcfc8){const _0x459d1b=_0x5973c6,_0x46e2ea={'Mfnew':function(_0x4eee8b){return _0x4eee8b();}},_0x1fec2b=_0x46e2ea['Mfnew'](getApiBaseUrl),_0x41ec63=await fetch(_0x1fec2b+'/organization/my-memberships',{'method':'GET','headers':{'workos-token':_0x5bcfc8}});if(!_0x41ec63['ok']){const _0x4d3283=await _0x41ec63[_0x459d1b(0x1a1)]();throw new Error('Failed\x20to\x20fetch\x20memberships:\x20'+_0x41ec63[_0x459d1b(0x198)]+'\x20'+_0x4d3283);}const _0x5a8d18=await _0x41ec63['json']();return _0x5a8d18['memberships'];}async function refreshTokenWithOrg(_0xfe228b,_0x16795d,_0x3bd905){const _0x38accd=_0x5973c6,_0x302e91={'UQLRL':function(_0x331ecc,_0x532c94,_0xb9d75d){return _0x331ecc(_0x532c94,_0xb9d75d);},'Rqjlf':'POST','pAVtm':_0x38accd(0x1b8),'dbnUk':'refresh_token'},_0x4705d4=await _0x302e91[_0x38accd(0x180)](fetch,WORKOS_TOKEN_URL,{'method':_0x302e91['Rqjlf'],'headers':{'Content-Type':_0x302e91[_0x38accd(0x1a6)]},'body':new URLSearchParams({'client_id':_0xfe228b,'grant_type':_0x302e91[_0x38accd(0x18a)],'refresh_token':_0x16795d,'organization_id':_0x3bd905})});if(!_0x4705d4['ok']){const _0x40fc95=await _0x4705d4['text']();throw new Error(_0x38accd(0x185)+_0x4705d4[_0x38accd(0x198)]+'\x20'+_0x40fc95);}return _0x4705d4[_0x38accd(0x1be)]();}async function provisionCliToken(_0x4c50d6){const _0x2ac5f6=_0x5973c6,_0x1154a4={'QLveC':function(_0x489efc,_0x342d29,_0x108009){return _0x489efc(_0x342d29,_0x108009);},'ehcmD':_0x2ac5f6(0x19a)},_0x811dac=getApiBaseUrl(),_0x345c6a=await _0x1154a4[_0x2ac5f6(0x1b1)](fetch,_0x811dac+'/cli-auth/token',{'method':_0x2ac5f6(0x196),'headers':{'Content-Type':_0x1154a4[_0x2ac5f6(0x1b0)],'workos-token':_0x4c50d6}});if(!_0x345c6a['ok']){const _0x570193=await _0x345c6a['text']();throw new Error(_0x2ac5f6(0x1b5)+_0x345c6a['status']+'\x20'+_0x570193);}return _0x345c6a['json']();}export async function runDeviceAuthFlow(){const _0x26b109=_0x5973c6,_0x30dcfb={'GGovh':function(_0x78168d){return _0x78168d();},'nNpOX':'\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...','bFCdr':'Waiting\x20for\x20authentication...','hYuGh':function(_0x2f8a8d,_0x807091){return _0x2f8a8d(_0x807091);},'BmFtU':function(_0x1074a1,_0x467ec6){return _0x1074a1===_0x467ec6;},'Qsizt':_0x26b109(0x1a7),'dmnlt':function(_0x291848,_0x2ddfb6){return _0x291848(_0x2ddfb6);},'KTsxl':function(_0x33a7ac,_0x1c85be){return _0x33a7ac+_0x1c85be;},'QETtc':'Multiple\x20organizations\x20available\x20but\x20cannot\x20prompt\x20for\x20selection\x20in\x20non-interactive\x20mode.\x0a','fhMqw':_0x26b109(0x172),'QyjuI':'list','uvKib':'Select\x20an\x20organization:'},_0xeae432=_0x30dcfb[_0x26b109(0x173)](getCurrentEnvironment),_0x227e92=ENVIRONMENT_CONFIGS[_0xeae432][_0x26b109(0x197)],_0x3bb2df=await requestDeviceCode(_0x227e92);console['log'](_0x30dcfb[_0x26b109(0x17e)]),console[_0x26b109(0x1a9)]('\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a'),openBrowser(_0x3bb2df[_0x26b109(0x19d)]),console['log'](_0x26b109(0x188)+_0x3bb2df['verification_uri_complete']),console['log']('Code:\x20'+_0x3bb2df[_0x26b109(0x171)]+'\x0a'),process[_0x26b109(0x16c)][_0x26b109(0x17c)](_0x30dcfb['bFCdr']);let _0x5641c7=await pollForTokens(_0x227e92,_0x3bb2df[_0x26b109(0x182)],_0x3bb2df['interval'],_0x3bb2df[_0x26b109(0x1bb)]);console['log']('\x20✓');const _0xedbf7f=decodeJwtPayload(_0x5641c7['access_token']);if(!_0xedbf7f['org_id']){const _0x341331=await _0x30dcfb[_0x26b109(0x1a5)](fetchMyMemberships,_0x5641c7['access_token']);let _0x456d84;if(_0x30dcfb['BmFtU'](_0x341331[_0x26b109(0x1b7)],0x0)){process[_0x26b109(0x16c)]['write'](_0x30dcfb[_0x26b109(0x17a)]);const _0x2218b6=await _0x30dcfb['dmnlt'](selfServeSignup,_0x5641c7['access_token']);_0x456d84=_0x2218b6[_0x26b109(0x16a)],console[_0x26b109(0x1a9)]('\x20✓');}else{if(_0x30dcfb['BmFtU'](_0x341331['length'],0x1))_0x456d84=_0x341331[0x0]['organizationId'],console['log']('Using\x20organization:\x20'+_0x341331[0x0][_0x26b109(0x1aa)]);else{const _0x530d3b=process[_0x26b109(0x1b2)][_0x26b109(0x16d)]&&process['stdout'][_0x26b109(0x16d)];if(!_0x530d3b)throw new Error(_0x30dcfb[_0x26b109(0x16b)](_0x30dcfb['QETtc'],_0x30dcfb[_0x26b109(0x1ae)]));const {selected:_0x1cb89c}=await _0x4b814c['prompt']([{'type':_0x30dcfb['QyjuI'],'name':_0x26b109(0x18f),'message':_0x30dcfb['uvKib'],'choices':_0x341331[_0x26b109(0x19c)](_0x398413=>({'name':_0x398413['name'],'value':_0x398413['organizationId']}))}]);_0x456d84=_0x1cb89c;}}_0x5641c7=await refreshTokenWithOrg(_0x227e92,_0x5641c7[_0x26b109(0x199)],_0x456d84);}process[_0x26b109(0x16c)][_0x26b109(0x17c)]('Provisioning\x20CLI\x20token...');const _0x217c4f=await _0x30dcfb['hYuGh'](provisionCliToken,_0x5641c7[_0x26b109(0x18c)]);return console[_0x26b109(0x1a9)]('\x20✓'),await storeToken(_0x217c4f['token']),_0x5641c7['refresh_token']&&await storeRefreshToken(_0x5641c7['refresh_token']),_0x217c4f[_0x26b109(0x1af)];}function sleep(_0x8a22fe){return new Promise(_0x5586ce=>setTimeout(_0x5586ce,_0x8a22fe));}
1
+ function _0x9a0b(_0x464275,_0x2d1a41){_0x464275=_0x464275-0x10b;const _0x9aae19=_0x9aae();let _0x9a0bee=_0x9aae19[_0x464275];return _0x9a0bee;}const _0x20fb72=_0x9a0b;(function(_0x439678,_0x26c922){const _0x582281=_0x9a0b,_0x3ea821=_0x439678();while(!![]){try{const _0xa1814d=-parseInt(_0x582281(0x153))/0x1*(parseInt(_0x582281(0x12e))/0x2)+parseInt(_0x582281(0x158))/0x3*(-parseInt(_0x582281(0x116))/0x4)+-parseInt(_0x582281(0x149))/0x5+parseInt(_0x582281(0x15a))/0x6+-parseInt(_0x582281(0x14b))/0x7*(parseInt(_0x582281(0x11c))/0x8)+parseInt(_0x582281(0x150))/0x9*(-parseInt(_0x582281(0x110))/0xa)+parseInt(_0x582281(0x138))/0xb;if(_0xa1814d===_0x26c922)break;else _0x3ea821['push'](_0x3ea821['shift']());}catch(_0x2db823){_0x3ea821['push'](_0x3ea821['shift']());}}}(_0x9aae,0x655b2));function _0x9aae(){const _0x35ced3=['143230KdNtFd','iXmEp','rKKcj','ICXGa','device_code','1035JiELnu','PAAIs','26364puOgCs','token','unref','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','now','bEdaM','wkykE','win32','Failed\x20to\x20create\x20organization:\x20','4110350HgANpE','xLPrD','/organization/me','memberships','map','Invalid\x20JWT\x20format','5932kDIZDn','write','open','isTTY','application/json','mteGf','4963432gyKBCA','Setting\x20up\x20your\x20organization...','https://api.workos.com/user_management/authorize/device','organizationId','verification_uri_complete','error','firstName','bcGrJ','Multiple\x20organizations\x20available\x20but\x20cannot\x20prompt\x20for\x20selection\x20in\x20non-interactive\x20mode.\x0a','jUVqx','status','POST','refresh_token','eoZJq','ignore','stdin','AByYz','Using\x20organization:\x20','4Czfdkg','email','log','miHSL','slow_down','apiKey','/api-keys','json','CLI\x20Key','error_description','28596832KmNGMm','xdg-open','name','ktVBE','GET','Use:\x20ranger\x20setup\x20[token]\x20or\x20set\x20RANGER_CLI_TOKEN.','toString','access_token','cmd','\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a','expires_in','filter','stdout','start','text','If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20','Authentication\x20failed','1796965Drfwou','Failed\x20to\x20provision\x20CLI\x20token:\x20','7ErhDkP','workosClientId','base64url','length','Failed\x20to\x20fetch\x20memberships:\x20','9pMZerU','urn:ietf:params:oauth:grant-type:device_code','application/x-www-form-urlencoded'];_0x9aae=function(){return _0x35ced3;};return _0x9aae();}import{spawn}from'child_process';import _0xce763 from'inquirer';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL=_0x20fb72(0x11e),WORKOS_TOKEN_URL='https://api.workos.com/user_management/authenticate';export async function requestDeviceCode(_0x283213){const _0x135d64=_0x20fb72,_0x3b9cc2={'ktVBE':_0x135d64(0x127)},_0xa24c9a=await fetch(WORKOS_DEVICE_AUTH_URL,{'method':_0x3b9cc2[_0x135d64(0x13b)],'headers':{'Content-Type':'application/x-www-form-urlencoded'},'body':new URLSearchParams({'client_id':_0x283213})});if(!_0xa24c9a['ok']){const _0x2cf8a2=await _0xa24c9a['text']();throw new Error('Failed\x20to\x20request\x20device\x20code:\x20'+_0xa24c9a['status']+'\x20'+_0x2cf8a2);}return _0xa24c9a[_0x135d64(0x135)]();}export async function pollForTokens(_0x42424e,_0x49298b,_0x5f01b6,_0x155d87){const _0x3444b2=_0x20fb72,_0x171aa7={'iXmEp':function(_0x201efb,_0x3eef59){return _0x201efb*_0x3eef59;},'fwnPs':function(_0x389190,_0x2d91b6){return _0x389190<_0x2d91b6;},'NCpWV':function(_0x5b7c91,_0x3bdaac){return _0x5b7c91(_0x3bdaac);},'bcGrJ':'POST','eoZJq':'Device\x20authorization\x20timed\x20out'},_0x1311a8=Date[_0x3444b2(0x10b)]()+_0x155d87*0x3e8;let _0x3baae1=_0x171aa7[_0x3444b2(0x154)](_0x5f01b6,0x3e8);while(_0x171aa7['fwnPs'](Date[_0x3444b2(0x10b)](),_0x1311a8)){await _0x171aa7['NCpWV'](sleep,_0x3baae1);const _0x3b8ef1=await fetch(WORKOS_TOKEN_URL,{'method':_0x171aa7[_0x3444b2(0x123)],'headers':{'Content-Type':_0x3444b2(0x152)},'body':new URLSearchParams({'client_id':_0x42424e,'device_code':_0x49298b,'grant_type':_0x3444b2(0x151)})});if(_0x3b8ef1['ok'])return _0x3b8ef1['json']();const _0xf494ed=await _0x3b8ef1[_0x3444b2(0x135)]();if(_0xf494ed[_0x3444b2(0x121)]==='authorization_pending')continue;if(_0xf494ed['error']===_0x3444b2(0x132)){_0x3baae1+=0x3e8;continue;}throw new Error(_0xf494ed[_0x3444b2(0x137)]||_0xf494ed[_0x3444b2(0x121)]||_0x3444b2(0x148));}throw new Error(_0x171aa7[_0x3444b2(0x129)]);}async function fetchUserProfile(_0x1dab79){const _0x113546=_0x20fb72,_0x4d01f9={'rKKcj':function(_0x1934c6){return _0x1934c6();}},_0xfd3099=_0x4d01f9[_0x113546(0x155)](getApiBaseUrl);try{const _0x5c579a=await fetch(_0xfd3099+_0x113546(0x112),{'method':_0x113546(0x13c),'headers':{'workos-token':_0x1dab79}});if(_0x5c579a['ok'])return _0x5c579a['json']();}catch{}return null;}function buildKeyName(_0x3fa0bd,_0x1da6b3){const _0x26bf9d=_0x20fb72,_0x3e57ad={'IdHwD':function(_0x538391,_0x235822){return _0x538391+_0x235822;}},_0xdecedc=_0x1da6b3[_0x26bf9d(0x143)](_0x55306e=>_0x55306e['name']===_0x3fa0bd||_0x55306e[_0x26bf9d(0x13a)]['startsWith'](_0x3fa0bd+'\x20('));if(_0xdecedc['length']===0x0)return _0x3fa0bd;return _0x3fa0bd+'\x20('+_0x3e57ad['IdHwD'](_0xdecedc[_0x26bf9d(0x14e)],0x1)+')';}export async function provisionApiKey(_0xbc7cf8){const _0x156f0b=_0x20fb72,_0x5dd4fa={'SdLcO':function(_0x394dc8){return _0x394dc8();},'DFLNo':_0x156f0b(0x11a),'mnRoK':function(_0x2261b1,_0x29d845){return _0x2261b1(_0x29d845);},'bEdaM':function(_0x2d261f,_0xee4bf0,_0x1db537){return _0x2d261f(_0xee4bf0,_0x1db537);}},_0x1a927e=_0x5dd4fa['SdLcO'](getApiBaseUrl),_0x5909b4={'Content-Type':_0x5dd4fa['DFLNo'],'workos-token':_0xbc7cf8},_0x547449=await _0x5dd4fa['mnRoK'](fetchUserProfile,_0xbc7cf8),_0x102f44=_0x547449?.[_0x156f0b(0x122)]||_0x547449?.[_0x156f0b(0x12f)]?.['split']('@')[0x0],_0x2f9034=_0x102f44?_0x102f44+'\x27s\x20CLI\x20Key':_0x156f0b(0x136);let _0x348098=[];try{const _0x153c91=await fetch(_0x1a927e+'/api-keys',{'method':'GET','headers':_0x5909b4});if(_0x153c91['ok']){const _0x54dbd1=await _0x153c91['json']();_0x348098=_0x54dbd1['apiKeys'];}}catch{}const _0x3e8135=_0x5dd4fa[_0x156f0b(0x10c)](buildKeyName,_0x2f9034,_0x348098),_0x4744bd=await _0x5dd4fa['bEdaM'](fetch,_0x1a927e+_0x156f0b(0x134),{'method':_0x156f0b(0x127),'headers':_0x5909b4,'body':JSON['stringify']({'name':_0x3e8135,'scope':'mcp:write'})});if(!_0x4744bd['ok']){const _0x1e6a65=await _0x4744bd[_0x156f0b(0x146)]();throw new Error('Failed\x20to\x20provision\x20API\x20key:\x20'+_0x4744bd['status']+'\x20'+_0x1e6a65);}const _0x406249=await _0x4744bd['json']();return _0x406249[_0x156f0b(0x133)][_0x156f0b(0x15b)];}export function openBrowser(_0x519b0c){const _0xc67fb4=_0x20fb72,_0x51fc62={'jUVqx':_0xc67fb4(0x140),'TWXIZ':_0xc67fb4(0x145),'mOKRy':function(_0x54dee8,_0x4c0120){return _0x54dee8===_0x4c0120;},'AByYz':'darwin','RuVDW':_0xc67fb4(0x118),'mYsws':_0xc67fb4(0x139),'NntfA':function(_0x7de27c,_0x1160df,_0x4f8390,_0x3538cf){return _0x7de27c(_0x1160df,_0x4f8390,_0x3538cf);}};try{if(process['platform']===_0xc67fb4(0x10e)){const _0x588600=spawn(_0x51fc62[_0xc67fb4(0x125)],['/c',_0x51fc62['TWXIZ'],'',_0x519b0c],{'detached':!![],'stdio':'ignore','windowsHide':!![]});_0x588600[_0xc67fb4(0x15c)]();return;}const _0x4ca39f=_0x51fc62['mOKRy'](process['platform'],_0x51fc62[_0xc67fb4(0x12c)])?_0x51fc62['RuVDW']:_0x51fc62['mYsws'],_0x289f51=_0x51fc62['NntfA'](spawn,_0x4ca39f,[_0x519b0c],{'detached':!![],'stdio':_0xc67fb4(0x12a)});_0x289f51['unref']();}catch{}}function decodeJwtPayload(_0x43ee95){const _0x3d2125=_0x20fb72,_0x2ba94e={'YWBKT':function(_0x335a73,_0x810987){return _0x335a73!==_0x810987;}},_0x639145=_0x43ee95['split']('.');if(_0x2ba94e['YWBKT'](_0x639145[_0x3d2125(0x14e)],0x3))throw new Error(_0x3d2125(0x115));const _0x3dc1da=Buffer['from'](_0x639145[0x1],_0x3d2125(0x14d))[_0x3d2125(0x13e)]('utf-8');return JSON['parse'](_0x3dc1da);}async function selfServeSignup(_0x57cc03){const _0x44be33=_0x20fb72,_0x385f55={'sxYja':function(_0x57fdd8){return _0x57fdd8();},'clVae':function(_0x3cf488,_0x1dee53,_0x5cbef2){return _0x3cf488(_0x1dee53,_0x5cbef2);},'jUNyY':'application/json'},_0x5c2ca3=_0x385f55['sxYja'](getApiBaseUrl),_0x5ba4a4=await _0x385f55['clVae'](fetch,_0x5c2ca3+'/organization/self-serve-signup',{'method':_0x44be33(0x127),'headers':{'Content-Type':_0x385f55['jUNyY'],'workos-token':_0x57cc03}});if(!_0x5ba4a4['ok']){const _0x4069d2=await _0x5ba4a4['text']();throw new Error(_0x44be33(0x10f)+_0x5ba4a4['status']+'\x20'+_0x4069d2);}return _0x5ba4a4['json']();}async function fetchMyMemberships(_0x5023c1){const _0x2bdfcc=_0x20fb72,_0x45c916={'cVppO':function(_0x46d85e){return _0x46d85e();}},_0x22e30f=_0x45c916['cVppO'](getApiBaseUrl),_0x4dc0ee=await fetch(_0x22e30f+'/organization/my-memberships',{'method':_0x2bdfcc(0x13c),'headers':{'workos-token':_0x5023c1}});if(!_0x4dc0ee['ok']){const _0x2dae36=await _0x4dc0ee['text']();throw new Error(_0x2bdfcc(0x14f)+_0x4dc0ee['status']+'\x20'+_0x2dae36);}const _0x5a6de2=await _0x4dc0ee[_0x2bdfcc(0x135)]();return _0x5a6de2[_0x2bdfcc(0x113)];}async function refreshTokenWithOrg(_0x5de08a,_0x47d43d,_0x4c20ad){const _0x180fc8=_0x20fb72,_0x199054={'FTXvh':function(_0x11e829,_0x1ae3ca,_0x37fd04){return _0x11e829(_0x1ae3ca,_0x37fd04);}},_0x3c5ffd=await _0x199054['FTXvh'](fetch,WORKOS_TOKEN_URL,{'method':_0x180fc8(0x127),'headers':{'Content-Type':_0x180fc8(0x152)},'body':new URLSearchParams({'client_id':_0x5de08a,'grant_type':'refresh_token','refresh_token':_0x47d43d,'organization_id':_0x4c20ad})});if(!_0x3c5ffd['ok']){const _0x1b1618=await _0x3c5ffd[_0x180fc8(0x146)]();throw new Error(_0x180fc8(0x15d)+_0x3c5ffd[_0x180fc8(0x126)]+'\x20'+_0x1b1618);}return _0x3c5ffd[_0x180fc8(0x135)]();}async function provisionCliToken(_0x2478e6){const _0x5904e3=_0x20fb72,_0x10c276={'gRDrx':function(_0x576768){return _0x576768();},'ICXGa':'application/json'},_0x3a9c6c=_0x10c276['gRDrx'](getApiBaseUrl),_0xe87de7=await fetch(_0x3a9c6c+'/cli-auth/token',{'method':'POST','headers':{'Content-Type':_0x10c276[_0x5904e3(0x156)],'workos-token':_0x2478e6}});if(!_0xe87de7['ok']){const _0x7c7ea=await _0xe87de7['text']();throw new Error(_0x5904e3(0x14a)+_0xe87de7['status']+'\x20'+_0x7c7ea);}return _0xe87de7['json']();}export async function runDeviceAuthFlow(){const _0x5ac959=_0x20fb72,_0x42b635={'lcITH':function(_0x2e2686){return _0x2e2686();},'NUeyk':'\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...','IsjCY':_0x5ac959(0x141),'miHSL':function(_0x177b3e,_0x46bc4f){return _0x177b3e(_0x46bc4f);},'TdrDG':function(_0x13e94f,_0xebd2fa,_0x2ebdff,_0x5d26b4,_0x423e2b){return _0x13e94f(_0xebd2fa,_0x2ebdff,_0x5d26b4,_0x423e2b);},'mteGf':function(_0x11a1e5,_0x499bd5){return _0x11a1e5(_0x499bd5);},'xLPrD':_0x5ac959(0x13d),'wkykE':'list','PAAIs':'selected','dMAEd':function(_0x3b67e2,_0x49ce77){return _0x3b67e2(_0x49ce77);},'SGqGk':function(_0x302a0a,_0x592664){return _0x302a0a(_0x592664);}},_0x4d8c01=_0x42b635['lcITH'](getCurrentEnvironment),_0x1fc234=ENVIRONMENT_CONFIGS[_0x4d8c01][_0x5ac959(0x14c)],_0x2662ac=await requestDeviceCode(_0x1fc234);console[_0x5ac959(0x130)](_0x42b635['NUeyk']),console[_0x5ac959(0x130)](_0x42b635['IsjCY']),_0x42b635[_0x5ac959(0x131)](openBrowser,_0x2662ac[_0x5ac959(0x120)]),console['log'](_0x5ac959(0x147)+_0x2662ac['verification_uri_complete']),console[_0x5ac959(0x130)]('Code:\x20'+_0x2662ac['user_code']+'\x0a'),process[_0x5ac959(0x144)][_0x5ac959(0x117)]('Waiting\x20for\x20authentication...');let _0x4c58f6=await _0x42b635['TdrDG'](pollForTokens,_0x1fc234,_0x2662ac[_0x5ac959(0x157)],_0x2662ac['interval'],_0x2662ac[_0x5ac959(0x142)]);console[_0x5ac959(0x130)]('\x20✓');const _0x97e1ff=_0x42b635['mteGf'](decodeJwtPayload,_0x4c58f6[_0x5ac959(0x13f)]);if(!_0x97e1ff['org_id']){const _0xc3b1b6=await _0x42b635[_0x5ac959(0x11b)](fetchMyMemberships,_0x4c58f6['access_token']);let _0x35d051;if(_0xc3b1b6['length']===0x0){process[_0x5ac959(0x144)]['write'](_0x5ac959(0x11d));const _0x29289a=await selfServeSignup(_0x4c58f6[_0x5ac959(0x13f)]);_0x35d051=_0x29289a[_0x5ac959(0x11f)],console['log']('\x20✓');}else{if(_0xc3b1b6[_0x5ac959(0x14e)]===0x1)_0x35d051=_0xc3b1b6[0x0]['organizationId'],console['log'](_0x5ac959(0x12d)+_0xc3b1b6[0x0][_0x5ac959(0x13a)]);else{const _0x324a3b=process[_0x5ac959(0x12b)][_0x5ac959(0x119)]&&process['stdout']['isTTY'];if(!_0x324a3b)throw new Error(_0x5ac959(0x124)+_0x42b635[_0x5ac959(0x111)]);const {selected:_0x2cbef2}=await _0xce763['prompt']([{'type':_0x42b635[_0x5ac959(0x10d)],'name':_0x42b635[_0x5ac959(0x159)],'message':'Select\x20an\x20organization:','choices':_0xc3b1b6[_0x5ac959(0x114)](_0x7f4889=>({'name':_0x7f4889['name'],'value':_0x7f4889['organizationId']}))}]);_0x35d051=_0x2cbef2;}}_0x4c58f6=await refreshTokenWithOrg(_0x1fc234,_0x4c58f6['refresh_token'],_0x35d051);}process[_0x5ac959(0x144)]['write']('Provisioning\x20CLI\x20token...');const _0x3209bc=await provisionCliToken(_0x4c58f6['access_token']);return console['log']('\x20✓'),await _0x42b635['dMAEd'](storeToken,_0x3209bc[_0x5ac959(0x15b)]),_0x4c58f6[_0x5ac959(0x128)]&&await _0x42b635['SGqGk'](storeRefreshToken,_0x4c58f6[_0x5ac959(0x128)]),_0x3209bc['token'];}function sleep(_0x543d87){return new Promise(_0x2bdfca=>setTimeout(_0x2bdfca,_0x543d87));}
@@ -1 +1 @@
1
- function _0x206f(_0x1b7777,_0x5bdc5b){_0x1b7777=_0x1b7777-0x184;const _0x10d7e2=_0x10d7();let _0x206f6e=_0x10d7e2[_0x1b7777];return _0x206f6e;}const _0x136913=_0x206f;function _0x10d7(){const _0x77497f=['1576702XRJYJh','129853rzceEA','playwright-cli','135jLujGy','RANGER_DISABLE_MCP','https://api.ranger.net','staging','5270670HRkzWn','otaWz','3177yGjyNX','974664CZXTSu','true','https://api.staging.ranger.net','3578025IWXSkY','mcp','7207676lsEmNV','env','aiProxyUrl','2564jlJAji','YEbzs','RANGER_CLI_ENV','RANGER_BYOK','https://ai-proxy-716115358910.us-central1.run.app','http://localhost:8080'];_0x10d7=function(){return _0x77497f;};return _0x10d7();}(function(_0x158a31,_0x524643){const _0x2b768f=_0x206f,_0x3fe753=_0x158a31();while(!![]){try{const _0x330758=-parseInt(_0x2b768f(0x191))/0x1+-parseInt(_0x2b768f(0x190))/0x2+parseInt(_0x2b768f(0x199))/0x3*(-parseInt(_0x2b768f(0x18a))/0x4)+parseInt(_0x2b768f(0x185))/0x5+parseInt(_0x2b768f(0x197))/0x6+-parseInt(_0x2b768f(0x187))/0x7+parseInt(_0x2b768f(0x19a))/0x8*(parseInt(_0x2b768f(0x193))/0x9);if(_0x330758===_0x524643)break;else _0x3fe753['push'](_0x3fe753['shift']());}catch(_0xa612fe){_0x3fe753['push'](_0x3fe753['shift']());}}}(_0x10d7,0xc20e6));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':_0x136913(0x195),'workosClientId':'client_01J9CBYM7M5ZETCF7G6614DXR2','aiProxyUrl':_0x136913(0x18e)},'staging':{'apiBaseUrl':_0x136913(0x184),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app'},'local':{'apiBaseUrl':_0x136913(0x18f),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':'http://localhost:8090'}};export const DEFAULT_ENVIRONMENT='prod';export function isValidEnvironment(_0x3fa694){const _0x119a15=_0x136913,_0x1a5528={'otaWz':_0x119a15(0x196),'YEbzs':function(_0x453b6b,_0x331508){return _0x453b6b===_0x331508;},'fgPFY':'local'};return _0x3fa694==='prod'||_0x3fa694===_0x1a5528[_0x119a15(0x198)]||_0x1a5528[_0x119a15(0x18b)](_0x3fa694,_0x1a5528['fgPFY']);}export function getCurrentEnvironment(){const _0x500a4f=_0x136913,_0x199fa9=process[_0x500a4f(0x188)][_0x500a4f(0x18c)];if(_0x199fa9&&isValidEnvironment(_0x199fa9))return _0x199fa9;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){return ENVIRONMENT_CONFIGS[getCurrentEnvironment()]['apiBaseUrl'];}export function getAiProxyUrl(){const _0x4540c5=_0x136913;return ENVIRONMENT_CONFIGS[getCurrentEnvironment()][_0x4540c5(0x189)];}export function isByokEnabled(){const _0x4d5ed1=_0x136913,_0x2b7484={'osPhu':function(_0x42e939,_0x3903f6){return _0x42e939===_0x3903f6;}};return _0x2b7484['osPhu'](process['env'][_0x4d5ed1(0x18d)],_0x4d5ed1(0x19b));}export function isMcpDisabled(){const _0x57d9c7=_0x136913,_0x5c19c0={'AnRju':_0x57d9c7(0x19b)};return process['env'][_0x57d9c7(0x194)]===_0x5c19c0['AnRju'];}export function getVerificationTransport(){const _0x27de1c=_0x136913,_0x260d61={'DUXVG':function(_0xb9e60d){return _0xb9e60d();},'JtYlh':_0x27de1c(0x186)};return _0x260d61['DUXVG'](isMcpDisabled)?_0x27de1c(0x192):_0x260d61['JtYlh'];}
1
+ const _0x29906f=_0x4514;(function(_0x2549ed,_0x2f77f8){const _0x3e9cd3=_0x4514,_0x459d47=_0x2549ed();while(!![]){try{const _0x4fdcc7=parseInt(_0x3e9cd3(0x196))/0x1+parseInt(_0x3e9cd3(0x193))/0x2*(parseInt(_0x3e9cd3(0x188))/0x3)+parseInt(_0x3e9cd3(0x194))/0x4*(-parseInt(_0x3e9cd3(0x190))/0x5)+parseInt(_0x3e9cd3(0x186))/0x6*(-parseInt(_0x3e9cd3(0x189))/0x7)+parseInt(_0x3e9cd3(0x18b))/0x8+parseInt(_0x3e9cd3(0x187))/0x9+-parseInt(_0x3e9cd3(0x18a))/0xa;if(_0x4fdcc7===_0x2f77f8)break;else _0x459d47['push'](_0x459d47['shift']());}catch(_0x53bbbf){_0x459d47['push'](_0x459d47['shift']());}}}(_0xe097,0x54184));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':_0x29906f(0x199),'workosClientId':_0x29906f(0x181),'aiProxyUrl':_0x29906f(0x18d)},'staging':{'apiBaseUrl':_0x29906f(0x18f),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app'},'local':{'apiBaseUrl':_0x29906f(0x191),'workosClientId':_0x29906f(0x185),'aiProxyUrl':'http://localhost:8090'}};export const DEFAULT_ENVIRONMENT='prod';export function isValidEnvironment(_0x3d8754){const _0x43d805=_0x29906f,_0x5e5396={'DWGNM':'prod','mcASm':function(_0x3da22c,_0x26bfce){return _0x3da22c===_0x26bfce;},'HqJLW':'local'};return _0x3d8754===_0x5e5396['DWGNM']||_0x5e5396['mcASm'](_0x3d8754,_0x43d805(0x18e))||_0x3d8754===_0x5e5396[_0x43d805(0x184)];}export function getCurrentEnvironment(){const _0x70404d={'KcuQU':function(_0x552da0,_0x26b15e){return _0x552da0(_0x26b15e);}},_0x459809=process['env']['RANGER_CLI_ENV'];if(_0x459809&&_0x70404d['KcuQU'](isValidEnvironment,_0x459809))return _0x459809;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){const _0x240595={'iUbfX':function(_0x1e8b61){return _0x1e8b61();}};return ENVIRONMENT_CONFIGS[_0x240595['iUbfX'](getCurrentEnvironment)]['apiBaseUrl'];}export function getAiProxyUrl(){const _0x2ac354=_0x29906f,_0x1cae7a={'pePfj':function(_0x307475){return _0x307475();}};return ENVIRONMENT_CONFIGS[_0x1cae7a['pePfj'](getCurrentEnvironment)][_0x2ac354(0x182)];}function _0xe097(){const _0x9212ce=['playwright-cli','HqJLW','client_01J9CBYM2DKWV9HM17D95Z540K','561354KCXzkR','1131354FUTeGc','1977QhzltG','21fPuekx','408330NOVShD','640440pERwxD','kyyyI','https://ai-proxy-716115358910.us-central1.run.app','staging','https://api.staging.ranger.net','2541790rwMbkE','http://localhost:8080','mcp','1234iUOmvx','4LARFfL','ECEFd','561956mHddxx','RANGER_BYOK','JprVV','https://api.ranger.net','client_01J9CBYM7M5ZETCF7G6614DXR2','aiProxyUrl'];_0xe097=function(){return _0x9212ce;};return _0xe097();}function _0x4514(_0x33b904,_0x4e1bcd){_0x33b904=_0x33b904-0x181;const _0xe0977b=_0xe097();let _0x45141a=_0xe0977b[_0x33b904];return _0x45141a;}export function isByokEnabled(){const _0x1852ee=_0x29906f,_0x54b939={'kyyyI':'true'};return process['env'][_0x1852ee(0x197)]===_0x54b939[_0x1852ee(0x18c)];}export function isMcpDisabled(){const _0x427a2e=_0x29906f,_0x2da7c9={'ECEFd':function(_0x4c5aef,_0x359992){return _0x4c5aef===_0x359992;}};return _0x2da7c9[_0x427a2e(0x195)](process['env']['RANGER_DISABLE_MCP'],'true');}export function getVerificationTransport(){const _0x3c7b0a=_0x29906f,_0x14fcee={'JprVV':function(_0x5bff62){return _0x5bff62();},'bltfF':_0x3c7b0a(0x192)};return _0x14fcee[_0x3c7b0a(0x198)](isMcpDisabled)?_0x3c7b0a(0x183):_0x14fcee['bltfF'];}