claude-simple 0.2.12 → 0.2.14

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.
@@ -1064,9 +1064,21 @@ export async function parseGeminiNativeMessages(filePath) {
1064
1064
  if (d.source === 'USER_EXPLICIT' && d.type === 'USER_INPUT') {
1065
1065
  const content = geminiUserText(d.content);
1066
1066
  if (content) messages.push({ role: 'user', type: 'text', content, ts });
1067
- } else if (d.source === 'MODEL' && ['GENERIC', 'PLANNER_RESPONSE'].includes(d.type)) {
1067
+ // Antigravity writes command output, file reads and search results as
1068
+ // MODEL/GENERIC rows. They are tool transport records (often headed by
1069
+ // "Created At" / "Stdout"), not chat replies. Only planner responses
1070
+ // are the assistant messages shown in its own conversation UI.
1071
+ } else if (d.source === 'MODEL' && d.type === 'PLANNER_RESPONSE') {
1068
1072
  const content = String(d.content || '').trim();
1069
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
+ }
1070
1082
  }
1071
1083
  }
1072
1084
  } catch {}