import { registerToolRenderer } from '$lib/tool-renderers'
import ChangeLog from './ChangeLog.svelte'

export function init() {
  registerToolRenderer({
    match: (t) =>
      t.name === 'get_change_history' ||
      t.name === 'get_agent_activity' ||
      t.result?.__renderer === 'change_log',
    component: ChangeLog,
  })
}
