Add agent selection and artifact management to RowboatX UI

- Implemented agent selection dropdown in the input area.
- Enhanced artifact management with loading, saving, and error handling.
- Added new API routes for fetching agent summaries and run details.
- Updated sidebar to display agents, configurations, and runs dynamically.
- Introduced theme selection options in the user navigation menu.
This commit is contained in:
tusharmagar 2025-12-15 10:01:48 +05:30 committed by Ramnique Singh
parent b1f6e64244
commit 023a65de45
8 changed files with 965 additions and 251 deletions

View file

@ -11,7 +11,7 @@ export const dynamic = 'force-dynamic';
export async function POST(request: NextRequest) {
try {
const body = await request.json();
const { message, runId } = body;
const { message, runId, agentId } = body;
if (!message || typeof message !== 'string') {
return Response.json(
@ -25,7 +25,7 @@ export async function POST(request: NextRequest) {
// Create new run if no runId provided
if (!currentRunId) {
const run = await cliClient.createRun({
agentId: 'copilot',
agentId: agentId || 'copilot',
});
currentRunId = run.id;
}