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

Function updateAnnotationStatus

mcp/src/server/store.ts:173–195  ·  view source on GitHub ↗
(
      id: string,
      status: AnnotationStatus,
      resolvedBy?: "human" | "agent"
    )

Source from the content-addressed store, hash-verified

171 },
172
173 updateAnnotationStatus(
174 id: string,
175 status: AnnotationStatus,
176 resolvedBy?: "human" | "agent"
177 ): Annotation | undefined {
178 const annotation = annotations.get(id);
179 if (!annotation) return undefined;
180
181 annotation.status = status;
182 annotation.updatedAt = new Date().toISOString();
183
184 if (status === "resolved" || status === "dismissed") {
185 annotation.resolvedAt = new Date().toISOString();
186 annotation.resolvedBy = resolvedBy || "agent";
187 }
188
189 if (annotation.sessionId) {
190 const event = eventBus.emit("annotation.updated", annotation.sessionId, annotation);
191 events.push(event);
192 }
193
194 return annotation;
195 },
196
197 addThreadMessage(
198 annotationId: string,

Callers

nothing calls this directly

Calls 3

getStoreFunction · 0.85
emitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…