liangzimixin 0.3.96 → 0.3.98

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/dist/index.cjs CHANGED
@@ -31841,14 +31841,18 @@ var InboundPipeline = class {
31841
31841
  ctx,
31842
31842
  cfg: sdkConfig,
31843
31843
  dispatcher,
31844
- replyOptions
31844
+ replyOptions: {
31845
+ ...replyOptions,
31846
+ disableBlockStreaming: false
31847
+ // 启用块级流式: AI 每生成一个 block 就调一次 deliver
31848
+ }
31845
31849
  });
31846
31850
  if (typeof dispatcher.waitForIdle === "function") {
31847
31851
  await dispatcher.waitForIdle();
31848
31852
  }
31849
31853
  metrics.recordLatency("inbound.ai_reply", Date.now() - aiStartMs);
31850
31854
  const aiDurationMs = Date.now() - aiStartMs;
31851
- const replyCount = counts?.final ?? 0;
31855
+ const replyCount = (counts?.final ?? 0) + (counts?.block ?? 0) + (counts?.tool ?? 0);
31852
31856
  const durationMs = Date.now() - startMs;
31853
31857
  if (replyCount === 0) {
31854
31858
  log15.warn("\u26A0\uFE0F AI \u8FD4\u56DE\u7A7A\u56DE\u590D (\u56DE\u590D\u6570=0)\uFF0C\u53D1\u9001\u53CB\u597D\u63D0\u793A", {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liangzimixin",
3
- "version": "0.3.96",
3
+ "version": "0.3.98",
4
4
  "description": "Quantum-encrypted IM channel plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "index.cjs",
@@ -34304,14 +34304,18 @@ var InboundPipeline = class {
34304
34304
  ctx,
34305
34305
  cfg: sdkConfig,
34306
34306
  dispatcher,
34307
- replyOptions
34307
+ replyOptions: {
34308
+ ...replyOptions,
34309
+ disableBlockStreaming: false
34310
+ // 启用块级流式: AI 每生成一个 block 就调一次 deliver
34311
+ }
34308
34312
  });
34309
34313
  if (typeof dispatcher.waitForIdle === "function") {
34310
34314
  await dispatcher.waitForIdle();
34311
34315
  }
34312
34316
  metrics.recordLatency("inbound.ai_reply", Date.now() - aiStartMs);
34313
34317
  const aiDurationMs = Date.now() - aiStartMs;
34314
- const replyCount = counts?.final ?? 0;
34318
+ const replyCount = (counts?.final ?? 0) + (counts?.block ?? 0) + (counts?.tool ?? 0);
34315
34319
  const durationMs = Date.now() - startMs;
34316
34320
  if (replyCount === 0) {
34317
34321
  log28.warn("\u26A0\uFE0F AI \u8FD4\u56DE\u7A7A\u56DE\u590D (\u56DE\u590D\u6570=0)\uFF0C\u53D1\u9001\u53CB\u597D\u63D0\u793A", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liangzimixin",
3
- "version": "0.3.96",
3
+ "version": "0.3.98",
4
4
  "description": "Quantum-encrypted IM channel plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -18,7 +18,7 @@ REM liangzimixin install script (Windows)
18
18
  REM Usage: liangzimixin_install.bat <appId> <appSecret> [quantumAccount]
19
19
  REM ============================================================
20
20
 
21
- set "SCRIPT_VERSION=0.3.96"
21
+ set "SCRIPT_VERSION=0.3.98"
22
22
  set "NPM_PACKAGE=liangzimixin"
23
23
 
24
24
  set "SKIP_SELF_UPDATE=0"
@@ -14,7 +14,7 @@ echo -e "\033[0;36m▸\033[0m Deployment log will be saved to $LOG_FILE"
14
14
  # 用法: ./liangzimixin_install.sh <appId> <appSecret> [quantumAccount]
15
15
  # ============================================================
16
16
 
17
- SCRIPT_VERSION="0.3.96"
17
+ SCRIPT_VERSION="0.3.98"
18
18
  NPM_PACKAGE="liangzimixin"
19
19
 
20
20
  # ── 颜色 ──────────────────────────────────────────────────────