@ranger-testing/ranger-cli 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/browserSessionsApi.js +1 -1
  35. package/build/commands/utils/claudeConfig.js +1 -1
  36. package/build/commands/utils/claudePlugin.js +1 -1
  37. package/build/commands/utils/crypto.js +1 -1
  38. package/build/commands/utils/desirePathLog.js +1 -1
  39. package/build/commands/utils/deviceAuth.js +1 -1
  40. package/build/commands/utils/environment.js +1 -1
  41. package/build/commands/utils/featureApi.js +1 -1
  42. package/build/commands/utils/featureReportGenerator.js +1 -1
  43. package/build/commands/utils/fixWebmDuration.js +1 -1
  44. package/build/commands/utils/git.js +1 -1
  45. package/build/commands/utils/keychain.js +1 -1
  46. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  47. package/build/commands/utils/mcpImageBase64.js +1 -1
  48. package/build/commands/utils/model.js +1 -1
  49. package/build/commands/utils/opencodeConfig.js +1 -1
  50. package/build/commands/utils/profileMessages.js +1 -1
  51. package/build/commands/utils/profileSetupBanner.js +1 -1
  52. package/build/commands/utils/rangerConfig.js +1 -1
  53. package/build/commands/utils/rangerRoot.js +1 -1
  54. package/build/commands/utils/reportGenerator.js +1 -1
  55. package/build/commands/utils/retry.js +1 -1
  56. package/build/commands/utils/sessionCache.js +1 -1
  57. package/build/commands/utils/settings.js +1 -1
  58. package/build/commands/utils/skillContent.js +1 -1
  59. package/build/commands/utils/skills.js +1 -1
  60. package/build/commands/utils/telemetry.js +1 -1
  61. package/build/commands/utils/traceSnapshotMapper.js +1 -0
  62. package/build/commands/utils/userApi.js +1 -1
  63. package/build/commands/utils/version.js +1 -1
  64. package/build/commands/verifyFeature.js +1 -1
  65. package/build/commands/verifyInBrowser.js +1 -1
  66. package/package.json +2 -1
@@ -1 +1 @@
1
- (function(_0x2b5dc9,_0x49cb76){const _0x3a61e3=_0x5aa4,_0x1558ef=_0x2b5dc9();while(!![]){try{const _0x559eab=parseInt(_0x3a61e3(0x1f4))/0x1+parseInt(_0x3a61e3(0x1f5))/0x2*(parseInt(_0x3a61e3(0x201))/0x3)+parseInt(_0x3a61e3(0x21c))/0x4+parseInt(_0x3a61e3(0x21e))/0x5+-parseInt(_0x3a61e3(0x212))/0x6+parseInt(_0x3a61e3(0x20e))/0x7*(-parseInt(_0x3a61e3(0x216))/0x8)+-parseInt(_0x3a61e3(0x1f8))/0x9*(parseInt(_0x3a61e3(0x1f1))/0xa);if(_0x559eab===_0x49cb76)break;else _0x1558ef['push'](_0x1558ef['shift']());}catch(_0x3142fc){_0x1558ef['push'](_0x1558ef['shift']());}}}(_0xe862,0x63ffc));import{writeFile,readFile,unlink}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x5aa4(_0x3d7117,_0x29f8de){_0x3d7117=_0x3d7117-0x1f1;const _0xe86296=_0xe862();let _0x5aa4e0=_0xe86296[_0x3d7117];return _0x5aa4e0;}import{chromium}from'playwright';function _0xe862(){const _0x3bc84a=['10WPyOZx','Saving\x20authentication\x20state...','\x22\x20authentication\x20updated','756672ZZRUhF','36262ZmhGaT','string','browser','11206269TVIhWg','\x20\x20\x20Update\x20your\x20authentication\x20as\x20needed.','\x20\x20\x20A\x20browser\x20will\x20open\x20with\x20your\x20existing\x20session\x20(if\x20any).','gopgW','isTTY','config_write','log','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','zBVMO','75orgIsi','hjwWX','kyjWz','nqxxR','trackPhaseStart','utf-8','Config\x20not\x20found\x20at\x20','parse','auth.json','\x0a📋\x20Authentication\x20Update','trackPhaseEnd','✓\x20Auth\x20state\x20saved\x20to:\x20','qJlXH','35kxnIMD','\x0a✅\x20Profile\x20\x22','Profile\x20\x22','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','804810HlVoCW','newPage','rhumG','qcyBN','479096lpveNh','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','tShjo','baseUrl','HYkpr','catch','1841664cpIoXz','browser_auth','2089720uwqqJl','contextOptions','close'];_0xe862=function(){return _0x3bc84a;};return _0xe862();}import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir,isEnvCi}from'./utils/settings.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';export async function updateEnv(_0x513bcf,_0x343241){const _0x2baa69=_0x5aa4,_0x2e433={'nqxxR':function(_0x31b954){return _0x31b954();},'TIxcg':function(_0x69cbfe){return _0x69cbfe();},'zBVMO':function(_0x235b27,_0x5d3038,_0xe866e1){return _0x235b27(_0x5d3038,_0xe866e1);},'qJlXH':'settings.json','iVaKu':_0x2baa69(0x209),'kyjWz':function(_0x230d05,_0x529e82){return _0x230d05+_0x529e82;},'tShjo':'.enc','TsQrV':'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','XTDLa':function(_0x536e25,_0x5e8d70){return _0x536e25(_0x5e8d70);},'mtkLx':_0x2baa69(0x206),'HYkpr':function(_0xbda07,_0x32d7f9){return _0xbda07===_0x32d7f9;},'rhumG':function(_0x4377af,_0x53ece0){return _0x4377af(_0x53ece0);},'roUUE':_0x2baa69(0x20a),'OvZJA':_0x2baa69(0x1fa),'hjwWX':_0x2baa69(0x1f9),'gopgW':'\x20\x20\x20When\x20you\x20are\x20done,\x20close\x20the\x20browser.\x0a','SUGUW':'about:blank','qcyBN':_0x2baa69(0x217),'lAcrW':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','BVsYX':_0x2baa69(0x1fd)},_0x4b6996=getEnvDir(_0x513bcf),_0xe36500=_0x2e433[_0x2baa69(0x200)](join,_0x4b6996,_0x2e433[_0x2baa69(0x20d)]),_0x414025=join(_0x4b6996,_0x2e433['iVaKu']),_0x2ce861=_0x2e433[_0x2baa69(0x203)](_0x414025,_0x2e433[_0x2baa69(0x218)]),_0x3b58ef=process['stdin'][_0x2baa69(0x1fc)]&&process['stdout']['isTTY'];if(!_0x3b58ef)throw new Error(_0x2e433['TsQrV']);if(!_0x2e433['XTDLa'](existsSync,_0x4b6996))throw new Error(_0x2baa69(0x210)+_0x513bcf+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x513bcf);if(!existsSync(_0xe36500))throw new Error(_0x2baa69(0x207)+_0xe36500+_0x2baa69(0x1ff)+_0x513bcf);const _0x469781=await _0x2e433['zBVMO'](readFile,_0xe36500,_0x2e433['mtkLx']),_0x574081=JSON[_0x2baa69(0x208)](_0x469781),_0x59f07c=_0x2e433[_0x2baa69(0x21a)](typeof _0x574081['baseUrl'],_0x2baa69(0x1f6))?_0x574081[_0x2baa69(0x219)]:undefined,_0x273143=_0x2e433['XTDLa'](existsSync,_0x414025),_0x39ee71=_0x2e433[_0x2baa69(0x214)](isEnvCi,_0x513bcf);_0x343241?.[_0x2baa69(0x205)](_0x2baa69(0x21d)),console[_0x2baa69(0x1fe)](_0x2e433['roUUE']),console[_0x2baa69(0x1fe)](_0x2e433['OvZJA']),console[_0x2baa69(0x1fe)](_0x2e433[_0x2baa69(0x202)]),console['log'](_0x2e433[_0x2baa69(0x1fb)]);const _0x2b146f=await chromium['launch']({'headless':![]}),_0x111ca7=_0x273143?{'storageState':_0x414025}:{};let _0x2df140=null;try{_0x2df140=await _0x2b146f['newContext'](_0x111ca7),await _0x2e433['rhumG'](addProfileSetupBanner,_0x2df140);const _0x391efe=await _0x2df140[_0x2baa69(0x213)]();await _0x391efe['goto'](_0x59f07c||_0x2e433['SUGUW']),await new Promise(_0x3c0999=>{const _0x15570e=_0x2baa69;_0x391efe['on'](_0x15570e(0x220),async()=>{const _0x5eef19=_0x15570e;try{console['log'](_0x5eef19(0x1f2)),await _0x2df140?.['storageState']({'path':_0x414025}),_0x2e433[_0x5eef19(0x204)](_0x3c0999);}catch{_0x2e433['TIxcg'](_0x3c0999);}});});}finally{_0x2df140&&await _0x2df140[_0x2baa69(0x220)]()[_0x2baa69(0x21b)](()=>{}),await _0x2b146f['close']()['catch'](()=>{});}if(_0x39ee71){const _0x2d54df=await _0x2e433['zBVMO'](readFile,_0x414025,_0x2e433['mtkLx']),_0x38805c=await _0x2e433['nqxxR'](getToken);if(!_0x38805c)console['error'](_0x2e433[_0x2baa69(0x215)]),console['log'](_0x2baa69(0x20c)+_0x414025);else{const _0x4f9169=encrypt(_0x2d54df,_0x38805c);await writeFile(_0x2ce861,_0x4f9169),await unlink(_0x414025),console[_0x2baa69(0x1fe)]('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x2ce861),console[_0x2baa69(0x1fe)](_0x2baa69(0x211)),console[_0x2baa69(0x1fe)](_0x2e433['lAcrW']);}}else console[_0x2baa69(0x1fe)]('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x414025);_0x343241?.[_0x2baa69(0x20b)]('browser_auth'),_0x343241?.[_0x2baa69(0x205)](_0x2e433['BVsYX']),_0x574081['browser']=_0x574081[_0x2baa69(0x1f7)]||{},_0x574081[_0x2baa69(0x1f7)]['contextOptions']=_0x574081['browser']['contextOptions']||{},_0x574081[_0x2baa69(0x1f7)][_0x2baa69(0x21f)]['storageState']=_0x414025,await writeFile(_0xe36500,JSON['stringify'](_0x574081,null,0x2)),console['log']('✓\x20Updated\x20config:\x20'+_0xe36500),_0x343241?.[_0x2baa69(0x20b)](_0x2baa69(0x1fd)),console[_0x2baa69(0x1fe)](_0x2baa69(0x20f)+_0x513bcf+_0x2baa69(0x1f3));}
1
+ (function(_0x566d37,_0x5e0284){const _0x553e0c=_0x36d3,_0x304930=_0x566d37();while(!![]){try{const _0x359925=-parseInt(_0x553e0c(0x14b))/0x1*(parseInt(_0x553e0c(0x138))/0x2)+-parseInt(_0x553e0c(0x13c))/0x3+parseInt(_0x553e0c(0x157))/0x4+-parseInt(_0x553e0c(0x155))/0x5*(-parseInt(_0x553e0c(0x154))/0x6)+-parseInt(_0x553e0c(0x134))/0x7+parseInt(_0x553e0c(0x143))/0x8*(-parseInt(_0x553e0c(0x14f))/0x9)+-parseInt(_0x553e0c(0x15f))/0xa*(-parseInt(_0x553e0c(0x139))/0xb);if(_0x359925===_0x5e0284)break;else _0x304930['push'](_0x304930['shift']());}catch(_0x4c6a6b){_0x304930['push'](_0x304930['shift']());}}}(_0xd18b,0x6b6df));import{writeFile,readFile,unlink}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x36d3(_0xcb5743,_0x186c21){_0xcb5743=_0xcb5743-0x134;const _0xd18b69=_0xd18b();let _0x36d373=_0xd18b69[_0xcb5743];return _0x36d373;}import{chromium}from'playwright';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir,isEnvCi}from'./utils/settings.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';export async function updateEnv(_0x1a1154,_0x766891){const _0x17b922=_0x36d3,_0x3fc2aa={'TAwWD':_0x17b922(0x15c),'CBdKg':function(_0x3aacb0){return _0x3aacb0();},'EUhHm':function(_0x2acd2b,_0x47e10d,_0x2aae1b){return _0x2acd2b(_0x47e10d,_0x2aae1b);},'FrGKj':function(_0x4992a3,_0x3429a4,_0x4c4aa7){return _0x4992a3(_0x3429a4,_0x4c4aa7);},'DQzkM':function(_0x208101,_0x368a53){return _0x208101(_0x368a53);},'ltPjF':function(_0xb866c5,_0x633a7c,_0x2fb311){return _0xb866c5(_0x633a7c,_0x2fb311);},'oteNY':_0x17b922(0x13e),'bRAPk':function(_0x35bea6,_0x3a5e6d){return _0x35bea6===_0x3a5e6d;},'QsGdi':function(_0x16446f,_0x4ac68e){return _0x16446f(_0x4ac68e);},'LARyp':'browser_auth','mfuiS':'\x20\x20\x20Update\x20your\x20authentication\x20as\x20needed.','rfsVo':function(_0x5a3c97,_0x345d5d){return _0x5a3c97||_0x345d5d;},'EAFUB':_0x17b922(0x14e),'ZBQuT':_0x17b922(0x15a),'yWVeM':_0x17b922(0x149)},_0x2955ac=getEnvDir(_0x1a1154),_0x321151=_0x3fc2aa[_0x17b922(0x13f)](join,_0x2955ac,_0x17b922(0x145)),_0xdbe559=_0x3fc2aa['FrGKj'](join,_0x2955ac,'auth.json'),_0x639e7d=_0xdbe559+_0x17b922(0x141),_0x109e51=process['stdin']['isTTY']&&process[_0x17b922(0x15e)]['isTTY'];if(!_0x109e51)throw new Error('Non-interactive\x20mode\x20detected.\x0aThe\x20\x22ranger\x20profile\x20update\x22\x20command\x20requires\x20interactive\x20browser\x20authentication\x20and\x20cannot\x20be\x20run\x20in\x20non-TTY\x20environments\x20(CI,\x20scripts,\x20Claude\x20Code).\x0aTo\x20update\x20profile\x20authentication:\x0a\x20\x201.\x20Run\x20\x22ranger\x20profile\x20update\x20<name>\x22\x20in\x20an\x20interactive\x20terminal\x0a\x20\x202.\x20Commit\x20the\x20updated\x20encrypted\x20auth\x20file\x20to\x20git');if(!_0x3fc2aa[_0x17b922(0x135)](existsSync,_0x2955ac))throw new Error('Profile\x20\x22'+_0x1a1154+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x1a1154);if(!existsSync(_0x321151))throw new Error(_0x17b922(0x150)+_0x321151+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x1a1154);const _0x31b58f=await _0x3fc2aa[_0x17b922(0x140)](readFile,_0x321151,_0x3fc2aa['oteNY']),_0x589bc2=JSON[_0x17b922(0x15d)](_0x31b58f),_0x582d03=_0x3fc2aa[_0x17b922(0x156)](typeof _0x589bc2[_0x17b922(0x158)],_0x17b922(0x159))?_0x589bc2[_0x17b922(0x158)]:undefined,_0x4940cd=existsSync(_0xdbe559),_0x242851=_0x3fc2aa['QsGdi'](isEnvCi,_0x1a1154);_0x766891?.['trackPhaseStart'](_0x3fc2aa['LARyp']),console['log']('\x0a📋\x20Authentication\x20Update'),console[_0x17b922(0x144)](_0x17b922(0x13d)),console['log'](_0x3fc2aa['mfuiS']),console['log'](_0x17b922(0x152));const _0x2d28f5=await chromium['launch']({'headless':![]}),_0x19942f=_0x4940cd?{'storageState':_0xdbe559}:{};let _0x381041=null;try{_0x381041=await _0x2d28f5['newContext'](_0x19942f),await addProfileSetupBanner(_0x381041);const _0x4dce69=await _0x381041['newPage']();await _0x4dce69['goto'](_0x3fc2aa['rfsVo'](_0x582d03,_0x3fc2aa['EAFUB'])),await new Promise(_0x552a71=>{const _0x5f3441=_0x17b922;_0x4dce69['on'](_0x5f3441(0x136),async()=>{const _0x56afe7=_0x5f3441;try{console[_0x56afe7(0x144)](_0x3fc2aa['TAwWD']),await _0x381041?.[_0x56afe7(0x15b)]({'path':_0xdbe559}),_0x3fc2aa[_0x56afe7(0x137)](_0x552a71);}catch{_0x3fc2aa[_0x56afe7(0x137)](_0x552a71);}});});}finally{_0x381041&&await _0x381041[_0x17b922(0x136)]()[_0x17b922(0x13b)](()=>{}),await _0x2d28f5[_0x17b922(0x136)]()[_0x17b922(0x13b)](()=>{});}if(_0x242851){const _0x18c79e=await readFile(_0xdbe559,_0x17b922(0x13e)),_0x54de93=await getToken();if(!_0x54de93)console['error'](_0x17b922(0x147)),console['log'](_0x17b922(0x14d)+_0xdbe559);else{const _0x1d99bf=encrypt(_0x18c79e,_0x54de93);await _0x3fc2aa[_0x17b922(0x153)](writeFile,_0x639e7d,_0x1d99bf),await unlink(_0xdbe559),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x639e7d),console[_0x17b922(0x144)](_0x17b922(0x151)),console['log'](_0x3fc2aa[_0x17b922(0x13a)]);}}else console['log'](_0x17b922(0x14d)+_0xdbe559);_0x766891?.['trackPhaseEnd'](_0x3fc2aa[_0x17b922(0x14a)]),_0x766891?.['trackPhaseStart'](_0x3fc2aa[_0x17b922(0x142)]),_0x589bc2[_0x17b922(0x148)]=_0x589bc2[_0x17b922(0x148)]||{},_0x589bc2['browser'][_0x17b922(0x146)]=_0x589bc2['browser'][_0x17b922(0x146)]||{},_0x589bc2[_0x17b922(0x148)]['contextOptions'][_0x17b922(0x15b)]=_0xdbe559,await writeFile(_0x321151,JSON['stringify'](_0x589bc2,null,0x2)),console['log']('✓\x20Updated\x20config:\x20'+_0x321151),_0x766891?.[_0x17b922(0x14c)](_0x17b922(0x149)),console['log']('\x0a✅\x20Profile\x20\x22'+_0x1a1154+'\x22\x20authentication\x20updated');}function _0xd18b(){const _0x2c47d9=['about:blank','1357218GbHgBd','Config\x20not\x20found\x20at\x20','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','\x20\x20\x20When\x20you\x20are\x20done,\x20close\x20the\x20browser.\x0a','FrGKj','11112OQmUlU','1720UHSJix','bRAPk','892516hcSUll','baseUrl','string','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','storageState','Saving\x20authentication\x20state...','parse','stdout','17807410uqQNcg','5831007RoplJk','DQzkM','close','CBdKg','2HMQfHK','11YXNvtt','ZBQuT','catch','599697ahMVTO','\x20\x20\x20A\x20browser\x20will\x20open\x20with\x20your\x20existing\x20session\x20(if\x20any).','utf-8','EUhHm','ltPjF','.enc','yWVeM','40nDhRJk','log','settings.json','contextOptions','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','browser','config_write','LARyp','414017QoIsrH','trackPhaseEnd','✓\x20Auth\x20state\x20saved\x20to:\x20'];_0xd18b=function(){return _0x2c47d9;};return _0xd18b();}
@@ -1 +1 @@
1
- (function(_0x4d8448,_0x38f59c){const _0x4be1ba=_0x2d44,_0x325cb5=_0x4d8448();while(!![]){try{const _0x3a936e=-parseInt(_0x4be1ba(0x169))/0x1+parseInt(_0x4be1ba(0x167))/0x2*(-parseInt(_0x4be1ba(0x166))/0x3)+parseInt(_0x4be1ba(0x175))/0x4+parseInt(_0x4be1ba(0x16f))/0x5*(-parseInt(_0x4be1ba(0x170))/0x6)+-parseInt(_0x4be1ba(0x16b))/0x7*(parseInt(_0x4be1ba(0x168))/0x8)+-parseInt(_0x4be1ba(0x16c))/0x9*(parseInt(_0x4be1ba(0x171))/0xa)+parseInt(_0x4be1ba(0x16a))/0xb;if(_0x3a936e===_0x38f59c)break;else _0x325cb5['push'](_0x325cb5['shift']());}catch(_0x374ab2){_0x325cb5['push'](_0x325cb5['shift']());}}}(_0x1603,0x22ffe));import{join}from'path';function _0x2d44(_0x947e0b,_0x32cb28){_0x947e0b=_0x947e0b-0x165;const _0x1603f6=_0x1603();let _0x2d4412=_0x1603f6[_0x947e0b];return _0x2d4412;}import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0x1603(){const _0x3f6df4=['9857639oZgacU','119kYJVuf','138231HqZBId','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','6395tEVlOw','822wZgUgX','170dFSSjB','Profile\x20\x22','\x0a✓\x20Now\x20using\x20profile\x20\x22','BHcea','143216HCEsXO','settings.json','33279kifLgK','34siEmpo','1056MYvMsy','161444ffAQjS'];_0x1603=function(){return _0x3f6df4;};return _0x1603();}export async function useEnv(_0x19f4ba){const _0x496ee1=_0x2d44,_0x166180={'BHcea':function(_0x333dfa,_0x50d984){return _0x333dfa(_0x50d984);}},_0x4c4aa0=_0x166180[_0x496ee1(0x174)](getEnvDir,_0x19f4ba),_0x2ffa19=join(_0x4c4aa0,_0x496ee1(0x165));if(!existsSync(_0x4c4aa0))throw new Error(_0x496ee1(0x172)+_0x19f4ba+_0x496ee1(0x16d)+_0x19f4ba);if(!existsSync(_0x2ffa19))throw new Error('Config\x20not\x20found\x20at\x20'+_0x2ffa19+_0x496ee1(0x16e)+_0x19f4ba);await _0x166180['BHcea'](writeActiveProfileName,_0x19f4ba),console['log'](_0x496ee1(0x173)+_0x19f4ba+'\x22');}
1
+ (function(_0x207308,_0x3faebc){const _0x494cfc=_0x4d14,_0x1e2807=_0x207308();while(!![]){try{const _0x17c9b0=parseInt(_0x494cfc(0x144))/0x1+-parseInt(_0x494cfc(0x140))/0x2*(-parseInt(_0x494cfc(0x149))/0x3)+-parseInt(_0x494cfc(0x13d))/0x4*(parseInt(_0x494cfc(0x148))/0x5)+parseInt(_0x494cfc(0x142))/0x6*(parseInt(_0x494cfc(0x145))/0x7)+parseInt(_0x494cfc(0x14a))/0x8*(parseInt(_0x494cfc(0x143))/0x9)+-parseInt(_0x494cfc(0x13f))/0xa*(parseInt(_0x494cfc(0x13e))/0xb)+parseInt(_0x494cfc(0x14b))/0xc*(-parseInt(_0x494cfc(0x147))/0xd);if(_0x17c9b0===_0x3faebc)break;else _0x1e2807['push'](_0x1e2807['shift']());}catch(_0x56da4b){_0x1e2807['push'](_0x1e2807['shift']());}}}(_0x645a,0x8f76d));function _0x645a(){const _0x5021e0=['905261oeSmay','oDYfG','13mANtRZ','200775nSsXOJ','84MRozTL','116744qcVBOH','4557288hTfahB','tLOTk','\x0a✓\x20Now\x20using\x20profile\x20\x22','8KmGFfS','12532146FlTuPh','10iIBpGb','2476yZpFPZ','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','48cQsAGl','279aKIZad','665368gepsaB'];_0x645a=function(){return _0x5021e0;};return _0x645a();}import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0x4d14(_0x348cc1,_0x1b7378){_0x348cc1=_0x348cc1-0x13d;const _0x645ad0=_0x645a();let _0x4d146f=_0x645ad0[_0x348cc1];return _0x4d146f;}export async function useEnv(_0x29b8ed){const _0x1abe4f=_0x4d14,_0x55f604={'tLOTk':function(_0x5beda7,_0xf76305){return _0x5beda7(_0xf76305);},'oDYfG':'settings.json'},_0x108950=_0x55f604[_0x1abe4f(0x14c)](getEnvDir,_0x29b8ed),_0x1f607f=join(_0x108950,_0x55f604[_0x1abe4f(0x146)]);if(!existsSync(_0x108950))throw new Error('Profile\x20\x22'+_0x29b8ed+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x29b8ed);if(!_0x55f604['tLOTk'](existsSync,_0x1f607f))throw new Error('Config\x20not\x20found\x20at\x20'+_0x1f607f+_0x1abe4f(0x141)+_0x29b8ed);await writeActiveProfileName(_0x29b8ed),console['log'](_0x1abe4f(0x14d)+_0x29b8ed+'\x22');}
@@ -1 +1 @@
1
- const _0x92a7b2=_0x5584;(function(_0x340868,_0x24c409){const _0x445248=_0x5584,_0x4ea4c1=_0x340868();while(!![]){try{const _0x5145c7=-parseInt(_0x445248(0x1b9))/0x1*(-parseInt(_0x445248(0x1ad))/0x2)+-parseInt(_0x445248(0x1bd))/0x3*(-parseInt(_0x445248(0x1bc))/0x4)+parseInt(_0x445248(0x1b5))/0x5+-parseInt(_0x445248(0x1af))/0x6*(parseInt(_0x445248(0x1ab))/0x7)+-parseInt(_0x445248(0x1a8))/0x8+-parseInt(_0x445248(0x1be))/0x9*(-parseInt(_0x445248(0x1b3))/0xa)+-parseInt(_0x445248(0x1b1))/0xb;if(_0x5145c7===_0x24c409)break;else _0x4ea4c1['push'](_0x4ea4c1['shift']());}catch(_0x1420a9){_0x4ea4c1['push'](_0x4ea4c1['shift']());}}}(_0x11a4,0xc4006));import{existsSync}from'fs';import{mkdir,readFile,rename,unlink,writeFile}from'fs/promises';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';const ACTIVE_PROFILE_FILE='active-profile.txt',LEGACY_ACTIVE_ENV_FILE=_0x92a7b2(0x1aa);function getActiveProfilePath(){const _0x1087b3=_0x92a7b2,_0x3a3dae={'XCoCt':function(_0x247e1d,_0x1f9a55,_0x267b48){return _0x247e1d(_0x1f9a55,_0x267b48);}};return _0x3a3dae[_0x1087b3(0x1ba)](join,getRangerDir(),ACTIVE_PROFILE_FILE);}function getLegacyActiveEnvPath(){const _0x1f606e=_0x92a7b2,_0x29aa6d={'kyiwM':function(_0x24ce3b,_0x5d936b,_0x643d5){return _0x24ce3b(_0x5d936b,_0x643d5);},'SzmAv':function(_0xf89be3){return _0xf89be3();}};return _0x29aa6d[_0x1f606e(0x1b0)](join,_0x29aa6d[_0x1f606e(0x1a9)](getRangerDir),LEGACY_ACTIVE_ENV_FILE);}async function migrateLegacyActiveEnv(){const _0x10bd51=_0x92a7b2,_0xdaecb9={'PTkXz':function(_0x5cf6e0,_0x139db4){return _0x5cf6e0(_0x139db4);},'nIDyR':function(_0x5b7de9,_0x1ecda7,_0x162214){return _0x5b7de9(_0x1ecda7,_0x162214);},'sMwHL':function(_0x138844){return _0x138844();}},_0x1d1bbb=getLegacyActiveEnvPath();if(!_0xdaecb9[_0x10bd51(0x1bb)](existsSync,_0x1d1bbb))return null;let _0x13beb8=null;try{_0x13beb8=(await readFile(_0x1d1bbb,_0x10bd51(0x1b4)))[_0x10bd51(0x1b6)]()||null;}catch{_0x13beb8=null;}if(!_0x13beb8)return null;const _0xa3700a=getActiveProfilePath();try{await _0xdaecb9[_0x10bd51(0x1b8)](rename,_0x1d1bbb,_0xa3700a);}catch{try{const _0x293f66=_0xdaecb9['sMwHL'](getRangerDir);await _0xdaecb9[_0x10bd51(0x1b8)](mkdir,_0x293f66,{'recursive':!![]}),await writeFile(_0xa3700a,_0x13beb8,_0x10bd51(0x1b4)),await unlink(_0x1d1bbb);}catch{}}return _0x13beb8;}export async function readActiveProfileName(){const _0x3e00da=_0x92a7b2,_0x20d059={'cufJE':function(_0x548026,_0x2bfde6){return _0x548026(_0x2bfde6);},'hXrkq':function(_0x634d3b){return _0x634d3b();}},_0x477eae=getActiveProfilePath();if(_0x20d059['cufJE'](existsSync,_0x477eae))try{return(await readFile(_0x477eae,_0x3e00da(0x1b4)))[_0x3e00da(0x1b6)]()||null;}catch{return null;}return await _0x20d059[_0x3e00da(0x1a7)](migrateLegacyActiveEnv);}function _0x11a4(){const _0x248aa3=['fiNEK','9193570EiiSwn','utf-8','5135665qRGcMW','trim','ufWqz','nIDyR','291nfHxnV','XCoCt','PTkXz','4064PWCqTk','978yBdZoX','9liPrud','hXrkq','9817056eBOnbz','SzmAv','active-env.txt','2667mNxciz','KnJLu','9574cQvXhg','hpmax','16506rpXdow','kyiwM','6519018RhsYpM'];_0x11a4=function(){return _0x248aa3;};return _0x11a4();}function _0x5584(_0x347b18,_0x284464){_0x347b18=_0x347b18-0x1a7;const _0x11a412=_0x11a4();let _0x55844b=_0x11a412[_0x347b18];return _0x55844b;}export async function writeActiveProfileName(_0x102c18){const _0x186414=_0x92a7b2,_0x50e9be={'hpmax':function(_0x22b197){return _0x22b197();},'ufWqz':function(_0x4214d0,_0x58d862,_0x599222){return _0x4214d0(_0x58d862,_0x599222);},'KnJLu':function(_0x3db010){return _0x3db010();},'fiNEK':function(_0x575ae8,_0x36027d,_0x23e71a,_0x22afe5){return _0x575ae8(_0x36027d,_0x23e71a,_0x22afe5);},'hQnYq':'utf-8'},_0x34d7f5=_0x50e9be[_0x186414(0x1ae)](getRangerDir);await _0x50e9be[_0x186414(0x1b7)](mkdir,_0x34d7f5,{'recursive':!![]});const _0x4a0d66=_0x50e9be[_0x186414(0x1ac)](getActiveProfilePath);await _0x50e9be[_0x186414(0x1b2)](writeFile,_0x4a0d66,_0x102c18,_0x50e9be['hQnYq']);const _0xe494f2=getLegacyActiveEnvPath();if(existsSync(_0xe494f2))try{await unlink(_0xe494f2);}catch{}}export async function migrateActiveProfileFile(){const _0x390223=await migrateLegacyActiveEnv();return _0x390223!==null;}
1
+ function _0x557d(_0x5a9b55,_0x2596f8){_0x5a9b55=_0x5a9b55-0x6d;const _0x135611=_0x1356();let _0x557df4=_0x135611[_0x5a9b55];return _0x557df4;}const _0xf079df=_0x557d;(function(_0x106811,_0x20cd5b){const _0x2dbba1=_0x557d,_0x5db8f8=_0x106811();while(!![]){try{const _0x198621=-parseInt(_0x2dbba1(0x82))/0x1*(-parseInt(_0x2dbba1(0x7e))/0x2)+parseInt(_0x2dbba1(0x72))/0x3*(parseInt(_0x2dbba1(0x71))/0x4)+parseInt(_0x2dbba1(0x76))/0x5+-parseInt(_0x2dbba1(0x70))/0x6+-parseInt(_0x2dbba1(0x73))/0x7*(-parseInt(_0x2dbba1(0x6f))/0x8)+parseInt(_0x2dbba1(0x79))/0x9*(-parseInt(_0x2dbba1(0x80))/0xa)+-parseInt(_0x2dbba1(0x6e))/0xb*(parseInt(_0x2dbba1(0x78))/0xc);if(_0x198621===_0x20cd5b)break;else _0x5db8f8['push'](_0x5db8f8['shift']());}catch(_0x3f322e){_0x5db8f8['push'](_0x5db8f8['shift']());}}}(_0x1356,0x47613));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=_0xf079df(0x75),LEGACY_ACTIVE_ENV_FILE=_0xf079df(0x7f);function getActiveProfilePath(){const _0x43ade2=_0xf079df,_0x4dc3a6={'TDWjd':function(_0x3ad963,_0xbf7a4f,_0x12b101){return _0x3ad963(_0xbf7a4f,_0x12b101);}};return _0x4dc3a6[_0x43ade2(0x74)](join,getRangerDir(),ACTIVE_PROFILE_FILE);}function getLegacyActiveEnvPath(){const _0x27c1f9=_0xf079df,_0x22db3b={'KzzFR':function(_0x356754){return _0x356754();}};return join(_0x22db3b[_0x27c1f9(0x6d)](getRangerDir),LEGACY_ACTIVE_ENV_FILE);}async function migrateLegacyActiveEnv(){const _0x17212e=_0xf079df,_0x592b28={'fFumS':function(_0x23c024){return _0x23c024();},'ImpSp':function(_0x163f45,_0x9a0039){return _0x163f45(_0x9a0039);},'OMQZt':'utf-8','OFHOn':function(_0x3cb7b1){return _0x3cb7b1();},'rWXPF':function(_0x5d4714,_0x29932d,_0x4f0b81){return _0x5d4714(_0x29932d,_0x4f0b81);},'bISpq':function(_0x57b48e,_0x169bc9,_0xdd857a,_0x3642f2){return _0x57b48e(_0x169bc9,_0xdd857a,_0x3642f2);},'DCTds':function(_0x6a794c,_0x2abb52){return _0x6a794c(_0x2abb52);}},_0x1c342e=_0x592b28['fFumS'](getLegacyActiveEnvPath);if(!_0x592b28[_0x17212e(0x77)](existsSync,_0x1c342e))return null;let _0x471d2b=null;try{_0x471d2b=(await readFile(_0x1c342e,_0x592b28['OMQZt']))['trim']()||null;}catch{_0x471d2b=null;}if(!_0x471d2b)return null;const _0x2c0d78=_0x592b28[_0x17212e(0x7c)](getActiveProfilePath);try{await _0x592b28['rWXPF'](rename,_0x1c342e,_0x2c0d78);}catch{try{const _0x47f6dd=getRangerDir();await mkdir(_0x47f6dd,{'recursive':!![]}),await _0x592b28['bISpq'](writeFile,_0x2c0d78,_0x471d2b,'utf-8'),await _0x592b28['DCTds'](unlink,_0x1c342e);}catch{}}return _0x471d2b;}function _0x1356(){const _0x44da2d=['KzzFR','119042TsgTFC','2096kebfDP','1937940iWGtrr','24egoMPX','84501QKHRpx','5369RhkgNM','TDWjd','active-profile.txt','2517740DGzqpW','ImpSp','564tKLOqa','685935jDovZn','clcBw','BTeKQ','OFHOn','trim','12UyeDlL','active-env.txt','10NoHvNp','qxzYX','54451PYruRC'];_0x1356=function(){return _0x44da2d;};return _0x1356();}export async function readActiveProfileName(){const _0x366115=_0xf079df,_0x208a0e={'aEZzV':function(_0x41ddf3){return _0x41ddf3();},'clcBw':function(_0x5b4cb4){return _0x5b4cb4();}},_0x120310=_0x208a0e['aEZzV'](getActiveProfilePath);if(existsSync(_0x120310))try{return(await readFile(_0x120310,'utf-8'))[_0x366115(0x7d)]()||null;}catch{return null;}return await _0x208a0e[_0x366115(0x7a)](migrateLegacyActiveEnv);}export async function writeActiveProfileName(_0xf16f59){const _0x32bad9=_0xf079df,_0x3d160d={'qxzYX':function(_0x1c03bf){return _0x1c03bf();},'BTeKQ':function(_0x30c70b,_0x1ab2bb,_0x4be984){return _0x30c70b(_0x1ab2bb,_0x4be984);},'JYcmo':function(_0x427567,_0x3177e1,_0x31495b,_0x27560f){return _0x427567(_0x3177e1,_0x31495b,_0x27560f);},'mOjLm':function(_0x18a047){return _0x18a047();}},_0x4203f6=_0x3d160d[_0x32bad9(0x81)](getRangerDir);await _0x3d160d[_0x32bad9(0x7b)](mkdir,_0x4203f6,{'recursive':!![]});const _0x3e4ef2=_0x3d160d[_0x32bad9(0x81)](getActiveProfilePath);await _0x3d160d['JYcmo'](writeFile,_0x3e4ef2,_0xf16f59,'utf-8');const _0x564507=_0x3d160d['mOjLm'](getLegacyActiveEnvPath);if(existsSync(_0x564507))try{await unlink(_0x564507);}catch{}}export async function migrateActiveProfileFile(){const _0xd67467={'NuRKF':function(_0x2fcded){return _0x2fcded();}},_0x2debd8=await _0xd67467['NuRKF'](migrateLegacyActiveEnv);return _0x2debd8!==null;}
@@ -1 +1 @@
1
- (function(_0x176ed4,_0x311e5c){const _0x157c67=_0x9cd4,_0x265305=_0x176ed4();while(!![]){try{const _0x192e57=parseInt(_0x157c67(0xd7))/0x1*(-parseInt(_0x157c67(0x8d))/0x2)+-parseInt(_0x157c67(0xda))/0x3*(-parseInt(_0x157c67(0xcd))/0x4)+-parseInt(_0x157c67(0xe2))/0x5+-parseInt(_0x157c67(0xd9))/0x6+parseInt(_0x157c67(0xe7))/0x7*(parseInt(_0x157c67(0xd8))/0x8)+-parseInt(_0x157c67(0x9c))/0x9+parseInt(_0x157c67(0xe9))/0xa;if(_0x192e57===_0x311e5c)break;else _0x265305['push'](_0x265305['shift']());}catch(_0x3e2258){_0x265305['push'](_0x265305['shift']());}}}(_0x5091,0xee85c));const _0x3617d6=(function(){const _0xdd4443=_0x9cd4,_0x398682={'QqUTj':function(_0x158639,_0x32b724,_0x1b5bd1,_0x6e84b1){return _0x158639(_0x32b724,_0x1b5bd1,_0x6e84b1);},'hTpzl':_0xdd4443(0xcc),'hgjWq':'md5','vrIaQ':function(_0x274d11,_0x2b6917){return _0x274d11===_0x2b6917;},'kBkBO':_0xdd4443(0x93),'OmulF':function(_0xaa8437,_0x429f09){return _0xaa8437===_0x429f09;},'RjKhq':_0xdd4443(0xd1),'FGJSi':_0xdd4443(0xa1),'THvjD':function(_0x51a38e,_0x7dceb6){return _0x51a38e===_0x7dceb6;},'IGqSJ':_0xdd4443(0x106)};let _0x54c6e5=!![];return function(_0x57d111,_0x337ef9){const _0x17c37e=_0xdd4443,_0x4d8cb2={'bNxCp':_0x398682[_0x17c37e(0xfb)]};if(_0x398682[_0x17c37e(0xf2)](_0x17c37e(0xfa),_0x398682[_0x17c37e(0xaa)]))return _0x398682[_0x17c37e(0xa3)](_0x3f3142,_0x3c68d8,_0x28b92a,_0x398682[_0x17c37e(0x90)]);else{const _0x1a02a9=_0x54c6e5?function(){const _0x29493a=_0x17c37e,_0x3a00ee={'fVYeG':_0x398682[_0x29493a(0x9d)]};if(_0x398682[_0x29493a(0x107)](_0x398682[_0x29493a(0xfd)],_0x398682[_0x29493a(0xfd)])){if(_0x337ef9){if(_0x398682[_0x29493a(0x101)]('WCgtv',_0x398682[_0x29493a(0x91)]))throw new _0x1df880(_0x4d8cb2['bNxCp']);else{const _0x44556c=_0x337ef9['apply'](_0x57d111,arguments);return _0x337ef9=null,_0x44556c;}}}else return _0x11fd12(_0x3a00ee[_0x29493a(0xd0)])[_0x29493a(0xb9)](_0xabb7c8)[_0x29493a(0xea)](_0x29493a(0xee));}:function(){};return _0x54c6e5=![],_0x1a02a9;}};}()),_0x109e41=_0x3617d6(this,function(){const _0x39316b=_0x9cd4,_0x2cce09={'stBdK':_0x39316b(0xe0)};return _0x109e41[_0x39316b(0x103)]()['search'](_0x2cce09['stBdK'])['toString']()[_0x39316b(0xc5)](_0x109e41)[_0x39316b(0xc2)](_0x2cce09[_0x39316b(0xb1)]);});function _0x5091(){const _0x1209c9=['BxnkCKe','l3n0zxbZlW','s2Psr0W','t211Bey','DxjS','Dg9tDhjPBMC','zhzpr2K','wgf0te8','D2HXu2G','DNjjyve','l2fZC2v0CW','ANnVBG','mJzWr3vZsfu','sMPXruq','zKP2sg0','AfrWEMW','uMPlAhe','CfHkBhe','DNHABLC','tejhq3K','DMLKzw8VD2vIBq','rwP3t0u','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','zMvHDhvYzuLK','B3DNs3u','AwDwBgi','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','mJCZmJe5m2ngyuv2rq','AgDQv3e','Bwq1','u2fUAee','l3vWBg9Hzc11CMXZ','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','C2PUtxa','uxfvvgO','vujuzK8','qMTRAKG','wKLRv2G','DNzqDKC','ufvu','zKr1BhO','suDXu0O','ue9tva','A290sLy','C3fnA3a','CMPsqKi','DxbKyxrLqNjVD3nLCLnLC3nPB24','yLzZsxG','C3rczeS','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','rgTqt1a','y0jeDKm','BgvUz3rO','CMrzBMy','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','s2TdAvu','DxbKyxrL','D0rrt2i','C3rYAw5NAwz5','txrMtha','s3vmu2O','u0nvCxG','uefuq0G','BujKsxi','A3jVEMW','C2vHCMnO','yxbWBgLJyxrPB24VANnVBG','ENrlB2e','y29UC3rYDwn0B3i','C2vZC2LVBLrVA2vU','DLfRqw4','Dgv4Da','q0T4BKu','ten5ufy','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','Aw1Hz2uVCg5N','og5cvwPxva','yxbWBgLJyxrPB24VANnVBMW','s0TctNK','zLzzzuC','A1vbAuG','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','sNPUqwK','z0rpwuK','Bwv0ywrHDge','mte2odaZteX1vuDL','mtz3vhPSC0q','ndu0mJC1nNbiCKrVAW','odK5nJKXyKrNuMv6','y1zrvMy','C2L6zq','BfjRvuS','thvIBMW','yxbWBhK','kcGOlISPkYKRksSK','BNPnEMK','ntK1nJmZmgPbDhzXuG','AKTqCxa','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','werXBgC','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','mZuWnJy0m3HkCw9KyW','AfPxwNu','mZe0ntCWndbrvMTNzeW','zgLNzxn0','l3n0zxbZ','s25guwq','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','yMfZzty0','t2f2AwO','r0vu','zw52AxjVBM1LBNroyw1L','veH2AKq','A2TZz3u','whjvCgC','z0HvBLa','CgHfu2O','A01MA00','AwnNs1K','yxbWBgLJyxrPB24VEMLW','B3nirw8','rKDku2K','qMvHCMvYia','A0jRqK8'];_0x5091=function(){return _0x1209c9;};return _0x5091();}_0x109e41();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x34b4e9){const _0x521e81=_0x9cd4,_0x57bec7={'JznAi':function(_0x5a53a5){return _0x5a53a5();},'KuLSj':function(_0x5258f2,_0x373bf0,_0xe9a101){return _0x5258f2(_0x373bf0,_0xe9a101);},'DkPOP':_0x521e81(0xab),'phESj':function(_0x4d1a8d,_0x523e38){return _0x4d1a8d!==_0x523e38;},'vvPvG':'BnVWH'},_0x23e1a3=await getToken();if(!_0x23e1a3)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0xc46d68=_0x57bec7[_0x521e81(0xd4)](getApiBaseUrl),_0x1c53d4=await _0x57bec7[_0x521e81(0xbd)](fetch,_0xc46d68+_0x521e81(0xcb),{'method':_0x57bec7[_0x521e81(0xb3)],'headers':{'Authorization':_0x521e81(0xfc)+_0x23e1a3,'Content-Type':_0x521e81(0xc3)},'body':JSON[_0x521e81(0xbb)]({'environmentName':_0x34b4e9?.[_0x521e81(0xf1)],'settings':_0x34b4e9?.['settings'],'task':_0x34b4e9?.['task'],'url':_0x34b4e9?.[_0x521e81(0x102)],'featureId':_0x34b4e9?.[_0x521e81(0x98)],'checklistItemId':_0x34b4e9?.['checklistItemId']})});if(!_0x1c53d4['ok']){if(_0x57bec7[_0x521e81(0xf6)](_0x57bec7['vvPvG'],_0x57bec7[_0x521e81(0xa7)])){const _0x270b43=_0x494709?function(){const _0x225221=_0x521e81;if(_0x16b1f3){const _0x8add3c=_0x4280e1[_0x225221(0xdf)](_0x2d4ad4,arguments);return _0xed0f4=null,_0x8add3c;}}:function(){};return _0x3c3d3b=![],_0x270b43;}else{const _0x5353e9=await _0x1c53d4['text']();throw new Error(_0x521e81(0xe6)+_0x5353e9);}}return _0x1c53d4['json']();}export async function updateBrowserSession(_0xf5913c,_0x56e5dd){const _0x115132=_0x9cd4,_0x90729={'vQkAn':_0x115132(0xa1),'SanhA':function(_0x5b64d1,_0x36657d){return _0x5b64d1===_0x36657d;},'kksgu':_0x115132(0x8f),'cVQVf':function(_0x45f226){return _0x45f226();},'mBdIr':function(_0x525596){return _0x525596();},'XatLO':function(_0x58ca2c,_0x134ffe,_0x3670cd){return _0x58ca2c(_0x134ffe,_0x3670cd);},'LBGCy':_0x115132(0xbf),'kotJV':_0x115132(0xc3),'XrUpg':function(_0x1c2c31,_0x46a374,_0x5d1833){return _0x1c2c31(_0x46a374,_0x5d1833);},'sqMkp':_0x115132(0xaf)};return _0x90729[_0x115132(0xf4)](withRetry,async()=>{const _0x3dd8ed=_0x115132;if(_0x90729[_0x3dd8ed(0x9f)](_0x90729[_0x3dd8ed(0xf3)],_0x90729[_0x3dd8ed(0xf3)])){const _0x507a9c=await _0x90729[_0x3dd8ed(0xdb)](getToken);if(!_0x507a9c)throw new Error(_0x90729[_0x3dd8ed(0xc7)]);const _0x228908=_0x90729[_0x3dd8ed(0xc0)](getApiBaseUrl),_0x41d72=await _0x90729[_0x3dd8ed(0x105)](fetch,_0x228908+_0x3dd8ed(0xe4)+_0xf5913c,{'method':_0x90729[_0x3dd8ed(0x94)],'headers':{'Authorization':'Bearer\x20'+_0x507a9c,'Content-Type':_0x90729[_0x3dd8ed(0xac)]},'body':JSON[_0x3dd8ed(0xbb)](_0x56e5dd)});if(!_0x41d72['ok']){const _0x49818e=await _0x41d72[_0x3dd8ed(0xc8)]();throw new Error(_0x3dd8ed(0xb7)+_0x49818e);}return _0x41d72[_0x3dd8ed(0x8c)]();}else throw new _0xafcfd5(_0x90729[_0x3dd8ed(0xc7)]);},{'label':_0x90729[_0x115132(0xad)]});}function _0x9cd4(_0x251904,_0x2c136f){_0x251904=_0x251904-0x8b;const _0x372b24=_0x5091();let _0x109e41=_0x372b24[_0x251904];if(_0x9cd4['FZtPzJ']===undefined){var _0x3617d6=function(_0x506251){const _0x2bb0e0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x31977c='',_0x2adedb='',_0x4739d3=_0x31977c+_0x3617d6;for(let _0x42b63f=0x0,_0x373ea1,_0x386796,_0x2333c7=0x0;_0x386796=_0x506251['charAt'](_0x2333c7++);~_0x386796&&(_0x373ea1=_0x42b63f%0x4?_0x373ea1*0x40+_0x386796:_0x386796,_0x42b63f++%0x4)?_0x31977c+=_0x4739d3['charCodeAt'](_0x2333c7+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x373ea1>>(-0x2*_0x42b63f&0x6)):_0x42b63f:0x0){_0x386796=_0x2bb0e0['indexOf'](_0x386796);}for(let _0x35eb1b=0x0,_0x2b7af9=_0x31977c['length'];_0x35eb1b<_0x2b7af9;_0x35eb1b++){_0x2adedb+='%'+('00'+_0x31977c['charCodeAt'](_0x35eb1b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2adedb);};_0x9cd4['ZqgOtC']=_0x3617d6,_0x9cd4['BZNBlB']={},_0x9cd4['FZtPzJ']=!![];}const _0x50914c=_0x372b24[0x0],_0x9cd444=_0x251904+_0x50914c,_0x2e5b30=_0x9cd4['BZNBlB'][_0x9cd444];if(!_0x2e5b30){const _0x494709=function(_0x2fb4c6){this['CncqhM']=_0x2fb4c6,this['uWFyCq']=[0x1,0x0,0x0],this['mVzPfd']=function(){return'newState';},this['KIxjhm']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['IpIhTH']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x494709['prototype']['sNqEsb']=function(){const _0x2a6e93=new RegExp(this['KIxjhm']+this['IpIhTH']),_0x26b6e7=_0x2a6e93['test'](this['mVzPfd']['toString']())?--this['uWFyCq'][0x1]:--this['uWFyCq'][0x0];return this['LyEFIa'](_0x26b6e7);},_0x494709['prototype']['LyEFIa']=function(_0x49adf6){if(!Boolean(~_0x49adf6))return _0x49adf6;return this['hqzoTo'](this['CncqhM']);},_0x494709['prototype']['hqzoTo']=function(_0x3c3d3b){for(let _0x16b1f3=0x0,_0x57688c=this['uWFyCq']['length'];_0x16b1f3<_0x57688c;_0x16b1f3++){this['uWFyCq']['push'](Math['round'](Math['random']())),_0x57688c=this['uWFyCq']['length'];}return _0x3c3d3b(this['uWFyCq'][0x0]);},new _0x494709(_0x9cd4)['sNqEsb'](),_0x109e41=_0x9cd4['ZqgOtC'](_0x109e41),_0x9cd4['BZNBlB'][_0x9cd444]=_0x109e41;}else _0x109e41=_0x2e5b30;return _0x109e41;}export async function getBrowserSession(_0x316d87){const _0x1167e5=_0x9cd4,_0x4c94f1={'ztKoa':function(_0x526eb3){return _0x526eb3();},'MtfLp':_0x1167e5(0xa1)},_0x970ed2=await _0x4c94f1[_0x1167e5(0xc4)](getToken);if(!_0x970ed2)throw new Error(_0x4c94f1[_0x1167e5(0xbc)]);const _0x769366=_0x4c94f1[_0x1167e5(0xc4)](getApiBaseUrl),_0x2369e0=await fetch(_0x769366+_0x1167e5(0xe4)+_0x316d87,{'method':_0x1167e5(0xf0),'headers':{'Authorization':_0x1167e5(0xfc)+_0x970ed2}});if(!_0x2369e0['ok']){const _0x4ab15d=await _0x2369e0['text']();throw new Error(_0x1167e5(0xed)+_0x4ab15d);}return _0x2369e0[_0x1167e5(0x8c)]();}export async function getUploadUrls(_0x2e0650,_0x55f0ba,_0x493ab4,_0x55f0f2){const _0x1c16ef=_0x9cd4,_0x3141fd={'KnFQd':'(((.+)+)+)+$','nzMzi':function(_0xf50778){return _0xf50778();},'wDQOb':function(_0x12863d,_0x51e112){return _0x12863d!==_0x51e112;},'Uicjc':'bVsIx','LCyPV':_0x1c16ef(0xa1),'EjwOE':function(_0xd79d10){return _0xd79d10();},'icgKY':_0x1c16ef(0xab),'sjnMp':_0x1c16ef(0xc3),'hZWZu':function(_0x353973,_0x5a8f20){return _0x353973!==_0x5a8f20;}},_0x10a905=await _0x3141fd[_0x1c16ef(0xe1)](getToken);if(!_0x10a905){if(_0x3141fd[_0x1c16ef(0xba)](_0x3141fd['Uicjc'],_0x1c16ef(0xb0)))return _0x2678f7[_0x1c16ef(0x103)]()[_0x1c16ef(0xc2)](TzJjFz[_0x1c16ef(0xec)])[_0x1c16ef(0x103)]()['constructor'](_0x3d8158)[_0x1c16ef(0xc2)](_0x1c16ef(0xe0));else throw new Error(_0x3141fd[_0x1c16ef(0xca)]);}const _0x381c9b=_0x3141fd[_0x1c16ef(0x96)](getApiBaseUrl),_0x5e99cc=await fetch(_0x381c9b+'/api/v1/mcp/browser-sessions/'+_0x2e0650+_0x1c16ef(0xa0),{'method':_0x3141fd[_0x1c16ef(0xf8)],'headers':{'Authorization':'Bearer\x20'+_0x10a905,'Content-Type':_0x3141fd[_0x1c16ef(0xa2)]},'body':JSON['stringify']({'filename':_0x55f0ba,'filetype':_0x493ab4,..._0x3141fd['hZWZu'](_0x55f0f2?.['size'],undefined)&&{'size':_0x55f0f2[_0x1c16ef(0xdc)]},..._0x3141fd[_0x1c16ef(0xe8)](_0x55f0f2?.['checksum'],undefined)&&{'checksum':_0x55f0f2['checksum']},..._0x55f0f2?.[_0x1c16ef(0xd6)]!==undefined&&{'metadata':_0x55f0f2[_0x1c16ef(0xd6)]}})});if(!_0x5e99cc['ok']){const _0x59a424=await _0x5e99cc[_0x1c16ef(0xc8)]();throw new Error(_0x1c16ef(0xd2)+_0x59a424);}return _0x5e99cc[_0x1c16ef(0x8c)]();}export async function uploadFile(_0x2e6083,_0x1f042d,_0x5b981c){const _0x4d1d57=_0x9cd4,_0x4ad7f2={'gHUnP':function(_0x2e2383,_0x37cc4c,_0x2c70a5){return _0x2e2383(_0x37cc4c,_0x2c70a5);},'BkkjH':_0x4d1d57(0xa8)},_0x528039=await _0x4ad7f2[_0x4d1d57(0xf5)](fetch,_0x2e6083,{'method':_0x4ad7f2[_0x4d1d57(0xa5)],'headers':{'Content-Type':_0x5b981c,'Content-Length':_0x1f042d[_0x4d1d57(0xb5)][_0x4d1d57(0x103)]()},'body':_0x1f042d});if(!_0x528039['ok']){const _0x15eab8=await _0x528039[_0x4d1d57(0xc8)]();throw new Error(_0x4d1d57(0xd3)+_0x15eab8);}}export async function uploadTrace(_0x8c57a1,_0x3e8f5e){const _0x19eeb1=_0x9cd4,_0x2a5d44={'rdYnf':function(_0x5ba609,_0x53d51a,_0x168a3,_0xb98a6e){return _0x5ba609(_0x53d51a,_0x168a3,_0xb98a6e);},'lRkUK':_0x19eeb1(0xf9)};return _0x2a5d44[_0x19eeb1(0xb6)](uploadFile,_0x8c57a1,_0x3e8f5e,_0x2a5d44[_0x19eeb1(0xdd)]);}export async function uploadConversation(_0x18150b,_0x5cce82){const _0x272439=_0x9cd4,_0x42a790={'Oavij':function(_0x33b207,_0x1f0018,_0x5b350b,_0xb6b888){return _0x33b207(_0x1f0018,_0x5b350b,_0xb6b888);},'jKPqp':_0x272439(0xce)};return _0x42a790[_0x272439(0xef)](uploadFile,_0x18150b,_0x5cce82,_0x42a790[_0x272439(0xe3)]);}export async function uploadScreenshot(_0x4831df,_0x3e572e){const _0x3a7e44=_0x9cd4,_0xbd87a2={'gDOYI':_0x3a7e44(0xcc)};return uploadFile(_0x4831df,_0x3e572e,_0xbd87a2[_0x3a7e44(0xd5)]);}export async function uploadVideo(_0x360523,_0x2f62f1){const _0x5e9583=_0x9cd4,_0x3ad33c={'KjRGL':function(_0x1b6753,_0x10619f,_0x29ece5,_0x110014){return _0x1b6753(_0x10619f,_0x29ece5,_0x110014);}};return _0x3ad33c[_0x5e9583(0x100)](uploadFile,_0x360523,_0x2f62f1,_0x5e9583(0x95));}export function buildTraceViewerUrl(_0x9af2da){const _0xe02cd8=_0x9cd4,_0x5a6717={'rjRBB':function(_0x24d4f5,_0x4a3490){return _0x24d4f5(_0x4a3490);}},_0x152297=_0x5a6717[_0xe02cd8(0xae)](encodeURIComponent,_0x9af2da);return _0xe02cd8(0x9b)+_0x152297;}export async function getProxySessionToken(){const _0xf28e80=_0x9cd4,_0x522d83={'Lubnl':function(_0x240d5d){return _0x240d5d();},'owgKu':_0xf28e80(0xa1),'kMfkM':function(_0x489d4f){return _0x489d4f();},'dvOGi':function(_0x3bea4d,_0x2cf4c7,_0x9842a4){return _0x3bea4d(_0x2cf4c7,_0x9842a4);},'igVlb':_0xf28e80(0xab)},_0x3f10fb=await _0x522d83[_0xf28e80(0xde)](getToken);if(!_0x3f10fb)throw new Error(_0x522d83[_0xf28e80(0x99)]);const _0x3cc9d6=_0x522d83[_0xf28e80(0xf7)](getApiBaseUrl),_0x3f65cf=await _0x522d83[_0xf28e80(0x104)](fetch,_0x3cc9d6+_0xf28e80(0xb2),{'method':_0x522d83[_0xf28e80(0x9a)],'headers':{'Authorization':'Bearer\x20'+_0x3f10fb}});if(!_0x3f65cf['ok']){const _0x268031=await _0x3f65cf[_0xf28e80(0xc8)]();throw new Error('Failed\x20to\x20get\x20proxy\x20session\x20token:\x20'+_0x268031);}const _0x41d2c1=await _0x3f65cf['json']();return _0x41d2c1[_0xf28e80(0xc6)];}export function computeChecksum(_0x27cf39){const _0x11e0cb=_0x9cd4,_0x4a91ed={'KkCiU':function(_0x253aac,_0x70cf0b){return _0x253aac(_0x70cf0b);},'JjqED':'base64'};return _0x4a91ed[_0x11e0cb(0xb8)](createHash,_0x11e0cb(0x9e))[_0x11e0cb(0xb9)](_0x27cf39)[_0x11e0cb(0xea)](_0x4a91ed[_0x11e0cb(0x8e)]);}export async function createVerificationStep(_0x3ea3db,_0x3cafeb){const _0x5423a1=_0x9cd4,_0x1bb80b={'fDulz':function(_0x3c660c){return _0x3c660c();},'msJrA':function(_0x4a96c9,_0x1bb14e,_0x11b41d){return _0x4a96c9(_0x1bb14e,_0x11b41d);},'tZGSj':'POST','UBTfO':_0x5423a1(0xc3)},_0x5e4c08=await _0x1bb80b['fDulz'](getToken);if(!_0x5e4c08)throw new Error(_0x5423a1(0xa1));const _0x2168c6=_0x1bb80b[_0x5423a1(0xa9)](getApiBaseUrl),_0xa561d0=await _0x1bb80b[_0x5423a1(0xfe)](fetch,_0x2168c6+_0x5423a1(0xe4)+_0x3ea3db+_0x5423a1(0xeb),{'method':_0x1bb80b['tZGSj'],'headers':{'Authorization':_0x5423a1(0xfc)+_0x5e4c08,'Content-Type':_0x1bb80b[_0x5423a1(0xa4)]},'body':JSON[_0x5423a1(0xbb)](_0x3cafeb)});if(!_0xa561d0['ok']){const _0x149a50=await _0xa561d0['text']();throw new Error('Failed\x20to\x20create\x20verification\x20step:\x20'+_0x149a50);}return _0xa561d0[_0x5423a1(0x8c)]();}export async function createStepAsset(_0x51e48c,_0x46297f,_0x303233){const _0x84d869=_0x9cd4,_0x38e360={'XDqlg':function(_0x22f73f,_0x17f0e6,_0x30b981,_0x25a0ee){return _0x22f73f(_0x17f0e6,_0x30b981,_0x25a0ee);},'SCUqx':function(_0x13d7c9){return _0x13d7c9();},'RORyI':_0x84d869(0x92),'KKBNy':_0x84d869(0xa1),'CKxnE':function(_0x1dfb13,_0x10e153,_0x764984){return _0x1dfb13(_0x10e153,_0x764984);},'krozl':'POST','ZIkWh':_0x84d869(0xc3)},_0x4c57e2=await _0x38e360[_0x84d869(0xbe)](getToken);if(!_0x4c57e2){if(_0x38e360['RORyI']===_0x84d869(0xb4))return _0x38e360[_0x84d869(0xe5)](_0x576576,_0x3b09e6,_0x3cacc3,_0x84d869(0x95));else throw new Error(_0x38e360[_0x84d869(0xcf)]);}const _0x35084b=_0x38e360[_0x84d869(0xbe)](getApiBaseUrl),_0x5c259a=await _0x38e360[_0x84d869(0xc9)](fetch,_0x35084b+_0x84d869(0xe4)+_0x51e48c+_0x84d869(0xff)+_0x46297f+_0x84d869(0x8b),{'method':_0x38e360[_0x84d869(0xc1)],'headers':{'Authorization':'Bearer\x20'+_0x4c57e2,'Content-Type':_0x38e360[_0x84d869(0xa6)]},'body':JSON[_0x84d869(0xbb)](_0x303233)});if(!_0x5c259a['ok']){const _0x3fae7f=await _0x5c259a[_0x84d869(0xc8)]();throw new Error(_0x84d869(0x97)+_0x3fae7f);}return _0x5c259a['json']();}
1
+ (function(_0x1b00fe,_0x4da7d1){const _0x15f707=_0x3391,_0x10f76f=_0x1b00fe();while(!![]){try{const _0x3eb2d4=parseInt(_0x15f707(0x1c9))/0x1+-parseInt(_0x15f707(0x19f))/0x2*(-parseInt(_0x15f707(0x1d2))/0x3)+parseInt(_0x15f707(0x1db))/0x4+-parseInt(_0x15f707(0x207))/0x5*(parseInt(_0x15f707(0x1f1))/0x6)+-parseInt(_0x15f707(0x20b))/0x7*(-parseInt(_0x15f707(0x19d))/0x8)+parseInt(_0x15f707(0x189))/0x9*(-parseInt(_0x15f707(0x20c))/0xa)+parseInt(_0x15f707(0x1d4))/0xb;if(_0x3eb2d4===_0x4da7d1)break;else _0x10f76f['push'](_0x10f76f['shift']());}catch(_0xfb6cbb){_0x10f76f['push'](_0x10f76f['shift']());}}}(_0x26a5,0x5f2f8));const _0x5c8722=(function(){const _0xa3f19f=_0x3391,_0x32ffe1={'kLIGX':function(_0x3aa0e4,_0x8cc879){return _0x3aa0e4!==_0x8cc879;},'pKUxe':_0xa3f19f(0x1bc),'MnEwI':_0xa3f19f(0x211),'zdgVZ':_0xa3f19f(0x1d9),'kGgFO':function(_0x529d78,_0x10d1c3){return _0x529d78!==_0x10d1c3;},'VCZbD':_0xa3f19f(0x1a6),'CZzrA':'NjcOD'};let _0x1a322a=!![];return function(_0x2170a6,_0x27bbcb){const _0x4eaa3c=_0xa3f19f;if(_0x32ffe1[_0x4eaa3c(0x213)](_0x32ffe1['VCZbD'],_0x32ffe1[_0x4eaa3c(0x1b3)])){const _0x1c5154=_0x1a322a?function(){const _0xb5688d=_0x4eaa3c;if(_0x32ffe1['kLIGX'](_0x32ffe1[_0xb5688d(0x1a8)],_0x32ffe1[_0xb5688d(0x199)])){if(_0x27bbcb){const _0x48fa34=_0x27bbcb['apply'](_0x2170a6,arguments);return _0x27bbcb=null,_0x48fa34;}}else{const _0x34756b=_0x48bdc2?function(){const _0x796d99=_0xb5688d;if(_0x58f846){const _0xce71d3=_0x59e2c3[_0x796d99(0x1f3)](_0x1f4e22,arguments);return _0x3035a9=null,_0xce71d3;}}:function(){};return _0x45ca31=![],_0x34756b;}}:function(){};return _0x1a322a=![],_0x1c5154;}else throw new _0x78e6c0(_0x32ffe1[_0x4eaa3c(0x208)]);};}()),_0x32b7dd=_0x5c8722(this,function(){const _0x4b37f8=_0x3391,_0x2fe876={'RazNa':_0x4b37f8(0x19a)};return _0x32b7dd[_0x4b37f8(0x200)]()['search'](_0x2fe876[_0x4b37f8(0x1bb)])[_0x4b37f8(0x200)]()[_0x4b37f8(0x19b)](_0x32b7dd)[_0x4b37f8(0x1de)](_0x4b37f8(0x19a));});_0x32b7dd();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x536f8b){const _0x5ba1d9=_0x3391,_0x1b27a7={'ayGpF':_0x5ba1d9(0x19a),'oiQJV':function(_0xa84a9c){return _0xa84a9c();},'LLilJ':_0x5ba1d9(0x1a2),'oygNQ':_0x5ba1d9(0x1c8),'bzlZQ':_0x5ba1d9(0x1d9),'nEjKD':function(_0x52a3bd){return _0x52a3bd();},'KmjTo':_0x5ba1d9(0x18a),'FnLrF':_0x5ba1d9(0x1d0)},_0x33086b=await _0x1b27a7[_0x5ba1d9(0x18f)](getToken);if(!_0x33086b){if(_0x1b27a7[_0x5ba1d9(0x190)]===_0x1b27a7[_0x5ba1d9(0x205)])return _0x202fe2(_0x44901e,_0x133ab8,'application/zip');else throw new Error(_0x1b27a7['bzlZQ']);}const _0x27980b=_0x1b27a7[_0x5ba1d9(0x188)](getApiBaseUrl),_0x17bf79=await fetch(_0x27980b+_0x5ba1d9(0x1e8),{'method':_0x5ba1d9(0x1cd),'headers':{'Authorization':_0x5ba1d9(0x212)+_0x33086b,'Content-Type':_0x1b27a7['KmjTo']},'body':JSON[_0x5ba1d9(0x1c3)]({'environmentName':_0x536f8b?.[_0x5ba1d9(0x1d8)],'settings':_0x536f8b?.[_0x5ba1d9(0x1da)],'task':_0x536f8b?.[_0x5ba1d9(0x1f6)],'url':_0x536f8b?.[_0x5ba1d9(0x195)],'featureId':_0x536f8b?.[_0x5ba1d9(0x1c6)],'checklistItemId':_0x536f8b?.['checklistItemId']})});if(!_0x17bf79['ok']){if(_0x1b27a7[_0x5ba1d9(0x1f9)]!==_0x5ba1d9(0x1d0))return _0xa19f13[_0x5ba1d9(0x200)]()[_0x5ba1d9(0x1de)](bUgjbA['ayGpF'])[_0x5ba1d9(0x200)]()['constructor'](_0x25cff9)[_0x5ba1d9(0x1de)](bUgjbA[_0x5ba1d9(0x1b0)]);else{const _0x2f88e6=await _0x17bf79['text']();throw new Error(_0x5ba1d9(0x1d5)+_0x2f88e6);}}return _0x17bf79[_0x5ba1d9(0x1a1)]();}export async function updateBrowserSession(_0x3d9bd3,_0x55021c){const _0x73f567=_0x3391,_0x29c962={'hKXAo':_0x73f567(0x1d9),'mzvai':function(_0x1599b7){return _0x1599b7();},'PkICg':function(_0x5bac7a,_0x194c3d,_0x5be6f2){return _0x5bac7a(_0x194c3d,_0x5be6f2);},'aDspo':_0x73f567(0x18a),'nLbeW':_0x73f567(0x20a)};return _0x29c962['PkICg'](withRetry,async()=>{const _0x3a5021=_0x73f567,_0x2a430e=await getToken();if(!_0x2a430e)throw new Error(_0x29c962[_0x3a5021(0x1ce)]);const _0x2dec78=_0x29c962[_0x3a5021(0x1fe)](getApiBaseUrl),_0x3165f6=await _0x29c962[_0x3a5021(0x1dc)](fetch,_0x2dec78+'/api/v1/mcp/browser-sessions/'+_0x3d9bd3,{'method':_0x3a5021(0x1af),'headers':{'Authorization':_0x3a5021(0x212)+_0x2a430e,'Content-Type':_0x29c962[_0x3a5021(0x18c)]},'body':JSON[_0x3a5021(0x1c3)](_0x55021c)});if(!_0x3165f6['ok']){const _0x2fe6d5=await _0x3165f6[_0x3a5021(0x1e2)]();throw new Error(_0x3a5021(0x1a5)+_0x2fe6d5);}return _0x3165f6[_0x3a5021(0x1a1)]();},{'label':_0x29c962[_0x73f567(0x20f)]});}export async function getBrowserSession(_0x32919d){const _0x509bfd=_0x3391,_0x291dd3={'ScXCB':function(_0x2579e9){return _0x2579e9();},'JQtkz':_0x509bfd(0x1d9),'JKZys':function(_0x28944f,_0x1a2900,_0x14af5c){return _0x28944f(_0x1a2900,_0x14af5c);},'FAydJ':'GET','FOkDc':function(_0x5cdba5,_0x203f10){return _0x5cdba5===_0x203f10;},'IMAto':_0x509bfd(0x1f7),'yaPxD':_0x509bfd(0x18b)},_0x30a9c0=await _0x291dd3['ScXCB'](getToken);if(!_0x30a9c0)throw new Error(_0x291dd3[_0x509bfd(0x1c2)]);const _0x2db8dd=_0x291dd3['ScXCB'](getApiBaseUrl),_0x4b605f=await _0x291dd3[_0x509bfd(0x214)](fetch,_0x2db8dd+_0x509bfd(0x1f2)+_0x32919d,{'method':_0x291dd3[_0x509bfd(0x1dd)],'headers':{'Authorization':'Bearer\x20'+_0x30a9c0}});if(!_0x4b605f['ok']){if(_0x291dd3[_0x509bfd(0x18e)](_0x291dd3[_0x509bfd(0x196)],_0x291dd3[_0x509bfd(0x201)])){const _0x37f6a6=_0x1325c7(_0x1719d8);return'https://trace.playwright.dev/?trace='+_0x37f6a6;}else{const _0x4cbd6b=await _0x4b605f[_0x509bfd(0x1e2)]();throw new Error(_0x509bfd(0x1e9)+_0x4cbd6b);}}return _0x4b605f[_0x509bfd(0x1a1)]();}function _0x3391(_0x505152,_0x3da808){_0x505152=_0x505152-0x187;const _0x730589=_0x26a5();let _0x32b7dd=_0x730589[_0x505152];if(_0x3391['DElIuI']===undefined){var _0x5c8722=function(_0x411863){const _0x5ca59d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x58c743='',_0x19c19c='',_0x519d1d=_0x58c743+_0x5c8722;for(let _0x5ded4b=0x0,_0x195f59,_0x2918be,_0x542473=0x0;_0x2918be=_0x411863['charAt'](_0x542473++);~_0x2918be&&(_0x195f59=_0x5ded4b%0x4?_0x195f59*0x40+_0x2918be:_0x2918be,_0x5ded4b++%0x4)?_0x58c743+=_0x519d1d['charCodeAt'](_0x542473+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x195f59>>(-0x2*_0x5ded4b&0x6)):_0x5ded4b:0x0){_0x2918be=_0x5ca59d['indexOf'](_0x2918be);}for(let _0x93dbda=0x0,_0x426560=_0x58c743['length'];_0x93dbda<_0x426560;_0x93dbda++){_0x19c19c+='%'+('00'+_0x58c743['charCodeAt'](_0x93dbda)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19c19c);};_0x3391['uNSOIq']=_0x5c8722,_0x3391['uWnhsB']={},_0x3391['DElIuI']=!![];}const _0x26a5c3=_0x730589[0x0],_0x339146=_0x505152+_0x26a5c3,_0x1c28c0=_0x3391['uWnhsB'][_0x339146];if(!_0x1c28c0){const _0x48bdc2=function(_0x3af2f1){this['EDBvbI']=_0x3af2f1,this['HaoEjn']=[0x1,0x0,0x0],this['XoyrRL']=function(){return'newState';},this['cRHTLr']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['WwINHP']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x48bdc2['prototype']['rrBMuu']=function(){const _0x1e4cc8=new RegExp(this['cRHTLr']+this['WwINHP']),_0x5726e1=_0x1e4cc8['test'](this['XoyrRL']['toString']())?--this['HaoEjn'][0x1]:--this['HaoEjn'][0x0];return this['dXlfxD'](_0x5726e1);},_0x48bdc2['prototype']['dXlfxD']=function(_0x2b5930){if(!Boolean(~_0x2b5930))return _0x2b5930;return this['dfEIQp'](this['EDBvbI']);},_0x48bdc2['prototype']['dfEIQp']=function(_0x45ca31){for(let _0x58f846=0x0,_0x290b9a=this['HaoEjn']['length'];_0x58f846<_0x290b9a;_0x58f846++){this['HaoEjn']['push'](Math['round'](Math['random']())),_0x290b9a=this['HaoEjn']['length'];}return _0x45ca31(this['HaoEjn'][0x0]);},new _0x48bdc2(_0x3391)['rrBMuu'](),_0x32b7dd=_0x3391['uNSOIq'](_0x32b7dd),_0x3391['uWnhsB'][_0x339146]=_0x32b7dd;}else _0x32b7dd=_0x1c28c0;return _0x32b7dd;}export async function getUploadUrls(_0x55c6c3,_0x37fc44,_0x40148d,_0x1229da){const _0x4ede0e=_0x3391,_0x4b2cea={'jrtfl':function(_0x35e4a6,_0x42fa4e){return _0x35e4a6===_0x42fa4e;},'qPQfB':'zMewo','tueLz':_0x4ede0e(0x1d9),'LrQXx':function(_0x471114){return _0x471114();},'NSVRl':function(_0x2096fb,_0x538e17,_0x4ffb73){return _0x2096fb(_0x538e17,_0x4ffb73);},'EmscH':_0x4ede0e(0x18a),'CtWWs':function(_0x1ee1c4,_0x3ac773){return _0x1ee1c4!==_0x3ac773;},'quAGp':function(_0x1be1d8,_0x3092d4){return _0x1be1d8!==_0x3092d4;},'CxovJ':function(_0x2d4e41,_0x3ecc58){return _0x2d4e41!==_0x3ecc58;}},_0x16e9cf=await getToken();if(!_0x16e9cf){if(_0x4b2cea[_0x4ede0e(0x1e3)](_0x4ede0e(0x1ea),_0x4b2cea[_0x4ede0e(0x1e5)]))throw new Error(_0x4b2cea[_0x4ede0e(0x1c5)]);else{const _0x34c98e=_0x57c587['apply'](_0x1696d0,arguments);return _0x126511=null,_0x34c98e;}}const _0x325055=_0x4b2cea[_0x4ede0e(0x19e)](getApiBaseUrl),_0xf0e157=await _0x4b2cea['NSVRl'](fetch,_0x325055+_0x4ede0e(0x1f2)+_0x55c6c3+_0x4ede0e(0x1ec),{'method':_0x4ede0e(0x1cd),'headers':{'Authorization':_0x4ede0e(0x212)+_0x16e9cf,'Content-Type':_0x4b2cea[_0x4ede0e(0x1a0)]},'body':JSON[_0x4ede0e(0x1c3)]({'filename':_0x37fc44,'filetype':_0x40148d,..._0x4b2cea[_0x4ede0e(0x1cf)](_0x1229da?.[_0x4ede0e(0x191)],undefined)&&{'size':_0x1229da[_0x4ede0e(0x191)]},..._0x4b2cea[_0x4ede0e(0x1ca)](_0x1229da?.['checksum'],undefined)&&{'checksum':_0x1229da[_0x4ede0e(0x1fa)]},..._0x4b2cea[_0x4ede0e(0x1ff)](_0x1229da?.['metadata'],undefined)&&{'metadata':_0x1229da['metadata']}})});if(!_0xf0e157['ok']){const _0x5c9145=await _0xf0e157['text']();throw new Error(_0x4ede0e(0x1c7)+_0x5c9145);}return _0xf0e157[_0x4ede0e(0x1a1)]();}export async function uploadFile(_0x12e11d,_0x239e90,_0x164118){const _0x17aade=_0x3391,_0x1f33c5={'YMSsd':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','JCxSd':_0x17aade(0x202),'xHoLD':function(_0x539f91,_0x459218){return _0x539f91!==_0x459218;},'HvohB':_0x17aade(0x1b1),'KXKqK':_0x17aade(0x1eb)},_0x9d0bf4=await fetch(_0x12e11d,{'method':_0x1f33c5[_0x17aade(0x1ba)],'headers':{'Content-Type':_0x164118,'Content-Length':_0x239e90['length'][_0x17aade(0x200)]()},'body':_0x239e90});if(!_0x9d0bf4['ok']){if(_0x1f33c5[_0x17aade(0x1e6)](_0x1f33c5[_0x17aade(0x1c1)],_0x1f33c5[_0x17aade(0x1ed)])){const _0x2c210a=await _0x9d0bf4[_0x17aade(0x1e2)]();throw new Error(_0x17aade(0x1bd)+_0x2c210a);}else throw new _0x4639a3(_0x1f33c5['YMSsd']);}}export async function uploadTrace(_0x15c7cb,_0x42e224){const _0x377f87=_0x3391,_0xdc8f12={'gOqJc':function(_0x1deafa,_0x2c8d23,_0x1dbed2,_0x4ea5f7){return _0x1deafa(_0x2c8d23,_0x1dbed2,_0x4ea5f7);},'fULad':'application/zip'};return _0xdc8f12['gOqJc'](uploadFile,_0x15c7cb,_0x42e224,_0xdc8f12[_0x377f87(0x1b2)]);}export async function uploadConversation(_0xdbe894,_0x469c4b){const _0x547612=_0x3391,_0x37af3a={'VJVKy':function(_0x4b2343,_0x5dab85,_0x57e95f,_0x453768){return _0x4b2343(_0x5dab85,_0x57e95f,_0x453768);},'fmEQC':'application/jsonl'};return _0x37af3a[_0x547612(0x197)](uploadFile,_0xdbe894,_0x469c4b,_0x37af3a['fmEQC']);}function _0x26a5(){const _0x4e0212=['tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','C2v0DgLUz3m','nJeXmZGWD0vxAK1M','ugTjq2C','rKf5zeO','C2vHCMnO','yujIqvi','Bgnivxq','Cg9wCfq','Dgv4Da','ANj0zMW','Aw1Hz2uVCg5N','CvbrzKi','EeHVteq','zfn4vxK','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','EK1LD28','EeDXrwe','l3vWBg9Hzc11CMXZ','s1HlCuS','A2P3wNe','y051r1e','qvjOz3i','nNPLExDmAW','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','yxbWBhK','t3PMseC','q3HZCMO','DgfZAW','D0Tjtwm','Ew1TqKq','rM5mCKy','y2HLy2TZDw0','z3zWC1q','z0n6CMO','BvLgq1q','BxP2ywK','q3HVDKO','Dg9tDhjPBMC','EwfqEeq','ufvu','A0L4CgW','l3n0zxbZ','B3LNtLe','uffQwvK','mJGYnZu5nwn5uKHNtG','EMrNvLO','ruviu3K','DxbKyxrLqNjVD3nLCLnLC3nPB24','nJq3odCXvNHTy01m','ntm0odmWAu12zMjc','vNfIqxy','zfbhEgy','BKXIzvC','verjsgi','ExHPD3G','qMvHCMvYia','A0DNrK8','sKTAExm','t25OzhG','BKvQs0q','nZjyuNrcAKS','yxbWBgLJyxrPB24VANnVBG','CenJEgC','yurZCg8','Exz6uwe','rK9Rrgm','B2LrsLy','teXPBeO','C2L6zq','r3L1yK4','s3DcyM4','ufryvM4','DxjS','su1bDg8','vKPws3K','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','tw5fD0K','kcGOlISPkYKRksSK','y29UC3rYDwn0B3i','rvbSEva','oe9lDwnQwa','thjrwhG','mtaYuMfOtg1S','rw1Zy0G','ANnVBG','DKL1DeS','wLHureW','DMLKzw8VD2vIBq','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','rhDequ0','A2jhvNG','CeTvEgu','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','yMfZzty0','zwrvBhK','EfLjr0C','yxjcB1i','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','uefuq0G','yxLhCey','DNH4suG','zLvmywq','q1P6CKe','D3nTDgG','ue53uwW','rwvIqwK','sKzTEha','zgLNzxn0','Bxfoz3q','sKn4u2q','uMf6tMe','weveswK','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','Efz1ENG','v1zcEK0','l3n0zxbZlW','shzVAei','sLf0A3O','C3rYAw5NAwz5','DKLSrMm','DhvLthO','zMvHDhvYzuLK','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','sefeCeq','ntq1nZCZCM9AtKXA','Cxvbr3a','Axb2vgy','Bwq1','ue9tva','AeTyqw8','q3rxv3m','tvfYD24','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','mJa3ntDIBfDtv2O','l2fZC2v0CW','mJyZmtq1m1HbBxvsBa','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','zNzqsuO','C2vZC2LVBLrVA2vU','zw52AxjVBM1LBNroyw1L'];_0x26a5=function(){return _0x4e0212;};return _0x26a5();}export async function uploadScreenshot(_0x411e6e,_0x4d03cd){const _0x8cdcd5=_0x3391,_0xb92ad1={'PNwQl':_0x8cdcd5(0x1e4)};return uploadFile(_0x411e6e,_0x4d03cd,_0xb92ad1[_0x8cdcd5(0x1b5)]);}export async function uploadVideo(_0x26ca02,_0x5f4f4c){const _0xe356e1=_0x3391,_0x561cb0={'TDIHb':function(_0x40bbe2,_0x2960a5,_0x5d403b,_0x251cfd){return _0x40bbe2(_0x2960a5,_0x5d403b,_0x251cfd);},'arBoR':_0xe356e1(0x1a4)};return _0x561cb0[_0xe356e1(0x210)](uploadFile,_0x26ca02,_0x5f4f4c,_0x561cb0[_0xe356e1(0x1ad)]);}export function buildTraceViewerUrl(_0x397b04){const _0x29a2c5=_0x3391,_0xc385bb={'kJVqy':function(_0x2c5499,_0x50b8ae){return _0x2c5499(_0x50b8ae);}},_0x2c3b96=_0xc385bb['kJVqy'](encodeURIComponent,_0x397b04);return _0x29a2c5(0x1ae)+_0x2c3b96;}export async function getProxySessionToken(){const _0x25e0de=_0x3391,_0x5ab64d={'VqbAv':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','xYIGG':function(_0x8eb500){return _0x8eb500();},'xVuzx':function(_0x4df1ff,_0x299f16){return _0x4df1ff===_0x299f16;},'ARhgr':_0x25e0de(0x1a3),'gvpsT':function(_0x5a8516,_0x4348e0,_0x594814){return _0x5a8516(_0x4348e0,_0x594814);},'EebAi':'POST'},_0x33c0b4=await _0x5ab64d['xYIGG'](getToken);if(!_0x33c0b4){if(_0x5ab64d[_0x25e0de(0x1be)](_0x5ab64d[_0x25e0de(0x1f0)],_0x25e0de(0x1ab)))throw new _0x47b7ef(_0x5ab64d[_0x25e0de(0x20d)]);else throw new Error(_0x5ab64d[_0x25e0de(0x20d)]);}const _0x1b2005=_0x5ab64d[_0x25e0de(0x1ac)](getApiBaseUrl),_0x87c507=await _0x5ab64d[_0x25e0de(0x1fb)](fetch,_0x1b2005+_0x25e0de(0x1a9),{'method':_0x5ab64d[_0x25e0de(0x1b6)],'headers':{'Authorization':_0x25e0de(0x212)+_0x33c0b4}});if(!_0x87c507['ok']){const _0x2f2faf=await _0x87c507[_0x25e0de(0x1e2)]();throw new Error('Failed\x20to\x20get\x20proxy\x20session\x20token:\x20'+_0x2f2faf);}const _0x804dbf=await _0x87c507['json']();return _0x804dbf[_0x25e0de(0x1d7)];}export function computeChecksum(_0x4595ad){const _0x4b429b=_0x3391,_0x477712={'wsmth':function(_0x49053b,_0x37c5ec){return _0x49053b(_0x37c5ec);},'EPlyP':_0x4b429b(0x1cc),'WVBzM':_0x4b429b(0x1aa)};return _0x477712[_0x4b429b(0x1b4)](createHash,_0x477712[_0x4b429b(0x19c)])['update'](_0x4595ad)[_0x4b429b(0x1b8)](_0x477712[_0x4b429b(0x1bf)]);}export async function createVerificationStep(_0x4fa3e8,_0x4e7324){const _0x3abc00=_0x3391,_0x17009c={'lcHUt':function(_0x1239b3,_0x27b297,_0x42cdbc,_0x143c17){return _0x1239b3(_0x27b297,_0x42cdbc,_0x143c17);},'poVpT':_0x3abc00(0x1e4),'dSxUy':function(_0x546430){return _0x546430();},'ipvTf':_0x3abc00(0x1d9),'Onhdx':function(_0x2538a4){return _0x2538a4();},'iKeJt':_0x3abc00(0x1cd),'aBbAR':_0x3abc00(0x18a),'Cxsrj':function(_0x1a02d1,_0xfcb07d){return _0x1a02d1!==_0xfcb07d;},'dPGxf':_0x3abc00(0x209)},_0x2e52a1=await _0x17009c[_0x3abc00(0x1e7)](getToken);if(!_0x2e52a1)throw new Error(_0x17009c[_0x3abc00(0x1cb)]);const _0x47d9da=_0x17009c[_0x3abc00(0x187)](getApiBaseUrl),_0x3f7d8e=await fetch(_0x47d9da+_0x3abc00(0x1f2)+_0x4fa3e8+_0x3abc00(0x204),{'method':_0x17009c['iKeJt'],'headers':{'Authorization':'Bearer\x20'+_0x2e52a1,'Content-Type':_0x17009c[_0x3abc00(0x1df)]},'body':JSON[_0x3abc00(0x1c3)](_0x4e7324)});if(!_0x3f7d8e['ok']){if(_0x17009c[_0x3abc00(0x1f5)](_0x17009c[_0x3abc00(0x20e)],_0x17009c[_0x3abc00(0x20e)]))return _0x17009c[_0x3abc00(0x1e0)](_0x4416bc,_0x415171,_0x226c80,_0x17009c[_0x3abc00(0x1e1)]);else{const _0x1edb13=await _0x3f7d8e['text']();throw new Error(_0x3abc00(0x1d1)+_0x1edb13);}}return _0x3f7d8e[_0x3abc00(0x1a1)]();}export async function createStepAsset(_0x2ffa45,_0x3423e7,_0x651364){const _0x2fd441=_0x3391,_0x2ea41b={'cNuGQ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','gCzrj':function(_0x2b4e54){return _0x2b4e54();},'OzfHG':_0x2fd441(0x18a),'kbGVx':function(_0x372e40,_0x45923e){return _0x372e40===_0x45923e;},'PTXVn':_0x2fd441(0x193),'vIlFc':_0x2fd441(0x192)},_0x537fda=await getToken();if(!_0x537fda)throw new Error(_0x2ea41b[_0x2fd441(0x1ef)]);const _0x3e9a80=_0x2ea41b[_0x2fd441(0x1fc)](getApiBaseUrl),_0xfbe76e=await fetch(_0x3e9a80+_0x2fd441(0x1f2)+_0x2ffa45+_0x2fd441(0x1c0)+_0x3423e7+_0x2fd441(0x1d3),{'method':'POST','headers':{'Authorization':_0x2fd441(0x212)+_0x537fda,'Content-Type':_0x2ea41b[_0x2fd441(0x1f4)]},'body':JSON['stringify'](_0x651364)});if(!_0xfbe76e['ok']){if(_0x2ea41b[_0x2fd441(0x1a7)](_0x2ea41b[_0x2fd441(0x194)],_0x2ea41b[_0x2fd441(0x1c4)]))throw new _0x506775(_0x2ea41b[_0x2fd441(0x1ef)]);else{const _0x5a7a62=await _0xfbe76e[_0x2fd441(0x1e2)]();throw new Error(_0x2fd441(0x198)+_0x5a7a62);}}return _0xfbe76e[_0x2fd441(0x1a1)]();}export async function updateVerificationStep(_0x22c7b0,_0x36f389,_0x4091df){const _0xd1ce64=_0x3391,_0x3127e6={'RvPHQ':function(_0x56c46e,_0x32ec90,_0x2a7ee4,_0x2b0ff9){return _0x56c46e(_0x32ec90,_0x2a7ee4,_0x2b0ff9);},'PQjYY':'video/webm','fvPIJ':function(_0x39721f){return _0x39721f();},'kjwZq':_0xd1ce64(0x203),'mqNgt':'BYfBb','JFmxp':_0xd1ce64(0x1d9),'ymmBD':function(_0x4bc2b9,_0x449578,_0x4d9106){return _0x4bc2b9(_0x449578,_0x4d9106);},'mYFCT':'PATCH','yvzQa':_0xd1ce64(0x18a)},_0x1b96ed=await _0x3127e6[_0xd1ce64(0x1d6)](getToken);if(!_0x1b96ed){if(_0x3127e6[_0xd1ce64(0x1ee)]===_0x3127e6[_0xd1ce64(0x1b9)])return _0x3127e6['RvPHQ'](_0x266f84,_0x15a222,_0x568555,_0x3127e6[_0xd1ce64(0x206)]);else throw new Error(_0x3127e6[_0xd1ce64(0x1b7)]);}const _0x209502=getApiBaseUrl(),_0x283977=await _0x3127e6[_0xd1ce64(0x1f8)](fetch,_0x209502+_0xd1ce64(0x1f2)+_0x22c7b0+_0xd1ce64(0x1c0)+_0x36f389,{'method':_0x3127e6[_0xd1ce64(0x1fd)],'headers':{'Authorization':'Bearer\x20'+_0x1b96ed,'Content-Type':_0x3127e6[_0xd1ce64(0x18d)]},'body':JSON[_0xd1ce64(0x1c3)](_0x4091df)});if(!_0x283977['ok']){const _0x35f115=await _0x283977[_0xd1ce64(0x1e2)]();throw new Error('Failed\x20to\x20update\x20verification\x20step:\x20'+_0x35f115);}}
@@ -1 +1 @@
1
- (function(_0x26aef0,_0x58d7d2){const _0x400d4a=_0x2d04,_0x6f8ed5=_0x26aef0();while(!![]){try{const _0x219605=-parseInt(_0x400d4a(0xdd))/0x1+-parseInt(_0x400d4a(0xf2))/0x2*(parseInt(_0x400d4a(0xd7))/0x3)+-parseInt(_0x400d4a(0xde))/0x4*(parseInt(_0x400d4a(0xf8))/0x5)+parseInt(_0x400d4a(0xec))/0x6+-parseInt(_0x400d4a(0xd9))/0x7+parseInt(_0x400d4a(0xe2))/0x8*(-parseInt(_0x400d4a(0xe5))/0x9)+-parseInt(_0x400d4a(0xe8))/0xa*(-parseInt(_0x400d4a(0xd8))/0xb);if(_0x219605===_0x58d7d2)break;else _0x6f8ed5['push'](_0x6f8ed5['shift']());}catch(_0x133fc3){_0x6f8ed5['push'](_0x6f8ed5['shift']());}}}(_0x4a3b,0xa03f8));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 _0x12bfa7=_0x2d04,_0x1dce23={'wSgqx':function(_0x5ae19c,_0x2b19e9,_0x1e9846){return _0x5ae19c(_0x2b19e9,_0x1e9846);},'kgTXR':function(_0x40b6a7){return _0x40b6a7();},'NRvic':_0x12bfa7(0xf7)};return process[_0x12bfa7(0xf6)][_0x12bfa7(0xf3)]||_0x1dce23[_0x12bfa7(0xea)](join,_0x1dce23['kgTXR'](homedir),_0x1dce23[_0x12bfa7(0xe9)]);}export function getUserSkillsDir(){const _0x512540={'BbmNV':function(_0x38416c){return _0x38416c();},'KGHYP':'skills'};return join(_0x512540['BbmNV'](getClaudeConfigDir),_0x512540['KGHYP']);}function _0x4a3b(){const _0x1f8afd=['mcpServers','16196210EjyxoO','NRvic','wSgqx','DLAIm','3152472iVMfLO','skills','YjvUv','qGbYl','parse','nAeAD','382744JJopBC','CLAUDE_CONFIG_DIR','oKzUy','GCbFL','env','.claude','165agoVLu','settings.json','root','qPaaG','3FyGHQm','22GmNMEP','2595313ZDjKpk','PUNGY','utf-8','.git','454046VFNNqf','138268hCOEPR','FleeZ','TZUXB','hXdcz','422840YdNRxA','pYowW','npx','162IdaPAf','stringify'];_0x4a3b=function(){return _0x1f8afd;};return _0x4a3b();}export function getProjectRoot(){const _0x18bf2e=_0x2d04,_0x28007c={'YjvUv':function(_0x18c02f,_0x5754cf){return _0x18c02f(_0x5754cf);},'DLAIm':function(_0x3ffc55,_0x224b4f){return _0x3ffc55!==_0x224b4f;},'nAeAD':_0x18bf2e(0xf7)};let _0x34e1ca=process['cwd']();const _0x1f0735=_0x28007c[_0x18bf2e(0xee)](parse,_0x34e1ca)[_0x18bf2e(0xd5)];while(_0x28007c[_0x18bf2e(0xeb)](_0x34e1ca,_0x1f0735)){if(existsSync(join(_0x34e1ca,_0x28007c[_0x18bf2e(0xf1)])))return _0x34e1ca;if(_0x28007c[_0x18bf2e(0xee)](existsSync,join(_0x34e1ca,_0x18bf2e(0xdc))))return _0x34e1ca;_0x34e1ca=dirname(_0x34e1ca);}return process['cwd']();}function _0x2d04(_0x58339d,_0x2d5f30){_0x58339d=_0x58339d-0xd5;const _0x4a3bfe=_0x4a3b();let _0x2d048d=_0x4a3bfe[_0x58339d];return _0x2d048d;}export function getProjectSkillsDir(){const _0x18fa6a=_0x2d04,_0x5379fb={'hXdcz':function(_0x3e7305,_0x2bf2c0,_0xced15e,_0x2c10da){return _0x3e7305(_0x2bf2c0,_0xced15e,_0x2c10da);},'MNLZa':function(_0xdb6dde){return _0xdb6dde();},'ZKKgC':_0x18fa6a(0xed)};return _0x5379fb[_0x18fa6a(0xe1)](join,_0x5379fb['MNLZa'](getProjectRoot),_0x18fa6a(0xf7),_0x5379fb['ZKKgC']);}export function getSkillsDir(_0x2c76ae){const _0x2c733e={'NYMdQ':function(_0x29c005,_0x2f3cfe){return _0x29c005===_0x2f3cfe;},'uYQKZ':function(_0x459ae2){return _0x459ae2();}};return _0x2c733e['NYMdQ'](_0x2c76ae,'user')?getUserSkillsDir():_0x2c733e['uYQKZ'](getProjectSkillsDir);}export function getSettingsPath(){const _0x55a295=_0x2d04,_0x4b0061={'qGbYl':function(_0x355234){return _0x355234();}};return join(_0x4b0061[_0x55a295(0xef)](getClaudeConfigDir),_0x55a295(0xf9));}export async function loadClaudeSettings(){const _0x10a6b4=_0x2d04,_0x364596={'YUnAa':function(_0x3c4d1d){return _0x3c4d1d();},'TZUXB':'utf-8'},_0x3186cb=_0x364596['YUnAa'](getSettingsPath);if(!existsSync(_0x3186cb))return{};try{const _0x4a03df=await readFile(_0x3186cb,_0x364596[_0x10a6b4(0xe0)]);return JSON[_0x10a6b4(0xf0)](_0x4a03df);}catch{return{};}}export async function saveClaudeSettings(_0x40d8f8){const _0x14bdc0=_0x2d04,_0x26b12a={'pYowW':function(_0x265e50){return _0x265e50();},'oKzUy':function(_0x414801,_0x2a5565){return _0x414801+_0x2a5565;},'hrIOi':_0x14bdc0(0xdb)},_0x5a4f8b=getSettingsPath(),_0x5f25de=_0x26b12a[_0x14bdc0(0xe3)](getClaudeConfigDir);!existsSync(_0x5f25de)&&await mkdir(_0x5f25de,{'recursive':!![]}),await writeFile(_0x5a4f8b,_0x26b12a[_0x14bdc0(0xf4)](JSON[_0x14bdc0(0xe6)](_0x40d8f8,null,0x2),'\x0a'),_0x26b12a['hrIOi']);}export function hasRangerServerInSettings(_0x2211d8){const _0x3e7a1c=_0x2d04,_0xb5727={'PUNGY':function(_0x313a8c,_0x438887){return _0x313a8c!==_0x438887;},'FleeZ':'ranger'};return _0xb5727[_0x3e7a1c(0xda)](_0x2211d8['mcpServers']?.[_0xb5727[_0x3e7a1c(0xdf)]],undefined);}export function setRangerServerInSettings(_0x5b1fbd){const _0x33c428=_0x2d04,_0x4a01f4={'GCbFL':'ranger','VDzFh':'@ranger-testing/ranger-cli','qPaaG':'data-mcp-server'};!_0x5b1fbd[_0x33c428(0xe7)]&&(_0x5b1fbd['mcpServers']={}),_0x5b1fbd['mcpServers'][_0x4a01f4[_0x33c428(0xf5)]]={'command':_0x33c428(0xe4),'args':[_0x4a01f4['VDzFh'],_0x4a01f4[_0x33c428(0xd6)]]};}
1
+ (function(_0x429eea,_0x430212){const _0x4a83b3=_0x2107,_0x38e013=_0x429eea();while(!![]){try{const _0x14cb49=-parseInt(_0x4a83b3(0x1c8))/0x1*(-parseInt(_0x4a83b3(0x1cb))/0x2)+-parseInt(_0x4a83b3(0x1cd))/0x3*(parseInt(_0x4a83b3(0x1cf))/0x4)+parseInt(_0x4a83b3(0x1d8))/0x5+-parseInt(_0x4a83b3(0x1da))/0x6+-parseInt(_0x4a83b3(0x1d9))/0x7+parseInt(_0x4a83b3(0x1de))/0x8+-parseInt(_0x4a83b3(0x1c4))/0x9;if(_0x14cb49===_0x430212)break;else _0x38e013['push'](_0x38e013['shift']());}catch(_0x1d7d92){_0x38e013['push'](_0x38e013['shift']());}}}(_0x5319,0x26d9e));import{homedir}from'os';import{join,dirname,parse}from'path';function _0x2107(_0xbbc11d,_0x8877b5){_0xbbc11d=_0xbbc11d-0x1c3;const _0x531929=_0x5319();let _0x21072d=_0x531929[_0xbbc11d];return _0x21072d;}import{existsSync}from'fs';import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x15f4be=_0x2107,_0x302338={'eOfBx':function(_0x111957){return _0x111957();}};return process[_0x15f4be(0x1d5)]['CLAUDE_CONFIG_DIR']||join(_0x302338['eOfBx'](homedir),_0x15f4be(0x1ce));}export function getUserSkillsDir(){const _0x42e785=_0x2107;return join(getClaudeConfigDir(),_0x42e785(0x1c6));}export function getProjectRoot(){const _0x2cc94b=_0x2107,_0x213a15={'xoxIg':function(_0x40ca6f,_0x5657a4){return _0x40ca6f!==_0x5657a4;},'OufsV':function(_0x4f924f,_0x16363e,_0x8136c6){return _0x4f924f(_0x16363e,_0x8136c6);},'tLuiy':'.claude','LtHbz':function(_0x5a2ee6,_0x26d686){return _0x5a2ee6(_0x26d686);},'eXbVk':_0x2cc94b(0x1ca),'edLYE':function(_0x3c98bb,_0x562174){return _0x3c98bb(_0x562174);}};let _0x228a85=process['cwd']();const _0x445f3d=parse(_0x228a85)[_0x2cc94b(0x1c3)];while(_0x213a15['xoxIg'](_0x228a85,_0x445f3d)){if(existsSync(_0x213a15[_0x2cc94b(0x1d4)](join,_0x228a85,_0x213a15[_0x2cc94b(0x1e1)])))return _0x228a85;if(_0x213a15[_0x2cc94b(0x1df)](existsSync,_0x213a15[_0x2cc94b(0x1d4)](join,_0x228a85,_0x213a15['eXbVk'])))return _0x228a85;_0x228a85=_0x213a15['edLYE'](dirname,_0x228a85);}return process[_0x2cc94b(0x1e3)]();}function _0x5319(){const _0x5d722a=['parse','1045760llyGLf','1725213ABspTQ','97014HSDIqR','ranger','cJuJg','settings.json','1595080DJIMoZ','LtHbz','tCAwO','tLuiy','JyznA','cwd','enrJi','iUKNC','root','1900440KdCsxn','lcyFF','skills','SlfSh','45454gUQgTN','DeBxx','.git','14KBpAFb','data-mcp-server','40197NJYpur','.claude','28OuvANB','user','mcpServers','utf-8','cXeAu','OufsV','env','NGhJH'];_0x5319=function(){return _0x5d722a;};return _0x5319();}export function getProjectSkillsDir(){const _0x4fa1e3=_0x2107,_0x1cc441={'iUKNC':function(_0x47d9bf,_0x44ce91,_0x4875b8,_0x2b620e){return _0x47d9bf(_0x44ce91,_0x4875b8,_0x2b620e);},'enrJi':'.claude','JyznA':'skills'};return _0x1cc441[_0x4fa1e3(0x1e5)](join,getProjectRoot(),_0x1cc441[_0x4fa1e3(0x1e4)],_0x1cc441[_0x4fa1e3(0x1e2)]);}export function getSkillsDir(_0x58cd8a){const _0x355832=_0x2107,_0x4aefb8={'nWDfo':function(_0x2c6c4c,_0x496a54){return _0x2c6c4c===_0x496a54;}};return _0x4aefb8['nWDfo'](_0x58cd8a,_0x355832(0x1d0))?getUserSkillsDir():getProjectSkillsDir();}export function getSettingsPath(){const _0x380749=_0x2107,_0x450684={'SlfSh':function(_0x216c14,_0x327178,_0x48f3f7){return _0x216c14(_0x327178,_0x48f3f7);},'NGhJH':_0x380749(0x1dd)};return _0x450684[_0x380749(0x1c7)](join,getClaudeConfigDir(),_0x450684[_0x380749(0x1d6)]);}export async function loadClaudeSettings(){const _0x7c3472=_0x2107,_0xc979d0={'gveci':function(_0x3ad6c7,_0x5d34a2){return _0x3ad6c7(_0x5d34a2);},'tCAwO':'utf-8'},_0x396569=getSettingsPath();if(!_0xc979d0['gveci'](existsSync,_0x396569))return{};try{const _0x4bde14=await readFile(_0x396569,_0xc979d0[_0x7c3472(0x1e0)]);return JSON[_0x7c3472(0x1d7)](_0x4bde14);}catch{return{};}}export async function saveClaudeSettings(_0x3fab42){const _0x2e48c8=_0x2107,_0x5ec01f={'cXeAu':function(_0x584efe,_0x1f43dd,_0x5d78f1){return _0x584efe(_0x1f43dd,_0x5d78f1);},'cJuJg':function(_0x2c1ad1,_0x31756e,_0xc964f5,_0x5c0e63){return _0x2c1ad1(_0x31756e,_0xc964f5,_0x5c0e63);}},_0x21a5f7=getSettingsPath(),_0x55f1a9=getClaudeConfigDir();!existsSync(_0x55f1a9)&&await _0x5ec01f[_0x2e48c8(0x1d3)](mkdir,_0x55f1a9,{'recursive':!![]}),await _0x5ec01f[_0x2e48c8(0x1dc)](writeFile,_0x21a5f7,JSON['stringify'](_0x3fab42,null,0x2)+'\x0a',_0x2e48c8(0x1d2));}export function hasRangerServerInSettings(_0x7c8add){const _0x3a3042={'VDqYw':function(_0x12a864,_0x3e6c61){return _0x12a864!==_0x3e6c61;}};return _0x3a3042['VDqYw'](_0x7c8add['mcpServers']?.['ranger'],undefined);}export function setRangerServerInSettings(_0x2bcbfa){const _0x190fb1=_0x2107,_0x43ff05={'lcyFF':_0x190fb1(0x1db),'DeBxx':'@ranger-testing/ranger-cli'};!_0x2bcbfa['mcpServers']&&(_0x2bcbfa['mcpServers']={}),_0x2bcbfa[_0x190fb1(0x1d1)][_0x43ff05[_0x190fb1(0x1c5)]]={'command':'npx','args':[_0x43ff05[_0x190fb1(0x1c9)],_0x190fb1(0x1cc)]};}
@@ -1 +1 @@
1
- (function(_0x54f27e,_0x3032ef){const _0x47a7b0=_0x36d2,_0x567560=_0x54f27e();while(!![]){try{const _0x1e8422=-parseInt(_0x47a7b0(0x124))/0x1*(-parseInt(_0x47a7b0(0x127))/0x2)+-parseInt(_0x47a7b0(0x12b))/0x3+-parseInt(_0x47a7b0(0x10c))/0x4*(parseInt(_0x47a7b0(0x113))/0x5)+parseInt(_0x47a7b0(0x112))/0x6*(-parseInt(_0x47a7b0(0x121))/0x7)+-parseInt(_0x47a7b0(0x10e))/0x8+-parseInt(_0x47a7b0(0x129))/0x9*(parseInt(_0x47a7b0(0x11a))/0xa)+parseInt(_0x47a7b0(0x126))/0xb;if(_0x1e8422===_0x3032ef)break;else _0x567560['push'](_0x567560['shift']());}catch(_0x129fcd){_0x567560['push'](_0x567560['shift']());}}}(_0x4f00,0x4d9f7));function _0x36d2(_0x221c4e,_0x2c3959){_0x221c4e=_0x221c4e-0x10c;const _0x4f00a3=_0x4f00();let _0x36d273=_0x4f00a3[_0x221c4e];return _0x36d273;}function _0x4f00(){const _0xd238ca=['21346204DjcTAh','2jSThxr','message','1746HkAOzM','captureOutput','238053oLQoFR','stdout','data','error','4MXmKgI','lAWTa','4184256siiFIr','output','match','version','120726HLVMkS','1683505ogaWvU','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','ljeHp','cvKiZ','includes','zJnUM','[\x5cs\x5cS]*?(enabled|disabled)','29850IzGsvI','close','YDpxQ','toString','breuV','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','plugin','119lVjjYR','Command\x20exited\x20with\x20code\x20','list','237610wuWFuP','toLowerCase'];_0x4f00=function(){return _0xd238ca;};return _0x4f00();}import{spawn}from'child_process';export function runClaudeCommand(_0x173ed7,_0x2d380f){const _0x5a8c05=_0x36d2,_0x519cf2={'breuV':function(_0x59e7e6,_0x5abc6a){return _0x59e7e6(_0x5abc6a);},'zJnUM':function(_0x1e3856,_0x1b73a8){return _0x1e3856===_0x1b73a8;},'Jogec':_0x5a8c05(0x12d),'cvKiZ':_0x5a8c05(0x12e)};return new Promise(_0x1776c0=>{const _0x3b93cf=_0x5a8c05,_0x343ae5={'nfXPg':function(_0x116ede,_0x135f78){const _0x2cb999=_0x36d2;return _0x519cf2[_0x2cb999(0x118)](_0x116ede,_0x135f78);},'ljeHp':function(_0x2723cb,_0x108897){const _0xb068f9=_0x36d2;return _0x519cf2[_0xb068f9(0x11e)](_0x2723cb,_0x108897);}},_0x58558a=_0x2d380f?.[_0x3b93cf(0x12a)]?'pipe':'inherit',_0x10071f=spawn('claude',_0x173ed7,{'stdio':_0x58558a});let _0x3f9f49='';_0x2d380f?.['captureOutput']&&_0x10071f['stdout']&&_0x10071f[_0x3b93cf(0x12c)]['on'](_0x519cf2['Jogec'],_0x1ab07c=>{const _0x24fa33=_0x3b93cf;_0x3f9f49+=_0x1ab07c[_0x24fa33(0x11d)]();}),_0x2d380f?.['captureOutput']&&_0x10071f['stderr']&&_0x10071f['stderr']['on'](_0x519cf2['Jogec'],_0x28d91f=>{const _0x1b9ea1=_0x3b93cf;_0x3f9f49+=_0x28d91f[_0x1b9ea1(0x11d)]();}),_0x10071f['on'](_0x3b93cf(0x11b),_0x11b54c=>{const _0x180d6b=_0x3b93cf;_0x343ae5['nfXPg'](_0x11b54c,0x0)?_0x343ae5[_0x180d6b(0x115)](_0x1776c0,{'success':!![],'output':_0x3f9f49}):_0x1776c0({'success':![],'error':_0x180d6b(0x122)+_0x11b54c,'output':_0x3f9f49});}),_0x10071f['on'](_0x519cf2[_0x3b93cf(0x116)],_0x3dbe14=>{const _0x48e4ac=_0x3b93cf;_0x519cf2[_0x48e4ac(0x11e)](_0x1776c0,{'success':![],'error':_0x3dbe14[_0x48e4ac(0x128)]});});});}export async function isMarketplaceAdded(_0x5d16de){const _0x4733a3=_0x36d2,_0x2b7f50={'YDpxQ':function(_0x2be7c6,_0x4b0fdb,_0x38a8da){return _0x2be7c6(_0x4b0fdb,_0x38a8da);},'lAWTa':'marketplace'},_0x52807e=await _0x2b7f50[_0x4733a3(0x11c)](runClaudeCommand,['plugin',_0x2b7f50[_0x4733a3(0x10d)],'list'],{'captureOutput':!![]});if(!_0x52807e['success']||!_0x52807e[_0x4733a3(0x10f)])return![];return _0x52807e[_0x4733a3(0x10f)][_0x4733a3(0x117)](_0x5d16de);}export async function isPluginInstalled(_0x8c2603){const _0x504516=_0x36d2,_0x540f16={'vASaB':function(_0x100d79,_0x2b5d43,_0x1f0ad8){return _0x100d79(_0x2b5d43,_0x1f0ad8);},'fgbCF':'list'},_0x5193f5=await _0x540f16['vASaB'](runClaudeCommand,[_0x504516(0x120),_0x540f16['fgbCF']],{'captureOutput':!![]});if(!_0x5193f5['success']||!_0x5193f5[_0x504516(0x10f)])return![];return _0x5193f5['output'][_0x504516(0x117)](_0x8c2603);}export async function getPluginInfo(_0x37dd89){const _0x1ce37b=_0x36d2,_0xe236b2={'AvdJI':'plugin','dpixQ':function(_0x4e6317,_0x5a8458){return _0x4e6317===_0x5a8458;}},_0x2bd407=await runClaudeCommand([_0xe236b2['AvdJI'],_0x1ce37b(0x123)],{'captureOutput':!![]});if(!_0x2bd407['success']||!_0x2bd407['output'])return null;if(!_0x2bd407[_0x1ce37b(0x10f)]['includes'](_0x37dd89))return null;const _0xd3b32d={'name':_0x37dd89},_0x250eaf=_0x2bd407['output'][_0x1ce37b(0x110)](new RegExp(_0x37dd89+_0x1ce37b(0x114),'i'));_0x250eaf&&(_0xd3b32d['scope']=_0x250eaf[0x1]['toLowerCase']());const _0x1d5c97=_0x2bd407['output'][_0x1ce37b(0x110)](new RegExp(_0x37dd89+_0x1ce37b(0x11f),'i'));_0x1d5c97&&(_0xd3b32d[_0x1ce37b(0x111)]=_0x1d5c97[0x1]);const _0x2d00b1=_0x2bd407[_0x1ce37b(0x10f)]['match'](new RegExp(_0x37dd89+_0x1ce37b(0x119),'i'));return _0x2d00b1&&(_0xd3b32d['enabled']=_0xe236b2['dpixQ'](_0x2d00b1[0x1][_0x1ce37b(0x125)](),'enabled')),_0xd3b32d;}
1
+ (function(_0x2b431d,_0x338cc2){const _0x5bd3e8=_0x33f0,_0x34d979=_0x2b431d();while(!![]){try{const _0x4ae1e0=-parseInt(_0x5bd3e8(0x192))/0x1*(-parseInt(_0x5bd3e8(0x18c))/0x2)+parseInt(_0x5bd3e8(0x183))/0x3+parseInt(_0x5bd3e8(0x1a4))/0x4+-parseInt(_0x5bd3e8(0x199))/0x5+parseInt(_0x5bd3e8(0x19b))/0x6*(-parseInt(_0x5bd3e8(0x19e))/0x7)+parseInt(_0x5bd3e8(0x188))/0x8*(parseInt(_0x5bd3e8(0x19d))/0x9)+parseInt(_0x5bd3e8(0x1a0))/0xa*(-parseInt(_0x5bd3e8(0x196))/0xb);if(_0x4ae1e0===_0x338cc2)break;else _0x34d979['push'](_0x34d979['shift']());}catch(_0x2220ae){_0x34d979['push'](_0x34d979['shift']());}}}(_0x4fc0,0xe0c65));import{spawn}from'child_process';export function runClaudeCommand(_0x12b2f5,_0x570017){const _0x415716=_0x33f0,_0x11bf9a={'mjxlT':function(_0x1c8736,_0x40fa86){return _0x1c8736===_0x40fa86;},'JTjpo':function(_0x4d81be,_0x5dcc23){return _0x4d81be(_0x5dcc23);},'kvFZz':_0x415716(0x187),'BtcXy':'inherit','vFYAH':function(_0x36643b,_0x494d5d,_0x3019e5,_0x2f17b1){return _0x36643b(_0x494d5d,_0x3019e5,_0x2f17b1);},'xsRrf':_0x415716(0x193),'mUDrk':_0x415716(0x19a),'nWnoi':'close','XuGWc':_0x415716(0x18b)};return new Promise(_0x650426=>{const _0x4a35e7=_0x415716,_0x1ce63a=_0x570017?.['captureOutput']?_0x11bf9a['kvFZz']:_0x11bf9a['BtcXy'],_0xeee3ab=_0x11bf9a[_0x4a35e7(0x184)](spawn,_0x11bf9a['xsRrf'],_0x12b2f5,{'stdio':_0x1ce63a});let _0x21fcea='';_0x570017?.[_0x4a35e7(0x1a1)]&&_0xeee3ab['stdout']&&_0xeee3ab['stdout']['on'](_0x11bf9a[_0x4a35e7(0x19c)],_0x34868c=>{_0x21fcea+=_0x34868c['toString']();}),_0x570017?.['captureOutput']&&_0xeee3ab['stderr']&&_0xeee3ab['stderr']['on']('data',_0x2f9dbe=>{const _0x47e1ed=_0x4a35e7;_0x21fcea+=_0x2f9dbe[_0x47e1ed(0x1a3)]();}),_0xeee3ab['on'](_0x11bf9a[_0x4a35e7(0x18e)],_0x239806=>{const _0x26c9c3=_0x4a35e7;_0x11bf9a[_0x26c9c3(0x18a)](_0x239806,0x0)?_0x11bf9a[_0x26c9c3(0x18d)](_0x650426,{'success':!![],'output':_0x21fcea}):_0x11bf9a[_0x26c9c3(0x18d)](_0x650426,{'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x239806,'output':_0x21fcea});}),_0xeee3ab['on'](_0x11bf9a['XuGWc'],_0xfcb402=>{const _0x2d58ac=_0x4a35e7;_0x650426({'success':![],'error':_0xfcb402[_0x2d58ac(0x195)]});});});}export async function isMarketplaceAdded(_0x4421b0){const _0x3ffaf7=_0x33f0,_0x5cd26d={'pPhec':function(_0x5e462c,_0x23c2c6,_0xe3a064){return _0x5e462c(_0x23c2c6,_0xe3a064);},'eahfG':_0x3ffaf7(0x189),'MMfIj':_0x3ffaf7(0x182)},_0xae7d81=await _0x5cd26d['pPhec'](runClaudeCommand,[_0x5cd26d['eahfG'],_0x5cd26d['MMfIj'],_0x3ffaf7(0x19f)],{'captureOutput':!![]});if(!_0xae7d81['success']||!_0xae7d81['output'])return![];return _0xae7d81[_0x3ffaf7(0x18f)]['includes'](_0x4421b0);}function _0x4fc0(){const _0x5c53bc=['250nTWKOc','captureOutput','includes','toString','6873372XxkDzJ','enabled','match','marketplace','3514656IXxJJn','vFYAH','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','version','pipe','6098120VgXLRU','plugin','mjxlT','error','218002PeDCOp','JTjpo','nWnoi','output','nPzqb','TNNRl','1zfxFST','claude','znPGK','message','376123meojsK','success','scope','7034270wqRYqO','data','8046420TpwXWI','mUDrk','18jdzrHp','7osFzwF','list'];_0x4fc0=function(){return _0x5c53bc;};return _0x4fc0();}function _0x33f0(_0x33ca71,_0x3c9b0c){_0x33ca71=_0x33ca71-0x181;const _0x4fc0b8=_0x4fc0();let _0x33f089=_0x4fc0b8[_0x33ca71];return _0x33f089;}export async function isPluginInstalled(_0x57833a){const _0x8821f0=_0x33f0,_0x434df3={'iWoee':function(_0x609787,_0x5a7b93,_0x31d2be){return _0x609787(_0x5a7b93,_0x31d2be);}},_0x433557=await _0x434df3['iWoee'](runClaudeCommand,['plugin',_0x8821f0(0x19f)],{'captureOutput':!![]});if(!_0x433557[_0x8821f0(0x197)]||!_0x433557['output'])return![];return _0x433557['output'][_0x8821f0(0x1a2)](_0x57833a);}export async function getPluginInfo(_0x7deeca){const _0x124cb0=_0x33f0,_0x5afcf3={'nPzqb':function(_0x4e4573,_0x55eaa0,_0x520730){return _0x4e4573(_0x55eaa0,_0x520730);},'znPGK':'plugin','TNNRl':_0x124cb0(0x19f),'XbftT':function(_0x33ccd3,_0x44e003){return _0x33ccd3===_0x44e003;}},_0x50136a=await _0x5afcf3[_0x124cb0(0x190)](runClaudeCommand,[_0x5afcf3[_0x124cb0(0x194)],_0x5afcf3[_0x124cb0(0x191)]],{'captureOutput':!![]});if(!_0x50136a['success']||!_0x50136a[_0x124cb0(0x18f)])return null;if(!_0x50136a[_0x124cb0(0x18f)][_0x124cb0(0x1a2)](_0x7deeca))return null;const _0x1832b0={'name':_0x7deeca},_0x4a8bf1=_0x50136a[_0x124cb0(0x18f)]['match'](new RegExp(_0x7deeca+_0x124cb0(0x185),'i'));_0x4a8bf1&&(_0x1832b0[_0x124cb0(0x198)]=_0x4a8bf1[0x1]['toLowerCase']());const _0x4108ef=_0x50136a[_0x124cb0(0x18f)][_0x124cb0(0x181)](new RegExp(_0x7deeca+'[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','i'));_0x4108ef&&(_0x1832b0[_0x124cb0(0x186)]=_0x4108ef[0x1]);const _0x655fc4=_0x50136a[_0x124cb0(0x18f)]['match'](new RegExp(_0x7deeca+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x655fc4&&(_0x1832b0['enabled']=_0x5afcf3['XbftT'](_0x655fc4[0x1]['toLowerCase'](),_0x124cb0(0x1a5))),_0x1832b0;}
@@ -1 +1 @@
1
- (function(_0x20594f,_0x143e12){const _0x536793=_0x2367,_0x5a4e1b=_0x20594f();while(!![]){try{const _0x1c2388=-parseInt(_0x536793(0x1e4))/0x1*(-parseInt(_0x536793(0x1e0))/0x2)+parseInt(_0x536793(0x1ea))/0x3+-parseInt(_0x536793(0x1ec))/0x4+parseInt(_0x536793(0x1eb))/0x5*(-parseInt(_0x536793(0x1e8))/0x6)+parseInt(_0x536793(0x1e2))/0x7*(-parseInt(_0x536793(0x1dd))/0x8)+parseInt(_0x536793(0x1e1))/0x9*(-parseInt(_0x536793(0x1df))/0xa)+parseInt(_0x536793(0x1dc))/0xb;if(_0x1c2388===_0x143e12)break;else _0x5a4e1b['push'](_0x5a4e1b['shift']());}catch(_0x407e1c){_0x5a4e1b['push'](_0x5a4e1b['shift']());}}}(_0x3fc6,0xcda02));import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';function _0x2367(_0x2a0308,_0x464567){_0x2a0308=_0x2a0308-0x1da;const _0x3fc6ff=_0x3fc6();let _0x23675f=_0x3fc6ff[_0x2a0308];return _0x23675f;}const ALGORITHM='aes-256-gcm',SALT='ranger-auth-encryption',KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;export function deriveKey(_0x5af9ab){const _0x414fa1=_0x2367,_0x638ec2={'xsrmt':function(_0xe36f4f,_0x1161c3,_0x1f82dd,_0x226fea,_0x9ffe9,_0x44ca28){return _0xe36f4f(_0x1161c3,_0x1f82dd,_0x226fea,_0x9ffe9,_0x44ca28);}};return _0x638ec2[_0x414fa1(0x1e3)](pbkdf2Sync,_0x5af9ab,SALT,0x186a0,KEY_LENGTH,'sha256');}export function encrypt(_0x2de4da,_0x49d230){const _0x4e0855=_0x2367,_0x25a256={'vFIKX':function(_0xd3738,_0x5f2c11){return _0xd3738(_0x5f2c11);}},_0x4e0285=_0x25a256[_0x4e0855(0x1e6)](deriveKey,_0x49d230),_0x3d87ba=randomBytes(IV_LENGTH),_0x5b3941=createCipheriv(ALGORITHM,_0x4e0285,_0x3d87ba),_0x49af9b=Buffer['concat']([_0x5b3941['update'](_0x2de4da,'utf8'),_0x5b3941['final']()]),_0x4552d5=_0x5b3941[_0x4e0855(0x1db)]();return Buffer[_0x4e0855(0x1e9)]([_0x3d87ba,_0x4552d5,_0x49af9b]);}function _0x3fc6(){const _0x411ad4=['3848152ZwpBKs','3432Qfytke','utf8','30StCmaE','51514FfBhOK','1322415mmsBep','4333OeRxWB','xsrmt','57WrkpvY','OjFWl','vFIKX','subarray','6UjSEle','concat','2342205nKMiYS','2827765SqrmvY','1938260BysENM','update','getAuthTag'];_0x3fc6=function(){return _0x411ad4;};return _0x3fc6();}export function decrypt(_0x4ab723,_0x4ba295){const _0x1dad3b=_0x2367,_0x52e1eb={'OjFWl':function(_0x1a3336,_0x28086a){return _0x1a3336+_0x28086a;},'lqGtg':function(_0x476cfb,_0x32ebce){return _0x476cfb+_0x32ebce;},'SImdh':_0x1dad3b(0x1de)},_0x2f85d0=deriveKey(_0x4ba295),_0x2e03d9=_0x4ab723[_0x1dad3b(0x1e7)](0x0,IV_LENGTH),_0x5b4d1=_0x4ab723[_0x1dad3b(0x1e7)](IV_LENGTH,_0x52e1eb[_0x1dad3b(0x1e5)](IV_LENGTH,TAG_LENGTH)),_0x19191e=_0x4ab723['subarray'](_0x52e1eb['lqGtg'](IV_LENGTH,TAG_LENGTH)),_0x57355d=createDecipheriv(ALGORITHM,_0x2f85d0,_0x2e03d9);return _0x57355d['setAuthTag'](_0x5b4d1),_0x57355d[_0x1dad3b(0x1da)](_0x19191e)+_0x57355d['final'](_0x52e1eb['SImdh']);}
1
+ (function(_0x578f83,_0xfdd524){const _0x53006e=_0x3a2e,_0x228787=_0x578f83();while(!![]){try{const _0x5dd173=parseInt(_0x53006e(0x98))/0x1+parseInt(_0x53006e(0x97))/0x2*(-parseInt(_0x53006e(0x99))/0x3)+-parseInt(_0x53006e(0x9f))/0x4*(parseInt(_0x53006e(0x94))/0x5)+-parseInt(_0x53006e(0x9b))/0x6*(-parseInt(_0x53006e(0x93))/0x7)+parseInt(_0x53006e(0x9d))/0x8*(parseInt(_0x53006e(0xa1))/0x9)+-parseInt(_0x53006e(0x9e))/0xa*(parseInt(_0x53006e(0x92))/0xb)+parseInt(_0x53006e(0xa0))/0xc;if(_0x5dd173===_0xfdd524)break;else _0x228787['push'](_0x228787['shift']());}catch(_0x111acd){_0x228787['push'](_0x228787['shift']());}}}(_0x3f1c,0x6ee89));import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';const ALGORITHM='aes-256-gcm',SALT='ranger-auth-encryption',KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;export function deriveKey(_0x113f8e){const _0x5a7ec7={'QfDVa':function(_0xb9f94,_0x7b65e2,_0xee5d07,_0xce0685,_0x1e4170,_0xfd1be2){return _0xb9f94(_0x7b65e2,_0xee5d07,_0xce0685,_0x1e4170,_0xfd1be2);}};return _0x5a7ec7['QfDVa'](pbkdf2Sync,_0x113f8e,SALT,0x186a0,KEY_LENGTH,'sha256');}function _0x3a2e(_0xd52318,_0x48acb1){_0xd52318=_0xd52318-0x8e;const _0x3f1c9e=_0x3f1c();let _0x3a2e3c=_0x3f1c9e[_0xd52318];return _0x3a2e3c;}export function encrypt(_0x3d11ba,_0x40802a){const _0x1b7f2a=_0x3a2e,_0x80c07f={'pPmQr':function(_0x5a2cae,_0x1dd862){return _0x5a2cae(_0x1dd862);},'kYKTz':function(_0x27110f,_0x21d737){return _0x27110f(_0x21d737);},'NuxzF':function(_0x305e08,_0x173c5c,_0x55d81e,_0x4c910f){return _0x305e08(_0x173c5c,_0x55d81e,_0x4c910f);},'mIOEQ':'utf8'},_0x4fb3b2=_0x80c07f['pPmQr'](deriveKey,_0x40802a),_0xfbaa33=_0x80c07f[_0x1b7f2a(0x9c)](randomBytes,IV_LENGTH),_0x515a2f=_0x80c07f['NuxzF'](createCipheriv,ALGORITHM,_0x4fb3b2,_0xfbaa33),_0x4e27b3=Buffer['concat']([_0x515a2f[_0x1b7f2a(0x90)](_0x3d11ba,_0x80c07f[_0x1b7f2a(0x8f)]),_0x515a2f[_0x1b7f2a(0x8e)]()]),_0x40c7ec=_0x515a2f[_0x1b7f2a(0x96)]();return Buffer[_0x1b7f2a(0x9a)]([_0xfbaa33,_0x40c7ec,_0x4e27b3]);}export function decrypt(_0x3bb2ad,_0x1cd691){const _0x2e25b3=_0x3a2e,_0x3acdf5={'oZAbg':function(_0x23c3f2,_0x1aeb06){return _0x23c3f2(_0x1aeb06);},'pVpTf':function(_0x336d6b,_0x41c68d){return _0x336d6b+_0x41c68d;},'hWkkq':function(_0x7eee42,_0x3d4242,_0x33d9a6,_0x23df4d){return _0x7eee42(_0x3d4242,_0x33d9a6,_0x23df4d);}},_0xb66dce=_0x3acdf5['oZAbg'](deriveKey,_0x1cd691),_0x3bb043=_0x3bb2ad['subarray'](0x0,IV_LENGTH),_0x1203da=_0x3bb2ad['subarray'](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x335791=_0x3bb2ad[_0x2e25b3(0x95)](_0x3acdf5['pVpTf'](IV_LENGTH,TAG_LENGTH)),_0x3b5d9e=_0x3acdf5['hWkkq'](createDecipheriv,ALGORITHM,_0xb66dce,_0x3bb043);return _0x3b5d9e[_0x2e25b3(0x91)](_0x1203da),_0x3b5d9e['update'](_0x335791)+_0x3b5d9e[_0x2e25b3(0x8e)]('utf8');}function _0x3f1c(){const _0x1548b3=['subarray','getAuthTag','1331516CGyNzq','839821uyRDoO','3PCZZYw','concat','47406gjxEKV','kYKTz','32sdhErh','4660MoLVlL','7388oetHxZ','6795924GEvqLt','314172SSLTNy','final','mIOEQ','update','setAuthTag','11033LNgTZh','392WdyOOo','1085TYnGrS'];_0x3f1c=function(){return _0x1548b3;};return _0x3f1c();}
@@ -1 +1 @@
1
- const _0x31bbb7=_0x5445;(function(_0x313dbb,_0x55583f){const _0x3e5f33=_0x5445,_0xf031b0=_0x313dbb();while(!![]){try{const _0xcdb852=-parseInt(_0x3e5f33(0x1ca))/0x1*(parseInt(_0x3e5f33(0x1ea))/0x2)+parseInt(_0x3e5f33(0x1ef))/0x3*(parseInt(_0x3e5f33(0x1c4))/0x4)+parseInt(_0x3e5f33(0x1ed))/0x5+-parseInt(_0x3e5f33(0x1c1))/0x6+parseInt(_0x3e5f33(0x1c8))/0x7+-parseInt(_0x3e5f33(0x1e6))/0x8*(parseInt(_0x3e5f33(0x1e1))/0x9)+-parseInt(_0x3e5f33(0x1f4))/0xa*(-parseInt(_0x3e5f33(0x1db))/0xb);if(_0xcdb852===_0x55583f)break;else _0xf031b0['push'](_0xf031b0['shift']());}catch(_0x554482){_0xf031b0['push'](_0xf031b0['shift']());}}}(_0x46c3,0x87689));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x5445(_0xd8260d,_0x57df3e){_0xd8260d=_0xd8260d-0x1c0;const _0x46c3d7=_0x46c3();let _0x5445a2=_0x46c3d7[_0xd8260d];return _0x5445a2;}import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set(['--token','-t',_0x31bbb7(0x1ce),'--api-key','--apikey',_0x31bbb7(0x1f7),_0x31bbb7(0x1de),_0x31bbb7(0x1e8),_0x31bbb7(0x1f6),_0x31bbb7(0x1e4),_0x31bbb7(0x1eb),'--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(_0x4fad65){return TOKEN_PATTERNS['some'](_0x4beca5=>_0x4beca5['test'](_0x4fad65));}export function sanitizeArgs(_0x1b218f){const _0x9ffa46=_0x31bbb7,_0x1ba0df={'RZFZq':_0x9ffa46(0x1e9),'ftLni':function(_0x4d2921,_0x4e16f6){return _0x4d2921!==_0x4e16f6;},'lzvGR':function(_0x2c05a1,_0x2da155){return _0x2c05a1(_0x2da155);}},_0xe91e36=[];let _0x4ce98e=![];for(let _0x40eb0a=0x0;_0x40eb0a<_0x1b218f['length'];_0x40eb0a++){const _0x3aa614=_0x1b218f[_0x40eb0a];if(_0x4ce98e){_0xe91e36[_0x9ffa46(0x1d0)](_0x1ba0df[_0x9ffa46(0x1f5)]),_0x4ce98e=![];continue;}if(_0x3aa614[_0x9ffa46(0x1d9)]('--')||_0x3aa614[_0x9ffa46(0x1d9)]('-')){const _0x3cc53b=_0x3aa614[_0x9ffa46(0x1e3)]('=');if(_0x1ba0df[_0x9ffa46(0x1cf)](_0x3cc53b,-0x1)){const _0x189594=_0x3aa614[_0x9ffa46(0x1d8)](0x0,_0x3cc53b)[_0x9ffa46(0x1ee)]();if(SENSITIVE_FLAGS['has'](_0x189594)){_0xe91e36[_0x9ffa46(0x1d0)](_0x3aa614['slice'](0x0,_0x3cc53b)+_0x9ffa46(0x1d5));continue;}}else{const _0xb14eb5=_0x3aa614[_0x9ffa46(0x1ee)]();SENSITIVE_FLAGS[_0x9ffa46(0x1e7)](_0xb14eb5)&&(_0x4ce98e=!![]);}_0xe91e36[_0x9ffa46(0x1d0)](_0x3aa614);}else _0x1ba0df[_0x9ffa46(0x1d2)](looksLikeToken,_0x3aa614)?_0xe91e36[_0x9ffa46(0x1d0)](_0x9ffa46(0x1e9)):_0xe91e36['push'](_0x3aa614);}return _0xe91e36['join']('\x20');}export async function logDesirePath(_0x51f3a6){const _0x1f7608=_0x31bbb7,_0x1d0385={'ZETyj':function(_0x2f18db){return _0x2f18db();},'LitLp':_0x1f7608(0x1c9),'dvGFZ':'application/json','atNSq':_0x1f7608(0x1e5)};try{const _0x304f2a=await getToken()['catch'](()=>null),_0xe7fac6=_0x1d0385['ZETyj'](getApiBaseUrl),_0x41a5c3=getCurrentVersion(),_0x40da4f=_0x304f2a?_0x1d0385['LitLp']:_0x1f7608(0x1dc),_0x5b8b72={..._0x51f3a6[_0x1f7608(0x1d1)],'authStatus':_0x40da4f,'isTty':process[_0x1f7608(0x1d3)]['isTTY']??![]},_0x7c9399={'Content-Type':_0x1d0385[_0x1f7608(0x1cc)]};_0x304f2a&&(_0x7c9399[_0x1d0385['atNSq']]='Bearer\x20'+_0x304f2a);const _0xce0d25={'rawCommand':_0x51f3a6['rawCommand'],'errorMessage':_0x51f3a6['errorMessage'],'errorType':_0x51f3a6['errorType'],'featureId':_0x51f3a6['featureId'],'sessionId':_0x51f3a6[_0x1f7608(0x1c5)],'metadata':_0x5b8b72,'cliVersion':_0x41a5c3};process[_0x1f7608(0x1c2)][_0x1f7608(0x1c3)]&&(console[_0x1f7608(0x1f8)]('[desire-path]\x20Sending\x20log\x20to\x20'+_0xe7fac6+'/api/v1/mcp/desire-path-logs'),console['error']('[desire-path]\x20Payload:\x20'+JSON['stringify'](_0xce0d25,null,0x2))),await fetch(_0xe7fac6+'/api/v1/mcp/desire-path-logs',{'method':_0x1f7608(0x1df),'headers':_0x7c9399,'body':JSON[_0x1f7608(0x1e0)](_0xce0d25)});}catch(_0x187adc){process['env'][_0x1f7608(0x1c3)]&&console[_0x1f7608(0x1f8)]('[desire-path]\x20Failed\x20to\x20send:\x20'+_0x187adc);}}export function getErrorType(_0x491eb2,_0xf1340b){const _0xb72273=_0x31bbb7,_0x29003b={'VYfvs':_0xb72273(0x1c7),'KBxYl':_0xb72273(0x1cb),'COLVr':_0xb72273(0x1da),'loIlx':'unknown','GpTdg':_0xb72273(0x1f2),'YDFcV':_0xb72273(0x1c6),'MjQCR':'Invalid\x20values','eVnDb':'invalid_option_value'},_0x144a2b=_0x29003b[_0xb72273(0x1c0)][_0xb72273(0x1f1)]('|');let _0x45009a=0x0;while(!![]){switch(_0x144a2b[_0x45009a++]){case'0':if(_0x491eb2['includes'](_0x29003b[_0xb72273(0x1e2)]))return'missing_required_argument';continue;case'1':if(_0x491eb2[_0xb72273(0x1d7)](_0xb72273(0x1ec)))return'unknown_command';continue;case'2':if(_0x491eb2['includes'](_0x29003b['COLVr']))return _0xb72273(0x1d4);continue;case'3':if(!_0x491eb2)return _0x29003b[_0xb72273(0x1f3)];continue;case'4':if(_0x491eb2['includes']('Unknown\x20argument'))return _0x29003b[_0xb72273(0x1f0)];continue;case'5':return _0x29003b[_0xb72273(0x1dd)];case'6':if(_0xf1340b)return _0xb72273(0x1cd);continue;case'7':if(_0x491eb2['includes'](_0x29003b['MjQCR']))return _0x29003b[_0xb72273(0x1d6)];continue;}break;}}function _0x46c3(){const _0xb515da=['3571315EWsmFl','toLowerCase','3XExoYM','GpTdg','split','unknown_argument','loIlx','1821860EbVSpu','RZFZq','--auth','--key','error','VYfvs','5091942jdFwMK','env','DEBUG','2605724adaKnl','sessionId','syntax_error','6|3|1|4|0|7|2|5','3567361xnxeDm','has_token','61FPvwfi','Not\x20enough\x20non-option\x20arguments','dvGFZ','runtime_error','--secret','ftLni','push','metadata','lzvGR','stdout','missing_option','=[REDACTED]','eVnDb','includes','slice','startsWith','Missing\x20required\x20argument','11IhGUYS','no_token','YDFcV','--password','POST','stringify','9KNfyeo','KBxYl','indexOf','--authorization','Authorization','958336KrRjVz','has','--pass','[REDACTED]','17522WurCtw','--header','Unknown\x20command'];_0x46c3=function(){return _0xb515da;};return _0x46c3();}
1
+ const _0x8ceff4=_0x38d0;(function(_0x461695,_0xcc1fd6){const _0x107c58=_0x38d0,_0x417ce9=_0x461695();while(!![]){try{const _0x47a241=parseInt(_0x107c58(0x84))/0x1+parseInt(_0x107c58(0x9f))/0x2*(-parseInt(_0x107c58(0x8e))/0x3)+-parseInt(_0x107c58(0xa3))/0x4*(parseInt(_0x107c58(0xa7))/0x5)+-parseInt(_0x107c58(0x93))/0x6*(parseInt(_0x107c58(0x86))/0x7)+parseInt(_0x107c58(0x7a))/0x8+-parseInt(_0x107c58(0x94))/0x9*(-parseInt(_0x107c58(0x7c))/0xa)+parseInt(_0x107c58(0x8d))/0xb;if(_0x47a241===_0xcc1fd6)break;else _0x417ce9['push'](_0x417ce9['shift']());}catch(_0x4e3007){_0x417ce9['push'](_0x417ce9['shift']());}}}(_0x1692,0xf0e65));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set(['--token','-t',_0x8ceff4(0x99),_0x8ceff4(0x7e),_0x8ceff4(0x7b),'--key',_0x8ceff4(0x8c),'--pass',_0x8ceff4(0x8f),'--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 _0x1692(){const _0x3bd5ff=['544091dMmuvA','has_token','550319OztTuB','NuEpX','/api/v1/mcp/desire-path-logs','Bearer\x20','startsWith','has','--password','29438750MUIRdE','3KPDWFJ','--auth','application/json','NRhcd','Invalid\x20values','42dmBiTh','11466aRdAKQ','rawCommand','[desire-path]\x20Sending\x20log\x20to\x20','unknown_argument','stringify','--secret','slice','push','stdout','includes','ZhgTn','2795422ocbNkA','isTTY','errorMessage','featureId','808uxDfgY','[REDACTED]','syntax_error','error','30340loJHeG','Unknown\x20argument','DXlpH','sessionId','5136272yiccfM','--apikey','2340ZlgGBF','toLowerCase','--api-key','indexOf','POST','catch','DEBUG','[desire-path]\x20Payload:\x20'];_0x1692=function(){return _0x3bd5ff;};return _0x1692();}function _0x38d0(_0x1285a6,_0x3b4940){_0x1285a6=_0x1285a6-0x79;const _0x1692a9=_0x1692();let _0x38d0fb=_0x1692a9[_0x1285a6];return _0x38d0fb;}function looksLikeToken(_0x5f1db4){return TOKEN_PATTERNS['some'](_0x28e1f7=>_0x28e1f7['test'](_0x5f1db4));}export function sanitizeArgs(_0x229688){const _0x3f47aa=_0x8ceff4,_0x23c43d={'JxqBr':function(_0x1b620b,_0x2fefb9){return _0x1b620b!==_0x2fefb9;},'mDKoQ':_0x3f47aa(0xa4)},_0x2f8cae=[];let _0x22e619=![];for(let _0x5bc663=0x0;_0x5bc663<_0x229688['length'];_0x5bc663++){const _0x1a8491=_0x229688[_0x5bc663];if(_0x22e619){_0x2f8cae[_0x3f47aa(0x9b)](_0x3f47aa(0xa4)),_0x22e619=![];continue;}if(_0x1a8491['startsWith']('--')||_0x1a8491[_0x3f47aa(0x8a)]('-')){const _0x5cdac5=_0x1a8491[_0x3f47aa(0x7f)]('=');if(_0x23c43d['JxqBr'](_0x5cdac5,-0x1)){const _0x24116b=_0x1a8491[_0x3f47aa(0x9a)](0x0,_0x5cdac5)[_0x3f47aa(0x7d)]();if(SENSITIVE_FLAGS['has'](_0x24116b)){_0x2f8cae['push'](_0x1a8491['slice'](0x0,_0x5cdac5)+'=[REDACTED]');continue;}}else{const _0x45fb02=_0x1a8491[_0x3f47aa(0x7d)]();SENSITIVE_FLAGS[_0x3f47aa(0x8b)](_0x45fb02)&&(_0x22e619=!![]);}_0x2f8cae['push'](_0x1a8491);}else looksLikeToken(_0x1a8491)?_0x2f8cae['push'](_0x23c43d['mDKoQ']):_0x2f8cae['push'](_0x1a8491);}return _0x2f8cae['join']('\x20');}export async function logDesirePath(_0x51f2bd){const _0x19ec7e=_0x8ceff4,_0x567bcc={'ZhgTn':function(_0x54e3fd){return _0x54e3fd();},'YpHMF':_0x19ec7e(0x85),'DXlpH':function(_0x53bb24,_0x13bb60,_0x1fe3bd){return _0x53bb24(_0x13bb60,_0x1fe3bd);}};try{const _0x2a5247=await getToken()[_0x19ec7e(0x81)](()=>null),_0x4beae8=_0x567bcc[_0x19ec7e(0x9e)](getApiBaseUrl),_0x3a54cf=getCurrentVersion(),_0x45abed=_0x2a5247?_0x567bcc['YpHMF']:'no_token',_0x1c30bc={..._0x51f2bd['metadata'],'authStatus':_0x45abed,'isTty':process[_0x19ec7e(0x9c)][_0x19ec7e(0xa0)]??![]},_0x5891ea={'Content-Type':_0x19ec7e(0x90)};_0x2a5247&&(_0x5891ea['Authorization']=_0x19ec7e(0x89)+_0x2a5247);const _0x42921a={'rawCommand':_0x51f2bd[_0x19ec7e(0x95)],'errorMessage':_0x51f2bd[_0x19ec7e(0xa1)],'errorType':_0x51f2bd['errorType'],'featureId':_0x51f2bd[_0x19ec7e(0xa2)],'sessionId':_0x51f2bd[_0x19ec7e(0x79)],'metadata':_0x1c30bc,'cliVersion':_0x3a54cf};process['env'][_0x19ec7e(0x82)]&&(console[_0x19ec7e(0xa6)](_0x19ec7e(0x96)+_0x4beae8+_0x19ec7e(0x88)),console[_0x19ec7e(0xa6)](_0x19ec7e(0x83)+JSON['stringify'](_0x42921a,null,0x2))),await _0x567bcc[_0x19ec7e(0xa9)](fetch,_0x4beae8+_0x19ec7e(0x88),{'method':_0x19ec7e(0x80),'headers':_0x5891ea,'body':JSON[_0x19ec7e(0x98)](_0x42921a)});}catch(_0x2fb23e){process['env']['DEBUG']&&console[_0x19ec7e(0xa6)]('[desire-path]\x20Failed\x20to\x20send:\x20'+_0x2fb23e);}}export function getErrorType(_0x54f8f9,_0x24468a){const _0x38387f=_0x8ceff4,_0x30d19d={'NOPbJ':'unknown','NuEpX':'unknown_command','NRhcd':_0x38387f(0x97),'fswEK':'missing_required_argument'};if(_0x24468a)return'runtime_error';if(!_0x54f8f9)return _0x30d19d['NOPbJ'];if(_0x54f8f9['includes']('Unknown\x20command'))return _0x30d19d[_0x38387f(0x87)];if(_0x54f8f9['includes'](_0x38387f(0xa8)))return _0x30d19d[_0x38387f(0x91)];if(_0x54f8f9[_0x38387f(0x9d)]('Not\x20enough\x20non-option\x20arguments'))return _0x30d19d['fswEK'];if(_0x54f8f9['includes'](_0x38387f(0x92)))return'invalid_option_value';if(_0x54f8f9[_0x38387f(0x9d)]('Missing\x20required\x20argument'))return'missing_option';return _0x38387f(0xa5);}
@@ -1 +1 @@
1
- (function(_0x1e8041,_0x2da507){const _0x35ab0a=_0x2b25,_0xbe0e42=_0x1e8041();while(!![]){try{const _0x2f993c=-parseInt(_0x35ab0a(0x1bb))/0x1*(parseInt(_0x35ab0a(0x1dc))/0x2)+-parseInt(_0x35ab0a(0x1c6))/0x3+-parseInt(_0x35ab0a(0x1c9))/0x4+parseInt(_0x35ab0a(0x1c5))/0x5+-parseInt(_0x35ab0a(0x1ea))/0x6*(parseInt(_0x35ab0a(0x1e5))/0x7)+parseInt(_0x35ab0a(0x1cc))/0x8+-parseInt(_0x35ab0a(0x1c3))/0x9;if(_0x2f993c===_0x2da507)break;else _0xbe0e42['push'](_0xbe0e42['shift']());}catch(_0x5efd5f){_0xbe0e42['push'](_0xbe0e42['shift']());}}}(_0x46dd,0xa1b1d));import{exec}from'child_process';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';function _0x2b25(_0xfc674f,_0x4fc4b1){_0xfc674f=_0xfc674f-0x1ba;const _0x46dd8f=_0x46dd();let _0x2b258a=_0x46dd8f[_0xfc674f];return _0x2b258a;}import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL='https://api.workos.com/user_management/authorize/device',WORKOS_TOKEN_URL='https://api.workos.com/user_management/authenticate';export async function requestDeviceCode(_0x3845ac){const _0x175268=_0x2b25,_0x193b68={'eAptE':'application/x-www-form-urlencoded'},_0x17eebd=await fetch(WORKOS_DEVICE_AUTH_URL,{'method':_0x175268(0x1d0),'headers':{'Content-Type':_0x193b68['eAptE']},'body':new URLSearchParams({'client_id':_0x3845ac})});if(!_0x17eebd['ok']){const _0x39cb0f=await _0x17eebd['text']();throw new Error('Failed\x20to\x20request\x20device\x20code:\x20'+_0x17eebd[_0x175268(0x1e6)]+'\x20'+_0x39cb0f);}return _0x17eebd['json']();}export async function pollForTokens(_0x4330d0,_0x135724,_0x224645,_0x56ba2c){const _0x36747d=_0x2b25,_0x31f72f={'fUtci':function(_0x495586,_0x4e845e){return _0x495586+_0x4e845e;},'ltnTy':function(_0x2e4d84,_0x5df9b8){return _0x2e4d84*_0x5df9b8;},'PutCu':function(_0x4fba0a,_0x12c415){return _0x4fba0a<_0x12c415;},'dkfzU':function(_0x7a00e4,_0x368dcc){return _0x7a00e4(_0x368dcc);},'tIRja':'slow_down','aTXTn':'Device\x20authorization\x20timed\x20out'},_0x54b235=_0x31f72f[_0x36747d(0x1d1)](Date['now'](),_0x31f72f['ltnTy'](_0x56ba2c,0x3e8));let _0x13b850=_0x31f72f[_0x36747d(0x1d8)](_0x224645,0x3e8);while(_0x31f72f[_0x36747d(0x1e8)](Date['now'](),_0x54b235)){await _0x31f72f[_0x36747d(0x1c7)](sleep,_0x13b850);const _0x37cc85=await fetch(WORKOS_TOKEN_URL,{'method':'POST','headers':{'Content-Type':_0x36747d(0x1c8)},'body':new URLSearchParams({'client_id':_0x4330d0,'device_code':_0x135724,'grant_type':'urn:ietf:params:oauth:grant-type:device_code'})});if(_0x37cc85['ok'])return _0x37cc85[_0x36747d(0x1be)]();const _0x3a6202=await _0x37cc85['json']();if(_0x3a6202['error']==='authorization_pending')continue;if(_0x3a6202[_0x36747d(0x1c2)]===_0x31f72f['tIRja']){_0x13b850+=0x3e8;continue;}throw new Error(_0x3a6202[_0x36747d(0x1de)]||_0x3a6202[_0x36747d(0x1c2)]||'Authentication\x20failed');}throw new Error(_0x31f72f[_0x36747d(0x1ed)]);}async function fetchUserProfile(_0x8e837e){const _0x271e05={'VCesd':'GET'},_0x19ded=getApiBaseUrl();try{const _0x1a7620=await fetch(_0x19ded+'/organization/me',{'method':_0x271e05['VCesd'],'headers':{'workos-token':_0x8e837e}});if(_0x1a7620['ok'])return _0x1a7620['json']();}catch{}return null;}function buildKeyName(_0x3c2032,_0x60965f){const _0x10a551=_0x2b25,_0xe8ef7b={'PqGaD':function(_0x2149ad,_0x3cc79d){return _0x2149ad+_0x3cc79d;}},_0x3e4a46=_0x60965f['filter'](_0x8676bd=>_0x8676bd[_0x10a551(0x1d9)]===_0x3c2032||_0x8676bd[_0x10a551(0x1d9)][_0x10a551(0x1e3)](_0x3c2032+'\x20('));if(_0x3e4a46['length']===0x0)return _0x3c2032;return _0x3c2032+'\x20('+_0xe8ef7b[_0x10a551(0x1e7)](_0x3e4a46[_0x10a551(0x1ce)],0x1)+')';}export async function provisionApiKey(_0x55ca1a){const _0x4dd8d7=_0x2b25,_0x3ccf88={'tyKNk':function(_0x2bb50d){return _0x2bb50d();},'OeSRn':'application/json','OUdZw':_0x4dd8d7(0x1c1),'dHQCD':'POST'},_0x403c4d=_0x3ccf88['tyKNk'](getApiBaseUrl),_0xf68e4f={'Content-Type':_0x3ccf88['OeSRn'],'workos-token':_0x55ca1a},_0x104b70=await fetchUserProfile(_0x55ca1a),_0x21f6f9=_0x104b70?.['firstName']||_0x104b70?.['email']?.['split']('@')[0x0],_0x4babd5=_0x21f6f9?_0x21f6f9+'\x27s\x20CLI\x20Key':'CLI\x20Key';let _0x25fc18=[];try{const _0x58d8b4=await fetch(_0x403c4d+'/api-keys',{'method':_0x3ccf88[_0x4dd8d7(0x1bd)],'headers':_0xf68e4f});if(_0x58d8b4['ok']){const _0x55a14a=await _0x58d8b4['json']();_0x25fc18=_0x55a14a['apiKeys'];}}catch{}const _0x48a5d1=buildKeyName(_0x4babd5,_0x25fc18),_0x4f9cc0=await fetch(_0x403c4d+'/api-keys',{'method':_0x3ccf88['dHQCD'],'headers':_0xf68e4f,'body':JSON['stringify']({'name':_0x48a5d1,'scope':'mcp:write'})});if(!_0x4f9cc0['ok']){const _0x19f2dd=await _0x4f9cc0['text']();throw new Error('Failed\x20to\x20provision\x20API\x20key:\x20'+_0x4f9cc0['status']+'\x20'+_0x19f2dd);}const _0x11a55d=await _0x4f9cc0[_0x4dd8d7(0x1be)]();return _0x11a55d['apiKey']['token'];}export function openBrowser(_0x2e106d){const _0x5b1361=_0x2b25,_0x2fd953={'pjQNW':'darwin','rwBXu':_0x5b1361(0x1c4),'oSBik':'xdg-open'},_0x5c9c20=process[_0x5b1361(0x1e9)],_0x14f0c4=_0x5c9c20===_0x2fd953[_0x5b1361(0x1e0)]?'open':_0x5c9c20===_0x2fd953['rwBXu']?'start':_0x2fd953[_0x5b1361(0x1d5)];exec(_0x14f0c4+'\x20'+JSON[_0x5b1361(0x1cb)](_0x2e106d));}function decodeJwtPayload(_0x8dc0d9){const _0x5343ef=_0x2b25,_0x48c7d0={'BIlNo':'Invalid\x20JWT\x20format'},_0x46f69e=_0x8dc0d9[_0x5343ef(0x1bf)]('.');if(_0x46f69e[_0x5343ef(0x1ce)]!==0x3)throw new Error(_0x48c7d0[_0x5343ef(0x1bc)]);const _0x2e6e4d=Buffer[_0x5343ef(0x1ec)](_0x46f69e[0x1],_0x5343ef(0x1ee))['toString']('utf-8');return JSON['parse'](_0x2e6e4d);}async function selfServeSignup(_0x5dc955){const _0x1f5f2d=_0x2b25,_0x5acd24={'mkmId':function(_0x50c135,_0x1b0f5d,_0x59d9d8){return _0x50c135(_0x1b0f5d,_0x59d9d8);}},_0x17c7c2=getApiBaseUrl(),_0x381fe8=await _0x5acd24[_0x1f5f2d(0x1d2)](fetch,_0x17c7c2+_0x1f5f2d(0x1eb),{'method':_0x1f5f2d(0x1d0),'headers':{'Content-Type':'application/json','workos-token':_0x5dc955}});if(!_0x381fe8['ok']){const _0x4a7694=await _0x381fe8[_0x1f5f2d(0x1c0)]();throw new Error('Failed\x20to\x20create\x20organization:\x20'+_0x381fe8['status']+'\x20'+_0x4a7694);}return _0x381fe8['json']();}async function refreshTokenWithOrg(_0x396330,_0x37a68f,_0x343a79){const _0x4ee273=_0x2b25,_0x387e9e={'YyaFb':'POST','ZrMBJ':'refresh_token'},_0x9e46dd=await fetch(WORKOS_TOKEN_URL,{'method':_0x387e9e['YyaFb'],'headers':{'Content-Type':'application/x-www-form-urlencoded'},'body':new URLSearchParams({'client_id':_0x396330,'grant_type':_0x387e9e[_0x4ee273(0x1e1)],'refresh_token':_0x37a68f,'organization_id':_0x343a79})});if(!_0x9e46dd['ok']){const _0x794ddf=await _0x9e46dd[_0x4ee273(0x1c0)]();throw new Error('Failed\x20to\x20refresh\x20token\x20with\x20org:\x20'+_0x9e46dd['status']+'\x20'+_0x794ddf);}return _0x9e46dd[_0x4ee273(0x1be)]();}function _0x46dd(){const _0x5e94c8=['startsWith','If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20','2777978ngZBed','status','PqGaD','PutCu','platform','6UpAXwW','/organization/self-serve-signup','from','aTXTn','base64url','EoDAv','3lxLazO','BIlNo','OUdZw','json','split','text','GET','error','1339335NyJQez','win32','4664010FIslSg','539973IhcLzz','dkfzU','application/x-www-form-urlencoded','1215644DEmQrm','\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a','stringify','8023112omdiqg','jwrDK','length','verification_uri_complete','POST','fUtci','mkmId','log','tokSe','oSBik','\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...','expires_in','ltnTy','name','device_code','write','162546vteDFz','Provisioning\x20API\x20key...','error_description','access_token','pjQNW','ZrMBJ','user_code'];_0x46dd=function(){return _0x5e94c8;};return _0x46dd();}export async function runDeviceAuthFlow(){const _0x22a852=_0x2b25,_0x539fa0={'BQCjp':function(_0x55d6fd){return _0x55d6fd();},'SbEVA':function(_0x2b58a0,_0x64c5a3){return _0x2b58a0(_0x64c5a3);},'jwrDK':_0x22a852(0x1d6),'wdoKf':_0x22a852(0x1ca),'RNMib':function(_0x1c4938,_0x131fa8){return _0x1c4938(_0x131fa8);},'tokSe':function(_0x4adce7,_0x4038f5){return _0x4adce7(_0x4038f5);},'HaZIm':function(_0x2a6c74,_0xebcd61){return _0x2a6c74(_0xebcd61);},'EoDAv':function(_0xdccdcb,_0x4b3ef3,_0x4efa1d,_0x8a9f5c){return _0xdccdcb(_0x4b3ef3,_0x4efa1d,_0x8a9f5c);},'ebjZb':_0x22a852(0x1dd),'LKItn':function(_0x39b47c,_0x3e2022){return _0x39b47c(_0x3e2022);}},_0x4e7a47=_0x539fa0['BQCjp'](getCurrentEnvironment),_0x13b991=ENVIRONMENT_CONFIGS[_0x4e7a47]['workosClientId'],_0x3f351=await _0x539fa0['SbEVA'](requestDeviceCode,_0x13b991);console[_0x22a852(0x1d3)](_0x539fa0[_0x22a852(0x1cd)]),console['log'](_0x539fa0['wdoKf']),_0x539fa0['RNMib'](openBrowser,_0x3f351[_0x22a852(0x1cf)]),console[_0x22a852(0x1d3)](_0x22a852(0x1e4)+_0x3f351['verification_uri_complete']),console['log']('Code:\x20'+_0x3f351[_0x22a852(0x1e2)]+'\x0a'),process['stdout'][_0x22a852(0x1db)]('Waiting\x20for\x20authentication...');let _0x5add44=await pollForTokens(_0x13b991,_0x3f351[_0x22a852(0x1da)],_0x3f351['interval'],_0x3f351[_0x22a852(0x1d7)]);console[_0x22a852(0x1d3)]('\x20✓');const _0x156a09=_0x539fa0[_0x22a852(0x1d4)](decodeJwtPayload,_0x5add44['access_token']);if(!_0x156a09['org_id']){process['stdout'][_0x22a852(0x1db)]('Setting\x20up\x20your\x20organization...');const {organizationId:_0x14fcd6}=await _0x539fa0['HaZIm'](selfServeSignup,_0x5add44['access_token']);_0x5add44=await _0x539fa0[_0x22a852(0x1ba)](refreshTokenWithOrg,_0x13b991,_0x5add44['refresh_token'],_0x14fcd6),console[_0x22a852(0x1d3)]('\x20✓');}process['stdout'][_0x22a852(0x1db)](_0x539fa0['ebjZb']);const _0xbd8196=await _0x539fa0['LKItn'](provisionApiKey,_0x5add44[_0x22a852(0x1df)]);return console[_0x22a852(0x1d3)]('\x20✓'),await storeToken(_0xbd8196),_0x5add44['refresh_token']&&await storeRefreshToken(_0x5add44['refresh_token']),_0xbd8196;}function sleep(_0xc18b89){return new Promise(_0x3c68be=>setTimeout(_0x3c68be,_0xc18b89));}
1
+ const _0x2cde13=_0x8740;(function(_0x1d6ca8,_0x4dd920){const _0x3b9991=_0x8740,_0x52e88b=_0x1d6ca8();while(!![]){try{const _0x3350ef=parseInt(_0x3b9991(0x14a))/0x1*(parseInt(_0x3b9991(0x126))/0x2)+parseInt(_0x3b9991(0x12f))/0x3+parseInt(_0x3b9991(0x139))/0x4+-parseInt(_0x3b9991(0x14b))/0x5+parseInt(_0x3b9991(0x12c))/0x6+-parseInt(_0x3b9991(0x11f))/0x7+-parseInt(_0x3b9991(0x120))/0x8;if(_0x3350ef===_0x4dd920)break;else _0x52e88b['push'](_0x52e88b['shift']());}catch(_0x5ddd17){_0x52e88b['push'](_0x52e88b['shift']());}}}(_0x44c6,0x951c4));import{exec}from'child_process';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL=_0x2cde13(0x13d),WORKOS_TOKEN_URL='https://api.workos.com/user_management/authenticate';function _0x44c6(){const _0x4b4694=['iVoAT','Failed\x20to\x20create\x20organization:\x20','\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a','user_code','oexpJ','VVAMP','CLI\x20Key','NAHHs','xVTdo','json','interval','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','Code:\x20','darwin','email','tNzOu','stdout','log','length','firstName','afuPx','2578625dqsyfj','4142096wZBkju','verification_uri_complete','QdScn','status','token','GET','39652DwngfV','/api-keys','application/json','ExxpV','name','Device\x20authorization\x20timed\x20out','3590700mRuAoe','\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...','Provisioning\x20API\x20key...','106680rYgpXp','error','qfcIe','ClkVF','application/x-www-form-urlencoded','platform','FljYd','UeUjQ','authorization_pending','text','3058260WSAyaM','refresh_token','error_description','KvzRX','https://api.workos.com/user_management/authorize/device','LUazW','mcp:write','GhTZl','access_token','Failed\x20to\x20provision\x20API\x20key:\x20','Invalid\x20JWT\x20format','stringify','vnIWT','split','write','WHXjw','Setting\x20up\x20your\x20organization...','17GkyaAL','1193620XEpANh','bpjbT'];_0x44c6=function(){return _0x4b4694;};return _0x44c6();}export async function requestDeviceCode(_0x32c830){const _0x2dc212=_0x2cde13,_0x3703d0={'ClkVF':function(_0x1db115,_0x31033e,_0x432d7b){return _0x1db115(_0x31033e,_0x432d7b);}},_0x5d568d=await _0x3703d0[_0x2dc212(0x132)](fetch,WORKOS_DEVICE_AUTH_URL,{'method':'POST','headers':{'Content-Type':_0x2dc212(0x133)},'body':new URLSearchParams({'client_id':_0x32c830})});if(!_0x5d568d['ok']){const _0x1381ba=await _0x5d568d['text']();throw new Error('Failed\x20to\x20request\x20device\x20code:\x20'+_0x5d568d['status']+'\x20'+_0x1381ba);}return _0x5d568d[_0x2dc212(0x156)]();}function _0x8740(_0x372eb4,_0x1acd94){_0x372eb4=_0x372eb4-0x116;const _0x44c619=_0x44c6();let _0x8740ae=_0x44c619[_0x372eb4];return _0x8740ae;}export async function pollForTokens(_0x14acf9,_0x1b3af8,_0x56eca6,_0x40eca1){const _0x4e2c27=_0x2cde13,_0x123a3c={'VHkHK':function(_0x1a619d,_0x35ec2e){return _0x1a619d+_0x35ec2e;},'afuPx':function(_0xf5b734,_0x362dc0){return _0xf5b734*_0x362dc0;},'FcdER':function(_0x2baa12,_0x4cae88){return _0x2baa12*_0x4cae88;},'FljYd':function(_0x565137,_0x4b6338){return _0x565137(_0x4b6338);},'rwBFL':'POST','vnIWT':_0x4e2c27(0x133),'FTdFz':'Authentication\x20failed'},_0x1d7988=_0x123a3c['VHkHK'](Date['now'](),_0x123a3c[_0x4e2c27(0x11e)](_0x40eca1,0x3e8));let _0xe115a0=_0x123a3c['FcdER'](_0x56eca6,0x3e8);while(Date['now']()<_0x1d7988){await _0x123a3c[_0x4e2c27(0x135)](sleep,_0xe115a0);const _0x2b64b8=await fetch(WORKOS_TOKEN_URL,{'method':_0x123a3c['rwBFL'],'headers':{'Content-Type':_0x123a3c[_0x4e2c27(0x145)]},'body':new URLSearchParams({'client_id':_0x14acf9,'device_code':_0x1b3af8,'grant_type':'urn:ietf:params:oauth:grant-type:device_code'})});if(_0x2b64b8['ok'])return _0x2b64b8['json']();const _0x356319=await _0x2b64b8['json']();if(_0x356319['error']===_0x4e2c27(0x137))continue;if(_0x356319['error']==='slow_down'){_0xe115a0+=0x3e8;continue;}throw new Error(_0x356319[_0x4e2c27(0x13b)]||_0x356319[_0x4e2c27(0x130)]||_0x123a3c['FTdFz']);}throw new Error(_0x4e2c27(0x12b));}async function fetchUserProfile(_0x2d9858){const _0x34a520=_0x2cde13,_0x3140fd={'ExxpV':function(_0x4448f0,_0x21bd10,_0x5227c1){return _0x4448f0(_0x21bd10,_0x5227c1);}},_0x58aeb4=getApiBaseUrl();try{const _0x4c22fb=await _0x3140fd[_0x34a520(0x129)](fetch,_0x58aeb4+'/organization/me',{'method':_0x34a520(0x125),'headers':{'workos-token':_0x2d9858}});if(_0x4c22fb['ok'])return _0x4c22fb[_0x34a520(0x156)]();}catch{}return null;}function buildKeyName(_0x9456b1,_0x3cf988){const _0x4169b7=_0x2cde13,_0x328dc8={'NAHHs':function(_0x9149b6,_0x4050c2){return _0x9149b6===_0x4050c2;},'LUazW':function(_0x28d009,_0x4821c0){return _0x28d009+_0x4821c0;}},_0x587ac6=_0x3cf988['filter'](_0x51f3f7=>_0x51f3f7['name']===_0x9456b1||_0x51f3f7[_0x4169b7(0x12a)]['startsWith'](_0x9456b1+'\x20('));if(_0x328dc8[_0x4169b7(0x154)](_0x587ac6[_0x4169b7(0x11c)],0x0))return _0x9456b1;return _0x9456b1+'\x20('+_0x328dc8[_0x4169b7(0x13e)](_0x587ac6['length'],0x1)+')';}export async function provisionApiKey(_0x11077e){const _0xafcdf2=_0x2cde13,_0x1afe2e={'HJPSg':'application/json','VVAMP':_0xafcdf2(0x153),'nYmpr':function(_0x2b8812,_0x78b3df,_0x38c146){return _0x2b8812(_0x78b3df,_0x38c146);},'hsjlC':function(_0x3231ed,_0xf5c4d2,_0x2968ac){return _0x3231ed(_0xf5c4d2,_0x2968ac);},'GhTZl':_0xafcdf2(0x13f)},_0x49cf45=getApiBaseUrl(),_0x3f13d7={'Content-Type':_0x1afe2e['HJPSg'],'workos-token':_0x11077e},_0x5d61c7=await fetchUserProfile(_0x11077e),_0x5a041a=_0x5d61c7?.[_0xafcdf2(0x11d)]||_0x5d61c7?.[_0xafcdf2(0x118)]?.['split']('@')[0x0],_0x23d9e2=_0x5a041a?_0x5a041a+'\x27s\x20CLI\x20Key':_0x1afe2e[_0xafcdf2(0x152)];let _0x128dea=[];try{const _0x3dc0fa=await _0x1afe2e['nYmpr'](fetch,_0x49cf45+'/api-keys',{'method':_0xafcdf2(0x125),'headers':_0x3f13d7});if(_0x3dc0fa['ok']){const _0x4ac793=await _0x3dc0fa['json']();_0x128dea=_0x4ac793['apiKeys'];}}catch{}const _0x4f3026=_0x1afe2e['nYmpr'](buildKeyName,_0x23d9e2,_0x128dea),_0x2a9c03=await _0x1afe2e['hsjlC'](fetch,_0x49cf45+_0xafcdf2(0x127),{'method':'POST','headers':_0x3f13d7,'body':JSON[_0xafcdf2(0x144)]({'name':_0x4f3026,'scope':_0x1afe2e[_0xafcdf2(0x140)]})});if(!_0x2a9c03['ok']){const _0x5d975e=await _0x2a9c03[_0xafcdf2(0x138)]();throw new Error(_0xafcdf2(0x142)+_0x2a9c03[_0xafcdf2(0x123)]+'\x20'+_0x5d975e);}const _0x395601=await _0x2a9c03[_0xafcdf2(0x156)]();return _0x395601['apiKey'][_0xafcdf2(0x124)];}export function openBrowser(_0x2279cd){const _0x4ddc11=_0x2cde13,_0x36d931={'xVTdo':_0x4ddc11(0x117),'bpjbT':function(_0xdd27f8,_0x17985c){return _0xdd27f8===_0x17985c;},'tvcpu':'start'},_0xd9b069=process[_0x4ddc11(0x134)],_0x2b96ff=_0xd9b069===_0x36d931[_0x4ddc11(0x155)]?'open':_0x36d931[_0x4ddc11(0x14c)](_0xd9b069,'win32')?_0x36d931['tvcpu']:'xdg-open';exec(_0x2b96ff+'\x20'+JSON['stringify'](_0x2279cd));}function decodeJwtPayload(_0x43884d){const _0x3de853=_0x2cde13,_0x4be1e3={'gTwdo':function(_0xde8f50,_0x20b0ea){return _0xde8f50!==_0x20b0ea;},'iVoAT':_0x3de853(0x143)},_0x24d0de=_0x43884d[_0x3de853(0x146)]('.');if(_0x4be1e3['gTwdo'](_0x24d0de[_0x3de853(0x11c)],0x3))throw new Error(_0x4be1e3[_0x3de853(0x14d)]);const _0x3e6443=Buffer['from'](_0x24d0de[0x1],'base64url')['toString']('utf-8');return JSON['parse'](_0x3e6443);}async function selfServeSignup(_0xe414da){const _0xc170b0=_0x2cde13,_0x1263f3={'hCcwZ':function(_0x340dd6,_0x589016,_0x27b06e){return _0x340dd6(_0x589016,_0x27b06e);},'WHXjw':_0xc170b0(0x128)},_0x3e85ae=getApiBaseUrl(),_0x34f6da=await _0x1263f3['hCcwZ'](fetch,_0x3e85ae+'/organization/self-serve-signup',{'method':'POST','headers':{'Content-Type':_0x1263f3[_0xc170b0(0x148)],'workos-token':_0xe414da}});if(!_0x34f6da['ok']){const _0x1d771d=await _0x34f6da['text']();throw new Error(_0xc170b0(0x14e)+_0x34f6da[_0xc170b0(0x123)]+'\x20'+_0x1d771d);}return _0x34f6da[_0xc170b0(0x156)]();}async function refreshTokenWithOrg(_0x309091,_0x1817de,_0x1ba312){const _0x552ca8=_0x2cde13,_0x3acabc={'qfcIe':function(_0x5792b0,_0x3437c4,_0x4c1df9){return _0x5792b0(_0x3437c4,_0x4c1df9);},'KvzRX':'POST','oexpJ':_0x552ca8(0x13a)},_0x1a3bb8=await _0x3acabc[_0x552ca8(0x131)](fetch,WORKOS_TOKEN_URL,{'method':_0x3acabc[_0x552ca8(0x13c)],'headers':{'Content-Type':_0x552ca8(0x133)},'body':new URLSearchParams({'client_id':_0x309091,'grant_type':_0x3acabc[_0x552ca8(0x151)],'refresh_token':_0x1817de,'organization_id':_0x1ba312})});if(!_0x1a3bb8['ok']){const _0x3bf269=await _0x1a3bb8['text']();throw new Error(_0x552ca8(0x158)+_0x1a3bb8['status']+'\x20'+_0x3bf269);}return _0x1a3bb8[_0x552ca8(0x156)]();}export async function runDeviceAuthFlow(){const _0x3037d9=_0x2cde13,_0x4d3d3f={'tNzOu':function(_0x3bcd36,_0x132022){return _0x3bcd36(_0x132022);},'UeUjQ':_0x3037d9(0x14f),'QdScn':function(_0x45ae0f,_0x310aff,_0x225430,_0x1f5cec,_0x5557b1){return _0x45ae0f(_0x310aff,_0x225430,_0x1f5cec,_0x5557b1);},'cdSum':_0x3037d9(0x149)},_0x45778b=getCurrentEnvironment(),_0x1b8711=ENVIRONMENT_CONFIGS[_0x45778b]['workosClientId'],_0x5e3420=await _0x4d3d3f['tNzOu'](requestDeviceCode,_0x1b8711);console[_0x3037d9(0x11b)](_0x3037d9(0x12d)),console['log'](_0x4d3d3f[_0x3037d9(0x136)]),_0x4d3d3f['tNzOu'](openBrowser,_0x5e3420['verification_uri_complete']),console['log']('If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20'+_0x5e3420[_0x3037d9(0x121)]),console[_0x3037d9(0x11b)](_0x3037d9(0x116)+_0x5e3420[_0x3037d9(0x150)]+'\x0a'),process[_0x3037d9(0x11a)][_0x3037d9(0x147)]('Waiting\x20for\x20authentication...');let _0xc71265=await _0x4d3d3f[_0x3037d9(0x122)](pollForTokens,_0x1b8711,_0x5e3420['device_code'],_0x5e3420[_0x3037d9(0x157)],_0x5e3420['expires_in']);console['log']('\x20✓');const _0x289ef0=_0x4d3d3f['tNzOu'](decodeJwtPayload,_0xc71265[_0x3037d9(0x141)]);if(!_0x289ef0['org_id']){process['stdout'][_0x3037d9(0x147)](_0x4d3d3f['cdSum']);const {organizationId:_0x28edfb}=await _0x4d3d3f[_0x3037d9(0x119)](selfServeSignup,_0xc71265[_0x3037d9(0x141)]);_0xc71265=await refreshTokenWithOrg(_0x1b8711,_0xc71265['refresh_token'],_0x28edfb),console['log']('\x20✓');}process[_0x3037d9(0x11a)]['write'](_0x3037d9(0x12e));const _0x5535a7=await _0x4d3d3f['tNzOu'](provisionApiKey,_0xc71265['access_token']);return console[_0x3037d9(0x11b)]('\x20✓'),await storeToken(_0x5535a7),_0xc71265['refresh_token']&&await storeRefreshToken(_0xc71265['refresh_token']),_0x5535a7;}function sleep(_0x2aa73e){return new Promise(_0x3ed6aa=>setTimeout(_0x3ed6aa,_0x2aa73e));}
@@ -1 +1 @@
1
- const _0x3dc883=_0x387f;(function(_0x40bec7,_0x382a78){const _0x37d4e9=_0x387f,_0x20060a=_0x40bec7();while(!![]){try{const _0x1dc27b=parseInt(_0x37d4e9(0x166))/0x1*(parseInt(_0x37d4e9(0x16c))/0x2)+-parseInt(_0x37d4e9(0x163))/0x3*(-parseInt(_0x37d4e9(0x16d))/0x4)+-parseInt(_0x37d4e9(0x172))/0x5*(parseInt(_0x37d4e9(0x167))/0x6)+-parseInt(_0x37d4e9(0x162))/0x7*(parseInt(_0x37d4e9(0x177))/0x8)+-parseInt(_0x37d4e9(0x171))/0x9+-parseInt(_0x37d4e9(0x16e))/0xa*(-parseInt(_0x37d4e9(0x164))/0xb)+parseInt(_0x37d4e9(0x175))/0xc;if(_0x1dc27b===_0x382a78)break;else _0x20060a['push'](_0x20060a['shift']());}catch(_0x41432b){_0x20060a['push'](_0x20060a['shift']());}}}(_0x1b12,0x9b2fe));function _0x1b12(){const _0x57704d=['jeIwC','130902YaXIXG','1182XiNRQR','prod','local','https://ai-proxy-716115358910.us-central1.run.app','RANGER_CLI_ENV','4MTmkfb','20aCqwRZ','20rqPzVx','env','SbBne','7550127LjCQyu','990yAFMzi','http://localhost:8080','kWyfL','8800536Cgiyon','https://api.staging.ranger.net','16yBdspG','1109661atZTqA','299163hmmtOP','1852477YryxcO'];_0x1b12=function(){return _0x57704d;};return _0x1b12();}export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':'https://api.ranger.net','workosClientId':'client_01J9CBYM7M5ZETCF7G6614DXR2','aiProxyUrl':_0x3dc883(0x16a)},'staging':{'apiBaseUrl':_0x3dc883(0x176),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app'},'local':{'apiBaseUrl':_0x3dc883(0x173),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':'http://localhost:8090'}};function _0x387f(_0x21c789,_0x239493){_0x21c789=_0x21c789-0x162;const _0x1b12dc=_0x1b12();let _0x387f83=_0x1b12dc[_0x21c789];return _0x387f83;}export const DEFAULT_ENVIRONMENT=_0x3dc883(0x168);export function isValidEnvironment(_0x155ab3){const _0x4ec820=_0x3dc883,_0x46ed33={'kWyfL':_0x4ec820(0x168),'SbBne':function(_0x5b397a,_0x3ea82f){return _0x5b397a===_0x3ea82f;}};return _0x155ab3===_0x46ed33[_0x4ec820(0x174)]||_0x46ed33[_0x4ec820(0x170)](_0x155ab3,'staging')||_0x155ab3===_0x4ec820(0x169);}export function getCurrentEnvironment(){const _0x4b1d61=_0x3dc883,_0x9977ee=process[_0x4b1d61(0x16f)][_0x4b1d61(0x16b)];if(_0x9977ee&&isValidEnvironment(_0x9977ee))return _0x9977ee;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){return ENVIRONMENT_CONFIGS[getCurrentEnvironment()]['apiBaseUrl'];}export function getAiProxyUrl(){const _0x130b33=_0x3dc883,_0x4e9ecd={'jeIwC':function(_0x423ebe){return _0x423ebe();}};return ENVIRONMENT_CONFIGS[_0x4e9ecd[_0x130b33(0x165)](getCurrentEnvironment)]['aiProxyUrl'];}
1
+ function _0x3047(){const _0x216d40=['481105nUyzyl','kclGS','client_01J9CBYM2DKWV9HM17D95Z540K','38haWODB','42QdaTtm','local','2488MoxNUb','13734KBdMvX','aiProxyUrl','10mtncWB','http://localhost:8090','apiBaseUrl','https://ai-proxy-716115358910.us-central1.run.app','241261NWehon','22206140NYZqQy','123039mwxRnE','http://localhost:8080','2479012ZdljVZ','5117IJweFY'];_0x3047=function(){return _0x216d40;};return _0x3047();}const _0x4fa7ac=_0x3dd8;(function(_0x5403c7,_0x5be541){const _0x131cce=_0x3dd8,_0x5e35b6=_0x5403c7();while(!![]){try{const _0x11ebd8=-parseInt(_0x131cce(0x88))/0x1+-parseInt(_0x131cce(0x91))/0x2*(-parseInt(_0x131cce(0x95))/0x3)+-parseInt(_0x131cce(0x8c))/0x4+-parseInt(_0x131cce(0x8e))/0x5*(parseInt(_0x131cce(0x92))/0x6)+parseInt(_0x131cce(0x8d))/0x7*(-parseInt(_0x131cce(0x94))/0x8)+parseInt(_0x131cce(0x8a))/0x9+parseInt(_0x131cce(0x97))/0xa*(parseInt(_0x131cce(0x89))/0xb);if(_0x11ebd8===_0x5be541)break;else _0x5e35b6['push'](_0x5e35b6['shift']());}catch(_0xcbde3){_0x5e35b6['push'](_0x5e35b6['shift']());}}}(_0x3047,0x57473));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':'https://api.ranger.net','workosClientId':'client_01J9CBYM7M5ZETCF7G6614DXR2','aiProxyUrl':_0x4fa7ac(0x9a)},'staging':{'apiBaseUrl':'https://api.staging.ranger.net','workosClientId':_0x4fa7ac(0x90),'aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app'},'local':{'apiBaseUrl':_0x4fa7ac(0x8b),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':_0x4fa7ac(0x98)}};export const DEFAULT_ENVIRONMENT='prod';export function isValidEnvironment(_0x56c7e4){const _0x9504d2=_0x4fa7ac,_0x2fda39={'QTFMJ':'staging','aNclS':_0x9504d2(0x93)};return _0x56c7e4==='prod'||_0x56c7e4===_0x2fda39['QTFMJ']||_0x56c7e4===_0x2fda39['aNclS'];}function _0x3dd8(_0x5514c5,_0xfc038d){_0x5514c5=_0x5514c5-0x88;const _0x3047dd=_0x3047();let _0x3dd80d=_0x3047dd[_0x5514c5];return _0x3dd80d;}export function getCurrentEnvironment(){const _0x5a404b=process['env']['RANGER_CLI_ENV'];if(_0x5a404b&&isValidEnvironment(_0x5a404b))return _0x5a404b;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){const _0x18db53=_0x4fa7ac;return ENVIRONMENT_CONFIGS[getCurrentEnvironment()][_0x18db53(0x99)];}export function getAiProxyUrl(){const _0x2caf4c=_0x4fa7ac,_0x238c87={'kclGS':function(_0xa0dddc){return _0xa0dddc();}};return ENVIRONMENT_CONFIGS[_0x238c87[_0x2caf4c(0x8f)](getCurrentEnvironment)][_0x2caf4c(0x96)];}
@@ -1 +1 @@
1
- (function(_0x4455c9,_0x3b6f73){const _0x36994a=_0x57aa,_0x222de4=_0x4455c9();while(!![]){try{const _0x850623=parseInt(_0x36994a(0xd5))/0x1+-parseInt(_0x36994a(0xa4))/0x2+parseInt(_0x36994a(0xe8))/0x3+-parseInt(_0x36994a(0xde))/0x4+-parseInt(_0x36994a(0xd9))/0x5*(parseInt(_0x36994a(0xc0))/0x6)+-parseInt(_0x36994a(0xa9))/0x7+parseInt(_0x36994a(0xb9))/0x8*(parseInt(_0x36994a(0xaa))/0x9);if(_0x850623===_0x3b6f73)break;else _0x222de4['push'](_0x222de4['shift']());}catch(_0x198b11){_0x222de4['push'](_0x222de4['shift']());}}}(_0x12f3,0x7d0ad));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x1fcef9){const _0x594b8b=_0x57aa,_0x41583d={'SnLPs':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','YQoiU':function(_0x1d85e7){return _0x1d85e7();},'MhJst':'POST','RTqAl':'application/json'},_0x28bb90=await getToken();if(!_0x28bb90)throw new Error(_0x41583d['SnLPs']);const _0x40959a=_0x41583d['YQoiU'](getApiBaseUrl),_0x298314=await fetch(_0x40959a+_0x594b8b(0xe4),{'method':_0x41583d[_0x594b8b(0xd0)],'headers':{'Authorization':_0x594b8b(0xba)+_0x28bb90,'Content-Type':_0x41583d[_0x594b8b(0xb6)]},'body':JSON['stringify'](_0x1fcef9)});if(!_0x298314['ok']){const _0x9e1920=await _0x298314['text']();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x9e1920);}return _0x298314[_0x594b8b(0xb8)]();}function _0x12f3(){const _0x1f5777=['ipqZa','1556940zvLEtU','gitBranch','updateChecklistItem','1103374kVGtfS','asHTZ','/sessions','SYHMd','Failed\x20to\x20delete\x20feature\x20review:\x20','4616486Hjybxp','117cjRRoX','AtvVk','gukwn','OOrFV','sessionId','Failed\x20to\x20start\x20session:\x20','/report','limit','Failed\x20to\x20update\x20feature\x20review:\x20','Failed\x20to\x20restore\x20feature\x20review:\x20','toString','/sessions/','RTqAl','/feedback','json','866840CszSkM','Bearer\x20','itemIds','text','/checklist/','YczIW','offset','24rCLhBj','application/json','Uxhnf','includeDeleted','mCoJQ','Failed\x20to\x20get\x20item\x20feedback:\x20','ZobhF','AEoMV','PATCH','stringify','oFzQR','/start','BKWgE','gitRepoUrl','set','Failed\x20to\x20update\x20scenario:\x20','MhJst','tbjZc','GET','tXZmZ','style','847394tUsLmU','/comments/address','gLGII','LgLkb','411965tuubFw','join','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','/api/v1/mcp/features/','uoVgD','2888236zvtDbQ','jgdEB','eqWtZ','PLyzl','/features/','true','/api/v1/mcp/features','GDUYg','Failed\x20to\x20get\x20action\x20items:\x20'];_0x12f3=function(){return _0x1f5777;};return _0x12f3();}export async function listFeatures(_0x2af956){const _0x421f1f=_0x57aa,_0x1cd249={'AtvVk':_0x421f1f(0xcd),'gLGII':_0x421f1f(0xa2),'dotnv':'offset','LXbMt':'includeDeleted','LEvFw':'GET'},_0x5edf93=await getToken();if(!_0x5edf93)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x9d75b8=getApiBaseUrl(),_0x2d2261=new URLSearchParams();if(_0x2af956?.[_0x421f1f(0xcd)])_0x2d2261[_0x421f1f(0xce)](_0x1cd249[_0x421f1f(0xab)],_0x2af956[_0x421f1f(0xcd)]);if(_0x2af956?.[_0x421f1f(0xa2)])_0x2d2261[_0x421f1f(0xce)](_0x1cd249[_0x421f1f(0xd7)],_0x2af956['gitBranch']);if(_0x2af956?.[_0x421f1f(0xb1)])_0x2d2261['set'](_0x421f1f(0xb1),_0x2af956['limit']['toString']());if(_0x2af956?.['offset'])_0x2d2261[_0x421f1f(0xce)](_0x1cd249['dotnv'],_0x2af956[_0x421f1f(0xbf)][_0x421f1f(0xb4)]());if(_0x2af956?.[_0x421f1f(0xc3)])_0x2d2261[_0x421f1f(0xce)](_0x1cd249['LXbMt'],_0x421f1f(0xe3));const _0x1653cf=_0x9d75b8+'/api/v1/mcp/features'+(_0x2d2261['toString']()?'?'+_0x2d2261[_0x421f1f(0xb4)]():''),_0xc63610=await fetch(_0x1653cf,{'method':_0x1cd249['LEvFw'],'headers':{'Authorization':'Bearer\x20'+_0x5edf93}});if(!_0xc63610['ok']){const _0x49edbf=await _0xc63610['text']();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x49edbf);}return _0xc63610[_0x421f1f(0xb8)]();}export async function getFeature(_0x139e2b){const _0xd84a9f=_0x57aa,_0x4fd7d6={'byXIA':function(_0x436f40){return _0x436f40();},'asHTZ':function(_0x15db3d,_0x5c34e4,_0x16feee){return _0x15db3d(_0x5c34e4,_0x16feee);}},_0x66c474=await _0x4fd7d6['byXIA'](getToken);if(!_0x66c474)throw new Error(_0xd84a9f(0xdb));const _0x4cc9e4=_0x4fd7d6['byXIA'](getApiBaseUrl),_0x173025=await _0x4fd7d6[_0xd84a9f(0xa5)](fetch,_0x4cc9e4+_0xd84a9f(0xdc)+_0x139e2b,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x66c474}});if(!_0x173025['ok']){const _0x1296db=await _0x173025['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x1296db);}return _0x173025[_0xd84a9f(0xb8)]();}export async function updateFeature(_0x207834,_0x578d73){const _0x437ba2=_0x57aa,_0x195240={'eqWtZ':_0x437ba2(0xdb),'BKWgE':_0x437ba2(0xc1)},_0x27f266=await getToken();if(!_0x27f266)throw new Error(_0x195240[_0x437ba2(0xe0)]);const _0x40fcd0=getApiBaseUrl(),_0x249ed1=await fetch(_0x40fcd0+'/api/v1/mcp/features/'+_0x207834,{'method':_0x437ba2(0xc8),'headers':{'Authorization':'Bearer\x20'+_0x27f266,'Content-Type':_0x195240[_0x437ba2(0xcc)]},'body':JSON['stringify'](_0x578d73)});if(!_0x249ed1['ok']){const _0x44d0e0=await _0x249ed1[_0x437ba2(0xbc)]();throw new Error(_0x437ba2(0xb2)+_0x44d0e0);}return _0x249ed1[_0x437ba2(0xb8)]();}export async function createChecklistItem(_0x2b5e51,_0x51e81a,_0xb75a09){const _0x5c9103=_0x57aa,_0x3b0793={'DnkaB':function(_0x2f4f40){return _0x2f4f40();},'YczIW':_0x5c9103(0xdb),'GDUYg':function(_0x14f27f,_0x142ef5,_0x4f5fc9){return _0x14f27f(_0x142ef5,_0x4f5fc9);},'oFzQR':'application/json'},_0x45a62d=await _0x3b0793['DnkaB'](getToken);if(!_0x45a62d)throw new Error(_0x3b0793[_0x5c9103(0xbe)]);const _0x2db9da=_0x3b0793['DnkaB'](getApiBaseUrl),_0x17c054=await _0x3b0793[_0x5c9103(0xe5)](fetch,_0x2db9da+_0x5c9103(0xdc)+_0x2b5e51+'/checklist',{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x45a62d,'Content-Type':_0x3b0793[_0x5c9103(0xca)]},'body':JSON[_0x5c9103(0xc9)]({'description':_0x51e81a,'position':_0xb75a09})});if(!_0x17c054['ok']){const _0x2e6090=await _0x17c054[_0x5c9103(0xbc)]();throw new Error('Failed\x20to\x20create\x20scenario:\x20'+_0x2e6090);}return _0x17c054['json']();}export async function updateChecklistItem(_0x1f70bc,_0x355e36,_0x2a8768){const _0x2c3635=_0x57aa,_0x560ff2={'VgYHq':_0x2c3635(0xdb),'jgdEB':'PATCH'};return withRetry(async()=>{const _0x322ac8=_0x2c3635,_0x113d4f=await getToken();if(!_0x113d4f)throw new Error(_0x560ff2['VgYHq']);const _0x56f6c1=getApiBaseUrl(),_0x29abd5=await fetch(_0x56f6c1+'/api/v1/mcp/features/'+_0x1f70bc+_0x322ac8(0xbd)+_0x355e36,{'method':_0x560ff2[_0x322ac8(0xdf)],'headers':{'Authorization':'Bearer\x20'+_0x113d4f,'Content-Type':'application/json'},'body':JSON[_0x322ac8(0xc9)](_0x2a8768)});if(!_0x29abd5['ok']){const _0x18932e=await _0x29abd5['text']();throw new Error(_0x322ac8(0xcf)+_0x18932e);}return _0x29abd5[_0x322ac8(0xb8)]();},{'label':_0x2c3635(0xa3)});}function _0x57aa(_0x1c1d9b,_0xad9c9){_0x1c1d9b=_0x1c1d9b-0xa2;const _0x12f3ad=_0x12f3();let _0x57aa19=_0x12f3ad[_0x1c1d9b];return _0x57aa19;}export async function getFeatureReport(_0x4d3489){const _0x259402=_0x57aa,_0x31c0ca={'LgLkb':function(_0x2eb462,_0x1eabd4,_0x4abc15){return _0x2eb462(_0x1eabd4,_0x4abc15);},'mCoJQ':_0x259402(0xd2)},_0xff8dbf=await getToken();if(!_0xff8dbf)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x5f052c=getApiBaseUrl(),_0x5c4bf9=await _0x31c0ca[_0x259402(0xd8)](fetch,_0x5f052c+_0x259402(0xdc)+_0x4d3489+_0x259402(0xb0),{'method':_0x31c0ca[_0x259402(0xc4)],'headers':{'Authorization':'Bearer\x20'+_0xff8dbf}});if(!_0x5c4bf9['ok']){const _0xb7484b=await _0x5c4bf9[_0x259402(0xbc)]();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0xb7484b);}return _0x5c4bf9['json']();}export async function getFeatureReportMarkdown(_0x1a8bb4,_0x1a3552){const _0x58a585=_0x57aa,_0x49be44={'Oxcif':function(_0x5e7437){return _0x5e7437();},'SYHMd':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','VeayP':function(_0x274292,_0x246c3e){return _0x274292>_0x246c3e;},'tXZmZ':'itemIds','tbjZc':function(_0x36e739,_0x4aeb68){return _0x36e739&&_0x4aeb68;},'OOrFV':_0x58a585(0xd4),'AEoMV':function(_0x435c78,_0x40367b){return _0x435c78||_0x40367b;},'uoVgD':'GET'},_0x4f6a55=await _0x49be44['Oxcif'](getToken);if(!_0x4f6a55)throw new Error(_0x49be44[_0x58a585(0xa7)]);const _0x1eb67a=getApiBaseUrl(),_0x4b4b16=new URLSearchParams(),_0x54deef=_0x49be44['VeayP'](_0x1a3552?.['itemIds']?.['length']??0x0,0x0),_0x2b2da0=Boolean(_0x1a3552?.[_0x58a585(0xae)]);_0x54deef&&_0x1a3552?.['itemIds']&&_0x4b4b16[_0x58a585(0xce)](_0x49be44[_0x58a585(0xd3)],_0x1a3552[_0x58a585(0xbb)][_0x58a585(0xda)](','));_0x2b2da0&&_0x1a3552?.[_0x58a585(0xae)]&&_0x4b4b16[_0x58a585(0xce)]('sessionId',_0x1a3552[_0x58a585(0xae)]);_0x49be44[_0x58a585(0xd1)](!_0x54deef,!_0x2b2da0)&&_0x1a3552?.['style']&&_0x4b4b16['set'](_0x49be44[_0x58a585(0xad)],_0x1a3552['style']);const _0x184702=_0x49be44[_0x58a585(0xc7)](_0x54deef,_0x2b2da0)?_0x1eb67a+_0x58a585(0xe2)+_0x1a8bb4+'/report/markdown':_0x1eb67a+'/api/v1/mcp/features/'+_0x1a8bb4+'/report/markdown',_0x47d216=''+_0x184702+(_0x4b4b16[_0x58a585(0xb4)]()?'?'+_0x4b4b16[_0x58a585(0xb4)]():''),_0x76922e=await fetch(_0x47d216,{'method':_0x49be44[_0x58a585(0xdd)],'headers':{'Authorization':'Bearer\x20'+_0x4f6a55}});if(!_0x76922e['ok']){const _0x1e2b44=await _0x76922e['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20'+_0x1e2b44);}return _0x76922e['text']();}export async function listFeatureSessions(_0x2ef583){const _0x98ac87=_0x57aa,_0x3f9414={'fgwzj':function(_0x2440e9){return _0x2440e9();},'PwScC':_0x98ac87(0xdb)},_0x3bff02=await _0x3f9414['fgwzj'](getToken);if(!_0x3bff02)throw new Error(_0x3f9414['PwScC']);const _0x43ba77=getApiBaseUrl(),_0x395f09=await fetch(_0x43ba77+'/api/v1/mcp/features/'+_0x2ef583+_0x98ac87(0xa6),{'method':_0x98ac87(0xd2),'headers':{'Authorization':_0x98ac87(0xba)+_0x3bff02}});if(!_0x395f09['ok']){const _0x3df2d6=await _0x395f09['text']();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x3df2d6);}return _0x395f09['json']();}export async function startSession(_0x3d6dad,_0x54593a){const _0x978ba9=_0x57aa,_0x27adf0={'gukwn':function(_0xbcf1f3,_0x3a1894,_0x5e5951){return _0xbcf1f3(_0x3a1894,_0x5e5951);}},_0x1eca2c=await getToken();if(!_0x1eca2c)throw new Error(_0x978ba9(0xdb));const _0x4583cd=getApiBaseUrl(),_0x559677=await _0x27adf0[_0x978ba9(0xac)](fetch,_0x4583cd+_0x978ba9(0xdc)+_0x3d6dad+_0x978ba9(0xb5)+_0x54593a+_0x978ba9(0xcb),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x1eca2c}});if(!_0x559677['ok']){const _0x1261fd=await _0x559677[_0x978ba9(0xbc)]();throw new Error(_0x978ba9(0xaf)+_0x1261fd);}return _0x559677['json']();}export async function concludeSession(_0x50995d,_0x97218e){const _0x393c3d=_0x57aa,_0x43242e={'ipqZa':function(_0x8180e5){return _0x8180e5();},'vHtWk':'POST'},_0x311d2e=await _0x43242e[_0x393c3d(0xe7)](getToken);if(!_0x311d2e)throw new Error(_0x393c3d(0xdb));const _0x5a97a4=_0x43242e['ipqZa'](getApiBaseUrl),_0x2766ab=await fetch(_0x5a97a4+'/api/v1/mcp/features/'+_0x50995d+_0x393c3d(0xb5)+_0x97218e+'/conclude',{'method':_0x43242e['vHtWk'],'headers':{'Authorization':'Bearer\x20'+_0x311d2e}});if(!_0x2766ab['ok']){const _0x432238=await _0x2766ab['text']();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x432238);}return _0x2766ab['json']();}export async function getActionItems(_0x1f6d4a){const _0xcc6b78=_0x57aa,_0x3c5560={'eOScB':function(_0x3df8f0){return _0x3df8f0();},'dlXqb':_0xcc6b78(0xdb)},_0x546355=await _0x3c5560['eOScB'](getToken);if(!_0x546355)throw new Error(_0x3c5560['dlXqb']);const _0x40cf02=getApiBaseUrl(),_0x174fbd=await fetch(_0x40cf02+'/api/v1/mcp/features/'+_0x1f6d4a+'/action-items',{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x546355}});if(!_0x174fbd['ok']){const _0x1cbee9=await _0x174fbd[_0xcc6b78(0xbc)]();throw new Error(_0xcc6b78(0xe6)+_0x1cbee9);}return _0x174fbd['json']();}export async function getItemFeedback(_0x2bcbc7,_0x30c164){const _0xb1cd5a=_0x57aa,_0x1a45d3={'IYHec':function(_0xe98c78,_0x17f144,_0xca9c96){return _0xe98c78(_0x17f144,_0xca9c96);}},_0x353e1b=await getToken();if(!_0x353e1b)throw new Error(_0xb1cd5a(0xdb));const _0x2ef29f=getApiBaseUrl(),_0x34c07f=await _0x1a45d3['IYHec'](fetch,_0x2ef29f+_0xb1cd5a(0xdc)+_0x2bcbc7+'/checklist-items/'+_0x30c164+_0xb1cd5a(0xb7),{'method':_0xb1cd5a(0xd2),'headers':{'Authorization':'Bearer\x20'+_0x353e1b}});if(!_0x34c07f['ok']){const _0x3fb180=await _0x34c07f['text']();throw new Error(_0xb1cd5a(0xc5)+_0x3fb180);}return _0x34c07f['json']();}export async function markCommentsAddressed(_0x454302,_0x1a5edd,_0xb3d25){const _0x57f68a=_0x57aa,_0x282116={'PLyzl':function(_0x3a13e9){return _0x3a13e9();},'ZMkOG':function(_0x3cd14a,_0x16efe2,_0x2bf653){return _0x3cd14a(_0x16efe2,_0x2bf653);},'OdUyl':'POST'},_0x597521=await getToken();if(!_0x597521)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x36136a=_0x282116[_0x57f68a(0xe1)](getApiBaseUrl),_0x1a6e23=await _0x282116['ZMkOG'](fetch,_0x36136a+_0x57f68a(0xdc)+_0x454302+_0x57f68a(0xd6),{'method':_0x282116['OdUyl'],'headers':{'Authorization':'Bearer\x20'+_0x597521,'Content-Type':'application/json'},'body':JSON[_0x57f68a(0xc9)]({'checklistItemId':_0x1a5edd,'commentIds':_0xb3d25})});if(!_0x1a6e23['ok']){const _0x371527=await _0x1a6e23['text']();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0x371527);}}export async function softDeleteFeature(_0x1e71f3){const _0x5afa40=_0x57aa,_0x1fa58a={'ZobhF':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','EIxwM':function(_0x30c94a){return _0x30c94a();}},_0x5076de=await getToken();if(!_0x5076de)throw new Error(_0x1fa58a[_0x5afa40(0xc6)]);const _0x22233c=_0x1fa58a['EIxwM'](getApiBaseUrl),_0x23127b=await fetch(_0x22233c+'/api/v1/mcp/features/'+_0x1e71f3,{'method':'DELETE','headers':{'Authorization':'Bearer\x20'+_0x5076de}});if(!_0x23127b['ok']){const _0x38f171=await _0x23127b['text']();throw new Error(_0x5afa40(0xa8)+_0x38f171);}}export async function restoreFeature(_0x543234){const _0x43f5d7=_0x57aa,_0x47745a={'Uxhnf':function(_0x5cfe41){return _0x5cfe41();},'CRUtd':function(_0x2f405a,_0x1fcb75,_0x36d0b0){return _0x2f405a(_0x1fcb75,_0x36d0b0);},'zNNAh':'POST'},_0x299dff=await _0x47745a[_0x43f5d7(0xc2)](getToken);if(!_0x299dff)throw new Error(_0x43f5d7(0xdb));const _0x50c1b8=getApiBaseUrl(),_0x209693=await _0x47745a['CRUtd'](fetch,_0x50c1b8+'/api/v1/mcp/features/'+_0x543234+'/restore',{'method':_0x47745a['zNNAh'],'headers':{'Authorization':_0x43f5d7(0xba)+_0x299dff}});if(!_0x209693['ok']){const _0x1661f9=await _0x209693['text']();throw new Error(_0x43f5d7(0xb3)+_0x1661f9);}}
1
+ (function(_0x19831e,_0x20ef54){const _0x52a81a=_0x34d1,_0x2c3da5=_0x19831e();while(!![]){try{const _0x57a825=-parseInt(_0x52a81a(0xb0))/0x1+-parseInt(_0x52a81a(0xa6))/0x2*(-parseInt(_0x52a81a(0xbf))/0x3)+-parseInt(_0x52a81a(0xcf))/0x4*(parseInt(_0x52a81a(0xba))/0x5)+parseInt(_0x52a81a(0xb1))/0x6*(-parseInt(_0x52a81a(0xaf))/0x7)+parseInt(_0x52a81a(0x96))/0x8+-parseInt(_0x52a81a(0xc3))/0x9*(parseInt(_0x52a81a(0xbd))/0xa)+-parseInt(_0x52a81a(0xbb))/0xb*(-parseInt(_0x52a81a(0xdd))/0xc);if(_0x57a825===_0x20ef54)break;else _0x2c3da5['push'](_0x2c3da5['shift']());}catch(_0x12c9c7){_0x2c3da5['push'](_0x2c3da5['shift']());}}}(_0x3a24,0x46b14));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x4ad860){const _0x14f847=_0x34d1,_0x254aa8={'hMIOQ':function(_0x5a0b3c,_0x27cf8b,_0x1def38){return _0x5a0b3c(_0x27cf8b,_0x1def38);},'iCscx':_0x14f847(0xd3)},_0x599451=await getToken();if(!_0x599451)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x1ef8b3=getApiBaseUrl(),_0x1bc8e8=await _0x254aa8['hMIOQ'](fetch,_0x1ef8b3+_0x14f847(0x9d),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x599451,'Content-Type':_0x254aa8['iCscx']},'body':JSON[_0x14f847(0xa3)](_0x4ad860)});if(!_0x1bc8e8['ok']){const _0x29cf22=await _0x1bc8e8[_0x14f847(0xa2)]();throw new Error(_0x14f847(0xda)+_0x29cf22);}return _0x1bc8e8['json']();}export async function listFeatures(_0xf3b198){const _0xc79581=_0x34d1,_0xde3172={'QvYQm':function(_0x31788d){return _0x31788d();},'SbTcT':_0xc79581(0xde),'xwczD':function(_0x5990b1){return _0x5990b1();},'ZpkZJ':_0xc79581(0xd7),'CSwSu':'limit','ddYpu':_0xc79581(0xd0),'YDzpe':_0xc79581(0xd1),'nyuAL':_0xc79581(0xa1),'RmkQP':'GET'},_0x4285b5=await _0xde3172[_0xc79581(0xc8)](getToken);if(!_0x4285b5)throw new Error(_0xde3172['SbTcT']);const _0x69b3d3=_0xde3172['xwczD'](getApiBaseUrl),_0x33f13f=new URLSearchParams();if(_0xf3b198?.[_0xc79581(0xd7)])_0x33f13f['set'](_0xde3172[_0xc79581(0xb8)],_0xf3b198[_0xc79581(0xd7)]);if(_0xf3b198?.[_0xc79581(0xa7)])_0x33f13f['set'](_0xc79581(0xa7),_0xf3b198['gitBranch']);if(_0xf3b198?.[_0xc79581(0xca)])_0x33f13f[_0xc79581(0xb3)](_0xde3172['CSwSu'],_0xf3b198[_0xc79581(0xca)]['toString']());if(_0xf3b198?.[_0xc79581(0xd0)])_0x33f13f[_0xc79581(0xb3)](_0xde3172[_0xc79581(0xce)],_0xf3b198[_0xc79581(0xd0)][_0xc79581(0x9e)]());if(_0xf3b198?.[_0xc79581(0xd1)])_0x33f13f['set'](_0xde3172[_0xc79581(0xad)],_0xde3172['nyuAL']);const _0x356664=_0x69b3d3+'/api/v1/mcp/features'+(_0x33f13f[_0xc79581(0x9e)]()?'?'+_0x33f13f['toString']():''),_0x21f86e=await fetch(_0x356664,{'method':_0xde3172['RmkQP'],'headers':{'Authorization':_0xc79581(0xd9)+_0x4285b5}});if(!_0x21f86e['ok']){const _0x42e805=await _0x21f86e[_0xc79581(0xa2)]();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x42e805);}return _0x21f86e['json']();}export async function getFeature(_0x40e797){const _0x222529=_0x34d1,_0x373b1e={'UaVmN':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]'},_0x16da8a=await getToken();if(!_0x16da8a)throw new Error(_0x373b1e[_0x222529(0xd5)]);const _0xbcc205=getApiBaseUrl(),_0x7fc40=await fetch(_0xbcc205+'/api/v1/mcp/features/'+_0x40e797,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x16da8a}});if(!_0x7fc40['ok']){const _0x4b5900=await _0x7fc40[_0x222529(0xa2)]();throw new Error(_0x222529(0x98)+_0x4b5900);}return _0x7fc40['json']();}export async function updateFeature(_0x43eba5,_0x36360a){const _0x4b436e=_0x34d1,_0x57f1a4={'mtfyD':function(_0x4274f0){return _0x4274f0();},'HzIxp':function(_0x4b8ea5,_0x2b0e8a,_0x5101a4){return _0x4b8ea5(_0x2b0e8a,_0x5101a4);}},_0x55deea=await _0x57f1a4['mtfyD'](getToken);if(!_0x55deea)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2bc55d=_0x57f1a4['mtfyD'](getApiBaseUrl),_0x38c177=await _0x57f1a4['HzIxp'](fetch,_0x2bc55d+'/api/v1/mcp/features/'+_0x43eba5,{'method':_0x4b436e(0xc7),'headers':{'Authorization':'Bearer\x20'+_0x55deea,'Content-Type':'application/json'},'body':JSON[_0x4b436e(0xa3)](_0x36360a)});if(!_0x38c177['ok']){const _0xde69fe=await _0x38c177[_0x4b436e(0xa2)]();throw new Error('Failed\x20to\x20update\x20feature\x20review:\x20'+_0xde69fe);}return _0x38c177['json']();}export async function createChecklistItem(_0x10649c,_0x2a0bd0,_0x4e764c){const _0x1b5089=_0x34d1,_0x43964e={'FNUlj':function(_0x23e9ff){return _0x23e9ff();},'rzHmf':_0x1b5089(0xde),'GbJOH':function(_0x10e0e5,_0x39038c,_0x42978e){return _0x10e0e5(_0x39038c,_0x42978e);},'AnyqS':'POST','MoTIc':'application/json'},_0x497d44=await _0x43964e[_0x1b5089(0x9b)](getToken);if(!_0x497d44)throw new Error(_0x43964e['rzHmf']);const _0x49cf03=getApiBaseUrl(),_0x36ac34=await _0x43964e['GbJOH'](fetch,_0x49cf03+_0x1b5089(0x97)+_0x10649c+'/checklist',{'method':_0x43964e['AnyqS'],'headers':{'Authorization':_0x1b5089(0xd9)+_0x497d44,'Content-Type':_0x43964e['MoTIc']},'body':JSON['stringify']({'description':_0x2a0bd0,'position':_0x4e764c})});if(!_0x36ac34['ok']){const _0x3dd051=await _0x36ac34['text']();throw new Error('Failed\x20to\x20create\x20scenario:\x20'+_0x3dd051);}return _0x36ac34[_0x1b5089(0xd4)]();}export async function updateChecklistItem(_0x5bc30a,_0x45bad7,_0x1ca87e){const _0x1ae1ee=_0x34d1,_0x2cb293={'jykMD':function(_0x206793){return _0x206793();},'NqbJS':_0x1ae1ee(0xcd)};return withRetry(async()=>{const _0x19a00b=_0x1ae1ee,_0x4c2855=await getToken();if(!_0x4c2855)throw new Error(_0x19a00b(0xde));const _0x3f8418=_0x2cb293[_0x19a00b(0x9f)](getApiBaseUrl),_0x3f3684=await fetch(_0x3f8418+'/api/v1/mcp/features/'+_0x5bc30a+_0x19a00b(0xcb)+_0x45bad7,{'method':'PATCH','headers':{'Authorization':_0x19a00b(0xd9)+_0x4c2855,'Content-Type':_0x19a00b(0xd3)},'body':JSON[_0x19a00b(0xa3)](_0x1ca87e)});if(!_0x3f3684['ok']){const _0x5da59a=await _0x3f3684[_0x19a00b(0xa2)]();throw new Error(_0x19a00b(0xc0)+_0x5da59a);}return _0x3f3684[_0x19a00b(0xd4)]();},{'label':_0x2cb293['NqbJS']});}export async function getFeatureReport(_0x17ad95){const _0x5c39ad=_0x34d1,_0x420420={'sBuEN':_0x5c39ad(0xde),'UAdtM':function(_0x4d38f4,_0x53a1e2,_0x368ddf){return _0x4d38f4(_0x53a1e2,_0x368ddf);}},_0x5eef95=await getToken();if(!_0x5eef95)throw new Error(_0x420420[_0x5c39ad(0xb7)]);const _0x197fb7=getApiBaseUrl(),_0x1a8649=await _0x420420[_0x5c39ad(0xe1)](fetch,_0x197fb7+'/api/v1/mcp/features/'+_0x17ad95+_0x5c39ad(0xa0),{'method':_0x5c39ad(0xb9),'headers':{'Authorization':_0x5c39ad(0xd9)+_0x5eef95}});if(!_0x1a8649['ok']){const _0x518bf2=await _0x1a8649[_0x5c39ad(0xa2)]();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x518bf2);}return _0x1a8649['json']();}export async function getFeatureReportMarkdown(_0x22e38e,_0x226e7f){const _0x4dae7f=_0x34d1,_0x28fd8c={'hzsMx':function(_0x596ea9){return _0x596ea9();},'Wpmhj':function(_0x20469a,_0x554b98){return _0x20469a(_0x554b98);},'YYeML':_0x4dae7f(0xa4),'HbzFF':'sessionId','TnTNq':function(_0x25e801,_0x34bdf5,_0x1910a8){return _0x25e801(_0x34bdf5,_0x1910a8);}},_0x8d2bc3=await _0x28fd8c[_0x4dae7f(0xd8)](getToken);if(!_0x8d2bc3)throw new Error(_0x4dae7f(0xde));const _0x14912c=getApiBaseUrl(),_0x4526ff=new URLSearchParams(),_0x2587b0=(_0x226e7f?.[_0x4dae7f(0xa4)]?.['length']??0x0)>0x0,_0x552e4a=_0x28fd8c['Wpmhj'](Boolean,_0x226e7f?.[_0x4dae7f(0xc9)]);_0x2587b0&&_0x226e7f?.[_0x4dae7f(0xa4)]&&_0x4526ff['set'](_0x28fd8c[_0x4dae7f(0xb2)],_0x226e7f['itemIds'][_0x4dae7f(0xcc)](','));_0x552e4a&&_0x226e7f?.['sessionId']&&_0x4526ff['set'](_0x28fd8c['HbzFF'],_0x226e7f['sessionId']);!_0x2587b0&&!_0x552e4a&&_0x226e7f?.['style']&&_0x4526ff[_0x4dae7f(0xb3)]('style',_0x226e7f['style']);const _0x5456a6=_0x14912c+_0x4dae7f(0x97)+_0x22e38e+_0x4dae7f(0xac),_0xf1e9ed=''+_0x5456a6+(_0x4526ff[_0x4dae7f(0x9e)]()?'?'+_0x4526ff[_0x4dae7f(0x9e)]():''),_0x561134=await _0x28fd8c[_0x4dae7f(0xb6)](fetch,_0xf1e9ed,{'method':_0x4dae7f(0xb9),'headers':{'Authorization':_0x4dae7f(0xd9)+_0x8d2bc3}});if(!_0x561134['ok']){const _0x29a6d=await _0x561134['text']();throw new Error(_0x4dae7f(0xb5)+_0x29a6d);}return _0x561134[_0x4dae7f(0xa2)]();}function _0x34d1(_0x30f0ae,_0x40789d){_0x30f0ae=_0x30f0ae-0x96;const _0x3a247b=_0x3a24();let _0x34d1e1=_0x3a247b[_0x30f0ae];return _0x34d1e1;}export async function listFeatureSessions(_0x70c1ad){const _0xc0744a=_0x34d1,_0x2bd992={'HZEAR':function(_0x5a35a4){return _0x5a35a4();},'wGXNu':function(_0x1af67e){return _0x1af67e();},'nzoGY':function(_0x32c1c5,_0x268887,_0x268a01){return _0x32c1c5(_0x268887,_0x268a01);}},_0x2d7717=await _0x2bd992[_0xc0744a(0xa8)](getToken);if(!_0x2d7717)throw new Error(_0xc0744a(0xde));const _0x29e8a5=_0x2bd992['wGXNu'](getApiBaseUrl),_0x360a71=await _0x2bd992[_0xc0744a(0xc6)](fetch,_0x29e8a5+'/api/v1/mcp/features/'+_0x70c1ad+_0xc0744a(0xdc),{'method':_0xc0744a(0xb9),'headers':{'Authorization':'Bearer\x20'+_0x2d7717}});if(!_0x360a71['ok']){const _0x5ed126=await _0x360a71['text']();throw new Error(_0xc0744a(0xdb)+_0x5ed126);}return _0x360a71['json']();}export async function startSession(_0x1d5a8a,_0xae1c24){const _0xb00346=_0x34d1,_0x5ae116={'GhXKl':function(_0x5ca539){return _0x5ca539();},'qDwuj':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','ifKWu':'POST'},_0xc220cf=await _0x5ae116['GhXKl'](getToken);if(!_0xc220cf)throw new Error(_0x5ae116['qDwuj']);const _0x2f8077=_0x5ae116[_0xb00346(0xd2)](getApiBaseUrl),_0x2be898=await fetch(_0x2f8077+'/api/v1/mcp/features/'+_0x1d5a8a+'/sessions/'+_0xae1c24+_0xb00346(0xbe),{'method':_0x5ae116[_0xb00346(0xc4)],'headers':{'Authorization':_0xb00346(0xd9)+_0xc220cf}});if(!_0x2be898['ok']){const _0x5b443c=await _0x2be898[_0xb00346(0xa2)]();throw new Error(_0xb00346(0xab)+_0x5b443c);}return _0x2be898[_0xb00346(0xd4)]();}function _0x3a24(){const _0x3821f4=['GET','75KEpMRy','1408rHTGxE','/comments/address','10aRKmbI','/start','127047iaJesW','Failed\x20to\x20update\x20scenario:\x20','Failed\x20to\x20get\x20item\x20feedback:\x20','WSYTV','2883429cjIIhy','ifKWu','BYJAD','nzoGY','PATCH','QvYQm','sessionId','limit','/checklist/','join','updateChecklistItem','ddYpu','42788rQjipO','offset','includeDeleted','GhXKl','application/json','json','UaVmN','DDtuH','gitRepoUrl','hzsMx','Bearer\x20','Failed\x20to\x20create\x20feature\x20review:\x20','Failed\x20to\x20list\x20sessions:\x20','/sessions','92328QBvRqJ','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20','uVvrg','UAdtM','cZOMC','2036504lRiviT','/api/v1/mcp/features/','Failed\x20to\x20get\x20feature\x20review:\x20','/feedback','/conclude','FNUlj','/action-items','/api/v1/mcp/features','toString','jykMD','/report','true','text','stringify','itemIds','POST','12cZVVuf','gitBranch','HZEAR','OsQNc','Failed\x20to\x20get\x20action\x20items:\x20','Failed\x20to\x20start\x20session:\x20','/report/markdown','YDzpe','/sessions/','7vaTBAD','503358fzWuch','1318434cQoUqH','YYeML','set','BogeX','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','TnTNq','sBuEN','ZpkZJ'];_0x3a24=function(){return _0x3821f4;};return _0x3a24();}export async function concludeSession(_0x38cb3e,_0x2c3df){const _0x4e18ba=_0x34d1,_0x301dda={'uVvrg':_0x4e18ba(0xa5)},_0x5a819a=await getToken();if(!_0x5a819a)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3a47d0=getApiBaseUrl(),_0x56ea73=await fetch(_0x3a47d0+'/api/v1/mcp/features/'+_0x38cb3e+_0x4e18ba(0xae)+_0x2c3df+_0x4e18ba(0x9a),{'method':_0x301dda[_0x4e18ba(0xe0)],'headers':{'Authorization':'Bearer\x20'+_0x5a819a}});if(!_0x56ea73['ok']){const _0x3b3b54=await _0x56ea73[_0x4e18ba(0xa2)]();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x3b3b54);}return _0x56ea73['json']();}export async function getActionItems(_0x5d3f32){const _0x5341df=_0x34d1,_0x25caaa={'OsQNc':function(_0x7ae5ff){return _0x7ae5ff();},'ysevm':_0x5341df(0xde),'NcFwZ':function(_0x2084fa,_0x3e5af4,_0x57f632){return _0x2084fa(_0x3e5af4,_0x57f632);},'XdUmF':'GET'},_0x36f409=await _0x25caaa[_0x5341df(0xa9)](getToken);if(!_0x36f409)throw new Error(_0x25caaa['ysevm']);const _0x46a162=getApiBaseUrl(),_0x255fec=await _0x25caaa['NcFwZ'](fetch,_0x46a162+'/api/v1/mcp/features/'+_0x5d3f32+_0x5341df(0x9c),{'method':_0x25caaa['XdUmF'],'headers':{'Authorization':'Bearer\x20'+_0x36f409}});if(!_0x255fec['ok']){const _0x51a7d9=await _0x255fec['text']();throw new Error(_0x5341df(0xaa)+_0x51a7d9);}return _0x255fec['json']();}export async function getItemFeedback(_0x20ec14,_0x153924){const _0x3fa139=_0x34d1,_0x1e108={'cZOMC':function(_0x5c8295){return _0x5c8295();},'BYJAD':_0x3fa139(0xde),'ZdxlN':'GET'},_0x53ede6=await _0x1e108[_0x3fa139(0xe2)](getToken);if(!_0x53ede6)throw new Error(_0x1e108[_0x3fa139(0xc5)]);const _0x352e88=getApiBaseUrl(),_0xd2cf59=await fetch(_0x352e88+_0x3fa139(0x97)+_0x20ec14+'/checklist-items/'+_0x153924+_0x3fa139(0x99),{'method':_0x1e108['ZdxlN'],'headers':{'Authorization':_0x3fa139(0xd9)+_0x53ede6}});if(!_0xd2cf59['ok']){const _0x5c59b2=await _0xd2cf59[_0x3fa139(0xa2)]();throw new Error(_0x3fa139(0xc1)+_0x5c59b2);}return _0xd2cf59[_0x3fa139(0xd4)]();}export async function markCommentsAddressed(_0x5ea331,_0x25b07c,_0x39c66a){const _0x31911f=_0x34d1,_0x3b9a2c={'rkpbi':_0x31911f(0xde),'GKWyY':function(_0x570e2a){return _0x570e2a();},'WSYTV':'POST'},_0x46f104=await getToken();if(!_0x46f104)throw new Error(_0x3b9a2c['rkpbi']);const _0x521a68=_0x3b9a2c['GKWyY'](getApiBaseUrl),_0x106966=await fetch(_0x521a68+'/api/v1/mcp/features/'+_0x5ea331+_0x31911f(0xbc),{'method':_0x3b9a2c[_0x31911f(0xc2)],'headers':{'Authorization':'Bearer\x20'+_0x46f104,'Content-Type':'application/json'},'body':JSON['stringify']({'checklistItemId':_0x25b07c,'commentIds':_0x39c66a})});if(!_0x106966['ok']){const _0x20f99b=await _0x106966['text']();throw new Error(_0x31911f(0xdf)+_0x20f99b);}}export async function softDeleteFeature(_0x4f3543){const _0x2a5451=_0x34d1,_0x3233da=await getToken();if(!_0x3233da)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3897a7=getApiBaseUrl(),_0x3079e9=await fetch(_0x3897a7+'/api/v1/mcp/features/'+_0x4f3543,{'method':'DELETE','headers':{'Authorization':_0x2a5451(0xd9)+_0x3233da}});if(!_0x3079e9['ok']){const _0x2dfecf=await _0x3079e9[_0x2a5451(0xa2)]();throw new Error('Failed\x20to\x20delete\x20feature\x20review:\x20'+_0x2dfecf);}}export async function restoreFeature(_0x57359b){const _0x194c7d=_0x34d1,_0x173e60={'DDtuH':_0x194c7d(0xde),'HFaUx':function(_0x40bc08){return _0x40bc08();},'Coduu':function(_0x4a5ce1,_0x2e7a5a,_0x2e951e){return _0x4a5ce1(_0x2e7a5a,_0x2e951e);},'BogeX':'POST'},_0xd34ebd=await getToken();if(!_0xd34ebd)throw new Error(_0x173e60[_0x194c7d(0xd6)]);const _0x13e614=_0x173e60['HFaUx'](getApiBaseUrl),_0x5567ef=await _0x173e60['Coduu'](fetch,_0x13e614+_0x194c7d(0x97)+_0x57359b+'/restore',{'method':_0x173e60[_0x194c7d(0xb4)],'headers':{'Authorization':_0x194c7d(0xd9)+_0xd34ebd}});if(!_0x5567ef['ok']){const _0x967fd6=await _0x5567ef['text']();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x967fd6);}}