git commit -m "feat: major architectural refactor
- Refactor memory system (episodic/STM/LTM with components) - Implement complete subtitle domain (scanner, matcher, placer) - Add YAML workflow infrastructure - Externalize knowledge base (patterns, release groups) - Add comprehensive testing suite - Create manual testing CLIs"
This commit is contained in:
@@ -337,7 +337,7 @@ class TestChatCompletionsEdgeCases:
|
||||
from alfred.infrastructure.persistence import get_memory
|
||||
|
||||
mem = get_memory()
|
||||
mem.ltm.set_config("download_folder", str(real_folder["downloads"]))
|
||||
mem.ltm.download_folder = str(real_folder["downloads"])
|
||||
|
||||
call_count = [0]
|
||||
|
||||
@@ -453,7 +453,7 @@ class TestMemoryEndpointsEdgeCases:
|
||||
mock_llm.return_value = Mock()
|
||||
from alfred.app import app
|
||||
|
||||
memory.ltm.set_config("japanese", "日本語テスト")
|
||||
memory.ltm.download_folder = "/path/日本語テスト"
|
||||
memory.stm.add_message("user", "🎬 Movie request")
|
||||
|
||||
client = TestClient(app)
|
||||
@@ -501,7 +501,7 @@ class TestMemoryEndpointsEdgeCases:
|
||||
mock_llm.return_value = Mock()
|
||||
from alfred.app import app
|
||||
|
||||
memory.ltm.set_config("important", "data")
|
||||
memory.ltm.download_folder = "/important/data"
|
||||
memory.stm.add_message("user", "Hello")
|
||||
|
||||
client = TestClient(app)
|
||||
@@ -510,7 +510,7 @@ class TestMemoryEndpointsEdgeCases:
|
||||
response = client.get("/memory/state")
|
||||
data = response.json()
|
||||
|
||||
assert data["ltm"]["config"]["important"] == "data"
|
||||
assert data["ltm"]["download_folder"] == "/important/data"
|
||||
assert data["stm"]["conversation_history"] == []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user