mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-30 01:52:29 +00:00
* refactor(steps): update naming conventions in components and configuration Updated naming conventions across multiple files, changing colon-separated names to underscore-separated format, and added new step definitions along with documentation updates. Key changes: - Replaced `Synchronizer` with `AutoMemory` as the counterpart component for cold-write operations - Updated naming conventions in all related configuration files (e.g., `frontmatter:read` → `frontmatter_read`) - Added new step definitions such as `submit_slug_updates` and `auto_memory` - Updated relevant documentation - Modified log output format for improved readability * refactor(evolve): Refactor the auto-memory module and update related configurations - Remove the old slug update commit step file - Add new auto-memory planner and writer steps - Update __init__.py to export the new step classes - Modify the auto_memory configuration structure in default.yaml - Update the slug field description for clearer explanation of its purpose * up * up * refactor(tests): Move unit test directory from `tests4/unittest` to `tests4/unit` Additionally, the assertion logic in test files has been updated: direct comparisons of `payload["notes"]` have been replaced with checks verifying the presence of paths and metadata within the response content. Furthermore, some test expectations have been simplified—for example, using `count` instead of asserting against specific note lists. Specific changes include: - Updating workflow configurations to align with the new test directory structure - Modifying assertions across multiple test methods to make them more flexible and maintainable - Cleaning up and optimizing parts of the test code structure This is a comprehensive test refactoring effort aimed at improving test readability and robustness. * Refactor(steps): Update memory writing logic and optimize JSON schema structure Improved the write strategy description in `auto_memory_writer.yaml` to emphasize using `edit` over `write`. Adjusted the `json_schema` structure in `base_step.py` to support the new function definition format. Also corrected grammatical issues in the related documentation. * Fix: Improve frontend data parsing error handling and update test files Added capture and handling logic for YAML parsing exceptions, providing more detailed error messages when frontend data format issues occur. Also corrected the description text in a test file.
80 lines
2.3 KiB
Python
80 lines
2.3 KiB
Python
"""steps"""
|
|
|
|
from .base_step import BaseStep
|
|
from .common.demo import DemoEchoStep1, DemoEchoStep2
|
|
from .common.health_check import HealthCheckStep
|
|
from .common.help import HelpStep
|
|
from .common.llm_demo import LLMDemoStep
|
|
from .common.stream_demo import StreamDemoStep1, StreamDemoStep2
|
|
from .common.version import VersionStep
|
|
from .evolve.auto_memory_planner import AutoMemoryPlannerStep
|
|
from .evolve.auto_memory_writer import AutoMemoryWriterStep
|
|
from .file_io.daily_create import DailyCreateStep
|
|
from .file_io.daily_list import DailyListStep
|
|
from .file_io.daily_reindex import DailyReindexStep
|
|
from .file_io.delete import DeleteStep
|
|
from .file_io.edit import EditStep
|
|
from .file_io.frontmatter_delete import FrontmatterDeleteStep
|
|
from .file_io.frontmatter_read import FrontmatterReadStep
|
|
from .file_io.frontmatter_update import FrontmatterUpdateStep
|
|
from .file_io.list import ListStep
|
|
from .file_io.move import MoveStep
|
|
from .file_io.read import ReadStep
|
|
from .file_io.read_image import ReadImageStep
|
|
from .file_io.stat import StatStep
|
|
from .file_io.write import WriteStep
|
|
from .index.clear_and_scan import ClearAndScanStep
|
|
from .index.scan_changes import ScanChangesStep
|
|
from .index.search import SearchStep
|
|
from .index.traverse import TraverseStep
|
|
from .index.update_catalog import UpdateCatalogStep
|
|
from .index.update_index import UpdateIndexStep
|
|
from .index.watch_changes import WatchChangesStep
|
|
from .transfer.download import DownloadStep
|
|
from .transfer.ingest import IngestStep
|
|
from .transfer.upload import UploadStep
|
|
|
|
__all__ = [
|
|
"BaseStep",
|
|
# common
|
|
"DemoEchoStep1",
|
|
"DemoEchoStep2",
|
|
"HealthCheckStep",
|
|
"HelpStep",
|
|
"LLMDemoStep",
|
|
"StreamDemoStep1",
|
|
"StreamDemoStep2",
|
|
"VersionStep",
|
|
# evolve
|
|
"AutoMemoryPlannerStep",
|
|
"AutoMemoryWriterStep",
|
|
# file_io
|
|
"DeleteStep",
|
|
"EditStep",
|
|
"ListStep",
|
|
"MoveStep",
|
|
"ReadStep",
|
|
"ReadImageStep",
|
|
"StatStep",
|
|
"WriteStep",
|
|
# file_io (daily)
|
|
"DailyCreateStep",
|
|
"DailyListStep",
|
|
"DailyReindexStep",
|
|
# file_io.frontmatter
|
|
"FrontmatterDeleteStep",
|
|
"FrontmatterReadStep",
|
|
"FrontmatterUpdateStep",
|
|
# index
|
|
"ClearAndScanStep",
|
|
"ScanChangesStep",
|
|
"SearchStep",
|
|
"TraverseStep",
|
|
"UpdateCatalogStep",
|
|
"UpdateIndexStep",
|
|
"WatchChangesStep",
|
|
# transfer
|
|
"DownloadStep",
|
|
"IngestStep",
|
|
"UploadStep",
|
|
]
|