mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 07:00:23 +00:00
perf(plugin-sdk): split web search config contract
This commit is contained in:
@@ -153,6 +153,9 @@ describe("opt-in extension package boundaries", () => {
|
||||
expect(packageJson.exports?.["./provider-web-search-contract"]?.types).toBe(
|
||||
"./dist/src/plugin-sdk/provider-web-search-contract.d.ts",
|
||||
);
|
||||
expect(packageJson.exports?.["./provider-web-search-config-contract"]?.types).toBe(
|
||||
"./dist/src/plugin-sdk/provider-web-search-config-contract.d.ts",
|
||||
);
|
||||
expect(packageJson.exports?.["./runtime-doctor"]?.types).toBe(
|
||||
"./dist/src/plugin-sdk/runtime-doctor.d.ts",
|
||||
);
|
||||
|
||||
@@ -368,6 +368,22 @@ describe("plugin-sdk subpath exports", () => {
|
||||
"resolveCitationRedirectUrl",
|
||||
],
|
||||
});
|
||||
expectSourceContract("provider-web-search-config-contract", {
|
||||
mentions: [
|
||||
"getScopedCredentialValue",
|
||||
"resolveProviderWebSearchPluginConfig",
|
||||
"setScopedCredentialValue",
|
||||
"setProviderWebSearchPluginConfigValue",
|
||||
"WebSearchProviderPlugin",
|
||||
],
|
||||
omits: [
|
||||
"enablePluginInConfig",
|
||||
"buildSearchCacheKey",
|
||||
"withTrustedWebSearchEndpoint",
|
||||
"writeCachedSearchPayload",
|
||||
"resolveCitationRedirectUrl",
|
||||
],
|
||||
});
|
||||
expectSourceContract("provider-web-fetch-contract", {
|
||||
mentions: ["enablePluginInConfig", "WebFetchProviderPlugin"],
|
||||
omits: [
|
||||
|
||||
Reference in New Issue
Block a user