Spaces:
Runtime error
Runtime error
| """Containerized desktop VM module.""" | |
| from __future__ import annotations | |
| import asyncio | |
| from jenaai.core.module import BaseModule | |
| class Module(BaseModule): | |
| """Expose VM tasks through event bus.""" | |
| async def start(self) -> None: | |
| await self.event_bus.publish( | |
| "system.log", | |
| {"message": "Desktop VM ready", "module": self.metadata.name}, | |
| ) | |
| async def run_task(self, command: str) -> str: | |
| await asyncio.sleep(0.1) | |
| return f"VM executed: {command}" | |