@ranger-testing/ranger-cli 2.1.7 → 2.2.0

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 (67) 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/stitchWebmFiles.js +1 -0
  61. package/build/commands/utils/telemetry.js +1 -1
  62. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  63. package/build/commands/utils/userApi.js +1 -1
  64. package/build/commands/utils/version.js +1 -1
  65. package/build/commands/verifyFeature.js +1 -1
  66. package/build/commands/verifyInBrowser.js +1 -1
  67. package/package.json +1 -1
@@ -1 +1 @@
1
- function _0x3e2c(){const _0x44f9f8=['129613jYfMRA','settings.json','59035cPSRry','Config\x20not\x20found\x20at\x20','28EQMtXH','9258BoghRO','Profile\x20\x22','24MCncDc','924372qiRVMG','465262rYsrqY','90564IaZUhz','90eTxbuw','xHfWG','494uSetLA','12FHgLak','687356VHKYAF','6rvhDtb'];_0x3e2c=function(){return _0x44f9f8;};return _0x3e2c();}(function(_0x50fec6,_0x260004){const _0x1bbbe8=_0x3156,_0x34175e=_0x50fec6();while(!![]){try{const _0x1945c7=parseInt(_0x1bbbe8(0x185))/0x1*(parseInt(_0x1bbbe8(0x184))/0x2)+parseInt(_0x1bbbe8(0x17f))/0x3*(parseInt(_0x1bbbe8(0x17e))/0x4)+parseInt(_0x1bbbe8(0x182))/0x5*(-parseInt(_0x1bbbe8(0x18e))/0x6)+-parseInt(_0x1bbbe8(0x189))/0x7*(parseInt(_0x1bbbe8(0x187))/0x8)+parseInt(_0x1bbbe8(0x188))/0x9+parseInt(_0x1bbbe8(0x18b))/0xa*(parseInt(_0x1bbbe8(0x180))/0xb)+parseInt(_0x1bbbe8(0x18a))/0xc*(-parseInt(_0x1bbbe8(0x18d))/0xd);if(_0x1945c7===_0x260004)break;else _0x34175e['push'](_0x34175e['shift']());}catch(_0xe800e0){_0x34175e['push'](_0x34175e['shift']());}}}(_0x3e2c,0x2a0d7));import{join}from'path';import{existsSync}from'fs';function _0x3156(_0x5d9224,_0x206437){_0x5d9224=_0x5d9224-0x17e;const _0x3e2ccf=_0x3e2c();let _0x3156b3=_0x3e2ccf[_0x5d9224];return _0x3156b3;}import{getEnvDir}from'./utils/settings.js';import{writeActiveProfileName}from'./utils/activeProfile.js';export async function useEnv(_0x5759d0){const _0x58a39c=_0x3156,_0x5734ac={'mBygv':function(_0x710aa7,_0x180146,_0x40dd40){return _0x710aa7(_0x180146,_0x40dd40);},'xHfWG':function(_0x2f073b,_0x1234f9){return _0x2f073b(_0x1234f9);}},_0x19bfc1=getEnvDir(_0x5759d0),_0x56a0dd=_0x5734ac['mBygv'](join,_0x19bfc1,_0x58a39c(0x181));if(!_0x5734ac[_0x58a39c(0x18c)](existsSync,_0x19bfc1))throw new Error(_0x58a39c(0x186)+_0x5759d0+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x5759d0);if(!_0x5734ac[_0x58a39c(0x18c)](existsSync,_0x56a0dd))throw new Error(_0x58a39c(0x183)+_0x56a0dd+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x5759d0);await writeActiveProfileName(_0x5759d0),console['log']('\x0a✓\x20Now\x20using\x20profile\x20\x22'+_0x5759d0+'\x22');}
1
+ (function(_0x22edf2,_0x718c9b){const _0x58a89b=_0xf9df,_0x50bcd7=_0x22edf2();while(!![]){try{const _0x43c619=-parseInt(_0x58a89b(0xce))/0x1+-parseInt(_0x58a89b(0xd3))/0x2+-parseInt(_0x58a89b(0xc7))/0x3+-parseInt(_0x58a89b(0xd2))/0x4*(parseInt(_0x58a89b(0xcb))/0x5)+-parseInt(_0x58a89b(0xd1))/0x6*(parseInt(_0x58a89b(0xd0))/0x7)+-parseInt(_0x58a89b(0xcf))/0x8+parseInt(_0x58a89b(0xca))/0x9*(parseInt(_0x58a89b(0xc8))/0xa);if(_0x43c619===_0x718c9b)break;else _0x50bcd7['push'](_0x50bcd7['shift']());}catch(_0x429106){_0x50bcd7['push'](_0x50bcd7['shift']());}}}(_0x4e33,0x4f0b2));import{join}from'path';import{existsSync}from'fs';import{getEnvDir}from'./utils/settings.js';function _0xf9df(_0x55faec,_0x3539b0){_0x55faec=_0x55faec-0xc7;const _0x4e334d=_0x4e33();let _0xf9df40=_0x4e334d[_0x55faec];return _0xf9df40;}function _0x4e33(){const _0x3390cb=['settings.json','299365OrFFLo','1646000GccrHJ','159096QrjNmy','66OcyhSk','9064NPUZVy','525482yhzEas','1657980EWQCFQ','26500OblQfy','\x0a✓\x20Now\x20using\x20profile\x20\x22','6849EevIYk','270SCmElj','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'];_0x4e33=function(){return _0x3390cb;};return _0x4e33();}import{writeActiveProfileName}from'./utils/activeProfile.js';export async function useEnv(_0x36fb00){const _0x5f15c8=_0xf9df,_0x55b1de={'oRcfy':_0x5f15c8(0xcd),'hZhNy':function(_0x32fc51,_0x3619e7){return _0x32fc51(_0x3619e7);}},_0x54f29f=getEnvDir(_0x36fb00),_0x261b4c=join(_0x54f29f,_0x55b1de['oRcfy']);if(!_0x55b1de['hZhNy'](existsSync,_0x54f29f))throw new Error('Profile\x20\x22'+_0x36fb00+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x36fb00);if(!_0x55b1de['hZhNy'](existsSync,_0x261b4c))throw new Error('Config\x20not\x20found\x20at\x20'+_0x261b4c+_0x5f15c8(0xcc)+_0x36fb00);await writeActiveProfileName(_0x36fb00),console['log'](_0x5f15c8(0xc9)+_0x36fb00+'\x22');}
@@ -1 +1 @@
1
- const _0x23965a=_0x16d9;(function(_0x25243b,_0x458a7e){const _0x4eb2aa=_0x16d9,_0x383da4=_0x25243b();while(!![]){try{const _0x88bb0a=parseInt(_0x4eb2aa(0x86))/0x1*(parseInt(_0x4eb2aa(0x97))/0x2)+parseInt(_0x4eb2aa(0x87))/0x3+parseInt(_0x4eb2aa(0x92))/0x4*(parseInt(_0x4eb2aa(0x8f))/0x5)+parseInt(_0x4eb2aa(0x93))/0x6*(-parseInt(_0x4eb2aa(0x8e))/0x7)+parseInt(_0x4eb2aa(0x8a))/0x8+-parseInt(_0x4eb2aa(0x8d))/0x9+-parseInt(_0x4eb2aa(0x90))/0xa;if(_0x88bb0a===_0x458a7e)break;else _0x383da4['push'](_0x383da4['shift']());}catch(_0x4144f4){_0x383da4['push'](_0x383da4['shift']());}}}(_0x187c,0x97178));import{existsSync}from'fs';import{mkdir,readFile,rename,unlink,writeFile}from'fs/promises';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';const ACTIVE_PROFILE_FILE=_0x23965a(0x88),LEGACY_ACTIVE_ENV_FILE='active-env.txt';function _0x16d9(_0x1621db,_0x268d7f){_0x1621db=_0x1621db-0x86;const _0x187c64=_0x187c();let _0x16d967=_0x187c64[_0x1621db];return _0x16d967;}function getActiveProfilePath(){const _0xa4b5ab={'AZvYa':function(_0x30b0fd){return _0x30b0fd();}};return join(_0xa4b5ab['AZvYa'](getRangerDir),ACTIVE_PROFILE_FILE);}function getLegacyActiveEnvPath(){const _0x51769d=_0x23965a,_0x51d3c3={'UvYzu':function(_0x16dd6a){return _0x16dd6a();}};return join(_0x51d3c3[_0x51769d(0x95)](getRangerDir),LEGACY_ACTIVE_ENV_FILE);}async function migrateLegacyActiveEnv(){const _0x2740ab=_0x23965a,_0x4d1091={'joltn':function(_0x1029f0){return _0x1029f0();},'ZOsDp':function(_0xdca0ef,_0x191ac3){return _0xdca0ef(_0x191ac3);},'bvVxr':_0x2740ab(0x8b),'zJhsa':function(_0x51d132,_0x5184c2,_0x2b4d70){return _0x51d132(_0x5184c2,_0x2b4d70);},'qZeie':function(_0x8d9958,_0x1d3e1b,_0x442bbd,_0x1ed588){return _0x8d9958(_0x1d3e1b,_0x442bbd,_0x1ed588);}},_0x22c34f=_0x4d1091['joltn'](getLegacyActiveEnvPath);if(!_0x4d1091['ZOsDp'](existsSync,_0x22c34f))return null;let _0x20e0a3=null;try{_0x20e0a3=(await readFile(_0x22c34f,_0x4d1091[_0x2740ab(0x98)]))[_0x2740ab(0x91)]()||null;}catch{_0x20e0a3=null;}if(!_0x20e0a3)return null;const _0x57a275=getActiveProfilePath();try{await rename(_0x22c34f,_0x57a275);}catch{try{const _0x3422b3=_0x4d1091['joltn'](getRangerDir);await _0x4d1091[_0x2740ab(0x94)](mkdir,_0x3422b3,{'recursive':!![]}),await _0x4d1091['qZeie'](writeFile,_0x57a275,_0x20e0a3,_0x4d1091['bvVxr']),await _0x4d1091[_0x2740ab(0x96)](unlink,_0x22c34f);}catch{}}return _0x20e0a3;}export async function readActiveProfileName(){const _0x54cd8e=_0x23965a,_0x322d12={'DCXWB':function(_0x162a5e){return _0x162a5e();},'hAAEy':function(_0x1568be,_0x39b124){return _0x1568be(_0x39b124);}},_0x7b87a3=_0x322d12['DCXWB'](getActiveProfilePath);if(_0x322d12['hAAEy'](existsSync,_0x7b87a3))try{return(await readFile(_0x7b87a3,_0x54cd8e(0x8b)))[_0x54cd8e(0x91)]()||null;}catch{return null;}return await _0x322d12[_0x54cd8e(0x89)](migrateLegacyActiveEnv);}export async function writeActiveProfileName(_0xff2dfe){const _0x3fd53c=_0x23965a,_0x225095={'fAxXg':function(_0x403dc5){return _0x403dc5();},'qNdDJ':_0x3fd53c(0x8b),'XbyPe':function(_0x20043e){return _0x20043e();},'kLmcn':function(_0x4e31ad,_0x27e4a0){return _0x4e31ad(_0x27e4a0);}},_0x5284a4=_0x225095[_0x3fd53c(0x8c)](getRangerDir);await mkdir(_0x5284a4,{'recursive':!![]});const _0x96f22f=getActiveProfilePath();await writeFile(_0x96f22f,_0xff2dfe,_0x225095['qNdDJ']);const _0x7fc3e=_0x225095['XbyPe'](getLegacyActiveEnvPath);if(_0x225095[_0x3fd53c(0x99)](existsSync,_0x7fc3e))try{await unlink(_0x7fc3e);}catch{}}export async function migrateActiveProfileFile(){const _0x365a51={'GdQnB':function(_0x304536){return _0x304536();}},_0x315c63=await _0x365a51['GdQnB'](migrateLegacyActiveEnv);return _0x315c63!==null;}function _0x187c(){const _0x4d626e=['3772864tChEKA','utf-8','fAxXg','4210596fJVgbT','4837pRSPdI','1606210sZtAmm','954620AvfvOB','trim','4kUylEP','7494VAUHli','zJhsa','UvYzu','ZOsDp','19048JGJTnJ','bvVxr','kLmcn','110qsdhfB','614241tGXpWS','active-profile.txt','DCXWB'];_0x187c=function(){return _0x4d626e;};return _0x187c();}
1
+ (function(_0x4ec012,_0x2d8b94){const _0x27d4e7=_0x4cfa,_0x1298bb=_0x4ec012();while(!![]){try{const _0x77965d=parseInt(_0x27d4e7(0xaa))/0x1*(parseInt(_0x27d4e7(0xb0))/0x2)+parseInt(_0x27d4e7(0x9e))/0x3*(-parseInt(_0x27d4e7(0xa6))/0x4)+parseInt(_0x27d4e7(0xa8))/0x5*(-parseInt(_0x27d4e7(0xa1))/0x6)+parseInt(_0x27d4e7(0xaf))/0x7*(-parseInt(_0x27d4e7(0x9d))/0x8)+parseInt(_0x27d4e7(0xae))/0x9*(-parseInt(_0x27d4e7(0xad))/0xa)+-parseInt(_0x27d4e7(0xb2))/0xb+-parseInt(_0x27d4e7(0x9c))/0xc*(-parseInt(_0x27d4e7(0xac))/0xd);if(_0x77965d===_0x2d8b94)break;else _0x1298bb['push'](_0x1298bb['shift']());}catch(_0x186b19){_0x1298bb['push'](_0x1298bb['shift']());}}}(_0x4fb6,0x1da31));import{existsSync}from'fs';import{mkdir,readFile,rename,unlink,writeFile}from'fs/promises';function _0x4fb6(){const _0x16759b=['trim','11616CgyRQM','vPXAz','79356bIJvbl','8Nlvmot','9bLgLQu','wxRwQ','QMtSy','754302LWgppE','ccKCT','uYMnA','PujHC','ZFaUf','27868PwDTgB','hWprg','5YFmAvi','OGxrU','7FZzNey','utf-8','377sCIdJO','90710btzOUp','108jXmpas','173033eLCoGL','60246LKKoKz'];_0x4fb6=function(){return _0x16759b;};return _0x4fb6();}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x4cfa(_0x5eafa8,_0x118cae){_0x5eafa8=_0x5eafa8-0x9b;const _0x4fb644=_0x4fb6();let _0x4cfa22=_0x4fb644[_0x5eafa8];return _0x4cfa22;}const ACTIVE_PROFILE_FILE='active-profile.txt',LEGACY_ACTIVE_ENV_FILE='active-env.txt';function getActiveProfilePath(){const _0x119ace={'frJmA':function(_0x51af01,_0x1385fb,_0x250382){return _0x51af01(_0x1385fb,_0x250382);}};return _0x119ace['frJmA'](join,getRangerDir(),ACTIVE_PROFILE_FILE);}function getLegacyActiveEnvPath(){const _0x50313c=_0x4cfa,_0x421297={'nNeQg':function(_0x4b3704,_0x4de53c,_0x11a944){return _0x4b3704(_0x4de53c,_0x11a944);},'ccKCT':function(_0x5984df){return _0x5984df();}};return _0x421297['nNeQg'](join,_0x421297[_0x50313c(0xa2)](getRangerDir),LEGACY_ACTIVE_ENV_FILE);}async function migrateLegacyActiveEnv(){const _0x43b954=_0x4cfa,_0x423e31={'QMtSy':function(_0x5bd71c){return _0x5bd71c();},'hWprg':function(_0x23ccf5,_0x25882a){return _0x23ccf5(_0x25882a);},'OsSKv':function(_0x1433c5,_0x442868,_0x11f764){return _0x1433c5(_0x442868,_0x11f764);},'lgfBe':function(_0x49e78e,_0x5514b6,_0x581d70){return _0x49e78e(_0x5514b6,_0x581d70);},'OuxSs':function(_0x1a85b3,_0x56cf2a,_0x477847,_0x457ae5){return _0x1a85b3(_0x56cf2a,_0x477847,_0x457ae5);}},_0x8cb164=_0x423e31['QMtSy'](getLegacyActiveEnvPath);if(!_0x423e31[_0x43b954(0xa7)](existsSync,_0x8cb164))return null;let _0x3ed7f3=null;try{_0x3ed7f3=(await _0x423e31['OsSKv'](readFile,_0x8cb164,_0x43b954(0xab)))[_0x43b954(0xb1)]()||null;}catch{_0x3ed7f3=null;}if(!_0x3ed7f3)return null;const _0x37938a=_0x423e31[_0x43b954(0xa0)](getActiveProfilePath);try{await _0x423e31['lgfBe'](rename,_0x8cb164,_0x37938a);}catch{try{const _0x1eaa56=getRangerDir();await _0x423e31['lgfBe'](mkdir,_0x1eaa56,{'recursive':!![]}),await _0x423e31['OuxSs'](writeFile,_0x37938a,_0x3ed7f3,_0x43b954(0xab)),await unlink(_0x8cb164);}catch{}}return _0x3ed7f3;}export async function readActiveProfileName(){const _0x528976=_0x4cfa,_0x288daf={'PujHC':function(_0x2a7903){return _0x2a7903();},'wxRwQ':function(_0x591ac2,_0xf624e2){return _0x591ac2(_0xf624e2);},'uYMnA':'utf-8'},_0x4dc5a8=_0x288daf['PujHC'](getActiveProfilePath);if(_0x288daf[_0x528976(0x9f)](existsSync,_0x4dc5a8))try{return(await readFile(_0x4dc5a8,_0x288daf[_0x528976(0xa3)]))['trim']()||null;}catch{return null;}return await _0x288daf[_0x528976(0xa4)](migrateLegacyActiveEnv);}export async function writeActiveProfileName(_0x3462e8){const _0x5e15d8=_0x4cfa,_0x56ff47={'ozJaJ':function(_0x55ee05){return _0x55ee05();},'OGxrU':function(_0x3e336b,_0x282619,_0x34daa9){return _0x3e336b(_0x282619,_0x34daa9);},'vPXAz':'utf-8','ZFaUf':function(_0x5f2285,_0x267d26){return _0x5f2285(_0x267d26);}},_0x10e156=_0x56ff47['ozJaJ'](getRangerDir);await _0x56ff47[_0x5e15d8(0xa9)](mkdir,_0x10e156,{'recursive':!![]});const _0x1d02dc=getActiveProfilePath();await writeFile(_0x1d02dc,_0x3462e8,_0x56ff47[_0x5e15d8(0x9b)]);const _0x397d13=getLegacyActiveEnvPath();if(_0x56ff47[_0x5e15d8(0xa5)](existsSync,_0x397d13))try{await unlink(_0x397d13);}catch{}}export async function migrateActiveProfileFile(){const _0x47a2a0={'qwPOu':function(_0x289cbb,_0x2d5b27){return _0x289cbb!==_0x2d5b27;}},_0x1688f9=await migrateLegacyActiveEnv();return _0x47a2a0['qwPOu'](_0x1688f9,null);}
@@ -1 +1 @@
1
- (function(_0x323f0d,_0x5a9457){const _0x26ae02=_0x5c25,_0x7729f1=_0x323f0d();while(!![]){try{const _0x30e541=parseInt(_0x26ae02(0x116))/0x1*(-parseInt(_0x26ae02(0x10b))/0x2)+-parseInt(_0x26ae02(0xe4))/0x3+parseInt(_0x26ae02(0x101))/0x4*(parseInt(_0x26ae02(0xe7))/0x5)+-parseInt(_0x26ae02(0x108))/0x6+-parseInt(_0x26ae02(0xf1))/0x7*(-parseInt(_0x26ae02(0x113))/0x8)+parseInt(_0x26ae02(0xff))/0x9+parseInt(_0x26ae02(0x121))/0xa;if(_0x30e541===_0x5a9457)break;else _0x7729f1['push'](_0x7729f1['shift']());}catch(_0x29de49){_0x7729f1['push'](_0x7729f1['shift']());}}}(_0x4d6c,0xe880d));const _0x167fe4=(function(){const _0x2619e4=_0x5c25,_0x50cdcb={'bzPLi':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','dBNFF':function(_0x3ba206,_0x1d69d9){return _0x3ba206===_0x1d69d9;},'CqZDi':_0x2619e4(0xdf),'vTfsA':function(_0x4776cb,_0x3a3f08){return _0x4776cb!==_0x3a3f08;},'ImsEa':_0x2619e4(0x11f),'EHMGm':'RZaeV'};let _0x42f620=!![];return function(_0x28c1f2,_0x239ecb){const _0x1cfb48=_0x2619e4,_0x44757f={'Yaqot':function(_0x57ebd0,_0x4823de,_0x17d82d,_0x3ba2b0){return _0x57ebd0(_0x4823de,_0x17d82d,_0x3ba2b0);},'emqoj':_0x50cdcb['bzPLi'],'jTdgC':function(_0x4cf522,_0x318ece){const _0x5ef61f=_0x5c25;return _0x50cdcb[_0x5ef61f(0xdc)](_0x4cf522,_0x318ece);},'sMUwm':_0x50cdcb[_0x1cfb48(0x112)],'nsPBp':_0x1cfb48(0x12d)};if(_0x50cdcb[_0x1cfb48(0x105)](_0x50cdcb[_0x1cfb48(0xe5)],_0x50cdcb[_0x1cfb48(0x11c)])){const _0xd32443=_0x42f620?function(){const _0x3b4945=_0x1cfb48,_0x1d5dbc={'FHLMn':function(_0xa50f26,_0xd1acd1,_0x435055,_0x1cf30a){return _0x44757f['Yaqot'](_0xa50f26,_0xd1acd1,_0x435055,_0x1cf30a);},'Omcij':_0x3b4945(0xfc),'OnMem':_0x44757f[_0x3b4945(0xf0)]};if(_0x44757f[_0x3b4945(0x120)](_0x44757f[_0x3b4945(0xfd)],_0x44757f[_0x3b4945(0xfd)])){if(_0x239ecb){if(_0x3b4945(0xeb)!==_0x44757f[_0x3b4945(0xee)]){const _0x5b0bfd=_0x239ecb[_0x3b4945(0x138)](_0x28c1f2,arguments);return _0x239ecb=null,_0x5b0bfd;}else return _0x1d5dbc[_0x3b4945(0x10d)](_0x290dff,_0x33ab2e,_0x4601be,_0x1d5dbc['Omcij']);}}else throw new _0x54fc36(_0x1d5dbc[_0x3b4945(0xd2)]);}:function(){};return _0x42f620=![],_0xd32443;}else throw new _0x737708(_0x44757f[_0x1cfb48(0xf0)]);};}()),_0x26ec1f=_0x167fe4(this,function(){const _0x4162f6=_0x5c25,_0x32d835={'SGIRz':_0x4162f6(0x103)};return _0x26ec1f[_0x4162f6(0x11b)]()[_0x4162f6(0x13b)](_0x4162f6(0x103))[_0x4162f6(0x11b)]()[_0x4162f6(0x127)](_0x26ec1f)[_0x4162f6(0x13b)](_0x32d835[_0x4162f6(0xfe)]);});_0x26ec1f();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x30d0cf){const _0x4f3be2=_0x5c25,_0x345a17={'sVmKu':_0x4f3be2(0xd8),'qMOeE':function(_0xc169ab,_0x445a0c,_0x405972){return _0xc169ab(_0x445a0c,_0x405972);},'kNMTP':'POST','oTBZT':_0x4f3be2(0x106)},_0x3314a5=await getToken();if(!_0x3314a5)throw new Error(_0x345a17['sVmKu']);const _0x4e6371=getApiBaseUrl(),_0x15a225=await _0x345a17['qMOeE'](fetch,_0x4e6371+'/api/v1/mcp/browser-sessions',{'method':_0x345a17[_0x4f3be2(0x123)],'headers':{'Authorization':_0x4f3be2(0x13e)+_0x3314a5,'Content-Type':_0x345a17['oTBZT']},'body':JSON[_0x4f3be2(0x10c)]({'environmentName':_0x30d0cf?.[_0x4f3be2(0x124)],'settings':_0x30d0cf?.[_0x4f3be2(0x119)],'task':_0x30d0cf?.[_0x4f3be2(0xce)],'url':_0x30d0cf?.[_0x4f3be2(0xea)],'featureId':_0x30d0cf?.[_0x4f3be2(0xec)],'checklistItemId':_0x30d0cf?.[_0x4f3be2(0x130)]})});if(!_0x15a225['ok']){const _0x54a5aa=await _0x15a225[_0x4f3be2(0xf2)]();throw new Error(_0x4f3be2(0xe6)+_0x54a5aa);}return _0x15a225[_0x4f3be2(0x114)]();}export async function updateBrowserSession(_0x341f6b,_0x37736f){const _0x211b69=_0x5c25,_0x3faece={'mPRCw':function(_0x5a794a,_0x1b6177){return _0x5a794a!==_0x1b6177;},'WNoRu':_0x211b69(0xcf),'kxbEM':_0x211b69(0xd8),'sDKUT':function(_0x5ebe29,_0x4375c3,_0x93ab9b){return _0x5ebe29(_0x4375c3,_0x93ab9b);},'cSFgv':_0x211b69(0xed),'mRtfe':_0x211b69(0x106),'bJwvK':'updateBrowserSession'};return withRetry(async()=>{const _0x20ec6a=_0x211b69,_0x52533d=await getToken();if(!_0x52533d){if(_0x3faece[_0x20ec6a(0x12f)](_0x3faece[_0x20ec6a(0xd3)],_0x3faece['WNoRu']))throw new _0x5a8836(_0x20ec6a(0xd8));else throw new Error(_0x3faece[_0x20ec6a(0x12a)]);}const _0x51afca=getApiBaseUrl(),_0x1dbcd6=await _0x3faece['sDKUT'](fetch,_0x51afca+_0x20ec6a(0xe1)+_0x341f6b,{'method':_0x3faece[_0x20ec6a(0xef)],'headers':{'Authorization':'Bearer\x20'+_0x52533d,'Content-Type':_0x3faece[_0x20ec6a(0x111)]},'body':JSON['stringify'](_0x37736f)});if(!_0x1dbcd6['ok']){const _0x569cd5=await _0x1dbcd6[_0x20ec6a(0xf2)]();throw new Error(_0x20ec6a(0xd5)+_0x569cd5);}return _0x1dbcd6['json']();},{'label':_0x3faece[_0x211b69(0x110)]});}export async function getBrowserSession(_0x15c3f1){const _0x5c33a8=_0x5c25,_0x3a0ba5={'JuZsO':_0x5c33a8(0x103),'pQcQW':function(_0x15ebe0){return _0x15ebe0();},'KedLm':_0x5c33a8(0xd8),'JFSsI':function(_0x299ddc,_0x1a3f91,_0x2fd3fa){return _0x299ddc(_0x1a3f91,_0x2fd3fa);},'nBaRy':'GET','SuqkD':'TxHqQ'},_0xd14ce2=await _0x3a0ba5['pQcQW'](getToken);if(!_0xd14ce2)throw new Error(_0x3a0ba5['KedLm']);const _0xfdf0b8=getApiBaseUrl(),_0x159750=await _0x3a0ba5[_0x5c33a8(0xd7)](fetch,_0xfdf0b8+_0x5c33a8(0xe1)+_0x15c3f1,{'method':_0x3a0ba5[_0x5c33a8(0x117)],'headers':{'Authorization':'Bearer\x20'+_0xd14ce2}});if(!_0x159750['ok']){if(_0x3a0ba5[_0x5c33a8(0xe8)]===_0x5c33a8(0x100)){const _0x1b7e32=await _0x159750[_0x5c33a8(0xf2)]();throw new Error(_0x5c33a8(0xfa)+_0x1b7e32);}else return _0x178275[_0x5c33a8(0x11b)]()[_0x5c33a8(0x13b)](IddZnx['JuZsO'])[_0x5c33a8(0x11b)]()[_0x5c33a8(0x127)](_0x4c9934)[_0x5c33a8(0x13b)](IddZnx['JuZsO']);}return _0x159750['json']();}function _0x5c25(_0x33c6c6,_0x14e1b9){_0x33c6c6=_0x33c6c6-0xce;const _0x19c7b2=_0x4d6c();let _0x26ec1f=_0x19c7b2[_0x33c6c6];if(_0x5c25['gBsEeu']===undefined){var _0x167fe4=function(_0x241153){const _0x218e39='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1fa0c6='',_0x159df2='',_0x46ea86=_0x1fa0c6+_0x167fe4;for(let _0x16f1eb=0x0,_0xfbbda7,_0x201ec9,_0x2cf90f=0x0;_0x201ec9=_0x241153['charAt'](_0x2cf90f++);~_0x201ec9&&(_0xfbbda7=_0x16f1eb%0x4?_0xfbbda7*0x40+_0x201ec9:_0x201ec9,_0x16f1eb++%0x4)?_0x1fa0c6+=_0x46ea86['charCodeAt'](_0x2cf90f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0xfbbda7>>(-0x2*_0x16f1eb&0x6)):_0x16f1eb:0x0){_0x201ec9=_0x218e39['indexOf'](_0x201ec9);}for(let _0x15264e=0x0,_0x2f1c8b=_0x1fa0c6['length'];_0x15264e<_0x2f1c8b;_0x15264e++){_0x159df2+='%'+('00'+_0x1fa0c6['charCodeAt'](_0x15264e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x159df2);};_0x5c25['pvwTCD']=_0x167fe4,_0x5c25['miTRAa']={},_0x5c25['gBsEeu']=!![];}const _0x4d6c17=_0x19c7b2[0x0],_0x5c2597=_0x33c6c6+_0x4d6c17,_0x458640=_0x5c25['miTRAa'][_0x5c2597];if(!_0x458640){const _0x18c5a9=function(_0x547621){this['CgmgUI']=_0x547621,this['BgcTor']=[0x1,0x0,0x0],this['cGJWQa']=function(){return'newState';},this['tDSjKo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['BmSezm']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x18c5a9['prototype']['JvgUKi']=function(){const _0xd6919=new RegExp(this['tDSjKo']+this['BmSezm']),_0x17057b=_0xd6919['test'](this['cGJWQa']['toString']())?--this['BgcTor'][0x1]:--this['BgcTor'][0x0];return this['aixOhc'](_0x17057b);},_0x18c5a9['prototype']['aixOhc']=function(_0x2dc22f){if(!Boolean(~_0x2dc22f))return _0x2dc22f;return this['IuqSIg'](this['CgmgUI']);},_0x18c5a9['prototype']['IuqSIg']=function(_0xab77f1){for(let _0x3eba81=0x0,_0x2deba3=this['BgcTor']['length'];_0x3eba81<_0x2deba3;_0x3eba81++){this['BgcTor']['push'](Math['round'](Math['random']())),_0x2deba3=this['BgcTor']['length'];}return _0xab77f1(this['BgcTor'][0x0]);},new _0x18c5a9(_0x5c25)['JvgUKi'](),_0x26ec1f=_0x5c25['pvwTCD'](_0x26ec1f),_0x5c25['miTRAa'][_0x5c2597]=_0x26ec1f;}else _0x26ec1f=_0x458640;return _0x26ec1f;}export async function getUploadUrls(_0x440436,_0x255da3,_0x474f88,_0x2fdbcf){const _0x317eb3=_0x5c25,_0x510bfe={'ziKje':function(_0xf7cc17){return _0xf7cc17();},'vNHxp':function(_0x5d756d){return _0x5d756d();},'PLvmd':_0x317eb3(0x106),'foXHR':function(_0x3c7437,_0x3d0d14){return _0x3c7437!==_0x3d0d14;},'OEbYq':function(_0xf371a3,_0x24be88){return _0xf371a3!==_0x24be88;}},_0x39a6bb=await _0x510bfe[_0x317eb3(0xf3)](getToken);if(!_0x39a6bb)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x137d4c=_0x510bfe[_0x317eb3(0x10f)](getApiBaseUrl),_0x4ea138=await fetch(_0x137d4c+_0x317eb3(0xe1)+_0x440436+_0x317eb3(0xfb),{'method':_0x317eb3(0x12c),'headers':{'Authorization':_0x317eb3(0x13e)+_0x39a6bb,'Content-Type':_0x510bfe[_0x317eb3(0xd0)]},'body':JSON[_0x317eb3(0x10c)]({'filename':_0x255da3,'filetype':_0x474f88,..._0x510bfe[_0x317eb3(0x118)](_0x2fdbcf?.[_0x317eb3(0x107)],undefined)&&{'size':_0x2fdbcf[_0x317eb3(0x107)]},..._0x510bfe['foXHR'](_0x2fdbcf?.[_0x317eb3(0x11d)],undefined)&&{'checksum':_0x2fdbcf[_0x317eb3(0x11d)]},..._0x510bfe[_0x317eb3(0xf9)](_0x2fdbcf?.[_0x317eb3(0x13a)],undefined)&&{'metadata':_0x2fdbcf['metadata']}})});if(!_0x4ea138['ok']){const _0x26b346=await _0x4ea138[_0x317eb3(0xf2)]();throw new Error('Failed\x20to\x20get\x20upload\x20URLs:\x20'+_0x26b346);}return _0x4ea138[_0x317eb3(0x114)]();}export async function uploadFile(_0x5e6f49,_0x163d4e,_0x5a39e5){const _0x4db72a=_0x5c25,_0x39851d={'mSgsS':_0x4db72a(0xd8),'gaofM':function(_0x5513b6,_0x2dc9a2,_0x4f8a6a){return _0x5513b6(_0x2dc9a2,_0x4f8a6a);},'ZAYed':_0x4db72a(0xf7),'rQGmv':function(_0x5d3655,_0x30af64){return _0x5d3655===_0x30af64;}},_0x579456=await _0x39851d['gaofM'](fetch,_0x5e6f49,{'method':_0x39851d[_0x4db72a(0x109)],'headers':{'Content-Type':_0x5a39e5,'Content-Length':_0x163d4e[_0x4db72a(0x10a)]['toString']()},'body':_0x163d4e});if(!_0x579456['ok']){if(_0x39851d['rQGmv']('XeHrx',_0x4db72a(0xd9)))throw new _0x2bc1b1(_0x39851d[_0x4db72a(0x12b)]);else{const _0x41cc62=await _0x579456[_0x4db72a(0xf2)]();throw new Error(_0x4db72a(0xdd)+_0x41cc62);}}}export async function uploadTrace(_0x3424d4,_0x1f0216){const _0x5008df=_0x5c25,_0x54609e={'seSnI':function(_0x561eca,_0xddc8d9,_0x13639a,_0x3272d8){return _0x561eca(_0xddc8d9,_0x13639a,_0x3272d8);}};return _0x54609e[_0x5008df(0xd4)](uploadFile,_0x3424d4,_0x1f0216,_0x5008df(0x137));}export async function uploadConversation(_0x2beed2,_0x56a11e){const _0x115361=_0x5c25,_0x19fba6={'bVcHR':function(_0x309380,_0x3e8e67,_0x4a642d,_0x3f73b7){return _0x309380(_0x3e8e67,_0x4a642d,_0x3f73b7);},'wwnXe':'application/jsonl'};return _0x19fba6['bVcHR'](uploadFile,_0x2beed2,_0x56a11e,_0x19fba6[_0x115361(0x125)]);}export async function uploadScreenshot(_0x409ce3,_0x3a6493){const _0x1e8eb2={'gXkkl':function(_0x100019,_0xc6660b,_0x4657d8,_0x441ef5){return _0x100019(_0xc6660b,_0x4657d8,_0x441ef5);},'HbvXK':'image/png'};return _0x1e8eb2['gXkkl'](uploadFile,_0x409ce3,_0x3a6493,_0x1e8eb2['HbvXK']);}export async function uploadVideo(_0x4ba53d,_0x2cf896){const _0x22f73b=_0x5c25,_0x53f36d={'KaDpv':function(_0x225078,_0x10917e,_0x4871eb,_0x3a20c9){return _0x225078(_0x10917e,_0x4871eb,_0x3a20c9);},'QBJxe':'video/webm'};return _0x53f36d[_0x22f73b(0x13d)](uploadFile,_0x4ba53d,_0x2cf896,_0x53f36d[_0x22f73b(0x115)]);}export function buildTraceViewerUrl(_0x260ac0){const _0x4124a6=_0x5c25,_0x926141={'pKasu':function(_0x573e68,_0x1d9b75){return _0x573e68(_0x1d9b75);}},_0x2993ca=_0x926141[_0x4124a6(0xe2)](encodeURIComponent,_0x260ac0);return'https://trace.playwright.dev/?trace='+_0x2993ca;}export async function getProxySessionToken(){const _0x2039e7=_0x5c25,_0x64b38e={'DgshU':_0x2039e7(0xd8),'MLuvg':function(_0x591101){return _0x591101();},'bvBAf':_0x2039e7(0xde),'PzZqK':function(_0x15cce5,_0x5ec4e4,_0x1882b8){return _0x15cce5(_0x5ec4e4,_0x1882b8);}},_0x2cfb8b=await _0x64b38e[_0x2039e7(0x104)](getToken);if(!_0x2cfb8b){if(_0x64b38e[_0x2039e7(0xf8)]===_0x2039e7(0x133))throw new _0x535ba9(_0x64b38e[_0x2039e7(0x135)]);else throw new Error(_0x64b38e[_0x2039e7(0x135)]);}const _0x1008c6=_0x64b38e[_0x2039e7(0x104)](getApiBaseUrl),_0x4622b3=await _0x64b38e[_0x2039e7(0x122)](fetch,_0x1008c6+_0x2039e7(0xe0),{'method':_0x2039e7(0x12c),'headers':{'Authorization':_0x2039e7(0x13e)+_0x2cfb8b}});if(!_0x4622b3['ok']){const _0x164802=await _0x4622b3[_0x2039e7(0xf2)]();throw new Error(_0x2039e7(0x10e)+_0x164802);}const _0x34e9ac=await _0x4622b3[_0x2039e7(0x114)]();return _0x34e9ac[_0x2039e7(0x129)];}export function computeChecksum(_0x200d4a){const _0x53ccbd=_0x5c25,_0x57b79c={'olIOF':_0x53ccbd(0x131),'CpsCH':'base64'};return createHash(_0x57b79c['olIOF'])[_0x53ccbd(0xdb)](_0x200d4a)[_0x53ccbd(0xe3)](_0x57b79c[_0x53ccbd(0x126)]);}export async function createVerificationStep(_0x48d211,_0x48f796){const _0x428419=_0x5c25,_0x4a8966={'hPFqt':function(_0x542325){return _0x542325();},'EbFwF':_0x428419(0xd8),'yFfWZ':_0x428419(0x12c)},_0x4e74e0=await _0x4a8966[_0x428419(0xf5)](getToken);if(!_0x4e74e0)throw new Error(_0x4a8966[_0x428419(0x12e)]);const _0x3a2a24=getApiBaseUrl(),_0x9635fe=await fetch(_0x3a2a24+_0x428419(0xe1)+_0x48d211+_0x428419(0xe9),{'method':_0x4a8966[_0x428419(0x136)],'headers':{'Authorization':_0x428419(0x13e)+_0x4e74e0,'Content-Type':_0x428419(0x106)},'body':JSON[_0x428419(0x10c)](_0x48f796)});if(!_0x9635fe['ok']){const _0x40cad0=await _0x9635fe[_0x428419(0xf2)]();throw new Error(_0x428419(0x128)+_0x40cad0);}return _0x9635fe[_0x428419(0x114)]();}export async function createStepAsset(_0x232552,_0x30bba0,_0x42e1a){const _0x1a4b3b=_0x5c25,_0x274dee={'asBtv':function(_0x15c022){return _0x15c022();},'wLklp':function(_0x38372a,_0x3bb72c){return _0x38372a!==_0x3bb72c;},'eZDYw':_0x1a4b3b(0x134),'hcHsW':_0x1a4b3b(0xd8),'esxWp':function(_0x585837,_0x23133e,_0x1417e5){return _0x585837(_0x23133e,_0x1417e5);},'UTNlR':_0x1a4b3b(0x12c)},_0x4b5a01=await _0x274dee[_0x1a4b3b(0xda)](getToken);if(!_0x4b5a01){if(_0x274dee[_0x1a4b3b(0x139)](_0x1a4b3b(0x134),_0x274dee['eZDYw'])){const _0x34cb3d=_0x412109[_0x1a4b3b(0x138)](_0x4978a5,arguments);return _0x405fa3=null,_0x34cb3d;}else throw new Error(_0x274dee['hcHsW']);}const _0xec9ea5=getApiBaseUrl(),_0x589f49=await _0x274dee[_0x1a4b3b(0xd6)](fetch,_0xec9ea5+_0x1a4b3b(0xe1)+_0x232552+'/steps/'+_0x30bba0+_0x1a4b3b(0x13c),{'method':_0x274dee[_0x1a4b3b(0xd1)],'headers':{'Authorization':_0x1a4b3b(0x13e)+_0x4b5a01,'Content-Type':_0x1a4b3b(0x106)},'body':JSON[_0x1a4b3b(0x10c)](_0x42e1a)});if(!_0x589f49['ok']){const _0x21ad85=await _0x589f49[_0x1a4b3b(0xf2)]();throw new Error('Failed\x20to\x20create\x20step\x20asset:\x20'+_0x21ad85);}return _0x589f49[_0x1a4b3b(0x114)]();}export async function updateVerificationStep(_0x108d69,_0x4df7ee,_0x214e7c){const _0x5d86c2=_0x5c25,_0x420981={'TSnmK':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','XVhrL':function(_0x2b545b){return _0x2b545b();},'wuHgo':function(_0x1cd29d,_0x2d614b,_0x46f648){return _0x1cd29d(_0x2d614b,_0x46f648);},'zsfnf':_0x5d86c2(0xed),'nWUBC':_0x5d86c2(0x106)},_0x803355=await getToken();if(!_0x803355)throw new Error(_0x420981[_0x5d86c2(0xf4)]);const _0xef7b04=_0x420981[_0x5d86c2(0xf6)](getApiBaseUrl),_0x162154=await _0x420981[_0x5d86c2(0x132)](fetch,_0xef7b04+'/api/v1/mcp/browser-sessions/'+_0x108d69+_0x5d86c2(0x11a)+_0x4df7ee,{'method':_0x420981['zsfnf'],'headers':{'Authorization':_0x5d86c2(0x13e)+_0x803355,'Content-Type':_0x420981[_0x5d86c2(0x11e)]},'body':JSON[_0x5d86c2(0x10c)](_0x214e7c)});if(!_0x162154['ok']){const _0x2be88d=await _0x162154[_0x5d86c2(0xf2)]();throw new Error(_0x5d86c2(0x102)+_0x2be88d);}}function _0x4d6c(){const _0x362142=['BLDvqKm','yKPiD0y','ALrKz0m','mJu4mtaYntbQBNfRwgi','uhPACuS','A05nvfa','zw52AxjVBM1LBNroyw1L','D3DUwgu','q3bZq0G','y29UC3rYDwn0B3i','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','C2vZC2LVBLrVA2vU','A3HIru0','BvnNC1m','ue9tva','sxL3uNO','rwjgD0y','Bvbsq3C','y2HLy2TSAxn0sxrLBuLK','Bwq1','D3viz28','t1fxuuG','AuLQr1u','rgDZAfu','EuzMv1O','yxbWBgLJyxrPB24VEMLW','yxbWBhK','D0XRBha','Bwv0ywrHDge','C2vHCMnO','l2fZC2v0CW','s2feChy','qMvHCMvYia','DgfZAW','rgrlwum','ueX2Bwq','vvroBfi','t25nzw0','v05VuNu','C2vtBKK','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','zxn4v3a','sKztC0K','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','vurXsee','yxncDhy','DxbKyxrL','zejorKy','rMfPBgvKihrVihvWBg9HzcbMAwXLoIa','AfPUA1K','zufyBu8','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','CeTHC3u','zgLNzxn0','ndyXmJi3nvrIEMDKCG','sw1Zrwe','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','mZiXmdq5mgzkAvHIzq','u3vXA0q','l3n0zxbZ','DxjS','vw1Zy3O','zMvHDhvYzuLK','uefuq0G','BNnqqNa','y1ngz3y','zw1XB2O','mJiXmJK4DgD4sg5P','Dgv4Da','EMLlAMu','vfnUBuS','AfbgCxq','wfzOCKW','ufvu','yNzcqwy','t0vIwxe','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','l3vWBg9Hzc11CMXZ','yxbWBgLJyxrPB24VANnVBMW','C01vD20','u0DjuNO','ntu2mtyYmLbUtNPyBW','vhHiCve','ofjgBw5KCa','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','kcGOlISPkYKRksSK','tuX1DMC','DLrMC0e','yxbWBgLJyxrPB24VANnVBG','C2L6zq','ndyWnJKWoejkq1rLtG','wKfzzwq','BgvUz3rO','mtKZnde4CKvMtLn4','C3rYAw5NAwz5','rKHmtw4','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','DK5iEha','yKP3DKS','Bvj0zMu','q3fArgK','oevyqvD4qG','ANnVBG','uujkEgu','mtnbCfHqrwm','BKjHuNK','zM9ysfi','C2v0DgLUz3m','l3n0zxbZlW','Dg9tDhjPBMC','ruHnr20','y2HLy2TZDw0'];_0x4d6c=function(){return _0x362142;};return _0x4d6c();}
1
+ (function(_0x43b6e6,_0x312b80){const _0x1635aa=_0x549c,_0x5ecc5d=_0x43b6e6();while(!![]){try{const _0x4fa40d=-parseInt(_0x1635aa(0xaf))/0x1*(-parseInt(_0x1635aa(0x94))/0x2)+parseInt(_0x1635aa(0xc7))/0x3*(-parseInt(_0x1635aa(0xd7))/0x4)+-parseInt(_0x1635aa(0x9d))/0x5+-parseInt(_0x1635aa(0xb8))/0x6+-parseInt(_0x1635aa(0xc1))/0x7*(-parseInt(_0x1635aa(0x8f))/0x8)+parseInt(_0x1635aa(0xde))/0x9*(parseInt(_0x1635aa(0xbc))/0xa)+parseInt(_0x1635aa(0xdf))/0xb;if(_0x4fa40d===_0x312b80)break;else _0x5ecc5d['push'](_0x5ecc5d['shift']());}catch(_0x4b9d09){_0x5ecc5d['push'](_0x5ecc5d['shift']());}}}(_0x18ab,0x9340d));const _0x4e5a44=(function(){const _0x1f7909=_0x549c,_0x1d82cf={'ZroTz':function(_0x5c2741,_0x32a4f3){return _0x5c2741!==_0x32a4f3;},'XIxvr':'rIRWS','sVlWe':_0x1f7909(0xc5)};let _0x5e1a63=!![];return function(_0x34618a,_0x38910d){const _0x519457=_0x1f7909,_0x1d961c={'iDAoK':function(_0x8a8529,_0x4c5029){return _0x1d82cf['ZroTz'](_0x8a8529,_0x4c5029);},'ilvxn':_0x1d82cf['XIxvr']};if(_0x1d82cf[_0x519457(0xb5)]!==_0x519457(0xc5))throw new _0x56ec2f(_0x519457(0xc0));else{const _0x51bda8=_0x5e1a63?function(){const _0x239963=_0x519457;if(_0x38910d){if(_0x1d961c[_0x239963(0xb6)](_0x1d961c[_0x239963(0xc9)],_0x1d961c['ilvxn'])){const _0x451036=_0x578eda?function(){if(_0x36448f){const _0x4438c2=_0x565657['apply'](_0xfe22e6,arguments);return _0x4e47a6=null,_0x4438c2;}}:function(){};return _0x2667dd=![],_0x451036;}else{const _0x3caad8=_0x38910d[_0x239963(0xae)](_0x34618a,arguments);return _0x38910d=null,_0x3caad8;}}}:function(){};return _0x5e1a63=![],_0x51bda8;}};}()),_0x7948d8=_0x4e5a44(this,function(){const _0x432fd7=_0x549c;return _0x7948d8[_0x432fd7(0xce)]()[_0x432fd7(0xe0)](_0x432fd7(0xb1))[_0x432fd7(0xce)]()[_0x432fd7(0xc8)](_0x7948d8)[_0x432fd7(0xe0)]('(((.+)+)+)+$');});_0x7948d8();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{createHash}from'crypto';import{withRetry}from'./retry.js';export async function createBrowserSession(_0x5c09bd){const _0x4ae703=_0x549c,_0x28c8a1={'LBKCW':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','rEdVl':function(_0x169b29){return _0x169b29();},'CkmsI':function(_0x5d6ea0,_0x5794ad,_0x12a52d){return _0x5d6ea0(_0x5794ad,_0x12a52d);},'ZIGIU':_0x4ae703(0xeb),'TkFcc':'application/json'},_0x1ecb19=await getToken();if(!_0x1ecb19)throw new Error(_0x28c8a1[_0x4ae703(0xa7)]);const _0x5b67f3=_0x28c8a1['rEdVl'](getApiBaseUrl),_0x5337d3=await _0x28c8a1['CkmsI'](fetch,_0x5b67f3+_0x4ae703(0xdd),{'method':_0x28c8a1[_0x4ae703(0xbe)],'headers':{'Authorization':'Bearer\x20'+_0x1ecb19,'Content-Type':_0x28c8a1[_0x4ae703(0x96)]},'body':JSON[_0x4ae703(0x8b)]({'environmentName':_0x5c09bd?.['environmentName'],'settings':_0x5c09bd?.[_0x4ae703(0xb0)],'task':_0x5c09bd?.[_0x4ae703(0xd8)],'url':_0x5c09bd?.[_0x4ae703(0xa5)],'featureId':_0x5c09bd?.[_0x4ae703(0xd5)],'checklistItemId':_0x5c09bd?.[_0x4ae703(0xd0)]})});if(!_0x5337d3['ok']){const _0x2a5159=await _0x5337d3[_0x4ae703(0xa3)]();throw new Error(_0x4ae703(0xdc)+_0x2a5159);}return _0x5337d3[_0x4ae703(0x93)]();}export async function updateBrowserSession(_0x30600d,_0x3b3d72){const _0x40dc7f=_0x549c,_0x120fd4={'wvjYf':function(_0x4d9c44,_0x5cae16){return _0x4d9c44(_0x5cae16);},'hjpJu':function(_0x1c53e5){return _0x1c53e5();},'cueHD':_0x40dc7f(0xc0),'bcxCo':function(_0x41a6e4){return _0x41a6e4();},'kphrd':_0x40dc7f(0xd3),'bxtaB':function(_0x1bbb53,_0x1b3935){return _0x1bbb53===_0x1b3935;},'gbxvL':_0x40dc7f(0x97),'wjKIP':_0x40dc7f(0xa6)};return withRetry(async()=>{const _0x37e185=_0x40dc7f,_0x462a1f={'qwaAf':function(_0x21fa61,_0xc7d1ef){const _0x3d66b4=_0x549c;return _0x120fd4[_0x3d66b4(0x88)](_0x21fa61,_0xc7d1ef);}},_0x2f48f8=await _0x120fd4[_0x37e185(0xcd)](getToken);if(!_0x2f48f8)throw new Error(_0x120fd4[_0x37e185(0xe8)]);const _0x5219b3=_0x120fd4[_0x37e185(0xe1)](getApiBaseUrl),_0x3b5252=await fetch(_0x5219b3+_0x37e185(0xb7)+_0x30600d,{'method':_0x120fd4[_0x37e185(0xda)],'headers':{'Authorization':_0x37e185(0x87)+_0x2f48f8,'Content-Type':'application/json'},'body':JSON[_0x37e185(0x8b)](_0x3b3d72)});if(!_0x3b5252['ok']){if(_0x120fd4[_0x37e185(0x99)](_0x120fd4[_0x37e185(0x91)],_0x120fd4['gbxvL'])){const _0x517c6f=await _0x3b5252['text']();throw new Error(_0x37e185(0xb3)+_0x517c6f);}else{const _0x3ead0d=_0x462a1f[_0x37e185(0xe3)](_0x211e87,_0x13c066);return _0x37e185(0xdb)+_0x3ead0d;}}return _0x3b5252['json']();},{'label':_0x120fd4[_0x40dc7f(0xe7)]});}export async function getBrowserSession(_0x18dc9e){const _0x255c86=_0x549c,_0x51522f={'BcoGd':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','CUAhZ':function(_0x23bfe4){return _0x23bfe4();},'hdNUv':_0x255c86(0xd6),'jmwKl':function(_0x296b3c,_0x4bd0eb){return _0x296b3c!==_0x4bd0eb;},'ciVlk':'YrSwm'},_0x1af7be=await _0x51522f[_0x255c86(0xc3)](getToken);if(!_0x1af7be)throw new Error(_0x51522f['BcoGd']);const _0x2d3e62=getApiBaseUrl(),_0xf5f51c=await fetch(_0x2d3e62+_0x255c86(0xb7)+_0x18dc9e,{'method':_0x51522f[_0x255c86(0xa8)],'headers':{'Authorization':'Bearer\x20'+_0x1af7be}});if(!_0xf5f51c['ok']){if(_0x51522f[_0x255c86(0xa1)]('TmzOp',_0x51522f[_0x255c86(0x8c)])){const _0x55a69a=await _0xf5f51c['text']();throw new Error(_0x255c86(0xad)+_0x55a69a);}else throw new _0x17743d(_0x51522f['BcoGd']);}return _0xf5f51c[_0x255c86(0x93)]();}export async function getUploadUrls(_0x3f03ff,_0x435dfd,_0x5a7334,_0x3ff6e4){const _0x58b4df=_0x549c,_0x37fc1f={'tXVKf':function(_0x31594e,_0x4fd1e6){return _0x31594e!==_0x4fd1e6;},'MRXGl':_0x58b4df(0xcb),'gZjbS':_0x58b4df(0xc0),'RnfuX':function(_0x9de206){return _0x9de206();},'SMHzc':function(_0xa849bf,_0x1185ef,_0x46be50){return _0xa849bf(_0x1185ef,_0x46be50);},'lRdQS':_0x58b4df(0xeb),'DhqbQ':_0x58b4df(0xa9)},_0x317d96=await getToken();if(!_0x317d96){if(_0x37fc1f['tXVKf'](_0x37fc1f['MRXGl'],_0x37fc1f['MRXGl'])){if(_0x55d2f3){const _0x10ba93=_0x73d202[_0x58b4df(0xae)](_0x329b51,arguments);return _0x2ec6a4=null,_0x10ba93;}}else throw new Error(_0x37fc1f[_0x58b4df(0xcc)]);}const _0x19b473=_0x37fc1f['RnfuX'](getApiBaseUrl),_0x45f6f0=await _0x37fc1f[_0x58b4df(0x98)](fetch,_0x19b473+_0x58b4df(0xb7)+_0x3f03ff+_0x58b4df(0xd9),{'method':_0x37fc1f[_0x58b4df(0xbd)],'headers':{'Authorization':_0x58b4df(0x87)+_0x317d96,'Content-Type':_0x37fc1f[_0x58b4df(0xa2)]},'body':JSON[_0x58b4df(0x8b)]({'filename':_0x435dfd,'filetype':_0x5a7334,..._0x37fc1f[_0x58b4df(0xe2)](_0x3ff6e4?.[_0x58b4df(0x90)],undefined)&&{'size':_0x3ff6e4['size']},..._0x37fc1f[_0x58b4df(0xe2)](_0x3ff6e4?.[_0x58b4df(0xd4)],undefined)&&{'checksum':_0x3ff6e4['checksum']},..._0x3ff6e4?.[_0x58b4df(0xa4)]!==undefined&&{'metadata':_0x3ff6e4[_0x58b4df(0xa4)]}})});if(!_0x45f6f0['ok']){const _0x367601=await _0x45f6f0[_0x58b4df(0xa3)]();throw new Error(_0x58b4df(0x9c)+_0x367601);}return _0x45f6f0[_0x58b4df(0x93)]();}function _0x18ab(){const _0x1c6943=['tfvPrNm','mtiXotbNz1bKvMW','BfjKuvm','wKLhsvu','vg9bBM0','tM8GqvbjihrVA2vUignVBMzPz3vYzwqUifj1BJOGCMfUz2vYihnLDhvWifT0B2TLBL0','n1rJEKXgBq','l2fZC2v0CW','q1vbAfO','rMfPBgvKihrVignYzwf0zsbZDgvWigfZC2v0oIa','sfrLtuC','ww1Yv3G','mJD3AhPju08','y29UC3rYDwn0B3i','AwX2Eg4','B2zgyKK','CLDXrw4','z1PQyLm','AgPWsNu','Dg9tDhjPBMC','BMXsyNe','y2HLy2TSAxn0sxrLBuLK','D1HRqK4','tu1Pv3K','uefuq0G','y2HLy2TZDw0','zMvHDhvYzuLK','r0vu','mty0mtK2y1DqBgPJ','DgfZAW','l3vWBg9Hzc11CMXZ','A3bOCMq','Ahr0Chm6lY90CMfJzs5WBgf5D3jPz2H0lMrLDI8/DhjHy2u9','rMfPBgvKihrVignYzwf0zsbICM93C2vYihnLC3nPB246ia','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCW','nti4m1rgC0DqBa','mtaWmZaZmtDOtKTKs0G','C2vHCMnO','yMn4q28','DfHws2y','CxDHqwy','CgP0D20','ANjIweC','vK1Jz1i','D2Plsva','y3vLseq','CwTKCg4','yuzizvC','ue9tva','Aw1Hz2uVCg5N','l3n0zxbZlW','yxbWBgLJyxrPB24VEMLW','qMvHCMvYia','D3zQwwy','B0TAshm','r25LB0K','C3rYAw5NAwz5','y2LwBgS','ufvu','rMfPBgvKihrVihvWzgf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','mZCXnJi5nK51t2ndDG','C2L6zq','z2j4DKW','sMLcywq','ANnVBG','mNHtq3jXDa','DxbKyxrL','vgTgy2m','C01Sz00','u01iEMm','yNH0yui','uKDbvNK','yMfZzty0','rMfPBgvKihrVigDLDcb1CgXVywqGvvjmCZOG','mZm3nJeXmfPjAeDrDG','Axvyzve','AhDHBhG','rMfPBgvKihrVigDLDcbWCM94EsbZzxnZAw9UihrVA2vUoIa','AM13s2W','rgHXyLe','Dgv4Da','Bwv0ywrHDge','DxjS','DxbKyxrLqNjVD3nLCLnLC3nPB24','tejlq1C','Agrovxy','yxbWBgLJyxrPB24VANnVBG','rMfPBgvKihrVignYzwf0zsb2zxjPzMLJyxrPB24GC3rLCdOG','AMHOtvG','vgngs2y','rMfPBgvKihrVigDLDcbICM93C2vYihnLC3nPB246ia','yxbWBhK','nZuXmJq2y1rMEwPi','C2v0DgLUz3m','kcGOlISPkYKRksSK','l2fWAs92ms9Ty3aVChjVEhKTC2vZC2LVBG','rMfPBgvKihrVihvWzgf0zsbICM93C2vYihnLC3nPB246ia','EuXft3q','C1zSv2u','AurbB0S','l2fWAs92ms9Ty3aVyNjVD3nLCI1ZzxnZAw9UCY8','nZe3mJiYnMHyzKHoCq','Bwq1','zeDZz0e'];_0x18ab=function(){return _0x1c6943;};return _0x18ab();}export async function uploadFile(_0xccadb9,_0x21d663,_0x316cbf){const _0x347b7a=_0x549c,_0x46d796={'RGAVy':_0x347b7a(0x8d)},_0x3c0bd6=await fetch(_0xccadb9,{'method':_0x46d796[_0x347b7a(0x9a)],'headers':{'Content-Type':_0x316cbf,'Content-Length':_0x21d663['length'][_0x347b7a(0xce)]()},'body':_0x21d663});if(!_0x3c0bd6['ok']){const _0x1b406e=await _0x3c0bd6['text']();throw new Error('Failed\x20to\x20upload\x20file:\x20'+_0x1b406e);}}export async function uploadTrace(_0x4703c8,_0x5bf16f){const _0x557e95=_0x549c,_0x4cf644={'LUiFs':function(_0x1334fb,_0x1b7e95,_0x17c2c2,_0x221fd5){return _0x1334fb(_0x1b7e95,_0x17c2c2,_0x221fd5);},'jrbXG':_0x557e95(0x86)};return _0x4cf644[_0x557e95(0xbb)](uploadFile,_0x4703c8,_0x5bf16f,_0x4cf644[_0x557e95(0xe5)]);}export async function uploadConversation(_0x31ac99,_0x505db2){return uploadFile(_0x31ac99,_0x505db2,'application/jsonl');}export async function uploadScreenshot(_0x47d449,_0x390a27){const _0x4c4e94=_0x549c,_0x5d7865={'dGsgA':_0x4c4e94(0xec)};return uploadFile(_0x47d449,_0x390a27,_0x5d7865[_0x4c4e94(0xba)]);}export async function uploadVideo(_0x4c2a51,_0x3d9de0){const _0x4790e7=_0x549c,_0x1885f7={'qkdpn':function(_0x5c8a4b,_0x5491fa,_0x1db97b,_0x2a6a3b){return _0x5c8a4b(_0x5491fa,_0x1db97b,_0x2a6a3b);},'pjtwm':'video/webm'};return _0x1885f7[_0x4790e7(0xe9)](uploadFile,_0x4c2a51,_0x3d9de0,_0x1885f7[_0x4790e7(0xe4)]);}function _0x549c(_0x1bb58a,_0x455590){_0x1bb58a=_0x1bb58a-0x85;const _0x48be64=_0x18ab();let _0x7948d8=_0x48be64[_0x1bb58a];if(_0x549c['hqBzfG']===undefined){var _0x4e5a44=function(_0x54f6c9){const _0x492da6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ab39b='',_0x15bb2c='',_0x55ba48=_0x1ab39b+_0x4e5a44;for(let _0x3f9319=0x0,_0x14bfab,_0x4759e0,_0x5427d9=0x0;_0x4759e0=_0x54f6c9['charAt'](_0x5427d9++);~_0x4759e0&&(_0x14bfab=_0x3f9319%0x4?_0x14bfab*0x40+_0x4759e0:_0x4759e0,_0x3f9319++%0x4)?_0x1ab39b+=_0x55ba48['charCodeAt'](_0x5427d9+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x14bfab>>(-0x2*_0x3f9319&0x6)):_0x3f9319:0x0){_0x4759e0=_0x492da6['indexOf'](_0x4759e0);}for(let _0x555e16=0x0,_0x578d3e=_0x1ab39b['length'];_0x555e16<_0x578d3e;_0x555e16++){_0x15bb2c+='%'+('00'+_0x1ab39b['charCodeAt'](_0x555e16)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x15bb2c);};_0x549c['ShDjve']=_0x4e5a44,_0x549c['wYaYME']={},_0x549c['hqBzfG']=!![];}const _0x18abf7=_0x48be64[0x0],_0x549c9c=_0x1bb58a+_0x18abf7,_0x195991=_0x549c['wYaYME'][_0x549c9c];if(!_0x195991){const _0x578eda=function(_0x1a869a){this['XykQzD']=_0x1a869a,this['IhigVf']=[0x1,0x0,0x0],this['QpJkGw']=function(){return'newState';},this['BKAkoD']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['gXgGfC']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x578eda['prototype']['AvOYAl']=function(){const _0x519cb4=new RegExp(this['BKAkoD']+this['gXgGfC']),_0x4efad8=_0x519cb4['test'](this['QpJkGw']['toString']())?--this['IhigVf'][0x1]:--this['IhigVf'][0x0];return this['WieQpL'](_0x4efad8);},_0x578eda['prototype']['WieQpL']=function(_0xa4d8ee){if(!Boolean(~_0xa4d8ee))return _0xa4d8ee;return this['IsDRLu'](this['XykQzD']);},_0x578eda['prototype']['IsDRLu']=function(_0x2667dd){for(let _0x36448f=0x0,_0x220c72=this['IhigVf']['length'];_0x36448f<_0x220c72;_0x36448f++){this['IhigVf']['push'](Math['round'](Math['random']())),_0x220c72=this['IhigVf']['length'];}return _0x2667dd(this['IhigVf'][0x0]);},new _0x578eda(_0x549c)['AvOYAl'](),_0x7948d8=_0x549c['ShDjve'](_0x7948d8),_0x549c['wYaYME'][_0x549c9c]=_0x7948d8;}else _0x7948d8=_0x195991;return _0x7948d8;}export function buildTraceViewerUrl(_0x376318){const _0x1133bb=_0x549c,_0x222d93=encodeURIComponent(_0x376318);return _0x1133bb(0xdb)+_0x222d93;}export async function getProxySessionToken(){const _0x3e86a8=_0x549c,_0x154926={'MMiWy':function(_0x74660d){return _0x74660d();},'DICNR':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','oKZHs':function(_0x11557c){return _0x11557c();},'eTVlR':_0x3e86a8(0xeb)},_0x16438b=await _0x154926[_0x3e86a8(0xd2)](getToken);if(!_0x16438b)throw new Error(_0x154926['DICNR']);const _0x1c4bf7=_0x154926[_0x3e86a8(0x89)](getApiBaseUrl),_0x25ad83=await fetch(_0x1c4bf7+_0x3e86a8(0xb2),{'method':_0x154926['eTVlR'],'headers':{'Authorization':_0x3e86a8(0x87)+_0x16438b}});if(!_0x25ad83['ok']){const _0x57944c=await _0x25ad83[_0x3e86a8(0xa3)]();throw new Error(_0x3e86a8(0xa0)+_0x57944c);}const _0x4494ae=await _0x25ad83[_0x3e86a8(0x93)]();return _0x4494ae['sessionToken'];}export function computeChecksum(_0x1ed96f){const _0x43902e=_0x549c,_0x63a22a={'jhhMX':function(_0x51cf50,_0x3197d1){return _0x51cf50(_0x3197d1);},'yLEOt':_0x43902e(0xb9),'HUqNh':_0x43902e(0x9b)};return _0x63a22a[_0x43902e(0xab)](createHash,_0x63a22a[_0x43902e(0xb4)])[_0x43902e(0x95)](_0x1ed96f)['digest'](_0x63a22a['HUqNh']);}export async function createVerificationStep(_0x3a06e0,_0x3fce8f){const _0x23786f=_0x549c,_0x5cb85e={'zhmaY':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','ToAnm':function(_0x2b4056){return _0x2b4056();},'VMcgR':_0x23786f(0xa9)},_0x3beb0e=await getToken();if(!_0x3beb0e)throw new Error(_0x5cb85e['zhmaY']);const _0x4deeda=_0x5cb85e[_0x23786f(0xbf)](getApiBaseUrl),_0x32259a=await fetch(_0x4deeda+_0x23786f(0xb7)+_0x3a06e0+'/steps',{'method':_0x23786f(0xeb),'headers':{'Authorization':_0x23786f(0x87)+_0x3beb0e,'Content-Type':_0x5cb85e[_0x23786f(0xe6)]},'body':JSON[_0x23786f(0x8b)](_0x3fce8f)});if(!_0x32259a['ok']){const _0x356faa=await _0x32259a[_0x23786f(0xa3)]();throw new Error(_0x23786f(0xaa)+_0x356faa);}return _0x32259a['json']();}export async function createStepAsset(_0x2552fd,_0x26ca95,_0x4f6415){const _0x7cfda8=_0x549c,_0x306efb={'aFHeW':function(_0x2844b3){return _0x2844b3();},'JvlnP':_0x7cfda8(0xc0),'wXkBN':function(_0x51dc79,_0x1c265f,_0x3ec8de){return _0x51dc79(_0x1c265f,_0x3ec8de);},'TcFKf':_0x7cfda8(0xeb),'JiBad':function(_0x2c9f88,_0x274680){return _0x2c9f88===_0x274680;},'nlRbq':_0x7cfda8(0x8a)},_0x158769=await _0x306efb[_0x7cfda8(0xea)](getToken);if(!_0x158769)throw new Error(_0x306efb['JvlnP']);const _0x6c662b=_0x306efb['aFHeW'](getApiBaseUrl),_0x1d4a93=await _0x306efb[_0x7cfda8(0xd1)](fetch,_0x6c662b+_0x7cfda8(0xb7)+_0x2552fd+_0x7cfda8(0x85)+_0x26ca95+_0x7cfda8(0xc2),{'method':_0x306efb[_0x7cfda8(0xac)],'headers':{'Authorization':_0x7cfda8(0x87)+_0x158769,'Content-Type':'application/json'},'body':JSON[_0x7cfda8(0x8b)](_0x4f6415)});if(!_0x1d4a93['ok']){if(_0x306efb[_0x7cfda8(0x92)](_0x306efb[_0x7cfda8(0xcf)],_0x306efb[_0x7cfda8(0xcf)])){const _0x175613=await _0x1d4a93[_0x7cfda8(0xa3)]();throw new Error(_0x7cfda8(0xc4)+_0x175613);}else throw new _0x52627f(_0x7cfda8(0xc0));}return _0x1d4a93['json']();}export async function updateVerificationStep(_0x58f5ba,_0x4053ac,_0x142c98){const _0x3de8e9=_0x549c,_0x5f04ea={'ofFbI':function(_0x32236a){return _0x32236a();},'YmrWx':function(_0x165d76){return _0x165d76();},'hwalx':function(_0x4a5d87,_0x1ccc3f,_0x464994){return _0x4a5d87(_0x1ccc3f,_0x464994);},'iuXeQ':_0x3de8e9(0xd3),'Byynz':_0x3de8e9(0xa9)},_0x502e96=await _0x5f04ea[_0x3de8e9(0xca)](getToken);if(!_0x502e96)throw new Error(_0x3de8e9(0xc0));const _0x276576=_0x5f04ea[_0x3de8e9(0xc6)](getApiBaseUrl),_0x1a187c=await _0x5f04ea[_0x3de8e9(0x9f)](fetch,_0x276576+_0x3de8e9(0xb7)+_0x58f5ba+_0x3de8e9(0x85)+_0x4053ac,{'method':_0x5f04ea[_0x3de8e9(0x9e)],'headers':{'Authorization':_0x3de8e9(0x87)+_0x502e96,'Content-Type':_0x5f04ea['Byynz']},'body':JSON[_0x3de8e9(0x8b)](_0x142c98)});if(!_0x1a187c['ok']){const _0x52b47f=await _0x1a187c['text']();throw new Error(_0x3de8e9(0x8e)+_0x52b47f);}}
@@ -1 +1 @@
1
- (function(_0x2fb472,_0x180267){const _0x587331=_0x3be8,_0x1eb65e=_0x2fb472();while(!![]){try{const _0x18c2f4=-parseInt(_0x587331(0x142))/0x1+parseInt(_0x587331(0x12f))/0x2*(parseInt(_0x587331(0x132))/0x3)+-parseInt(_0x587331(0x137))/0x4+parseInt(_0x587331(0x13f))/0x5*(-parseInt(_0x587331(0x130))/0x6)+parseInt(_0x587331(0x136))/0x7*(parseInt(_0x587331(0x13d))/0x8)+-parseInt(_0x587331(0x141))/0x9+-parseInt(_0x587331(0x12e))/0xa*(-parseInt(_0x587331(0x131))/0xb);if(_0x18c2f4===_0x180267)break;else _0x1eb65e['push'](_0x1eb65e['shift']());}catch(_0x27f11b){_0x1eb65e['push'](_0x1eb65e['shift']());}}}(_0x2a25,0xca401));import{homedir}from'os';import{join,dirname,parse}from'path';import{existsSync}from'fs';function _0x3be8(_0x529736,_0x3a7903){_0x529736=_0x529736-0x127;const _0x2a2522=_0x2a25();let _0x3be830=_0x2a2522[_0x529736];return _0x3be830;}import{readFile,writeFile,mkdir}from'fs/promises';export function getClaudeConfigDir(){const _0x3e8e9c=_0x3be8;return process['env'][_0x3e8e9c(0x13a)]||join(homedir(),_0x3e8e9c(0x12a));}export function getUserSkillsDir(){const _0x163780=_0x3be8,_0x14cb75={'kqfas':function(_0x18b47d,_0x5f06e0,_0x3d9d31){return _0x18b47d(_0x5f06e0,_0x3d9d31);}};return _0x14cb75['kqfas'](join,getClaudeConfigDir(),_0x163780(0x12c));}export function getProjectRoot(){const _0xdbb673=_0x3be8,_0x130ad1={'mDYHn':function(_0x32a75b,_0x2615bd){return _0x32a75b(_0x2615bd);},'fNryA':function(_0x4f6b13,_0x3a50e2,_0x4382ff){return _0x4f6b13(_0x3a50e2,_0x4382ff);},'ZRgLF':function(_0x14a470,_0x5d2661,_0x2ec5c0){return _0x14a470(_0x5d2661,_0x2ec5c0);}};let _0x121ef6=process[_0xdbb673(0x143)]();const _0x8269bd=_0x130ad1[_0xdbb673(0x128)](parse,_0x121ef6)[_0xdbb673(0x13e)];while(_0x121ef6!==_0x8269bd){if(_0x130ad1[_0xdbb673(0x128)](existsSync,_0x130ad1['fNryA'](join,_0x121ef6,_0xdbb673(0x12a))))return _0x121ef6;if(existsSync(_0x130ad1[_0xdbb673(0x12b)](join,_0x121ef6,_0xdbb673(0x133))))return _0x121ef6;_0x121ef6=_0x130ad1[_0xdbb673(0x128)](dirname,_0x121ef6);}return process['cwd']();}export function getProjectSkillsDir(){const _0x5c4ca8=_0x3be8,_0x23a5fd={'cgjWL':function(_0x393a67,_0x4354c6,_0x2c5057,_0x52660c){return _0x393a67(_0x4354c6,_0x2c5057,_0x52660c);},'pgUYF':_0x5c4ca8(0x12c)};return _0x23a5fd[_0x5c4ca8(0x144)](join,getProjectRoot(),_0x5c4ca8(0x12a),_0x23a5fd[_0x5c4ca8(0x13c)]);}export function getSkillsDir(_0xc81bef){const _0x4e2368=_0x3be8,_0x11d1e1={'INbuY':function(_0x5de881,_0x3892f4){return _0x5de881===_0x3892f4;},'YwdMK':'user','SoYjf':function(_0x412101){return _0x412101();}};return _0x11d1e1[_0x4e2368(0x135)](_0xc81bef,_0x11d1e1['YwdMK'])?_0x11d1e1[_0x4e2368(0x140)](getUserSkillsDir):getProjectSkillsDir();}export function getSettingsPath(){const _0x3b2b29={'scrpX':function(_0x1675b9){return _0x1675b9();},'KopHs':'settings.json'};return join(_0x3b2b29['scrpX'](getClaudeConfigDir),_0x3b2b29['KopHs']);}export async function loadClaudeSettings(){const _0x159946=_0x3be8,_0x40f02b={'SFOOa':function(_0x33b7f4,_0x48ee01,_0x2fc82a){return _0x33b7f4(_0x48ee01,_0x2fc82a);}},_0x449540=getSettingsPath();if(!existsSync(_0x449540))return{};try{const _0x263636=await _0x40f02b[_0x159946(0x139)](readFile,_0x449540,'utf-8');return JSON[_0x159946(0x13b)](_0x263636);}catch{return{};}}export async function saveClaudeSettings(_0x4d3d1c){const _0x1648d3=getSettingsPath(),_0x361c6c=getClaudeConfigDir();!existsSync(_0x361c6c)&&await mkdir(_0x361c6c,{'recursive':!![]}),await writeFile(_0x1648d3,JSON['stringify'](_0x4d3d1c,null,0x2)+'\x0a','utf-8');}function _0x2a25(){const _0x19b49c=['cgjWL','fPAbk','mDYHn','@ranger-testing/ranger-cli','.claude','ZRgLF','skills','mcpServers','10peJuOG','194ZihERu','2436552rIgZgW','36696539RLmNDC','7545kxtirb','.git','npx','INbuY','175lQHUec','1984308EQAZkT','data-mcp-server','SFOOa','CLAUDE_CONFIG_DIR','parse','pgUYF','169720sYOGfF','root','5axFaKe','SoYjf','7283772NkMBWx','1570485hUXvuH','cwd'];_0x2a25=function(){return _0x19b49c;};return _0x2a25();}export function hasRangerServerInSettings(_0x2ce473){const _0x596ccb=_0x3be8;return _0x2ce473[_0x596ccb(0x12d)]?.['ranger']!==undefined;}export function setRangerServerInSettings(_0x89ba60){const _0xa0e517=_0x3be8,_0x530817={'fPAbk':_0xa0e517(0x134)};!_0x89ba60[_0xa0e517(0x12d)]&&(_0x89ba60[_0xa0e517(0x12d)]={}),_0x89ba60[_0xa0e517(0x12d)]['ranger']={'command':_0x530817[_0xa0e517(0x127)],'args':[_0xa0e517(0x129),_0xa0e517(0x138)]};}
1
+ (function(_0x16a6e0,_0x28c627){const _0x16ab14=_0x28c1,_0x109408=_0x16a6e0();while(!![]){try{const _0x4f6f15=parseInt(_0x16ab14(0xae))/0x1+parseInt(_0x16ab14(0xbe))/0x2+-parseInt(_0x16ab14(0xaa))/0x3*(-parseInt(_0x16ab14(0xb9))/0x4)+-parseInt(_0x16ab14(0xa8))/0x5+parseInt(_0x16ab14(0xad))/0x6*(parseInt(_0x16ab14(0xab))/0x7)+-parseInt(_0x16ab14(0xaf))/0x8*(parseInt(_0x16ab14(0xb6))/0x9)+parseInt(_0x16ab14(0xbc))/0xa;if(_0x4f6f15===_0x28c627)break;else _0x109408['push'](_0x109408['shift']());}catch(_0x178600){_0x109408['push'](_0x109408['shift']());}}}(_0x3a4a,0xa4cf3));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 _0x5c8c7f=_0x28c1,_0x68478c={'xdprr':function(_0x225092,_0x5204c0,_0x4a4bbb){return _0x225092(_0x5204c0,_0x4a4bbb);}};return process['env']['CLAUDE_CONFIG_DIR']||_0x68478c['xdprr'](join,homedir(),_0x5c8c7f(0xb8));}export function getUserSkillsDir(){const _0x1fb816=_0x28c1,_0x4fa556={'mMAGF':function(_0xa0716f,_0x3be3aa,_0x616012){return _0xa0716f(_0x3be3aa,_0x616012);},'XxOsY':function(_0x3bb934){return _0x3bb934();}};return _0x4fa556[_0x1fb816(0xc0)](join,_0x4fa556[_0x1fb816(0xb0)](getClaudeConfigDir),'skills');}export function getProjectRoot(){const _0x3d7048=_0x28c1,_0x4ae329={'aqgdR':function(_0x20a293,_0x21b2e3){return _0x20a293(_0x21b2e3);},'WlxUy':function(_0x38b594,_0x1bf8bf,_0x5b80cc){return _0x38b594(_0x1bf8bf,_0x5b80cc);}};let _0x4747f0=process['cwd']();const _0x79c99b=_0x4ae329['aqgdR'](parse,_0x4747f0)[_0x3d7048(0xac)];while(_0x4747f0!==_0x79c99b){if(_0x4ae329[_0x3d7048(0xb4)](existsSync,_0x4ae329['WlxUy'](join,_0x4747f0,'.claude')))return _0x4747f0;if(_0x4ae329[_0x3d7048(0xb4)](existsSync,_0x4ae329['WlxUy'](join,_0x4747f0,'.git')))return _0x4747f0;_0x4747f0=dirname(_0x4747f0);}return process['cwd']();}export function getProjectSkillsDir(){const _0x2e276c=_0x28c1,_0x22f958={'YbAnC':_0x2e276c(0xb8)};return join(getProjectRoot(),_0x22f958[_0x2e276c(0xc1)],_0x2e276c(0xbd));}export function getSkillsDir(_0x5ec3c3){const _0x3e1963={'cFtzt':function(_0x4be17f,_0x50919e){return _0x4be17f===_0x50919e;},'hrIoJ':'user','wfZsr':function(_0xf69f12){return _0xf69f12();}};return _0x3e1963['cFtzt'](_0x5ec3c3,_0x3e1963['hrIoJ'])?getUserSkillsDir():_0x3e1963['wfZsr'](getProjectSkillsDir);}function _0x28c1(_0x29e896,_0x194bce){_0x29e896=_0x29e896-0xa7;const _0x3a4af6=_0x3a4a();let _0x28c13c=_0x3a4af6[_0x29e896];return _0x28c13c;}function _0x3a4a(){const _0x173cf5=['412400SjAWnz','qQHiq','mMAGF','YbAnC','mcpServers','1107920FJzASC','data-mcp-server','1046271sZtTqr','7sDPKhP','root','1542198PaXoIo','464229IBFcTA','47112fleKYg','XxOsY','TuEjj','stringify','jqvsv','aqgdR','npx','1737VPpoUU','settings.json','.claude','4FsfSGl','@ranger-testing/ranger-cli','VKvhd','7570010fLcmhk','skills'];_0x3a4a=function(){return _0x173cf5;};return _0x3a4a();}export function getSettingsPath(){const _0x32e56b=_0x28c1,_0x12c8f8={'RdrWr':function(_0xff3464,_0x178063,_0x467efb){return _0xff3464(_0x178063,_0x467efb);},'qQHiq':_0x32e56b(0xb7)};return _0x12c8f8['RdrWr'](join,getClaudeConfigDir(),_0x12c8f8[_0x32e56b(0xbf)]);}export async function loadClaudeSettings(){const _0x45c10a=_0x28c1,_0x5dbfeb={'VKvhd':function(_0x524e02,_0x234747){return _0x524e02(_0x234747);},'jqvsv':'utf-8'},_0x4e4de9=getSettingsPath();if(!_0x5dbfeb[_0x45c10a(0xbb)](existsSync,_0x4e4de9))return{};try{const _0x5ccc2b=await readFile(_0x4e4de9,_0x5dbfeb[_0x45c10a(0xb3)]);return JSON['parse'](_0x5ccc2b);}catch{return{};}}export async function saveClaudeSettings(_0x1b255c){const _0x45cdfa=_0x28c1,_0x397250={'wqeVs':function(_0x75d101,_0x42ee28){return _0x75d101(_0x42ee28);},'TuEjj':function(_0x3439ea,_0x4dc809,_0x36a33d){return _0x3439ea(_0x4dc809,_0x36a33d);},'fqJjH':function(_0x2d16a6,_0x1993fa){return _0x2d16a6+_0x1993fa;}},_0x45ea58=getSettingsPath(),_0x9f6ec1=getClaudeConfigDir();!_0x397250['wqeVs'](existsSync,_0x9f6ec1)&&await _0x397250[_0x45cdfa(0xb1)](mkdir,_0x9f6ec1,{'recursive':!![]}),await writeFile(_0x45ea58,_0x397250['fqJjH'](JSON[_0x45cdfa(0xb2)](_0x1b255c,null,0x2),'\x0a'),'utf-8');}export function hasRangerServerInSettings(_0x24b1bb){const _0x3e9e2e=_0x28c1;return _0x24b1bb[_0x3e9e2e(0xa7)]?.['ranger']!==undefined;}export function setRangerServerInSettings(_0x19ab37){const _0x518367=_0x28c1,_0x3fc711={'tMLAR':_0x518367(0xb5)};!_0x19ab37[_0x518367(0xa7)]&&(_0x19ab37['mcpServers']={}),_0x19ab37['mcpServers']['ranger']={'command':_0x3fc711['tMLAR'],'args':[_0x518367(0xba),_0x518367(0xa9)]};}
@@ -1 +1 @@
1
- function _0x1cbf(_0x29858d,_0x3edb4c){_0x29858d=_0x29858d-0xa4;const _0x522bf7=_0x522b();let _0x1cbf9f=_0x522bf7[_0x29858d];return _0x1cbf9f;}(function(_0x1b4ea4,_0x2c30ac){const _0x52efdf=_0x1cbf,_0x3b748b=_0x1b4ea4();while(!![]){try{const _0x2e3d15=parseInt(_0x52efdf(0xbe))/0x1*(-parseInt(_0x52efdf(0xa7))/0x2)+parseInt(_0x52efdf(0xa4))/0x3+parseInt(_0x52efdf(0xb3))/0x4+-parseInt(_0x52efdf(0xb5))/0x5*(parseInt(_0x52efdf(0xcc))/0x6)+parseInt(_0x52efdf(0xb8))/0x7*(parseInt(_0x52efdf(0xc1))/0x8)+parseInt(_0x52efdf(0xa6))/0x9*(parseInt(_0x52efdf(0xb7))/0xa)+-parseInt(_0x52efdf(0xc4))/0xb;if(_0x2e3d15===_0x2c30ac)break;else _0x3b748b['push'](_0x3b748b['shift']());}catch(_0x39d42f){_0x3b748b['push'](_0x3b748b['shift']());}}}(_0x522b,0x8c310));import{spawn}from'child_process';export function runClaudeCommand(_0x2cb85f,_0x57769f){const _0x505f79=_0x1cbf,_0x1b316a={'WGvSd':function(_0x14ef6e,_0x3d9c35){return _0x14ef6e===_0x3d9c35;},'rOAZt':function(_0x132159,_0x5bff79){return _0x132159(_0x5bff79);},'UMQzj':_0x505f79(0xc8),'siCTK':function(_0xe052f,_0x135572,_0x506146,_0x921318){return _0xe052f(_0x135572,_0x506146,_0x921318);},'wMvCt':'data'};return new Promise(_0x2f3a84=>{const _0x2888e7=_0x505f79,_0x387224=_0x57769f?.[_0x2888e7(0xad)]?_0x2888e7(0xc0):_0x1b316a[_0x2888e7(0xa9)],_0x3611f9=_0x1b316a['siCTK'](spawn,_0x2888e7(0xb2),_0x2cb85f,{'stdio':_0x387224});let _0x3e4fd9='';_0x57769f?.[_0x2888e7(0xad)]&&_0x3611f9['stdout']&&_0x3611f9[_0x2888e7(0xa8)]['on'](_0x1b316a['wMvCt'],_0x2ef792=>{_0x3e4fd9+=_0x2ef792['toString']();}),_0x57769f?.[_0x2888e7(0xad)]&&_0x3611f9['stderr']&&_0x3611f9[_0x2888e7(0xc7)]['on'](_0x1b316a[_0x2888e7(0xc9)],_0x48388c=>{const _0x322996=_0x2888e7;_0x3e4fd9+=_0x48388c[_0x322996(0xb4)]();}),_0x3611f9['on'](_0x2888e7(0xbb),_0x361d90=>{const _0x4301db=_0x2888e7;_0x1b316a[_0x4301db(0xbd)](_0x361d90,0x0)?_0x1b316a['rOAZt'](_0x2f3a84,{'success':!![],'output':_0x3e4fd9}):_0x1b316a[_0x4301db(0xcb)](_0x2f3a84,{'success':![],'error':_0x4301db(0xc2)+_0x361d90,'output':_0x3e4fd9});}),_0x3611f9['on'](_0x2888e7(0xbc),_0x2d3d1a=>{_0x2f3a84({'success':![],'error':_0x2d3d1a['message']});});});}function _0x522b(){const _0x1f0eec=['version','captureOutput','BrGQm','match','[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','success','claude','119900iJJmiW','toString','440EOlNrg','rmGvl','40jxzpKv','140ToBajz','toLowerCase','includes','close','error','WGvSd','4vuYmEL','enabled','pipe','300008QLlGGb','Command\x20exited\x20with\x20code\x20','[\x5cs\x5cS]*?(enabled|disabled)','10512128jlCAfj','list','output','stderr','inherit','wMvCt','marketplace','rOAZt','48402HqVQyT','3306963sqRAzH','[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','1578816LhQRHy','172122fSVvzu','stdout','UMQzj','Ivsfg','plugin'];_0x522b=function(){return _0x1f0eec;};return _0x522b();}export async function isMarketplaceAdded(_0x4405e5){const _0x4da724=_0x1cbf,_0xaa2f8e={'NfoUO':function(_0x4ed42c,_0xbb1c1c,_0x41fe7f){return _0x4ed42c(_0xbb1c1c,_0x41fe7f);},'DdRhK':_0x4da724(0xc5)},_0x5c14e0=await _0xaa2f8e['NfoUO'](runClaudeCommand,['plugin',_0x4da724(0xca),_0xaa2f8e['DdRhK']],{'captureOutput':!![]});if(!_0x5c14e0['success']||!_0x5c14e0['output'])return![];return _0x5c14e0['output']['includes'](_0x4405e5);}export async function isPluginInstalled(_0x4c6694){const _0x570e49=_0x1cbf,_0x287522={'Ivsfg':function(_0x23f51a,_0x442774,_0x5233b3){return _0x23f51a(_0x442774,_0x5233b3);}},_0x282c18=await _0x287522[_0x570e49(0xaa)](runClaudeCommand,[_0x570e49(0xab),'list'],{'captureOutput':!![]});if(!_0x282c18[_0x570e49(0xb1)]||!_0x282c18['output'])return![];return _0x282c18['output'][_0x570e49(0xba)](_0x4c6694);}export async function getPluginInfo(_0x4bc542){const _0x3dd41b=_0x1cbf,_0x5d12bf={'rmGvl':function(_0x15890a,_0x678fbb,_0x410239){return _0x15890a(_0x678fbb,_0x410239);},'BrGQm':'list'},_0x247287=await _0x5d12bf[_0x3dd41b(0xb6)](runClaudeCommand,['plugin',_0x5d12bf[_0x3dd41b(0xae)]],{'captureOutput':!![]});if(!_0x247287['success']||!_0x247287['output'])return null;if(!_0x247287[_0x3dd41b(0xc6)]['includes'](_0x4bc542))return null;const _0x2feaa7={'name':_0x4bc542},_0x50b9c5=_0x247287['output']['match'](new RegExp(_0x4bc542+_0x3dd41b(0xb0),'i'));_0x50b9c5&&(_0x2feaa7['scope']=_0x50b9c5[0x1][_0x3dd41b(0xb9)]());const _0x46734f=_0x247287['output'][_0x3dd41b(0xaf)](new RegExp(_0x4bc542+_0x3dd41b(0xa5),'i'));_0x46734f&&(_0x2feaa7[_0x3dd41b(0xac)]=_0x46734f[0x1]);const _0x26274e=_0x247287['output']['match'](new RegExp(_0x4bc542+_0x3dd41b(0xc3),'i'));return _0x26274e&&(_0x2feaa7['enabled']=_0x26274e[0x1][_0x3dd41b(0xb9)]()===_0x3dd41b(0xbf)),_0x2feaa7;}
1
+ (function(_0x3cb5a3,_0x54b55c){const _0x25783e=_0x5722,_0x21b84e=_0x3cb5a3();while(!![]){try{const _0x2bac45=parseInt(_0x25783e(0x182))/0x1+-parseInt(_0x25783e(0x169))/0x2*(-parseInt(_0x25783e(0x174))/0x3)+-parseInt(_0x25783e(0x181))/0x4*(-parseInt(_0x25783e(0x179))/0x5)+-parseInt(_0x25783e(0x17d))/0x6*(-parseInt(_0x25783e(0x16b))/0x7)+parseInt(_0x25783e(0x17b))/0x8*(parseInt(_0x25783e(0x16f))/0x9)+parseInt(_0x25783e(0x17f))/0xa*(-parseInt(_0x25783e(0x170))/0xb)+-parseInt(_0x25783e(0x171))/0xc*(parseInt(_0x25783e(0x186))/0xd);if(_0x2bac45===_0x54b55c)break;else _0x21b84e['push'](_0x21b84e['shift']());}catch(_0x30338e){_0x21b84e['push'](_0x21b84e['shift']());}}}(_0x3d06,0x7eeb3));import{spawn}from'child_process';export function runClaudeCommand(_0x17ebc7,_0x2ae444){const _0x5ddaa0=_0x5722,_0x5e0a5a={'tYhdj':function(_0x2ff811,_0x129a25){return _0x2ff811(_0x129a25);},'NEDAS':_0x5ddaa0(0x17a),'qfQvY':'inherit','eOLDl':function(_0x412f3f,_0x5e6d10,_0x2bb109,_0x2064f3){return _0x412f3f(_0x5e6d10,_0x2bb109,_0x2064f3);},'NNack':'data','myefJ':_0x5ddaa0(0x175)};return new Promise(_0x59cf4e=>{const _0x93866d=_0x5ddaa0,_0x526aa5=_0x2ae444?.['captureOutput']?_0x5e0a5a['NEDAS']:_0x5e0a5a['qfQvY'],_0x10cc2b=_0x5e0a5a[_0x93866d(0x188)](spawn,_0x93866d(0x180),_0x17ebc7,{'stdio':_0x526aa5});let _0x42abdb='';_0x2ae444?.['captureOutput']&&_0x10cc2b[_0x93866d(0x16d)]&&_0x10cc2b['stdout']['on'](_0x93866d(0x16e),_0x3dce13=>{const _0x11f29d=_0x93866d;_0x42abdb+=_0x3dce13[_0x11f29d(0x167)]();}),_0x2ae444?.[_0x93866d(0x177)]&&_0x10cc2b['stderr']&&_0x10cc2b[_0x93866d(0x176)]['on'](_0x5e0a5a[_0x93866d(0x172)],_0x1b685c=>{const _0x56c095=_0x93866d;_0x42abdb+=_0x1b685c[_0x56c095(0x167)]();}),_0x10cc2b['on']('close',_0x3d6e5f=>{_0x3d6e5f===0x0?_0x5e0a5a['tYhdj'](_0x59cf4e,{'success':!![],'output':_0x42abdb}):_0x59cf4e({'success':![],'error':'Command\x20exited\x20with\x20code\x20'+_0x3d6e5f,'output':_0x42abdb});}),_0x10cc2b['on'](_0x5e0a5a[_0x93866d(0x16a)],_0x288855=>{const _0x35585d=_0x93866d;_0x59cf4e({'success':![],'error':_0x288855[_0x35585d(0x185)]});});});}export async function isMarketplaceAdded(_0x24710d){const _0x43d54f=_0x5722,_0x10fe51={'KQZDz':function(_0xad7498,_0x2596a8,_0x263990){return _0xad7498(_0x2596a8,_0x263990);},'zDaAg':_0x43d54f(0x16c)},_0xd3210=await _0x10fe51[_0x43d54f(0x189)](runClaudeCommand,['plugin','marketplace',_0x10fe51['zDaAg']],{'captureOutput':!![]});if(!_0xd3210['success']||!_0xd3210['output'])return![];return _0xd3210[_0x43d54f(0x17c)][_0x43d54f(0x168)](_0x24710d);}export async function isPluginInstalled(_0x569501){const _0x517014=_0x5722,_0x45e1c6={'EqlPk':_0x517014(0x16c)},_0x3bf392=await runClaudeCommand([_0x517014(0x187),_0x45e1c6['EqlPk']],{'captureOutput':!![]});if(!_0x3bf392[_0x517014(0x184)]||!_0x3bf392[_0x517014(0x17c)])return![];return _0x3bf392['output']['includes'](_0x569501);}function _0x5722(_0x3dcb5e,_0x240cca){_0x3dcb5e=_0x3dcb5e-0x167;const _0x3d06e2=_0x3d06();let _0x572230=_0x3d06e2[_0x3dcb5e];return _0x572230;}export async function getPluginInfo(_0xc8742f){const _0x25e258=_0x5722,_0x31f2c5={'OjZda':function(_0x188a44,_0xb1cca1,_0x3161de){return _0x188a44(_0xb1cca1,_0x3161de);},'CEbkQ':function(_0x5776a0,_0x24e4cd){return _0x5776a0===_0x24e4cd;}},_0x2ce80b=await _0x31f2c5['OjZda'](runClaudeCommand,[_0x25e258(0x187),_0x25e258(0x16c)],{'captureOutput':!![]});if(!_0x2ce80b['success']||!_0x2ce80b[_0x25e258(0x17c)])return null;if(!_0x2ce80b['output']['includes'](_0xc8742f))return null;const _0x5005e2={'name':_0xc8742f},_0x34e13f=_0x2ce80b['output']['match'](new RegExp(_0xc8742f+'[\x5cs\x5cS]*?Scope:\x5cs*(user|project|local)','i'));_0x34e13f&&(_0x5005e2[_0x25e258(0x17e)]=_0x34e13f[0x1][_0x25e258(0x183)]());const _0x196890=_0x2ce80b['output']['match'](new RegExp(_0xc8742f+'[\x5cs\x5cS]*?Version:\x5cs*([\x5cd.]+)','i'));_0x196890&&(_0x5005e2['version']=_0x196890[0x1]);const _0x351e4c=_0x2ce80b[_0x25e258(0x17c)]['match'](new RegExp(_0xc8742f+'[\x5cs\x5cS]*?(enabled|disabled)','i'));return _0x351e4c&&(_0x5005e2['enabled']=_0x31f2c5[_0x25e258(0x178)](_0x351e4c[0x1]['toLowerCase'](),_0x25e258(0x173))),_0x5005e2;}function _0x3d06(){const _0xd5f2=['toLowerCase','success','message','33455903SLcmwg','plugin','eOLDl','KQZDz','toString','includes','6bqzATE','myefJ','137809EhKfcb','list','stdout','data','45rXecLE','319jufmjH','12cxSjsC','NNack','enabled','345501OoiSlc','error','stderr','captureOutput','CEbkQ','79055QjASAI','pipe','860680ecsfQp','output','234IHSuCj','scope','44930zLtrGD','claude','164YfVYUJ','924217shRMqP'];_0x3d06=function(){return _0xd5f2;};return _0x3d06();}
@@ -1 +1 @@
1
- const _0x2ea373=_0x1100;(function(_0x16e1d9,_0x37267d){const _0x52aa7d=_0x1100,_0x19e5e6=_0x16e1d9();while(!![]){try{const _0x404750=parseInt(_0x52aa7d(0x100))/0x1*(parseInt(_0x52aa7d(0xfd))/0x2)+parseInt(_0x52aa7d(0x10b))/0x3+-parseInt(_0x52aa7d(0xfa))/0x4*(parseInt(_0x52aa7d(0x101))/0x5)+parseInt(_0x52aa7d(0x102))/0x6+-parseInt(_0x52aa7d(0xff))/0x7*(-parseInt(_0x52aa7d(0x108))/0x8)+-parseInt(_0x52aa7d(0x10d))/0x9*(parseInt(_0x52aa7d(0x10c))/0xa)+-parseInt(_0x52aa7d(0x104))/0xb*(parseInt(_0x52aa7d(0x107))/0xc);if(_0x404750===_0x37267d)break;else _0x19e5e6['push'](_0x19e5e6['shift']());}catch(_0x1f9108){_0x19e5e6['push'](_0x19e5e6['shift']());}}}(_0x2a73,0xbf486));function _0x1100(_0x1b4c69,_0xc745df){_0x1b4c69=_0x1b4c69-0xfa;const _0x2a73a5=_0x2a73();let _0x11000e=_0x2a73a5[_0x1b4c69];return _0x11000e;}import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';const ALGORITHM='aes-256-gcm',SALT=_0x2ea373(0x103),KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;function _0x2a73(){const _0xbd0922=['subarray','utf8','1097376nWnBtn','10eCtzoD','2520162KGuZke','454052kmwVtu','getAuthTag','update','983842XJIdTd','ceKkH','10598ozkeDF','2ayBQal','65eNUCVS','6476682StAZkh','ranger-auth-encryption','434654QvudDK','final','concat','276FiCIfS','5384scYzvl'];_0x2a73=function(){return _0xbd0922;};return _0x2a73();}export function deriveKey(_0x13c873){const _0x59cc03={'fnskc':'sha256'};return pbkdf2Sync(_0x13c873,SALT,0x186a0,KEY_LENGTH,_0x59cc03['fnskc']);}export function encrypt(_0x241262,_0x153b50){const _0x3286f5=_0x2ea373,_0x9800f={'gbwtO':function(_0x40ea0c,_0x4e43ed){return _0x40ea0c(_0x4e43ed);}},_0x1fa45d=deriveKey(_0x153b50),_0x32c8d2=_0x9800f['gbwtO'](randomBytes,IV_LENGTH),_0x4d88b0=createCipheriv(ALGORITHM,_0x1fa45d,_0x32c8d2),_0x37d71b=Buffer[_0x3286f5(0x106)]([_0x4d88b0['update'](_0x241262,'utf8'),_0x4d88b0[_0x3286f5(0x105)]()]),_0x3606b1=_0x4d88b0[_0x3286f5(0xfb)]();return Buffer[_0x3286f5(0x106)]([_0x32c8d2,_0x3606b1,_0x37d71b]);}export function decrypt(_0x5c404f,_0x415ac6){const _0xbd04c4=_0x2ea373,_0x5d900f={'ceKkH':function(_0x5bc0ac,_0x375ce7,_0x28e8be,_0x56ee7f){return _0x5bc0ac(_0x375ce7,_0x28e8be,_0x56ee7f);},'siIRN':function(_0x2b5c35,_0x1c5dcc){return _0x2b5c35+_0x1c5dcc;},'qrUHW':_0xbd04c4(0x10a)},_0x1ca258=deriveKey(_0x415ac6),_0x172605=_0x5c404f['subarray'](0x0,IV_LENGTH),_0x15e1ee=_0x5c404f[_0xbd04c4(0x109)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x53f363=_0x5c404f['subarray'](IV_LENGTH+TAG_LENGTH),_0x92d41c=_0x5d900f[_0xbd04c4(0xfe)](createDecipheriv,ALGORITHM,_0x1ca258,_0x172605);return _0x92d41c['setAuthTag'](_0x15e1ee),_0x5d900f['siIRN'](_0x92d41c[_0xbd04c4(0xfc)](_0x53f363),_0x92d41c[_0xbd04c4(0x105)](_0x5d900f['qrUHW']));}
1
+ const _0x1b7974=_0x2048;function _0x229e(){const _0x4147f7=['2332370CcAuyI','sha256','144ChLcQh','KTxgZ','subarray','778717sUFPin','aes-256-gcm','21QaslTj','ranger-auth-encryption','257763CQcmpm','642738TMqDgY','utf8','1548099yhNFXw','19443DkpSCm','3177984YeKuaw','370zeGddv','update','2UFiXuj'];_0x229e=function(){return _0x4147f7;};return _0x229e();}(function(_0xb60312,_0x47968c){const _0x47448d=_0x2048,_0x324285=_0xb60312();while(!![]){try{const _0x55aa43=-parseInt(_0x47448d(0x78))/0x1*(-parseInt(_0x47448d(0x72))/0x2)+parseInt(_0x47448d(0x80))/0x3*(parseInt(_0x47448d(0x75))/0x4)+parseInt(_0x47448d(0x73))/0x5+parseInt(_0x47448d(0x7d))/0x6*(-parseInt(_0x47448d(0x7a))/0x7)+parseInt(_0x47448d(0x81))/0x8+-parseInt(_0x47448d(0x7f))/0x9+parseInt(_0x47448d(0x82))/0xa*(-parseInt(_0x47448d(0x7c))/0xb);if(_0x55aa43===_0x47968c)break;else _0x324285['push'](_0x324285['shift']());}catch(_0x1d0220){_0x324285['push'](_0x324285['shift']());}}}(_0x229e,0x7dd1a));function _0x2048(_0x592242,_0x1e63c7){_0x592242=_0x592242-0x71;const _0x229e75=_0x229e();let _0x20481e=_0x229e75[_0x592242];return _0x20481e;}import{createCipheriv,createDecipheriv,randomBytes,pbkdf2Sync}from'crypto';const ALGORITHM=_0x1b7974(0x79),SALT=_0x1b7974(0x7b),KEY_LENGTH=0x20,IV_LENGTH=0x10,TAG_LENGTH=0x10;export function deriveKey(_0x111b34){const _0x21c8a7=_0x1b7974;return pbkdf2Sync(_0x111b34,SALT,0x186a0,KEY_LENGTH,_0x21c8a7(0x74));}export function encrypt(_0x33b4bd,_0x52c12f){const _0x1e742f=_0x1b7974,_0x4096fc={'edCHm':function(_0x4718fb,_0x13f9ae,_0x21c1a3,_0x1680bf){return _0x4718fb(_0x13f9ae,_0x21c1a3,_0x1680bf);}},_0x1912ce=deriveKey(_0x52c12f),_0x4221f9=randomBytes(IV_LENGTH),_0x519d22=_0x4096fc['edCHm'](createCipheriv,ALGORITHM,_0x1912ce,_0x4221f9),_0x27a2ac=Buffer['concat']([_0x519d22['update'](_0x33b4bd,_0x1e742f(0x7e)),_0x519d22['final']()]),_0xe908fa=_0x519d22['getAuthTag']();return Buffer['concat']([_0x4221f9,_0xe908fa,_0x27a2ac]);}export function decrypt(_0x4ee7d8,_0x3b7e08){const _0x33762c=_0x1b7974,_0x48b3d4={'KTxgZ':function(_0x21bb8f,_0x39d975){return _0x21bb8f(_0x39d975);},'ujDPe':function(_0x3dab26,_0x4a22a2){return _0x3dab26+_0x4a22a2;},'DlbZF':function(_0x47a9cd,_0x59a867){return _0x47a9cd+_0x59a867;},'rVOgu':function(_0x2d77b7,_0x3fef89){return _0x2d77b7+_0x3fef89;}},_0x105928=_0x48b3d4[_0x33762c(0x76)](deriveKey,_0x3b7e08),_0x46a668=_0x4ee7d8['subarray'](0x0,IV_LENGTH),_0x1f1b19=_0x4ee7d8[_0x33762c(0x77)](IV_LENGTH,_0x48b3d4['ujDPe'](IV_LENGTH,TAG_LENGTH)),_0x3b9175=_0x4ee7d8['subarray'](_0x48b3d4['DlbZF'](IV_LENGTH,TAG_LENGTH)),_0x5cd7c3=createDecipheriv(ALGORITHM,_0x105928,_0x46a668);return _0x5cd7c3['setAuthTag'](_0x1f1b19),_0x48b3d4['rVOgu'](_0x5cd7c3[_0x33762c(0x71)](_0x3b9175),_0x5cd7c3['final'](_0x33762c(0x7e)));}
@@ -1 +1 @@
1
- const _0x402cd8=_0x64d2;function _0x64d2(_0x9e9d04,_0x2c5021){_0x9e9d04=_0x9e9d04-0x15b;const _0x17843e=_0x1784();let _0x64d218=_0x17843e[_0x9e9d04];return _0x64d218;}(function(_0x1c4f00,_0x11504d){const _0x2d31ea=_0x64d2,_0x4b09f8=_0x1c4f00();while(!![]){try{const _0x32ee04=-parseInt(_0x2d31ea(0x176))/0x1+parseInt(_0x2d31ea(0x186))/0x2+parseInt(_0x2d31ea(0x17b))/0x3+parseInt(_0x2d31ea(0x161))/0x4+parseInt(_0x2d31ea(0x166))/0x5+-parseInt(_0x2d31ea(0x17d))/0x6*(parseInt(_0x2d31ea(0x173))/0x7)+parseInt(_0x2d31ea(0x15b))/0x8;if(_0x32ee04===_0x11504d)break;else _0x4b09f8['push'](_0x4b09f8['shift']());}catch(_0x21895a){_0x4b09f8['push'](_0x4b09f8['shift']());}}}(_0x1784,0x488ac));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x1784(){const _0x4f13e6=['[desire-path]\x20Payload:\x20','137500YOwpcr','indexOf','errorType','YuoEX','some','410925gRwvcS','CuBXp','Missing\x20required\x20argument','join','application/json','--secret','Unknown\x20command','startsWith','errorMessage','Authorization','slice','--api-key','missing_option','3425093cZrpQM','includes','push','238096QwCIqb','xWspZ','toLowerCase','unknown_argument','pVqyY','396738EfQGxB','[desire-path]\x20Failed\x20to\x20send:\x20','6RQVjgg','--token','3|4|7|0|2|5|6|1','has','length','XuQqU','Bearer\x20','--password','test','702386AeCymL','Unknown\x20argument','stringify','3396224BoMbEe','[REDACTED]','error','vMqeK','missing_required_argument'];_0x1784=function(){return _0x4f13e6;};return _0x1784();}import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set([_0x402cd8(0x17e),'-t',_0x402cd8(0x16b),_0x402cd8(0x171),'--apikey','--key',_0x402cd8(0x184),'--pass','--auth','--authorization','--header','--cookie','--credentials']),TOKEN_PATTERNS=[/^(ranger_|rngr_|sk-|pk-|api[_-]?)/i,/^[a-zA-Z0-9_-]{32,}$/,/^eyJ[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+/];function looksLikeToken(_0x1fee97){const _0x40b2a6=_0x402cd8;return TOKEN_PATTERNS[_0x40b2a6(0x165)](_0x3aa48a=>_0x3aa48a[_0x40b2a6(0x185)](_0x1fee97));}export function sanitizeArgs(_0x1ded5b){const _0x432337=_0x402cd8,_0x309bf1={'xWspZ':function(_0x3aef21,_0x46d5a5){return _0x3aef21(_0x46d5a5);},'vMqeK':'[REDACTED]'},_0x19e5e4=[];let _0x4c0e37=![];for(let _0x538929=0x0;_0x538929<_0x1ded5b[_0x432337(0x181)];_0x538929++){const _0x26232a=_0x1ded5b[_0x538929];if(_0x4c0e37){_0x19e5e4[_0x432337(0x175)](_0x432337(0x15c)),_0x4c0e37=![];continue;}if(_0x26232a[_0x432337(0x16d)]('--')||_0x26232a[_0x432337(0x16d)]('-')){const _0x5df0c5=_0x26232a[_0x432337(0x162)]('=');if(_0x5df0c5!==-0x1){const _0x2a5e63=_0x26232a[_0x432337(0x170)](0x0,_0x5df0c5)[_0x432337(0x178)]();if(SENSITIVE_FLAGS[_0x432337(0x180)](_0x2a5e63)){_0x19e5e4['push'](_0x26232a['slice'](0x0,_0x5df0c5)+'=[REDACTED]');continue;}}else{const _0x4432b1=_0x26232a['toLowerCase']();SENSITIVE_FLAGS[_0x432337(0x180)](_0x4432b1)&&(_0x4c0e37=!![]);}_0x19e5e4[_0x432337(0x175)](_0x26232a);}else _0x309bf1[_0x432337(0x177)](looksLikeToken,_0x26232a)?_0x19e5e4[_0x432337(0x175)](_0x309bf1[_0x432337(0x15e)]):_0x19e5e4[_0x432337(0x175)](_0x26232a);}return _0x19e5e4[_0x432337(0x169)]('\x20');}export async function logDesirePath(_0x599b5){const _0x16b67e=_0x402cd8,_0x56b027={'CuBXp':function(_0x14ca29){return _0x14ca29();},'kCgIs':function(_0x58fbb8,_0x1dff91,_0x24d0c8){return _0x58fbb8(_0x1dff91,_0x24d0c8);}};try{const _0x506d49=await _0x56b027[_0x16b67e(0x167)](getToken)['catch'](()=>null),_0x303ffe=getApiBaseUrl(),_0x30cefa=getCurrentVersion(),_0x23016d=_0x506d49?'has_token':'no_token',_0x2d712e={..._0x599b5['metadata'],'authStatus':_0x23016d,'isTty':process['stdout']['isTTY']??![]},_0x2f59de={'Content-Type':_0x16b67e(0x16a)};_0x506d49&&(_0x2f59de[_0x16b67e(0x16f)]=_0x16b67e(0x183)+_0x506d49);const _0xc86078={'rawCommand':_0x599b5['rawCommand'],'errorMessage':_0x599b5[_0x16b67e(0x16e)],'errorType':_0x599b5[_0x16b67e(0x163)],'featureId':_0x599b5['featureId'],'sessionId':_0x599b5['sessionId'],'metadata':_0x2d712e,'cliVersion':_0x30cefa};process['env']['DEBUG']&&(console['error']('[desire-path]\x20Sending\x20log\x20to\x20'+_0x303ffe+'/api/v1/mcp/desire-path-logs'),console[_0x16b67e(0x15d)](_0x16b67e(0x160)+JSON[_0x16b67e(0x188)](_0xc86078,null,0x2))),await _0x56b027['kCgIs'](fetch,_0x303ffe+'/api/v1/mcp/desire-path-logs',{'method':'POST','headers':_0x2f59de,'body':JSON[_0x16b67e(0x188)](_0xc86078)});}catch(_0x1582ef){process['env']['DEBUG']&&console['error'](_0x16b67e(0x17c)+_0x1582ef);}}export function getErrorType(_0x230c24,_0x581b6a){const _0x341f0e=_0x402cd8,_0x29b9c8={'znFjL':_0x341f0e(0x187),'XuQqU':_0x341f0e(0x179),'fifKU':'syntax_error','jXQlk':_0x341f0e(0x15f),'FNOwJ':'runtime_error','YuoEX':'Invalid\x20values','pVqyY':_0x341f0e(0x168)},_0x376e24=_0x341f0e(0x17f)['split']('|');let _0x437c13=0x0;while(!![]){switch(_0x376e24[_0x437c13++]){case'0':if(_0x230c24['includes'](_0x29b9c8['znFjL']))return _0x29b9c8[_0x341f0e(0x182)];continue;case'1':return _0x29b9c8['fifKU'];case'2':if(_0x230c24['includes']('Not\x20enough\x20non-option\x20arguments'))return _0x29b9c8['jXQlk'];continue;case'3':if(_0x581b6a)return _0x29b9c8['FNOwJ'];continue;case'4':if(!_0x230c24)return'unknown';continue;case'5':if(_0x230c24[_0x341f0e(0x174)](_0x29b9c8[_0x341f0e(0x164)]))return'invalid_option_value';continue;case'6':if(_0x230c24[_0x341f0e(0x174)](_0x29b9c8[_0x341f0e(0x17a)]))return _0x341f0e(0x172);continue;case'7':if(_0x230c24[_0x341f0e(0x174)](_0x341f0e(0x16c)))return'unknown_command';continue;}break;}}
1
+ const _0x21f571=_0x1885;(function(_0x1bbaf2,_0x1fe551){const _0x21721b=_0x1885,_0x2f3fbf=_0x1bbaf2();while(!![]){try{const _0x55967a=parseInt(_0x21721b(0x102))/0x1+parseInt(_0x21721b(0x10b))/0x2+-parseInt(_0x21721b(0x116))/0x3*(-parseInt(_0x21721b(0x124))/0x4)+-parseInt(_0x21721b(0xff))/0x5+parseInt(_0x21721b(0x107))/0x6*(-parseInt(_0x21721b(0x108))/0x7)+parseInt(_0x21721b(0xfd))/0x8+parseInt(_0x21721b(0xfa))/0x9*(-parseInt(_0x21721b(0x117))/0xa);if(_0x55967a===_0x1fe551)break;else _0x2f3fbf['push'](_0x2f3fbf['shift']());}catch(_0x39aebf){_0x2f3fbf['push'](_0x2f3fbf['shift']());}}}(_0x3583,0x29800));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';const SENSITIVE_FLAGS=new Set([_0x21f571(0x11c),'-t',_0x21f571(0x12c),_0x21f571(0xf9),'--apikey',_0x21f571(0x100),'--password',_0x21f571(0x105),_0x21f571(0x104),_0x21f571(0x128),'--header',_0x21f571(0x106),_0x21f571(0x125)]),TOKEN_PATTERNS=[/^(ranger_|rngr_|sk-|pk-|api[_-]?)/i,/^[a-zA-Z0-9_-]{32,}$/,/^eyJ[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+/];function looksLikeToken(_0x26f998){const _0x313b75=_0x21f571;return TOKEN_PATTERNS[_0x313b75(0x121)](_0x1eb480=>_0x1eb480[_0x313b75(0x118)](_0x26f998));}function _0x3583(){const _0x4c34ae=['Unknown\x20argument','--api-key','99WlNhcU','pNrYZ','stdout','524184gaKPcn','DEBUG','1350730fvwLnX','--key','/api/v1/mcp/desire-path-logs','15650jqshLQ','iQQnF','--auth','--pass','--cookie','237522XiHXcr','7dBGcuk','length','slice','493142jyvLzD','missing_required_argument','ziRDJ','3|4|7|5|1|6|0|2','join','startsWith','[desire-path]\x20Sending\x20log\x20to\x20','igQSa','Unknown\x20command','toLowerCase','invalid_option_value','771YFGJzX','109030PNFQRB','test','error','qVLID','bKyCE','--token','POST','[REDACTED]','Missing\x20required\x20argument','WvaIP','some','unknown_argument','includes','4232jMTArx','--credentials','push','featureId','--authorization','stringify','runtime_error','syntax_error','--secret','Invalid\x20values','gdNxm','sNXsl','errorMessage','btaRL','has_token','sessionId'];_0x3583=function(){return _0x4c34ae;};return _0x3583();}export function sanitizeArgs(_0x36c8ad){const _0x50f9df=_0x21f571,_0x525ce0={'btaRL':function(_0x4100bb,_0x25850a){return _0x4100bb(_0x25850a);}},_0x1bb35=[];let _0x56f285=![];for(let _0x5037f0=0x0;_0x5037f0<_0x36c8ad[_0x50f9df(0x109)];_0x5037f0++){const _0x3c0e16=_0x36c8ad[_0x5037f0];if(_0x56f285){_0x1bb35[_0x50f9df(0x126)](_0x50f9df(0x11e)),_0x56f285=![];continue;}if(_0x3c0e16[_0x50f9df(0x110)]('--')||_0x3c0e16['startsWith']('-')){const _0x4f7563=_0x3c0e16['indexOf']('=');if(_0x4f7563!==-0x1){const _0x584333=_0x3c0e16['slice'](0x0,_0x4f7563)['toLowerCase']();if(SENSITIVE_FLAGS['has'](_0x584333)){_0x1bb35[_0x50f9df(0x126)](_0x3c0e16[_0x50f9df(0x10a)](0x0,_0x4f7563)+'=[REDACTED]');continue;}}else{const _0xd884f9=_0x3c0e16[_0x50f9df(0x114)]();SENSITIVE_FLAGS['has'](_0xd884f9)&&(_0x56f285=!![]);}_0x1bb35[_0x50f9df(0x126)](_0x3c0e16);}else _0x525ce0[_0x50f9df(0xf5)](looksLikeToken,_0x3c0e16)?_0x1bb35[_0x50f9df(0x126)]('[REDACTED]'):_0x1bb35[_0x50f9df(0x126)](_0x3c0e16);}return _0x1bb35[_0x50f9df(0x10f)]('\x20');}export async function logDesirePath(_0x398f1f){const _0x598909=_0x21f571,_0x1d6bd0={'qVLID':function(_0x180f9c){return _0x180f9c();},'nYfGO':'no_token','ziRDJ':'application/json','WvaIP':function(_0x7e6216,_0x2c6e96,_0x44bbba){return _0x7e6216(_0x2c6e96,_0x44bbba);},'igQSa':_0x598909(0x11d)};try{const _0xa25e23=await _0x1d6bd0[_0x598909(0x11a)](getToken)['catch'](()=>null),_0x4cd41e=getApiBaseUrl(),_0x38040e=getCurrentVersion(),_0x1f3b59=_0xa25e23?_0x598909(0xf6):_0x1d6bd0['nYfGO'],_0x1aac75={..._0x398f1f['metadata'],'authStatus':_0x1f3b59,'isTty':process[_0x598909(0xfc)]['isTTY']??![]},_0x333171={'Content-Type':_0x1d6bd0[_0x598909(0x10d)]};_0xa25e23&&(_0x333171['Authorization']='Bearer\x20'+_0xa25e23);const _0x1d1212={'rawCommand':_0x398f1f['rawCommand'],'errorMessage':_0x398f1f[_0x598909(0xf4)],'errorType':_0x398f1f['errorType'],'featureId':_0x398f1f[_0x598909(0x127)],'sessionId':_0x398f1f[_0x598909(0xf7)],'metadata':_0x1aac75,'cliVersion':_0x38040e};process['env'][_0x598909(0xfe)]&&(console['error'](_0x598909(0x111)+_0x4cd41e+'/api/v1/mcp/desire-path-logs'),console[_0x598909(0x119)]('[desire-path]\x20Payload:\x20'+JSON['stringify'](_0x1d1212,null,0x2))),await _0x1d6bd0[_0x598909(0x120)](fetch,_0x4cd41e+_0x598909(0x101),{'method':_0x1d6bd0[_0x598909(0x112)],'headers':_0x333171,'body':JSON[_0x598909(0x129)](_0x1d1212)});}catch(_0x266bb9){process['env']['DEBUG']&&console[_0x598909(0x119)]('[desire-path]\x20Failed\x20to\x20send:\x20'+_0x266bb9);}}function _0x1885(_0x18e7f2,_0x200040){_0x18e7f2=_0x18e7f2-0xf4;const _0x35839c=_0x3583();let _0x188569=_0x35839c[_0x18e7f2];return _0x188569;}export function getErrorType(_0x30785f,_0x14e53c){const _0x5bdd22=_0x21f571,_0x5ea09b={'gdNxm':_0x5bdd22(0x11f),'lcFBX':_0x5bdd22(0x12b),'ptlQJ':'unknown','sNXsl':_0x5bdd22(0x122),'FrRJH':_0x5bdd22(0x12d),'iQQnF':_0x5bdd22(0x115),'pNrYZ':_0x5bdd22(0x113),'bKyCE':'unknown_command'},_0x1ced28=_0x5bdd22(0x10e)['split']('|');let _0x33ed53=0x0;while(!![]){switch(_0x1ced28[_0x33ed53++]){case'0':if(_0x30785f[_0x5bdd22(0x123)](_0x5ea09b[_0x5bdd22(0x12e)]))return'missing_option';continue;case'1':if(_0x30785f['includes']('Not\x20enough\x20non-option\x20arguments'))return _0x5bdd22(0x10c);continue;case'2':return _0x5ea09b['lcFBX'];case'3':if(_0x14e53c)return _0x5bdd22(0x12a);continue;case'4':if(!_0x30785f)return _0x5ea09b['ptlQJ'];continue;case'5':if(_0x30785f['includes'](_0x5bdd22(0xf8)))return _0x5ea09b[_0x5bdd22(0x12f)];continue;case'6':if(_0x30785f[_0x5bdd22(0x123)](_0x5ea09b['FrRJH']))return _0x5ea09b[_0x5bdd22(0x103)];continue;case'7':if(_0x30785f[_0x5bdd22(0x123)](_0x5ea09b[_0x5bdd22(0xfb)]))return _0x5ea09b[_0x5bdd22(0x11b)];continue;}break;}}
@@ -1 +1 @@
1
- const _0x21595a=_0x57a4;(function(_0x4495f1,_0x3f6caf){const _0x456c00=_0x57a4,_0x5c36ae=_0x4495f1();while(!![]){try{const _0x5962bd=parseInt(_0x456c00(0xcd))/0x1+-parseInt(_0x456c00(0xb2))/0x2+parseInt(_0x456c00(0xaf))/0x3*(parseInt(_0x456c00(0xc5))/0x4)+parseInt(_0x456c00(0xc2))/0x5+-parseInt(_0x456c00(0xd1))/0x6+parseInt(_0x456c00(0xc4))/0x7+-parseInt(_0x456c00(0xb0))/0x8*(parseInt(_0x456c00(0xde))/0x9);if(_0x5962bd===_0x3f6caf)break;else _0x5c36ae['push'](_0x5c36ae['shift']());}catch(_0x225fdb){_0x5c36ae['push'](_0x5c36ae['shift']());}}}(_0x31ea,0x5d1dc));import{exec}from'child_process';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';function _0x31ea(){const _0xeeef88=['Authentication\x20failed','urn:ietf:params:oauth:grant-type:device_code','device_code','error','GSEJy','oXASG','GET','\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a','slow_down','Yzgdl','log','2666390eAXeBP','interval','4349667xkBKfN','1312764FbsnKY','application/x-www-form-urlencoded','name','workosClientId','CLI\x20Key','JVSFh','apiKeys','hqKtN','253982LtiIDT','from','apiKey','\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...','3078498gUkRWl','org_id','wIOHv','YrhEv','now','https://api.workos.com/user_management/authenticate','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','stringify','application/json','split','sNOXi','oWVOq','text','1899pShsQY','stdout','NRIXy','utf-8','qdsTX','parse','refresh_token','xdg-open','json','https://api.workos.com/user_management/authorize/device','dfnnC','\x27s\x20CLI\x20Key','dBgkj','expires_in','authorization_pending','status','error_description','access_token','length','filter','6LRbsoI','21400rmZTGj','open','1212222HRUmoe','BQuTt','write','IPRYP','Failed\x20to\x20request\x20device\x20code:\x20'];_0x31ea=function(){return _0xeeef88;};return _0x31ea();}import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL=_0x21595a(0xa4),WORKOS_TOKEN_URL=_0x21595a(0xd6);export async function requestDeviceCode(_0x10175f){const _0xf31eba=_0x21595a,_0x37786f={'EFDWL':function(_0x2bb937,_0x41c44e,_0xa0a7fd){return _0x2bb937(_0x41c44e,_0xa0a7fd);},'qdsTX':_0xf31eba(0xc6)},_0x1cc434=await _0x37786f['EFDWL'](fetch,WORKOS_DEVICE_AUTH_URL,{'method':'POST','headers':{'Content-Type':_0x37786f[_0xf31eba(0xe2)]},'body':new URLSearchParams({'client_id':_0x10175f})});if(!_0x1cc434['ok']){const _0x420b0=await _0x1cc434[_0xf31eba(0xdd)]();throw new Error(_0xf31eba(0xb6)+_0x1cc434[_0xf31eba(0xaa)]+'\x20'+_0x420b0);}return _0x1cc434[_0xf31eba(0xa3)]();}export async function pollForTokens(_0xd55d95,_0x3a3ed9,_0x29cb8e,_0x342a8b){const _0x379b01=_0x21595a,_0x349e06={'JVSFh':function(_0xdcf8e1,_0x3c606b){return _0xdcf8e1+_0x3c606b;},'YrhEv':function(_0x2e8a71,_0x2c8af8){return _0x2e8a71*_0x2c8af8;},'mkUwb':function(_0x51bcd9,_0x2480c6,_0x4a4870){return _0x51bcd9(_0x2480c6,_0x4a4870);},'sNOXi':'POST','KFTeC':'application/x-www-form-urlencoded','aTmou':_0x379b01(0xb8),'wIOHv':_0x379b01(0xa9),'Yzgdl':'Device\x20authorization\x20timed\x20out'},_0x1f26c8=_0x349e06[_0x379b01(0xca)](Date[_0x379b01(0xd5)](),_0x349e06[_0x379b01(0xd4)](_0x342a8b,0x3e8));let _0x20789e=_0x349e06[_0x379b01(0xd4)](_0x29cb8e,0x3e8);while(Date[_0x379b01(0xd5)]()<_0x1f26c8){await sleep(_0x20789e);const _0x53d7cb=await _0x349e06['mkUwb'](fetch,WORKOS_TOKEN_URL,{'method':_0x349e06[_0x379b01(0xdb)],'headers':{'Content-Type':_0x349e06['KFTeC']},'body':new URLSearchParams({'client_id':_0xd55d95,'device_code':_0x3a3ed9,'grant_type':_0x349e06['aTmou']})});if(_0x53d7cb['ok'])return _0x53d7cb[_0x379b01(0xa3)]();const _0x5b0e0a=await _0x53d7cb['json']();if(_0x5b0e0a[_0x379b01(0xba)]===_0x349e06[_0x379b01(0xd3)])continue;if(_0x5b0e0a[_0x379b01(0xba)]===_0x379b01(0xbf)){_0x20789e+=0x3e8;continue;}throw new Error(_0x5b0e0a[_0x379b01(0xab)]||_0x5b0e0a['error']||_0x379b01(0xb7));}throw new Error(_0x349e06[_0x379b01(0xc0)]);}async function fetchUserProfile(_0x42339c){const _0x514803=_0x21595a,_0x15b911={'uLPaM':function(_0x152d67,_0x12ac27,_0x1c8872){return _0x152d67(_0x12ac27,_0x1c8872);},'dBgkj':_0x514803(0xbd)},_0x3879e2=getApiBaseUrl();try{const _0x5db13c=await _0x15b911['uLPaM'](fetch,_0x3879e2+'/organization/me',{'method':_0x15b911[_0x514803(0xa7)],'headers':{'workos-token':_0x42339c}});if(_0x5db13c['ok'])return _0x5db13c['json']();}catch{}return null;}function buildKeyName(_0x301f40,_0x324522){const _0x9a22de=_0x21595a,_0x5e0d5f={'kcWeo':function(_0x383727,_0x32d0db){return _0x383727+_0x32d0db;}},_0x2aae38=_0x324522[_0x9a22de(0xae)](_0x59ec2c=>_0x59ec2c[_0x9a22de(0xc7)]===_0x301f40||_0x59ec2c[_0x9a22de(0xc7)]['startsWith'](_0x301f40+'\x20('));if(_0x2aae38[_0x9a22de(0xad)]===0x0)return _0x301f40;return _0x301f40+'\x20('+_0x5e0d5f['kcWeo'](_0x2aae38['length'],0x1)+')';}export async function provisionApiKey(_0x3ea15f){const _0x47c6f8=_0x21595a,_0x167ffc={'Golgl':function(_0x681efb,_0x573ccd){return _0x681efb(_0x573ccd);},'VCDmq':_0x47c6f8(0xc9),'lPyPa':_0x47c6f8(0xbd),'hqKtN':function(_0x52aa15,_0x31d6c8,_0x5c84cb){return _0x52aa15(_0x31d6c8,_0x5c84cb);},'oXASG':'POST','xaMtm':'mcp:write'},_0x3a85a9=getApiBaseUrl(),_0x2077ad={'Content-Type':_0x47c6f8(0xd9),'workos-token':_0x3ea15f},_0x35151a=await _0x167ffc['Golgl'](fetchUserProfile,_0x3ea15f),_0x133eef=_0x35151a?.['firstName']||_0x35151a?.['email']?.[_0x47c6f8(0xda)]('@')[0x0],_0x4822b9=_0x133eef?_0x133eef+_0x47c6f8(0xa6):_0x167ffc['VCDmq'];let _0x3bd9c0=[];try{const _0xab06b5=await fetch(_0x3a85a9+'/api-keys',{'method':_0x167ffc['lPyPa'],'headers':_0x2077ad});if(_0xab06b5['ok']){const _0x418c37=await _0xab06b5['json']();_0x3bd9c0=_0x418c37[_0x47c6f8(0xcb)];}}catch{}const _0x52de9f=_0x167ffc[_0x47c6f8(0xcc)](buildKeyName,_0x4822b9,_0x3bd9c0),_0x5d81b4=await fetch(_0x3a85a9+'/api-keys',{'method':_0x167ffc[_0x47c6f8(0xbc)],'headers':_0x2077ad,'body':JSON[_0x47c6f8(0xd8)]({'name':_0x52de9f,'scope':_0x167ffc['xaMtm']})});if(!_0x5d81b4['ok']){const _0x558208=await _0x5d81b4[_0x47c6f8(0xdd)]();throw new Error('Failed\x20to\x20provision\x20API\x20key:\x20'+_0x5d81b4['status']+'\x20'+_0x558208);}const _0x418daf=await _0x5d81b4['json']();return _0x418daf[_0x47c6f8(0xcf)]['token'];}export function openBrowser(_0x39979e){const _0xa9735d=_0x21595a,_0x568299={'fQOKJ':function(_0x254725,_0x5d8967){return _0x254725(_0x5d8967);}},_0x37dd41=process['platform'],_0x2e3ffa=_0x37dd41==='darwin'?_0xa9735d(0xb1):_0x37dd41==='win32'?'start':_0xa9735d(0xe5);_0x568299['fQOKJ'](exec,_0x2e3ffa+'\x20'+JSON[_0xa9735d(0xd8)](_0x39979e));}function decodeJwtPayload(_0x4a9cef){const _0x38b528=_0x21595a,_0x1e90c7={'IPRYP':_0x38b528(0xe1)},_0x5e197e=_0x4a9cef[_0x38b528(0xda)]('.');if(_0x5e197e['length']!==0x3)throw new Error('Invalid\x20JWT\x20format');const _0x616edc=Buffer[_0x38b528(0xce)](_0x5e197e[0x1],'base64url')['toString'](_0x1e90c7[_0x38b528(0xb5)]);return JSON[_0x38b528(0xe3)](_0x616edc);}function _0x57a4(_0x840047,_0x35d9b5){_0x840047=_0x840047-0xa3;const _0x31ea84=_0x31ea();let _0x57a401=_0x31ea84[_0x840047];return _0x57a401;}async function selfServeSignup(_0x3d660d){const _0x3eae47=_0x21595a,_0x19910e={'AZanG':'POST','GSEJy':'application/json'},_0x74ac3d=getApiBaseUrl(),_0x468646=await fetch(_0x74ac3d+'/organization/self-serve-signup',{'method':_0x19910e['AZanG'],'headers':{'Content-Type':_0x19910e[_0x3eae47(0xbb)],'workos-token':_0x3d660d}});if(!_0x468646['ok']){const _0x526e1f=await _0x468646['text']();throw new Error('Failed\x20to\x20create\x20organization:\x20'+_0x468646[_0x3eae47(0xaa)]+'\x20'+_0x526e1f);}return _0x468646['json']();}async function refreshTokenWithOrg(_0xab7972,_0x470220,_0xfe7f30){const _0x3502c8=_0x21595a,_0xa3ae0e={'NRIXy':function(_0x35581e,_0x4a27ec,_0x4e388a){return _0x35581e(_0x4a27ec,_0x4e388a);}},_0x4e427a=await _0xa3ae0e[_0x3502c8(0xe0)](fetch,WORKOS_TOKEN_URL,{'method':'POST','headers':{'Content-Type':'application/x-www-form-urlencoded'},'body':new URLSearchParams({'client_id':_0xab7972,'grant_type':'refresh_token','refresh_token':_0x470220,'organization_id':_0xfe7f30})});if(!_0x4e427a['ok']){const _0x3186a3=await _0x4e427a['text']();throw new Error(_0x3502c8(0xd7)+_0x4e427a['status']+'\x20'+_0x3186a3);}return _0x4e427a[_0x3502c8(0xa3)]();}export async function runDeviceAuthFlow(){const _0x291a04=_0x21595a,_0x16f81d={'aZGTT':function(_0x4aaaee,_0x271235,_0x2f426,_0x463335,_0x5e0059){return _0x4aaaee(_0x271235,_0x2f426,_0x463335,_0x5e0059);},'dfnnC':function(_0x4c99f6,_0x761f99){return _0x4c99f6(_0x761f99);},'BQuTt':'Setting\x20up\x20your\x20organization...','oWVOq':function(_0x4f3b55,_0x2da936,_0x3238c1,_0x26151e){return _0x4f3b55(_0x2da936,_0x3238c1,_0x26151e);}},_0xc50cc8=getCurrentEnvironment(),_0x27bb5c=ENVIRONMENT_CONFIGS[_0xc50cc8][_0x291a04(0xc8)],_0x12a1f8=await requestDeviceCode(_0x27bb5c);console['log'](_0x291a04(0xd0)),console[_0x291a04(0xc1)](_0x291a04(0xbe)),openBrowser(_0x12a1f8['verification_uri_complete']),console[_0x291a04(0xc1)]('If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20'+_0x12a1f8['verification_uri_complete']),console[_0x291a04(0xc1)]('Code:\x20'+_0x12a1f8['user_code']+'\x0a'),process['stdout']['write']('Waiting\x20for\x20authentication...');let _0x4270be=await _0x16f81d['aZGTT'](pollForTokens,_0x27bb5c,_0x12a1f8[_0x291a04(0xb9)],_0x12a1f8[_0x291a04(0xc3)],_0x12a1f8[_0x291a04(0xa8)]);console['log']('\x20✓');const _0x5ee24b=_0x16f81d[_0x291a04(0xa5)](decodeJwtPayload,_0x4270be['access_token']);if(!_0x5ee24b[_0x291a04(0xd2)]){process['stdout'][_0x291a04(0xb4)](_0x16f81d[_0x291a04(0xb3)]);const {organizationId:_0x20526c}=await selfServeSignup(_0x4270be[_0x291a04(0xac)]);_0x4270be=await _0x16f81d[_0x291a04(0xdc)](refreshTokenWithOrg,_0x27bb5c,_0x4270be[_0x291a04(0xe4)],_0x20526c),console['log']('\x20✓');}process[_0x291a04(0xdf)]['write']('Provisioning\x20API\x20key...');const _0x52c12b=await _0x16f81d['dfnnC'](provisionApiKey,_0x4270be['access_token']);return console[_0x291a04(0xc1)]('\x20✓'),await _0x16f81d['dfnnC'](storeToken,_0x52c12b),_0x4270be[_0x291a04(0xe4)]&&await storeRefreshToken(_0x4270be['refresh_token']),_0x52c12b;}function sleep(_0x5b8809){return new Promise(_0x569f38=>setTimeout(_0x569f38,_0x5b8809));}
1
+ const _0x49950f=_0x40f2;(function(_0x48d457,_0x4f0149){const _0x38d109=_0x40f2,_0x33b344=_0x48d457();while(!![]){try{const _0xc6fe63=-parseInt(_0x38d109(0x17f))/0x1+parseInt(_0x38d109(0x1a2))/0x2+parseInt(_0x38d109(0x19a))/0x3+-parseInt(_0x38d109(0x186))/0x4*(parseInt(_0x38d109(0x1a0))/0x5)+-parseInt(_0x38d109(0x1a1))/0x6+-parseInt(_0x38d109(0x1ae))/0x7*(parseInt(_0x38d109(0x1b9))/0x8)+-parseInt(_0x38d109(0x1b1))/0x9*(-parseInt(_0x38d109(0x19f))/0xa);if(_0xc6fe63===_0x4f0149)break;else _0x33b344['push'](_0x33b344['shift']());}catch(_0x5273bd){_0x33b344['push'](_0x33b344['shift']());}}}(_0x2e1b,0x9a92a));import{exec}from'child_process';import _0x177733 from'inquirer';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL='https://api.workos.com/user_management/authorize/device',WORKOS_TOKEN_URL=_0x49950f(0x1cb);export async function requestDeviceCode(_0x46155f){const _0x5b0f51=_0x49950f,_0x244154={'KocRN':_0x5b0f51(0x18d),'NMrZI':'application/x-www-form-urlencoded'},_0x1b225d=await fetch(WORKOS_DEVICE_AUTH_URL,{'method':_0x244154['KocRN'],'headers':{'Content-Type':_0x244154[_0x5b0f51(0x1bc)]},'body':new URLSearchParams({'client_id':_0x46155f})});if(!_0x1b225d['ok']){const _0x387ef8=await _0x1b225d['text']();throw new Error(_0x5b0f51(0x189)+_0x1b225d[_0x5b0f51(0x1b8)]+'\x20'+_0x387ef8);}return _0x1b225d['json']();}function _0x2e1b(){const _0x181180=['selected','Invalid\x20JWT\x20format','error_description','log','https://api.workos.com/user_management/authenticate','platform','application/json','104991piPRth','from','XTURp','win32','OhJMu','LrtGs','\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a','1632016XMHnFo','bUvBU','parse','Failed\x20to\x20request\x20device\x20code:\x20','isTTY','start','AdReV','POST','DICif','PVXCi','Multiple\x20organizations\x20available\x20but\x20cannot\x20prompt\x20for\x20selection\x20in\x20non-interactive\x20mode.\x0a','json','startsWith','map','MLOIW','If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20','prompt','stdout','\x27s\x20CLI\x20Key','TcQXX','1571100skkKlp','name','list','refresh_token','utf-8','26345610kWErpx','15gexVsa','5690058PgfoRe','1252462BSNqao','XBZmV','split','filter','error','bPGip','xGOAN','now','Device\x20authorization\x20timed\x20out','qIeWK','expires_in','length','112QheVjs','open','xdg-open','9VPsCau','jSWff','CLI\x20Key','HRjPf','apiKeys','ZAqHr','text','status','437008ZPnBTh','org_id','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','NMrZI','organizationId','FzIwj','write','stdin','/organization/me','jjNTe','Code:\x20','workosClientId','/api-keys','Setting\x20up\x20your\x20organization...'];_0x2e1b=function(){return _0x181180;};return _0x2e1b();}export async function pollForTokens(_0x2b85a6,_0x4e4519,_0x491e93,_0x3026ca){const _0x3612ed=_0x49950f,_0x406eea={'AdReV':function(_0x489ff9,_0x51b459){return _0x489ff9*_0x51b459;},'uFSML':function(_0x4745b6,_0x7cf62c){return _0x4745b6<_0x7cf62c;},'rgCWc':function(_0x40ae49,_0x25fb0e){return _0x40ae49(_0x25fb0e);},'LrtGs':'application/x-www-form-urlencoded','OUBlO':'authorization_pending','jSWff':function(_0x4943c7,_0x52ded5){return _0x4943c7===_0x52ded5;},'IMvWt':'Authentication\x20failed','jjNTe':_0x3612ed(0x1aa)},_0x5017c3=Date[_0x3612ed(0x1a9)]()+_0x406eea[_0x3612ed(0x18c)](_0x3026ca,0x3e8);let _0x354e89=_0x406eea[_0x3612ed(0x18c)](_0x491e93,0x3e8);while(_0x406eea['uFSML'](Date[_0x3612ed(0x1a9)](),_0x5017c3)){await _0x406eea['rgCWc'](sleep,_0x354e89);const _0xbd59cf=await fetch(WORKOS_TOKEN_URL,{'method':'POST','headers':{'Content-Type':_0x406eea[_0x3612ed(0x184)]},'body':new URLSearchParams({'client_id':_0x2b85a6,'device_code':_0x4e4519,'grant_type':'urn:ietf:params:oauth:grant-type:device_code'})});if(_0xbd59cf['ok'])return _0xbd59cf[_0x3612ed(0x191)]();const _0x31f7f9=await _0xbd59cf['json']();if(_0x31f7f9['error']===_0x406eea['OUBlO'])continue;if(_0x406eea[_0x3612ed(0x1b2)](_0x31f7f9[_0x3612ed(0x1a6)],'slow_down')){_0x354e89+=0x3e8;continue;}throw new Error(_0x31f7f9[_0x3612ed(0x1c9)]||_0x31f7f9['error']||_0x406eea['IMvWt']);}throw new Error(_0x406eea[_0x3612ed(0x1c2)]);}async function fetchUserProfile(_0x33bcd0){const _0x18a544=_0x49950f,_0x8f703c={'qPxgi':function(_0x58ea5b){return _0x58ea5b();}},_0x30ed0d=_0x8f703c['qPxgi'](getApiBaseUrl);try{const _0x561110=await fetch(_0x30ed0d+_0x18a544(0x1c1),{'method':'GET','headers':{'workos-token':_0x33bcd0}});if(_0x561110['ok'])return _0x561110['json']();}catch{}return null;}function buildKeyName(_0x3f2cda,_0x570c5e){const _0x54cc66=_0x49950f,_0x707126={'ylJTl':function(_0x252dea,_0x1fd33f){return _0x252dea===_0x1fd33f;},'bUvBU':function(_0x430b2c,_0x5023ec){return _0x430b2c+_0x5023ec;}},_0x5270d0=_0x570c5e[_0x54cc66(0x1a5)](_0x215002=>_0x215002['name']===_0x3f2cda||_0x215002['name'][_0x54cc66(0x192)](_0x3f2cda+'\x20('));if(_0x707126['ylJTl'](_0x5270d0['length'],0x0))return _0x3f2cda;return _0x3f2cda+'\x20('+_0x707126[_0x54cc66(0x187)](_0x5270d0['length'],0x1)+')';}export async function provisionApiKey(_0x3ba9db){const _0x5114b0=_0x49950f,_0x522e12={'axpLN':'GET','qIeWK':'POST','XTURp':'mcp:write'},_0x7d6217=getApiBaseUrl(),_0x67ba7d={'Content-Type':'application/json','workos-token':_0x3ba9db},_0x34f4e6=await fetchUserProfile(_0x3ba9db),_0x4f8cac=_0x34f4e6?.['firstName']||_0x34f4e6?.['email']?.[_0x5114b0(0x1a4)]('@')[0x0],_0x397e0c=_0x4f8cac?_0x4f8cac+_0x5114b0(0x198):_0x5114b0(0x1b3);let _0x21b290=[];try{const _0x561a6f=await fetch(_0x7d6217+'/api-keys',{'method':_0x522e12['axpLN'],'headers':_0x67ba7d});if(_0x561a6f['ok']){const _0x4ecf43=await _0x561a6f[_0x5114b0(0x191)]();_0x21b290=_0x4ecf43[_0x5114b0(0x1b5)];}}catch{}const _0x189656=buildKeyName(_0x397e0c,_0x21b290),_0x47ed45=await fetch(_0x7d6217+_0x5114b0(0x1c5),{'method':_0x522e12[_0x5114b0(0x1ab)],'headers':_0x67ba7d,'body':JSON['stringify']({'name':_0x189656,'scope':_0x522e12[_0x5114b0(0x181)]})});if(!_0x47ed45['ok']){const _0x1395c5=await _0x47ed45[_0x5114b0(0x1b7)]();throw new Error('Failed\x20to\x20provision\x20API\x20key:\x20'+_0x47ed45['status']+'\x20'+_0x1395c5);}const _0x56dfe3=await _0x47ed45[_0x5114b0(0x191)]();return _0x56dfe3['apiKey']['token'];}export function openBrowser(_0x3a915a){const _0x40ea09=_0x49950f,_0xb346c6={'bPGip':function(_0x759f07,_0x326b88){return _0x759f07===_0x326b88;},'xGOAN':_0x40ea09(0x18b),'HeFqk':function(_0x2f5e82,_0x1c5999){return _0x2f5e82(_0x1c5999);}},_0x30e516=process[_0x40ea09(0x17d)],_0x51fe16=_0x30e516==='darwin'?_0x40ea09(0x1af):_0xb346c6[_0x40ea09(0x1a7)](_0x30e516,_0x40ea09(0x182))?_0xb346c6[_0x40ea09(0x1a8)]:_0x40ea09(0x1b0);_0xb346c6['HeFqk'](exec,_0x51fe16+'\x20'+JSON['stringify'](_0x3a915a));}function decodeJwtPayload(_0x3ebbdc){const _0x3de612=_0x49950f,_0x49e24c=_0x3ebbdc['split']('.');if(_0x49e24c[_0x3de612(0x1ad)]!==0x3)throw new Error(_0x3de612(0x1c8));const _0x5029e5=Buffer[_0x3de612(0x180)](_0x49e24c[0x1],'base64url')['toString'](_0x3de612(0x19e));return JSON[_0x3de612(0x188)](_0x5029e5);}async function selfServeSignup(_0x5daa1f){const _0x14097a=_0x49950f,_0x42d537={'VAABP':function(_0x321e7f){return _0x321e7f();},'MLOIW':function(_0x2b0c43,_0x5c9d80,_0x202e4b){return _0x2b0c43(_0x5c9d80,_0x202e4b);},'DICif':_0x14097a(0x18d)},_0x579c86=_0x42d537['VAABP'](getApiBaseUrl),_0x3a18bb=await _0x42d537[_0x14097a(0x194)](fetch,_0x579c86+'/organization/self-serve-signup',{'method':_0x42d537[_0x14097a(0x18e)],'headers':{'Content-Type':_0x14097a(0x17e),'workos-token':_0x5daa1f}});if(!_0x3a18bb['ok']){const _0x33fb7d=await _0x3a18bb[_0x14097a(0x1b7)]();throw new Error('Failed\x20to\x20create\x20organization:\x20'+_0x3a18bb['status']+'\x20'+_0x33fb7d);}return _0x3a18bb['json']();}async function fetchMyMemberships(_0x34a34c){const _0x54748c=_0x49950f,_0x10e764={'PVXCi':function(_0x23ea81){return _0x23ea81();},'RSxrY':function(_0x5a1a3e,_0x409b7f,_0x50df7f){return _0x5a1a3e(_0x409b7f,_0x50df7f);}},_0x4340cf=_0x10e764[_0x54748c(0x18f)](getApiBaseUrl),_0x53edab=await _0x10e764['RSxrY'](fetch,_0x4340cf+'/organization/my-memberships',{'method':'GET','headers':{'workos-token':_0x34a34c}});if(!_0x53edab['ok']){const _0x4c4782=await _0x53edab['text']();throw new Error('Failed\x20to\x20fetch\x20memberships:\x20'+_0x53edab['status']+'\x20'+_0x4c4782);}const _0x7fba42=await _0x53edab[_0x54748c(0x191)]();return _0x7fba42['memberships'];}async function refreshTokenWithOrg(_0x3a2a37,_0x5d66d6,_0x4afc50){const _0xc00471=_0x49950f,_0x46c79a={'FzIwj':function(_0x294d2f,_0x1507b8,_0x46ba9f){return _0x294d2f(_0x1507b8,_0x46ba9f);}},_0x1a04bb=await _0x46c79a[_0xc00471(0x1be)](fetch,WORKOS_TOKEN_URL,{'method':'POST','headers':{'Content-Type':'application/x-www-form-urlencoded'},'body':new URLSearchParams({'client_id':_0x3a2a37,'grant_type':'refresh_token','refresh_token':_0x5d66d6,'organization_id':_0x4afc50})});if(!_0x1a04bb['ok']){const _0x5bc1de=await _0x1a04bb[_0xc00471(0x1b7)]();throw new Error(_0xc00471(0x1bb)+_0x1a04bb['status']+'\x20'+_0x5bc1de);}return _0x1a04bb[_0xc00471(0x191)]();}export async function runDeviceAuthFlow(){const _0x5770cb=_0x49950f,_0xb696f9={'guGRK':function(_0x3bbe3a){return _0x3bbe3a();},'QDfdY':function(_0x58292d,_0x150577){return _0x58292d(_0x150577);},'TcQXX':function(_0x2a2d3f,_0x7924c5){return _0x2a2d3f(_0x7924c5);},'uAYnK':'Waiting\x20for\x20authentication...','OhJMu':function(_0x398d90,_0x1ebea8,_0x2c6cec,_0x23fc15,_0x318fcb){return _0x398d90(_0x1ebea8,_0x2c6cec,_0x23fc15,_0x318fcb);},'lFvMM':function(_0x5554ba,_0xeb0bbe){return _0x5554ba===_0xeb0bbe;},'cpwsc':_0x5770cb(0x1c6),'XBZmV':function(_0x2aaaa5,_0x41c93a){return _0x2aaaa5+_0x41c93a;},'HRjPf':_0x5770cb(0x190),'IbiQQ':_0x5770cb(0x19c),'ZAqHr':'Select\x20an\x20organization:','eQUVQ':function(_0x790ed0,_0x22a4e6,_0x4da33a,_0x2d619e){return _0x790ed0(_0x22a4e6,_0x4da33a,_0x2d619e);},'PaCsB':function(_0x51c90b,_0x403103){return _0x51c90b(_0x403103);}},_0xc9d11c=_0xb696f9['guGRK'](getCurrentEnvironment),_0x53fee7=ENVIRONMENT_CONFIGS[_0xc9d11c][_0x5770cb(0x1c4)],_0x38ece7=await _0xb696f9['QDfdY'](requestDeviceCode,_0x53fee7);console['log']('\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...'),console[_0x5770cb(0x1ca)](_0x5770cb(0x185)),_0xb696f9[_0x5770cb(0x199)](openBrowser,_0x38ece7['verification_uri_complete']),console[_0x5770cb(0x1ca)](_0x5770cb(0x195)+_0x38ece7['verification_uri_complete']),console[_0x5770cb(0x1ca)](_0x5770cb(0x1c3)+_0x38ece7['user_code']+'\x0a'),process[_0x5770cb(0x197)]['write'](_0xb696f9['uAYnK']);let _0x519cf5=await _0xb696f9[_0x5770cb(0x183)](pollForTokens,_0x53fee7,_0x38ece7['device_code'],_0x38ece7['interval'],_0x38ece7[_0x5770cb(0x1ac)]);console[_0x5770cb(0x1ca)]('\x20✓');const _0x51c21d=decodeJwtPayload(_0x519cf5['access_token']);if(!_0x51c21d[_0x5770cb(0x1ba)]){const _0x574217=await fetchMyMemberships(_0x519cf5['access_token']);let _0x947e29;if(_0xb696f9['lFvMM'](_0x574217['length'],0x0)){process[_0x5770cb(0x197)][_0x5770cb(0x1bf)](_0xb696f9['cpwsc']);const _0x299da8=await _0xb696f9['QDfdY'](selfServeSignup,_0x519cf5['access_token']);_0x947e29=_0x299da8['organizationId'],console[_0x5770cb(0x1ca)]('\x20✓');}else{if(_0x574217['length']===0x1)_0x947e29=_0x574217[0x0]['organizationId'],console[_0x5770cb(0x1ca)]('Using\x20organization:\x20'+_0x574217[0x0][_0x5770cb(0x19b)]);else{const _0x45d2f2=process[_0x5770cb(0x1c0)][_0x5770cb(0x18a)]&&process['stdout']['isTTY'];if(!_0x45d2f2)throw new Error(_0xb696f9[_0x5770cb(0x1a3)](_0xb696f9[_0x5770cb(0x1b4)],'Use:\x20ranger\x20setup\x20[token]\x20or\x20set\x20RANGER_CLI_TOKEN.'));const {selected:_0x12da77}=await _0x177733[_0x5770cb(0x196)]([{'type':_0xb696f9['IbiQQ'],'name':_0x5770cb(0x1c7),'message':_0xb696f9[_0x5770cb(0x1b6)],'choices':_0x574217[_0x5770cb(0x193)](_0xfde5b7=>({'name':_0xfde5b7['name'],'value':_0xfde5b7[_0x5770cb(0x1bd)]}))}]);_0x947e29=_0x12da77;}}_0x519cf5=await _0xb696f9['eQUVQ'](refreshTokenWithOrg,_0x53fee7,_0x519cf5[_0x5770cb(0x19d)],_0x947e29);}process[_0x5770cb(0x197)]['write']('Provisioning\x20API\x20key...');const _0x48a7b7=await provisionApiKey(_0x519cf5['access_token']);return console['log']('\x20✓'),await _0xb696f9['TcQXX'](storeToken,_0x48a7b7),_0x519cf5[_0x5770cb(0x19d)]&&await _0xb696f9['PaCsB'](storeRefreshToken,_0x519cf5[_0x5770cb(0x19d)]),_0x48a7b7;}function _0x40f2(_0x52547a,_0x100d1d){_0x52547a=_0x52547a-0x17d;const _0x2e1bcb=_0x2e1b();let _0x40f220=_0x2e1bcb[_0x52547a];return _0x40f220;}function sleep(_0x18b6e2){return new Promise(_0x350678=>setTimeout(_0x350678,_0x18b6e2));}
@@ -1 +1 @@
1
- const _0x27578d=_0x5149;function _0x5149(_0x1aa914,_0x27a412){_0x1aa914=_0x1aa914-0x1bc;const _0x3d5679=_0x3d56();let _0x5149b4=_0x3d5679[_0x1aa914];return _0x5149b4;}(function(_0xe9399d,_0xad5244){const _0x103d5f=_0x5149,_0x4a035f=_0xe9399d();while(!![]){try{const _0x83b719=-parseInt(_0x103d5f(0x1c2))/0x1+-parseInt(_0x103d5f(0x1c0))/0x2+-parseInt(_0x103d5f(0x1c8))/0x3+-parseInt(_0x103d5f(0x1c6))/0x4*(parseInt(_0x103d5f(0x1c9))/0x5)+parseInt(_0x103d5f(0x1ca))/0x6+parseInt(_0x103d5f(0x1bc))/0x7+-parseInt(_0x103d5f(0x1c7))/0x8*(-parseInt(_0x103d5f(0x1c4))/0x9);if(_0x83b719===_0xad5244)break;else _0x4a035f['push'](_0x4a035f['shift']());}catch(_0x3d89c6){_0x4a035f['push'](_0x4a035f['shift']());}}}(_0x3d56,0x63b1c));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':'https://api.ranger.net','workosClientId':_0x27578d(0x1c1),'aiProxyUrl':_0x27578d(0x1c3)},'staging':{'apiBaseUrl':_0x27578d(0x1be),'workosClientId':_0x27578d(0x1cb),'aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app'},'local':{'apiBaseUrl':'http://localhost:8080','workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':_0x27578d(0x1bd)}};export const DEFAULT_ENVIRONMENT=_0x27578d(0x1bf);function _0x3d56(){const _0x5ec4be=['40HmgRgz','6165heLlRQ','484255kTwdZJ','3484440TpuvoG','client_01J9CBYM2DKWV9HM17D95Z540K','env','4950519YgPJIU','http://localhost:8090','https://api.staging.ranger.net','prod','224750PNLhnK','client_01J9CBYM7M5ZETCF7G6614DXR2','473470waZcuJ','https://ai-proxy-716115358910.us-central1.run.app','172251snFtxp','geGTK','16mzJPQH'];_0x3d56=function(){return _0x5ec4be;};return _0x3d56();}export function isValidEnvironment(_0x6e11ba){const _0x111f31=_0x27578d,_0xf10a7e={'geGTK':function(_0x321c84,_0x43a676){return _0x321c84===_0x43a676;}};return _0x6e11ba==='prod'||_0xf10a7e[_0x111f31(0x1c5)](_0x6e11ba,'staging')||_0x6e11ba==='local';}export function getCurrentEnvironment(){const _0x47ab9d=_0x27578d,_0x28bdae={'QIOOH':function(_0x462878,_0x6fa869){return _0x462878(_0x6fa869);}},_0x5a2d46=process[_0x47ab9d(0x1cc)]['RANGER_CLI_ENV'];if(_0x5a2d46&&_0x28bdae['QIOOH'](isValidEnvironment,_0x5a2d46))return _0x5a2d46;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){return ENVIRONMENT_CONFIGS[getCurrentEnvironment()]['apiBaseUrl'];}export function getAiProxyUrl(){return ENVIRONMENT_CONFIGS[getCurrentEnvironment()]['aiProxyUrl'];}
1
+ const _0x3e449b=_0x478f;function _0x478f(_0x3cae63,_0x1d89bf){_0x3cae63=_0x3cae63-0xef;const _0x19ec10=_0x19ec();let _0x478fde=_0x19ec10[_0x3cae63];return _0x478fde;}function _0x19ec(){const _0x35e1bc=['apiBaseUrl','client_01J9CBYM2DKWV9HM17D95Z540K','300248EzntuR','pwVcI','aiProxyUrl','https://ai-proxy-716115358910.us-central1.run.app','2757gHFGpC','14635QhoUVu','CZIpV','local','490094PPnbyK','15161020OjoNaF','client_01J9CBYM7M5ZETCF7G6614DXR2','5274906RyRmPy','UnwCV','168524IpJChj','1662bdfWbi','aktOf','RANGER_CLI_ENV','2792xWfQRM','http://localhost:8090','22IJPJna','171VyoFRM','prod'];_0x19ec=function(){return _0x35e1bc;};return _0x19ec();}(function(_0x43e3c4,_0x3a20df){const _0x2be1f9=_0x478f,_0x1ac515=_0x43e3c4();while(!![]){try{const _0x455ab7=parseInt(_0x2be1f9(0xf7))/0x1+parseInt(_0x2be1f9(0xfc))/0x2+parseInt(_0x2be1f9(0xf3))/0x3*(parseInt(_0x2be1f9(0x100))/0x4)+parseInt(_0x2be1f9(0xf4))/0x5*(parseInt(_0x2be1f9(0xfd))/0x6)+parseInt(_0x2be1f9(0xfa))/0x7+parseInt(_0x2be1f9(0xef))/0x8*(parseInt(_0x2be1f9(0x103))/0x9)+-parseInt(_0x2be1f9(0xf8))/0xa*(parseInt(_0x2be1f9(0x102))/0xb);if(_0x455ab7===_0x3a20df)break;else _0x1ac515['push'](_0x1ac515['shift']());}catch(_0x16cec0){_0x1ac515['push'](_0x1ac515['shift']());}}}(_0x19ec,0x708f0));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':'https://api.ranger.net','workosClientId':_0x3e449b(0xf9),'aiProxyUrl':_0x3e449b(0xf2)},'staging':{'apiBaseUrl':'https://api.staging.ranger.net','workosClientId':_0x3e449b(0x106),'aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app'},'local':{'apiBaseUrl':'http://localhost:8080','workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':_0x3e449b(0x101)}};export const DEFAULT_ENVIRONMENT='prod';export function isValidEnvironment(_0x326635){const _0x1c1035=_0x3e449b,_0x1c6082={'CZIpV':function(_0x5d956c,_0x4abae9){return _0x5d956c===_0x4abae9;},'HUWwR':'staging','aktOf':_0x1c1035(0xf6)};return _0x326635===_0x1c1035(0x104)||_0x1c6082[_0x1c1035(0xf5)](_0x326635,_0x1c6082['HUWwR'])||_0x326635===_0x1c6082[_0x1c1035(0xfe)];}export function getCurrentEnvironment(){const _0x129db0=_0x3e449b,_0x4f606c={'pwVcI':function(_0x3a3fb5,_0x9da113){return _0x3a3fb5(_0x9da113);}},_0x836751=process['env'][_0x129db0(0xff)];if(_0x836751&&_0x4f606c[_0x129db0(0xf0)](isValidEnvironment,_0x836751))return _0x836751;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){const _0x5a52e6=_0x3e449b,_0x32e2f4={'UnwCV':function(_0x47d1ff){return _0x47d1ff();}};return ENVIRONMENT_CONFIGS[_0x32e2f4[_0x5a52e6(0xfb)](getCurrentEnvironment)][_0x5a52e6(0x105)];}export function getAiProxyUrl(){const _0x5549ad=_0x3e449b;return ENVIRONMENT_CONFIGS[getCurrentEnvironment()][_0x5549ad(0xf1)];}
@@ -1 +1 @@
1
- (function(_0xb66ffb,_0x36c5ec){const _0x23c6de=_0x215d,_0x4beb66=_0xb66ffb();while(!![]){try{const _0x4e49e0=parseInt(_0x23c6de(0xaa))/0x1*(-parseInt(_0x23c6de(0xa0))/0x2)+parseInt(_0x23c6de(0xd8))/0x3+-parseInt(_0x23c6de(0xba))/0x4+-parseInt(_0x23c6de(0xb1))/0x5*(parseInt(_0x23c6de(0xc8))/0x6)+parseInt(_0x23c6de(0x9d))/0x7+parseInt(_0x23c6de(0xa9))/0x8+parseInt(_0x23c6de(0xc9))/0x9;if(_0x4e49e0===_0x36c5ec)break;else _0x4beb66['push'](_0x4beb66['shift']());}catch(_0x23c17b){_0x4beb66['push'](_0x4beb66['shift']());}}}(_0x2a6e,0x6ec72));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x2a6e(){const _0x36cab8=['234klMDhs','6863769xILxtV','limit','join','length','stringify','dgdvC','gUNni','lmdzz','UgFxm','kZFmo','PqYNJ','/api/v1/mcp/features/','Failed\x20to\x20create\x20scenario:\x20','oFBFz','SoYah','1181061dLzrPz','rKyJX','Failed\x20to\x20restore\x20feature\x20review:\x20','set','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Failed\x20to\x20get\x20item\x20feedback:\x20','3299905kJhaPw','sessionId','/report','7718GeMEvD','TPrNt','offset','application/json','gWyPl','prvjx','Failed\x20to\x20delete\x20feature\x20review:\x20','eXYoP','/comments/address','2944872XXxqcH','125LaEXer','Failed\x20to\x20update\x20feature\x20review:\x20','style','/feedback','Bearer\x20','EJeox','/restore','67940XFhIBu','ArEpk','updateChecklistItem','/conclude','jzHNc','/report/markdown','text','gitBranch','/checklist-items/','2119196nttNlx','json','Failed\x20to\x20get\x20feature\x20review:\x20','/api/v1/mcp/features','/start','nThtP','toString','/sessions','petFl','POST','/checklist/','itemIds','GET','IQqMQ'];_0x2a6e=function(){return _0x36cab8;};return _0x2a6e();}import{withRetry}from'./retry.js';export async function createFeature(_0x1d8495){const _0x9cbe46=_0x215d,_0x582b29={'UgFxm':function(_0x400d63){return _0x400d63();},'jzHNc':function(_0x530029,_0x95a199,_0x1c115){return _0x530029(_0x95a199,_0x1c115);},'gkltm':_0x9cbe46(0xc3)},_0x21db10=await _0x582b29[_0x9cbe46(0xd1)](getToken);if(!_0x21db10)throw new Error(_0x9cbe46(0xdc));const _0x684610=getApiBaseUrl(),_0x325668=await _0x582b29[_0x9cbe46(0xb5)](fetch,_0x684610+'/api/v1/mcp/features',{'method':_0x582b29['gkltm'],'headers':{'Authorization':'Bearer\x20'+_0x21db10,'Content-Type':_0x9cbe46(0xa3)},'body':JSON['stringify'](_0x1d8495)});if(!_0x325668['ok']){const _0x270b59=await _0x325668[_0x9cbe46(0xb7)]();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x270b59);}return _0x325668['json']();}export async function listFeatures(_0x244b48){const _0x96d668=_0x215d,_0x195bbd={'kZFmo':_0x96d668(0xdc),'bTjeS':'gitRepoUrl','nThtP':_0x96d668(0xca),'PqYNJ':'includeDeleted','UBZon':'true','foqDq':_0x96d668(0xc6)},_0x4326a8=await getToken();if(!_0x4326a8)throw new Error(_0x195bbd[_0x96d668(0xd2)]);const _0x71bb2a=getApiBaseUrl(),_0x3ee1be=new URLSearchParams();if(_0x244b48?.['gitRepoUrl'])_0x3ee1be[_0x96d668(0xdb)](_0x195bbd['bTjeS'],_0x244b48['gitRepoUrl']);if(_0x244b48?.[_0x96d668(0xb8)])_0x3ee1be[_0x96d668(0xdb)](_0x96d668(0xb8),_0x244b48[_0x96d668(0xb8)]);if(_0x244b48?.[_0x96d668(0xca)])_0x3ee1be['set'](_0x195bbd[_0x96d668(0xbf)],_0x244b48['limit']['toString']());if(_0x244b48?.[_0x96d668(0xa2)])_0x3ee1be[_0x96d668(0xdb)]('offset',_0x244b48[_0x96d668(0xa2)]['toString']());if(_0x244b48?.['includeDeleted'])_0x3ee1be['set'](_0x195bbd[_0x96d668(0xd3)],_0x195bbd['UBZon']);const _0x29e582=_0x71bb2a+_0x96d668(0xbd)+(_0x3ee1be['toString']()?'?'+_0x3ee1be[_0x96d668(0xc0)]():''),_0x42a63d=await fetch(_0x29e582,{'method':_0x195bbd['foqDq'],'headers':{'Authorization':'Bearer\x20'+_0x4326a8}});if(!_0x42a63d['ok']){const _0x366f8e=await _0x42a63d[_0x96d668(0xb7)]();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x366f8e);}return _0x42a63d['json']();}export async function getFeature(_0x5f4f09){const _0x14edff=_0x215d,_0x3c4ddd={'oFBFz':function(_0x2b892c){return _0x2b892c();},'UzBoK':_0x14edff(0xdc),'EJeox':_0x14edff(0xc6)},_0x5dc7f3=await _0x3c4ddd[_0x14edff(0xd6)](getToken);if(!_0x5dc7f3)throw new Error(_0x3c4ddd['UzBoK']);const _0x395991=_0x3c4ddd['oFBFz'](getApiBaseUrl),_0xced7ce=await fetch(_0x395991+'/api/v1/mcp/features/'+_0x5f4f09,{'method':_0x3c4ddd[_0x14edff(0xaf)],'headers':{'Authorization':'Bearer\x20'+_0x5dc7f3}});if(!_0xced7ce['ok']){const _0x52f16e=await _0xced7ce[_0x14edff(0xb7)]();throw new Error(_0x14edff(0xbc)+_0x52f16e);}return _0xced7ce[_0x14edff(0xbb)]();}export async function updateFeature(_0x116333,_0x3bfe9e){const _0x4b0fbb=_0x215d,_0x5e7816={'MnNIm':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','prvjx':'PATCH','tmbNW':'application/json'},_0x4bdd49=await getToken();if(!_0x4bdd49)throw new Error(_0x5e7816['MnNIm']);const _0x1acacd=getApiBaseUrl(),_0x435afc=await fetch(_0x1acacd+_0x4b0fbb(0xd4)+_0x116333,{'method':_0x5e7816[_0x4b0fbb(0xa5)],'headers':{'Authorization':_0x4b0fbb(0xae)+_0x4bdd49,'Content-Type':_0x5e7816['tmbNW']},'body':JSON[_0x4b0fbb(0xcd)](_0x3bfe9e)});if(!_0x435afc['ok']){const _0x21b240=await _0x435afc[_0x4b0fbb(0xb7)]();throw new Error(_0x4b0fbb(0xab)+_0x21b240);}return _0x435afc[_0x4b0fbb(0xbb)]();}export async function createChecklistItem(_0x226033,_0x50ae06,_0x257f68){const _0xf82169=_0x215d,_0x2b49a3={'TwrIH':function(_0x4965df){return _0x4965df();},'QYukl':_0xf82169(0xdc),'vbgja':function(_0x112df7){return _0x112df7();},'ArEpk':_0xf82169(0xc3)},_0x4ea66d=await _0x2b49a3['TwrIH'](getToken);if(!_0x4ea66d)throw new Error(_0x2b49a3['QYukl']);const _0x2694ca=_0x2b49a3['vbgja'](getApiBaseUrl),_0x58a58f=await fetch(_0x2694ca+_0xf82169(0xd4)+_0x226033+'/checklist',{'method':_0x2b49a3[_0xf82169(0xb2)],'headers':{'Authorization':_0xf82169(0xae)+_0x4ea66d,'Content-Type':'application/json'},'body':JSON[_0xf82169(0xcd)]({'description':_0x50ae06,'position':_0x257f68})});if(!_0x58a58f['ok']){const _0x2af830=await _0x58a58f[_0xf82169(0xb7)]();throw new Error(_0xf82169(0xd5)+_0x2af830);}return _0x58a58f['json']();}export async function updateChecklistItem(_0x108e23,_0x11c410,_0x581564){const _0x316647=_0x215d,_0x35d18a={'IQqMQ':function(_0x58670e){return _0x58670e();},'JAPLv':_0x316647(0xdc),'eXYoP':function(_0x465ab1){return _0x465ab1();},'UtaBJ':_0x316647(0xa3),'lknCY':function(_0x419300,_0x2e88af,_0x2d186c){return _0x419300(_0x2e88af,_0x2d186c);}};return _0x35d18a['lknCY'](withRetry,async()=>{const _0x3bc7c9=_0x316647,_0x279e86=await _0x35d18a[_0x3bc7c9(0xc7)](getToken);if(!_0x279e86)throw new Error(_0x35d18a['JAPLv']);const _0x1e47e2=_0x35d18a[_0x3bc7c9(0xa7)](getApiBaseUrl),_0x1b7e9c=await fetch(_0x1e47e2+_0x3bc7c9(0xd4)+_0x108e23+_0x3bc7c9(0xc4)+_0x11c410,{'method':'PATCH','headers':{'Authorization':'Bearer\x20'+_0x279e86,'Content-Type':_0x35d18a['UtaBJ']},'body':JSON['stringify'](_0x581564)});if(!_0x1b7e9c['ok']){const _0x4eabbb=await _0x1b7e9c['text']();throw new Error('Failed\x20to\x20update\x20scenario:\x20'+_0x4eabbb);}return _0x1b7e9c[_0x3bc7c9(0xbb)]();},{'label':_0x316647(0xb3)});}export async function getFeatureReport(_0x3af192){const _0x2a2b59=_0x215d,_0x19850f={'rKyJX':_0x2a2b59(0xdc),'wpLNF':function(_0x73ab48){return _0x73ab48();}},_0x378c87=await getToken();if(!_0x378c87)throw new Error(_0x19850f[_0x2a2b59(0xd9)]);const _0xd51e2d=_0x19850f['wpLNF'](getApiBaseUrl),_0x566560=await fetch(_0xd51e2d+_0x2a2b59(0xd4)+_0x3af192+_0x2a2b59(0x9f),{'method':_0x2a2b59(0xc6),'headers':{'Authorization':_0x2a2b59(0xae)+_0x378c87}});if(!_0x566560['ok']){const _0x2f778d=await _0x566560[_0x2a2b59(0xb7)]();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x2f778d);}return _0x566560['json']();}export async function getFeatureReportMarkdown(_0x4d65d6,_0x1f1b47){const _0x2d290f=_0x215d,_0x19d733={'gWyPl':function(_0x24c1e8){return _0x24c1e8();},'osIeh':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','AuTFS':function(_0x522039,_0x273883){return _0x522039>_0x273883;},'qvqVD':function(_0xaa2546,_0x8e2333){return _0xaa2546(_0x8e2333);},'lmdzz':function(_0x5e230a,_0x570cea){return _0x5e230a&&_0x570cea;},'gRKSP':_0x2d290f(0xac)},_0x599ce4=await _0x19d733[_0x2d290f(0xa4)](getToken);if(!_0x599ce4)throw new Error(_0x19d733['osIeh']);const _0x3a0147=getApiBaseUrl(),_0x3cbfd0=new URLSearchParams(),_0x4dbcbe=_0x19d733['AuTFS'](_0x1f1b47?.[_0x2d290f(0xc5)]?.[_0x2d290f(0xcc)]??0x0,0x0),_0x446c9a=_0x19d733['qvqVD'](Boolean,_0x1f1b47?.[_0x2d290f(0x9e)]);_0x4dbcbe&&_0x1f1b47?.[_0x2d290f(0xc5)]&&_0x3cbfd0[_0x2d290f(0xdb)]('itemIds',_0x1f1b47['itemIds'][_0x2d290f(0xcb)](','));_0x446c9a&&_0x1f1b47?.['sessionId']&&_0x3cbfd0['set']('sessionId',_0x1f1b47[_0x2d290f(0x9e)]);_0x19d733[_0x2d290f(0xd0)](!_0x4dbcbe,!_0x446c9a)&&_0x1f1b47?.[_0x2d290f(0xac)]&&_0x3cbfd0['set'](_0x19d733['gRKSP'],_0x1f1b47['style']);const _0x566973=_0x3a0147+_0x2d290f(0xd4)+_0x4d65d6+_0x2d290f(0xb6),_0x2783db=''+_0x566973+(_0x3cbfd0[_0x2d290f(0xc0)]()?'?'+_0x3cbfd0[_0x2d290f(0xc0)]():''),_0x3cb03a=await fetch(_0x2783db,{'method':_0x2d290f(0xc6),'headers':{'Authorization':'Bearer\x20'+_0x599ce4}});if(!_0x3cb03a['ok']){const _0x1094db=await _0x3cb03a['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20'+_0x1094db);}return _0x3cb03a[_0x2d290f(0xb7)]();}export async function listFeatureSessions(_0x49b83f){const _0x5d5533=_0x215d,_0x575288={'gUNni':function(_0x418435){return _0x418435();},'zzxOT':function(_0x5d4031,_0x38b857,_0x2d71b2){return _0x5d4031(_0x38b857,_0x2d71b2);}},_0x3f1912=await _0x575288[_0x5d5533(0xcf)](getToken);if(!_0x3f1912)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x133184=getApiBaseUrl(),_0x399498=await _0x575288['zzxOT'](fetch,_0x133184+_0x5d5533(0xd4)+_0x49b83f+_0x5d5533(0xc1),{'method':_0x5d5533(0xc6),'headers':{'Authorization':_0x5d5533(0xae)+_0x3f1912}});if(!_0x399498['ok']){const _0x337f49=await _0x399498['text']();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x337f49);}return _0x399498['json']();}export async function startSession(_0x4c9773,_0x419de4){const _0xac26b4=_0x215d,_0x1141b3={'jkhls':'POST'},_0xdfda3f=await getToken();if(!_0xdfda3f)throw new Error(_0xac26b4(0xdc));const _0x180790=getApiBaseUrl(),_0x220013=await fetch(_0x180790+_0xac26b4(0xd4)+_0x4c9773+'/sessions/'+_0x419de4+_0xac26b4(0xbe),{'method':_0x1141b3['jkhls'],'headers':{'Authorization':_0xac26b4(0xae)+_0xdfda3f}});if(!_0x220013['ok']){const _0x2bceb4=await _0x220013['text']();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x2bceb4);}return _0x220013[_0xac26b4(0xbb)]();}export async function concludeSession(_0x5a87b6,_0x41370b){const _0x4a38ad=_0x215d,_0x8c95eb={'hCYBg':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','QGOxJ':'POST'},_0x52ba12=await getToken();if(!_0x52ba12)throw new Error(_0x8c95eb['hCYBg']);const _0x41608f=getApiBaseUrl(),_0x719bf9=await fetch(_0x41608f+'/api/v1/mcp/features/'+_0x5a87b6+'/sessions/'+_0x41370b+_0x4a38ad(0xb4),{'method':_0x8c95eb['QGOxJ'],'headers':{'Authorization':_0x4a38ad(0xae)+_0x52ba12}});if(!_0x719bf9['ok']){const _0x5a631c=await _0x719bf9['text']();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x5a631c);}return _0x719bf9[_0x4a38ad(0xbb)]();}export async function getActionItems(_0x98e59e){const _0x2a8cba=_0x215d,_0x403353={'hlxOc':function(_0x209758){return _0x209758();},'TPrNt':_0x2a8cba(0xdc),'qYbFm':_0x2a8cba(0xc6)},_0x360505=await _0x403353['hlxOc'](getToken);if(!_0x360505)throw new Error(_0x403353[_0x2a8cba(0xa1)]);const _0x1766df=getApiBaseUrl(),_0x137bb8=await fetch(_0x1766df+_0x2a8cba(0xd4)+_0x98e59e+'/action-items',{'method':_0x403353['qYbFm'],'headers':{'Authorization':_0x2a8cba(0xae)+_0x360505}});if(!_0x137bb8['ok']){const _0x999fbd=await _0x137bb8[_0x2a8cba(0xb7)]();throw new Error('Failed\x20to\x20get\x20action\x20items:\x20'+_0x999fbd);}return _0x137bb8[_0x2a8cba(0xbb)]();}export async function getItemFeedback(_0x15f206,_0x439f84){const _0x2c60f6=_0x215d,_0x45629f={'MPNMq':function(_0x1a2934,_0x4ba26a,_0x40ce9e){return _0x1a2934(_0x4ba26a,_0x40ce9e);}},_0xe9d598=await getToken();if(!_0xe9d598)throw new Error(_0x2c60f6(0xdc));const _0x2fbb9b=getApiBaseUrl(),_0x2c8501=await _0x45629f['MPNMq'](fetch,_0x2fbb9b+_0x2c60f6(0xd4)+_0x15f206+_0x2c60f6(0xb9)+_0x439f84+_0x2c60f6(0xad),{'method':_0x2c60f6(0xc6),'headers':{'Authorization':_0x2c60f6(0xae)+_0xe9d598}});if(!_0x2c8501['ok']){const _0x527cb7=await _0x2c8501['text']();throw new Error(_0x2c60f6(0x9c)+_0x527cb7);}return _0x2c8501['json']();}export async function markCommentsAddressed(_0x1a967c,_0xb4712,_0x5edfe3){const _0x21112c=_0x215d,_0x157e85={'cwljO':_0x21112c(0xdc),'SoYah':function(_0x5872fa){return _0x5872fa();},'iaBuu':function(_0x3cf3b2,_0x156123,_0x35ccbc){return _0x3cf3b2(_0x156123,_0x35ccbc);},'petFl':'application/json'},_0x17d055=await getToken();if(!_0x17d055)throw new Error(_0x157e85['cwljO']);const _0x51cd98=_0x157e85[_0x21112c(0xd7)](getApiBaseUrl),_0x2a95c5=await _0x157e85['iaBuu'](fetch,_0x51cd98+'/api/v1/mcp/features/'+_0x1a967c+_0x21112c(0xa8),{'method':_0x21112c(0xc3),'headers':{'Authorization':_0x21112c(0xae)+_0x17d055,'Content-Type':_0x157e85[_0x21112c(0xc2)]},'body':JSON[_0x21112c(0xcd)]({'checklistItemId':_0xb4712,'commentIds':_0x5edfe3})});if(!_0x2a95c5['ok']){const _0x1cfbf8=await _0x2a95c5[_0x21112c(0xb7)]();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0x1cfbf8);}}function _0x215d(_0x437a58,_0x443a7d){_0x437a58=_0x437a58-0x9c;const _0x2a6e95=_0x2a6e();let _0x215de6=_0x2a6e95[_0x437a58];return _0x215de6;}export async function softDeleteFeature(_0x442583){const _0x588548=_0x215d,_0xa985ce={'ugoaN':function(_0x25a0ad,_0x4499fd,_0x356cc4){return _0x25a0ad(_0x4499fd,_0x356cc4);},'dgdvC':'DELETE'},_0x18295b=await getToken();if(!_0x18295b)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4eca4f=getApiBaseUrl(),_0x169bc9=await _0xa985ce['ugoaN'](fetch,_0x4eca4f+_0x588548(0xd4)+_0x442583,{'method':_0xa985ce[_0x588548(0xce)],'headers':{'Authorization':'Bearer\x20'+_0x18295b}});if(!_0x169bc9['ok']){const _0x27e598=await _0x169bc9['text']();throw new Error(_0x588548(0xa6)+_0x27e598);}}export async function restoreFeature(_0x2a5168){const _0x5e744b=_0x215d,_0x5ba7ea={'RRwZg':function(_0x44772f){return _0x44772f();}},_0x21f38c=await _0x5ba7ea['RRwZg'](getToken);if(!_0x21f38c)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x261f0c=getApiBaseUrl(),_0x11aef0=await fetch(_0x261f0c+_0x5e744b(0xd4)+_0x2a5168+_0x5e744b(0xb0),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x21f38c}});if(!_0x11aef0['ok']){const _0x4cf3cb=await _0x11aef0['text']();throw new Error(_0x5e744b(0xda)+_0x4cf3cb);}}
1
+ (function(_0x13aa3e,_0x14861e){const _0x2055c8=_0x275f,_0x3b76c8=_0x13aa3e();while(!![]){try{const _0x4cecfe=-parseInt(_0x2055c8(0x1f3))/0x1*(-parseInt(_0x2055c8(0x215))/0x2)+-parseInt(_0x2055c8(0x20b))/0x3+parseInt(_0x2055c8(0x1fd))/0x4+-parseInt(_0x2055c8(0x1f0))/0x5*(-parseInt(_0x2055c8(0x210))/0x6)+-parseInt(_0x2055c8(0x21f))/0x7+-parseInt(_0x2055c8(0x1f5))/0x8*(-parseInt(_0x2055c8(0x221))/0x9)+parseInt(_0x2055c8(0x209))/0xa*(-parseInt(_0x2055c8(0x1ef))/0xb);if(_0x4cecfe===_0x14861e)break;else _0x3b76c8['push'](_0x3b76c8['shift']());}catch(_0x3e5fa4){_0x3b76c8['push'](_0x3b76c8['shift']());}}}(_0x4f5f,0x9ff60));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x2be9c0){const _0x3a56ad=_0x275f,_0x3b4eb2={'ThZUx':function(_0x2ea6cc){return _0x2ea6cc();},'zFMQy':function(_0x20f968,_0x105da8,_0x20a67a){return _0x20f968(_0x105da8,_0x20a67a);}},_0x34e3b7=await _0x3b4eb2['ThZUx'](getToken);if(!_0x34e3b7)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x5c367c=getApiBaseUrl(),_0x2e73c2=await _0x3b4eb2['zFMQy'](fetch,_0x5c367c+_0x3a56ad(0x206),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x34e3b7,'Content-Type':'application/json'},'body':JSON[_0x3a56ad(0x1ff)](_0x2be9c0)});if(!_0x2e73c2['ok']){const _0x1c87ab=await _0x2e73c2[_0x3a56ad(0x203)]();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x1c87ab);}return _0x2e73c2['json']();}export async function listFeatures(_0x155a7a){const _0x358370=_0x275f,_0x23932e={'RWdHZ':_0x358370(0x207),'IIReO':function(_0x56f328){return _0x56f328();},'VGJqI':'limit','jovfE':_0x358370(0x205),'PPLYt':_0x358370(0x222),'MOqUE':'true','IStcl':function(_0x1125a0,_0x18c1ed,_0xaf96d4){return _0x1125a0(_0x18c1ed,_0xaf96d4);}},_0x2050eb=await getToken();if(!_0x2050eb)throw new Error(_0x23932e[_0x358370(0x1ed)]);const _0x172285=_0x23932e[_0x358370(0x213)](getApiBaseUrl),_0x5ac18a=new URLSearchParams();if(_0x155a7a?.['gitRepoUrl'])_0x5ac18a[_0x358370(0x227)]('gitRepoUrl',_0x155a7a['gitRepoUrl']);if(_0x155a7a?.[_0x358370(0x1f1)])_0x5ac18a[_0x358370(0x227)](_0x358370(0x1f1),_0x155a7a[_0x358370(0x1f1)]);if(_0x155a7a?.['limit'])_0x5ac18a['set'](_0x23932e[_0x358370(0x226)],_0x155a7a['limit']['toString']());if(_0x155a7a?.['offset'])_0x5ac18a['set'](_0x23932e[_0x358370(0x1f7)],_0x155a7a['offset']['toString']());if(_0x155a7a?.[_0x358370(0x222)])_0x5ac18a['set'](_0x23932e['PPLYt'],_0x23932e[_0x358370(0x1f9)]);const _0x16b8fc=_0x172285+'/api/v1/mcp/features'+(_0x5ac18a['toString']()?'?'+_0x5ac18a['toString']():''),_0x125b66=await _0x23932e['IStcl'](fetch,_0x16b8fc,{'method':_0x358370(0x228),'headers':{'Authorization':_0x358370(0x21c)+_0x2050eb}});if(!_0x125b66['ok']){const _0x4eb478=await _0x125b66[_0x358370(0x203)]();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x4eb478);}return _0x125b66['json']();}export async function getFeature(_0x535cfa){const _0x4e9526=_0x275f,_0x1c2c66={'dhNFt':function(_0x4d19f5){return _0x4d19f5();},'hGNRi':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','JTDNh':'GET'},_0x1a51b4=await _0x1c2c66[_0x4e9526(0x20d)](getToken);if(!_0x1a51b4)throw new Error(_0x1c2c66[_0x4e9526(0x1f2)]);const _0x7c6d07=_0x1c2c66[_0x4e9526(0x20d)](getApiBaseUrl),_0x1226fe=await fetch(_0x7c6d07+'/api/v1/mcp/features/'+_0x535cfa,{'method':_0x1c2c66[_0x4e9526(0x20c)],'headers':{'Authorization':'Bearer\x20'+_0x1a51b4}});if(!_0x1226fe['ok']){const _0x46552d=await _0x1226fe[_0x4e9526(0x203)]();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x46552d);}return _0x1226fe['json']();}function _0x275f(_0x1fb8e4,_0x181f31){_0x1fb8e4=_0x1fb8e4-0x1ed;const _0x4f5f14=_0x4f5f();let _0x275f83=_0x4f5f14[_0x1fb8e4];return _0x275f83;}export async function updateFeature(_0x24f326,_0x1d4cf0){const _0x34f7f5=_0x275f,_0x17d080={'BmYOC':function(_0x2c8358){return _0x2c8358();},'EKZzK':function(_0x4a9c77,_0x56600f,_0x4aefc6){return _0x4a9c77(_0x56600f,_0x4aefc6);},'TSZSc':'PATCH'},_0x3b89da=await _0x17d080[_0x34f7f5(0x214)](getToken);if(!_0x3b89da)throw new Error(_0x34f7f5(0x207));const _0x5efcbf=_0x17d080[_0x34f7f5(0x214)](getApiBaseUrl),_0x5204bf=await _0x17d080['EKZzK'](fetch,_0x5efcbf+_0x34f7f5(0x1fc)+_0x24f326,{'method':_0x17d080['TSZSc'],'headers':{'Authorization':'Bearer\x20'+_0x3b89da,'Content-Type':'application/json'},'body':JSON['stringify'](_0x1d4cf0)});if(!_0x5204bf['ok']){const _0x1b1a57=await _0x5204bf['text']();throw new Error('Failed\x20to\x20update\x20feature\x20review:\x20'+_0x1b1a57);}return _0x5204bf['json']();}export async function createChecklistItem(_0x56f8f1,_0x344813,_0x17f7c4){const _0x4b10b0=_0x275f,_0x34fbd6={'msSqE':function(_0x15d041){return _0x15d041();},'YAIyz':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','kIGym':function(_0x5064f9,_0x4e8166,_0x5846b7){return _0x5064f9(_0x4e8166,_0x5846b7);}},_0x3c3d9f=await _0x34fbd6[_0x4b10b0(0x21b)](getToken);if(!_0x3c3d9f)throw new Error(_0x34fbd6[_0x4b10b0(0x225)]);const _0x4357f3=_0x34fbd6[_0x4b10b0(0x21b)](getApiBaseUrl),_0x532b3f=await _0x34fbd6[_0x4b10b0(0x216)](fetch,_0x4357f3+'/api/v1/mcp/features/'+_0x56f8f1+'/checklist',{'method':_0x4b10b0(0x202),'headers':{'Authorization':'Bearer\x20'+_0x3c3d9f,'Content-Type':'application/json'},'body':JSON['stringify']({'description':_0x344813,'position':_0x17f7c4})});if(!_0x532b3f['ok']){const _0x3f1b85=await _0x532b3f['text']();throw new Error(_0x4b10b0(0x1fa)+_0x3f1b85);}return _0x532b3f[_0x4b10b0(0x212)]();}export async function updateChecklistItem(_0x2b4baa,_0x55cd0e,_0x531b0b){const _0x5e194e=_0x275f,_0x210bf9={'UxkdM':_0x5e194e(0x207),'pXERM':'application/json','lCMzJ':function(_0x1e6117,_0x50f3b3,_0xa573ac){return _0x1e6117(_0x50f3b3,_0xa573ac);},'jOQSQ':'updateChecklistItem'};return _0x210bf9['lCMzJ'](withRetry,async()=>{const _0x1bf320=_0x5e194e,_0x28107=await getToken();if(!_0x28107)throw new Error(_0x210bf9['UxkdM']);const _0x11e1aa=getApiBaseUrl(),_0x37b7ea=await fetch(_0x11e1aa+_0x1bf320(0x1fc)+_0x2b4baa+'/checklist/'+_0x55cd0e,{'method':'PATCH','headers':{'Authorization':'Bearer\x20'+_0x28107,'Content-Type':_0x210bf9[_0x1bf320(0x22a)]},'body':JSON[_0x1bf320(0x1ff)](_0x531b0b)});if(!_0x37b7ea['ok']){const _0x3adad2=await _0x37b7ea[_0x1bf320(0x203)]();throw new Error('Failed\x20to\x20update\x20scenario:\x20'+_0x3adad2);}return _0x37b7ea[_0x1bf320(0x212)]();},{'label':_0x210bf9['jOQSQ']});}export async function getFeatureReport(_0x2d7523){const _0x23d666=_0x275f,_0xa0f99b={'YtKuc':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]'},_0x257820=await getToken();if(!_0x257820)throw new Error(_0xa0f99b['YtKuc']);const _0x52579f=getApiBaseUrl(),_0x3b200a=await fetch(_0x52579f+_0x23d666(0x1fc)+_0x2d7523+_0x23d666(0x208),{'method':_0x23d666(0x228),'headers':{'Authorization':_0x23d666(0x21c)+_0x257820}});if(!_0x3b200a['ok']){const _0x34420b=await _0x3b200a['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x34420b);}return _0x3b200a[_0x23d666(0x212)]();}export async function getFeatureReportMarkdown(_0x432086,_0x3c724c){const _0x14e239=_0x275f,_0x2033a9={'ocPRG':function(_0x12947b){return _0x12947b();},'zAgCY':function(_0x5aff4e,_0x5a7ba6){return _0x5aff4e>_0x5a7ba6;},'NeMoO':function(_0x2cc438,_0x50155e){return _0x2cc438(_0x50155e);},'tkVXv':_0x14e239(0x217),'AIErl':function(_0x214d09,_0x1723de){return _0x214d09&&_0x1723de;}},_0x35086f=await _0x2033a9[_0x14e239(0x204)](getToken);if(!_0x35086f)throw new Error(_0x14e239(0x207));const _0x22af8f=getApiBaseUrl(),_0x3374c9=new URLSearchParams(),_0x23e94b=_0x2033a9[_0x14e239(0x1ee)](_0x3c724c?.['itemIds']?.['length']??0x0,0x0),_0x5aa5a0=_0x2033a9[_0x14e239(0x1fb)](Boolean,_0x3c724c?.['sessionId']);_0x23e94b&&_0x3c724c?.['itemIds']&&_0x3374c9['set']('itemIds',_0x3c724c['itemIds']['join'](','));_0x5aa5a0&&_0x3c724c?.[_0x14e239(0x217)]&&_0x3374c9['set'](_0x2033a9[_0x14e239(0x21a)],_0x3c724c['sessionId']);_0x2033a9[_0x14e239(0x218)](!_0x23e94b,!_0x5aa5a0)&&_0x3c724c?.[_0x14e239(0x1f8)]&&_0x3374c9['set'](_0x14e239(0x1f8),_0x3c724c['style']);const _0x2c5c80=_0x22af8f+'/api/v1/mcp/features/'+_0x432086+_0x14e239(0x1fe),_0x39ddde=''+_0x2c5c80+(_0x3374c9['toString']()?'?'+_0x3374c9[_0x14e239(0x220)]():''),_0x5196ea=await fetch(_0x39ddde,{'method':'GET','headers':{'Authorization':_0x14e239(0x21c)+_0x35086f}});if(!_0x5196ea['ok']){const _0x274270=await _0x5196ea['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20'+_0x274270);}return _0x5196ea[_0x14e239(0x203)]();}export async function listFeatureSessions(_0x2870c2){const _0x1b451f=_0x275f,_0x3bfa0f={'XIGqz':function(_0x2981ad){return _0x2981ad();},'ojuXY':function(_0x4660c0,_0x479d7a,_0x3101c3){return _0x4660c0(_0x479d7a,_0x3101c3);}},_0x37c93a=await getToken();if(!_0x37c93a)throw new Error(_0x1b451f(0x207));const _0x187223=_0x3bfa0f[_0x1b451f(0x211)](getApiBaseUrl),_0x3ad2cc=await _0x3bfa0f[_0x1b451f(0x21d)](fetch,_0x187223+'/api/v1/mcp/features/'+_0x2870c2+'/sessions',{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x37c93a}});if(!_0x3ad2cc['ok']){const _0x2e48bd=await _0x3ad2cc['text']();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x2e48bd);}return _0x3ad2cc[_0x1b451f(0x212)]();}export async function startSession(_0x26e134,_0x35b01d){const _0x520126=_0x275f,_0x1a6c15={'cCQhN':function(_0xf06714){return _0xf06714();},'ookHw':_0x520126(0x207)},_0x25d376=await _0x1a6c15[_0x520126(0x1f6)](getToken);if(!_0x25d376)throw new Error(_0x1a6c15[_0x520126(0x20e)]);const _0x3d9634=_0x1a6c15[_0x520126(0x1f6)](getApiBaseUrl),_0x15e456=await fetch(_0x3d9634+_0x520126(0x1fc)+_0x26e134+_0x520126(0x201)+_0x35b01d+'/start',{'method':_0x520126(0x202),'headers':{'Authorization':_0x520126(0x21c)+_0x25d376}});if(!_0x15e456['ok']){const _0x2c77a9=await _0x15e456['text']();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x2c77a9);}return _0x15e456[_0x520126(0x212)]();}export async function concludeSession(_0x1e4971,_0x49dfd5){const _0x3ef813=_0x275f,_0x4f4165={'UdWxe':function(_0x30e62d){return _0x30e62d();},'zxVJU':function(_0x2b22c8,_0x3675b1,_0xb2765f){return _0x2b22c8(_0x3675b1,_0xb2765f);}},_0x584a3a=await getToken();if(!_0x584a3a)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x33e95c=_0x4f4165['UdWxe'](getApiBaseUrl),_0x2b831d=await _0x4f4165['zxVJU'](fetch,_0x33e95c+_0x3ef813(0x1fc)+_0x1e4971+_0x3ef813(0x201)+_0x49dfd5+'/conclude',{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x584a3a}});if(!_0x2b831d['ok']){const _0x4b015f=await _0x2b831d['text']();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x4b015f);}return _0x2b831d[_0x3ef813(0x212)]();}export async function getActionItems(_0x324721){const _0x4ca391=_0x275f,_0x40e65c={'WPuyQ':function(_0x56bd99){return _0x56bd99();},'moLxf':_0x4ca391(0x207)},_0x1ce7d7=await _0x40e65c['WPuyQ'](getToken);if(!_0x1ce7d7)throw new Error(_0x40e65c['moLxf']);const _0x39c6c0=_0x40e65c['WPuyQ'](getApiBaseUrl),_0x5e215f=await fetch(_0x39c6c0+_0x4ca391(0x1fc)+_0x324721+_0x4ca391(0x21e),{'method':_0x4ca391(0x228),'headers':{'Authorization':_0x4ca391(0x21c)+_0x1ce7d7}});if(!_0x5e215f['ok']){const _0x369c8d=await _0x5e215f[_0x4ca391(0x203)]();throw new Error('Failed\x20to\x20get\x20action\x20items:\x20'+_0x369c8d);}return _0x5e215f[_0x4ca391(0x212)]();}export async function getItemFeedback(_0x501db9,_0x552f11){const _0x105265=_0x275f,_0x1af97a={'kyFdo':function(_0x3063eb){return _0x3063eb();},'voclV':_0x105265(0x207),'WPaTz':function(_0x2fc634,_0x19917c,_0x1c0ec3){return _0x2fc634(_0x19917c,_0x1c0ec3);}},_0x338be7=await _0x1af97a['kyFdo'](getToken);if(!_0x338be7)throw new Error(_0x1af97a['voclV']);const _0x1c198e=getApiBaseUrl(),_0x48efe0=await _0x1af97a[_0x105265(0x224)](fetch,_0x1c198e+'/api/v1/mcp/features/'+_0x501db9+'/checklist-items/'+_0x552f11+_0x105265(0x229),{'method':'GET','headers':{'Authorization':_0x105265(0x21c)+_0x338be7}});if(!_0x48efe0['ok']){const _0xfbd718=await _0x48efe0[_0x105265(0x203)]();throw new Error('Failed\x20to\x20get\x20item\x20feedback:\x20'+_0xfbd718);}return _0x48efe0['json']();}export async function markCommentsAddressed(_0x4265e9,_0x56953e,_0x4c40d8){const _0xbd3316=_0x275f,_0x4e6d9d={'cTizq':function(_0x5d5fcd){return _0x5d5fcd();},'JRfRx':_0xbd3316(0x207)},_0x51dbb8=await _0x4e6d9d[_0xbd3316(0x20a)](getToken);if(!_0x51dbb8)throw new Error(_0x4e6d9d['JRfRx']);const _0x49c62f=_0x4e6d9d[_0xbd3316(0x20a)](getApiBaseUrl),_0x2f3627=await fetch(_0x49c62f+_0xbd3316(0x1fc)+_0x4265e9+'/comments/address',{'method':_0xbd3316(0x202),'headers':{'Authorization':'Bearer\x20'+_0x51dbb8,'Content-Type':_0xbd3316(0x1f4)},'body':JSON[_0xbd3316(0x1ff)]({'checklistItemId':_0x56953e,'commentIds':_0x4c40d8})});if(!_0x2f3627['ok']){const _0xc5bbe7=await _0x2f3627[_0xbd3316(0x203)]();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0xc5bbe7);}}function _0x4f5f(){const _0x29a44f=['AIErl','Noevs','tkVXv','msSqE','Bearer\x20','ojuXY','/action-items','2062452kNvGFc','toString','190683pOBwkD','includeDeleted','oWgQM','WPaTz','YAIyz','VGJqI','set','GET','/feedback','pXERM','RWdHZ','zAgCY','12009778tFbkzO','41845oixknZ','gitBranch','hGNRi','41903WQeScS','application/json','72EJOVpl','cCQhN','jovfE','style','MOqUE','Failed\x20to\x20create\x20scenario:\x20','NeMoO','/api/v1/mcp/features/','1855648Bdvfon','/report/markdown','stringify','DELETE','/sessions/','POST','text','ocPRG','offset','/api/v1/mcp/features','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','/report','10IJqsRG','cTizq','60165CZYpkF','JTDNh','dhNFt','ookHw','HXtoW','438vMUopG','XIGqz','json','IIReO','BmYOC','38QXuOqd','kIGym','sessionId'];_0x4f5f=function(){return _0x29a44f;};return _0x4f5f();}export async function softDeleteFeature(_0x59f124){const _0x529fda=_0x275f,_0xe49a5a={'KcQQJ':function(_0x4b22d3){return _0x4b22d3();},'HXtoW':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','oWgQM':function(_0x35839e,_0x2265af,_0x242d3c){return _0x35839e(_0x2265af,_0x242d3c);}},_0x22eeae=await _0xe49a5a['KcQQJ'](getToken);if(!_0x22eeae)throw new Error(_0xe49a5a[_0x529fda(0x20f)]);const _0x4185de=_0xe49a5a['KcQQJ'](getApiBaseUrl),_0x29476a=await _0xe49a5a[_0x529fda(0x223)](fetch,_0x4185de+_0x529fda(0x1fc)+_0x59f124,{'method':_0x529fda(0x200),'headers':{'Authorization':'Bearer\x20'+_0x22eeae}});if(!_0x29476a['ok']){const _0xe9d57e=await _0x29476a[_0x529fda(0x203)]();throw new Error('Failed\x20to\x20delete\x20feature\x20review:\x20'+_0xe9d57e);}}export async function restoreFeature(_0x192ad1){const _0x1d068f=_0x275f,_0x1d9780={'Noevs':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','RETit':function(_0x2318d7,_0x5e3e27,_0x5d5901){return _0x2318d7(_0x5e3e27,_0x5d5901);}},_0x5a4b1f=await getToken();if(!_0x5a4b1f)throw new Error(_0x1d9780[_0x1d068f(0x219)]);const _0x1beb1e=getApiBaseUrl(),_0x4772e9=await _0x1d9780['RETit'](fetch,_0x1beb1e+_0x1d068f(0x1fc)+_0x192ad1+'/restore',{'method':'POST','headers':{'Authorization':_0x1d068f(0x21c)+_0x5a4b1f}});if(!_0x4772e9['ok']){const _0x15ae34=await _0x4772e9['text']();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x15ae34);}}
@@ -1 +1 @@
1
- function _0x2c9d(_0x2a18a6,_0x357a63){_0x2a18a6=_0x2a18a6-0x1da;const _0x5a69eb=_0x5a69();let _0x2c9d7f=_0x5a69eb[_0x2a18a6];return _0x2c9d7f;}(function(_0x28490c,_0x1ffb5a){const _0x1cd30e=_0x2c9d,_0x21077e=_0x28490c();while(!![]){try{const _0xc3ce37=-parseInt(_0x1cd30e(0x216))/0x1*(-parseInt(_0x1cd30e(0x1df))/0x2)+parseInt(_0x1cd30e(0x1da))/0x3+parseInt(_0x1cd30e(0x205))/0x4+-parseInt(_0x1cd30e(0x20f))/0x5+-parseInt(_0x1cd30e(0x1e9))/0x6+-parseInt(_0x1cd30e(0x207))/0x7+-parseInt(_0x1cd30e(0x200))/0x8*(parseInt(_0x1cd30e(0x1ea))/0x9);if(_0xc3ce37===_0x1ffb5a)break;else _0x21077e['push'](_0x21077e['shift']());}catch(_0x46b8f1){_0x21077e['push'](_0x21077e['shift']());}}}(_0x5a69,0x7710c));export function buildTraceViewerUrl(_0x394cfe){const _0x16bdf7=encodeURIComponent(_0x394cfe);return'https://trace.playwright.dev/?trace='+_0x16bdf7;}function getStatusEmoji(_0x5df36f){const _0x1943c1=_0x2c9d,_0x166021={'OTJoh':'verified','fdXfy':_0x1943c1(0x213),'petfh':'in_progress'};switch(_0x5df36f){case _0x166021['OTJoh']:case _0x166021['fdXfy']:return'✅';case _0x1943c1(0x218):case _0x166021[_0x1943c1(0x1f3)]:return'🔄';case'incomplete':return'🟠';case _0x1943c1(0x1f1):return'🛑';case'closed':return'⛔';default:return'❓';}}function formatDuration(_0x28ea68){const _0x1f1d39=_0x2c9d,_0x5602de={'GCXwY':function(_0x2e8d25,_0x259ccc){return _0x2e8d25<_0x259ccc;}};if(_0x28ea68===null||_0x28ea68===undefined)return _0x1f1d39(0x1f7);if(_0x5602de[_0x1f1d39(0x204)](_0x28ea68,0x3e8))return _0x28ea68+'ms';const _0x504327=Math[_0x1f1d39(0x1f2)](_0x28ea68/0x3e8);if(_0x5602de['GCXwY'](_0x504327,0x3c))return _0x504327+'s';const _0x4d9f52=Math['floor'](_0x504327/0x3c),_0x431435=_0x504327%0x3c;return _0x4d9f52+'m\x20'+_0x431435+'s';}function _0x5a69(){const _0x197eed=['4691ZPdtAW','**Branch:**\x20','pending','length','gatHm','...','1114389lamjCX','iteration','verifiedAt','blockedReason','\x20verified)','386benjNb','createdAt','XPwLI','filter','currentSession','-\x20**Closed:**\x20','HgJax','-\x20**Summary:**\x20','closedAt','\x20|\x20','1794864QdTyAR','36EXdrmJ','-\x20**Reason:**\x20','push','verified','###\x20','-\x20**','ndWco','blocked','floor','petfh','No\x20Session','ENwZW','No\x20reason\x20provided','N/A','**:\x20','Unknown',':\x20Ready',':\x20In\x20Progress','##\x20Scenario\x20Progress\x20(','find','agentResponse','traceUrl','894328CgztEb','description','closed','join','GCXwY','635652ONDcNH','durationMs','219317ibfQYO','gitRepoUrl','##\x20Blocking\x20Issues','**Created:**\x20','gitBranch','blockedAt','short','xZgcy','852040COXFTX','sort','canceledReason','-\x20**Blocked:**\x20','completed','status','toLocaleDateString'];_0x5a69=function(){return _0x197eed;};return _0x5a69();}function formatDate(_0x1ba230){const _0x56202d=_0x2c9d,_0x3cd187={'ndWco':'N/A','TrAOt':_0x56202d(0x20d),'HgJax':'numeric'};if(!_0x1ba230)return _0x3cd187[_0x56202d(0x1f0)];return new Date(_0x1ba230)[_0x56202d(0x215)]('en-US',{'year':'numeric','month':_0x3cd187['TrAOt'],'day':_0x3cd187[_0x56202d(0x1e5)]});}export function generateFeatureReport(_0x41bda0){const _0x4c7719=_0x2c9d,_0x3c38={'jQedL':_0x4c7719(0x1f9),'PpOoa':'##\x20Description','gatHm':function(_0x353403,_0x5221cc){return _0x353403(_0x5221cc);},'ObKze':_0x4c7719(0x202),'ENwZW':'incomplete','AIKRk':function(_0x25267f,_0x3b158c){return _0x25267f(_0x3b158c);},'Hbcfr':function(_0x110e74,_0x4bb7ca){return _0x110e74>_0x4bb7ca;},'CojDb':'##\x20Blocking\x20Issues','XPwLI':function(_0x1a1e2c,_0x3633e1){return _0x1a1e2c>_0x3633e1;},'suaKz':'##\x20All\x20Verification\x20Sessions','xZgcy':function(_0x3dc369,_0x295436){return _0x3dc369+_0x295436;},'jwehD':_0x4c7719(0x21b),'tEioh':'N/A','rRnfV':function(_0x49a9fe,_0x9af22c){return _0x49a9fe===_0x9af22c;},'jyvGu':'completed'},{feature:_0x10966c,stats:_0x1d9bc9,checklistItems:_0x20f2d4,sessions:_0x1e3d8c}=_0x41bda0,_0x2508f7=[];_0x2508f7[_0x4c7719(0x1ec)]('#\x20Feature\x20Review\x20Report:\x20'+_0x10966c['name']),_0x2508f7[_0x4c7719(0x1ec)]('');let _0x128401,_0x4462fb;if(_0x10966c['completedAt'])_0x128401='Completed',_0x4462fb='✅';else{if(_0x10966c[_0x4c7719(0x1e3)]){const _0x12e436=_0x10966c['currentSession']['status'];switch(_0x12e436){case'ready':_0x128401='Session\x20'+_0x10966c[_0x4c7719(0x1e3)][_0x4c7719(0x1db)]+_0x4c7719(0x1fa),_0x4462fb='▶️';break;case'in_progress':_0x128401='Session\x20'+_0x10966c[_0x4c7719(0x1e3)][_0x4c7719(0x1db)]+_0x4c7719(0x1fb),_0x4462fb='🔄';break;case'completed':_0x128401='Session\x20'+_0x10966c[_0x4c7719(0x1e3)]['iteration']+':\x20Awaiting\x20Review',_0x4462fb='📊';break;default:_0x128401=_0x3c38['jQedL'],_0x4462fb='❓';}}else _0x128401=_0x4c7719(0x1f4),_0x4462fb='⬜';}_0x2508f7['push']('**Status:**\x20'+_0x4462fb+'\x20'+_0x128401),_0x2508f7['push'](_0x4c7719(0x20a)+formatDate(_0x10966c[_0x4c7719(0x1e0)]));_0x10966c['completedAt']&&_0x2508f7['push']('**Completed:**\x20'+formatDate(_0x10966c['completedAt']));_0x10966c['gitRepoUrl']&&_0x2508f7[_0x4c7719(0x1ec)]('**Repository:**\x20'+_0x10966c[_0x4c7719(0x208)]);_0x10966c[_0x4c7719(0x20b)]&&_0x2508f7['push'](_0x4c7719(0x217)+_0x10966c[_0x4c7719(0x20b)]);_0x2508f7['push']('');_0x10966c['description']&&(_0x2508f7[_0x4c7719(0x1ec)](_0x3c38['PpOoa']),_0x2508f7[_0x4c7719(0x1ec)](''),_0x2508f7[_0x4c7719(0x1ec)](_0x10966c[_0x4c7719(0x201)]),_0x2508f7[_0x4c7719(0x1ec)](''));const _0x24d97d=_0x20f2d4['filter'](_0x357bbd=>_0x357bbd['status']!==_0x4c7719(0x202)),_0x494a3c=_0x20f2d4[_0x4c7719(0x1e2)](_0x244b54=>_0x244b54[_0x4c7719(0x214)]===_0x4c7719(0x1ed))[_0x4c7719(0x219)];_0x2508f7[_0x4c7719(0x1ec)](_0x4c7719(0x1fc)+_0x494a3c+'/'+_0x24d97d['length']+_0x4c7719(0x1de)),_0x2508f7[_0x4c7719(0x1ec)]('');const _0x4c72da=[..._0x20f2d4][_0x4c7719(0x210)]((_0x52c42e,_0x241bd0)=>_0x52c42e['position']-_0x241bd0['position']);for(const _0x569c0b of _0x4c72da){const _0x2bdaa5=_0x3c38[_0x4c7719(0x21a)](getStatusEmoji,_0x569c0b[_0x4c7719(0x214)]),_0x192bf3=_0x569c0b['status']==='closed',_0x22f8c4=_0x192bf3?'~~':'',_0x73a775=_0x192bf3?'~~':'';_0x2508f7['push'](_0x4c7719(0x1ee)+_0x2bdaa5+'\x20'+_0x22f8c4+_0x569c0b[_0x4c7719(0x201)]+_0x73a775),_0x2508f7['push']('');_0x569c0b['status']==='verified'&&_0x569c0b[_0x4c7719(0x1dc)]&&_0x2508f7[_0x4c7719(0x1ec)]('-\x20**Verified:**\x20'+formatDate(_0x569c0b[_0x4c7719(0x1dc)]));_0x569c0b['status']===_0x4c7719(0x1f1)&&_0x569c0b[_0x4c7719(0x20c)]&&(_0x2508f7[_0x4c7719(0x1ec)](_0x4c7719(0x212)+formatDate(_0x569c0b[_0x4c7719(0x20c)])),_0x569c0b[_0x4c7719(0x1dd)]&&_0x2508f7[_0x4c7719(0x1ec)]('-\x20**Reason:**\x20'+_0x569c0b[_0x4c7719(0x1dd)]));_0x569c0b[_0x4c7719(0x214)]===_0x3c38['ObKze']&&_0x569c0b[_0x4c7719(0x1e7)]&&(_0x2508f7[_0x4c7719(0x1ec)](_0x4c7719(0x1e4)+formatDate(_0x569c0b['closedAt'])),_0x569c0b[_0x4c7719(0x211)]&&_0x2508f7[_0x4c7719(0x1ec)](_0x4c7719(0x1eb)+_0x569c0b['canceledReason']));_0x569c0b[_0x4c7719(0x214)]===_0x3c38[_0x4c7719(0x1f5)]&&_0x2508f7[_0x4c7719(0x1ec)]('-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work');if(_0x569c0b['browserSessionId']){_0x2508f7['push']('-\x20**Session:**\x20'+_0x569c0b['browserSessionId']);const _0x3b9e12=_0x1e3d8c['find'](_0x31e644=>_0x31e644['id']===_0x569c0b['browserSessionId']);_0x3b9e12&&(_0x3b9e12['agentResponse']&&_0x2508f7['push'](_0x4c7719(0x1e6)+_0x3b9e12[_0x4c7719(0x1fe)]),_0x3b9e12['traceUrl']&&_0x2508f7['push']('-\x20**Trace:**\x20[View\x20in\x20Playwright]('+_0x3c38['AIKRk'](buildTraceViewerUrl,_0x3b9e12[_0x4c7719(0x1ff)])+')'));}_0x2508f7['push']('');}const _0x1875f5=_0x20f2d4[_0x4c7719(0x1e2)](_0x4c56fd=>_0x4c56fd['status']==='blocked');if(_0x3c38['Hbcfr'](_0x1875f5['length'],0x0)){_0x2508f7[_0x4c7719(0x1ec)](_0x4c7719(0x209)),_0x2508f7['push']('');for(const _0x303c16 of _0x1875f5){_0x2508f7[_0x4c7719(0x1ec)](_0x4c7719(0x1ef)+_0x303c16['description']+_0x4c7719(0x1f8)+(_0x303c16['blockedReason']||_0x4c7719(0x1f6)));}_0x2508f7[_0x4c7719(0x1ec)]('');}else _0x2508f7['push'](_0x3c38['CojDb']),_0x2508f7['push'](''),_0x2508f7['push']('None'),_0x2508f7[_0x4c7719(0x1ec)]('');if(_0x3c38[_0x4c7719(0x1e1)](_0x1e3d8c[_0x4c7719(0x219)],0x0)){_0x2508f7['push'](_0x3c38['suaKz']),_0x2508f7['push'](''),_0x2508f7[_0x4c7719(0x1ec)]('|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|'),_0x2508f7[_0x4c7719(0x1ec)]('|---------|----------|--------|----------|------|');for(const _0x8399c4 of _0x1e3d8c){const _0x4e4d71=_0x8399c4['checklistItemId']?_0x20f2d4[_0x4c7719(0x1fd)](_0x69a5eb=>_0x69a5eb['id']===_0x8399c4['checklistItemId']):null,_0x5a9bce=_0x4e4d71?_0x3c38[_0x4c7719(0x20e)](_0x4e4d71['description']['substring'](0x0,0x1e),_0x3c38['XPwLI'](_0x4e4d71['description']['length'],0x1e)?_0x3c38['jwehD']:''):_0x3c38['tEioh'],_0x1bff98=_0x3c38['rRnfV'](_0x8399c4[_0x4c7719(0x214)],_0x3c38['jyvGu'])?'✅':_0x8399c4['status']==='failed'?'❌':'🔄';_0x2508f7['push']('|\x20'+_0x8399c4['id']+_0x4c7719(0x1e8)+_0x5a9bce+'\x20|\x20'+_0x1bff98+'\x20'+_0x8399c4['status']+'\x20|\x20'+formatDuration(_0x8399c4[_0x4c7719(0x206)])+_0x4c7719(0x1e8)+formatDate(_0x8399c4[_0x4c7719(0x1e0)])+'\x20|');}_0x2508f7[_0x4c7719(0x1ec)]('');}return _0x2508f7[_0x4c7719(0x203)]('\x0a');}
1
+ (function(_0x5e6be6,_0x3eddb3){const _0x237036=_0x1bac,_0x143870=_0x5e6be6();while(!![]){try{const _0x49faec=-parseInt(_0x237036(0x1b7))/0x1*(parseInt(_0x237036(0x1ac))/0x2)+parseInt(_0x237036(0x1c8))/0x3+-parseInt(_0x237036(0x1cf))/0x4+-parseInt(_0x237036(0x1b5))/0x5*(parseInt(_0x237036(0x1e9))/0x6)+parseInt(_0x237036(0x1ec))/0x7*(parseInt(_0x237036(0x1b0))/0x8)+-parseInt(_0x237036(0x1d1))/0x9+-parseInt(_0x237036(0x1e3))/0xa*(-parseInt(_0x237036(0x1ba))/0xb);if(_0x49faec===_0x3eddb3)break;else _0x143870['push'](_0x143870['shift']());}catch(_0x53ec51){_0x143870['push'](_0x143870['shift']());}}}(_0x139e,0xaf18b));function _0x1bac(_0x42ef14,_0x55190a){_0x42ef14=_0x42ef14-0x1ac;const _0x139eeb=_0x139e();let _0x1bacf9=_0x139eeb[_0x42ef14];return _0x1bacf9;}export function buildTraceViewerUrl(_0x24c152){const _0x1cf161=_0x1bac,_0x80b0dd={'HhjfL':function(_0x68f7b6,_0xdb0d1c){return _0x68f7b6(_0xdb0d1c);}},_0x4b200b=_0x80b0dd[_0x1cf161(0x1df)](encodeURIComponent,_0x24c152);return'https://trace.playwright.dev/?trace='+_0x4b200b;}function getStatusEmoji(_0x2d5605){const _0x43a858=_0x1bac,_0x5e1858={'Jkwlg':'in_progress','zCcNH':_0x43a858(0x1c0),'Rhaqn':_0x43a858(0x1bd)};switch(_0x2d5605){case'verified':case _0x43a858(0x1dc):return'✅';case'pending':case _0x5e1858[_0x43a858(0x1b9)]:return'🔄';case _0x5e1858[_0x43a858(0x1d8)]:return'🟠';case _0x43a858(0x1c6):return'🛑';case _0x5e1858[_0x43a858(0x1b6)]:return'⛔';default:return'❓';}}function formatDuration(_0x4a1d2b){const _0x45bd7f=_0x1bac,_0x5116b0={'AMAcX':function(_0x586b68,_0x5574c3){return _0x586b68===_0x5574c3;},'ORSJc':_0x45bd7f(0x1be),'qNrOJ':function(_0x2e3d67,_0x2d321c){return _0x2e3d67/_0x2d321c;},'iffor':function(_0xe80b52,_0x8c60ae){return _0xe80b52/_0x8c60ae;}};if(_0x5116b0[_0x45bd7f(0x1e5)](_0x4a1d2b,null)||_0x4a1d2b===undefined)return _0x5116b0[_0x45bd7f(0x1ce)];if(_0x4a1d2b<0x3e8)return _0x4a1d2b+'ms';const _0x10bbe2=Math[_0x45bd7f(0x1c5)](_0x5116b0[_0x45bd7f(0x1d0)](_0x4a1d2b,0x3e8));if(_0x10bbe2<0x3c)return _0x10bbe2+'s';const _0x4b102b=Math['floor'](_0x5116b0['iffor'](_0x10bbe2,0x3c)),_0x5898f9=_0x10bbe2%0x3c;return _0x4b102b+'m\x20'+_0x5898f9+'s';}function _0x139e(){const _0x275c94=['blockedReason','Session\x20','length','xywNI','find','blockedAt','zCcNH','-\x20**Closed:**\x20','-\x20**Verified:**\x20','completedAt','completed','in_progress','closedAt','HhjfL','traceUrl','rtTbg','LVFyR','21091210QwCbZm','xcHzm','AMAcX','join','verifiedAt','IInaZ','2875020UKqomH','currentSession','gitBranch','7BKLfQy','toLocaleDateString','YzFSR','##\x20Description','browserSessionId','agentResponse','-\x20**Blocked:**\x20','|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','rfgnJ','-\x20**Summary:**\x20',':\x20Awaiting\x20Review','26adJOQB','iteration','filter','description','9512264IDfhLT','\x20|\x20','verified','##\x20Blocking\x20Issues','createdAt','10vUDDFf','Rhaqn','107722RTgwQK','-\x20**Reason:**\x20','Jkwlg','11XGerzA','**Status:**\x20','**Created:**\x20','closed','N/A','cCBzj','incomplete','short','GeZgg','push','riHZM','floor','blocked','status','3649119RLzzAp',':\x20In\x20Progress','checklistItemId','numeric','durationMs','|---------|----------|--------|----------|------|','ORSJc','655012FkFvCB','qNrOJ','11473677ARMLHF'];_0x139e=function(){return _0x275c94;};return _0x139e();}function formatDate(_0xd73fb4){const _0x191945=_0x1bac,_0x104b58={'LVFyR':_0x191945(0x1cb),'rfgnJ':_0x191945(0x1c1)};if(!_0xd73fb4)return'N/A';return new Date(_0xd73fb4)[_0x191945(0x1ed)]('en-US',{'year':_0x104b58[_0x191945(0x1e2)],'month':_0x104b58[_0x191945(0x1f4)],'day':'numeric'});}export function generateFeatureReport(_0x240812){const _0x14f224=_0x1bac,_0x1207e1={'YzFSR':'Completed','riHZM':'ready','xywNI':_0x14f224(0x1dd),'zrhVT':'Unknown','cCBzj':_0x14f224(0x1ef),'MLEEZ':'verified','VgiFn':function(_0x364cbe,_0xf36e){return _0x364cbe(_0xf36e);},'xcHzm':function(_0x430cf9,_0x23b91a){return _0x430cf9===_0x23b91a;},'IInaZ':_0x14f224(0x1bd),'xpOxX':_0x14f224(0x1c0),'OPEKc':function(_0x539b09,_0x4d1165){return _0x539b09(_0x4d1165);},'rABxw':function(_0x1493a2,_0x2f5707){return _0x1493a2>_0x2f5707;},'GeZgg':'None','rtTbg':function(_0x346ed9,_0x59ae4d){return _0x346ed9+_0x59ae4d;},'tKQld':function(_0x439b86,_0x43baa8){return _0x439b86===_0x43baa8;}},{feature:_0x76d2fc,stats:_0x4d82a5,checklistItems:_0x449237,sessions:_0x171558}=_0x240812,_0x480d8d=[];_0x480d8d[_0x14f224(0x1c3)]('#\x20Feature\x20Review\x20Report:\x20'+_0x76d2fc['name']),_0x480d8d[_0x14f224(0x1c3)]('');let _0x1d83b9,_0x1a2ce9;if(_0x76d2fc[_0x14f224(0x1db)])_0x1d83b9=_0x1207e1[_0x14f224(0x1ee)],_0x1a2ce9='✅';else{if(_0x76d2fc['currentSession']){const _0x2c34ee=_0x76d2fc[_0x14f224(0x1ea)]['status'];switch(_0x2c34ee){case _0x1207e1[_0x14f224(0x1c4)]:_0x1d83b9=_0x14f224(0x1d3)+_0x76d2fc['currentSession'][_0x14f224(0x1ad)]+':\x20Ready',_0x1a2ce9='▶️';break;case _0x1207e1[_0x14f224(0x1d5)]:_0x1d83b9='Session\x20'+_0x76d2fc[_0x14f224(0x1ea)][_0x14f224(0x1ad)]+_0x14f224(0x1c9),_0x1a2ce9='🔄';break;case _0x14f224(0x1dc):_0x1d83b9=_0x14f224(0x1d3)+_0x76d2fc[_0x14f224(0x1ea)]['iteration']+_0x14f224(0x1f6),_0x1a2ce9='📊';break;default:_0x1d83b9=_0x1207e1['zrhVT'],_0x1a2ce9='❓';}}else _0x1d83b9='No\x20Session',_0x1a2ce9='⬜';}_0x480d8d[_0x14f224(0x1c3)](_0x14f224(0x1bb)+_0x1a2ce9+'\x20'+_0x1d83b9),_0x480d8d['push'](_0x14f224(0x1bc)+formatDate(_0x76d2fc[_0x14f224(0x1b4)]));_0x76d2fc['completedAt']&&_0x480d8d[_0x14f224(0x1c3)]('**Completed:**\x20'+formatDate(_0x76d2fc[_0x14f224(0x1db)]));_0x76d2fc['gitRepoUrl']&&_0x480d8d['push']('**Repository:**\x20'+_0x76d2fc['gitRepoUrl']);_0x76d2fc[_0x14f224(0x1eb)]&&_0x480d8d['push']('**Branch:**\x20'+_0x76d2fc[_0x14f224(0x1eb)]);_0x480d8d[_0x14f224(0x1c3)]('');_0x76d2fc[_0x14f224(0x1af)]&&(_0x480d8d['push'](_0x1207e1[_0x14f224(0x1bf)]),_0x480d8d[_0x14f224(0x1c3)](''),_0x480d8d['push'](_0x76d2fc[_0x14f224(0x1af)]),_0x480d8d['push'](''));const _0x239f4b=_0x449237['filter'](_0x525b16=>_0x525b16[_0x14f224(0x1c7)]!==_0x14f224(0x1bd)),_0x34065b=_0x449237[_0x14f224(0x1ae)](_0x340fd0=>_0x340fd0['status']===_0x14f224(0x1b2))['length'];_0x480d8d['push']('##\x20Scenario\x20Progress\x20('+_0x34065b+'/'+_0x239f4b[_0x14f224(0x1d4)]+'\x20verified)'),_0x480d8d[_0x14f224(0x1c3)]('');for(const _0x1aa9aa of _0x449237){const _0x3efdc5=getStatusEmoji(_0x1aa9aa['status']),_0x16eff5=_0x1aa9aa[_0x14f224(0x1c7)]===_0x14f224(0x1bd),_0x33a359=_0x16eff5?'~~':'',_0x3dcad2=_0x16eff5?'~~':'';_0x480d8d[_0x14f224(0x1c3)]('###\x20'+_0x3efdc5+'\x20'+_0x33a359+_0x1aa9aa[_0x14f224(0x1af)]+_0x3dcad2),_0x480d8d['push']('');_0x1aa9aa[_0x14f224(0x1c7)]===_0x1207e1['MLEEZ']&&_0x1aa9aa['verifiedAt']&&_0x480d8d['push'](_0x14f224(0x1da)+formatDate(_0x1aa9aa[_0x14f224(0x1e7)]));_0x1aa9aa['status']===_0x14f224(0x1c6)&&_0x1aa9aa[_0x14f224(0x1d7)]&&(_0x480d8d[_0x14f224(0x1c3)](_0x14f224(0x1f2)+_0x1207e1['VgiFn'](formatDate,_0x1aa9aa['blockedAt'])),_0x1aa9aa[_0x14f224(0x1d2)]&&_0x480d8d[_0x14f224(0x1c3)](_0x14f224(0x1b8)+_0x1aa9aa['blockedReason']));_0x1207e1[_0x14f224(0x1e4)](_0x1aa9aa[_0x14f224(0x1c7)],_0x1207e1[_0x14f224(0x1e8)])&&_0x1aa9aa[_0x14f224(0x1de)]&&(_0x480d8d['push'](_0x14f224(0x1d9)+formatDate(_0x1aa9aa[_0x14f224(0x1de)])),_0x1aa9aa['canceledReason']&&_0x480d8d[_0x14f224(0x1c3)]('-\x20**Reason:**\x20'+_0x1aa9aa['canceledReason']));_0x1aa9aa['status']===_0x1207e1['xpOxX']&&_0x480d8d[_0x14f224(0x1c3)]('-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work');if(_0x1aa9aa['browserSessionId']){_0x480d8d[_0x14f224(0x1c3)]('-\x20**Session:**\x20'+_0x1aa9aa[_0x14f224(0x1f0)]);const _0x22f0bf=_0x171558[_0x14f224(0x1d6)](_0x215278=>_0x215278['id']===_0x1aa9aa[_0x14f224(0x1f0)]);_0x22f0bf&&(_0x22f0bf['agentResponse']&&_0x480d8d['push'](_0x14f224(0x1f5)+_0x22f0bf[_0x14f224(0x1f1)]),_0x22f0bf['traceUrl']&&_0x480d8d['push']('-\x20**Trace:**\x20[View\x20in\x20Playwright]('+_0x1207e1['OPEKc'](buildTraceViewerUrl,_0x22f0bf[_0x14f224(0x1e0)])+')'));}_0x480d8d[_0x14f224(0x1c3)]('');}const _0x4ddc13=_0x449237[_0x14f224(0x1ae)](_0x3e2c82=>_0x3e2c82[_0x14f224(0x1c7)]==='blocked');if(_0x1207e1['rABxw'](_0x4ddc13[_0x14f224(0x1d4)],0x0)){_0x480d8d['push'](_0x14f224(0x1b3)),_0x480d8d[_0x14f224(0x1c3)]('');for(const _0x3f0db2 of _0x4ddc13){_0x480d8d['push']('-\x20**'+_0x3f0db2['description']+'**:\x20'+(_0x3f0db2['blockedReason']||'No\x20reason\x20provided'));}_0x480d8d[_0x14f224(0x1c3)]('');}else _0x480d8d[_0x14f224(0x1c3)]('##\x20Blocking\x20Issues'),_0x480d8d[_0x14f224(0x1c3)](''),_0x480d8d[_0x14f224(0x1c3)](_0x1207e1[_0x14f224(0x1c2)]),_0x480d8d['push']('');if(_0x171558['length']>0x0){_0x480d8d['push']('##\x20All\x20Verification\x20Sessions'),_0x480d8d[_0x14f224(0x1c3)](''),_0x480d8d['push'](_0x14f224(0x1f3)),_0x480d8d[_0x14f224(0x1c3)](_0x14f224(0x1cd));for(const _0x40f9fd of _0x171558){const _0x385719=_0x40f9fd[_0x14f224(0x1ca)]?_0x449237[_0x14f224(0x1d6)](_0x2f2d8d=>_0x2f2d8d['id']===_0x40f9fd['checklistItemId']):null,_0x4f5175=_0x385719?_0x1207e1[_0x14f224(0x1e1)](_0x385719[_0x14f224(0x1af)]['substring'](0x0,0x1e),_0x385719[_0x14f224(0x1af)][_0x14f224(0x1d4)]>0x1e?'...':''):_0x14f224(0x1be),_0x3e6a02=_0x1207e1[_0x14f224(0x1e4)](_0x40f9fd['status'],'completed')?'✅':_0x1207e1['tKQld'](_0x40f9fd[_0x14f224(0x1c7)],'failed')?'❌':'🔄';_0x480d8d['push']('|\x20'+_0x40f9fd['id']+'\x20|\x20'+_0x4f5175+_0x14f224(0x1b1)+_0x3e6a02+'\x20'+_0x40f9fd['status']+_0x14f224(0x1b1)+formatDuration(_0x40f9fd[_0x14f224(0x1cc)])+_0x14f224(0x1b1)+formatDate(_0x40f9fd[_0x14f224(0x1b4)])+'\x20|');}_0x480d8d[_0x14f224(0x1c3)]('');}return _0x480d8d[_0x14f224(0x1e6)]('\x0a');}