@elizaos/core 1.0.0-beta.3 → 1.0.0-beta.33
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/LICENSE +1 -1
- package/dist/audioUtils.d.ts +23 -0
- package/dist/database.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +511 -5918
- package/dist/prompts.d.ts +2 -1
- package/dist/roles.d.ts +5 -1
- package/dist/runtime.d.ts +20 -17
- package/dist/settings.d.ts +80 -1
- package/dist/types.d.ts +53 -9
- package/dist/utils.d.ts +1 -0
- package/dist/uuid.d.ts +6 -0
- package/package.json +5 -2
- package/dist/actions/choice.d.ts +0 -13
- package/dist/actions/followRoom.d.ts +0 -20
- package/dist/actions/ignore.d.ts +0 -13
- package/dist/actions/muteRoom.d.ts +0 -22
- package/dist/actions/none.d.ts +0 -9
- package/dist/actions/reply.d.ts +0 -15
- package/dist/actions/roles.d.ts +0 -13
- package/dist/actions/sendMessage.d.ts +0 -14
- package/dist/actions/settings.d.ts +0 -21
- package/dist/actions/unfollowRoom.d.ts +0 -12
- package/dist/actions/unmuteRoom.d.ts +0 -18
- package/dist/actions/updateEntity.d.ts +0 -42
- package/dist/bootstrap.d.ts +0 -14
- package/dist/evaluators/reflection.d.ts +0 -2
- package/dist/import.d.ts +0 -9
- package/dist/providers/actions.d.ts +0 -14
- package/dist/providers/anxiety.d.ts +0 -9
- package/dist/providers/attachments.d.ts +0 -8
- package/dist/providers/capabilities.d.ts +0 -13
- package/dist/providers/character.d.ts +0 -9
- package/dist/providers/choice.d.ts +0 -10
- package/dist/providers/entities.d.ts +0 -2
- package/dist/providers/evaluators.d.ts +0 -26
- package/dist/providers/facts.d.ts +0 -10
- package/dist/providers/knowledge.d.ts +0 -13
- package/dist/providers/providers.d.ts +0 -6
- package/dist/providers/recentMessages.d.ts +0 -13
- package/dist/providers/relationships.d.ts +0 -14
- package/dist/providers/roles.d.ts +0 -14
- package/dist/providers/settings.d.ts +0 -6
- package/dist/providers/shouldRespond.d.ts +0 -6
- package/dist/providers/time.d.ts +0 -11
- package/dist/services/index.d.ts +0 -1
- package/dist/services/scenario.d.ts +0 -106
- package/dist/services/task.d.ts +0 -72
- package/dist/services/websocket.d.ts +0 -73
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 Shaw Walters
|
|
3
|
+
Copyright (c) 2025 Shaw Walters and elizaOS Contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const Readable: any;
|
|
2
|
+
import { Buffer } from 'buffer';
|
|
3
|
+
/**
|
|
4
|
+
* Generates a WAV file header based on the provided audio parameters.
|
|
5
|
+
* @param {number} audioLength - The length of the audio data in bytes.
|
|
6
|
+
* @param {number} sampleRate - The sample rate of the audio.
|
|
7
|
+
* @param {number} [channelCount=1] - The number of channels (default is 1).
|
|
8
|
+
* @param {number} [bitsPerSample=16] - The number of bits per sample (default is 16).
|
|
9
|
+
* @returns {Buffer} The WAV file header as a Buffer object.
|
|
10
|
+
*/
|
|
11
|
+
declare function getWavHeader(audioLength: number, sampleRate: number, channelCount?: number, bitsPerSample?: number): Buffer;
|
|
12
|
+
/**
|
|
13
|
+
* Prepends a WAV header to a readable stream of audio data.
|
|
14
|
+
*
|
|
15
|
+
* @param {Readable} readable - The readable stream containing the audio data.
|
|
16
|
+
* @param {number} audioLength - The length of the audio data in seconds.
|
|
17
|
+
* @param {number} sampleRate - The sample rate of the audio data.
|
|
18
|
+
* @param {number} [channelCount=1] - The number of channels in the audio data (default is 1).
|
|
19
|
+
* @param {number} [bitsPerSample=16] - The number of bits per sample in the audio data (default is 16).
|
|
20
|
+
* @returns {Readable} A new readable stream with the WAV header prepended to the audio data.
|
|
21
|
+
*/
|
|
22
|
+
declare function prependWavHeader(readable: typeof Readable, audioLength: number, sampleRate: number, channelCount?: number, bitsPerSample?: number): typeof Readable;
|
|
23
|
+
export { getWavHeader, prependWavHeader };
|
package/dist/database.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Agent, Component, Entity, IDatabaseAdapter, Log, Memory, Participant, Relationship, Room, Task, UUID, World
|
|
1
|
+
import type { Agent, Component, Entity, IDatabaseAdapter, Log, Memory, MemoryMetadata, Participant, Relationship, Room, Task, UUID, World } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* An abstract class representing a database adapter for managing various entities
|
|
4
4
|
* like entities, memories, entities, goals, and rooms.
|
|
@@ -379,7 +379,7 @@ export declare abstract class DatabaseAdapter<DB = unknown> implements IDatabase
|
|
|
379
379
|
* @param agent The agent object to ensure exists.
|
|
380
380
|
* @returns A Promise that resolves when the agent has been ensured to exist.
|
|
381
381
|
*/
|
|
382
|
-
abstract ensureAgentExists(agent: Partial<Agent>): Promise<
|
|
382
|
+
abstract ensureAgentExists(agent: Partial<Agent>): Promise<Agent>;
|
|
383
383
|
/**
|
|
384
384
|
* Ensures an embedding dimension exists in the database.
|
|
385
385
|
* @param dimension The dimension to ensure exists.
|
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ export * from './types';
|
|
|
2
2
|
export * from './actions';
|
|
3
3
|
export * from './database';
|
|
4
4
|
export * from './entities';
|
|
5
|
-
export * from './import';
|
|
6
5
|
export * from './logger';
|
|
7
6
|
export * from './prompts';
|
|
8
7
|
export * from './roles';
|
|
9
8
|
export * from './runtime';
|
|
10
9
|
export * from './settings';
|
|
11
10
|
export * from './uuid';
|
|
12
|
-
export * from './
|
|
11
|
+
export * from './audioUtils';
|
|
12
|
+
export * from './utils';
|