import type { ChronicleDreamRun } from '../use-chronicle'

export const chronicleDreamRunFixtures: ChronicleDreamRun[] = [
  {
    id: 'dream-completed',
    workspaceId: 'workspace-1',
    runType: 'dry-run',
    status: 'completed',
    startedAt: '2026-07-23T02:00:00.000Z',
    startedAtUnix: 1_753_237_200,
    endedAt: '2026-07-23T02:00:09.000Z',
    endedAtUnix: 1_753_237_209,
    inputCount: 48,
    outputCount: 8,
    mergedCount: 0,
    deletedCount: 0,
    sourceKnowledgeIds: ['knowledge-decision', 'knowledge-pattern'],
    outputKnowledgeIds: [],
    config: {},
    result: {
      candidateCount: 8,
      vectorMode: 'semantic + lexical',
    },
    errorMessage: null,
  },
  {
    id: 'dream-running',
    workspaceId: 'workspace-1',
    runType: 'merge',
    status: 'running',
    startedAt: '2026-07-23T11:20:00.000Z',
    startedAtUnix: 1_753_270_800,
    endedAt: null,
    endedAtUnix: null,
    inputCount: 52,
    outputCount: 0,
    mergedCount: 0,
    deletedCount: 0,
    sourceKnowledgeIds: ['knowledge-decision'],
    outputKnowledgeIds: [],
    config: {},
    result: {
      candidateCount: 5,
      vectorMode: 'semantic',
    },
    errorMessage: null,
  },
  {
    id: 'dream-failed',
    workspaceId: null,
    runType: 'archive',
    status: 'failed',
    startedAt: '2026-07-22T23:00:00.000Z',
    startedAtUnix: 1_753_226_400,
    endedAt: '2026-07-22T23:00:02.000Z',
    endedAtUnix: 1_753_226_402,
    inputCount: 31,
    outputCount: 0,
    mergedCount: 0,
    deletedCount: 0,
    sourceKnowledgeIds: [],
    outputKnowledgeIds: [],
    config: {},
    result: {
      candidateCount: 3,
      vectorMode: 'unavailable',
    },
    errorMessage: 'The embedding model is unavailable. Install it and retry.',
  },
]
