New:Socket for Asana Is Now Available.Learn more
Get Started

@0disoft/mensor-compiler

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0disoft/mensor-compiler - npm Package Compare versions

Comparing version
0.2.0
to
0.2.1
+48
README.md
# @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"
}
}