SDK
The ESM SDK exposes the same deterministic repository analysis primitives used by the CLI. The scanner runs built-in rules and appends trusted extra rules; resolve the canonical root before calling it.
import { realpath } from "node:fs/promises";
import { scanRepository } from "@cynrath/agent-context-kit";
const root = { canonicalPath: await realpath(process.cwd()) };
const result = await scanRepository(root);Read-model parity: buildStatusReport and renderStatusReport project the same ackit.status.v1 snapshot as ackit status; handoff and independence exports share the CLI contract.