Skip to content

Commit 3e2e912

Browse files
engalarclaude
andcommitted
feat: add virtual System module for complete module listing
Add a virtual System module builder that provides System entities (User, Session, FileDocument, Image, etc.) and associations when listing modules and domain models. This enables catalog queries and reference resolution against System types without requiring them to exist in the MPR file. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8ceb020 commit 3e2e912

3 files changed

Lines changed: 469 additions & 0 deletions

File tree

sdk/mpr/reader_documents.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ func (r *Reader) ListModules() ([]*model.Module, error) {
3333
modules = append(modules, module)
3434
}
3535

36+
// Append virtual System module
37+
modules = append(modules, BuildSystemModule())
38+
3639
return modules, nil
3740
}
3841

@@ -102,6 +105,9 @@ func (r *Reader) ListDomainModels() ([]*domainmodel.DomainModel, error) {
102105
}
103106
}
104107

108+
// Append virtual System module domain model
109+
domainModels = append(domainModels, BuildSystemDomainModel())
110+
105111
return domainModels, nil
106112
}
107113

0 commit comments

Comments
 (0)