Prepare shared glossary envelopes and combined input

This commit is contained in:
2026-11-30 00:39:39 +00:00
parent 4e94b2157b
commit f05e711328
22 changed files with 304 additions and 475 deletions

View File

@@ -20,6 +20,7 @@ const (
SourceInputGlossaryCampaign = "narratio.input.glossary.campaign"
SourceInputGlossarySetting = "narratio.input.glossary.setting"
SourceInputGlossarySpells = "narratio.input.glossary.spells"
SourceInputGlossaryCombined = "narratio.input.glossary.combined"
SourceInputSpellCatalog = "narratio.input.spell_catalog"
configuredSourcePrefix = "narratio.artifact."
@@ -216,6 +217,7 @@ var preparedInputSources = map[string]PreparedInputSourceDescriptor{
SourceInputGlossaryCampaign: {SourceID: SourceInputGlossaryCampaign, ManifestKind: "glossary_campaign", Filename: "glossaries/campaign.yml"},
SourceInputGlossarySetting: {SourceID: SourceInputGlossarySetting, ManifestKind: "glossary_setting", Filename: "glossaries/setting.yml"},
SourceInputGlossarySpells: {SourceID: SourceInputGlossarySpells, ManifestKind: "glossary_spells", Filename: "glossaries/spells.yml"},
SourceInputGlossaryCombined: {SourceID: SourceInputGlossaryCombined, ManifestKind: "glossary_combined", Filename: "glossaries/combined.yml"},
}
// GlossaryInputSources returns the four shared glossary descriptors in consumer order.

View File

@@ -224,6 +224,7 @@ func TestDescribePreparedInputSource(t *testing.T) {
{source: SourceInputGlossaryCampaign, manifestKind: "glossary_campaign", filename: "glossaries/campaign.yml"},
{source: SourceInputGlossarySetting, manifestKind: "glossary_setting", filename: "glossaries/setting.yml"},
{source: SourceInputGlossarySpells, manifestKind: "glossary_spells", filename: "glossaries/spells.yml"},
{source: SourceInputGlossaryCombined, manifestKind: "glossary_combined", filename: "glossaries/combined.yml"},
}
for _, tt := range tests {