// Package notarius declares the adapter contract for Notarius CLI invocations. package notarius import ( "context" "time" configkit "go.maximumdirect.net/configkit" ) // Runner is the adapter boundary for a complete Notarius pipeline invocation. type Runner interface { Run(ctx context.Context, req RunRequest) (RunResult, error) } // ReferenceBinding maps one normalized Notarius selector to an absolute // external reference path. type ReferenceBinding struct { Selector string Path string } // RunRequest contains the resolved inputs and diagnostic destinations for one invocation. type RunRequest struct { Binary string // Credentials are already-resolved environment references selected for Notarius. Credentials []configkit.Secret ConfigOverlay *string ConfigPath string PipelineID string InputPath string OutputRoot string WorkingDirectory string ReportPath string LogPath string Timeout time.Duration Cache *string Debug bool DebugDirectory string References []ReferenceBinding } // RunResult describes a successfully decoded native completion. type RunResult struct { Report CompletionReport BundleRoot string ReportPath string LogPath string ExitCode int Duration time.Duration } // CompletionReport contains facts reported by a successfully completed run. type CompletionReport struct { Pipeline string ArtifactCount int OutputDirectory string DebugDirectory string FallbackCount int }