feat: implement Story 3.1 — chat panel UI with streaming AI responses
Add AI copilot chat panel to the diagram editor with streaming responses, chat history persistence, and markdown rendering. Includes copilot API route, diagram-aware system prompt, and schema with 15 passing tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2
packages/db/migrations/0002_numerous_siren.sql
Normal file
2
packages/db/migrations/0002_numerous_siren.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "chat"."chat" ADD COLUMN "diagram_id" text;--> statement-breakpoint
|
||||
CREATE INDEX "chat_diagram_id_idx" ON "chat"."chat" USING btree ("diagram_id");
|
||||
2158
packages/db/migrations/meta/0002_snapshot.json
Normal file
2158
packages/db/migrations/meta/0002_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -15,6 +15,13 @@
|
||||
"when": 1771885601062,
|
||||
"tag": "0001_fuzzy_gorilla_man",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 2,
|
||||
"version": "7",
|
||||
"when": 1772245471347,
|
||||
"tag": "0002_numerous_siren",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user