document.querySelector('aparte-chat-bubble').setSegments([
{
id: 's1',
type: 'tool_call',
status: 'awaiting-approval',
toolCall: { id: 't1', name: 'delete_file', input: { path: 'src/legacy/old-client.ts' } },
},
]);
// Open the row the way a reader deciding would: the argument the decision is about
// (which file) is what the demo is here to show.
document.querySelector('details')?.setAttribute('open', '');