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

Function writeIssue

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

Write `.alice/issues/ .md`.

(id: string, content: string)

Source from the content-addressed store, hash-verified

16
17/** Write `.alice/issues/<id>.md`. */
18async function writeIssue(id: string, content: string): Promise<void> {
19 await mkdir(join(dir, '.alice', 'issues'), { recursive: true })
20 await writeFile(join(dir, '.alice', 'issues', `${id}.md`), content, 'utf8')
21}
22
23/** Write the retired single-file declaration (no issues/ dir). */
24async function writeLegacyDecl(content: string): Promise<void> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected