Replace OpenCode harness with Hermes, remove workspace dependency, and move vocabulary/corrections to app folder

This commit is contained in:
Adolfo Reyna
2026-08-09 21:35:52 -04:00
parent 6e8a578e86
commit 2f181ff4f1
25 changed files with 2395 additions and 436 deletions
+6 -1
View File
@@ -82,6 +82,11 @@ class Vocabulary:
corrections_file: Path | None = None,
limit: int = MAX_TERMS,
):
app_dir = Path(__file__).parent
project_dir = project_dir or app_dir
vocabulary_file = vocabulary_file or (app_dir / "vocabulary.txt")
corrections_file = corrections_file or (app_dir / "corrections.txt")
self._limit = limit
self._user: list[str] = []
self._project: list[str] = []
@@ -94,7 +99,7 @@ class Vocabulary:
if corrections_file and corrections_file.exists():
self._corrections = _read_corrections(corrections_file)
logger.debug(f"Vocabulary: {len(self._corrections)} repair rules")
if project_dir:
if project_dir and project_dir.exists():
self._project = _terms_from_project(project_dir)
def add_terms(self, terms: list[str]):