Skip to content

refactor(mutation): extract toggle dispatch into its own module - #59

Merged
IgorArkhipov merged 3 commits into
mainfrom
refactor/mutation-toggle-dispatch
Aug 17, 2026
Merged

refactor(mutation): extract toggle dispatch into its own module#59
IgorArkhipov merged 3 commits into
mainfrom
refactor/mutation-toggle-dispatch

Conversation

@IgorArkhipov

Copy link
Copy Markdown
Owner

Summary

  • Extract plan_toggle_dispatch from mutation.rs into mutation/toggle_dispatch.rs.
  • Keep the existing arm order and parent plan/apply handlers unchanged.

Test Plan

  • cargo fmt --all -- --check
  • cargo clippy -p unpin-core --all-targets --all-features --locked -- -D warnings
  • cargo test -p unpin-core --all-features --locked --test mutation --test provider_registry
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
  • cargo test --workspace --all-features --locked
  • cargo run -p unpin-cli --locked -- --help
  • cargo audit --deny warnings
  • cargo machete
  • Pi/OpenCode disposable-root host validation when release-impacting
  • Full local provider matrix run and finalized when release-impacting

Safety Checklist

  • Tests and examples do not read real home-directory provider state.
  • Tests and examples do not use .env* files.
  • Write paths use dry-run planning, confirmation, backup, audit, and restore behavior where relevant.
  • Provider changes stay within the current Claude Code, Codex CLI, Cursor,
    Pi, OpenCode, and Zed support scope.
  • Public docs or examples were updated when user-facing behavior changed.

Reviewer Notes

No behavior change. Stacked on #58 because that branch already owns the shared ID-prefix imports in mutation.rs. Dispatch arm order is unchanged; later PRs can move provider handlers behind this module.

Not a release candidate; provider matrix and live-host validation were not run.

Made with Cursor

IgorArkhipov and others added 2 commits August 16, 2026 17:34
Keep inventory construction and toggle parsing on one set of ID
literals so a prefix change cannot silently desynchronize plan/apply.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move plan_toggle_dispatch out of mutation.rs so provider plan/apply
handlers can split next without changing arm order.

Co-authored-by: Cursor <cursoragent@cursor.com>
Base automatically changed from refactor/shared-item-ids to main August 17, 2026 16:26
@IgorArkhipov
IgorArkhipov merged commit d6a6500 into main Aug 17, 2026
9 checks passed
@IgorArkhipov
IgorArkhipov deleted the refactor/mutation-toggle-dispatch branch August 17, 2026 16:32
@IgorArkhipov IgorArkhipov mentioned this pull request Aug 17, 2026
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