Replace OpenCode harness with Hermes, remove workspace dependency, and move vocabulary/corrections to app folder
This commit is contained in:
+6
-1
@@ -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]):
|
||||
|
||||
Reference in New Issue
Block a user