@0xsarwagya/ontoly-cache
v1.3.5
Published
Local graph artifact persistence for Ontoly.
Maintainers
Readme
@0xsarwagya/ontoly-cache
Responsibility
@0xsarwagya/ontoly-cache reads and writes local graph artifacts, indexes, and
cache metadata. It does not decide artifact meaning, perform graph construction,
run queries, or expose user-facing commands.
See the repository architecture map for package boundaries.
Installation
pnpm add @0xsarwagya/ontoly-cacheAPI
persistGraph(graph, options)writes canonical graph artifacts.loadGraph(options)reads graph artifacts from disk.loadOrCreateSemanticIndex(options)loads or derives the Semantic Index.persistCompilerSnapshot(graph, options, manifest, products)atomically commits the reusable graph and frontend products, then the manifest thatmanifest(productsDigest)returns, last.loadCompilerProductsWithDigestreads the products back with the sha256 of their file.
Example
import { loadGraph } from "@0xsarwagya/ontoly-cache";
const graph = await loadGraph({ root: process.cwd(), directory: ".ontoly" });Status
Stable v1.0.0 package. Public contracts are governed by the Software Graph specification and RFC process.
