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

Function readRepos

projects/openade-module/src/yjsProjection.ts:140–143  ·  view source on GitHub ↗
(storage: OpenADEYjsStorageAdapter, options: { workingTaskIds: string[]; pinnedTaskIds: string[] })

Source from the content-addressed store, hash-verified

138}
139
140async function readRepos(storage: OpenADEYjsStorageAdapter, options: { workingTaskIds: string[]; pinnedTaskIds: string[] }): Promise<OpenADEProject[]> {
141 const repos = (await storage.readOrderedArray<Record<string, unknown>>("code:repos", "repos")) ?? []
142 return repos.map((repo) => toOpenADEProject(repo, options)).filter((repo): repo is OpenADEProject => repo !== null)
143}
144
145function resolveTheme(settings: Record<string, unknown>): OpenADESnapshot["server"]["theme"] {
146 const setting = stringValue(settings.theme, "system")

Callers 1

readSnapshotFunction · 0.85

Calls 1

toOpenADEProjectFunction · 0.85

Tested by

no test coverage detected