Versions in this module Expand all Collapse all v0 v0.3.0 Aug 25, 2026 v0.2.0 Aug 24, 2026 Changes in this version + func FormatTree(err error) string + func HintOf(err error) string + func WithAttrs(err error, attrs ...Attr) error + func WithHint(err error, text string) error + type Attr struct + Key string + Value any + func AttrsOf(err error) []Attr v0.1.0 Aug 23, 2026 Changes in this version + const DefaultEnv + var AllKinds = []Kind + var AllScopes = []Scope + var CurrentVersion = MustParseVersion("0.1.0") + var EcosystemVersions = map[ModuleName]Version + var Workloads = []Workload + func CheckEcosystemCompatibility(required, actual map[ModuleName]Version) error + func FormatStack(frames []StackFrame) string + func IsOptIn(kind Kind, imported []string) bool + func ParseRequirementID(s string) error + func ValidateKrewireYamlPath(path string) error + func WithStack(err error) error + type DomainEvent struct + At time.Time + Payload any + Type string + func NewDomainEvent(typ string, payload any) DomainEvent + type Env string + const EnvLocal + const EnvProduction + const EnvTesting + func Envs() []Env + func ParseEnv(s string) (Env, error) + func (e Env) String() string + type Error struct + Code ExitCode + Message string + func FailureError(message string) *Error + func NewError(message string, code ExitCode) *Error + func UsageError(message string) *Error + func (e *Error) Error() string + func (e *Error) ExitCode() ExitCode + type ExitCode int + const ExitCodeFailure + const ExitCodeSuccess + const ExitCodeUsage + func ExitCodeFromInt(code int) ExitCode + func (c ExitCode) Int() int + type Kind string + const KindApp + const KindBook + const KindCLI + const KindInfra + const KindKernel + const KindService + const KindSite + const KindWorker + func ParseKind(s string) (Kind, error) + func (k Kind) IsValid() bool + type ModuleName string + const ModuleDocs + const ModuleFramework + const ModuleGuild + const ModuleInternal + const ModuleKrewire + const ModuleLanding + const ModuleLibs + const ModuleMdbind + type Project struct + ConfigPath string + Kind Kind + ModulePath string + Name string + func (p Project) Validate() error + type RequirementID string + type Scope string + const ScopeDomain + const ScopeFunc + const ScopeModule + const ScopePackage + const ScopeService + const ScopeWorkspace + func ParseScope(s string) (Scope, error) + func (s Scope) IsValid() bool + func (s Scope) Less(other Scope) bool + func (s Scope) Level() int + type SpecID string + func ParseSpecID(s string) (SpecID, error) + func (id SpecID) Code() string + func (id SpecID) Project() string + func (id SpecID) Scope() string + type StackFrame struct + File string + Func string + Line int + func StackOf(err error) []StackFrame + func (f StackFrame) String() string + type Status string + const StatusPlanned + const StatusShipped + type Version struct + Build string + Major int + Minor int + Patch int + PreRelease string + func MustParseVersion(s string) Version + func ParseVersion(s string) (Version, error) + func (v Version) Compare(other Version) int + func (v Version) Equal(other Version) bool + func (v Version) IsCompatible(required Version) bool + func (v Version) Less(other Version) bool + func (v Version) String() string + type Versioned interface + Version func() Version + type Workload struct + Kind Kind + Package string + SpecID string + Status Status + Title string + func WorkloadFor(k Kind) (Workload, bool)