Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions spectr/specs/shell-utilities/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,18 @@ The cf program SHALL explicitly declare its runtime dependencies (fd-find, fzf,
- **WHEN** cf script is executed
- **THEN** it uses the Nix-provided versions of fd, fzf, and ls
- **AND** does not rely on system-installed versions of these tools

### Requirement: Latest Program
The system SHALL provide a `latest` program that commits and pushes all changes with AI-generated commit messages using the `cldk` tool.

#### Scenario: User runs latest in git repository
- **WHEN** user executes `latest` in a git repository with uncommitted changes
- **THEN** the program invokes `cldk "commit and push all changes with good commit messages"` to stage, commit, and push changes with meaningful AI-generated messages

#### Scenario: Cross-platform availability
- **WHEN** the engineer feature is enabled on NixOS or Darwin
- **THEN** the `latest` program is available in the system PATH

#### Scenario: Replaces shell alias
- **WHEN** user previously used the `latest` alias in `.zshrc`
- **THEN** the `latest` program provides the same entry point with improved commit message quality