Files
Jan Tomášek 188cff2073 Move optional runtimes into persistent gVisor plugin sandboxes
Move tunnel, browser, document, speech and integration runtimes into plugin-owned
sandboxes with lazy dependencies and instance-scoped lifecycle management.
Reuse Tuxee display assets and the sandbox image's Python/Node runtimes, enable
automatic Desktop login, and show elapsed time for each browser launch.

Slim the outer image, use offline ONNX embeddings, and calculate sandbox storage
only on demand. Include regression coverage and updated runtime documentation.
Exclude local handoff notes and temporary verification artifacts from publication.
2026-11-08 21:43:22 +01:00

25 lines
755 B
Python

from __future__ import annotations
import uuid
from helpers import virtual_desktop
from plugins._browser.helpers.sandbox import worker
DEFAULT_WIDTH, DEFAULT_HEIGHT = 1024, 768
def keyboard_options() -> dict[str, str]:
"""Resolve the configured XKB keyboard layout for browser displays."""
from plugins._browser.helpers.config import (
KEYBOARD_LAYOUT_KEY,
KEYBOARD_VARIANT_KEY,
get_browser_config,
)
config = get_browser_config()
return {
"layout": str(config.get(KEYBOARD_LAYOUT_KEY, "") or "").strip(),
"variant": str(config.get(KEYBOARD_VARIANT_KEY, "") or "").strip(),
}
def collect_status():
return {'available': True, 'missing': [], 'sandbox': True, 'running': worker.ready}