Documentation
¶
Index ¶
- Constants
- Variables
- func AllDigits(s string) bool
- func AppendOrUpdateProvider(r *Root, p Provider)
- func ApplyClaudeOAuthTokens(p *Provider, t claude.TokenSet)
- func ApplyCursorOAuthTokens(p *Provider, t cursorauth.TokenSet)
- func ApplyOAuthTokens(p *Provider, t codex.TokenSet)
- func ApplyOnboardMerge(dst *Root, res *OnboardResult)
- func ApplySubagentAdd(cfg *Root, res *SubagentAddResult)
- func BackupConfig() (string, error)
- func ChooseProviderKind(pio PromptIO, require bool, menuTitle string) (kind int, skipped bool, err error)
- func ClampTimeoutMinutes(n int) error
- func ConfigExists() (bool, error)
- func ConfiguredServerPort() (int, error)
- func ConfirmOnboardRerun(pio PromptIO) (bool, error)
- func CursorAPIConfigured(r *Root) bool
- func CursorSubChatBase() string
- func EffectiveCompactionThresholdTokens(r *Root) int64
- func EffectiveDocSearchFullArticleScore(r *Root) float64
- func EffectiveDocSearchMinNorm(r *Root) float64
- func EffectiveResearchMaxContentChars(r *Root) int
- func EffectiveResearchMaxRounds(r *Root) int
- func EffectiveResearchMaxURLsPerRound(r *Root) int
- func EffectiveSkillSearchMinNorm(r *Root) float64
- func EffectiveWebFetchAcceptLanguage(r *Root) string
- func EffectiveWebFetchBlockedDomains(r *Root) []string
- func EffectiveWebFetchMaxRedirects(r *Root) int
- func EffectiveWebFetchUserAgent(r *Root) string
- func EnsureChatGPTSubBaseURL(p *Provider)
- func EnsureClaudeSubBaseURL(p *Provider)
- func EnsureCursorSubBaseURL(p *Provider)
- func EnsureDefaultFile() error
- func EnsureRolesTable(pio PromptIO, cfg *Root) error
- func FastModeSupportedByProvider(p *Provider) bool
- func FirstProviderName(r *Root) string
- func HasRolesTable(cfg *Root) bool
- func HiddenModelIDs(r *Root, providerName string, models []string) []string
- func IsAnthropicClaudeCodeOAuthToken(token string) bool
- func IsLocalEndpoint(raw string) bool
- func IsOAuthAuthKind(kind string) bool
- func LoadModelVisibility(root *Root) error
- func ModelEnabled(r *Root, providerName, modelID string) bool
- func ModelPassesChatGPTSubFilter(modelID string) bool
- func ModelPassesChatGPTSubPickerFilter(modelID string) bool
- func ModelPassesClaudeSubFilter(modelID string) bool
- func ModelPickerPageCap(total int) int
- func NeedsOnboard(r *Root) bool
- func NormalizeAPIBase(raw string) (string, error)
- func NormalizeAnthropicBase(raw string) (string, error)
- func NoteRecentModelUse(r *Root, providerName, modelID string)
- func ParseReasoningEffortToken(s string) (string, error)
- func ParseServerPort(raw string) (int, error)
- func PickModelInteractive(pio PromptIO, p *Provider, providerLabel string, ids []string, allowSkip bool) (string, error)
- func PrintConfigSkipHint(out io.Writer, topic string)
- func PrintProviderConnectMenu(out io.Writer, title string)
- func PrintRolesTableCatalog(out io.Writer)
- func ProviderConnectMenuLines() []string
- func ProviderCredentialsReady(p *Provider) bool
- func QueueModelVisibility(providerName, modelID string, enabled bool) error
- func ReadPromptLine(p PromptIO, prompt string) (string, error)
- func RemoteProviderNames(r *Root) []string
- func ResearchMaxTimeSeconds(r *Root) int
- func ResolveCursorSessionBearer(ctx context.Context, r *Root, p *Provider) (string, error)
- func ResolveExecConfig(existing *Root, opts ExecResolveOpts) (*Root, *Provider, error)
- func ResolveProviderBearer(ctx context.Context, r *Root, p *Provider) (string, error)
- func ResolveServerPort() (int, error)
- func RolesScoreWarnings(r *Root) []string
- func RolesSubagentEntries(cfg *Root) []roles.SubagentEntry
- func RunRolesTableWizard(pio PromptIO, existing *Root) ([]string, error)
- func Save(r *Root) error
- func SetModelEnabled(r *Root, providerName, modelID string, enabled bool) error
- func SettingsSpecs() map[string]SettingSpec
- func SettingsValues(root *Root) map[string]any
- func SubagentTimeout(r *Root) int
- func TableCharacteristics(cfg *Root) []string
- func UpdateModelVisibility(providerName, modelID string, enabled bool) error
- func ValidateRoles(ctx context.Context, r *Root) error
- func ValidateServerPort(port int) error
- func WriteAnthropicClaudeCodeOAuthWarning(out io.Writer)
- func WriteConfigSetupWarning(w io.Writer, r *Root)
- type APIResilienceConfig
- type APIResiliencePolicy
- type Current
- type ExecResolveOpts
- type Export
- type GUIChatSettings
- type GUIModelSettings
- type GUISettings
- type ModelPickChoice
- type ModelVisibilityQueue
- type OAuthTokenSet
- type OnboardOpts
- type OnboardResult
- type PromptIO
- type Provider
- func (p *Provider) EffectiveAPIProtocol() string
- func (p *Provider) EffectiveAuthKind() string
- func (p *Provider) IsAnthropic() bool
- func (p *Provider) IsChatGPTSub() bool
- func (p *Provider) IsClaudeSub() bool
- func (p *Provider) IsCursorAPI() bool
- func (p *Provider) IsCursorSub() bool
- func (p *Provider) IsOAuthProvider() bool
- func (p *Provider) UsesAnthropicOAuthBearer() bool
- type ProviderSetupOpts
- type ProviderSetupResult
- type RecentModelUse
- type Roles
- type RolesTable
- type Root
- func EmptyRoot() *Root
- func Load() (*Root, error)
- func LoadOptional() (*Root, error)
- func LoadStartup() (*Root, bool, error)
- func ReadModelVisibility() (*Root, error)
- func ReloadSettings(current, persisted *Root) *Root
- func RunWizardIfNeeded(stdin io.Reader) (*Root, error)
- func UpdateCurrentModel(providerName, modelID string) (*Root, error)
- func UpdateReasoningEffort(effort string) (*Root, error)
- func UpdateSetting(name string, value, expected json.RawMessage, audit map[string]any) (*Root, error)
- func (r *Root) AutoUpdateEnabled() bool
- func (r *Root) CursorInternalToolsEnabled() bool
- func (r *Root) EffectiveExportRoot() (string, error)
- func (r *Root) EffectiveFastMode() bool
- func (r *Root) EffectiveResponseLanguage() string
- func (r *Root) EffectiveServerPort() int
- func (r *Root) EffectiveSubagentReasoningEffort(override string) (canonical string, forceDisable bool)
- func (r *Root) EffectiveWebSearchEngine() string
- func (r *Root) FastModeEnabledForProvider(p *Provider) bool
- func (r *Root) GlobalReasoningEffort() shared.ReasoningEffort
- func (r *Root) LegacyToolsEnabled() bool
- func (r *Root) LegacyToolsForceEnabled() bool
- func (r *Root) ModelDisplayName(p *Provider, model string) string
- func (r *Root) ReasoningEffortDisplayLabel() string
- func (r *Root) ReasoningEffortIsNone() bool
- func (r *Root) ReasoningEffortLabel() string
- func (r *Root) SubagentReasoningEffortDisplayLabel() string
- func (r *Root) SubagentReasoningEffortIsNone() bool
- func (r *Root) SubagentReasoningEffortLabel() string
- func (r *Root) UsageStatsEnabled() bool
- func (r *Root) WebSearchNeedsInternet() bool
- type SettingSpec
- type SubagentAddResult
- type SubagentRoleConfig
- type ToolOutput
- type Tools
- type WebFetchConfig
Constants ¶
const ( EnvOpenAIBaseURL = "OPENAI_BASE_URL" EnvOpenAIAPIKey = "OPENAI_API_KEY" EnvModelID = "MODEL_ID" )
const ( MaxModelPickerEntries = 25 ModelPickerNoPaginationMax = 50 )
const ( ProviderNameChatGPTSub = "ChatGPT Sub" ProviderNameClaudeSub = "Claude Sub" ProviderNameCursorAPI = "Cursor API" ProviderNameCursorSub = "Cursor Sub" CursorAPIDefaultModelID = "composer-2.5" OpenAIPlatformBase = "https://api.openai.com" AnthropicPlatformBase = "https://api.anthropic.com" AuthKindAPIKey = "api_key" AuthKindOAuthChatGPT = "oauth_chatgpt" AuthKindOAuthClaude = "oauth_claude" AuthKindOAuthCursor = "oauth_cursor" AuthKindCursorAPI = "cursor_api" AnthropicClaudeCodeOAuthTokenPrefix = "sk-ant-oat" AnthropicClaudeCodeOAuthSetupWarning = "Claude Code OAuth tokens (sk-ant-oat…) are not recommended as API keys." )
const ( ProviderKindChatGPTSub = 1 ProviderKindOpenAICompatible = 2 ProviderKindAnthropicCompatible = 3 ProviderKindClaudeSub = 4 ProviderKindCursorSub = 5 ProviderKindCursorAPI = 6 )
const APIProtocolAnthropic = "anthropic"
const APIProtocolOpenAI = "openai"
const DefaultAPIBaseDelayMS = 1000
const DefaultAPICircuitOpenSec = 60
const DefaultAPIConnectTimeoutSec = 30
const DefaultAPIMaxDelayMS = 30000
const DefaultAPIMaxRetries = 3
const DefaultCompactionThresholdTokens int64 = 131072
const DefaultDocSearchFullArticleScore = 0.9
const DefaultDocSearchMinNormalizedScore = 0.05
const DefaultResearchMaxContentChars = 15000
const DefaultResearchMaxRounds = 8
const DefaultResearchMaxURLsPerRound = 3
const DefaultResearchMinRounds = 2
const DefaultResponseLanguage = "English"
const DefaultServerPort = 64000
const DefaultSkillSearchMinNormalizedScore = 0.05
const DefaultSubagentTimeoutMinutes = 20
const DefaultToolOutputMaxBytes = 65536
const DefaultToolOutputMaxLines = 2048
const DefaultWebFetchMaxRedirects = 10
const DefaultWebSearchEngine = "duckduckgo"
const MinCompactionThresholdTokens int64 = 32768
const ServerPortEnv = "SOLOMON_SERVER_PORT"
Variables ¶
var ErrOnboardProviderSkipped = errors.New("onboard provider skipped")
var ErrRolesTableSkipped = errors.New("roles table skipped")
Functions ¶
func AppendOrUpdateProvider ¶
func ApplyClaudeOAuthTokens ¶ added in v2026.622.0
func ApplyCursorOAuthTokens ¶ added in v2026.924.0
func ApplyCursorOAuthTokens(p *Provider, t cursorauth.TokenSet)
func ApplyOAuthTokens ¶
func ApplyOnboardMerge ¶
func ApplyOnboardMerge(dst *Root, res *OnboardResult)
func ApplySubagentAdd ¶ added in v2026.716.0
func ApplySubagentAdd(cfg *Root, res *SubagentAddResult)
func BackupConfig ¶
func ChooseProviderKind ¶
func ClampTimeoutMinutes ¶
func ConfigExists ¶
func ConfiguredServerPort ¶ added in v2026.1009.3
ConfiguredServerPort reads the discovery address without writing config.toml.
func ConfirmOnboardRerun ¶
func CursorAPIConfigured ¶ added in v2026.608.0
func CursorSubChatBase ¶ added in v2026.924.0
func CursorSubChatBase() string
func EffectiveDocSearchFullArticleScore ¶ added in v2026.608.0
func EffectiveDocSearchMinNorm ¶ added in v2026.608.0
func EffectiveResearchMaxContentChars ¶ added in v2026.617.0
func EffectiveResearchMaxRounds ¶ added in v2026.617.0
func EffectiveResearchMaxURLsPerRound ¶ added in v2026.617.0
func EffectiveWebFetchAcceptLanguage ¶ added in v2026.617.0
func EffectiveWebFetchBlockedDomains ¶ added in v2026.617.0
func EffectiveWebFetchMaxRedirects ¶ added in v2026.617.0
func EffectiveWebFetchUserAgent ¶ added in v2026.617.0
func EnsureChatGPTSubBaseURL ¶
func EnsureChatGPTSubBaseURL(p *Provider)
func EnsureClaudeSubBaseURL ¶
func EnsureClaudeSubBaseURL(p *Provider)
func EnsureCursorSubBaseURL ¶ added in v2026.924.0
func EnsureCursorSubBaseURL(p *Provider)
func EnsureDefaultFile ¶ added in v2026.621.0
func EnsureDefaultFile() error
func EnsureRolesTable ¶ added in v2026.716.0
func FirstProviderName ¶
func HasRolesTable ¶ added in v2026.716.0
func HiddenModelIDs ¶ added in v2026.909.0
HiddenModelIDs returns the hidden models for a provider that are present in the supplied catalog. The catalog remains complete so settings can re-enable every model later.
func IsAnthropicClaudeCodeOAuthToken ¶ added in v2026.617.1
func IsLocalEndpoint ¶ added in v2026.609.3
func IsOAuthAuthKind ¶
func LoadModelVisibility ¶ added in v2026.909.0
LoadModelVisibility accepts legacy files, but an explicit gui.models table takes precedence so old sidecar values cannot override newer preferences.
func ModelEnabled ¶ added in v2026.909.0
ModelEnabled reports whether a model should be offered by the GUI model selector. Models are enabled by default; only explicitly hidden models are stored.
func ModelPickerPageCap ¶ added in v2026.716.0
func NeedsOnboard ¶
func NormalizeAPIBase ¶
func NormalizeAnthropicBase ¶
func NoteRecentModelUse ¶
func ParseServerPort ¶ added in v2026.909.0
ParseServerPort validates the numeric port representation used by the environment and config file.
func PickModelInteractive ¶
func PrintConfigSkipHint ¶
func PrintRolesTableCatalog ¶ added in v2026.716.0
func ProviderConnectMenuLines ¶
func ProviderConnectMenuLines() []string
func QueueModelVisibility ¶ added in v2026.909.0
QueueModelVisibility schedules a visibility update on the process-wide writer queue.
func RemoteProviderNames ¶ added in v2026.609.3
func ResearchMaxTimeSeconds ¶ added in v2026.617.0
func ResolveCursorSessionBearer ¶ added in v2026.924.0
func ResolveExecConfig ¶
func ResolveExecConfig(existing *Root, opts ExecResolveOpts) (*Root, *Provider, error)
func ResolveProviderBearer ¶
func ResolveServerPort ¶ added in v2026.909.0
func RolesScoreWarnings ¶ added in v2026.716.0
func RolesSubagentEntries ¶ added in v2026.716.0
func RolesSubagentEntries(cfg *Root) []roles.SubagentEntry
func RunRolesTableWizard ¶ added in v2026.716.0
func SetModelEnabled ¶ added in v2026.909.0
SetModelEnabled changes the GUI visibility preference for one model.
func SettingsSpecs ¶ added in v2026.930.0
func SettingsSpecs() map[string]SettingSpec
func SettingsValues ¶ added in v2026.930.0
func SubagentTimeout ¶
func TableCharacteristics ¶ added in v2026.716.0
func UpdateModelVisibility ¶ added in v2026.909.0
UpdateModelVisibility persists presentation preferences under gui.models, without provider requests or validation of unrelated runtime settings.
func ValidateServerPort ¶ added in v2026.909.0
func WriteAnthropicClaudeCodeOAuthWarning ¶ added in v2026.617.1
func WriteConfigSetupWarning ¶
Types ¶
type APIResilienceConfig ¶
type APIResilienceConfig struct {
MaxRetries int `toml:"max_retries,omitempty"`
BaseDelayMS int `toml:"base_delay_ms,omitempty"`
MaxDelayMS int `toml:"max_delay_ms,omitempty"`
Jitter *bool `toml:"jitter,omitempty"`
ConnectTimeoutSec int `toml:"connect_timeout_sec,omitempty"`
ReadTimeoutSec int `toml:"read_timeout_sec,omitempty"`
CircuitOpenSec int `toml:"circuit_open_sec,omitempty"`
}
type APIResiliencePolicy ¶
type APIResiliencePolicy struct {
MaxRetries int
BaseDelay time.Duration
MaxDelay time.Duration
Jitter bool
ConnectTimeout time.Duration
ReadTimeout time.Duration
CircuitOpen time.Duration
}
func EffectiveAPIResilience ¶
func EffectiveAPIResilience(r *Root) APIResiliencePolicy
type ExecResolveOpts ¶
type ExecResolveOpts struct {
EnvFile string
}
type GUIChatSettings ¶ added in v2026.1009.0
type GUIModelSettings ¶ added in v2026.1009.0
type GUISettings ¶ added in v2026.1009.0
type GUISettings struct {
Chat GUIChatSettings `toml:"chat" json:"chat"`
Models GUIModelSettings `toml:"models" json:"models"`
Docs struct{} `toml:"docs" json:"docs"`
}
GUISettings follows the sections in the Settings page. Provider credentials and runtime model selection remain in their existing backend sections.
func ReadGUISettings ¶ added in v2026.1009.0
func ReadGUISettings() (GUISettings, error)
ReadGUISettings avoids role validation and provider requests. Missing chat values are left unset so the GUI can migrate its old browser preferences.
func UpdateGUIChatSettings ¶ added in v2026.1009.0
func UpdateGUIChatSettings(patch GUIChatSettings) (GUISettings, error)
type ModelPickChoice ¶
func PickModelAfterAdd ¶
type ModelVisibilityQueue ¶ added in v2026.909.0
type ModelVisibilityQueue struct {
// contains filtered or unexported fields
}
ModelVisibilityQueue serializes visibility updates without blocking callers on disk I/O.
func NewModelVisibilityQueue ¶ added in v2026.909.0
func NewModelVisibilityQueue(write func(string, string, bool) error) *ModelVisibilityQueue
NewModelVisibilityQueue starts a queue using the supplied persistence function.
func (*ModelVisibilityQueue) Enqueue ¶ added in v2026.909.0
func (q *ModelVisibilityQueue) Enqueue(providerName, modelID string, enabled bool) error
Enqueue validates and schedules one visibility update.
func (*ModelVisibilityQueue) Wait ¶ added in v2026.909.0
func (q *ModelVisibilityQueue) Wait()
Wait blocks until all updates currently in the queue have been persisted.
type OAuthTokenSet ¶
type OnboardOpts ¶
type OnboardOpts struct {
RequireProvider bool
}
type OnboardResult ¶
type OnboardResult struct {
UserName string
ResponseLanguage string
SubagentTimeoutMinutes int
CompactionThresholdTokens int64
NewProvider *Provider
SwitchCurrent bool
CurrentProvider string
CurrentModel string
RolesTableCharacteristics []string
}
func RunOnboardWizard ¶
func RunOnboardWizard(pio PromptIO, existing *Root, opts OnboardOpts) (*OnboardResult, error)
type Provider ¶
type Provider struct {
Name string `toml:"-"`
BaseURL string `toml:"base_url"`
APIKey string `toml:"api_key"`
APIProtocol string `toml:"api_protocol,omitempty"`
AuthKind string `toml:"auth_kind,omitempty"`
OAuthAccessToken string `toml:"oauth_access_token,omitempty"`
OAuthRefreshToken string `toml:"oauth_refresh_token,omitempty"`
OAuthExpiresAt string `toml:"oauth_expires_at,omitempty"`
OAuthAccountID string `toml:"oauth_account_id,omitempty"`
}
func NewChatGPTSubProvider ¶
func NewClaudeSubProvider ¶ added in v2026.622.0
func ProviderByName ¶
func ProviderList ¶
func ResolveProvider ¶
func (*Provider) EffectiveAPIProtocol ¶
func (*Provider) EffectiveAuthKind ¶
func (*Provider) IsAnthropic ¶
func (*Provider) IsChatGPTSub ¶
func (*Provider) IsClaudeSub ¶
func (*Provider) IsCursorAPI ¶
func (*Provider) IsCursorSub ¶ added in v2026.924.0
func (*Provider) IsOAuthProvider ¶
func (*Provider) UsesAnthropicOAuthBearer ¶
type ProviderSetupOpts ¶
type ProviderSetupResult ¶
type ProviderSetupResult struct {
Provider Provider
SwitchCurrent bool
CurrentProvider string
CurrentModel string
}
func FinalizeProviderSetup ¶
func FinalizeProviderSetup(pio PromptIO, cfg *Root, existing *Root, opts ProviderSetupOpts, prov Provider, ids []string) (*ProviderSetupResult, error)
func RunProviderSetupByKind ¶
func RunProviderSetupByKind(ctx context.Context, pio PromptIO, cfg *Root, existing *Root, kind int, opts ProviderSetupOpts) (*ProviderSetupResult, error)
type RecentModelUse ¶
func RecentModelUseEntries ¶
func RecentModelUseEntries(r *Root, preferProvider string) []RecentModelUse
type Roles ¶ added in v2026.707.0
type Roles struct {
Table RolesTable `toml:"table,omitempty"`
Subagent []SubagentRoleConfig `toml:"subagent,omitempty"`
}
type RolesTable ¶ added in v2026.716.0
type RolesTable struct {
Characteristics []string `toml:"characteristics,omitempty"`
}
type Root ¶
type Root struct {
GUI GUISettings `toml:"gui"`
UserName string `toml:"user_name"`
Providers map[string]*Provider `toml:"-"`
Current Current `toml:"current"`
RecentModels map[string][]string `toml:"recent_models,omitempty"`
HiddenModels map[string][]string `toml:"hidden_models,omitempty"`
SubagentTimeoutMinutes int `toml:"subagent_timeout_minutes"`
ReasoningEffort string `toml:"reasoning_effort"`
SubagentReasoningEffort string `toml:"subagent_reasoning_effort"`
FastMode *bool `toml:"fast_mode,omitempty"`
LogLevel string `toml:"log_level"`
MaxResponseTokens int `toml:"max_response_tokens"`
ShowThinking bool `toml:"show_thinking"`
Anonymize bool `toml:"anonymize,omitempty"`
Tools Tools `toml:"tools,omitempty"`
ShowUsageStats *bool `toml:"show_usage_stats"`
ResponseLanguage string `toml:"response_language"`
CompactionThresholdTokens int64 `toml:"compaction_threshold_tokens"`
SkillSearchMinNorm *float64 `toml:"skill_search_min_normalized_score,omitempty"`
DocSearchMinNorm *float64 `toml:"doc_search_min_normalized_score,omitempty"`
DocSearchFullArticleScore *float64 `toml:"doc_search_full_article_score,omitempty"`
WebSearchEngine string `toml:"web_search_engine,omitempty"`
ServerPort int `toml:"server_port,omitempty"`
WebSearchAPIKey string `toml:"web_search_api_key,omitempty"`
WebSearchBaseURL string `toml:"web_search_base_url,omitempty"`
WebSearchCX string `toml:"web_search_cx,omitempty"`
ResearchMaxRounds int `toml:"research_max_rounds,omitempty"`
ResearchMaxURLsPerRound int `toml:"research_max_urls_per_round,omitempty"`
ResearchMaxContentChars int `toml:"research_max_content_chars,omitempty"`
ToolOutput ToolOutput `toml:"tool_output,omitempty"`
APIResilience APIResilienceConfig `toml:"api_resilience,omitempty"`
WebFetch WebFetchConfig `toml:"web_fetch,omitempty"`
Export Export `toml:"export,omitempty"`
Roles Roles `toml:"roles,omitempty"`
AutoUpdate *bool `toml:"autoupdate,omitempty"`
PromptTemplates map[string]string `toml:"prompt_templates,omitempty"`
PromptTemplateModTime map[string]int64 `toml:"prompt_template_mtime,omitempty"`
// contains filtered or unexported fields
}
func LoadOptional ¶
func LoadStartup ¶ added in v2026.622.0
func ReadModelVisibility ¶ added in v2026.909.0
func ReloadSettings ¶ added in v2026.930.0
ReloadSettings returns a new runtime snapshot of the allowlisted preferences. Preserve the active provider, model and services: settings cannot modify them. Existing requests keep their previous snapshot.
func UpdateCurrentModel ¶ added in v2026.909.0
UpdateCurrentModel atomically persists the selected provider and model.
func UpdateReasoningEffort ¶ added in v2026.909.0
UpdateReasoningEffort atomically persists the main-chat reasoning level.
func UpdateSetting ¶ added in v2026.930.0
func UpdateSetting(name string, value, expected json.RawMessage, audit map[string]any) (*Root, error)
UpdateSetting compares under the config lock, validates before normalization, and logs only allowlisted values after successful atomic persistence.
func (*Root) AutoUpdateEnabled ¶ added in v2026.602.3
func (*Root) CursorInternalToolsEnabled ¶ added in v2026.624.0
func (*Root) EffectiveExportRoot ¶ added in v2026.701.0
func (*Root) EffectiveFastMode ¶
func (*Root) EffectiveResponseLanguage ¶
func (*Root) EffectiveServerPort ¶ added in v2026.909.0
func (*Root) EffectiveSubagentReasoningEffort ¶ added in v2026.615.0
func (*Root) EffectiveWebSearchEngine ¶
func (*Root) FastModeEnabledForProvider ¶
func (*Root) GlobalReasoningEffort ¶
func (r *Root) GlobalReasoningEffort() shared.ReasoningEffort
func (*Root) LegacyToolsEnabled ¶
func (*Root) LegacyToolsForceEnabled ¶
func (*Root) ReasoningEffortDisplayLabel ¶
func (*Root) ReasoningEffortIsNone ¶
func (*Root) ReasoningEffortLabel ¶
func (*Root) SubagentReasoningEffortDisplayLabel ¶ added in v2026.615.0
func (*Root) SubagentReasoningEffortIsNone ¶ added in v2026.615.0
func (*Root) SubagentReasoningEffortLabel ¶ added in v2026.615.0
func (*Root) UsageStatsEnabled ¶
func (*Root) WebSearchNeedsInternet ¶ added in v2026.609.3
type SettingSpec ¶ added in v2026.930.0
type SettingSpec struct {
Field string `json:"-"`
Type string `json:"type"`
Min int64 `json:"min,omitempty"`
Max int64 `json:"max,omitempty"`
Enum []string `json:"enum,omitempty"`
}
SettingSpec is the explicit allowlist for model-accessible, non-secret settings.
type SubagentAddResult ¶ added in v2026.716.0
type SubagentAddResult struct {
Provider string
Model string
Description string
Scores map[string]int
}
func CompleteSubagentEntry ¶ added in v2026.716.0
type SubagentRoleConfig ¶ added in v2026.707.0
type ToolOutput ¶
Source Files
¶
- api_resilience.go
- backup.go
- config.go
- config_toml.go
- config_update.go
- exec_resolve.go
- export.go
- gui_settings.go
- model_visibility_persistence.go
- model_visibility_queue.go
- modelpick.go
- onboard.go
- onboard_setup.go
- provider_auth.go
- provider_connect.go
- roles.go
- roles_errors.go
- roles_resolve.go
- roles_subagent.go
- roles_table.go
- server_port.go
- settings.go
- web_fetch.go