import path from "path";
import { WATERMARK_FILE_PATH } from "./watermark-policy";

export function getUploadDir(): string {
  return process.env.UPLOAD_DIR || path.join(process.cwd(), "uploads");
}

export function getJobDir(userId: string, jobId: string): string {
  return path.join(getUploadDir(), userId, jobId);
}

/** Brand watermark PNG used by the default overlay pipeline. */
export function getWatermarkPath(): string {
  return process.env.WATERMARK_FILE_PATH?.trim() || WATERMARK_FILE_PATH;
}

export { WATERMARK_FILE_PATH };
