(
eventType: AIDevtoolsRunEventType,
runId: string,
status: AIDevtoolsRunStatus,
options: { error?: string } = {},
)
| 493 | } |
| 494 | |
| 495 | emitRunLifecycle( |
| 496 | eventType: AIDevtoolsRunEventType, |
| 497 | runId: string, |
| 498 | status: AIDevtoolsRunStatus, |
| 499 | options: { error?: string } = {}, |
| 500 | ): void { |
| 501 | if (!this.prepareForEmit()) { |
| 502 | return |
| 503 | } |
| 504 | emitAIDevtoolsEvent(eventType, { |
| 505 | ...this.createEnvelope(eventType, 'client-state', { runId }), |
| 506 | runId, |
| 507 | status, |
| 508 | ...(options.error ? { error: options.error } : {}), |
| 509 | }) |
| 510 | } |
| 511 | |
| 512 | deactivate(): void { |
| 513 | const activeBridgeByHookId = getActiveBridgeRegistry() |
no test coverage detected