@elizaos/server 1.5.4 → 1.5.5

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 (124) hide show
  1. package/dist/client/assets/index-B2zlx7XS.js +160486 -0
  2. package/dist/client/assets/index-B2zlx7XS.js.br +0 -0
  3. package/dist/client/assets/index-B2zlx7XS.js.map +1 -0
  4. package/dist/client/assets/index-DESjREgK.css +1 -0
  5. package/dist/client/assets/index-DESjREgK.css.br +0 -0
  6. package/dist/client/assets/vendor-Bifu43sa.js +3130 -0
  7. package/dist/client/assets/vendor-Bifu43sa.js.br +0 -0
  8. package/dist/client/assets/vendor-Bifu43sa.js.map +1 -0
  9. package/dist/client/elizaos-avatar.png +0 -0
  10. package/dist/client/elizaos-icon.png +0 -0
  11. package/dist/client/elizaos-logo-light.png +0 -0
  12. package/dist/client/elizaos.webp +0 -0
  13. package/dist/client/favicon.ico +0 -0
  14. package/dist/client/images/agents/agent1.png +0 -0
  15. package/dist/client/images/agents/agent2.png +0 -0
  16. package/dist/client/images/agents/agent3.png +0 -0
  17. package/dist/client/images/agents/agent4.png +0 -0
  18. package/dist/client/images/agents/agent5.png +0 -0
  19. package/dist/client/index.html +24 -0
  20. package/dist/index.d.ts +258 -13
  21. package/dist/index.js +3067 -3504
  22. package/dist/index.js.map +1 -0
  23. package/package.json +8 -8
  24. package/dist/api/agents/crud.d.ts +0 -8
  25. package/dist/api/agents/crud.d.ts.map +0 -1
  26. package/dist/api/agents/index.d.ts +0 -8
  27. package/dist/api/agents/index.d.ts.map +0 -1
  28. package/dist/api/agents/lifecycle.d.ts +0 -8
  29. package/dist/api/agents/lifecycle.d.ts.map +0 -1
  30. package/dist/api/agents/logs.d.ts +0 -7
  31. package/dist/api/agents/logs.d.ts.map +0 -1
  32. package/dist/api/agents/panels.d.ts +0 -7
  33. package/dist/api/agents/panels.d.ts.map +0 -1
  34. package/dist/api/agents/worlds.d.ts +0 -7
  35. package/dist/api/agents/worlds.d.ts.map +0 -1
  36. package/dist/api/audio/audioBuffer.d.ts +0 -18
  37. package/dist/api/audio/audioBuffer.d.ts.map +0 -1
  38. package/dist/api/audio/conversation.d.ts +0 -7
  39. package/dist/api/audio/conversation.d.ts.map +0 -1
  40. package/dist/api/audio/index.d.ts +0 -7
  41. package/dist/api/audio/index.d.ts.map +0 -1
  42. package/dist/api/audio/processing.d.ts +0 -10
  43. package/dist/api/audio/processing.d.ts.map +0 -1
  44. package/dist/api/audio/synthesis.d.ts +0 -7
  45. package/dist/api/audio/synthesis.d.ts.map +0 -1
  46. package/dist/api/index.d.ts +0 -20
  47. package/dist/api/index.d.ts.map +0 -1
  48. package/dist/api/media/agents.d.ts +0 -6
  49. package/dist/api/media/agents.d.ts.map +0 -1
  50. package/dist/api/media/channels.d.ts +0 -6
  51. package/dist/api/media/channels.d.ts.map +0 -1
  52. package/dist/api/media/index.d.ts +0 -6
  53. package/dist/api/media/index.d.ts.map +0 -1
  54. package/dist/api/memory/agents.d.ts +0 -7
  55. package/dist/api/memory/agents.d.ts.map +0 -1
  56. package/dist/api/memory/groups.d.ts +0 -8
  57. package/dist/api/memory/groups.d.ts.map +0 -1
  58. package/dist/api/memory/index.d.ts +0 -8
  59. package/dist/api/memory/index.d.ts.map +0 -1
  60. package/dist/api/memory/rooms.d.ts +0 -7
  61. package/dist/api/memory/rooms.d.ts.map +0 -1
  62. package/dist/api/messaging/channels.d.ts +0 -8
  63. package/dist/api/messaging/channels.d.ts.map +0 -1
  64. package/dist/api/messaging/core.d.ts +0 -7
  65. package/dist/api/messaging/core.d.ts.map +0 -1
  66. package/dist/api/messaging/errors/SessionErrors.d.ts +0 -149
  67. package/dist/api/messaging/errors/SessionErrors.d.ts.map +0 -1
  68. package/dist/api/messaging/index.d.ts +0 -8
  69. package/dist/api/messaging/index.d.ts.map +0 -1
  70. package/dist/api/messaging/servers.d.ts +0 -7
  71. package/dist/api/messaging/servers.d.ts.map +0 -1
  72. package/dist/api/messaging/sessions.d.ts +0 -23
  73. package/dist/api/messaging/sessions.d.ts.map +0 -1
  74. package/dist/api/runtime/debug.d.ts +0 -7
  75. package/dist/api/runtime/debug.d.ts.map +0 -1
  76. package/dist/api/runtime/health.d.ts +0 -8
  77. package/dist/api/runtime/health.d.ts.map +0 -1
  78. package/dist/api/runtime/index.d.ts +0 -8
  79. package/dist/api/runtime/index.d.ts.map +0 -1
  80. package/dist/api/runtime/logging.d.ts +0 -6
  81. package/dist/api/runtime/logging.d.ts.map +0 -1
  82. package/dist/api/shared/constants.d.ts +0 -22
  83. package/dist/api/shared/constants.d.ts.map +0 -1
  84. package/dist/api/shared/file-utils.d.ts +0 -21
  85. package/dist/api/shared/file-utils.d.ts.map +0 -1
  86. package/dist/api/shared/index.d.ts +0 -7
  87. package/dist/api/shared/index.d.ts.map +0 -1
  88. package/dist/api/shared/middleware.d.ts +0 -40
  89. package/dist/api/shared/middleware.d.ts.map +0 -1
  90. package/dist/api/shared/response-utils.d.ts +0 -10
  91. package/dist/api/shared/response-utils.d.ts.map +0 -1
  92. package/dist/api/shared/uploads/index.d.ts +0 -2
  93. package/dist/api/shared/uploads/index.d.ts.map +0 -1
  94. package/dist/api/shared/validation.d.ts +0 -27
  95. package/dist/api/shared/validation.d.ts.map +0 -1
  96. package/dist/api/system/environment.d.ts +0 -24
  97. package/dist/api/system/environment.d.ts.map +0 -1
  98. package/dist/api/system/index.d.ts +0 -6
  99. package/dist/api/system/index.d.ts.map +0 -1
  100. package/dist/api/system/version.d.ts +0 -6
  101. package/dist/api/system/version.d.ts.map +0 -1
  102. package/dist/api/tee/index.d.ts +0 -6
  103. package/dist/api/tee/index.d.ts.map +0 -1
  104. package/dist/api/tee/tee.d.ts +0 -1
  105. package/dist/api/tee/tee.d.ts.map +0 -1
  106. package/dist/authMiddleware.d.ts +0 -16
  107. package/dist/authMiddleware.d.ts.map +0 -1
  108. package/dist/bus.d.ts +0 -31
  109. package/dist/bus.d.ts.map +0 -1
  110. package/dist/index.d.ts.map +0 -1
  111. package/dist/loader.d.ts +0 -49
  112. package/dist/loader.d.ts.map +0 -1
  113. package/dist/scripts/copy-client-dist.d.ts +0 -2
  114. package/dist/scripts/copy-client-dist.d.ts.map +0 -1
  115. package/dist/services/message.d.ts +0 -49
  116. package/dist/services/message.d.ts.map +0 -1
  117. package/dist/socketio/index.d.ts +0 -23
  118. package/dist/socketio/index.d.ts.map +0 -1
  119. package/dist/types/sessions.d.ts +0 -153
  120. package/dist/types/sessions.d.ts.map +0 -1
  121. package/dist/types.d.ts +0 -52
  122. package/dist/types.d.ts.map +0 -1
  123. package/dist/upload.d.ts +0 -16
  124. package/dist/upload.d.ts.map +0 -1
@@ -1,22 +0,0 @@
1
- /**
2
- * Shared constants for the API server
3
- */
4
- /**
5
- * Maximum file size allowed for uploads (50MB)
6
- * Used across various endpoints including audio processing,
7
- * media uploads, and multer configurations
8
- */
9
- export declare const MAX_FILE_SIZE: number;
10
- /**
11
- * Maximum file size in human-readable format
12
- */
13
- export declare const MAX_FILE_SIZE_DISPLAY = "50MB";
14
- /**
15
- * Valid MIME types for audio files
16
- */
17
- export declare const ALLOWED_AUDIO_MIME_TYPES: readonly ["audio/mpeg", "audio/mp3", "audio/wav", "audio/ogg", "audio/webm", "audio/mp4", "audio/aac", "audio/flac", "audio/x-wav", "audio/wave"];
18
- /**
19
- * Valid MIME types for media files (includes audio, images, documents)
20
- */
21
- export declare const ALLOWED_MEDIA_MIME_TYPES: readonly ["audio/mpeg", "audio/mp3", "audio/wav", "audio/ogg", "audio/webm", "audio/mp4", "audio/aac", "audio/flac", "audio/x-wav", "audio/wave", "image/jpeg", "image/png", "image/gif", "image/webp", "video/mp4", "video/webm", "application/pdf", "text/plain"];
22
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/api/shared/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAmB,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,wBAAwB,mJAW3B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,wBAAwB,qQAU3B,CAAC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Safely constructs and validates upload directory paths to prevent path traversal attacks
3
- */
4
- export declare function createSecureUploadDir(id: string, type: 'agents' | 'channels'): string;
5
- /**
6
- * Sanitizes a filename by removing dangerous characters and normalizing it
7
- */
8
- export declare function sanitizeFilename(filename: string): string;
9
- /**
10
- * Safely cleans up a file by removing it from the filesystem
11
- */
12
- export declare const cleanupFile: (filePath: string) => void;
13
- /**
14
- * Cleans up multiple multer files
15
- */
16
- export declare const cleanupFiles: (files: Express.Multer.File[]) => void;
17
- /**
18
- * Cleans up a multer file (no-op for memory storage)
19
- */
20
- export declare const cleanupUploadedFile: (file: Express.Multer.File) => void;
21
- //# sourceMappingURL=file-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-utils.d.ts","sourceRoot":"","sources":["../../../src/api/shared/file-utils.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAmBrF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CA2BzD;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,SAc3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,SAQxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,CAAC,MAAM,CAAC,IAAI,SAG5D,CAAC"}
@@ -1,7 +0,0 @@
1
- export * from './response-utils';
2
- export * from './validation';
3
- export * from './file-utils';
4
- export * from './middleware';
5
- export * from './uploads';
6
- export * from './constants';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/shared/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
@@ -1,40 +0,0 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
2
- import express from 'express';
3
- /**
4
- * Middleware to validate that an agent exists
5
- */
6
- export declare const agentExistsMiddleware: (agents: Map<UUID, IAgentRuntime>) => (req: express.Request, res: express.Response, next: express.NextFunction) => void;
7
- /**
8
- * Middleware to validate UUID parameters
9
- */
10
- export declare const validateUuidMiddleware: (paramName: string) => (req: express.Request, res: express.Response, next: express.NextFunction) => void;
11
- /**
12
- * Enhanced channel ID validation middleware with additional security
13
- */
14
- export declare const validateChannelIdMiddleware: () => (req: express.Request, res: express.Response, next: express.NextFunction) => void;
15
- /**
16
- * Security middleware to add additional API protection
17
- */
18
- export declare const securityMiddleware: () => (req: express.Request, res: express.Response, next: express.NextFunction) => void;
19
- /**
20
- * Middleware to validate request content type for POST/PUT/PATCH requests
21
- */
22
- export declare const validateContentTypeMiddleware: () => (req: express.Request, res: express.Response, next: express.NextFunction) => void;
23
- /**
24
- * General API rate limiting middleware
25
- */
26
- export declare const createApiRateLimit: () => import("express-rate-limit").RateLimitRequestHandler;
27
- /**
28
- * Strict rate limiting for file system operations
29
- */
30
- export declare const createFileSystemRateLimit: () => import("express-rate-limit").RateLimitRequestHandler;
31
- /**
32
- * Very strict rate limiting for upload operations
33
- */
34
- export declare const createUploadRateLimit: () => import("express-rate-limit").RateLimitRequestHandler;
35
- /**
36
- * Rate limiting specifically for channel validation attempts
37
- * Prevents brute force attacks on channel IDs
38
- */
39
- export declare const createChannelValidationRateLimit: () => import("express-rate-limit").RateLimitRequestHandler;
40
- //# sourceMappingURL=middleware.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../src/api/shared/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAM9B;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,MAC5D,KAAK,OAAO,CAAC,OAAO,EAAE,KAAK,OAAO,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,YAAY,SAgBhF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,WAAW,MAAM,MAC9C,KAAK,OAAO,CAAC,OAAO,EAAE,KAAK,OAAO,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,YAAY,SAuBhF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,SAC9B,KAAK,OAAO,CAAC,OAAO,EAAE,KAAK,OAAO,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,YAAY,SAoBhF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,SACrB,KAAK,OAAO,CAAC,OAAO,EAAE,KAAK,OAAO,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,YAAY,SAqEhF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,SAChC,KAAK,OAAO,CAAC,OAAO,EAAE,KAAK,OAAO,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,YAAY,SA8BhF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,4DAyB9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,4DA2BrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,4DA2BjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,4DAqC5C,CAAC"}
@@ -1,10 +0,0 @@
1
- import express from 'express';
2
- /**
3
- * Sends a standardized error response
4
- */
5
- export declare const sendError: (res: express.Response, status: number, code: string, message: string, details?: string) => void;
6
- /**
7
- * Sends a standardized success response
8
- */
9
- export declare const sendSuccess: (res: express.Response, data: any, status?: number) => void;
10
- //# sourceMappingURL=response-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"response-utils.d.ts","sourceRoot":"","sources":["../../../src/api/shared/response-utils.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B;;GAEG;AACH,eAAO,MAAM,SAAS,GACpB,KAAK,OAAO,CAAC,QAAQ,EACrB,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,SAAS,MAAM,EACf,UAAU,MAAM,SAUjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,KAAK,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,EAAE,eAAY,SAKzE,CAAC"}
@@ -1,2 +0,0 @@
1
- export { agentAudioUpload, agentMediaUpload, channelUpload, validateAudioFile, validateMediaFile, processUploadedFile, generateSecureFilename, ensureUploadDir, } from '../../../upload';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/shared/uploads/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,GAChB,MAAM,iBAAiB,CAAC"}
@@ -1,27 +0,0 @@
1
- import type { IAgentRuntime, UUID } from '@elizaos/core';
2
- /**
3
- * Validates and retrieves an agent runtime from the agents map
4
- */
5
- export declare const getRuntime: (agents: Map<UUID, IAgentRuntime>, agentId: UUID) => IAgentRuntime;
6
- /**
7
- * Validates a UUID parameter and returns it as UUID type or null if invalid
8
- */
9
- export declare const validateAgentId: (agentId: string) => UUID | null;
10
- /**
11
- * Validates a room ID parameter
12
- */
13
- export declare const validateRoomId: (roomId: string) => UUID | null;
14
- /**
15
- * Enhanced channel ID validation with security logging
16
- * Validates a channel ID parameter with additional security checks
17
- */
18
- export declare const validateChannelId: (channelId: string, clientIp?: string) => UUID | null;
19
- /**
20
- * Validates a memory ID parameter
21
- */
22
- export declare const validateMemoryId: (memoryId: string) => UUID | null;
23
- /**
24
- * Validates a world ID parameter
25
- */
26
- export declare const validateWorldId: (worldId: string) => UUID | null;
27
- //# sourceMappingURL=validation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/api/shared/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGzD;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE,SAAS,IAAI,kBAMzE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,IAAI,GAAG,IAExD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,KAAG,IAAI,GAAG,IAEtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,EAAE,WAAW,MAAM,KAAG,IAAI,GAAG,IAwB/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,KAAG,IAAI,GAAG,IAE1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,IAAI,GAAG,IAExD,CAAC"}
@@ -1,24 +0,0 @@
1
- import express from 'express';
2
- export type EnvVars = Record<string, string>;
3
- /**
4
- * Parse an .env file and return the key-value pairs
5
- * @param filePath Path to the .env file
6
- * @returns Object containing the key-value pairs
7
- */
8
- export declare function parseEnvFile(filePath: string): Promise<EnvVars>;
9
- /**
10
- * Resolves the path to the nearest `.env` file.
11
- *
12
- * If no `.env` file is found when traversing up from the starting directory,
13
- * a path to `.env` in the starting directory is returned.
14
- *
15
- * @param startDir - The directory to start searching from. Defaults to the
16
- * current working directory.
17
- * @returns The resolved path to the `.env` file.
18
- */
19
- export declare function resolveEnvFile(startDir?: string): string;
20
- /**
21
- * Environment configuration management
22
- */
23
- export declare function createEnvironmentRouter(): express.Router;
24
- //# sourceMappingURL=environment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/api/system/environment.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAM9B,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAgBrE;AAaD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,QAAQ,GAAE,MAAsB,GAAG,MAAM,CAiBvE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAgFxD"}
@@ -1,6 +0,0 @@
1
- import express from 'express';
2
- /**
3
- * Creates the system router for configuration and environment management
4
- */
5
- export declare function systemRouter(): express.Router;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/system/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAI9B;;GAEG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAAC,MAAM,CAU7C"}
@@ -1,6 +0,0 @@
1
- import express from 'express';
2
- /**
3
- * Creates the version router for system version information
4
- */
5
- export declare function createVersionRouter(): express.Router;
6
- //# sourceMappingURL=version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/api/system/version.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAwC9B;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAYpD"}
@@ -1,6 +0,0 @@
1
- import express from 'express';
2
- /**
3
- * Creates the security router for TEE and security operations
4
- */
5
- export declare function teeRouter(): express.Router;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/tee/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAAC,MAAM,CAO1C"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=tee.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tee.d.ts","sourceRoot":"","sources":["../../../src/api/tee/tee.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { type Request, type Response, type NextFunction } from 'express';
2
- /**
3
- * Express middleware for validating API Key authentication based on an environment variable.
4
- *
5
- * If the ELIZA_SERVER_AUTH_TOKEN environment variable is set, this middleware
6
- * checks for a matching 'X-API-KEY' header in incoming requests.
7
- *
8
- * If the environment variable is *not* set, the middleware allows all requests
9
- * to pass through without authentication checks.
10
- *
11
- * @param req - Express request object.
12
- * @param res - Express response object.
13
- * @param next - Express next function.
14
- */
15
- export declare function apiKeyAuthMiddleware(req: Request, res: Response, next: NextFunction): void | Response<any, Record<string, any>>;
16
- //# sourceMappingURL=authMiddleware.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authMiddleware.d.ts","sourceRoot":"","sources":["../src/authMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAGzE;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,6CAsBnF"}
package/dist/bus.d.ts DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * A simple in-memory message bus for distributing messages from the server
3
- * to subscribed MessageBusService instances within the same process.
4
- *
5
- * For multi-process or multi-server deployments, this would need to be replaced
6
- * with a more robust solution like Redis Pub/Sub, Kafka, RabbitMQ, etc.
7
- *
8
- * Uses Bun-native EventTarget internally but maintains EventEmitter-like API.
9
- *
10
- * NOTE: This implementation uses a class extending EventTarget rather than functional
11
- * patterns because EventTarget is a native browser/Bun API that requires class inheritance.
12
- * This is an intentional architectural decision to leverage Bun's native capabilities
13
- * instead of Node.js EventEmitter for better compatibility.
14
- *
15
- * NOTE: Unlike standard EventEmitter, this implementation prevents duplicate handler
16
- * registration. This is an intentional design choice to prevent memory leaks and
17
- * unintended multiple executions of the same handler.
18
- */
19
- declare class InternalMessageBus extends EventTarget {
20
- private _maxListeners;
21
- private handlers;
22
- emit(event: string, data: unknown): boolean;
23
- on(event: string, handler: (data: unknown) => void): this;
24
- off(event: string, handler: (data: unknown) => void): void;
25
- getMaxListeners(): number;
26
- setMaxListeners(n: number): void;
27
- removeAllListeners(event?: string): void;
28
- }
29
- declare const internalMessageBus: InternalMessageBus;
30
- export default internalMessageBus;
31
- //# sourceMappingURL=bus.d.ts.map
package/dist/bus.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"bus.d.ts","sourceRoot":"","sources":["../src/bus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,cAAM,kBAAmB,SAAQ,WAAW;IAC1C,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,QAAQ,CAAkE;IAElF,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OA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C;IAI7C,oBAAoB,CAAC,SAAS,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IASpD,4BAA4B,CAChC,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,EACb,eAAe,EAAE,IAAI,GACpB,OAAO,CAAC,cAAc,CAAC;IAIpB,aAAa,CACjB,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,CAAC,GAC/D,OAAO,CAAC,kBAAkB,CAAC;IA4BxB,qBAAqB,CACzB,SAAS,EAAE,IAAI,EACf,KAAK,GAAE,MAAW,EAClB,eAAe,CAAC,EAAE,IAAI,GACrB,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAM1B,4BAA4B,IAAI,OAAO,CAAC,IAAI,CAAC;IAWnD;;;;OAIG;IACG,gBAAgB,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAUpE;;;;OAIG;IACG,qBAAqB,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzE;;;;OAIG;IACG,kBAAkB,CAAC,QAAQ,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAIzD;;;;OAIG;IACG,kBAAkB,CAAC,OAAO,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAaxD;;;OAGG;IACH,OAAO,CAAC,sBAAsB;CA8C/B;AAGD,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,GACf,MAAM,UAAU,CAAC;AAGlB,cAAc,SAAS,CAAC"}
package/dist/loader.d.ts DELETED
@@ -1,49 +0,0 @@
1
- import { type Character } from '@elizaos/core';
2
- /**
3
- * Attempts to load a file from the given file path.
4
- *
5
- * @param {string} filePath - The path to the file to load.
6
- * @returns {string | null} The contents of the file as a string, or null if an error occurred.
7
- * @throws {Error} If an error occurs while loading the file.
8
- */
9
- export declare function tryLoadFile(filePath: string): string | null;
10
- /**
11
- * Load characters from a specified URL and return them as an array of Character objects.
12
- * @param {string} url - The URL from which to load character data.
13
- * @returns {Promise<Character[]>} - A promise that resolves with an array of Character objects.
14
- */
15
- export declare function loadCharactersFromUrl(url: string): Promise<Character[]>;
16
- /**
17
- * Converts a JSON object representing a character into a validated Character object with additional settings and secrets.
18
- *
19
- * @param {unknown} character - The input data representing a character.
20
- * @returns {Promise<Character>} - A Promise that resolves to a validated Character object.
21
- * @throws {Error} If character validation fails.
22
- */
23
- export declare function jsonToCharacter(character: unknown): Promise<Character>;
24
- /**
25
- * Loads a character from the specified file path with safe JSON parsing and validation.
26
- *
27
- * @param {string} filePath - The path to the character file.
28
- * @returns {Promise<Character>} A Promise that resolves to the validated Character object.
29
- * @throws {Error} If the character file is not found, has invalid JSON, or fails validation.
30
- */
31
- export declare function loadCharacter(filePath: string): Promise<Character>;
32
- /**
33
- * Asynchronously loads a character from the specified path.
34
- * If the path is a URL, it loads the character from the URL.
35
- * If the path is a local file path, it tries multiple possible locations and
36
- * loads the character from the first valid location found.
37
- *
38
- * @param {string} characterPath - The path to load the character from.
39
- * @returns {Promise<Character>} A Promise that resolves to the loaded character.
40
- */
41
- export declare function loadCharacterTryPath(characterPath: string): Promise<Character>;
42
- export declare const hasValidRemoteUrls: () => boolean | "" | undefined;
43
- /**
44
- * Load characters from local paths or remote URLs based on configuration.
45
- * @param charactersArg - A comma-separated list of local file paths or remote URLs to load characters from.
46
- * @returns A promise that resolves to an array of loaded characters.
47
- */
48
- export declare function loadCharacters(charactersArg: string): Promise<Character[]>;
49
- //# sourceMappingURL=loader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAIf,MAAM,eAAe,CAAC;AAKvB;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAM3D;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAuC7E;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAyE5E;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAexE;AAmDD;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAwEpF;AAgCD,eAAO,MAAM,kBAAkB,gCAGuB,CAAC;AAEvD;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAuChF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=copy-client-dist.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copy-client-dist.d.ts","sourceRoot":"","sources":["../../src/scripts/copy-client-dist.ts"],"names":[],"mappings":""}
@@ -1,49 +0,0 @@
1
- import { Service, type IAgentRuntime, type Plugin, type UUID } from '@elizaos/core';
2
- import type { MessageMetadata } from '@elizaos/api-client';
3
- export interface MessageServiceMessage {
4
- id: UUID;
5
- channel_id: UUID;
6
- server_id: UUID;
7
- author_id: UUID;
8
- author_display_name?: string;
9
- content: string;
10
- raw_message?: unknown;
11
- source_id?: string;
12
- source_type?: string;
13
- in_reply_to_message_id?: UUID;
14
- created_at: number;
15
- metadata?: MessageMetadata;
16
- }
17
- export declare class MessageBusService extends Service {
18
- static serviceType: string;
19
- capabilityDescription: string;
20
- private boundHandleIncomingMessage;
21
- private boundHandleServerAgentUpdate;
22
- private boundHandleMessageDeleted;
23
- private boundHandleChannelCleared;
24
- private subscribedServers;
25
- constructor(runtime: IAgentRuntime);
26
- static start(runtime: IAgentRuntime): Promise<Service>;
27
- static stop(runtime: IAgentRuntime): Promise<void>;
28
- private connectToMessageBus;
29
- private validChannelIds;
30
- private fetchValidChannelIds;
31
- private getChannelParticipants;
32
- private fetchAgentServers;
33
- private handleServerAgentUpdate;
34
- private validateServerSubscription;
35
- private validateNotSelfMessage;
36
- private ensureWorldAndRoomExist;
37
- private ensureAuthorEntityExists;
38
- private createAgentMemory;
39
- handleIncomingMessage(data: unknown): Promise<void>;
40
- private handleMessageDeleted;
41
- private handleChannelCleared;
42
- private sendAgentResponseToBus;
43
- private notifyMessageComplete;
44
- private getAuthHeaders;
45
- getCentralMessageServerUrl(): string;
46
- stop(): Promise<void>;
47
- }
48
- export declare const messageBusConnectorPlugin: Plugin;
49
- //# sourceMappingURL=message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/services/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EAKP,KAAK,aAAa,EAElB,KAAK,MAAM,EACX,KAAK,IAAI,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,IAAI,CAAC;IACT,UAAU,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,IAAI,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,MAAM,CAAC,WAAW,SAAyB;IAC3C,qBAAqB,SAA6E;IAElG,OAAO,CAAC,0BAA0B,CAA0B;IAC5D,OAAO,CAAC,4BAA4B,CAA+B;IACnE,OAAO,CAAC,yBAAyB,CAA+B;IAChE,OAAO,CAAC,yBAAyB,CAA+B;IAChE,OAAO,CAAC,iBAAiB,CAAwB;gBAErC,OAAO,EAAE,aAAa;WAgBrB,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;WAM/C,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;YAK1C,mBAAmB;IAejC,OAAO,CAAC,eAAe,CAAwB;YAEjC,oBAAoB;YA4DpB,sBAAsB;YA+DtB,iBAAiB;YA6CjB,uBAAuB;YAsBvB,0BAA0B;YAa1B,sBAAsB;YAUtB,uBAAuB;YAqDvB,wBAAwB;IAmBtC,OAAO,CAAC,iBAAiB;IAmDZ,qBAAqB,CAAC,IAAI,EAAE,OAAO;YA8HlC,oBAAoB;YAoCpB,oBAAoB;YAuCpB,sBAAsB;YA6FtB,qBAAqB;IAkBnC,OAAO,CAAC,cAAc;IActB,0BAA0B,IAAI,MAAM;IAkE9B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAO5B;AAGD,eAAO,MAAM,yBAAyB,EAAE,MAIvC,CAAC"}
@@ -1,23 +0,0 @@
1
- import type { IAgentRuntime } from '@elizaos/core';
2
- import { type UUID } from '@elizaos/core';
3
- import type { Server as SocketIOServer } from 'socket.io';
4
- import type { AgentServer } from '../index';
5
- export declare class SocketIORouter {
6
- private agents;
7
- private connections;
8
- private logStreamConnections;
9
- private serverInstance;
10
- constructor(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer);
11
- setupListeners(io: SocketIOServer): void;
12
- private handleNewConnection;
13
- private handleGenericMessage;
14
- private handleChannelJoining;
15
- private handleMessageSubmission;
16
- private sendErrorResponse;
17
- private handleLogSubscription;
18
- private handleLogUnsubscription;
19
- private handleLogFilterUpdate;
20
- broadcastLog(io: SocketIOServer, logEntry: any): void;
21
- private handleDisconnect;
22
- }
23
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/socketio/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAML,KAAK,IAAI,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAU,MAAM,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAA2B;IACzC,OAAO,CAAC,WAAW,CAAoB;IACvC,OAAO,CAAC,oBAAoB,CAAsD;IAClF,OAAO,CAAC,cAAc,CAAc;gBAExB,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE,cAAc,EAAE,WAAW;IAQzE,cAAc,CAAC,EAAE,EAAE,cAAc;IAWjC,OAAO,CAAC,mBAAmB;IAsD3B,OAAO,CAAC,oBAAoB;IAiC5B,OAAO,CAAC,oBAAoB;YAwEd,uBAAuB;IA+MrC,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,uBAAuB;IAS/B,OAAO,CAAC,qBAAqB;IAkBtB,YAAY,CAAC,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG;IAyBrD,OAAO,CAAC,gBAAgB;CAYzB"}
@@ -1,153 +0,0 @@
1
- import type { UUID } from '@elizaos/core';
2
- import type { MessageMetadata } from '@elizaos/api-client';
3
- /**
4
- * Session timeout configuration
5
- */
6
- export interface SessionTimeoutConfig {
7
- /** Timeout in minutes. If not specified, uses agent or global default */
8
- timeoutMinutes?: number;
9
- /** Whether to auto-renew the session on activity */
10
- autoRenew?: boolean;
11
- /** Maximum session duration in minutes (even with renewals) */
12
- maxDurationMinutes?: number;
13
- /** Warning threshold in minutes before timeout */
14
- warningThresholdMinutes?: number;
15
- /** Allow additional properties */
16
- [key: string]: unknown;
17
- }
18
- /**
19
- * Metadata associated with a session
20
- */
21
- export interface SessionMetadata {
22
- platform?: string;
23
- username?: string;
24
- discriminator?: string;
25
- avatar?: string;
26
- [key: string]: string | number | boolean | undefined;
27
- }
28
- /**
29
- * Represents a messaging session between a user and an agent
30
- */
31
- export interface Session {
32
- id: string;
33
- agentId: UUID;
34
- channelId: UUID;
35
- userId: UUID;
36
- metadata: SessionMetadata;
37
- createdAt: Date;
38
- lastActivity: Date;
39
- /** Session expiration time */
40
- expiresAt: Date;
41
- /** Session timeout configuration */
42
- timeoutConfig: SessionTimeoutConfig;
43
- /** Number of times the session has been renewed */
44
- renewalCount: number;
45
- /** Whether a warning has been sent about upcoming expiration */
46
- warningState?: {
47
- sent: boolean;
48
- sentAt?: Date;
49
- };
50
- }
51
- /**
52
- * Request body for creating a session
53
- */
54
- export interface CreateSessionRequest {
55
- agentId: string;
56
- userId: string;
57
- metadata?: SessionMetadata;
58
- /** Optional timeout configuration for this session */
59
- timeoutConfig?: SessionTimeoutConfig;
60
- }
61
- /**
62
- * Response for session creation
63
- */
64
- export interface CreateSessionResponse {
65
- sessionId: string;
66
- agentId: UUID;
67
- userId: UUID;
68
- createdAt: Date;
69
- metadata: SessionMetadata;
70
- /** When the session will expire */
71
- expiresAt: Date;
72
- /** Session timeout configuration */
73
- timeoutConfig: SessionTimeoutConfig;
74
- }
75
- /**
76
- * Request body for sending a message
77
- */
78
- export interface SendMessageRequest {
79
- content: string;
80
- attachments?: Array<{
81
- type: string;
82
- url: string;
83
- name?: string;
84
- }>;
85
- metadata?: MessageMetadata;
86
- }
87
- /**
88
- * Query parameters for retrieving messages
89
- */
90
- export interface GetMessagesQuery {
91
- limit?: string;
92
- before?: string;
93
- after?: string;
94
- }
95
- /**
96
- * Simplified message format for API responses
97
- */
98
- export interface SimplifiedMessage {
99
- id: string;
100
- content: string;
101
- authorId: string;
102
- isAgent: boolean;
103
- createdAt: Date;
104
- metadata: {
105
- thought?: string;
106
- actions?: string[];
107
- [key: string]: any;
108
- };
109
- }
110
- /**
111
- * Response for message retrieval
112
- */
113
- export interface GetMessagesResponse {
114
- messages: SimplifiedMessage[];
115
- hasMore: boolean;
116
- /** Pagination cursors for navigating through messages */
117
- cursors?: {
118
- /** Timestamp to use for getting older messages (pagination backward) */
119
- before?: number;
120
- /** Timestamp to use for getting newer messages (pagination forward) */
121
- after?: number;
122
- };
123
- }
124
- /**
125
- * Session info response
126
- */
127
- export interface SessionInfoResponse {
128
- sessionId: string;
129
- agentId: UUID;
130
- userId: UUID;
131
- createdAt: Date;
132
- lastActivity: Date;
133
- metadata: SessionMetadata;
134
- /** When the session will expire */
135
- expiresAt: Date;
136
- /** Session timeout configuration */
137
- timeoutConfig: SessionTimeoutConfig;
138
- /** Number of times the session has been renewed */
139
- renewalCount: number;
140
- /** Time remaining in milliseconds */
141
- timeRemaining: number;
142
- /** Whether the session is near expiration */
143
- isNearExpiration: boolean;
144
- }
145
- /**
146
- * Health check response
147
- */
148
- export interface HealthCheckResponse {
149
- status: 'healthy' | 'unhealthy';
150
- activeSessions: number;
151
- timestamp: string;
152
- }
153
- //# sourceMappingURL=sessions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/types/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oDAAoD;IACpD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,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