Refactor of dashboardAPI to use BaseNodeAdapter + commandRegistry + statusBadge. dashboardAPI follows the platform refactor plan in .claude/refactor/MODULE_SPLIT.md. Tests stay green; CONTRACT.md generated; legacy aliases preserved. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
17 lines
450 B
JavaScript
17 lines
450 B
JavaScript
'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,
|
|
},
|
|
];
|