spec-controller 0.1.253 → 0.1.255
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/dist/cli.js +12 -11
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -12341,18 +12341,18 @@ var init_evidenceOrder = __esm({
|
|
|
12341
12341
|
// ../core/dist/domain/evidenceReconciliation.js
|
|
12342
12342
|
function citationIndex() {
|
|
12343
12343
|
const byClaimCode = /* @__PURE__ */ new Map();
|
|
12344
|
-
const
|
|
12344
|
+
const phantomClaimCodes = [];
|
|
12345
12345
|
return {
|
|
12346
12346
|
file(posting, observation) {
|
|
12347
12347
|
const list = byClaimCode.get(posting.claimCode) ?? [];
|
|
12348
12348
|
list.push(observation);
|
|
12349
12349
|
byClaimCode.set(posting.claimCode, list);
|
|
12350
|
-
if (posting.kind === "phantom-claim" && !
|
|
12351
|
-
|
|
12350
|
+
if (posting.kind === "phantom-claim" && !phantomClaimCodes.includes(posting.claimCode)) {
|
|
12351
|
+
phantomClaimCodes.push(posting.claimCode);
|
|
12352
12352
|
}
|
|
12353
12353
|
},
|
|
12354
12354
|
observationsFor: (claimCode) => byClaimCode.get(claimCode) ?? [],
|
|
12355
|
-
|
|
12355
|
+
phantomClaimCodes
|
|
12356
12356
|
};
|
|
12357
12357
|
}
|
|
12358
12358
|
function namingSharedCode(observation, code) {
|
|
@@ -12409,7 +12409,7 @@ function duplicateClaimCodeRow(sharer) {
|
|
|
12409
12409
|
}
|
|
12410
12410
|
function phantomClaimRows(citations) {
|
|
12411
12411
|
const rows = [];
|
|
12412
|
-
for (const claimCode of citations.
|
|
12412
|
+
for (const claimCode of citations.phantomClaimCodes) {
|
|
12413
12413
|
const observations = citations.observationsFor(claimCode);
|
|
12414
12414
|
const items = citesUnknownScenarioReconciliationsOf(observations);
|
|
12415
12415
|
rows.push({
|
|
@@ -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(
|
|
12549
|
-
if (
|
|
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,
|
|
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
|
-
|
|
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", `(${
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.1.255",
|
|
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.
|
|
29
|
+
"@3f-consulting/spec-controller-core": "0.1.255"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|