bootstrap

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLLMProvider

func NewLLMProvider(cfg config.Config) (llm.Provider, error)

func ResolveConfigPath

func ResolveConfigPath(configPath string) string

func ResolvePromptDir

func ResolvePromptDir(workspaceDir, promptDir string) string

func ResolveRuntimeBinary

func ResolveRuntimeBinary(workspaceDir string) string

func ResolveRuntimeStateRoot added in v0.3.13

func ResolveRuntimeStateRoot(aliceHome string) string

Types

type CodexAuthSyncReport added in v0.5.2

type CodexAuthSyncReport struct {
	Target string
	Source string
	Copied bool
}

func EnsureCodexAuthForCodexHome added in v0.5.2

func EnsureCodexAuthForCodexHome(targetCodexHome string, sourceCodexHomes ...string) (CodexAuthSyncReport, error)

type ConfigReloadReport

type ConfigReloadReport struct {
	AppliedFields         []string
	RestartRequiredFields []string
}

type ConnectorRuntime

type ConnectorRuntime struct {
	App                 *connector.App
	Processor           *connector.Processor
	AutomationEngine    *automation.Engine
	RuntimeAPI          *runtimeapi.Server
	RuntimeAPIBaseURL   string
	RuntimeAPIToken     string
	AutomationStatePath string
	CampaignStatePath   string
	PromptLoader        *prompting.Loader
	Config              config.Config
	// contains filtered or unexported fields
}

func BuildConnectorRuntime

func BuildConnectorRuntime(cfg config.Config, provider llm.Provider) (*ConnectorRuntime, error)

func (*ConnectorRuntime) ApplyConfigReload

func (r *ConnectorRuntime) ApplyConfigReload(next config.Config) (ConfigReloadReport, error)

func (*ConnectorRuntime) Run

func (r *ConnectorRuntime) Run(ctx context.Context) error

type RuntimeManager added in v0.4.0

type RuntimeManager struct {
	Config   config.Config
	Runtimes []*ConnectorRuntime
}

func BuildRuntimeManager added in v0.4.0

func BuildRuntimeManager(cfg config.Config) (*RuntimeManager, error)

func (*RuntimeManager) Run added in v0.4.0

func (m *RuntimeManager) Run(ctx context.Context) error

type SkillLinkReport

type SkillLinkReport struct {
	CodexHome  string
	Discovered int
	Linked     int
	Updated    int
	Unchanged  int
	Failed     int
}

func EnsureBundledSkillsLinked

func EnsureBundledSkillsLinked(workspaceDir string) (SkillLinkReport, error)

func EnsureBundledSkillsLinkedForCodexHome added in v0.4.0

func EnsureBundledSkillsLinkedForCodexHome(codexHome string, allowedSkills []string) (SkillLinkReport, error)

type SoulTemplateReport added in v0.5.2

type SoulTemplateReport struct {
	Path    string
	Created bool
}

func EnsureBotSoulFile added in v0.5.2

func EnsureBotSoulFile(soulPath string) (SoulTemplateReport, error)

Jump to

Keyboard shortcuts

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