(
id: string,
data: Partial<Omit<Annotation, "id" | "sessionId" | "createdAt">>
)
| 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, |
nothing calls this directly
no test coverage detected
searching dependent graphs…