config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNonLoopbackBind = errors.New("non_loopback_bind_attempt")

Functions

This section is empty.

Types

type AgentActivity added in v0.1.12

type AgentActivity struct {
	RetainRawPayloads bool
}

type AtlassianCredentialRefs

type AtlassianCredentialRefs struct {
	EmailEnv        string
	EmailFile       string
	APITokenEnv     string
	APITokenFile    string
	CredentialsFile string
}

type Automation added in v0.1.19

type Automation struct {
	Enabled                   bool
	RunnerEnabled             bool
	RequireCodexWhenAvailable bool
	AllowManualRunner         bool
	RunnerExecution           string
	QueueDepth                int
	PollInterval              time.Duration
	GlobalWorkerCount         int
	PerProjectWorkerLimit     int
	PerAgentWorkerLimit       int
	MaxParallelTasks          int
	DefaultMaxRuntime         time.Duration
	CodexBinaryPath           string
	Agents                    []AutomationAgent
	WorkPlanStatusTrigger     WorkPlanStatusTrigger
}

func (Automation) Validate added in v0.1.19

func (automation Automation) Validate() error

type AutomationAgent added in v0.1.19

type AutomationAgent struct {
	ID              string
	DisplayName     string
	Purpose         string
	Enabled         bool
	AllowedSkills   []string
	AllowedTools    []string
	AllowedCommands []AutomationCommand
	DeniedCommands  []string
	WorkspaceMode   string
	NetworkPolicy   string
	SecretPolicy    string
	LogPolicy       string
	MaxRuntime      time.Duration
	MaxRetries      int
}

func (AutomationAgent) Validate added in v0.1.19

func (agent AutomationAgent) Validate() error

type AutomationCommand added in v0.1.19

type AutomationCommand struct {
	Command string
	Args    []string
}

type Config

type Config struct {
	ConfigPath        string
	CPUCount          int
	HTTPAddr          string
	LadybugPath       string
	SQLitePath        string
	SQLite            SQLite
	Debug             Debug
	Logging           Logging
	MaxRequestBytes   int64
	RequestTimeout    time.Duration
	ReadHeaderTimeout time.Duration
	ShutdownTimeout   time.Duration
	Ingestion         Ingestion
	Workspace         Workspace
	Workflows         Workflows
	AgentActivity     AgentActivity
	Automation        Automation
	Projects          []Project
}

func Load

func Load() (Config, error)

func LoadPath added in v0.1.12

func LoadPath(configPath string) (Config, error)

func (Config) Validate

func (cfg Config) Validate() error

type ConfluenceIntegration

type ConfluenceIntegration struct {
	Enabled            bool
	SiteURL            string
	CloudID            string
	AuthMode           string
	CredentialRefs     AtlassianCredentialRefs
	ReadTimeout        time.Duration
	MaxResults         int
	Polling            IntegrationPolling
	SpaceKeys          []string
	BodyRepresentation string
	IncludeBody        bool
	IncludeComments    bool
	IncludeLabels      bool
	IncludeProperties  bool
	RootPageIDs        []string
	CQLExtraFilter     string
}

type Debug

type Debug struct {
	Enabled               bool
	PprofEnabled          bool
	ExpvarEnabled         bool
	RuntimeMetricsEnabled bool
}

func (Debug) Validate

func (debug Debug) Validate() error

type Ingestion

type Ingestion struct {
	ContentGraphEnabled      bool
	LiveUpdatesEnabled       bool
	ASTExtractionEnabled     bool
	ExtractorCacheEnabled    bool
	DebounceInterval         time.Duration
	MaxFileBytes             int64
	MaxChunkBytes            int
	QueueDepth               int
	WorkerCount              int
	GlobalWorkerCount        int
	PerProjectWorkerLimit    int
	LivePathPriority         bool
	MaxWatchedDirectoryCount int
	TaskWarnAfter            time.Duration
	FullScanBatchSize        int
	InitialScanOnStart       bool
	SensitiveMarkerPolicy    string
}

func (Ingestion) Validate

func (ingestion Ingestion) Validate() error

type IntegrationConfig

type IntegrationConfig struct {
	Jira       *JiraIntegration
	Confluence *ConfluenceIntegration
}

type IntegrationPolling

type IntegrationPolling struct {
	IngestionEnabled    bool
	InitialFullSync     string
	IncrementalInterval time.Duration
	EmptyPollSleep      time.Duration
	MaxIdleSleep        time.Duration
	OverlapWindow       time.Duration
	InitialPageSize     int
	IncrementalPageSize int
}

type JiraIntegration

type JiraIntegration struct {
	Enabled           bool
	SiteURL           string
	CloudID           string
	AuthMode          string
	CredentialRefs    AtlassianCredentialRefs
	ReadTimeout       time.Duration
	MaxResults        int
	Polling           IntegrationPolling
	ProjectKeys       []string
	DefaultFields     []string
	AllowedFields     []string
	IncludeRichFields bool
	IncludeComments   bool
	JQLExtraFilter    string
}

type Logging

type Logging struct {
	FileEnabled bool
	FilePath    string
}

func (Logging) Validate

func (logging Logging) Validate() error

type Project

type Project struct {
	ID                    string
	Aliases               []string
	DisplayName           string
	Description           string
	RootPath              string
	Enabled               bool
	Classification        string
	GraphNamespace        string
	GraphStorage          string
	DigestMode            string
	UpdatePolicy          string
	WorkspaceMode         string
	Include               []string
	Exclude               []string
	FollowSymlinks        bool
	MaxFileBytes          int64
	MaxChunkBytes         int
	SensitiveMarkerPolicy string
	Integrations          IntegrationConfig
}

type SQLite

type SQLite struct {
	WALEnabled               bool
	BusyTimeout              time.Duration
	Synchronous              string
	CheckpointAfterIngestion bool
}

func (SQLite) Validate

func (sqlite SQLite) Validate() error

type WorkPlanStatusTrigger added in v0.2.1

type WorkPlanStatusTrigger struct {
	Enabled  bool
	Statuses []string
}

func (WorkPlanStatusTrigger) Validate added in v0.2.1

func (trigger WorkPlanStatusTrigger) Validate() error

type Workflows added in v0.2.0

type Workflows struct {
	Enabled         bool
	DefinitionPaths []string
}

func (Workflows) Validate added in v0.2.0

func (workflows Workflows) Validate() error

type Workspace

type Workspace struct {
	Enabled bool
}

Jump to

Keyboard shortcuts

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