Commit Graph

2 Commits

Author SHA1 Message Date
3a7b4f2456 feat(core): adopt remark/unified as the internal Markdown parser (ADR 0002)
Add unified + remark-parse as dependencies of @kitchen-md/core and wire a
private internal processor (packages/core/src/markdown.ts) that parses
CommonMark into mdast. remark stays an implementation detail and is not
re-exported from the package entry, so consumers take no transitive remark
dependency (ADR 0003).

The OFM wikilink plugin and the public parse/AST surface are deferred to the
core-parser spec: canonical remark-wiki-link@2.0.1 targets an old micromark
generation incompatible with remark-parse@11, and OFM plus annotation
handling is that spec's scope.

This also exercises the flake's bun2nix vendoring against a real dependency
closure (58 vendored packages); nix build still compiles a working binary
offline in the sandbox.
2026-07-25 21:11:01 -04:00
09b9d432c2 build: package the kitchen CLI as a Nix flake (task 0001)
Add a flake-parts flake whose default package Bun-compiles the kitchen
CLI into a self-contained native binary, built in the sandbox with
dependencies vendored by bun2nix.

Bun is pinned via a dedicated nixpkgs-bun input (Bun 1.3.13) that
bun2nix follows, so nixpkgs can track unstable without moving the
compile toolchain onto a release that emits empty binaries.

bun2nix is both a flake input and an npm devDependency, and a
postinstall hook keeps the checked-in bun.nix in sync with the lockfile.
2026-07-25 20:54:05 -04:00