fix(plugins): retain custom-site grants for subdomain plugins
Problem
Prompt Manager stores a custom website as the normalized root domain (for example kimi.com) and grants a wildcard host permission covering subdomains. An official plugin may match only the actual chat host (for example https://www.kimi.com/*). When removing or toggling off the custom Prompt Manager website, useCustomWebsites checks only a probe URL at https://kimi.com/; it can miss the narrower enabled plugin and remove the shared wildcard grant. The plugin-discovery nudge also compares kimi.com and www.kimi.com by exact string, so it can show a dot even when the custom website is already enabled.
Expected behavior
- Preserve the existing apex-host behavior and retain a custom-site permission if any catalog plugin match pattern is contained by that grant, including a verified subdomain. Do not retain permissions for an unrelated lookalike host or broaden plugin-granted origins.
- Suppress the Prompt Manager discovery nudge when a stored custom-site domain covers the plugin host; keep distinct unrelated domains, deduplication and case handling intact.
- Test both removing an entry and switching off a quick-site toggle, with a subdomain-only plugin and unrelated controls. Preserve the existing storage format and optional user-gesture permission flow.
This is a focused permission and discovery fix independent of the new Kimi adapter. It unblocks the proposal in #1038 but does not add Kimi site selectors, browser permissions, or a new plugin by itself. PR verification and live cross-feature checks remain separate.
Source: Nagi-ovo/voyager