s-layer-flint-charts
Semantic-layer-aware Flint charts for agents: types, grain guard and show_chart tool
This repository holds two packages:
s-layer-flint-charts(Python, repository root): maps semantic-layer field metadata to Flint types, guards chart grain and serves theshow_charttool.@s-layer/flint-charts(TypeScript,ts/): renders those charts in agent chat UIs.
Installation
pip install s-layer-flint-charts
Development
Quality Gates
Before committing, all code must pass:
prek run --all-files # Runs typecheck, lint, format, test
Or run individually:
uv run basedpyright # Type checking (strict mode)
uv run ruff check # Linting
uv run ruff format --check # Formatting
uv run pytest # Tests
Setup
# Install dependencies, with every extra
uv sync --dev --all-extras
# The sidecar tests run flint-chart-mcp from ts/node_modules
pnpm --dir ts install
# Install git hooks
prek install
TypeScript package
cd ts
pnpm install
pnpm lint && pnpm typecheck && pnpm test
pnpm test:browser # Playwright, in Chromium (pnpm exec playwright install chromium first)
Releases
The packages are released apart. Tag vX.Y.Z releases the Python package to PyPI; tag
ts-vX.Y.Z, after setting that version in ts/package.json and VERSION in ts/src/index.ts,
releases the npm package.
License
MIT
Metadata
Release files for s-layer-flint-charts 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| s_layer_flint_charts-0.2.0.tar.gz | 28.3 kB | With provenance | Details for s_layer_flint_charts-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| s_layer_flint_charts-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for s_layer_flint_charts-0.2.0-py3-none-any.whl |
Total release size: 61.6 kB
Release files / s_layer_flint_charts-0.2.0.tar.gz
| Download URL | s_layer_flint_charts-0.2.0.tar.gz |
|---|---|
| Size | 28.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17ef159cb8f0083a97ad2b9867d9c7ed440c3e1745b0efce51f2418534ce7a25
|
|
BLAKE2b-256 checksum How to use checksums |
852560c07e7b8028209e7b6189eca92e9be3cf9e2be24fac67c0ee962c1e121e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / s_layer_flint_charts-0.2.0-py3-none-any.whl
| Download URL | s_layer_flint_charts-0.2.0-py3-none-any.whl |
|---|---|
| Size | 33.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33af274c293f2da80afa9ba961ef88eef80a66bc7d491f73cd14afbcf340d616
|
|
BLAKE2b-256 checksum How to use checksums |
8db8a832ba1ae13bed82fbbe82c03b22ce7eab0219f09aa9b84ceec9187ffc9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for s-layer-flint-charts 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for s_layer_flint_charts-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.