mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:50:43 +00:00
refactor: centralize provider stream fallback ownership
This commit is contained in:
@@ -131,6 +131,19 @@ function collectExtensionCoreImportLeaks(): Array<{ file: string; specifier: str
|
||||
}
|
||||
|
||||
describe("plugin-sdk package contract guardrails", () => {
|
||||
it("keeps plugin-sdk entrypoint metadata unique", () => {
|
||||
const counts = new Map<string, number>();
|
||||
for (const entrypoint of pluginSdkEntrypoints) {
|
||||
counts.set(entrypoint, (counts.get(entrypoint) ?? 0) + 1);
|
||||
}
|
||||
const duplicates = [...counts.entries()]
|
||||
.filter(([, count]) => count > 1)
|
||||
.map(([entrypoint]) => entrypoint)
|
||||
.toSorted();
|
||||
|
||||
expect(duplicates).toEqual([]);
|
||||
});
|
||||
|
||||
it("keeps package.json exports aligned with built plugin-sdk entrypoints", () => {
|
||||
expect(collectPluginSdkPackageExports()).toEqual([...pluginSdkEntrypoints].toSorted());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user