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

Function prepareCopy

graph-ui/tools/smoke-w4d.mjs:173–190  ·  view source on GitHub ↗

Die Fixture-Kopie mit ihren Praeparaten. Die Fixture selbst wird nur gelesen.

(scratch)

Source from the content-addressed store, hash-verified

171
172/** Die Fixture-Kopie mit ihren Praeparaten. Die Fixture selbst wird nur gelesen. */
173async function prepareCopy(scratch) {
174 const copy = join(scratch, 'atlas-sample-w4d');
175 await cp(FIXTURE, copy, { recursive: true });
176 await writeFile(join(copy, BROKEN_FILE), BROKEN_SOURCE, 'utf8');
177 await mkdir(join(copy, 'assets'), { recursive: true });
178 await writeFile(join(copy, BINARY_FILE), fixedBinary());
179 // Die gitignorierte Datei ist gueltiges TypeScript und wuerde ohne die
180 // Regel indiziert. Nur so misst der Lauf die Regel und nicht die Endung.
181 await writeFile(
182 join(copy, IGNORED_FILE),
183 'export function ignoredHelper(value: string): string {\n'
184 + ' return value.trim();\n'
185 + '}\n',
186 'utf8',
187 );
188 await writeFile(join(copy, '.gitignore'), `${IGNORED_FILE}\n`, 'utf8');
189 return copy;
190}
191
192/** Ein Werkzeug ueber POST /rpc rufen, direkt am Server und ohne Origin. */
193async function rpc(port, tool, args) {

Callers 1

mainFunction · 0.85

Calls 1

fixedBinaryFunction · 0.85

Tested by

no test coverage detected