Commit Graph

4 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
5841ae5de8 chore: add Biome and document design decisions from grill session
- Add @biomejs/biome 2.5.3 with 2-space indent, double quotes, trailing commas
- Add lint and format scripts to root package.json
- Update CONTEXT.md: resolve Structured Output shape, add Document AST, Block, Inline Node terms
- Add ADR 0002 (remark as internal Markdown parser)
- Add ADR 0003 (core defines own AST types)
- Add spec: core-parser (Parser implementation and Document AST)
- Add spec: cli-view (kitchen view <file> command)
2026-07-08 23:29:09 -04:00
220f73d8f7 chore: scaffold Bun workspace monorepo
Sets up the initial project structure: two packages (@kitchen-md/core
and @kitchen-md/bin), shared tsconfig, shared fixtures, per-package
test stubs (unit, integration, smoke), .gitignore, and project
CLAUDE.md with Conventional Commits convention.
2026-07-08 21:33:20 -04:00