@rlabs-inc/memory 0.1.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.
@@ -0,0 +1,31 @@
1
+ import { MemoryEngine, type EngineConfig } from '../core/engine.ts';
2
+ import { Curator, type CuratorConfig } from '../core/curator.ts';
3
+ /**
4
+ * Server configuration
5
+ */
6
+ export interface ServerConfig extends EngineConfig {
7
+ /**
8
+ * Port to listen on
9
+ * Default: 8765 (same as Python)
10
+ */
11
+ port?: number;
12
+ /**
13
+ * Host to bind to
14
+ * Default: 'localhost'
15
+ */
16
+ host?: string;
17
+ /**
18
+ * Curator configuration
19
+ */
20
+ curator?: CuratorConfig;
21
+ }
22
+ /**
23
+ * Create and start the memory server
24
+ * Uses Bun.serve() for high performance
25
+ */
26
+ export declare function createServer(config?: ServerConfig): {
27
+ server: Bun.Server<undefined>;
28
+ engine: MemoryEngine;
29
+ curator: Curator;
30
+ stop: () => Promise<void>;
31
+ };