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

Function writeTombstoneGeneration

packages/shared/draft.ts:77–80  ·  view source on GitHub ↗
(key: string, draftGeneration: number)

Source from the content-addressed store, hash-verified

75}
76
77function writeTombstoneGeneration(key: string, draftGeneration: number): void {
78 const filePath = tombstonePath(key);
79 writeFileSync(filePath, JSON.stringify({ draftGeneration }), "utf-8");
80}
81
82function clearTombstone(key: string): void {
83 const filePath = tombstonePath(key);

Callers 1

deleteDraftFunction · 0.85

Calls 1

tombstonePathFunction · 0.85

Tested by

no test coverage detected