archive

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const FormatVersion = "1"

FormatVersion is the current archive format version.

Variables

This section is empty.

Functions

func Write

func Write(path string, a *Archive) error

Write creates a ZIP archive at path from the given Archive.

Types

type Archive

type Archive struct {
	Manifest     *Manifest
	Instructions *agent.Instruction
	Skills       []agent.Skill
}

Archive represents the contents of an export archive.

func Read

func Read(path string) (*Archive, error)

Read loads an Archive from a ZIP file at path.

type Manifest

type Manifest struct {
	Version    string    `json:"version"`
	Agent      string    `json:"agent"`
	Scope      string    `json:"scope"`
	ExportedAt time.Time `json:"exported_at"`
	CASVersion string    `json:"cas_version,omitempty"`
}

Manifest holds metadata about an exported archive.

Jump to

Keyboard shortcuts

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