Core DevAlpha
Addons overview
An addon (module) is a directory that contains manifest.json and optional models/, views/, security/, and static/ assets.
Discovery and naming
- Each root in
addons_path(comma-separated insumeru.conf) is scanned for first-level subdirectories that containmanifest.json. manifest.nameis the technical module name. It must match **^[a-z][a-z0-9_]*$(same rule assumeru-bp**).- If the same
nameappears in two roots, the later path inaddons_pathwins (override pattern for forks orsumeru_custom_addons).
manifest.json
| Field | Notes |
|---|---|
name | Technical name; equals folder name in normal setups |
display_name | Shown in Apps / UI when set |
version | Semantic string for humans and sys.module |
depends | List of module names; topological order for install/update |
author, description | Metadata |
data | Ordered list of XML paths relative to the addon root loaded on install/update |
application | If true or omitted, module can appear as an application in Apps; set false for technical glue modules |
Only installed modules have their data XML applied on startup sync. Uninstalled modules are still discovered (visible in Apps) but menus/views from them are not loaded.
Go side-effect imports
Go models register via generated models/zmodels.go, which calls sdk.MustRegister. The server binary must blank-import the addon root package so those init hooks run.
make generaterunssumeru-import-gen, which rewriteszimports.goand regenerateszmodels.goper addon fromaddons_pathin your INI.- After adding a new model struct or addon, run
make generatethen-i your_moduleonce.
See Tooling and How-to: install a module.
Typical layout
addons/engagement_cookbook/
manifest.json
init.go # usually: import _ "sumeru/addons/engagement_cookbook/models"
models/
my_model.go # struct + sdk.Model embed + sumeru tags
zmodels.go # generated — sdk.MustRegister
views/
actions.xml
menus.xml
my_model_form.xml
security/
security.xml # optional XML records
sys.access.csv # optional CSV ACLs
static/
css/theme-overrides.css # optional; served as /static/addon-css/<module>.cssThe reference implementation is sumeru/addons/base/. Platform shells that own menus/ACL over kernel models (no extra Go models) live next to it — e.g. sumeru/addons/contacts/ (address book over core.partner).