mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-21 14:11:26 +00:00
build: fix plugin sdk boundary exports
This commit is contained in:
@@ -14,6 +14,7 @@ const ALLOWED_BUNDLED_CAPABILITY_METADATA_CONSUMERS = new Set([
|
||||
const ALLOWED_EXTENSION_PATH_STRING_TESTS = new Set([
|
||||
"src/plugin-sdk/browser-maintenance.test.ts",
|
||||
"src/channels/plugins/bundled.shape-guard.test.ts",
|
||||
"src/commands/doctor-legacy-config.migrations.test.ts",
|
||||
"src/plugins/contracts/bundled-extension-config-api-guardrails.test.ts",
|
||||
"src/scripts/test-projects.test.ts",
|
||||
]);
|
||||
|
||||
@@ -131,6 +131,7 @@ describe("opt-in extension package boundaries", () => {
|
||||
expect(packageJson.exports?.["./text-runtime"]?.types).toBe(
|
||||
"./dist/src/plugin-sdk/text-runtime.d.ts",
|
||||
);
|
||||
);
|
||||
expect(packageJson.exports?.["./video-generation"]?.types).toBe(
|
||||
"./dist/src/plugin-sdk/video-generation.d.ts",
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@ function resolveBundledSetupCliBackends(): SetupCliBackendRuntimeEntry[] {
|
||||
if (bundledSetupCliBackendsCache) {
|
||||
return bundledSetupCliBackendsCache;
|
||||
}
|
||||
bundledSetupCliBackendsCache = loadPluginManifestRegistry({})
|
||||
bundledSetupCliBackendsCache = loadPluginManifestRegistry({ cache: true })
|
||||
.plugins.filter((plugin) => plugin.origin === "bundled" && plugin.cliBackends.length > 0)
|
||||
.flatMap((plugin) =>
|
||||
plugin.cliBackends.map(
|
||||
|
||||
Reference in New Issue
Block a user