hecate_plugin behaviour (hecate_sdk v0.6.2)
View SourcePlugin behaviour — the loading contract the daemon calls.
Every in-VM plugin implements this behaviour. The daemon uses it to: - Initialize the plugin with its configuration - Discover API routes to mount under /plugin/{name}/api/... - Set up the plugin's ReckonDB event store - Serve the plugin's frontend static assets - Read the plugin's manifest (version, capabilities, permissions)
Summary
Callbacks
-callback flag_maps() -> #{binary() => evoq_bit_flags:flag_map()}.
-callback health() -> ok | degraded | {unhealthy, Reason :: binary()}.
-callback manifest() -> map().
-callback static_dir() -> file:filename() | none.