@soimy/dingtalk 3.1.2 → 3.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soimy/dingtalk",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "DingTalk (钉钉) channel plugin for OpenClaw",
5
5
  "keywords": [
6
6
  "bot",
@@ -581,11 +581,11 @@ export async function handleDingTalkMessage(params: HandleDingTalkMessageParams)
581
581
  const finalContent = finalContentCandidate;
582
582
  await finishAICard(currentAICard, finalContent, log);
583
583
  } else {
584
+ const defaultFinalContent = "✅ Done";
584
585
  log?.debug?.(
585
- "[DingTalk] Skipping AI Card finalization because no textual content was produced.",
586
+ "[DingTalk] No textual content was produced; finalizing AI Card with default completion content.",
586
587
  );
587
- currentAICard.state = AICardStatus.FINISHED;
588
- currentAICard.lastUpdated = Date.now();
588
+ await finishAICard(currentAICard, defaultFinalContent, log);
589
589
  }
590
590
  } catch (err: any) {
591
591
  log?.debug?.(`[DingTalk] AI Card finalization failed: ${err.message}`);