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.
- package/package.json +2 -1
- package/public/agent-panel.js +8 -4
- package/public/chat.js +8 -2
- package/public/index.html +3 -2
- package/public/mermaid.js +48 -0
- package/public/state.js +4 -3
- package/public/style.css +7 -0
- package/public/sw.js +4 -3
- package/public/ui.min.css +1 -1
- package/public/vendor/mermaid.min.js +3636 -0
- package/src/agents/sessions.js +13 -1
package/src/agents/sessions.js
CHANGED
|
@@ -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
|
-
|
|
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 {}
|