4 Commits
Author SHA1 Message Date
bf97f09fd3 chore: rename package to @bitbaum/sitekit for npm publishing (#17)
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-05 14:41:47 +00:00
GandClaude Opus 5 9dcf9fe90c chore: add a formatter (#9)
* chore: add a formatter, matching the style this repo already writes

singleQuote=true was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.

Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format with prettier (14 files)

Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore: teach git blame to skip the reformat

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 10:33:14 +02:00
Mao NakamotoandClaude Opus 5 6585578959 feat: the section kinds a small business needs — v0.2.0
The Camille rebuild (first real site against the union) could not be
expressed, which per ADR-0003 means the union grows here, deliberately:

- hero gains optional actions (first filled, rest outlined) — a publication
  has none, a bakery has two
- cards gain an optional icon and a 4-column layout
- feature: a figure beside a story (founder, workshop) with quote and CTA
- contact: locations with address/phone/hours — exactly the fields the
  provenance rules protect; the renderer omits whatever the data omits
- faq: native details/summary, works without JavaScript
- anchor generalised to every jumpable kind, and the page schema now rejects
  a hero action or index entry pointing at a fragment nothing carries —
  Camille's hand-rolled original shipped dead links; generated sites can't

28 tests, all importing by package name.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna
2026-08-28 09:50:39 +02:00
Mao NakamotoandClaude Opus 5 1b3a6b4a93 feat: sitekit v0.1.0 — a website as data
Extracted from substrata's hosted-site model, per orangecat ADR-0003 (the
Site Factory). Three things ship:

- The closed section union (hero, prose, stats, meter, cards, definitions,
  index, table) with Zod as the SSOT — every TS type is inferred, and
  validateSite() returns path-addressed errors a generator can act on.
  Structural rules are in the schema: hero only first, no duplicate paths,
  no index entry pointing at a missing anchor.
- One set of React renderers emitting semantic utility classes only; no
  colours, faces or radii ship. The single framework seam is an injectable
  Link component defaulting to a plain anchor, so static sites and Next
  apps consume the same package.
- Provenance: a sidecar keyed by JSON path (scraped/operator/inferred/
  not-found). assertDeliverable() throws on any inferred field, which turns
  'we fabricate no facts' from a promise into a check, and not-found makes
  unknown distinct from empty.

Tests import the package by name so a broken exports map fails in CI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna
2026-08-28 09:13:38 +02:00