feat(mission-control): restore MC tabs - temple, office, memory, claude, pdf-viewer, resume, resume-upload, temple-3d, demos

Also added:
- Memory API endpoints
- Briefs API endpoints
- AnveVoice stats API
- Claude spawn API
- TTS proxy
- Cleopatra voice widget
- api-auth middleware
This commit is contained in:
2026-03-23 16:30:44 +01:00
parent d5575b58e3
commit 45af56d9cf
30 changed files with 5092 additions and 715 deletions
+25
View File
@@ -0,0 +1,25 @@
import { NextResponse } from 'next/server';
export async function POST(request: Request) {
try {
const { tabId, tabName, apiKey } = await request.json();
if (!apiKey) {
return NextResponse.json({ error: 'API key required' }, { status: 400 });
}
// For now, return instructions for manual spawn
// Real implementation would use sessions_spawn via OpenClaw SDK
const sessionKey = `claude-${tabId}-${Date.now()}`;
return NextResponse.json({
success: true,
sessionId: sessionKey,
sessionKey,
message: `To start Claude Code for ${tabName}, use the spawn command in Horus`,
instruction: `Ask Horus to spawn a Claude session for ${tabName}`
});
} catch (error) {
return NextResponse.json({ error: 'Failed to spawn session' }, { status: 500 });
}
}