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
+23
View File
@@ -0,0 +1,23 @@
// The Convex profile binding of the agent module, shipped fail-closed for a future wiring: the
// integration review kept the module Postgres-only because a run's tool calls leave the process
// (the registry client, the AI gateway) and the run job has no composed Convex Node action yet
// (see README.md). The job fails closed here so the work can only reach the platform SDKs through
// a composed Node action, never the Convex transaction dispatcher — the same arrangement as
// documents' OCR.
import { defineModule, internal, type JobDef } from "@conusai-kit/core"
import { z } from "zod"
import { RUN_JOB } from "./contract/index.js"
import { AGENT_MODULE_BASE } from "./module.shared.js"
const actionOnly: JobDef<{ runId: string }> = {
payload: z.object({ runId: z.string() }),
async handler() {
throw internal(`${RUN_JOB} must run through the Convex Node action boundary`)
},
}
export const convexAgentModule = defineModule({
...AGENT_MODULE_BASE,
jobs: { [RUN_JOB]: actionOnly },
})