@aintela/bi-tsx-template
v0.2.0
Published
The react-tsx-template the AIA TSX sidecar type-checks agent-authored TSX against; its type surface is @aintela/bi.
Readme
react-tsx-template
The build sandbox the AIA TSX sidecar (AIA.Agents.SemanticKernel → TsxBuildSidecar) type-checks agent-authored TSX
against, and the workspace the dashboard composer copies per session (tsc → vitest → scripts/bundle.js).
Its type surface is @aintela/bi (^0.2.0; in this repo, run npm install ../packages/bi --install-links after building the package to work against the sibling source). That is the whole point of
this folder living next to the package: the legacy setup mirrored ~40 files from three repos into a hand-maintained
packages/ui-library with a sync script; here there is nothing to sync.
- Published as
@aintela/bi-tsx-template(a host image doesnpm pack @aintela/bi-tsx-template@<v>andnpm install --install-links). Locally:npm run buildin../packages/bi, thennpm install ../packages/bi --install-linkshere to test against the sibling. .npmrcsetsinstall-links=true: the dependency is installed as a copy, not a symlink. A symlink makes every hook in the package resolve React/MUI/emotion frompackages/bi/node_modulesand throwCannot read properties of null (reading 'useState')— and a copy is what a published package is anyway.- Legacy specifier:
@envision/ui-librarystill resolves (atsconfigpath + a vitest alias) so bundles and tests written before the rename keep type-checking. New code imports from@aintela/bi;instructions.mdsays so. npx tsc --noEmitandnpx vitest runmust stay green;scripts/bundle.js(ESM) externalises both specifiers.
