@elizaos/server 1.5.12 → 1.5.13-alpha.2

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.
Files changed (41) hide show
  1. package/dist/api/agents/crud.d.ts +2 -2
  2. package/dist/api/agents/index.d.ts +2 -2
  3. package/dist/api/agents/lifecycle.d.ts +2 -2
  4. package/dist/api/agents/logs.d.ts +2 -2
  5. package/dist/api/agents/panels.d.ts +2 -2
  6. package/dist/api/agents/runs.d.ts +2 -2
  7. package/dist/api/agents/worlds.d.ts +2 -2
  8. package/dist/api/audio/conversation.d.ts +2 -2
  9. package/dist/api/audio/index.d.ts +2 -2
  10. package/dist/api/audio/processing.d.ts +2 -2
  11. package/dist/api/audio/synthesis.d.ts +2 -2
  12. package/dist/api/index.d.ts +5 -5
  13. package/dist/api/memory/agents.d.ts +2 -2
  14. package/dist/api/memory/groups.d.ts +2 -2
  15. package/dist/api/memory/index.d.ts +2 -2
  16. package/dist/api/memory/rooms.d.ts +2 -2
  17. package/dist/api/messaging/channels.d.ts +2 -2
  18. package/dist/api/messaging/index.d.ts +2 -2
  19. package/dist/api/messaging/sessions.d.ts +2 -2
  20. package/dist/api/runtime/health.d.ts +2 -2
  21. package/dist/api/runtime/index.d.ts +2 -2
  22. package/dist/api/shared/middleware.d.ts +2 -2
  23. package/dist/api/shared/validation.d.ts +2 -2
  24. package/dist/characters/default.d.ts +14 -0
  25. package/dist/client/assets/main-CoxLIDww.js +141 -0
  26. package/dist/client/assets/main-CoxLIDww.js.map +1 -0
  27. package/dist/client/assets/{main-Cxu5WF7C.js → main-FtAaPweT.js} +3 -3
  28. package/dist/client/assets/{main-Cxu5WF7C.js.map → main-FtAaPweT.js.map} +1 -1
  29. package/dist/client/assets/{react-vendor-BZhB15Ka.js → react-vendor-2Sp1NOb7.js} +31 -31
  30. package/dist/client/assets/react-vendor-2Sp1NOb7.js.map +1 -0
  31. package/dist/client/index.html +1 -1
  32. package/dist/index.d.ts +34 -5
  33. package/dist/index.js +1454 -562
  34. package/dist/managers/ConfigManager.d.ts +32 -0
  35. package/dist/managers/PluginInstaller.d.ts +10 -0
  36. package/dist/managers/PluginLoader.d.ts +27 -0
  37. package/dist/socketio/index.d.ts +3 -4
  38. package/package.json +5 -5
  39. package/dist/client/assets/main-Dbnvjs-Q.js +0 -119
  40. package/dist/client/assets/main-Dbnvjs-Q.js.map +0 -1
  41. package/dist/client/assets/react-vendor-BZhB15Ka.js.map +0 -1
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" type="image/x-icon" href="/favicon.ico" />
7
7
  <title>ElizaOS - Client</title>
8
- <script type="module" crossorigin src="/assets/main-Cxu5WF7C.js"></script>
8
+ <script type="module" crossorigin src="/assets/main-FtAaPweT.js"></script>
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { type Character, DatabaseAdapter, type IAgentRuntime, type UUID } from '@elizaos/core';
1
+ import { type Character, DatabaseAdapter, type IAgentRuntime, type UUID, ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import http from 'node:http';
4
4
  import { Server as SocketIOServer } from 'socket.io';
5
+ import { type Plugin } from '@elizaos/core';
5
6
  import type { CentralRootMessage, MessageChannel, MessageServer } from './types.js';
6
7
  /**
7
8
  * Expands a file path starting with `~` to the project directory.
@@ -45,17 +46,40 @@ export declare function isWebUIEnabled(): boolean;
45
46
  */
46
47
  export declare class AgentServer {
47
48
  app: express.Application;
48
- private agents;
49
49
  server: http.Server;
50
50
  socketIO: SocketIOServer;
51
51
  isInitialized: boolean;
52
52
  private isWebUIEnabled;
53
53
  private clientPath?;
54
+ elizaOS?: ElizaOS;
55
+ private pluginLoader?;
56
+ private configManager?;
54
57
  database: DatabaseAdapter;
55
- startAgent: (character: Character) => Promise<IAgentRuntime>;
56
- stopAgent: (runtime: IAgentRuntime) => void;
57
58
  loadCharacterTryPath: (characterPath: string) => Promise<Character>;
58
59
  jsonToCharacter: (character: unknown) => Promise<Character>;
60
+ /**
61
+ * Start multiple agents in batch (true parallel)
62
+ * @param characters - Array of character configurations
63
+ * @param plugins - Optional plugins to load
64
+ * @returns Array of started agent runtimes
65
+ */
66
+ startAgents(characters: Character[], plugins?: (Plugin | string)[]): Promise<IAgentRuntime[]>;
67
+ /**
68
+ * Stop multiple agents in batch
69
+ * @param agentIds - Array of agent IDs to stop
70
+ */
71
+ stopAgents(agentIds: UUID[]): Promise<void>;
72
+ /**
73
+ * Get all agents from the ElizaOS instance
74
+ * @returns Array of agent runtimes
75
+ */
76
+ getAllAgents(): IAgentRuntime[];
77
+ /**
78
+ * Get an agent by ID from the ElizaOS instance
79
+ * @param agentId - The agent ID
80
+ * @returns The agent runtime or undefined
81
+ */
82
+ getAgent(agentId: UUID): IAgentRuntime | undefined;
59
83
  /**
60
84
  * Constructor for AgentServer class.
61
85
  *
@@ -79,6 +103,8 @@ export declare class AgentServer {
79
103
  private initializeServer;
80
104
  /**
81
105
  * Registers an agent with the provided runtime.
106
+ * Note: Agents should ideally be created through ElizaOS.addAgent() for proper orchestration.
107
+ * This method exists primarily for backward compatibility.
82
108
  *
83
109
  * @param {IAgentRuntime} runtime - The runtime object containing agent information.
84
110
  * @throws {Error} if the runtime is null/undefined, if agentId is missing, if character configuration is missing,
@@ -91,7 +117,7 @@ export declare class AgentServer {
91
117
  * @param {UUID} agentId - The unique identifier of the agent to unregister.
92
118
  * @returns {void}
93
119
  */
94
- unregisterAgent(agentId: UUID): void;
120
+ unregisterAgent(agentId: UUID): Promise<void>;
95
121
  /**
96
122
  * Add middleware to the server's request handling pipeline
97
123
  * @param {ServerMiddleware} middleware - The middleware function to be registered
@@ -173,3 +199,6 @@ export declare class AgentServer {
173
199
  }
174
200
  export { tryLoadFile, loadCharactersFromUrl, jsonToCharacter, loadCharacter, loadCharacterTryPath, hasValidRemoteUrls, loadCharacters, } from './loader';
175
201
  export * from './types';
202
+ export { ElizaOS } from '@elizaos/core';
203
+ export { PluginLoader } from './managers/PluginLoader';
204
+ export { ConfigManager } from './managers/ConfigManager';