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
+20
View File
@@ -0,0 +1,20 @@
// Convex can execute documents.ocr only through documentsActions:process, where the Node runtime
// boundary contains the OCR/model SDKs. This manifest keeps the same payload validator and makes
// accidental invocation through the transaction dispatcher fail closed.
import { defineModule, internal, type JobDef } from "@conusai-kit/core"
import { type ProcessorJobPayload, processorJobPayloadSchema } from "@conusai-kit/files"
import { OCR_JOB } from "./contract/index.js"
import { DOCUMENTS_MODULE_BASE } from "./module.shared.js"
const actionOnlyJob: JobDef<ProcessorJobPayload> = {
payload: processorJobPayloadSchema,
async handler() {
throw internal("documents.ocr must run through the Convex Node action")
},
}
export const convexDocumentsModule = defineModule({
...DOCUMENTS_MODULE_BASE,
jobs: { [OCR_JOB]: actionOnlyJob },
})