Define adapter interfaces and fake implementations
This commit is contained in:
@@ -3,18 +3,24 @@ package analyzer
|
||||
|
||||
import "context"
|
||||
|
||||
// Runner is a placeholder adapter interface for session artifact generation.
|
||||
// Runner is the adapter boundary for analyzer invocations.
|
||||
type Runner interface {
|
||||
Run(ctx context.Context, req AnalysisRequest) (AnalysisResult, error)
|
||||
Run(ctx context.Context, req AnalyzeRequest) (AnalyzeResult, error)
|
||||
}
|
||||
|
||||
// AnalysisRequest is a placeholder analyzer input.
|
||||
type AnalysisRequest struct {
|
||||
// AnalyzeRequest describes one analyzer artifact generation request.
|
||||
type AnalyzeRequest struct {
|
||||
ArtifactType string
|
||||
ProcessedTranscriptPath string
|
||||
OutputDir string
|
||||
ContextReferences []string
|
||||
OutputPath string
|
||||
GeneratedConfigPath string
|
||||
StdoutLogPath string
|
||||
StderrLogPath string
|
||||
}
|
||||
|
||||
// AnalysisResult is a placeholder analyzer output.
|
||||
type AnalysisResult struct {
|
||||
ArtifactPaths []string
|
||||
// AnalyzeResult describes analyzer output.
|
||||
type AnalyzeResult struct {
|
||||
ArtifactPath string
|
||||
Metadata map[string]any
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user