Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultToolConfigs ¶
func DefaultToolConfigs(tt []Tool) map[string]config.ToolConfig
DefaultToolConfigs builds the map that config.DefaultConfig needs from a slice of tool definitions.
Types ¶
type Tool ¶
type Tool struct {
Name string // build target / config key (e.g. "claude")
Description string // human-readable (e.g. "Claude Code - Anthropic's CLI")
DockerfileStage string // Dockerfile fragment (FROM base AS <name> ...)
Command func(home string) []string // container entrypoint + args
DefaultConfig func() config.ToolConfig // default mounts/env/hooks
LatestVersion func(ctx context.Context) string // optional: returns latest version string for cache-busting
}
Tool defines a self-contained tool that can be run inside a silo container.
func (Tool) CachedVersion ¶
CachedVersion reads the cached version for this tool. Returns "" if no cache exists.
func (Tool) FetchVersion ¶
FetchVersion fetches the latest version and writes it to the cache. Intended to be called from a goroutine. Errors are silently ignored. If LatestVersion is nil the call is a no-op.
Click to show internal directories.
Click to hide internal directories.