@harmonyos-arkts/opencode-acp 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file.
6
6
 
7
7
  ### Added
8
8
 
9
+ - 日志老化机制:基于 harmony-code 的日志管理策略
10
+ - 文件大小轮转:单个日志文件超过 5MB 时自动重命名(加时间戳后缀)
11
+ - 存留期清理:启动时删除超过 7 天的日志文件
12
+ - 数量上限:最多保留 30 个日志文件
13
+ - 缓冲写入:日志条目缓冲后每 500ms 或每 50 条批量刷盘,减少 I/O 开销
9
14
  - MCP extMethod API:通过 ACP `extMethod("mcp/*")` 向客户端暴露 MCP 服务器运行时管理能力
10
15
  - `mcp/status` — 获取所有 MCP 服务器连接状态
11
16
  - `mcp/add` — 动态添加 MCP 服务器(local/remote)
package/README.md CHANGED
@@ -128,7 +128,12 @@ Options:
128
128
 
129
129
  ## Traffic Logging
130
130
 
131
- All communication is logged to `~/.harmony-acp/logs/` as JSONL files (auto-rotated, max 30 files).
131
+ All communication is logged to `~/.harmony-acp/logs/` as JSONL files with automatic rotation and aging:
132
+
133
+ - **Size rotation**: log files are renamed with a timestamp when they exceed 5MB
134
+ - **Age cleanup**: files older than 7 days are deleted on startup
135
+ - **Count cap**: at most 30 log files are retained
136
+ - **Buffered writes**: log entries are buffered and flushed every 500ms or every 50 entries for performance
132
137
 
133
138
  ### Log Categories
134
139