@elizaos/server 1.6.2-alpha.24 → 1.6.2-alpha.25

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.
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" type="image/x-icon" href="/favicon.ico" />
7
7
  <title>ElizaOS - Client</title>
8
- <script type="module" crossorigin src="/assets/main-CbLc5Hyx.js"></script>
8
+ <script type="module" crossorigin src="/assets/main-BtcZiEuQ.js"></script>
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
package/dist/index.js CHANGED
@@ -28860,7 +28860,7 @@ import express30 from "express";
28860
28860
  // package.json
28861
28861
  var package_default = {
28862
28862
  name: "@elizaos/server",
28863
- version: "1.6.2-alpha.24",
28863
+ version: "1.6.2-alpha.25",
28864
28864
  description: "ElizaOS Server - Core server infrastructure for ElizaOS agents",
28865
28865
  publishConfig: {
28866
28866
  access: "public",
@@ -29561,7 +29561,6 @@ function apiKeyAuthMiddleware(req, res, next) {
29561
29561
  // src/services/message.ts
29562
29562
  import {
29563
29563
  ChannelType as ChannelType7,
29564
- EventType as EventType2,
29565
29564
  Service,
29566
29565
  createUniqueUuid as createUniqueUuid6,
29567
29566
  logger as logger28,
@@ -29874,18 +29873,16 @@ class MessageBusService extends Service {
29874
29873
  await this.sendAgentResponseToBus(agentRoomId, agentWorldId, responseContent, agentMemory.id, message);
29875
29874
  return [];
29876
29875
  };
29877
- await this.runtime.emitEvent(EventType2.MESSAGE_RECEIVED, {
29878
- runtime: this.runtime,
29879
- message: agentMemory,
29880
- callback: callbackForCentralBus,
29881
- onComplete: async () => {
29882
- const room = await this.runtime.getRoom(agentRoomId);
29883
- const world = await this.runtime.getWorld(agentWorldId);
29884
- const channelId = room?.channelId;
29885
- const serverId = world?.serverId;
29886
- await this.notifyMessageComplete(channelId, serverId);
29887
- }
29888
- });
29876
+ if (!this.runtime.messageService) {
29877
+ logger28.error(`[${this.runtime.character.name}] MessageBusService: messageService is not initialized, cannot handle message`);
29878
+ return;
29879
+ }
29880
+ await this.runtime.messageService.handleMessage(this.runtime, agentMemory, callbackForCentralBus);
29881
+ const room = await this.runtime.getRoom(agentRoomId);
29882
+ const world = await this.runtime.getWorld(agentWorldId);
29883
+ const channelId = room?.channelId;
29884
+ const serverId = world?.serverId;
29885
+ await this.notifyMessageComplete(channelId, serverId);
29889
29886
  } catch (error) {
29890
29887
  logger28.error(`[${this.runtime.character.name}] MessageBusService: Error processing incoming message:`, error instanceof Error ? error.message : String(error));
29891
29888
  }
@@ -29896,11 +29893,11 @@ class MessageBusService extends Service {
29896
29893
  const agentMemoryId = createUniqueUuid6(this.runtime, data.messageId);
29897
29894
  const existingMemory = await this.runtime.getMemoryById(agentMemoryId);
29898
29895
  if (existingMemory) {
29899
- await this.runtime.emitEvent(EventType2.MESSAGE_DELETED, {
29900
- runtime: this.runtime,
29901
- message: existingMemory,
29902
- source: "message-bus-service"
29903
- });
29896
+ if (!this.runtime.messageService) {
29897
+ logger28.error(`[${this.runtime.character.name}] MessageBusService: messageService is not initialized, cannot delete message`);
29898
+ return;
29899
+ }
29900
+ await this.runtime.messageService.deleteMessage(this.runtime, existingMemory);
29904
29901
  logger28.debug(`[${this.runtime.character.name}] MessageBusService: Successfully processed message deletion for ${data.messageId}`);
29905
29902
  } else {
29906
29903
  logger28.warn(`[${this.runtime.character.name}] MessageBusService: No memory found for deleted message ${data.messageId}`);
@@ -29913,18 +29910,11 @@ class MessageBusService extends Service {
29913
29910
  try {
29914
29911
  logger28.info(`[${this.runtime.character.name}] MessageBusService: Received channel_cleared event for channel ${data.channelId}`);
29915
29912
  const agentRoomId = createUniqueUuid6(this.runtime, data.channelId);
29916
- const memories = await this.runtime.getMemoriesByRoomIds({
29917
- tableName: "messages",
29918
- roomIds: [agentRoomId]
29919
- });
29920
- logger28.info(`[${this.runtime.character.name}] MessageBusService: Found ${memories.length} memories to delete for channel ${data.channelId}`);
29921
- await this.runtime.emitEvent(EventType2.CHANNEL_CLEARED, {
29922
- runtime: this.runtime,
29923
- source: "message-bus-service",
29924
- roomId: agentRoomId,
29925
- channelId: data.channelId,
29926
- memoryCount: memories.length
29927
- });
29913
+ if (!this.runtime.messageService) {
29914
+ logger28.error(`[${this.runtime.character.name}] MessageBusService: messageService is not initialized, cannot clear channel`);
29915
+ return;
29916
+ }
29917
+ await this.runtime.messageService.clearChannel(this.runtime, agentRoomId, data.channelId);
29928
29918
  logger28.info(`[${this.runtime.character.name}] MessageBusService: Successfully processed channel clear for ${data.channelId} -> room ${agentRoomId}`);
29929
29919
  } catch (error) {
29930
29920
  logger28.error(`[${this.runtime.character.name}] MessageBusService: Error handling channel clear:`, error instanceof Error ? error.message : String(error));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/server",
3
- "version": "1.6.2-alpha.24",
3
+ "version": "1.6.2-alpha.25",
4
4
  "description": "ElizaOS Server - Core server infrastructure for ElizaOS agents",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -44,7 +44,7 @@
44
44
  "dev": "bun run build.ts --watch"
45
45
  },
46
46
  "devDependencies": {
47
- "@elizaos/client": "1.6.2-alpha.24",
47
+ "@elizaos/client": "1.6.2-alpha.25",
48
48
  "@types/node": "^24.0.1",
49
49
  "prettier": "3.6.2",
50
50
  "tsx": "4.20.6",
@@ -52,10 +52,10 @@
52
52
  "which": "^5.0.0",
53
53
  "ws": "^8.18.0"
54
54
  },
55
- "gitHead": "2564836ef8696a0e1a8aa33777eded254458931a",
55
+ "gitHead": "f0740ea64e7807a48b3f6b4453c40abe2eac30e7",
56
56
  "dependencies": {
57
- "@elizaos/core": "1.6.2-alpha.24",
58
- "@elizaos/plugin-sql": "1.6.2-alpha.24",
57
+ "@elizaos/core": "1.6.2-alpha.25",
58
+ "@elizaos/plugin-sql": "1.6.2-alpha.25",
59
59
  "@sentry/node": "^10.16.0",
60
60
  "@types/express": "^5.0.2",
61
61
  "@types/helmet": "^4.0.0",