@elizaos/core 1.6.5-alpha.22 → 1.6.5-alpha.23

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 +1 @@
1
- {"version":3,"file":"elizaos.d.ts","sourceRoot":"","sources":["../src/elizaos.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,eAAe,EACf,OAAO,EACP,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAGjB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,IAAI,CAAC;IACd,SAAS,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC7C,OAAO,EAAE,GAAG,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,IAAI,GAAG,aAAa,GAAG,SAAS,CAAC;IAC9C,SAAS,IAAI,aAAa,EAAE,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,IAAI,GAAG,KAAK,GAAG,SAAS,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,IAAI,CAAC;IACT,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC/B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aAAa,CAAC;IACvB,MAAM,EAAE,IAAI,CAAC;CACd,kBAgDA;AAED;;;;GAIG;AACH;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,UAMlE"}
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../src/entities.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,MAAM,EAGX,KAAK,KAAK,EACV,KAAK,IAAI,EACV,MAAM,SAAS,CAAC;AAqHjB;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,KAAK,GACX,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAgKxB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,aAAa,EAAE,YAAY,IAAI,GAAG,MAAM,KAAG,IAYpF,CAAC;AAEF;;GAEG;AACH;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,OAAO,EACP,MAAM,GACP,EAAE;IACD,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,IAAI,CAAC;CACd,kBAgDA;AAED;;;;GAIG;AACH;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,UAMlE"}
@@ -45598,7 +45598,12 @@ class DefaultMessageService {
45598
45598
  let timeoutId = undefined;
45599
45599
  const responseId = v4_default();
45600
45600
  try {
45601
- runtime.logger.info({ src: "service:message", agentId: runtime.agentId, entityId: message.entityId, roomId: message.roomId }, "Message received");
45601
+ runtime.logger.info({
45602
+ src: "service:message",
45603
+ agentId: runtime.agentId,
45604
+ entityId: message.entityId,
45605
+ roomId: message.roomId
45606
+ }, "Message received");
45602
45607
  if (!latestResponseIds.has(runtime.agentId)) {
45603
45608
  latestResponseIds.set(runtime.agentId, new Map);
45604
45609
  }
@@ -45667,7 +45672,10 @@ class DefaultMessageService {
45667
45672
  mode: "none"
45668
45673
  };
45669
45674
  }
45670
- runtime.logger.debug({ src: "service:message", messagePreview: truncateToCompleteSentence(message.content.text || "", 50) }, "Processing message");
45675
+ runtime.logger.debug({
45676
+ src: "service:message",
45677
+ messagePreview: truncateToCompleteSentence(message.content.text || "", 50)
45678
+ }, "Processing message");
45671
45679
  runtime.logger.debug({ src: "service:message" }, "Saving message to memory");
45672
45680
  let memoryToQueue;
45673
45681
  if (message.id) {
@@ -45723,14 +45731,22 @@ class DefaultMessageService {
45723
45731
  runtime.logger.debug({ src: "service:message", responseDecision }, "Response decision");
45724
45732
  let shouldRespondToMessage = true;
45725
45733
  if (responseDecision.skipEvaluation) {
45726
- runtime.logger.debug({ src: "service:message", agentName: runtime.character.name, reason: responseDecision.reason }, "Skipping LLM evaluation");
45734
+ runtime.logger.debug({
45735
+ src: "service:message",
45736
+ agentName: runtime.character.name,
45737
+ reason: responseDecision.reason
45738
+ }, "Skipping LLM evaluation");
45727
45739
  shouldRespondToMessage = responseDecision.shouldRespond;
45728
45740
  } else {
45729
45741
  const shouldRespondPrompt = composePromptFromState({
45730
45742
  state,
45731
45743
  template: runtime.character.templates?.shouldRespondTemplate || shouldRespondTemplate
45732
45744
  });
45733
- runtime.logger.debug({ src: "service:message", agentName: runtime.character.name, reason: responseDecision.reason }, "Using LLM evaluation");
45745
+ runtime.logger.debug({
45746
+ src: "service:message",
45747
+ agentName: runtime.character.name,
45748
+ reason: responseDecision.reason
45749
+ }, "Using LLM evaluation");
45734
45750
  const response = await runtime.useModel(ModelType.TEXT_SMALL, {
45735
45751
  prompt: shouldRespondPrompt
45736
45752
  });
@@ -46000,7 +46016,10 @@ class DefaultMessageService {
46000
46016
  processedAttachment.description = parsedXml.description || "";
46001
46017
  processedAttachment.title = parsedXml.title || "Image";
46002
46018
  processedAttachment.text = parsedXml.text || parsedXml.description || "";
46003
- runtime.logger.debug({ src: "service:message", descriptionPreview: processedAttachment.description?.substring(0, 100) }, "Generated image description");
46019
+ runtime.logger.debug({
46020
+ src: "service:message",
46021
+ descriptionPreview: processedAttachment.description?.substring(0, 100)
46022
+ }, "Generated image description");
46004
46023
  } else {
46005
46024
  const responseStr = response;
46006
46025
  const titleMatch = responseStr.match(/<title>([^<]+)<\/title>/);
@@ -46010,7 +46029,10 @@ class DefaultMessageService {
46010
46029
  processedAttachment.title = titleMatch?.[1] || "Image";
46011
46030
  processedAttachment.description = descMatch?.[1] || "";
46012
46031
  processedAttachment.text = textMatch?.[1] || descMatch?.[1] || "";
46013
- runtime.logger.debug({ src: "service:message", descriptionPreview: processedAttachment.description?.substring(0, 100) }, "Used fallback XML parsing for description");
46032
+ runtime.logger.debug({
46033
+ src: "service:message",
46034
+ descriptionPreview: processedAttachment.description?.substring(0, 100)
46035
+ }, "Used fallback XML parsing for description");
46014
46036
  } else {
46015
46037
  runtime.logger.warn({ src: "service:message" }, "Failed to parse XML response for image description");
46016
46038
  }
@@ -46019,7 +46041,10 @@ class DefaultMessageService {
46019
46041
  processedAttachment.description = response.description;
46020
46042
  processedAttachment.title = response.title || "Image";
46021
46043
  processedAttachment.text = response.description;
46022
- runtime.logger.debug({ src: "service:message", descriptionPreview: processedAttachment.description?.substring(0, 100) }, "Generated image description");
46044
+ runtime.logger.debug({
46045
+ src: "service:message",
46046
+ descriptionPreview: processedAttachment.description?.substring(0, 100)
46047
+ }, "Generated image description");
46023
46048
  } else {
46024
46049
  runtime.logger.warn({ src: "service:message" }, "Unexpected response format for image description");
46025
46050
  }
@@ -46123,7 +46148,11 @@ class DefaultMessageService {
46123
46148
  let iterationCount = 0;
46124
46149
  while (iterationCount < opts.maxMultiStepIterations) {
46125
46150
  iterationCount++;
46126
- runtime.logger.debug({ src: "service:message", iteration: iterationCount, maxIterations: opts.maxMultiStepIterations }, "Starting multi-step iteration");
46151
+ runtime.logger.debug({
46152
+ src: "service:message",
46153
+ iteration: iterationCount,
46154
+ maxIterations: opts.maxMultiStepIterations
46155
+ }, "Starting multi-step iteration");
46127
46156
  accumulatedState = await runtime.composeState(message, [
46128
46157
  "RECENT_MESSAGES",
46129
46158
  "ACTION_STATE"
@@ -46293,7 +46322,12 @@ class DefaultMessageService {
46293
46322
  runtime.logger.error({ src: "service:message", agentId: runtime.agentId }, "Cannot delete memory: message ID is missing");
46294
46323
  return;
46295
46324
  }
46296
- runtime.logger.info({ src: "service:message", agentId: runtime.agentId, messageId: message.id, roomId: message.roomId }, "Deleting memory");
46325
+ runtime.logger.info({
46326
+ src: "service:message",
46327
+ agentId: runtime.agentId,
46328
+ messageId: message.id,
46329
+ roomId: message.roomId
46330
+ }, "Deleting memory");
46297
46331
  await runtime.deleteMemory(message.id);
46298
46332
  runtime.logger.debug({ src: "service:message", messageId: message.id }, "Successfully deleted memory");
46299
46333
  } catch (error) {
@@ -46320,7 +46354,13 @@ class DefaultMessageService {
46320
46354
  }
46321
46355
  }
46322
46356
  }
46323
- runtime.logger.info({ src: "service:message", agentId: runtime.agentId, channelId, deletedCount, totalCount: memories.length }, "Cleared message memories from channel");
46357
+ runtime.logger.info({
46358
+ src: "service:message",
46359
+ agentId: runtime.agentId,
46360
+ channelId,
46361
+ deletedCount,
46362
+ totalCount: memories.length
46363
+ }, "Cleared message memories from channel");
46324
46364
  } catch (error) {
46325
46365
  runtime.logger.error({ src: "service:message", agentId: runtime.agentId, error }, "Error in clearChannel");
46326
46366
  throw error;
@@ -47331,7 +47371,13 @@ class AgentRuntime {
47331
47371
  }
47332
47372
  this.serviceRegistrationStatus.set(serviceType, "pending");
47333
47373
  this.registerService(service).catch((error) => {
47334
- this.logger.error({ src: "agent", agentId: this.agentId, plugin: plugin.name, serviceType, error: error instanceof Error ? error.message : String(error) }, "Service registration failed");
47374
+ this.logger.error({
47375
+ src: "agent",
47376
+ agentId: this.agentId,
47377
+ plugin: plugin.name,
47378
+ serviceType,
47379
+ error: error instanceof Error ? error.message : String(error)
47380
+ }, "Service registration failed");
47335
47381
  const handler = this.servicePromiseHandlers.get(serviceType);
47336
47382
  if (handler) {
47337
47383
  const serviceError = new Error(`Service ${serviceType} from plugin ${plugin.name} failed to register: ${error instanceof Error ? error.message : String(error)}`);
@@ -47501,7 +47547,11 @@ class AgentRuntime {
47501
47547
  });
47502
47548
  this.logger.debug({ src: "agent", agentId: this.agentId }, "Plugin migrations completed");
47503
47549
  } catch (error) {
47504
- this.logger.error({ src: "agent", agentId: this.agentId, error: error instanceof Error ? error.message : String(error) }, "Plugin migrations failed");
47550
+ this.logger.error({
47551
+ src: "agent",
47552
+ agentId: this.agentId,
47553
+ error: error instanceof Error ? error.message : String(error)
47554
+ }, "Plugin migrations failed");
47505
47555
  throw error;
47506
47556
  }
47507
47557
  }
@@ -47609,7 +47659,11 @@ class AgentRuntime {
47609
47659
  const actions = response.content.actions;
47610
47660
  const actionResults = [];
47611
47661
  let accumulatedState = state;
47612
- this.logger.trace({ src: "agent", agentId: this.agentId, actions: this.actions.map((a) => normalizeAction(a.name)) }, "Available actions");
47662
+ this.logger.trace({
47663
+ src: "agent",
47664
+ agentId: this.agentId,
47665
+ actions: this.actions.map((a) => normalizeAction(a.name))
47666
+ }, "Available actions");
47613
47667
  for (const responseAction of actions) {
47614
47668
  if (actionPlan) {
47615
47669
  actionPlan = this.updateActionPlan(actionPlan, { currentStep: actionIndex + 1 });
@@ -47809,7 +47863,12 @@ class AgentRuntime {
47809
47863
  }
47810
47864
  });
47811
47865
  } catch (error) {
47812
- this.logger.error({ src: "agent", agentId: this.agentId, action: action.name, error: error instanceof Error ? error.message : String(error) }, "Failed to emit ACTION_COMPLETED event");
47866
+ this.logger.error({
47867
+ src: "agent",
47868
+ agentId: this.agentId,
47869
+ action: action.name,
47870
+ error: error instanceof Error ? error.message : String(error)
47871
+ }, "Failed to emit ACTION_COMPLETED event");
47813
47872
  }
47814
47873
  if (callback) {
47815
47874
  for (const content of storedCallbackData) {
@@ -47957,7 +48016,12 @@ class AgentRuntime {
47957
48016
  }
47958
48017
  return null;
47959
48018
  } catch (error) {
47960
- this.logger.error({ src: "agent", agentId: this.agentId, evaluator: evaluator.name, error: error instanceof Error ? error.message : String(error) }, "Evaluator validation failed");
48019
+ this.logger.error({
48020
+ src: "agent",
48021
+ agentId: this.agentId,
48022
+ evaluator: evaluator.name,
48023
+ error: error instanceof Error ? error.message : String(error)
48024
+ }, "Evaluator validation failed");
47961
48025
  return null;
47962
48026
  }
47963
48027
  });
@@ -47984,12 +48048,23 @@ class AgentRuntime {
47984
48048
  });
47985
48049
  }
47986
48050
  } catch (error) {
47987
- this.logger.error({ src: "agent", agentId: this.agentId, evaluator: evaluator.name, error: error instanceof Error ? error.message : String(error) }, "Evaluator execution failed");
48051
+ this.logger.error({
48052
+ src: "agent",
48053
+ agentId: this.agentId,
48054
+ evaluator: evaluator.name,
48055
+ error: error instanceof Error ? error.message : String(error)
48056
+ }, "Evaluator execution failed");
47988
48057
  }
47989
48058
  }));
47990
48059
  return evaluators;
47991
48060
  } catch (error) {
47992
- this.logger.error({ src: "agent", agentId: this.agentId, messageId: message.id, channelId: message.roomId, error: error instanceof Error ? error.message : String(error) }, "Evaluate method failed");
48061
+ this.logger.error({
48062
+ src: "agent",
48063
+ agentId: this.agentId,
48064
+ messageId: message.id,
48065
+ channelId: message.roomId,
48066
+ error: error instanceof Error ? error.message : String(error)
48067
+ }, "Evaluate method failed");
47993
48068
  return [];
47994
48069
  }
47995
48070
  }
@@ -48059,7 +48134,12 @@ class AgentRuntime {
48059
48134
  const entityIdsInFirstRoomFiltered = entityIdsInFirstRoom.filter(Boolean);
48060
48135
  const missingIdsInRoom = entityIds.filter((id) => !entityIdsInFirstRoomFiltered.includes(id));
48061
48136
  if (missingIdsInRoom.length) {
48062
- this.logger.debug({ src: "agent", agentId: this.agentId, count: missingIdsInRoom.length, channelId: firstRoom.id }, "Adding missing participants");
48137
+ this.logger.debug({
48138
+ src: "agent",
48139
+ agentId: this.agentId,
48140
+ count: missingIdsInRoom.length,
48141
+ channelId: firstRoom.id
48142
+ }, "Adding missing participants");
48063
48143
  const batches = chunkArray(missingIdsInRoom, 5000);
48064
48144
  for (const batch of batches) {
48065
48145
  await this.addParticipantsRoom(batch, firstRoom.id);
@@ -48162,7 +48242,13 @@ class AgentRuntime {
48162
48242
  await this.ensureParticipantInRoom(this.agentId, roomId);
48163
48243
  this.logger.debug({ src: "agent", agentId: this.agentId, entityId, channelId: roomId }, "Entity connected");
48164
48244
  } catch (error) {
48165
- this.logger.error({ src: "agent", agentId: this.agentId, entityId, channelId: roomId, error: error instanceof Error ? error.message : String(error) }, "Connection setup failed");
48245
+ this.logger.error({
48246
+ src: "agent",
48247
+ agentId: this.agentId,
48248
+ entityId,
48249
+ channelId: roomId,
48250
+ error: error instanceof Error ? error.message : String(error)
48251
+ }, "Connection setup failed");
48166
48252
  throw error;
48167
48253
  }
48168
48254
  }
@@ -48628,7 +48714,12 @@ class AgentRuntime {
48628
48714
  try {
48629
48715
  const response = await model(this, modelParams);
48630
48716
  const elapsedTime = (typeof performance !== "undefined" && typeof performance.now === "function" ? performance.now() : Date.now()) - startTime;
48631
- this.logger.trace({ src: "agent", agentId: this.agentId, model: modelKey, duration: Number(elapsedTime.toFixed(2)) }, "Model output");
48717
+ this.logger.trace({
48718
+ src: "agent",
48719
+ agentId: this.agentId,
48720
+ model: modelKey,
48721
+ duration: Number(elapsedTime.toFixed(2))
48722
+ }, "Model output");
48632
48723
  if (modelKey !== ModelType.TEXT_EMBEDDING && promptContent) {
48633
48724
  if (this.currentActionContext) {
48634
48725
  this.currentActionContext.prompts.push({
@@ -48743,7 +48834,12 @@ ${input}`;
48743
48834
  }
48744
48835
  await Promise.all(eventHandlers.map((handler) => handler(paramsWithRuntime)));
48745
48836
  } catch (error) {
48746
- this.logger.error({ src: "agent", agentId: this.agentId, eventName, error: error instanceof Error ? error.message : String(error) }, "Event handler failed");
48837
+ this.logger.error({
48838
+ src: "agent",
48839
+ agentId: this.agentId,
48840
+ eventName,
48841
+ error: error instanceof Error ? error.message : String(error)
48842
+ }, "Event handler failed");
48747
48843
  }
48748
48844
  }
48749
48845
  }
@@ -48763,7 +48859,11 @@ ${input}`;
48763
48859
  await this.adapter.ensureEmbeddingDimension(embedding.length);
48764
48860
  this.logger.debug({ src: "agent", agentId: this.agentId, dimension: embedding.length }, "Embedding dimension set");
48765
48861
  } catch (error) {
48766
- this.logger.error({ src: "agent", agentId: this.agentId, error: error instanceof Error ? error.message : String(error) }, "Embedding dimension setup failed");
48862
+ this.logger.error({
48863
+ src: "agent",
48864
+ agentId: this.agentId,
48865
+ error: error instanceof Error ? error.message : String(error)
48866
+ }, "Embedding dimension setup failed");
48767
48867
  throw error;
48768
48868
  }
48769
48869
  }
@@ -48900,7 +49000,11 @@ ${input}`;
48900
49000
  text: memoryText
48901
49001
  });
48902
49002
  } catch (error) {
48903
- this.logger.error({ src: "agent", agentId: this.agentId, error: error instanceof Error ? error.message : String(error) }, "Embedding generation failed");
49003
+ this.logger.error({
49004
+ src: "agent",
49005
+ agentId: this.agentId,
49006
+ error: error instanceof Error ? error.message : String(error)
49007
+ }, "Embedding generation failed");
48904
49008
  memory.embedding = await this.useModel(ModelType.TEXT_EMBEDDING, null);
48905
49009
  }
48906
49010
  return memory;
@@ -48941,7 +49045,12 @@ ${input}`;
48941
49045
  });
48942
49046
  allMemories.push(...memories);
48943
49047
  } catch (error) {
48944
- this.logger.debug({ src: "agent", agentId: this.agentId, tableName, error: error instanceof Error ? error.message : String(error) }, "Failed to get memories");
49048
+ this.logger.debug({
49049
+ src: "agent",
49050
+ agentId: this.agentId,
49051
+ tableName,
49052
+ error: error instanceof Error ? error.message : String(error)
49053
+ }, "Failed to get memories");
48945
49054
  }
48946
49055
  }
48947
49056
  return allMemories;
@@ -49176,7 +49285,11 @@ ${input}`;
49176
49285
  });
49177
49286
  this.logger.debug({ src: "agent", agentId: this.agentId, action, channelId: roomId }, "Control message sent");
49178
49287
  } catch (error) {
49179
- this.logger.error({ src: "agent", agentId: this.agentId, error: error instanceof Error ? error.message : String(error) }, "Control message failed");
49288
+ this.logger.error({
49289
+ src: "agent",
49290
+ agentId: this.agentId,
49291
+ error: error instanceof Error ? error.message : String(error)
49292
+ }, "Control message failed");
49180
49293
  }
49181
49294
  }
49182
49295
  registerSendHandler(source, handler) {
@@ -49196,7 +49309,12 @@ ${input}`;
49196
49309
  try {
49197
49310
  await handler(this, target, content);
49198
49311
  } catch (error) {
49199
- this.logger.error({ src: "agent", agentId: this.agentId, handlerSource: target.source, error: error instanceof Error ? error.message : String(error) }, "Send handler failed");
49312
+ this.logger.error({
49313
+ src: "agent",
49314
+ agentId: this.agentId,
49315
+ handlerSource: target.source,
49316
+ error: error instanceof Error ? error.message : String(error)
49317
+ }, "Send handler failed");
49200
49318
  throw error;
49201
49319
  }
49202
49320
  }
@@ -50565,5 +50683,5 @@ export {
50565
50683
  AgentRuntime
50566
50684
  };
50567
50685
 
50568
- //# debugId=C89E737E05095B6864756E2164756E21
50686
+ //# debugId=C468BC8B5AE0993F64756E2164756E21
50569
50687
  //# sourceMappingURL=index.node.js.map