From fb0ce20aa5b1bea3fd84d23a2546d8c15355e742 Mon Sep 17 00:00:00 2001 From: Horus AI Date: Tue, 24 Mar 2026 16:13:25 +0100 Subject: [PATCH] fix: ClawHub API and simplify Council nav - Fix popular search query (was empty string) - Group all agents under single 'Agents' tab --- app/api/clawhub/route.ts | 3 ++- components/mission-control/MissionControlDashboard.tsx | 8 +------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/api/clawhub/route.ts b/app/api/clawhub/route.ts index 39946de..f352a9d 100644 --- a/app/api/clawhub/route.ts +++ b/app/api/clawhub/route.ts @@ -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("(")) diff --git a/components/mission-control/MissionControlDashboard.tsx b/components/mission-control/MissionControlDashboard.tsx index b7e0fc1..bee52df 100644 --- a/components/mission-control/MissionControlDashboard.tsx +++ b/components/mission-control/MissionControlDashboard.tsx @@ -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" },