import { createServer } from 'node:http'; /** * a2a/server.ts -- GoldenPipe A2A (Agent-to-Agent) protocol server. * * Node-only: uses node:http, node:crypto. NOT edge-safe. * * Port of goldenpipe/a2a/server.py. Mirrors the sibling GoldenFlow / GoldenMatch * TS A2A servers for structure (agent card at /.well-known/agent.json, skill * dispatch, task lifecycle). Skills delegate to the GoldenPipe MCP tools via * `handleTool`, exactly as the Python server delegates to its MCP tool functions. * * Endpoints: * GET /.well-known/agent.json - agent card (4 skills) * GET /health - liveness probe * POST /tasks - create a task (skill + params) * GET /tasks/{id} - fetch task status/result */ interface AgentSkill { readonly id: string; readonly name: string; readonly description: string; readonly inputModes: readonly string[]; readonly outputModes: readonly string[]; } declare const AGENT_CARD: { readonly name: string; readonly description: string; readonly version: string; readonly provider: { readonly organization: string; }; readonly url: string; readonly skills: readonly AgentSkill[]; }; interface StartA2aOptions { readonly port?: number; readonly host?: string; } declare function startA2aServer(options?: StartA2aOptions): ReturnType; declare function runServer(port?: number): ReturnType; export { AGENT_CARD, type AgentSkill, type StartA2aOptions, runServer, startA2aServer };