jobsDirFor

tcmts.cli.mcp.jobsDirFor · #gjqw3d3v · term · runs on the server

uses node:path

Where a session's background jobs keep their files: in its own directory (sessionDirFor), or .tcm/jobs for a server on the codebase's own branch (--direct).

import { sessionDirFor } from "#codebase/tcmts/cli/codebase";
import path from "node:path";

export function jobsDirFor(root: string, branch?: string): string {
  return branch ? path.join(sessionDirFor(root, branch), "jobs") : path.join(root, ".tcm", "jobs");
}

uses

used by