Skip to main content

Module manifest

Module manifest 

Source
Expand description

Plugin manifest (.progit-plugin.json) — typed mirror.

[ARCH] Plugins ship a manifest next to their entry point. The manifest is the trusted declaration — the Lua/Wasm code must match it. The host cross-checks at load time. If the Lua side declares hooks that aren’t in the manifest, that is a packaging bug.

§Why a typed manifest matters

  • sdk_version lets the SDK refuse plugins built against an incompatible major API version (forward-proofing).
  • capabilities is the security surface for the runtime sandbox — without it we cannot promise Doctrine 4 (“Sandboxed plugins”).
  • config_schema is JSON Schema and lets the host validate user config in .project/config.kdl before the plugin runs.

Structs§

Capabilities
What the plugin is allowed to touch at runtime.
PluginManifest
Plugin manifest — the on-disk .progit-plugin.json.
SdkVersion
Lightweight major.minor SDK version handle.

Enums§

ManifestError
Errors raised by manifest parsing and compatibility checks.

Type Aliases§

ManifestResult
Result alias for manifest operations.