Documentation
¶
Index ¶
Constants ¶
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" DefaultToolRateLimitPerMinute = 120 DefaultReadRateLimitPerMinute = 120 DefaultWriteRateLimitPerMinute = 30 DefaultBillingAdminRateLimitPerMinute = 10 DefaultDestructiveRateLimitPerMinute = 5 DefaultCircuitBreakerFailureThreshold = 5 DefaultCircuitBreakerOpenDuration = 45 * time.Second DefaultCircuitBreakerHalfOpenProbes = 1 )
Runtime defaults and ceilings for OneUserConfig. Defaults apply when the corresponding environment variable is unset or empty; Min/Max constants bound user-supplied overrides so a misconfigured env cannot disable tool timeouts or accept unbounded request bodies. The rate limit defaults are per-minute token-bucket budgets and `0` means unlimited (the limiter is disabled).
const DefaultBaseURL = "https://api.clockify.me/api/v1"
DefaultBaseURL is the production Clockify REST API base used when CLOCKIFY_BASE_URL is not set. Override only for localhost/loopback targets such as the fake-server fixture; LoadOneUser rejects every other override that does not point at a documented Clockify host.
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
ToolRateLimitDisabled bool
ReadRateLimitPerMinute int
WriteRateLimitPerMinute int
BillingAdminRateLimitPerMinute int
DestructiveRateLimitPerMinute int
Toolset string
EnableRawTools bool
EnableRawGet bool
EnableRawWrites bool
RawWriteDocumentedOnly bool
AuditLogPath string
AuditLogMode string
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.