@evomap/evolver 1.91.1 → 1.91.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
  3. package/src/evolve/guards.js +1 -1
  4. package/src/evolve/pipeline/collect.js +1 -1
  5. package/src/evolve/pipeline/dispatch.js +1 -1
  6. package/src/evolve/pipeline/enrich.js +1 -1
  7. package/src/evolve/pipeline/hub.js +1 -1
  8. package/src/evolve/pipeline/select.js +1 -1
  9. package/src/evolve/pipeline/signals.js +1 -1
  10. package/src/evolve/utils.js +1 -1
  11. package/src/evolve.js +1 -1
  12. package/src/gep/a2aProtocol.js +5175 -1
  13. package/src/gep/antiAbuseTelemetry.js +233 -1
  14. package/src/gep/assetStore.js +3 -2
  15. package/src/gep/autoDistillConv.js +205 -1
  16. package/src/gep/autoDistillLlm.js +315 -1
  17. package/src/gep/candidateEval.js +92 -1
  18. package/src/gep/candidates.js +1 -1
  19. package/src/gep/contentHash.js +30 -1
  20. package/src/gep/conversationDistiller.js +270 -1
  21. package/src/gep/conversationSniffer.js +266 -1
  22. package/src/gep/crypto.js +93 -1
  23. package/src/gep/curriculum.js +1 -1
  24. package/src/gep/deviceId.js +218 -1
  25. package/src/gep/envFingerprint.js +118 -1
  26. package/src/gep/epigenetics.js +31 -1
  27. package/src/gep/execBridge.js +712 -1
  28. package/src/gep/explore.js +289 -1
  29. package/src/gep/hash.js +15 -1
  30. package/src/gep/hubFetch.js +672 -1
  31. package/src/gep/hubReview.js +212 -1
  32. package/src/gep/hubSearch.js +544 -1
  33. package/src/gep/hubVerify.js +306 -1
  34. package/src/gep/learningSignals.js +1 -1
  35. package/src/gep/memoryGraph.js +1449 -1
  36. package/src/gep/memoryGraphAdapter.js +203 -1
  37. package/src/gep/mutation.js +1 -1
  38. package/src/gep/narrativeMemory.js +1 -1
  39. package/src/gep/openPRRegistry.js +205 -1
  40. package/src/gep/personality.js +1 -1
  41. package/src/gep/policyCheck.js +599 -1
  42. package/src/gep/prompt.js +1 -1
  43. package/src/gep/recallInject.js +409 -1
  44. package/src/gep/recallVerifier.js +318 -1
  45. package/src/gep/reflection.js +1 -1
  46. package/src/gep/savingsCore.js +1 -1
  47. package/src/gep/selector.js +1 -1
  48. package/src/gep/skillDistiller.js +1294 -1
  49. package/src/gep/solidify.js +1 -1
  50. package/src/gep/strategy.js +136 -1
  51. package/src/gep/tokenSavings.js +1 -1
  52. package/src/gep/trajectoryExport.js +3841 -1
  53. package/src/gep/workspaceKeychain.js +174 -1
  54. package/src/proxy/extensions/traceControl.js +123 -1
  55. package/src/proxy/inject.js +52 -1
  56. package/src/proxy/trace/extractor.js +2355 -1
  57. package/src/proxy/trace/usage.js +105 -1
  58. package/src/webui/client/clientJs/bootstrap.js +6 -0
  59. package/src/webui/client/clientJs/github.js +225 -0
  60. package/src/webui/client/clientJs/i18n.js +14 -0
  61. package/src/webui/client/clientJs/index.js +3 -0
  62. package/src/webui/client/clientJs/pipelines.js +3 -1
  63. package/src/webui/client/indexHtml.js +10 -0
  64. package/src/webui/client/stylesCss.js +61 -0
  65. package/src/webui/observer/github.js +340 -0
  66. package/src/webui/observer/index.js +4 -0
  67. package/src/webui/server/routes.js +11 -0
@@ -1 +1,203 @@
1
- const _0x5ac7cb=_0x4574;(function(_0x2046be,_0x3b8b87){const _0xe2e61d=_0x4574,_0x572d70=_0x2046be();while(!![]){try{const _0x1e8b4a=-parseInt(_0xe2e61d(0x256,'\x61\x66\x24\x49'))/(0x9*0x38a+0x6ee+-0x26c7)+parseInt(_0xe2e61d(0x1df,'\x52\x57\x5b\x40'))/(0x2*-0x923+0xecd+0x37b)+parseInt(_0xe2e61d(0x257,'\x68\x42\x33\x75'))/(0x323+-0x15c5*-0x1+0x18e5*-0x1)+parseInt(_0xe2e61d(0x279,'\x77\x6c\x77\x48'))/(0x22b9+0x1*-0x446+0x1*-0x1e6f)+-parseInt(_0xe2e61d(0x281,'\x74\x5b\x7a\x55'))/(-0x962+-0x317*-0x5+-0x60c)+parseInt(_0xe2e61d(0x264,'\x54\x2a\x5e\x50'))/(-0x3*-0xac6+0x2b*-0x33+-0x17bb)*(-parseInt(_0xe2e61d(0x25b,'\x6b\x66\x72\x40'))/(0x2fe+-0x2*0xb5f+0x13c7))+parseInt(_0xe2e61d(0x1db,'\x29\x68\x37\x6d'))/(0x2552+-0x5d9*-0x1+-0x2b23);if(_0x1e8b4a===_0x3b8b87)break;else _0x572d70['push'](_0x572d70['shift']());}catch(_0x35bdd5){_0x572d70['push'](_0x572d70['shift']());}}}(_0x3707,0x8699b*0x2+-0x119c57+-0xa1*-0x11e3));function _0x4574(_0xc45e82,_0x13d4c4){_0xc45e82=_0xc45e82-(0x118a+-0xe99+0x2*-0x93);const _0x35f569=_0x3707();let _0x2512c9=_0x35f569[_0xc45e82];if(_0x4574['\x65\x41\x79\x5a\x54\x5a']===undefined){var _0x1f0d55=function(_0x6ce7f1){const _0x2e8acf='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x44a48c='',_0x38fa02='',_0x3d25c6=_0x44a48c+_0x1f0d55,_0x884e33=(''+function(){return 0x11d6+0x2345+0x1*-0x351b;})['\x69\x6e\x64\x65\x78\x4f\x66']('\x0a')!==-(0x22c5+-0x24f*0x3+-0x1bd7);for(let _0x346e93=-0xfc2+-0x1c51*0x1+-0x3*-0xeb1,_0x1e784b,_0x1ede26,_0x5d88a7=0x3da*-0x8+-0x392+0x3d2*0x9;_0x1ede26=_0x6ce7f1['\x63\x68\x61\x72\x41\x74'](_0x5d88a7++);~_0x1ede26&&(_0x1e784b=_0x346e93%(-0x83d*-0x1+0x101*0x17+0x3*-0xa70)?_0x1e784b*(-0x9ad*-0x1+-0x739+-0x234)+_0x1ede26:_0x1ede26,_0x346e93++%(-0x4f4+0x2e1*0x2+-0xca))?_0x44a48c+=_0x884e33||_0x3d25c6['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5d88a7+(0x6c5*-0x3+0x394*0x8+-0x847))-(0x847+-0xe2d+0x5f0)!==-0x5*0x529+0xba4+0xe29?String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x1*-0x932+-0x1*0x6e6+0x23*0x7d&_0x1e784b>>(-(-0x1538+-0x2d*-0xab+-0x8d5)*_0x346e93&0x79*0x35+0x2193+-0x3a9a)):_0x346e93:0x76f*-0x4+-0x1899*0x1+-0x7*-0x7c3){_0x1ede26=_0x2e8acf['\x69\x6e\x64\x65\x78\x4f\x66'](_0x1ede26);}for(let _0x6d0ba6=0x7f6*0x1+-0x21*0xa7+0xd91,_0xcb3ae9=_0x44a48c['\x6c\x65\x6e\x67\x74\x68'];_0x6d0ba6<_0xcb3ae9;_0x6d0ba6++){_0x38fa02+='\x25'+('\x30\x30'+_0x44a48c['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x6d0ba6)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x2*-0xc55+-0x1*0x1723+-0x177))['\x73\x6c\x69\x63\x65'](-(-0x3*0x897+0x1c67+-0x2a0));}return decodeURIComponent(_0x38fa02);};const _0x13ade8=function(_0x19c896,_0x1d355e){let _0x55e79b=[],_0x2f4d37=-0x159*-0x19+0x254f*-0x1+-0x2*-0x1cf,_0x24259c,_0x5e7737='';_0x19c896=_0x1f0d55(_0x19c896);let _0x2f68f1;for(_0x2f68f1=0xe*0x239+0x23a8+-0x42c6;_0x2f68f1<-0x1*0x25d1+-0x1f84+-0x115*-0x41;_0x2f68f1++){_0x55e79b[_0x2f68f1]=_0x2f68f1;}for(_0x2f68f1=0xf7f*0x2+0xac8+-0x29c6;_0x2f68f1<0xf08+0x1801+-0x5b*0x6b;_0x2f68f1++){_0x2f4d37=(_0x2f4d37+_0x55e79b[_0x2f68f1]+_0x1d355e['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2f68f1%_0x1d355e['\x6c\x65\x6e\x67\x74\x68']))%(-0x518+0x494*0x4+-0xc38),_0x24259c=_0x55e79b[_0x2f68f1],_0x55e79b[_0x2f68f1]=_0x55e79b[_0x2f4d37],_0x55e79b[_0x2f4d37]=_0x24259c;}_0x2f68f1=0x3*-0xabb+0x491+-0x1a*-0x110,_0x2f4d37=-0x2404+-0x1e1f+0x4223;for(let _0x36eab2=0x3*0x14e+-0x4*-0x5f3+-0x1bb6;_0x36eab2<_0x19c896['\x6c\x65\x6e\x67\x74\x68'];_0x36eab2++){_0x2f68f1=(_0x2f68f1+(0x3f5*-0x3+0x1a8d+0xdd*-0x11))%(-0x263f+-0x2d*-0xbf+0x2d6*0x2),_0x2f4d37=(_0x2f4d37+_0x55e79b[_0x2f68f1])%(-0x25ce+-0x1e4b+0x85*0x85),_0x24259c=_0x55e79b[_0x2f68f1],_0x55e79b[_0x2f68f1]=_0x55e79b[_0x2f4d37],_0x55e79b[_0x2f4d37]=_0x24259c,_0x5e7737+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x19c896['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x36eab2)^_0x55e79b[(_0x55e79b[_0x2f68f1]+_0x55e79b[_0x2f4d37])%(0x1*-0xb8d+-0x17e9+-0x167*-0x1a)]);}return _0x5e7737;};_0x4574['\x66\x7a\x7a\x4c\x54\x68']=_0x13ade8,_0x4574['\x63\x6e\x49\x6f\x54\x4c']={},_0x4574['\x65\x41\x79\x5a\x54\x5a']=!![];}const _0x50612a=_0x35f569[0x16f9*-0x1+0x1*0x2029+0xe*-0xa8],_0x4f62c7=_0xc45e82+_0x50612a,_0x40b518=_0x4574['\x63\x6e\x49\x6f\x54\x4c'][_0x4f62c7];if(!_0x40b518){if(_0x4574['\x47\x75\x6f\x66\x74\x76']===undefined){const _0x17b53f=function(_0x29c051){this['\x47\x68\x58\x79\x77\x50']=_0x29c051,this['\x49\x4c\x52\x7a\x75\x4e']=[-0x97*0x5+0x1f4f+0x1c5b*-0x1,-0xdef+0xf31+-0x2*0xa1,-0x1*-0x2291+0x4cb*-0x2+-0x18fb*0x1],this['\x69\x58\x50\x52\x55\x69']=function(){return'\x6e\x65\x77\x53\x74\x61\x74\x65';},this['\x55\x68\x53\x52\x4b\x54']='\x5c\x77\x2b\x20\x2a\x5c\x28\x5c\x29\x20\x2a\x7b\x5c\x77\x2b\x20\x2a',this['\x49\x41\x6a\x64\x56\x49']='\x5b\x27\x7c\x22\x5d\x2e\x2b\x5b\x27\x7c\x22\x5d\x3b\x3f\x20\x2a\x7d';};_0x17b53f['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65']['\x4a\x59\x74\x6d\x4f\x42']=function(){const _0x41b64d=new RegExp(this['\x55\x68\x53\x52\x4b\x54']+this['\x49\x41\x6a\x64\x56\x49']),_0x269bd7=_0x41b64d['\x74\x65\x73\x74'](this['\x69\x58\x50\x52\x55\x69']['\x74\x6f\x53\x74\x72\x69\x6e\x67']())?--this['\x49\x4c\x52\x7a\x75\x4e'][-0x126e*0x2+-0x3*-0x1fa+0x1eef]:--this['\x49\x4c\x52\x7a\x75\x4e'][0x1*0x123d+0x1aaa+-0x2ce7];return this['\x67\x48\x41\x43\x75\x46'](_0x269bd7);},_0x17b53f['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65']['\x67\x48\x41\x43\x75\x46']=function(_0x4bc860){if(!Boolean(~_0x4bc860))return _0x4bc860;return this['\x53\x7a\x57\x75\x45\x42'](this['\x47\x68\x58\x79\x77\x50']);},_0x17b53f['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65']['\x53\x7a\x57\x75\x45\x42']=function(_0x3e5f92){for(let _0x53022c=-0xeec+0x1e1+-0x3*-0x459,_0x5392ea=this['\x49\x4c\x52\x7a\x75\x4e']['\x6c\x65\x6e\x67\x74\x68'];_0x53022c<_0x5392ea;_0x53022c++){this['\x49\x4c\x52\x7a\x75\x4e']['\x70\x75\x73\x68'](Math['\x72\x6f\x75\x6e\x64'](Math['\x72\x61\x6e\x64\x6f\x6d']())),_0x5392ea=this['\x49\x4c\x52\x7a\x75\x4e']['\x6c\x65\x6e\x67\x74\x68'];}return _0x3e5f92(this['\x49\x4c\x52\x7a\x75\x4e'][0x1f9b+0x24c9+0x3*-0x16cc]);},(''+function(){return-0x767*0x5+0x1*0x416+0x20ed;})['\x69\x6e\x64\x65\x78\x4f\x66']('\x0a')===-(-0xb*0x89+-0x1bc8+0x21ac)&&new _0x17b53f(_0x4574)['\x4a\x59\x74\x6d\x4f\x42'](),_0x4574['\x47\x75\x6f\x66\x74\x76']=!![];}_0x2512c9=_0x4574['\x66\x7a\x7a\x4c\x54\x68'](_0x2512c9,_0x13d4c4),_0x4574['\x63\x6e\x49\x6f\x54\x4c'][_0x4f62c7]=_0x2512c9;}else _0x2512c9=_0x40b518;return _0x2512c9;}const _0x8cff61=require(_0x5ac7cb(0x1e9,'\x59\x6d\x5b\x55')+_0x5ac7cb(0x222,'\x68\x42\x33\x75')),_0x36c8a5={'\x6e\x61\x6d\x65':_0x5ac7cb(0x282,'\x54\x2a\x5e\x50'),'\x67\x65\x74\x41\x64\x76\x69\x63\x65'(_0x22774f){const _0x3c83bd=_0x5ac7cb;return _0x8cff61['\x67\x65\x74\x4d\x65\x6d\x6f\x72'+_0x3c83bd(0x217,'\x74\x32\x63\x59')](_0x22774f);},'\x72\x65\x63\x6f\x72\x64\x53\x69\x67\x6e\x61\x6c\x53\x6e\x61\x70\x73\x68\x6f\x74'(_0x1f13bf){const _0x41e668=_0x5ac7cb;return _0x8cff61[_0x41e668(0x285,'\x74\x5b\x7a\x55')+_0x41e668(0x28d,'\x25\x73\x30\x6d')+_0x41e668(0x265,'\x4e\x40\x5b\x51')](_0x1f13bf);},'\x72\x65\x63\x6f\x72\x64\x48\x79\x70\x6f\x74\x68\x65\x73\x69\x73'(_0x4c6c34){const _0x21b09d=_0x5ac7cb;return _0x8cff61[_0x21b09d(0x25f,'\x25\x73\x30\x6d')+_0x21b09d(0x24f,'\x74\x5b\x7a\x55')](_0x4c6c34);},'\x72\x65\x63\x6f\x72\x64\x41\x74\x74\x65\x6d\x70\x74'(_0x517183){const _0x10f113=_0x5ac7cb;return _0x8cff61[_0x10f113(0x25e,'\x6d\x79\x55\x56')+_0x10f113(0x21d,'\x6c\x38\x33\x48')](_0x517183);},'\x72\x65\x63\x6f\x72\x64\x4f\x75\x74\x63\x6f\x6d\x65'(_0x314bf1){const _0xd2c9a8=_0x5ac7cb;return _0x8cff61[_0xd2c9a8(0x280,'\x4f\x44\x67\x57')+_0xd2c9a8(0x200,'\x6d\x71\x53\x52')+_0xd2c9a8(0x23d,'\x6d\x79\x55\x56')](_0x314bf1);},'\x72\x65\x63\x6f\x72\x64\x45\x78\x74\x65\x72\x6e\x61\x6c\x43\x61\x6e\x64\x69\x64\x61\x74\x65'(_0x320260){const _0x1ee852=_0x5ac7cb;return _0x8cff61['\x72\x65\x63\x6f\x72\x64\x45\x78'+_0x1ee852(0x240,'\x59\x6d\x5b\x55')+_0x1ee852(0x24d,'\x54\x2a\x5e\x50')](_0x320260);},'\x6d\x65\x6d\x6f\x72\x79\x47\x72\x61\x70\x68\x50\x61\x74\x68'(){const _0x351e68=_0x5ac7cb;return _0x8cff61[_0x351e68(0x1f5,'\x46\x45\x6a\x54')+'\x61\x70\x68\x50\x61\x74\x68']();},'\x63\x6f\x6d\x70\x75\x74\x65\x53\x69\x67\x6e\x61\x6c\x4b\x65\x79'(_0x385885){const _0x1f8fb6=_0x5ac7cb;return _0x8cff61[_0x1f8fb6(0x21f,'\x30\x35\x36\x42')+_0x1f8fb6(0x288,'\x47\x73\x5a\x68')](_0x385885);},'\x74\x72\x79\x52\x65\x61\x64\x4d\x65\x6d\x6f\x72\x79\x47\x72\x61\x70\x68\x45\x76\x65\x6e\x74\x73'(_0x2fe0a0){const _0xc90fda=_0x5ac7cb;return _0x8cff61[_0xc90fda(0x1e3,'\x42\x4c\x77\x66')+_0xc90fda(0x260,'\x46\x45\x6a\x54')+'\x70\x68\x45\x76\x65\x6e\x74\x73'](_0x2fe0a0);}};function _0xe65159(){const _0x5537d5=_0x5ac7cb,_0x1da342={'\x69\x67\x77\x63\x63':_0x5537d5(0x27b,'\x6e\x54\x52\x52')+_0x5537d5(0x1ed,'\x52\x67\x46\x43')+_0x5537d5(0x213,'\x2a\x56\x37\x4d')+_0x5537d5(0x28b,'\x50\x75\x5e\x58')+_0x5537d5(0x248,'\x2a\x56\x37\x4d'),'\x61\x72\x41\x74\x76':function(_0x5c7b5c,_0xac86c,_0x28b8ff){return _0x5c7b5c(_0xac86c,_0x28b8ff);},'\x58\x66\x59\x57\x48':function(_0x156190,_0x2f4467){return _0x156190!==_0x2f4467;},'\x6a\x67\x6c\x73\x4a':_0x5537d5(0x243,'\x38\x5e\x6e\x53'),'\x68\x6c\x41\x53\x4e':_0x5537d5(0x1dc,'\x40\x5a\x40\x6d')+_0x5537d5(0x1dd,'\x52\x36\x36\x6d'),'\x79\x65\x72\x4e\x72':function(_0x428c53,_0x574249,_0x1a06e6){return _0x428c53(_0x574249,_0x1a06e6);},'\x47\x72\x50\x4b\x4d':_0x5537d5(0x232,'\x71\x33\x4d\x39'),'\x73\x57\x4d\x55\x41':function(_0x31efdf,_0x49199d){return _0x31efdf!==_0x49199d;},'\x68\x70\x61\x50\x45':_0x5537d5(0x1d3,'\x65\x76\x21\x4f'),'\x72\x76\x4f\x58\x4c':function(_0x4caa11,..._0x33da53){return _0x4caa11(..._0x33da53);},'\x7a\x56\x50\x4f\x53':_0x5537d5(0x233,'\x4f\x44\x67\x57')+'\x73\x74','\x48\x53\x61\x67\x56':_0x5537d5(0x22b,'\x6a\x7a\x42\x44'),'\x48\x4a\x43\x75\x62':function(_0x5c2ce2,_0x11541a){return _0x5c2ce2===_0x11541a;},'\x43\x54\x67\x4e\x58':_0x5537d5(0x27f,'\x6d\x5b\x64\x6b'),'\x64\x6d\x56\x74\x57':_0x5537d5(0x268,'\x59\x45\x45\x42')+'\x63\x65','\x41\x58\x4c\x66\x56':_0x5537d5(0x1e2,'\x6d\x71\x53\x52')+'\x69\x73','\x70\x66\x72\x63\x48':_0x5537d5(0x1e4,'\x6b\x66\x72\x40'),'\x64\x5a\x67\x78\x4e':'\x4d\x72\x46\x6c\x6b','\x44\x4c\x43\x69\x6e':_0x5537d5(0x271,'\x31\x29\x54\x6f'),'\x41\x54\x77\x45\x65':_0x5537d5(0x1d5,'\x4e\x40\x5b\x51')+_0x5537d5(0x266,'\x28\x5b\x38\x79')+'\x74\x65','\x72\x75\x4f\x66\x73':function(_0x5a98a4,_0x333150){return _0x5a98a4(_0x333150);},'\x69\x52\x59\x6c\x42':'\x72\x65\x6d\x6f\x74\x65','\x49\x79\x4c\x7a\x68':function(_0x3cb281,_0x26f8b8,_0x3b9824){return _0x3cb281(_0x26f8b8,_0x3b9824);}},_0x56df51=process.env.MEMORY_GRAPH_REMOTE_URL||'',_0xc6dbf9=process.env.MEMORY_GRAPH_REMOTE_KEY||'',_0x51792d=_0x1da342[_0x5537d5(0x1ea,'\x47\x6f\x55\x64')](Number,process.env.MEMORY_GRAPH_REMOTE_TIMEOUT_MS)||0x1003+-0x1d7a+0x20ff;async function _0x21034c(_0x26275d,_0x207165){const _0x8d4e92=_0x5537d5;if(!_0x56df51)throw new Error(_0x1da342[_0x8d4e92(0x1e1,'\x6d\x71\x53\x52')]);const _0x2365d1=''+_0x56df51[_0x8d4e92(0x270,'\x79\x21\x62\x71')](/\/+$/,'')+_0x26275d,_0x59a22f=new AbortController(),_0x458286=_0x1da342[_0x8d4e92(0x22d,'\x6d\x5b\x64\x6b')](setTimeout,()=>_0x59a22f['\x61\x62\x6f\x72\x74'](),_0x51792d);try{if(_0x1da342['\x58\x66\x59\x57\x48'](_0x1da342[_0x8d4e92(0x1fa,'\x6a\x58\x79\x61')],_0x8d4e92(0x21e,'\x56\x24\x4c\x78'))){const _0x36a14a=await _0x1da342[_0x8d4e92(0x1f9,'\x28\x5b\x38\x79')](fetch,_0x2365d1,{'\x6d\x65\x74\x68\x6f\x64':'\x50\x4f\x53\x54','\x68\x65\x61\x64\x65\x72\x73':{'\x43\x6f\x6e\x74\x65\x6e\x74\x2d\x54\x79\x70\x65':_0x1da342[_0x8d4e92(0x287,'\x77\x6c\x77\x48')],..._0xc6dbf9?{'\x41\x75\x74\x68\x6f\x72\x69\x7a\x61\x74\x69\x6f\x6e':_0x8d4e92(0x22a,'\x77\x6c\x77\x48')+_0xc6dbf9}:{}},'\x62\x6f\x64\x79':JSON[_0x8d4e92(0x1ff,'\x79\x21\x62\x71')+'\x79'](_0x207165),'\x73\x69\x67\x6e\x61\x6c':_0x59a22f[_0x8d4e92(0x231,'\x4d\x43\x53\x66')]});if(!_0x36a14a['\x6f\x6b'])throw new Error(_0x8d4e92(0x201,'\x6a\x58\x79\x61')+_0x8d4e92(0x228,'\x29\x68\x37\x6d')+'\x20'+_0x36a14a[_0x8d4e92(0x247,'\x5e\x75\x76\x78')]);return await _0x36a14a[_0x8d4e92(0x223,'\x6b\x66\x72\x40')]();}else return _0x517b35[_0x8d4e92(0x284,'\x77\x4f\x6d\x21')+'\x79\x41\x64\x76\x69\x63\x65'](_0xa640f7);}finally{clearTimeout(_0x458286);}}function _0x3466b7(_0x51e0b7,_0x1d6ed1){const _0x2e4692=_0x5537d5,_0x63257b={'\x56\x53\x44\x4e\x6f':function(_0x23b633,_0x5de60d,_0x31f144){const _0x20b70d=_0x4574;return _0x1da342[_0x20b70d(0x202,'\x65\x76\x21\x4f')](_0x23b633,_0x5de60d,_0x31f144);},'\x79\x53\x43\x71\x47':_0x1da342[_0x2e4692(0x1d2,'\x6d\x79\x55\x56')],'\x6e\x78\x4c\x62\x6a':_0x1da342[_0x2e4692(0x289,'\x64\x56\x4f\x2a')]};return _0x1da342[_0x2e4692(0x210,'\x68\x41\x49\x74')](_0x2e4692(0x259,'\x6e\x54\x52\x52'),_0x1da342[_0x2e4692(0x237,'\x56\x24\x4c\x78')])?async function(..._0x1725a8){const _0x6b33a7=_0x2e4692,_0x839d13={'\x78\x61\x42\x51\x59':function(_0x383792,_0x26944e,_0x3339fc){const _0x58a71e=_0x4574;return _0x1da342[_0x58a71e(0x1cd,'\x47\x73\x5a\x68')](_0x383792,_0x26944e,_0x3339fc);},'\x50\x53\x71\x4b\x59':_0x1da342[_0x6b33a7(0x26c,'\x71\x77\x4b\x4d')]};if(_0x1da342['\x73\x57\x4d\x55\x41'](_0x6b33a7(0x26d,'\x6d\x5b\x64\x6b'),_0x1da342['\x68\x70\x61\x50\x45']))try{return await _0x1da342['\x72\x76\x4f\x58\x4c'](_0x1d6ed1,..._0x1725a8);}catch(_0x2db202){if(_0x6b33a7(0x1e0,'\x59\x45\x45\x42')===_0x6b33a7(0x20a,'\x2a\x56\x37\x4d')){const _0x9c89f6=_0x2e5b2d[_0x6b33a7(0x21a,'\x29\x68\x37\x6d')+_0x6b33a7(0x236,'\x47\x6f\x55\x64')+_0x6b33a7(0x1ee,'\x71\x33\x4d\x39')](_0x27cfb1);return _0x839d13[_0x6b33a7(0x23c,'\x25\x73\x30\x6d')](_0x10329f,_0x6b33a7(0x1f0,'\x4f\x74\x4a\x69')+'\x73\x74',{'\x6b\x69\x6e\x64':_0x839d13[_0x6b33a7(0x220,'\x75\x5e\x46\x73')],'\x65\x76\x65\x6e\x74':_0x9c89f6})[_0x6b33a7(0x1d4,'\x40\x5a\x40\x6d')](()=>{}),_0x9c89f6;}else return _0x1da342[_0x6b33a7(0x235,'\x4d\x37\x52\x51')](_0x51e0b7,..._0x1725a8);}else _0x63257b[_0x6b33a7(0x1ec,'\x31\x43\x59\x57')](_0xb65e1e,_0x63257b['\x79\x53\x43\x71\x47'],{'\x6b\x69\x6e\x64':_0x63257b[_0x6b33a7(0x218,'\x68\x29\x52\x45')],'\x65\x76\x65\x6e\x74':_0x11aad9})[_0x6b33a7(0x275,'\x71\x33\x4d\x39')](()=>{});}:_0x1b12b3['\x74\x72\x79\x52\x65\x61\x64\x4d'+_0x2e4692(0x269,'\x50\x75\x5e\x58')+_0x2e4692(0x252,'\x52\x57\x5b\x40')](_0x29a536);}return{'\x6e\x61\x6d\x65':_0x1da342[_0x5537d5(0x215,'\x68\x42\x33\x75')],'\x67\x65\x74\x41\x64\x76\x69\x63\x65':_0x1da342[_0x5537d5(0x23f,'\x47\x73\x5a\x68')](_0x3466b7,_0x4c608b=>_0x8cff61[_0x5537d5(0x28c,'\x77\x6c\x77\x48')+_0x5537d5(0x1d8,'\x56\x24\x4c\x78')](_0x4c608b),async _0x110e47=>{const _0x949ce9=_0x5537d5,_0x28ae91=await _0x21034c(_0x1da342['\x64\x6d\x56\x74\x57'],{'\x73\x69\x67\x6e\x61\x6c\x73':_0x110e47[_0x949ce9(0x208,'\x47\x6f\x55\x64')],'\x67\x65\x6e\x65\x73':(_0x110e47[_0x949ce9(0x274,'\x28\x5b\x38\x79')]||[])['\x6d\x61\x70'](_0x34ca0c=>({'\x69\x64':_0x34ca0c['\x69\x64'],'\x63\x61\x74\x65\x67\x6f\x72\x79':_0x34ca0c['\x63\x61\x74\x65\x67\x6f\x72\x79'],'\x74\x79\x70\x65':_0x34ca0c[_0x949ce9(0x212,'\x74\x5b\x7a\x55')]})),'\x64\x72\x69\x66\x74\x45\x6e\x61\x62\x6c\x65\x64':_0x110e47[_0x949ce9(0x1f6,'\x61\x66\x24\x49')+_0x949ce9(0x1f1,'\x25\x73\x30\x6d')]});return{'\x63\x75\x72\x72\x65\x6e\x74\x53\x69\x67\x6e\x61\x6c\x4b\x65\x79':_0x28ae91[_0x949ce9(0x283,'\x30\x35\x36\x42')+_0x949ce9(0x226,'\x6d\x5b\x64\x6b')]||_0x8cff61[_0x949ce9(0x1e6,'\x65\x76\x21\x4f')+'\x69\x67\x6e\x61\x6c\x4b\x65\x79'](_0x110e47[_0x949ce9(0x211,'\x6b\x66\x72\x40')]),'\x70\x72\x65\x66\x65\x72\x72\x65\x64\x47\x65\x6e\x65\x49\x64':_0x28ae91[_0x949ce9(0x24c,'\x2a\x56\x37\x4d')+_0x949ce9(0x245,'\x6b\x66\x72\x40')]||null,'\x62\x61\x6e\x6e\x65\x64\x47\x65\x6e\x65\x49\x64\x73':new Set(_0x28ae91['\x62\x61\x6e\x6e\x65\x64\x47\x65'+_0x949ce9(0x22c,'\x52\x67\x46\x43')]||[]),'\x65\x78\x70\x6c\x61\x6e\x61\x74\x69\x6f\x6e':Array[_0x949ce9(0x230,'\x71\x33\x4d\x39')](_0x28ae91[_0x949ce9(0x1fb,'\x6d\x5b\x64\x6b')+_0x949ce9(0x27e,'\x2a\x56\x37\x4d')])?_0x28ae91[_0x949ce9(0x1ce,'\x68\x42\x33\x75')+_0x949ce9(0x1ef,'\x4d\x43\x53\x66')]:[]};}),'\x72\x65\x63\x6f\x72\x64\x53\x69\x67\x6e\x61\x6c\x53\x6e\x61\x70\x73\x68\x6f\x74'(_0x3c53d1){const _0x55a209=_0x5537d5,_0x22d465=_0x8cff61[_0x55a209(0x26e,'\x79\x21\x62\x71')+_0x55a209(0x20c,'\x52\x57\x5b\x40')+_0x55a209(0x214,'\x6a\x7a\x42\x44')](_0x3c53d1),_0x1ed06c={};return _0x1ed06c[_0x55a209(0x253,'\x29\x68\x37\x6d')]=_0x55a209(0x28a,'\x75\x5e\x46\x73'),_0x1ed06c[_0x55a209(0x1fe,'\x4f\x74\x4a\x69')]=_0x22d465,_0x21034c(_0x55a209(0x20d,'\x47\x73\x5a\x68')+'\x73\x74',_0x1ed06c)[_0x55a209(0x1cc,'\x6b\x66\x72\x40')](()=>{}),_0x22d465;},'\x72\x65\x63\x6f\x72\x64\x48\x79\x70\x6f\x74\x68\x65\x73\x69\x73'(_0x53278f){const _0x2578a7=_0x5537d5,_0x59b4cf=_0x8cff61[_0x2578a7(0x267,'\x40\x5a\x40\x6d')+_0x2578a7(0x1f2,'\x31\x29\x54\x6f')](_0x53278f);return _0x1da342[_0x2578a7(0x24a,'\x52\x36\x36\x6d')](_0x21034c,_0x1da342[_0x2578a7(0x1fd,'\x29\x68\x37\x6d')],{'\x6b\x69\x6e\x64':_0x1da342[_0x2578a7(0x27c,'\x6d\x5b\x64\x6b')],'\x65\x76\x65\x6e\x74':_0x59b4cf})[_0x2578a7(0x1d9,'\x38\x5e\x6e\x53')](()=>{}),_0x59b4cf;},'\x72\x65\x63\x6f\x72\x64\x41\x74\x74\x65\x6d\x70\x74'(_0x4bb6af){const _0x3e7eb9=_0x5537d5;if(_0x1da342[_0x3e7eb9(0x249,'\x42\x4c\x77\x66')]!==_0x1da342[_0x3e7eb9(0x23a,'\x61\x66\x24\x49')]){const _0x481366=_0x8cff61[_0x3e7eb9(0x254,'\x74\x5b\x7a\x55')+_0x3e7eb9(0x262,'\x46\x45\x6a\x54')](_0x4bb6af);return _0x1da342[_0x3e7eb9(0x1cf,'\x61\x66\x24\x49')](_0x21034c,_0x3e7eb9(0x1f8,'\x71\x33\x4d\x39')+'\x73\x74',{'\x6b\x69\x6e\x64':_0x1da342[_0x3e7eb9(0x1d0,'\x65\x76\x21\x4f')],'\x65\x76\x65\x6e\x74':_0x481366})[_0x3e7eb9(0x203,'\x4d\x37\x52\x51')](()=>{}),_0x481366;}else return _0x501159[_0x3e7eb9(0x22e,'\x6d\x5b\x64\x6b')+'\x74\x65\x6d\x70\x74'](_0x5646a0);},'\x72\x65\x63\x6f\x72\x64\x4f\x75\x74\x63\x6f\x6d\x65'(_0x37428a){const _0x556359=_0x5537d5,_0x10c80b=_0x8cff61[_0x556359(0x24b,'\x65\x76\x21\x4f')+_0x556359(0x205,'\x64\x56\x4f\x2a')+_0x556359(0x21b,'\x56\x24\x4c\x78')](_0x37428a);return _0x10c80b&&_0x21034c(_0x1da342[_0x556359(0x255,'\x28\x5b\x38\x79')],{'\x6b\x69\x6e\x64':_0x1da342['\x48\x53\x61\x67\x56'],'\x65\x76\x65\x6e\x74':_0x10c80b})[_0x556359(0x224,'\x59\x6d\x5b\x55')](()=>{}),_0x10c80b;},'\x72\x65\x63\x6f\x72\x64\x45\x78\x74\x65\x72\x6e\x61\x6c\x43\x61\x6e\x64\x69\x64\x61\x74\x65'(_0x5935b8){const _0x5d6c06=_0x5537d5,_0x2b6aaf=_0x8cff61[_0x5d6c06(0x23e,'\x4f\x74\x4a\x69')+_0x5d6c06(0x240,'\x59\x6d\x5b\x55')+_0x5d6c06(0x278,'\x61\x66\x24\x49')](_0x5935b8);return _0x2b6aaf&&_0x1da342[_0x5d6c06(0x204,'\x6a\x58\x79\x61')](_0x21034c,_0x5d6c06(0x244,'\x71\x77\x4b\x4d')+'\x73\x74',{'\x6b\x69\x6e\x64':_0x1da342[_0x5d6c06(0x209,'\x68\x42\x33\x75')],'\x65\x76\x65\x6e\x74':_0x2b6aaf})[_0x5d6c06(0x1d6,'\x74\x32\x63\x59')](()=>{}),_0x2b6aaf;},'\x6d\x65\x6d\x6f\x72\x79\x47\x72\x61\x70\x68\x50\x61\x74\x68'(){const _0x435ac7=_0x5537d5;return _0x8cff61[_0x435ac7(0x22f,'\x59\x45\x45\x42')+_0x435ac7(0x1f3,'\x5e\x75\x76\x78')]();},'\x63\x6f\x6d\x70\x75\x74\x65\x53\x69\x67\x6e\x61\x6c\x4b\x65\x79'(_0x122bbb){const _0x36bf85=_0x5537d5;return _0x8cff61[_0x36bf85(0x1fc,'\x59\x45\x45\x42')+_0x36bf85(0x225,'\x30\x35\x36\x42')](_0x122bbb);},'\x74\x72\x79\x52\x65\x61\x64\x4d\x65\x6d\x6f\x72\x79\x47\x72\x61\x70\x68\x45\x76\x65\x6e\x74\x73'(_0x386ed1){const _0x5a5815=_0x5537d5;return _0x8cff61[_0x5a5815(0x242,'\x71\x77\x4b\x4d')+'\x65\x6d\x6f\x72\x79\x47\x72\x61'+_0x5a5815(0x1e5,'\x74\x32\x63\x59')](_0x386ed1);}};}function _0x4fc72a(){const _0x49919c=_0x5ac7cb,_0x168096={'\x42\x6f\x43\x50\x6b':function(_0xfdd4cf,_0x173dd2,_0x358768){return _0xfdd4cf(_0x173dd2,_0x358768);},'\x5a\x4e\x4e\x73\x4c':'\x71\x4b\x6d\x68\x4a','\x70\x46\x54\x69\x52':function(_0x570d24,_0x5cd490){return _0x570d24!==_0x5cd490;},'\x50\x53\x78\x4a\x76':_0x49919c(0x23b,'\x2a\x56\x37\x4d'),'\x52\x52\x63\x57\x68':function(_0x1e12e4){return _0x1e12e4();},'\x48\x4c\x51\x66\x42':_0x49919c(0x26f,'\x65\x76\x21\x4f'),'\x63\x7a\x4b\x70\x69':_0x49919c(0x1e7,'\x6a\x7a\x42\x44')+_0x49919c(0x250,'\x56\x24\x4c\x78'),'\x75\x43\x48\x73\x73':function(_0x25ff33,_0x183d0d){return _0x25ff33===_0x183d0d;},'\x6f\x66\x69\x6d\x74':_0x49919c(0x206,'\x30\x35\x36\x42')},_0xae44ae=(function(){let _0x5ea477=!![];return function(_0x56e425,_0x597c9b){const _0x284eac=_0x4574,_0x27004e={'\x6b\x75\x6f\x48\x70':function(_0x17b2e7,_0x139557,_0xfcf238){const _0x2a8df0=_0x4574;return _0x168096[_0x2a8df0(0x227,'\x52\x67\x46\x43')](_0x17b2e7,_0x139557,_0xfcf238);},'\x48\x6f\x62\x43\x46':_0x168096[_0x284eac(0x1de,'\x77\x6c\x77\x48')]};if(_0x168096[_0x284eac(0x27d,'\x42\x4c\x77\x66')](_0x168096[_0x284eac(0x221,'\x71\x77\x4b\x4d')],_0x168096[_0x284eac(0x276,'\x64\x56\x4f\x2a')])){const _0x11d338=_0x552b25[_0x284eac(0x1eb,'\x46\x45\x6a\x54')+_0x284eac(0x26a,'\x79\x21\x62\x71')](_0x438e53),_0x5c3b96={};return _0x5c3b96[_0x284eac(0x272,'\x4f\x74\x4a\x69')]=_0x284eac(0x238,'\x6b\x39\x28\x75'),_0x5c3b96[_0x284eac(0x20b,'\x52\x57\x5b\x40')]=_0x11d338,ZgomCW[_0x284eac(0x1e8,'\x47\x6f\x55\x64')](_0x15ca99,'\x2f\x6b\x67\x2f\x69\x6e\x67\x65'+'\x73\x74',_0x5c3b96)[_0x284eac(0x234,'\x6b\x39\x28\x75')](()=>{}),_0x11d338;}else{const _0x46300a=_0x5ea477?function(){const _0x2ba1ba=_0x284eac;if(_0x597c9b){if(_0x27004e['\x48\x6f\x62\x43\x46']===_0x27004e[_0x2ba1ba(0x1da,'\x6a\x58\x79\x61')]){const _0x2384aa=_0x597c9b[_0x2ba1ba(0x273,'\x6b\x39\x28\x75')](_0x56e425,arguments);return _0x597c9b=null,_0x2384aa;}else return _0x5bef66[_0x2ba1ba(0x219,'\x28\x5b\x38\x79')+_0x2ba1ba(0x207,'\x4f\x44\x67\x57')](_0x218215);}}:function(){};return _0x5ea477=![],_0x46300a;}};}()),_0x37cd46=_0xae44ae(this,function(){const _0x33e7e4=_0x49919c;return _0x168096['\x70\x46\x54\x69\x52'](_0x33e7e4(0x246,'\x77\x4f\x6d\x21'),_0x168096[_0x33e7e4(0x26b,'\x50\x75\x5e\x58')])?_0x37cd46[_0x33e7e4(0x1cb,'\x52\x57\x5b\x40')]()[_0x33e7e4(0x277,'\x28\x5b\x38\x79')](_0x168096[_0x33e7e4(0x258,'\x52\x36\x36\x6d')])[_0x33e7e4(0x1d7,'\x61\x66\x24\x49')]()[_0x33e7e4(0x21c,'\x75\x5e\x46\x73')+_0x33e7e4(0x25c,'\x4f\x74\x4a\x69')](_0x37cd46)[_0x33e7e4(0x216,'\x30\x35\x36\x42')](_0x168096[_0x33e7e4(0x25d,'\x6e\x54\x52\x52')]):_0x168096[_0x33e7e4(0x27a,'\x6d\x71\x53\x52')](_0x226d62);});_0x168096[_0x49919c(0x251,'\x50\x75\x5e\x58')](_0x37cd46);const _0x3a1181=(process.env.MEMORY_GRAPH_PROVIDER||_0x49919c(0x241,'\x5e\x75\x76\x78'))[_0x49919c(0x229,'\x38\x5e\x6e\x53')+_0x49919c(0x263,'\x30\x35\x36\x42')]()[_0x49919c(0x20e,'\x42\x4c\x77\x66')]();if(_0x168096['\x75\x43\x48\x73\x73'](_0x3a1181,_0x168096['\x6f\x66\x69\x6d\x74']))return _0x168096[_0x49919c(0x24e,'\x31\x43\x59\x57')](_0xe65159);return _0x36c8a5;}function _0x3707(){const _0x338d37=['\x57\x50\x64\x63\x4e\x53\x6f\x56\x77\x43\x6f\x48\x6b\x38\x6b\x59\x57\x52\x38','\x57\x51\x56\x63\x4e\x53\x6f\x7a\x6b\x61\x4b','\x57\x50\x64\x63\x4e\x53\x6f\x38\x77\x53\x6f\x59\x6c\x6d\x6b\x65','\x57\x4f\x66\x4c\x57\x37\x65\x56\x57\x34\x62\x39\x57\x50\x30','\x57\x37\x4e\x63\x56\x59\x44\x47','\x57\x50\x4e\x64\x4a\x68\x79\x73\x65\x71','\x6c\x6d\x6f\x47\x57\x35\x79\x6a\x57\x36\x38','\x69\x75\x46\x63\x54\x72\x33\x64\x55\x61','\x57\x4f\x38\x44\x45\x43\x6f\x57\x7a\x47','\x6f\x6d\x6f\x47\x57\x35\x4b\x45\x57\x37\x39\x56','\x57\x34\x75\x31\x70\x53\x6f\x6e\x57\x34\x4a\x64\x4e\x6d\x6b\x6b','\x43\x53\x6b\x33\x57\x37\x69\x43\x57\x50\x5a\x63\x50\x43\x6f\x36\x57\x36\x6a\x6f\x6f\x58\x4e\x64\x48\x31\x57','\x57\x52\x68\x63\x50\x43\x6b\x49\x41\x6d\x6f\x37','\x6f\x53\x6b\x75\x57\x37\x65\x45\x64\x53\x6f\x32\x57\x51\x33\x64\x4e\x71','\x68\x53\x6b\x68\x71\x43\x6b\x55\x57\x37\x6d','\x77\x53\x6f\x51\x67\x53\x6b\x31\x6e\x61','\x57\x52\x70\x64\x4d\x53\x6b\x54','\x64\x53\x6b\x57\x76\x6d\x6b\x68\x57\x34\x71','\x67\x4e\x4b\x43\x57\x52\x64\x64\x4d\x47\x6a\x6e\x69\x71','\x6f\x75\x34\x72\x57\x52\x68\x63\x4c\x38\x6f\x4f\x63\x73\x42\x63\x48\x67\x53\x5a\x73\x38\x6f\x6e','\x57\x34\x70\x64\x48\x38\x6f\x35\x57\x51\x78\x63\x4f\x57','\x57\x50\x48\x6e\x41\x38\x6b\x79\x78\x74\x37\x63\x4d\x4b\x43','\x72\x30\x68\x64\x4f\x64\x33\x63\x4e\x32\x46\x63\x49\x4c\x79','\x45\x72\x39\x61\x57\x36\x2f\x64\x4b\x6d\x6b\x35\x42\x58\x75','\x44\x38\x6b\x59\x57\x37\x47\x43\x57\x50\x56\x63\x4f\x53\x6f\x34\x57\x34\x72\x35\x6e\x4a\x64\x64\x4e\x31\x79','\x6c\x53\x6f\x52\x57\x4f\x50\x38\x57\x36\x61','\x57\x36\x66\x55\x57\x4f\x35\x32\x78\x4b\x68\x63\x4e\x53\x6f\x5a','\x57\x50\x43\x44\x79\x6d\x6f\x44\x72\x47','\x6b\x53\x6f\x6b\x57\x35\x6a\x66\x57\x34\x47\x4a','\x57\x51\x46\x63\x4b\x48\x68\x64\x52\x71\x64\x64\x51\x5a\x4b\x42','\x69\x43\x6f\x49\x57\x52\x39\x49\x57\x34\x56\x64\x56\x38\x6b\x4a\x57\x34\x43','\x41\x6d\x6b\x70\x78\x43\x6f\x4a\x66\x38\x6f\x55\x57\x37\x61\x70','\x57\x52\x6d\x41\x57\x37\x42\x63\x4c\x38\x6b\x6e\x61\x6d\x6f\x50\x68\x47','\x74\x63\x6e\x71\x57\x52\x74\x64\x53\x47','\x57\x37\x66\x53\x57\x50\x6a\x7a\x71\x61','\x6c\x43\x6f\x63\x62\x57\x38\x74\x57\x34\x68\x64\x4a\x62\x34','\x57\x34\x4f\x4a\x66\x53\x6f\x44\x57\x35\x38','\x57\x4f\x74\x63\x4f\x38\x6f\x79\x69\x57\x4b','\x57\x36\x35\x2f\x6e\x6d\x6b\x64\x69\x61\x5a\x63\x48\x43\x6f\x72\x57\x35\x65\x74\x43\x4b\x56\x64\x50\x57','\x57\x35\x61\x33\x57\x4f\x56\x63\x4c\x48\x75','\x57\x50\x64\x63\x56\x53\x6f\x73\x67\x71\x47','\x57\x36\x2f\x64\x56\x53\x6f\x57\x79\x6d\x6b\x43','\x43\x43\x6f\x42\x6c\x38\x6b\x46\x57\x52\x56\x63\x55\x38\x6b\x42\x67\x71','\x57\x36\x4e\x64\x51\x49\x35\x4a\x57\x37\x30','\x57\x35\x38\x2b\x62\x6d\x6f\x44\x57\x35\x56\x64\x47\x43\x6b\x62\x57\x34\x69','\x6c\x47\x37\x64\x48\x43\x6b\x49\x78\x43\x6b\x63\x6d\x61','\x61\x53\x6b\x52\x69\x47\x70\x64\x4f\x47','\x73\x53\x6b\x4d\x57\x34\x54\x57\x7a\x71','\x68\x38\x6b\x6f\x66\x76\x64\x64\x53\x66\x30\x54\x57\x51\x42\x64\x54\x53\x6f\x6b\x57\x35\x72\x6e\x79\x47','\x57\x36\x33\x64\x52\x38\x6f\x30\x42\x38\x6b\x44\x57\x4f\x62\x64\x70\x71','\x74\x43\x6f\x59\x57\x51\x74\x63\x4c\x4b\x4a\x63\x49\x53\x6b\x59\x73\x57','\x68\x6d\x6f\x6a\x57\x4f\x76\x43\x57\x36\x69','\x57\x37\x7a\x61\x57\x50\x42\x64\x4b\x6d\x6f\x6b\x77\x43\x6b\x5a\x63\x6d\x6f\x63\x76\x6d\x6b\x65\x6d\x43\x6b\x70','\x66\x74\x4a\x63\x50\x38\x6b\x49\x66\x71','\x57\x4f\x52\x63\x4b\x6d\x6b\x32\x78\x6d\x6f\x57','\x57\x4f\x56\x63\x4a\x53\x6b\x58\x75\x6d\x6f\x4e\x57\x35\x58\x2f\x76\x47','\x78\x53\x6f\x45\x6e\x38\x6b\x6f\x61\x58\x62\x6c\x70\x47','\x42\x47\x39\x78\x57\x52\x5a\x64\x4a\x61','\x57\x37\x52\x64\x4f\x58\x39\x32\x57\x37\x62\x37\x57\x34\x2f\x64\x4f\x61','\x57\x51\x70\x63\x47\x6d\x6f\x32\x6f\x48\x6c\x64\x50\x30\x48\x49','\x77\x61\x69\x5a\x64\x47\x4b\x55\x57\x4f\x42\x64\x4d\x71','\x68\x38\x6f\x41\x7a\x53\x6f\x58\x57\x4f\x6d','\x57\x35\x30\x59\x57\x36\x43\x6a\x57\x35\x7a\x44\x57\x52\x52\x64\x51\x71','\x62\x53\x6f\x41\x72\x53\x6f\x46\x57\x4f\x61','\x46\x38\x6b\x6a\x67\x31\x46\x63\x56\x43\x6f\x64\x64\x47\x47','\x63\x6d\x6b\x71\x61\x64\x6e\x58','\x45\x49\x50\x79\x57\x4f\x61\x6c\x6c\x4c\x74\x63\x55\x61','\x6d\x75\x37\x63\x52\x47\x4f','\x44\x4d\x5a\x64\x4e\x61','\x57\x52\x33\x63\x56\x73\x34\x52\x57\x34\x4c\x72\x65\x58\x43','\x42\x43\x6b\x6e\x77\x43\x6f\x52','\x57\x50\x62\x2b\x57\x37\x65\x49\x57\x34\x48\x2b\x57\x4f\x64\x64\x52\x61','\x74\x53\x6f\x70\x7a\x57\x56\x63\x53\x38\x6b\x6b\x61\x71','\x57\x4f\x76\x50\x57\x37\x75\x4c\x57\x35\x39\x35\x57\x50\x4f','\x79\x6d\x6b\x6a\x66\x76\x46\x63\x56\x43\x6f\x45\x63\x61\x34','\x57\x34\x38\x4a\x70\x53\x6f\x70\x57\x35\x33\x64\x52\x43\x6b\x62\x57\x34\x71','\x6e\x53\x6f\x35\x57\x50\x61\x61\x65\x77\x6c\x64\x56\x38\x6f\x33\x57\x50\x39\x51\x57\x35\x2f\x64\x4d\x53\x6f\x65','\x42\x75\x33\x63\x50\x4c\x68\x64\x55\x72\x61\x4f\x68\x47','\x6b\x53\x6f\x33\x57\x37\x4b\x79\x57\x36\x4f','\x41\x6d\x6b\x55\x57\x34\x76\x61\x41\x71','\x6f\x53\x6b\x4e\x46\x43\x6b\x4b\x57\x34\x74\x63\x53\x30\x43\x68','\x61\x72\x52\x63\x4f\x43\x6b\x43\x6d\x38\x6b\x4a\x43\x67\x61','\x75\x43\x6f\x53\x43\x59\x33\x63\x4c\x71','\x57\x37\x46\x63\x4f\x63\x58\x51\x57\x35\x71','\x57\x50\x68\x63\x4a\x38\x6f\x2b\x78\x38\x6f\x39\x6b\x6d\x6b\x69\x57\x52\x61','\x57\x50\x46\x63\x4c\x6d\x6b\x55\x75\x53\x6f\x32\x57\x37\x6a\x4f\x73\x47','\x43\x6d\x6b\x53\x57\x34\x72\x43\x76\x5a\x64\x63\x4c\x53\x6f\x6c','\x57\x52\x4e\x63\x49\x53\x6f\x50\x62\x62\x75','\x6b\x38\x6b\x4a\x76\x67\x5a\x63\x56\x61','\x79\x38\x6b\x37\x57\x36\x48\x68\x76\x71','\x57\x51\x53\x54\x42\x53\x6f\x78\x44\x78\x33\x64\x48\x53\x6f\x7a','\x57\x4f\x4c\x44\x44\x6d\x6b\x66\x74\x64\x75','\x67\x68\x6d\x6c\x57\x52\x46\x64\x4a\x72\x76\x52\x6a\x57','\x62\x38\x6f\x67\x42\x53\x6f\x78\x57\x50\x6c\x64\x55\x53\x6b\x39','\x63\x43\x6f\x55\x61\x63\x79\x78','\x57\x52\x78\x64\x4b\x6d\x6b\x68\x70\x43\x6f\x35','\x57\x51\x69\x64\x57\x34\x64\x63\x4a\x43\x6b\x6c','\x57\x51\x61\x42\x57\x34\x74\x63\x4a\x38\x6b\x53\x62\x38\x6f\x4d\x63\x71','\x57\x51\x44\x49\x57\x4f\x43\x34\x77\x32\x74\x63\x4e\x6d\x6f\x56','\x78\x53\x6f\x45\x6a\x38\x6b\x58','\x42\x43\x6b\x78\x57\x4f\x6d\x7a\x57\x50\x39\x35\x76\x43\x6b\x71\x78\x74\x34\x57\x57\x50\x4e\x64\x54\x71','\x78\x38\x6b\x73\x44\x43\x6f\x67\x57\x50\x38','\x78\x63\x54\x64\x57\x52\x4e\x64\x55\x38\x6b\x58\x69\x47','\x46\x57\x6e\x74\x57\x36\x75','\x57\x50\x78\x64\x4f\x43\x6b\x67\x6a\x53\x6f\x50\x73\x33\x4a\x63\x52\x57','\x61\x30\x6a\x30\x76\x61','\x69\x43\x6f\x4f\x6c\x47\x38\x57','\x57\x4f\x48\x44\x45\x6d\x6b\x79\x77\x5a\x47','\x57\x37\x70\x64\x49\x4a\x35\x32\x57\x37\x58\x32\x57\x35\x34','\x43\x6d\x6b\x2b\x57\x35\x46\x63\x52\x32\x43','\x6f\x43\x6f\x47\x57\x35\x53\x64\x57\x36\x35\x4a\x57\x50\x68\x64\x50\x47','\x77\x43\x6f\x46\x71\x61\x33\x63\x54\x61\x39\x6b\x57\x4f\x43','\x6f\x48\x5a\x64\x4c\x43\x6b\x31\x71\x6d\x6b\x65','\x6f\x53\x6f\x6d\x57\x35\x54\x79\x57\x35\x30\x39\x66\x6d\x6b\x37','\x67\x38\x6f\x49\x6c\x38\x6f\x4a\x57\x51\x34','\x61\x47\x46\x64\x53\x43\x6b\x61\x76\x57','\x57\x50\x48\x78\x44\x6d\x6b\x41\x74\x73\x74\x63\x49\x30\x43','\x63\x43\x6f\x57\x57\x34\x72\x47\x57\x37\x61','\x57\x50\x4a\x64\x54\x76\x33\x63\x52\x5a\x38','\x64\x38\x6f\x69\x66\x48\x6d\x41','\x72\x74\x66\x6c\x57\x52\x4b','\x57\x50\x62\x38\x57\x37\x34\x70\x57\x35\x6d','\x57\x50\x6a\x46\x44\x38\x6b\x6c\x76\x62\x56\x63\x49\x32\x30','\x6e\x53\x6b\x34\x79\x38\x6b\x50\x57\x34\x4e\x63\x4c\x4b\x6d\x6b','\x41\x47\x72\x6c\x57\x50\x47\x2f','\x74\x6d\x6f\x4c\x72\x48\x64\x63\x54\x61\x72\x52\x57\x35\x71','\x66\x43\x6b\x4c\x67\x47\x2f\x64\x56\x72\x58\x48\x57\x50\x65','\x62\x6d\x6f\x49\x57\x51\x50\x44\x57\x34\x56\x64\x4f\x6d\x6f\x53','\x68\x31\x39\x56\x71\x30\x31\x51\x57\x34\x47','\x72\x47\x35\x62\x57\x51\x57\x4e','\x70\x53\x6b\x54\x74\x6d\x6b\x38\x57\x35\x6d','\x6c\x43\x6b\x36\x42\x53\x6b\x4e\x57\x35\x46\x63\x55\x77\x43\x68','\x64\x58\x64\x63\x4f\x43\x6b\x64\x6e\x6d\x6b\x55\x75\x4b\x65','\x6b\x31\x78\x63\x47\x61\x5a\x64\x4f\x48\x38\x32','\x42\x67\x52\x64\x4c\x43\x6f\x52\x64\x53\x6f\x73','\x6d\x75\x2f\x63\x50\x48\x64\x64\x53\x72\x69','\x72\x33\x43\x79\x57\x37\x64\x64\x47\x71\x48\x4c\x6d\x71','\x57\x50\x56\x64\x4e\x78\x69\x44\x61\x61','\x6f\x53\x6b\x30\x42\x31\x46\x63\x4d\x61','\x65\x38\x6f\x62\x41\x6d\x6f\x76\x57\x51\x64\x64\x55\x6d\x6b\x56\x6c\x61','\x66\x62\x56\x64\x48\x53\x6b\x41\x42\x61','\x57\x50\x4e\x64\x49\x68\x69\x42\x62\x43\x6b\x75\x73\x61','\x57\x35\x64\x64\x4a\x38\x6b\x2b\x62\x38\x6b\x4d\x45\x53\x6f\x75\x57\x4f\x5a\x64\x4a\x57\x42\x63\x53\x43\x6b\x43\x57\x37\x47','\x57\x34\x38\x6c\x6d\x6d\x6f\x72\x57\x36\x43','\x57\x4f\x5a\x64\x4f\x53\x6b\x4e\x67\x38\x6f\x34','\x44\x38\x6b\x61\x46\x53\x6f\x45\x68\x71','\x57\x34\x43\x59\x57\x51\x2f\x63\x55\x64\x6a\x73','\x57\x36\x64\x63\x53\x59\x50\x52\x57\x35\x6a\x42\x6d\x71\x4f','\x57\x34\x66\x57\x57\x51\x58\x54\x77\x47','\x57\x4f\x44\x34\x57\x37\x47\x63\x57\x35\x50\x45\x57\x4f\x56\x64\x53\x71','\x71\x38\x6f\x71\x42\x64\x52\x63\x56\x47','\x57\x52\x5a\x64\x4c\x66\x5a\x63\x54\x59\x57\x49\x79\x47\x30','\x6b\x53\x6b\x5a\x69\x64\x52\x64\x50\x47','\x57\x36\x46\x64\x4a\x75\x6c\x64\x49\x49\x61\x54\x79\x73\x75','\x73\x57\x76\x62\x57\x52\x4e\x64\x56\x38\x6b\x75\x6e\x71','\x42\x78\x42\x64\x4b\x64\x74\x63\x47\x57','\x78\x6d\x6f\x6c\x42\x49\x2f\x63\x50\x38\x6b\x6e','\x57\x52\x70\x64\x4b\x53\x6b\x32\x63\x38\x6f\x7a\x46\x71','\x77\x53\x6f\x6b\x70\x6d\x6b\x2f\x6c\x47','\x72\x43\x6f\x56\x57\x4f\x56\x64\x4a\x76\x71','\x57\x52\x6c\x63\x49\x53\x6f\x34\x6a\x72\x78\x64\x54\x32\x6a\x65','\x57\x51\x52\x64\x48\x38\x6b\x4d\x68\x38\x6f\x7a\x41\x30\x42\x64\x51\x47','\x57\x34\x68\x64\x4a\x6d\x6f\x5a\x57\x51\x64\x63\x52\x48\x5a\x63\x4f\x71','\x64\x6d\x6b\x72\x6a\x59\x50\x32','\x45\x58\x76\x78\x57\x36\x4a\x64\x48\x38\x6b\x55\x76\x71\x38','\x46\x67\x42\x63\x49\x53\x6f\x57','\x57\x50\x56\x63\x52\x57\x42\x63\x4d\x47\x53','\x57\x52\x43\x44\x57\x36\x64\x63\x4c\x43\x6b\x41\x62\x38\x6f\x5a\x63\x47','\x71\x6d\x6f\x74\x74\x71\x79','\x45\x72\x39\x61\x57\x36\x2f\x64\x4b\x6d\x6b\x35\x46\x71\x47','\x6d\x43\x6f\x74\x57\x36\x47\x4a\x57\x34\x38','\x57\x50\x50\x49\x79\x53\x6b\x45\x57\x50\x68\x63\x4e\x53\x6f\x43\x57\x34\x53\x58\x57\x37\x38\x45\x6e\x47\x30','\x45\x43\x6b\x6c\x71\x4c\x50\x63\x57\x50\x4a\x63\x4e\x61\x33\x63\x52\x66\x7a\x34\x6f\x49\x53','\x72\x38\x6f\x4e\x57\x4f\x68\x64\x49\x75\x53','\x6a\x53\x6b\x2b\x57\x36\x75\x45\x70\x71','\x65\x38\x6f\x69\x57\x52\x37\x64\x56\x66\x78\x63\x47\x6d\x6b\x6c','\x67\x62\x44\x71\x57\x50\x6c\x64\x52\x43\x6b\x4b\x62\x57','\x57\x36\x42\x63\x55\x74\x53','\x66\x6d\x6b\x52\x57\x37\x43\x48\x6e\x71','\x57\x35\x47\x65\x57\x52\x4a\x63\x54\x4a\x72\x74\x70\x43\x6b\x4e','\x46\x43\x6b\x65\x78\x38\x6f\x47\x6e\x53\x6f\x4b\x57\x35\x4b\x67','\x41\x6d\x6b\x62\x66\x30\x52\x63\x54\x53\x6f\x47\x70\x72\x30','\x43\x58\x74\x64\x53\x4b\x42\x63\x4f\x75\x50\x39\x6d\x53\x6f\x7a\x57\x51\x56\x63\x52\x4c\x46\x63\x4d\x57','\x45\x43\x6b\x6a\x66\x75\x4a\x63\x55\x57','\x57\x50\x50\x6c\x46\x61','\x57\x50\x37\x63\x4d\x53\x6b\x50\x57\x37\x5a\x64\x56\x4c\x5a\x64\x54\x4d\x56\x63\x4d\x61\x58\x75\x71\x4d\x4f','\x7a\x38\x6f\x6c\x6e\x6d\x6b\x6f','\x66\x6d\x6f\x4d\x57\x35\x4b\x63\x57\x37\x48\x55\x57\x52\x33\x64\x56\x47','\x57\x37\x37\x64\x55\x53\x6f\x4e\x42\x6d\x6b\x67\x57\x4f\x44\x51\x6d\x61','\x74\x72\x37\x63\x51\x38\x6f\x64\x6a\x38\x6b\x5a\x79\x31\x4f','\x57\x51\x5a\x63\x4b\x61\x52\x63\x56\x58\x52\x64\x47\x59\x75\x43','\x57\x50\x42\x63\x4e\x53\x6f\x48\x72\x53\x6f\x4e','\x57\x4f\x68\x63\x53\x74\x74\x63\x51\x59\x65','\x57\x4f\x2f\x64\x4c\x68\x78\x63\x52\x47\x71','\x6f\x43\x6b\x4d\x7a\x38\x6b\x35\x57\x36\x79'];_0x3707=function(){return _0x338d37;};return _0x3707();}const _0x5d0922=_0x4fc72a();module[_0x5ac7cb(0x1f4,'\x31\x29\x54\x6f')]=_0x5d0922;
1
+ // ---------------------------------------------------------------------------
2
+ // MemoryGraphAdapter -- stable interface boundary for memory graph operations.
3
+ //
4
+ // Default implementation delegates to the local JSONL-based memoryGraph.js.
5
+ // SaaS providers can supply a remote adapter by setting MEMORY_GRAPH_PROVIDER=remote
6
+ // and configuring MEMORY_GRAPH_REMOTE_URL / MEMORY_GRAPH_REMOTE_KEY.
7
+ //
8
+ // The adapter is designed so that the open-source evolver always works offline
9
+ // with the local implementation. Remote is optional and degrades gracefully.
10
+ // ---------------------------------------------------------------------------
11
+
12
+ const localGraph = require('./memoryGraph');
13
+
14
+ // ---------------------------------------------------------------------------
15
+ // Adapter interface contract (all methods must be implemented by providers):
16
+ //
17
+ // getAdvice({ signals, genes, driftEnabled }) => { preferredGeneId, bannedGeneIds, currentSignalKey, explanation }
18
+ // recordSignalSnapshot({ signals, observations }) => event
19
+ // recordHypothesis({ signals, mutation, personality_state, selectedGene, selector, driftEnabled, selectedBy, capsulesUsed, observations }) => { hypothesisId, signalKey }
20
+ // recordAttempt({ signals, mutation, personality_state, selectedGene, selector, driftEnabled, selectedBy, hypothesisId, capsulesUsed, observations }) => { actionId, signalKey }
21
+ // recordOutcome({ signals, observations }) => event | null
22
+ // recordExternalCandidate({ asset, source, signals }) => event | null
23
+ // memoryGraphPath() => string
24
+ // computeSignalKey(signals) => string
25
+ // tryReadMemoryGraphEvents(limit) => event[]
26
+ // ---------------------------------------------------------------------------
27
+
28
+ // ---------------------------------------------------------------------------
29
+ // Local adapter (default) -- wraps memoryGraph.js without any behavior change
30
+ // ---------------------------------------------------------------------------
31
+
32
+ const localAdapter = {
33
+ name: 'local',
34
+
35
+ getAdvice(opts) {
36
+ return localGraph.getMemoryAdvice(opts);
37
+ },
38
+
39
+ recordSignalSnapshot(opts) {
40
+ return localGraph.recordSignalSnapshot(opts);
41
+ },
42
+
43
+ recordHypothesis(opts) {
44
+ return localGraph.recordHypothesis(opts);
45
+ },
46
+
47
+ recordAttempt(opts) {
48
+ return localGraph.recordAttempt(opts);
49
+ },
50
+
51
+ recordOutcome(opts) {
52
+ return localGraph.recordOutcomeFromState(opts);
53
+ },
54
+
55
+ recordExternalCandidate(opts) {
56
+ return localGraph.recordExternalCandidate(opts);
57
+ },
58
+
59
+ memoryGraphPath() {
60
+ return localGraph.memoryGraphPath();
61
+ },
62
+
63
+ computeSignalKey(signals) {
64
+ return localGraph.computeSignalKey(signals);
65
+ },
66
+
67
+ tryReadMemoryGraphEvents(limit) {
68
+ return localGraph.tryReadMemoryGraphEvents(limit);
69
+ },
70
+ };
71
+
72
+ // ---------------------------------------------------------------------------
73
+ // Remote adapter (SaaS) -- calls external KG service with local fallback
74
+ // ---------------------------------------------------------------------------
75
+
76
+ function buildRemoteAdapter() {
77
+ const remoteUrl = process.env.MEMORY_GRAPH_REMOTE_URL || '';
78
+ const remoteKey = process.env.MEMORY_GRAPH_REMOTE_KEY || '';
79
+ const timeoutMs = Number(process.env.MEMORY_GRAPH_REMOTE_TIMEOUT_MS) || 5000;
80
+
81
+ async function remoteCall(endpoint, body) {
82
+ if (!remoteUrl) throw new Error('MEMORY_GRAPH_REMOTE_URL not configured');
83
+ const url = `${remoteUrl.replace(/\/+$/, '')}${endpoint}`;
84
+ const controller = new AbortController();
85
+ const timer = setTimeout(() => controller.abort(), timeoutMs);
86
+ try {
87
+ const res = await fetch(url, {
88
+ method: 'POST',
89
+ headers: {
90
+ 'Content-Type': 'application/json',
91
+ ...(remoteKey ? { Authorization: `Bearer ${remoteKey}` } : {}),
92
+ },
93
+ body: JSON.stringify(body),
94
+ signal: controller.signal,
95
+ });
96
+ if (!res.ok) {
97
+ throw new Error(`remote_kg_error: ${res.status}`);
98
+ }
99
+ return await res.json();
100
+ } finally {
101
+ clearTimeout(timer);
102
+ }
103
+ }
104
+
105
+ // Wrap remote call with local fallback -- ensures offline resilience.
106
+ function withFallback(localFn, remoteFn) {
107
+ return async function (...args) {
108
+ try {
109
+ return await remoteFn(...args);
110
+ } catch (e) {
111
+ // Fallback to local on any remote failure (network, timeout, config).
112
+ return localFn(...args);
113
+ }
114
+ };
115
+ }
116
+
117
+ return {
118
+ name: 'remote',
119
+
120
+ // getAdvice is the primary candidate for remote enhancement (richer graph reasoning).
121
+ getAdvice: withFallback(
122
+ (opts) => localGraph.getMemoryAdvice(opts),
123
+ async (opts) => {
124
+ const result = await remoteCall('/kg/advice', {
125
+ signals: opts.signals,
126
+ genes: (opts.genes || []).map((g) => ({ id: g.id, category: g.category, type: g.type })),
127
+ driftEnabled: opts.driftEnabled,
128
+ });
129
+ // Normalize remote response to match local contract.
130
+ return {
131
+ currentSignalKey: result.currentSignalKey || localGraph.computeSignalKey(opts.signals),
132
+ preferredGeneId: result.preferredGeneId || null,
133
+ bannedGeneIds: new Set(result.bannedGeneIds || []),
134
+ explanation: Array.isArray(result.explanation) ? result.explanation : [],
135
+ };
136
+ }
137
+ ),
138
+
139
+ // Write operations: always write locally first, then async-sync to remote.
140
+ // This preserves the append-only local graph as source of truth.
141
+ recordSignalSnapshot(opts) {
142
+ const ev = localGraph.recordSignalSnapshot(opts);
143
+ remoteCall('/kg/ingest', { kind: 'signal', event: ev }).catch(() => {});
144
+ return ev;
145
+ },
146
+
147
+ recordHypothesis(opts) {
148
+ const result = localGraph.recordHypothesis(opts);
149
+ remoteCall('/kg/ingest', { kind: 'hypothesis', event: result }).catch(() => {});
150
+ return result;
151
+ },
152
+
153
+ recordAttempt(opts) {
154
+ const result = localGraph.recordAttempt(opts);
155
+ remoteCall('/kg/ingest', { kind: 'attempt', event: result }).catch(() => {});
156
+ return result;
157
+ },
158
+
159
+ recordOutcome(opts) {
160
+ const ev = localGraph.recordOutcomeFromState(opts);
161
+ if (ev) {
162
+ remoteCall('/kg/ingest', { kind: 'outcome', event: ev }).catch(() => {});
163
+ }
164
+ return ev;
165
+ },
166
+
167
+ recordExternalCandidate(opts) {
168
+ const ev = localGraph.recordExternalCandidate(opts);
169
+ if (ev) {
170
+ remoteCall('/kg/ingest', { kind: 'external_candidate', event: ev }).catch(() => {});
171
+ }
172
+ return ev;
173
+ },
174
+
175
+ memoryGraphPath() {
176
+ return localGraph.memoryGraphPath();
177
+ },
178
+
179
+ computeSignalKey(signals) {
180
+ return localGraph.computeSignalKey(signals);
181
+ },
182
+
183
+ tryReadMemoryGraphEvents(limit) {
184
+ return localGraph.tryReadMemoryGraphEvents(limit);
185
+ },
186
+ };
187
+ }
188
+
189
+ // ---------------------------------------------------------------------------
190
+ // Provider resolution
191
+ // ---------------------------------------------------------------------------
192
+
193
+ function resolveAdapter() {
194
+ const provider = (process.env.MEMORY_GRAPH_PROVIDER || 'local').toLowerCase().trim();
195
+ if (provider === 'remote') {
196
+ return buildRemoteAdapter();
197
+ }
198
+ return localAdapter;
199
+ }
200
+
201
+ const adapter = resolveAdapter();
202
+
203
+ module.exports = adapter;