Skip to main content
@obversa/memory is the memory port. An adapter has one scope and one execute method. Paths start with /memories. The package also exports ground, curate, and consolidate.

Install

Node.js 22.12 or later is required.

Public entry points

From @obversa/memory (packages/memory/src/index.ts):
  • Memory: scope plus execute(command).
  • MEMORY_ROOT: /memories.
  • Commands: view, create, str_replace, insert, delete, rename.
  • ground: read declared sources into one bounded prompt.
  • curate: select grounded sources with one supplied function.
  • consolidate: write one validated result with one supplied function.
Subpath @obversa/memory/testing is the adapter conformance kit.

Runnable example

From an Obversa checkout, run pnpm example:packages. The first program in that script is examples/packages/memory.ts: