@0disoft/mensor-contract
v0.10.2
Published
Serializable contracts, schemas, and deterministic diagnostics for Mensor.
Maintainers
Readme
@0disoft/mensor-contract
Serializable contracts, schemas, and deterministic diagnostics for Mensor.
Install
pnpm add @0disoft/mensor-contractNode.js 22 or newer is required.
Parse Contracts And Reports
import {
parseCheckOutputV2,
parseProjectContract,
parseRouteIndex,
parseRuntimeManifest,
serializeRouteIndex,
serializeRuntimeManifest,
} from "@0disoft/mensor-contract";Parsers return explicit success or failure values. The package contains no filesystem scanner or application runtime.
Published schemas are available through package export paths, including:
const projectSchema = import.meta.resolve(
"@0disoft/mensor-contract/schemas/project-contract-v1.schema.json",
);
const checkOutputSchema = import.meta.resolve(
"@0disoft/mensor-contract/schemas/check-output-v2.schema.json",
);
const runtimeManifestSchema = import.meta.resolve(
"@0disoft/mensor-contract/schemas/runtime-manifest-v1.schema.json",
);Documentation
Mensor is licensed under Apache-2.0.
