@voidaliot/swaml-cli 0.0.0-stage → 0.15.0
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/LICENSE +27 -0
- package/README.md +21 -2
- package/SWAML-LICENSE +21 -0
- package/THIRD-PARTY-NOTICES.txt +5073 -0
- package/UPSTREAM.json +31 -0
- package/bin/diagram.mjs +3 -0
- package/bin/validate.mjs +2 -0
- package/dist/cli.mjs +225054 -0
- package/dist/validate.mjs +49070 -0
- package/package.json +26 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Aliot Software Architecture
|
|
2
|
+
Freeware License
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 C. Ilie
|
|
5
|
+
|
|
6
|
+
Permission is granted to install and use this software free of charge.
|
|
7
|
+
|
|
8
|
+
The software is licensed, not sold.
|
|
9
|
+
|
|
10
|
+
You may:
|
|
11
|
+
- Use the software for personal purposes.
|
|
12
|
+
- Use the software for educational purposes.
|
|
13
|
+
- Use the software for commercial purposes.
|
|
14
|
+
|
|
15
|
+
You may not:
|
|
16
|
+
- Modify the software.
|
|
17
|
+
- Reverse engineer the software except where required by law.
|
|
18
|
+
- Redistribute the software.
|
|
19
|
+
- Sublicense the software.
|
|
20
|
+
- Sell the software.
|
|
21
|
+
- Create derivative works.
|
|
22
|
+
|
|
23
|
+
All intellectual property rights remain with the copyright holder.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
|
26
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM,
|
|
27
|
+
DAMAGES OR OTHER LIABILITY ARISING FROM THE USE OF THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# swa.ml command-line tools
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Validate complete swa.ml 2.1 models and export diagrams without installing VS Code. Requires Node.js 22 or newer. This package includes the Aliot Software Architecture validator and diagram renderer, with no runtime dependencies or install scripts.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install --global @voidaliot/swaml-cli
|
|
7
|
+
swaml-validate ./models --format json --no-config
|
|
8
|
+
swaml-diagram export --file model.swaml --view gv --out architecture.svg
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or run without a global install:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npx --package=@voidaliot/swaml-cli swaml-validate ./models --format github --strict
|
|
15
|
+
npx --package=@voidaliot/swaml-cli swaml-diagram export --file model.swaml --all --out-dir ./export
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Supply all application dependencies together. Validation supports text, JSON, SARIF and GitHub annotations. Exports support SVG for General, Interconnect, Case, Sequence, Flow and Timing, and CSV for Grid. Source errors prevent export. `--help` documents arguments; `--version` reports the independent extension, language implementation and parser versions.
|
|
19
|
+
|
|
20
|
+
Validation exits 0 for success, 1 for model diagnostics and 2 for invalid arguments or I/O errors. These tools do not run use cases or tests. See the [CLI guide](https://aliot.dev/swaml/cli) and [language reference](https://github.com/voidaliot/swaml).
|
|
21
|
+
|
|
22
|
+
The Aliot Freeware License in `LICENSE` applies to the CLI. The pinned language core and bundled dependencies retain their own licenses in `SWAML-LICENSE` and `THIRD-PARTY-NOTICES.txt`.
|
package/SWAML-LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Catalin Ilie
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|