bootstrap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 35 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
	TaskRuntime    *task.Runtime
	TeamRegistry   *team.Registry
	TeammateEvents *agent.TeammateEventHub

	Settings      config.Resolved
	ModelName     string // display form: "provider/model" or session-restored name
	Session       *agent.Session
	SessionStore  *storage.Store
	PluginCatalog *plugin.Catalog
	SkillCatalog  *skill.Catalog
	MCPManager    *mcpclient.Manager
	MCPServers    map[string]mcpclient.ServerConfig // for async connection in TUI
	HookRunner    *hooks.Runner                     // nil if no hooks configured
	EnvHint       string                            // non-empty when credentials come from environment variable
	PlanSlug      string                            // restored plan slug (empty if no plan)
	PlanPhase     string                            // restored plan phase
	PlanPreMode   string                            // restored plan pre-mode
	// contains filtered or unexported fields
}

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