/**
 * POST /api/chat/sessions/<id>/note → 200 { ok, running } | 409
 *
 * Queues supplementary text for the running turn. The chat-standalone
 * agent loop drains queued notes at the top of its next iteration and
 * splices them in as a user message so the LLM sees them on its next
 * step. 409 if no turn is running (client should send as a regular
 * message via POST /messages instead — which also auto-merges).
 */

import { proxyToChat } from '@/lib/chat/proxy';

export async function POST(req: Request, { params }: { params: Promise<{ id: string }> }) {
  const { id } = await params;
  return proxyToChat(req, `/api/sessions/${encodeURIComponent(id)}/note`);
}
