fix: ClawHub API and simplify Council nav

- Fix popular search query (was empty string)
- Group all agents under single 'Agents' tab
This commit is contained in:
2026-03-24 16:13:25 +01:00
parent 602dcff5b2
commit fb0ce20aa5
2 changed files with 3 additions and 8 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ export async function GET(req: NextRequest) {
if (action === "popular") {
// Get featured/popular - show top skills sorted by score
const { stdout } = await execAsync(`clawhub search "" 2>&1`);
// Use a common query that returns high-quality skills
const { stdout } = await execAsync(`clawhub search "productivity automation" 2>&1`);
const lines = stdout.trim().split("\n");
const skills = lines
.filter((line) => line.includes("("))
@@ -63,13 +63,7 @@ export default function MissionControlDashboard({ onLogout }: { onLogout?: () =>
name: "Council",
icon: "🏛️",
items: [
{ id: "agent-roster", name: "Agent Roster", icon: "👥", color: "#8b5cf6", href: "/mission-control/agents" },
{ id: "thoth", name: "Thoth", icon: "🦉", color: "#6366f1", href: "/mission-control/agent/thoth" },
{ id: "ptah", name: "Ptah", icon: "🛠️", color: "#f59e0b", href: "/mission-control/agent/ptah" },
{ id: "seshat", name: "Seshat", icon: "📜", color: "#22c55e", href: "/mission-control/agent/seshat" },
{ id: "anubis", name: "Anubis", icon: "🐕", color: "#ef4444", href: "/mission-control/agent/anubis" },
{ id: "thoth-trading", name: "Thoth Trading", icon: "📈", color: "#10b981", href: "/mission-control/agent/thoth-trading" },
{ id: "sekhmet", name: "Sekhmet", icon: "🦁", color: "#fbbf24", href: "/mission-control/agent/sekhmet" },
{ id: "agents", name: "Agents", icon: "👥", color: "#8b5cf6", href: "/mission-control/agents" },
{ id: "sessions", name: "Sessions", icon: "💬", color: "#06b6d4", href: "/mission-control/sessions" },
{ id: "council-chat", name: "Council Chat", icon: "🏛️", color: "#a855f7", href: "/mission-control/council" },
{ id: "clawhub", name: "ClawHub Store", icon: "🛒", color: "#ec4899", href: "/mission-control/clawhub" },