#!/usr/bin/env node
/**
 * SessionStart hook — pre-warm the Xenova embedding pipeline (Phase 2 Task 12).
 *
 * Loads Xenova/all-MiniLM-L6-v2 into the cache so the first real embed() in
 * the session pays no cold-start cost (~5-10s on first ever load, milliseconds
 * thereafter). Silent: exits 0 regardless of outcome — embedding is optional.
 * Register in `.claude/settings.json` SessionStart hooks (Task 15).
 */

import { embed } from './router-embedding.mjs';

(async () => {
  try {
    await embed('warmup');
  } catch {
    // Swallow — never block session start on embedding.
  }
  process.exit(0);
})();
