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

Function readBack

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

Read one issue back through the real reader (the round-trip oracle).

(id: string)

Source from the content-addressed store, hash-verified

17
18/** Read one issue back through the real reader (the round-trip oracle). */
19async function readBack(id: string) {
20 const r = await readWorkspaceIssues(dir)
21 if (!r.ok) throw new Error(`readWorkspaceIssues not ok: ${JSON.stringify(r)}`)
22 const issue = r.issues.find((i) => i.id === id)
23 return { issue, invalid: r.invalid }
24}
25
26describe('createIssue', () => {
27 it('derives a kebab slug from the title and writes a readable issue', async () => {

Callers 1

mutate.spec.tsFile · 0.70

Calls 1

readWorkspaceIssuesFunction · 0.85

Tested by

no test coverage detected