(
id: string,
status: AnnotationStatus,
resolvedBy?: "human" | "agent"
)
| 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, |
nothing calls this directly
no test coverage detected
searching dependent graphs…