// The agent module's manifest (spec ยง4.1): the one place it registers anything. The module's own // outbox subscriber enqueues the run job (singleton on the run id), so a request writes the run // row and answers; the worker executes and resumes it. import { defineModule } from "@conusai-kit/core" import { AGENT_JOBS, AGENT_SUBSCRIPTIONS } from "./adapters/procedures.js" import { AGENT_EVENTS } from "./contract/index.js" import { AGENT_MODULE_BASE } from "./module.shared.js" export const agentModule = defineModule({ ...AGENT_MODULE_BASE, jobs: AGENT_JOBS, events: { publishes: [...AGENT_EVENTS], subscribes: AGENT_SUBSCRIPTIONS }, })