@0disoft/mensor-compiler
Advanced tools
+48
| # @0disoft/mensor-compiler | ||
| Deterministic source contract checker for Mensor projects. | ||
| ## Install | ||
| ```text | ||
| pnpm add @0disoft/mensor-compiler | ||
| ``` | ||
| Node.js 22 or newer is required. | ||
| ## Check A Project | ||
| ```js | ||
| import { checkProject } from "@0disoft/mensor-compiler"; | ||
| const result = await checkProject({ root: process.cwd() }); | ||
| if (!result.ok) { | ||
| process.exitCode = 1; | ||
| } | ||
| process.stdout.write(`${JSON.stringify(result.report, null, 2)}\n`); | ||
| ``` | ||
| The default result contains DiagnosticReport v1. Select Check Output v2 | ||
| explicitly when inspection coverage is required: | ||
| ```js | ||
| const result = await checkProject({ | ||
| root: process.cwd(), | ||
| reportVersion: 2, | ||
| }); | ||
| ``` | ||
| Contract failures are returned as data. Unexpected I/O or compiler failures | ||
| remain exceptions. The compiler reads supported project files but does not | ||
| execute project source or configuration, spawn framework tools, install | ||
| dependencies, or access the network. | ||
| ## Documentation | ||
| - [Library API](https://github.com/0disoft/mensor/blob/main/docs/library/public-api.md) | ||
| - [System boundary](https://github.com/0disoft/mensor/blob/main/docs/architecture/00-system-boundary.md) | ||
| - [Check Output v2](https://github.com/0disoft/mensor/blob/main/docs/architecture/check-output-v2.md) | ||
| Mensor is licensed under Apache-2.0. |
+2
-2
| { | ||
| "name": "@0disoft/mensor-compiler", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "Deterministic source contract checker for Mensor projects.", | ||
@@ -46,4 +46,4 @@ "license": "Apache-2.0", | ||
| "parse5": "8.0.1", | ||
| "@0disoft/mensor-contract": "0.2.0" | ||
| "@0disoft/mensor-contract": "0.2.1" | ||
| } | ||
| } |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
284613
0.45%91
1.11%1
-50%49
Infinity%+ Added
- Removed