faf-cli becomes a library a VS Code extension can import — computeDrift() joins the public API and faf drift --json mirrors it on the CLI. Plus faf export --llms.
import { computeDrift, scoreFafYaml, findFafFile, generateProjectHtml } from 'faf-cli';Added
faf drift --json+ exportedcomputeDrift(fafPath, dir?)— the context-drift check moves to a pure function insrc/core/drift.ts, exported from the package index alongsidescoreFafYaml/findFafFile/generateProjectHtml. Programmatic consumers (a VS Code extension) call it directly instead of shelling out.faf drift --jsonis the CLI mirror: afaf_version/project/sourceheader over the report, raw*_msmtimes and deltas (noDate.now()in the payload). Noproject.faf→{ error, hint }JSON, exit 2. Barefaf driftis unchanged.faf export --llms— writesllms.txt(llmstxt.org shape) from the authored 6 Ws. Opt-in, like--grok.
Changed
faf hooks --installandfaf diff --installwirefaf-cli, not thefafalias — the canonical bin can't be shadowed by anotherfafon PATH.
Install
npm install -g faf-cli@7.11.0 # or: bunx faf-cli1402/1402 tests. Dual-published: faf-cli@7.11.0 + faf@7.11.0. Docs: docs.faf.one/drift.
FAF defines. AGENTS.md instructs. AI codes.