Skip to content

ui-05: consumable delivery - #5

Open
dmuhoro wants to merge 50 commits into
mainfrom
feat/ui-05-consumable
Open

dmuhoro wants to merge 50 commits into
mainfrom
feat/ui-05-consumable

Conversation

@dmuhoro

@dmuhoro dmuhoro commented Oct 29, 2026

Copy link
Copy Markdown
Owner

UI-05 consumable delivery: manifest, pack contract, Next.js consumer, agent skill/docs. Evidence in docs/evidence/ui-05/VERIFICATION.md

Adds negative design-lint gate, scope guard, quick-start proof,
manifest completeness, packed-tarball import, and Next.js consumer
build jobs to the verify job so every PR proves its gates can fail
and the consumption path is exercised on GitHub runners.
Records measured bundle sizes from evidence and updates consumption
instructions for the packaged engine and Next.js consumer path.
Distinguishes ESM and IIFE distribution banners so consumers can
identify which bundle format they are loading.
Produces design/contracts/components.json with tag names, attributes,
events, slots, CSS custom properties, parts, and keyboard behavior for
every registered ui-* element, generated by scripts/generate-manifest.mjs.
Adds forbidden patterns with correct/incorrect examples, manifest
location, design-lint gate requirement, and a copy-paste prompt
preamble for coding agents consuming ui-* primitives and tokens.
Covers npm and git install paths, semver/breaking-change policy,
theming with the three themes, plain HTML / Next.js / React 19 usage,
SSR hydration pitfalls, and an honest known-limits section.
Documents raw and gzip sizes for dist/engine.js, dist/engine.min.js,
packages/engine/dist/engine.js, and packages/engine/dist/engine.min.js
measured via scripts/measure-bundles.mjs.
Registers npm run manifest, test:manifest, test:pack, test:quick-start,
verify:clean-clone, and scope-guard scripts so the UI-04/UI-05 gates
run identically locally and in CI.
Adds types entry, sideEffects array, engine.d.ts to files, and a
./package.json export so consumers can resolve the package contract
and type declarations.
Bumps version to 2.1.0, adds types and sideEffects, and structures the
exports map with types/import/default entries plus a ./package.json
export for consumer contract resolution.
Rewrites scripts/generate-manifest.mjs to introspect registered ui-*
elements and observedAttributes, combine with hand-written metadata,
and emit design/contracts/components.json in Custom Elements Manifest
shape.
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.

1 participant