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

1"""OmpEmitter stub (``--host omp``). 

2 

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""" 

6 

7from __future__ import annotations 

8 

9from little_loops.adapters.core import AdapterError 

10 

11__all__ = ["OmpEmitter"] 

12 

13_REMEDIATION = "omp emitter not yet implemented — open a PR adding adapters/omp.py" 

14 

15 

16class OmpEmitter: 

17 """Stub emitter for the omp surface. All methods raise :class:`AdapterError`.""" 

18 

19 name = "omp" 

20 

21 def emit_skill(self, skill_meta: dict) -> str: 

22 raise AdapterError(_REMEDIATION) 

23 

24 def emit_command(self, cmd_meta: dict) -> str: 

25 raise AdapterError(_REMEDIATION) 

26 

27 def emit_agent(self, agent_meta: dict) -> str: 

28 raise AdapterError(_REMEDIATION)