fix/markdown_awareness_for_edit #7

Merged
gmgauthier merged 4 commits from fix/markdown_awareness_for_edit into master 2026-03-30 13:05:10 +00:00

4 Commits

Author SHA1 Message Date
Gregory Gauthier
9d1e794c36 chore(edit): add missing newline at end of file
All checks were successful
CI / Test (pull_request) Successful in 33s
CI / Lint (pull_request) Successful in 26s
CI / Build (pull_request) Successful in 20s
Ensures the file ends with a newline to avoid Git warnings.
2026-03-30 14:01:17 +01:00
Gregory Gauthier
0b3e544143 fix(cmd/edit): implement removal of "last modified" comments
Some checks failed
CI / Test (pull_request) Successful in 34s
CI / Lint (pull_request) Failing after 19s
CI / Build (pull_request) Successful in 22s
The removeLastModifiedComments function previously copied all lines without filtering.
This change adds logic to remove lines containing "last modified" (case-insensitive)
after trimming whitespace.
2026-03-30 12:31:51 +01:00
Gregory Gauthier
edb986dd1a refactor(cmd): clean up analyze and edit commands
- Remove unnecessary comments and simplify logging setup in analyze.go
- Improve directory skipping logic in discoverSourceFiles
- Add error handling to buildProjectContext and include Git remotes
- Simplify removeLastModifiedComments in edit.go by direct slice append
2026-03-30 12:28:19 +01:00
Gregory Gauthier
ba8d9b1d7e feat(edit): add markdown file support with tailored prompt
- Introduce check for .md extension and use technical writer system prompt.
- Adjust response cleaning: trim for markdown, use CleanCodeResponse for code.
- Remove nolint comment and unnecessary line skipping in removeLastModifiedComments.
2026-03-30 12:22:50 +01:00