MageLens Core is a library of platform-independent tools for MageLens projects. Each tool owns a top-level subdirectory containing its implementation, assets, tests and documentation.
- Shared coverage renders coverage reports and adapts JavaScript, template, XML and HTML audit data.
Use one immutable SemVer Git tag per Core package version, in the form v<version>. Use SemVer prerelease tags such as v0.1.0-report-preview.1 for review builds. Keep the tag and the root package version in sync. Create a new tag for each version.
Each consumer pins its own Core tag and commits the lockfile with the archive integrity. For example, use the tag archive as the @magelens/core dependency:
{
"devDependencies": {
"@magelens/core": "https://codeload.github.com/MageLens/Core/tar.gz/refs/tags/v0.1.0-report-preview.1"
}
}MageLens sets this pin in compose/dependencies.yaml and synchronizes its contributor and runtime package locks. A different project or MageLens release can select another tag.
Individual tools expose versioned subpaths through the root package. Put breaking data or API changes behind a new schema version and matching subpath. Keep the existing subpath while supported consumers use it.
Run npm ci and npm test from the Core repository root.