@0disoft/mensor-contract
Advanced tools
+44
| # @0disoft/mensor-contract | ||
| Serializable contracts, schemas, and deterministic diagnostics for Mensor. | ||
| ## Install | ||
| ```text | ||
| pnpm add @0disoft/mensor-contract | ||
| ``` | ||
| Node.js 22 or newer is required. | ||
| ## Parse Contracts And Reports | ||
| ```js | ||
| import { | ||
| parseCheckOutputV2, | ||
| parseProjectContract, | ||
| parseRouteIndex, | ||
| serializeRouteIndex, | ||
| } 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: | ||
| ```js | ||
| 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", | ||
| ); | ||
| ``` | ||
| ## Documentation | ||
| - [Contract authoring](https://github.com/0disoft/mensor/blob/main/packages/contract/spec/README.md) | ||
| - [Public API and compatibility](https://github.com/0disoft/mensor/blob/main/docs/library/public-api.md) | ||
| - [RouteIndex v1](https://github.com/0disoft/mensor/blob/main/docs/architecture/route-index-v1.md) | ||
| Mensor is licensed under Apache-2.0. |
+1
-1
| { | ||
| "name": "@0disoft/mensor-contract", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "Serializable contracts, schemas, and deterministic diagnostics for Mensor.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
131355
0.9%32
3.23%1
-50%45
Infinity%