/**
 * tRPC Module
 *
 * Type-safe RPC layer for CLI-server communication.
 * Same interface for CLI and future WebUI clients.
 */

// Re-export router components
export {
  router,
  publicProcedure,
  middleware,
  createCallerFactory,
  appRouter,
  healthResponseSchema,
  statusResponseSchema,
  processInfoSchema,
} from './router.js';

// Export types
export type {
  AppRouter,
  HealthResponse,
  StatusResponse,
  ProcessInfo,
} from './router.js';

// Re-export context
export { createContext } from './context.js';
export type { TRPCContext, CreateContextOptions } from './context.js';
export type { EventBus, DomainEvent } from './context.js';
