Define adapter interfaces and fake implementations

This commit is contained in:
2026-05-02 11:16:27 -05:00
parent 78e7e4f41b
commit 2854da48c2
24 changed files with 876 additions and 73 deletions

View File

@@ -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
}