MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / findRepoMap

Function findRepoMap

projects/openade-module/src/yjsMutation.ts:205–209  ·  view source on GitHub ↗
(doc: Y.Doc, repoId: string)

Source from the content-addressed store, hash-verified

203}
204
205function findRepoMap(doc: Y.Doc, repoId: string): Y.Map<unknown> | null {
206 const repos = doc.getMap<Y.Map<unknown>>("repos:data")
207 const repo = repos.get(repoId)
208 return repo instanceof Y.Map ? repo : null
209}
210
211function ensureTaskPreview(repoMap: Y.Map<unknown>, preview: { id: string; slug: string; title: string; createdAt: string }, updatedAt: string): void {
212 const tasks = ensureYArray(repoMap, "tasks")

Callers 6

syncTaskMetadataPreviewFunction · 0.85
syncActionEventPreviewFunction · 0.85
createRepoFunction · 0.85
updateRepoFunction · 0.85
createTaskFunction · 0.85
deleteTaskFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected