MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / saveJobFile

Function saveJobFile

src/job-config.ts:198–203  ·  view source on GitHub ↗
(workDir: string, jobFile: JobFile)

Source from the content-addressed store, hash-verified

196}
197
198export function saveJobFile(workDir: string, jobFile: JobFile): void {
199 const filePath = getJobFilePath(workDir);
200 const normalized = normalizeJobFile(jobFile);
201 validateJobFileShape(normalized, filePath);
202 fs.writeFileSync(filePath, JSON.stringify(normalized, null, 2) + "\n", "utf-8");
203}

Callers 4

persistJobsMethod · 0.85
job-config.test.tsFile · 0.85
scheduler.test.tsFile · 0.85
zip.test.tsFile · 0.85

Calls 3

getJobFilePathFunction · 0.85
normalizeJobFileFunction · 0.85
validateJobFileShapeFunction · 0.85

Tested by

no test coverage detected