Documentation
¶
Index ¶
- type Action
- func (x *Action) Configure(ctx context.Context) error
- func (x *Action) Description() string
- func (x *Action) Flags() []cli.Flag
- func (x *Action) Helper() *cli.Command
- func (x *Action) ID() string
- func (x *Action) LogValue() slog.Value
- func (x *Action) Prompt(_ context.Context) (string, error)
- func (x *Action) Run(ctx context.Context, name string, args map[string]any) (map[string]any, error)
- func (x *Action) Specs(ctx context.Context) ([]gollem.ToolSpec, error)
- type Config
- type RepositoryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
Action is the warren-side wrapper around github.com/gollem-dev/tools/github. The Specs/Run logic lives in the external module; warren retains the CLI flags, the repository-hint YAML loading, and the planner Prompt() generated from those hints (the external module has no notion of repository hints).
func (*Action) Description ¶ added in v0.14.0
func (*Action) Prompt ¶
Prompt implements interfaces.Tool. It surfaces the configured repository hints to the planner.
type Config ¶
type Config struct {
Repositories []*RepositoryConfig `yaml:"repositories" json:"repositories"`
}
Config represents the GitHub repository-hint configuration file.
type RepositoryConfig ¶
type RepositoryConfig struct {
Owner string `yaml:"owner" json:"owner"`
Repository string `yaml:"repository" json:"repository"`
Description string `yaml:"description" json:"description"`
DefaultBranch string `yaml:"default_branch,omitempty" json:"default_branch,omitempty"`
}
RepositoryConfig represents a GitHub repository hint surfaced to the planner via Prompt(). It is advisory only and does not gate API access.
Click to show internal directories.
Click to hide internal directories.