Commit Graph

8 Commits

Author SHA1 Message Date
7a16b2bcd2 refactor(test): explicitly discard errors from git commands in tests
All checks were successful
CI / Test (push) Successful in 38s
CI / Lint (push) Successful in 28s
CI / Build (push) Successful in 22s
Release / Create Release (push) Successful in 38s
This change adds `_ =` assignments to exec.Command(...).Run() calls in test setup code to explicitly ignore error returns, likely to satisfy linters or static analysis tools without changing behavior.
2026-03-31 22:51:58 +01:00
5c9689e4da test: add unit tests for cmd, config, git, linter, logger, prompts, todo, and workon
Some checks failed
CI / Test (push) Successful in 40s
CI / Lint (push) Failing after 20s
CI / Build (push) Successful in 22s
- Introduce tests for analyze, recipe, workon commands
- Expand scaffold tests with language detection and context harvesting
- Add tests for config getters, git utilities (tags, logs, diff)
- Enhance linter with primary language detection tests
- Cover logger level setting branches
- New prompts loading tests with local/global fallback
- Todo bootstrap and structure tests
- Comprehensive workon flow tests including file moves, git integration, README updates
- Update README coverage from 54% to 62%
2026-03-31 22:47:36 +01:00
ce878f058f feat(workon): enhance command with IDE integration and README updates
All checks were successful
CI / Test (pull_request) Successful in 36s
CI / Lint (pull_request) Successful in 26s
CI / Build (pull_request) Successful in 20s
- Add colorized output for success/error messages
- Change custom message flag from -m to -M
- Implement branch prefixing (feature/ or fix/)
- Add config for workon.model and workon.ide
- Update README.md index on task completion
- Integrate IDE opening if configured
- Refine error handling and logging
2026-03-31 22:04:33 +01:00
8a3257b3a7 feat(workon): integrate Grok for work plan generation
Replace placeholder with actual Grok client call to generate and append a tailored work plan section to todo/fix files. Add prompt engineering for concise, actionable plans. Include file content reading and model config integration. Update comments and error handling for clarity.
2026-03-31 21:20:55 +01:00
49ec38a2ca refactor(workon): clean up stubs and add TODOs for Grok integration
- Remove temporary grokClient interface and prompt logic.
- Add TODOs for real Grok client import and calls.
- Placeholder work plan for functionality.
- TODOs for README index update and IDE config support.
- Minor comment and logging tweaks for clarity.
2026-03-31 21:04:40 +01:00
9694d72463 feat(workon): implement core transactional flow with Grok work plan
- Bootstrap todo structure and handle fix/complete modes.
- Create safe git branches and append AI-generated work plans.
- Commit changes and move items to completed on finish.
- Add stubs for Grok client and config-dependent IDE open.
2026-03-31 20:56:45 +01:00
d6f507b8cb feat(workon): enhance command to start or complete todos/fixes with git integration
- Update workonCmd to accept todo_item_title arg and add -f/--fix, -c/--complete flags
- Implement transactional flow: bootstrap todo dirs, move/create .md files, create branch, append Grok-generated Work Plan, commit
- Add todo package with Bootstrap for directory structure
- Expand workon.Run to handle modes (todo, fix, complete) with placeholders for Grok integration and optional cnadd/IDE open
2026-03-31 20:42:32 +01:00
9080cf7f3e feat(workon): add initial workon command for starting todo items
Introduces the `workon` CLI command which selects the next queued todo item,
moves it to doing/, creates a git branch, generates a work plan via Grok,
appends it to the file, and commits the changes. Includes skeleton implementation
with TODOs for full functionality.
2026-03-31 20:30:05 +01:00