@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.
13 lines (12 loc) • 688 B
TypeScript
import { type DataProfile, type DataProfileKey } from '../spec/data-profile.js';
declare function isDataProfileKey(key: string): key is DataProfileKey;
/** Pull `profile.<key>` identifiers out of a `when` string. */
export declare function profileKeysInWhen(when: string): string[];
export declare function assertWhenUsesClosedProfile(when: string): void;
export declare function assertProfileUsesClosedKeys(profile: DataProfile): void;
/**
* Evaluate a catalog `when` string against a profile.
* Only `profile.<DataProfileKey>`, numbers, && || ! comparisons, and grouping.
*/
export declare function evalWhen(when: string, profile: DataProfile): boolean;
export { isDataProfileKey };