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:
@@ -38,7 +38,8 @@ export async function GET(req: NextRequest) {
|
|||||||
|
|
||||||
if (action === "popular") {
|
if (action === "popular") {
|
||||||
// Get featured/popular - show top skills sorted by score
|
// 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 lines = stdout.trim().split("\n");
|
||||||
const skills = lines
|
const skills = lines
|
||||||
.filter((line) => line.includes("("))
|
.filter((line) => line.includes("("))
|
||||||
|
|||||||
@@ -63,13 +63,7 @@ export default function MissionControlDashboard({ onLogout }: { onLogout?: () =>
|
|||||||
name: "Council",
|
name: "Council",
|
||||||
icon: "🏛️",
|
icon: "🏛️",
|
||||||
items: [
|
items: [
|
||||||
{ id: "agent-roster", name: "Agent Roster", icon: "👥", color: "#8b5cf6", href: "/mission-control/agents" },
|
{ id: "agents", name: "Agents", 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: "sessions", name: "Sessions", icon: "💬", color: "#06b6d4", href: "/mission-control/sessions" },
|
{ 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: "council-chat", name: "Council Chat", icon: "🏛️", color: "#a855f7", href: "/mission-control/council" },
|
||||||
{ id: "clawhub", name: "ClawHub Store", icon: "🛒", color: "#ec4899", href: "/mission-control/clawhub" },
|
{ id: "clawhub", name: "ClawHub Store", icon: "🛒", color: "#ec4899", href: "/mission-control/clawhub" },
|
||||||
|
|||||||
Reference in New Issue
Block a user