Skip to content

feat: add live molecule props#54

Merged
aose-yuu merged 3 commits into
mainfrom
codex/live-props
May 14, 2026
Merged

feat: add live molecule props#54
aose-yuu merged 3 commits into
mainfrom
codex/live-props

Conversation

@aose-yuu

Copy link
Copy Markdown
Contributor

Purpose

Add live molecule props so core can model parent-driven inputs without treating props as setup-only snapshots.

Summary

  • Replace setup props with a stable shallow readonly props view and add updateMoleculeProps() for adapters and core callers to sync top-level props.
  • Let get(Child, () => props) derive live child props while preserving static get(Child, props) snapshots.
  • Add toSignal(source, key) for keyed readonly signal views and publish the new public types and exports.
  • Update README with controlled molecule and event-driven composition examples.
  • Bump @sigrea/core to 0.7.0 because the molecule setup props contract changes.

Breaking change: molecule setup props are now a readonly reactive props view, and props containers must be plain objects.

Verification

  • mise run ci

@aose-yuu aose-yuu marked this pull request as ready for review May 14, 2026 10:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f27a23b4a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/molecule/props.ts Outdated
@aose-yuu aose-yuu force-pushed the codex/live-props branch from c8461a6 to b0cad51 Compare May 14, 2026 10:57
@aose-yuu aose-yuu merged commit 60fa1c4 into main May 14, 2026
1 check passed
@aose-yuu aose-yuu deleted the codex/live-props branch May 14, 2026 11:05
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