wolbarg 0.4.0 → 0.5.1

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/index.d.cts CHANGED
@@ -49,7 +49,7 @@ declare const meta: {
49
49
  * Schema is intentionally extensible for future providers (Postgres, cloud).
50
50
  */
51
51
  /** Public operation names recorded as telemetry events. */
52
- type TelemetryOperation = "remember" | "recall" | "forget" | "compress" | "rememberBatch" | "recallBatch" | "export" | "import" | "checkpoint" | "rollback" | "error" | "startup" | "shutdown" | "ingest" | "history" | "stats" | "clear" | "deleteCheckpoint" | "listCheckpoints" | "getCheckpoint";
52
+ type TelemetryOperation = "remember" | "recall" | "forget" | "compress" | "rememberBatch" | "recallBatch" | "export" | "import" | "checkpoint" | "rollback" | "error" | "startup" | "shutdown" | "ingest" | "history" | "stats" | "clear" | "deleteCheckpoint" | "listCheckpoints" | "getCheckpoint" | "linkMemories" | "getRelated" | "graphQuery";
53
53
  type TelemetryStatus = "ok" | "error" | "cancelled";
54
54
  type TelemetryLogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
55
55
  /** Stage-level latency breakdown recorded on each event. */
@@ -388,6 +388,12 @@ interface RecallOptions {
388
388
  * When `true`, return enriched explain results instead of plain RecallResult[].
389
389
  */
390
390
  explain?: boolean;
391
+ /**
392
+ * When `true` and a graph provider is configured, each hit includes
393
+ * `related` memories from {@link GraphProvider.getRelated}.
394
+ * Omitted / false → no behavior change (related is absent).
395
+ */
396
+ includeGraph?: boolean;
391
397
  }
392
398
  /** A single recalled memory with similarity score. */
393
399
  interface RecallResult {
@@ -400,6 +406,11 @@ interface RecallResult {
400
406
  similarity: number;
401
407
  createdAt: Date;
402
408
  updatedAt: Date;
409
+ /**
410
+ * Present only when `recall({ includeGraph: true })` and a graph provider
411
+ * is configured. Related memories via graph traversal (depth 1, both dirs).
412
+ */
413
+ related?: MemoryRecord[];
403
414
  }
404
415
  /** Enriched recall hit when `explain: true`. */
405
416
  interface RecallExplanationHit {
@@ -579,6 +590,107 @@ interface IngestResult {
579
590
  usedVision: boolean;
580
591
  }
581
592
 
593
+ /**
594
+ * Graph memory provider contract.
595
+ *
596
+ * Mirrors {@link StorageProvider} lifecycle naming (`open` / `close` / `health`
597
+ * pattern via `health()`). Fully optional — omitting a graph provider does not
598
+ * change existing memory behavior.
599
+ *
600
+ * ## Portability contract
601
+ *
602
+ * - The five typed methods (`linkMemories`, `unlinkMemories`, `getRelated`,
603
+ * `upsertEntity`, `linkEntityToMemory`) are **guaranteed** identical behavior
604
+ * across SQLite and Neo4j. This is the tested, supported contract (see
605
+ * `graph-parity.test.ts`).
606
+ * - `query(cypher, params)` is supported on Neo4j only. The SQLite graph
607
+ * provider **hard-errors** immediately — SQLite has no Cypher. Use typed
608
+ * methods for portable code, or query the graph SQLite tables directly if you
609
+ * need raw SQL locally.
610
+ * - `health()` guarantees only `ok` and `backend`. The `details` payload
611
+ * differs (embedded file path vs networked cluster/connection info).
612
+ * - `deleteMemory` supports hard-delete cascade from `forget` / `clear` and is
613
+ * part of the portable typed surface.
614
+ */
615
+
616
+ /** Direction for {@link GraphProvider.getRelated}. */
617
+ type GraphDirection = "in" | "out" | "both";
618
+ interface GetRelatedOptions {
619
+ relation?: string;
620
+ /** Traversal depth (default 1). */
621
+ depth?: number;
622
+ direction?: GraphDirection;
623
+ }
624
+ interface GraphEntityInput {
625
+ name: string;
626
+ type: string;
627
+ metadata?: Record<string, unknown>;
628
+ }
629
+ interface GraphHealthResult {
630
+ ok: boolean;
631
+ backend: string;
632
+ details?: unknown;
633
+ }
634
+ /**
635
+ * Pluggable graph store for memory–memory and entity–memory relations.
636
+ *
637
+ * Typed CRUD methods MUST be implemented with each backend’s native driver API
638
+ * (not by routing through {@link GraphProvider.query}). `query()` is the
639
+ * user-facing raw escape hatch only (Neo4j); SQLite throws.
640
+ */
641
+ interface GraphProvider {
642
+ readonly name: string;
643
+ /** Open connection / embedded database and ensure schema. */
644
+ open(): Promise<void>;
645
+ /** Close the underlying connection. */
646
+ close(): Promise<void>;
647
+ /**
648
+ * Create (or ensure) a directed relation between two memory nodes.
649
+ * Implementations create stub Memory nodes when missing.
650
+ */
651
+ linkMemories(fromId: string, toId: string, relation: string, metadata?: Record<string, unknown>): Promise<void>;
652
+ /** Remove relation(s) between two memory nodes. */
653
+ unlinkMemories(fromId: string, toId: string, relation?: string): Promise<void>;
654
+ /**
655
+ * Traverse from a memory node and return related Memory records as stored
656
+ * in the graph (facade may re-hydrate from SQL storage).
657
+ */
658
+ getRelated(memoryId: string, options?: GetRelatedOptions): Promise<MemoryRecord[]>;
659
+ /** Upsert an entity node; returns stable entity id. */
660
+ upsertEntity(entity: GraphEntityInput): Promise<string>;
661
+ /** Link an entity to a memory with an optional role. */
662
+ linkEntityToMemory(entityId: string, memoryId: string, role?: string): Promise<void>;
663
+ /**
664
+ * Hard-delete a memory node and all incident edges (cascade for forget/clear).
665
+ */
666
+ deleteMemory(memoryId: string): Promise<void>;
667
+ /**
668
+ * Raw Cypher escape hatch. Supported on Neo4j only — the SQLite provider
669
+ * throws a typed error. See module portability contract above.
670
+ */
671
+ query(cypher: string, params?: Record<string, unknown>): Promise<unknown>;
672
+ health(): Promise<GraphHealthResult>;
673
+ /**
674
+ * When true, checkpoint/export may snapshot {@link getDataPath}.
675
+ * Network-backed providers (Neo4j) return false.
676
+ */
677
+ supportsFileSnapshot(): boolean;
678
+ /** Absolute path to the embedded graph data directory/file, if any. */
679
+ getDataPath(): string | null;
680
+ }
681
+ /** Config shape accepted by `wolbarg({ graph: … })` when not passing an instance. */
682
+ type GraphConfig = {
683
+ provider: "sqlite";
684
+ path: string;
685
+ } | {
686
+ provider: "neo4j";
687
+ url: string;
688
+ username: string;
689
+ password: string;
690
+ database?: string;
691
+ };
692
+ type GraphInput$1 = GraphProvider | GraphConfig;
693
+
582
694
  /**
583
695
  * Chunking strategies for document ingestion.
584
696
  */
@@ -1034,6 +1146,7 @@ declare function openaiVision(options: {
1034
1146
  type EmbeddingInput = EmbeddingProvider | EmbeddingConfig;
1035
1147
  type LlmInput = LlmProvider | LlmConfig;
1036
1148
  type StorageInput = StorageProvider | StorageConfig | DatabaseConfig;
1149
+ type GraphInput = GraphProvider | GraphConfig;
1037
1150
  interface WolbargOptionsBase {
1038
1151
  /** Organization namespace isolating memories within a shared database. */
1039
1152
  organization: string;
@@ -1062,6 +1175,12 @@ interface WolbargOptionsBase {
1062
1175
  ocr?: OCRProvider;
1063
1176
  /** Optional vision model for image captions. */
1064
1177
  vision?: VisionProvider;
1178
+ /**
1179
+ * Optional graph memory layer (SQLite embedded or Neo4j networked).
1180
+ * Fully optional — omitting it does not change existing memory behavior.
1181
+ * Accepts a {@link GraphProvider} instance or a recognized config shape.
1182
+ */
1183
+ graph?: GraphInput;
1065
1184
  /** Optional compression provider (overrides llm-backed default). */
1066
1185
  compression?: CompressionProvider;
1067
1186
  /** Optional default chunking strategy for ingest. */
@@ -1149,6 +1268,7 @@ declare class Wolbarg<HasLlm extends boolean = false> {
1149
1268
  private keywordSearch;
1150
1269
  private ocr;
1151
1270
  private vision;
1271
+ private graph;
1152
1272
  private chunking;
1153
1273
  private retrievalConfig;
1154
1274
  private embeddingDimensions;
@@ -1214,6 +1334,17 @@ declare class Wolbarg<HasLlm extends boolean = false> {
1214
1334
  /** @internal */
1215
1335
  private runCompress;
1216
1336
  ingest(options: IngestOptions): Promise<IngestResult>;
1337
+ /**
1338
+ * Link two memories in the optional graph layer.
1339
+ * Throws {@link ProviderNotConfiguredError} when no graph provider is set.
1340
+ */
1341
+ linkMemories(fromId: string, toId: string, relation: string, metadata?: Record<string, unknown>): Promise<void>;
1342
+ /**
1343
+ * Traverse related memories via the optional graph layer.
1344
+ * Throws {@link ProviderNotConfiguredError} when no graph provider is set.
1345
+ * Results are re-hydrated from SQL storage when available.
1346
+ */
1347
+ getRelated(memoryId: string, options?: GetRelatedOptions): Promise<MemoryRecord[]>;
1217
1348
  forget(options: ForgetOptions): Promise<number>;
1218
1349
  history(options: HistoryOptions): Promise<HistoryResult>;
1219
1350
  stats(): Promise<StatsResult>;
@@ -1244,11 +1375,21 @@ declare class Wolbarg<HasLlm extends boolean = false> {
1244
1375
  private requireReady;
1245
1376
  private assertEmbeddingDimensions;
1246
1377
  private requireCheckpointProvider;
1378
+ private requireGraph;
1379
+ private assertGraphCheckpointSupported;
1380
+ private graphSnapshotDir;
1381
+ private closeGraphForSnapshot;
1382
+ private snapshotGraphAlongside;
1383
+ private restoreGraphAlongside;
1384
+ private hydrateRelated;
1247
1385
  private requireMemoryDbPath;
1248
1386
  }
1249
1387
  /** Preferred v0.3 entry — re-exported from factories as well. */
1250
1388
  declare function wolbarg$1(options: WolbargOptions): Wolbarg;
1251
1389
 
1390
+ /** Published SDK semver — keep in sync with package.json `version`. */
1391
+ declare const SDK_VERSION = "0.5.0";
1392
+
1252
1393
  /**
1253
1394
  * Operation-scoped errors with reason + suggestion for developer experience.
1254
1395
  */
@@ -1338,6 +1479,14 @@ declare class ProviderNotConfiguredError extends ConfigurationError {
1338
1479
  readonly provider: string;
1339
1480
  constructor(provider: string, method: string, hint: string);
1340
1481
  }
1482
+ /**
1483
+ * Thrown when graph checkpoint / rollback / export / import is requested for a
1484
+ * network-backed graph provider (e.g. Neo4j). File-backed SQLite graph supports
1485
+ * snapshots; Neo4j does not in v1 — we refuse rather than silently skip.
1486
+ */
1487
+ declare class GraphCheckpointNotSupportedError extends WolbargError {
1488
+ constructor(backend: string, operation: string);
1489
+ }
1341
1490
  /** Map low-level SQLite / driver errors into actionable operation errors. */
1342
1491
  declare function wrapOperationError(operation: string, error: unknown): WolbargError;
1343
1492
 
@@ -1365,6 +1514,17 @@ declare function postgresConfig(connectionString: string, options?: {
1365
1514
  declare function sqliteTelemetry(url: string): TelemetryProvider;
1366
1515
  /** Create a SQLite checkpoint provider. */
1367
1516
  declare function sqliteCheckpoint(directory?: string): CheckpointProvider;
1517
+ /** Create an embedded SQLite graph provider (file-backed, local/dev). */
1518
+ declare function sqliteGraph(options: {
1519
+ path: string;
1520
+ }): GraphProvider;
1521
+ /** Create a Neo4j graph provider (networked). Requires optional peer `neo4j-driver`. */
1522
+ declare function neo4jGraph(options: {
1523
+ url: string;
1524
+ username: string;
1525
+ password: string;
1526
+ database?: string;
1527
+ }): GraphProvider;
1368
1528
  /** Create a telemetry provider from config (SQLite only in v0.3). */
1369
1529
  declare function createTelemetryProvider(config: TelemetryConfig): TelemetryProvider;
1370
1530
  /**
@@ -1720,6 +1880,110 @@ declare function createStorageProvider(config: StorageConfig | DatabaseConfig, o
1720
1880
  /** @deprecated Prefer {@link createStorageProvider}. */
1721
1881
  declare function createDatabaseProvider(config: DatabaseConfig): StorageProvider;
1722
1882
 
1883
+ /**
1884
+ * Embedded SQLite graph provider (file-backed, local/dev).
1885
+ *
1886
+ * Implements the five typed {@link GraphProvider} methods with plain SQL and
1887
+ * recursive CTEs — no Cypher. Schema is created on open (plain CREATE TABLE IF
1888
+ * NOT EXISTS; no graph-engine DDL / schema-creation-on-first-write complexity).
1889
+ *
1890
+ * Uses the same `node:sqlite` + {@link withImmediateTransaction} patterns as
1891
+ * {@link SqliteStorageProvider}. Graph data lives in a separate SQLite file from
1892
+ * the memory store by default.
1893
+ */
1894
+
1895
+ interface SqliteGraphProviderOptions {
1896
+ /** Path to the graph SQLite file (separate from the memory store by default). */
1897
+ path: string;
1898
+ /** Optional write-concurrency tuning (same shape as memory SQLite). */
1899
+ concurrency?: ConcurrencyConfig;
1900
+ }
1901
+ declare class SqliteGraphProvider implements GraphProvider {
1902
+ readonly name = "sqlite";
1903
+ private readonly dbPath;
1904
+ private readonly concurrency;
1905
+ private db;
1906
+ private opened;
1907
+ constructor(options: SqliteGraphProviderOptions);
1908
+ supportsFileSnapshot(): boolean;
1909
+ getDataPath(): string | null;
1910
+ open(): Promise<void>;
1911
+ close(): Promise<void>;
1912
+ linkMemories(fromId: string, toId: string, relation: string, metadata?: Record<string, unknown>): Promise<void>;
1913
+ unlinkMemories(fromId: string, toId: string, relation?: string): Promise<void>;
1914
+ /**
1915
+ * Bounded recursive CTE over `graph_edges`.
1916
+ *
1917
+ * Default depth: {@link DEFAULT_GET_RELATED_DEPTH} (1). Cap: 16.
1918
+ * Only memory↔memory edges are walked (entity MENTIONS edges are excluded).
1919
+ * Cycle-safe via path membership (`instr`) so A→B→C→A terminates.
1920
+ *
1921
+ * Returns stub {@link MemoryRecord}s (id + empty fields). The facade
1922
+ * re-hydrates full rows via `toMemoryRecord` from storage when possible.
1923
+ */
1924
+ getRelated(memoryId: string, options?: GetRelatedOptions): Promise<MemoryRecord[]>;
1925
+ upsertEntity(entity: GraphEntityInput): Promise<string>;
1926
+ linkEntityToMemory(entityId: string, memoryId: string, role?: string): Promise<void>;
1927
+ deleteMemory(memoryId: string): Promise<void>;
1928
+ /**
1929
+ * Raw Cypher escape hatch — **not supported** on the SQLite graph provider.
1930
+ * Use the typed methods, or open the underlying SQLite file yourself for raw SQL.
1931
+ */
1932
+ query(_cypher: string, _params?: Record<string, unknown>): Promise<unknown>;
1933
+ health(): Promise<GraphHealthResult>;
1934
+ private withTx;
1935
+ private requireDb;
1936
+ private findMemoryNodeId;
1937
+ private ensureMemoryNodeSync;
1938
+ }
1939
+
1940
+ /**
1941
+ * Neo4j graph provider (networked, production).
1942
+ *
1943
+ * Uses neo4j-driver session.run with parameterized Cypher for typed methods —
1944
+ * NOT GraphProvider.query(). Schema-flexible: nodes/relationships are created
1945
+ * freely without DDL.
1946
+ *
1947
+ * Install as optional peer: `npm install neo4j-driver`.
1948
+ */
1949
+
1950
+ interface Neo4jGraphProviderOptions {
1951
+ url: string;
1952
+ username: string;
1953
+ password: string;
1954
+ database?: string;
1955
+ }
1956
+ declare class Neo4jGraphProvider implements GraphProvider {
1957
+ readonly name = "neo4j";
1958
+ private readonly url;
1959
+ private readonly username;
1960
+ private readonly password;
1961
+ private readonly database;
1962
+ private driver;
1963
+ private opened;
1964
+ constructor(options: Neo4jGraphProviderOptions);
1965
+ supportsFileSnapshot(): boolean;
1966
+ getDataPath(): string | null;
1967
+ open(): Promise<void>;
1968
+ close(): Promise<void>;
1969
+ private requireDriver;
1970
+ private withSession;
1971
+ private run;
1972
+ private ensureMemoryNode;
1973
+ linkMemories(fromId: string, toId: string, relation: string, metadata?: Record<string, unknown>): Promise<void>;
1974
+ unlinkMemories(fromId: string, toId: string, relation?: string): Promise<void>;
1975
+ /**
1976
+ * Native Neo4j variable-length path traversal.
1977
+ * Relationship filter uses RELATED.relation property for parity with Kuzu.
1978
+ */
1979
+ getRelated(memoryId: string, options?: GetRelatedOptions): Promise<MemoryRecord[]>;
1980
+ upsertEntity(entity: GraphEntityInput): Promise<string>;
1981
+ linkEntityToMemory(entityId: string, memoryId: string, role?: string): Promise<void>;
1982
+ deleteMemory(memoryId: string): Promise<void>;
1983
+ query(cypher: string, params?: Record<string, unknown>): Promise<unknown>;
1984
+ health(): Promise<GraphHealthResult>;
1985
+ }
1986
+
1723
1987
  /**
1724
1988
  * Database-agnostic memory persistence contract.
1725
1989
  * Alias of StorageProvider for the v0.3 provider architecture.
@@ -1830,6 +2094,22 @@ declare class SqliteCheckpointProvider implements CheckpointProvider {
1830
2094
  deleteCheckpoint(name: string): Promise<boolean>;
1831
2095
  listCheckpoints(): Promise<CheckpointMeta[]>;
1832
2096
  getCheckpoint(name: string): Promise<CheckpointMeta | null>;
2097
+ /**
2098
+ * Consistent SQLite file backup (WAL checkpoint + backup API / copy).
2099
+ * Used for memory snapshots and for secondary files such as the graph DB.
2100
+ */
2101
+ backupSqliteFile(sourcePath: string, destPath: string): Promise<void>;
2102
+ /**
2103
+ * Snapshot a secondary SQLite file (typically the graph DB) next to a named
2104
+ * memory checkpoint as `{name}.graph.db`.
2105
+ */
2106
+ checkpointGraph(name: string, graphSourcePath: string): Promise<string>;
2107
+ /**
2108
+ * Restore a previously snapshotted graph SQLite file into `targetPath`.
2109
+ */
2110
+ rollbackGraph(name: string, targetPath: string): Promise<void>;
2111
+ /** Absolute path of the graph snapshot for a named checkpoint, if present. */
2112
+ graphSnapshotPath(name: string): string;
1833
2113
  private metaPath;
1834
2114
  private snapshotPath;
1835
2115
  private requireReady;
@@ -1928,4 +2208,4 @@ interface BenchmarkReport {
1928
2208
  declare function runBenchmark(name: string, iterations: number, fn: () => Promise<void> | void): Promise<BenchmarkSample[]>;
1929
2209
  declare function summarizeBenchmark(samples: BenchmarkSample[], startedAt: string, finishedAt: string): BenchmarkReport;
1930
2210
 
1931
- export { type BenchmarkReport, type BenchmarkSample, type ChatMessage, type CheckpointInfo, type CheckpointMeta, type CheckpointOptions, type CheckpointProvider, type Chunk, type ChunkingOptions, type ChunkingStrategy, type ClearOptions, type CompressOptions, type CompressResult, CompressionError, type CompressionProvider, type ConcurrencyConfig$1 as ConcurrencyConfig, ConfigurationError, type CreateCheckpointOptions, type DatabaseConfig, DatabaseError, type DatabaseProvider, type DatabaseProviderName, type EmbeddingCacheConfig, type EmbeddingConfig, EmbeddingError, type EmbeddingProvider, type EventDatabase, type ExportResult, FixedChunkingStrategy, type ForgetByFilterOptions, type ForgetByIdOptions, type ForgetOptions, HeadingChunkingStrategy, type HistoryEvent, type HistoryOptions, type HistoryResult, type HybridConfig, type ImportResult, type IngestOptions, type IngestResult, type InitOptions, InitializationError, type KeywordDocument, type KeywordSearchHit, type KeywordSearchProvider, type LatencyBreakdown, LlmCompressionProvider, type LlmConfig, type LlmProvider, MarkdownChunkingStrategy, type MemoryChangeCallback, type MemoryChangeEvent, type MemoryContent, type MemoryDedupeConfig, type MemoryDedupeStrategy, type MemoryFilter, type MemoryMetadata, MemoryNotFoundError, type MemoryProvider, type MemoryRecord, type MetadataFilter as MetaFilter, type MetadataComparison, type MetadataFilter, type MmrConfig, NoopTelemetryProvider, type OCRProvider, type OcrResult, ParagraphChunkingStrategy, type PersistedRecallExplainPayload, type PostgresDatabaseConfig, PostgresStorageProvider, ProviderNotConfiguredError, type RecallExplainResponse, type RecallExplanationHit, type RecallOptions, type RecallResult, type RememberAction, type RememberOptions, type RememberResult, type RerankDocument, type RerankHit, type RerankerProvider, type RetrievalConfig, SentenceChunkingStrategy, SqliteCheckpointProvider, type SqliteDatabaseConfig, SqliteDatabaseProvider, SqliteEventDatabase, SqliteStorageProvider, SqliteTelemetryProvider, type StageSpan, type StatsResult, type StorageConfig, StorageLockedError, type StorageProvider, type StorageProviderName, type SubscribableEvent, type SubscribeFilter, type TelemetryConfig, TelemetryEmitter, type TelemetryEvent, type TelemetryEventInput, type TelemetryLogLevel, type TelemetryOperation, type TelemetryProvider, type TelemetryQuery, type TelemetryQueryResult, type TelemetryStatus, type Unsubscribe, ValidationError, type VisionProvider, type VisionResult, Wolbarg, WolbargError, WolbargLogger, type WolbargOptions, type WolbargOptionsWithLlm, type WolbargOptionsWithoutLlm, bgeReranker, bm25, cohereReranker, createChunkingStrategy, createCompressionProvider, createDatabaseProvider, createEmbeddingProvider, createLlmProvider, createStorageProvider, createTelemetryProvider, wolbarg as createWolbarg, crossEncoder, geminiEmbedding, geminiVision, jinaReranker, lmStudioEmbedding, meta, ollamaEmbedding, ollamaLlm, openRouterEmbedding, openRouterLlm, openaiCompatibleEmbedding, openaiCompatibleLlm, openaiEmbedding, openaiLlm, openaiReranker, openaiVision, postgres, postgresConfig, runBenchmark, sqlite, sqliteCheckpoint, sqliteConfig, sqliteTelemetry, summarizeBenchmark, tesseract, togetherEmbedding, vllmEmbedding, wolbarg$1 as wolbarg, wrapOperationError };
2211
+ export { type BenchmarkReport, type BenchmarkSample, type ChatMessage, type CheckpointInfo, type CheckpointMeta, type CheckpointOptions, type CheckpointProvider, type Chunk, type ChunkingOptions, type ChunkingStrategy, type ClearOptions, type CompressOptions, type CompressResult, CompressionError, type CompressionProvider, type ConcurrencyConfig$1 as ConcurrencyConfig, ConfigurationError, type CreateCheckpointOptions, type DatabaseConfig, DatabaseError, type DatabaseProvider, type DatabaseProviderName, type EmbeddingCacheConfig, type EmbeddingConfig, EmbeddingError, type EmbeddingProvider, type EventDatabase, type ExportResult, FixedChunkingStrategy, type ForgetByFilterOptions, type ForgetByIdOptions, type ForgetOptions, type GetRelatedOptions, GraphCheckpointNotSupportedError, type GraphConfig, type GraphDirection, type GraphEntityInput, type GraphHealthResult, type GraphInput$1 as GraphInput, type GraphProvider, HeadingChunkingStrategy, type HistoryEvent, type HistoryOptions, type HistoryResult, type HybridConfig, type ImportResult, type IngestOptions, type IngestResult, type InitOptions, InitializationError, type KeywordDocument, type KeywordSearchHit, type KeywordSearchProvider, type LatencyBreakdown, LlmCompressionProvider, type LlmConfig, type LlmProvider, MarkdownChunkingStrategy, type MemoryChangeCallback, type MemoryChangeEvent, type MemoryContent, type MemoryDedupeConfig, type MemoryDedupeStrategy, type MemoryFilter, type MemoryMetadata, MemoryNotFoundError, type MemoryProvider, type MemoryRecord, type MetadataFilter as MetaFilter, type MetadataComparison, type MetadataFilter, type MmrConfig, Neo4jGraphProvider, NoopTelemetryProvider, type OCRProvider, type OcrResult, ParagraphChunkingStrategy, type PersistedRecallExplainPayload, type PostgresDatabaseConfig, PostgresStorageProvider, ProviderNotConfiguredError, type RecallExplainResponse, type RecallExplanationHit, type RecallOptions, type RecallResult, type RememberAction, type RememberOptions, type RememberResult, type RerankDocument, type RerankHit, type RerankerProvider, type RetrievalConfig, SDK_VERSION, SentenceChunkingStrategy, SqliteCheckpointProvider, type SqliteDatabaseConfig, SqliteDatabaseProvider, SqliteEventDatabase, SqliteGraphProvider, SqliteStorageProvider, SqliteTelemetryProvider, type StageSpan, type StatsResult, type StorageConfig, StorageLockedError, type StorageProvider, type StorageProviderName, type SubscribableEvent, type SubscribeFilter, type TelemetryConfig, TelemetryEmitter, type TelemetryEvent, type TelemetryEventInput, type TelemetryLogLevel, type TelemetryOperation, type TelemetryProvider, type TelemetryQuery, type TelemetryQueryResult, type TelemetryStatus, type Unsubscribe, ValidationError, type VisionProvider, type VisionResult, Wolbarg, WolbargError, WolbargLogger, type WolbargOptions, type WolbargOptionsWithLlm, type WolbargOptionsWithoutLlm, bgeReranker, bm25, cohereReranker, createChunkingStrategy, createCompressionProvider, createDatabaseProvider, createEmbeddingProvider, createLlmProvider, createStorageProvider, createTelemetryProvider, wolbarg as createWolbarg, crossEncoder, geminiEmbedding, geminiVision, jinaReranker, lmStudioEmbedding, meta, neo4jGraph, ollamaEmbedding, ollamaLlm, openRouterEmbedding, openRouterLlm, openaiCompatibleEmbedding, openaiCompatibleLlm, openaiEmbedding, openaiLlm, openaiReranker, openaiVision, postgres, postgresConfig, runBenchmark, sqlite, sqliteCheckpoint, sqliteConfig, sqliteGraph, sqliteTelemetry, summarizeBenchmark, tesseract, togetherEmbedding, vllmEmbedding, wolbarg$1 as wolbarg, wrapOperationError };