Coverage for little_loops / adapters / omp.py: 83%
12 statements
« prev ^ index » next coverage.py v7.12.0, created at 2026-06-29 00:55 -0500
« prev ^ index » next coverage.py v7.12.0, created at 2026-06-29 00:55 -0500
1"""OmpEmitter stub (``--host omp``).
3Registered so ``--host omp`` produces a descriptive error rather than a
4``KeyError``. Full omp support is a separate follow-on under EPIC-2258.
5"""
7from __future__ import annotations
9from little_loops.adapters.core import AdapterError
11__all__ = ["OmpEmitter"]
13_REMEDIATION = "omp emitter not yet implemented — open a PR adding adapters/omp.py"
16class OmpEmitter:
17 """Stub emitter for the omp surface. All methods raise :class:`AdapterError`."""
19 name = "omp"
21 def emit_skill(self, skill_meta: dict) -> str:
22 raise AdapterError(_REMEDIATION)
24 def emit_command(self, cmd_meta: dict) -> str:
25 raise AdapterError(_REMEDIATION)
27 def emit_agent(self, agent_meta: dict) -> str:
28 raise AdapterError(_REMEDIATION)