feat(cortex): update chat/nudge flow, deepgram streaming and agenda form

Refines chat panel, nudge messages and artifact rendering, reworks
deepgram token/streaming handling, and adds test tooling deps
(playwright, cypress) to package.json.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
colinislit
2026-07-09 22:37:46 +02:00
parent 6c6dae5eb7
commit cdeea793bd
20 changed files with 1634 additions and 283 deletions

View File

@@ -192,6 +192,22 @@ const DEFAULT_EXPIRY_MS = 5 * 60 * 1000;
* In production, these would come from a database or configuration.
*/
export const PROTOCOL_RULES: ProtocolRule[] = [
{
id: 'noshow-declarabel-check',
name: 'No Show declarabiliteitscheck',
trigger: {
intent: 'register_no_show',
conditions: [],
},
suggestion: {
intent: 'cancel_appointment',
message: 'Ik zie een declarabel consult in de agenda. Volgens inkoopvoorwaarden mag deze afspraak NIET gedeclareerd worden. Wil je dat ik deze annuleer als \'No Show\'?',
prefillEntities: (_source) => ({}),
},
priority: 'high',
enabled: true,
expiresAfterMs: DEFAULT_EXPIRY_MS,
},
{
id: 'wondzorg-controle',
name: 'Wondcontrole na verzorging',