{
  "name": "mandrel",
  "version": "2.115.0",
  "description": "Claude Code-first opinionated workflow framework: instructions, skills, rules, and SDLC workflows that govern AI coding assistants.",
  "files": [
    ".agents/",
    "bin/",
    "docs/CHANGELOG.md",
    "lib/",
    "!lib/**/__tests__",
    "!.agents/**/__tests__",
    "!.agents/skills/workflows"
  ],
  "publishConfig": {
    "access": "public",
    "provenance": true
  },
  "scripts": {
    "//test-preflight": "There are deliberately NO pretest* scripts (Story #4936). .npmrc sets ignore-scripts=true as supply-chain defence (CWE-1357), and that suppresses every pre*/post* lifecycle script for `npm run` too — so a pretest entry here would look like a gate and never execute. Each tier's preflight is declared once in .agents/scripts/lib/test-runner-contract.js and invoked by the runners themselves, which is why it fires for `npm test`, `npm run test:coverage` and a bare `node .agents/scripts/run-tests.js` alike.",
    "test": "node .agents/scripts/run-tests.js",
    "test:quick": "node .agents/scripts/run-tests.js --tier quick",
    "test:integration": "node .agents/scripts/run-tests.js --tier integration",
    "test:e2e": "node .agents/scripts/run-tests.js --tier e2e",
    "test:profile": "node scripts/run-test-profile.js",
    "report:agent-cost": "node scripts/agent-cost-report.js",
    "test:census": "SPAWN_CENSUS_OUT=\"${SPAWN_CENSUS_OUT:-temp/census.json}\" NODE_OPTIONS=\"--require $PWD/tests/fixtures/spawn-census.cjs\" node .agents/scripts/run-tests.js",
    "test:isolate": "node scripts/test-isolate.js",
    "verify": "node scripts/run-verify.js",
    "typecheck": "node -e \"process.exit(0)\"",
    "test:coverage": "node scripts/run-coverage.js",
    "coverage:check": "node .agents/scripts/check-baselines.js --gate coverage",
    "coverage:update": "node .agents/scripts/update-coverage-baseline.js",
    "coverage:reanchor": "node .agents/scripts/update-coverage-baseline.js --full-scope",
    "baseline:agents-loc": "node baselines/agents-loc-baseline.mjs",
    "baselines:scope": "node scripts/check-baseline-scope.js",
    "baselines:prune": "node scripts/prune-baseline-orphans.js",
    "baselines:merge-driver": "node .agents/scripts/merge-baseline.js --install",
    "lint:md": "markdownlint-cli2 \".agents/**/*.md\" \"*.md\" \"!node_modules/**\" \"!.worktrees/**\"",
    "lint": "node scripts/run-lint.js && node scripts/check-generated-validator.js --check && node scripts/check-pinned-override-notes.js && npm run docs:check",
    "docs:gen": "node .agents/scripts/generate-config-docs.js && node .agents/scripts/generate-workflows-doc.js && node .agents/scripts/generate-lens-checklists.js",
    "docs:check": "node .agents/scripts/generate-config-docs.js --check && node .agents/scripts/generate-workflows-doc.js --check && node .agents/scripts/generate-lens-checklists.js --check && node .agents/scripts/check-doc-links.js && npm run skills:check",
    "skills:index": "node .agents/scripts/generate-skills-index.js",
    "skills:check": "node .agents/scripts/generate-skills-index.js --check",
    "format": "biome format --write .",
    "format:check": "biome ci .",
    "maintainability:check": "node .agents/scripts/check-baselines.js --gate maintainability",
    "maintainability:update": "node .agents/scripts/update-maintainability-baseline.js",
    "maintainability:reanchor": "node .agents/scripts/update-maintainability-baseline.js --full-scope",
    "check:arch": "node .agents/scripts/check-arch-cycles.js",
    "arch:update": "node .agents/scripts/check-arch-cycles.js --update",
    "//resident-context-reports": "check:context-budget and check:workflow-citations are REPORTS, not ratchets (Story #5340, ADR 20260917-5340). check:context-budget still fails when the alwaysLoaded tier exceeds its recorded total plus the committed tolerance; its workflow tier, and check:workflow-citations in full, print and always exit 0. A green run is not evidence the numbers held — read the output.",
    "check:context-budget": "node .agents/scripts/check-context-budget.js",
    "check:cyclomatic": "node .agents/scripts/check-cyclomatic.js",
    "cyclomatic:update": "node .agents/scripts/check-cyclomatic.js --update",
    "dead-exports:update": "node scripts/update-dead-exports-baseline.js && node scripts/update-dead-exports-baseline.js --production",
    "check:knip-entries": "node scripts/check-knip-entries.js",
    "validator:gen": "node scripts/check-generated-validator.js",
    "validator:check": "node scripts/check-generated-validator.js --check",
    "config:ceiling": "node scripts/check-agentrc-key-ceiling.js",
    "check:comment-policy": "node scripts/check-comment-policy.js",
    "check:schema-refs": "node scripts/check-schema-references.js",
    "check:workflow-citations": "node scripts/check-workflow-citations.js",
    "crap:check": "node .agents/scripts/check-baselines.js --gate crap",
    "crap:update": "node .agents/scripts/update-crap-baseline.js",
    "crap:reanchor": "node .agents/scripts/update-crap-baseline.js --full-scope",
    "duplication:check": "node .agents/scripts/check-baselines.js --gate duplication",
    "duplication:update": "node .agents/scripts/update-duplication-baseline.js",
    "duplication:reanchor": "node .agents/scripts/update-duplication-baseline.js --full-scope",
    "bundle-size:check": "node .agents/scripts/check-baselines.js --gate bundle-size",
    "bundle-size:update": "node .agents/scripts/update-bundle-size-baseline.js",
    "quality:preview": "node .agents/scripts/check-dead-exports.js && node .agents/scripts/quality-preview.js",
    "quality:watch": "node .agents/scripts/quality-watch.js",
    "sync:commands": "node bin/mandrel.js sync-commands",
    "sync:agents": "node .agents/scripts/sync-claude-agents.js",
    "prepare": "husky && npm run sync:commands && npm run sync:agents && npm run baselines:merge-driver",
    "postinstall": "node bin/postinstall.js mandrel sync"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/dsj1984/mandrel.git"
  },
  "keywords": [
    "claude-code",
    "ai-agents",
    "sdlc",
    "workflow",
    "orchestration",
    "agentic"
  ],
  "author": "",
  "license": "MIT",
  "bin": {
    "mandrel": "bin/mandrel.js"
  },
  "type": "module",
  "bugs": {
    "url": "https://github.com/dsj1984/mandrel/issues"
  },
  "homepage": "https://github.com/dsj1984/mandrel#readme",
  "engines": {
    "node": ">=22.22.1 <25"
  },
  "devDependencies": {
    "@biomejs/biome": "^2.6.2",
    "@commitlint/cli": "^21.2.4",
    "@commitlint/config-conventional": "^21.2.4",
    "@cucumber/gherkin": "^42.0.1",
    "c8": "^12.0.0",
    "chokidar": "^6.0.0",
    "fast-check": "^4.10.2",
    "husky": "^9.1.7",
    "jscpd": "^4.3.0",
    "knip": "^6.42.1",
    "lint-staged": "^17.6.0",
    "markdownlint-cli2": "^0.24.0",
    "memfs": "^4.80.0",
    "node-pty": "^1.0.0",
    "typescript": "^6.0.3"
  },
  "dependencies": {
    "@babel/parser": "^7.29.9",
    "ajv": "^8.20.0",
    "babel-runtime": "^6.26.0",
    "escomplex-plugin-metrics-module": "^0.1.0",
    "escomplex-plugin-syntax-babylon": "^0.1.0",
    "js-yaml": "^5.4.3",
    "picomatch": "^4.0.7",
    "typhonjs-ast-walker": "^0.2.1",
    "typhonjs-escomplex-commons": "^0.1.1"
  },
  "peerDependencies": {
    "@cucumber/gherkin": ">=32.0.0",
    "jscpd": "^4.0.0",
    "typescript": ">=5.0.0 <7"
  },
  "peerDependenciesMeta": {
    "@cucumber/gherkin": {
      "optional": true
    },
    "jscpd": {
      "optional": true
    },
    "typescript": {
      "optional": true
    }
  },
  "//": {
    "peerDependencies.@cucumber/gherkin": "OPTIONAL peer, mirroring the `typescript` precedent, and deliberately NOT a runtime dependency. `check-gherkin-corpus.js` is the only consumer and it is opt-in behind `qa.gherkinLint`, so a consumer with no BDD tier must gain nothing from an upgrade. The devDependency alongside it is what lets this repository's own suite drive the real parser. The gate resolves it through a require path anchored at the consumer project — `.agents/` reaches a consumer by plain file copy, so a bare specifier would resolve against the consumer's module chain, which under a non-hoisting linker need not hold it.",
    "overrides.js-yaml": "COUPLED to devDependencies.markdownlint-cli2 — do not bump either alone, and do NOT drop this override. It is load-bearing: an npm override wins over every transitive package's own pin, so this tree-wide ^5.4.3 is imposed on every js-yaml consumer regardless of what they declare. markdownlint-cli2 0.24.x declares an exact js-yaml 5.4.3, which the override matches; cosmiconfig (under @commitlint/cli) declares ^4.1.0 and was confirmed to load commitlint config under js-yaml 5 before this pin moved. Earlier pins existed for advisories against 4.x (GHSA-52cp-r559-cp3m, GHSA-h67p-54hq-rp68, GHSA-2883-xcg3-v3hh); letting any consumer fall back below 4.3.2 reintroduces that history. The shipped .agents/runtime-deps.json resolves from a Mandrel consumer's own root, where their tooling may keep 4.x, so it accepts ^4.3.2 || ^5.4.3 instead of mirroring this pin. js-yaml 5 has no default export, so framework code imports the named `load`. The only safe move is to raise this override and bump markdownlint-cli2 in ONE reviewed commit, re-checking cosmiconfig; renovate.json excludes markdownlint-cli2 from devDependency auto-merge so that pair cannot drift apart unattended. check-pinned-override-notes.js fails the build if this sentence and the pin disagree.",
    "dependencies.js-yaml": "States the SAME range as overrides.js-yaml above. The two are deliberate duplicates — npm has no way to reference the direct range from the overrides block — so they MUST move in lockstep; changing one without the other silently splits the direct and transitive resolutions.",
    "overrides.markdown-it": "Load-bearing: markdownlint-cli2 0.24.x declares an EXACT markdown-it 15.0.3, and this tree-wide ^15.0.3 pin keeps every markdown-it consumer on that patched major. The 14.x line carried GHSA-253c-mchw-3w2r (moderate — quadratic linkify paths) and GHSA-gfr2-rv44-r23c (high — quadratic-time rendering of a multi-line link reference definition, vulnerable >=14.1.0 <14.3.3); the pin's floor tracks markdownlint-cli2's own declaration so the two never split. `npm run lint` is what must be re-run if this pin moves.",
    "overrides.smol-toml": "Load-bearing: markdownlint-cli2 0.24.x declares an EXACT smol-toml 1.9.1, and this tree-wide ^1.9.1 pin keeps every smol-toml consumer at or above it. Older lines carried GHSA-7w5x-hrqm-74c2 (high — denial of service via malformed TOML, vulnerable <= 1.7.0) and GHSA-r4xh-jqrq-34v2 (moderate — quadratic-time parse(), vulnerable <= 1.8.0). knip declares ^1.6.1 and is satisfied natively. `npm run lint` is what must be re-run if this pin moves. smol-toml is NOT a direct dependency, so unlike overrides.js-yaml there is no lockstep duplicate range to keep in sync.",
    "overrides.katex": "Clears GHSA-238p-pmpm-9mq7 (low — prototype pollution bypassing trust restrictions, vulnerable >=0.11.0 <0.18.2). katex reaches the tree only through markdownlint (micromark-extension-math declares ^0.16.0, so no lockfile-only resolution reaches the fix). markdownlint imports only the math SYNTAX extension, never the HTML renderer that loads katex, so this tree-wide ^0.18.2 pin changes no executed code; `npm run lint` is what must be re-run if it moves. katex is NOT a direct dependency, so there is no lockstep duplicate range.",
    "overrides.re2js": "Clears GHSA-gg6h-894w-4m9c (high — quadratic-time denial of service in lookbehind matching, vulnerable >=2.2.0 <=2.8.6). re2js reaches the tree only through markdownlint, which declares an EXACT re2js 2.8.6 even in its latest release, so neither a lockfile-only resolution nor a parent bump reaches the fix; `npm audit fix --force` would instead downgrade markdownlint-cli2 to 0.23.x and break the overrides above. This tree-wide ^2.8.7 pin stays on the 2.x major; `npm run lint` is what must be re-run if it moves. Drop it once markdownlint declares re2js >= 2.8.7. re2js is NOT a direct dependency, so there is no lockstep duplicate range."
  },
  "overrides": {
    "js-yaml": "^5.4.3",
    "markdown-it": "^15.0.3",
    "smol-toml": "^1.9.1",
    "katex": "^0.18.2",
    "re2js": "^2.8.7"
  }
}
