/** * ThreadWeaver — Debate Protocol * Orchestrates the 3-round debate loop with parallel agent execution. */ import type { PluginInput, ToolContext } from "@opencode-ai/plugin"; import { ProviderResilience } from "../shared"; import type { ConcurrencyPool } from "../concurrency"; import type { ThreadWeaverConfig, ThreadWeaverResult } from "./types"; export interface ThreadWeaverDeps { pool?: ConcurrencyPool; resilience?: ProviderResilience; internalSessions: Set; } /** * Main entry point: Run the ThreadWeaver debate protocol. */ export declare function runThreadWeaver(ctx: PluginInput, query: string, userConfig: Partial, deps: ThreadWeaverDeps, toolCtx: ToolContext): Promise;