/**
 * Log Chunk Repository Port Interface
 *
 * Port for agent log chunk persistence operations.
 * No FK to agents — chunks survive agent deletion.
 */

import type { AgentLogChunk } from '../schema.js';

export interface LogChunkRepository {
  insertChunk(data: {
    agentId: string;
    agentName: string;
    sessionNumber: number;
    content: string;
  }): Promise<void>;

  findByAgentId(agentId: string): Promise<Pick<AgentLogChunk, 'content' | 'sessionNumber' | 'createdAt'>[]>;

  deleteByAgentId(agentId: string): Promise<void>;

  getSessionCount(agentId: string): Promise<number>;
}
