MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / writeLegacyDecl

Function writeLegacyDecl

src/workspaces/issues/declaration.spec.ts:24–27  ·  view source on GitHub ↗

Write the retired single-file declaration (no issues/ dir).

(content: string)

Source from the content-addressed store, hash-verified

22
23/** Write the retired single-file declaration (no issues/ dir). */
24async function writeLegacyDecl(content: string): Promise<void> {
25 await mkdir(join(dir, '.alice'), { recursive: true })
26 await writeFile(join(dir, '.alice', 'issue.json'), content, 'utf8')
27}
28
29const fm = (front: string, body = ''): string => `---\n${front}\n---\n${body}`
30

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected