2026-05-10 22:23:45 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
// dashboardAPI command registry. Canonical names follow CONTRACTS.md §1.
|
|
|
|
|
// The legacy `registerChild` topic is kept as an alias of `child.register`
|
|
|
|
|
// (Phase 1 canonical) and logs a one-time deprecation warning on first use.
|
|
|
|
|
|
|
|
|
|
const handlers = require('./handlers');
|
|
|
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
|
{
|
|
|
|
|
topic: 'child.register',
|
|
|
|
|
aliases: ['registerChild'],
|
|
|
|
|
payloadSchema: { type: 'any' },
|
|
|
|
|
handler: handlers.registerChild,
|
|
|
|
|
},
|
2026-05-26 18:05:31 +02:00
|
|
|
{
|
|
|
|
|
topic: 'regenerate-dashboard',
|
|
|
|
|
aliases: ['regen'],
|
|
|
|
|
payloadSchema: { type: 'any' },
|
|
|
|
|
handler: handlers.regenerateDashboard,
|
|
|
|
|
},
|
2026-05-10 22:23:45 +02:00
|
|
|
];
|