mandrel 2.85.0 → 2.87.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.
Files changed (30) hide show
  1. package/.agents/docs/agentrc-reference.json +2 -1
  2. package/.agents/docs/configuration.md +36 -14
  3. package/.agents/schemas/agentrc.schema.json +48 -9
  4. package/.agents/scripts/coverage-capture.js +23 -3
  5. package/.agents/scripts/evidence-gate.js +2 -2
  6. package/.agents/scripts/lib/baselines/bundle-size-scorer.js +115 -0
  7. package/.agents/scripts/lib/baselines/coverage-updater-cli.js +129 -28
  8. package/.agents/scripts/lib/baselines/crap-updater-cli.js +31 -10
  9. package/.agents/scripts/lib/baselines/duplication-scanner.js +25 -1
  10. package/.agents/scripts/lib/baselines/refresh-service.js +55 -19
  11. package/.agents/scripts/lib/close-validation/process.js +6 -0
  12. package/.agents/scripts/lib/close-validation/runner.js +22 -6
  13. package/.agents/scripts/lib/config/gates/coverage.schema.js +1 -1
  14. package/.agents/scripts/lib/config/gates/shared.js +1 -1
  15. package/.agents/scripts/lib/config/quality.js +6 -2
  16. package/.agents/scripts/lib/config-settings-schema-delivery.js +41 -2
  17. package/.agents/scripts/lib/coverage-baseline.js +7 -6
  18. package/.agents/scripts/lib/coverage-capture.js +44 -0
  19. package/.agents/scripts/lib/full-suite-lock.js +98 -38
  20. package/.agents/scripts/lib/full-suite-queue.js +45 -18
  21. package/.agents/scripts/lib/generated/agentrc-validator.js +1 -1
  22. package/.agents/scripts/lib/observability/source-classifier.js +1 -0
  23. package/.agents/scripts/lib/orchestration/check-baselines/phases/evaluate.js +29 -2
  24. package/.agents/scripts/lib/orchestration/story-handoff.js +19 -1
  25. package/.agents/scripts/lib/suite-admission.js +410 -0
  26. package/.agents/scripts/update-bundle-size-baseline.js +56 -0
  27. package/.agents/scripts/update-coverage-baseline.js +16 -41
  28. package/.agents/scripts/update-duplication-baseline.js +13 -3
  29. package/docs/CHANGELOG.md +14 -0
  30. package/package.json +7 -1
@@ -9,6 +9,7 @@
9
9
  import './lib/runtime-deps/ensure-installed.js';
10
10
  import path from 'node:path';
11
11
  import { parseDiffScopeFlag } from './lib/baselines/diff-scope-cli.js';
12
+ import { JSCPD_MISSING } from './lib/baselines/duplication-scanner.js';
12
13
  import { refreshBaseline } from './lib/baselines/refresh-service.js';
13
14
  import { runAsCli } from './lib/cli-utils.js';
14
15
  import { getBaselineEpsilon } from './lib/config/quality.js';
@@ -172,13 +173,22 @@ async function main() {
172
173
  );
173
174
  }
174
175
 
176
+ /**
177
+ * A missing optional peer is an install step, not a crash: no stack.
178
+ *
179
+ * @param {unknown} err
180
+ * @returns {string}
181
+ */
182
+ function fatalDetail(err) {
183
+ if (err?.code === JSCPD_MISSING) return err.message;
184
+ return err?.stack ?? err?.message ?? String(err);
185
+ }
186
+
175
187
  runAsCli(import.meta.url, main, {
176
188
  source: 'duplication-baseline',
177
189
  usage: USAGE,
178
190
  onError: (err) => {
179
- Logger.error(
180
- `[Duplication] ❌ Fatal error: ${err?.stack ?? err?.message ?? err}`,
181
- );
191
+ Logger.error(`[Duplication] ❌ Fatal error: ${fatalDetail(err)}`);
182
192
  process.exitCode = 1;
183
193
  },
184
194
  });
package/docs/CHANGELOG.md CHANGED
@@ -15,6 +15,20 @@ All notable changes to this project will be documented in this file.
15
15
  -->
16
16
  <!-- markdownlint-disable-file MD004 MD012 MD037 -->
17
17
 
18
+ ## [2.87.0](https://github.com/dsj1984/mandrel/compare/mandrel-v2.86.0...mandrel-v2.87.0) (2026-10-14)
19
+
20
+
21
+ ### Added
22
+
23
+ * make consumer quality-baseline refresh runnable from a clean install ([#5672](https://github.com/dsj1984/mandrel/issues/5672)) ([#5673](https://github.com/dsj1984/mandrel/issues/5673)) ([9bb4a71](https://github.com/dsj1984/mandrel/commit/9bb4a718c0a9765b064c83a0a11c57b71ed9a35c))
24
+
25
+ ## [2.86.0](https://github.com/dsj1984/mandrel/compare/mandrel-v2.85.0...mandrel-v2.86.0) (2026-10-14)
26
+
27
+
28
+ ### Added
29
+
30
+ * admit declared focused validation alongside full suites under a repo-scoped capacity budget ([#5668](https://github.com/dsj1984/mandrel/issues/5668)) ([#5669](https://github.com/dsj1984/mandrel/issues/5669)) ([318c132](https://github.com/dsj1984/mandrel/commit/318c132ed6964fcb4b6f3330ff0b3ae08cf39809))
31
+
18
32
  ## [2.85.0](https://github.com/dsj1984/mandrel/compare/mandrel-v2.84.0...mandrel-v2.85.0) (2026-10-13)
19
33
 
20
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mandrel",
3
- "version": "2.85.0",
3
+ "version": "2.87.0",
4
4
  "description": "Claude Code-first opinionated workflow framework: instructions, skills, rules, and SDLC workflows that govern AI coding assistants.",
5
5
  "files": [
6
6
  ".agents/",
@@ -65,6 +65,8 @@
65
65
  "duplication:check": "node .agents/scripts/check-baselines.js --gate duplication",
66
66
  "duplication:update": "node .agents/scripts/update-duplication-baseline.js",
67
67
  "duplication:reanchor": "node .agents/scripts/update-duplication-baseline.js --full-scope",
68
+ "bundle-size:check": "node .agents/scripts/check-baselines.js --gate bundle-size",
69
+ "bundle-size:update": "node .agents/scripts/update-bundle-size-baseline.js",
68
70
  "quality:preview": "node .agents/scripts/check-dead-exports.js && node .agents/scripts/quality-preview.js",
69
71
  "quality:watch": "node .agents/scripts/quality-watch.js",
70
72
  "sync:commands": "node bin/mandrel.js sync-commands",
@@ -129,12 +131,16 @@
129
131
  },
130
132
  "peerDependencies": {
131
133
  "@cucumber/gherkin": ">=32.0.0",
134
+ "jscpd": "^4.0.0",
132
135
  "typescript": ">=5.0.0 <7"
133
136
  },
134
137
  "peerDependenciesMeta": {
135
138
  "@cucumber/gherkin": {
136
139
  "optional": true
137
140
  },
141
+ "jscpd": {
142
+ "optional": true
143
+ },
138
144
  "typescript": {
139
145
  "optional": true
140
146
  }