MCPcopy Create free account
hub / github.com/backnotprop/plannotator / saveAnnotations

Function saveAnnotations

packages/shared/storage.ts:73–78  ·  view source on GitHub ↗
(slug: string, annotationsContent: string, customPath?: string | null)

Source from the content-addressed store, hash-verified

71 * Returns the full path to the saved file.
72 */
73export function saveAnnotations(slug: string, annotationsContent: string, customPath?: string | null): string {
74 const planDir = getPlanDir(customPath);
75 const filePath = join(planDir, `${slug}.annotations.md`);
76 writeFileSync(filePath, annotationsContent, "utf-8");
77 return filePath;
78}
79
80/**
81 * Save the final snapshot on approve/deny.

Callers 2

fetchFunction · 0.90
startPlanReviewServerFunction · 0.85

Calls 1

getPlanDirFunction · 0.85

Tested by

no test coverage detected