67 lines
1.8 KiB
Go
67 lines
1.8 KiB
Go
// Package seriatim declares the adapter contract for transcript merge/trim execution.
|
|
package seriatim
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
// TODO: implement a real Seriatim subprocess adapter.
|
|
|
|
// Runner is the adapter boundary for seriatim merge/trim invocations.
|
|
type Runner interface {
|
|
Run(ctx context.Context, req MergeRequest) (MergeResult, error)
|
|
Trim(ctx context.Context, req TrimRequest) (TrimResult, error)
|
|
}
|
|
|
|
// MergeRequest describes a seriatim merge invocation.
|
|
type MergeRequest struct {
|
|
GeneratedConfigPath string
|
|
InputTranscriptPaths []string
|
|
OutputMergedTranscriptPath string
|
|
ReportPath string
|
|
SpeakersPath string
|
|
AutocorrectPath string
|
|
StdoutLogPath string
|
|
StderrLogPath string
|
|
}
|
|
|
|
// MergeResult describes a merge output.
|
|
type MergeResult struct {
|
|
MergedTranscriptPath string
|
|
ReportPath string
|
|
StdoutLogPath string
|
|
StderrLogPath string
|
|
GeneratedConfigPath string
|
|
ExitCode int
|
|
Duration time.Duration
|
|
InvokedBinary string
|
|
OutputSchema string
|
|
Metadata map[string]any
|
|
}
|
|
|
|
// TrimRequest describes a seriatim trim invocation.
|
|
type TrimRequest struct {
|
|
Binary string
|
|
InputTranscriptPath string
|
|
OutputTrimmedPath string
|
|
KeepSelector string
|
|
StdoutLogPath string
|
|
StderrLogPath string
|
|
GeneratedConfigPath string
|
|
Timeout time.Duration
|
|
}
|
|
|
|
// TrimResult describes a trim output.
|
|
type TrimResult struct {
|
|
OutputTrimmedPath string
|
|
StdoutLogPath string
|
|
StderrLogPath string
|
|
GeneratedConfigPath string
|
|
ExitCode int
|
|
Duration time.Duration
|
|
InvokedBinary string
|
|
KeepSelector string
|
|
Metadata map[string]any
|
|
}
|