@elizaos/server 1.5.9-alpha.9 → 1.5.9-beta.0

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/types.d.ts CHANGED
@@ -48,4 +48,22 @@ export interface MessageServiceStructure {
48
48
  created_at: number;
49
49
  metadata?: MessageMetadata;
50
50
  }
51
+ export interface Attachment {
52
+ url?: string;
53
+ [key: string]: unknown;
54
+ }
55
+ export type AttachmentInput = string | Attachment | (string | Attachment)[];
56
+ export interface MessageContentWithAttachments {
57
+ attachments?: AttachmentInput;
58
+ [key: string]: unknown;
59
+ }
60
+ export interface MessageMetadataWithAttachments {
61
+ attachments?: AttachmentInput;
62
+ [key: string]: unknown;
63
+ }
64
+ export interface MessageWithAttachments {
65
+ content?: MessageContentWithAttachments | unknown;
66
+ metadata?: MessageMetadataWithAttachments;
67
+ [key: string]: unknown;
68
+ }
51
69
  export * from './types/sessions';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Transform local file paths to API URLs for web clients
3
+ */
4
+ import type { AttachmentInput, MessageWithAttachments } from '../types';
5
+ /**
6
+ * Transform a local file path to an API URL
7
+ */
8
+ export declare function transformPathToApiUrl(filePath: string): string;
9
+ /**
10
+ * Convert local file paths to API URLs for attachments
11
+ */
12
+ export declare function attachmentsToApiUrls(attachments: AttachmentInput): AttachmentInput;
13
+ /**
14
+ * Transform attachments in message content and metadata to API URLs
15
+ */
16
+ export declare function transformMessageAttachments(message: MessageWithAttachments): MessageWithAttachments;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/server",
3
- "version": "1.5.9-alpha.9",
3
+ "version": "1.5.9-beta.0",
4
4
  "description": "ElizaOS Server - Core server infrastructure for ElizaOS agents",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -51,10 +51,10 @@
51
51
  "which": "^4.0.0",
52
52
  "ws": "^8.18.0"
53
53
  },
54
- "gitHead": "4316a789509cc875a499505df180d16387d7f0c2",
54
+ "gitHead": "ee3beca254917db3d4108305e5b449899a2b94ab",
55
55
  "dependencies": {
56
- "@elizaos/core": "1.5.9-alpha.9",
57
- "@elizaos/plugin-sql": "1.5.9-alpha.9",
56
+ "@elizaos/core": "1.5.9-beta.0",
57
+ "@elizaos/plugin-sql": "1.5.9-beta.0",
58
58
  "@sentry/node": "^10.11.0",
59
59
  "@types/express": "^5.0.2",
60
60
  "@types/helmet": "^4.0.0",