config

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package config centralizes Prism runtime configuration.

Index

Constants

View Source
const DefaultOllamaHost = "http://127.0.0.1:11434"

Variables

This section is empty.

Functions

func ReadEnv added in v0.1.30

func ReadEnv(path string) (map[string]string, error)

ReadEnv reads saved values without applying process or workspace overrides.

func WriteEnv added in v0.1.30

func WriteEnv(ctx context.Context, stateDir string, settings map[string]string) error

WriteEnv updates selected keys while preserving unrelated lines. All runtime writers take the same lock and replace the file atomically with private mode.

Types

type Settings

type Settings struct {
	ConfigFile          string
	RuntimeSources      map[string]string
	RuntimeKeyEnv       string
	OllamaHostSource    string
	RootDir             string
	AgentDir            string
	SkillsDir           string
	OllamaHost          string
	GitHubToken         string
	LinearMCPURL        string
	ModelRuntime        runtime.RuntimeConfig
	EventStore          string
	PolicyFile          string
	StateDir            string
	ToolRecommendAgents []string
	DecisionRoutingMode string
	ToolRecommendModel  string
	DecisionURL         string
	DecisionAPIKeyEnv   string
	DecisionModel       string
	KevURL              string
	KevAPIKeyEnv        string
	KevModel            string
}

Settings holds process-level configuration read from defaults, .env, and env.

func Load

func Load() (Settings, error)

Load reads configuration from defaults, an optional .env file in the current working directory, an optional Prism config env file, and environment variables.

func LoadForStateDir added in v0.1.22

func LoadForStateDir(stateDir string) (Settings, error)

LoadForStateDir loads runtime configuration for an explicitly selected state directory. Command-line state selection takes precedence over the state directory configured in .env or the environment, while explicit model environment variables still take precedence over the selected config file.

Jump to

Keyboard shortcuts

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