Documentation
¶
Index ¶
- Constants
- Variables
- func KeyExists(keysDir string) bool
- func LoadOrCreateKey(keysDir string) (ed25519.PrivateKey, bool, error)
- func ModelID(m string) string
- func PublicKey(key ed25519.PrivateKey) ed25519.PublicKey
- func Show(repo, commit string) ([]byte, error)
- func Sign(n Note, key ed25519.PrivateKey) ([]byte, error)
- func Write(repo, commit string, note []byte) error
- type ATContributor
- type ATConversation
- type ATFile
- type ATRange
- type ATRecord
- type ATTool
- type ATVCS
- type Note
- type NoteFlags
- type NoteHunk
- type NoteReview
- type NoteSession
- type Suppressed
- type TraceInput
Constants ¶
View Source
const Ref = "refs/notes/xis"
Variables ¶
View Source
var ErrBadSignature = errors.New("signature does not match the note")
Functions ¶
func LoadOrCreateKey ¶
func LoadOrCreateKey(keysDir string) (ed25519.PrivateKey, bool, error)
Types ¶
type ATContributor ¶
type ATConversation ¶
type ATConversation struct {
URL string `json:"url,omitempty"`
Contributor *ATContributor `json:"contributor,omitempty"`
Ranges []ATRange `json:"ranges"`
}
type ATFile ¶
type ATFile struct {
Path string `json:"path"`
Conversations []ATConversation `json:"conversations"`
}
type ATRecord ¶
type ATRecord struct {
Version string `json:"version"`
ID string `json:"id"`
Timestamp string `json:"timestamp"`
VCS *ATVCS `json:"vcs,omitempty"`
Tool *ATTool `json:"tool,omitempty"`
Files []ATFile `json:"files"`
Metadata map[string]any `json:"metadata,omitempty"`
}
Agent Trace v0.1.0 (agent-trace.dev).
func AgentTrace ¶
func AgentTrace(in TraceInput) ATRecord
type Note ¶
type Note struct {
V int `json:"v"`
Sessions []NoteSession `json:"sessions"`
Hunks []NoteHunk `json:"hunks"`
Flags NoteFlags `json:"flags"`
Review NoteReview `json:"review"`
XisVersion string `json:"xis_version"`
CreatedAt string `json:"created_at"`
Sig string `json:"sig,omitempty"`
PubKey string `json:"pubkey"`
}
Note holds only hashes, counts and IDs: never transcript text, prompts or code.
type NoteFlags ¶
type NoteFlags struct {
High int `json:"high"`
Medium int `json:"medium"`
Low int `json:"low"`
Info int `json:"info"`
Suppressed []Suppressed `json:"suppressed"`
}
type NoteReview ¶
type NoteSession ¶
type Suppressed ¶
Click to show internal directories.
Click to hide internal directories.