claude-simple 0.2.13 → 0.2.15

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.
@@ -1071,6 +1071,14 @@ export async function parseGeminiNativeMessages(filePath) {
1071
1071
  } else if (d.source === 'MODEL' && d.type === 'PLANNER_RESPONSE') {
1072
1072
  const content = String(d.content || '').trim();
1073
1073
  if (content) messages.push({ role: 'assistant', type: 'text', content, ts });
1074
+ for (const tool of Array.isArray(d.tool_calls) ? d.tool_calls : []) {
1075
+ const name = String(tool?.name || '').trim();
1076
+ if (!name) continue;
1077
+ messages.push({
1078
+ role: 'tool', type: 'tool_use', name,
1079
+ input: tool.args || tool.arguments || tool.input || {}, ts,
1080
+ });
1081
+ }
1074
1082
  }
1075
1083
  }
1076
1084
  } catch {}