@sdd-method/verify-cli 2.5.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/dist/lib/behaviour-store/archive.js +13 -0
- package/dist/lib/catalogue/canonical-schema.yaml +845 -28
- package/dist/lib/catalogue/manifest-loader.js +13 -0
- package/dist/lib/catalogue/rubric-coverage-map.yaml +108 -2
- package/dist/lib/catalogue/schema-compat.js +1 -1
- package/dist/lib/catalogue/schema-loader.js +3 -0
- package/dist/lib/catalogue/staleness-verdicts.js +75 -6
- package/dist/lib/metamodel/tql-subset-parser.js +35 -2
- package/dist/lib/structure/catalogue.js +183 -0
- package/dist/lib/structure/compose.js +174 -0
- package/dist/lib/structure/model.js +212 -0
- package/dist/lib/structure/render.js +242 -0
- package/dist/lib/structure/view.js +301 -0
- package/dist/lib/validate/agreement-evidence.js +216 -0
- package/dist/lib/validate/behaviour-store.js +516 -28
- package/dist/lib/validate/dispatch.js +21 -0
- package/dist/lib/validate/feature-spec-pointers.js +175 -0
- package/dist/lib/validate/journey-impact.js +193 -0
- package/dist/lib/validate/structural-model.js +265 -0
- package/dist/maintain-version.json +2 -2
- package/dist/verify-version.json +2 -2
- package/package.json +2 -2
|
@@ -204,4 +204,17 @@ export function surfaceMatches(entry, contractId, specPath) {
|
|
|
204
204
|
const re = new RegExp(`(^|/)${e.split("*").map((p) => p.replace(/[.+?^${}()|[\]\\]/g, "\\$&")).join("[^/]*")}$`);
|
|
205
205
|
return re.test(specPath.split("\\").join("/"));
|
|
206
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* The delta entries a work order's `implements` entry names (schema 5.0.0). `<feature>::<name>` names exactly one
|
|
209
|
+
* requirement. A bare name resolves only when one feature in the change has a requirement of that name; across
|
|
210
|
+
* two features it is ambiguous, and names none.
|
|
211
|
+
*/
|
|
212
|
+
export function resolveImplements(delta, entry) {
|
|
213
|
+
const q = /^(.+?)::(.+)$/.exec(entry);
|
|
214
|
+
if (q)
|
|
215
|
+
return { matches: delta.filter((d) => d.feature === q[1] && d.name === q[2]), ambiguous: [] };
|
|
216
|
+
const matches = delta.filter((d) => d.name === entry);
|
|
217
|
+
const features = [...new Set(matches.map((d) => d.feature))];
|
|
218
|
+
return features.length > 1 ? { matches: [], ambiguous: features } : { matches, ambiguous: [] };
|
|
219
|
+
}
|
|
207
220
|
//# sourceMappingURL=archive.js.map
|