@dcrays/dcgchat-test 0.2.2 → 0.2.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 +1 -1
- package/src/monitor.ts +1 -1
- package/src/tool.ts +2 -1
package/package.json
CHANGED
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
|
-
|
|
70
|
+
thinking_content: text,
|
|
71
|
+
response: '',
|
|
71
72
|
session_id:params?.sessionId,
|
|
72
73
|
message_id: params?.messageId || Date.now().toString()
|
|
73
74
|
},
|