// The plugin manager for this instance, loaded once from config.plugins.
//
// Shared singleton: index.js wires its routes/hooks, publish.js fires onPublish,
// stats.js merges collectStats. A pluginless site (config.plugins = []) gets an
// empty manager — every call is a no-op, zero DB reads.
import { loadPlugins } from './plugin-manager.js';
import { config } from './config.js';

export const manager = await loadPlugins(config.plugins);
