bootstrap

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Cwd string

	Continue   bool
	Resume     bool
	NonTTYMode bool

	ApprovalMode  string
	ToolFactories []ToolFactory
	ModelFactory  agent.ModelFactory
}

Options controls how runtime bootstraps.

type Runtime

type Runtime struct {
	Cwd       string
	GitBranch string

	ApprovalEngine *approval.Engine

	Settings   config.Resolved
	Session    *agent.Session
	MCPManager *mcpclient.Manager
	MCPServers map[string]mcpclient.ServerConfig // for async connection in TUI
	EnvHint    string                            // non-empty when credentials come from environment variable
}

Runtime is the bootstrapped app runtime state.

func Boot

func Boot(opts Options) (*Runtime, error)

Boot creates a ready-to-run runtime.

func (*Runtime) Close

func (r *Runtime) Close()

Close releases runtime resources.

type ToolFactory

type ToolFactory func(cwd string) agentcore.Tool

ToolFactory creates one tool instance for the given workspace.

Jump to

Keyboard shortcuts

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