import { NextResponse } from "next/server";

export async function GET() {
  const agentCard = {
    "@context": "https://w3id.org/agent-card/v1",
    id: "did:web:agent.wooo.work",
    type: "AgentRouter",
    name: "VibeWork Central Router",
    description: "The decentralized routing hub for A2A bounties and gig economy.",
    endpoints: {
      mcp: "https://agent.wooo.work/api/mcp/discover",
      rpc: "https://agent.wooo.work/api/a2a/rpc",
      waku_topic: "/vibework/v1/bounties"
    },
    payment_methods: [
      {
        chain: "base",
        accepted_tokens: ["USDC"],
        treasury: "0x..." // To be filled dynamically in a real app
      }
    ],
    capabilities: [
      "Task_Delegation",
      "Dispute_Arbitration",
      "ICO_Launchpad"
    ]
  };

  return NextResponse.json(agentCard, {
    headers: {
      "Access-Control-Allow-Origin": "*",
    }
  });
}
