2026-05-02 10:37:38 -05:00
|
|
|
// Package audita declares the adapter contract for transcript polishing.
|
|
|
|
|
package audita
|
|
|
|
|
|
2026-05-04 07:56:35 -05:00
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
2026-05-02 10:37:38 -05:00
|
|
|
|
2026-05-02 11:16:27 -05:00
|
|
|
// Runner is the adapter boundary for audita polish invocations.
|
2026-05-02 10:37:38 -05:00
|
|
|
type Runner interface {
|
|
|
|
|
Run(ctx context.Context, req PolishRequest) (PolishResult, error)
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-02 11:16:27 -05:00
|
|
|
// PolishRequest describes an audita invocation.
|
2026-05-02 10:37:38 -05:00
|
|
|
type PolishRequest struct {
|
2026-08-10 22:43:22 +00:00
|
|
|
GeneratedConfigPath string
|
|
|
|
|
MergedTranscriptPath string
|
|
|
|
|
OutputProcessedPath string
|
|
|
|
|
GlossaryPath string
|
|
|
|
|
ReportPath string
|
|
|
|
|
WorkDir string
|
|
|
|
|
Modules []string
|
|
|
|
|
StdoutLogPath string
|
|
|
|
|
StderrLogPath string
|
2026-05-02 10:37:38 -05:00
|
|
|
}
|
|
|
|
|
|
2026-05-02 11:16:27 -05:00
|
|
|
// PolishResult describes a polish output.
|
2026-05-02 10:37:38 -05:00
|
|
|
type PolishResult struct {
|
2026-05-02 11:16:27 -05:00
|
|
|
ProcessedTranscriptPath string
|
2026-05-04 07:56:35 -05:00
|
|
|
ReportPath string
|
|
|
|
|
WorkDir string
|
|
|
|
|
StdoutLogPath string
|
|
|
|
|
StderrLogPath string
|
|
|
|
|
GeneratedConfigPath string
|
|
|
|
|
ExitCode int
|
|
|
|
|
Duration time.Duration
|
|
|
|
|
InvokedBinary string
|
2026-05-02 11:16:27 -05:00
|
|
|
Metadata map[string]any
|
2026-05-02 10:37:38 -05:00
|
|
|
}
|