Versions in this module Expand all Collapse all v0 v0.4.0 Aug 13, 2026 Changes in this version + const GlobalModEnvVar + var ErrGlobalMod = errors.New("host-wide clawk.mod") + var ErrNoGlobalMod = errors.New("no host-wide clawk.mod") + var GlobalDisabled bool + func GlobalModPath() (string, error) + type Global struct + Path string + Policies []PolicyDef + ProfileMatched bool + Template *Template + func LoadGlobal() (*Global, error) + func LoadGlobalWithProfile(profile string) (*Global, error) + type MCPSpec struct + Col int + Command []string + Env []string + Headers []string + Line int + Name string + Transport string + URL string + type SerialSpec struct + Col int + GuestName string + HostPath string + Line int type Template + MCP []MCPSpec + Serials []SerialSpec + SwapMiB int64 + func (t *Template) Clone() *Template type Workspace + GlobalPath string + GlobalProfileMatched bool v0.3.0 Aug 5, 2026 Changes in this version type Template + DiskMiB uint64 + ReverseForwards []string type TokenKind + const TokEquals v0.2.0 Jul 13, 2026 v0.1.0 Jul 7, 2026 Changes in this version + const FormatVersion + const RepoFileName + const RetiredWorkspaceFileName + var ErrAlreadyTyped = errors.New("file already uses the typed-block grammar") + var ErrNoWorkspace = errors.New(...) + var ErrSkipResolution = errors.New("skip resolution") + func ExpandPath(p string) (string, error) + func FindGitRepo(dir string) (string, error) + func IsResolvedVersion(v string) bool + func IsTidyInputVersion(v string) bool + func MigrateFlat(src string) (string, error) + func RetiredWorkspaceFileError(path string) error + type AgentDoc struct + Path string + Text string + type File struct + FormatVersion int + Namespaces []NamespaceDef + Policies []PolicyDef + Sandbox *Template + func ParseFileString(src string) (*File, error) + type FileSpec struct + Col int + GuestPath string + HostPath string + Line int + Mode fs.FileMode + type NamespaceDef struct + Name string + Template *Template + type PolicyDef struct + AllowDomains []string + AllowIPs []string + Col int + DenyDomains []string + DenyIPs []string + Line int + Name string + Refresh time.Duration + Sources []string + type Repo struct + Clawkfile *Template + Name string + Path string + RepoPath string + type ShareSpec struct + Col int + GuestPath string + HostPath string + Line int + ReadOnly bool + type SkillKind int + const SkillKindDistributed + const SkillKindLocalHome + const SkillKindLocalWorkspace + const SkillKindUnknown + func ClassifySkillPath(path string) SkillKind + func (k SkillKind) String() string + type SkillRef struct + Col int + Kind SkillKind + Line int + Path string + Version string + VersionCol int + VersionLine int + type SkillResolver interface + Resolve func(SkillRef) (string, error) + var StubRemoteResolver SkillResolver = SkillResolverFunc(func(s SkillRef) (string, error) { ... }) + type SkillResolverFunc func(SkillRef) (string, error) + func (f SkillResolverFunc) Resolve(s SkillRef) (string, error) + type SkillRewrite struct + InsertedNew bool + Line int + NewVersion string + OldVersion string + Path string + type Template struct + CPU uint + DenyDomains []string + DenyIPs []string + DenySources []string + Domains []string + Env []string + Files []FileSpec + Forwards []string + IPs []string + IdleTimeoutSec int64 + Image string + Includes []string + Instructions []AgentDoc + Kernel string + Memory []AgentDoc + MemoryMaxMiB uint64 + MemoryMiB uint64 + Name string + Nested bool + OnCreate []string + OnDown []string + OnEnter []string + OnUp []string + Provider string + SandboxName string + Shares []ShareSpec + Skills []SkillRef + Use []string + func ParseString(src string) (*Template, error) + func (t *Template) Merge(over *Template) + type TidyResult struct + Rewrites []SkillRewrite + Source string + func RewriteSkillVersions(src string, tmpl *Template, resolver SkillResolver) (TidyResult, error) + type Token struct + Col int + Kind TokenKind + Line int + Val string + func Lex(src string) ([]Token, error) + func (t Token) String() string + type TokenKind int + const TokEOF + const TokIdent + const TokLParen + const TokNewline + const TokRParen + const TokString + func (k TokenKind) String() string + type Workspace struct + File *Template + Policies []PolicyDef + Repos []Repo + Root string + func FindWorkspace(dir string) (*Workspace, error) + func FindWorkspaceWithProfile(dir, profile string) (*Workspace, error) + func LoadClawkfilePathWithProfile(path, profile string) (*Workspace, error) + func LoadStandaloneClawkfile(dir string) (*Workspace, error) + func LoadStandaloneClawkfileWithProfile(dir, profile string) (*Workspace, error) + func LoadWorkspace(path string) (*Workspace, error) + func LoadWorkspaceWithProfile(path, profile string) (*Workspace, error) + func WorkspaceFromGitRepo(dir string) (*Workspace, error) + func (w *Workspace) FilterRepos(only []string) (*Workspace, error)