@elizaos/server 1.6.2-alpha.11 → 1.6.2-alpha.13
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/index.d.ts
CHANGED
|
@@ -59,9 +59,12 @@ export declare class AgentServer {
|
|
|
59
59
|
* Start multiple agents in batch (true parallel)
|
|
60
60
|
* @param characters - Array of character configurations
|
|
61
61
|
* @param plugins - Optional plugins to load
|
|
62
|
+
* @param options - Optional configuration (e.g., isTestMode for test dependencies)
|
|
62
63
|
* @returns Array of started agent runtimes
|
|
63
64
|
*/
|
|
64
|
-
startAgents(characters: Character[], plugins?: (Plugin | string)[]
|
|
65
|
+
startAgents(characters: Character[], plugins?: (Plugin | string)[], options?: {
|
|
66
|
+
isTestMode?: boolean;
|
|
67
|
+
}): Promise<IAgentRuntime[]>;
|
|
65
68
|
/**
|
|
66
69
|
* Stop multiple agents in batch
|
|
67
70
|
* @param agentIds - Array of agent IDs to stop
|
package/dist/index.js
CHANGED
|
@@ -28855,7 +28855,7 @@ import express30 from "express";
|
|
|
28855
28855
|
// package.json
|
|
28856
28856
|
var package_default = {
|
|
28857
28857
|
name: "@elizaos/server",
|
|
28858
|
-
version: "1.6.2-alpha.
|
|
28858
|
+
version: "1.6.2-alpha.13",
|
|
28859
28859
|
description: "ElizaOS Server - Core server infrastructure for ElizaOS agents",
|
|
28860
28860
|
publishConfig: {
|
|
28861
28861
|
access: "public",
|
|
@@ -45850,29 +45850,24 @@ class AgentServer {
|
|
|
45850
45850
|
database;
|
|
45851
45851
|
loadCharacterTryPath;
|
|
45852
45852
|
jsonToCharacter;
|
|
45853
|
-
async startAgents(characters, plugins = []) {
|
|
45853
|
+
async startAgents(characters, plugins = [], options) {
|
|
45854
45854
|
if (!this.elizaOS) {
|
|
45855
45855
|
throw new Error("Server not properly initialized");
|
|
45856
45856
|
}
|
|
45857
45857
|
const agentConfigs = characters.map((character) => {
|
|
45858
45858
|
character.id ??= stringToUuid2(character.name);
|
|
45859
|
-
const allPlugins = [
|
|
45860
|
-
...character.plugins || [],
|
|
45861
|
-
...plugins,
|
|
45862
|
-
sqlPlugin
|
|
45863
|
-
];
|
|
45859
|
+
const allPlugins = [...character.plugins || [], ...plugins, sqlPlugin];
|
|
45864
45860
|
return {
|
|
45865
45861
|
character: encryptedCharacter(character),
|
|
45866
45862
|
plugins: allPlugins
|
|
45867
45863
|
};
|
|
45868
45864
|
});
|
|
45869
|
-
const agentIds = await this.elizaOS.addAgents(agentConfigs);
|
|
45865
|
+
const agentIds = await this.elizaOS.addAgents(agentConfigs, options);
|
|
45870
45866
|
await this.elizaOS.startAgents(agentIds);
|
|
45871
45867
|
const runtimes = [];
|
|
45872
45868
|
for (const id of agentIds) {
|
|
45873
45869
|
const runtime = this.elizaOS.getAgent(id);
|
|
45874
45870
|
if (runtime) {
|
|
45875
|
-
await this.registerAgent(runtime);
|
|
45876
45871
|
if (this.database) {
|
|
45877
45872
|
try {
|
|
45878
45873
|
const existingAgent = await this.database.getAgent(runtime.agentId);
|
|
@@ -45887,6 +45882,7 @@ class AgentServer {
|
|
|
45887
45882
|
logger30.error({ error: error2 }, `Failed to persist agent ${runtime.agentId} to database`);
|
|
45888
45883
|
}
|
|
45889
45884
|
}
|
|
45885
|
+
await this.registerAgent(runtime);
|
|
45890
45886
|
runtimes.push(runtime);
|
|
45891
45887
|
}
|
|
45892
45888
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/server",
|
|
3
|
-
"version": "1.6.2-alpha.
|
|
3
|
+
"version": "1.6.2-alpha.13",
|
|
4
4
|
"description": "ElizaOS Server - Core server infrastructure for ElizaOS agents",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dev": "bun run build.ts --watch"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@elizaos/client": "1.6.2-alpha.
|
|
47
|
+
"@elizaos/client": "1.6.2-alpha.13",
|
|
48
48
|
"@types/node": "^24.0.1",
|
|
49
49
|
"prettier": "3.6.2",
|
|
50
50
|
"tsx": "4.20.6",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"which": "^5.0.0",
|
|
53
53
|
"ws": "^8.18.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "bda67f6968d9e12d51e7afda85e2f4901916184e",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
58
|
-
"@elizaos/plugin-sql": "1.6.2-alpha.
|
|
57
|
+
"@elizaos/core": "1.6.2-alpha.13",
|
|
58
|
+
"@elizaos/plugin-sql": "1.6.2-alpha.13",
|
|
59
59
|
"@sentry/node": "^10.16.0",
|
|
60
60
|
"@types/express": "^5.0.2",
|
|
61
61
|
"@types/helmet": "^4.0.0",
|