config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config resolves product-shell settings. Model routing is persisted by the provider settings store rather than accepted as process configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHelp

func IsHelp(err error) bool

IsHelp reports whether Parse stopped after printing flag help.

Types

type Config

type Config struct {
	// Cwd is only the initial directory-browser location. Every created session
	// carries an explicit project folder or manager-owned scratch workspace.
	Cwd string
	// DataDir stores session indexes and transcripts independently from any
	// project workspace.
	DataDir string
	// Addr is the API listen address.
	Addr string
	// ClientOrigin is the optional browser origin allowed to call the API
	// directly when the client is deployed separately.
	ClientOrigin string
}

Config is the resolved settings for one coding product process.

func Defaults

func Defaults() Config

Defaults returns process-level defaults.

func Parse

func Parse(args []string) (Config, error)

Parse resolves configuration from environment-backed defaults and command line flags. Command line values take precedence over environment values.

func (*Config) Resolve

func (c *Config) Resolve() error

Resolve finalizes derived fields. Directory browsing starts from the user's home directory and state lives under ~/.or/coding, so the server is not bound to whichever project launched it.

Jump to

Keyboard shortcuts

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