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

Function applyYjsUpdate

projects/openade-module/src/nodeYjsStorage.ts:80–84  ·  view source on GitHub ↗
(data: Uint8Array)

Source from the content-addressed store, hash-verified

78}
79
80function applyYjsUpdate(data: Uint8Array): Y.Doc {
81 const doc = new Y.Doc()
82 Y.applyUpdate(doc, data)
83 return doc
84}
85
86function expectedTaskMetaId(id: string): string | null {
87 return id.startsWith("code:task:") ? id.slice("code:task:".length) : null

Callers 2

readTaskMetaIdFunction · 0.70
loadDocFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected