@elizaos/core 2.0.0-alpha.53 → 2.0.0-alpha.55

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 (44) hide show
  1. package/dist/advanced-capabilities/actions/addContact.d.ts.map +1 -1
  2. package/dist/advanced-capabilities/actions/removeContact.d.ts.map +1 -1
  3. package/dist/advanced-capabilities/actions/scheduleFollowUp.d.ts.map +1 -1
  4. package/dist/advanced-capabilities/actions/searchContacts.d.ts.map +1 -1
  5. package/dist/advanced-capabilities/actions/updateContact.d.ts.map +1 -1
  6. package/dist/advanced-capabilities/evaluators/relationshipExtraction.d.ts.map +1 -1
  7. package/dist/advanced-capabilities/providers/contacts.d.ts.map +1 -1
  8. package/dist/advanced-capabilities/providers/followUps.d.ts.map +1 -1
  9. package/dist/advanced-memory/evaluators/long-term-extraction.d.ts.map +1 -1
  10. package/dist/advanced-memory/evaluators/summarization.d.ts.map +1 -1
  11. package/dist/autonomy/routes.d.ts.map +1 -1
  12. package/dist/basic-capabilities/index.d.ts.map +1 -1
  13. package/dist/browser/index.browser.js +372 -406
  14. package/dist/browser/index.browser.js.map +27 -30
  15. package/dist/connection.d.ts +44 -0
  16. package/dist/connection.d.ts.map +1 -0
  17. package/dist/edge/index.d.ts +2 -0
  18. package/dist/edge/index.edge.js +118444 -0
  19. package/dist/edge/index.edge.js.map +791 -0
  20. package/dist/index.node.d.ts +3 -0
  21. package/dist/index.node.d.ts.map +1 -1
  22. package/dist/logger.d.ts.map +1 -1
  23. package/dist/node/index.node.js +945 -1876
  24. package/dist/node/index.node.js.map +34 -35
  25. package/dist/packages/typescript/tsconfig.tsbuildinfo +1 -1
  26. package/dist/provisioning.d.ts +54 -0
  27. package/dist/provisioning.d.ts.map +1 -0
  28. package/dist/runtime-composition.d.ts +117 -0
  29. package/dist/runtime-composition.d.ts.map +1 -0
  30. package/dist/runtime.d.ts +94 -93
  31. package/dist/runtime.d.ts.map +1 -1
  32. package/dist/services/pairing-integration.d.ts +1 -1
  33. package/dist/services/pairing-integration.d.ts.map +1 -1
  34. package/dist/services/pairing-migration.d.ts.map +1 -1
  35. package/dist/services/task.d.ts +6 -3
  36. package/dist/services/task.d.ts.map +1 -1
  37. package/dist/settings.d.ts.map +1 -1
  38. package/dist/types/plugin.d.ts +14 -1
  39. package/dist/types/plugin.d.ts.map +1 -1
  40. package/dist/types/runtime.d.ts +12 -6
  41. package/dist/types/runtime.d.ts.map +1 -1
  42. package/dist/types/service.d.ts +4 -3
  43. package/dist/types/service.d.ts.map +1 -1
  44. package/package.json +4 -4
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Standalone connection management: ensure entity/world/room/participants.
3
+ * Batch-first: ensureConnections does 4 batch operations (upsertEntities, upsertWorlds,
4
+ * upsertRooms, createRoomParticipants per room); ensureConnection is a single-connection wrapper.
5
+ * Use these directly with adapter, or via runtime.ensureConnection() which delegates here.
6
+ *
7
+ * WHY standalone + batch: Callers can ensure many connections in one go without going through
8
+ * the runtime; batch APIs reduce DB round-trips. Safe to use from both Node and edge entry points.
9
+ */
10
+ import type { JsonValue, UUID } from "./types";
11
+ import { ChannelType } from "./types";
12
+ import type { IDatabaseAdapter } from "./types/database";
13
+ export interface EnsureConnectionParams {
14
+ agentId: UUID;
15
+ entityId: UUID;
16
+ roomId: UUID;
17
+ /** Required if messageServerId is not provided. */
18
+ worldId?: UUID;
19
+ worldName?: string;
20
+ userName?: string;
21
+ name?: string;
22
+ source: string;
23
+ type?: ChannelType | string;
24
+ channelId?: string;
25
+ messageServerId?: UUID;
26
+ userId?: UUID;
27
+ metadata?: Record<string, JsonValue>;
28
+ }
29
+ export interface EnsureConnectionsParams {
30
+ agentId: UUID;
31
+ connections: EnsureConnectionParams[];
32
+ }
33
+ /**
34
+ * Batch: upsert entities, worlds, rooms; then add participants per room.
35
+ * Uses 4 batch operations (upsertEntities, upsertWorlds, upsertRooms, createRoomParticipants per room).
36
+ * WHY batch: Minimizes round-trips when syncing many connections (e.g. many users/rooms at once).
37
+ */
38
+ export declare function ensureConnections(adapter: IDatabaseAdapter, params: EnsureConnectionsParams): Promise<void>;
39
+ /**
40
+ * Single-connection wrapper around ensureConnections.
41
+ * WHY: Convenience for the common case of ensuring one entity/room; runtime.ensureConnection() uses this.
42
+ */
43
+ export declare function ensureConnection(adapter: IDatabaseAdapter, params: EnsureConnectionParams): Promise<void>;
44
+ //# sourceMappingURL=connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAU,SAAS,EAAkB,IAAI,EAAS,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,MAAM,WAAW,sBAAsB;IACtC,OAAO,EAAE,IAAI,CAAC;IACd,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,EAAE,IAAI,CAAC;IACb,mDAAmD;IACnD,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACvC,OAAO,EAAE,IAAI,CAAC;IACd,WAAW,EAAE,sBAAsB,EAAE,CAAC;CACtC;AAaD;;;;GAIG;AACH,wBAAsB,iBAAiB,CACtC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,uBAAuB,GAC7B,OAAO,CAAC,IAAI,CAAC,CA+Hf;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,sBAAsB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAaf"}
@@ -0,0 +1,2 @@
1
+ // Type definitions for @elizaos/core (Edge)
2
+ export * from './index.edge.js';