@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
@@ -1,7 +1,7 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
5
5
  * Agent CRUD operations
6
6
  */
7
- export declare function createAgentCrudRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
7
+ export declare function createAgentCrudRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,7 +1,7 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
5
5
  * Creates the agents router for agent lifecycle and management operations
6
6
  */
7
- export declare function agentsRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
7
+ export declare function agentsRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,7 +1,7 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
5
5
  * Agent lifecycle operations (start, stop, status)
6
6
  */
7
- export declare function createAgentLifecycleRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
7
+ export declare function createAgentLifecycleRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,6 +1,6 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Agent logs management
5
5
  */
6
- export declare function createAgentLogsRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
6
+ export declare function createAgentLogsRouter(elizaOS: ElizaOS): express.Router;
@@ -1,6 +1,6 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Agent panels and plugin routes management
5
5
  */
6
- export declare function createAgentPanelsRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
6
+ export declare function createAgentPanelsRouter(elizaOS: ElizaOS): express.Router;
@@ -1,6 +1,6 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Agent runs management
5
5
  */
6
- export declare function createAgentRunsRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
6
+ export declare function createAgentRunsRouter(elizaOS: ElizaOS): express.Router;
@@ -1,6 +1,6 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Agent world management operations
5
5
  */
6
- export declare function createAgentWorldsRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
6
+ export declare function createAgentWorldsRouter(elizaOS: ElizaOS): express.Router;
@@ -1,6 +1,6 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Speech conversation functionality
5
5
  */
6
- export declare function createConversationRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
6
+ export declare function createConversationRouter(elizaOS: ElizaOS): express.Router;
@@ -1,6 +1,6 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Creates the audio router for speech and audio processing
5
5
  */
6
- export declare function audioRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
6
+ export declare function audioRouter(elizaOS: ElizaOS): express.Router;
@@ -1,4 +1,4 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Securely validates a file path to prevent path traversal attacks
@@ -6,4 +6,4 @@ import express from 'express';
6
6
  /**
7
7
  * Audio processing functionality - upload and transcription
8
8
  */
9
- export declare function createAudioProcessingRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
9
+ export declare function createAudioProcessingRouter(elizaOS: ElizaOS): express.Router;
@@ -1,6 +1,6 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Text-to-speech synthesis functionality
5
5
  */
6
- export declare function createSynthesisRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
6
+ export declare function createSynthesisRouter(elizaOS: ElizaOS): express.Router;
@@ -1,4 +1,4 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { 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';
@@ -8,12 +8,12 @@ import type { AgentServer } from '../index';
8
8
  * @param server HTTP Server instance
9
9
  * @param agents Map of agent runtimes
10
10
  */
11
- export declare function setupSocketIO(server: http.Server, agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): SocketIOServer;
12
- export declare function createPluginRouteHandler(agents: Map<UUID, IAgentRuntime>): express.RequestHandler;
11
+ export declare function setupSocketIO(server: http.Server, elizaOS: ElizaOS, serverInstance: AgentServer): SocketIOServer;
12
+ export declare function createPluginRouteHandler(elizaOS: ElizaOS): express.RequestHandler;
13
13
  /**
14
14
  * Creates an API router with various endpoints and middleware.
15
- * @param {Map<UUID, IAgentRuntime>} agents - Map of agents with UUID as key and IAgentRuntime as value.
15
+ * @param {ElizaOS} elizaOS - ElizaOS instance containing all agents and their runtimes.
16
16
  * @param {AgentServer} [server] - Optional AgentServer instance.
17
17
  * @returns {express.Router} The configured API router.
18
18
  */
19
- export declare function createApiRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
19
+ export declare function createApiRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,6 +1,6 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Agent memory management functionality
5
5
  */
6
- export declare function createAgentMemoryRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
6
+ export declare function createAgentMemoryRouter(elizaOS: ElizaOS): express.Router;
@@ -1,7 +1,7 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
5
5
  * Group and world memory management functionality
6
6
  */
7
- export declare function createGroupMemoryRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
7
+ export declare function createGroupMemoryRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,7 +1,7 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
5
5
  * Creates the memory router for memory and knowledge management
6
6
  */
7
- export declare function memoryRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
7
+ export declare function memoryRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,6 +1,6 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Room management functionality for agents
5
5
  */
6
- export declare function createRoomManagementRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
6
+ export declare function createRoomManagementRouter(elizaOS: ElizaOS): express.Router;
@@ -1,7 +1,7 @@
1
- import { IAgentRuntime, type UUID } from '@elizaos/core';
1
+ import { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
5
5
  * Channel management functionality
6
6
  */
7
- export declare function createChannelsRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
7
+ export declare function createChannelsRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,7 +1,7 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
5
5
  * Creates the messaging router for all communication functionality
6
6
  */
7
- export declare function messagingRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
7
+ export declare function messagingRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,4 +1,4 @@
1
- import { type UUID, type IAgentRuntime } from '@elizaos/core';
1
+ import { type ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
@@ -19,4 +19,4 @@ export interface SessionRouter extends express.Router {
19
19
  * @param serverInstance - The server instance for message handling
20
20
  * @returns Router with cleanup method to prevent memory leaks
21
21
  */
22
- export declare function createSessionsRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): SessionRouter;
22
+ export declare function createSessionsRouter(elizaOS: ElizaOS, serverInstance: AgentServer): SessionRouter;
@@ -1,7 +1,7 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
5
5
  * Health monitoring and status endpoints
6
6
  */
7
- export declare function createHealthRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
7
+ export declare function createHealthRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,7 +1,7 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  import type { AgentServer } from '../../index';
4
4
  /**
5
5
  * Creates the runtime router for system operations and health monitoring
6
6
  */
7
- export declare function runtimeRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
7
+ export declare function runtimeRouter(elizaOS: ElizaOS, serverInstance: AgentServer): express.Router;
@@ -1,9 +1,9 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS } from '@elizaos/core';
2
2
  import express from 'express';
3
3
  /**
4
4
  * Middleware to validate that an agent exists
5
5
  */
6
- export declare const agentExistsMiddleware: (agents: Map<UUID, IAgentRuntime>) => (req: express.Request, res: express.Response, next: express.NextFunction) => void;
6
+ export declare const agentExistsMiddleware: (elizaOS: ElizaOS) => (req: express.Request, res: express.Response, next: express.NextFunction) => void;
7
7
  /**
8
8
  * Middleware to validate UUID parameters
9
9
  */
@@ -1,8 +1,8 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
1
+ import type { ElizaOS, UUID } from '@elizaos/core';
2
2
  /**
3
3
  * Validates and retrieves an agent runtime from the agents map
4
4
  */
5
- export declare const getRuntime: (agents: Map<UUID, IAgentRuntime>, agentId: UUID) => IAgentRuntime;
5
+ export declare const getRuntime: (elizaOS: ElizaOS, agentId: UUID) => import("@elizaos/core").IAgentRuntime;
6
6
  /**
7
7
  * Validates a UUID parameter and returns it as UUID type or null if invalid
8
8
  */
@@ -0,0 +1,14 @@
1
+ import type { Character } from '@elizaos/core';
2
+ /**
3
+ * Returns the default Eliza character with plugins ordered by priority based on environment variables.
4
+ * This should be called after environment variables are loaded.
5
+ *
6
+ * @returns {Character} The Eliza character with appropriate plugins for the current environment
7
+ */
8
+ export declare function getDefaultCharacter(): Character;
9
+ /**
10
+ * Legacy export for backward compatibility.
11
+ * Note: This will include all plugins regardless of environment variables.
12
+ * Use getDefaultCharacter() for environment-aware plugin loading.
13
+ */
14
+ export declare const character: Character;