@commentray/core
v0.3.6
Published
Commentray models, validation, SCM adapters, and staleness helpers
Readme
@commentray/core
Models, TOML config parsing, JSON metadata validation + migrations, Git SCM adapter, and staleness helpers for Commentray — a side-by-side "commentary track" for code.
This package is the library all other Commentray packages build on. It has no UI and no process side-effects.
Install
npm install @commentray/coreUse
import { commentrayMarkdownPath, loadCommentrayConfig, validateProject } from "@commentray/core";
const config = await loadCommentrayConfig(process.cwd());
const report = await validateProject(process.cwd());
for (const issue of report.issues) {
console.log(issue.level, issue.message);
}Paths, schema, and anchor grammar are specified under docs/spec/ in the monorepo.
