45 lines
1.1 KiB
Go
45 lines
1.1 KiB
Go
// Package audita declares the adapter contract for transcript polishing.
|
|
package audita
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
// Runner is the adapter boundary for audita polish invocations.
|
|
type Runner interface {
|
|
Run(ctx context.Context, req PolishRequest) (PolishResult, error)
|
|
}
|
|
|
|
// PolishRequest describes an Audita invocation.
|
|
type PolishRequest struct {
|
|
GeneratedConfigPath string
|
|
MergedTranscriptPath string
|
|
OutputProcessedPath string
|
|
GlossaryFiles []string
|
|
ReportDir string
|
|
WorkDir string
|
|
StdoutLogPath string
|
|
StderrLogPath string
|
|
}
|
|
|
|
// ReportBundle contains optional reports in the requested report directory.
|
|
type ReportBundle struct {
|
|
ErrorsPath string
|
|
RecoveriesPath string
|
|
OverviewPath string
|
|
}
|
|
|
|
// PolishResult describes a polish output and available diagnostics.
|
|
type PolishResult struct {
|
|
ProcessedTranscriptPath string
|
|
Reports ReportBundle
|
|
StdoutLogPath string
|
|
StderrLogPath string
|
|
GeneratedConfigPath string
|
|
ExitCode int
|
|
Duration time.Duration
|
|
InvokedBinary string
|
|
Metadata map[string]any
|
|
}
|