ConusAI vendor v0.1.0-dev.20261027+9b1131fb
ci / gate (push) Waiting to run

This commit is contained in:
ConusAI vendor v0.1.0-dev.20261027+9b1131fb
2026-10-27 18:05:17 +00:00
commit 3102273ec7
538 changed files with 80203 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
// The Convex profile binding of the knowledge module, shipped fail-closed for a future wiring:
// the integration review kept the module Postgres-only because the search effect, the
// index/remove jobs and the enablement flow all leave the process and have no composed Convex
// Node actions yet (see README.md). Knowledge indexing needs the Node runtime boundary (the AI
// gateway SDK, the vector adapter), exactly like documents' OCR: the job handlers here fail
// closed so the work can only reach the platform SDKs through a composed Node action, never the
// transaction dispatcher.
import { defineModule, internal, type JobDef } from "@conusai-kit/core"
import { type DocumentJobPayload, documentPayload } from "./adapters/jobs.js"
import { INDEX_JOB, REMOVE_JOB } from "./contract/index.js"
import { KNOWLEDGE_MODULE_BASE } from "./module.shared.js"
const actionOnly = (name: string): JobDef<DocumentJobPayload> => ({
payload: documentPayload,
async handler() {
throw internal(`${name} must run through the Convex Node action boundary`)
},
})
export const convexKnowledgeModule = defineModule({
...KNOWLEDGE_MODULE_BASE,
jobs: { [INDEX_JOB]: actionOnly(INDEX_JOB), [REMOVE_JOB]: actionOnly(REMOVE_JOB) },
})