@elizaos/core 1.0.4 → 1.0.6

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 (35) hide show
  1. package/dist/chunk-2HSL25IJ.js +40 -0
  2. package/dist/chunk-FEPOSPNK.js +157 -0
  3. package/dist/chunk-JX2SRFHQ.js +59 -0
  4. package/dist/chunk-SIAA4J6H.js +21 -0
  5. package/dist/{chunk-HRFT5KDK.js → chunk-TF6QLZZY.js} +180 -402
  6. package/dist/chunk-U2ADTLZY.js +50 -0
  7. package/dist/chunk-YIBXLDIR.js +42 -0
  8. package/dist/index-BHW44X0A.d.ts +112 -0
  9. package/dist/{index-DVKkCFlY.d.ts → index-S6eSMHDH.d.ts} +8 -9
  10. package/dist/index.d.ts +17 -9
  11. package/dist/index.js +7 -1
  12. package/dist/specs/v1/actionExample.d.ts +41 -0
  13. package/dist/specs/v1/actionExample.js +13 -0
  14. package/dist/specs/v1/index.d.ts +10 -4
  15. package/dist/specs/v1/index.js +30 -19
  16. package/dist/specs/v1/messages.d.ts +31 -0
  17. package/dist/specs/v1/messages.js +18 -0
  18. package/dist/specs/v1/posts.d.ts +10 -0
  19. package/dist/specs/v1/posts.js +12 -0
  20. package/dist/specs/v1/provider.d.ts +21 -0
  21. package/dist/specs/v1/provider.js +10 -0
  22. package/dist/specs/v1/runtime.d.ts +146 -0
  23. package/dist/specs/v1/runtime.js +12 -0
  24. package/dist/specs/v1/state.d.ts +21 -0
  25. package/dist/specs/v1/state.js +9 -0
  26. package/dist/specs/v1/templates.d.ts +42 -0
  27. package/dist/specs/v1/templates.js +11 -0
  28. package/dist/{index-Cy9ZgQIe.d.ts → specs/v1/types.d.ts} +137 -555
  29. package/dist/specs/v1/types.js +33 -0
  30. package/dist/specs/v1/uuid.d.ts +27 -0
  31. package/dist/specs/v1/uuid.js +14 -0
  32. package/dist/specs/v2/index.d.ts +2 -4
  33. package/dist/specs/v2/index.js +7 -1
  34. package/dist/{types-DzoA9aTJ.d.ts → types-D9v-eW3g.d.ts} +4 -7
  35. package/package.json +4 -4
@@ -0,0 +1,50 @@
1
+ // src/specs/v1/actionExample.ts
2
+ function convertContentToV1(content) {
3
+ if (!content) {
4
+ return { text: "" };
5
+ }
6
+ return {
7
+ text: content.text || "",
8
+ // V2 uses 'actions' array, V1 might use 'action' string
9
+ action: Array.isArray(content.actions) && content.actions.length > 0 ? content.actions[0] : void 0,
10
+ // Copy all other properties
11
+ ...Object.entries(content).filter(([key]) => !["text", "actions", "action"].includes(key)).reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {})
12
+ };
13
+ }
14
+ function convertContentToV2(content) {
15
+ if (!content) {
16
+ return { text: "" };
17
+ }
18
+ return {
19
+ text: content.text || "",
20
+ // V1 uses 'action' string, V2 uses 'actions' array
21
+ actions: content.action ? [content.action] : [],
22
+ // Copy all other properties
23
+ ...Object.entries(content).filter(([key]) => !["text", "action"].includes(key)).reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {})
24
+ };
25
+ }
26
+ function fromV2ActionExample(exampleV2) {
27
+ if (!exampleV2) {
28
+ return { user: "", content: { text: "" } };
29
+ }
30
+ return {
31
+ user: exampleV2.name || "",
32
+ content: convertContentToV1(exampleV2.content)
33
+ };
34
+ }
35
+ function toV2ActionExample(example) {
36
+ if (!example) {
37
+ return { name: "", content: { text: "" } };
38
+ }
39
+ return {
40
+ name: example.user || "",
41
+ content: convertContentToV2(example.content)
42
+ };
43
+ }
44
+
45
+ export {
46
+ convertContentToV1,
47
+ convertContentToV2,
48
+ fromV2ActionExample,
49
+ toV2ActionExample
50
+ };
@@ -0,0 +1,42 @@
1
+ // src/specs/v1/state.ts
2
+ var DEFAULT_STATE = {
3
+ bio: "",
4
+ lore: "",
5
+ messageDirections: "",
6
+ postDirections: "",
7
+ actors: "",
8
+ recentMessages: "",
9
+ recentMessagesData: []
10
+ };
11
+ function fromV2State(stateV2) {
12
+ const state = {
13
+ ...DEFAULT_STATE,
14
+ ...stateV2.values,
15
+ ...stateV2.data,
16
+ text: stateV2.text
17
+ };
18
+ for (const key in stateV2) {
19
+ if (key !== "values" && key !== "data" && key !== "text") {
20
+ state[key] = stateV2[key];
21
+ }
22
+ }
23
+ return state;
24
+ }
25
+ function toV2State(state) {
26
+ const stateV2 = {
27
+ values: {},
28
+ data: {},
29
+ text: state.text || ""
30
+ };
31
+ for (const key in state) {
32
+ if (key !== "text") {
33
+ stateV2[key] = state[key];
34
+ }
35
+ }
36
+ return stateV2;
37
+ }
38
+
39
+ export {
40
+ fromV2State,
41
+ toV2State
42
+ };
@@ -0,0 +1,112 @@
1
+ import { formatActors, formatMessages, formatTimestamp, getActorDetails } from './specs/v1/messages.js';
2
+ import { formatPosts } from './specs/v1/posts.js';
3
+ import { AgentRuntime } from './specs/v1/runtime.js';
4
+ import { Account, Action, ActionResponse, ActionTimelineType, Actor, Adapter, CacheKeyPrefix, CacheOptions, CacheStore, Character, ChunkRow, Client, ClientInstance, Content, ConversationExample, DataIrysFetchedFromGQL, DirectoryItem, EmbeddingModelSettings, EvaluationExample, Evaluator, Goal, GoalStatus, GraphQLTag, Handler, HandlerCallback, IAgentConfig, IAgentRuntime, IAwsS3Service, IBrowserService, ICacheManager, IDatabaseAdapter, IDatabaseCacheAdapter, IImageDescriptionService, IIrysService, IMemoryManager, IPdfService, IRAGKnowledgeManager, ISlackService, ISpeechService, ITeeLogService, ITextGenerationService, ITranscriptionService, IVideoService, ImageModelSettings, IrysDataType, IrysMessageType, IrysTimestamp, KnowledgeItem, KnowledgeScope, LoggingLevel, Media, Memory, MessageExample, Model, ModelClass, ModelConfiguration, ModelProviderName, ModelSettings, Models, Objective, Participant, Plugin, RAGKnowledgeItem, Relationship, Room, Service, ServiceType, TelemetrySettings, TokenizerType, TranscriptionProvider, TwitterSpaceDecisionOptions, UUID, UploadIrysResult, Validator } from './specs/v1/types.js';
5
+ import { State, fromV2State, toV2State } from './specs/v1/state.js';
6
+ import { asUUID, generateUuidFromString } from './specs/v1/uuid.js';
7
+ import { ActionExample, convertContentToV1, convertContentToV2, fromV2ActionExample, toV2ActionExample } from './specs/v1/actionExample.js';
8
+ import { Provider, fromV2Provider, toV2Provider } from './specs/v1/provider.js';
9
+ import { TemplateType, createTemplateFunction, getTemplateValues, processTemplate } from './specs/v1/templates.js';
10
+
11
+ declare const index_Account: typeof Account;
12
+ declare const index_Action: typeof Action;
13
+ declare const index_ActionExample: typeof ActionExample;
14
+ declare const index_ActionResponse: typeof ActionResponse;
15
+ declare const index_ActionTimelineType: typeof ActionTimelineType;
16
+ declare const index_Actor: typeof Actor;
17
+ declare const index_Adapter: typeof Adapter;
18
+ declare const index_AgentRuntime: typeof AgentRuntime;
19
+ declare const index_CacheKeyPrefix: typeof CacheKeyPrefix;
20
+ declare const index_CacheOptions: typeof CacheOptions;
21
+ declare const index_CacheStore: typeof CacheStore;
22
+ declare const index_Character: typeof Character;
23
+ declare const index_ChunkRow: typeof ChunkRow;
24
+ declare const index_Client: typeof Client;
25
+ declare const index_ClientInstance: typeof ClientInstance;
26
+ declare const index_Content: typeof Content;
27
+ declare const index_ConversationExample: typeof ConversationExample;
28
+ declare const index_DataIrysFetchedFromGQL: typeof DataIrysFetchedFromGQL;
29
+ declare const index_DirectoryItem: typeof DirectoryItem;
30
+ declare const index_EmbeddingModelSettings: typeof EmbeddingModelSettings;
31
+ declare const index_EvaluationExample: typeof EvaluationExample;
32
+ declare const index_Evaluator: typeof Evaluator;
33
+ declare const index_Goal: typeof Goal;
34
+ declare const index_GoalStatus: typeof GoalStatus;
35
+ declare const index_GraphQLTag: typeof GraphQLTag;
36
+ declare const index_Handler: typeof Handler;
37
+ declare const index_HandlerCallback: typeof HandlerCallback;
38
+ declare const index_IAgentConfig: typeof IAgentConfig;
39
+ declare const index_IAgentRuntime: typeof IAgentRuntime;
40
+ declare const index_IAwsS3Service: typeof IAwsS3Service;
41
+ declare const index_IBrowserService: typeof IBrowserService;
42
+ declare const index_ICacheManager: typeof ICacheManager;
43
+ declare const index_IDatabaseAdapter: typeof IDatabaseAdapter;
44
+ declare const index_IDatabaseCacheAdapter: typeof IDatabaseCacheAdapter;
45
+ declare const index_IImageDescriptionService: typeof IImageDescriptionService;
46
+ declare const index_IIrysService: typeof IIrysService;
47
+ declare const index_IMemoryManager: typeof IMemoryManager;
48
+ declare const index_IPdfService: typeof IPdfService;
49
+ declare const index_IRAGKnowledgeManager: typeof IRAGKnowledgeManager;
50
+ declare const index_ISlackService: typeof ISlackService;
51
+ declare const index_ISpeechService: typeof ISpeechService;
52
+ declare const index_ITeeLogService: typeof ITeeLogService;
53
+ declare const index_ITextGenerationService: typeof ITextGenerationService;
54
+ declare const index_ITranscriptionService: typeof ITranscriptionService;
55
+ declare const index_IVideoService: typeof IVideoService;
56
+ declare const index_ImageModelSettings: typeof ImageModelSettings;
57
+ declare const index_IrysDataType: typeof IrysDataType;
58
+ declare const index_IrysMessageType: typeof IrysMessageType;
59
+ declare const index_IrysTimestamp: typeof IrysTimestamp;
60
+ declare const index_KnowledgeItem: typeof KnowledgeItem;
61
+ declare const index_KnowledgeScope: typeof KnowledgeScope;
62
+ declare const index_LoggingLevel: typeof LoggingLevel;
63
+ declare const index_Media: typeof Media;
64
+ declare const index_Memory: typeof Memory;
65
+ declare const index_MessageExample: typeof MessageExample;
66
+ declare const index_Model: typeof Model;
67
+ declare const index_ModelClass: typeof ModelClass;
68
+ declare const index_ModelConfiguration: typeof ModelConfiguration;
69
+ declare const index_ModelProviderName: typeof ModelProviderName;
70
+ declare const index_ModelSettings: typeof ModelSettings;
71
+ declare const index_Models: typeof Models;
72
+ declare const index_Objective: typeof Objective;
73
+ declare const index_Participant: typeof Participant;
74
+ declare const index_Plugin: typeof Plugin;
75
+ declare const index_Provider: typeof Provider;
76
+ declare const index_RAGKnowledgeItem: typeof RAGKnowledgeItem;
77
+ declare const index_Relationship: typeof Relationship;
78
+ declare const index_Room: typeof Room;
79
+ declare const index_Service: typeof Service;
80
+ declare const index_ServiceType: typeof ServiceType;
81
+ declare const index_State: typeof State;
82
+ declare const index_TelemetrySettings: typeof TelemetrySettings;
83
+ declare const index_TemplateType: typeof TemplateType;
84
+ declare const index_TokenizerType: typeof TokenizerType;
85
+ declare const index_TranscriptionProvider: typeof TranscriptionProvider;
86
+ declare const index_TwitterSpaceDecisionOptions: typeof TwitterSpaceDecisionOptions;
87
+ declare const index_UUID: typeof UUID;
88
+ declare const index_UploadIrysResult: typeof UploadIrysResult;
89
+ declare const index_Validator: typeof Validator;
90
+ declare const index_asUUID: typeof asUUID;
91
+ declare const index_convertContentToV1: typeof convertContentToV1;
92
+ declare const index_convertContentToV2: typeof convertContentToV2;
93
+ declare const index_createTemplateFunction: typeof createTemplateFunction;
94
+ declare const index_formatActors: typeof formatActors;
95
+ declare const index_formatMessages: typeof formatMessages;
96
+ declare const index_formatPosts: typeof formatPosts;
97
+ declare const index_formatTimestamp: typeof formatTimestamp;
98
+ declare const index_fromV2ActionExample: typeof fromV2ActionExample;
99
+ declare const index_fromV2Provider: typeof fromV2Provider;
100
+ declare const index_fromV2State: typeof fromV2State;
101
+ declare const index_generateUuidFromString: typeof generateUuidFromString;
102
+ declare const index_getActorDetails: typeof getActorDetails;
103
+ declare const index_getTemplateValues: typeof getTemplateValues;
104
+ declare const index_processTemplate: typeof processTemplate;
105
+ declare const index_toV2ActionExample: typeof toV2ActionExample;
106
+ declare const index_toV2Provider: typeof toV2Provider;
107
+ declare const index_toV2State: typeof toV2State;
108
+ declare namespace index {
109
+ export { index_Account as Account, index_Action as Action, index_ActionExample as ActionExample, index_ActionResponse as ActionResponse, index_ActionTimelineType as ActionTimelineType, index_Actor as Actor, index_Adapter as Adapter, index_AgentRuntime as AgentRuntime, index_CacheKeyPrefix as CacheKeyPrefix, index_CacheOptions as CacheOptions, index_CacheStore as CacheStore, index_Character as Character, index_ChunkRow as ChunkRow, index_Client as Client, index_ClientInstance as ClientInstance, index_Content as Content, index_ConversationExample as ConversationExample, index_DataIrysFetchedFromGQL as DataIrysFetchedFromGQL, index_DirectoryItem as DirectoryItem, index_EmbeddingModelSettings as EmbeddingModelSettings, index_EvaluationExample as EvaluationExample, index_Evaluator as Evaluator, index_Goal as Goal, index_GoalStatus as GoalStatus, index_GraphQLTag as GraphQLTag, index_Handler as Handler, index_HandlerCallback as HandlerCallback, index_IAgentConfig as IAgentConfig, index_IAgentRuntime as IAgentRuntime, index_IAwsS3Service as IAwsS3Service, index_IBrowserService as IBrowserService, index_ICacheManager as ICacheManager, index_IDatabaseAdapter as IDatabaseAdapter, index_IDatabaseCacheAdapter as IDatabaseCacheAdapter, index_IImageDescriptionService as IImageDescriptionService, index_IIrysService as IIrysService, index_IMemoryManager as IMemoryManager, index_IPdfService as IPdfService, index_IRAGKnowledgeManager as IRAGKnowledgeManager, index_ISlackService as ISlackService, index_ISpeechService as ISpeechService, index_ITeeLogService as ITeeLogService, index_ITextGenerationService as ITextGenerationService, index_ITranscriptionService as ITranscriptionService, index_IVideoService as IVideoService, index_ImageModelSettings as ImageModelSettings, index_IrysDataType as IrysDataType, index_IrysMessageType as IrysMessageType, index_IrysTimestamp as IrysTimestamp, index_KnowledgeItem as KnowledgeItem, index_KnowledgeScope as KnowledgeScope, index_LoggingLevel as LoggingLevel, index_Media as Media, index_Memory as Memory, index_MessageExample as MessageExample, index_Model as Model, index_ModelClass as ModelClass, index_ModelConfiguration as ModelConfiguration, index_ModelProviderName as ModelProviderName, index_ModelSettings as ModelSettings, index_Models as Models, index_Objective as Objective, index_Participant as Participant, index_Plugin as Plugin, index_Provider as Provider, index_RAGKnowledgeItem as RAGKnowledgeItem, index_Relationship as Relationship, index_Room as Room, index_Service as Service, index_ServiceType as ServiceType, index_State as State, index_TelemetrySettings as TelemetrySettings, index_TemplateType as TemplateType, index_TokenizerType as TokenizerType, index_TranscriptionProvider as TranscriptionProvider, index_TwitterSpaceDecisionOptions as TwitterSpaceDecisionOptions, index_UUID as UUID, index_UploadIrysResult as UploadIrysResult, index_Validator as Validator, index_asUUID as asUUID, index_convertContentToV1 as convertContentToV1, index_convertContentToV2 as convertContentToV2, index_createTemplateFunction as createTemplateFunction, index_formatActors as formatActors, index_formatMessages as formatMessages, index_formatPosts as formatPosts, index_formatTimestamp as formatTimestamp, index_fromV2ActionExample as fromV2ActionExample, index_fromV2Provider as fromV2Provider, index_fromV2State as fromV2State, index_generateUuidFromString as generateUuidFromString, index_getActorDetails as getActorDetails, index_getTemplateValues as getTemplateValues, index_processTemplate as processTemplate, index_toV2ActionExample as toV2ActionExample, index_toV2Provider as toV2Provider, index_toV2State as toV2State };
110
+ }
111
+
112
+ export { index as i };
@@ -1,6 +1,4 @@
1
- import { a as Action$1, I as IDatabaseAdapter$1, U as UUID$1, E as Entity$1, b as Component$1, M as Memory$1, L as Log$1, c as MemoryMetadata$1, W as World$1, R as Room$1, d as Participant$1, e as Relationship$1, f as Agent$1, T as Task$1, g as IAgentRuntime$1, h as Role$1, i as ServiceTypeName$1, j as Service$1, k as Route$1, l as Character$1, P as Provider$1, m as Evaluator$1, n as Plugin$1, o as RuntimeSettings$1, S as State$1, H as HandlerCallback$1, p as ModelTypeName$1, q as ModelResultMap$1, r as ModelParamsMap$1, s as TaskWorker$1, t as TargetInfo$1, C as Content$1, u as TemplateType$1, v as ActionEventPayload$1, A as ActionExample$1, w as AgentStatus$1, x as AudioProcessingParams$1, B as BaseMetadata$1, y as BaseModelParams$1, z as CacheKeyPrefix$1, D as ChannelType$1, F as ChunkRow$1, G as ComponentData$1, J as ContentType$1, K as ControlMessage$1, N as CustomMetadata$1, O as DbConnection$1, Q as DeriveKeyAttestationData$1, V as DescriptionMetadata$1, X as DetokenizeTextParams$1, Y as DirectoryItem$1, Z as DocumentMetadata$1, _ as EmbeddingSearchResult$1, $ as EnhancedState$1, a0 as EntityPayload$1, a1 as EvaluationExample$1, a2 as EvaluatorEventPayload$1, a3 as EventDataObject$1, a4 as EventHandler$1, a5 as EventPayload$1, a6 as EventPayloadMap$1, a7 as EventType$1, a8 as FragmentMetadata$1, a9 as GenerateTextParams$1, aa as Handler$1, ab as ImageDescriptionParams$1, ac as ImageGenerationParams$1, ad as InvokePayload$1, ae as IsValidServiceType$1, af as JSONSchema$1, ag as KnowledgeItem$1, ah as KnowledgeScope$1, ai as Media$1, aj as MemoryRetrievalOptions$1, ak as MemoryScope$1, al as MemorySearchOptions$1, am as MemoryType$1, an as MemoryTypeAlias$1, ao as MessageExample$1, ap as MessageMemory$1, aq as MessageMetadata$1, ar as MessagePayload$1, as as MessageReceivedHandlerParams$1, at as MetadataObject$1, au as ModelEventPayload$1, av as ModelHandler$1, aw as ModelType$1, ax as MultiRoomMemoryOptions$1, ay as ObjectGenerationParams$1, az as OnboardingConfig$1, aA as PlatformPrefix$1, aB as PluginEvents$1, aC as Project$1, aD as ProjectAgent$1, aE as ProviderResult$1, aF as RemoteAttestationMessage$1, aG as RemoteAttestationQuote$1, aH as RoomMetadata$1, aI as RunEventPayload$1, aJ as SOCKET_MESSAGE_TYPE$1, aK as SendHandlerFunction$1, aL as ServiceClassMap$1, aM as ServiceConfig$1, aN as ServiceError$1, aO as ServiceInstance$1, aP as ServiceRegistry$1, aQ as ServiceType$1, aR as ServiceTypeRegistry$1, aS as ServiceTypeValue$1, aT as Setting$1, aU as StateArray$1, aV as StateObject$1, aW as StateValue$1, aX as TEEMode$1, aY as TaskMetadata$1, aZ as TeeAgent$1, a_ as TeePluginConfig$1, a$ as TeeType$1, b0 as TeeVendorConfig$1, b1 as TestCase$1, b2 as TestSuite$1, b3 as TextEmbeddingParams$1, b4 as TextGenerationParams$1, b5 as TextToSpeechParams$1, b6 as TokenizeTextParams$1, b7 as TranscriptionParams$1, b8 as TypedEventHandler$1, b9 as TypedService$1, ba as TypedServiceClass$1, bb as UnifiedMemoryOptions$1, bc as UnifiedSearchOptions$1, bd as VECTOR_DIMS$1, be as Validator$1, bf as VideoProcessingParams$1, bg as WorldPayload$1, bh as WorldSettings$1, bi as asUUID$1, bj as createMessageMemory$1, bk as createServiceError$1, bl as getMemoryText$1, bm as getTypedService$1, bn as isCustomMetadata$1, bo as isDescriptionMetadata$1, bp as isDocumentMemory$1, bq as isDocumentMetadata$1, br as isFragmentMemory$1, bs as isFragmentMetadata$1, bt as isMessageMetadata$1 } from './types-DzoA9aTJ.js';
2
- import { Pool } from 'pg';
3
- import { PGlite } from '@electric-sql/pglite';
1
+ import { a as Action$1, I as IDatabaseAdapter$1, U as UUID$1, E as Entity$1, b as Component$1, M as Memory$1, L as Log$1, c as MemoryMetadata$1, W as World$1, R as Room$1, d as Participant$1, e as Relationship$1, f as Agent$1, T as Task$1, g as IAgentRuntime$1, h as Role$1, i as ServiceTypeName$1, j as Service$1, k as Route$1, l as Character$1, P as Provider$1, m as Evaluator$1, n as Plugin$1, o as RuntimeSettings$1, S as State$1, H as HandlerCallback$1, p as ModelTypeName$1, q as ModelResultMap$1, r as ModelParamsMap$1, s as TaskWorker$1, t as TargetInfo$1, C as Content$1, u as TemplateType$1, v as ActionEventPayload$1, A as ActionExample$1, w as AgentStatus$1, x as AudioProcessingParams$1, B as BaseMetadata$1, y as BaseModelParams$1, z as CacheKeyPrefix$1, D as ChannelType$1, F as ChunkRow$1, G as ComponentData$1, J as ContentType$1, K as ControlMessage$1, N as CustomMetadata$1, O as DbConnection$1, Q as DeriveKeyAttestationData$1, V as DescriptionMetadata$1, X as DetokenizeTextParams$1, Y as DirectoryItem$1, Z as DocumentMetadata$1, _ as EmbeddingSearchResult$1, $ as EnhancedState$1, a0 as EntityPayload$1, a1 as EvaluationExample$1, a2 as EvaluatorEventPayload$1, a3 as EventDataObject$1, a4 as EventHandler$1, a5 as EventPayload$1, a6 as EventPayloadMap$1, a7 as EventType$1, a8 as FragmentMetadata$1, a9 as GenerateTextParams$1, aa as Handler$1, ab as ImageDescriptionParams$1, ac as ImageGenerationParams$1, ad as InvokePayload$1, ae as IsValidServiceType$1, af as JSONSchema$1, ag as KnowledgeItem$1, ah as KnowledgeScope$1, ai as Media$1, aj as MemoryRetrievalOptions$1, ak as MemoryScope$1, al as MemorySearchOptions$1, am as MemoryType$1, an as MemoryTypeAlias$1, ao as MessageExample$1, ap as MessageMemory$1, aq as MessageMetadata$1, ar as MessagePayload$1, as as MessageReceivedHandlerParams$1, at as MetadataObject$1, au as ModelEventPayload$1, av as ModelHandler$1, aw as ModelType$1, ax as MultiRoomMemoryOptions$1, ay as ObjectGenerationParams$1, az as OnboardingConfig$1, aA as PlatformPrefix$1, aB as PluginEvents$1, aC as Project$1, aD as ProjectAgent$1, aE as ProviderResult$1, aF as RemoteAttestationMessage$1, aG as RemoteAttestationQuote$1, aH as RoomMetadata$1, aI as RunEventPayload$1, aJ as SOCKET_MESSAGE_TYPE$1, aK as SendHandlerFunction$1, aL as ServiceClassMap$1, aM as ServiceConfig$1, aN as ServiceError$1, aO as ServiceInstance$1, aP as ServiceRegistry$1, aQ as ServiceType$1, aR as ServiceTypeRegistry$1, aS as ServiceTypeValue$1, aT as Setting$1, aU as StateArray$1, aV as StateObject$1, aW as StateValue$1, aX as TEEMode$1, aY as TaskMetadata$1, aZ as TeeAgent$1, a_ as TeePluginConfig$1, a$ as TeeType$1, b0 as TeeVendorConfig$1, b1 as TestCase$1, b2 as TestSuite$1, b3 as TextEmbeddingParams$1, b4 as TextGenerationParams$1, b5 as TextToSpeechParams$1, b6 as TokenizeTextParams$1, b7 as TranscriptionParams$1, b8 as TypedEventHandler$1, b9 as TypedService$1, ba as TypedServiceClass$1, bb as UnifiedMemoryOptions$1, bc as UnifiedSearchOptions$1, bd as VECTOR_DIMS$1, be as Validator$1, bf as VideoProcessingParams$1, bg as WorldPayload$1, bh as WorldSettings$1, bi as asUUID$1, bj as createMessageMemory$1, bk as createServiceError$1, bl as getMemoryText$1, bm as getTypedService$1, bn as isCustomMetadata$1, bo as isDescriptionMetadata$1, bp as isDocumentMemory$1, bq as isDocumentMetadata$1, br as isFragmentMemory$1, bs as isFragmentMetadata$1, bt as isMessageMetadata$1 } from './types-D9v-eW3g.js';
4
2
 
5
3
  /**
6
4
  * Defines a custom type UUID representing a universally unique identifier
@@ -506,8 +504,8 @@ declare enum ContentType {
506
504
  }
507
505
  declare enum ChannelType {
508
506
  SELF = "SELF",// Messages to self
509
- DM = "dm",// Direct messages between two participants
510
- GROUP = "group",// Group messages with multiple participants
507
+ DM = "DM",// Direct messages between two participants
508
+ GROUP = "GROUP",// Group messages with multiple participants
511
509
  VOICE_DM = "VOICE_DM",// Voice direct messages
512
510
  VOICE_GROUP = "VOICE_GROUP",// Voice channels with multiple participants
513
511
  FEED = "FEED",// Social media feed
@@ -689,7 +687,7 @@ interface IDatabaseAdapter {
689
687
  init(): Promise<void>;
690
688
  /** Close database connection */
691
689
  close(): Promise<void>;
692
- getConnection(): Promise<PGlite | Pool>;
690
+ getConnection(): Promise<any>;
693
691
  getAgent(agentId: UUID): Promise<Agent | null>;
694
692
  /** Get all agents */
695
693
  getAgents(): Promise<Partial<Agent>[]>;
@@ -946,7 +944,7 @@ interface IAgentRuntime extends IDatabaseAdapter {
946
944
  routes: Route[];
947
945
  registerPlugin(plugin: Plugin): Promise<void>;
948
946
  initialize(): Promise<void>;
949
- getConnection(): Promise<PGlite | Pool>;
947
+ getConnection(): Promise<any>;
950
948
  getService<T extends Service>(service: ServiceTypeName | string): T | null;
951
949
  getAllServices(): Map<ServiceTypeName, Service>;
952
950
  registerService(service: typeof Service): Promise<void>;
@@ -959,6 +957,7 @@ interface IAgentRuntime extends IDatabaseAdapter {
959
957
  registerProvider(provider: Provider): void;
960
958
  registerAction(action: Action): void;
961
959
  registerEvaluator(evaluator: Evaluator): void;
960
+ ensureConnections(entities: Entity[], rooms: Room[], source: string, world: World): Promise<void>;
962
961
  ensureConnection({ entityId, roomId, metadata, userName, worldName, name, source, channelId, serverId, type, worldId, userId, }: {
963
962
  entityId: UUID;
964
963
  roomId: UUID;
@@ -2035,7 +2034,7 @@ declare abstract class DatabaseAdapter<DB = unknown> implements IDatabaseAdapter
2035
2034
  * Retrieves a connection to the database.
2036
2035
  * @returns A Promise that resolves to the database connection.
2037
2036
  */
2038
- abstract getConnection(): Promise<PGlite | Pool>;
2037
+ abstract getConnection(): Promise<any>;
2039
2038
  /**
2040
2039
  * Retrieves an account by its ID.
2041
2040
  * @param entityIds The UUIDs of the user account to retrieve.
@@ -2592,7 +2591,7 @@ declare class AgentRuntime implements IAgentRuntime$1 {
2592
2591
  getAllServices(): Map<ServiceTypeName$1, Service$1>;
2593
2592
  stop(): Promise<any>;
2594
2593
  initialize(): Promise<any>;
2595
- getConnection(): Promise<PGlite | Pool>;
2594
+ getConnection(): Promise<any>;
2596
2595
  setSetting(key: string, value: string | boolean | null | any, secret?: boolean): any;
2597
2596
  getSetting(key: string): string | boolean | null | any;
2598
2597
  /**
package/dist/index.d.ts CHANGED
@@ -1,14 +1,21 @@
1
- import { A as Action, I as IDatabaseAdapter, U as UUID, E as Entity, C as Component, M as Memory, L as Log, a as MemoryMetadata, W as World, R as Room, P as Participant, b as Relationship, c as Agent, T as Task, d as IAgentRuntime, S as State, e as Role, f as Service, g as Character, h as Evaluator, i as Provider, j as Plugin, k as ServiceTypeName, l as ModelHandler, m as Route, n as RuntimeSettings, H as HandlerCallback, o as ChannelType, p as ModelTypeName, q as ModelResultMap, r as ModelParamsMap, s as TaskWorker, t as SendHandlerFunction, u as TargetInfo, v as Content, w as Setting, x as WorldSettings, O as OnboardingConfig, y as TemplateType, z as v2 } from './index-DVKkCFlY.js';
2
- export { a_ as ActionEventPayload, D as ActionExample, ah as AgentStatus, aO as AudioProcessingParams, a0 as BaseMetadata, aG as BaseModelParams, aq as CacheKeyPrefix, as as ChunkRow, bn as ComponentData, ad as ContentType, bu as ControlMessage, a5 as CustomMetadata, bq as DbConnection, aA as DeriveKeyAttestationData, a4 as DescriptionMetadata, au as DetokenizeTextParams, ar as DirectoryItem, a1 as DocumentMetadata, ai as EmbeddingSearchResult, bm as EnhancedState, aW as EntityPayload, a9 as EvaluationExample, a$ as EvaluatorEventPayload, bo as EventDataObject, b3 as EventHandler, aU as EventPayload, b2 as EventPayloadMap, aS as EventType, a2 as FragmentMetadata, at as GenerateTextParams, a7 as Handler, aL as ImageDescriptionParams, aK as ImageGenerationParams, aY as InvokePayload, K as IsValidServiceType, aQ as JSONSchema, ao as KnowledgeItem, ap as KnowledgeScope, ac as Media, aj as MemoryRetrievalOptions, $ as MemoryScope, ak as MemorySearchOptions, _ as MemoryType, Z as MemoryTypeAlias, a6 as MessageExample, b5 as MessageMemory, a3 as MessageMetadata, aX as MessagePayload, b1 as MessageReceivedHandlerParams, br as MetadataObject, b0 as ModelEventPayload, F as ModelType, al as MultiRoomMemoryOptions, aR as ObjectGenerationParams, aT as PlatformPrefix, ae as PluginEvents, ag as Project, af as ProjectAgent, aa as ProviderResult, aB as RemoteAttestationMessage, az as RemoteAttestationQuote, ab as RoomMetadata, aZ as RunEventPayload, b4 as SOCKET_MESSAGE_TYPE, bv as ServiceBuilder, Q as ServiceClassMap, bs as ServiceConfig, bx as ServiceDefinition, be as ServiceError, V as ServiceInstance, X as ServiceRegistry, Y as ServiceType, G as ServiceTypeRegistry, J as ServiceTypeValue, bl as StateArray, bk as StateObject, bj as StateValue, ay as TEEMode, aF as TaskMetadata, ax as TeeAgent, aE as TeePluginConfig, aC as TeeType, aD as TeeVendorConfig, av as TestCase, aw as TestSuite, aI as TextEmbeddingParams, aH as TextGenerationParams, aN as TextToSpeechParams, aJ as TokenizeTextParams, aM as TranscriptionParams, bp as TypedEventHandler, b7 as TypedService, N as TypedServiceClass, am as UnifiedMemoryOptions, an as UnifiedSearchOptions, bt as VECTOR_DIMS, a8 as Validator, aP as VideoProcessingParams, aV as WorldPayload, B as asUUID, b6 as createMessageMemory, bw as createService, bi as createServiceError, by as defineService, bh as getMemoryText, b8 as getTypedService, bd as isCustomMetadata, bc as isDescriptionMetadata, bf as isDocumentMemory, b9 as isDocumentMetadata, bg as isFragmentMemory, ba as isFragmentMetadata, bb as isMessageMetadata } from './index-DVKkCFlY.js';
3
- import { Pool } from 'pg';
4
- import { PGlite } from '@electric-sql/pglite';
1
+ import { A as Action, I as IDatabaseAdapter, U as UUID, E as Entity, C as Component, M as Memory, L as Log, a as MemoryMetadata, W as World, R as Room, P as Participant, b as Relationship, c as Agent, T as Task, d as IAgentRuntime, S as State, e as Role, f as Service, g as Character, h as Evaluator, i as Provider, j as Plugin, k as ServiceTypeName, l as ModelHandler, m as Route, n as RuntimeSettings, H as HandlerCallback, o as ChannelType, p as ModelTypeName, q as ModelResultMap, r as ModelParamsMap, s as TaskWorker, t as SendHandlerFunction, u as TargetInfo, v as Content, w as Setting, x as WorldSettings, O as OnboardingConfig, y as TemplateType, z as v2 } from './index-S6eSMHDH.js';
2
+ export { a_ as ActionEventPayload, D as ActionExample, ah as AgentStatus, aO as AudioProcessingParams, a0 as BaseMetadata, aG as BaseModelParams, aq as CacheKeyPrefix, as as ChunkRow, bn as ComponentData, ad as ContentType, bu as ControlMessage, a5 as CustomMetadata, bq as DbConnection, aA as DeriveKeyAttestationData, a4 as DescriptionMetadata, au as DetokenizeTextParams, ar as DirectoryItem, a1 as DocumentMetadata, ai as EmbeddingSearchResult, bm as EnhancedState, aW as EntityPayload, a9 as EvaluationExample, a$ as EvaluatorEventPayload, bo as EventDataObject, b3 as EventHandler, aU as EventPayload, b2 as EventPayloadMap, aS as EventType, a2 as FragmentMetadata, at as GenerateTextParams, a7 as Handler, aL as ImageDescriptionParams, aK as ImageGenerationParams, aY as InvokePayload, K as IsValidServiceType, aQ as JSONSchema, ao as KnowledgeItem, ap as KnowledgeScope, ac as Media, aj as MemoryRetrievalOptions, $ as MemoryScope, ak as MemorySearchOptions, _ as MemoryType, Z as MemoryTypeAlias, a6 as MessageExample, b5 as MessageMemory, a3 as MessageMetadata, aX as MessagePayload, b1 as MessageReceivedHandlerParams, br as MetadataObject, b0 as ModelEventPayload, F as ModelType, al as MultiRoomMemoryOptions, aR as ObjectGenerationParams, aT as PlatformPrefix, ae as PluginEvents, ag as Project, af as ProjectAgent, aa as ProviderResult, aB as RemoteAttestationMessage, az as RemoteAttestationQuote, ab as RoomMetadata, aZ as RunEventPayload, b4 as SOCKET_MESSAGE_TYPE, bv as ServiceBuilder, Q as ServiceClassMap, bs as ServiceConfig, bx as ServiceDefinition, be as ServiceError, V as ServiceInstance, X as ServiceRegistry, Y as ServiceType, G as ServiceTypeRegistry, J as ServiceTypeValue, bl as StateArray, bk as StateObject, bj as StateValue, ay as TEEMode, aF as TaskMetadata, ax as TeeAgent, aE as TeePluginConfig, aC as TeeType, aD as TeeVendorConfig, av as TestCase, aw as TestSuite, aI as TextEmbeddingParams, aH as TextGenerationParams, aN as TextToSpeechParams, aJ as TokenizeTextParams, aM as TranscriptionParams, bp as TypedEventHandler, b7 as TypedService, N as TypedServiceClass, am as UnifiedMemoryOptions, an as UnifiedSearchOptions, bt as VECTOR_DIMS, a8 as Validator, aP as VideoProcessingParams, aV as WorldPayload, B as asUUID, b6 as createMessageMemory, bw as createService, bi as createServiceError, by as defineService, bh as getMemoryText, b8 as getTypedService, bd as isCustomMetadata, bc as isDescriptionMetadata, bf as isDocumentMemory, b9 as isDocumentMetadata, bg as isFragmentMemory, ba as isFragmentMetadata, bb as isMessageMetadata } from './index-S6eSMHDH.js';
5
3
  import * as pino from 'pino';
6
4
  import { Tracer, Meter, Span, Context } from '@opentelemetry/api';
7
5
  import * as browser from '@sentry/browser';
8
6
  export { browser as Sentry };
9
- export { i as v1 } from './index-Cy9ZgQIe.js';
10
- import './types-DzoA9aTJ.js';
7
+ export { i as v1 } from './index-BHW44X0A.js';
8
+ import './types-D9v-eW3g.js';
9
+ import './specs/v1/messages.js';
10
+ import './specs/v1/types.js';
11
11
  import 'stream';
12
+ import './specs/v1/posts.js';
13
+ import './specs/v1/runtime.js';
14
+ import './specs/v1/state.js';
15
+ import './specs/v1/uuid.js';
16
+ import './specs/v1/actionExample.js';
17
+ import './specs/v1/provider.js';
18
+ import './specs/v1/templates.js';
12
19
 
13
20
  /**
14
21
  * Composes a set of example conversations based on provided actions and a specified count.
@@ -62,7 +69,7 @@ declare abstract class DatabaseAdapter<DB = unknown> implements IDatabaseAdapter
62
69
  * Retrieves a connection to the database.
63
70
  * @returns A Promise that resolves to the database connection.
64
71
  */
65
- abstract getConnection(): Promise<PGlite | Pool>;
72
+ abstract getConnection(): Promise<unknown>;
66
73
  /**
67
74
  * Retrieves an account by its ID.
68
75
  * @param entityIds The UUIDs of the user account to retrieve.
@@ -545,8 +552,8 @@ declare function formatEntities({ entities }: {
545
552
  entities: Entity[];
546
553
  }): string;
547
554
 
555
+ declare const createLogger: (bindings?: any | boolean) => pino.Logger<never, boolean>;
548
556
  declare let logger: pino.Logger<string, boolean>;
549
- declare const createLogger: (bindings?: {}) => pino.Logger<never, boolean>;
550
557
 
551
558
  declare const elizaLogger: pino.Logger<string, boolean>;
552
559
 
@@ -683,7 +690,7 @@ declare class AgentRuntime implements IAgentRuntime {
683
690
  getAllServices(): Map<ServiceTypeName, Service>;
684
691
  stop(): Promise<void>;
685
692
  initialize(): Promise<void>;
686
- getConnection(): Promise<PGlite | Pool>;
693
+ getConnection(): Promise<unknown>;
687
694
  setSetting(key: string, value: string | boolean | null | any, secret?: boolean): void;
688
695
  getSetting(key: string): string | boolean | null | any;
689
696
  getConversationLength(): number;
@@ -693,6 +700,7 @@ declare class AgentRuntime implements IAgentRuntime {
693
700
  registerEvaluator(evaluator: Evaluator): void;
694
701
  processActions(message: Memory, responses: Memory[], state?: State, callback?: HandlerCallback): Promise<void>;
695
702
  evaluate(message: Memory, state: State, didRespond?: boolean, callback?: HandlerCallback, responses?: Memory[]): Promise<Evaluator[]>;
703
+ ensureConnections(entities: any, rooms: any, source: any, world: any): Promise<void>;
696
704
  ensureConnection({ entityId, roomId, worldId, worldName, userName, name, source, type, channelId, serverId, userId, metadata, }: {
697
705
  entityId: UUID;
698
706
  roomId: UUID;
package/dist/index.js CHANGED
@@ -86,7 +86,13 @@ import {
86
86
  v1_exports,
87
87
  v2_exports,
88
88
  validateUuid
89
- } from "./chunk-HRFT5KDK.js";
89
+ } from "./chunk-TF6QLZZY.js";
90
+ import "./chunk-2HSL25IJ.js";
91
+ import "./chunk-FEPOSPNK.js";
92
+ import "./chunk-U2ADTLZY.js";
93
+ import "./chunk-JX2SRFHQ.js";
94
+ import "./chunk-YIBXLDIR.js";
95
+ import "./chunk-SIAA4J6H.js";
90
96
  export {
91
97
  AgentRuntime,
92
98
  AgentStatus,
@@ -0,0 +1,41 @@
1
+ import { ActionExample as ActionExample$2, Content as Content$1 } from './types.js';
2
+ import { A as ActionExample$1, C as Content } from '../../types-D9v-eW3g.js';
3
+ import 'stream';
4
+
5
+ /**
6
+ * Example content with associated user for demonstration purposes
7
+ * This is exported from types.ts in v1, but we're recreating it here for the adapter
8
+ */
9
+ type ActionExample = ActionExample$2;
10
+ /**
11
+ * Safely converts a V2 content object to a V1 Content type
12
+ * Maps known properties and preserves additional ones
13
+ *
14
+ * @param content V2 content object
15
+ * @returns Content compatible with V1
16
+ */
17
+ declare function convertContentToV1(content: Content): Content$1;
18
+ /**
19
+ * Safely converts a V1 Content object to a V2 compatible content type
20
+ * Maps known properties and preserves additional ones
21
+ *
22
+ * @param content V1 Content object
23
+ * @returns Content compatible with V2
24
+ */
25
+ declare function convertContentToV2(content: Content$1): Content;
26
+ /**
27
+ * Converts v2 ActionExample to v1 compatible ActionExample
28
+ *
29
+ * @param exampleV2 The V2 action example to convert
30
+ * @returns V1 compatible ActionExample
31
+ */
32
+ declare function fromV2ActionExample(exampleV2: ActionExample$1): ActionExample;
33
+ /**
34
+ * Converts v1 ActionExample to v2 ActionExample
35
+ *
36
+ * @param example The V1 action example to convert
37
+ * @returns V2 compatible ActionExample
38
+ */
39
+ declare function toV2ActionExample(example: ActionExample): ActionExample$1;
40
+
41
+ export { type ActionExample, convertContentToV1, convertContentToV2, fromV2ActionExample, toV2ActionExample };
@@ -0,0 +1,13 @@
1
+ import {
2
+ convertContentToV1,
3
+ convertContentToV2,
4
+ fromV2ActionExample,
5
+ toV2ActionExample
6
+ } from "../../chunk-U2ADTLZY.js";
7
+ import "../../chunk-SIAA4J6H.js";
8
+ export {
9
+ convertContentToV1,
10
+ convertContentToV2,
11
+ fromV2ActionExample,
12
+ toV2ActionExample
13
+ };
@@ -1,5 +1,11 @@
1
- export { Q as Account, K as Action, A as ActionExample, az as ActionResponse, aD as ActionTimelineType, v as Actor, $ as Adapter, s as AgentRuntime, aF as CacheKeyPrefix, aa as CacheOptions, ab as CacheStore, a4 as Character, aH as ChunkRow, _ as Client, Z as ClientInstance, C as Content, u as ConversationExample, ao as DataIrysFetchedFromGQL, aG as DirectoryItem, E as EmbeddingModelSettings, L as EvaluationExample, N as Evaluator, w as Goal, G as GoalStatus, ap as GraphQLTag, H as Handler, J as HandlerCallback, a1 as IAgentConfig, ae as IAgentRuntime, am as IAwsS3Service, aj as IBrowserService, ac as ICacheManager, a6 as IDatabaseAdapter, a7 as IDatabaseCacheAdapter, af as IImageDescriptionService, at as IIrysService, a8 as IMemoryManager, al as IPdfService, a9 as IRAGKnowledgeManager, aA as ISlackService, ak as ISpeechService, au as ITeeLogService, ai as ITextGenerationService, ag as ITranscriptionService, ah as IVideoService, I as ImageModelSettings, ar as IrysDataType, aq as IrysMessageType, as as IrysTimestamp, ax as KnowledgeItem, aE as KnowledgeScope, aw as LoggingLevel, Y as Media, D as Memory, F as MessageExample, y as Model, M as ModelClass, a3 as ModelConfiguration, B as ModelProviderName, x as ModelSettings, z as Models, O as Objective, W as Participant, a0 as Plugin, P as Provider, ay as RAGKnowledgeItem, R as Relationship, X as Room, ad as Service, av as ServiceType, S as State, a2 as TelemetrySettings, T as TemplateType, aB as TokenizerType, aC as TranscriptionProvider, a5 as TwitterSpaceDecisionOptions, U as UUID, an as UploadIrysResult, V as Validator, a as asUUID, d as convertContentToV1, e as convertContentToV2, k as createTemplateFunction, n as formatActors, o as formatMessages, r as formatPosts, q as formatTimestamp, b as fromV2ActionExample, h as fromV2Provider, f as fromV2State, g as generateUuidFromString, m as getActorDetails, l as getTemplateValues, p as processTemplate, c as toV2ActionExample, j as toV2Provider, t as toV2State } from '../../index-Cy9ZgQIe.js';
1
+ export { formatActors, formatMessages, formatTimestamp, getActorDetails } from './messages.js';
2
+ export { formatPosts } from './posts.js';
3
+ export { AgentRuntime } from './runtime.js';
4
+ export { Account, Action, ActionResponse, ActionTimelineType, Actor, Adapter, CacheKeyPrefix, CacheOptions, CacheStore, Character, ChunkRow, Client, ClientInstance, Content, ConversationExample, DataIrysFetchedFromGQL, DirectoryItem, EmbeddingModelSettings, EvaluationExample, Evaluator, Goal, GoalStatus, GraphQLTag, Handler, HandlerCallback, IAgentConfig, IAgentRuntime, IAwsS3Service, IBrowserService, ICacheManager, IDatabaseAdapter, IDatabaseCacheAdapter, IImageDescriptionService, IIrysService, IMemoryManager, IPdfService, IRAGKnowledgeManager, ISlackService, ISpeechService, ITeeLogService, ITextGenerationService, ITranscriptionService, IVideoService, ImageModelSettings, IrysDataType, IrysMessageType, IrysTimestamp, KnowledgeItem, KnowledgeScope, LoggingLevel, Media, Memory, MessageExample, Model, ModelClass, ModelConfiguration, ModelProviderName, ModelSettings, Models, Objective, Participant, Plugin, RAGKnowledgeItem, Relationship, Room, Service, ServiceType, TelemetrySettings, TokenizerType, TranscriptionProvider, TwitterSpaceDecisionOptions, UUID, UploadIrysResult, Validator } from './types.js';
5
+ export { State, fromV2State, toV2State } from './state.js';
6
+ export { asUUID, generateUuidFromString } from './uuid.js';
7
+ export { ActionExample, convertContentToV1, convertContentToV2, fromV2ActionExample, toV2ActionExample } from './actionExample.js';
8
+ export { Provider, fromV2Provider, toV2Provider } from './provider.js';
9
+ export { TemplateType, createTemplateFunction, getTemplateValues, processTemplate } from './templates.js';
2
10
  import 'stream';
3
- import '../../types-DzoA9aTJ.js';
4
- import 'pg';
5
- import '@electric-sql/pglite';
11
+ import '../../types-D9v-eW3g.js';
@@ -1,38 +1,49 @@
1
1
  import {
2
- ActionTimelineType,
3
2
  AgentRuntime3 as AgentRuntime,
4
- CacheKeyPrefix3 as CacheKeyPrefix,
3
+ asUUID3 as asUUID,
4
+ formatActors,
5
+ formatMessages3 as formatMessages,
6
+ formatPosts3 as formatPosts,
7
+ formatTimestamp3 as formatTimestamp,
8
+ generateUuidFromString,
9
+ getActorDetails
10
+ } from "../../chunk-TF6QLZZY.js";
11
+ import {
12
+ createTemplateFunction,
13
+ getTemplateValues,
14
+ processTemplate
15
+ } from "../../chunk-2HSL25IJ.js";
16
+ import {
17
+ ActionTimelineType,
18
+ CacheKeyPrefix,
5
19
  CacheStore,
6
20
  GoalStatus,
7
21
  IrysDataType,
8
22
  IrysMessageType,
9
- KnowledgeScope3 as KnowledgeScope,
23
+ KnowledgeScope,
10
24
  LoggingLevel,
11
25
  ModelClass,
12
26
  ModelProviderName,
13
- Service3 as Service,
14
- ServiceType3 as ServiceType,
27
+ Service,
28
+ ServiceType,
15
29
  TokenizerType,
16
- TranscriptionProvider,
17
- asUUID3 as asUUID,
30
+ TranscriptionProvider
31
+ } from "../../chunk-FEPOSPNK.js";
32
+ import {
18
33
  convertContentToV1,
19
34
  convertContentToV2,
20
- createTemplateFunction,
21
- formatActors,
22
- formatMessages3 as formatMessages,
23
- formatPosts3 as formatPosts,
24
- formatTimestamp3 as formatTimestamp,
25
35
  fromV2ActionExample,
36
+ toV2ActionExample
37
+ } from "../../chunk-U2ADTLZY.js";
38
+ import {
26
39
  fromV2Provider,
40
+ toV2Provider
41
+ } from "../../chunk-JX2SRFHQ.js";
42
+ import {
27
43
  fromV2State,
28
- generateUuidFromString,
29
- getActorDetails,
30
- getTemplateValues,
31
- processTemplate,
32
- toV2ActionExample,
33
- toV2Provider,
34
44
  toV2State
35
- } from "../../chunk-HRFT5KDK.js";
45
+ } from "../../chunk-YIBXLDIR.js";
46
+ import "../../chunk-SIAA4J6H.js";
36
47
  export {
37
48
  ActionTimelineType,
38
49
  AgentRuntime,
@@ -0,0 +1,31 @@
1
+ import { IAgentRuntime, UUID, Actor, Memory } from './types.js';
2
+ import 'stream';
3
+
4
+ /**
5
+ * Get details for a list of actors.
6
+ */
7
+ declare function getActorDetails({ runtime, roomId, }: {
8
+ runtime: IAgentRuntime;
9
+ roomId: UUID;
10
+ }): Promise<void>;
11
+ /**
12
+ * Format actors into a string
13
+ * @param actors - list of actors
14
+ * @returns string
15
+ */
16
+ declare function formatActors({ actors }: {
17
+ actors: Actor[];
18
+ }): string;
19
+ /**
20
+ * Format messages into a string
21
+ * @param messages - list of messages
22
+ * @param actors - list of actors
23
+ * @returns string
24
+ */
25
+ declare const formatMessages: ({ messages, actors }: {
26
+ messages: Memory[];
27
+ actors: Actor[];
28
+ }) => string;
29
+ declare const formatTimestamp: (messageDate: number) => string;
30
+
31
+ export { formatActors, formatMessages, formatTimestamp, getActorDetails };
@@ -0,0 +1,18 @@
1
+ import {
2
+ formatActors,
3
+ formatMessages3 as formatMessages,
4
+ formatTimestamp3 as formatTimestamp,
5
+ getActorDetails
6
+ } from "../../chunk-TF6QLZZY.js";
7
+ import "../../chunk-2HSL25IJ.js";
8
+ import "../../chunk-FEPOSPNK.js";
9
+ import "../../chunk-U2ADTLZY.js";
10
+ import "../../chunk-JX2SRFHQ.js";
11
+ import "../../chunk-YIBXLDIR.js";
12
+ import "../../chunk-SIAA4J6H.js";
13
+ export {
14
+ formatActors,
15
+ formatMessages,
16
+ formatTimestamp,
17
+ getActorDetails
18
+ };
@@ -0,0 +1,10 @@
1
+ import { Memory, Actor } from './types.js';
2
+ import 'stream';
3
+
4
+ declare const formatPosts: ({ messages, actors, conversationHeader, }: {
5
+ messages: Memory[];
6
+ actors: Actor[];
7
+ conversationHeader?: boolean;
8
+ }) => string;
9
+
10
+ export { formatPosts };
@@ -0,0 +1,12 @@
1
+ import {
2
+ formatPosts3 as formatPosts
3
+ } from "../../chunk-TF6QLZZY.js";
4
+ import "../../chunk-2HSL25IJ.js";
5
+ import "../../chunk-FEPOSPNK.js";
6
+ import "../../chunk-U2ADTLZY.js";
7
+ import "../../chunk-JX2SRFHQ.js";
8
+ import "../../chunk-YIBXLDIR.js";
9
+ import "../../chunk-SIAA4J6H.js";
10
+ export {
11
+ formatPosts
12
+ };
@@ -0,0 +1,21 @@
1
+ import { Provider as Provider$2 } from './types.js';
2
+ import { P as Provider$1 } from '../../types-D9v-eW3g.js';
3
+ import 'stream';
4
+
5
+ /**
6
+ * Provider for external data/services
7
+ * This is a v1 compatibility wrapper for v2 Provider
8
+ */
9
+ type Provider = Provider$2;
10
+ /**
11
+ * Converts v2 Provider to v1 compatible Provider
12
+ * Uses the V2 Provider interface to ensure proper optional field handling
13
+ */
14
+ declare function fromV2Provider(providerV2: Provider$1): Provider;
15
+ /**
16
+ * Converts v1 Provider to v2 Provider
17
+ * Creates a Provider object conforming to V2 Provider interface
18
+ */
19
+ declare function toV2Provider(provider: Provider): Provider$1;
20
+
21
+ export { type Provider, fromV2Provider, toV2Provider };
@@ -0,0 +1,10 @@
1
+ import {
2
+ fromV2Provider,
3
+ toV2Provider
4
+ } from "../../chunk-JX2SRFHQ.js";
5
+ import "../../chunk-YIBXLDIR.js";
6
+ import "../../chunk-SIAA4J6H.js";
7
+ export {
8
+ fromV2Provider,
9
+ toV2Provider
10
+ };