101 lines
3.6 KiB
Go
101 lines
3.6 KiB
Go
package config
|
|
|
|
// Default filesystem locations for pipeline configuration lookup when --config
|
|
// is omitted. Order is highest to lowest precedence.
|
|
const (
|
|
DefaultPipelineConfigPathUsrLocal = "/usr/local/etc/narratio/pipeline.yml"
|
|
DefaultPipelineConfigPathEtc = "/etc/narratio/pipeline.yml"
|
|
DefaultSessionConfigPathLocal = "./session.yml"
|
|
DefaultSessionConfigPathUsrLocal = "/usr/local/etc/narratio/session.yml"
|
|
DefaultSessionConfigPathEtc = "/etc/narratio/session.yml"
|
|
DefaultS3AccessKeyIDEnv = "OBJECT_STORAGE_KEY_ID"
|
|
DefaultS3SecretAccessKeyEnv = "OBJECT_STORAGE_KEY"
|
|
DefaultStorageS3RootPrefix = "dnd"
|
|
DefaultWorkspaceRoot = "/var/lib/narratio"
|
|
DefaultSpoolRoot = "/var/spool/narratio"
|
|
|
|
DefaultWhisperXLanguage = "en"
|
|
DefaultWhisperXTimeout = "30m"
|
|
DefaultWhisperXRetryDelay = "2s"
|
|
DefaultWhisperXConcurrency = 2
|
|
DefaultWhisperXRetries = 3
|
|
|
|
DefaultSeriatimBinary = "seriatim"
|
|
DefaultSeriatimTimeout = "10m"
|
|
DefaultSeriatimOutputSchema = "seriatim-intermediate"
|
|
DefaultSeriatimCoalesceGap = 3.0
|
|
DefaultSeriatimReport = true
|
|
|
|
DefaultAuditaBinary = "audita"
|
|
DefaultAuditaTimeout = "3h"
|
|
DefaultAuditaReport = true
|
|
|
|
DefaultScriptoriumBinary = "scriptorium"
|
|
DefaultScriptoriumTimeout = "10m"
|
|
DefaultScriptoriumArtifactOutputRoot = "artifacts"
|
|
|
|
DefaultTrimBoundsTimeout = "10m"
|
|
DefaultTrimSeriatimReport = false
|
|
|
|
DefaultNormalizeOutputPath = "transcripts/normalized.json"
|
|
DefaultNormalizeOutputSchema = "seriatim-intermediate"
|
|
DefaultNormalizeReport = true
|
|
|
|
DefaultArchiveEnabled = true
|
|
DefaultArchiveUploadRun = true
|
|
|
|
PathWorkDirSegment = "work"
|
|
PathInputsDirSegment = "inputs"
|
|
PathAudioDirSegment = "audio"
|
|
PathTranscriptsSegment = "transcripts"
|
|
PathTranscriptsRaw = "transcripts/raw"
|
|
PathTranscriptsTrimmed = "transcripts/trimmed"
|
|
PathArtifactsDirSegment = "artifacts"
|
|
PathReportsDirSegment = "reports"
|
|
PathConfigDirSegment = "config"
|
|
PathLogsDirSegment = "logs"
|
|
PathCurrentDirSegment = "current"
|
|
PathRunsDirSegment = "runs"
|
|
PathManifestFile = "manifest.json"
|
|
PathLockFile = ".lock"
|
|
PathTranscriptMerged = "transcripts/merged.json"
|
|
PathTranscriptProcessed = "transcripts/processed.json"
|
|
PathTranscriptNormalized = "transcripts/normalized.json"
|
|
PathTranscriptTrimmed = "transcripts/trimmed.json"
|
|
|
|
S3CampaignsSegment = "campaigns"
|
|
S3SessionsSegment = "sessions"
|
|
S3RunsSegment = "runs"
|
|
S3CurrentSegment = "current"
|
|
S3ManifestFile = "manifest.json"
|
|
S3RunIDFile = "run_id.txt"
|
|
)
|
|
|
|
// DefaultArchivePromoteArtifacts defines the default archive promotion rules.
|
|
// Callers should copy this slice before mutating.
|
|
var DefaultArchivePromoteArtifacts = []ArchivePromotionRule{
|
|
{From: PathTranscriptTrimmed, To: PathTranscriptTrimmed},
|
|
{From: "artifacts/session_recap.md", To: "artifacts/session_recap.md"},
|
|
}
|
|
|
|
// DefaultPipelineConfigSearchPaths defines the default search order for
|
|
// pipeline.yml when callers do not provide an explicit path.
|
|
//
|
|
// Keep this in a variable so future defaults can be extended without changing
|
|
// call sites.
|
|
var DefaultPipelineConfigSearchPaths = []string{
|
|
DefaultPipelineConfigPathUsrLocal,
|
|
DefaultPipelineConfigPathEtc,
|
|
}
|
|
|
|
// DefaultSessionConfigSearchPaths defines the default search order for
|
|
// session.yml when callers do not provide an explicit path.
|
|
//
|
|
// Keep this in a variable so future defaults can be extended without changing
|
|
// call sites.
|
|
var DefaultSessionConfigSearchPaths = []string{
|
|
DefaultSessionConfigPathLocal,
|
|
DefaultSessionConfigPathUsrLocal,
|
|
DefaultSessionConfigPathEtc,
|
|
}
|