mirror of
https://github.com/bitbaum/sitekit.git
synced 2026-12-04 05:37:31 +01:00
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
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
MIT License
|
|
|
|
Copyright (c) 2026 Mao Nakamoto
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|