import path from "node:path";

export function createRunPaths(runId: string) {
  const root = path.join(process.cwd(), ".rpa", "human-commit-baseline", runId);
  return {
    root,
    har: path.join(root, "baseline.har"),
    trace: path.join(root, "trace.zip"),
    videoDir: path.join(root, "video"),
    consoleLog: path.join(root, "console.ndjson"),
    networkLog: path.join(root, "network.ndjson"),
    checkpoints: path.join(root, "checkpoints.json"),
    commitMoments: path.join(root, "commit-moments.json"),
    summary: path.join(root, "summary.json"),
    status: path.join(root, "recording.status.json"),
    triggerDir: path.join(root, "triggers"),
    triggerAfterPickup: path.join(root, "triggers", "after-pickup"),
    triggerAfterDelivery: path.join(root, "triggers", "after-delivery"),
    triggerAfterQuote: path.join(root, "triggers", "after-quote"),
    triggerFinish: path.join(root, "triggers", "finish"),
  };
}
