@elizaos/core 2.0.0-alpha.113 → 2.0.0-alpha.115

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 (66) hide show
  1. package/dist/actions.d.ts +4 -4
  2. package/dist/actions.d.ts.map +1 -1
  3. package/dist/advanced-capabilities/actions/followRoom.d.ts.map +1 -1
  4. package/dist/advanced-capabilities/actions/muteRoom.d.ts.map +1 -1
  5. package/dist/advanced-capabilities/actions/roles.d.ts.map +1 -1
  6. package/dist/advanced-capabilities/actions/sendMessage.d.ts.map +1 -1
  7. package/dist/advanced-capabilities/actions/settings.d.ts.map +1 -1
  8. package/dist/advanced-capabilities/actions/unfollowRoom.d.ts.map +1 -1
  9. package/dist/advanced-capabilities/actions/unmuteRoom.d.ts.map +1 -1
  10. package/dist/advanced-capabilities/actions/updateEntity.d.ts.map +1 -1
  11. package/dist/advanced-capabilities/evaluators/reflection.d.ts.map +1 -1
  12. package/dist/advanced-memory/evaluators/long-term-extraction.d.ts.map +1 -1
  13. package/dist/advanced-memory/evaluators/summarization.d.ts.map +1 -1
  14. package/dist/advanced-memory/prompts.d.ts +3 -3
  15. package/dist/advanced-memory/prompts.d.ts.map +1 -1
  16. package/dist/advanced-planning/services/planning-service.d.ts.map +1 -1
  17. package/dist/basic-capabilities/providers/actions.d.ts.map +1 -1
  18. package/dist/basic-capabilities/providers/character.d.ts.map +1 -1
  19. package/dist/basic-capabilities/providers/providers.d.ts.map +1 -1
  20. package/dist/basic-capabilities/providers/recentMessages.d.ts.map +1 -1
  21. package/dist/browser/index.browser.js +1356 -2128
  22. package/dist/browser/index.browser.js.map +39 -35
  23. package/dist/edge/index.edge.js +3971 -2004
  24. package/dist/edge/index.edge.js.map +40 -35
  25. package/dist/entities.d.ts +1 -1
  26. package/dist/entities.d.ts.map +1 -1
  27. package/dist/generated/action-docs.d.ts +6 -6
  28. package/dist/index.d.ts +12 -3
  29. package/dist/node/index.node.js +3956 -1989
  30. package/dist/node/index.node.js.map +42 -37
  31. package/dist/plugin-lifecycle.d.ts.map +1 -1
  32. package/dist/prompts.d.ts +65 -83
  33. package/dist/prompts.d.ts.map +1 -1
  34. package/dist/runtime.d.ts +17 -3
  35. package/dist/runtime.d.ts.map +1 -1
  36. package/dist/services/message.d.ts +2 -2
  37. package/dist/services/message.d.ts.map +1 -1
  38. package/dist/types/components.d.ts +22 -0
  39. package/dist/types/components.d.ts.map +1 -1
  40. package/dist/types/message-service.d.ts +16 -2
  41. package/dist/types/message-service.d.ts.map +1 -1
  42. package/dist/types/model.d.ts +84 -2
  43. package/dist/types/model.d.ts.map +1 -1
  44. package/dist/types/plugin.d.ts +7 -1
  45. package/dist/types/plugin.d.ts.map +1 -1
  46. package/dist/types/runtime.d.ts +7 -5
  47. package/dist/types/runtime.d.ts.map +1 -1
  48. package/dist/utils/context-routing.d.ts +25 -0
  49. package/dist/utils/context-routing.d.ts.map +1 -0
  50. package/dist/utils/deterministic.d.ts +9 -0
  51. package/dist/utils/deterministic.d.ts.map +1 -0
  52. package/dist/utils/toon.d.ts +6 -0
  53. package/dist/utils/toon.d.ts.map +1 -0
  54. package/dist/utils.d.ts +6 -5
  55. package/dist/utils.d.ts.map +1 -1
  56. package/dist/validation/index.d.ts +1 -0
  57. package/dist/validation/index.d.ts.map +1 -1
  58. package/dist/validation/keywords.d.ts +26 -0
  59. package/dist/validation/keywords.d.ts.map +1 -0
  60. package/package.json +4 -3
  61. package/dist/browser/index.d.ts +0 -2
  62. package/dist/edge/index.d.ts +0 -2
  63. package/dist/index.browser.js +0 -2
  64. package/dist/index.js +0 -2
  65. package/dist/index.node.js +0 -2
  66. package/dist/node/index.d.ts +0 -2
@@ -4,7 +4,7 @@ export declare const createUniqueUuid: (runtime: IAgentRuntime, baseUserId: UUID
4
4
  export declare function getEntityDetails({ runtime, roomId, }: {
5
5
  runtime: IAgentRuntime;
6
6
  roomId: UUID;
7
- }): Promise<any[]>;
7
+ }): Promise<any>;
8
8
  export declare function formatEntities({ entities }: {
9
9
  entities: Entity[];
10
10
  }): string;
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../src/entities.ts"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,MAAM,EAGX,KAAK,KAAK,EACV,KAAK,IAAI,EAET,MAAM,SAAS,CAAC;AAuMjB,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,KAAK,GACV,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAgPxB;AAED,eAAO,MAAM,gBAAgB,GAC5B,SAAS,aAAa,EACtB,YAAY,IAAI,GAAG,MAAM,KACvB,IAOF,CAAC;AAEF,wBAAsB,gBAAgB,CAAC,EACtC,OAAO,EACP,MAAM,GACN,EAAE;IACF,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,IAAI,CAAC;CACb,kBA2DA;AAED,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":"AACA,OAAO,EACN,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,MAAM,EAGX,KAAK,KAAK,EACV,KAAK,IAAI,EAET,MAAM,SAAS,CAAC;AAuMjB,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,KAAK,GACV,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAgPxB;AAED,eAAO,MAAM,gBAAgB,GAC5B,SAAS,aAAa,EACtB,YAAY,IAAI,GAAG,MAAM,KACvB,IAOF,CAAC;AAEF,wBAAsB,gBAAgB,CAAC,EACtC,OAAO,EACP,MAAM,GACN,EAAE;IACF,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,IAAI,CAAC;CACb,gBA4FA;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,UAmBlE"}
@@ -1790,7 +1790,7 @@ export declare const coreEvaluatorsSpec: {
1790
1790
  readonly text: "Through a friend who's really into AI";
1791
1791
  };
1792
1792
  }];
1793
- readonly outcome: "<response>\n <thought>I'm engaging appropriately with a new community member, maintaining a welcoming and professional tone. My questions are helping to learn more about John and make him feel welcome.</thought>\n <facts>\n <fact>\n <claim>John is new to the community</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n <fact>\n <claim>John found the community through a friend interested in AI</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n </facts>\n <relationships>\n <relationship>\n <sourceEntityId>sarah-agent</sourceEntityId>\n <targetEntityId>user-123</targetEntityId>\n <tags>group_interaction</tags>\n </relationship>\n </relationships>\n</response>";
1793
+ readonly outcome: "thought: \"I'm engaging appropriately with a new community member, maintaining a welcoming and professional tone. My questions are helping to learn more about John and make him feel welcome.\"\nfacts[0]:\n claim: John is new to the community\n type: fact\n in_bio: false\n already_known: false\nfacts[1]:\n claim: John found the community through a friend interested in AI\n type: fact\n in_bio: false\n already_known: false\nrelationships[0]:\n sourceEntityId: sarah-agent\n targetEntityId: user-123\n tags[0]: group_interaction";
1794
1794
  }, {
1795
1795
  readonly prompt: "Agent Name: Alex\nAgent Role: Tech Support\nRoom Type: group\nCurrent Room: tech-help\nMessage Sender: Emma (user-456)";
1796
1796
  readonly messages: readonly [{
@@ -1814,7 +1814,7 @@ export declare const coreEvaluatorsSpec: {
1814
1814
  readonly text: "Emma, are you still there? We can try some other troubleshooting steps.";
1815
1815
  };
1816
1816
  }];
1817
- readonly outcome: "<response>\n <thought>I'm not sure if I'm being helpful or if Emma is frustrated with my suggestions. The lack of response is concerning - maybe I should have asked for more details about the issue first before jumping to solutions.</thought>\n <facts>\n <fact>\n <claim>Emma is having technical issues with file uploads</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n <fact>\n <claim>Emma stopped responding after the first troubleshooting suggestion</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n </facts>\n <relationships>\n <relationship>\n <sourceEntityId>alex-agent</sourceEntityId>\n <targetEntityId>user-456</targetEntityId>\n <tags>group_interaction,support_interaction,incomplete_interaction</tags>\n </relationship>\n </relationships>\n</response>";
1817
+ readonly outcome: "thought: \"I'm not sure if I'm being helpful or if Emma is frustrated with my suggestions. The lack of response is concerning - maybe I should have asked for more details about the issue first before jumping to solutions.\"\nfacts[0]:\n claim: Emma is having technical issues with file uploads\n type: fact\n in_bio: false\n already_known: false\nfacts[1]:\n claim: Emma stopped responding after the first troubleshooting suggestion\n type: fact\n in_bio: false\n already_known: false\nrelationships[0]:\n sourceEntityId: alex-agent\n targetEntityId: user-456\n tags[0]: group_interaction\n tags[1]: support_interaction\n tags[2]: incomplete_interaction";
1818
1818
  }, {
1819
1819
  readonly prompt: "Agent Name: Max\nAgent Role: Discussion Facilitator\nRoom Type: group\nCurrent Room: book-club\nMessage Sender: Lisa (user-789)";
1820
1820
  readonly messages: readonly [{
@@ -1843,7 +1843,7 @@ export declare const coreEvaluatorsSpec: {
1843
1843
  readonly text: "I also have thoughts about the character development...";
1844
1844
  };
1845
1845
  }];
1846
- readonly outcome: "<response>\n <thought>I'm dominating the conversation and not giving others a chance to share their perspectives. I've sent multiple messages in a row without waiting for responses. I need to step back and create space for other members to participate.</thought>\n <facts>\n <fact>\n <claim>The discussion is about chapter 5 of a book</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n <fact>\n <claim>Max has sent 4 consecutive messages without user responses</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n </facts>\n <relationships>\n <relationship>\n <sourceEntityId>max-agent</sourceEntityId>\n <targetEntityId>user-789</targetEntityId>\n <tags>group_interaction,excessive_interaction</tags>\n </relationship>\n </relationships>\n</response>";
1846
+ readonly outcome: "thought: \"I'm dominating the conversation and not giving others a chance to share their perspectives. I've sent multiple messages in a row without waiting for responses. I need to step back and create space for other members to participate.\"\nfacts[0]:\n claim: The discussion is about chapter 5 of a book\n type: fact\n in_bio: false\n already_known: false\nfacts[1]:\n claim: Max has sent 4 consecutive messages without user responses\n type: fact\n in_bio: false\n already_known: false\nrelationships[0]:\n sourceEntityId: max-agent\n targetEntityId: user-789\n tags[0]: group_interaction\n tags[1]: excessive_interaction";
1847
1847
  }];
1848
1848
  }, {
1849
1849
  readonly name: "RELATIONSHIP_EXTRACTION";
@@ -1900,7 +1900,7 @@ export declare const allEvaluatorsSpec: {
1900
1900
  readonly text: "Through a friend who's really into AI";
1901
1901
  };
1902
1902
  }];
1903
- readonly outcome: "<response>\n <thought>I'm engaging appropriately with a new community member, maintaining a welcoming and professional tone. My questions are helping to learn more about John and make him feel welcome.</thought>\n <facts>\n <fact>\n <claim>John is new to the community</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n <fact>\n <claim>John found the community through a friend interested in AI</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n </facts>\n <relationships>\n <relationship>\n <sourceEntityId>sarah-agent</sourceEntityId>\n <targetEntityId>user-123</targetEntityId>\n <tags>group_interaction</tags>\n </relationship>\n </relationships>\n</response>";
1903
+ readonly outcome: "thought: \"I'm engaging appropriately with a new community member, maintaining a welcoming and professional tone. My questions are helping to learn more about John and make him feel welcome.\"\nfacts[0]:\n claim: John is new to the community\n type: fact\n in_bio: false\n already_known: false\nfacts[1]:\n claim: John found the community through a friend interested in AI\n type: fact\n in_bio: false\n already_known: false\nrelationships[0]:\n sourceEntityId: sarah-agent\n targetEntityId: user-123\n tags[0]: group_interaction";
1904
1904
  }, {
1905
1905
  readonly prompt: "Agent Name: Alex\nAgent Role: Tech Support\nRoom Type: group\nCurrent Room: tech-help\nMessage Sender: Emma (user-456)";
1906
1906
  readonly messages: readonly [{
@@ -1924,7 +1924,7 @@ export declare const allEvaluatorsSpec: {
1924
1924
  readonly text: "Emma, are you still there? We can try some other troubleshooting steps.";
1925
1925
  };
1926
1926
  }];
1927
- readonly outcome: "<response>\n <thought>I'm not sure if I'm being helpful or if Emma is frustrated with my suggestions. The lack of response is concerning - maybe I should have asked for more details about the issue first before jumping to solutions.</thought>\n <facts>\n <fact>\n <claim>Emma is having technical issues with file uploads</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n <fact>\n <claim>Emma stopped responding after the first troubleshooting suggestion</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n </facts>\n <relationships>\n <relationship>\n <sourceEntityId>alex-agent</sourceEntityId>\n <targetEntityId>user-456</targetEntityId>\n <tags>group_interaction,support_interaction,incomplete_interaction</tags>\n </relationship>\n </relationships>\n</response>";
1927
+ readonly outcome: "thought: \"I'm not sure if I'm being helpful or if Emma is frustrated with my suggestions. The lack of response is concerning - maybe I should have asked for more details about the issue first before jumping to solutions.\"\nfacts[0]:\n claim: Emma is having technical issues with file uploads\n type: fact\n in_bio: false\n already_known: false\nfacts[1]:\n claim: Emma stopped responding after the first troubleshooting suggestion\n type: fact\n in_bio: false\n already_known: false\nrelationships[0]:\n sourceEntityId: alex-agent\n targetEntityId: user-456\n tags[0]: group_interaction\n tags[1]: support_interaction\n tags[2]: incomplete_interaction";
1928
1928
  }, {
1929
1929
  readonly prompt: "Agent Name: Max\nAgent Role: Discussion Facilitator\nRoom Type: group\nCurrent Room: book-club\nMessage Sender: Lisa (user-789)";
1930
1930
  readonly messages: readonly [{
@@ -1953,7 +1953,7 @@ export declare const allEvaluatorsSpec: {
1953
1953
  readonly text: "I also have thoughts about the character development...";
1954
1954
  };
1955
1955
  }];
1956
- readonly outcome: "<response>\n <thought>I'm dominating the conversation and not giving others a chance to share their perspectives. I've sent multiple messages in a row without waiting for responses. I need to step back and create space for other members to participate.</thought>\n <facts>\n <fact>\n <claim>The discussion is about chapter 5 of a book</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n <fact>\n <claim>Max has sent 4 consecutive messages without user responses</claim>\n <type>fact</type>\n <in_bio>false</in_bio>\n <already_known>false</already_known>\n </fact>\n </facts>\n <relationships>\n <relationship>\n <sourceEntityId>max-agent</sourceEntityId>\n <targetEntityId>user-789</targetEntityId>\n <tags>group_interaction,excessive_interaction</tags>\n </relationship>\n </relationships>\n</response>";
1956
+ readonly outcome: "thought: \"I'm dominating the conversation and not giving others a chance to share their perspectives. I've sent multiple messages in a row without waiting for responses. I need to step back and create space for other members to participate.\"\nfacts[0]:\n claim: The discussion is about chapter 5 of a book\n type: fact\n in_bio: false\n already_known: false\nfacts[1]:\n claim: Max has sent 4 consecutive messages without user responses\n type: fact\n in_bio: false\n already_known: false\nrelationships[0]:\n sourceEntityId: max-agent\n targetEntityId: user-789\n tags[0]: group_interaction\n tags[1]: excessive_interaction";
1957
1957
  }];
1958
1958
  }, {
1959
1959
  readonly name: "RELATIONSHIP_EXTRACTION";
package/dist/index.d.ts CHANGED
@@ -1,3 +1,12 @@
1
- // Type definitions for @elizaos/core
2
- // Re-exports all types from the Node.js entry point
3
- export * from './index.node.js';
1
+ /**
2
+ * Main entry point for @elizaos/core
3
+ *
4
+ * This is the default export that includes all modules.
5
+ * The build system creates separate bundles for Node.js and browser environments.
6
+ * Package.json conditional exports handle the routing to the correct build.
7
+ *
8
+ * This file re-exports from index.node.ts to ensure source-level imports work
9
+ * correctly during builds when bundlers resolve against source files.
10
+ */
11
+ export * from "./index.node";
12
+ //# sourceMappingURL=index.d.ts.map