@elizaos/server 1.6.2-alpha.25 → 1.6.2-alpha.27
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.js +8 -8
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -23828,7 +23828,9 @@ function createAgentCrudRouter(elizaOS, serverInstance) {
|
|
|
23828
23828
|
try {
|
|
23829
23829
|
await serverInstance?.unregisterAgent(agentId);
|
|
23830
23830
|
const { enabled, status: status2, createdAt, updatedAt, ...characterData } = updatedAgent;
|
|
23831
|
-
const runtimes = await serverInstance?.startAgents([
|
|
23831
|
+
const runtimes = await serverInstance?.startAgents([
|
|
23832
|
+
{ character: characterData }
|
|
23833
|
+
]);
|
|
23832
23834
|
if (!runtimes || runtimes.length === 0) {
|
|
23833
23835
|
throw new Error("Failed to restart agent after configuration change");
|
|
23834
23836
|
}
|
|
@@ -23837,7 +23839,9 @@ function createAgentCrudRouter(elizaOS, serverInstance) {
|
|
|
23837
23839
|
logger.error({ error: restartError, agentId }, `[AGENT UPDATE] Failed to restart agent ${agentId}, attempting to restore previous state`);
|
|
23838
23840
|
try {
|
|
23839
23841
|
const { enabled, status: status2, createdAt, updatedAt, ...previousCharacterData } = currentAgent;
|
|
23840
|
-
await serverInstance?.startAgents([
|
|
23842
|
+
await serverInstance?.startAgents([
|
|
23843
|
+
{ character: previousCharacterData }
|
|
23844
|
+
]);
|
|
23841
23845
|
logger.warn(`[AGENT UPDATE] Restored agent ${agentId} to previous state`);
|
|
23842
23846
|
} catch (restoreError) {
|
|
23843
23847
|
logger.error({ error: restoreError, agentId }, `[AGENT UPDATE] Failed to restore agent ${agentId} - agent may be in broken state`);
|
|
@@ -28860,7 +28864,7 @@ import express30 from "express";
|
|
|
28860
28864
|
// package.json
|
|
28861
28865
|
var package_default = {
|
|
28862
28866
|
name: "@elizaos/server",
|
|
28863
|
-
version: "1.6.2-alpha.
|
|
28867
|
+
version: "1.6.2-alpha.27",
|
|
28864
28868
|
description: "ElizaOS Server - Core server infrastructure for ElizaOS agents",
|
|
28865
28869
|
publishConfig: {
|
|
28866
28870
|
access: "public",
|
|
@@ -45951,11 +45955,7 @@ class AgentServer {
|
|
|
45951
45955
|
}
|
|
45952
45956
|
const agentConfigs = agents.map((agent) => {
|
|
45953
45957
|
agent.character.id ??= stringToUuid2(agent.character.name);
|
|
45954
|
-
const allPlugins = [
|
|
45955
|
-
...agent.character.plugins || [],
|
|
45956
|
-
...agent.plugins || [],
|
|
45957
|
-
sqlPlugin
|
|
45958
|
-
];
|
|
45958
|
+
const allPlugins = [...agent.character.plugins || [], ...agent.plugins || [], sqlPlugin];
|
|
45959
45959
|
return {
|
|
45960
45960
|
character: encryptedCharacter(agent.character),
|
|
45961
45961
|
plugins: allPlugins,
|
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.27",
|
|
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.27",
|
|
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": "1b922d3b751cb7104c38292b05e7c47a26d39d47",
|
|
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.27",
|
|
58
|
+
"@elizaos/plugin-sql": "1.6.2-alpha.27",
|
|
59
59
|
"@sentry/node": "^10.16.0",
|
|
60
60
|
"@types/express": "^5.0.2",
|
|
61
61
|
"@types/helmet": "^4.0.0",
|