Versions in this module Expand all Collapse all v0 v0.2.0 Jul 25, 2026 Changes in this version type Config + TUIPet string + TUIRawOutputMode *bool v0.1.2 Jul 15, 2026 v0.1.1 Jul 15, 2026 v0.1.0 Jul 14, 2026 Changes in this version + const DefaultBaseURL + const DefaultModel + func HookCommandDisplay(value HookCommand) string + func InspectionPaths(overrides FlagOverrides) ([]string, error) + func IsDiagnosticLoadError(err error) bool + func IsFileError(err error) bool + func ManagedPolicyPayload(policy ManagedPolicy) ([]byte, error) + func MergeHookConfig(dst *HookConfig, src HookConfig) + func NormalizePermissionModeLabel(mode string) (string, bool) + func ParseConfigValue(raw string) any + func VerifyManagedPolicy(policy ManagedPolicy, publicKey string) error + type APITimeoutConfig struct + ConnectTimeoutSeconds int + MaxRetries int + RequestTimeoutSeconds int + type BackgroundConfig struct + StatePath string + func (b *BackgroundConfig) UnmarshalJSON(data []byte) error + type CompatibilityConfig struct + ExtraUsageVisitCount int + GuestPassEligibilityCache map[string]GuestPassEligibilityCacheEntry + GuestPassReferralURL string + GuestPassVisitCount int + HasVisitedPasses *bool + PassesLastSeenRemaining *int + PassesUpsellSeenCount int + SlackAppInstallCount int + StickerOrderCount int + func (c *CompatibilityConfig) UnmarshalJSON(data []byte) error + type Config struct + APIKey string + APIKeyHelper string + APITimeout APITimeoutConfig + AdditionalDirs []string + AdvisorModel string + AllowManagedHooksOnly *bool + AllowedHTTPHookURLs *[]string + AppendSystemPrompt string + AuthToken string + AutoCompactMessages int + BaseURL string + CleanupPeriodDays *int + ConfigHome string + Debug bool + DebugFile string + DefaultShell string + DisableAllHooks *bool + DisabledMCPJSONServers []string + EditorMode string + EnableAllProjectMCPServers *bool + EnabledMCPJSONServers []string + EnabledSkills []string + Env map[string]string + ExtraBody map[string]any + FastMode *bool + ForceLoginMethod string + ForceLoginOrgUUID string + Future FutureConfig + HTTPHookAllowedEnvVars *[]string + Hooks HookConfig + Language string + MCPServers map[string]MCPServerConfig + MaxTokens int + MaxTurns int + Model string + ModelEnvVar string + OAuthProfile string + PermissionMode string + PermissionModeEnvVar string + PermissionModeRaw string + PermissionModeSource string + PermissionRules PermissionRules + PlanMode bool + Privacy PrivacyConfig + ProviderFallbacks ProviderFallbackConfig + RAGBaseURL string + RAGTimeoutSeconds int + RAGTopKMax int + RateLimit RateLimitConfig + ReasoningEffort string + RespectGitignore *bool + RulesImport *RulesImportConfig + RuntimeProvider string + RuntimeProviderSource string + SpeechCommand string + StatusLine *StatusLineConfig + SubagentModel string + SystemPrompt string + Temperature *float64 + Theme string + ToolNames []string + ToolNamesSet bool + TrustedRoots []string + Verbose bool + VoiceCommand string + VoiceEnabled *bool + Worktree WorktreeConfig + func Default(overrides FlagOverrides) (Config, error) + func DiagnosticDefault(overrides FlagOverrides) (Config, error) + func Load(overrides FlagOverrides) (Config, error) + func LoadForInspection(overrides FlagOverrides) (Config, []string, error) + func (c *Config) UnmarshalJSON(data []byte) error + func (c Config) EffectiveAllowManagedHooksOnly() bool + func (c Config) EffectiveCleanupPeriodDays() int + func (c Config) EffectiveDisableAllHooks() bool + func (c Config) EffectiveRespectGitignore() bool + func (c Config) EffectiveRulesImport() RulesImportConfig + type EditorBridgeConfig struct + Socket string + Token string + func (e *EditorBridgeConfig) UnmarshalJSON(data []byte) error + type EnterpriseConfig struct + Policy string + PolicyPublicKey string + func (e *EnterpriseConfig) UnmarshalJSON(data []byte) error + type FileError struct + Err error + Path string + func (e *FileError) Error() string + func (e *FileError) Unwrap() error + type FlagOverrides struct + AdditionalDirs []string + Agents string + AllowBroadCWD bool + AllowedTools []string + AppendPrompt string + AppendPromptFile string + BaseURL string + CWD string + ConfigPath string + Debug bool + DebugFile string + DeepLinkLastFetchMS int64 + DeepLinkOrigin bool + DeepLinkRepo string + DisallowedTools []string + FallbackModel string + ForkSession bool + FromPR string + IDE bool + IncludePartialMessages bool + InitialAttachments []string + InitialPrompt string + InputFormat string + JSONSchema string + MCPConfigs []string + MaxBudgetUSD *float64 + MaxTokens int + MaxTurns int + Model string + NoSessionPersistence bool + OutputFormatOverridden bool + OutputFormatRaw string + OutputFormatSource string + OutputFormatSubcommandExplicit bool + PermissionMode string + PlanModeRequired bool + PluginDirs []string + Prefill string + ReplayUserMessages bool + Resume string + ResumeSessionAt string + SessionID string + SessionName string + SettingSources []string + SettingSourcesSet bool + Settings string + SkipPermissions bool + StrictMCPConfig bool + SystemPrompt string + SystemPromptFile string + Temperature *float64 + Thinking string + ToolNames []string + ToolNamesSet bool + Verbose bool + type FutureConfig struct + BackgroundStatePath string + ChromeDefaultEnabled *bool + EditorBridgeSocket string + EditorBridgeToken string + EnterprisePolicy string + EnterprisePolicyPublicKey string + ExtraUsageVisitCount int + GuestPassEligibilityCache map[string]GuestPassEligibilityCacheEntry + GuestPassReferralURL string + GuestPassVisitCount int + HasVisitedPasses *bool + NotificationsEnabled *bool + PassesLastSeenRemaining *int + PassesUpsellSeenCount int + PluginMarketplaceKeys map[string]string + PluginMarketplaces []string + RemoteAuthToken string + RemoteEnabled bool + RemoteLeaseSeconds int + Sandbox SandboxConfig + SandboxStrategy string + SlackAppInstallCount int + StickerOrderCount int + UltraReviewEnabled *bool + UpdaterManifestURL string + type GuestPassEligibilityCacheEntry struct + AvailablePasses *int + Campaign string + Eligible bool + Limit *int + Redeemed *int + ReferralURL string + ReferrerReward *MoneyInfo + RemainingPasses *int + Timestamp time.Time + type HookCommand struct + AllowedEnvVars []string + Async bool + AsyncRewake bool + Command string + Headers map[string]string + If string + InvalidField string + InvalidKind string + InvalidReason string + Matcher string + Model string + Once bool + Prompt string + Shell string + StatusMessage string + TimeoutSeconds float64 + Type string + URL string + type HookConfig struct + CwdChanged []string + CwdChangedCommands []HookCommand + FileChanged []string + FileChangedCommands []HookCommand + InstructionsLoaded []string + InstructionsLoadedCommands []HookCommand + Notification []string + NotificationCommands []HookCommand + PermissionDenied []string + PermissionDeniedCommands []HookCommand + PermissionRequest []string + PermissionRequestCommands []HookCommand + PostCompact []string + PostCompactCommands []HookCommand + PostToolUse []string + PostToolUseCommands []HookCommand + PostToolUseFailure []string + PostToolUseFailureCommands []HookCommand + PreCompact []string + PreCompactCommands []HookCommand + PreToolUse []string + PreToolUseCommands []HookCommand + SessionEnd []string + SessionEndCommands []HookCommand + SessionStart []string + SessionStartCommands []HookCommand + Setup []string + SetupCommands []HookCommand + Stop []string + StopCommands []HookCommand + StopFailure []string + StopFailureCommands []HookCommand + SubagentStart []string + SubagentStartCommands []HookCommand + SubagentStop []string + SubagentStopCommands []HookCommand + TaskCompleted []string + TaskCompletedCommands []HookCommand + TaskCreated []string + TaskCreatedCommands []HookCommand + UserPromptSubmit []string + UserPromptSubmitCommands []HookCommand + WorktreeCreate []string + WorktreeCreateCommands []HookCommand + WorktreeRemove []string + WorktreeRemoveCommands []HookCommand + func (h *HookConfig) UnmarshalJSON(data []byte) error + type MCPServerConfig struct + Args []string + Command string + Env []string + Headers map[string]string + HeadersHelper string + OAuth *MCPServerOAuthConfig + Required bool + ToolCallTimeoutMS int + URL string + func (m *MCPServerConfig) UnmarshalJSON(data []byte) error + type MCPServerOAuthConfig struct + AuthServerMetadataURL string + CallbackPort int + ClientID string + XAA *bool + func (m *MCPServerOAuthConfig) UnmarshalJSON(data []byte) error + type ManagedPolicy struct + DeniedTools []string + MaxPermissionMode string + PermissionRules PermissionRules + Signature string + func LoadManagedPolicyFile(path string) (ManagedPolicy, error) + func VerifyManagedPolicyFile(path, publicKey string) (ManagedPolicy, error) + type MarketplaceConfig struct + PublicKeys map[string]string + Sources []string + func (m *MarketplaceConfig) UnmarshalJSON(data []byte) error + type MoneyInfo struct + AmountMinorUnits int + Currency string + type MutationReport struct + Action string + Key string + Kind string + Path string + Status string + func ResetFile(path string) (MutationReport, error) + func SetFileValue(path string, key string, value any) (MutationReport, error) + func UnsetFileValue(path string, key string) (MutationReport, error) + type PermissionRules struct + AdditionalDirectories []string + Allow []string + Ask []string + DefaultMode string + DeniedTools []string + Deny []string + func (r *PermissionRules) UnmarshalJSON(data []byte) error + type PreferencesConfig struct + ChromeDefaultEnabled *bool + NotificationsEnabled *bool + UltraReviewEnabled *bool + func (p *PreferencesConfig) UnmarshalJSON(data []byte) error + type PrivacyConfig struct + CrashReportsEnabled *bool + PromptHistoryEnabled *bool + TelemetryEnabled *bool + type ProviderFallbackConfig struct + Fallbacks []string + Primary string + type RateLimitConfig struct + InitialBackoffMS int + MaxBackoffMS int + MaxRetries int + func DefaultRateLimitConfig() RateLimitConfig + func NormalizeRateLimitConfig(cfg RateLimitConfig) RateLimitConfig + type RemoteConfig struct + AuthToken string + Enabled *bool + LeaseSeconds int + func (r *RemoteConfig) UnmarshalJSON(data []byte) error + type RulesImportConfig struct + Frameworks []string + Mode string + func (r *RulesImportConfig) UnmarshalJSON(data []byte) error + func (r RulesImportConfig) IsZero() bool + func (r RulesImportConfig) MarshalJSON() ([]byte, error) + func (r RulesImportConfig) ShouldImport(framework string) bool + type SandboxConfig struct + AllowedMounts []string + Enabled *bool + FilesystemMode string + NamespaceRestrictions *bool + NetworkIsolation *bool + Strategy string + func (s *SandboxConfig) UnmarshalJSON(data []byte) error + type StatusLineConfig struct + Command string + Padding *float64 + Type string + type UpdaterConfig struct + ManifestURL string + func (u *UpdaterConfig) UnmarshalJSON(data []byte) error + type WorktreeConfig struct + SparsePaths []string + SymlinkDirectories []string