config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxInFlightToolCalls           = 4
	DefaultToolTimeout                    = 45 * time.Second
	MinToolTimeout                        = 5 * time.Second
	MaxToolTimeout                        = 10 * time.Minute
	DefaultMaxMessageSize                 = 4 * 1024 * 1024
	DefaultMaxToolResultBytes             = 50_000
	MaxMessageSize                        = 100 * 1024 * 1024
	MaxToolResultBytes                    = 100 * 1024 * 1024
	DefaultToolset                        = "default"
	DefaultCircuitBreakerFailureThreshold = 5
	DefaultCircuitBreakerOpenDuration     = 45 * time.Second
	DefaultCircuitBreakerHalfOpenProbes   = 1
)
View Source
const DefaultBaseURL = "https://api.clockify.me/api/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type OneUserConfig

type OneUserConfig struct {
	APIKey                 string
	WorkspaceID            string
	Timezone               string
	BaseURL                string
	LogLevel               string
	MaxInFlightToolCalls   int
	ToolTimeout            time.Duration
	MaxMessageSize         int64
	MaxToolResultBytes     int
	ToolRateLimitPerMinute int
	Toolset                string
	EnableRawWrites        bool
	RawWriteDocumentedOnly bool
	WebhookAllowedDomains  []string
	CircuitBreaker         clockify.CircuitBreakerConfig
}

OneUserConfig is the complete runtime configuration for the one-user/full-access stdio product path.

func LoadOneUser

func LoadOneUser() (OneUserConfig, error)

LoadOneUser reads the intentionally tiny environment surface used by the one-user stdio runtime. It ignores the broader platform-era configuration matrix by design.

Jump to

Keyboard shortcuts

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