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

Function isExpectedTaskDoc

projects/electron/src/modules/code/yjsStorage.ts:101–109  ·  view source on GitHub ↗
(id: string, data: Uint8Array)

Source from the content-addressed store, hash-verified

99}
100
101function isExpectedTaskDoc(id: string, data: Uint8Array): boolean {
102 const expected = expectedTaskMetaId(id)
103 if (!expected) return true
104 try {
105 return readTaskMetaId(data) === expected
106 } catch {
107 return false
108 }
109}
110
111async function writeMigratedDoc(filePath: string, data: Uint8Array): Promise<void> {
112 await ensureStorageDir()

Callers 1

handleLoadFunction · 0.70

Calls 2

expectedTaskMetaIdFunction · 0.70
readTaskMetaIdFunction · 0.70

Tested by

no test coverage detected