/** * Board assistant (P5): reply to a board comment that mentions the agent. * * Mirrors the document assistant (`doc-reply.ts`): a full harness run with the * agent's board MCP tools (`get_board`, `read_board`, `draw_diagram`, * `update_board`, `add_comment`). The agent edits the board itself and posts * its reply as a comment on the board; this loop only guarantees a fallback * acknowledgement if the harness never posted one. */ import type { TeamshareApi } from '../api'; import type { HarnessName } from '../harness/harness-adapter'; export interface BoardReplyLlm { baseUrl: string; apiKey: string; model: string; temperature?: number; maxTokens?: number; } export interface BoardReplyOptions { harness: HarnessName; echo?: boolean; effort?: string; onLog: (line: string, stream?: 'stdout' | 'stderr') => void; cwd?: string; sessionId?: string; agentId: string; timeoutMin?: number; commentId?: string; llm: BoardReplyLlm; } /** * Runs the board assistant for one waking comment. Returns how many replies * were produced (0 = nothing to answer / already answered). */ export declare function runBoardReply(api: TeamshareApi, agentId: string, boardId: string, mention: string, opts: BoardReplyOptions): Promise<{ replied: number; skipped: number; }>;