spec-controller 0.1.253 → 0.1.254

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 (2) hide show
  1. package/dist/cli.js +7 -6
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -12545,8 +12545,8 @@ function outranks(code, occurrence, highest) {
12545
12545
  function highestOf(part, occurrences) {
12546
12546
  let highest = null;
12547
12547
  for (const occurrence of occurrences) {
12548
- for (const [code] of occurrence.text.matchAll(CLAIM_CODES)) {
12549
- if (featureCodeOf(code) !== part)
12548
+ for (const [code, codePart] of occurrence.text.matchAll(COUNTED_CODES)) {
12549
+ if (codePart !== part)
12550
12550
  continue;
12551
12551
  if (highest === null || outranks(code, occurrence, highest))
12552
12552
  highest = { code, occurrence };
@@ -12568,13 +12568,14 @@ function unknownPartCarried(unknown) {
12568
12568
  const [first, ...rest] = unknown.headerCodes;
12569
12569
  return first === void 0 ? { kind: "none" } : { kind: "some", headerCodes: [first, ...rest] };
12570
12570
  }
12571
- var NUMBER_WIDTH, CLAIM_CODES;
12571
+ var NUMBER_WIDTH, ALLOCATION_COUNTED_PREFIXES, COUNTED_CODES;
12572
12572
  var init_claimCodeAllocation = __esm({
12573
12573
  "../core/dist/domain/claimCodeAllocation.js"() {
12574
12574
  "use strict";
12575
12575
  init_featureCode();
12576
12576
  NUMBER_WIDTH = 3;
12577
- CLAIM_CODES = new RegExp(CLAIM_CODE_SOURCE, "g");
12577
+ ALLOCATION_COUNTED_PREFIXES = [...CLAIM_CODE_PREFIXES, "SCN"];
12578
+ COUNTED_CODES = new RegExp(`(?:${ALLOCATION_COUNTED_PREFIXES.join("|")})-([A-Z0-9]+)-\\d+`, "g");
12578
12579
  }
12579
12580
  });
12580
12581
 
@@ -39018,7 +39019,7 @@ import { lstatSync as lstatSync3, readFileSync as readFileSync7 } from "node:fs"
39018
39019
  import { dirname as dirname5, join as join8 } from "node:path";
39019
39020
  function readHistory(cwd, part) {
39020
39021
  proveRefsReadable(cwd);
39021
- const args = ["log", "--all", "-p", "-U0", "--no-color", "--no-ext-diff", "--format=%x01%h", "-G", `(${CLAIM_CODE_PREFIXES.join("|")})-${part}-`];
39022
+ const args = ["log", "--all", "-p", "-U0", "--no-color", "--no-ext-diff", "--format=%x01%h", "-G", `(${ALLOCATION_COUNTED_PREFIXES.join("|")})-${part}-`];
39022
39023
  const result = spawnSync2("git", args, { cwd, encoding: "utf8", maxBuffer: MAX_OUTPUT_BYTES });
39023
39024
  if (result.error !== void 0) refuse2("history" /* History */, cwd, result.error);
39024
39025
  if (result.status !== 0) {
@@ -39148,7 +39149,7 @@ function listedAndEntered(path) {
39148
39149
  return readdirSync4(path, { withFileTypes: true });
39149
39150
  }
39150
39151
  function needlesFor(part) {
39151
- return CLAIM_CODE_PREFIXES.map((prefix) => `${prefix}-${part}-`);
39152
+ return ALLOCATION_COUNTED_PREFIXES.map((prefix) => `${prefix}-${part}-`);
39152
39153
  }
39153
39154
  function occurrencesInListed(top, path, needles) {
39154
39155
  const file = join9(top, path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.253",
3
+ "version": "0.1.254",
4
4
  "description": "Reconcile the behaviour your scenarios name against the evidence that actually ran — the deterministic `balance` CLI.",
5
5
  "keywords": [
6
6
  "reconciliation",
@@ -26,7 +26,7 @@
26
26
  "fast-xml-parser": "^5.11.2",
27
27
  "ts-json-schema-generator": "^2.9.0",
28
28
  "yaml": "^2.9.0",
29
- "@3f-consulting/spec-controller-core": "0.1.253"
29
+ "@3f-consulting/spec-controller-core": "0.1.254"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"