MCPcopy
hub / github.com/openai/codex-plugin-cc / createJobLogFile

Function createJobLogFile

plugins/codex/scripts/lib/tracked-jobs.mjs:51–58  ·  view source on GitHub ↗
(workspaceRoot, jobId, title)

Source from the content-addressed store, hash-verified

49}
50
51export function createJobLogFile(workspaceRoot, jobId, title) {
52 const logFile = resolveJobLogFile(workspaceRoot, jobId);
53 fs.writeFileSync(logFile, "", "utf8");
54 if (title) {
55 appendLogLine(logFile, `Starting ${title}.`);
56 }
57 return logFile;
58}
59
60export function createJobRecord(base, options = {}) {
61 const env = options.env ?? process.env;

Callers 1

createTrackedProgressFunction · 0.90

Calls 2

resolveJobLogFileFunction · 0.90
appendLogLineFunction · 0.85

Tested by

no test coverage detected