config

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: Apache-2.0 Imports: 11 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.

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
	NexusToken                   string
	BrowserEnabled               bool
	BrowserExecutablePath        string
	ACPEnabled                   bool
	ACPAgentName                 string
	ACPCommand                   string
	ACPArgs                      []string
	ACPEnvFromEnv                map[string]string
	ACPAllowedRoots              []string
	ACPMaxPrompts                int
	ACPInteractionMS             int
	Stdio                        bool
	TrustedProxyCIDRs            []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