maestro

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedReference embed.FS

EmbeddedReference contains all files from the docs/ai directory

Functions

This section is empty.

Types

type HostDeps

type HostDeps struct {
	Logger *logging.Logger
	Runner *runner.Runner
	// Dispatcher, when set, makes the host own LLM selection and execution:
	// Maestro's tools only describe the work (a DispatchRequest) and this turns
	// it into a DispatchResult. With a host Dispatcher present, Maestro does not
	// choose the model and the LLM-management tools are not exposed.
	Dispatcher llm.Dispatcher
	// ImportAllowed, when set, confines file_import to paths the host permits:
	// it is consulted with the resolved absolute path of every file the import
	// would read. Unset means imports may come from anywhere (standalone).
	ImportAllowed func(absPath string) bool
}

HostDeps encapsulates the host-provided services

type ImportAndConvertResult

type ImportAndConvertResult struct {
	Project       string `json:"project"`
	Source        string `json:"source"`
	Recursive     bool   `json:"recursive"`
	FilesImported int    `json:"files_imported"`
	LinksImported int    `json:"links_imported"`
	LinksRemoved  int    `json:"links_removed,omitempty"` // symlinks dropped for escaping the project
	FilesRefused  int    `json:"files_refused,omitempty"` // entries skipped because the host does not permit reading them
	ImportedTo    string `json:"imported_to"`
	// Conversion results (only present if convert=true)
	Converted      *int `json:"converted,omitempty"`
	ConvertSkipped *int `json:"convert_skipped,omitempty"`
	ConvertFailed  *int `json:"convert_failed,omitempty"`
}

ImportAndConvertResult combines import and optional conversion results

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider implements toolspec.ToolProvider for Maestro.

func (*Provider) RegisterTools

func (p *Provider) RegisterTools(deps toolspec.Deps) []toolspec.ToolDefinition

RegisterTools initializes the Maestro services from deps.Cfg and returns the tools.

Jump to

Keyboard shortcuts

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