Update agent_runs types for code generation workflow

- 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 <noreply@anthropic.com>
This commit is contained in:
2025-12-15 14:30:55 +01:00
parent 40d30600a0
commit 0ea463f1fa

View File

@@ -184,8 +184,9 @@ export interface Database {
agent_runs: { agent_runs: {
Row: { Row: {
id: string id: string
message_id: string message_id: string | null
project_id: string project_id: string
user_id: string | null
command: string command: string
status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled'
result: Json | null result: Json | null
@@ -207,8 +208,9 @@ export interface Database {
} }
Insert: { Insert: {
id?: string id?: string
message_id: string message_id?: string | null
project_id: string project_id: string
user_id?: string
command: string command: string
status?: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' status?: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled'
result?: Json | null result?: Json | null