@yaoyuanchao/dingtalk 1.3.8 → 1.3.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/card-api.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaoyuanchao/dingtalk",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "type": "module",
5
5
  "description": "DingTalk channel plugin for Clawdbot with Stream Mode support",
6
6
  "license": "MIT",
package/src/card-api.ts CHANGED
@@ -148,9 +148,13 @@ export async function createCardInstance(
148
148
  cardTemplateId: params.cardTemplateId,
149
149
  outTrackId: params.outTrackId,
150
150
  cardData: params.cardData || { cardParamMap: {} },
151
- callbackType: params.callbackType || "STREAM",
152
151
  };
153
152
 
153
+ // Only add callbackType if specified (not needed for basic cards)
154
+ if (params.callbackType) {
155
+ body.callbackType = params.callbackType;
156
+ }
157
+
154
158
  if (params.robotCode) {
155
159
  body.robotCode = params.robotCode;
156
160
  }
@@ -430,7 +434,7 @@ export async function sendCardMessage(params: {
430
434
  outTrackId,
431
435
  cardData: { cardParamMap: params.cardData },
432
436
  robotCode: params.robotCode,
433
- callbackType: "STREAM",
437
+ // Note: callbackType not needed for basic cards
434
438
  });
435
439
 
436
440
  if (!createResult.success) {