Plugins run in the yenio-plugins dispatch namespace. The runtime is the public API. There is no marketplace in this phase.
Register
POST /v1/plugins requires plugins:manage. The id starts with plg_. name is the user worker script name, unique per organization and environment. permissions must be a subset of the caller's permissions. Optional credentials are stored with AES-256-GCM and are not returned.
List and disable
GET /v1/plugins returns { items, nextCursor }. POST /v1/plugins/:id/disable sets the plugin to disabled. There is no re-enable.
Dispatch
POST /v1/plugins/:id/dispatch calls that script by name. The user worker does not receive X-Yenio-Principal or the caller's credentials. A disabled plugin is HTTP 409. The namespace is created by an operator. Until it exists, dispatch returns HTTP 502.