@ranger-testing/ranger-cli 2.1.5 → 2.1.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 (71) hide show
  1. package/README.md +1 -1
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/profileMessages.js +1 -1
  52. package/build/commands/utils/profileSetupBanner.js +1 -1
  53. package/build/commands/utils/rangerConfig.js +1 -1
  54. package/build/commands/utils/rangerRoot.js +1 -1
  55. package/build/commands/utils/reportGenerator.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/telemetry.js +1 -1
  62. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  63. package/build/commands/utils/userApi.js +1 -1
  64. package/build/commands/utils/version.js +1 -1
  65. package/build/commands/verifyFeature.js +1 -1
  66. package/build/commands/verifyInBrowser.js +1 -1
  67. package/build/skills/ranger/SKILL.md +25 -7
  68. package/build/skills/ranger/claude.md +7 -0
  69. package/build/skills/ranger/start.md +2 -2
  70. package/build/skills/ranger/verify.md +2 -1
  71. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x593bbe,_0x295cf3){const _0x5a9757=_0x419c,_0x84bad8=_0x593bbe();while(!![]){try{const _0x4cabfe=parseInt(_0x5a9757(0x9f))/0x1*(-parseInt(_0x5a9757(0x94))/0x2)+-parseInt(_0x5a9757(0xa7))/0x3*(-parseInt(_0x5a9757(0x91))/0x4)+parseInt(_0x5a9757(0x98))/0x5*(-parseInt(_0x5a9757(0x81))/0x6)+-parseInt(_0x5a9757(0x84))/0x7+parseInt(_0x5a9757(0xa5))/0x8+parseInt(_0x5a9757(0x80))/0x9+parseInt(_0x5a9757(0x7e))/0xa;if(_0x4cabfe===_0x295cf3)break;else _0x84bad8['push'](_0x84bad8['shift']());}catch(_0x1bcc96){_0x84bad8['push'](_0x84bad8['shift']());}}}(_0x1ad1,0xb19d9));function _0x1ad1(){const _0x45f0d5=['catch','OVdQX','5YvfdLp','settings.json','close','trackPhaseStart','FznJp','cBvhQ','7336072BZwbQV','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','2687730qoCzPa','gvtwr','QWMFU','pBuxH','\x20\x20\x20Update\x20your\x20authentication\x20as\x20needed.','log','\x20\x20\x20A\x20browser\x20will\x20open\x20with\x20your\x20existing\x20session\x20(if\x20any).','isTTY','baseUrl','JYPXk','Non-interactive\x20mode\x20detected.\x0aThe\x20\x22ranger\x20profile\x20update\x22\x20command\x20requires\x20interactive\x20browser\x20authentication\x20and\x20cannot\x20be\x20run\x20in\x20non-TTY\x20environments\x20(CI,\x20scripts,\x20Claude\x20Code).\x0aTo\x20update\x20profile\x20authentication:\x0a\x20\x201.\x20Run\x20\x22ranger\x20profile\x20update\x20<name>\x22\x20in\x20an\x20interactive\x20terminal\x0a\x20\x202.\x20Commit\x20the\x20updated\x20encrypted\x20auth\x20file\x20to\x20git','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','stdout','6291990MvhKmd','zfHMU','5236488jGZBGU','12qnBChe','✓\x20Auth\x20state\x20saved\x20to:\x20','✓\x20Updated\x20config:\x20','94605drJLGL','iAbeR','trackPhaseEnd','Gwfsl','sybSy','BRgUV','newPage','Profile\x20\x22','yzKzb','Config\x20not\x20found\x20at\x20','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','storageState','\x0a✅\x20Profile\x20\x22','4hXXrAi','browser','Osptq','460124pERxHF','stringify','string','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','2831530joLIWT','browser_auth','OzCVX','utf-8','\x22\x20authentication\x20updated'];_0x1ad1=function(){return _0x45f0d5;};return _0x1ad1();}import{writeFile,readFile,unlink}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{chromium}from'playwright';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir,isEnvCi}from'./utils/settings.js';function _0x419c(_0x545b53,_0x93597c){_0x545b53=_0x545b53-0x78;const _0x1ad1b1=_0x1ad1();let _0x419cef=_0x1ad1b1[_0x545b53];return _0x419cef;}import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';export async function updateEnv(_0x112307,_0x321e2d){const _0x135acd=_0x419c,_0x5cae73={'wAezJ':_0x135acd(0xa1),'OVdQX':function(_0x1b215b,_0x601007){return _0x1b215b(_0x601007);},'iAbeR':function(_0x2f1be8,_0x3b5fe0,_0x1a9a87){return _0x2f1be8(_0x3b5fe0,_0x1a9a87);},'zfHMU':'auth.json','BRgUV':_0x135acd(0x96),'OzCVX':function(_0x1c8910,_0x8d324d){return _0x1c8910(_0x8d324d);},'sybSy':_0x135acd(0xad),'pNuLv':_0x135acd(0xab),'QWMFU':'\x20\x20\x20When\x20you\x20are\x20done,\x20close\x20the\x20browser.\x0a','yzKzb':function(_0xfc6632,_0x4d12cc){return _0xfc6632||_0x4d12cc;},'FznJp':'about:blank','cBvhQ':_0x135acd(0x9b),'yCoQy':function(_0x45c23a,_0x509838,_0x1f5546){return _0x45c23a(_0x509838,_0x1f5546);},'JYPXk':function(_0x2e0c3f,_0x2b4b9a){return _0x2e0c3f(_0x2b4b9a);},'Gwfsl':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','pBuxH':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'},_0xe010dd=_0x5cae73[_0x135acd(0x9e)](getEnvDir,_0x112307),_0x3d7ffd=_0x5cae73['iAbeR'](join,_0xe010dd,_0x135acd(0xa0)),_0xe820d5=_0x5cae73[_0x135acd(0x85)](join,_0xe010dd,_0x5cae73[_0x135acd(0x7f)]),_0x3f5e50=_0xe820d5+'.enc',_0x1b2e4f=process['stdin']['isTTY']&&process[_0x135acd(0x7d)][_0x135acd(0x78)];if(!_0x1b2e4f)throw new Error(_0x135acd(0x7b));if(!_0x5cae73['OVdQX'](existsSync,_0xe010dd))throw new Error(_0x135acd(0x8b)+_0x112307+_0x135acd(0xa6)+_0x112307);if(!_0x5cae73[_0x135acd(0x9e)](existsSync,_0x3d7ffd))throw new Error(_0x135acd(0x8d)+_0x3d7ffd+_0x135acd(0x8e)+_0x112307);const _0x26fbe1=await _0x5cae73[_0x135acd(0x85)](readFile,_0x3d7ffd,'utf-8'),_0x17d820=JSON['parse'](_0x26fbe1),_0x1a2b14=typeof _0x17d820['baseUrl']===_0x5cae73[_0x135acd(0x89)]?_0x17d820[_0x135acd(0x79)]:undefined,_0x502745=existsSync(_0xe820d5),_0x453391=_0x5cae73[_0x135acd(0x9a)](isEnvCi,_0x112307);_0x321e2d?.[_0x135acd(0xa2)](_0x135acd(0x99)),console['log']('\x0a📋\x20Authentication\x20Update'),console['log'](_0x5cae73[_0x135acd(0x88)]),console[_0x135acd(0xac)](_0x5cae73['pNuLv']),console['log'](_0x5cae73[_0x135acd(0xa9)]);const _0x1d976c=await chromium['launch']({'headless':![]}),_0xe525a6=_0x502745?{'storageState':_0xe820d5}:{};let _0x54203a=null;try{_0x54203a=await _0x1d976c['newContext'](_0xe525a6),await _0x5cae73[_0x135acd(0x9e)](addProfileSetupBanner,_0x54203a);const _0x20f003=await _0x54203a[_0x135acd(0x8a)]();await _0x20f003['goto'](_0x5cae73[_0x135acd(0x8c)](_0x1a2b14,_0x5cae73[_0x135acd(0xa3)])),await new Promise(_0x3ad0ef=>{const _0x314539={'Osptq':'Saving\x20authentication\x20state...','gvtwr':function(_0x289ee6){return _0x289ee6();}};_0x20f003['on'](_0x5cae73['wAezJ'],async()=>{const _0x579f4e=_0x419c;try{console['log'](_0x314539[_0x579f4e(0x93)]),await _0x54203a?.[_0x579f4e(0x8f)]({'path':_0xe820d5}),_0x3ad0ef();}catch{_0x314539[_0x579f4e(0xa8)](_0x3ad0ef);}});});}finally{_0x54203a&&await _0x54203a[_0x135acd(0xa1)]()[_0x135acd(0x9d)](()=>{}),await _0x1d976c['close']()['catch'](()=>{});}if(_0x453391){const _0x5c3bf6=await readFile(_0xe820d5,_0x5cae73[_0x135acd(0xa4)]),_0x4c3706=await getToken();if(!_0x4c3706)console['error'](_0x135acd(0x7c)),console[_0x135acd(0xac)]('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0xe820d5);else{const _0x1dc696=_0x5cae73['yCoQy'](encrypt,_0x5c3bf6,_0x4c3706);await writeFile(_0x3f5e50,_0x1dc696),await _0x5cae73[_0x135acd(0x7a)](unlink,_0xe820d5),console['log'](_0x135acd(0x97)+_0x3f5e50),console['log'](_0x5cae73[_0x135acd(0x87)]),console[_0x135acd(0xac)](_0x5cae73[_0x135acd(0xaa)]);}}else console[_0x135acd(0xac)](_0x135acd(0x82)+_0xe820d5);_0x321e2d?.['trackPhaseEnd'](_0x135acd(0x99)),_0x321e2d?.['trackPhaseStart']('config_write'),_0x17d820['browser']=_0x17d820[_0x135acd(0x92)]||{},_0x17d820[_0x135acd(0x92)]['contextOptions']=_0x17d820[_0x135acd(0x92)]['contextOptions']||{},_0x17d820['browser']['contextOptions'][_0x135acd(0x8f)]=_0xe820d5,await _0x5cae73[_0x135acd(0x85)](writeFile,_0x3d7ffd,JSON[_0x135acd(0x95)](_0x17d820,null,0x2)),console[_0x135acd(0xac)](_0x135acd(0x83)+_0x3d7ffd),_0x321e2d?.[_0x135acd(0x86)]('config_write'),console['log'](_0x135acd(0x90)+_0x112307+_0x135acd(0x9c));}
1
+ (function(_0x4b32e0,_0x420233){const _0x294c0f=_0x4fab,_0x2d9e87=_0x4b32e0();while(!![]){try{const _0x18f8b4=-parseInt(_0x294c0f(0xf3))/0x1+-parseInt(_0x294c0f(0xcc))/0x2+parseInt(_0x294c0f(0xf0))/0x3+-parseInt(_0x294c0f(0xce))/0x4*(-parseInt(_0x294c0f(0xe8))/0x5)+-parseInt(_0x294c0f(0xf8))/0x6+-parseInt(_0x294c0f(0xec))/0x7*(-parseInt(_0x294c0f(0xd4))/0x8)+-parseInt(_0x294c0f(0xe3))/0x9;if(_0x18f8b4===_0x420233)break;else _0x2d9e87['push'](_0x2d9e87['shift']());}catch(_0x149356){_0x2d9e87['push'](_0x2d9e87['shift']());}}}(_0x22e4,0x50af9));import{writeFile,readFile,unlink}from'fs/promises';function _0x22e4(){const _0xb6917a=['319604EWuSrK','catch','136832ogOWsx','launch','config_write','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','settings.json','✓\x20Updated\x20config:\x20','4057104MqdAxL','storageState','auth.json','browser','log','trackPhaseEnd','bWcdm','trackPhaseStart','string','isTTY','tGUFs','baseUrl','WdvHj','\x20\x20\x20When\x20you\x20are\x20done,\x20close\x20the\x20browser.\x0a','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','2162817kymekY','rpHaT','hPuKw','parse','xAoRW','80NcRuDD','LbXmW','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','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','7BEarlw','hDkux','close','Config\x20not\x20found\x20at\x20','1295730ngKtSX','contextOptions','mdyPm','514872OfjADM','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','✓\x20Auth\x20state\x20saved\x20to:\x20','about:blank','browser_auth','1445400eMZuSA','.enc'];_0x22e4=function(){return _0xb6917a;};return _0x22e4();}import{join}from'path';import{existsSync}from'fs';import{chromium}from'playwright';import{encrypt}from'./utils/crypto.js';function _0x4fab(_0x12edca,_0x928a97){_0x12edca=_0x12edca-0xcc;const _0x22e41f=_0x22e4();let _0x4fabde=_0x22e41f[_0x12edca];return _0x4fabde;}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(_0x15ba61,_0x576b91){const _0x1b5cff=_0x4fab,_0x1e7713={'xAoRW':function(_0x2d66c8,_0x2dbcec){return _0x2d66c8(_0x2dbcec);},'hDkux':function(_0x51e498,_0x38e496,_0xa5d751){return _0x51e498(_0x38e496,_0xa5d751);},'TfBRm':_0x1b5cff(0xeb),'mdyPm':function(_0x3ef3a1,_0x531a52){return _0x3ef3a1(_0x531a52);},'LbXmW':function(_0x2f6975,_0x41f766,_0x21e088){return _0x2f6975(_0x41f766,_0x21e088);},'HHCPa':function(_0xef9aa5,_0x7b82ba){return _0xef9aa5===_0x7b82ba;},'hPuKw':'\x20\x20\x20Update\x20your\x20authentication\x20as\x20needed.','WdvHj':_0x1b5cff(0xf6),'bWcdm':'utf-8','JIRhw':function(_0xf504e5){return _0xf504e5();},'rpHaT':_0x1b5cff(0xf7),'tGUFs':'config_write'},_0x2c28d5=_0x1e7713[_0x1b5cff(0xe7)](getEnvDir,_0x15ba61),_0x411c01=_0x1e7713[_0x1b5cff(0xed)](join,_0x2c28d5,_0x1b5cff(0xd2)),_0x20f062=join(_0x2c28d5,_0x1b5cff(0xd6)),_0x5d3685=_0x20f062+_0x1b5cff(0xf9),_0xcbaba6=process['stdin'][_0x1b5cff(0xdd)]&&process['stdout']['isTTY'];if(!_0xcbaba6)throw new Error(_0x1e7713['TfBRm']);if(!_0x1e7713[_0x1b5cff(0xf2)](existsSync,_0x2c28d5))throw new Error('Profile\x20\x22'+_0x15ba61+_0x1b5cff(0xd1)+_0x15ba61);if(!_0x1e7713['xAoRW'](existsSync,_0x411c01))throw new Error(_0x1b5cff(0xef)+_0x411c01+_0x1b5cff(0xea)+_0x15ba61);const _0x340f71=await _0x1e7713[_0x1b5cff(0xe9)](readFile,_0x411c01,'utf-8'),_0x32f4b3=JSON[_0x1b5cff(0xe6)](_0x340f71),_0x43f6f8=resolveEnvVars(_0x32f4b3),_0x599bb9=_0x1e7713['HHCPa'](typeof _0x43f6f8[_0x1b5cff(0xdf)],_0x1b5cff(0xdc))?_0x43f6f8['baseUrl']:undefined,_0x3104bc=existsSync(_0x20f062),_0xae4291=_0x1e7713['mdyPm'](isEnvCi,_0x15ba61);_0x576b91?.[_0x1b5cff(0xdb)]('browser_auth'),console[_0x1b5cff(0xd8)]('\x0a📋\x20Authentication\x20Update'),console[_0x1b5cff(0xd8)]('\x20\x20\x20A\x20browser\x20will\x20open\x20with\x20your\x20existing\x20session\x20(if\x20any).'),console['log'](_0x1e7713[_0x1b5cff(0xe5)]),console[_0x1b5cff(0xd8)](_0x1b5cff(0xe1));const {launchOptions:_0x2a8bc1,contextOptions:_0x383d33}=buildBrowserOptionsFromSettings(_0x43f6f8,{'headless':![],'storageStatePath':_0x3104bc?_0x20f062:undefined}),_0x5a298f=await chromium[_0x1b5cff(0xcf)](_0x2a8bc1);let _0x4dfade=null;try{_0x4dfade=await _0x5a298f['newContext'](_0x383d33),await addProfileSetupBanner(_0x4dfade);const _0x3e6c71=await _0x4dfade['newPage']();await _0x3e6c71['goto'](_0x599bb9||_0x1e7713[_0x1b5cff(0xe0)]),await new Promise(_0x3f939f=>{const _0x2fa601=_0x1b5cff;_0x3e6c71['on'](_0x2fa601(0xee),async()=>{try{console['log']('Saving\x20authentication\x20state...'),await _0x4dfade?.['storageState']({'path':_0x20f062}),_0x3f939f();}catch{_0x3f939f();}});});}finally{_0x4dfade&&await _0x4dfade['close']()[_0x1b5cff(0xcd)](()=>{}),await _0x5a298f[_0x1b5cff(0xee)]()['catch'](()=>{});}if(_0xae4291){const _0x16464b=await readFile(_0x20f062,_0x1e7713[_0x1b5cff(0xda)]),_0x3430fd=await _0x1e7713['JIRhw'](getToken);if(!_0x3430fd)console['error']('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),console['log'](_0x1b5cff(0xf5)+_0x20f062);else{const _0x516229=encrypt(_0x16464b,_0x3430fd);await writeFile(_0x5d3685,_0x516229),await unlink(_0x20f062),console[_0x1b5cff(0xd8)]('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x5d3685),console[_0x1b5cff(0xd8)](_0x1b5cff(0xf4)),console['log'](_0x1b5cff(0xe2));}}else console['log'](_0x1b5cff(0xf5)+_0x20f062);_0x576b91?.['trackPhaseEnd'](_0x1e7713[_0x1b5cff(0xe4)]),_0x576b91?.['trackPhaseStart'](_0x1b5cff(0xd0)),_0x32f4b3['browser']=_0x32f4b3['browser']||{},_0x32f4b3[_0x1b5cff(0xd7)][_0x1b5cff(0xf1)]=_0x32f4b3['browser']['contextOptions']||{},_0x32f4b3['browser'][_0x1b5cff(0xf1)][_0x1b5cff(0xd5)]=_0x20f062,await writeFile(_0x411c01,JSON['stringify'](_0x32f4b3,null,0x2)),console[_0x1b5cff(0xd8)](_0x1b5cff(0xd3)+_0x411c01),_0x576b91?.[_0x1b5cff(0xd9)](_0x1e7713[_0x1b5cff(0xde)]),console['log']('\x0a✅\x20Profile\x20\x22'+_0x15ba61+'\x22\x20authentication\x20updated');}
@@ -1 +1 @@
1
- function _0x31a1(_0x340d97,_0x5b688d){_0x340d97=_0x340d97-0x1be;const _0x3e4b7c=_0x3e4b();let _0x31a1d5=_0x3e4b7c[_0x340d97];return _0x31a1d5;}(function(_0x1e58aa,_0x2becb9){const _0x242e1c=_0x31a1,_0x3a968b=_0x1e58aa();while(!![]){try{const _0x18d150=-parseInt(_0x242e1c(0x1be))/0x1*(parseInt(_0x242e1c(0x1c6))/0x2)+parseInt(_0x242e1c(0x1c7))/0x3+-parseInt(_0x242e1c(0x1c3))/0x4*(-parseInt(_0x242e1c(0x1c2))/0x5)+-parseInt(_0x242e1c(0x1bf))/0x6+-parseInt(_0x242e1c(0x1c0))/0x7+parseInt(_0x242e1c(0x1c8))/0x8*(-parseInt(_0x242e1c(0x1c9))/0x9)+parseInt(_0x242e1c(0x1c5))/0xa;if(_0x18d150===_0x2becb9)break;else _0x3a968b['push'](_0x3a968b['shift']());}catch(_0x4bdee8){_0x3a968b['push'](_0x3a968b['shift']());}}}(_0x3e4b,0x93bc9));import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';function _0x3e4b(){const _0x3b3ea3=['settings.json','1537mODSiZ','5003664IwraNH','3905300IRpyji','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','5fylFxe','2091108xLTIyR','ChsAR','21790470jayOIx','76EIYkra','465822RCHDlD','6413752RHowpA','9wCqAYB'];_0x3e4b=function(){return _0x3b3ea3;};return _0x3e4b();}import{writeActiveProfileName}from'./utils/activeProfile.js';export async function useEnv(_0x2c2085){const _0x5c2d13=_0x31a1,_0x530acb={'zhzCk':function(_0x4d37f2,_0x3eb70f,_0x3feb58){return _0x4d37f2(_0x3eb70f,_0x3feb58);},'HDyKp':_0x5c2d13(0x1ca),'fgyYj':function(_0x5e1a05,_0x132bfa){return _0x5e1a05(_0x132bfa);},'ChsAR':function(_0x3ca8e2,_0x39865e){return _0x3ca8e2(_0x39865e);}},_0x25affe=getEnvDir(_0x2c2085),_0x6fc07e=_0x530acb['zhzCk'](join,_0x25affe,_0x530acb['HDyKp']);if(!_0x530acb['fgyYj'](existsSync,_0x25affe))throw new Error('Profile\x20\x22'+_0x2c2085+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x2c2085);if(!_0x530acb[_0x5c2d13(0x1c4)](existsSync,_0x6fc07e))throw new Error('Config\x20not\x20found\x20at\x20'+_0x6fc07e+_0x5c2d13(0x1c1)+_0x2c2085);await writeActiveProfileName(_0x2c2085),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x2c2085+'\x22');}
1
+ function _0x3e2c(){const _0x44f9f8=['129613jYfMRA','settings.json','59035cPSRry','Config\x20not\x20found\x20at\x20','28EQMtXH','9258BoghRO','Profile\x20\x22','24MCncDc','924372qiRVMG','465262rYsrqY','90564IaZUhz','90eTxbuw','xHfWG','494uSetLA','12FHgLak','687356VHKYAF','6rvhDtb'];_0x3e2c=function(){return _0x44f9f8;};return _0x3e2c();}(function(_0x50fec6,_0x260004){const _0x1bbbe8=_0x3156,_0x34175e=_0x50fec6();while(!![]){try{const _0x1945c7=parseInt(_0x1bbbe8(0x185))/0x1*(parseInt(_0x1bbbe8(0x184))/0x2)+parseInt(_0x1bbbe8(0x17f))/0x3*(parseInt(_0x1bbbe8(0x17e))/0x4)+parseInt(_0x1bbbe8(0x182))/0x5*(-parseInt(_0x1bbbe8(0x18e))/0x6)+-parseInt(_0x1bbbe8(0x189))/0x7*(parseInt(_0x1bbbe8(0x187))/0x8)+parseInt(_0x1bbbe8(0x188))/0x9+parseInt(_0x1bbbe8(0x18b))/0xa*(parseInt(_0x1bbbe8(0x180))/0xb)+parseInt(_0x1bbbe8(0x18a))/0xc*(-parseInt(_0x1bbbe8(0x18d))/0xd);if(_0x1945c7===_0x260004)break;else _0x34175e['push'](_0x34175e['shift']());}catch(_0xe800e0){_0x34175e['push'](_0x34175e['shift']());}}}(_0x3e2c,0x2a0d7));import{join}from'path';import{existsSync}from'fs';function _0x3156(_0x5d9224,_0x206437){_0x5d9224=_0x5d9224-0x17e;const _0x3e2ccf=_0x3e2c();let _0x3156b3=_0x3e2ccf[_0x5d9224];return _0x3156b3;}import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';export async function useEnv(_0x5759d0){const _0x58a39c=_0x3156,_0x5734ac={'mBygv':function(_0x710aa7,_0x180146,_0x40dd40){return _0x710aa7(_0x180146,_0x40dd40);},'xHfWG':function(_0x2f073b,_0x1234f9){return _0x2f073b(_0x1234f9);}},_0x19bfc1=getEnvDir(_0x5759d0),_0x56a0dd=_0x5734ac['mBygv'](join,_0x19bfc1,_0x58a39c(0x181));if(!_0x5734ac[_0x58a39c(0x18c)](existsSync,_0x19bfc1))throw new Error(_0x58a39c(0x186)+_0x5759d0+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x5759d0);if(!_0x5734ac[_0x58a39c(0x18c)](existsSync,_0x56a0dd))throw new Error(_0x58a39c(0x183)+_0x56a0dd+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x5759d0);await writeActiveProfileName(_0x5759d0),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x5759d0+'\x22');}
@@ -1 +1 @@
1
- const _0x7b20df=_0x1bab;(function(_0x26b74f,_0x2b758d){const _0x2cdcb5=_0x1bab,_0x5072d9=_0x26b74f();while(!![]){try{const _0x8c1fb4=parseInt(_0x2cdcb5(0xbe))/0x1+-parseInt(_0x2cdcb5(0xac))/0x2*(parseInt(_0x2cdcb5(0xba))/0x3)+parseInt(_0x2cdcb5(0xae))/0x4*(parseInt(_0x2cdcb5(0xb8))/0x5)+parseInt(_0x2cdcb5(0xbb))/0x6*(parseInt(_0x2cdcb5(0xad))/0x7)+-parseInt(_0x2cdcb5(0xab))/0x8+parseInt(_0x2cdcb5(0xb4))/0x9+-parseInt(_0x2cdcb5(0xbd))/0xa*(-parseInt(_0x2cdcb5(0xb6))/0xb);if(_0x8c1fb4===_0x2b758d)break;else _0x5072d9['push'](_0x5072d9['shift']());}catch(_0x1a8436){_0x5072d9['push'](_0x5072d9['shift']());}}}(_0x3896,0xf3379));import{existsSync}from'fs';function _0x3896(){const _0x1076a7=['DNPBz','11EPfyZZ','vgQGH','185OlThFg','SydnG','2084463xPQPCg','6228SSiINH','active-profile.txt','2840590qDwrNF','933114qJEOqM','trim','Ibwfr','15557992oUQiEW','4XmpCSL','7028XKZTah','16444hUfGkJ','utf-8','ljIap','DhKcI','WLNIS','faeBX','17272584gWNFJO'];_0x3896=function(){return _0x1076a7;};return _0x3896();}import{mkdir,readFile,rename,unlink,writeFile}from'fs/promises';import{join}from'path';function _0x1bab(_0xce809c,_0x57be00){_0xce809c=_0xce809c-0xaa;const _0x3896fe=_0x3896();let _0x1bab5e=_0x3896fe[_0xce809c];return _0x1bab5e;}import{getRangerDir}from'./rangerRoot.js';const ACTIVE_PROFILE_FILE=_0x7b20df(0xbc),LEGACY_ACTIVE_ENV_FILE='active-env.txt';function getActiveProfilePath(){const _0x2479e2=_0x7b20df,_0x3f43d5={'WLNIS':function(_0x234b84,_0x2e3d6b,_0x562927){return _0x234b84(_0x2e3d6b,_0x562927);}};return _0x3f43d5[_0x2479e2(0xb2)](join,getRangerDir(),ACTIVE_PROFILE_FILE);}function getLegacyActiveEnvPath(){const _0xb9099=_0x7b20df,_0x4ce2d1={'ljIap':function(_0x70d531,_0x516c5d,_0x813132){return _0x70d531(_0x516c5d,_0x813132);},'HZBLB':function(_0x5f1a04){return _0x5f1a04();}};return _0x4ce2d1[_0xb9099(0xb0)](join,_0x4ce2d1['HZBLB'](getRangerDir),LEGACY_ACTIVE_ENV_FILE);}async function migrateLegacyActiveEnv(){const _0x3ef962=_0x7b20df,_0x1343aa={'aYxVp':'utf-8','faeBX':function(_0x6516d8){return _0x6516d8();},'DhKcI':function(_0x39293c,_0x45b401,_0x1f6d89){return _0x39293c(_0x45b401,_0x1f6d89);}},_0x9f5579=getLegacyActiveEnvPath();if(!existsSync(_0x9f5579))return null;let _0x16b642=null;try{_0x16b642=(await readFile(_0x9f5579,_0x1343aa['aYxVp']))[_0x3ef962(0xbf)]()||null;}catch{_0x16b642=null;}if(!_0x16b642)return null;const _0x5ee4e2=_0x1343aa[_0x3ef962(0xb3)](getActiveProfilePath);try{await rename(_0x9f5579,_0x5ee4e2);}catch{try{const _0x38198b=getRangerDir();await _0x1343aa[_0x3ef962(0xb1)](mkdir,_0x38198b,{'recursive':!![]}),await writeFile(_0x5ee4e2,_0x16b642,_0x1343aa['aYxVp']),await unlink(_0x9f5579);}catch{}}return _0x16b642;}export async function readActiveProfileName(){const _0x323734=_0x7b20df,_0x35628c={'bOIuy':function(_0x533274){return _0x533274();},'tKtEN':function(_0x33cb3c,_0xa42ab7,_0x1c5a8e){return _0x33cb3c(_0xa42ab7,_0x1c5a8e);}},_0xfdacc0=_0x35628c['bOIuy'](getActiveProfilePath);if(existsSync(_0xfdacc0))try{return(await _0x35628c['tKtEN'](readFile,_0xfdacc0,_0x323734(0xaf)))['trim']()||null;}catch{return null;}return await migrateLegacyActiveEnv();}export async function writeActiveProfileName(_0x357d1a){const _0x3e4952=_0x7b20df,_0x49bee3={'vgQGH':function(_0x159c47){return _0x159c47();},'Ibwfr':function(_0x1d074c,_0x19c8e9,_0x2f58af){return _0x1d074c(_0x19c8e9,_0x2f58af);},'SydnG':function(_0x543d2c,_0x1a49cd,_0x409145,_0x55a1fb){return _0x543d2c(_0x1a49cd,_0x409145,_0x55a1fb);},'DNPBz':function(_0x142b27,_0x185bf5){return _0x142b27(_0x185bf5);}},_0x33769d=_0x49bee3[_0x3e4952(0xb7)](getRangerDir);await _0x49bee3[_0x3e4952(0xaa)](mkdir,_0x33769d,{'recursive':!![]});const _0x3a3c33=_0x49bee3[_0x3e4952(0xb7)](getActiveProfilePath);await _0x49bee3[_0x3e4952(0xb9)](writeFile,_0x3a3c33,_0x357d1a,'utf-8');const _0x46dda6=getLegacyActiveEnvPath();if(_0x49bee3[_0x3e4952(0xb5)](existsSync,_0x46dda6))try{await unlink(_0x46dda6);}catch{}}export async function migrateActiveProfileFile(){const _0x1d4947={'fyJIg':function(_0x4e8e27){return _0x4e8e27();}},_0x22244b=await _0x1d4947['fyJIg'](migrateLegacyActiveEnv);return _0x22244b!==null;}
1
+ const _0x23965a=_0x16d9;(function(_0x25243b,_0x458a7e){const _0x4eb2aa=_0x16d9,_0x383da4=_0x25243b();while(!![]){try{const _0x88bb0a=parseInt(_0x4eb2aa(0x86))/0x1*(parseInt(_0x4eb2aa(0x97))/0x2)+parseInt(_0x4eb2aa(0x87))/0x3+parseInt(_0x4eb2aa(0x92))/0x4*(parseInt(_0x4eb2aa(0x8f))/0x5)+parseInt(_0x4eb2aa(0x93))/0x6*(-parseInt(_0x4eb2aa(0x8e))/0x7)+parseInt(_0x4eb2aa(0x8a))/0x8+-parseInt(_0x4eb2aa(0x8d))/0x9+-parseInt(_0x4eb2aa(0x90))/0xa;if(_0x88bb0a===_0x458a7e)break;else _0x383da4['push'](_0x383da4['shift']());}catch(_0x4144f4){_0x383da4['push'](_0x383da4['shift']());}}}(_0x187c,0x97178));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=_0x23965a(0x88),LEGACY_ACTIVE_ENV_FILE='active-env.txt';function _0x16d9(_0x1621db,_0x268d7f){_0x1621db=_0x1621db-0x86;const _0x187c64=_0x187c();let _0x16d967=_0x187c64[_0x1621db];return _0x16d967;}function getActiveProfilePath(){const _0xa4b5ab={'AZvYa':function(_0x30b0fd){return _0x30b0fd();}};return join(_0xa4b5ab['AZvYa'](getRangerDir),ACTIVE_PROFILE_FILE);}function getLegacyActiveEnvPath(){const _0x51769d=_0x23965a,_0x51d3c3={'UvYzu':function(_0x16dd6a){return _0x16dd6a();}};return join(_0x51d3c3[_0x51769d(0x95)](getRangerDir),LEGACY_ACTIVE_ENV_FILE);}async function migrateLegacyActiveEnv(){const _0x2740ab=_0x23965a,_0x4d1091={'joltn':function(_0x1029f0){return _0x1029f0();},'ZOsDp':function(_0xdca0ef,_0x191ac3){return _0xdca0ef(_0x191ac3);},'bvVxr':_0x2740ab(0x8b),'zJhsa':function(_0x51d132,_0x5184c2,_0x2b4d70){return _0x51d132(_0x5184c2,_0x2b4d70);},'qZeie':function(_0x8d9958,_0x1d3e1b,_0x442bbd,_0x1ed588){return _0x8d9958(_0x1d3e1b,_0x442bbd,_0x1ed588);}},_0x22c34f=_0x4d1091['joltn'](getLegacyActiveEnvPath);if(!_0x4d1091['ZOsDp'](existsSync,_0x22c34f))return null;let _0x20e0a3=null;try{_0x20e0a3=(await readFile(_0x22c34f,_0x4d1091[_0x2740ab(0x98)]))[_0x2740ab(0x91)]()||null;}catch{_0x20e0a3=null;}if(!_0x20e0a3)return null;const _0x57a275=getActiveProfilePath();try{await rename(_0x22c34f,_0x57a275);}catch{try{const _0x3422b3=_0x4d1091['joltn'](getRangerDir);await _0x4d1091[_0x2740ab(0x94)](mkdir,_0x3422b3,{'recursive':!![]}),await _0x4d1091['qZeie'](writeFile,_0x57a275,_0x20e0a3,_0x4d1091['bvVxr']),await _0x4d1091[_0x2740ab(0x96)](unlink,_0x22c34f);}catch{}}return _0x20e0a3;}export async function readActiveProfileName(){const _0x54cd8e=_0x23965a,_0x322d12={'DCXWB':function(_0x162a5e){return _0x162a5e();},'hAAEy':function(_0x1568be,_0x39b124){return _0x1568be(_0x39b124);}},_0x7b87a3=_0x322d12['DCXWB'](getActiveProfilePath);if(_0x322d12['hAAEy'](existsSync,_0x7b87a3))try{return(await readFile(_0x7b87a3,_0x54cd8e(0x8b)))[_0x54cd8e(0x91)]()||null;}catch{return null;}return await _0x322d12[_0x54cd8e(0x89)](migrateLegacyActiveEnv);}export async function writeActiveProfileName(_0xff2dfe){const _0x3fd53c=_0x23965a,_0x225095={'fAxXg':function(_0x403dc5){return _0x403dc5();},'qNdDJ':_0x3fd53c(0x8b),'XbyPe':function(_0x20043e){return _0x20043e();},'kLmcn':function(_0x4e31ad,_0x27e4a0){return _0x4e31ad(_0x27e4a0);}},_0x5284a4=_0x225095[_0x3fd53c(0x8c)](getRangerDir);await mkdir(_0x5284a4,{'recursive':!![]});const _0x96f22f=getActiveProfilePath();await writeFile(_0x96f22f,_0xff2dfe,_0x225095['qNdDJ']);const _0x7fc3e=_0x225095['XbyPe'](getLegacyActiveEnvPath);if(_0x225095[_0x3fd53c(0x99)](existsSync,_0x7fc3e))try{await unlink(_0x7fc3e);}catch{}}export async function migrateActiveProfileFile(){const _0x365a51={'GdQnB':function(_0x304536){return _0x304536();}},_0x315c63=await _0x365a51['GdQnB'](migrateLegacyActiveEnv);return _0x315c63!==null;}function _0x187c(){const _0x4d626e=['3772864tChEKA','utf-8','fAxXg','4210596fJVgbT','4837pRSPdI','1606210sZtAmm','954620AvfvOB','trim','4kUylEP','7494VAUHli','zJhsa','UvYzu','ZOsDp','19048JGJTnJ','bvVxr','kLmcn','110qsdhfB','614241tGXpWS','active-profile.txt','DCXWB'];_0x187c=function(){return _0x4d626e;};return _0x187c();}
@@ -1 +1 @@
1
- (function(_0x299fa4,_0x236651){const _0x1e984c=_0x455b,_0x46d021=_0x299fa4();while(!![]){try{const _0x360d38=parseInt(_0x1e984c(0x12f))/0x1+-parseInt(_0x1e984c(0x12e))/0x2+parseInt(_0x1e984c(0x109))/0x3+-parseInt(_0x1e984c(0xd2))/0x4*(parseInt(_0x1e984c(0xfd))/0x5)+parseInt(_0x1e984c(0x116))/0x6+parseInt(_0x1e984c(0x114))/0x7*(-parseInt(_0x1e984c(0x139))/0x8)+parseInt(_0x1e984c(0x105))/0x9;if(_0x360d38===_0x236651)break;else _0x46d021['push'](_0x46d021['shift']());}catch(_0x3358e8){_0x46d021['push'](_0x46d021['shift']());}}}(_0x3c17,0xcf4d9));const _0xd8841c=(function(){const _0x5e6633=_0x455b,_0x533123={'HLRUb':function(_0x4be49a,_0x238044){return _0x4be49a!==_0x238044;},'QpvbB':_0x5e6633(0xdb),'EdPdB':_0x5e6633(0xeb)};let _0x25155b=!![];return function(_0x4dc452,_0x5a591b){const _0x30bf0e=_0x5e6633,_0x15badd={'NAXXs':function(_0x63e4fc,_0x3e09da){const _0x1be0a8=_0x455b;return _0x533123[_0x1be0a8(0x107)](_0x63e4fc,_0x3e09da);},'PDoVW':_0x533123[_0x30bf0e(0x113)],'ErBdN':_0x533123['EdPdB']},_0x311c6b=_0x25155b?function(){const _0x3c7b3e=_0x30bf0e;if(_0x5a591b){if(_0x15badd['NAXXs'](_0x15badd[_0x3c7b3e(0xe2)],_0x15badd[_0x3c7b3e(0x11a)])){const _0x219ac0=_0x5a591b[_0x3c7b3e(0x127)](_0x4dc452,arguments);return _0x5a591b=null,_0x219ac0;}else{const _0x41f6b4=_0x28404c[_0x3c7b3e(0x127)](_0x3340ed,arguments);return _0x54d172=null,_0x41f6b4;}}}:function(){};return _0x25155b=![],_0x311c6b;};}()),_0x376775=_0xd8841c(this,function(){const _0x2a69e6=_0x455b,_0x488892={'GCNVC':'(((.+)+)+)+$'};return _0x376775[_0x2a69e6(0xce)]()[_0x2a69e6(0xd6)](_0x488892[_0x2a69e6(0x136)])[_0x2a69e6(0xce)]()[_0x2a69e6(0xf8)](_0x376775)[_0x2a69e6(0xd6)](_0x488892['GCNVC']);});_0x376775();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x3c17(){const _0x495e23=['s21VA0q','ruHWwge','mtCYtgDeAvHO','C2vZC2LVBLrVA2vU','Dgv4Da','zgLNzxn0','C2vHCMnO','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','tuTMvLK','yxbWBgLJyxrPB24VANnVBMW','y2HLy2TZDw0','BMvgyu8','C3rYAw5NAwz5','DuDLCMu','ChrqteO','ALrVt3K','yMfZzty0','DKLbwK0','uerVvLC','vujkvMm','C2L6zq','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','r0vu','C01Iv2W','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','ALPZvg8','CfbRzKS','wvvjuui','sxvKt2e','vuftzLm','DwjXreu','tg9XuwS','DgfZAW','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','CM1gr08','teHvEui','uMnfzxO','Dhblrhm','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','DxbKyxrL','y29UC3rYDwn0B3i','v0vftMW','AMjvz0m','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','AeHxq2W','ntCXnZvVAxboBuK','DxbKyxrLqNjVD3nLCLnLC3nPB24','A0Turwu','AK5yvgK','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','vKvVz2m','AgDhr2e','z09xrhu','nZaYmJiWnxferw5XBq','rwnhrK4','seXsvwi','q0zVuNy','mJq3nJeWngLxAgPLAG','q09mtgG','DgHWEhy','l2fZC2v0CW','DK5XCxq','yxbWBgLJyxrPB24VEMLW','BwTiwNu','BKrMB3y','tMTrvKS','CK1AAvC','uxb2yKi','ntK5mZa1B1rXzeDI','ANnVBG','mZu4mZqXmgPlsu1jAa','kcGOlISPkYKRksSK','Cvrqu1m','EKnxB2S','rxjcze4','svj2zvG','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','Eu1fyu0','v1PYqKi','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','ufjRsw0','yxbWBgLJyxrPB24VANnVBG','zw52AxjVBM1LBNroyw1L','Cvftv3q','qLvruw0','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','shfxu1y','yxbWBhK','ufvu','se9fzey','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','qwv5zeW','EK9fBhe','l3vWBg9Hzc11CMXZ','mZm0nZGZogPnzfzPAq','mta2odCZneH0Dg9Kva','qMvHCMvYia','BgPAB1a','tLPvqNG','thzyvw4','twf1shO','l3n0zxbZlW','r0novKm','t1HJEhi','Cwvdzwu','mJrYwwLJsNe','y2HLy2TSAxn0sxrLBuLK','Bwv0ywrHDge','ue9tva','quTjBey','Aw1Hz2uVCg5N','vwrfyLe','l3n0zxbZ','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','AeHWre8','r1riCxO','ANH3rwq','vfnXq2y','DfLnDKi','DfbVA24','ANHutfG','EhDpDuS','zMvHDhvYzuLK','Bwq1','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','BgvUz3rO','q3zPy0y','vKnWywu','ALjlrxK','rMX2wxm','Dg9tDhjPBMC','v1bSAxm'];_0x3c17=function(){return _0x495e23;};return _0x3c17();}import{createHash}from'crypto';import{withRetry}from'./retry.js';function _0x455b(_0x4a1b95,_0x132bfc){_0x4a1b95=_0x4a1b95-0xc9;const _0x22ee0f=_0x3c17();let _0x376775=_0x22ee0f[_0x4a1b95];if(_0x455b['uCNmVR']===undefined){var _0xd8841c=function(_0x1d9609){const _0x4e7d05='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2ae61e='',_0xc8ac3f='',_0x15609e=_0x2ae61e+_0xd8841c;for(let _0x39794a=0x0,_0x476d9a,_0x12ad33,_0x327681=0x0;_0x12ad33=_0x1d9609['charAt'](_0x327681++);~_0x12ad33&&(_0x476d9a=_0x39794a%0x4?_0x476d9a*0x40+_0x12ad33:_0x12ad33,_0x39794a++%0x4)?_0x2ae61e+=_0x15609e['charCodeAt'](_0x327681+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x476d9a>>(-0x2*_0x39794a&0x6)):_0x39794a:0x0){_0x12ad33=_0x4e7d05['indexOf'](_0x12ad33);}for(let _0x538a13=0x0,_0x2bebfb=_0x2ae61e['length'];_0x538a13<_0x2bebfb;_0x538a13++){_0xc8ac3f+='%'+('00'+_0x2ae61e['charCodeAt'](_0x538a13)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc8ac3f);};_0x455b['OeaonW']=_0xd8841c,_0x455b['bcARUO']={},_0x455b['uCNmVR']=!![];}const _0x3c17f2=_0x22ee0f[0x0],_0x455b60=_0x4a1b95+_0x3c17f2,_0x41c758=_0x455b['bcARUO'][_0x455b60];if(!_0x41c758){const _0x6f6d8=function(_0xec7c8f){this['tsMoPY']=_0xec7c8f,this['YDflMT']=[0x1,0x0,0x0],this['xdYmGS']=function(){return'newState';},this['meIGKU']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['rVKuHG']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x6f6d8['prototype']['IhUWtL']=function(){const _0x4266c9=new RegExp(this['meIGKU']+this['rVKuHG']),_0xb73aab=_0x4266c9['test'](this['xdYmGS']['toString']())?--this['YDflMT'][0x1]:--this['YDflMT'][0x0];return this['sLzjoF'](_0xb73aab);},_0x6f6d8['prototype']['sLzjoF']=function(_0xc6e14d){if(!Boolean(~_0xc6e14d))return _0xc6e14d;return this['stTUvC'](this['tsMoPY']);},_0x6f6d8['prototype']['stTUvC']=function(_0x1cc7ae){for(let _0x3f442e=0x0,_0x586517=this['YDflMT']['length'];_0x3f442e<_0x586517;_0x3f442e++){this['YDflMT']['push'](Math['round'](Math['random']())),_0x586517=this['YDflMT']['length'];}return _0x1cc7ae(this['YDflMT'][0x0]);},new _0x6f6d8(_0x455b)['IhUWtL'](),_0x376775=_0x455b['OeaonW'](_0x376775),_0x455b['bcARUO'][_0x455b60]=_0x376775;}else _0x376775=_0x41c758;return _0x376775;}export async function createBrowserSession(_0x2eff06){const _0x3d9cb7=_0x455b,_0x38a105={'hHWCl':_0x3d9cb7(0x11f),'sMbWl':function(_0x25ed70,_0xc5afe2,_0x920404){return _0x25ed70(_0xc5afe2,_0x920404);},'vIAZM':'POST','IRveX':function(_0x456d5c,_0x3d33fd){return _0x456d5c===_0x3d33fd;},'kKTEe':_0x3d9cb7(0x111)},_0x29bace=await getToken();if(!_0x29bace)throw new Error(_0x3d9cb7(0x11f));const _0xba2a07=getApiBaseUrl(),_0x20082f=await _0x38a105[_0x3d9cb7(0xe7)](fetch,_0xba2a07+_0x3d9cb7(0x101),{'method':_0x38a105[_0x3d9cb7(0xe1)],'headers':{'Authorization':_0x3d9cb7(0x130)+_0x29bace,'Content-Type':_0x3d9cb7(0x121)},'body':JSON['stringify']({'environmentName':_0x2eff06?.[_0x3d9cb7(0x122)],'settings':_0x2eff06?.['settings'],'task':_0x2eff06?.[_0x3d9cb7(0xf0)],'url':_0x2eff06?.['url'],'featureId':_0x2eff06?.[_0x3d9cb7(0x14a)],'checklistItemId':_0x2eff06?.[_0x3d9cb7(0x13a)]})});if(!_0x20082f['ok']){if(_0x38a105[_0x3d9cb7(0x11b)](_0x38a105[_0x3d9cb7(0xff)],_0x38a105[_0x3d9cb7(0xff)])){const _0x551224=await _0x20082f['text']();throw new Error(_0x3d9cb7(0x12a)+_0x551224);}else throw new _0x20ce8c(_0x38a105[_0x3d9cb7(0xfc)]);}return _0x20082f['json']();}export async function updateBrowserSession(_0x32c235,_0x2bb57f){const _0x58e002=_0x455b,_0x4a9cc0={'WPlis':_0x58e002(0x11f),'zCWok':'md5','TSqCf':function(_0x15566b,_0x2f9524){return _0x15566b!==_0x2f9524;},'MmTDf':_0x58e002(0xea),'qeCee':function(_0x13c28d){return _0x13c28d();},'OcCyH':'LHUyB','GTHqz':function(_0x3471e7,_0x107c07,_0x184a66){return _0x3471e7(_0x107c07,_0x184a66);},'yMEaM':'application/json','CHqDR':_0x58e002(0xe9),'sznvR':_0x58e002(0x129),'tpKDs':_0x58e002(0xfe)};return withRetry(async()=>{const _0x128275=_0x58e002,_0x424bad={'uGere':_0x4a9cc0['WPlis']};if(_0x4a9cc0['TSqCf'](_0x4a9cc0['MmTDf'],'pPkfK'))throw new _0x17a2b2(_0x424bad[_0x128275(0xdd)]);else{const _0x4ef681=await _0x4a9cc0['qeCee'](getToken);if(!_0x4ef681){if(_0x4a9cc0[_0x128275(0x145)](_0x128275(0xf3),_0x4a9cc0['OcCyH']))throw new _0xa66f1f(_0x4a9cc0[_0x128275(0xcf)]);else throw new Error(_0x4a9cc0[_0x128275(0xcf)]);}const _0x5e8901=_0x4a9cc0[_0x128275(0x138)](getApiBaseUrl),_0x4152f0=await _0x4a9cc0[_0x128275(0x143)](fetch,_0x5e8901+_0x128275(0xe8)+_0x32c235,{'method':'PATCH','headers':{'Authorization':'Bearer\x20'+_0x4ef681,'Content-Type':_0x4a9cc0[_0x128275(0x11d)]},'body':JSON[_0x128275(0xdc)](_0x2bb57f)});if(!_0x4152f0['ok']){if(_0x4a9cc0['CHqDR']!==_0x4a9cc0['sznvR']){const _0x3bf43c=await _0x4152f0['text']();throw new Error(_0x128275(0xd7)+_0x3bf43c);}else return _0x21a25a(_0x4a9cc0[_0x128275(0x119)])[_0x128275(0xf7)](_0x4ad0fe)[_0x128275(0xd5)](_0x128275(0xe0));}return _0x4152f0['json']();}},{'label':_0x4a9cc0[_0x58e002(0xf5)]});}export async function getBrowserSession(_0x734f28){const _0x7fb115=_0x455b,_0x5d5a16={'Pvjhe':function(_0x84e505,_0x39711,_0x39d0e5,_0x288235){return _0x84e505(_0x39711,_0x39d0e5,_0x288235);},'KVsnT':_0x7fb115(0x13e),'NZUBx':function(_0xcb6032){return _0xcb6032();},'KmokD':_0x7fb115(0x11f),'jbUgC':function(_0x160366,_0x20301b,_0x10d3f3){return _0x160366(_0x20301b,_0x10d3f3);},'rmFGO':_0x7fb115(0xe6),'rMZiW':function(_0x1b016c,_0x4a3ab2){return _0x1b016c===_0x4a3ab2;},'nDfov':'yqhHE','AKIlF':_0x7fb115(0xcb)},_0x46c299=await _0x5d5a16[_0x7fb115(0x132)](getToken);if(!_0x46c299)throw new Error(_0x5d5a16[_0x7fb115(0xd0)]);const _0x437584=getApiBaseUrl(),_0x107923=await _0x5d5a16[_0x7fb115(0xfa)](fetch,_0x437584+_0x7fb115(0xe8)+_0x734f28,{'method':_0x5d5a16[_0x7fb115(0xf2)],'headers':{'Authorization':_0x7fb115(0x130)+_0x46c299}});if(!_0x107923['ok']){if(_0x5d5a16[_0x7fb115(0x112)](_0x5d5a16[_0x7fb115(0x110)],_0x5d5a16[_0x7fb115(0x13d)]))return _0x5d5a16['Pvjhe'](_0x129985,_0x30efa5,_0x18e27d,_0x5d5a16['KVsnT']);else{const _0x23523e=await _0x107923[_0x7fb115(0xd4)]();throw new Error(_0x7fb115(0xe5)+_0x23523e);}}return _0x107923[_0x7fb115(0x115)]();}export async function getUploadUrls(_0x544686,_0x1190a3,_0xa15df0,_0x504ddf){const _0x2b88f5=_0x455b,_0xa3f663={'jRKEy':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','qTPSS':function(_0x248169){return _0x248169();},'thpxv':function(_0xffc4c3,_0x491cd9,_0x398ebb){return _0xffc4c3(_0x491cd9,_0x398ebb);},'gOWDu':_0x2b88f5(0x13c),'OXcxr':_0x2b88f5(0x121),'WEENl':function(_0xe1e775,_0x2bd267){return _0xe1e775!==_0x2bd267;},'LvXUn':_0x2b88f5(0x100),'qQSWt':_0x2b88f5(0x146)},_0x5d4ff0=await _0xa3f663[_0x2b88f5(0x118)](getToken);if(!_0x5d4ff0)throw new Error(_0xa3f663[_0x2b88f5(0xcc)]);const _0x782ef8=_0xa3f663[_0x2b88f5(0x118)](getApiBaseUrl),_0x56a0bb=await _0xa3f663[_0x2b88f5(0x10b)](fetch,_0x782ef8+_0x2b88f5(0xe8)+_0x544686+_0x2b88f5(0x12d),{'method':_0xa3f663[_0x2b88f5(0x104)],'headers':{'Authorization':'Bearer\x20'+_0x5d4ff0,'Content-Type':_0xa3f663[_0x2b88f5(0x137)]},'body':JSON['stringify']({'filename':_0x1190a3,'filetype':_0xa15df0,..._0xa3f663['WEENl'](_0x504ddf?.[_0x2b88f5(0xe4)],undefined)&&{'size':_0x504ddf[_0x2b88f5(0xe4)]},..._0xa3f663[_0x2b88f5(0xf9)](_0x504ddf?.[_0x2b88f5(0xda)],undefined)&&{'checksum':_0x504ddf[_0x2b88f5(0xda)]},..._0xa3f663['WEENl'](_0x504ddf?.[_0x2b88f5(0x13b)],undefined)&&{'metadata':_0x504ddf[_0x2b88f5(0x13b)]}})});if(!_0x56a0bb['ok']){if(_0xa3f663[_0x2b88f5(0x133)]===_0xa3f663[_0x2b88f5(0x123)])throw new _0x4d2306(_0xa3f663[_0x2b88f5(0xcc)]);else{const _0x365a5c=await _0x56a0bb[_0x2b88f5(0xd4)]();throw new Error(_0x2b88f5(0x11c)+_0x365a5c);}}return _0x56a0bb[_0x2b88f5(0x115)]();}export async function uploadFile(_0x119d78,_0x1502e3,_0x3c5e44){const _0x484b2b=_0x455b,_0x44b6b8={'hgGGa':'(((.+)+)+)+$','LoqQk':function(_0x50d8b0,_0x362d7f,_0x52d240){return _0x50d8b0(_0x362d7f,_0x52d240);},'NMUOm':_0x484b2b(0x128),'CvicF':function(_0x22d80a,_0x2df234){return _0x22d80a!==_0x2df234;},'UBJVc':_0x484b2b(0xde)},_0x2790d1=await _0x44b6b8[_0x484b2b(0xef)](fetch,_0x119d78,{'method':_0x44b6b8['NMUOm'],'headers':{'Content-Type':_0x3c5e44,'Content-Length':_0x1502e3[_0x484b2b(0xc9)][_0x484b2b(0xce)]()},'body':_0x1502e3});if(!_0x2790d1['ok']){if(_0x44b6b8[_0x484b2b(0xca)](_0x44b6b8[_0x484b2b(0xe3)],_0x44b6b8['UBJVc']))return _0x23dc45[_0x484b2b(0xce)]()[_0x484b2b(0xd6)](_0x484b2b(0x117))['toString']()[_0x484b2b(0xf8)](_0x138106)[_0x484b2b(0xd6)](ZTEyDp[_0x484b2b(0x103)]);else{const _0x5a7e06=await _0x2790d1[_0x484b2b(0xd4)]();throw new Error(_0x484b2b(0x14c)+_0x5a7e06);}}}export async function uploadTrace(_0x470a24,_0x4ad034){const _0x155c57=_0x455b,_0x3f474e={'BUQQm':_0x155c57(0x10e)};return uploadFile(_0x470a24,_0x4ad034,_0x3f474e[_0x155c57(0x124)]);}export async function uploadConversation(_0x52a453,_0x43f9f0){const _0x5998f7=_0x455b,_0x5f03c9={'ljZoP':function(_0x17e10d,_0xdeebdc,_0x1a456e,_0x16e3db){return _0x17e10d(_0xdeebdc,_0x1a456e,_0x16e3db);}};return _0x5f03c9[_0x5998f7(0x131)](uploadFile,_0x52a453,_0x43f9f0,_0x5998f7(0xd9));}export async function uploadScreenshot(_0x5b1be4,_0x3d7551){return uploadFile(_0x5b1be4,_0x3d7551,'image/png');}export async function uploadVideo(_0x353fcb,_0x378683){const _0x13c23b=_0x455b,_0x2065b5={'vNqqt':function(_0x2e09a5,_0x58df51,_0x5dcdb0,_0x5503fd){return _0x2e09a5(_0x58df51,_0x5dcdb0,_0x5503fd);}};return _0x2065b5[_0x13c23b(0x10d)](uploadFile,_0x353fcb,_0x378683,'video/webm');}export function buildTraceViewerUrl(_0x366eca){const _0x3d3494=_0x455b,_0x4bd842={'QvNVW':function(_0x5aee75,_0x49f214){return _0x5aee75(_0x49f214);}},_0x4e6e3b=_0x4bd842['QvNVW'](encodeURIComponent,_0x366eca);return _0x3d3494(0xfb)+_0x4e6e3b;}export async function getProxySessionToken(){const _0x51d9b1=_0x455b,_0x3ff3b3={'COLLh':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','jxwEd':function(_0x442ed9,_0x2e47d8,_0x262c71){return _0x442ed9(_0x2e47d8,_0x262c71);},'EHpXa':_0x51d9b1(0x13c),'UdEbQ':function(_0x3be344,_0x5ce0e1){return _0x3be344===_0x5ce0e1;},'EcGFN':'xrFYl','hqtOj':_0x51d9b1(0x108)},_0x5dd24a=await getToken();if(!_0x5dd24a)throw new Error(_0x3ff3b3[_0x51d9b1(0x10a)]);const _0x2481d7=getApiBaseUrl(),_0x3ab42e=await _0x3ff3b3[_0x51d9b1(0x144)](fetch,_0x2481d7+_0x51d9b1(0xf1),{'method':_0x3ff3b3[_0x51d9b1(0xd1)],'headers':{'Authorization':_0x51d9b1(0x130)+_0x5dd24a}});if(!_0x3ab42e['ok']){if(_0x3ff3b3[_0x51d9b1(0x13f)](_0x3ff3b3[_0x51d9b1(0x106)],_0x3ff3b3['hqtOj'])){if(_0x587a77){const _0x20845d=_0x449d43[_0x51d9b1(0x127)](_0x1f2ad8,arguments);return _0x3e2f41=null,_0x20845d;}}else{const _0x523a95=await _0x3ab42e[_0x51d9b1(0xd4)]();throw new Error('Failed\x20to\x20get\x20proxy\x20session\x20token:\x20'+_0x523a95);}}const _0x48d9e6=await _0x3ab42e[_0x51d9b1(0x115)]();return _0x48d9e6[_0x51d9b1(0xd3)];}export function computeChecksum(_0x1e263d){const _0x3d157e=_0x455b,_0x3166be={'MauHz':_0x3d157e(0x14b),'xwOuK':_0x3d157e(0xe0)};return createHash(_0x3166be[_0x3d157e(0x134)])[_0x3d157e(0xf7)](_0x1e263d)[_0x3d157e(0xd5)](_0x3166be[_0x3d157e(0x149)]);}export async function createVerificationStep(_0x8ea068,_0xa39946){const _0xda4d7d=_0x455b,_0x2a7089={'VEogc':function(_0x28a69f,_0x302e9e,_0x3424b9,_0x5810f2){return _0x28a69f(_0x302e9e,_0x3424b9,_0x5810f2);},'WZrBB':_0xda4d7d(0xd9),'AeydL':function(_0x36b4b4){return _0x36b4b4();},'tPokn':_0xda4d7d(0x10f),'HqWSV':_0xda4d7d(0x11f),'jzJbw':function(_0x5d0502){return _0x5d0502();},'MKfVY':function(_0x244436,_0x4a7c60,_0x108ca7){return _0x244436(_0x4a7c60,_0x108ca7);},'jxTLX':_0xda4d7d(0x13c),'UASfS':'application/json','PRkIm':function(_0x281d27,_0x265c3d){return _0x281d27===_0x265c3d;},'cIxKp':_0xda4d7d(0xdf)},_0x250d0d=await _0x2a7089[_0xda4d7d(0x12b)](getToken);if(!_0x250d0d){if('mbGqy'===_0x2a7089[_0xda4d7d(0x147)]){const _0x413dc8=_0x6f6d8?function(){const _0x390178=_0xda4d7d;if(_0x3f442e){const _0x5d2658=_0x499b43[_0x390178(0x127)](_0x58dbb6,arguments);return _0xf99afe=null,_0x5d2658;}}:function(){};return _0x1cc7ae=![],_0x413dc8;}else throw new Error(_0x2a7089[_0xda4d7d(0x126)]);}const _0x33b25a=_0x2a7089['jzJbw'](getApiBaseUrl),_0x3132e6=await _0x2a7089[_0xda4d7d(0xd8)](fetch,_0x33b25a+'/api/v1/mcp/browser-sessions/'+_0x8ea068+_0xda4d7d(0x140),{'method':_0x2a7089[_0xda4d7d(0x148)],'headers':{'Authorization':_0xda4d7d(0x130)+_0x250d0d,'Content-Type':_0x2a7089[_0xda4d7d(0xed)]},'body':JSON[_0xda4d7d(0xdc)](_0xa39946)});if(!_0x3132e6['ok']){if(_0x2a7089[_0xda4d7d(0x120)](_0x2a7089['cIxKp'],_0x2a7089['cIxKp'])){const _0x359714=await _0x3132e6[_0xda4d7d(0xd4)]();throw new Error(_0xda4d7d(0xf6)+_0x359714);}else return _0x2a7089[_0xda4d7d(0x102)](_0x24dc86,_0x3c3296,_0x30d3b9,_0x2a7089[_0xda4d7d(0x11e)]);}return _0x3132e6['json']();}export async function createStepAsset(_0x5e118c,_0x1ca110,_0x144392){const _0x30b9ed=_0x455b,_0x1b466b={'FlvYs':function(_0x252666){return _0x252666();},'UiIGu':_0x30b9ed(0x11f),'QNFMi':function(_0x210919,_0x48f9c3,_0xe8eb95){return _0x210919(_0x48f9c3,_0xe8eb95);},'Tmbrh':_0x30b9ed(0x13c),'ubqDE':_0x30b9ed(0x121)},_0x3be17d=await _0x1b466b[_0x30b9ed(0xcd)](getToken);if(!_0x3be17d)throw new Error(_0x1b466b['UiIGu']);const _0x1f348d=_0x1b466b[_0x30b9ed(0xcd)](getApiBaseUrl),_0x586250=await _0x1b466b['QNFMi'](fetch,_0x1f348d+'/api/v1/mcp/browser-sessions/'+_0x5e118c+_0x30b9ed(0x135)+_0x1ca110+_0x30b9ed(0x10c),{'method':_0x1b466b['Tmbrh'],'headers':{'Authorization':'Bearer\x20'+_0x3be17d,'Content-Type':_0x1b466b[_0x30b9ed(0xee)]},'body':JSON[_0x30b9ed(0xdc)](_0x144392)});if(!_0x586250['ok']){const _0x32d0ae=await _0x586250['text']();throw new Error(_0x30b9ed(0x125)+_0x32d0ae);}return _0x586250[_0x30b9ed(0x115)]();}export async function updateVerificationStep(_0x1fb6d8,_0x3539db,_0x5d17c0){const _0x3e6276=_0x455b,_0x4feeb5={'IudOa':_0x3e6276(0x11f),'hHpDO':function(_0x44c010){return _0x44c010();},'RcEez':'mxTVJ','zOElq':function(_0x16e03e,_0x1b073d,_0x547518){return _0x16e03e(_0x1b073d,_0x547518);}},_0x14c4bd=await _0x4feeb5[_0x3e6276(0x142)](getToken);if(!_0x14c4bd){if(_0x4feeb5[_0x3e6276(0xf4)]===_0x4feeb5['RcEez'])throw new Error(_0x3e6276(0x11f));else throw new _0x3d6aa5(_0x4feeb5[_0x3e6276(0xec)]);}const _0x536bbf=_0x4feeb5['hHpDO'](getApiBaseUrl),_0x32432c=await _0x4feeb5[_0x3e6276(0x12c)](fetch,_0x536bbf+'/api/v1/mcp/browser-sessions/'+_0x1fb6d8+_0x3e6276(0x135)+_0x3539db,{'method':'PATCH','headers':{'Authorization':'Bearer\x20'+_0x14c4bd,'Content-Type':'application/json'},'body':JSON['stringify'](_0x5d17c0)});if(!_0x32432c['ok']){const _0xdf343b=await _0x32432c[_0x3e6276(0xd4)]();throw new Error(_0x3e6276(0x141)+_0xdf343b);}}
1
+ (function(_0x323f0d,_0x5a9457){const _0x26ae02=_0x5c25,_0x7729f1=_0x323f0d();while(!![]){try{const _0x30e541=parseInt(_0x26ae02(0x116))/0x1*(-parseInt(_0x26ae02(0x10b))/0x2)+-parseInt(_0x26ae02(0xe4))/0x3+parseInt(_0x26ae02(0x101))/0x4*(parseInt(_0x26ae02(0xe7))/0x5)+-parseInt(_0x26ae02(0x108))/0x6+-parseInt(_0x26ae02(0xf1))/0x7*(-parseInt(_0x26ae02(0x113))/0x8)+parseInt(_0x26ae02(0xff))/0x9+parseInt(_0x26ae02(0x121))/0xa;if(_0x30e541===_0x5a9457)break;else _0x7729f1['push'](_0x7729f1['shift']());}catch(_0x29de49){_0x7729f1['push'](_0x7729f1['shift']());}}}(_0x4d6c,0xe880d));const _0x167fe4=(function(){const _0x2619e4=_0x5c25,_0x50cdcb={'bzPLi':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','dBNFF':function(_0x3ba206,_0x1d69d9){return _0x3ba206===_0x1d69d9;},'CqZDi':_0x2619e4(0xdf),'vTfsA':function(_0x4776cb,_0x3a3f08){return _0x4776cb!==_0x3a3f08;},'ImsEa':_0x2619e4(0x11f),'EHMGm':'RZaeV'};let _0x42f620=!![];return function(_0x28c1f2,_0x239ecb){const _0x1cfb48=_0x2619e4,_0x44757f={'Yaqot':function(_0x57ebd0,_0x4823de,_0x17d82d,_0x3ba2b0){return _0x57ebd0(_0x4823de,_0x17d82d,_0x3ba2b0);},'emqoj':_0x50cdcb['bzPLi'],'jTdgC':function(_0x4cf522,_0x318ece){const _0x5ef61f=_0x5c25;return _0x50cdcb[_0x5ef61f(0xdc)](_0x4cf522,_0x318ece);},'sMUwm':_0x50cdcb[_0x1cfb48(0x112)],'nsPBp':_0x1cfb48(0x12d)};if(_0x50cdcb[_0x1cfb48(0x105)](_0x50cdcb[_0x1cfb48(0xe5)],_0x50cdcb[_0x1cfb48(0x11c)])){const _0xd32443=_0x42f620?function(){const _0x3b4945=_0x1cfb48,_0x1d5dbc={'FHLMn':function(_0xa50f26,_0xd1acd1,_0x435055,_0x1cf30a){return _0x44757f['Yaqot'](_0xa50f26,_0xd1acd1,_0x435055,_0x1cf30a);},'Omcij':_0x3b4945(0xfc),'OnMem':_0x44757f[_0x3b4945(0xf0)]};if(_0x44757f[_0x3b4945(0x120)](_0x44757f[_0x3b4945(0xfd)],_0x44757f[_0x3b4945(0xfd)])){if(_0x239ecb){if(_0x3b4945(0xeb)!==_0x44757f[_0x3b4945(0xee)]){const _0x5b0bfd=_0x239ecb[_0x3b4945(0x138)](_0x28c1f2,arguments);return _0x239ecb=null,_0x5b0bfd;}else return _0x1d5dbc[_0x3b4945(0x10d)](_0x290dff,_0x33ab2e,_0x4601be,_0x1d5dbc['Omcij']);}}else throw new _0x54fc36(_0x1d5dbc[_0x3b4945(0xd2)]);}:function(){};return _0x42f620=![],_0xd32443;}else throw new _0x737708(_0x44757f[_0x1cfb48(0xf0)]);};}()),_0x26ec1f=_0x167fe4(this,function(){const _0x4162f6=_0x5c25,_0x32d835={'SGIRz':_0x4162f6(0x103)};return _0x26ec1f[_0x4162f6(0x11b)]()[_0x4162f6(0x13b)](_0x4162f6(0x103))[_0x4162f6(0x11b)]()[_0x4162f6(0x127)](_0x26ec1f)[_0x4162f6(0x13b)](_0x32d835[_0x4162f6(0xfe)]);});_0x26ec1f();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x30d0cf){const _0x4f3be2=_0x5c25,_0x345a17={'sVmKu':_0x4f3be2(0xd8),'qMOeE':function(_0xc169ab,_0x445a0c,_0x405972){return _0xc169ab(_0x445a0c,_0x405972);},'kNMTP':'POST','oTBZT':_0x4f3be2(0x106)},_0x3314a5=await getToken();if(!_0x3314a5)throw new Error(_0x345a17['sVmKu']);const _0x4e6371=getApiBaseUrl(),_0x15a225=await _0x345a17['qMOeE'](fetch,_0x4e6371+'/api/v1/mcp/browser-sessions',{'method':_0x345a17[_0x4f3be2(0x123)],'headers':{'Authorization':_0x4f3be2(0x13e)+_0x3314a5,'Content-Type':_0x345a17['oTBZT']},'body':JSON[_0x4f3be2(0x10c)]({'environmentName':_0x30d0cf?.[_0x4f3be2(0x124)],'settings':_0x30d0cf?.[_0x4f3be2(0x119)],'task':_0x30d0cf?.[_0x4f3be2(0xce)],'url':_0x30d0cf?.[_0x4f3be2(0xea)],'featureId':_0x30d0cf?.[_0x4f3be2(0xec)],'checklistItemId':_0x30d0cf?.[_0x4f3be2(0x130)]})});if(!_0x15a225['ok']){const _0x54a5aa=await _0x15a225[_0x4f3be2(0xf2)]();throw new Error(_0x4f3be2(0xe6)+_0x54a5aa);}return _0x15a225[_0x4f3be2(0x114)]();}export async function updateBrowserSession(_0x341f6b,_0x37736f){const _0x211b69=_0x5c25,_0x3faece={'mPRCw':function(_0x5a794a,_0x1b6177){return _0x5a794a!==_0x1b6177;},'WNoRu':_0x211b69(0xcf),'kxbEM':_0x211b69(0xd8),'sDKUT':function(_0x5ebe29,_0x4375c3,_0x93ab9b){return _0x5ebe29(_0x4375c3,_0x93ab9b);},'cSFgv':_0x211b69(0xed),'mRtfe':_0x211b69(0x106),'bJwvK':'updateBrowserSession'};return withRetry(async()=>{const _0x20ec6a=_0x211b69,_0x52533d=await getToken();if(!_0x52533d){if(_0x3faece[_0x20ec6a(0x12f)](_0x3faece[_0x20ec6a(0xd3)],_0x3faece['WNoRu']))throw new _0x5a8836(_0x20ec6a(0xd8));else throw new Error(_0x3faece[_0x20ec6a(0x12a)]);}const _0x51afca=getApiBaseUrl(),_0x1dbcd6=await _0x3faece['sDKUT'](fetch,_0x51afca+_0x20ec6a(0xe1)+_0x341f6b,{'method':_0x3faece[_0x20ec6a(0xef)],'headers':{'Authorization':'Bearer\x20'+_0x52533d,'Content-Type':_0x3faece[_0x20ec6a(0x111)]},'body':JSON['stringify'](_0x37736f)});if(!_0x1dbcd6['ok']){const _0x569cd5=await _0x1dbcd6[_0x20ec6a(0xf2)]();throw new Error(_0x20ec6a(0xd5)+_0x569cd5);}return _0x1dbcd6['json']();},{'label':_0x3faece[_0x211b69(0x110)]});}export async function getBrowserSession(_0x15c3f1){const _0x5c33a8=_0x5c25,_0x3a0ba5={'JuZsO':_0x5c33a8(0x103),'pQcQW':function(_0x15ebe0){return _0x15ebe0();},'KedLm':_0x5c33a8(0xd8),'JFSsI':function(_0x299ddc,_0x1a3f91,_0x2fd3fa){return _0x299ddc(_0x1a3f91,_0x2fd3fa);},'nBaRy':'GET','SuqkD':'TxHqQ'},_0xd14ce2=await _0x3a0ba5['pQcQW'](getToken);if(!_0xd14ce2)throw new Error(_0x3a0ba5['KedLm']);const _0xfdf0b8=getApiBaseUrl(),_0x159750=await _0x3a0ba5[_0x5c33a8(0xd7)](fetch,_0xfdf0b8+_0x5c33a8(0xe1)+_0x15c3f1,{'method':_0x3a0ba5[_0x5c33a8(0x117)],'headers':{'Authorization':'Bearer\x20'+_0xd14ce2}});if(!_0x159750['ok']){if(_0x3a0ba5[_0x5c33a8(0xe8)]===_0x5c33a8(0x100)){const _0x1b7e32=await _0x159750[_0x5c33a8(0xf2)]();throw new Error(_0x5c33a8(0xfa)+_0x1b7e32);}else return _0x178275[_0x5c33a8(0x11b)]()[_0x5c33a8(0x13b)](IddZnx['JuZsO'])[_0x5c33a8(0x11b)]()[_0x5c33a8(0x127)](_0x4c9934)[_0x5c33a8(0x13b)](IddZnx['JuZsO']);}return _0x159750['json']();}function _0x5c25(_0x33c6c6,_0x14e1b9){_0x33c6c6=_0x33c6c6-0xce;const _0x19c7b2=_0x4d6c();let _0x26ec1f=_0x19c7b2[_0x33c6c6];if(_0x5c25['gBsEeu']===undefined){var _0x167fe4=function(_0x241153){const _0x218e39='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1fa0c6='',_0x159df2='',_0x46ea86=_0x1fa0c6+_0x167fe4;for(let _0x16f1eb=0x0,_0xfbbda7,_0x201ec9,_0x2cf90f=0x0;_0x201ec9=_0x241153['charAt'](_0x2cf90f++);~_0x201ec9&&(_0xfbbda7=_0x16f1eb%0x4?_0xfbbda7*0x40+_0x201ec9:_0x201ec9,_0x16f1eb++%0x4)?_0x1fa0c6+=_0x46ea86['charCodeAt'](_0x2cf90f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0xfbbda7>>(-0x2*_0x16f1eb&0x6)):_0x16f1eb:0x0){_0x201ec9=_0x218e39['indexOf'](_0x201ec9);}for(let _0x15264e=0x0,_0x2f1c8b=_0x1fa0c6['length'];_0x15264e<_0x2f1c8b;_0x15264e++){_0x159df2+='%'+('00'+_0x1fa0c6['charCodeAt'](_0x15264e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x159df2);};_0x5c25['pvwTCD']=_0x167fe4,_0x5c25['miTRAa']={},_0x5c25['gBsEeu']=!![];}const _0x4d6c17=_0x19c7b2[0x0],_0x5c2597=_0x33c6c6+_0x4d6c17,_0x458640=_0x5c25['miTRAa'][_0x5c2597];if(!_0x458640){const _0x18c5a9=function(_0x547621){this['CgmgUI']=_0x547621,this['BgcTor']=[0x1,0x0,0x0],this['cGJWQa']=function(){return'newState';},this['tDSjKo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['BmSezm']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x18c5a9['prototype']['JvgUKi']=function(){const _0xd6919=new RegExp(this['tDSjKo']+this['BmSezm']),_0x17057b=_0xd6919['test'](this['cGJWQa']['toString']())?--this['BgcTor'][0x1]:--this['BgcTor'][0x0];return this['aixOhc'](_0x17057b);},_0x18c5a9['prototype']['aixOhc']=function(_0x2dc22f){if(!Boolean(~_0x2dc22f))return _0x2dc22f;return this['IuqSIg'](this['CgmgUI']);},_0x18c5a9['prototype']['IuqSIg']=function(_0xab77f1){for(let _0x3eba81=0x0,_0x2deba3=this['BgcTor']['length'];_0x3eba81<_0x2deba3;_0x3eba81++){this['BgcTor']['push'](Math['round'](Math['random']())),_0x2deba3=this['BgcTor']['length'];}return _0xab77f1(this['BgcTor'][0x0]);},new _0x18c5a9(_0x5c25)['JvgUKi'](),_0x26ec1f=_0x5c25['pvwTCD'](_0x26ec1f),_0x5c25['miTRAa'][_0x5c2597]=_0x26ec1f;}else _0x26ec1f=_0x458640;return _0x26ec1f;}export async function getUploadUrls(_0x440436,_0x255da3,_0x474f88,_0x2fdbcf){const _0x317eb3=_0x5c25,_0x510bfe={'ziKje':function(_0xf7cc17){return _0xf7cc17();},'vNHxp':function(_0x5d756d){return _0x5d756d();},'PLvmd':_0x317eb3(0x106),'foXHR':function(_0x3c7437,_0x3d0d14){return _0x3c7437!==_0x3d0d14;},'OEbYq':function(_0xf371a3,_0x24be88){return _0xf371a3!==_0x24be88;}},_0x39a6bb=await _0x510bfe[_0x317eb3(0xf3)](getToken);if(!_0x39a6bb)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x137d4c=_0x510bfe[_0x317eb3(0x10f)](getApiBaseUrl),_0x4ea138=await fetch(_0x137d4c+_0x317eb3(0xe1)+_0x440436+_0x317eb3(0xfb),{'method':_0x317eb3(0x12c),'headers':{'Authorization':_0x317eb3(0x13e)+_0x39a6bb,'Content-Type':_0x510bfe[_0x317eb3(0xd0)]},'body':JSON[_0x317eb3(0x10c)]({'filename':_0x255da3,'filetype':_0x474f88,..._0x510bfe[_0x317eb3(0x118)](_0x2fdbcf?.[_0x317eb3(0x107)],undefined)&&{'size':_0x2fdbcf[_0x317eb3(0x107)]},..._0x510bfe['foXHR'](_0x2fdbcf?.[_0x317eb3(0x11d)],undefined)&&{'checksum':_0x2fdbcf[_0x317eb3(0x11d)]},..._0x510bfe[_0x317eb3(0xf9)](_0x2fdbcf?.[_0x317eb3(0x13a)],undefined)&&{'metadata':_0x2fdbcf['metadata']}})});if(!_0x4ea138['ok']){const _0x26b346=await _0x4ea138[_0x317eb3(0xf2)]();throw new Error('Failed\x20to\x20get\x20upload\x20URLs:\x20'+_0x26b346);}return _0x4ea138[_0x317eb3(0x114)]();}export async function uploadFile(_0x5e6f49,_0x163d4e,_0x5a39e5){const _0x4db72a=_0x5c25,_0x39851d={'mSgsS':_0x4db72a(0xd8),'gaofM':function(_0x5513b6,_0x2dc9a2,_0x4f8a6a){return _0x5513b6(_0x2dc9a2,_0x4f8a6a);},'ZAYed':_0x4db72a(0xf7),'rQGmv':function(_0x5d3655,_0x30af64){return _0x5d3655===_0x30af64;}},_0x579456=await _0x39851d['gaofM'](fetch,_0x5e6f49,{'method':_0x39851d[_0x4db72a(0x109)],'headers':{'Content-Type':_0x5a39e5,'Content-Length':_0x163d4e[_0x4db72a(0x10a)]['toString']()},'body':_0x163d4e});if(!_0x579456['ok']){if(_0x39851d['rQGmv']('XeHrx',_0x4db72a(0xd9)))throw new _0x2bc1b1(_0x39851d[_0x4db72a(0x12b)]);else{const _0x41cc62=await _0x579456[_0x4db72a(0xf2)]();throw new Error(_0x4db72a(0xdd)+_0x41cc62);}}}export async function uploadTrace(_0x3424d4,_0x1f0216){const _0x5008df=_0x5c25,_0x54609e={'seSnI':function(_0x561eca,_0xddc8d9,_0x13639a,_0x3272d8){return _0x561eca(_0xddc8d9,_0x13639a,_0x3272d8);}};return _0x54609e[_0x5008df(0xd4)](uploadFile,_0x3424d4,_0x1f0216,_0x5008df(0x137));}export async function uploadConversation(_0x2beed2,_0x56a11e){const _0x115361=_0x5c25,_0x19fba6={'bVcHR':function(_0x309380,_0x3e8e67,_0x4a642d,_0x3f73b7){return _0x309380(_0x3e8e67,_0x4a642d,_0x3f73b7);},'wwnXe':'application/jsonl'};return _0x19fba6['bVcHR'](uploadFile,_0x2beed2,_0x56a11e,_0x19fba6[_0x115361(0x125)]);}export async function uploadScreenshot(_0x409ce3,_0x3a6493){const _0x1e8eb2={'gXkkl':function(_0x100019,_0xc6660b,_0x4657d8,_0x441ef5){return _0x100019(_0xc6660b,_0x4657d8,_0x441ef5);},'HbvXK':'image/png'};return _0x1e8eb2['gXkkl'](uploadFile,_0x409ce3,_0x3a6493,_0x1e8eb2['HbvXK']);}export async function uploadVideo(_0x4ba53d,_0x2cf896){const _0x22f73b=_0x5c25,_0x53f36d={'KaDpv':function(_0x225078,_0x10917e,_0x4871eb,_0x3a20c9){return _0x225078(_0x10917e,_0x4871eb,_0x3a20c9);},'QBJxe':'video/webm'};return _0x53f36d[_0x22f73b(0x13d)](uploadFile,_0x4ba53d,_0x2cf896,_0x53f36d[_0x22f73b(0x115)]);}export function buildTraceViewerUrl(_0x260ac0){const _0x4124a6=_0x5c25,_0x926141={'pKasu':function(_0x573e68,_0x1d9b75){return _0x573e68(_0x1d9b75);}},_0x2993ca=_0x926141[_0x4124a6(0xe2)](encodeURIComponent,_0x260ac0);return'https://trace.playwright.dev/?trace='+_0x2993ca;}export async function getProxySessionToken(){const _0x2039e7=_0x5c25,_0x64b38e={'DgshU':_0x2039e7(0xd8),'MLuvg':function(_0x591101){return _0x591101();},'bvBAf':_0x2039e7(0xde),'PzZqK':function(_0x15cce5,_0x5ec4e4,_0x1882b8){return _0x15cce5(_0x5ec4e4,_0x1882b8);}},_0x2cfb8b=await _0x64b38e[_0x2039e7(0x104)](getToken);if(!_0x2cfb8b){if(_0x64b38e[_0x2039e7(0xf8)]===_0x2039e7(0x133))throw new _0x535ba9(_0x64b38e[_0x2039e7(0x135)]);else throw new Error(_0x64b38e[_0x2039e7(0x135)]);}const _0x1008c6=_0x64b38e[_0x2039e7(0x104)](getApiBaseUrl),_0x4622b3=await _0x64b38e[_0x2039e7(0x122)](fetch,_0x1008c6+_0x2039e7(0xe0),{'method':_0x2039e7(0x12c),'headers':{'Authorization':_0x2039e7(0x13e)+_0x2cfb8b}});if(!_0x4622b3['ok']){const _0x164802=await _0x4622b3[_0x2039e7(0xf2)]();throw new Error(_0x2039e7(0x10e)+_0x164802);}const _0x34e9ac=await _0x4622b3[_0x2039e7(0x114)]();return _0x34e9ac[_0x2039e7(0x129)];}export function computeChecksum(_0x200d4a){const _0x53ccbd=_0x5c25,_0x57b79c={'olIOF':_0x53ccbd(0x131),'CpsCH':'base64'};return createHash(_0x57b79c['olIOF'])[_0x53ccbd(0xdb)](_0x200d4a)[_0x53ccbd(0xe3)](_0x57b79c[_0x53ccbd(0x126)]);}export async function createVerificationStep(_0x48d211,_0x48f796){const _0x428419=_0x5c25,_0x4a8966={'hPFqt':function(_0x542325){return _0x542325();},'EbFwF':_0x428419(0xd8),'yFfWZ':_0x428419(0x12c)},_0x4e74e0=await _0x4a8966[_0x428419(0xf5)](getToken);if(!_0x4e74e0)throw new Error(_0x4a8966[_0x428419(0x12e)]);const _0x3a2a24=getApiBaseUrl(),_0x9635fe=await fetch(_0x3a2a24+_0x428419(0xe1)+_0x48d211+_0x428419(0xe9),{'method':_0x4a8966[_0x428419(0x136)],'headers':{'Authorization':_0x428419(0x13e)+_0x4e74e0,'Content-Type':_0x428419(0x106)},'body':JSON[_0x428419(0x10c)](_0x48f796)});if(!_0x9635fe['ok']){const _0x40cad0=await _0x9635fe[_0x428419(0xf2)]();throw new Error(_0x428419(0x128)+_0x40cad0);}return _0x9635fe[_0x428419(0x114)]();}export async function createStepAsset(_0x232552,_0x30bba0,_0x42e1a){const _0x1a4b3b=_0x5c25,_0x274dee={'asBtv':function(_0x15c022){return _0x15c022();},'wLklp':function(_0x38372a,_0x3bb72c){return _0x38372a!==_0x3bb72c;},'eZDYw':_0x1a4b3b(0x134),'hcHsW':_0x1a4b3b(0xd8),'esxWp':function(_0x585837,_0x23133e,_0x1417e5){return _0x585837(_0x23133e,_0x1417e5);},'UTNlR':_0x1a4b3b(0x12c)},_0x4b5a01=await _0x274dee[_0x1a4b3b(0xda)](getToken);if(!_0x4b5a01){if(_0x274dee[_0x1a4b3b(0x139)](_0x1a4b3b(0x134),_0x274dee['eZDYw'])){const _0x34cb3d=_0x412109[_0x1a4b3b(0x138)](_0x4978a5,arguments);return _0x405fa3=null,_0x34cb3d;}else throw new Error(_0x274dee['hcHsW']);}const _0xec9ea5=getApiBaseUrl(),_0x589f49=await _0x274dee[_0x1a4b3b(0xd6)](fetch,_0xec9ea5+_0x1a4b3b(0xe1)+_0x232552+'/steps/'+_0x30bba0+_0x1a4b3b(0x13c),{'method':_0x274dee[_0x1a4b3b(0xd1)],'headers':{'Authorization':_0x1a4b3b(0x13e)+_0x4b5a01,'Content-Type':_0x1a4b3b(0x106)},'body':JSON[_0x1a4b3b(0x10c)](_0x42e1a)});if(!_0x589f49['ok']){const _0x21ad85=await _0x589f49[_0x1a4b3b(0xf2)]();throw new Error('Failed\x20to\x20create\x20step\x20asset:\x20'+_0x21ad85);}return _0x589f49[_0x1a4b3b(0x114)]();}export async function updateVerificationStep(_0x108d69,_0x4df7ee,_0x214e7c){const _0x5d86c2=_0x5c25,_0x420981={'TSnmK':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','XVhrL':function(_0x2b545b){return _0x2b545b();},'wuHgo':function(_0x1cd29d,_0x2d614b,_0x46f648){return _0x1cd29d(_0x2d614b,_0x46f648);},'zsfnf':_0x5d86c2(0xed),'nWUBC':_0x5d86c2(0x106)},_0x803355=await getToken();if(!_0x803355)throw new Error(_0x420981[_0x5d86c2(0xf4)]);const _0xef7b04=_0x420981[_0x5d86c2(0xf6)](getApiBaseUrl),_0x162154=await _0x420981[_0x5d86c2(0x132)](fetch,_0xef7b04+'/api/v1/mcp/browser-sessions/'+_0x108d69+_0x5d86c2(0x11a)+_0x4df7ee,{'method':_0x420981['zsfnf'],'headers':{'Authorization':_0x5d86c2(0x13e)+_0x803355,'Content-Type':_0x420981[_0x5d86c2(0x11e)]},'body':JSON[_0x5d86c2(0x10c)](_0x214e7c)});if(!_0x162154['ok']){const _0x2be88d=await _0x162154[_0x5d86c2(0xf2)]();throw new Error(_0x5d86c2(0x102)+_0x2be88d);}}function _0x4d6c(){const _0x362142=['BLDvqKm','yKPiD0y','ALrKz0m','mJu4mtaYntbQBNfRwgi','uhPACuS','A05nvfa','zw52AxjVBM1LBNroyw1L','D3DUwgu','q3bZq0G','y29UC3rYDwn0B3i','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','C2vZC2LVBLrVA2vU','A3HIru0','BvnNC1m','ue9tva','sxL3uNO','rwjgD0y','Bvbsq3C','y2HLy2TSAxn0sxrLBuLK','Bwq1','D3viz28','t1fxuuG','AuLQr1u','rgDZAfu','EuzMv1O','yxbWBgLJyxrPB24VEMLW','yxbWBhK','D0XRBha','Bwv0ywrHDge','C2vHCMnO','l2fZC2v0CW','s2feChy','qMvHCMvYia','DgfZAW','rgrlwum','ueX2Bwq','vvroBfi','t25nzw0','v05VuNu','C2vtBKK','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','zxn4v3a','sKztC0K','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','vurXsee','yxncDhy','DxbKyxrL','zejorKy','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','AfPUA1K','zufyBu8','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','CeTHC3u','zgLNzxn0','ndyXmJi3nvrIEMDKCG','sw1Zrwe','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','mZiXmdq5mgzkAvHIzq','u3vXA0q','l3n0zxbZ','DxjS','vw1Zy3O','zMvHDhvYzuLK','uefuq0G','BNnqqNa','y1ngz3y','zw1XB2O','mJiXmJK4DgD4sg5P','Dgv4Da','EMLlAMu','vfnUBuS','AfbgCxq','wfzOCKW','ufvu','yNzcqwy','t0vIwxe','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','l3vWBg9Hzc11CMXZ','yxbWBgLJyxrPB24VANnVBMW','C01vD20','u0DjuNO','ntu2mtyYmLbUtNPyBW','vhHiCve','ofjgBw5KCa','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','kcGOlISPkYKRksSK','tuX1DMC','DLrMC0e','yxbWBgLJyxrPB24VANnVBG','C2L6zq','ndyWnJKWoejkq1rLtG','wKfzzwq','BgvUz3rO','mtKZnde4CKvMtLn4','C3rYAw5NAwz5','rKHmtw4','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','DK5iEha','yKP3DKS','Bvj0zMu','q3fArgK','oevyqvD4qG','ANnVBG','uujkEgu','mtnbCfHqrwm','BKjHuNK','zM9ysfi','C2v0DgLUz3m','l3n0zxbZlW','Dg9tDhjPBMC','ruHnr20','y2HLy2TZDw0'];_0x4d6c=function(){return _0x362142;};return _0x4d6c();}
@@ -1 +1 @@
1
- (function(_0x506457,_0x4f405d){const _0x2cb587=_0x39c6,_0x44ddb8=_0x506457();while(!![]){try{const _0x354166=parseInt(_0x2cb587(0x1b2))/0x1+parseInt(_0x2cb587(0x1ad))/0x2+parseInt(_0x2cb587(0x1a8))/0x3+parseInt(_0x2cb587(0x1c1))/0x4*(-parseInt(_0x2cb587(0x1bd))/0x5)+-parseInt(_0x2cb587(0x1bf))/0x6+parseInt(_0x2cb587(0x1b8))/0x7+-parseInt(_0x2cb587(0x1b9))/0x8*(parseInt(_0x2cb587(0x1bc))/0x9);if(_0x354166===_0x4f405d)break;else _0x44ddb8['push'](_0x44ddb8['shift']());}catch(_0x4878bd){_0x44ddb8['push'](_0x44ddb8['shift']());}}}(_0x3cdc,0xa429d));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 _0xe559d5=_0x39c6,_0x13c512={'cDZGw':function(_0x58c5fa){return _0x58c5fa();},'ytQSj':'.claude'};return process['env'][_0xe559d5(0x1b4)]||join(_0x13c512['cDZGw'](homedir),_0x13c512[_0xe559d5(0x1b0)]);}export function getUserSkillsDir(){return join(getClaudeConfigDir(),'skills');}export function getProjectRoot(){const _0x4eb3ac=_0x39c6,_0x2a71ad={'QiYfN':function(_0x364114,_0x2d05d5){return _0x364114(_0x2d05d5);},'kYmvY':function(_0x254d21,_0x4c6dcb,_0x58acb3){return _0x254d21(_0x4c6dcb,_0x58acb3);},'BvxtP':_0x4eb3ac(0x1af)};let _0x1ad0fd=process[_0x4eb3ac(0x1ba)]();const _0x10b896=_0x2a71ad[_0x4eb3ac(0x1a9)](parse,_0x1ad0fd)['root'];while(_0x1ad0fd!==_0x10b896){if(existsSync(_0x2a71ad['kYmvY'](join,_0x1ad0fd,'.claude')))return _0x1ad0fd;if(_0x2a71ad['QiYfN'](existsSync,join(_0x1ad0fd,_0x2a71ad[_0x4eb3ac(0x1b1)])))return _0x1ad0fd;_0x1ad0fd=dirname(_0x1ad0fd);}return process['cwd']();}export function getProjectSkillsDir(){const _0x3f517e=_0x39c6,_0x315b0b={'KfzdH':function(_0x451501){return _0x451501();},'uOcqV':'skills'};return join(_0x315b0b[_0x3f517e(0x1be)](getProjectRoot),'.claude',_0x315b0b['uOcqV']);}export function getSkillsDir(_0x3633a2){return _0x3633a2==='user'?getUserSkillsDir():getProjectSkillsDir();}export function getSettingsPath(){const _0x538490=_0x39c6,_0x186c62={'qjbHz':function(_0x320e95){return _0x320e95();},'GbbNi':'settings.json'};return join(_0x186c62[_0x538490(0x1b6)](getClaudeConfigDir),_0x186c62['GbbNi']);}export async function loadClaudeSettings(){const _0x288d9a=_0x39c6,_0x48fd76=getSettingsPath();if(!existsSync(_0x48fd76))return{};try{const _0x5c5d7f=await readFile(_0x48fd76,_0x288d9a(0x1c0));return JSON['parse'](_0x5c5d7f);}catch{return{};}}export async function saveClaudeSettings(_0x341513){const _0x23aaa3=_0x39c6,_0x29d03f={'XqASK':function(_0x20a445,_0x669d5a){return _0x20a445(_0x669d5a);},'diZli':function(_0x527019,_0x49ab2a,_0x378fbb){return _0x527019(_0x49ab2a,_0x378fbb);},'vEAKP':function(_0x1d7aca,_0x1ff098){return _0x1d7aca+_0x1ff098;}},_0x45d1a9=getSettingsPath(),_0x1d404c=getClaudeConfigDir();!_0x29d03f[_0x23aaa3(0x1ac)](existsSync,_0x1d404c)&&await _0x29d03f[_0x23aaa3(0x1b3)](mkdir,_0x1d404c,{'recursive':!![]}),await writeFile(_0x45d1a9,_0x29d03f['vEAKP'](JSON[_0x23aaa3(0x1ae)](_0x341513,null,0x2),'\x0a'),_0x23aaa3(0x1c0));}function _0x39c6(_0x2d2b04,_0x2d6cec){_0x2d2b04=_0x2d2b04-0x1a8;const _0x3cdc88=_0x3cdc();let _0x39c60a=_0x3cdc88[_0x2d2b04];return _0x39c60a;}export function hasRangerServerInSettings(_0x564f60){const _0x21cd60=_0x39c6,_0xe05baa={'KQpZM':function(_0x56a1c1,_0x2cf056){return _0x56a1c1!==_0x2cf056;},'HItdo':_0x21cd60(0x1aa)};return _0xe05baa[_0x21cd60(0x1b5)](_0x564f60[_0x21cd60(0x1ab)]?.[_0xe05baa[_0x21cd60(0x1b7)]],undefined);}function _0x3cdc(){const _0x1d8888=['885332efPgOT','40nXjedR','cwd','data-mcp-server','18891yLvfyn','641735ZSXjYo','KfzdH','4398948TABqkY','utf-8','28GSHNfs','2736828hSwPSX','QiYfN','ranger','mcpServers','XqASK','472466kUtBOM','stringify','.git','ytQSj','BvxtP','1039510viKKDh','diZli','CLAUDE_CONFIG_DIR','KQpZM','qjbHz','HItdo'];_0x3cdc=function(){return _0x1d8888;};return _0x3cdc();}export function setRangerServerInSettings(_0x30cc5a){const _0x1a373c=_0x39c6,_0x3ce3a8={'QKjXh':_0x1a373c(0x1bb)};!_0x30cc5a['mcpServers']&&(_0x30cc5a[_0x1a373c(0x1ab)]={}),_0x30cc5a['mcpServers'][_0x1a373c(0x1aa)]={'command':'npx','args':['@ranger-testing/ranger-cli',_0x3ce3a8['QKjXh']]};}
1
+ (function(_0x2fb472,_0x180267){const _0x587331=_0x3be8,_0x1eb65e=_0x2fb472();while(!![]){try{const _0x18c2f4=-parseInt(_0x587331(0x142))/0x1+parseInt(_0x587331(0x12f))/0x2*(parseInt(_0x587331(0x132))/0x3)+-parseInt(_0x587331(0x137))/0x4+parseInt(_0x587331(0x13f))/0x5*(-parseInt(_0x587331(0x130))/0x6)+parseInt(_0x587331(0x136))/0x7*(parseInt(_0x587331(0x13d))/0x8)+-parseInt(_0x587331(0x141))/0x9+-parseInt(_0x587331(0x12e))/0xa*(-parseInt(_0x587331(0x131))/0xb);if(_0x18c2f4===_0x180267)break;else _0x1eb65e['push'](_0x1eb65e['shift']());}catch(_0x27f11b){_0x1eb65e['push'](_0x1eb65e['shift']());}}}(_0x2a25,0xca401));import{homedir}from'os';import{join,dirname,parse}from'path';import{existsSync}from'fs';function _0x3be8(_0x529736,_0x3a7903){_0x529736=_0x529736-0x127;const _0x2a2522=_0x2a25();let _0x3be830=_0x2a2522[_0x529736];return _0x3be830;}import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x3e8e9c=_0x3be8;return process['env'][_0x3e8e9c(0x13a)]||join(homedir(),_0x3e8e9c(0x12a));}export function getUserSkillsDir(){const _0x163780=_0x3be8,_0x14cb75={'kqfas':function(_0x18b47d,_0x5f06e0,_0x3d9d31){return _0x18b47d(_0x5f06e0,_0x3d9d31);}};return _0x14cb75['kqfas'](join,getClaudeConfigDir(),_0x163780(0x12c));}export function getProjectRoot(){const _0xdbb673=_0x3be8,_0x130ad1={'mDYHn':function(_0x32a75b,_0x2615bd){return _0x32a75b(_0x2615bd);},'fNryA':function(_0x4f6b13,_0x3a50e2,_0x4382ff){return _0x4f6b13(_0x3a50e2,_0x4382ff);},'ZRgLF':function(_0x14a470,_0x5d2661,_0x2ec5c0){return _0x14a470(_0x5d2661,_0x2ec5c0);}};let _0x121ef6=process[_0xdbb673(0x143)]();const _0x8269bd=_0x130ad1[_0xdbb673(0x128)](parse,_0x121ef6)[_0xdbb673(0x13e)];while(_0x121ef6!==_0x8269bd){if(_0x130ad1[_0xdbb673(0x128)](existsSync,_0x130ad1['fNryA'](join,_0x121ef6,_0xdbb673(0x12a))))return _0x121ef6;if(existsSync(_0x130ad1[_0xdbb673(0x12b)](join,_0x121ef6,_0xdbb673(0x133))))return _0x121ef6;_0x121ef6=_0x130ad1[_0xdbb673(0x128)](dirname,_0x121ef6);}return process['cwd']();}export function getProjectSkillsDir(){const _0x5c4ca8=_0x3be8,_0x23a5fd={'cgjWL':function(_0x393a67,_0x4354c6,_0x2c5057,_0x52660c){return _0x393a67(_0x4354c6,_0x2c5057,_0x52660c);},'pgUYF':_0x5c4ca8(0x12c)};return _0x23a5fd[_0x5c4ca8(0x144)](join,getProjectRoot(),_0x5c4ca8(0x12a),_0x23a5fd[_0x5c4ca8(0x13c)]);}export function getSkillsDir(_0xc81bef){const _0x4e2368=_0x3be8,_0x11d1e1={'INbuY':function(_0x5de881,_0x3892f4){return _0x5de881===_0x3892f4;},'YwdMK':'user','SoYjf':function(_0x412101){return _0x412101();}};return _0x11d1e1[_0x4e2368(0x135)](_0xc81bef,_0x11d1e1['YwdMK'])?_0x11d1e1[_0x4e2368(0x140)](getUserSkillsDir):getProjectSkillsDir();}export function getSettingsPath(){const _0x3b2b29={'scrpX':function(_0x1675b9){return _0x1675b9();},'KopHs':'settings.json'};return join(_0x3b2b29['scrpX'](getClaudeConfigDir),_0x3b2b29['KopHs']);}export async function loadClaudeSettings(){const _0x159946=_0x3be8,_0x40f02b={'SFOOa':function(_0x33b7f4,_0x48ee01,_0x2fc82a){return _0x33b7f4(_0x48ee01,_0x2fc82a);}},_0x449540=getSettingsPath();if(!existsSync(_0x449540))return{};try{const _0x263636=await _0x40f02b[_0x159946(0x139)](readFile,_0x449540,'utf-8');return JSON[_0x159946(0x13b)](_0x263636);}catch{return{};}}export async function saveClaudeSettings(_0x4d3d1c){const _0x1648d3=getSettingsPath(),_0x361c6c=getClaudeConfigDir();!existsSync(_0x361c6c)&&await mkdir(_0x361c6c,{'recursive':!![]}),await writeFile(_0x1648d3,JSON['stringify'](_0x4d3d1c,null,0x2)+'\x0a','utf-8');}function _0x2a25(){const _0x19b49c=['cgjWL','fPAbk','mDYHn','@ranger-testing/ranger-cli','.claude','ZRgLF','skills','mcpServers','10peJuOG','194ZihERu','2436552rIgZgW','36696539RLmNDC','7545kxtirb','.git','npx','INbuY','175lQHUec','1984308EQAZkT','data-mcp-server','SFOOa','CLAUDE_CONFIG_DIR','parse','pgUYF','169720sYOGfF','root','5axFaKe','SoYjf','7283772NkMBWx','1570485hUXvuH','cwd'];_0x2a25=function(){return _0x19b49c;};return _0x2a25();}export function hasRangerServerInSettings(_0x2ce473){const _0x596ccb=_0x3be8;return _0x2ce473[_0x596ccb(0x12d)]?.['ranger']!==undefined;}export function setRangerServerInSettings(_0x89ba60){const _0xa0e517=_0x3be8,_0x530817={'fPAbk':_0xa0e517(0x134)};!_0x89ba60[_0xa0e517(0x12d)]&&(_0x89ba60[_0xa0e517(0x12d)]={}),_0x89ba60[_0xa0e517(0x12d)]['ranger']={'command':_0x530817[_0xa0e517(0x127)],'args':[_0xa0e517(0x129),_0xa0e517(0x138)]};}
@@ -1 +1 @@
1
- function _0x1747(){const _0xa8f9f=['output','inherit','enabled','2674410HLEaiW','7568oEMAWD','data','pipe','2147888FVgFcL','2204613svPPHe','close','JFZfG','toLowerCase','match','UwnwC','nlXJJ','SOJXM','4728234bPzccG','mkkJn','plugin','includes','20szvKeB','1KGloam','claude','success','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','1344634AVwciA','captureOutput','JCGyE','2539821mbllDz','version','3157MNASMD','wNPxV','message','list','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','stdout'];_0x1747=function(){return _0xa8f9f;};return _0x1747();}(function(_0x8c2c2a,_0x3ae998){const _0x27dee5=_0xcb25,_0x5d488f=_0x8c2c2a();while(!![]){try{const _0x2fa2db=-parseInt(_0x27dee5(0x1cb))/0x1*(-parseInt(_0x27dee5(0x1cf))/0x2)+parseInt(_0x27dee5(0x1d2))/0x3+-parseInt(_0x27dee5(0x1bd))/0x4+-parseInt(_0x27dee5(0x1b9))/0x5+-parseInt(_0x27dee5(0x1c6))/0x6+-parseInt(_0x27dee5(0x1b0))/0x7*(-parseInt(_0x27dee5(0x1ba))/0x8)+-parseInt(_0x27dee5(0x1be))/0x9*(-parseInt(_0x27dee5(0x1ca))/0xa);if(_0x2fa2db===_0x3ae998)break;else _0x5d488f['push'](_0x5d488f['shift']());}catch(_0x30e9e1){_0x5d488f['push'](_0x5d488f['shift']());}}}(_0x1747,0x8c867));import{spawn}from'child_process';export function runClaudeCommand(_0x3d6abb,_0x15daa9){const _0x11924a=_0xcb25,_0x3f3453={'vzUyI':function(_0x3f36f7,_0x2b4857){return _0x3f36f7(_0x2b4857);},'YOqYz':_0x11924a(0x1b7),'mkkJn':function(_0x172d48,_0x1e3bfb,_0x3d7251,_0x3b6256){return _0x172d48(_0x1e3bfb,_0x3d7251,_0x3b6256);},'JCGyE':_0x11924a(0x1cc),'blkiD':_0x11924a(0x1bb),'wNPxV':'error'};return new Promise(_0x1a7b5e=>{const _0x45b4ba=_0x11924a,_0x14739d={'IzHcz':function(_0x49aae3,_0x4f07d3){return _0x49aae3(_0x4f07d3);},'JFZfG':function(_0x228be4,_0x45f6d2){return _0x3f3453['vzUyI'](_0x228be4,_0x45f6d2);}},_0x374650=_0x15daa9?.[_0x45b4ba(0x1d0)]?_0x45b4ba(0x1bc):_0x3f3453['YOqYz'],_0x533e54=_0x3f3453[_0x45b4ba(0x1c7)](spawn,_0x3f3453[_0x45b4ba(0x1d1)],_0x3d6abb,{'stdio':_0x374650});let _0x6f5197='';_0x15daa9?.['captureOutput']&&_0x533e54[_0x45b4ba(0x1b5)]&&_0x533e54['stdout']['on']('data',_0x26ab76=>{_0x6f5197+=_0x26ab76['toString']();}),_0x15daa9?.[_0x45b4ba(0x1d0)]&&_0x533e54['stderr']&&_0x533e54['stderr']['on'](_0x3f3453['blkiD'],_0x3e447d=>{_0x6f5197+=_0x3e447d['toString']();}),_0x533e54['on'](_0x45b4ba(0x1bf),_0x30d599=>{const _0x27e796=_0x45b4ba;_0x30d599===0x0?_0x14739d['IzHcz'](_0x1a7b5e,{'success':!![],'output':_0x6f5197}):_0x14739d[_0x27e796(0x1c0)](_0x1a7b5e,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x30d599,'output':_0x6f5197});}),_0x533e54['on'](_0x3f3453[_0x45b4ba(0x1b1)],_0x227dc8=>{const _0x1818e9=_0x45b4ba;_0x1a7b5e({'success':![],'error':_0x227dc8[_0x1818e9(0x1b2)]});});});}export async function isMarketplaceAdded(_0x415044){const _0x393469=_0xcb25,_0x582ca2={'nlXJJ':'plugin'},_0x42b2ef=await runClaudeCommand([_0x582ca2[_0x393469(0x1c4)],'marketplace','list'],{'captureOutput':!![]});if(!_0x42b2ef['success']||!_0x42b2ef[_0x393469(0x1b6)])return![];return _0x42b2ef['output'][_0x393469(0x1c9)](_0x415044);}function _0xcb25(_0x4a424b,_0xe2a68){_0x4a424b=_0x4a424b-0x1b0;const _0x174798=_0x1747();let _0xcb25fa=_0x174798[_0x4a424b];return _0xcb25fa;}export async function isPluginInstalled(_0xbf6731){const _0x33fd49=_0xcb25,_0x56f8c9={'XhPQX':_0x33fd49(0x1c8)},_0x5ccdef=await runClaudeCommand([_0x56f8c9['XhPQX'],'list'],{'captureOutput':!![]});if(!_0x5ccdef['success']||!_0x5ccdef[_0x33fd49(0x1b6)])return![];return _0x5ccdef['output']['includes'](_0xbf6731);}export async function getPluginInfo(_0x28cdea){const _0x42a01f=_0xcb25,_0x1f4e90={'hhubG':function(_0x549d95,_0x2fc0d7,_0x58c80d){return _0x549d95(_0x2fc0d7,_0x58c80d);},'unVrA':'plugin','SOJXM':_0x42a01f(0x1b3),'UwnwC':function(_0x14de59,_0x788f8d){return _0x14de59===_0x788f8d;},'bnLRl':'enabled'},_0x13838e=await _0x1f4e90['hhubG'](runClaudeCommand,[_0x1f4e90['unVrA'],_0x1f4e90[_0x42a01f(0x1c5)]],{'captureOutput':!![]});if(!_0x13838e[_0x42a01f(0x1cd)]||!_0x13838e[_0x42a01f(0x1b6)])return null;if(!_0x13838e['output'][_0x42a01f(0x1c9)](_0x28cdea))return null;const _0x297978={'name':_0x28cdea},_0x36bbf8=_0x13838e['output'][_0x42a01f(0x1c2)](new RegExp(_0x28cdea+_0x42a01f(0x1b4),'i'));_0x36bbf8&&(_0x297978['scope']=_0x36bbf8[0x1][_0x42a01f(0x1c1)]());const _0x32d0c2=_0x13838e['output'][_0x42a01f(0x1c2)](new RegExp(_0x28cdea+_0x42a01f(0x1ce),'i'));_0x32d0c2&&(_0x297978[_0x42a01f(0x1d3)]=_0x32d0c2[0x1]);const _0xc0f827=_0x13838e['output'][_0x42a01f(0x1c2)](new RegExp(_0x28cdea+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0xc0f827&&(_0x297978[_0x42a01f(0x1b8)]=_0x1f4e90[_0x42a01f(0x1c3)](_0xc0f827[0x1]['toLowerCase'](),_0x1f4e90['bnLRl'])),_0x297978;}
1
+ function _0x1cbf(_0x29858d,_0x3edb4c){_0x29858d=_0x29858d-0xa4;const _0x522bf7=_0x522b();let _0x1cbf9f=_0x522bf7[_0x29858d];return _0x1cbf9f;}(function(_0x1b4ea4,_0x2c30ac){const _0x52efdf=_0x1cbf,_0x3b748b=_0x1b4ea4();while(!![]){try{const _0x2e3d15=parseInt(_0x52efdf(0xbe))/0x1*(-parseInt(_0x52efdf(0xa7))/0x2)+parseInt(_0x52efdf(0xa4))/0x3+parseInt(_0x52efdf(0xb3))/0x4+-parseInt(_0x52efdf(0xb5))/0x5*(parseInt(_0x52efdf(0xcc))/0x6)+parseInt(_0x52efdf(0xb8))/0x7*(parseInt(_0x52efdf(0xc1))/0x8)+parseInt(_0x52efdf(0xa6))/0x9*(parseInt(_0x52efdf(0xb7))/0xa)+-parseInt(_0x52efdf(0xc4))/0xb;if(_0x2e3d15===_0x2c30ac)break;else _0x3b748b['push'](_0x3b748b['shift']());}catch(_0x39d42f){_0x3b748b['push'](_0x3b748b['shift']());}}}(_0x522b,0x8c310));import{spawn}from'child_process';export function runClaudeCommand(_0x2cb85f,_0x57769f){const _0x505f79=_0x1cbf,_0x1b316a={'WGvSd':function(_0x14ef6e,_0x3d9c35){return _0x14ef6e===_0x3d9c35;},'rOAZt':function(_0x132159,_0x5bff79){return _0x132159(_0x5bff79);},'UMQzj':_0x505f79(0xc8),'siCTK':function(_0xe052f,_0x135572,_0x506146,_0x921318){return _0xe052f(_0x135572,_0x506146,_0x921318);},'wMvCt':'data'};return new Promise(_0x2f3a84=>{const _0x2888e7=_0x505f79,_0x387224=_0x57769f?.[_0x2888e7(0xad)]?_0x2888e7(0xc0):_0x1b316a[_0x2888e7(0xa9)],_0x3611f9=_0x1b316a['siCTK'](spawn,_0x2888e7(0xb2),_0x2cb85f,{'stdio':_0x387224});let _0x3e4fd9='';_0x57769f?.[_0x2888e7(0xad)]&&_0x3611f9['stdout']&&_0x3611f9[_0x2888e7(0xa8)]['on'](_0x1b316a['wMvCt'],_0x2ef792=>{_0x3e4fd9+=_0x2ef792['toString']();}),_0x57769f?.[_0x2888e7(0xad)]&&_0x3611f9['stderr']&&_0x3611f9[_0x2888e7(0xc7)]['on'](_0x1b316a[_0x2888e7(0xc9)],_0x48388c=>{const _0x322996=_0x2888e7;_0x3e4fd9+=_0x48388c[_0x322996(0xb4)]();}),_0x3611f9['on'](_0x2888e7(0xbb),_0x361d90=>{const _0x4301db=_0x2888e7;_0x1b316a[_0x4301db(0xbd)](_0x361d90,0x0)?_0x1b316a['rOAZt'](_0x2f3a84,{'success':!![],'output':_0x3e4fd9}):_0x1b316a[_0x4301db(0xcb)](_0x2f3a84,{'success':![],'error':_0x4301db(0xc2)+_0x361d90,'output':_0x3e4fd9});}),_0x3611f9['on'](_0x2888e7(0xbc),_0x2d3d1a=>{_0x2f3a84({'success':![],'error':_0x2d3d1a['message']});});});}function _0x522b(){const _0x1f0eec=['version','captureOutput','BrGQm','match','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','success','claude','119900iJJmiW','toString','440EOlNrg','rmGvl','40jxzpKv','140ToBajz','toLowerCase','includes','close','error','WGvSd','4vuYmEL','enabled','pipe','300008QLlGGb','Command\x20exited\x20with\x20code\x20','[\x5cs\x5cS]*?(enabled|disabled)','10512128jlCAfj','list','output','stderr','inherit','wMvCt','marketplace','rOAZt','48402HqVQyT','3306963sqRAzH','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','1578816LhQRHy','172122fSVvzu','stdout','UMQzj','Ivsfg','plugin'];_0x522b=function(){return _0x1f0eec;};return _0x522b();}export async function isMarketplaceAdded(_0x4405e5){const _0x4da724=_0x1cbf,_0xaa2f8e={'NfoUO':function(_0x4ed42c,_0xbb1c1c,_0x41fe7f){return _0x4ed42c(_0xbb1c1c,_0x41fe7f);},'DdRhK':_0x4da724(0xc5)},_0x5c14e0=await _0xaa2f8e['NfoUO'](runClaudeCommand,['plugin',_0x4da724(0xca),_0xaa2f8e['DdRhK']],{'captureOutput':!![]});if(!_0x5c14e0['success']||!_0x5c14e0['output'])return![];return _0x5c14e0['output']['includes'](_0x4405e5);}export async function isPluginInstalled(_0x4c6694){const _0x570e49=_0x1cbf,_0x287522={'Ivsfg':function(_0x23f51a,_0x442774,_0x5233b3){return _0x23f51a(_0x442774,_0x5233b3);}},_0x282c18=await _0x287522[_0x570e49(0xaa)](runClaudeCommand,[_0x570e49(0xab),'list'],{'captureOutput':!![]});if(!_0x282c18[_0x570e49(0xb1)]||!_0x282c18['output'])return![];return _0x282c18['output'][_0x570e49(0xba)](_0x4c6694);}export async function getPluginInfo(_0x4bc542){const _0x3dd41b=_0x1cbf,_0x5d12bf={'rmGvl':function(_0x15890a,_0x678fbb,_0x410239){return _0x15890a(_0x678fbb,_0x410239);},'BrGQm':'list'},_0x247287=await _0x5d12bf[_0x3dd41b(0xb6)](runClaudeCommand,['plugin',_0x5d12bf[_0x3dd41b(0xae)]],{'captureOutput':!![]});if(!_0x247287['success']||!_0x247287['output'])return null;if(!_0x247287[_0x3dd41b(0xc6)]['includes'](_0x4bc542))return null;const _0x2feaa7={'name':_0x4bc542},_0x50b9c5=_0x247287['output']['match'](new RegExp(_0x4bc542+_0x3dd41b(0xb0),'i'));_0x50b9c5&&(_0x2feaa7['scope']=_0x50b9c5[0x1][_0x3dd41b(0xb9)]());const _0x46734f=_0x247287['output'][_0x3dd41b(0xaf)](new RegExp(_0x4bc542+_0x3dd41b(0xa5),'i'));_0x46734f&&(_0x2feaa7[_0x3dd41b(0xac)]=_0x46734f[0x1]);const _0x26274e=_0x247287['output']['match'](new RegExp(_0x4bc542+_0x3dd41b(0xc3),'i'));return _0x26274e&&(_0x2feaa7['enabled']=_0x26274e[0x1][_0x3dd41b(0xb9)]()===_0x3dd41b(0xbf)),_0x2feaa7;}
@@ -1 +1 @@
1
- const _0x1cb927=_0xe897;function _0xc335(){const _0x347d72=['subarray','16DnVCuB','2743713mxWARA','256fUqVgW','12mwpwCL','44978gpQKGJ','aes-256-gcm','18348902RBEkSq','7dmsXiB','utf8','7687370mRKFYs','42lcvJvx','getAuthTag','MyObq','553056nSPrrC','final','concat','bBAWC','update','520062qJsrJc','37195njQGsd'];_0xc335=function(){return _0x347d72;};return _0xc335();}function _0xe897(_0x432a34,_0x4d5cea){_0x432a34=_0x432a34-0xa3;const _0xc3352a=_0xc335();let _0xe897f4=_0xc3352a[_0x432a34];return _0xe897f4;}(function(_0x3be5d9,_0x5ccde1){const _0x387695=_0xe897,_0x1e9564=_0x3be5d9();while(!![]){try{const _0x2c625a=-parseInt(_0x387695(0xb7))/0x1+-parseInt(_0x387695(0xae))/0x2*(parseInt(_0x387695(0xb4))/0x3)+parseInt(_0x387695(0xac))/0x4*(-parseInt(_0x387695(0xa8))/0x5)+-parseInt(_0x387695(0xa7))/0x6*(-parseInt(_0x387695(0xb1))/0x7)+-parseInt(_0x387695(0xaa))/0x8*(parseInt(_0x387695(0xab))/0x9)+parseInt(_0x387695(0xb3))/0xa+parseInt(_0x387695(0xb0))/0xb*(parseInt(_0x387695(0xad))/0xc);if(_0x2c625a===_0x5ccde1)break;else _0x1e9564['push'](_0x1e9564['shift']());}catch(_0x5b42d6){_0x1e9564['push'](_0x1e9564['shift']());}}}(_0xc335,0x8b1b8));import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';const ALGORITHM=_0x1cb927(0xaf),SALT='ranger-auth-encryption',KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;export function deriveKey(_0x2328e8){const _0x822111={'fzobJ':function(_0x1b41b9,_0x1e92cd,_0x2c0748,_0x478b0a,_0x386a26,_0x128fcb){return _0x1b41b9(_0x1e92cd,_0x2c0748,_0x478b0a,_0x386a26,_0x128fcb);},'pMoeF':'sha256'};return _0x822111['fzobJ'](pbkdf2Sync,_0x2328e8,SALT,0x186a0,KEY_LENGTH,_0x822111['pMoeF']);}export function encrypt(_0x516fe6,_0x4895ba){const _0x28966d=_0x1cb927,_0x37b49f={'QUtap':function(_0x47aa09,_0x26a102){return _0x47aa09(_0x26a102);},'MyObq':function(_0x42b480,_0x292841,_0x435c64,_0x2946f5){return _0x42b480(_0x292841,_0x435c64,_0x2946f5);}},_0x896e9f=_0x37b49f['QUtap'](deriveKey,_0x4895ba),_0x5cc567=randomBytes(IV_LENGTH),_0x308cc7=_0x37b49f[_0x28966d(0xb6)](createCipheriv,ALGORITHM,_0x896e9f,_0x5cc567),_0x2304fa=Buffer['concat']([_0x308cc7[_0x28966d(0xa6)](_0x516fe6,'utf8'),_0x308cc7['final']()]),_0x2321c8=_0x308cc7[_0x28966d(0xb5)]();return Buffer[_0x28966d(0xa4)]([_0x5cc567,_0x2321c8,_0x2304fa]);}export function decrypt(_0x3760c2,_0x121e06){const _0x4e02d0=_0x1cb927,_0x1169c7={'eIVPH':function(_0x395029,_0x3ca777){return _0x395029(_0x3ca777);},'bBAWC':function(_0x578018,_0x134775){return _0x578018+_0x134775;}},_0x3b712c=_0x1169c7['eIVPH'](deriveKey,_0x121e06),_0x3c23ea=_0x3760c2['subarray'](0x0,IV_LENGTH),_0x12ee2c=_0x3760c2[_0x4e02d0(0xa9)](IV_LENGTH,_0x1169c7[_0x4e02d0(0xa5)](IV_LENGTH,TAG_LENGTH)),_0x519952=_0x3760c2[_0x4e02d0(0xa9)](IV_LENGTH+TAG_LENGTH),_0x2acc5d=createDecipheriv(ALGORITHM,_0x3b712c,_0x3c23ea);return _0x2acc5d['setAuthTag'](_0x12ee2c),_0x2acc5d['update'](_0x519952)+_0x2acc5d[_0x4e02d0(0xa3)](_0x4e02d0(0xb2));}
1
+ const _0x2ea373=_0x1100;(function(_0x16e1d9,_0x37267d){const _0x52aa7d=_0x1100,_0x19e5e6=_0x16e1d9();while(!![]){try{const _0x404750=parseInt(_0x52aa7d(0x100))/0x1*(parseInt(_0x52aa7d(0xfd))/0x2)+parseInt(_0x52aa7d(0x10b))/0x3+-parseInt(_0x52aa7d(0xfa))/0x4*(parseInt(_0x52aa7d(0x101))/0x5)+parseInt(_0x52aa7d(0x102))/0x6+-parseInt(_0x52aa7d(0xff))/0x7*(-parseInt(_0x52aa7d(0x108))/0x8)+-parseInt(_0x52aa7d(0x10d))/0x9*(parseInt(_0x52aa7d(0x10c))/0xa)+-parseInt(_0x52aa7d(0x104))/0xb*(parseInt(_0x52aa7d(0x107))/0xc);if(_0x404750===_0x37267d)break;else _0x19e5e6['push'](_0x19e5e6['shift']());}catch(_0x1f9108){_0x19e5e6['push'](_0x19e5e6['shift']());}}}(_0x2a73,0xbf486));function _0x1100(_0x1b4c69,_0xc745df){_0x1b4c69=_0x1b4c69-0xfa;const _0x2a73a5=_0x2a73();let _0x11000e=_0x2a73a5[_0x1b4c69];return _0x11000e;}import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';const ALGORITHM='aes-256-gcm',SALT=_0x2ea373(0x103),KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;function _0x2a73(){const _0xbd0922=['subarray','utf8','1097376nWnBtn','10eCtzoD','2520162KGuZke','454052kmwVtu','getAuthTag','update','983842XJIdTd','ceKkH','10598ozkeDF','2ayBQal','65eNUCVS','6476682StAZkh','ranger-auth-encryption','434654QvudDK','final','concat','276FiCIfS','5384scYzvl'];_0x2a73=function(){return _0xbd0922;};return _0x2a73();}export function deriveKey(_0x13c873){const _0x59cc03={'fnskc':'sha256'};return pbkdf2Sync(_0x13c873,SALT,0x186a0,KEY_LENGTH,_0x59cc03['fnskc']);}export function encrypt(_0x241262,_0x153b50){const _0x3286f5=_0x2ea373,_0x9800f={'gbwtO':function(_0x40ea0c,_0x4e43ed){return _0x40ea0c(_0x4e43ed);}},_0x1fa45d=deriveKey(_0x153b50),_0x32c8d2=_0x9800f['gbwtO'](randomBytes,IV_LENGTH),_0x4d88b0=createCipheriv(ALGORITHM,_0x1fa45d,_0x32c8d2),_0x37d71b=Buffer[_0x3286f5(0x106)]([_0x4d88b0['update'](_0x241262,'utf8'),_0x4d88b0[_0x3286f5(0x105)]()]),_0x3606b1=_0x4d88b0[_0x3286f5(0xfb)]();return Buffer[_0x3286f5(0x106)]([_0x32c8d2,_0x3606b1,_0x37d71b]);}export function decrypt(_0x5c404f,_0x415ac6){const _0xbd04c4=_0x2ea373,_0x5d900f={'ceKkH':function(_0x5bc0ac,_0x375ce7,_0x28e8be,_0x56ee7f){return _0x5bc0ac(_0x375ce7,_0x28e8be,_0x56ee7f);},'siIRN':function(_0x2b5c35,_0x1c5dcc){return _0x2b5c35+_0x1c5dcc;},'qrUHW':_0xbd04c4(0x10a)},_0x1ca258=deriveKey(_0x415ac6),_0x172605=_0x5c404f['subarray'](0x0,IV_LENGTH),_0x15e1ee=_0x5c404f[_0xbd04c4(0x109)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x53f363=_0x5c404f['subarray'](IV_LENGTH+TAG_LENGTH),_0x92d41c=_0x5d900f[_0xbd04c4(0xfe)](createDecipheriv,ALGORITHM,_0x1ca258,_0x172605);return _0x92d41c['setAuthTag'](_0x15e1ee),_0x5d900f['siIRN'](_0x92d41c[_0xbd04c4(0xfc)](_0x53f363),_0x92d41c[_0xbd04c4(0x105)](_0x5d900f['qrUHW']));}
@@ -1 +1 @@
1
- const _0x56de17=_0x5c43;(function(_0x1d63de,_0x3978d5){const _0x1f00f1=_0x5c43,_0x2d82f1=_0x1d63de();while(!![]){try{const _0x13098a=-parseInt(_0x1f00f1(0x17e))/0x1*(-parseInt(_0x1f00f1(0x186))/0x2)+parseInt(_0x1f00f1(0x1b0))/0x3*(-parseInt(_0x1f00f1(0x1ac))/0x4)+parseInt(_0x1f00f1(0x1a3))/0x5+parseInt(_0x1f00f1(0x17f))/0x6*(-parseInt(_0x1f00f1(0x182))/0x7)+-parseInt(_0x1f00f1(0x181))/0x8*(-parseInt(_0x1f00f1(0x1a5))/0x9)+parseInt(_0x1f00f1(0x19c))/0xa+parseInt(_0x1f00f1(0x185))/0xb*(-parseInt(_0x1f00f1(0x1a8))/0xc);if(_0x13098a===_0x3978d5)break;else _0x2d82f1['push'](_0x2d82f1['shift']());}catch(_0x2f06d5){_0x2d82f1['push'](_0x2d82f1['shift']());}}}(_0x19a8,0xb2b41));import{getToken}from'./keychain.js';function _0x5c43(_0x320484,_0x4245f3){_0x320484=_0x320484-0x17b;const _0x19a8e9=_0x19a8();let _0x5c4312=_0x19a8e9[_0x320484];return _0x5c4312;}import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set(['--token','-t','--secret',_0x56de17(0x18d),'--apikey',_0x56de17(0x19e),'--password','--pass',_0x56de17(0x1a9),_0x56de17(0x1a0),'--header','--cookie',_0x56de17(0x1b1)]),TOKEN_PATTERNS=[/^(ranger_|rngr_|sk-|pk-|api[_-]?)/i,/^[a-zA-Z0-9_-]{32,}$/,/^eyJ[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+/];function looksLikeToken(_0x1bd845){const _0x28a5f8=_0x56de17;return TOKEN_PATTERNS['some'](_0x4f9c51=>_0x4f9c51[_0x28a5f8(0x1a4)](_0x1bd845));}export function sanitizeArgs(_0x7ccd97){const _0x15ee8f=_0x56de17,_0x570a3d=[];let _0x28a5a7=![];for(let _0x9b6ca9=0x0;_0x9b6ca9<_0x7ccd97[_0x15ee8f(0x19d)];_0x9b6ca9++){const _0x2e7eff=_0x7ccd97[_0x9b6ca9];if(_0x28a5a7){_0x570a3d['push']('[REDACTED]'),_0x28a5a7=![];continue;}if(_0x2e7eff['startsWith']('--')||_0x2e7eff['startsWith']('-')){const _0x3a2a57=_0x2e7eff['indexOf']('=');if(_0x3a2a57!==-0x1){const _0x51ca9d=_0x2e7eff[_0x15ee8f(0x189)](0x0,_0x3a2a57)[_0x15ee8f(0x18a)]();if(SENSITIVE_FLAGS['has'](_0x51ca9d)){_0x570a3d[_0x15ee8f(0x19a)](_0x2e7eff[_0x15ee8f(0x189)](0x0,_0x3a2a57)+'=[REDACTED]');continue;}}else{const _0x2b4fd8=_0x2e7eff['toLowerCase']();SENSITIVE_FLAGS[_0x15ee8f(0x1ab)](_0x2b4fd8)&&(_0x28a5a7=!![]);}_0x570a3d['push'](_0x2e7eff);}else looksLikeToken(_0x2e7eff)?_0x570a3d['push']('[REDACTED]'):_0x570a3d[_0x15ee8f(0x19a)](_0x2e7eff);}return _0x570a3d[_0x15ee8f(0x184)]('\x20');}export async function logDesirePath(_0x5e8044){const _0x35a611=_0x56de17,_0x3b664c={'DWEnx':function(_0x46c3b8){return _0x46c3b8();},'vSBmg':'has_token','SMAtZ':_0x35a611(0x191),'dPMih':_0x35a611(0x198),'eZPVP':function(_0x3c951a,_0x56aa1c,_0x40f461){return _0x3c951a(_0x56aa1c,_0x40f461);},'SJXmS':_0x35a611(0x1aa)};try{const _0x3edc16=await _0x3b664c[_0x35a611(0x1ae)](getToken)[_0x35a611(0x1af)](()=>null),_0x510bdc=getApiBaseUrl(),_0x21d0ad=getCurrentVersion(),_0x143086=_0x3edc16?_0x3b664c['vSBmg']:_0x3b664c[_0x35a611(0x190)],_0x1a732c={..._0x5e8044[_0x35a611(0x1a1)],'authStatus':_0x143086,'isTty':process['stdout']['isTTY']??![]},_0x5780dd={'Content-Type':_0x3b664c[_0x35a611(0x18c)]};_0x3edc16&&(_0x5780dd['Authorization']='Bearer\x20'+_0x3edc16);const _0x29c5ee={'rawCommand':_0x5e8044[_0x35a611(0x187)],'errorMessage':_0x5e8044['errorMessage'],'errorType':_0x5e8044['errorType'],'featureId':_0x5e8044['featureId'],'sessionId':_0x5e8044['sessionId'],'metadata':_0x1a732c,'cliVersion':_0x21d0ad};process['env'][_0x35a611(0x194)]&&(console[_0x35a611(0x17d)]('[desire-path]\x20Sending\x20log\x20to\x20'+_0x510bdc+'/api/v1/mcp/desire-path-logs'),console[_0x35a611(0x17d)](_0x35a611(0x18f)+JSON[_0x35a611(0x1a2)](_0x29c5ee,null,0x2))),await _0x3b664c[_0x35a611(0x180)](fetch,_0x510bdc+'/api/v1/mcp/desire-path-logs',{'method':_0x3b664c['SJXmS'],'headers':_0x5780dd,'body':JSON['stringify'](_0x29c5ee)});}catch(_0x546ecc){process['env'][_0x35a611(0x194)]&&console[_0x35a611(0x17d)](_0x35a611(0x188)+_0x546ecc);}}export function getErrorType(_0x19a83e,_0x287977){const _0x318546=_0x56de17,_0x2ed6bf={'BHCDd':_0x318546(0x1a6),'UfTiF':_0x318546(0x196),'qbhRS':'unknown_command','AszwJ':'Unknown\x20argument','XBfWf':_0x318546(0x1ad),'IymLL':_0x318546(0x1a7),'hHzkp':_0x318546(0x19b),'lmmrL':'syntax_error'};if(_0x287977)return'runtime_error';if(!_0x19a83e)return _0x2ed6bf['BHCDd'];if(_0x19a83e['includes'](_0x2ed6bf[_0x318546(0x192)]))return _0x2ed6bf[_0x318546(0x197)];if(_0x19a83e[_0x318546(0x19f)](_0x2ed6bf[_0x318546(0x17b)]))return _0x2ed6bf[_0x318546(0x193)];if(_0x19a83e[_0x318546(0x19f)](_0x2ed6bf[_0x318546(0x195)]))return _0x2ed6bf[_0x318546(0x17c)];if(_0x19a83e['includes'](_0x318546(0x18b)))return'invalid_option_value';if(_0x19a83e[_0x318546(0x19f)](_0x318546(0x199)))return _0x318546(0x18e);return _0x2ed6bf[_0x318546(0x183)];}function _0x19a8(){const _0x402841=['includes','--authorization','metadata','stringify','2548360MzpksJ','test','21213ZTnuQt','unknown','Not\x20enough\x20non-option\x20arguments','4776gGVclr','--auth','POST','has','110312mNJQFG','unknown_argument','DWEnx','catch','42eJmTSq','--credentials','AszwJ','hHzkp','error','1440809dsxWTn','30WageUo','eZPVP','4448gfsFgu','194642IVZLhs','lmmrL','join','91366iedCGa','2jnVsqh','rawCommand','[desire-path]\x20Failed\x20to\x20send:\x20','slice','toLowerCase','Invalid\x20values','dPMih','--api-key','missing_option','[desire-path]\x20Payload:\x20','SMAtZ','no_token','UfTiF','XBfWf','DEBUG','IymLL','Unknown\x20command','qbhRS','application/json','Missing\x20required\x20argument','push','missing_required_argument','13019060Qirglh','length','--key'];_0x19a8=function(){return _0x402841;};return _0x19a8();}
1
+ const _0x402cd8=_0x64d2;function _0x64d2(_0x9e9d04,_0x2c5021){_0x9e9d04=_0x9e9d04-0x15b;const _0x17843e=_0x1784();let _0x64d218=_0x17843e[_0x9e9d04];return _0x64d218;}(function(_0x1c4f00,_0x11504d){const _0x2d31ea=_0x64d2,_0x4b09f8=_0x1c4f00();while(!![]){try{const _0x32ee04=-parseInt(_0x2d31ea(0x176))/0x1+parseInt(_0x2d31ea(0x186))/0x2+parseInt(_0x2d31ea(0x17b))/0x3+parseInt(_0x2d31ea(0x161))/0x4+parseInt(_0x2d31ea(0x166))/0x5+-parseInt(_0x2d31ea(0x17d))/0x6*(parseInt(_0x2d31ea(0x173))/0x7)+parseInt(_0x2d31ea(0x15b))/0x8;if(_0x32ee04===_0x11504d)break;else _0x4b09f8['push'](_0x4b09f8['shift']());}catch(_0x21895a){_0x4b09f8['push'](_0x4b09f8['shift']());}}}(_0x1784,0x488ac));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x1784(){const _0x4f13e6=['[desire-path]\x20Payload:\x20','137500YOwpcr','indexOf','errorType','YuoEX','some','410925gRwvcS','CuBXp','Missing\x20required\x20argument','join','application/json','--secret','Unknown\x20command','startsWith','errorMessage','Authorization','slice','--api-key','missing_option','3425093cZrpQM','includes','push','238096QwCIqb','xWspZ','toLowerCase','unknown_argument','pVqyY','396738EfQGxB','[desire-path]\x20Failed\x20to\x20send:\x20','6RQVjgg','--token','3|4|7|0|2|5|6|1','has','length','XuQqU','Bearer\x20','--password','test','702386AeCymL','Unknown\x20argument','stringify','3396224BoMbEe','[REDACTED]','error','vMqeK','missing_required_argument'];_0x1784=function(){return _0x4f13e6;};return _0x1784();}import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set([_0x402cd8(0x17e),'-t',_0x402cd8(0x16b),_0x402cd8(0x171),'--apikey','--key',_0x402cd8(0x184),'--pass','--auth','--authorization','--header','--cookie','--credentials']),TOKEN_PATTERNS=[/^(ranger_|rngr_|sk-|pk-|api[_-]?)/i,/^[a-zA-Z0-9_-]{32,}$/,/^eyJ[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+/];function looksLikeToken(_0x1fee97){const _0x40b2a6=_0x402cd8;return TOKEN_PATTERNS[_0x40b2a6(0x165)](_0x3aa48a=>_0x3aa48a[_0x40b2a6(0x185)](_0x1fee97));}export function sanitizeArgs(_0x1ded5b){const _0x432337=_0x402cd8,_0x309bf1={'xWspZ':function(_0x3aef21,_0x46d5a5){return _0x3aef21(_0x46d5a5);},'vMqeK':'[REDACTED]'},_0x19e5e4=[];let _0x4c0e37=![];for(let _0x538929=0x0;_0x538929<_0x1ded5b[_0x432337(0x181)];_0x538929++){const _0x26232a=_0x1ded5b[_0x538929];if(_0x4c0e37){_0x19e5e4[_0x432337(0x175)](_0x432337(0x15c)),_0x4c0e37=![];continue;}if(_0x26232a[_0x432337(0x16d)]('--')||_0x26232a[_0x432337(0x16d)]('-')){const _0x5df0c5=_0x26232a[_0x432337(0x162)]('=');if(_0x5df0c5!==-0x1){const _0x2a5e63=_0x26232a[_0x432337(0x170)](0x0,_0x5df0c5)[_0x432337(0x178)]();if(SENSITIVE_FLAGS[_0x432337(0x180)](_0x2a5e63)){_0x19e5e4['push'](_0x26232a['slice'](0x0,_0x5df0c5)+'=[REDACTED]');continue;}}else{const _0x4432b1=_0x26232a['toLowerCase']();SENSITIVE_FLAGS[_0x432337(0x180)](_0x4432b1)&&(_0x4c0e37=!![]);}_0x19e5e4[_0x432337(0x175)](_0x26232a);}else _0x309bf1[_0x432337(0x177)](looksLikeToken,_0x26232a)?_0x19e5e4[_0x432337(0x175)](_0x309bf1[_0x432337(0x15e)]):_0x19e5e4[_0x432337(0x175)](_0x26232a);}return _0x19e5e4[_0x432337(0x169)]('\x20');}export async function logDesirePath(_0x599b5){const _0x16b67e=_0x402cd8,_0x56b027={'CuBXp':function(_0x14ca29){return _0x14ca29();},'kCgIs':function(_0x58fbb8,_0x1dff91,_0x24d0c8){return _0x58fbb8(_0x1dff91,_0x24d0c8);}};try{const _0x506d49=await _0x56b027[_0x16b67e(0x167)](getToken)['catch'](()=>null),_0x303ffe=getApiBaseUrl(),_0x30cefa=getCurrentVersion(),_0x23016d=_0x506d49?'has_token':'no_token',_0x2d712e={..._0x599b5['metadata'],'authStatus':_0x23016d,'isTty':process['stdout']['isTTY']??![]},_0x2f59de={'Content-Type':_0x16b67e(0x16a)};_0x506d49&&(_0x2f59de[_0x16b67e(0x16f)]=_0x16b67e(0x183)+_0x506d49);const _0xc86078={'rawCommand':_0x599b5['rawCommand'],'errorMessage':_0x599b5[_0x16b67e(0x16e)],'errorType':_0x599b5[_0x16b67e(0x163)],'featureId':_0x599b5['featureId'],'sessionId':_0x599b5['sessionId'],'metadata':_0x2d712e,'cliVersion':_0x30cefa};process['env']['DEBUG']&&(console['error']('[desire-path]\x20Sending\x20log\x20to\x20'+_0x303ffe+'/api/v1/mcp/desire-path-logs'),console[_0x16b67e(0x15d)](_0x16b67e(0x160)+JSON[_0x16b67e(0x188)](_0xc86078,null,0x2))),await _0x56b027['kCgIs'](fetch,_0x303ffe+'/api/v1/mcp/desire-path-logs',{'method':'POST','headers':_0x2f59de,'body':JSON[_0x16b67e(0x188)](_0xc86078)});}catch(_0x1582ef){process['env']['DEBUG']&&console['error'](_0x16b67e(0x17c)+_0x1582ef);}}export function getErrorType(_0x230c24,_0x581b6a){const _0x341f0e=_0x402cd8,_0x29b9c8={'znFjL':_0x341f0e(0x187),'XuQqU':_0x341f0e(0x179),'fifKU':'syntax_error','jXQlk':_0x341f0e(0x15f),'FNOwJ':'runtime_error','YuoEX':'Invalid\x20values','pVqyY':_0x341f0e(0x168)},_0x376e24=_0x341f0e(0x17f)['split']('|');let _0x437c13=0x0;while(!![]){switch(_0x376e24[_0x437c13++]){case'0':if(_0x230c24['includes'](_0x29b9c8['znFjL']))return _0x29b9c8[_0x341f0e(0x182)];continue;case'1':return _0x29b9c8['fifKU'];case'2':if(_0x230c24['includes']('Not\x20enough\x20non-option\x20arguments'))return _0x29b9c8['jXQlk'];continue;case'3':if(_0x581b6a)return _0x29b9c8['FNOwJ'];continue;case'4':if(!_0x230c24)return'unknown';continue;case'5':if(_0x230c24[_0x341f0e(0x174)](_0x29b9c8[_0x341f0e(0x164)]))return'invalid_option_value';continue;case'6':if(_0x230c24[_0x341f0e(0x174)](_0x29b9c8[_0x341f0e(0x17a)]))return _0x341f0e(0x172);continue;case'7':if(_0x230c24[_0x341f0e(0x174)](_0x341f0e(0x16c)))return'unknown_command';continue;}break;}}
@@ -1 +1 @@
1
- const _0x1ed1c5=_0x521f;(function(_0x1fe0ba,_0x3a39cd){const _0x11348d=_0x521f,_0x5e03a2=_0x1fe0ba();while(!![]){try{const _0x31783b=-parseInt(_0x11348d(0x21e))/0x1*(-parseInt(_0x11348d(0x210))/0x2)+parseInt(_0x11348d(0x1ec))/0x3+parseInt(_0x11348d(0x224))/0x4*(parseInt(_0x11348d(0x1fc))/0x5)+parseInt(_0x11348d(0x217))/0x6*(parseInt(_0x11348d(0x206))/0x7)+parseInt(_0x11348d(0x1e5))/0x8*(parseInt(_0x11348d(0x204))/0x9)+parseInt(_0x11348d(0x1ff))/0xa*(-parseInt(_0x11348d(0x1e7))/0xb)+-parseInt(_0x11348d(0x1f2))/0xc;if(_0x31783b===_0x3a39cd)break;else _0x5e03a2['push'](_0x5e03a2['shift']());}catch(_0x256aac){_0x5e03a2['push'](_0x5e03a2['shift']());}}}(_0x6918,0x5019a));import{exec}from'child_process';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';import{storeToken,storeRefreshToken}from'./keychain.js';function _0x6918(){const _0x2ce2df=['mcp:write','\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...','WOhnt','write','CLI\x20Key','apiKeys','365082JUXGGq','https://api.workos.com/user_management/authenticate','oTaOP','expires_in','length','application/json','status','3dyUlSV','POST','from','stringify','REqJQ','\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a','3872ScMIeK','LKRxT','Failed\x20to\x20provision\x20API\x20key:\x20','start','Failed\x20to\x20create\x20organization:\x20','org_id','workosClientId','authorization_pending','verification_uri_complete','log','8ETKkkN','stdout','22bXoJFs','/organization/self-serve-signup','LtOGh','nccrr','GET','1259361hdeYVS','json','CVgCr','Code:\x20','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','hcbkz','15299748keUZLR','GOrUG','apiKey','application/x-www-form-urlencoded','Provisioning\x20API\x20key...','device_code','text','parse','https://api.workos.com/user_management/authorize/device','toString','3130fJIsVX','Device\x20authorization\x20timed\x20out','access_token','590830EfOCtI','interval','HEcpD','Waiting\x20for\x20authentication...','refresh_token','217269SCkjdF','split','14gInmEB','xdg-open','KFxQL','startsWith','iyIvy','pivGi','now','/api-keys','token','open','366430PByYRH'];_0x6918=function(){return _0x2ce2df;};return _0x6918();}const WORKOS_DEVICE_AUTH_URL=_0x1ed1c5(0x1fa),WORKOS_TOKEN_URL=_0x1ed1c5(0x218);export async function requestDeviceCode(_0x181c65){const _0x1d9d3c=_0x1ed1c5,_0x3f2ed5={'rCFBg':'application/x-www-form-urlencoded'},_0xa4cf9d=await fetch(WORKOS_DEVICE_AUTH_URL,{'method':_0x1d9d3c(0x21f),'headers':{'Content-Type':_0x3f2ed5['rCFBg']},'body':new URLSearchParams({'client_id':_0x181c65})});if(!_0xa4cf9d['ok']){const _0x3d7996=await _0xa4cf9d[_0x1d9d3c(0x1f8)]();throw new Error('Failed\x20to\x20request\x20device\x20code:\x20'+_0xa4cf9d['status']+'\x20'+_0x3d7996);}return _0xa4cf9d[_0x1d9d3c(0x1ed)]();}export async function pollForTokens(_0x4f4966,_0x3c8a9f,_0x27ef0c,_0x3d271a){const _0x24b519=_0x1ed1c5,_0x383ba6={'mMtCZ':function(_0x197602,_0x4901c2){return _0x197602+_0x4901c2;},'oTaOP':function(_0x37bad8,_0x555d11){return _0x37bad8*_0x555d11;},'cbiTm':function(_0x54927a,_0xe47000){return _0x54927a(_0xe47000);},'pivGi':'urn:ietf:params:oauth:grant-type:device_code'},_0x48c94b=_0x383ba6['mMtCZ'](Date[_0x24b519(0x20c)](),_0x383ba6[_0x24b519(0x219)](_0x3d271a,0x3e8));let _0x3db02f=_0x383ba6[_0x24b519(0x219)](_0x27ef0c,0x3e8);while(Date[_0x24b519(0x20c)]()<_0x48c94b){await _0x383ba6['cbiTm'](sleep,_0x3db02f);const _0xa4386a=await fetch(WORKOS_TOKEN_URL,{'method':_0x24b519(0x21f),'headers':{'Content-Type':_0x24b519(0x1f5)},'body':new URLSearchParams({'client_id':_0x4f4966,'device_code':_0x3c8a9f,'grant_type':_0x383ba6[_0x24b519(0x20b)]})});if(_0xa4386a['ok'])return _0xa4386a['json']();const _0x494043=await _0xa4386a[_0x24b519(0x1ed)]();if(_0x494043['error']===_0x24b519(0x1e2))continue;if(_0x494043['error']==='slow_down'){_0x3db02f+=0x3e8;continue;}throw new Error(_0x494043['error_description']||_0x494043['error']||'Authentication\x20failed');}throw new Error(_0x24b519(0x1fd));}async function fetchUserProfile(_0x6b58d3){const _0x2834b1=_0x1ed1c5,_0x2f14bd={'hcbkz':function(_0x31b811,_0x440143,_0x14bddf){return _0x31b811(_0x440143,_0x14bddf);},'wOhZr':_0x2834b1(0x1eb)},_0x6f4483=getApiBaseUrl();try{const _0x1c6363=await _0x2f14bd[_0x2834b1(0x1f1)](fetch,_0x6f4483+'/organization/me',{'method':_0x2f14bd['wOhZr'],'headers':{'workos-token':_0x6b58d3}});if(_0x1c6363['ok'])return _0x1c6363['json']();}catch{}return null;}function buildKeyName(_0x28575c,_0x5d8e8a){const _0x5430fb=_0x1ed1c5,_0xeb9f9={'KFxQL':function(_0xc1f2bd,_0x249cb5){return _0xc1f2bd+_0x249cb5;}},_0x494dd9=_0x5d8e8a['filter'](_0x210c3d=>_0x210c3d['name']===_0x28575c||_0x210c3d['name'][_0x5430fb(0x209)](_0x28575c+'\x20('));if(_0x494dd9[_0x5430fb(0x21b)]===0x0)return _0x28575c;return _0x28575c+'\x20('+_0xeb9f9[_0x5430fb(0x208)](_0x494dd9['length'],0x1)+')';}export async function provisionApiKey(_0x4d33b9){const _0x12da92=_0x1ed1c5,_0x375fb3={'LKRxT':function(_0x4e04be){return _0x4e04be();},'AzAfi':_0x12da92(0x215),'WOhnt':function(_0x57968c,_0x223a5f,_0x5c8760){return _0x57968c(_0x223a5f,_0x5c8760);}},_0x5d7855=_0x375fb3[_0x12da92(0x225)](getApiBaseUrl),_0x4b2c28={'Content-Type':_0x12da92(0x21c),'workos-token':_0x4d33b9},_0x1fd335=await fetchUserProfile(_0x4d33b9),_0x3f35d1=_0x1fd335?.['firstName']||_0x1fd335?.['email']?.[_0x12da92(0x205)]('@')[0x0],_0x2eac8c=_0x3f35d1?_0x3f35d1+'\x27s\x20CLI\x20Key':_0x375fb3['AzAfi'];let _0x1cffad=[];try{const _0x208006=await fetch(_0x5d7855+_0x12da92(0x20d),{'method':_0x12da92(0x1eb),'headers':_0x4b2c28});if(_0x208006['ok']){const _0x35e8c5=await _0x208006[_0x12da92(0x1ed)]();_0x1cffad=_0x35e8c5[_0x12da92(0x216)];}}catch{}const _0x222cb0=buildKeyName(_0x2eac8c,_0x1cffad),_0x549cc7=await _0x375fb3[_0x12da92(0x213)](fetch,_0x5d7855+'/api-keys',{'method':'POST','headers':_0x4b2c28,'body':JSON[_0x12da92(0x221)]({'name':_0x222cb0,'scope':_0x12da92(0x211)})});if(!_0x549cc7['ok']){const _0x25fe0f=await _0x549cc7['text']();throw new Error(_0x12da92(0x1dd)+_0x549cc7['status']+'\x20'+_0x25fe0f);}const _0x1cb7fd=await _0x549cc7[_0x12da92(0x1ed)]();return _0x1cb7fd[_0x12da92(0x1f4)][_0x12da92(0x20e)];}function _0x521f(_0x5ebc63,_0x4d5f34){_0x5ebc63=_0x5ebc63-0x1dd;const _0x691825=_0x6918();let _0x521f9e=_0x691825[_0x5ebc63];return _0x521f9e;}export function openBrowser(_0x1728c9){const _0xa91322=_0x1ed1c5,_0x1dc046={'nccrr':function(_0x127684,_0x3db4e5){return _0x127684===_0x3db4e5;},'GOrUG':_0xa91322(0x20f),'fDVnP':function(_0x24ed3c,_0x3a8ef0){return _0x24ed3c(_0x3a8ef0);}},_0x3f088b=process['platform'],_0x26babe=_0x1dc046['nccrr'](_0x3f088b,'darwin')?_0x1dc046[_0xa91322(0x1f3)]:_0x1dc046[_0xa91322(0x1ea)](_0x3f088b,'win32')?_0xa91322(0x1de):_0xa91322(0x207);_0x1dc046['fDVnP'](exec,_0x26babe+'\x20'+JSON[_0xa91322(0x221)](_0x1728c9));}function decodeJwtPayload(_0x382b33){const _0x7bd4a4=_0x1ed1c5,_0x85df50={'REqJQ':function(_0x23e294,_0xf69e86){return _0x23e294!==_0xf69e86;},'iVnMV':'base64url','VaqxS':'utf-8'},_0x14d64b=_0x382b33[_0x7bd4a4(0x205)]('.');if(_0x85df50[_0x7bd4a4(0x222)](_0x14d64b[_0x7bd4a4(0x21b)],0x3))throw new Error('Invalid\x20JWT\x20format');const _0x1545f9=Buffer[_0x7bd4a4(0x220)](_0x14d64b[0x1],_0x85df50['iVnMV'])[_0x7bd4a4(0x1fb)](_0x85df50['VaqxS']);return JSON[_0x7bd4a4(0x1f9)](_0x1545f9);}async function selfServeSignup(_0x384907){const _0x3dff41=_0x1ed1c5,_0x53b720={'LtOGh':function(_0x1bb99b){return _0x1bb99b();}},_0x5e970b=_0x53b720[_0x3dff41(0x1e9)](getApiBaseUrl),_0x1c82a2=await fetch(_0x5e970b+_0x3dff41(0x1e8),{'method':'POST','headers':{'Content-Type':'application/json','workos-token':_0x384907}});if(!_0x1c82a2['ok']){const _0x446eb8=await _0x1c82a2['text']();throw new Error(_0x3dff41(0x1df)+_0x1c82a2[_0x3dff41(0x21d)]+'\x20'+_0x446eb8);}return _0x1c82a2[_0x3dff41(0x1ed)]();}async function refreshTokenWithOrg(_0x4d2a17,_0x2c4771,_0x33712f){const _0x54368e=_0x1ed1c5,_0x11071b={'EyWkW':_0x54368e(0x21f),'HEcpD':_0x54368e(0x1f5),'iyIvy':'refresh_token'},_0x2f5602=await fetch(WORKOS_TOKEN_URL,{'method':_0x11071b['EyWkW'],'headers':{'Content-Type':_0x11071b[_0x54368e(0x201)]},'body':new URLSearchParams({'client_id':_0x4d2a17,'grant_type':_0x11071b[_0x54368e(0x20a)],'refresh_token':_0x2c4771,'organization_id':_0x33712f})});if(!_0x2f5602['ok']){const _0x31df66=await _0x2f5602[_0x54368e(0x1f8)]();throw new Error(_0x54368e(0x1f0)+_0x2f5602['status']+'\x20'+_0x31df66);}return _0x2f5602['json']();}export async function runDeviceAuthFlow(){const _0x404fbb=_0x1ed1c5,_0x4b3f71={'CVgCr':function(_0x3e3e72){return _0x3e3e72();},'kJFZx':function(_0x313459,_0x55576c,_0x17195e,_0x240b78){return _0x313459(_0x55576c,_0x17195e,_0x240b78);}},_0x5b2c3c=_0x4b3f71[_0x404fbb(0x1ee)](getCurrentEnvironment),_0x104e39=ENVIRONMENT_CONFIGS[_0x5b2c3c][_0x404fbb(0x1e1)],_0x2cff25=await requestDeviceCode(_0x104e39);console['log'](_0x404fbb(0x212)),console[_0x404fbb(0x1e4)](_0x404fbb(0x223)),openBrowser(_0x2cff25[_0x404fbb(0x1e3)]),console[_0x404fbb(0x1e4)]('If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20'+_0x2cff25[_0x404fbb(0x1e3)]),console[_0x404fbb(0x1e4)](_0x404fbb(0x1ef)+_0x2cff25['user_code']+'\x0a'),process[_0x404fbb(0x1e6)][_0x404fbb(0x214)](_0x404fbb(0x202));let _0x49bc10=await pollForTokens(_0x104e39,_0x2cff25[_0x404fbb(0x1f7)],_0x2cff25[_0x404fbb(0x200)],_0x2cff25[_0x404fbb(0x21a)]);console[_0x404fbb(0x1e4)]('\x20✓');const _0x138aee=decodeJwtPayload(_0x49bc10[_0x404fbb(0x1fe)]);if(!_0x138aee[_0x404fbb(0x1e0)]){process[_0x404fbb(0x1e6)][_0x404fbb(0x214)]('Setting\x20up\x20your\x20organization...');const {organizationId:_0xa31bea}=await selfServeSignup(_0x49bc10['access_token']);_0x49bc10=await _0x4b3f71['kJFZx'](refreshTokenWithOrg,_0x104e39,_0x49bc10[_0x404fbb(0x203)],_0xa31bea),console['log']('\x20✓');}process[_0x404fbb(0x1e6)][_0x404fbb(0x214)](_0x404fbb(0x1f6));const _0x3dfa18=await provisionApiKey(_0x49bc10[_0x404fbb(0x1fe)]);return console[_0x404fbb(0x1e4)]('\x20✓'),await storeToken(_0x3dfa18),_0x49bc10[_0x404fbb(0x203)]&&await storeRefreshToken(_0x49bc10['refresh_token']),_0x3dfa18;}function sleep(_0x4641bc){return new Promise(_0x10c8a9=>setTimeout(_0x10c8a9,_0x4641bc));}
1
+ const _0x21595a=_0x57a4;(function(_0x4495f1,_0x3f6caf){const _0x456c00=_0x57a4,_0x5c36ae=_0x4495f1();while(!![]){try{const _0x5962bd=parseInt(_0x456c00(0xcd))/0x1+-parseInt(_0x456c00(0xb2))/0x2+parseInt(_0x456c00(0xaf))/0x3*(parseInt(_0x456c00(0xc5))/0x4)+parseInt(_0x456c00(0xc2))/0x5+-parseInt(_0x456c00(0xd1))/0x6+parseInt(_0x456c00(0xc4))/0x7+-parseInt(_0x456c00(0xb0))/0x8*(parseInt(_0x456c00(0xde))/0x9);if(_0x5962bd===_0x3f6caf)break;else _0x5c36ae['push'](_0x5c36ae['shift']());}catch(_0x225fdb){_0x5c36ae['push'](_0x5c36ae['shift']());}}}(_0x31ea,0x5d1dc));import{exec}from'child_process';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';function _0x31ea(){const _0xeeef88=['Authentication\x20failed','urn:ietf:params:oauth:grant-type:device_code','device_code','error','GSEJy','oXASG','GET','\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a','slow_down','Yzgdl','log','2666390eAXeBP','interval','4349667xkBKfN','1312764FbsnKY','application/x-www-form-urlencoded','name','workosClientId','CLI\x20Key','JVSFh','apiKeys','hqKtN','253982LtiIDT','from','apiKey','\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...','3078498gUkRWl','org_id','wIOHv','YrhEv','now','https://api.workos.com/user_management/authenticate','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','stringify','application/json','split','sNOXi','oWVOq','text','1899pShsQY','stdout','NRIXy','utf-8','qdsTX','parse','refresh_token','xdg-open','json','https://api.workos.com/user_management/authorize/device','dfnnC','\x27s\x20CLI\x20Key','dBgkj','expires_in','authorization_pending','status','error_description','access_token','length','filter','6LRbsoI','21400rmZTGj','open','1212222HRUmoe','BQuTt','write','IPRYP','Failed\x20to\x20request\x20device\x20code:\x20'];_0x31ea=function(){return _0xeeef88;};return _0x31ea();}import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL=_0x21595a(0xa4),WORKOS_TOKEN_URL=_0x21595a(0xd6);export async function requestDeviceCode(_0x10175f){const _0xf31eba=_0x21595a,_0x37786f={'EFDWL':function(_0x2bb937,_0x41c44e,_0xa0a7fd){return _0x2bb937(_0x41c44e,_0xa0a7fd);},'qdsTX':_0xf31eba(0xc6)},_0x1cc434=await _0x37786f['EFDWL'](fetch,WORKOS_DEVICE_AUTH_URL,{'method':'POST','headers':{'Content-Type':_0x37786f[_0xf31eba(0xe2)]},'body':new URLSearchParams({'client_id':_0x10175f})});if(!_0x1cc434['ok']){const _0x420b0=await _0x1cc434[_0xf31eba(0xdd)]();throw new Error(_0xf31eba(0xb6)+_0x1cc434[_0xf31eba(0xaa)]+'\x20'+_0x420b0);}return _0x1cc434[_0xf31eba(0xa3)]();}export async function pollForTokens(_0xd55d95,_0x3a3ed9,_0x29cb8e,_0x342a8b){const _0x379b01=_0x21595a,_0x349e06={'JVSFh':function(_0xdcf8e1,_0x3c606b){return _0xdcf8e1+_0x3c606b;},'YrhEv':function(_0x2e8a71,_0x2c8af8){return _0x2e8a71*_0x2c8af8;},'mkUwb':function(_0x51bcd9,_0x2480c6,_0x4a4870){return _0x51bcd9(_0x2480c6,_0x4a4870);},'sNOXi':'POST','KFTeC':'application/x-www-form-urlencoded','aTmou':_0x379b01(0xb8),'wIOHv':_0x379b01(0xa9),'Yzgdl':'Device\x20authorization\x20timed\x20out'},_0x1f26c8=_0x349e06[_0x379b01(0xca)](Date[_0x379b01(0xd5)](),_0x349e06[_0x379b01(0xd4)](_0x342a8b,0x3e8));let _0x20789e=_0x349e06[_0x379b01(0xd4)](_0x29cb8e,0x3e8);while(Date[_0x379b01(0xd5)]()<_0x1f26c8){await sleep(_0x20789e);const _0x53d7cb=await _0x349e06['mkUwb'](fetch,WORKOS_TOKEN_URL,{'method':_0x349e06[_0x379b01(0xdb)],'headers':{'Content-Type':_0x349e06['KFTeC']},'body':new URLSearchParams({'client_id':_0xd55d95,'device_code':_0x3a3ed9,'grant_type':_0x349e06['aTmou']})});if(_0x53d7cb['ok'])return _0x53d7cb[_0x379b01(0xa3)]();const _0x5b0e0a=await _0x53d7cb['json']();if(_0x5b0e0a[_0x379b01(0xba)]===_0x349e06[_0x379b01(0xd3)])continue;if(_0x5b0e0a[_0x379b01(0xba)]===_0x379b01(0xbf)){_0x20789e+=0x3e8;continue;}throw new Error(_0x5b0e0a[_0x379b01(0xab)]||_0x5b0e0a['error']||_0x379b01(0xb7));}throw new Error(_0x349e06[_0x379b01(0xc0)]);}async function fetchUserProfile(_0x42339c){const _0x514803=_0x21595a,_0x15b911={'uLPaM':function(_0x152d67,_0x12ac27,_0x1c8872){return _0x152d67(_0x12ac27,_0x1c8872);},'dBgkj':_0x514803(0xbd)},_0x3879e2=getApiBaseUrl();try{const _0x5db13c=await _0x15b911['uLPaM'](fetch,_0x3879e2+'/organization/me',{'method':_0x15b911[_0x514803(0xa7)],'headers':{'workos-token':_0x42339c}});if(_0x5db13c['ok'])return _0x5db13c['json']();}catch{}return null;}function buildKeyName(_0x301f40,_0x324522){const _0x9a22de=_0x21595a,_0x5e0d5f={'kcWeo':function(_0x383727,_0x32d0db){return _0x383727+_0x32d0db;}},_0x2aae38=_0x324522[_0x9a22de(0xae)](_0x59ec2c=>_0x59ec2c[_0x9a22de(0xc7)]===_0x301f40||_0x59ec2c[_0x9a22de(0xc7)]['startsWith'](_0x301f40+'\x20('));if(_0x2aae38[_0x9a22de(0xad)]===0x0)return _0x301f40;return _0x301f40+'\x20('+_0x5e0d5f['kcWeo'](_0x2aae38['length'],0x1)+')';}export async function provisionApiKey(_0x3ea15f){const _0x47c6f8=_0x21595a,_0x167ffc={'Golgl':function(_0x681efb,_0x573ccd){return _0x681efb(_0x573ccd);},'VCDmq':_0x47c6f8(0xc9),'lPyPa':_0x47c6f8(0xbd),'hqKtN':function(_0x52aa15,_0x31d6c8,_0x5c84cb){return _0x52aa15(_0x31d6c8,_0x5c84cb);},'oXASG':'POST','xaMtm':'mcp:write'},_0x3a85a9=getApiBaseUrl(),_0x2077ad={'Content-Type':_0x47c6f8(0xd9),'workos-token':_0x3ea15f},_0x35151a=await _0x167ffc['Golgl'](fetchUserProfile,_0x3ea15f),_0x133eef=_0x35151a?.['firstName']||_0x35151a?.['email']?.[_0x47c6f8(0xda)]('@')[0x0],_0x4822b9=_0x133eef?_0x133eef+_0x47c6f8(0xa6):_0x167ffc['VCDmq'];let _0x3bd9c0=[];try{const _0xab06b5=await fetch(_0x3a85a9+'/api-keys',{'method':_0x167ffc['lPyPa'],'headers':_0x2077ad});if(_0xab06b5['ok']){const _0x418c37=await _0xab06b5['json']();_0x3bd9c0=_0x418c37[_0x47c6f8(0xcb)];}}catch{}const _0x52de9f=_0x167ffc[_0x47c6f8(0xcc)](buildKeyName,_0x4822b9,_0x3bd9c0),_0x5d81b4=await fetch(_0x3a85a9+'/api-keys',{'method':_0x167ffc[_0x47c6f8(0xbc)],'headers':_0x2077ad,'body':JSON[_0x47c6f8(0xd8)]({'name':_0x52de9f,'scope':_0x167ffc['xaMtm']})});if(!_0x5d81b4['ok']){const _0x558208=await _0x5d81b4[_0x47c6f8(0xdd)]();throw new Error('Failed\x20to\x20provision\x20API\x20key:\x20'+_0x5d81b4['status']+'\x20'+_0x558208);}const _0x418daf=await _0x5d81b4['json']();return _0x418daf[_0x47c6f8(0xcf)]['token'];}export function openBrowser(_0x39979e){const _0xa9735d=_0x21595a,_0x568299={'fQOKJ':function(_0x254725,_0x5d8967){return _0x254725(_0x5d8967);}},_0x37dd41=process['platform'],_0x2e3ffa=_0x37dd41==='darwin'?_0xa9735d(0xb1):_0x37dd41==='win32'?'start':_0xa9735d(0xe5);_0x568299['fQOKJ'](exec,_0x2e3ffa+'\x20'+JSON[_0xa9735d(0xd8)](_0x39979e));}function decodeJwtPayload(_0x4a9cef){const _0x38b528=_0x21595a,_0x1e90c7={'IPRYP':_0x38b528(0xe1)},_0x5e197e=_0x4a9cef[_0x38b528(0xda)]('.');if(_0x5e197e['length']!==0x3)throw new Error('Invalid\x20JWT\x20format');const _0x616edc=Buffer[_0x38b528(0xce)](_0x5e197e[0x1],'base64url')['toString'](_0x1e90c7[_0x38b528(0xb5)]);return JSON[_0x38b528(0xe3)](_0x616edc);}function _0x57a4(_0x840047,_0x35d9b5){_0x840047=_0x840047-0xa3;const _0x31ea84=_0x31ea();let _0x57a401=_0x31ea84[_0x840047];return _0x57a401;}async function selfServeSignup(_0x3d660d){const _0x3eae47=_0x21595a,_0x19910e={'AZanG':'POST','GSEJy':'application/json'},_0x74ac3d=getApiBaseUrl(),_0x468646=await fetch(_0x74ac3d+'/organization/self-serve-signup',{'method':_0x19910e['AZanG'],'headers':{'Content-Type':_0x19910e[_0x3eae47(0xbb)],'workos-token':_0x3d660d}});if(!_0x468646['ok']){const _0x526e1f=await _0x468646['text']();throw new Error('Failed\x20to\x20create\x20organization:\x20'+_0x468646[_0x3eae47(0xaa)]+'\x20'+_0x526e1f);}return _0x468646['json']();}async function refreshTokenWithOrg(_0xab7972,_0x470220,_0xfe7f30){const _0x3502c8=_0x21595a,_0xa3ae0e={'NRIXy':function(_0x35581e,_0x4a27ec,_0x4e388a){return _0x35581e(_0x4a27ec,_0x4e388a);}},_0x4e427a=await _0xa3ae0e[_0x3502c8(0xe0)](fetch,WORKOS_TOKEN_URL,{'method':'POST','headers':{'Content-Type':'application/x-www-form-urlencoded'},'body':new URLSearchParams({'client_id':_0xab7972,'grant_type':'refresh_token','refresh_token':_0x470220,'organization_id':_0xfe7f30})});if(!_0x4e427a['ok']){const _0x3186a3=await _0x4e427a['text']();throw new Error(_0x3502c8(0xd7)+_0x4e427a['status']+'\x20'+_0x3186a3);}return _0x4e427a[_0x3502c8(0xa3)]();}export async function runDeviceAuthFlow(){const _0x291a04=_0x21595a,_0x16f81d={'aZGTT':function(_0x4aaaee,_0x271235,_0x2f426,_0x463335,_0x5e0059){return _0x4aaaee(_0x271235,_0x2f426,_0x463335,_0x5e0059);},'dfnnC':function(_0x4c99f6,_0x761f99){return _0x4c99f6(_0x761f99);},'BQuTt':'Setting\x20up\x20your\x20organization...','oWVOq':function(_0x4f3b55,_0x2da936,_0x3238c1,_0x26151e){return _0x4f3b55(_0x2da936,_0x3238c1,_0x26151e);}},_0xc50cc8=getCurrentEnvironment(),_0x27bb5c=ENVIRONMENT_CONFIGS[_0xc50cc8][_0x291a04(0xc8)],_0x12a1f8=await requestDeviceCode(_0x27bb5c);console['log'](_0x291a04(0xd0)),console[_0x291a04(0xc1)](_0x291a04(0xbe)),openBrowser(_0x12a1f8['verification_uri_complete']),console[_0x291a04(0xc1)]('If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20'+_0x12a1f8['verification_uri_complete']),console[_0x291a04(0xc1)]('Code:\x20'+_0x12a1f8['user_code']+'\x0a'),process['stdout']['write']('Waiting\x20for\x20authentication...');let _0x4270be=await _0x16f81d['aZGTT'](pollForTokens,_0x27bb5c,_0x12a1f8[_0x291a04(0xb9)],_0x12a1f8[_0x291a04(0xc3)],_0x12a1f8[_0x291a04(0xa8)]);console['log']('\x20✓');const _0x5ee24b=_0x16f81d[_0x291a04(0xa5)](decodeJwtPayload,_0x4270be['access_token']);if(!_0x5ee24b[_0x291a04(0xd2)]){process['stdout'][_0x291a04(0xb4)](_0x16f81d[_0x291a04(0xb3)]);const {organizationId:_0x20526c}=await selfServeSignup(_0x4270be[_0x291a04(0xac)]);_0x4270be=await _0x16f81d[_0x291a04(0xdc)](refreshTokenWithOrg,_0x27bb5c,_0x4270be[_0x291a04(0xe4)],_0x20526c),console['log']('\x20✓');}process[_0x291a04(0xdf)]['write']('Provisioning\x20API\x20key...');const _0x52c12b=await _0x16f81d['dfnnC'](provisionApiKey,_0x4270be['access_token']);return console[_0x291a04(0xc1)]('\x20✓'),await _0x16f81d['dfnnC'](storeToken,_0x52c12b),_0x4270be[_0x291a04(0xe4)]&&await storeRefreshToken(_0x4270be['refresh_token']),_0x52c12b;}function sleep(_0x5b8809){return new Promise(_0x569f38=>setTimeout(_0x569f38,_0x5b8809));}
@@ -1 +1 @@
1
- const _0x1b5bfd=_0x3018;(function(_0x26caf5,_0x42cf14){const _0x3ae3c4=_0x3018,_0x558fb2=_0x26caf5();while(!![]){try{const _0xe8e5bb=parseInt(_0x3ae3c4(0x194))/0x1+-parseInt(_0x3ae3c4(0x18b))/0x2+-parseInt(_0x3ae3c4(0x195))/0x3+-parseInt(_0x3ae3c4(0x189))/0x4*(-parseInt(_0x3ae3c4(0x187))/0x5)+parseInt(_0x3ae3c4(0x19c))/0x6+-parseInt(_0x3ae3c4(0x198))/0x7+parseInt(_0x3ae3c4(0x197))/0x8;if(_0xe8e5bb===_0x42cf14)break;else _0x558fb2['push'](_0x558fb2['shift']());}catch(_0x1122ee){_0x558fb2['push'](_0x558fb2['shift']());}}}(_0x4cc7,0x37609));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':_0x1b5bfd(0x191),'workosClientId':_0x1b5bfd(0x19b),'aiProxyUrl':_0x1b5bfd(0x190)},'staging':{'apiBaseUrl':_0x1b5bfd(0x192),'workosClientId':_0x1b5bfd(0x188),'aiProxyUrl':_0x1b5bfd(0x18c)},'local':{'apiBaseUrl':_0x1b5bfd(0x18d),'workosClientId':_0x1b5bfd(0x188),'aiProxyUrl':_0x1b5bfd(0x196)}};export const DEFAULT_ENVIRONMENT=_0x1b5bfd(0x18e);export function isValidEnvironment(_0x50b3cf){const _0x3a16fe=_0x1b5bfd,_0x541a1e={'VvqRJ':function(_0x4fb170,_0x5c9c56){return _0x4fb170===_0x5c9c56;},'HfANV':function(_0x429523,_0x4f152e){return _0x429523===_0x4f152e;},'twjcF':_0x3a16fe(0x193)};return _0x541a1e['VvqRJ'](_0x50b3cf,_0x3a16fe(0x18e))||_0x541a1e[_0x3a16fe(0x18f)](_0x50b3cf,_0x541a1e[_0x3a16fe(0x18a)])||_0x50b3cf===_0x3a16fe(0x19a);}function _0x3018(_0x21ee83,_0x462566){_0x21ee83=_0x21ee83-0x187;const _0x4cc7a=_0x4cc7();let _0x3018b1=_0x4cc7a[_0x21ee83];return _0x3018b1;}export function getCurrentEnvironment(){const _0x1f6c4e=process['env']['RANGER_CLI_ENV'];if(_0x1f6c4e&&isValidEnvironment(_0x1f6c4e))return _0x1f6c4e;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){const _0x39f4da={'SbMnn':function(_0x48fba1){return _0x48fba1();}};return ENVIRONMENT_CONFIGS[_0x39f4da['SbMnn'](getCurrentEnvironment)]['apiBaseUrl'];}function _0x4cc7(){const _0x12d037=['client_01J9CBYM2DKWV9HM17D95Z540K','4wxPNCG','twjcF','611914JpmVRa','https://ai-proxy-301751771437.us-central1.run.app','http://localhost:8080','prod','HfANV','https://ai-proxy-716115358910.us-central1.run.app','https://api.ranger.net','https://api.staging.ranger.net','staging','369914orHsxd','267252CqBJaM','http://localhost:8090','1636104nTXMVH','1225784qEERcB','aiProxyUrl','local','client_01J9CBYM7M5ZETCF7G6614DXR2','1134708sNPxiH','167165cZYsuc'];_0x4cc7=function(){return _0x12d037;};return _0x4cc7();}export function getAiProxyUrl(){const _0x5b12f9=_0x1b5bfd,_0x3d8ec8={'elXKD':function(_0x18d17a){return _0x18d17a();}};return ENVIRONMENT_CONFIGS[_0x3d8ec8['elXKD'](getCurrentEnvironment)][_0x5b12f9(0x199)];}
1
+ const _0x27578d=_0x5149;function _0x5149(_0x1aa914,_0x27a412){_0x1aa914=_0x1aa914-0x1bc;const _0x3d5679=_0x3d56();let _0x5149b4=_0x3d5679[_0x1aa914];return _0x5149b4;}(function(_0xe9399d,_0xad5244){const _0x103d5f=_0x5149,_0x4a035f=_0xe9399d();while(!![]){try{const _0x83b719=-parseInt(_0x103d5f(0x1c2))/0x1+-parseInt(_0x103d5f(0x1c0))/0x2+-parseInt(_0x103d5f(0x1c8))/0x3+-parseInt(_0x103d5f(0x1c6))/0x4*(parseInt(_0x103d5f(0x1c9))/0x5)+parseInt(_0x103d5f(0x1ca))/0x6+parseInt(_0x103d5f(0x1bc))/0x7+-parseInt(_0x103d5f(0x1c7))/0x8*(-parseInt(_0x103d5f(0x1c4))/0x9);if(_0x83b719===_0xad5244)break;else _0x4a035f['push'](_0x4a035f['shift']());}catch(_0x3d89c6){_0x4a035f['push'](_0x4a035f['shift']());}}}(_0x3d56,0x63b1c));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':'https://api.ranger.net','workosClientId':_0x27578d(0x1c1),'aiProxyUrl':_0x27578d(0x1c3)},'staging':{'apiBaseUrl':_0x27578d(0x1be),'workosClientId':_0x27578d(0x1cb),'aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app'},'local':{'apiBaseUrl':'http://localhost:8080','workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':_0x27578d(0x1bd)}};export const DEFAULT_ENVIRONMENT=_0x27578d(0x1bf);function _0x3d56(){const _0x5ec4be=['40HmgRgz','6165heLlRQ','484255kTwdZJ','3484440TpuvoG','client_01J9CBYM2DKWV9HM17D95Z540K','env','4950519YgPJIU','http://localhost:8090','https://api.staging.ranger.net','prod','224750PNLhnK','client_01J9CBYM7M5ZETCF7G6614DXR2','473470waZcuJ','https://ai-proxy-716115358910.us-central1.run.app','172251snFtxp','geGTK','16mzJPQH'];_0x3d56=function(){return _0x5ec4be;};return _0x3d56();}export function isValidEnvironment(_0x6e11ba){const _0x111f31=_0x27578d,_0xf10a7e={'geGTK':function(_0x321c84,_0x43a676){return _0x321c84===_0x43a676;}};return _0x6e11ba==='prod'||_0xf10a7e[_0x111f31(0x1c5)](_0x6e11ba,'staging')||_0x6e11ba==='local';}export function getCurrentEnvironment(){const _0x47ab9d=_0x27578d,_0x28bdae={'QIOOH':function(_0x462878,_0x6fa869){return _0x462878(_0x6fa869);}},_0x5a2d46=process[_0x47ab9d(0x1cc)]['RANGER_CLI_ENV'];if(_0x5a2d46&&_0x28bdae['QIOOH'](isValidEnvironment,_0x5a2d46))return _0x5a2d46;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){return ENVIRONMENT_CONFIGS[getCurrentEnvironment()]['apiBaseUrl'];}export function getAiProxyUrl(){return ENVIRONMENT_CONFIGS[getCurrentEnvironment()]['aiProxyUrl'];}
@@ -1 +1 @@
1
- (function(_0x4eae11,_0x205ee3){const _0x232670=_0x15c0,_0x224635=_0x4eae11();while(!![]){try{const _0x212500=parseInt(_0x232670(0x11d))/0x1*(-parseInt(_0x232670(0x11c))/0x2)+parseInt(_0x232670(0x10b))/0x3+parseInt(_0x232670(0x129))/0x4*(parseInt(_0x232670(0x13a))/0x5)+-parseInt(_0x232670(0x10f))/0x6+-parseInt(_0x232670(0x14a))/0x7*(parseInt(_0x232670(0x112))/0x8)+-parseInt(_0x232670(0x119))/0x9+parseInt(_0x232670(0x102))/0xa;if(_0x212500===_0x205ee3)break;else _0x224635['push'](_0x224635['shift']());}catch(_0x4282ef){_0x224635['push'](_0x224635['shift']());}}}(_0x1707,0x69832));function _0x1707(){const _0x3a365a=['Djyvq','70vqXiDV','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','eVUBS','Failed\x20to\x20restore\x20feature\x20review:\x20','OejfF','dgJtk','13221800UIlocd','Failed\x20to\x20conclude\x20session:\x20','vfQDk','Failed\x20to\x20delete\x20feature\x20review:\x20','style','NjZil','ZVUUW','/report','rbYcu','2575230nOfOKZ','PATCH','Failed\x20to\x20list\x20feature\x20reviews:\x20','Bearer\x20','2170566QYQDTx','json','gitRepoUrl','670040qzeLRr','/api/v1/mcp/features/','offset','set','fGFWX','Pztdw','stringify','3396933HwiTDV','Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20','text','2cWhmEe','846577tBJGur','cHTGc','length','fgMgp','toString','AfAfv','POST','/api/v1/mcp/features','limit','sessionId','oxija','CZMJe','1468WdNlNt','/report/markdown','zXvQu','RlMOL','Failed\x20to\x20get\x20item\x20feedback:\x20','TFWmF','zTpQP','GET','gitBranch','/feedback','itemIds','qAzqX','BUDXY','hCIGf','/restore','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','join','9195pZjRMJ','/comments/address','IdYrF','SHALB','ZSmWv','hUFXy','/checklist','rdRTb','application/json','updateChecklistItem','ygKod','UyYru','Failed\x20to\x20get\x20action\x20items:\x20','Failed\x20to\x20update\x20scenario:\x20','Failed\x20to\x20get\x20feature\x20review\x20report:\x20'];_0x1707=function(){return _0x3a365a;};return _0x1707();}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x127ee0){const _0x35e5be=_0x15c0,_0x3fe4d9={'ujTdl':function(_0x5ec286){return _0x5ec286();},'qAzqX':function(_0x32d73d,_0x39c2dd,_0x3e7b9b){return _0x32d73d(_0x39c2dd,_0x3e7b9b);},'pGBJc':_0x35e5be(0x142)},_0x5ce5cd=await _0x3fe4d9['ujTdl'](getToken);if(!_0x5ce5cd)throw new Error(_0x35e5be(0x14b));const _0x4ec96d=getApiBaseUrl(),_0x17ee98=await _0x3fe4d9[_0x35e5be(0x134)](fetch,_0x4ec96d+_0x35e5be(0x124),{'method':_0x35e5be(0x123),'headers':{'Authorization':_0x35e5be(0x10e)+_0x5ce5cd,'Content-Type':_0x3fe4d9['pGBJc']},'body':JSON[_0x35e5be(0x118)](_0x127ee0)});if(!_0x17ee98['ok']){const _0x52ff66=await _0x17ee98[_0x35e5be(0x11b)]();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x52ff66);}return _0x17ee98[_0x35e5be(0x110)]();}export async function listFeatures(_0x2295ea){const _0x376c6c=_0x15c0,_0xb3938={'TFWmF':function(_0xec6358){return _0xec6358();},'UyYru':_0x376c6c(0x14b),'yalUl':'gitRepoUrl','dgJtk':_0x376c6c(0x125),'OejfF':_0x376c6c(0x114),'HLGyI':'includeDeleted','VmYJE':'true','BUDXY':function(_0x1f4ff6,_0x240d2d,_0x1b0bd1){return _0x1f4ff6(_0x240d2d,_0x1b0bd1);}},_0x436108=await _0xb3938[_0x376c6c(0x12e)](getToken);if(!_0x436108)throw new Error(_0xb3938[_0x376c6c(0x145)]);const _0x373f9f=getApiBaseUrl(),_0x53a94a=new URLSearchParams();if(_0x2295ea?.[_0x376c6c(0x111)])_0x53a94a['set'](_0xb3938['yalUl'],_0x2295ea['gitRepoUrl']);if(_0x2295ea?.['gitBranch'])_0x53a94a['set'](_0x376c6c(0x131),_0x2295ea['gitBranch']);if(_0x2295ea?.[_0x376c6c(0x125)])_0x53a94a['set'](_0xb3938[_0x376c6c(0x101)],_0x2295ea['limit'][_0x376c6c(0x121)]());if(_0x2295ea?.[_0x376c6c(0x114)])_0x53a94a['set'](_0xb3938[_0x376c6c(0x100)],_0x2295ea['offset']['toString']());if(_0x2295ea?.['includeDeleted'])_0x53a94a[_0x376c6c(0x115)](_0xb3938['HLGyI'],_0xb3938['VmYJE']);const _0x4a7244=_0x373f9f+_0x376c6c(0x124)+(_0x53a94a[_0x376c6c(0x121)]()?'?'+_0x53a94a['toString']():''),_0x2148ba=await _0xb3938[_0x376c6c(0x135)](fetch,_0x4a7244,{'method':_0x376c6c(0x130),'headers':{'Authorization':'Bearer\x20'+_0x436108}});if(!_0x2148ba['ok']){const _0x29a8ab=await _0x2148ba[_0x376c6c(0x11b)]();throw new Error(_0x376c6c(0x10d)+_0x29a8ab);}return _0x2148ba['json']();}export async function getFeature(_0xb7d489){const _0x25267e=_0x15c0,_0x5b36ed={'oxija':_0x25267e(0x14b),'fgMgp':function(_0x3beb05){return _0x3beb05();},'fGFWX':function(_0x5e02d6,_0x512f03,_0x3dece1){return _0x5e02d6(_0x512f03,_0x3dece1);},'GinkP':'GET'},_0x13dfe0=await getToken();if(!_0x13dfe0)throw new Error(_0x5b36ed[_0x25267e(0x127)]);const _0x471d0c=_0x5b36ed[_0x25267e(0x120)](getApiBaseUrl),_0x1d19ca=await _0x5b36ed[_0x25267e(0x116)](fetch,_0x471d0c+_0x25267e(0x113)+_0xb7d489,{'method':_0x5b36ed['GinkP'],'headers':{'Authorization':'Bearer\x20'+_0x13dfe0}});if(!_0x1d19ca['ok']){const _0x2e4e47=await _0x1d19ca[_0x25267e(0x11b)]();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x2e4e47);}return _0x1d19ca['json']();}export async function updateFeature(_0x2f1b10,_0x750445){const _0x5aebd7=_0x15c0,_0x3581ce={'vtQRb':function(_0x1550db){return _0x1550db();}},_0xc38090=await _0x3581ce['vtQRb'](getToken);if(!_0xc38090)throw new Error(_0x5aebd7(0x14b));const _0x2edf37=getApiBaseUrl(),_0x531aa2=await fetch(_0x2edf37+'/api/v1/mcp/features/'+_0x2f1b10,{'method':_0x5aebd7(0x10c),'headers':{'Authorization':_0x5aebd7(0x10e)+_0xc38090,'Content-Type':'application/json'},'body':JSON['stringify'](_0x750445)});if(!_0x531aa2['ok']){const _0x266f1b=await _0x531aa2[_0x5aebd7(0x11b)]();throw new Error('Failed\x20to\x20update\x20feature\x20review:\x20'+_0x266f1b);}return _0x531aa2['json']();}export async function createChecklistItem(_0x5cd086,_0x298226,_0xc0801f){const _0x2dd564=_0x15c0,_0x5c3af9={'ZVUUW':function(_0x716644){return _0x716644();},'NjZil':function(_0x192d3f){return _0x192d3f();},'stedJ':function(_0x30ad9d,_0x215002,_0x3138c7){return _0x30ad9d(_0x215002,_0x3138c7);},'NZkyZ':_0x2dd564(0x142)},_0x4363a6=await _0x5c3af9[_0x2dd564(0x108)](getToken);if(!_0x4363a6)throw new Error(_0x2dd564(0x14b));const _0x569493=_0x5c3af9[_0x2dd564(0x107)](getApiBaseUrl),_0x41d056=await _0x5c3af9['stedJ'](fetch,_0x569493+'/api/v1/mcp/features/'+_0x5cd086+_0x2dd564(0x140),{'method':_0x2dd564(0x123),'headers':{'Authorization':'Bearer\x20'+_0x4363a6,'Content-Type':_0x5c3af9['NZkyZ']},'body':JSON[_0x2dd564(0x118)]({'description':_0x298226,'position':_0xc0801f})});if(!_0x41d056['ok']){const _0x31d535=await _0x41d056[_0x2dd564(0x11b)]();throw new Error('Failed\x20to\x20create\x20scenario:\x20'+_0x31d535);}return _0x41d056['json']();}export async function updateChecklistItem(_0x6f98a7,_0x89366a,_0x20a502){const _0x598e0b=_0x15c0,_0x3292e8={'AfAfv':function(_0x522c3c,_0x5839f8,_0x261ac7){return _0x522c3c(_0x5839f8,_0x261ac7);},'oXBAT':'application/json','ExLwm':_0x598e0b(0x143)};return withRetry(async()=>{const _0x5188a0=_0x598e0b,_0x5f54d3=await getToken();if(!_0x5f54d3)throw new Error(_0x5188a0(0x14b));const _0x15eab8=getApiBaseUrl(),_0x463358=await _0x3292e8[_0x5188a0(0x122)](fetch,_0x15eab8+'/api/v1/mcp/features/'+_0x6f98a7+'/checklist/'+_0x89366a,{'method':_0x5188a0(0x10c),'headers':{'Authorization':_0x5188a0(0x10e)+_0x5f54d3,'Content-Type':_0x3292e8['oXBAT']},'body':JSON['stringify'](_0x20a502)});if(!_0x463358['ok']){const _0x1fd1c7=await _0x463358['text']();throw new Error(_0x5188a0(0x147)+_0x1fd1c7);}return _0x463358[_0x5188a0(0x110)]();},{'label':_0x3292e8['ExLwm']});}export async function getFeatureReport(_0x132dce){const _0x1c3160=_0x15c0,_0x1800ac={'hUFXy':function(_0x19372c){return _0x19372c();},'rbYcu':_0x1c3160(0x14b)},_0x146c51=await _0x1800ac['hUFXy'](getToken);if(!_0x146c51)throw new Error(_0x1800ac[_0x1c3160(0x10a)]);const _0x5f4205=_0x1800ac[_0x1c3160(0x13f)](getApiBaseUrl),_0x9c0c97=await fetch(_0x5f4205+'/api/v1/mcp/features/'+_0x132dce+_0x1c3160(0x109),{'method':'GET','headers':{'Authorization':_0x1c3160(0x10e)+_0x146c51}});if(!_0x9c0c97['ok']){const _0x1f3e8c=await _0x9c0c97['text']();throw new Error(_0x1c3160(0x148)+_0x1f3e8c);}return _0x9c0c97['json']();}export async function getFeatureReportMarkdown(_0x456898,_0x2bce28){const _0x17fb7b=_0x15c0,_0x49d185={'bIees':function(_0x14e1c8,_0x64071c){return _0x14e1c8>_0x64071c;},'zXvQu':_0x17fb7b(0x133),'CZMJe':_0x17fb7b(0x106),'RlMOL':_0x17fb7b(0x130)},_0x3a9f39=await getToken();if(!_0x3a9f39)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0xdc0155=getApiBaseUrl(),_0x2873a3=new URLSearchParams(),_0x1eb1fc=_0x49d185['bIees'](_0x2bce28?.[_0x17fb7b(0x133)]?.[_0x17fb7b(0x11f)]??0x0,0x0),_0x2f0eb1=Boolean(_0x2bce28?.['sessionId']);_0x1eb1fc&&_0x2bce28?.[_0x17fb7b(0x133)]&&_0x2873a3['set'](_0x49d185[_0x17fb7b(0x12b)],_0x2bce28['itemIds'][_0x17fb7b(0x139)](','));_0x2f0eb1&&_0x2bce28?.[_0x17fb7b(0x126)]&&_0x2873a3[_0x17fb7b(0x115)]('sessionId',_0x2bce28[_0x17fb7b(0x126)]);!_0x1eb1fc&&!_0x2f0eb1&&_0x2bce28?.[_0x17fb7b(0x106)]&&_0x2873a3['set'](_0x49d185[_0x17fb7b(0x128)],_0x2bce28[_0x17fb7b(0x106)]);const _0x24e64e=_0xdc0155+_0x17fb7b(0x113)+_0x456898+_0x17fb7b(0x12a),_0x4e1474=''+_0x24e64e+(_0x2873a3['toString']()?'?'+_0x2873a3['toString']():''),_0x226a3b=await fetch(_0x4e1474,{'method':_0x49d185[_0x17fb7b(0x12c)],'headers':{'Authorization':_0x17fb7b(0x10e)+_0x3a9f39}});if(!_0x226a3b['ok']){const _0x205adf=await _0x226a3b['text']();throw new Error(_0x17fb7b(0x138)+_0x205adf);}return _0x226a3b[_0x17fb7b(0x11b)]();}export async function listFeatureSessions(_0x3a9e16){const _0x3808eb=_0x15c0,_0x204675={'RlWcP':function(_0x432866){return _0x432866();},'eVUBS':'GET'},_0x3516d4=await getToken();if(!_0x3516d4)throw new Error(_0x3808eb(0x14b));const _0xaaaff8=_0x204675['RlWcP'](getApiBaseUrl),_0x29cd3b=await fetch(_0xaaaff8+'/api/v1/mcp/features/'+_0x3a9e16+'/sessions',{'method':_0x204675[_0x3808eb(0x14c)],'headers':{'Authorization':_0x3808eb(0x10e)+_0x3516d4}});if(!_0x29cd3b['ok']){const _0x8a6989=await _0x29cd3b['text']();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x8a6989);}return _0x29cd3b[_0x3808eb(0x110)]();}export async function startSession(_0xe6c5ae,_0xda47f6){const _0x17e7d1=_0x15c0,_0x3f59bd={'gaOLA':function(_0x3d4c5e,_0x11dc1c,_0x3c0182){return _0x3d4c5e(_0x11dc1c,_0x3c0182);},'vfQDk':'POST'},_0x146684=await getToken();if(!_0x146684)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x5389a8=getApiBaseUrl(),_0x1bac16=await _0x3f59bd['gaOLA'](fetch,_0x5389a8+_0x17e7d1(0x113)+_0xe6c5ae+'/sessions/'+_0xda47f6+'/start',{'method':_0x3f59bd[_0x17e7d1(0x104)],'headers':{'Authorization':'Bearer\x20'+_0x146684}});if(!_0x1bac16['ok']){const _0x80b298=await _0x1bac16[_0x17e7d1(0x11b)]();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x80b298);}return _0x1bac16[_0x17e7d1(0x110)]();}export async function concludeSession(_0xc6b464,_0x51637b){const _0x45ea76=_0x15c0,_0x3cd5e9={'SHALB':_0x45ea76(0x123)},_0x27f9ab=await getToken();if(!_0x27f9ab)throw new Error(_0x45ea76(0x14b));const _0x47e105=getApiBaseUrl(),_0x145ebb=await fetch(_0x47e105+'/api/v1/mcp/features/'+_0xc6b464+'/sessions/'+_0x51637b+'/conclude',{'method':_0x3cd5e9[_0x45ea76(0x13d)],'headers':{'Authorization':'Bearer\x20'+_0x27f9ab}});if(!_0x145ebb['ok']){const _0x550b85=await _0x145ebb['text']();throw new Error(_0x45ea76(0x103)+_0x550b85);}return _0x145ebb[_0x45ea76(0x110)]();}export async function getActionItems(_0x29b625){const _0x53afe6=_0x15c0,_0x4cd0c5={'rdRTb':function(_0x2f451e){return _0x2f451e();},'hCIGf':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','MYkZS':'GET'},_0x721bed=await _0x4cd0c5[_0x53afe6(0x141)](getToken);if(!_0x721bed)throw new Error(_0x4cd0c5[_0x53afe6(0x136)]);const _0x1633e4=getApiBaseUrl(),_0xf77b78=await fetch(_0x1633e4+_0x53afe6(0x113)+_0x29b625+'/action-items',{'method':_0x4cd0c5['MYkZS'],'headers':{'Authorization':'Bearer\x20'+_0x721bed}});if(!_0xf77b78['ok']){const _0x1b2cd9=await _0xf77b78['text']();throw new Error(_0x53afe6(0x146)+_0x1b2cd9);}return _0xf77b78['json']();}export async function getItemFeedback(_0x432560,_0x253970){const _0x21999a=_0x15c0,_0x461ea2={'zTpQP':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','cHTGc':function(_0x5cc81d,_0x2a3bdd,_0x5c9b32){return _0x5cc81d(_0x2a3bdd,_0x5c9b32);},'WIidn':_0x21999a(0x130)},_0x30cbfe=await getToken();if(!_0x30cbfe)throw new Error(_0x461ea2[_0x21999a(0x12f)]);const _0x4e7893=getApiBaseUrl(),_0x2baf4b=await _0x461ea2[_0x21999a(0x11e)](fetch,_0x4e7893+_0x21999a(0x113)+_0x432560+'/checklist-items/'+_0x253970+_0x21999a(0x132),{'method':_0x461ea2['WIidn'],'headers':{'Authorization':_0x21999a(0x10e)+_0x30cbfe}});if(!_0x2baf4b['ok']){const _0x5bb840=await _0x2baf4b['text']();throw new Error(_0x21999a(0x12d)+_0x5bb840);}return _0x2baf4b[_0x21999a(0x110)]();}export async function markCommentsAddressed(_0x1346a6,_0x1c3d11,_0x2d746c){const _0x372abe=_0x15c0,_0x55fa00={'ygKod':function(_0x36322f){return _0x36322f();},'MLcQO':function(_0x21b5ed,_0x138937,_0x3f93ef){return _0x21b5ed(_0x138937,_0x3f93ef);},'IdYrF':'POST'},_0x2d1adf=await _0x55fa00[_0x372abe(0x144)](getToken);if(!_0x2d1adf)throw new Error(_0x372abe(0x14b));const _0x41e97f=getApiBaseUrl(),_0x1870c7=await _0x55fa00['MLcQO'](fetch,_0x41e97f+'/api/v1/mcp/features/'+_0x1346a6+_0x372abe(0x13b),{'method':_0x55fa00[_0x372abe(0x13c)],'headers':{'Authorization':_0x372abe(0x10e)+_0x2d1adf,'Content-Type':_0x372abe(0x142)},'body':JSON[_0x372abe(0x118)]({'checklistItemId':_0x1c3d11,'commentIds':_0x2d746c})});if(!_0x1870c7['ok']){const _0x46af51=await _0x1870c7['text']();throw new Error(_0x372abe(0x11a)+_0x46af51);}}function _0x15c0(_0x19cdcd,_0x28a905){_0x19cdcd=_0x19cdcd-0xff;const _0x1707ae=_0x1707();let _0x15c0b8=_0x1707ae[_0x19cdcd];return _0x15c0b8;}export async function softDeleteFeature(_0x274330){const _0x31fd80=_0x15c0,_0x470996={'fnoCk':_0x31fd80(0x14b),'Djyvq':function(_0xb8dfc6){return _0xb8dfc6();},'Pztdw':'DELETE'},_0x1ca2b8=await getToken();if(!_0x1ca2b8)throw new Error(_0x470996['fnoCk']);const _0x27bb31=_0x470996[_0x31fd80(0x149)](getApiBaseUrl),_0x13254a=await fetch(_0x27bb31+'/api/v1/mcp/features/'+_0x274330,{'method':_0x470996[_0x31fd80(0x117)],'headers':{'Authorization':_0x31fd80(0x10e)+_0x1ca2b8}});if(!_0x13254a['ok']){const _0x2c7b74=await _0x13254a[_0x31fd80(0x11b)]();throw new Error(_0x31fd80(0x105)+_0x2c7b74);}}export async function restoreFeature(_0x19e24b){const _0xdf9871=_0x15c0,_0xc391ea={'LeeOX':function(_0x4daeb1){return _0x4daeb1();},'ZSmWv':_0xdf9871(0x123)},_0x450119=await getToken();if(!_0x450119)throw new Error(_0xdf9871(0x14b));const _0x236f71=_0xc391ea['LeeOX'](getApiBaseUrl),_0x32ecac=await fetch(_0x236f71+'/api/v1/mcp/features/'+_0x19e24b+_0xdf9871(0x137),{'method':_0xc391ea[_0xdf9871(0x13e)],'headers':{'Authorization':'Bearer\x20'+_0x450119}});if(!_0x32ecac['ok']){const _0x58fe92=await _0x32ecac['text']();throw new Error(_0xdf9871(0xff)+_0x58fe92);}}
1
+ (function(_0xb66ffb,_0x36c5ec){const _0x23c6de=_0x215d,_0x4beb66=_0xb66ffb();while(!![]){try{const _0x4e49e0=parseInt(_0x23c6de(0xaa))/0x1*(-parseInt(_0x23c6de(0xa0))/0x2)+parseInt(_0x23c6de(0xd8))/0x3+-parseInt(_0x23c6de(0xba))/0x4+-parseInt(_0x23c6de(0xb1))/0x5*(parseInt(_0x23c6de(0xc8))/0x6)+parseInt(_0x23c6de(0x9d))/0x7+parseInt(_0x23c6de(0xa9))/0x8+parseInt(_0x23c6de(0xc9))/0x9;if(_0x4e49e0===_0x36c5ec)break;else _0x4beb66['push'](_0x4beb66['shift']());}catch(_0x23c17b){_0x4beb66['push'](_0x4beb66['shift']());}}}(_0x2a6e,0x6ec72));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x2a6e(){const _0x36cab8=['234klMDhs','6863769xILxtV','limit','join','length','stringify','dgdvC','gUNni','lmdzz','UgFxm','kZFmo','PqYNJ','/api/v1/mcp/features/','Failed\x20to\x20create\x20scenario:\x20','oFBFz','SoYah','1181061dLzrPz','rKyJX','Failed\x20to\x20restore\x20feature\x20review:\x20','set','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Failed\x20to\x20get\x20item\x20feedback:\x20','3299905kJhaPw','sessionId','/report','7718GeMEvD','TPrNt','offset','application/json','gWyPl','prvjx','Failed\x20to\x20delete\x20feature\x20review:\x20','eXYoP','/comments/address','2944872XXxqcH','125LaEXer','Failed\x20to\x20update\x20feature\x20review:\x20','style','/feedback','Bearer\x20','EJeox','/restore','67940XFhIBu','ArEpk','updateChecklistItem','/conclude','jzHNc','/report/markdown','text','gitBranch','/checklist-items/','2119196nttNlx','json','Failed\x20to\x20get\x20feature\x20review:\x20','/api/v1/mcp/features','/start','nThtP','toString','/sessions','petFl','POST','/checklist/','itemIds','GET','IQqMQ'];_0x2a6e=function(){return _0x36cab8;};return _0x2a6e();}import{withRetry}from'./retry.js';export async function createFeature(_0x1d8495){const _0x9cbe46=_0x215d,_0x582b29={'UgFxm':function(_0x400d63){return _0x400d63();},'jzHNc':function(_0x530029,_0x95a199,_0x1c115){return _0x530029(_0x95a199,_0x1c115);},'gkltm':_0x9cbe46(0xc3)},_0x21db10=await _0x582b29[_0x9cbe46(0xd1)](getToken);if(!_0x21db10)throw new Error(_0x9cbe46(0xdc));const _0x684610=getApiBaseUrl(),_0x325668=await _0x582b29[_0x9cbe46(0xb5)](fetch,_0x684610+'/api/v1/mcp/features',{'method':_0x582b29['gkltm'],'headers':{'Authorization':'Bearer\x20'+_0x21db10,'Content-Type':_0x9cbe46(0xa3)},'body':JSON['stringify'](_0x1d8495)});if(!_0x325668['ok']){const _0x270b59=await _0x325668[_0x9cbe46(0xb7)]();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x270b59);}return _0x325668['json']();}export async function listFeatures(_0x244b48){const _0x96d668=_0x215d,_0x195bbd={'kZFmo':_0x96d668(0xdc),'bTjeS':'gitRepoUrl','nThtP':_0x96d668(0xca),'PqYNJ':'includeDeleted','UBZon':'true','foqDq':_0x96d668(0xc6)},_0x4326a8=await getToken();if(!_0x4326a8)throw new Error(_0x195bbd[_0x96d668(0xd2)]);const _0x71bb2a=getApiBaseUrl(),_0x3ee1be=new URLSearchParams();if(_0x244b48?.['gitRepoUrl'])_0x3ee1be[_0x96d668(0xdb)](_0x195bbd['bTjeS'],_0x244b48['gitRepoUrl']);if(_0x244b48?.[_0x96d668(0xb8)])_0x3ee1be[_0x96d668(0xdb)](_0x96d668(0xb8),_0x244b48[_0x96d668(0xb8)]);if(_0x244b48?.[_0x96d668(0xca)])_0x3ee1be['set'](_0x195bbd[_0x96d668(0xbf)],_0x244b48['limit']['toString']());if(_0x244b48?.[_0x96d668(0xa2)])_0x3ee1be[_0x96d668(0xdb)]('offset',_0x244b48[_0x96d668(0xa2)]['toString']());if(_0x244b48?.['includeDeleted'])_0x3ee1be['set'](_0x195bbd[_0x96d668(0xd3)],_0x195bbd['UBZon']);const _0x29e582=_0x71bb2a+_0x96d668(0xbd)+(_0x3ee1be['toString']()?'?'+_0x3ee1be[_0x96d668(0xc0)]():''),_0x42a63d=await fetch(_0x29e582,{'method':_0x195bbd['foqDq'],'headers':{'Authorization':'Bearer\x20'+_0x4326a8}});if(!_0x42a63d['ok']){const _0x366f8e=await _0x42a63d[_0x96d668(0xb7)]();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x366f8e);}return _0x42a63d['json']();}export async function getFeature(_0x5f4f09){const _0x14edff=_0x215d,_0x3c4ddd={'oFBFz':function(_0x2b892c){return _0x2b892c();},'UzBoK':_0x14edff(0xdc),'EJeox':_0x14edff(0xc6)},_0x5dc7f3=await _0x3c4ddd[_0x14edff(0xd6)](getToken);if(!_0x5dc7f3)throw new Error(_0x3c4ddd['UzBoK']);const _0x395991=_0x3c4ddd['oFBFz'](getApiBaseUrl),_0xced7ce=await fetch(_0x395991+'/api/v1/mcp/features/'+_0x5f4f09,{'method':_0x3c4ddd[_0x14edff(0xaf)],'headers':{'Authorization':'Bearer\x20'+_0x5dc7f3}});if(!_0xced7ce['ok']){const _0x52f16e=await _0xced7ce[_0x14edff(0xb7)]();throw new Error(_0x14edff(0xbc)+_0x52f16e);}return _0xced7ce[_0x14edff(0xbb)]();}export async function updateFeature(_0x116333,_0x3bfe9e){const _0x4b0fbb=_0x215d,_0x5e7816={'MnNIm':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','prvjx':'PATCH','tmbNW':'application/json'},_0x4bdd49=await getToken();if(!_0x4bdd49)throw new Error(_0x5e7816['MnNIm']);const _0x1acacd=getApiBaseUrl(),_0x435afc=await fetch(_0x1acacd+_0x4b0fbb(0xd4)+_0x116333,{'method':_0x5e7816[_0x4b0fbb(0xa5)],'headers':{'Authorization':_0x4b0fbb(0xae)+_0x4bdd49,'Content-Type':_0x5e7816['tmbNW']},'body':JSON[_0x4b0fbb(0xcd)](_0x3bfe9e)});if(!_0x435afc['ok']){const _0x21b240=await _0x435afc[_0x4b0fbb(0xb7)]();throw new Error(_0x4b0fbb(0xab)+_0x21b240);}return _0x435afc[_0x4b0fbb(0xbb)]();}export async function createChecklistItem(_0x226033,_0x50ae06,_0x257f68){const _0xf82169=_0x215d,_0x2b49a3={'TwrIH':function(_0x4965df){return _0x4965df();},'QYukl':_0xf82169(0xdc),'vbgja':function(_0x112df7){return _0x112df7();},'ArEpk':_0xf82169(0xc3)},_0x4ea66d=await _0x2b49a3['TwrIH'](getToken);if(!_0x4ea66d)throw new Error(_0x2b49a3['QYukl']);const _0x2694ca=_0x2b49a3['vbgja'](getApiBaseUrl),_0x58a58f=await fetch(_0x2694ca+_0xf82169(0xd4)+_0x226033+'/checklist',{'method':_0x2b49a3[_0xf82169(0xb2)],'headers':{'Authorization':_0xf82169(0xae)+_0x4ea66d,'Content-Type':'application/json'},'body':JSON[_0xf82169(0xcd)]({'description':_0x50ae06,'position':_0x257f68})});if(!_0x58a58f['ok']){const _0x2af830=await _0x58a58f[_0xf82169(0xb7)]();throw new Error(_0xf82169(0xd5)+_0x2af830);}return _0x58a58f['json']();}export async function updateChecklistItem(_0x108e23,_0x11c410,_0x581564){const _0x316647=_0x215d,_0x35d18a={'IQqMQ':function(_0x58670e){return _0x58670e();},'JAPLv':_0x316647(0xdc),'eXYoP':function(_0x465ab1){return _0x465ab1();},'UtaBJ':_0x316647(0xa3),'lknCY':function(_0x419300,_0x2e88af,_0x2d186c){return _0x419300(_0x2e88af,_0x2d186c);}};return _0x35d18a['lknCY'](withRetry,async()=>{const _0x3bc7c9=_0x316647,_0x279e86=await _0x35d18a[_0x3bc7c9(0xc7)](getToken);if(!_0x279e86)throw new Error(_0x35d18a['JAPLv']);const _0x1e47e2=_0x35d18a[_0x3bc7c9(0xa7)](getApiBaseUrl),_0x1b7e9c=await fetch(_0x1e47e2+_0x3bc7c9(0xd4)+_0x108e23+_0x3bc7c9(0xc4)+_0x11c410,{'method':'PATCH','headers':{'Authorization':'Bearer\x20'+_0x279e86,'Content-Type':_0x35d18a['UtaBJ']},'body':JSON['stringify'](_0x581564)});if(!_0x1b7e9c['ok']){const _0x4eabbb=await _0x1b7e9c['text']();throw new Error('Failed\x20to\x20update\x20scenario:\x20'+_0x4eabbb);}return _0x1b7e9c[_0x3bc7c9(0xbb)]();},{'label':_0x316647(0xb3)});}export async function getFeatureReport(_0x3af192){const _0x2a2b59=_0x215d,_0x19850f={'rKyJX':_0x2a2b59(0xdc),'wpLNF':function(_0x73ab48){return _0x73ab48();}},_0x378c87=await getToken();if(!_0x378c87)throw new Error(_0x19850f[_0x2a2b59(0xd9)]);const _0xd51e2d=_0x19850f['wpLNF'](getApiBaseUrl),_0x566560=await fetch(_0xd51e2d+_0x2a2b59(0xd4)+_0x3af192+_0x2a2b59(0x9f),{'method':_0x2a2b59(0xc6),'headers':{'Authorization':_0x2a2b59(0xae)+_0x378c87}});if(!_0x566560['ok']){const _0x2f778d=await _0x566560[_0x2a2b59(0xb7)]();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x2f778d);}return _0x566560['json']();}export async function getFeatureReportMarkdown(_0x4d65d6,_0x1f1b47){const _0x2d290f=_0x215d,_0x19d733={'gWyPl':function(_0x24c1e8){return _0x24c1e8();},'osIeh':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','AuTFS':function(_0x522039,_0x273883){return _0x522039>_0x273883;},'qvqVD':function(_0xaa2546,_0x8e2333){return _0xaa2546(_0x8e2333);},'lmdzz':function(_0x5e230a,_0x570cea){return _0x5e230a&&_0x570cea;},'gRKSP':_0x2d290f(0xac)},_0x599ce4=await _0x19d733[_0x2d290f(0xa4)](getToken);if(!_0x599ce4)throw new Error(_0x19d733['osIeh']);const _0x3a0147=getApiBaseUrl(),_0x3cbfd0=new URLSearchParams(),_0x4dbcbe=_0x19d733['AuTFS'](_0x1f1b47?.[_0x2d290f(0xc5)]?.[_0x2d290f(0xcc)]??0x0,0x0),_0x446c9a=_0x19d733['qvqVD'](Boolean,_0x1f1b47?.[_0x2d290f(0x9e)]);_0x4dbcbe&&_0x1f1b47?.[_0x2d290f(0xc5)]&&_0x3cbfd0[_0x2d290f(0xdb)]('itemIds',_0x1f1b47['itemIds'][_0x2d290f(0xcb)](','));_0x446c9a&&_0x1f1b47?.['sessionId']&&_0x3cbfd0['set']('sessionId',_0x1f1b47[_0x2d290f(0x9e)]);_0x19d733[_0x2d290f(0xd0)](!_0x4dbcbe,!_0x446c9a)&&_0x1f1b47?.[_0x2d290f(0xac)]&&_0x3cbfd0['set'](_0x19d733['gRKSP'],_0x1f1b47['style']);const _0x566973=_0x3a0147+_0x2d290f(0xd4)+_0x4d65d6+_0x2d290f(0xb6),_0x2783db=''+_0x566973+(_0x3cbfd0[_0x2d290f(0xc0)]()?'?'+_0x3cbfd0[_0x2d290f(0xc0)]():''),_0x3cb03a=await fetch(_0x2783db,{'method':_0x2d290f(0xc6),'headers':{'Authorization':'Bearer\x20'+_0x599ce4}});if(!_0x3cb03a['ok']){const _0x1094db=await _0x3cb03a['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20'+_0x1094db);}return _0x3cb03a[_0x2d290f(0xb7)]();}export async function listFeatureSessions(_0x49b83f){const _0x5d5533=_0x215d,_0x575288={'gUNni':function(_0x418435){return _0x418435();},'zzxOT':function(_0x5d4031,_0x38b857,_0x2d71b2){return _0x5d4031(_0x38b857,_0x2d71b2);}},_0x3f1912=await _0x575288[_0x5d5533(0xcf)](getToken);if(!_0x3f1912)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x133184=getApiBaseUrl(),_0x399498=await _0x575288['zzxOT'](fetch,_0x133184+_0x5d5533(0xd4)+_0x49b83f+_0x5d5533(0xc1),{'method':_0x5d5533(0xc6),'headers':{'Authorization':_0x5d5533(0xae)+_0x3f1912}});if(!_0x399498['ok']){const _0x337f49=await _0x399498['text']();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x337f49);}return _0x399498['json']();}export async function startSession(_0x4c9773,_0x419de4){const _0xac26b4=_0x215d,_0x1141b3={'jkhls':'POST'},_0xdfda3f=await getToken();if(!_0xdfda3f)throw new Error(_0xac26b4(0xdc));const _0x180790=getApiBaseUrl(),_0x220013=await fetch(_0x180790+_0xac26b4(0xd4)+_0x4c9773+'/sessions/'+_0x419de4+_0xac26b4(0xbe),{'method':_0x1141b3['jkhls'],'headers':{'Authorization':_0xac26b4(0xae)+_0xdfda3f}});if(!_0x220013['ok']){const _0x2bceb4=await _0x220013['text']();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x2bceb4);}return _0x220013[_0xac26b4(0xbb)]();}export async function concludeSession(_0x5a87b6,_0x41370b){const _0x4a38ad=_0x215d,_0x8c95eb={'hCYBg':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','QGOxJ':'POST'},_0x52ba12=await getToken();if(!_0x52ba12)throw new Error(_0x8c95eb['hCYBg']);const _0x41608f=getApiBaseUrl(),_0x719bf9=await fetch(_0x41608f+'/api/v1/mcp/features/'+_0x5a87b6+'/sessions/'+_0x41370b+_0x4a38ad(0xb4),{'method':_0x8c95eb['QGOxJ'],'headers':{'Authorization':_0x4a38ad(0xae)+_0x52ba12}});if(!_0x719bf9['ok']){const _0x5a631c=await _0x719bf9['text']();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x5a631c);}return _0x719bf9[_0x4a38ad(0xbb)]();}export async function getActionItems(_0x98e59e){const _0x2a8cba=_0x215d,_0x403353={'hlxOc':function(_0x209758){return _0x209758();},'TPrNt':_0x2a8cba(0xdc),'qYbFm':_0x2a8cba(0xc6)},_0x360505=await _0x403353['hlxOc'](getToken);if(!_0x360505)throw new Error(_0x403353[_0x2a8cba(0xa1)]);const _0x1766df=getApiBaseUrl(),_0x137bb8=await fetch(_0x1766df+_0x2a8cba(0xd4)+_0x98e59e+'/action-items',{'method':_0x403353['qYbFm'],'headers':{'Authorization':_0x2a8cba(0xae)+_0x360505}});if(!_0x137bb8['ok']){const _0x999fbd=await _0x137bb8[_0x2a8cba(0xb7)]();throw new Error('Failed\x20to\x20get\x20action\x20items:\x20'+_0x999fbd);}return _0x137bb8[_0x2a8cba(0xbb)]();}export async function getItemFeedback(_0x15f206,_0x439f84){const _0x2c60f6=_0x215d,_0x45629f={'MPNMq':function(_0x1a2934,_0x4ba26a,_0x40ce9e){return _0x1a2934(_0x4ba26a,_0x40ce9e);}},_0xe9d598=await getToken();if(!_0xe9d598)throw new Error(_0x2c60f6(0xdc));const _0x2fbb9b=getApiBaseUrl(),_0x2c8501=await _0x45629f['MPNMq'](fetch,_0x2fbb9b+_0x2c60f6(0xd4)+_0x15f206+_0x2c60f6(0xb9)+_0x439f84+_0x2c60f6(0xad),{'method':_0x2c60f6(0xc6),'headers':{'Authorization':_0x2c60f6(0xae)+_0xe9d598}});if(!_0x2c8501['ok']){const _0x527cb7=await _0x2c8501['text']();throw new Error(_0x2c60f6(0x9c)+_0x527cb7);}return _0x2c8501['json']();}export async function markCommentsAddressed(_0x1a967c,_0xb4712,_0x5edfe3){const _0x21112c=_0x215d,_0x157e85={'cwljO':_0x21112c(0xdc),'SoYah':function(_0x5872fa){return _0x5872fa();},'iaBuu':function(_0x3cf3b2,_0x156123,_0x35ccbc){return _0x3cf3b2(_0x156123,_0x35ccbc);},'petFl':'application/json'},_0x17d055=await getToken();if(!_0x17d055)throw new Error(_0x157e85['cwljO']);const _0x51cd98=_0x157e85[_0x21112c(0xd7)](getApiBaseUrl),_0x2a95c5=await _0x157e85['iaBuu'](fetch,_0x51cd98+'/api/v1/mcp/features/'+_0x1a967c+_0x21112c(0xa8),{'method':_0x21112c(0xc3),'headers':{'Authorization':_0x21112c(0xae)+_0x17d055,'Content-Type':_0x157e85[_0x21112c(0xc2)]},'body':JSON[_0x21112c(0xcd)]({'checklistItemId':_0xb4712,'commentIds':_0x5edfe3})});if(!_0x2a95c5['ok']){const _0x1cfbf8=await _0x2a95c5[_0x21112c(0xb7)]();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0x1cfbf8);}}function _0x215d(_0x437a58,_0x443a7d){_0x437a58=_0x437a58-0x9c;const _0x2a6e95=_0x2a6e();let _0x215de6=_0x2a6e95[_0x437a58];return _0x215de6;}export async function softDeleteFeature(_0x442583){const _0x588548=_0x215d,_0xa985ce={'ugoaN':function(_0x25a0ad,_0x4499fd,_0x356cc4){return _0x25a0ad(_0x4499fd,_0x356cc4);},'dgdvC':'DELETE'},_0x18295b=await getToken();if(!_0x18295b)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4eca4f=getApiBaseUrl(),_0x169bc9=await _0xa985ce['ugoaN'](fetch,_0x4eca4f+_0x588548(0xd4)+_0x442583,{'method':_0xa985ce[_0x588548(0xce)],'headers':{'Authorization':'Bearer\x20'+_0x18295b}});if(!_0x169bc9['ok']){const _0x27e598=await _0x169bc9['text']();throw new Error(_0x588548(0xa6)+_0x27e598);}}export async function restoreFeature(_0x2a5168){const _0x5e744b=_0x215d,_0x5ba7ea={'RRwZg':function(_0x44772f){return _0x44772f();}},_0x21f38c=await _0x5ba7ea['RRwZg'](getToken);if(!_0x21f38c)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x261f0c=getApiBaseUrl(),_0x11aef0=await fetch(_0x261f0c+_0x5e744b(0xd4)+_0x2a5168+_0x5e744b(0xb0),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x21f38c}});if(!_0x11aef0['ok']){const _0x4cf3cb=await _0x11aef0['text']();throw new Error(_0x5e744b(0xda)+_0x4cf3cb);}}