/** * simulation-registry.ts — Auto-register simulation solver factories. * * SimulationSolverFactory (in @holoscript/core) is a runtime registry that * avoids circular deps between core trait handlers and engine solvers. * Engine registers solver constructors; core trait handlers call create() * without importing engine directly. * * PROBLEM: The only call site was SimulationProvider.tsx (React mount), * meaning all trait-driven simulation silently returned null in Node/MCP/CLI. * * FIX: This module provides initSimulationSolvers(), which registers all * solver factories with SimulationSolverFactory. It is idempotent — calling * it multiple times is safe. The engine index.ts re-exports it so any * consumer that imports @holoscript/engine (or @holoscript/engine/simulation) * can call it once at startup. * * SimulationProvider.tsx now delegates here instead of registering manually. */ /** * Register all simulation solver factories with SimulationSolverFactory. * * Idempotent — safe to call multiple times. After the first call, subsequent * calls are no-ops. This is the canonical registration path for non-React * contexts (Node, CLI, MCP server). In React contexts, * SimulationProvider also calls this for belt-and-suspenders coverage. * * Also registers WASM meshers (TetGen) as a side effect, matching the * behavior of the former registerSimulationSolvers() in register.ts. */ export declare function initSimulationSolvers(): void; /** * Reset the initialization state. For testing only — allows re-running * initSimulationSolvers() after SimulationSolverFactory.clear(). */ export declare function resetSimulationRegistry(): void; //# sourceMappingURL=simulation-registry.d.ts.map