Skip to content

Commit da54afb

Browse files
committed
v1.0.0-alpha.23
1 parent 1ab3ffd commit da54afb

File tree

21 files changed

+216
-41
lines changed

21 files changed

+216
-41
lines changed

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0-alpha.22",
2+
"version": "1.0.0-alpha.23",
33
"packages": [
44
"packages/*"
55
],

packages/cli/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/cli",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"description": "elizaOS CLI - Manage your AI agents and plugins",
55
"publishConfig": {
66
"access": "public"
@@ -46,14 +46,14 @@
4646
"@babel/parser": "^7.22.6",
4747
"@babel/plugin-transform-typescript": "^7.22.5",
4848
"@electric-sql/pglite": "^0.2.17",
49-
"@elizaos/core": "^1.0.0-alpha.22",
50-
"@elizaos/plugin-anthropic": "^1.0.0-alpha.22",
51-
"@elizaos/plugin-discord": "^1.0.0-alpha.22",
52-
"@elizaos/plugin-local-ai": "^1.0.0-alpha.22",
53-
"@elizaos/plugin-openai": "^1.0.0-alpha.22",
54-
"@elizaos/plugin-sql": "^1.0.0-alpha.22",
55-
"@elizaos/plugin-starter": "^1.0.0-alpha.22",
56-
"@elizaos/project-starter": "^1.0.0-alpha.22",
49+
"@elizaos/core": "^1.0.0-alpha.23",
50+
"@elizaos/plugin-anthropic": "^1.0.0-alpha.23",
51+
"@elizaos/plugin-discord": "^1.0.0-alpha.23",
52+
"@elizaos/plugin-local-ai": "^1.0.0-alpha.23",
53+
"@elizaos/plugin-openai": "^1.0.0-alpha.23",
54+
"@elizaos/plugin-sql": "^1.0.0-alpha.23",
55+
"@elizaos/plugin-starter": "^1.0.0-alpha.23",
56+
"@elizaos/project-starter": "^1.0.0-alpha.23",
5757
"@noble/curves": "^1.8.1",
5858
"axios": "^1.7.9",
5959
"chalk": "5.2.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "./src",
5+
"outDir": "./dist",
6+
"sourceMap": true,
7+
"inlineSources": true,
8+
"declaration": true,
9+
"emitDeclarationOnly": true
10+
},
11+
"include": ["src/**/*.ts"],
12+
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
import type { Content, IAgentRuntime, Memory, State, TestSuite, UUID } from "@elizaos/core";
2+
import { v4 as uuidv4 } from "uuid";
3+
import { character } from "./index";
4+
5+
export class StarterTestSuite implements TestSuite {
6+
name = "starter";
7+
description = "Tests for the starter project";
8+
9+
tests = [
10+
{
11+
name: "Character configuration test",
12+
fn: async (runtime: IAgentRuntime) => {
13+
const requiredFields = ["name", "bio", "plugins", "system", "messageExamples"];
14+
const missingFields = requiredFields.filter(field => !(field in character));
15+
16+
if (missingFields.length > 0) {
17+
throw new Error(`Missing required fields: ${missingFields.join(", ")}`);
18+
}
19+
20+
// Additional character property validations
21+
if (character.name !== 'Eliza') {
22+
throw new Error(`Expected character name to be 'Eliza', got '${character.name}'`);
23+
}
24+
if (!Array.isArray(character.plugins)) {
25+
throw new Error('Character plugins should be an array');
26+
}
27+
if (!character.system) {
28+
throw new Error('Character system prompt is required');
29+
}
30+
if (!Array.isArray(character.bio)) {
31+
throw new Error('Character bio should be an array');
32+
}
33+
if (!Array.isArray(character.messageExamples)) {
34+
throw new Error('Character message examples should be an array');
35+
}
36+
}
37+
},
38+
{
39+
name: "Plugin initialization test",
40+
fn: async (runtime: IAgentRuntime) => {
41+
// Test plugin initialization with empty config
42+
try {
43+
await runtime.registerPlugin({
44+
name: "starter",
45+
description: "A starter plugin for Eliza",
46+
init: async () => {},
47+
config: {}
48+
});
49+
} catch (error) {
50+
throw new Error(`Failed to register plugin: ${error.message}`);
51+
}
52+
}
53+
},
54+
{
55+
name: "Hello world action test",
56+
fn: async (runtime: IAgentRuntime) => {
57+
const message: Memory = {
58+
entityId: uuidv4() as UUID,
59+
roomId: uuidv4() as UUID,
60+
content: {
61+
text: "Can you say hello?",
62+
source: "test"
63+
}
64+
};
65+
66+
const state: State = {
67+
values: {},
68+
data: {},
69+
text: ""
70+
};
71+
let responseReceived = false;
72+
73+
// Test the hello world action
74+
try {
75+
await runtime.processActions(
76+
message,
77+
[],
78+
state,
79+
async (content: Content) => {
80+
if (content.text === "hello world!" && content.actions?.includes("HELLO_WORLD")) {
81+
responseReceived = true;
82+
}
83+
return [];
84+
}
85+
);
86+
87+
if (!responseReceived) {
88+
throw new Error("Hello world action did not produce expected response");
89+
}
90+
} catch (error) {
91+
throw new Error(`Hello world action test failed: ${error.message}`);
92+
}
93+
}
94+
},
95+
{
96+
name: "Hello world provider test",
97+
fn: async (runtime: IAgentRuntime) => {
98+
const message: Memory = {
99+
entityId: uuidv4() as UUID,
100+
roomId: uuidv4() as UUID,
101+
content: {
102+
text: "What can you provide?",
103+
source: "test"
104+
}
105+
};
106+
107+
const state: State = {
108+
values: {},
109+
data: {},
110+
text: ""
111+
};
112+
113+
// Test the hello world provider
114+
try {
115+
const result = await runtime.providers[0].get(runtime, message, state);
116+
117+
if (result.text !== "I am a provider") {
118+
throw new Error(`Expected provider to return "I am a provider", got "${result.text}"`);
119+
}
120+
} catch (error) {
121+
throw new Error(`Hello world provider test failed: ${error.message}`);
122+
}
123+
}
124+
},
125+
{
126+
name: "Starter service test",
127+
fn: async (runtime: IAgentRuntime) => {
128+
// Test service registration and lifecycle
129+
try {
130+
const service = runtime.getService("starter");
131+
if (!service) {
132+
throw new Error("Starter service not found");
133+
}
134+
135+
if (service.capabilityDescription !== "This is a starter service which is attached to the agent through the starter plugin.") {
136+
throw new Error("Incorrect service capability description");
137+
}
138+
139+
await service.stop();
140+
} catch (error) {
141+
throw new Error(`Starter service test failed: ${error.message}`);
142+
}
143+
}
144+
}
145+
];
146+
}
147+
148+
// Export a default instance
149+
export default new StarterTestSuite();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "./src",
5+
"outDir": "./dist",
6+
"sourceMap": true,
7+
"inlineSources": true,
8+
"declaration": true,
9+
"emitDeclarationOnly": true
10+
},
11+
"include": ["src/**/*.ts"],
12+
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
13+
}

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/core",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"description": "",
55
"type": "module",
66
"main": "dist/index.js",

packages/create-eliza/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-eliza",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"description": "Initialize an Eliza project",
55
"type": "module",
66
"publishConfig": {

packages/plugin-anthropic/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-anthropic",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -19,7 +19,7 @@
1919
],
2020
"dependencies": {
2121
"@ai-sdk/anthropic": "^1.1.6",
22-
"@elizaos/core": "^1.0.0-alpha.22",
22+
"@elizaos/core": "^1.0.0-alpha.23",
2323
"fastembed": "^1.0.0",
2424
"tsup": "8.4.0",
2525
"zod": "3.21.4"

packages/plugin-discord/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-discord",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-elevenlabs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-elevenlabs",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -18,7 +18,7 @@
1818
"dist"
1919
],
2020
"dependencies": {
21-
"@elizaos/core": "^1.0.0-alpha.22",
21+
"@elizaos/core": "^1.0.0-alpha.23",
2222
"tsup": "8.4.0"
2323
},
2424
"scripts": {

packages/plugin-local-ai/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-local-ai",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -24,7 +24,7 @@
2424
"@echogarden/espeak-ng-emscripten": "0.3.3",
2525
"@echogarden/kissfft-wasm": "0.2.0",
2626
"@echogarden/speex-resampler-wasm": "0.2.1",
27-
"@elizaos/core": "^1.0.0-alpha.22",
27+
"@elizaos/core": "^1.0.0-alpha.23",
2828
"@huggingface/hub": "^1.0.1",
2929
"@huggingface/inference": "^3.3.4",
3030
"@huggingface/transformers": "^3.3.3",

packages/plugin-node/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-node",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -25,7 +25,7 @@
2525
"dependencies": {
2626
"@aws-sdk/client-s3": "^3.705.0",
2727
"@aws-sdk/s3-request-presigner": "^3.705.0",
28-
"@elizaos/core": "^1.0.0-alpha.22",
28+
"@elizaos/core": "^1.0.0-alpha.23",
2929
"@types/uuid": "10.0.0",
3030
"capsolver-npm": "2.0.2",
3131
"fluent-ffmpeg": "2.1.3",

packages/plugin-openai/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-openai",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -20,7 +20,7 @@
2020
"dependencies": {
2121
"@ai-sdk/openai": "^1.1.9",
2222
"@ai-sdk/ui-utils": "1.1.9",
23-
"@elizaos/core": "^1.0.0-alpha.22",
23+
"@elizaos/core": "^1.0.0-alpha.23",
2424
"ai": "^4.1.25",
2525
"js-tiktoken": "^1.0.18",
2626
"tsup": "8.4.0",

packages/plugin-solana/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-solana",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -20,7 +20,7 @@
2020
],
2121
"dependencies": {
2222
"@coral-xyz/anchor": "0.30.1",
23-
"@elizaos/core": "^1.0.0-alpha.22",
23+
"@elizaos/core": "^1.0.0-alpha.23",
2424
"@solana/spl-token": "0.4.9",
2525
"@solana/web3.js": "^1.98.0",
2626
"bignumber.js": "9.1.2",

packages/plugin-sql/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-sql",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -23,7 +23,7 @@
2323
],
2424
"dependencies": {
2525
"@electric-sql/pglite": "^0.2.17",
26-
"@elizaos/core": "^1.0.0-alpha.22",
26+
"@elizaos/core": "^1.0.0-alpha.23",
2727
"@types/pg": "8.11.10",
2828
"drizzle-kit": "^0.30.4",
2929
"drizzle-orm": "^0.39.1",

packages/plugin-starter/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@elizaos/plugin-starter",
33
"description": "Plugin starter for elizaOS",
4-
"version": "1.0.0-alpha.22",
4+
"version": "1.0.0-alpha.23",
55
"type": "module",
66
"main": "dist/index.js",
77
"module": "dist/index.js",
@@ -19,7 +19,7 @@
1919
"dist"
2020
],
2121
"dependencies": {
22-
"@elizaos/core": "^1.0.0-alpha.22",
22+
"@elizaos/core": "^1.0.0-alpha.23",
2323
"zod": "3.21.4"
2424
},
2525
"devDependencies": {

packages/plugin-tee/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@elizaos/plugin-tee",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"main": "dist/index.js",
55
"type": "module",
66
"types": "dist/index.d.ts",
77
"dependencies": {
8-
"@elizaos/core": "^1.0.0-alpha.22",
8+
"@elizaos/core": "^1.0.0-alpha.23",
99
"@phala/dstack-sdk": "^0.1.7",
1010
"@solana/web3.js": "^1.98.0",
1111
"better-sqlite3": "11.8.1",

packages/plugin-telegram/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-telegram",
3-
"version": "1.0.0-alpha.22",
3+
"version": "1.0.0-alpha.23",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

0 commit comments

Comments
 (0)