@riconext/hermes-repo 1.1.0 → 1.2.0

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.
@@ -84,15 +84,21 @@ npx @riconext/hermes-repo flush
84
84
  "llm": {
85
85
  "enabled": true,
86
86
  "baseUrl": "https://api.openai.com/v1",
87
- "model": "gpt-4o"
87
+ "model": "gpt-4o",
88
+ "apiKey": "sk-..."
89
+ },
90
+ "consolidate": {
91
+ "autoFlush": {
92
+ "enabled": false,
93
+ "minPendingSessions": 3,
94
+ "minIntervalMinutes": 30,
95
+ "maxPendingChars": 20000
96
+ }
88
97
  }
89
98
  }
90
99
  ```
91
100
 
92
- API Key 通过环境变量设置:
93
- ```bash
94
- export HERMES_LLM_API_KEY="sk-..."
95
- ```
101
+ `autoFlush.enabled` 设为 `true` 后,capture 成功写入时会按阈值后台触发 `hermes flush`。
96
102
 
97
103
  ## 常用命令
98
104
 
@@ -1 +1 @@
1
- {"version": 2, "storage": {"backend": "file"}, "assistants": ["claude-code"], "debug": false, "llm": {"enabled": false, "baseUrl": "https://api.openai.com/v1", "model": "gpt-4o"}, "consolidate": {"autoArchiveDays": 30}}
1
+ {"version": 2, "storage": {"backend": "file"}, "assistants": ["claude-code"], "debug": false, "llm": {"enabled": false, "provider": "openai", "baseUrl": "https://api.openai.com/v1", "model": "gpt-4o", "apiKey": "", "timeoutMs": 60000, "maxInputChars": 24000, "mode": "async"}, "consolidate": {"autoArchiveDays": 30, "autoFlush": {"enabled": false, "minPendingSessions": 3, "minIntervalMinutes": 30, "maxPendingChars": 20000}}}
@@ -1,12 +1,12 @@
1
1
  # >>> hermes-repo memory (do not edit this block manually)
2
2
  # 不提交(个人数据 / 运行时状态)
3
+ .memory/config.json
3
4
  .memory/captures/
4
5
  .memory/consolidate-state.json
5
6
  .memory/.consolidate.lock
6
7
 
7
8
  # 提交到 Git(团队共享的知识)
8
9
  !.memory/MEMORY.md
9
- !.memory/config.json
10
10
  !.memory/rules/
11
11
  !.memory/domains/
12
12
  !.memory/workflows/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riconext/hermes-repo",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "跨编程助手的项目级记忆系统",
5
5
  "packageManager": "bun@1.3.12",
6
6
  "type": "module",