Add campaign and session glossary selections
This commit is contained in:
@@ -295,7 +295,7 @@ func setupPolishEnv(t *testing.T) (*Env, *manifest.Manifest) {
|
||||
Session: &config.SessionConfig{
|
||||
SessionID: "2026-05-03",
|
||||
Inputs: config.SessionInputsConfig{
|
||||
GlossaryFile: "./glossary.yml",
|
||||
GlossaryFile: new("./glossary.yml"),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ func (prepareStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*S
|
||||
|
||||
speakersInput := stableInputSource(env.Config.StableInputs.SpeakersFile, env.Config.Session.Inputs.SpeakersFile, sessionSrc)
|
||||
autocorrectInput := stableInputSource(env.Config.StableInputs.AutocorrectFile, env.Config.Session.Inputs.AutocorrectFile, sessionSrc)
|
||||
glossaryInput := stableInputSource(env.Config.StableInputs.GlossaryFile, env.Config.Session.Inputs.GlossaryFile, sessionSrc)
|
||||
glossaryInput := stableInputSource(env.Config.StableInputs.GlossaryFile, config.OptionalString(env.Config.Session.Inputs.GlossaryFile), sessionSrc)
|
||||
spellCatalogInput := stableInputSource(env.Config.StableInputs.SpellCatalogFile, env.Config.Session.Inputs.SpellCatalogFile, sessionSrc)
|
||||
|
||||
speakersSrc, err := resolveConfigRelativePath(speakersInput)
|
||||
|
||||
@@ -104,7 +104,7 @@ func currentPrepareSourceInputs(ctx context.Context, env *Env, m *manifest.Manif
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("glossary prepared-input descriptor is unavailable")
|
||||
}
|
||||
if err := appendFile(glossary.ManifestKind, cfg.StableInputs.GlossaryFile, cfg.Session.Inputs.GlossaryFile); err != nil {
|
||||
if err := appendFile(glossary.ManifestKind, cfg.StableInputs.GlossaryFile, config.OptionalString(cfg.Session.Inputs.GlossaryFile)); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
spellCatalog, ok := artifactpolicy.DescribePreparedInputSource(artifactpolicy.SourceInputSpellCatalog)
|
||||
|
||||
@@ -152,7 +152,7 @@ func prepareStableInputSemantics(cfg *config.Config) []prepareStableInputSelecti
|
||||
return []prepareStableInputSelection{
|
||||
prepareStableInput("speakers", stable.SpeakersFile, cfg.Session.Inputs.SpeakersFile),
|
||||
prepareStableInput("autocorrect", stable.AutocorrectFile, cfg.Session.Inputs.AutocorrectFile),
|
||||
prepareStableInput("glossary", stable.GlossaryFile, cfg.Session.Inputs.GlossaryFile),
|
||||
prepareStableInput("glossary", stable.GlossaryFile, config.OptionalString(cfg.Session.Inputs.GlossaryFile)),
|
||||
prepareStableInput("party", stable.PartyFile, ""),
|
||||
prepareStableInput("spell_catalog", stable.SpellCatalogFile, cfg.Session.Inputs.SpellCatalogFile),
|
||||
}
|
||||
|
||||
@@ -462,7 +462,7 @@ func setupTranscribeEnv(t *testing.T, audioFiles []string) (*Env, *manifest.Mani
|
||||
AudioDir: "./audio",
|
||||
SpeakersFile: "./speakers.yml",
|
||||
AutocorrectFile: "./autocorrect.yml",
|
||||
GlossaryFile: "./glossary.yml",
|
||||
GlossaryFile: new("./glossary.yml"),
|
||||
},
|
||||
},
|
||||
StableInputs: config.ResolvedStableInputs{
|
||||
|
||||
Reference in New Issue
Block a user