Extensions
Extension manifest
usertasks-extension.json: id, version, publisher, engines, licence, capabilities, permissions and contributions.
Each extension has a usertasks-extension.json next to its entry modules. It is plain data: core validates it with a schema and renders everything it contributes.
{
"manifest_version": 1,
"id": "example-hello",
"name": "Hello (example extension)",
"version": "1.0.0",
"publisher": { "id": "usertasks", "name": "UserTasks" },
"engines": { "usertasks": ">=0.1.0 <2.0.0", "extension_sdk": "^1.0.0" },
"licence": { "tier": "free", "features": ["greetings", "digest"] },
"deployments": ["cloud", "self_hosted"],
"capabilities": { "db": true, "inbound_public_routes": ["/ping", "/hooks/*"], "secrets": ["api_token"] },
"permissions": [
{ "key": "view", "label": "View greetings", "implied_by": ["tasks.view_own"], "default_roles": ["owner", "admin", "member"] }
],
"contributes": { "nodes": [], "triggers": [], "connectors": [], "ui": {} }
}Fields#
| Field | Rules |
|---|---|
id | Lower-case slug (letters, digits, single hyphens), at most 41 characters. ut- is reserved for first-party extensions. Namespaces everything: node types ext.<id>.<key>, permissions ext.<id>.<key>, tables ext_<id>__* (hyphens become underscores), MCP tools ext_<id>_*, REST paths /api/v1/ext/<id>/… |
version | Semver |
engines.usertasks | Semver range of UserTasks versions; checked when building and at boot |
engines.extension_sdk | Semver range of the SDK contract (core provides 1.0.0) |
licence.tier | free or paid; paid needs sku. features names the licence features the extension checks |
deployments | cloud, self_hosted or both |
capabilities | db (owns ext_<id>__* tables), egress (hosts, always through the egress guard), inbound_public_routes (globs under /ext-public/<id>), secrets |
permissions | Each becomes ext.<id>.<key>. implied_by lists core permissions that grant it automatically (existing roles never lose access); default_roles are given it when a workspace enables the extension |
contributes | Nodes, triggers, connectors, directory sources, importers and UI (contribution points) |
Guards#
Every UI entry may carry when, evaluated on the server and in the browser:
| Guard | Meaning |
|---|---|
permission | All listed permissions (core keys or this extension's ext.<id>.<key>) |
anyPermission | At least one |
feature | A licence feature (entitlement port) |
deployment | cloud or self_hosted only |
instanceAdmin | Instance administrators only |
managerOnly | People with a direct report |
setting | A workspace setting: show_digest, mode == advanced, mode != off |
Targets#
Menu entries, nav items and row actions lead to one target: { "page": "new" } (/x/<id>/new), { "route": "/automations" }, { "action": "greet_item", "confirm": "…" } (runs a UI action on the server), { "settings": "general" } or { "url": "https://…", "external": true }.
Validate a manifest with npm run extensions:gen (with USERTASKS_EXTENSIONS set): every problem is listed and the command fails.