liangzimixin 0.3.82 → 0.3.83
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
|
@@ -15325,6 +15325,11 @@ ${body}` : body || raw.content;
|
|
|
15325
15325
|
text = c?.text ?? raw.content;
|
|
15326
15326
|
break;
|
|
15327
15327
|
}
|
|
15328
|
+
case "reference": {
|
|
15329
|
+
const c = parsed;
|
|
15330
|
+
text = c?.contentText ?? raw.content;
|
|
15331
|
+
break;
|
|
15332
|
+
}
|
|
15328
15333
|
default:
|
|
15329
15334
|
text = raw.content;
|
|
15330
15335
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -173,7 +173,7 @@ interface InboundMessage {
|
|
|
173
173
|
/** 发送者显示名称 (用于日志和 SDK 信封) */
|
|
174
174
|
senderName?: string;
|
|
175
175
|
/** 消息类型 — 决定 content JSON 结构、加密策略和处理流程 */
|
|
176
|
-
msgType: 'text' | 'markdown' | 'image' | 'file' | 'voice' | 'video' | 'system';
|
|
176
|
+
msgType: 'text' | 'markdown' | 'image' | 'file' | 'voice' | 'video' | 'system' | 'reference';
|
|
177
177
|
/**
|
|
178
178
|
* 消息内容 (JSON 字符串,解密后)
|
|
179
179
|
*
|
|
@@ -185,6 +185,7 @@ interface InboundMessage {
|
|
|
185
185
|
* - voice: `{"fileId": "xxx", "duration": 2914.23}`
|
|
186
186
|
* - video: `{"fileId": "xxx", "duration": 5291667.32, "width": 1200}`
|
|
187
187
|
* - system: `{"text": "用户已加入会话"}`
|
|
188
|
+
* - reference: `{"contentText": "回复文本"}` (refMsgId 本期忽略)
|
|
188
189
|
*/
|
|
189
190
|
content: string;
|
|
190
191
|
/** 原始内容 (解密前,用于调试和审计) */
|
package/dist/package.json
CHANGED
package/dist/setup-entry.cjs
CHANGED
|
@@ -17777,6 +17777,11 @@ ${body}` : body || raw.content;
|
|
|
17777
17777
|
text = c?.text ?? raw.content;
|
|
17778
17778
|
break;
|
|
17779
17779
|
}
|
|
17780
|
+
case "reference": {
|
|
17781
|
+
const c = parsed;
|
|
17782
|
+
text = c?.contentText ?? raw.content;
|
|
17783
|
+
break;
|
|
17784
|
+
}
|
|
17780
17785
|
default:
|
|
17781
17786
|
text = raw.content;
|
|
17782
17787
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ REM liangzimixin install script (Windows)
|
|
|
7
7
|
REM Usage: liangzimixin_install.bat <appId> <appSecret> [quantumAccount]
|
|
8
8
|
REM ============================================================
|
|
9
9
|
|
|
10
|
-
set "SCRIPT_VERSION=0.3.
|
|
10
|
+
set "SCRIPT_VERSION=0.3.83"
|
|
11
11
|
set "NPM_PACKAGE=liangzimixin"
|
|
12
12
|
|
|
13
13
|
set "SKIP_SELF_UPDATE=0"
|
|
@@ -6,7 +6,7 @@ set -euo pipefail
|
|
|
6
6
|
# 用法: ./liangzimixin_install.sh <appId> <appSecret> [quantumAccount]
|
|
7
7
|
# ============================================================
|
|
8
8
|
|
|
9
|
-
SCRIPT_VERSION="0.3.
|
|
9
|
+
SCRIPT_VERSION="0.3.83"
|
|
10
10
|
NPM_PACKAGE="liangzimixin"
|
|
11
11
|
|
|
12
12
|
# ── 颜色 ──────────────────────────────────────────────────────
|