Saidie000's picture
Upload 83 files
09f1b19 verified
raw
history blame contribute delete
518 Bytes
"""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}"