stateservice

package
v1.0.0-rc.13 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeLocale

func NormalizeLocale(value string) (string, error)

Types

type CLIConfigPatch

type CLIConfigPatch struct {
	DefaultModel                *string
	DefaultProvider             *string
	DefaultAltModel             *string
	DefaultAltProvider          *string
	DefaultAutocompleteModel    *string
	DefaultAutocompleteProvider *string
	DefaultMaxTokens            *string
	DefaultThink                *string
	DefaultChain                *string
	HITLPolicyName              *string
	TelemetryEnabled            *string
	UpdateCheck                 *string
	DefaultMissionAgent         *string
	DefaultMissionPolicy        *string
	UnofficialSignIns           *string
	Locale                      *string
}

type CLIConfigSnapshot

type CLIConfigSnapshot struct {
	DefaultModel                string
	DefaultProvider             string
	DefaultAltModel             string
	DefaultAltProvider          string
	DefaultAutocompleteModel    string
	DefaultAutocompleteProvider string
	DefaultMaxTokens            string
	DefaultThink                string
	DefaultChain                string
	HITLPolicyName              string
	TelemetryEnabled            string
	UpdateCheck                 string
	DefaultMissionAgent         string
	DefaultMissionPolicy        string
	UnofficialSignIns           string
	Locale                      string
	DetectedLocale              string
	ResolvedFrom                map[string]string
	Present                     map[string]bool
}

type RuntimeDefaults added in v0.33.0

type RuntimeDefaults struct {
	ChainRef             string
	FIMChainRef          string
	Model                string
	Provider             string
	AltModel             string
	AltProvider          string
	AutocompleteModel    string
	AutocompleteProvider string
	MaxTokens            string
	Think                string
	Locale               string
}

func ResolveRuntimeDefaults added in v0.33.0

func ResolveRuntimeDefaults(ctx context.Context, service Service, fallback RuntimeDefaults) RuntimeDefaults

func (RuntimeDefaults) EffectiveLocale

func (d RuntimeDefaults) EffectiveLocale() string

func (RuntimeDefaults) TemplateVars added in v0.33.0

func (d RuntimeDefaults) TemplateVars() map[string]string

func (RuntimeDefaults) Trimmed added in v0.33.0

func (d RuntimeDefaults) Trimmed() RuntimeDefaults

func (RuntimeDefaults) WithCLIConfig added in v0.33.0

func (d RuntimeDefaults) WithCLIConfig(snap CLIConfigSnapshot) RuntimeDefaults

type Service

type Service interface {
	Get(ctx context.Context) ([]statetype.BackendRuntimeState, error)
	SetupStatus(ctx context.Context) (setupcheck.Result, error)
	Refresh(ctx context.Context) (setupcheck.Result, error)
	CLIConfig(ctx context.Context) (CLIConfigSnapshot, error)
	SetCLIConfig(ctx context.Context, patch CLIConfigPatch) (CLIConfigSnapshot, error)
}

func New

func New(state *runtimestate.State, db libdbexec.DBManager, workspaceID string) Service

func WithActivityTracker

func WithActivityTracker(service Service, tracker libtracker.ActivityTracker) Service

Jump to

Keyboard shortcuts

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