@lumel/ai-schema-host
v1.0.3-fabric-ai-qa
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 {
IChartSchema,
SCHEMA_VERSION,
} from '@lumel/ai-schema-host';
const schema: IChartSchema = {
schemaVersion: SCHEMA_VERSION,
axis: { x: { enabled: true, label: { bold: true } } },
};
What's inside
| Path | Purpose |
| ------------------------------------------ | -------------------------------------------------------------------- |
| src/core/ | Shared primitives (types.ts) + AISchemaCompiler base. |
| src/schema/ | Schema contracts: types + concern tokens + chart field maps. |
| src/schemaGenerator/ src/schemaValidator/ | Per-visual generate / validate engines (base + visual + chart). |
| src/knowledge/ | Curated LLM knowledge modules. |
| src/index.ts | Barrel exports. |
Build
yarn build # types + JS
yarn dev # watch mode
yarn clean # remove dist