Register prepared glossary input identities

This commit is contained in:
2026-11-27 16:24:08 +00:00
parent caddd668ca
commit 1bb1daa1f2
8 changed files with 81 additions and 13 deletions

View File

@@ -48,6 +48,9 @@ type PreparedInputIdentity struct {
func ResolvePreparedInput(paths SessionPaths, m *manifest.Manifest, sourceID string) (PreparedInputIdentity, error) {
descriptor, ok := artifactpolicy.DescribePreparedInputSource(sourceID)
if !ok {
if sourceID == artifactpolicy.SourceInputGlossary {
return PreparedInputIdentity{}, fmt.Errorf("retired prepared input source %q: select an explicit narratio.input.glossary.<party|campaign|setting|spells> source", sourceID)
}
return PreparedInputIdentity{}, fmt.Errorf("unsupported prepared input source %q", sourceID)
}