Commit Graph

14 Commits

Author SHA1 Message Date
meeks 3c94c3cfac refactor: remove duplicate add_comment and add_label methods from IssueTools
- Removed duplicate dd_comment method (kept dd_comment_to_issue)
- Removed duplicate dd_label method (kept dd_label_to_issue)
- Updated dispatcher.py to remove duplicate tool registrations
- Updated coding_prompt.py to reference only dd_comment_to_issue
- Removed corresponding duplicate tests from test_issue_tools.py

This addresses section 10.1 (Confusing Naming) in bad_code.md
2026-07-16 14:33:58 +02:00
meeks 2ab87d507f refactor: extract hardcoded values to config (section 5.3)
- Add AGENT_USERNAMES and GITEA_ORG_FILTER settings to gitea/config.py
- Update core/dispatcher.py to use AGENT_USERNAMES from config
- Update gitea/client.py to use GITEA_ORG_FILTER in list_all_user_repos() and list_unread_notifications()
2026-07-16 13:54:52 +02:00
meeks 9b63fbbcfc refactor: remove GiteaTools facade, use focused tool classes directly
- Removed gitea/tools/gitea_tools.py (useless facade layer)
- Removed tests/test_gitea_tools.py (tests for removed facade)
- Updated core/dispatcher.py to use IssueTools, PRTools, FileTools, GitTools directly
- Updated core/orchestrator.py to use individual tool instances
- Updated main.py to create individual tool instances

This eliminates the triple layer of indirection (Issue 2.2 from bad_code.md)
where GiteaTools just delegated to IssueTools/PRTools/etc with zero added value.
2026-07-16 13:15:18 +02:00
meeks a14e2bdd50 Refactor vacuous interface hierarchy and remove core/interfaces.py 2026-07-16 12:49:12 +02:00
meeks 24ca1c2898 Refactor WorkspaceManager.sanitize_repo to stash changes and raise errors on failure, add unit tests 2026-07-16 12:46:27 +02:00
Michael Ingvarsson f08c7b64c1 Enforce authenticated user and login validation in workspace operations, crashing program on failure instead of fallback defaults 2026-07-16 12:36:54 +02:00
Michael Ingvarsson c5dd178fd6 refactor: raise error on auth failure and clean up meeks-ai fallback 2026-07-16 12:33:57 +02:00
Michael Ingvarsson e54b5f1848 fix http 2026-07-16 12:21:56 +02:00
Michael Ingvarsson 9e40e7fed8 fix logging 2026-07-16 12:15:45 +02:00
Michael Ingvarsson e81f03c5aa fix grep 2026-07-16 12:04:51 +02:00
Michael Ingvarsson b99730f9a4 fix usename exposure 2026-07-16 12:00:16 +02:00
Michael Ingvarsson 64db2efa38 fix env variables exposure 2026-07-16 11:54:22 +02:00
meeks dfae518f0c feat: implement WorkspaceManager to handle local Gitea repository cloning and configuration and document identified codebase vulnerabilities 2026-07-16 11:41:15 +02:00
mi222eh 5f35f56edc Refactor code structure for improved readability and maintainability 2026-07-06 21:37:20 +02:00