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

Function deleteAnnotation

mcp/src/server/sqlite.ts:534–546  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

532 },
533
534 deleteAnnotation(id: string): Annotation | undefined {
535 const existing = this.getAnnotation(id);
536 if (!existing) return undefined;
537
538 stmts.deleteAnnotation.run(id);
539
540 if (existing.sessionId) {
541 const event = eventBus.emit("annotation.deleted", existing.sessionId, existing);
542 persistEvent(event);
543 }
544
545 return existing;
546 },
547
548 // Events
549 getEventsSince(sessionId: string, sequence: number): AFSEvent[] {

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…