refactor: add usecase layer for staging operations#3
Merged
mpyw merged 2 commits intorefactor/usecase-layerfrom Jan 2, 2026
Merged
refactor: add usecase layer for staging operations#3mpyw merged 2 commits intorefactor/usecase-layerfrom
mpyw merged 2 commits intorefactor/usecase-layerfrom
Conversation
Add usecase layer that returns structured data instead of formatting output. This is the foundation for supporting both CLI and future GUI (Wails) interfaces. New usecases: - StatusUseCase: returns StatusOutput with entries - ApplyUseCase: returns ApplyOutput with results and conflicts - AddUseCase: stages new items with structured input/output - EditUseCase: stages edits with structured input/output - DeleteUseCase: stages deletions with structured input/output - ResetUseCase: unstages or restores with structured output - DiffUseCase: compares staged vs AWS with structured diff entries The existing runners are not yet modified to use these usecases. That integration will be done in a subsequent PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## refactor/usecase-layer #3 +/- ##
==========================================================
+ Coverage 88.81% 88.84% +0.03%
==========================================================
Files 58 65 +7
Lines 4059 4393 +334
==========================================================
+ Hits 3605 3903 +298
- Misses 304 325 +21
- Partials 150 165 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Move DeleteStrategy and VersionFetcher interfaces to staging package - Rename GetStagedValue to Draft, GetCurrentValue to Baseline - Fix apply order: check name filter before empty check - Add comprehensive tests (91.9% coverage) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Owner
Author
レビュー結果修正済み
確認事項
残課題(別PR予定)
|
This was referenced Jan 19, 2026
mpyw
added a commit
that referenced
this pull request
Jan 20, 2026
Migrate all write use cases (create, update, delete, restore) from AWS-specific API interfaces to cloud-agnostic provider interfaces. Changes: - Update provider interfaces with write result types - Migrate param/create, param/update, param/delete use cases - Migrate secret/create, secret/update, secret/delete, secret/restore - Update CLI commands to use AWS adapters - Update GUI to use AWS adapters - Update all related tests with new mock implementations This completes PR #3 of the multi-cloud refactoring roadmap. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2 tasks
mpyw
added a commit
that referenced
this pull request
Jan 20, 2026
) Migrate all write use cases (create, update, delete, restore) from AWS-specific API interfaces to cloud-agnostic provider interfaces. Changes: - Update provider interfaces with write result types - Migrate param/create, param/update, param/delete use cases - Migrate secret/create, secret/update, secret/delete, secret/restore - Update CLI commands to use AWS adapters - Update GUI to use AWS adapters - Update all related tests with new mock implementations This completes PR #3 of the multi-cloud refactoring roadmap. Co-authored-by: Claude Opus 4.5 <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.
Summary
internal/usecase/staging/package with structured input/output typesThis is Step 2 of the usecase layer architecture refactoring plan.
Note: The existing runners are not yet modified to use these usecases. That integration will be done in a subsequent PR.
Data Flow (Target)
Test plan
🤖 Generated with Claude Code