Skip to content

feat: align companion references with shadcn registry items#10

Merged
jal-co merged 1 commit into
mainfrom
feat/shadcn-item-alignment
Jul 13, 2026
Merged

feat: align companion references with shadcn registry items#10
jal-co merged 1 commit into
mainfrom
feat/shadcn-item-alignment

Conversation

@jal-co

@jal-co jal-co commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

What

Makes the shadcnItem companion reference map explicitly to the current upstream registry-item schema: schema URL, name, registry type, hosted URL, shared content canonicalization, and content digest.

Why

Closes #5. Hosted uploads need a testable cross-document contract without copying or forking shadcn's install fields.

How

  • Companion references; canonical shadcn document owns files/dependencies/CSS/env/docs.
  • modulora-content-v0 exactly documents the web + CLI file digest encoding.
  • Paired conformance validates name/type parity, page/file target rules, digest reproduction, and optional meta.contentSha256 consistency.

Testing

34/34 tests pass, including name mismatch and registry:page missing-target failures.

Screenshots

n/a

Closes #5.

shadcnItem now explicitly identifies the upstream schema URL, item name
and registry type, hosted URL, modulora-content-v0 canonicalization, and
contentSha256. It continues to reference rather than fork: install files,
dependencies, CSS/env/docs, and registry dependencies remain solely in
the canonical shadcn document.

Define the shared web/CLI digest byte encoding in RFC 0001. Add paired
conformance fixtures and cross-document validation for name/type parity,
page/file target requirements, exact file digest reproduction, and
meta.contentSha256 consistency. Includes mismatch and missing-target
negative cases. 34/34 tests pass.

Signed-off-by: Justin Levine <20596508+jal-co@users.noreply.github.com>
@jal-co
jal-co requested review from a team as code owners July 13, 2026 16:17
@jal-co
jal-co merged commit 5b65d15 into main Jul 13, 2026
2 checks passed
@jal-co
jal-co deleted the feat/shadcn-item-alignment branch July 13, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align registry-item schema with shadcn registry format

1 participant