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
+18 -1
View File
@@ -7,7 +7,7 @@ it never recorded anything at all.
import asyncio, json, sys, tempfile
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))
from journal import Journal
from journal import Journal, recent_prompt
from pipecat.frames.frames import EndFrame, TranscriptionFrame
from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.worker import PipelineWorker
@@ -20,6 +20,23 @@ from pipecat.turns.user_turn_strategies import UserTurnStrategies
from pipecat.utils.time import time_now_iso8601
from pipecat.workers.runner import WorkerRunner
def test_recent_prompt_reads_last_ten_entries():
path = Path(tempfile.mkdtemp()) / "journal.jsonl"
rows = [
json.dumps({"heard": f"question {i}", "reply": f"answer {i}"})
for i in range(12)
]
path.write_text("\n".join(rows[:3]) + "\nnot json\n" + "\n".join(rows[3:]))
prompt = recent_prompt(path)
assert "User: question 0\n" not in prompt
assert "User: question 1\n" not in prompt
assert "User: question 2\n" in prompt
assert "User: question 11\n" in prompt
assert prompt.index("User: question 2\n") < prompt.index("User: question 11\n")
async def main():
path = Path(tempfile.mkdtemp()) / "journal.jsonl"
journal = Journal(path)