@0disoft/mensor-cli 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @0disoft/mensor-cli
|
|
2
|
+
|
|
3
|
+
Command-line interface for checking Mensor project contracts.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
pnpm add --save-dev @0disoft/mensor-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Node.js 22 or newer is required.
|
|
12
|
+
|
|
13
|
+
## Check A Project
|
|
14
|
+
|
|
15
|
+
Run the default DiagnosticReport v1 output:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
pnpm exec mensor check . --json
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Select Check Output v2 when the consumer needs explicit inspection coverage:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
pnpm exec mensor check . --json --report-version 2
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Exit status `0` means every configured static contract check passed. It does
|
|
28
|
+
not prove runtime application behavior. When a project omits RouteIndex,
|
|
29
|
+
application route declarations are not inspected.
|
|
30
|
+
|
|
31
|
+
Mensor does not execute project source or configuration while checking it.
|
|
32
|
+
|
|
33
|
+
## Documentation
|
|
34
|
+
|
|
35
|
+
- [Project and feature contract authoring](https://github.com/0disoft/mensor/blob/main/packages/contract/spec/README.md)
|
|
36
|
+
- [CLI command contract](https://github.com/0disoft/mensor/blob/main/docs/cli/command-contract.md)
|
|
37
|
+
- [Product boundary](https://github.com/0disoft/mensor#product-boundary)
|
|
38
|
+
|
|
39
|
+
Mensor is licensed under Apache-2.0.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0disoft/mensor-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "CLI for checking Mensor project contracts.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@0disoft/mensor-compiler": "0.2.
|
|
46
|
+
"@0disoft/mensor-compiler": "0.2.1"
|
|
47
47
|
}
|
|
48
48
|
}
|