MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / goodRewrite

Function goodRewrite

graph-ui/src/pseudocode/refine.test.ts:21–25  ·  view source on GitHub ↗

The block, rewritten the way a well-behaved model would rewrite it.

(document: PseudocodeDocument)

Source from the content-addressed store, hash-verified

19
20/** The block, rewritten the way a well-behaved model would rewrite it. */
21function goodRewrite(document: PseudocodeDocument): string {
22 return document.lines
23 .map((line) => (line.order === undefined ? `${line.text} (rephrased)` : `${line.order}. rephrased ${line.text.replace(/^\d+\.\s*/, '')}`))
24 .join('\n');
25}
26
27describe('a rewrite that keeps the promise', () => {
28 it('is applied, line for line', () => {

Callers 1

refine.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected