codearmy

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStateNotFound = errors.New("code_army state not found")

Functions

This section is empty.

Types

type HistoryRecord

type HistoryRecord struct {
	At       time.Time `json:"at"`
	Phase    string    `json:"phase"`
	Summary  string    `json:"summary"`
	Decision string    `json:"decision,omitempty"`
}

type Inspector

type Inspector struct {
	// contains filtered or unexported fields
}

func NewInspector

func NewInspector(stateDir string) *Inspector

func (*Inspector) Get

func (i *Inspector) Get(sessionKey, stateKey string) (StateSnapshot, error)

func (*Inspector) List

func (i *Inspector) List(sessionKey string) ([]StateSnapshot, error)

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(stateDir string, backend llm.Backend, prompts *prompting.Loader) *Runner

type StateSnapshot

type StateSnapshot struct {
	Workflow       string          `json:"workflow"`
	SessionKey     string          `json:"session_key,omitempty"`
	StateKey       string          `json:"state_key"`
	TaskID         string          `json:"task_id,omitempty"`
	Phase          string          `json:"phase"`
	Iteration      int             `json:"iteration"`
	Objective      string          `json:"objective"`
	ManagerPlan    string          `json:"manager_plan,omitempty"`
	WorkerOutput   string          `json:"worker_output,omitempty"`
	ReviewerReport string          `json:"reviewer_report,omitempty"`
	LastDecision   string          `json:"last_decision,omitempty"`
	UpdatedAt      time.Time       `json:"updated_at"`
	History        []HistoryRecord `json:"history,omitempty"`
}

Jump to

Keyboard shortcuts

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