// In an app: import { setupScoreCard } from '@aparte/plugin-cards/score';
const { setupScoreCard } = window.apartePlugins.cards.score;
setupScoreCard({ tool: 'get_match', variant: 'detail' });
document.querySelector('aparte-chat-bubble').setSegments([{
id: 's1', type: 'tool_call', status: 'resolved',
toolCall: { id: 'c-s1', name: 'get_match', input: { team: 'Northport FC' } },
structuredResult: {
home: { name: 'Northport FC', shortName: 'NPT', color: '#c8102e', score: 3, record: 'W7 D3 L1' }, away: { name: 'Riverside United', shortName: 'RIV', color: '#1d4ed8', score: 1, record: 'W5 D2 L4' },
status: 'final', sport: 'football', competition: 'Coastal League', round: 'Matchday 11', venue: 'Harbour Ground',
periods: [{ label: '1st half', home: 1, away: 1 }, { label: '2nd half', home: 2, away: 0 }],
events: [
{ minute: 12, team: 'home', type: 'goal', player: 'M. Okafor', detail: 'Assist: S. Dubois' },
{ minute: 29, team: 'away', type: 'yellow', player: 'T. Brandt' },
{ minute: 38, team: 'away', type: 'goal', player: 'L. Varga' },
{ minute: 61, team: 'home', type: 'penalty', player: 'S. Dubois' },
{ minute: 74, team: 'away', type: 'sub', player: 'J. Mensah', detail: 'For L. Varga' },
{ minute: '90+2', team: 'home', type: 'goal', player: 'A. Lindqvist' },
],
},
}]);