Versions in this module Expand all Collapse all v0 v0.1.1 Apr 17, 2026 v0.1.0 Apr 17, 2026 Changes in this version + func EnsureDefault(path, projectName string) (bool, error) + func Save(path string, contract *Contract) error + type AgentTarget struct + Header string + Instructions []string + MCPOutput string + Output string + type Bootstrap struct + Outputs []BootstrapOutput + Steps []BootstrapStep + type BootstrapOutput struct + Gitignore bool + Header string + Kind string + Mode string + Path string + type BootstrapStep struct + Description string + Name string + Optional bool + Run string + Shell string + func (s *BootstrapStep) UnmarshalYAML(node *yaml.Node) error + type Contract struct + Agents map[string]AgentTarget + Bootstrap Bootstrap + Doctor Doctor + Env EnvSpec + MCP MCPConfig + Policies Policies + Project Project + Run RunConfig + Runtimes []Runtime + Services []Service + Version int + func Default(projectName string) *Contract + func Load(path string) (*Contract, error) + func LoadProject() (*Contract, string, error) + func (c *Contract) AllEnvNames() []string + func (c *Contract) EffectiveAgentTarget(name string) (AgentTarget, bool) + func (c *Contract) Normalize() + func (c *Contract) Validate() *ValidationReport + type Doctor struct + Checks []DoctorCheck + type DoctorCheck struct + Name string + Required bool + Target string + Type string + type EnvSpec struct + Optional []EnvVar + Public []string + Required []EnvVar + type EnvVar struct + Description string + Name string + Source string + func (e *EnvVar) UnmarshalYAML(node *yaml.Node) error + type MCPConfig struct + Servers []MCPServer + type MCPServer struct + Args []string + Command string + Description string + Env []string + Name string + type Policies struct + BlockPatterns []string + RedactPaths []string + type Project struct + Name string + Slug string + Summary string + type RunConfig struct + Default string + Targets map[string]RunTarget + type RunTarget struct + Command string + Description string + type Runtime struct + Binary string + Name string + Required bool + VersionArg []string + func (r *Runtime) UnmarshalYAML(node *yaml.Node) error + type Service struct + Description string + Host string + Name string + Port int + Required bool + Start string + type ValidationReport struct + Errors []string + Warnings []string + func (r *ValidationReport) AddError(format string, args ...any) + func (r *ValidationReport) AddWarning(format string, args ...any) + func (r *ValidationReport) OK() bool