@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.
- package/CHANGELOG.md +12 -0
- package/README.md +27 -18
- package/dist/cli.js +303 -219
- package/dist/cli.js.map +1 -1
- package/dist/templates/AGENTS.md.tpl +11 -5
- package/dist/templates/config.json.tpl +1 -1
- package/dist/templates/gitignore-block.txt +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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/
|