Skip to content

refactor: rename *Info types to domain-role names#619

Merged
Wirasm merged 2 commits intomainfrom
kild/rename-info-types-git
Feb 28, 2026
Merged

refactor: rename *Info types to domain-role names#619
Wirasm merged 2 commits intomainfrom
kild/rename-info-types-git

Conversation

@Wirasm
Copy link
Owner

@Wirasm Wirasm commented Feb 28, 2026

Summary

  • Rename WorktreeInfoWorktreeState, ProjectInfoGitProjectState, BranchInfoBranchState in kild-git
  • Rename PrInfoPullRequest in kild-core forge module
  • Rename NativeWindowInfoNativeWindow in kild-core terminal module
  • Update all usages across 22 files (kild-git, kild-core, kild CLI, docs)

Pure rename — no behavior changes. Per CLAUDE.md naming contract: "Name types by domain role, not implementation detail."

Test plan

  • cargo fmt --check — 0 violations
  • cargo clippy --all -- -D warnings — 0 warnings
  • cargo test --all — all tests pass (3 pre-existing env-dependent test failures unrelated to this change)
  • cargo build --all — clean build

Closes #522

Rename generic *Info types to more descriptive domain-role names:

- WorktreeInfo → WorktreeState (kild-git)
- ProjectInfo → GitProjectState (kild-git)
- BranchInfo → BranchState (kild-git)
- PrInfo → PullRequest (kild-core forge)
- NativeWindowInfo → NativeWindow (kild-core terminal)

Pure rename, no behavior changes. Updates all usages across kild-git,
kild-core, kild CLI, and documentation.

Closes #522
Align test function names with the renamed types:
- test_worktree_info → test_worktree_state
- test_worktree_info_preserves_original_branch_name → test_worktree_state_preserves_original_branch_name
- test_project_info → test_git_project_state
- test_branch_info → test_branch_state
- test_pr_info_serde_roundtrip → test_pull_request_serde_roundtrip
- test_pr_info_with_none_summaries → test_pull_request_with_none_summaries
- test_native_window_info_fields → test_native_window_fields
@Wirasm Wirasm merged commit 7a4d1eb into main Feb 28, 2026
6 checks passed
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.

refactor: rename *Info types in git/, forge/, and terminal/ to domain-role names

1 participant