Documentation
¶
Overview ¶
Package state persists agentsync's last-applied hashes and marketplace/plugin pinning to ~/.agentsync/.state/targets.json.
Index ¶
Constants ¶
View Source
const SchemaVersion = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileEntry ¶
type FileEntry struct {
SHA256 string `json:"sha256"`
Mode uint32 `json:"mode"`
AppliedAt time.Time `json:"applied_at"`
SourceID string `json:"source_id"` // canonical file that produced this dest
}
FileEntry tracks one fully-managed destination file. Key format: "<agent>:<scope>:<project>:<dest_path>"
type KeyEntry ¶
type KeyEntry struct {
SHA256 string `json:"sha256"`
AppliedAt time.Time `json:"applied_at"`
SourceID string `json:"source_id"`
}
KeyEntry tracks one managed JSON-pointer-addressable key inside a shared destination file. Key format: "<agent>:<scope>:<project>:<file>:<json_pointer>"
type Marketplace ¶
type PluginEntry ¶
type Targets ¶
type Targets struct {
SchemaVersion int `json:"schema_version"`
Files map[string]FileEntry `json:"files,omitempty"`
Keys map[string]KeyEntry `json:"keys,omitempty"`
Marketplaces map[string]Marketplace `json:"marketplaces,omitempty"`
Plugins map[string]PluginEntry `json:"plugins,omitempty"`
}
Targets is the root state document.
Click to show internal directories.
Click to hide internal directories.