@elizaos/core 1.0.0-beta.7 → 1.0.0-beta.8
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/import.d.ts +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +365 -5868
- package/dist/roles.d.ts +5 -1
- package/dist/runtime.d.ts +2 -15
- package/dist/settings.d.ts +80 -1
- package/dist/types.d.ts +17 -5
- package/dist/uuid.d.ts +6 -0
- package/package.json +6 -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/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
|
+
import { Readable } from 'stream-browserify';
|
|
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: Readable, audioLength: number, sampleRate: number, channelCount?: number, bitsPerSample?: number): Readable;
|
|
23
|
+
export { getWavHeader, prependWavHeader };
|
package/dist/import.d.ts
CHANGED
|
@@ -6,4 +6,10 @@ export declare const registerDynamicImport: (specifier: string, module: any) =>
|
|
|
6
6
|
* @param {string[]} plugins - An array of strings representing the plugins to import.
|
|
7
7
|
* @returns {Promise<Function[]>} - A Promise that resolves to an array of imported plugins functions.
|
|
8
8
|
*/
|
|
9
|
+
/**
|
|
10
|
+
* Handles the importing of plugins based on the provided array of plugin names.
|
|
11
|
+
*
|
|
12
|
+
* @param {string[]} plugins - An array of plugin names to import
|
|
13
|
+
* @returns {Promise<any[]>} - A Promise that resolves to an array of imported plugins
|
|
14
|
+
*/
|
|
9
15
|
export declare function handlePluginImporting(plugins: string[]): Promise<any[]>;
|
package/dist/index.d.ts
CHANGED