cli

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExecutableCtl    = "briefkit-ctl"
	ExecutableMCP    = "briefkit-mcp"
	ExecutableRunner = "briefkit-runner"
)

Variables

View Source
var ErrExecutableNotFound = errors.New("executable not found")

Functions

func CreateConfigRepositoryFromConfig

func CreateConfigRepositoryFromConfig(config StoreConfig) (briefkit.ConfigRepository, error)

func CreateExecutionRepositoryFromConfig

func CreateExecutionRepositoryFromConfig(config StoreConfig) (briefkit.ExecutionRepository, error)

func CreateLoggerFromConfig

func CreateLoggerFromConfig(config LogConfig) (*slog.Logger, error)

func CreateWorkspaceManagerFromConfig added in v0.8.0

func CreateWorkspaceManagerFromConfig(config StoreConfig) (*workspace.Manager, error)

CreateWorkspaceManagerFromConfig creates a WorkspaceManager rooted under the configured state path.

func ResolveExecutable

func ResolveExecutable(ctx context.Context, executableName string) (string, error)

func ResolveRuntimeLogDir

func ResolveRuntimeLogDir() (string, error)

Types

type LogConfig

type LogConfig struct {
	Level  string `short:"v" help:"Log level" default:"info" enum:"debug,info,warn,error"`
	Format string `help:"Log format" default:"text-color"`
	Quiet  bool   `help:"Disable logging output"`
}

type StoreConfig

type StoreConfig struct {
	StatePath       string `short:"s" help:"Base directory for runtime state." default:"~/.orbiqd/briefkit/state" env:"BRIEFKIT_STATE_PATH"`
	AgentConfigPath string `help:"Directory with agent definition files." default:"~/.orbiqd/briefkit/agents" env:"BRIEFKIT_AGENT_CONFIG_PATH"`
}

Jump to

Keyboard shortcuts

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