Dominevo
Develop

Add an addon

Package layout, manifest entry, silent wiring points, deploy, and docs obligations for a new Dominevo plugin.

This page summarises how to add an addon. Start with the scaffolding tools below; the add-addon skill has the full checklist.

dominevo develop scaffold addon <name> --kind provider   # or notifier|osd|…
dominevo develop find-example provider
dominevo develop validate <name>

Nx: nx g @dominevo/nx-plugin:addon <name>. Full checklist: dominevo develop skill add-addon (also in @dominevo/develop/skills/).

Builtin vs package

KindPathWhen
Builtinpackages/system/src/builtins/<name>/Kernel cannot function without it; every node; ships in @dominevo/server
Packagepackages/addon-<name>/Opt-in feature; updates via Addons / dominevo deploy

Minimal shape

packages/addon-<name>/
  package.json          camstack.addons[] manifest
  vite.config.ts        entries map (required)
  src/
    <name>.addon.ts     BaseAddon subclass
    index.ts
    __tests__/
  assets/               optional icon

Manifest must declare id, entry, capabilities[] (names only), and execution.placement / execution.group when required.

Minimum server version

An addon that calls something added in a newer server declares the oldest server it works with, in its package.json:

{
  "camstack": {
    "addons": [ { "id": "my-addon", "entry": "./dist/index.js" } ],
    "requires": { "server": ">=1.2.931" }
  }
}

A delivery whose minimum is not met is refused with a message naming the versions. An addon that is already installed below the minimum a newer server needs is not held back: it starts, and the operator gets an alert naming the addon, the installed version and the required minimum, which clears when it is updated. So declare the real minimum (the first server that has the method you call), not a guess, and expect your addon to run against an older server until it is updated.

Secrets

A password, token or key is declared by its schema type and read from your config, never from the environment. See Secrets and the keychain.

README and CHANGELOG

Every addon package ships README.md and CHANGELOG.md at the package root, and both names are in package.json "files" so npm pack includes them. The hub reads the README from the registry packument and CHANGELOG.md from the published tarball, and shows them before an install.

README.md says what the addon does, which settings it exposes, what it requires, and where it may run (the manifest execution.placement). CHANGELOG.md follows Keep a Changelog: a # Changelog heading, newest section first.

Builtins that live inside @dominevo/system are not separate packages, so this rule does not apply to them.

Silent failures (read twice)

  1. Cap registered in code but missing from the manifest → never offered.
  2. Manifest entry without a vite.config.ts entries key → compiles, fails at runtime.
  3. Manifest changed but npm run codegen skipped after a related *.cap.ts edit → routers drift.
  4. Built locally, not deployed → hub still loads <dataDir>/addons/@dominevo/....
  5. Addon imports another addon → forbidden; use ctx.api.
  6. New Admin page without addon-pages-source → invisible in the sidebar.

Deploy

dominevo deploy packages/addon-<name>
# or short name: dominevo deploy <name>
dominevo deploy <pkg> -n <nodeId>   # agent

Update the docs

If you work in the the Dominevo server repo, run the sync-docs skill when you finish. Generated reference pages update on commit; write prose under docs/architecture/ or docs/decisions/ only when you learned or decided something worth recording.

Worked repository

A single addon and a three-addon bundle, with package.json, runners, tests, and publish steps, are in Addon examples (github.com/dominevo/addon-examples).

Then