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:
@@ -20,8 +20,8 @@ class TestPromptBuilderEdgeCases:
|
||||
|
||||
def test_prompt_with_unicode_config(self, memory):
|
||||
"""Should handle unicode in config."""
|
||||
memory.ltm.set_config("folder_日本語", "/path/to/日本語")
|
||||
memory.ltm.set_config("emoji_folder", "/path/🎬")
|
||||
memory.ltm.download_folder = "/path/to/日本語"
|
||||
memory.ltm.tvshow_folder = "/path/🎬"
|
||||
|
||||
tools = make_tools(settings)
|
||||
builder = PromptBuilder(tools)
|
||||
@@ -34,7 +34,7 @@ class TestPromptBuilderEdgeCases:
|
||||
def test_prompt_with_very_long_config_value(self, memory):
|
||||
"""Should handle very long config values."""
|
||||
long_path = "/very/long/path/" + "x" * 1000
|
||||
memory.ltm.set_config("download_folder", long_path)
|
||||
memory.ltm.download_folder = long_path
|
||||
|
||||
tools = make_tools(settings)
|
||||
builder = PromptBuilder(tools)
|
||||
@@ -46,7 +46,7 @@ class TestPromptBuilderEdgeCases:
|
||||
|
||||
def test_prompt_with_special_chars_in_config(self, memory):
|
||||
"""Should escape special characters in config."""
|
||||
memory.ltm.set_config("path", '/path/with "quotes" and \\backslash')
|
||||
memory.ltm.download_folder = '/path/with "quotes" and \\backslash'
|
||||
|
||||
tools = make_tools(settings)
|
||||
builder = PromptBuilder(tools)
|
||||
@@ -198,7 +198,7 @@ class TestPromptBuilderEdgeCases:
|
||||
def test_prompt_with_all_sections(self, memory):
|
||||
"""Should include all sections when all data present."""
|
||||
# Config
|
||||
memory.ltm.set_config("download_folder", "/downloads")
|
||||
memory.ltm.download_folder = "/downloads"
|
||||
|
||||
# Search results
|
||||
memory.episodic.store_search_results("test", [{"name": "Result"}])
|
||||
@@ -242,7 +242,7 @@ class TestPromptBuilderEdgeCases:
|
||||
|
||||
def test_prompt_json_serializable(self, memory):
|
||||
"""Should produce JSON-serializable content."""
|
||||
memory.ltm.set_config("key", {"nested": [1, 2, 3]})
|
||||
memory.ltm.download_folder = "/some/path"
|
||||
memory.stm.set_entity("complex", {"a": {"b": {"c": "d"}}})
|
||||
|
||||
tools = make_tools(settings)
|
||||
|
||||
Reference in New Issue
Block a user