runtime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractServiceSkill

func ExtractServiceSkill(imageRef string, skillEmitPath string) ([]byte, error)

ExtractServiceSkill extracts a skill file from a service image using Docker. Creates a temporary container (without starting it), copies the file out, then removes the container.

func GenerateServiceSkillFallback

func GenerateServiceSkillFallback(target string, ports []string) string

GenerateServiceSkillFallback produces a markdown skill file describing how to reach a service surface when no service-emitted skill exists.

func ResolveSkills

func ResolveSkills(baseDir string, paths []string) ([]driver.ResolvedSkill, error)

ResolveSkills validates that all skill files exist, checks for path traversal, enforces regular files, detects duplicate basenames, and returns resolved skills. Fail-closed.

Types

type ContractMount

type ContractMount struct {
	HostPath      string
	ContainerPath string
	ReadOnly      bool
}

ContractMount represents a verified agent contract bind mount.

func ResolveContract

func ResolveContract(baseDir string, agentFilename string) (*ContractMount, error)

ResolveContract validates that the agent file exists and returns the mount spec. Fail-closed: missing or empty filename is a hard error.

Jump to

Keyboard shortcuts

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