refactor: centralize provider stream fallback ownership

This commit is contained in:
Peter Steinberger
2026-04-27 12:11:29 +01:00
parent 8200d878a3
commit e98f976a70
9 changed files with 99 additions and 44 deletions

View File

@@ -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());
});