@elizaos/server 1.2.12 → 1.3.1

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.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Dw9mTTRq.js","assets/vendor-BWTRqS51.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-H_eyaW3n.js","assets/vendor-BWTRqS51.js"])))=>i.map(i=>d[i]);
2
2
  import { r as requireReact, a as requireReactDom, d as distExports, b as reactExports, g as getDefaultExportFromCjs, c as reactDomExports, R as React, e as ReactDOM, f as React$1, h as requireBufferPolyfill, i as requireBase64Js, u as useNavigate, j as useLocation, N as NavLink, k as useParams, L as Link, l as useSearchParams, B as BrowserRouter, m as Routes, n as Route } from './vendor-BWTRqS51.js';
3
3
 
4
4
  true &&(function polyfill() {
@@ -93045,7 +93045,7 @@ const GLOBAL_OBJ = globalThis;
93045
93045
 
93046
93046
  // This is a magic string replaced by rollup
93047
93047
 
93048
- const SDK_VERSION = "9.40.0" ;
93048
+ const SDK_VERSION = "9.41.0" ;
93049
93049
 
93050
93050
  function getMainCarrier() {
93051
93051
  getSentryCarrier(GLOBAL_OBJ);
@@ -100093,23 +100093,24 @@ class BrowserClient extends Client {
100093
100093
 
100094
100094
  super(opts);
100095
100095
 
100096
- const { sendDefaultPii, sendClientReports, _experiments } = this._options;
100097
- const enableLogs = _experiments?.enableLogs;
100096
+ const { sendDefaultPii, sendClientReports, enableLogs, _experiments } = this._options;
100097
+ // eslint-disable-next-line deprecation/deprecation
100098
+ const shouldEnableLogs = enableLogs ?? _experiments?.enableLogs;
100098
100099
 
100099
- if (WINDOW$1.document && (sendClientReports || enableLogs)) {
100100
+ if (WINDOW$1.document && (sendClientReports || shouldEnableLogs)) {
100100
100101
  WINDOW$1.document.addEventListener('visibilitychange', () => {
100101
100102
  if (WINDOW$1.document.visibilityState === 'hidden') {
100102
100103
  if (sendClientReports) {
100103
100104
  this._flushOutcomes();
100104
100105
  }
100105
- if (enableLogs) {
100106
+ if (shouldEnableLogs) {
100106
100107
  _INTERNAL_flushLogsBuffer(this);
100107
100108
  }
100108
100109
  }
100109
100110
  });
100110
100111
  }
100111
100112
 
100112
- if (enableLogs) {
100113
+ if (shouldEnableLogs) {
100113
100114
  this.on('flush', () => {
100114
100115
  _INTERNAL_flushLogsBuffer(this);
100115
100116
  });
@@ -102302,7 +102303,7 @@ var createStream = async () => {
102302
102303
  if (raw) {
102303
102304
  return void 0;
102304
102305
  }
102305
- const pretty = await __vitePreload(() => import('./index-Dw9mTTRq.js').then(n => n.i),true ?__vite__mapDeps([0,1]):void 0);
102306
+ const pretty = await __vitePreload(() => import('./index-H_eyaW3n.js').then(n => n.i),true ?__vite__mapDeps([0,1]):void 0);
102306
102307
  return pretty.default(createPrettyConfig());
102307
102308
  };
102308
102309
  var options = {
@@ -106389,20 +106390,22 @@ Agent: {{agentName}} (ID: {{agentId}})
106389
106390
  5. If multiple matches exist, use context to disambiguate
106390
106391
  6. Consider recent interactions and relationship strength when resolving ambiguity
106391
106392
 
106392
- Return a JSON object with:
106393
- \`\`\`json
106394
- {
106395
- "entityId": "exact-id-if-known-otherwise-null",
106396
- "type": "EXACT_MATCH | USERNAME_MATCH | NAME_MATCH | RELATIONSHIP_MATCH | AMBIGUOUS | UNKNOWN",
106397
- "matches": [{
106398
- "name": "matched-name",
106399
- "reason": "why this entity matches"
106400
- }]
106401
- }
106402
- \`\`\`
106393
+ Do NOT include any thinking, reasoning, or <think> sections in your response.
106394
+ Go directly to the XML response format without any preamble or explanation.
106403
106395
 
106404
- Make sure to include the \`\`\`json\`\`\` tags around the JSON object.
106405
- `;
106396
+ Return an XML response with:
106397
+ <response>
106398
+ <entityId>exact-id-if-known-otherwise-null</entityId>
106399
+ <type>EXACT_MATCH | USERNAME_MATCH | NAME_MATCH | RELATIONSHIP_MATCH | AMBIGUOUS | UNKNOWN</type>
106400
+ <matches>
106401
+ <match>
106402
+ <name>matched-name</name>
106403
+ <reason>why this entity matches</reason>
106404
+ </match>
106405
+ </matches>
106406
+ </response>
106407
+
106408
+ IMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.`;
106406
106409
  async function getRecentInteractions(runtime, sourceEntityId, candidateEntities, roomId, relationships) {
106407
106410
  const results = [];
106408
106411
  const recentMessages = await runtime.getMemories({
@@ -106493,7 +106496,7 @@ async function findEntityByName(runtime, message, state) {
106493
106496
  prompt,
106494
106497
  stopSequences: []
106495
106498
  });
106496
- const resolution = parseJSONObjectFromText(result);
106499
+ const resolution = parseKeyValueXml(result);
106497
106500
  if (!resolution) {
106498
106501
  logger.warn("Failed to parse entity resolution result");
106499
106502
  return null;
@@ -106516,8 +106519,12 @@ async function findEntityByName(runtime, message, state) {
106516
106519
  return entity;
106517
106520
  }
106518
106521
  }
106519
- if (resolution.matches?.[0]?.name) {
106520
- const matchName = resolution.matches[0].name.toLowerCase();
106522
+ let matchesArray = [];
106523
+ if (resolution.matches?.match) {
106524
+ matchesArray = Array.isArray(resolution.matches.match) ? resolution.matches.match : [resolution.matches.match];
106525
+ }
106526
+ if (matchesArray.length > 0 && matchesArray[0]?.name) {
106527
+ const matchName = matchesArray[0].name.toLowerCase();
106521
106528
  const matchingEntity = allEntities.find((entity) => {
106522
106529
  if (entity.names.some((n) => n.toLowerCase() === matchName)) return true;
106523
106530
  return entity.components?.some(
@@ -162079,4 +162086,4 @@ clientExports.createRoot(rootElement).render(
162079
162086
  );
162080
162087
 
162081
162088
  export { requireString_decoder as a, requireUtil$2 as b, requireShams$1 as c, requireCallBound as d, requireEsObjectAtoms as e, requireCallBind as f, requireGetIntrinsic as g, requireDefineDataProperty as h, requireHasPropertyDescriptors as i, requireEvents as j, requireStreamBrowserify as r };
162082
- //# sourceMappingURL=index-BLNojQnQ.js.map
162089
+ //# sourceMappingURL=index-BWrALv74.js.map