import { existsSync, readdirSync } from "node:fs";
import { join } from "node:path";
function probePythonPackages(dataDir) {
  return {
    reranker: probeRerankerCache(dataDir),
    embeddings: probeFastembedCache(dataDir)
  };
}
function probeRerankerCache(dataDir) {
  const cacheDir = join(dataDir, "transformers");
  if (!existsSync(cacheDir)) return "missing";
  try {
    return readdirSync(cacheDir).length > 0 ? "ok" : "missing";
  } catch {
    return "missing";
  }
}
function probeFastembedCache(dataDir) {
  const cacheDir = join(dataDir, "fastembed");
  if (!existsSync(cacheDir)) return "missing";
  try {
    return readdirSync(cacheDir).length > 0 ? "ok" : "missing";
  } catch {
    return "missing";
  }
}
export {
  probePythonPackages
};
//# sourceMappingURL=status-python.js.map