MCPcopy
hub / github.com/benjitaylor/agentation / updateAnnotation

Function updateAnnotation

mcp/src/server/store.ts:156–171  ·  view source on GitHub ↗
(
      id: string,
      data: Partial<Omit<Annotation, "id" | "sessionId" | "createdAt">>
    )

Source from the content-addressed store, hash-verified

154 },
155
156 updateAnnotation(
157 id: string,
158 data: Partial<Omit<Annotation, "id" | "sessionId" | "createdAt">>
159 ): Annotation | undefined {
160 const annotation = annotations.get(id);
161 if (!annotation) return undefined;
162
163 Object.assign(annotation, data, { updatedAt: new Date().toISOString() });
164
165 if (annotation.sessionId) {
166 const event = eventBus.emit("annotation.updated", annotation.sessionId, annotation);
167 events.push(event);
168 }
169
170 return annotation;
171 },
172
173 updateAnnotationStatus(
174 id: string,

Callers 1

updateAnnotationHandlerFunction · 0.70

Calls 3

getStoreFunction · 0.85
emitMethod · 0.80
updateAnnotationMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…