From 69bb325caeba70c2554f937f727bbf85c152f6ec Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Mon, 21 Sep 2026 22:32:40 -0700 Subject: [PATCH] fix(plugins): admission lint refuses static URL-scheme imports in desktop/plugin.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'dynamic import outside the SDK' rule matched only import(); a static import 'https://…' passed admission while being the same one-line second stage. New rule 'remote import outside the SDK' mirrors the loader's allowlist so review and the app agree. --- hermes_cli/plugin_validate_desktop.py | 6 ++++++ tests/hermes_cli/test_plugin_validate.py | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/hermes_cli/plugin_validate_desktop.py b/hermes_cli/plugin_validate_desktop.py index e7c8539432..c48a790048 100644 --- a/hermes_cli/plugin_validate_desktop.py +++ b/hermes_cli/plugin_validate_desktop.py @@ -25,6 +25,12 @@ _FORBIDDEN: Tuple[Tuple[str, "re.Pattern[str]"], ...] = ( re.compile(r"(?