mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-22 00:32:49 +00:00
docs(protocol): add typed edge link protocol documentation Add comprehensive documentation for the link protocol supporting typed edges in body text. This includes specification for three legal inline forms (bare wikilink, line-level Dataview, inline-bracketed Dataview), predicate syntax rules, and the machine-managed Relations section convention for organizing discovered edges. fix(memory): update path reference from vault_root to working_dir Change the memory_create operation's path anchoring from vault_root to working_dir to maintain consistency with the current working directory configuration. refactor(components): remove edge_extractor module and simplify parsing Remove the edge_extractor component module entirely and inline edge extraction logic directly into LinkedFileParser using parse_wikilinks utility. This simplifies the architecture by eliminating the separate edge extraction component and delegating edge discovery to the maintainer's enrichment operations. feat(parser): update parse method signature and simplify edge extraction Modify LinkedFileParser to return (FileNode, list[FileChunk]) tuple instead of ParsedFile, remove dependency on BaseEdgeExtractor, and implement direct wikilink parsing from body text only. ```
21 lines
569 B
Python
21 lines
569 B
Python
"""Utility modules"""
|
|
|
|
from .case_converter import camel_to_snake, snake_to_camel
|
|
from .common_utils import hash_text, execute_stream_task, run_coro_safely
|
|
from .logger_utils import get_logger
|
|
from .logo_utils import print_logo
|
|
from .similarity_utils import cosine_similarity, batch_cosine_similarity
|
|
from .singleton import singleton
|
|
|
|
__all__ = [
|
|
"camel_to_snake",
|
|
"snake_to_camel",
|
|
"hash_text",
|
|
"execute_stream_task",
|
|
"run_coro_safely",
|
|
"get_logger",
|
|
"print_logo",
|
|
"cosine_similarity",
|
|
"batch_cosine_similarity",
|
|
"singleton",
|
|
]
|