@fusedashlabs/ui9000-workspace
Version:
UI9000 workspace MCP. One tool, show_workspace, draws a chart from your table. Set TYPESAFE_API_KEY to let Jev choose the chart.
17 lines (16 loc) • 849 B
TypeScript
/**
* Power path object for `<ui9000-power-path-card>`.
*
* One card is one equipment group: a title, an asset badge, the health score,
* an active fault, and one row per monitored metric. The score is read from the
* table, never computed. Points draw the compact line only when the table has them.
* The fault is sent only when a cell names one. A status is sent only when the
* row has a status, a level, or a threshold.
*/
export declare function powerPathCardPayload(_fields: Record<string, string>, rows: Record<string, unknown>[]): unknown | null;
/**
* True when the card should replace a KPI: one equipment group, an existing
* health score, and other metrics that each carry a status. A row marked
* `role: gauge` asks for the dial, so the card steps aside.
*/
export declare function powerPathFits(payload: unknown): boolean;