clawfile

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(result *ParseResult, runner *RunnerProvenance) (string, error)

Types

type ClawConfig

type ClawConfig struct {
	ClawType    string
	Agent       string
	Models      map[string]string
	Cllama      []string
	Persona     string
	Handles     []string
	Surfaces    []Surface
	Skills      []string
	Invocations []Invocation
	Privileges  map[string]string
	Configures  []string
	Tracks      []string
}

ClawConfig stores Claw-specific directives parsed from a Clawfile.

func NewClawConfig

func NewClawConfig() *ClawConfig

type Invocation

type Invocation struct {
	Schedule string
	Command  string
}

type ParseResult

type ParseResult struct {
	Config      *ClawConfig
	DockerNodes []*parser.Node
}

func Parse

func Parse(r io.Reader) (*ParseResult, error)

type RunnerProvenance added in v0.10.0

type RunnerProvenance struct {
	DriverName string
	Alias      string
	ImageRef   string
	BuiltRef   string
	VersionTag string
	ImageID    string
	RecipeSHA  string
}

type Surface

type Surface struct {
	Raw        string
	Scheme     string
	Target     string
	AccessMode string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL