Documentation
¶
Overview ¶
Package cipipe generates CI/CD pipeline configurations tailored to a project's tech stack and cloop task plan. Supports GitHub Actions, GitLab CI, and CircleCI.
Index ¶
- func DefaultOutputPath(platform Platform) string
- func Generate(ctx context.Context, p provider.Provider, model string, platform Platform, ...) (string, error)
- func GeneratePrompt(platform Platform, stack TechStack, plan *pm.Plan) string
- func Write(path, content string) error
- type Platform
- type TechStack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultOutputPath ¶
DefaultOutputPath returns the default output file path for a given platform.
func Generate ¶
func Generate(ctx context.Context, p provider.Provider, model string, platform Platform, stack TechStack, plan *pm.Plan) (string, error)
Generate calls the AI provider with the GeneratePrompt and returns the pipeline YAML.
func GeneratePrompt ¶
GeneratePrompt builds the AI prompt that asks the provider to produce a CI YAML for the given platform, tech stack, and (optional) task plan.
Types ¶
type TechStack ¶
type TechStack struct {
// Go project signals
HasGoMod bool
GoModule string // module name from go.mod (e.g. "github.com/user/repo")
// Node/JS project signals
HasPackageJSON bool
PackageName string
HasNodeModules bool
HasYarnLock bool
// Python project signals
HasRequirementsTxt bool
HasPyprojectToml bool
HasSetupPy bool
// Docker signals
HasDockerfile bool
HasDockerCompose bool
// Build tool signals
HasMakefile bool
// CI signals (existing pipelines detected)
HasGitHubActions bool
HasGitLabCI bool
HasCircleCI bool
// Terraform / IaC
HasTerraform bool
}
TechStack describes the detected technologies in a project directory.
Click to show internal directories.
Click to hide internal directories.