// In an app: import { setupStatsCard } from '@aparte/plugin-cards/stats';
const { setupStatsCard } = window.apartePlugins.cards.stats;
setupStatsCard({ tool: 'get_sales_summary' });
// The call is still running: the card draws its skeleton, with what the input already says.
document.querySelector('aparte-chat-bubble').setSegments([{
id: 's1', type: 'tool_call', status: 'pending',
toolCall: { id: 'c-s1', name: 'get_sales_summary', input: { title: 'Sales this week' } },
}]);