refactor(reconcile): consume @intentius/chant/reconcile primitive (#20) - #39
Merged
Conversation
Swaps the vendored provider-agnostic reconcile core for the shared @intentius/chant/reconcile subpath (chant 0.9.0, chant#501/#502). src/reconcile/core.ts is now a thin re-export, so the in-repo import surface (diff.ts / guardrails.ts / index.ts) is unchanged. Bumps @intentius/chant + @intentius/chant-lexicon-github to ^0.9.0. core.test.ts is retained as an integration check that the consumed primitive behaves as warden expects. 468 tests green; action bundle rebuilt (primitive inlined). Closes #20. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #20. The cross-repo other half of the in-repo extraction (#38).
Now that chant ships the provider-agnostic reconcile primitive (chant#502, released as
@intentius/chant@0.9.0), warden consumes it instead of vendoring its own copy.Changes
@intentius/chantand@intentius/chant-lexicon-githubto^0.9.0.src/reconcile/core.tsis now a thin re-export of@intentius/chant/reconcile(export * from …). The in-repo import surface is unchanged —diff.ts,guardrails.ts, andindex.tsstill import from./core.js, so the 13 cycles and the guardrail layer are untouched.Why this closes #20
The reconcile core (change-set model,
diffCollection, guardrail framework) now lives in one place — chant — and every git-host warden (github, and future gitlab/forgejo) consumes@intentius/chant/reconcilerather than vendoring. The deferral condition ("a second git-host warden exists") is moot now that the seam is shared.Verification
npx tsc --noEmitcleannpm testgreen (468 tests;core.test.tsretained as an integration check that the consumed primitive behaves as expected)diffCollection/runGuardrailChecksin the bundle)@intentius/chant@0.9.0+@intentius/chant-lexicon-github@0.9.0confirmed live on npm🤖 Generated with Claude Code