27 lines
949 B
JSON
27 lines
949 B
JSON
{
|
|
"id": "phase2-core-features-08",
|
|
"seq": "08",
|
|
"title": "Create message APIs with streaming",
|
|
"status": "pending",
|
|
"depends_on": ["07"],
|
|
"parallel": false,
|
|
"context_files": [
|
|
"/Users/kunthawatgreethong/Gitea/moreminimore-vibe/Websitebuilder/.tmp/sessions/phase1-foundation/context.md",
|
|
"/Users/kunthawatgreethong/Gitea/moreminimore-vibe/Websitebuilder/SPECIFICATION.md"
|
|
],
|
|
"acceptance_criteria": [
|
|
"POST /api/chats/:id/messages creates user message",
|
|
"GET /api/chats/:id/messages returns chat messages",
|
|
"Message streaming endpoint returns chunks",
|
|
"Messages stored with metadata (tokens, tool calls)",
|
|
"Message order preserved by timestamp",
|
|
"Streaming handles connection errors"
|
|
],
|
|
"deliverables": [
|
|
"src/app/api/chats/[id]/messages/route.ts",
|
|
"src/app/api/chats/[id]/messages/stream/route.ts",
|
|
"src/services/message.service.ts",
|
|
"src/lib/db/schema.ts (messages table)"
|
|
]
|
|
}
|