@elizaos/server 1.7.3-alpha.2 → 1.7.3-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +20 -9
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -27446,7 +27446,7 @@ import express31 from "express";
27446
27446
  // package.json
27447
27447
  var package_default = {
27448
27448
  name: "@elizaos/server",
27449
- version: "1.7.3-alpha.2",
27449
+ version: "1.7.3-alpha.3",
27450
27450
  description: "ElizaOS Server - Core server infrastructure for ElizaOS agents",
27451
27451
  publishConfig: {
27452
27452
  access: "public",
@@ -28312,7 +28312,8 @@ import {
28312
28312
  Service,
28313
28313
  createUniqueUuid as createUniqueUuid6,
28314
28314
  logger as logger32,
28315
- validateUuid as validateUuid25
28315
+ validateUuid as validateUuid25,
28316
+ EventType as EventType2
28316
28317
  } from "@elizaos/core";
28317
28318
  var globalElizaOS = null;
28318
28319
  var globalAgentServer = null;
@@ -28733,15 +28734,17 @@ class MessageBusService extends Service {
28733
28734
  })(),
28734
28735
  onResponse: async (responseContent) => {
28735
28736
  logger32.info({ src: "service:message-bus", agentId: this.runtime.agentId }, "Agent generated response, sending to bus");
28736
- await this.runtime.createMemory({
28737
- id: responseContent.responseId,
28737
+ const memoryData = {
28738
+ id: responseContent.responseId || createUniqueUuid6(this.runtime, `response-${Date.now()}`),
28738
28739
  entityId: this.runtime.agentId,
28739
- content: responseContent,
28740
28740
  roomId: agentRoomId,
28741
28741
  worldId: agentWorldId,
28742
- agentId: this.runtime.agentId
28743
- }, "messages");
28744
- await this.sendAgentResponseToBus(agentRoomId, agentWorldId, responseContent, uniqueMemoryId, message);
28742
+ content: responseContent,
28743
+ agentId: this.runtime.agentId,
28744
+ createdAt: Date.now()
28745
+ };
28746
+ const memoryId = await this.runtime.createMemory(memoryData, "messages");
28747
+ await this.sendAgentResponseToBus(agentRoomId, agentWorldId, responseContent, uniqueMemoryId, message, { ...memoryData, id: memoryId });
28745
28748
  },
28746
28749
  onError: async (error) => {
28747
28750
  logger32.error({
@@ -28822,7 +28825,7 @@ class MessageBusService extends Service {
28822
28825
  }, "Error handling channel clear");
28823
28826
  }
28824
28827
  }
28825
- async sendAgentResponseToBus(agentRoomId, agentWorldId, content, inReplyToAgentMemoryId, originalMessage) {
28828
+ async sendAgentResponseToBus(agentRoomId, agentWorldId, content, inReplyToAgentMemoryId, originalMessage, messageMemory) {
28826
28829
  try {
28827
28830
  const room = await this.runtime.getRoom(agentRoomId);
28828
28831
  const world = await this.runtime.getWorld(agentWorldId);
@@ -28891,6 +28894,14 @@ class MessageBusService extends Service {
28891
28894
  agentName: this.runtime.character.name,
28892
28895
  status: response.status
28893
28896
  }, "Error sending response to central server");
28897
+ return;
28898
+ }
28899
+ if (messageMemory) {
28900
+ await this.runtime.emitEvent(EventType2.MESSAGE_SENT, {
28901
+ runtime: this.runtime,
28902
+ source: "central-bus",
28903
+ message: messageMemory
28904
+ });
28894
28905
  }
28895
28906
  } catch (error) {
28896
28907
  logger32.error({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/server",
3
- "version": "1.7.3-alpha.2",
3
+ "version": "1.7.3-alpha.3",
4
4
  "description": "ElizaOS Server - Core server infrastructure for ElizaOS agents",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -44,8 +44,8 @@
44
44
  "dev": "bun run build.ts --watch"
45
45
  },
46
46
  "devDependencies": {
47
- "@elizaos/client": "1.7.3-alpha.2",
48
- "@elizaos/config": "1.7.3-alpha.2",
47
+ "@elizaos/client": "1.7.3-alpha.3",
48
+ "@elizaos/config": "1.7.3-alpha.3",
49
49
  "@types/bcrypt": "^6.0.0",
50
50
  "@types/node": "^25.0.9",
51
51
  "bun-fetch-mock": "^1.0.0",
@@ -55,10 +55,10 @@
55
55
  "which": "^6.0.0",
56
56
  "ws": "^8.18.0"
57
57
  },
58
- "gitHead": "b655859e6025496ef5a7b91e2186d9c33e53a118",
58
+ "gitHead": "20268666b666dcbc904a39ebfd884a6c462698f7",
59
59
  "dependencies": {
60
- "@elizaos/core": "1.7.3-alpha.2",
61
- "@elizaos/plugin-sql": "1.7.3-alpha.2",
60
+ "@elizaos/core": "1.7.3-alpha.3",
61
+ "@elizaos/plugin-sql": "1.7.3-alpha.3",
62
62
  "@sentry/node": "^10.16.0",
63
63
  "@types/express": "^5.0.2",
64
64
  "@types/helmet": "^4.0.0",