// Live list of service components + their current status — public by design. // `components.create` beside it is `status:write`-guarded: reads are for // visitors, writes are for operators. import { defineQuery } from '@voltro/protocol' import { Schema } from 'effect' export const componentsList = defineQuery({ name: 'components.list', openAccess: 'the public component roster a status page exists to publish — this operator\'s own ' + 'service names and their current status, nothing caller-derived and no personal data. ' + 'Writing that roster is `status:write`-guarded.', input: Schema.Struct({}), output: Schema.Array( Schema.Struct({ id: Schema.String, name: Schema.String, status: Schema.String, }), ), })