@mobcode/openclaw-plugin 0.1.22 → 0.1.23

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.22",
3
+ "version": "0.1.23",
4
4
  "description": "MobCode integration plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -90,9 +90,33 @@ export function createMobcodePluginDefinition() {
90
90
  );
91
91
  });
92
92
  api.on("tool_result_persist", (event, ctx) => {
93
+ console.warn(
94
+ "[mobcode-direct-debug] tool_result_persist enter",
95
+ "sessionKey=",
96
+ String(ctx?.sessionKey ?? "").trim() || "-",
97
+ "toolCallId=",
98
+ String(event?.toolCallId ?? "").trim() || "-",
99
+ "toolName=",
100
+ String(event?.toolName ?? "").trim() || "-",
101
+ "messageId=",
102
+ typeof event?.message?.id === "string" && event.message.id.trim()
103
+ ? event.message.id.trim()
104
+ : "-",
105
+ "role=",
106
+ String(event?.message?.role ?? "").trim() || "-",
107
+ );
93
108
  log.warn(
94
109
  `[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() : "-"}`,
95
110
  );
111
+ console.warn(
112
+ "[mobcode-direct-debug] before appendMessageSync",
113
+ "sessionKey=",
114
+ String(ctx?.sessionKey ?? "").trim() || "-",
115
+ "toolCallId=",
116
+ String(event?.toolCallId ?? "").trim() || "-",
117
+ "toolName=",
118
+ String(event?.toolName ?? "").trim() || "-",
119
+ );
96
120
  store.appendMessageSync({
97
121
  sessionKey: ctx?.sessionKey,
98
122
  message: event?.message,
@@ -101,6 +125,7 @@ export function createMobcodePluginDefinition() {
101
125
  ? event.message.id.trim()
102
126
  : undefined,
103
127
  });
128
+ console.warn("[mobcode-direct-debug] after appendMessageSync");
104
129
  });
105
130
  },
106
131
  };