fix(sdk): detect video widgets from embedded <video> html

This commit is contained in:
clawdbot 2026-01-28 18:17:54 +08:00
parent 7ede21108d
commit 3d9154baf7

View File

@ -407,6 +407,10 @@ function looksLikeVideoOption(option: unknown): boolean {
// Prefer explicit video-ish keys when option is an object (including nested shapes).
if (typeof option === 'object') {
// Some exporters store a full <video> snippet under html-ish keys (html/code/template/etc).
// Treat that as a strong signal for a video widget.
if (containsVideoHtmlDeep(option, 2)) return true;
if (
hasAnyKeyDeep(
option,