/** * @weave_protocol/hundredmen: library entry point. * The MCP server lives in server.ts (bin). */ // Re-export for API integration export { Interceptor } from './interceptor.js'; export { ReputationManager } from './reputation.js'; export { WardPolicyManager } from './ward.js'; export type { WardCheckResult, WardCheckBreakdown, WardManagerStatus } from './ward.js'; export * from './types.js'; // Importing this module has no side effects. Run directly (`node dist/index.js`, // as older MCP configs do), it still starts the server; the bin points at server.js. import { realpathSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; const invokedDirectly = (() => { try { return !!process.argv[1] && realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url)); } catch { return false; } })(); if (invokedDirectly) void import('./server.js');