@miragon/design-iq-validator 5.0.0-rc.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Miragon GmbH
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.
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # @miragon/design-iq-validator
2
+
3
+ Deterministic validator for BPM content repositories: `designiq.yml` discovery, BPMN structural
4
+ checks (flow soundness, complete BPMNDI coverage), the generic cross-model reference rule
5
+ (every required reference — `callActivity` calls, `businessRuleTask` decides — must resolve
6
+ in the repo), and a per-mediaKind parse baseline for every other registered notation (a
7
+ broken `.tt`/`.vc.json` is an ERROR; DSL notations are lenient by design). Every finding
8
+ carries a stable `ruleId` (e.g. `bpmn/flow`, `dmn/di`, `refs/dangling`). It treats the
9
+ target repo as pure data — it never executes content-repo code. Exit code 0 = no errors
10
+ (warnings allowed), 1 = errors.
11
+
12
+ ## Usage
13
+
14
+ ```sh
15
+ # validate the content repo in the current directory
16
+ npx @miragon/design-iq-validator --root .
17
+
18
+ # validate a single process
19
+ npx @miragon/design-iq-validator --root . order-to-cash
20
+ ```
21
+
22
+ `--root` points at any checkout that follows the content contract (a root `designiq.yml` naming
23
+ the models folder — `models:`, legacy alias `processes:`). A repo that still carries the legacy
24
+ file name `bpmiq.yml` validates unchanged, plus one `[WARN]` that suggests the rename
25
+ (`git mv bpmiq.yml designiq.yml`); the exit code is not affected.
26
+
27
+ ## Part of designIQ
28
+
29
+ Source, content contract, and the example content repo live in
30
+ [Miragon/design-iq](https://github.com/Miragon/design-iq) — see
31
+ [docs/on-prem](https://github.com/Miragon/design-iq/tree/main/docs/on-prem) for running the
32
+ platform yourself.
33
+
34
+ ## License
35
+
36
+ MIT
package/dist/cli.js ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+ import { a as runCli } from "./validate-C9ZythtW.js";
3
+ //#region src/cli.ts
4
+ /**
5
+ * CLI entry for the platform validator. A dedicated entry file (instead of an
6
+ * is-this-the-main-module guard in validate.ts) because Node realpaths the ESM
7
+ * entry while argv[1] keeps a bin shim's symlink path — a guard comparing the
8
+ * two silently no-ops under `npx`/pnpm bin shims.
9
+ *
10
+ * Usage: node src/cli.ts # validate this repo
11
+ * node src/cli.ts <process> # one process id (file stem)
12
+ * node src/cli.ts --root <dir> [<id>] # validate ANOTHER checkout
13
+ *
14
+ * --root makes this the PLATFORM validator: the target checkout is pure data —
15
+ * no code from the target is ever executed.
16
+ *
17
+ * Exit code 0 = no errors (warnings allowed), 1 = errors found.
18
+ */
19
+ await runCli();
20
+ //#endregion
21
+ export {};
@@ -0,0 +1,2 @@
1
+ import { a as discoverModels, i as contentConfigConflict, o as legacyContentConfigFile, s as loadContentConfig, t as CONTENT_CONFIG_FILE } from "./content-BoFksK67.js";
2
+ export { CONTENT_CONFIG_FILE, contentConfigConflict, discoverModels, legacyContentConfigFile, loadContentConfig };