/** * learning/instincts.ts — Instinct log for Bizar self-learning. * * v10.1.1 — Pillar D: Instinct log backed by `.bizar/learning/instincts.jsonl`. * * Each entry: * {id, trigger, action, confidence: 0-1, evidence: string[], * scope: 'project'|'global', project, created_at, updated_at} * * Atomic append via fs.appendFileSync (Node's async form flushes by default; * verified by the smoke test in instincts.test.mjs). * * Auto-write path: PostToolUse hook on Bash for high-frequency commands * (npm install, git push, etc.) via `.claude/hooks/auto-instinct.sh`. */ /** Record a new instinct. Returns the created entry. */ export declare function recordInstinct({ trigger, action, confidence, evidence, scope, project, }: { trigger: string; action: string; confidence?: number; evidence?: string[]; scope?: "project" | "global"; project?: string; }): Record; /** List all instincts, optionally filtered by scope. */ export declare function listInstincts(opts?: { scope?: "project" | "global"; project?: string; }): Record[]; /** Promote an instinct's confidence (returns updated entry or null). */ export declare function promoteInstinct(id: string, newConfidence: number, opts?: { project?: string; }): Record | null; /** Drop an instinct by id (returns true if found and removed). */ export declare function dropInstinct(id: string, opts?: { project?: string; }): boolean; //# sourceMappingURL=instincts.d.ts.map