feat(rommie): add JPEG quality and size cap for get_screenshot
- Add ROMMIE_SCREENSHOT_JPEG_QUALITY and ROMMIE_SCREENSHOT_MAX_KB env vars to control parent-agent screenshot output encoding and size limit - Configure defaults (quality 80, 512KB cap) in caliban.incus host vars - Trigger rommie service restart when .env file changes
This commit is contained in:
@@ -30,3 +30,10 @@ ROMMIE_GROUNDING_HEIGHT={{ rommie_grounding_height | default(1024) }}
|
||||
ROMMIE_HOST={{ rommie_host | default('0.0.0.0') }}
|
||||
ROMMIE_PORT={{ rommie_port }}
|
||||
ROMMIE_ALLOWED_HOSTS={{ rommie_allowed_hosts }}
|
||||
|
||||
# ============================================================================
|
||||
# get_screenshot (parent-agent) output
|
||||
# JPEG-encode and refuse if over the cap (asks operator to lower RDP resolution)
|
||||
# ============================================================================
|
||||
ROMMIE_SCREENSHOT_JPEG_QUALITY={{ rommie_screenshot_jpeg_quality | default(80) }}
|
||||
ROMMIE_SCREENSHOT_MAX_KB={{ rommie_screenshot_max_kb | default(512) }}
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
src: .env.j2
|
||||
dest: "{{rommie_repo}}/.env"
|
||||
mode: '0600'
|
||||
notify:
|
||||
- Restart rommie
|
||||
|
||||
- name: Deploy Rommie systemd service
|
||||
template:
|
||||
|
||||
Reference in New Issue
Block a user