Adopt shared campaign and session configuration
This commit is contained in:
@@ -94,8 +94,9 @@ func ArtifactFamilyIdentity(catalog *ArtifactCatalog, key string) (family, chara
|
||||
|
||||
// CampaignsConfig configures the local campaign registry.
|
||||
type CampaignsConfig struct {
|
||||
Root string `yaml:"root" json:"root"`
|
||||
DefaultCampaignID string `yaml:"default_campaign_id" json:"default_campaign_id"`
|
||||
Root string `yaml:"root" json:"root"`
|
||||
DefaultCampaignID string `yaml:"default_campaign_id" json:"default_campaign_id"`
|
||||
SessionTemplateFile string `yaml:"session_template_file" json:"session_template_file"`
|
||||
}
|
||||
|
||||
// CampaignConfig contains stable campaign-level identity and input defaults.
|
||||
@@ -106,16 +107,47 @@ type CampaignConfig struct {
|
||||
resolution *documentResolution
|
||||
}
|
||||
|
||||
// CampaignDocument is the native shared campaign envelope and Narratio extension.
|
||||
type CampaignDocument struct {
|
||||
SchemaVersion string `yaml:"schema_version"`
|
||||
ID string `yaml:"id"`
|
||||
Name any `yaml:"name"`
|
||||
Description any `yaml:"description"`
|
||||
Setting any `yaml:"setting"`
|
||||
System any `yaml:"system"`
|
||||
References map[string]any `yaml:"references"`
|
||||
Narratio CampaignNarratio `yaml:"narratio"`
|
||||
Extensions map[string]any `yaml:",inline"`
|
||||
}
|
||||
|
||||
type CampaignNarratio struct {
|
||||
SessionTemplateFile string `yaml:"session_template_file"`
|
||||
Inputs CampaignNarratioInputs `yaml:"inputs"`
|
||||
}
|
||||
|
||||
type CampaignNarratioInputs struct {
|
||||
SpeakersFile string `yaml:"speakers_file"`
|
||||
GlossaryFile *string `yaml:"glossary_file"`
|
||||
Glossary map[string]any `yaml:"glossary"`
|
||||
Autocorrect []AutocorrectionRule `yaml:"autocorrect"`
|
||||
}
|
||||
|
||||
type AutocorrectionRule struct {
|
||||
Target string `yaml:"target" json:"target"`
|
||||
Match []string `yaml:"match" json:"match"`
|
||||
}
|
||||
|
||||
// CampaignInputsConfig contains stable campaign-level input file references.
|
||||
type CampaignInputsConfig struct {
|
||||
Setting *string `yaml:"setting" json:"setting"`
|
||||
System *string `yaml:"system" json:"system"`
|
||||
Glossary map[string]any `yaml:"glossary" json:"glossary"`
|
||||
SpeakersFile string `yaml:"speakers_file" json:"speakers_file"`
|
||||
AutocorrectFile string `yaml:"autocorrect_file" json:"autocorrect_file"`
|
||||
GlossaryFile *string `yaml:"glossary_file" json:"glossary_file"`
|
||||
PartyFile string `yaml:"party_file" json:"party_file"`
|
||||
SpellCatalogFile string `yaml:"spell_catalog_file" json:"spell_catalog_file"`
|
||||
Setting *string `yaml:"setting" json:"setting"`
|
||||
System *string `yaml:"system" json:"system"`
|
||||
Glossary map[string]any `yaml:"glossary" json:"glossary"`
|
||||
SpeakersFile string `yaml:"speakers_file" json:"speakers_file"`
|
||||
AutocorrectFile string `yaml:"autocorrect_file" json:"autocorrect_file"`
|
||||
GlossaryFile *string `yaml:"glossary_file" json:"glossary_file"`
|
||||
PartyFile string `yaml:"party_file" json:"party_file"`
|
||||
SpellCatalogFile string `yaml:"spell_catalog_file" json:"spell_catalog_file"`
|
||||
Autocorrect []AutocorrectionRule `yaml:"autocorrect" json:"autocorrect"`
|
||||
}
|
||||
|
||||
// SessionConfig contains per-session inputs and metadata.
|
||||
@@ -389,9 +421,10 @@ type SessionInputsConfig struct {
|
||||
AudioFiles []string `yaml:"audio_files" json:"audio_files"`
|
||||
AudioS3 *SessionAudioS3Input `yaml:"audio_s3" json:"audio_s3"`
|
||||
SpeakersFile string `yaml:"speakers_file" json:"speakers_file"`
|
||||
AutocorrectFile string `yaml:"autocorrect_file" json:"autocorrect_file"`
|
||||
AutocorrectFile string `yaml:"-" json:"-"`
|
||||
Autocorrect []AutocorrectionRule `yaml:"autocorrect" json:"autocorrect"`
|
||||
GlossaryFile *string `yaml:"glossary_file" json:"glossary_file"`
|
||||
SpellCatalogFile string `yaml:"spell_catalog_file" json:"spell_catalog_file"`
|
||||
SpellCatalogFile string `yaml:"-" json:"-"`
|
||||
}
|
||||
|
||||
// SessionAudioS3Input configures S3 session-audio input discovery.
|
||||
|
||||
Reference in New Issue
Block a user