// Add a monitored component — OPERATOR ONLY. Seed your components once // (API, Dashboard, Webhooks, …); the public page lists them with their status. import { defineMutation } from '@voltro/protocol' import { Schema } from 'effect' export const createComponent = defineMutation({ name: 'components.create', target: { table: 'components', op: 'insert' }, guards: [{ scope: 'status:write' }], input: Schema.Struct({ name: Schema.NonEmptyString }), output: Schema.Struct({ id: Schema.String, name: Schema.String, status: Schema.String, }), })