// The knowledge module's manifest (spec ยง4.1): the one place it registers anything. The normal // (Postgres) app binds the worker implementations of the index/remove jobs; the module's own // outbox subscribers enqueue them, so a web request writes the row and answers, never waiting on // chunking, embeddings or the vector store. import { defineModule } from "@conusai-kit/core" import { KNOWLEDGE_JOBS, KNOWLEDGE_SUBSCRIPTIONS } from "./adapters/jobs.js" import { KNOWLEDGE_EVENTS } from "./contract/index.js" import { KNOWLEDGE_MODULE_BASE } from "./module.shared.js" export const knowledgeModule = defineModule({ ...KNOWLEDGE_MODULE_BASE, jobs: KNOWLEDGE_JOBS, events: { publishes: [...KNOWLEDGE_EVENTS], subscribes: KNOWLEDGE_SUBSCRIPTIONS }, })