/** * Copilot Executor — A2A ↔ GitHub Copilot SDK Bridge * * Orchestrates Copilot SDK sessions to handle A2A task requests. * Supports streaming responses, MCP server integration, multi-turn * conversations, system prompts, and context building. */ import type { AgentExecutor, RequestContext, ExecutionEventBus } from "@a2a-js/sdk/server"; import type { AgentConfig } from "../config/types.js"; import type { EventTransport, EventTransportFn } from "@a2a-wrapper/core"; export declare class CopilotExecutor implements AgentExecutor { private readonly config; private client; private sessionManager; private mcpHooks; private initialized; /** Optional custom event transport supplied via programmatic API. */ customTransport?: EventTransport | EventTransportFn; constructor(config: Required); initialize(): Promise; shutdown(): Promise; /** * Build (or refresh) the domain context file by sending a prompt via Copilot SDK. * Returns the assistant's response text. */ buildContext(prompt?: string): Promise; /** * Read the context file from the workspace directory. * Returns the file content or null if it doesn't exist. */ getContextContent(): Promise; execute(ctx: RequestContext, bus: ExecutionEventBus): Promise; cancelTask(taskId: string, bus: ExecutionEventBus): Promise; /** * Translate a wrapper-agnostic {@link SynthesizedMcpDescriptor} into the * stdio MCP entry shape consumed by the Copilot SDK / this wrapper's * resolved `mcp` map. Used after {@link bootstrapSubAgents} returns the * canonical descriptor so the entry can be merged under * `descriptor.key` (the reserved `a2a-subagents` key). */ private toCopilotMcpEntry; /** * Extract trace context propagated by the orchestrator via A2A metadata. * * The orchestrator injects { trace_id, parent_agent_id, propagated_metadata } * into the A2A request configuration dict. The A2A JS SDK exposes these * through the RequestContext or the Task object. */ private extractTraceContext; } //# sourceMappingURL=executor.d.ts.map