review

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Allowed

func Allowed(stateDir, hash string) bool

func Hash

func Hash(content string) string

func SessionKey

func SessionKey(runtime, sessionID, conversationID, workspace string) string

Types

type Record

type Record struct {
	ID            string    `json:"id"`
	Created       time.Time `json:"created"`
	Runtime       string    `json:"runtime"`
	SessionKey    string    `json:"session_key"`
	Workspace     string    `json:"workspace"`
	Tool          string    `json:"tool"`
	ToolInput     string    `json:"tool_input"`
	Score         float64   `json:"score"`
	Confidence    float64   `json:"confidence"`
	Reason        string    `json:"reason"`
	HeuristicHits []string  `json:"heuristic_hits,omitempty"`
	Excerpt       string    `json:"excerpt"`
	RawPointer    string    `json:"raw_pointer"`
	ContentSHA256 string    `json:"content_sha256"`
	SDLCRunID     string    `json:"sdlc_run_id,omitempty"`
	Status        string    `json:"status"`
	Note          string    `json:"note,omitempty"`
}

func Create

func Create(stateDir string, rec Record) (Record, error)

func Get

func Get(stateDir, id string) (Record, error)

func List

func List(stateDir string) ([]Record, error)

func Pending

func Pending(stateDir, sessionKey string) (Record, bool)

func PendingRun

func PendingRun(stateDir, runID string) (Record, bool)

func Resolve

func Resolve(stateDir, id, action, note string) (Record, error)

Jump to

Keyboard shortcuts

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