Versions in this module Expand all Collapse all v0 v0.8.1 Aug 26, 2026 v0.8.0 Aug 25, 2026 v0.7.0 Aug 14, 2026 Changes in this version + const EnvBundleDir + const EnvUnitFile + const EventPrefix + const EventVersion + const MaxDetailLen + const MaxEntryBytes + const MaxOutputLen + const SSEEventEnd + const SSEEventEvent + const SSEEventUnit + const SubmissionVersion + const TypeBaselineDone + const TypeBaselineStarted + const TypeFatal + const TypeItemDone + const TypeItemStarted + const TypeResult + const TypeUnitFinished + const TypeUnitSkipped + const TypeUnitStarted + const TypeWarn + var ErrLoginExpired = errors.New("not logged in (or the session expired): run `evolve login`") + func ApplyEvent(rep run.Reporter, ev Event) + func Bearer(ctx context.Context, store *Store, remoteURL string, info *AuthInfo) (string, error) + func Login(ctx context.Context, store *Store, remoteURL string, noBrowser bool, ...) error + func MarshalEvalEntry(e *results.EvalEntry) (json.RawMessage, error) + func MarshalTriggerEntry(e *results.TriggerEntry) (json.RawMessage, error) + func NormalizeRemote(u string) string + func ReadBundle(b *Bundle) (map[string]string, error) + func Sweep(ctx context.Context, opts SweepOptions) (failed bool, err error) + func Truncate(s string, max int) string + type AuthInfo struct + ClientID string + Issuer string + Mode string + Scopes []string + func FetchAuthInfo(ctx context.Context, remoteURL string) (*AuthInfo, error) + type Bundle struct + Data []byte + Digest string + func EvalsBundle(set layout.EvalSet) (*Bundle, error) + func TriggersBundle(p layout.Plugin) (*Bundle, error) + type CaseStatus struct + ID string + Passed bool + type Client struct + BaseURL string + HTTPClient *http.Client + Info *AuthInfo + Store *Store + func NewClient(ctx context.Context, store *Store, baseURL string) (*Client, error) + func (c *Client) Cancel(ctx context.Context, name string) error + func (c *Client) Events(ctx context.Context, name string, onUnit func(UnitStatusWire), ...) (*EvaluationStatusWire, error) + func (c *Client) HasWorkspace(ctx context.Context, digest string) (bool, error) + func (c *Client) Status(ctx context.Context, name string) (*EvaluationStatusWire, error) + func (c *Client) Submit(ctx context.Context, sub *Submission) (*SubmissionResponse, error) + func (c *Client) UploadWorkspace(ctx context.Context, digest string, bundle []byte) error + type Credential struct + IDToken string + IDTokenExpiry time.Time + Token *oauth2.Token + type EvaluationStatusWire struct + Name string + Phase string + Submitter string + Units []UnitStatusWire + UnitsComplete int + UnitsFailed int + UnitsTotal int + type Event struct + Error string + Item *ItemEvent + Msg string + Result *UnitResult + Sum *UnitSummary + Type string + Unit *UnitRef + V int + func Decode(line []byte) (Event, bool) + func (e Event) Encode() (string, error) + type EventReporter struct + func NewEventReporter(w io.Writer, plugin string) *EventReporter + func (r *EventReporter) BaselineDone(u plan.UnitRef, item run.ItemResult) + func (r *EventReporter) BaselineStarted(u plan.UnitRef, item run.ItemStart) + func (r *EventReporter) Emit(ev Event) + func (r *EventReporter) ItemDone(u plan.UnitRef, item run.ItemResult) + func (r *EventReporter) ItemStarted(u plan.UnitRef, item run.ItemStart) + func (r *EventReporter) UnitFinished(u plan.UnitRef, sum run.UnitSummary, _ string) + func (r *EventReporter) UnitSkipped(u plan.UnitRef, reason string) + func (r *EventReporter) UnitStarted(u plan.UnitRef, total, runs int, mode plan.Mode) + func (r *EventReporter) Warn(format string, a ...any) + type EventWire struct + Event Event + Unit string + type HarnessOption struct + Harness string + ModelID string + type ItemEvent struct + Detail string + Index int + Label string + Metrics *ItemMetrics + Mode string + Output string + Runs int + Status string + Total int + type ItemMetrics struct + AssertPassed *int + AssertTotal *int + AvgRunSeconds *float64 + CacheCreationTokens *int + CacheReadTokens *int + CostUSD *float64 + Hits *int + InputTokens *int + OutputTokens *int + Runs *int + type JudgeSpec struct + Model string + ModelID string + type ResultSummary struct + Cases []CaseStatus + CasesErrored int + CasesFailed int + CasesPassed int + ElapsedMS int64 + Outcome string + TokenUsage TokenUsage + type Store struct + func NewStore() (*Store, error) + func NewStoreAt(path string) *Store + func (s *Store) Delete(remote string) error + func (s *Store) Load(remote string) (*Credential, error) + func (s *Store) Save(remote string, cred *Credential) error + type Submission struct + TTLSeconds int64 + Units []UnitSpec + Version string + type SubmissionError struct + Error string + MissingWorkspaces []string + type SubmissionResponse struct + Name string + Units []string + type SweepOptions struct + Client *Client + ClientVersion string + EvalFilter string + EvalTimeout time.Duration + Judge model.Model + Runs int + Tiers plan.Tiers + TriggerTimeout time.Duration + type TokenUsage struct + CacheCreationTokens int64 + CacheReadTokens int64 + CostUSD float64 + InputTokens int64 + OutputTokens int64 + type UnitRef struct + Key string + Kind string + Plugin string + Skill string + type UnitResult struct + Entry json.RawMessage + Failed bool + Harness string + Model string + Summary ResultSummary + Tier int + type UnitSpec struct + Baseline bool + Cases []string + ClientVersion string + Harnesses []HarnessOption + Jobs int + Judge *JudgeSpec + MaxTurns int + Model string + Plugin string + PriorEntry json.RawMessage + RunsPerQuery int + Skill string + Tier int + TimeoutMS int64 + Workspace WorkspaceRef + type UnitStatusWire struct + Detail string + Harness string + Index int + Name string + Phase string + Reason string + Result *UnitResult + Summary *ResultSummary + type UnitSummary struct + AvgRunSeconds *float64 + Errored int + Executed bool + Failed int + Passed int + Total int + type WorkspaceRef struct + Digest string + SizeBytes int64