export function inferSourceDataSource(sourcePath, override = "") { const explicit = String(override || "").trim().toUpperCase(); if (explicit === "FILESYSTEM") { return "LOCAL"; } if (explicit) { return explicit; } const normalizedPath = String(sourcePath || "").trim().toLowerCase(); if (!normalizedPath) { return ""; } return normalizedPath.startsWith("bos://") ? "BOS" : "LOCAL"; }