Commit Graph
2 Commits
Author SHA1 Message Date
Jan Tomášek 29cd56531b Fix upload filenames, browser audio and canvas resizing
Use the shared filename cleaner at Telegram, WhatsApp, email and archive upload boundaries. Bundle minimal Tuxee audio for browser playback through the authenticated viewer. Preview canvas width while dragging and commit once on release, shielding embedded frames from drag input.

Validation: focused filename, audio, gateway and canvas tests; native amd64 audio build with real Chromium stereo capture; Chromium iframe drag checks with and without pointer capture. Full deployed A0 UI and full image build were not tested.
2026-11-16 14:13:23 +01:00
Alessandro e3ba3d8452 add Plugin Validator built-in and harden plugin scanner
Add a built-in Plugin Validator core plugin (_plugin_validator) that validates
plugins against manifest, structure, code patterns, and security/index conventions.
Supports three input sources (local installed plugins, Git URL, ZIP upload) via
a dedicated UI with Local/Git/ZIP tabs. Exposes queue/start and sync run APIs,
mirroring the plugin scanner. Integrates into the installer flow by adding
extension anchors to the Git and ZIP install screens so plugins can be validated
before installation.

ZIP validation: backend endpoint extracts uploaded archives with path traversal
checks, discovers plugin root via plugin.yaml, and returns a temporary path for
agent validation; prompt instructs the agent to clean up afterward.

Scanner hardening: switch scan prompt/config loading to lazy loaders to avoid
import-time failures; add fetchText/fetchJson helpers with clear error reporting;
introduce poll-loop timeout (10 min) and stale queue-entry guard; log cleanup
failures instead of swallowing them in plugin_scan_run and plugin_validator_run.

align scan/validator errors with toastFrontendError

- remove backend logger usage from plugin scan and validator run/prompt helpers
- switch plugin scan user-facing failures to toastFrontendError
- drop the inline scan error block from the scan modal UI
- keep the installer extension integration unchanged

plugin git/zip install view css polish

harden agent-facing security scan API to dispose used context
2026-03-16 04:05:24 +01:00