@openclaw-china/wecom 2026.3.20 → 2026.3.22
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.js +1 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7275,7 +7275,6 @@ var MESSAGE_CONTEXT_TTL_MS = 6 * 60 * 1e3;
|
|
|
7275
7275
|
var EVENT_CONTEXT_TTL_MS = 10 * 1e3;
|
|
7276
7276
|
var STREAM_FINISH_GRACE_MS = 2500;
|
|
7277
7277
|
var WECOM_WS_THINKING_MESSAGE = "<think></think>";
|
|
7278
|
-
var WECOM_WS_FINISH_FALLBACK_MESSAGE = "\u2705 \u5904\u7406\u5B8C\u6210\u3002";
|
|
7279
7278
|
var messageContexts = /* @__PURE__ */ new Map();
|
|
7280
7279
|
var eventContexts = /* @__PURE__ */ new Map();
|
|
7281
7280
|
var messageBySessionKey = /* @__PURE__ */ new Map();
|
|
@@ -7626,11 +7625,9 @@ async function finishWecomWsMessageContext(params) {
|
|
|
7626
7625
|
if (!context || context.finished) return;
|
|
7627
7626
|
await enqueue(context, async () => {
|
|
7628
7627
|
const errorMessage = params.error ? `Error: ${params.error instanceof Error ? params.error.message : String(params.error)}` : "";
|
|
7629
|
-
const
|
|
7628
|
+
const finishContent = errorMessage ? context.content ? `${context.content}
|
|
7630
7629
|
|
|
7631
7630
|
${errorMessage}` : errorMessage : context.content;
|
|
7632
|
-
const fallbackContent = !finalContent && !context.suppressVisibleFallback && context.placeholderContent === WECOM_WS_THINKING_MESSAGE ? WECOM_WS_FINISH_FALLBACK_MESSAGE : void 0;
|
|
7633
|
-
const finishContent = finalContent || fallbackContent;
|
|
7634
7631
|
const sendFinish = context.started || Boolean(finishContent) || context.msgItems.length > 0;
|
|
7635
7632
|
if (sendFinish) {
|
|
7636
7633
|
await context.send(
|