bookclerk_plugin_sdk.plugin_migration
Resource bounds for plugin-owned databaseMigrations registration.
Semantic BookclerkSQL proof stays on the host. This module only rejects pathological list / SQL sizes before JSON encoding.
def require_plugin_migration_registration(migrations: Any) -> list[Any]
Reject a registration that exceeds ABI resource limits.
Args
migrations: OrdereddatabaseMigrationslist.
Returns
The same list when within limits, or [] when migrations is not a list.
Raises
PluginError: Withcode="payload_too_large"when a limit is exceeded.
Generated from packages/plugin-sdk-python at main · View as Markdown