@atolis-hq/corum 0.1.38 → 0.1.40
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/src/adapters/asyncapi/mapper.js +5 -2
- package/dist/src/adapters/corum/mapper.js +308 -73
- package/dist/src/adapters/openapi/mapper.js +5 -2
- package/dist/src/bin/corum.js +27 -6
- package/dist/src/graph/index.js +124 -54
- package/dist/src/graph/roles.js +66 -0
- package/dist/src/graph/schema-collapse.js +72 -63
- package/dist/src/import/runner.js +28 -5
- package/dist/src/linter/index.js +195 -0
- package/dist/src/loader/cluster-loader.js +52 -30
- package/dist/src/loader/constants.js +20 -16
- package/dist/src/loader/edge-loader.js +25 -5
- package/dist/src/loader/edge-type-loader.js +72 -0
- package/dist/src/loader/id-grammar.js +68 -0
- package/dist/src/loader/index.js +6 -1
- package/dist/src/loader/template-props.js +60 -0
- package/dist/src/mcp/index.js +137 -62
- package/dist/src/mcp/serializers.js +2 -1
- package/dist/src/pack/installer.js +15 -2
- package/dist/src/source/file-source.js +104 -29
- package/dist/src/source/git-source.js +101 -41
- package/dist/src/source/safe-path.js +26 -0
- package/dist/src/web/server.js +40 -47
- package/dist/src/writer/graph-writer.js +44 -6
- package/package.json +1 -1
- package/web/app.jsx +6 -2
- package/web/primitives.jsx +2 -1
package/web/app.jsx
CHANGED
|
@@ -843,8 +843,12 @@ function NodePage({ nodeId, templates, onNavigate, refreshToken, viewingRef, ove
|
|
|
843
843
|
const childDisplayEntries = [...displayChildren.entries()]
|
|
844
844
|
.filter(([templateName]) => templateName !== 'Field' && templateName !== 'EnumValue' && templateName !== 'Mapping');
|
|
845
845
|
const displayEntries = [...rootSpecializedNodes, ...childDisplayEntries];
|
|
846
|
-
|
|
847
|
-
|
|
846
|
+
// includedNodes now contains only directly-connected external nodes:
|
|
847
|
+
// - Schema / EnumDefinition: with structural children (fields/values) and referenced types
|
|
848
|
+
// - All other templates (DomainEvent, Command, etc.): root metadata only for connectivity panel
|
|
849
|
+
// This is computed server-side via expandExternalNodes, so no client-side filtering is needed.
|
|
850
|
+
const includedSchemaNodes = includedNodes.filter(n => n.template === 'Schema' && !n.parentId);
|
|
851
|
+
const includedEnumNodes = includedNodes.filter(n => n.template === 'EnumDefinition' && !n.parentId);
|
|
848
852
|
|
|
849
853
|
function handlePropertyNavigate(targetNodeId) {
|
|
850
854
|
if (displayedNodeIds.has(targetNodeId)) {
|
package/web/primitives.jsx
CHANGED
|
@@ -472,7 +472,8 @@ function SchemaFieldRows({ schemaNodeId, model, prefix = '', depth = 0, visited
|
|
|
472
472
|
const childSchemaNode = !canExpandMapping
|
|
473
473
|
? (refNodeId ? (model.schemasById?.get(refNodeId) ?? null) : (localRef ? (model.schemasByName.get(localRef) ?? null) : null))
|
|
474
474
|
: null;
|
|
475
|
-
const
|
|
475
|
+
const childHasFields = childSchemaNode ? (model.fieldsBySchema.get(childSchemaNode.id) ?? []).length > 0 : false;
|
|
476
|
+
const canExpand = !!childSchemaNode && !visited.has(childSchemaNode.id) && childHasFields;
|
|
476
477
|
const isExpandable = canExpand || canExpandMapping;
|
|
477
478
|
const childGhostFields = childSchemaNode ? overlayFieldsForSchema(overlayFields, childSchemaNode.id) : [];
|
|
478
479
|
const c = field.properties?.collection;
|