@elizaos/core 1.0.7 → 1.0.9
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.
- package/dist/chunk-4RZR75QG.js +5864 -0
- package/dist/{chunk-SIAA4J6H.js → chunk-R5U7XKVJ.js} +0 -5
- package/dist/{chunk-FEPOSPNK.js → chunk-WO7Z3GE6.js} +1 -0
- package/dist/{index-CGCNwsoH.d.ts → index-BQQJMuGB.d.ts} +119 -121
- package/dist/index.d.ts +137 -147
- package/dist/index.js +5 -7
- package/dist/specs/v1/actionExample.d.ts +1 -1
- package/dist/specs/v1/actionExample.js +1 -1
- package/dist/specs/v1/index.d.ts +1 -1
- package/dist/specs/v1/index.js +3 -3
- package/dist/specs/v1/messages.js +3 -3
- package/dist/specs/v1/posts.js +3 -3
- package/dist/specs/v1/provider.d.ts +1 -1
- package/dist/specs/v1/provider.js +1 -1
- package/dist/specs/v1/runtime.js +3 -3
- package/dist/specs/v1/state.d.ts +1 -1
- package/dist/specs/v1/state.js +1 -1
- package/dist/specs/v1/templates.d.ts +1 -1
- package/dist/specs/v1/templates.js +1 -1
- package/dist/specs/v1/types.d.ts +2 -1
- package/dist/specs/v1/types.js +2 -2
- package/dist/specs/v1/uuid.js +3 -3
- package/dist/specs/v2/index.d.ts +2 -2
- package/dist/specs/v2/index.js +3 -3
- package/dist/{types-sJIakXg4.d.ts → types-CTfMiLYi.d.ts} +19 -4
- package/package.json +3 -12
- package/dist/chunk-Y4TJIR4A.js +0 -11607
package/dist/specs/v1/types.d.ts
CHANGED
|
@@ -1188,7 +1188,8 @@ declare enum ServiceType {
|
|
|
1188
1188
|
GOPLUS_SECURITY = "goplus_security",
|
|
1189
1189
|
WEB_SEARCH = "web_search",
|
|
1190
1190
|
EMAIL_AUTOMATION = "email_automation",
|
|
1191
|
-
NKN_CLIENT_SERVICE = "nkn_client_service"
|
|
1191
|
+
NKN_CLIENT_SERVICE = "nkn_client_service",
|
|
1192
|
+
DATABASE_MIGRATION = "database_migration"
|
|
1192
1193
|
}
|
|
1193
1194
|
declare enum LoggingLevel {
|
|
1194
1195
|
DEBUG = "debug",
|
package/dist/specs/v1/types.js
CHANGED
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
ServiceType,
|
|
14
14
|
TokenizerType,
|
|
15
15
|
TranscriptionProvider
|
|
16
|
-
} from "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
16
|
+
} from "../../chunk-WO7Z3GE6.js";
|
|
17
|
+
import "../../chunk-R5U7XKVJ.js";
|
|
18
18
|
export {
|
|
19
19
|
ActionTimelineType,
|
|
20
20
|
CacheKeyPrefix,
|
package/dist/specs/v1/uuid.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asUUID3 as asUUID,
|
|
3
3
|
generateUuidFromString
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-4RZR75QG.js";
|
|
5
5
|
import "../../chunk-2HSL25IJ.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-WO7Z3GE6.js";
|
|
7
7
|
import "../../chunk-U2ADTLZY.js";
|
|
8
8
|
import "../../chunk-JX2SRFHQ.js";
|
|
9
9
|
import "../../chunk-YIBXLDIR.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-R5U7XKVJ.js";
|
|
11
11
|
export {
|
|
12
12
|
asUUID,
|
|
13
13
|
generateUuidFromString
|
package/dist/specs/v2/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as Action,
|
|
2
|
-
export {
|
|
1
|
+
export { a as Action, w as ActionEventPayload, A as ActionExample, f as Agent, x as AgentStatus, y as AudioProcessingParams, B as BaseMetadata, z as BaseModelParams, D as CacheKeyPrefix, F as ChannelClearedPayload, G as ChannelType, l as Character, J as ChunkRow, b as Component, K as ComponentData, C as Content, N as ContentType, O as ControlMessage, Q as CustomMetadata, V as DbConnection, X as DeriveKeyAttestationData, Y as DescriptionMetadata, Z as DetokenizeTextParams, _ as DirectoryItem, $ as DocumentMetadata, a0 as EmbeddingSearchResult, a1 as EnhancedState, E as Entity, a2 as EntityPayload, a3 as EvaluationExample, m as Evaluator, a4 as EvaluatorEventPayload, a5 as EventDataObject, a6 as EventHandler, a7 as EventPayload, a8 as EventPayloadMap, a9 as EventType, aa as FragmentMetadata, ab as GenerateTextParams, ac as Handler, H as HandlerCallback, g as IAgentRuntime, I as IDatabaseAdapter, ad as ImageDescriptionParams, ae as ImageGenerationParams, af as InvokePayload, ag as IsValidServiceType, ah as JSONSchema, ai as KnowledgeItem, aj as KnowledgeScope, L as Log, ak as Media, M as Memory, c as MemoryMetadata, al as MemoryRetrievalOptions, am as MemoryScope, an as MemorySearchOptions, ao as MemoryType, ap as MemoryTypeAlias, aq as MessageExample, ar as MessageMemory, as as MessageMetadata, at as MessagePayload, au as MessageReceivedHandlerParams, av as MetadataObject, aw as ModelEventPayload, ax as ModelHandler, r as ModelParamsMap, q as ModelResultMap, ay as ModelType, p as ModelTypeName, az as MultiRoomMemoryOptions, aA as ObjectGenerationParams, aB as OnboardingConfig, d as Participant, aC as PlatformPrefix, n as Plugin, aD as PluginEvents, aE as Project, aF as ProjectAgent, P as Provider, aG as ProviderResult, e as Relationship, aH as RemoteAttestationMessage, aI as RemoteAttestationQuote, h as Role, R as Room, aJ as RoomMetadata, k as Route, aK as RunEventPayload, o as RuntimeSettings, aL as SOCKET_MESSAGE_TYPE, t as SendHandlerFunction, j as Service, aM as ServiceClassMap, aN as ServiceConfig, aO as ServiceError, aP as ServiceInstance, aQ as ServiceRegistry, aR as ServiceType, i as ServiceTypeName, aS as ServiceTypeRegistry, aT as ServiceTypeValue, aU as Setting, S as State, aV as StateArray, aW as StateObject, aX as StateValue, aY as TEEMode, u as TargetInfo, T as Task, aZ as TaskMetadata, s as TaskWorker, a_ as TeeAgent, a$ as TeePluginConfig, b0 as TeeType, b1 as TeeVendorConfig, v as TemplateType, b2 as TestCase, b3 as TestSuite, b4 as TextEmbeddingParams, b5 as TextGenerationParams, b6 as TextToSpeechParams, b7 as TokenizeTextParams, b8 as TranscriptionParams, b9 as TypedEventHandler, ba as TypedService, bb as TypedServiceClass, U as UUID, bc as UnifiedMemoryOptions, bd as UnifiedSearchOptions, be as VECTOR_DIMS, bf as Validator, bg as VideoProcessingParams, W as World, bh as WorldPayload, bi as WorldSettings, bj as asUUID, bk as createMessageMemory, bl as createServiceError, bm as getMemoryText, bn as getTypedService, bo as isCustomMetadata, bp as isDescriptionMetadata, bq as isDocumentMemory, br as isDocumentMetadata, bs as isFragmentMemory, bt as isFragmentMetadata, bu as isMessageMetadata } from '../../types-CTfMiLYi.js';
|
|
2
|
+
export { bI as AgentRuntime, bs as DatabaseAdapter, bH as Semaphore, bE as ServerOwnershipState, ca as ServiceBuilder, cc as ServiceDefinition, b_ as addHeader, bC as booleanFooter, bp as composeActionExamples, bY as composePrompt, bZ as composePromptFromState, cb as createService, bK as createSettingFromConfig, bu as createUniqueUuid, bX as decryptObjectValues, bJ as decryptSecret, bJ as decryptStringValue, bV as decryptedCharacter, cd as defineService, by as elizaLogger, bW as encryptObjectValues, bM as encryptStringValue, bU as encryptedCharacter, bt as findEntityByName, bG as findWorldsForOwner, bq as formatActionNames, br as formatActions, bw as formatEntities, c0 as formatMessages, b$ as formatPosts, c1 as formatTimestamp, bv as getEntityDetails, bL as getSalt, bF as getUserServerRole, bS as getWorldSettings, bD as imageDescriptionTemplate, bT as initializeOnboarding, bx as logger, bA as messageHandlerTemplate, c7 as parseBooleanFromText, c6 as parseJSONObjectFromText, c5 as parseKeyValueXml, bB as postCreationTemplate, c8 as safeReplacer, bN as saltSettingValue, bP as saltWorldSettings, bz as shouldRespondTemplate, c3 as stringToUuid, c9 as trimTokens, c4 as truncateToCompleteSentence, bO as unsaltSettingValue, bQ as unsaltWorldSettings, bR as updateWorldSettings, c2 as validateUuid } from '../../index-BQQJMuGB.js';
|
package/dist/specs/v2/index.js
CHANGED
|
@@ -78,13 +78,13 @@ import {
|
|
|
78
78
|
unsaltWorldSettings2 as unsaltWorldSettings,
|
|
79
79
|
updateWorldSettings2 as updateWorldSettings,
|
|
80
80
|
validateUuid2 as validateUuid
|
|
81
|
-
} from "../../chunk-
|
|
81
|
+
} from "../../chunk-4RZR75QG.js";
|
|
82
82
|
import "../../chunk-2HSL25IJ.js";
|
|
83
|
-
import "../../chunk-
|
|
83
|
+
import "../../chunk-WO7Z3GE6.js";
|
|
84
84
|
import "../../chunk-U2ADTLZY.js";
|
|
85
85
|
import "../../chunk-JX2SRFHQ.js";
|
|
86
86
|
import "../../chunk-YIBXLDIR.js";
|
|
87
|
-
import "../../chunk-
|
|
87
|
+
import "../../chunk-R5U7XKVJ.js";
|
|
88
88
|
export {
|
|
89
89
|
AgentRuntime,
|
|
90
90
|
AgentStatus,
|
|
@@ -98,7 +98,6 @@ interface ServiceTypeRegistry {
|
|
|
98
98
|
EMAIL: 'email';
|
|
99
99
|
TEE: 'tee';
|
|
100
100
|
TASK: 'task';
|
|
101
|
-
INSTRUMENTATION: 'instrumentation';
|
|
102
101
|
}
|
|
103
102
|
/**
|
|
104
103
|
* Type for service names that includes both core services and any plugin-registered services
|
|
@@ -137,7 +136,7 @@ type ServiceRegistry<T extends ServiceTypeName = ServiceTypeName> = Map<T, Servi
|
|
|
137
136
|
* Enumerates the recognized types of services that can be registered and used by the agent runtime.
|
|
138
137
|
* Services provide specialized functionalities like audio transcription, video processing,
|
|
139
138
|
* web browsing, PDF handling, file storage (e.g., AWS S3), web search, email integration,
|
|
140
|
-
* secure execution via TEE (Trusted Execution Environment), task management
|
|
139
|
+
* secure execution via TEE (Trusted Execution Environment), and task management.
|
|
141
140
|
* This constant is used in `AgentRuntime` for service registration and retrieval (e.g., `getService`).
|
|
142
141
|
* Each service typically implements the `Service` abstract class or a more specific interface like `IVideoService`.
|
|
143
142
|
*/
|
|
@@ -151,7 +150,6 @@ declare const ServiceType: {
|
|
|
151
150
|
readonly EMAIL: "email";
|
|
152
151
|
readonly TEE: "tee";
|
|
153
152
|
readonly TASK: "task";
|
|
154
|
-
readonly INSTRUMENTATION: "instrumentation";
|
|
155
153
|
};
|
|
156
154
|
/**
|
|
157
155
|
* Represents the current state or context of a conversation or agent interaction.
|
|
@@ -753,6 +751,7 @@ interface IDatabaseAdapter {
|
|
|
753
751
|
metadata?: MemoryMetadata;
|
|
754
752
|
}): Promise<boolean>;
|
|
755
753
|
deleteMemory(memoryId: UUID): Promise<void>;
|
|
754
|
+
deleteManyMemories(memoryIds: UUID[]): Promise<void>;
|
|
756
755
|
deleteAllMemories(roomId: UUID, tableName: string): Promise<void>;
|
|
757
756
|
countMemories(roomId: UUID, unique?: boolean, tableName?: string): Promise<number>;
|
|
758
757
|
createWorld(world: World): Promise<UUID>;
|
|
@@ -970,6 +969,10 @@ interface IAgentRuntime extends IDatabaseAdapter {
|
|
|
970
969
|
getTaskWorker(name: string): TaskWorker | undefined;
|
|
971
970
|
stop(): Promise<void>;
|
|
972
971
|
addEmbeddingToMemory(memory: Memory): Promise<Memory>;
|
|
972
|
+
createRunId(): UUID;
|
|
973
|
+
startRun(): UUID;
|
|
974
|
+
endRun(): void;
|
|
975
|
+
getCurrentRunId(): UUID;
|
|
973
976
|
getEntityById(entityId: UUID): Promise<Entity | null>;
|
|
974
977
|
getRoom(roomId: UUID): Promise<Room | null>;
|
|
975
978
|
createEntity(entity: Entity): Promise<boolean>;
|
|
@@ -1511,6 +1514,8 @@ declare enum EventType {
|
|
|
1511
1514
|
ROOM_LEFT = "ROOM_LEFT",
|
|
1512
1515
|
MESSAGE_RECEIVED = "MESSAGE_RECEIVED",
|
|
1513
1516
|
MESSAGE_SENT = "MESSAGE_SENT",
|
|
1517
|
+
MESSAGE_DELETED = "MESSAGE_DELETED",
|
|
1518
|
+
CHANNEL_CLEARED = "CHANNEL_CLEARED",
|
|
1514
1519
|
VOICE_MESSAGE_RECEIVED = "VOICE_MESSAGE_RECEIVED",
|
|
1515
1520
|
VOICE_MESSAGE_SENT = "VOICE_MESSAGE_SENT",
|
|
1516
1521
|
REACTION_RECEIVED = "REACTION_RECEIVED",
|
|
@@ -1571,6 +1576,14 @@ interface MessagePayload extends EventPayload {
|
|
|
1571
1576
|
callback?: HandlerCallback;
|
|
1572
1577
|
onComplete?: () => void;
|
|
1573
1578
|
}
|
|
1579
|
+
/**
|
|
1580
|
+
* Payload for channel cleared events
|
|
1581
|
+
*/
|
|
1582
|
+
interface ChannelClearedPayload extends EventPayload {
|
|
1583
|
+
roomId: UUID;
|
|
1584
|
+
channelId: string;
|
|
1585
|
+
memoryCount: number;
|
|
1586
|
+
}
|
|
1574
1587
|
/**
|
|
1575
1588
|
* Payload for events that are invoked without a message
|
|
1576
1589
|
*/
|
|
@@ -1653,6 +1666,7 @@ interface EventPayloadMap {
|
|
|
1653
1666
|
[EventType.ENTITY_UPDATED]: EntityPayload;
|
|
1654
1667
|
[EventType.MESSAGE_RECEIVED]: MessagePayload;
|
|
1655
1668
|
[EventType.MESSAGE_SENT]: MessagePayload;
|
|
1669
|
+
[EventType.MESSAGE_DELETED]: MessagePayload;
|
|
1656
1670
|
[EventType.REACTION_RECEIVED]: MessagePayload;
|
|
1657
1671
|
[EventType.POST_GENERATED]: InvokePayload;
|
|
1658
1672
|
[EventType.INTERACTION_RECEIVED]: MessagePayload;
|
|
@@ -1664,6 +1678,7 @@ interface EventPayloadMap {
|
|
|
1664
1678
|
[EventType.EVALUATOR_STARTED]: EvaluatorEventPayload;
|
|
1665
1679
|
[EventType.EVALUATOR_COMPLETED]: EvaluatorEventPayload;
|
|
1666
1680
|
[EventType.MODEL_USED]: ModelEventPayload;
|
|
1681
|
+
[EventType.CHANNEL_CLEARED]: ChannelClearedPayload;
|
|
1667
1682
|
}
|
|
1668
1683
|
/**
|
|
1669
1684
|
* Event handler function type
|
|
@@ -1944,4 +1959,4 @@ declare abstract class Service {
|
|
|
1944
1959
|
static stop(_runtime: IAgentRuntime): Promise<unknown>;
|
|
1945
1960
|
}
|
|
1946
1961
|
|
|
1947
|
-
export { type
|
|
1962
|
+
export { type DocumentMetadata as $, type ActionExample as A, type BaseMetadata as B, type Content as C, CacheKeyPrefix as D, type Entity as E, type ChannelClearedPayload as F, ChannelType as G, type HandlerCallback as H, type IDatabaseAdapter as I, type ChunkRow as J, type ComponentData as K, type Log as L, type Memory as M, ContentType as N, type ControlMessage as O, type Provider as P, type CustomMetadata as Q, type Room as R, type State as S, type Task as T, type UUID as U, type DbConnection as V, type World as W, type DeriveKeyAttestationData as X, type DescriptionMetadata as Y, type DetokenizeTextParams as Z, type DirectoryItem as _, type Action as a, type TeePluginConfig as a$, type EmbeddingSearchResult as a0, type EnhancedState as a1, type EntityPayload as a2, type EvaluationExample as a3, type EvaluatorEventPayload as a4, type EventDataObject as a5, type EventHandler as a6, type EventPayload as a7, type EventPayloadMap as a8, EventType as a9, type ObjectGenerationParams as aA, type OnboardingConfig as aB, PlatformPrefix as aC, type PluginEvents as aD, type Project as aE, type ProjectAgent as aF, type ProviderResult as aG, type RemoteAttestationMessage as aH, type RemoteAttestationQuote as aI, type RoomMetadata as aJ, type RunEventPayload as aK, SOCKET_MESSAGE_TYPE as aL, type ServiceClassMap as aM, type ServiceConfig as aN, type ServiceError as aO, type ServiceInstance as aP, type ServiceRegistry as aQ, ServiceType as aR, type ServiceTypeRegistry as aS, type ServiceTypeValue as aT, type Setting as aU, type StateArray as aV, type StateObject as aW, type StateValue as aX, TEEMode as aY, type TaskMetadata as aZ, type TeeAgent as a_, type FragmentMetadata as aa, type GenerateTextParams as ab, type Handler as ac, type ImageDescriptionParams as ad, type ImageGenerationParams as ae, type InvokePayload as af, type IsValidServiceType as ag, type JSONSchema as ah, type KnowledgeItem as ai, KnowledgeScope as aj, type Media as ak, type MemoryRetrievalOptions as al, type MemoryScope as am, type MemorySearchOptions as an, MemoryType as ao, type MemoryTypeAlias as ap, type MessageExample as aq, type MessageMemory as ar, type MessageMetadata as as, type MessagePayload as at, type MessageReceivedHandlerParams as au, type MetadataObject as av, type ModelEventPayload as aw, type ModelHandler as ax, ModelType as ay, type MultiRoomMemoryOptions as az, type Component as b, TeeType as b0, type TeeVendorConfig as b1, type TestCase as b2, type TestSuite as b3, type TextEmbeddingParams as b4, type TextGenerationParams as b5, type TextToSpeechParams as b6, type TokenizeTextParams as b7, type TranscriptionParams as b8, type TypedEventHandler as b9, type TypedService as ba, type TypedServiceClass as bb, type UnifiedMemoryOptions as bc, type UnifiedSearchOptions as bd, VECTOR_DIMS as be, type Validator as bf, type VideoProcessingParams as bg, type WorldPayload as bh, type WorldSettings as bi, asUUID as bj, createMessageMemory as bk, createServiceError as bl, getMemoryText as bm, getTypedService as bn, isCustomMetadata as bo, isDescriptionMetadata as bp, isDocumentMemory as bq, isDocumentMetadata as br, isFragmentMemory as bs, isFragmentMetadata as bt, isMessageMetadata as bu, type MemoryMetadata as c, type Participant as d, type Relationship as e, type Agent as f, type IAgentRuntime as g, Role as h, type ServiceTypeName as i, Service as j, type Route as k, type Character as l, type Evaluator as m, type Plugin as n, type RuntimeSettings as o, type ModelTypeName as p, type ModelResultMap as q, type ModelParamsMap as r, type TaskWorker as s, type SendHandlerFunction as t, type TargetInfo as u, type TemplateType as v, type ActionEventPayload as w, AgentStatus as x, type AudioProcessingParams as y, type BaseModelParams as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -66,19 +66,10 @@
|
|
|
66
66
|
"rollup": "2.79.2",
|
|
67
67
|
"ts-node": "10.9.2",
|
|
68
68
|
"tslib": "2.8.1",
|
|
69
|
-
"tsup": "
|
|
69
|
+
"tsup": "8.5.0",
|
|
70
70
|
"typescript": "5.8.2"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@opentelemetry/api": "^1.9.0",
|
|
74
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.201.1",
|
|
75
|
-
"@opentelemetry/instrumentation": "^0.201.0",
|
|
76
|
-
"@opentelemetry/instrumentation-pg": "^0.53.0",
|
|
77
|
-
"@opentelemetry/resources": "^2.0.1",
|
|
78
|
-
"@opentelemetry/sdk-metrics": "^2.0.0",
|
|
79
|
-
"@opentelemetry/sdk-node": "^0.201.1",
|
|
80
|
-
"@opentelemetry/sdk-trace-node": "^2.0.1",
|
|
81
|
-
"@opentelemetry/semantic-conventions": "^1.34.0",
|
|
82
73
|
"@sentry/browser": "^9.22.0",
|
|
83
74
|
"buffer": "^6.0.3",
|
|
84
75
|
"crypto-browserify": "^3.12.1",
|
|
@@ -100,5 +91,5 @@
|
|
|
100
91
|
"publishConfig": {
|
|
101
92
|
"access": "public"
|
|
102
93
|
},
|
|
103
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "056c917d1068894f25419aa6ea7ce94b6b957c3d"
|
|
104
95
|
}
|