From 0ea463f1fa84f437f362bbb06ef8f088c8eb200e Mon Sep 17 00:00:00 2001 From: christiankrag Date: Mon, 15 Dec 2025 14:30:55 +0100 Subject: [PATCH] Update agent_runs types for code generation workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Make message_id optional (nullable) - Add user_id field for tracking who initiated the run - Support agent_runs created directly from n8n workflow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/types/database.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/types/database.ts b/src/types/database.ts index 903908b..a46afb5 100644 --- a/src/types/database.ts +++ b/src/types/database.ts @@ -184,8 +184,9 @@ export interface Database { agent_runs: { Row: { id: string - message_id: string + message_id: string | null project_id: string + user_id: string | null command: string status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' result: Json | null @@ -207,8 +208,9 @@ export interface Database { } Insert: { id?: string - message_id: string + message_id?: string | null project_id: string + user_id?: string command: string status?: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' result?: Json | null