Documentation
¶
Overview ¶
Package pipeline provides a sequential stage-based execution pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildContext ¶
type BuildContext struct {
Opts PipelineOptions
Config *types.ForgeConfig
Spec *agentspec.AgentSpec
GeneratedFiles map[string]string // relPath -> absPath
Warnings []string
Verbose bool
PluginConfig *plugins.AgentConfig // Set by FrameworkAdapterStage
WrapperFile string // Relative path to generated wrapper (empty = no wrapper)
// Container packaging extensions
DevMode bool
ProdMode bool
EgressResolved any // *egress.EgressConfig (avoid import cycle)
SkillRequirements any // *skills.AggregatedRequirements (avoid import cycle)
SkillEntries any // []contract.SkillEntry (avoid import cycle)
SecurityAudit any // *analyzer.AuditReport (avoid import cycle)
SkillsCount int
ToolCategoryCounts map[string]int
// SkillPipRequirements holds container-relative paths to skill
// requirements.txt files (e.g. "skills/pdf-tools/requirements.txt")
// discovered under skills/. Each becomes a `pip install -r` step in the
// generated Dockerfile, and their presence forces python3/pip into the
// bin manifest so the interpreter is provisioned (#405 D1).
SkillPipRequirements []string
// Bin resolution for smart Dockerfile generation
BinManifest any // *packaging.BinManifest (avoid import cycle)
PreferAlpine bool
PreferSlim bool
// ForgeCLIVersion is the version of the forge CLI binary (e.g. "v0.9.0").
// Used to pull the correct release when framework is "forge".
ForgeCLIVersion string
// LocalBins maps binary name → host file path (from --local-bin flags).
LocalBins map[string]string
}
BuildContext carries all state through the build pipeline.
func NewBuildContext ¶
func NewBuildContext(opts PipelineOptions) *BuildContext
NewBuildContext creates a BuildContext with the given options and initialized maps.
func (*BuildContext) AddFile ¶
func (bc *BuildContext) AddFile(relPath, absPath string)
AddFile records a generated file in the build context.
func (*BuildContext) AddWarning ¶
func (bc *BuildContext) AddWarning(msg string)
AddWarning appends a warning message to the build context.
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline executes a sequence of stages in order.
Click to show internal directories.
Click to hide internal directories.