MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / replaceEditmodeBlock

Function replaceEditmodeBlock

packages/shared/src/editmode.ts:119–122  ·  view source on GitHub ↗
(source: string, newTokens: EditmodeTokens)

Source from the content-addressed store, hash-verified

117}
118
119export function replaceEditmodeBlock(source: string, newTokens: EditmodeTokens): string {
120 const json = JSON.stringify(newTokens, null, 2);
121 return replaceMarkerBlock(source, 'EDITMODE', json);
122}
123
124function parseLegacyStringLiteral(raw: string): string | null {
125 if (raw.length < 2) return null;

Callers 3

editmode.test.tsFile · 0.90
schedulePersistFunction · 0.90

Calls 1

replaceMarkerBlockFunction · 0.85

Tested by

no test coverage detected