mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-21 00:22:45 +00:00
feat(file_watcher): add directory deletion support with descendant indexing Add support for deleting entire directories and their indexed descendants in the file watcher. Previously only individual file deletions were handled properly. Now when a directory is deleted, the system finds all indexed files beneath that directory path and removes them along with their metadata and chunks. The implementation includes: - New `_descendant_indexed_paths` method to find all indexed files under a given directory path - Updated `_on_deleted` method to process both the target path and all its indexed descendants - Proper handling of symlinks and path resolution differences - Enhanced logging to show directory deletion with child count Also adds necessary os import for path operations. refactor(config): restructure configuration profiles for clarity Rename curated.yaml to remove outdated configuration file and rename full.yaml to expert.yaml with updated documentation. Add new service.yaml configuration profile that provides a service-aligned MCP surface with three main tools: - retrieve: graph-aware hybrid retrieval - remember: single write entry point with log/distill modes - maintain: vault hygiene sweep The expert configuration now excludes the ingest tool since cold-path operations are handled by external agents, and adds memory_lint tool for structural issue detection. Updated documentation to clarify the different configuration profiles and their intended usage patterns. ```
22 lines
1.1 KiB
Python
22 lines
1.1 KiB
Python
"""Memory subsystem — the three services on top of the core engine.
|
|
|
|
Per the architecture blueprint:
|
|
|
|
- retriever.py Read service. V + K + Graph BFS fusion + intent
|
|
routing. Registered as a Step (`backend: hybrid`);
|
|
MCP step shells in `reme2.mcp.steps.memory_retriever`
|
|
instantiate it on demand.
|
|
- ingestor.py Cold-write service. LLM-driven R-M-W curator.
|
|
Triggered on explicit handoff (task end / SessionEnd).
|
|
- maintainer.py Treatment service. Background Merge / Split / Decay /
|
|
Lint, woken by cron or thresholds.
|
|
- summarizer.py Auxiliary used by the services.
|
|
|
|
Hot-write MCP step shells (sync, memory_*) live in
|
|
`reme2.mcp.steps`, NOT here — they bypass services and write MFS
|
|
directly. Importing this package triggers @R.register on the three
|
|
services so configs that name them resolve at boot.
|
|
"""
|
|
|
|
from . import retriever # noqa: F401 -- runs @R.register("hybrid")
|
|
from . import maintainer # noqa: F401 -- runs @R.register("maintainer")
|