/**
 * Knowledge emitters — typed wrappers for KnowledgeEvent domain.
 */
import { createEventEnvelope } from '../events/envelope.js';
function knowledgeEvent(type, data, ctx) {
    return createEventEnvelope(type, { type, ...data }, ctx);
}
export function emitKnowledgeIngestStarted(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_INGEST_STARTED', data, ctx));
}
export function emitKnowledgeIngestCompleted(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_INGEST_COMPLETED', data, ctx));
}
export function emitKnowledgeIngestFailed(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_INGEST_FAILED', data, ctx));
}
export function emitKnowledgeExtractionCompleted(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_EXTRACTION_COMPLETED', data, ctx));
}
export function emitKnowledgeExtractionFailed(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_EXTRACTION_FAILED', data, ctx));
}
export function emitKnowledgeCompileCompleted(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_COMPILE_COMPLETED', data, ctx));
}
export function emitKnowledgeLintCompleted(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_LINT_COMPLETED', data, ctx));
}
export function emitKnowledgePacketBuilt(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_PACKET_BUILT', data, ctx));
}
export function emitKnowledgeProjectionRendered(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_PROJECTION_RENDERED', data, ctx));
}
export function emitKnowledgeProjectionMaterialized(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_PROJECTION_MATERIALIZED', data, ctx));
}
export function emitKnowledgeJobQueued(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_JOB_QUEUED', data, ctx));
}
export function emitKnowledgeJobStarted(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_JOB_STARTED', data, ctx));
}
export function emitKnowledgeJobCompleted(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_JOB_COMPLETED', data, ctx));
}
export function emitKnowledgeJobFailed(bus, ctx, data) {
    bus.emit('knowledge', knowledgeEvent('KNOWLEDGE_JOB_FAILED', data, ctx));
}
