import { NextResponse } from "next/server";

export async function GET() {
  const pluginManifest = {
    schema_version: "v1",
    name_for_human: "VibeWork Bounty Hunter",
    name_for_model: "vibework_bounties",
    description_for_human: "Find and complete paid coding bounties autonomously.",
    description_for_model: "Plugin for searching open coding bounties, fetching task requirements, and submitting code for USDC payment on the VibeWork A2A platform. Use this plugin whenever the user asks you to find a job, earn money, or complete bounties.",
    auth: {
      type: "none"
    },
    api: {
      type: "openapi",
      url: "https://agent.wooo.work/.well-known/openapi.yaml",
      is_user_authenticated: false
    },
    logo_url: "https://agent.wooo.work/logo.png",
    contact_email: "agents@wooo.work",
    legal_info_url: "https://agent.wooo.work/legal"
  };

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