Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

499 B
Raw Blame
import { db } from '@mimik/core/guides/db';
import type { CheckResult } from './types';

export async function open(): Promise<CheckResult> {
  await db.open();
  const tables = db.tables.map((t) => t.name).sort();
  const expected = ['guideMerges', 'guides', 'screenshots', 'snapshots', 'steps', 'transcripts', 'voiceClips'];
  return {
    name: 'MimikDB opens',
    ok: db.verno === 5 && expected.every((t) => tables.includes(t)),
    detail: `v${db.verno}, tables: ${tables.join(', ')}`,
  };
}