MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / write

Function write

test/artifact-store.test.ts:47–47  ·  view source on GitHub ↗
(p: string, c: string)

Source from the content-addressed store, hash-verified

45 console.log('— fs round-trip —');
46 const tmp = await fs.mkdtemp(path.join(os.tmpdir(), 'qodex-artifacts-'));
47 const write = async (p: string, c: string) => { await fs.mkdir(path.dirname(p), { recursive: true }); await fs.writeFile(p, c); };
48
49 const { manifest: m1 } = await createArtifact(tmp, { title: 'Landing Page', type: 'html', content: '<h1>v1</h1>' }, write);
50 check('create returns id', m1.id === 'landing-page');

Callers 2

createArtifactFunction · 0.50
updateArtifactFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected