Skip to content

Harden CSS emission, component spec validation, and CMS session host#1

Merged
a-github-name merged 2 commits intomainfrom
harden-css-and-spec-validation
May 5, 2026
Merged

Harden CSS emission, component spec validation, and CMS session host#1
a-github-name merged 2 commits intomainfrom
harden-css-and-spec-validation

Conversation

@a-github-name
Copy link
Copy Markdown
Contributor

Summary

  • Add css-safety guards (custom-property name/value/comment escaping) and apply them across token emission, component compilation, and future layout output.
  • Validate component specs against unsafe object keys (__proto__, prototype, constructor) and unknown component states; freeze COMPONENT_STATE_NAMES as the source of truth.
  • Refuse to silently rebase a CMS session onto a different --base-url; require an explicit re-login.

Test plan

  • pnpm lint
  • pnpm check:strict (types + svelte-check)
  • pnpm test (504 tests pass, including new coverage for css-safety, component-compiler, recipe, breadcrumbs/button/toast, future, cli, create-theme)

🤖 Generated with Claude Code

a-github-name and others added 2 commits May 3, 2026 10:16
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds css-safety guards (custom-property name/value/comment escaping) used
across token emission, component compilation, and future layout output.
Validates component specs against unsafe object keys and unknown states,
and refuses to silently rebase a CMS session onto a different base URL.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@a-github-name a-github-name merged commit 9e42764 into main May 5, 2026
4 checks passed
@a-github-name a-github-name deleted the harden-css-and-spec-validation branch May 5, 2026 14:03
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