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

Function updateAnnotation

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

Source from the content-addressed store, hash-verified

456 },
457
458 updateAnnotation(
459 id: string,
460 data: Partial<Omit<Annotation, "id" | "sessionId" | "createdAt">>
461 ): Annotation | undefined {
462 const existing = this.getAnnotation(id);
463 if (!existing) return undefined;
464
465 stmts.updateAnnotation.run({
466 id,
467 comment: data.comment ?? null,
468 status: data.status ?? null,
469 updatedAt: new Date().toISOString(),
470 resolvedAt: data.resolvedAt ?? null,
471 resolvedBy: data.resolvedBy ?? null,
472 thread: data.thread ? JSON.stringify(data.thread) : null,
473 intent: data.intent ?? null,
474 severity: data.severity ?? null,
475 });
476
477 const updated = this.getAnnotation(id);
478 if (updated && existing.sessionId) {
479 const event = eventBus.emit("annotation.updated", existing.sessionId, updated);
480 persistEvent(event);
481 }
482 return updated;
483 },
484
485 updateAnnotationStatus(
486 id: string,

Callers

nothing calls this directly

Calls 3

persistEventFunction · 0.85
getAnnotationMethod · 0.80
emitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…