MCPcopy Create free account
hub / github.com/AnkRoot/Augment-BYOK / savePatchText

Function savePatchText

tools/patch/patch-target.js:19–23  ·  view source on GitHub ↗
(filePath, text, { marker } = {})

Source from the content-addressed store, hash-verified

17}
18
19function savePatchText(filePath, text, { marker } = {}) {
20 const next = marker ? ensureMarker(String(text ?? ""), marker) : String(text ?? "");
21 writeText(filePath, next);
22 return next;
23}
24
25function loadPatchJson(filePath) {
26 return readJson(assertFileExists(filePath));

Calls 2

ensureMarkerFunction · 0.85
writeTextFunction · 0.50

Tested by

no test coverage detected