fix(plugin-sdk): add web-search contract subpath

This commit is contained in:
Vincent Koc
2026-04-06 23:28:29 +01:00
parent 3eecbc3c7d
commit 2a6e8dca47
9 changed files with 39 additions and 6 deletions

View File

@@ -328,6 +328,22 @@ describe("plugin-sdk subpath exports", () => {
"safeMatchRegex",
],
});
expectSourceContract("provider-web-search-contract", {
mentions: [
"enablePluginInConfig",
"getScopedCredentialValue",
"resolveProviderWebSearchPluginConfig",
"setScopedCredentialValue",
"setProviderWebSearchPluginConfigValue",
"WebSearchProviderPlugin",
],
omits: [
"buildSearchCacheKey",
"withTrustedWebSearchEndpoint",
"writeCachedSearchPayload",
"resolveCitationRedirectUrl",
],
});
expectSourceMentions("compat", [
"createPluginRuntimeStore",
"createScopedChannelConfigAdapter",