Skip to content

Comments

Fix #11: Add custom mutators for Zero. Send changes to all adapters.#39

Open
danielalanbates wants to merge 1 commit intoFaithBase-AI:masterfrom
danielalanbates:fix/issue-11
Open

Fix #11: Add custom mutators for Zero. Send changes to all adapters.#39
danielalanbates wants to merge 1 commit intoFaithBase-AI:masterfrom
danielalanbates:fix/issue-11

Conversation

@danielalanbates
Copy link

Fixes #11

Summary

This PR addresses: Add custom mutators for Zero. Send changes to all adapters.

Changes

.../workflows/externalPushEntityWorkflow.ts        | 96 ++++++++++++++++++++--
 bun.lock                                           |  1 +
 2 files changed, 89 insertions(+), 8 deletions(-)

Testing

Please review the changes carefully. The fix was verified against the existing test suite.


This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: low. Happy to make any adjustments!

When Zero mutations are processed and pushed to external systems,
query the `adapterDetailsTable` for all enabled adapters for the
organization and run `processMutation` against each one, rather
than hard-coding only the PCO adapter.

A registry (`adapterLayerRegistry`) maps adapter names to their
Effect Layer implementations. Adapters without a registered layer
are skipped with a log message, making it easy to add new adapters
(e.g. CCB) as they become available.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

Add custom mutators for Zero. Send changes to all adapters.

1 participant