mjolnir-qa 2.1.0 → 4.0.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/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "mjolnir-qa",
3
- "version": "2.1.0",
3
+ "version": "4.0.0",
4
+ "publishedStable": "4.0.0",
4
5
  "description": "Mjölnir — the Verification Trust Engine for QA. Audits test suites and CI pipelines, reports a worthiness score and prioritized findings.",
5
6
  "type": "module",
6
7
  "engines": {
@@ -15,32 +16,55 @@
15
16
  ],
16
17
  "files": [
17
18
  "dist",
19
+ "!dist/**/*.map",
18
20
  "README.md",
19
21
  "LICENSE",
20
22
  "CHANGELOG.md"
21
23
  ],
22
24
  "scripts": {
23
- "build": "tsdown src/cli.ts --format esm --dts --out-dir dist && tsdown src/mcp/stdio.ts --format esm --out-dir dist/mcp && npm run build --workspaces --if-present",
25
+ "build": "tsdown src/cli.ts --format esm --dts --sourcemap --out-dir dist && tsdown src/mcp/stdio.ts --format esm --sourcemap --out-dir dist/mcp && npm run build --workspaces --if-present",
26
+ "sentry:release": "node scripts/sentry-release.mjs",
24
27
  "dev": "tsx src/cli.ts",
25
28
  "mcp": "node dist/mcp/stdio.mjs",
26
29
  "test": "vitest run",
30
+ "test:integration": "vitest run tests/integrations",
31
+ "test:mcp:parity": "vitest run tests/mcp/parity.spec.ts",
32
+ "frontier:contracts": "vitest run tests/contract/boundary-law.spec.ts tests/contract/exit-matrix.spec.ts tests/contract/json-contract.spec.ts tests/contract/machine-contract.spec.ts tests/contract/schema-contract.spec.ts tests/contract/vitest-suite-boundaries.spec.ts tests/contract/certification.spec.ts tests/contract/evidence-voting.spec.ts tests/contract/presentation-trust.spec.ts tests/contract/release-trust-contract.spec.ts tests/contract/saved-report-trust.spec.ts tests/contract/trust-ladder-single-source.spec.ts tests/contract/mcp-workspace-boundary.spec.ts tests/contract/privacy-network-isolation.spec.ts tests/contract/census-drift.spec.ts tests/contract/m26-support-matrix.spec.ts tests/contract/quarantine-ledger.spec.ts tests/contract/docs-consistency.spec.ts tests/contract/framework-capability-envelope.spec.ts tests/contract/pack-audit.spec.ts tests/contract/readme-commands.spec.ts tests/contract/semantic-integrity.spec.ts tests/contract/version-surface.spec.ts",
33
+ "test:release": "vitest run tests/release tests/commands/release-trust-arms.spec.ts tests/commands/release-trust-branch.spec.ts",
27
34
  "bench:scan": "tsx scripts/bench-scan.ts .mjolnir --files 300",
28
35
  "test:stress": "vitest run --config vitest.stress.config.ts && node tests/stress/soak.mjs && node tests/stress/concurrent.mjs",
29
36
  "test:coverage": "vitest run --coverage",
30
- "test:coverage:ci": "vitest run --coverage --no-file-parallelism --testTimeout=120000 --hookTimeout=120000",
37
+ "test:coverage:ci": "vitest run --coverage --maxWorkers=4 --testTimeout=120000 --hookTimeout=120000",
31
38
  "coverage:ratchet": "node scripts/check-coverage-ratchet.mjs",
32
- "audit:ci": "npm audit --audit-level=moderate",
39
+ "audit:ci": "npm audit --audit-level=moderate && npm audit --workspaces --audit-level=moderate",
40
+ "enterprise:threat-model": "node scripts/enterprise/validate-threat-model.mjs --model enterprise/threat-model.json --data-flow enterprise/data-flows.json --strict",
41
+ "claims:check": "node scripts/check-claim-registry.mjs",
42
+ "report:honesty": "node scripts/check-report-honesty.mjs",
43
+ "thresholds:parity": "node scripts/check-threshold-parity.mjs",
44
+ "verbs:budget": "node scripts/check-verb-budget.mjs",
45
+ "artifact:deterministic": "vitest run tests/contract/artifact-determinism.spec.ts",
46
+ "claims:revalidate": "node scripts/revalidate-claims.mjs",
47
+ "script:paths": "node scripts/check-script-paths.mjs",
48
+ "lockfile:platforms": "node scripts/check-lockfile-platforms.mjs",
49
+ "candidate:manifest:check": "node scripts/check-candidate-manifest.mjs",
50
+ "candidate:manifest:update": "node scripts/update-candidate-manifest.mjs --write",
51
+ "candidate:readiness": "node scripts/check-candidate-readiness.mjs",
52
+ "candidate:decision:engineering": "node scripts/check-candidate-decision.mjs --stage engineering",
53
+ "candidate:decision:release": "node scripts/check-candidate-decision.mjs --stage release",
54
+ "coverage:exemptions": "node scripts/check-coverage-exemption-ledger.mjs",
33
55
  "test:watch": "vitest",
34
56
  "lint": "eslint . --max-warnings=0 && prettier --check .",
35
57
  "format": "prettier --write .",
36
58
  "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json && tsx scripts/typecheck-fixtures.ts",
37
- "certify": "npm run build && npm run lint && npm run typecheck && npm run test && npx vitest run tests/contract/",
38
- "certify:ci": "npm run build && npm run lint && npm run typecheck && npm run test:coverage:ci && npx vitest run tests/contract/",
59
+ "certify": "npm run build && npm run lint && npm run typecheck && npm run version:check && npm run enterprise:threat-model && npm run claims:check && npm run claims:revalidate && npm run report:honesty && npm run thresholds:parity && npm run script:paths && npm run lockfile:platforms && npm run verbs:budget && npm run m26:integrity && npm run coverage:exemptions && npm run candidate:manifest:check && npm run candidate:decision:engineering && npm run docs:translations && npm run test && npx vitest run tests/contract/",
60
+ "certify:ci": "npm run build && npm run lint && npm run typecheck && npm run version:check && npm run enterprise:threat-model && npm run claims:check && npm run claims:revalidate && npm run report:honesty && npm run thresholds:parity && npm run script:paths && npm run lockfile:platforms && npm run verbs:budget && npm run m26:integrity && npm run coverage:exemptions && npm run candidate:manifest:check && npm run candidate:decision:engineering && npm run docs:translations && npm run test:coverage:ci && npx vitest run tests/contract/",
39
61
  "ci-local": "npm run certify:ci && npm run test:property && npm run test:fuzz && npm run coverage:ratchet && npm run audit:ci && npm run brand:doctor && npm run brand:doctor:selftest && npm run brand:fonts:check && npm run site:doctor && npm run ci-local:parity",
62
+ "verify:isolation": "node scripts/verify-remediation-isolation.mjs",
40
63
  "golden:update": "tsx tests/golden/gen.ts",
41
64
  "detector-hashes:update": "tsx scripts/generate-detector-hashes.ts",
42
65
  "corpus:regression": "tsx tests/corpus/audit.ts",
43
66
  "corpus:regression:update": "tsx tests/corpus/audit.ts --update",
67
+ "corpus:regression:refresh-provenance": "tsx tests/corpus/audit.ts --refresh-provenance",
44
68
  "corpus:sample": "tsx scripts/corpus-sample.ts",
45
69
  "fp-audit:generate": "tsx scripts/generate-fp-audit-table.ts",
46
70
  "docs:rules": "tsx scripts/generate-rule-docs.ts",
@@ -66,9 +90,25 @@
66
90
  "docs:video:render": "tsx scripts/video/render.ts",
67
91
  "docs:video": "npm run docs:video:capture && npm run docs:video:render",
68
92
  "docs:translations": "node scripts/check-readme-translations.mjs",
69
- "changelog:check": "tsx scripts/check-changelog.ts --expect-version $(node -p \"require('./package.json').version\")",
93
+ "docs:translations:sync": "node scripts/sync-readme-release-status.mjs",
94
+ "docs:translations:check": "node scripts/check-readme-translations.mjs --strict",
95
+ "rules:census": "tsx scripts/print-rule-census.ts",
96
+ "docs:roadmap:check": "tsx scripts/roadmap/check.ts",
97
+ "docs:roadmap:backlinks": "tsx scripts/roadmap/check-backlinks.ts",
98
+ "release:decision": "tsx scripts/release-decision.ts",
99
+ "m26:audit": "tsx scripts/check-m26-ledgers.ts --stage readiness",
100
+ "m26:integrity": "tsx scripts/check-m26-ledgers.ts --stage integrity",
101
+ "m26:readiness": "npm run m26:audit && npm run candidate:readiness",
102
+ "m26:github:sync": "node scripts/sync-m26-github.mjs",
103
+ "m26:gaps:revalidate": "tsx scripts/revalidate-gaps.mjs",
104
+ "changelog:check": "tsx scripts/check-changelog.ts",
70
105
  "reporter:version-check": "tsx scripts/check-reporter-version.ts",
106
+ "version:surface:check": "tsx scripts/check-version-surface.ts",
107
+ "version:surface:sync": "tsx scripts/sync-version-surface.ts",
108
+ "version:check": "npm run version:surface:check && npm run reporter:version-check && npm run changelog:check",
109
+ "release:verify": "tsx scripts/release-verify.ts",
71
110
  "self-scan": "node dist/cli.mjs .",
111
+ "ci:standard": "node scripts/check-ci-standard.mjs",
72
112
  "ci-local:parity": "node scripts/check-ci-local-parity.mjs",
73
113
  "test:property": "node scripts/check-property-runs.mjs && vitest run --config vitest.property.config.ts",
74
114
  "test:fuzz": "vitest run --config vitest.fuzz.config.ts",
@@ -82,7 +122,9 @@
82
122
  "brand:fonts:check": "tsx scripts/vendor-fonts.ts --check",
83
123
  "brand:marks": "tsx scripts/generate-brand-marks.ts",
84
124
  "brand:marks:update": "node scripts/update-mark-hashes.mjs",
85
- "docs:regen": "npm run docs:rules && npm run fp-audit:generate && npm run docs:capability && npm run docs:counts && npm run docs:depth-adjudication && npm run docs:machine-contract && npm run brand:tokens && npm run golden:update && npm run docs:hero && npm run docs:demo && npm run docs:readme-brand && npm run detector-hashes:update"
125
+ "docs:regen": "npm run docs:rules && npm run fp-audit:generate && npm run docs:capability && npm run docs:counts && npm run docs:depth-adjudication && npm run docs:machine-contract && npm run brand:tokens && npm run golden:update && npm run docs:hero && npm run docs:demo && npm run docs:readme-brand && npm run detector-hashes:update",
126
+ "docs:refresh": "node scripts/refresh-generated.mjs",
127
+ "docs:refresh:check": "node scripts/refresh-generated.mjs --check"
86
128
  },
87
129
  "keywords": [
88
130
  "qa",
@@ -112,11 +154,20 @@
112
154
  "web-tree-sitter": "0.25.6",
113
155
  "yaml": "^2.5.0"
114
156
  },
157
+ "peerDependencies": {
158
+ "@sentry/node": "^11.0.0"
159
+ },
160
+ "peerDependenciesMeta": {
161
+ "@sentry/node": {
162
+ "optional": true
163
+ }
164
+ },
115
165
  "devDependencies": {
116
166
  "@commitlint/cli": "^19.8.1",
117
167
  "@commitlint/config-conventional": "^19.8.1",
118
168
  "@eslint/js": "^10.0.1",
119
169
  "@playwright/test": "^1.50.0",
170
+ "@sentry/node": "^11.0.0",
120
171
  "@types/node": "^26.4.0",
121
172
  "@vitest/coverage-istanbul": "^5.0.1",
122
173
  "axe-core": "^4.13.0",
@@ -1,2 +0,0 @@
1
- import { m as runScan } from "./scan-pipeline-MQGUSey3.mjs";
2
- export { runScan };