/** * create_thread Tool * * Create an open thread outside of session close. Threads track * unresolved work items that carry across sessions. * * Writes to Supabase (source of truth) + local file (cache). * Falls back to local-only if Supabase is unavailable. * * Phase 3: Semantic dedup gate — before creating, checks existing open * threads by embedding cosine similarity (> 0.85 threshold). Returns * existing thread instead of creating a duplicate. * * Performance target: <500ms (Supabase write + file write) */ import type { ThreadObject, PerformanceData, Project } from "../types/index.js"; export interface CreateThreadParams { /** Thread description */ text: string; /** Associated Linear issue (optional) */ linear_issue?: string; /** Project namespace (default: default) */ project?: Project; } export interface CreateThreadResult { success: boolean; thread?: ThreadObject; error?: string; total_open: number; supabase_synced: boolean; performance: PerformanceData; /** Phase 3: true when dedup gate found an existing duplicate */ deduplicated?: boolean; /** Phase 3: dedup gate details */ dedup?: { method: "embedding" | "token_overlap" | "text_normalization" | "skipped"; similarity: number | null; matched_thread_id: string | null; }; display?: string; } export declare function createThread(params: CreateThreadParams): Promise; //# sourceMappingURL=create-thread.d.ts.map