@elizaos/server 1.5.12-alpha.2 → 1.5.12

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 (40) 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/client/assets/{main-FtAaPweT.js → main-Cxu5WF7C.js} +3 -3
  25. package/dist/client/assets/{main-FtAaPweT.js.map → main-Cxu5WF7C.js.map} +1 -1
  26. package/dist/client/assets/main-Dbnvjs-Q.js +119 -0
  27. package/dist/client/assets/main-Dbnvjs-Q.js.map +1 -0
  28. package/dist/client/assets/{react-vendor-2Sp1NOb7.js → react-vendor-BZhB15Ka.js} +31 -31
  29. package/dist/client/assets/react-vendor-BZhB15Ka.js.map +1 -0
  30. package/dist/client/index.html +1 -1
  31. package/dist/index.d.ts +5 -34
  32. package/dist/index.js +550 -1369
  33. package/dist/socketio/index.d.ts +4 -3
  34. package/package.json +5 -5
  35. package/dist/characters/default.d.ts +0 -14
  36. package/dist/client/assets/main-CoxLIDww.js +0 -141
  37. package/dist/client/assets/main-CoxLIDww.js.map +0 -1
  38. package/dist/client/assets/react-vendor-2Sp1NOb7.js.map +0 -1
  39. package/dist/managers/ConfigManager.d.ts +0 -32
  40. package/dist/managers/PluginLoader.d.ts +0 -27
@@ -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-FtAaPweT.js"></script>
8
+ <script type="module" crossorigin src="/assets/main-Cxu5WF7C.js"></script>
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { type Character, DatabaseAdapter, type IAgentRuntime, type UUID, ElizaOS } from '@elizaos/core';
1
+ import { type Character, DatabaseAdapter, type IAgentRuntime, type UUID } 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';
6
5
  import type { CentralRootMessage, MessageChannel, MessageServer } from './types.js';
7
6
  /**
8
7
  * Expands a file path starting with `~` to the project directory.
@@ -46,40 +45,17 @@ export declare function isWebUIEnabled(): boolean;
46
45
  */
47
46
  export declare class AgentServer {
48
47
  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?;
57
54
  database: DatabaseAdapter;
55
+ startAgent: (character: Character) => Promise<IAgentRuntime>;
56
+ stopAgent: (runtime: IAgentRuntime) => void;
58
57
  loadCharacterTryPath: (characterPath: string) => Promise<Character>;
59
58
  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;
83
59
  /**
84
60
  * Constructor for AgentServer class.
85
61
  *
@@ -103,8 +79,6 @@ export declare class AgentServer {
103
79
  private initializeServer;
104
80
  /**
105
81
  * 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.
108
82
  *
109
83
  * @param {IAgentRuntime} runtime - The runtime object containing agent information.
110
84
  * @throws {Error} if the runtime is null/undefined, if agentId is missing, if character configuration is missing,
@@ -117,7 +91,7 @@ export declare class AgentServer {
117
91
  * @param {UUID} agentId - The unique identifier of the agent to unregister.
118
92
  * @returns {void}
119
93
  */
120
- unregisterAgent(agentId: UUID): Promise<void>;
94
+ unregisterAgent(agentId: UUID): void;
121
95
  /**
122
96
  * Add middleware to the server's request handling pipeline
123
97
  * @param {ServerMiddleware} middleware - The middleware function to be registered
@@ -199,6 +173,3 @@ export declare class AgentServer {
199
173
  }
200
174
  export { tryLoadFile, loadCharactersFromUrl, jsonToCharacter, loadCharacter, loadCharacterTryPath, hasValidRemoteUrls, loadCharacters, } from './loader';
201
175
  export * from './types';
202
- export { ElizaOS } from '@elizaos/core';
203
- export { PluginLoader } from './managers/PluginLoader';
204
- export { ConfigManager } from './managers/ConfigManager';