@lumel/ai-schema-host
v1.3.0-fabric-integration-cleanup
Published
AI schema contracts and curated schema-knowledge for Lumel chart agents
Readme
@lumel/ai-schema-host
Standalone, dependency-free package that hosts the AI chart-schema contracts and a curated schema-knowledge JSON used by Lumel AI agents (generators, validators, resolvers) across visuals.
This package was extracted from @lumel/ap-core's src/ai/schema/types.ts so
that any client (chart packages, agent runtimes, devtools, copilots, tests) can
depend only on a small, stable contract.
Install
yarn add @lumel/ai-schema-hostUsage
import {
ChartSchema,
SCHEMA_VERSION,
AI_SCHEMA_KNOWLEDGE,
} from '@lumel/ai-schema-host';
const schema: ChartSchema = {
schemaVersion: SCHEMA_VERSION,
axis: { x: { enabled: true, label: { bold: true } } },
};
// Index-ready knowledge documents (one per schema section) for the
// Azure AI Search knowledge base / LLM prompts / devtools.
const axisDoc = AI_SCHEMA_KNOWLEDGE.find((d) => d.id === 'fabric-chart-axis');
console.log(axisDoc?.schemaJson, axisDoc?.updatePatterns);What's inside
| File | Purpose |
| --------------------- | ------------------------------------------------------------------------- |
| src/types.ts | Public schema contracts: ChartSchema, AxisGroupSchema, IKbDocument. |
| src/knowledge.json | Index-ready knowledge: array of section documents (build + edit + notes) |
| src/index.ts | Barrel exports |
Build
yarn build # types + JS
yarn dev # watch mode
yarn clean # remove dist