Three plugins fill their own schema with demo data and none of them can say so in the contract they are written against.
Current state: pluginkit declares Seeder, and the host calls Seed on every plugin implementing it. The sdk aliases Plugin, Migrator, RouteProvider and PublicPathProvider but not Seeder, so fields, importer and whatsapp each carry a Seed method that satisfies the interface by shape alone, with no sdk level contract to compile against.
Proposal: alias Seeder in the sdk beside the other four, so a plugin author reads one package to learn everything a plugin may implement.
Trigger: fired, three plugins seed and the two plugin rule wanted this at two.
Three plugins fill their own schema with demo data and none of them can say so in the contract they are written against.
Current state:
pluginkitdeclaresSeeder, and the host callsSeedon every plugin implementing it. The sdk aliasesPlugin,Migrator,RouteProviderandPublicPathProviderbut notSeeder, so fields, importer and whatsapp each carry aSeedmethod that satisfies the interface by shape alone, with no sdk level contract to compile against.Proposal: alias
Seederin the sdk beside the other four, so a plugin author reads one package to learn everything a plugin may implement.Trigger: fired, three plugins seed and the two plugin rule wanted this at two.