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

Function isExpectedTaskDoc

projects/openade-module/src/nodeYjsStorage.ts:100–108  ·  view source on GitHub ↗
(id: string, data: Uint8Array)

Source from the content-addressed store, hash-verified

98}
99
100function isExpectedTaskDoc(id: string, data: Uint8Array): boolean {
101 const expected = expectedTaskMetaId(id)
102 if (!expected) return true
103 try {
104 return readTaskMetaId(data) === expected
105 } catch {
106 return false
107 }
108}
109
110function defaultLegacyNestedRootDir(rootDir: string): string | null {
111 const resolved = path.resolve(rootDir)

Callers 2

readLegacyUpdateFunction · 0.70
readUpdateFunction · 0.70

Calls 2

expectedTaskMetaIdFunction · 0.70
readTaskMetaIdFunction · 0.70

Tested by

no test coverage detected