@mobcode/openclaw-plugin 0.1.19 → 0.1.21

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": "@mobcode/openclaw-plugin",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "MobCode integration plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -67,7 +67,15 @@ export function createMobcodePluginDefinition() {
67
67
  api,
68
68
  store,
69
69
  });
70
+ api.on("after_tool_call", (event, ctx) => {
71
+ api.logger?.warn?.(
72
+ `[mobcode-debug] after_tool_call sessionKey=${String(ctx?.sessionKey ?? "").trim() || "-"} toolCallId=${String(event?.toolCallId ?? "").trim() || "-"} toolName=${String(event?.toolName ?? "").trim() || "-"} durationMs=${typeof event?.durationMs === "number" ? String(event.durationMs) : "-"}`,
73
+ );
74
+ });
70
75
  api.on("tool_result_persist", (event, ctx) => {
76
+ api.logger?.warn?.(
77
+ `[mobcode-debug] tool_result_persist sessionKey=${String(ctx?.sessionKey ?? "").trim() || "-"} toolCallId=${String(event?.toolCallId ?? "").trim() || "-"} toolName=${String(event?.toolName ?? "").trim() || "-"} messageId=${typeof event?.message?.id === "string" && event.message.id.trim() ? event.message.id.trim() : "-"}`,
78
+ );
71
79
  store.appendMessageSync({
72
80
  sessionKey: ctx?.sessionKey,
73
81
  message: event?.message,