ReMe/reme/core/schema
jinliyl dc8eab56a1
refactor(core): replace text truncation utilities with new marker system (#179)
* refactor(core): replace text truncation utilities with new marker system

- Remove old truncate_text_utils module and its exports
- Replace TRUNCATION_MARKER_START with _TRUNCATION_NOTICE_MARKER constant
- Update as_msg_stat.py to split content using new marker format
- Modify FileIO tool to use TRUNCATION_NOTICE_MARKER for continuation hints
- Change is_truncated function checks to use marker presence detection
- Move transformers dependency from main deps to light extra dependencies
- Update tool result compactor tests to verify marker instead of is_truncated calls

* feat(file_io): enhance file operations with path resolution and append functionality

- Add expanduser() to resolve file paths with ~ symbol
- Implement proper file existence and type validation in update_file
- Add new append_file method to append content to files
- Update truncation notice format for better readability
- Fix typo in error message from "provide" to "provided"
- Update transformers dependency in pyproject.toml
- Remove duplicate transformers dependency from light extras

* refactor(file_io): disable pylint too-many-return-statements warning

* perf(file_watcher): increase default polling delay and optimize watcher configuration

- Increased default poll_delay_ms from 1000ms to 2000ms to reduce CPU usage
- Removed force_polling parameter as it's no longer needed with updated polling strategy
- Simplified async watch configuration by removing conditional force_polling logic
- Reduced overall system resource consumption during file watching operations

* refactor(memory): update conversation log documentation in memory summary

- Changed "Raw conversation logs" to "Earlier conversation logs" for clarity
- Added warning note about potentially large dialog file sizes
- Improved formatting with additional line break for better readability
- Maintained existing compressed summary integration unchanged

* feat(memory): add long-term memory support to file-based memory system

- Initialize _long_term_memory attribute as empty string
- Add memories section to content when long-term memory exists
- Consolidate summary and memories into single user message
- Format memories with markdown header # Memories
- Maintain existing compressed summary functionality
- Join multiple content parts with double newlines
2026-03-26 12:10:24 +08:00
..
__init__.py feat(core): integrate AgentScope LLM support with enhanced memory management 2026-03-06 01:33:48 +08:00
as_msg_stat.py refactor(core): replace text truncation utilities with new marker system (#179) 2026-03-26 12:10:24 +08:00
cut_point_result.py feat(core): add memory storage and context checking capabilities 2026-02-08 19:24:53 +08:00
file_metadata.py feat(memory): implement file watcher with delta and full sync strategies 2026-02-06 01:58:28 +08:00
memory_chunk.py feat(memory): add memory management and file system tools 2026-02-03 22:29:45 +08:00
memory_node.py refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
memory_search_result.py fix(memory): improve search relevance and configuration defaults 2026-02-10 16:24:43 +08:00
message.py refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
request.py refactor(core): migrate core modules and update imports 2026-01-21 17:10:05 +08:00
response.py refactor(core): restructure core modules and update pre-commit configuration 2026-01-22 16:25:20 +08:00
service_config.py refactor(file_io): update file I/O operations and truncation logic (#177) 2026-03-25 20:21:37 +08:00
stream_chunk.py refactor(core): migrate core modules and update imports 2026-01-21 17:10:05 +08:00
tool_call.py refactor(memory): restructure memory modules and add versioned personal memory agents 2026-01-29 11:21:50 +08:00
truncation_result.py feat(memory): add memory management and file system tools 2026-02-03 22:29:45 +08:00
vector_node.py refactor(types): update type hints to use built-in generic types 2026-01-23 14:27:22 +08:00