bookclerk_plugin_sdk.plugin_migration

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

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.

Functions

require_plugin_migration_registration

def require_plugin_migration_registration(migrations: Any) -> list[Any]

Reject a registration that exceeds ABI resource limits.

Args

  • migrations: Ordered databaseMigrations list.

Returns

The same list when within limits, or [] when migrations is not a list.

Raises

  • PluginError: With code="payload_too_large" when a limit is exceeded.

Generated from packages/plugin-sdk-python at main · View as Markdown