archgraph-argo-beta 0.27.0-beta.3 → 0.27.0-beta.4
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.
|
@@ -180,7 +180,10 @@ function hasExtendsConfig(dir) {
|
|
|
180
180
|
|
|
181
181
|
function resolveBaseBundleDir(ext, childDir) {
|
|
182
182
|
const value = String(ext).trim();
|
|
183
|
-
|
|
183
|
+
// Reserved, language-neutral name for the built-in default bundle. Any other
|
|
184
|
+
// value is a path to another bundle directory — the framework never hardcodes a
|
|
185
|
+
// modeling-language name (ArchiMate or otherwise) into bundle resolution.
|
|
186
|
+
if (value === 'default') {
|
|
184
187
|
return path.join(getArgoRoot(), 'schema');
|
|
185
188
|
}
|
|
186
189
|
return path.resolve(childDir, value);
|
|
@@ -232,6 +235,21 @@ function mergeExtendsBundle(base, child) {
|
|
|
232
235
|
relationshipCategoryByType[type] = category;
|
|
233
236
|
}
|
|
234
237
|
|
|
238
|
+
// Guarantee base ∪ add for the element/relationship universe regardless of the
|
|
239
|
+
// base dialect (class-matrix derives types from rules metadata, type-matrix from
|
|
240
|
+
// schema enums) — an inheriting Profile must never silently drop a base type.
|
|
241
|
+
const baseOntology = buildOntology(base);
|
|
242
|
+
for (const type of baseOntology.elementTypes) {
|
|
243
|
+
if (!elementTypeMetadata[type]) {
|
|
244
|
+
elementTypeMetadata[type] = { layer: null, aspect: null };
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
for (const type of baseOntology.relationshipTypes) {
|
|
248
|
+
if (!relationshipCategoryByType[type]) {
|
|
249
|
+
relationshipCategoryByType[type] = 'Custom';
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
235
253
|
const relationshipTargetMatrix = deepCloneJson(baseRules.relationshipTargetMatrix || {}) || {};
|
|
236
254
|
mergeMatrixInto(relationshipTargetMatrix, childRules.relationshipTargetMatrix || {});
|
|
237
255
|
mergeMatrixInto(relationshipTargetMatrix, config.overrideMatrix || {});
|
package/package.json
CHANGED