@riconext/hermes-repo 1.1.1 → 1.2.1

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
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - be5381b: 修复 ESM 打包产物中 `flush` 触发动态 require 导致 `Dynamic require of "fs" is not supported` 的问题。
8
+
9
+ ## 1.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 4e1a9f7: 新增 capture 后自动 flush 调度配置。开启 `consolidate.autoFlush.enabled` 后,capture 成功写入时会根据待处理 session 数量、距离上次 flush 的时间和待处理内容字符数,在后台触发 `hermes-repo flush`。
14
+
3
15
  ## 1.1.1
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -272,6 +272,14 @@ npx @riconext/hermes-repo init
272
272
  "timeoutMs": 60000,
273
273
  "maxInputChars": 24000,
274
274
  "mode": "async"
275
+ },
276
+ "consolidate": {
277
+ "autoFlush": {
278
+ "enabled": false,
279
+ "minPendingSessions": 3,
280
+ "minIntervalMinutes": 30,
281
+ "maxPendingChars": 20000
282
+ }
275
283
  }
276
284
  }
277
285
  ```
@@ -285,6 +293,8 @@ npx @riconext/hermes-repo init
285
293
 
286
294
  非 DeepSeek 时:保持 `enabled: true`,将 `baseUrl`、`model` 换成你所用网关提供的 OpenAI 兼容地址与模型名即可。
287
295
 
296
+ `consolidate.autoFlush.enabled` 默认关闭。开启后,capture 成功写入时会在后台按阈值触发 `flush`:pending/stale session 数达到 `minPendingSessions`、距离上次 flush 超过 `minIntervalMinutes`,或待处理内容达到 `maxPendingChars` 时触发。
297
+
288
298
  **`init -y` 时**:会生成 `enabled: false` 的骨架;再次 `init` **不会覆盖**已有 `apiKey`,可安全补配。
289
299
 
290
300
  ### 安全说明