mnemocyte 0.2.0 → 0.3.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/README.md CHANGED
@@ -16,7 +16,7 @@ logs, and duplicate-consolidation tools on top of your existing infrastructure.
16
16
  - Hybrid recall with vector similarity, lexical matching, recency, confidence,
17
17
  access count, and importance.
18
18
  - Prompt-ready context output in Markdown, plain text, or XML.
19
- - Provider retries, operation timeouts, and caller `AbortSignal` cancellation.
19
+ - Provider retries, per-attempt timeouts, and caller `AbortSignal` cancellation.
20
20
  - Pruning, duplicate detection, audit logs, and experimental consolidation.
21
21
 
22
22
  Mnemocyte is ESM-only. Use `import`, not CommonJS `require`.
@@ -70,6 +70,9 @@ When `databaseUrl` is omitted, Mnemocyte uses the in-memory backend.
70
70
  ## Embedder
71
71
 
72
72
  Mnemocyte accepts any embedder that returns one vector per input text.
73
+ Each vector must match `embedder.dimensions` and contain only finite numbers;
74
+ invalid provider output fails with `MnemocyteError` code `"EMBEDDING"` before
75
+ anything is stored.
73
76
 
74
77
  ```ts
75
78
  const client = createMnemocyte({
@@ -149,11 +152,11 @@ Inside this repository, the equivalent development shortcut is:
149
152
  pnpm migration:render -- --dimensions 768 --out migrations/0000_initial.768.sql
150
153
  ```
151
154
 
152
- The Postgres backend supports one embedding dimension per installation. On the
153
- first Postgres operation, Mnemocyte reads `mnemocyte_meta` and validates it
154
- against `embedder.dimensions` before calling the embedder. A mismatch throws a
155
- `MnemocyteError` with code `"CONFIG"`; missing v0.2.0 metadata throws code
156
- `"MIGRATION"`.
155
+ The Postgres backend supports one embedding dimension per installation. Before
156
+ the first embedding-dependent Postgres operation, Mnemocyte reads
157
+ `mnemocyte_meta` and validates it against `embedder.dimensions` before calling
158
+ the embedder. A mismatch throws a `MnemocyteError` with code `"CONFIG"`; missing
159
+ v0.2.0 metadata throws code `"MIGRATION"`.
157
160
 
158
161
  Use the embedding dimension documented for your chosen model, render or apply a
159
162
  matching schema, and keep one dimension per Mnemocyte installation.
@@ -191,6 +194,31 @@ await client.remember({
191
194
  });
192
195
  ```
193
196
 
197
+ Memory metadata is persisted JSON value data. Use the exported `JsonObject`
198
+ and `JsonValue` types; unsupported values such as `undefined`, functions,
199
+ bigints, non-finite numbers, class instances, or cyclic objects are rejected
200
+ with `MnemocyteError` code `"VALIDATION"`. Mnemocyte deep-clones metadata when
201
+ writing and reading, so later mutations do not change stored state.
202
+
203
+ For batches, cancellation belongs to the whole operation:
204
+
205
+ ```ts
206
+ const abortController = new AbortController();
207
+
208
+ const memories = await client.rememberMany({
209
+ inputs: [
210
+ { entityId: "user_123", content: "Likes concise answers." },
211
+ { entityId: "user_123", content: "Uses TypeScript." },
212
+ ],
213
+ signal: abortController.signal,
214
+ });
215
+ ```
216
+
217
+ The positional `rememberMany(inputs)` form remains as a deprecated pre-v1
218
+ compatibility overload and treats its first item's signal as the batch signal.
219
+ New code should use `{ inputs, signal }`; individual items in the object form do
220
+ not have cancellation signals.
221
+
194
222
  ### `recall`
195
223
 
196
224
  ```ts
@@ -213,6 +241,9 @@ const context = await client.buildContext({
213
241
  });
214
242
  ```
215
243
 
244
+ When supplied, `maxTokens` must be a positive integer or `buildContext` rejects
245
+ with `"VALIDATION"`. Omitting it keeps the default token-budget path.
246
+
216
247
  ### `prune`
217
248
 
218
249
  ```ts
@@ -252,6 +283,12 @@ const events = await client.listAuditLog({
252
283
  });
253
284
  ```
254
285
 
286
+ Ordinary audit writes are best-effort: an audit storage failure does not fail
287
+ the primary client operation, so `listAuditLog` returns only events that were
288
+ successfully persisted. Postgres consolidation is the exception; its
289
+ `"memory.superseded"` events share the consolidation transaction and commit or
290
+ roll back with it.
291
+
255
292
  ### `experimental.consolidate`
256
293
 
257
294
  ```ts
@@ -324,15 +361,21 @@ const client = createMnemocyte({
324
361
  });
325
362
  ```
326
363
 
364
+ Retrieval weights must be finite and non-negative, with a non-zero effective
365
+ total after defaults are applied. `recencyHalfLifeDays` and `accessSaturation`
366
+ must be positive finite numbers, and `candidateMultiplier` must be an integer
367
+ of at least 1. Invalid tuning is rejected at client construction with
368
+ `MnemocyteError` code `"CONFIG"`.
369
+
327
370
  ## Roadmap
328
371
 
329
372
  Planned larger milestones:
330
373
 
331
- - `MemoryStore` abstraction
374
+ - public `MemoryStore` adapter surface
332
375
  - `drizzleStore(db)` for caller-owned Drizzle clients
333
376
  - `@mnemocyte/mcp`
334
377
 
335
- See [ROADMAP.md](./ROADMAP.md).
378
+ See [ROADMAP.md](./docs/ROADMAP.md).
336
379
 
337
380
  ## Pre-v1 Notes
338
381
 
@@ -340,6 +383,9 @@ Current behavior:
340
383
 
341
384
  - `createMnemocyte()` selects either the in-memory backend or the
342
385
  Postgres/pgvector backend.
386
+ - Both backends run through an internal `MemoryStore` boundary and shared
387
+ client orchestration; `MemoryStore` is not exported as a public adapter API
388
+ yet.
343
389
  - Postgres schema setup is explicit; the client does not create tables or
344
390
  indexes for you.
345
391
  - `findDuplicates`, audit-log workflows, and `experimental.consolidate` are
@@ -347,34 +393,99 @@ Current behavior:
347
393
 
348
394
  Known limitations before v1:
349
395
 
350
- - The two current backends share behavior by convention rather than through a
351
- formal `MemoryStore` adapter boundary.
352
- - Configured provider timeouts fail the Mnemocyte operation with `"TIMEOUT"`;
353
- actively aborting the underlying provider request on timeout remains a
354
- pre-v1 hardening follow-up.
396
+ - The internal `MemoryStore` boundary is not a public adapter API yet.
397
+ `drizzleStore(db)` is the planned first public store adapter.
398
+ - Configured provider timeouts abort the per-attempt `AbortSignal`; the
399
+ underlying provider request only stops promptly when the embedder honors that
400
+ signal.
355
401
  - Postgres dimension metadata is installation-wide. Mixed embedding dimensions
356
402
  in one database are intentionally out of scope for now.
357
403
 
358
404
  Planned v1 direction:
359
405
 
360
- - Extract a `MemoryStore` boundary so storage adapters own persistence while
361
- shared core code owns validation, embedding, scoring, observability,
362
- resilience, and context building.
406
+ - Keep storage adapters behind `MemoryStore` while shared core code owns
407
+ validation, embedding, scoring, observability, resilience, and context
408
+ building.
363
409
  - Keep root `mnemocyte` imports provider-SDK-free.
364
410
  - Keep migrations, dimensions, and production index choices explicit.
365
411
 
366
412
  ## Development
367
413
 
414
+ ### Prerequisites
415
+
416
+ - Node.js 22.18 or newer. CI tests the minimum 22.18 release and Node 24.
417
+ - pnpm 11.1.1, matching the `packageManager` field in `package.json`.
418
+ - Postgres with pgvector only when you want to run the integration suite.
419
+
420
+ Clone the repository and install its locked dependencies:
421
+
422
+ ```bash
423
+ git clone https://github.com/Meenic/mnemocyte.git
424
+ cd mnemocyte
425
+ pnpm install --frozen-lockfile
426
+ ```
427
+
428
+ Mnemocyte is a library, not a standalone server. Use the quick-start example
429
+ from a consuming TypeScript project, or run the repository build in watch mode
430
+ while developing:
431
+
432
+ ```bash
433
+ pnpm dev
434
+ ```
435
+
436
+ Create the publishable ESM artifacts in `dist/` with:
437
+
438
+ ```bash
439
+ pnpm build
440
+ ```
441
+
442
+ ### Validation
443
+
444
+ Run the same main gates used by CI before committing:
445
+
368
446
  ```bash
369
447
  pnpm checktypes
370
448
  pnpm lint
371
449
  pnpm test
372
- pnpm run test:integration
373
450
  pnpm run pack:check
374
451
  ```
375
452
 
376
- `test:integration` skips when `DATABASE_URL` is not set.
453
+ `pnpm test` builds the package, runs unit behavior, verifies package exports,
454
+ and type-checks the public declarations. `pnpm lint` is a read-only formatting,
455
+ lint, and import-order check; use `pnpm lint:fix` to apply its safe fixes. The
456
+ Postgres suite is separate:
457
+
458
+ ```bash
459
+ DATABASE_URL=postgres://... pnpm run test:integration
460
+ ```
461
+
462
+ On PowerShell, set the environment variable for the current process first:
463
+
464
+ ```powershell
465
+ $env:DATABASE_URL = "postgres://..."
466
+ pnpm run test:integration
467
+ ```
468
+
469
+ `test:integration` skips when `DATABASE_URL` is not set. The database must have
470
+ pgvector available; the test applies the bundled migrations.
471
+
472
+ ### Where changes belong
473
+
474
+ - Public exports and types: `src/index.ts`, `src/types.ts`, and `src/errors.ts`.
475
+ - Shared client behavior: `src/memory/client-core.ts`; backend mechanics stay
476
+ in `src/memory/in-memory.ts` or `src/memory/postgres.ts`.
477
+ - Postgres schema and SQL: `src/db/schema.ts` and `src/db/queries/`. Schema
478
+ changes require an explicit file under `migrations/`.
479
+ - Provider helpers: `src/embedders/`; keep the root package provider-SDK-free.
480
+ - Retrieval and context rendering: `src/retrieval/` and `src/context/`.
481
+ - Tests: mirror the affected responsibility under `test/`; package boundary
482
+ checks live under `test/package/`, and real Postgres coverage under
483
+ `test/integration/`.
484
+
485
+ See [AGENTS.md](./AGENTS.md) for repository rules and the validation/release
486
+ policy. Read [ARCHITECTURE.md](./docs/ARCHITECTURE.md) before changing module
487
+ boundaries or the public surface.
377
488
 
378
489
  ## Architecture
379
490
 
380
- See [ARCHITECTURE.md](./ARCHITECTURE.md).
491
+ See [ARCHITECTURE.md](./docs/ARCHITECTURE.md).
@@ -1,4 +1,4 @@
1
- import { c as Embedder } from "../types-DXEGcc47.mjs";
1
+ import { c as Embedder } from "../types-gOPLre4V.mjs";
2
2
 
3
3
  //#region src/embedders/openai.d.ts
4
4
  interface OpenAIEmbedderOptions {
@@ -1,4 +1,4 @@
1
- import { t as MnemocyteError } from "../errors-BG3-mNur.mjs";
1
+ import { t as MnemocyteError } from "../errors-B_7ZdjEO.mjs";
2
2
  //#region src/embedders/openai.ts
3
3
  const KNOWN_MODEL_DIMENSIONS = {
4
4
  "text-embedding-3-small": 1536,
@@ -38,8 +38,9 @@ var MnemocyteError = class extends Error {
38
38
  /**
39
39
  * Type guard for {@link MnemocyteError}.
40
40
  *
41
- * Prefer this over `instanceof` when working across module boundaries or
42
- * bundlers where multiple copies of the class may exist.
41
+ * This guard uses `instanceof` and recognizes errors created by the same loaded
42
+ * Mnemocyte class. It does not recognize structurally similar errors or errors
43
+ * created by another installed copy of the package.
43
44
  *
44
45
  * @param error - Value to test (typically a caught `unknown`).
45
46
  * @returns `true` if `error` is a {@link MnemocyteError}.
@@ -50,4 +51,4 @@ function isMnemocyteError(error) {
50
51
  //#endregion
51
52
  export { isMnemocyteError as n, MnemocyteError as t };
52
53
 
53
- //# sourceMappingURL=errors-BG3-mNur.mjs.map
54
+ //# sourceMappingURL=errors-B_7ZdjEO.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-BG3-mNur.mjs","names":[],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * Stable, machine-readable error code attached to every {@link MnemocyteError}.\n *\n * - `\"CONFIG\"` — invalid client configuration (e.g. missing or malformed embedder).\n * - `\"VALIDATION\"` — invalid argument passed to a client method.\n * - `\"DB\"` — Postgres or driver-level failure.\n * - `\"EMBEDDING\"` — embedder threw or returned an invalid vector.\n * - `\"NOT_FOUND\"` — referenced memory or entity does not exist.\n * - `\"MIGRATION\"` — schema/migration check failed against the target database.\n * - `\"TIMEOUT\"` — a provider call exceeded its configured timeout.\n * - `\"ABORTED\"` — the operation was cancelled via an `AbortSignal`.\n */\nexport type MnemocyteErrorCode =\n\t| \"CONFIG\"\n\t| \"VALIDATION\"\n\t| \"DB\"\n\t| \"EMBEDDING\"\n\t| \"NOT_FOUND\"\n\t| \"MIGRATION\"\n\t| \"TIMEOUT\"\n\t| \"ABORTED\";\n\n/**\n * Error type thrown by every public Mnemocyte API.\n *\n * Use the {@link MnemocyteError.code} property — not the message — to branch\n * on failure modes, or call {@link isMnemocyteError} as a type guard when\n * working with `unknown` errors.\n *\n * @example\n * ```ts\n * try {\n * await client.recall({ entityId: \"u1\", query: \"hi\" });\n * } catch (err) {\n * if (isMnemocyteError(err) && err.code === \"DB\") {\n * // handle database failure\n * }\n * throw err;\n * }\n * ```\n */\nexport class MnemocyteError extends Error {\n\t/** Stable, machine-readable failure code. See {@link MnemocyteErrorCode}. */\n\treadonly code: MnemocyteErrorCode;\n\t/** Underlying cause, if any (e.g. an original driver or embedder error). */\n\toverride readonly cause?: unknown;\n\n\t/**\n\t * @param message - Human-readable error message.\n\t * @param code - Stable failure code; see {@link MnemocyteErrorCode}.\n\t * @param cause - Optional underlying cause (driver error, network error, etc.).\n\t */\n\tconstructor(message: string, code: MnemocyteErrorCode, cause?: unknown) {\n\t\tsuper(message);\n\t\tthis.name = \"MnemocyteError\";\n\t\tthis.code = code;\n\t\tthis.cause = cause;\n\t}\n}\n\n/**\n * Type guard for {@link MnemocyteError}.\n *\n * Prefer this over `instanceof` when working across module boundaries or\n * bundlers where multiple copies of the class may exist.\n *\n * @param error - Value to test (typically a caught `unknown`).\n * @returns `true` if `error` is a {@link MnemocyteError}.\n */\nexport function isMnemocyteError(error: unknown): error is MnemocyteError {\n\treturn error instanceof MnemocyteError;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyCA,IAAa,iBAAb,cAAoC,MAAM;;CAEzC;;CAEA;;;;;;CAOA,YAAY,SAAiB,MAA0B,OAAiB;EACvE,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;CACd;AACD;;;;;;;;;;AAWA,SAAgB,iBAAiB,OAAyC;CACzE,OAAO,iBAAiB;AACzB"}
1
+ {"version":3,"file":"errors-B_7ZdjEO.mjs","names":[],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * Stable, machine-readable error code attached to every {@link MnemocyteError}.\n *\n * - `\"CONFIG\"` — invalid client configuration (e.g. missing or malformed embedder).\n * - `\"VALIDATION\"` — invalid argument passed to a client method.\n * - `\"DB\"` — Postgres or driver-level failure.\n * - `\"EMBEDDING\"` — embedder threw or returned an invalid vector.\n * - `\"NOT_FOUND\"` — referenced memory or entity does not exist.\n * - `\"MIGRATION\"` — schema/migration check failed against the target database.\n * - `\"TIMEOUT\"` — a provider call exceeded its configured timeout.\n * - `\"ABORTED\"` — the operation was cancelled via an `AbortSignal`.\n */\nexport type MnemocyteErrorCode =\n\t| \"CONFIG\"\n\t| \"VALIDATION\"\n\t| \"DB\"\n\t| \"EMBEDDING\"\n\t| \"NOT_FOUND\"\n\t| \"MIGRATION\"\n\t| \"TIMEOUT\"\n\t| \"ABORTED\";\n\n/**\n * Error type thrown by every public Mnemocyte API.\n *\n * Use the {@link MnemocyteError.code} property — not the message — to branch\n * on failure modes, or call {@link isMnemocyteError} as a type guard when\n * working with `unknown` errors.\n *\n * @example\n * ```ts\n * try {\n * await client.recall({ entityId: \"u1\", query: \"hi\" });\n * } catch (err) {\n * if (isMnemocyteError(err) && err.code === \"DB\") {\n * // handle database failure\n * }\n * throw err;\n * }\n * ```\n */\nexport class MnemocyteError extends Error {\n\t/** Stable, machine-readable failure code. See {@link MnemocyteErrorCode}. */\n\treadonly code: MnemocyteErrorCode;\n\t/** Underlying cause, if any (e.g. an original driver or embedder error). */\n\toverride readonly cause?: unknown;\n\n\t/**\n\t * @param message - Human-readable error message.\n\t * @param code - Stable failure code; see {@link MnemocyteErrorCode}.\n\t * @param cause - Optional underlying cause (driver error, network error, etc.).\n\t */\n\tconstructor(message: string, code: MnemocyteErrorCode, cause?: unknown) {\n\t\tsuper(message);\n\t\tthis.name = \"MnemocyteError\";\n\t\tthis.code = code;\n\t\tthis.cause = cause;\n\t}\n}\n\n/**\n * Type guard for {@link MnemocyteError}.\n *\n * This guard uses `instanceof` and recognizes errors created by the same loaded\n * Mnemocyte class. It does not recognize structurally similar errors or errors\n * created by another installed copy of the package.\n *\n * @param error - Value to test (typically a caught `unknown`).\n * @returns `true` if `error` is a {@link MnemocyteError}.\n */\nexport function isMnemocyteError(error: unknown): error is MnemocyteError {\n\treturn error instanceof MnemocyteError;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyCA,IAAa,iBAAb,cAAoC,MAAM;;CAEzC;;CAEA;;;;;;CAOA,YAAY,SAAiB,MAA0B,OAAiB;EACvE,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;CACd;AACD;;;;;;;;;;;AAYA,SAAgB,iBAAiB,OAAyC;CACzE,OAAO,iBAAiB;AACzB"}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as RetrievalConfig, C as MnemocyteOperation, D as PruneResult, E as PruneInput, M as RetrievalScoreWeights, N as RetrievalScores, O as RecallInput, P as TokenCounter, S as MnemocyteObservationPhase, T as ProviderResilienceConfig, _ as MemoryWithScore, a as ConsolidateResult, b as MnemocyteConfig, c as Embedder, d as FindDuplicatesInput, f as GlobalStats, g as MemoryType, h as Memory, i as ConsolidateInput, j as RetrievalExplanation, k as RememberInput, l as EntityStats, m as ListAuditLogInput, n as AuditEvent, o as ContextFormat, p as ImportanceLevel, r as BuildContextInput, s as DuplicatePair, t as AuditConfig, u as ExperimentalMnemocyteClient, v as MnemocyteBackend, w as ObservabilityConfig, x as MnemocyteObservation, y as MnemocyteClient } from "./types-DXEGcc47.mjs";
1
+ import { A as RecallInput, C as MnemocyteObservation, D as ProviderResilienceConfig, E as ObservabilityConfig, F as RetrievalScoreWeights, I as RetrievalScores, L as TokenCounter, M as RememberManyInput, N as RetrievalConfig, O as PruneInput, P as RetrievalExplanation, S as MnemocyteConfig, T as MnemocyteOperation, _ as Memory, a as ConsolidateResult, b as MnemocyteBackend, c as Embedder, d as FindDuplicatesInput, f as GlobalStats, g as ListAuditLogInput, h as JsonValue, i as ConsolidateInput, j as RememberInput, k as PruneResult, l as EntityStats, m as JsonObject, n as AuditEvent, o as ContextFormat, p as ImportanceLevel, r as BuildContextInput, s as DuplicatePair, t as AuditConfig, u as ExperimentalMnemocyteClient, v as MemoryType, w as MnemocyteObservationPhase, x as MnemocyteClient, y as MemoryWithScore } from "./types-gOPLre4V.mjs";
2
2
 
3
3
  //#region src/client.d.ts
4
4
  /**
@@ -15,8 +15,9 @@ import { A as RetrievalConfig, C as MnemocyteOperation, D as PruneResult, E as P
15
15
  *
16
16
  * @param config - Client configuration. {@link MnemocyteConfig.embedder} is required.
17
17
  * @returns A {@link MnemocyteClient} instance.
18
- * @throws {MnemocyteError} With code `"CONFIG"` if `embedder` is missing or
19
- * invalid, or `"VALIDATION"` if `databaseUrl` is provided but empty.
18
+ * @throws {MnemocyteError} With code `"CONFIG"` if `embedder`, retrieval
19
+ * tuning, or the database URL is malformed, or `"VALIDATION"` if
20
+ * `databaseUrl` is explicitly empty.
20
21
  *
21
22
  * @example Postgres-backed client
22
23
  * ```ts
@@ -76,13 +77,14 @@ declare class MnemocyteError extends Error {
76
77
  /**
77
78
  * Type guard for {@link MnemocyteError}.
78
79
  *
79
- * Prefer this over `instanceof` when working across module boundaries or
80
- * bundlers where multiple copies of the class may exist.
80
+ * This guard uses `instanceof` and recognizes errors created by the same loaded
81
+ * Mnemocyte class. It does not recognize structurally similar errors or errors
82
+ * created by another installed copy of the package.
81
83
  *
82
84
  * @param error - Value to test (typically a caught `unknown`).
83
85
  * @returns `true` if `error` is a {@link MnemocyteError}.
84
86
  */
85
87
  declare function isMnemocyteError(error: unknown): error is MnemocyteError;
86
88
  //#endregion
87
- export { type AuditConfig, type AuditEvent, type BuildContextInput, type ConsolidateInput, type ConsolidateResult, type ContextFormat, type DuplicatePair, type Embedder, type EntityStats, type ExperimentalMnemocyteClient, type FindDuplicatesInput, type GlobalStats, type ImportanceLevel, type ListAuditLogInput, type Memory, type MemoryType, type MemoryWithScore, type MnemocyteBackend, type MnemocyteClient, type MnemocyteConfig, MnemocyteError, type MnemocyteErrorCode, type MnemocyteObservation, type MnemocyteObservationPhase, type MnemocyteOperation, type ObservabilityConfig, type ProviderResilienceConfig, type PruneInput, type PruneResult, type RecallInput, type RememberInput, type RetrievalConfig, type RetrievalExplanation, type RetrievalScoreWeights, type RetrievalScores, type TokenCounter, createMnemocyte, isMnemocyteError };
89
+ export { type AuditConfig, type AuditEvent, type BuildContextInput, type ConsolidateInput, type ConsolidateResult, type ContextFormat, type DuplicatePair, type Embedder, type EntityStats, type ExperimentalMnemocyteClient, type FindDuplicatesInput, type GlobalStats, type ImportanceLevel, type JsonObject, type JsonValue, type ListAuditLogInput, type Memory, type MemoryType, type MemoryWithScore, type MnemocyteBackend, type MnemocyteClient, type MnemocyteConfig, MnemocyteError, type MnemocyteErrorCode, type MnemocyteObservation, type MnemocyteObservationPhase, type MnemocyteOperation, type ObservabilityConfig, type ProviderResilienceConfig, type PruneInput, type PruneResult, type RecallInput, type RememberInput, type RememberManyInput, type RetrievalConfig, type RetrievalExplanation, type RetrievalScoreWeights, type RetrievalScores, type TokenCounter, createMnemocyte, isMnemocyteError };
88
90
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/client.ts","../src/errors.ts"],"mappings":";;;;;AA+BA;;;;;;;;AAAyE;;;;ACnBzE;;;;AAA8B;AA6B9B;;;;;;iBDVgB,eAAA,CAAgB,MAAA,EAAQ,eAAA,GAAkB,eAAe;;;;;;AAAzE;;;;;;;;AAAyE;KCnB7D,kBAAA;;;AAAZ;;;;AAA8B;AA6B9B;;;;;;;;;;;;cAAa,cAAA,SAAuB,KAAA;EAWvB;EAAA,SATH,IAAA,EAAM,kBAAA;EASc;EAAA,SAPX,KAAA;EAOoD;AAAA;AAiBvE;;;cAjBa,OAAA,UAAiB,IAAA,EAAM,kBAAA,EAAoB,KAAA;AAAA;;;;AAiBiB;;;;;;iBAAzD,gBAAA,CAAiB,KAAA,YAAiB,KAAA,IAAS,cAAc"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/client.ts","../src/errors.ts"],"mappings":";;;;;AAoCA;;;;;;;;AAAyE;;;;ACxBzE;;;;AAA8B;AA6B9B;;;;;;;iBDLgB,eAAA,CAAgB,MAAA,EAAQ,eAAA,GAAkB,eAAe;;;;;;AAAzE;;;;;;;;AAAyE;KCxB7D,kBAAA;;;AAAZ;;;;AAA8B;AA6B9B;;;;;;;;;;;;cAAa,cAAA,SAAuB,KAAA;EAWvB;EAAA,SATH,IAAA,EAAM,kBAAA;EASc;EAAA,SAPX,KAAA;EAOoD;AAAA;AAkBvE;;;cAlBa,OAAA,UAAiB,IAAA,EAAM,kBAAA,EAAoB,KAAA;AAAA;;;;AAkBiB;;;;;;;iBAAzD,gBAAA,CAAiB,KAAA,YAAiB,KAAA,IAAS,cAAc"}