Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolVersion = "2026-08-11"
	ServerName      = "agentdock"
	PathModel       = "host"
	RecallTimeoutMS = 30000
)

Variables

This section is empty.

Functions

func SkillStateDir

func SkillStateDir(cfg Config) (string, error)

SkillStateDir returns AgentDock's local document Skill store.

func ValidateOAuthAccessTokenTTL added in v0.7.7

func ValidateOAuthAccessTokenTTL(value string) error

ValidateOAuthAccessTokenTTL validates an explicit access-token lifetime using the same syntax and bounds as AGENTDOCK_OAUTH_ACCESS_TOKEN_TTL.

Types

type Config

type Config struct {
	AgentDockHome                string
	AgentDockDefaultDir          string
	Host                         string
	Port                         int
	AuthToken                    string
	OAuthEnabled                 bool
	OAuthServerURL               string
	OAuthAccessTokenTTLSeconds   int64
	OAuthAccessTokenNeverExpires bool
	LogLevel                     string
	NexusEndpoint                string
	NexusDeviceToken             string
	BrowserEnabled               bool
	BrowserExecutablePath        string
	BrowserCDPURL                string
	BrowserReuseExistingCDP      bool
	ACPEnabled                   bool
	ACPAgentName                 string
	ACPCommand                   string
	ACPArgs                      []string
	ACPEnvFromEnv                map[string]string
	ACPMaxPrompts                int
	ACPInteractionMS             int
	Stdio                        bool
	TrustedProxyCIDRs            []string
	InstructionsFile             string
	Instructions                 string
}

func FromEnv

func FromEnv() (Config, error)

func (Config) AuthRequired

func (c Config) AuthRequired() bool

func (*Config) Normalize

func (c *Config) Normalize() error

func (Config) ValidateAuth

func (c Config) ValidateAuth() error

Jump to

Keyboard shortcuts

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