prisma.$use middleware API was removed in Prisma 6. Switched to
$extends query hooks which is the supported approach.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CalendarEvent and FeedCard now automatically get a ClientTimelineEntry
when created/updated with a contactId. This ensures events created by
the agent (or any other code path) appear in the contact timeline
without needing explicit upsertClientTimelineEntry calls.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agent trace logs are now stored in-memory (pilotRunStore) and broadcast
through the existing /ws/crm-updates WebSocket channel. When a client
reconnects, it receives a pilot.catchup with all accumulated logs so the
user sees agent progress even after page reload. Three new WS event
types: pilot.trace, pilot.finished, pilot.catchup.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>