Skip to content

feat(cli): introduce stash system for conflict management and backups#11

Merged
cleberhensel merged 1 commit into
mainfrom
feat/stash-impl
Oct 24, 2025
Merged

feat(cli): introduce stash system for conflict management and backups#11
cleberhensel merged 1 commit into
mainfrom
feat/stash-impl

Conversation

@cleberhensel
Copy link
Copy Markdown
Contributor

This pull request delivers the major 1.0.0 release for the vibe-devtools CLI, introducing a comprehensive, git-inspired stash system for conflict management and file backups. The release includes a robust set of CLI commands for managing stashes, enhancements to install and update workflows with conflict detection and interactive resolution, and significant improvements in test coverage for the new components. Several new dependencies are added to support these features.

Stash System Core Features:

  • Introduced a full-featured stash system with SHA-256-based file integrity checking (HashCalculator), JSONL logging (StashLogger), a lifecycle manager (StashManager), automatic conflict detection, and interactive conflict resolution with diff viewing and editor integration. [1] [2] [3] [4]

CLI Enhancements:

  • Added eight new stash-related CLI commands: list, show, apply, pop, remove, diff, save, and clear, with interactive prompts and dry-run support. [1] [2]
  • Improved install and update commands with automatic conflict detection, stash integration, and dry-run options. [1] [2]

Testing and Reliability:

  • Added comprehensive tests for HashCalculator and StashLogger to ensure correctness of hashing, logging, and error handling. [1] [2]

Dependency Updates:

  • Added inquirer, diff, and their type definitions to support CLI prompts and diff display; updated package.json and pnpm-lock.yaml accordingly. [1] [2] [3] [4]

Documentation:

  • Added detailed documentation for the stash system, including usage, architecture, error handling, and performance notes in STASH-SYSTEM.md.

These changes collectively deliver a powerful, user-friendly stash and conflict management experience for the CLI, with strong test coverage and clear documentation.

- Added a comprehensive stash system inspired by Git, allowing users to manage file conflicts during installations and updates.
- Implemented new CLI commands for stashing, including `stash list`, `stash show`, `stash apply`, `stash pop`, `stash remove`, `stash diff`, `stash save`, and `stash clear`.
- Enhanced install and update commands with automatic conflict detection and interactive resolution options.
- Introduced `HashCalculator`, `StashLogger`, `StashManager`, `ConflictDetector`, and `ConflictResolver` for managing stashes and conflicts.
- Updated dependencies: `inquirer@^9.2.0`, `diff@^5.1.0`, `@types/inquirer@^9.0.0`, `@types/diff@^5.0.0`.
- Version bumped to 1.0.0 to reflect major changes.
@cleberhensel cleberhensel merged commit 2240a26 into main Oct 24, 2025
5 checks passed
@cleberhensel cleberhensel deleted the feat/stash-impl branch October 26, 2025 02:36
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