/** * Collaboration Coordinator - Manage shared insights and collaborative decisions * * Enables active collaboration between agents in different worktrees */ import type { Decision, Insight } from '../types/exploration.types.js'; export interface ProposeDecisionOptions { options: Array<{ cons?: string[]; description: string; label: string; pros?: string[]; }>; rationale?: string; topic: string; worktree_id: string; } export interface PublishInsightOptions { content: string; metadata?: Record; tags?: string[]; title: string; type: Insight['type']; worktree_id: string; } export interface VoteOnDecisionOptions { decision_id: string; option_index: number; worktree_id: string; } export declare class CollaborationCoordinator { private decisionsPoolPath; private explorationId; private insightsPoolPath; private lockManager; constructor(insightsPoolPath: string, decisionsPoolPath: string, explorationId: string); /** * Publish an insight to the shared pool */ publishInsight(options: PublishInsightOptions): Promise; /** * Get all insights from the pool */ getAllInsights(): Promise; /** * Get insights by type */ getInsightsByType(type: Insight['type']): Promise; /** * Get insights by tags */ getInsightsByTags(tags: string[]): Promise; /** * Get insights from other worktrees (exclude own insights) */ getInsightsFromOthers(worktreeId: string): Promise; /** * Get recent insights (last N) */ getRecentInsights(count?: number): Promise; /** * Search insights by keyword */ searchInsights(keyword: string): Promise; /** * Propose a decision for collaborative voting */ proposeDecision(options: ProposeDecisionOptions): Promise; /** * Vote on a decision */ voteOnDecision(options: VoteOnDecisionOptions): Promise; /** * Get all decisions */ getAllDecisions(): Promise; /** * Get pending decisions (not yet resolved) */ getPendingDecisions(): Promise; /** * Get resolved decisions */ getResolvedDecisions(): Promise; /** * Get decision by ID */ getDecision(decisionId: string): Promise; /** * Get collaboration statistics */ getStats(): Promise<{ insights_by_type: Record; insights_by_worktree: Record; participation_rate: number; pending_decisions: number; resolved_decisions: number; total_decisions: number; total_insights: number; }>; /** * Clear all insights (for testing or cleanup) */ clearInsights(): Promise; /** * Clear all decisions (for testing or cleanup) */ clearDecisions(): Promise; /** * Export insights to JSON */ exportInsights(): Promise; /** * Export decisions to JSON */ exportDecisions(): Promise; /** * Get insights summary (for display) */ getInsightsSummary(): Promise; /** * Get decisions summary (for display) */ getDecisionsSummary(): Promise; /** * Count votes for a decision */ private countVotes; } //# sourceMappingURL=collaboration-coordinator.d.ts.map