@kenkaiiii/gg-ai 4.3.238 → 4.3.239

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/dist/index.cjs CHANGED
@@ -1151,11 +1151,18 @@ async function* runStream(options) {
1151
1151
  args: tc.args
1152
1152
  };
1153
1153
  } else if (accum.type === "server_tool_use") {
1154
+ let input = accum.input;
1155
+ if (accum.argsJson) {
1156
+ try {
1157
+ input = JSON.parse(accum.argsJson);
1158
+ } catch {
1159
+ }
1160
+ }
1154
1161
  const stc = {
1155
1162
  type: "server_tool_call",
1156
1163
  id: accum.toolId,
1157
1164
  name: accum.toolName,
1158
- input: accum.input
1165
+ input
1159
1166
  };
1160
1167
  contentParts.push(stc);
1161
1168
  yield {