// auto-generated by @connexum/ai-governance — do not edit; regenerate via npx ai-governance init --agent-dir
// agent-id: {{AGENT_ID}}
// source:   {{SOURCE_FILE}}
/**
 * Governance shim for {{MODULE_NAME}}.
 * Wraps Anthropic client with Connexum governance enforcement.
 * Change pack assignments in governance.json; regenerate this file to apply.
 */

import { createGovernedAnthropic } from '@connexum/typescript-sdk';
import type { GovernedAnthropicInstance } from '@connexum/typescript-sdk';

// Re-export everything from the original module
export * from './{{MODULE_NAME}}';

// Override the `client` export with a governed wrapper.
// The governed client intercepts all messages.create() calls,
// runs pre-call governance checks, and logs to the audit chain.
export const client: GovernedAnthropicInstance = createGovernedAnthropic({
  tenantId: process.env['CONNEXUM_TENANT_ID'] ?? '',
  agentId: '{{AGENT_ID}}',
  packs: {{PACKS}},
  governanceSidecarUrl: process.env['CONNEXUM_API_URL'] ?? 'http://localhost:4201',
  licenseKey: process.env['CONNEXUM_LICENSE_KEY'] ?? '',
});
