@dcrays/dcgchat-test 0.2.2 → 0.2.4

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": "@dcrays/dcgchat-test",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "description": "OpenClaw channel plugin for 书灵墨宝 (WebSocket)",
6
6
  "main": "index.ts",
package/src/bot.ts CHANGED
@@ -42,7 +42,7 @@ async function resolveMediaFromUrls(files: { name: string, url: string }[], botT
42
42
  buffer,
43
43
  contentType,
44
44
  "inbound",
45
- // maxByte: mediaMaxBytes,
45
+ mediaMaxBytes,
46
46
  fileName,
47
47
  );
48
48
  const isImage = contentType.startsWith("image/");
package/src/monitor.ts CHANGED
@@ -139,7 +139,7 @@ export async function monitorDcgchatProvider(opts: MonitorDcgchatOpts): Promise<
139
139
  const { event_type, operation_type, skill_url, skill_code, skill_id, bot_token, websocket_trace_id } = parsed.content ? parsed.content : {} as Record<string, any>;
140
140
  const content = { event_type, operation_type, skill_url, skill_code, skill_id, bot_token, websocket_trace_id };
141
141
  if (event_type === "skill") {
142
- if (operation_type === "install" || operation_type === "enable") {
142
+ if (operation_type === "install" || operation_type === "enable" || operation_type === "update") {
143
143
  installSkill({ path: skill_url, code: skill_code }, content);
144
144
  } else if (operation_type === "remove" || operation_type === "disable") {
145
145
  uninstallSkill({ code: skill_code }, content);
package/src/tool.ts CHANGED
@@ -67,7 +67,8 @@ export function monitoringToolMessage(api: OpenClawPluginApi) {
67
67
  app_id: params?.appId,
68
68
  bot_id: params?.botId,
69
69
  agent_id: params?.agentId,
70
- response: text,
70
+ thinking_content: text,
71
+ response: '',
71
72
  session_id:params?.sessionId,
72
73
  message_id: params?.messageId || Date.now().toString()
73
74
  },