Versions in this module Expand all Collapse all v0 v0.0.4 Nov 8, 2025 v0.0.3 Oct 17, 2025 Changes in this version type CliToolRequest + ArgsJSONString string v0.0.2 Oct 16, 2025 v0.0.1 Oct 14, 2025 Changes in this version + func MergeEnv(base, overrides map[string]string) map[string]string + type CliTool struct + Def Definition + func (t *CliTool) Info(ctx context.Context) (*schema.ToolInfo, error) + func (t *CliTool) InvokableRun(ctx context.Context, argumentsInJSON string, _ ...tool.Option) (string, error) + type CliToolRequest struct + Args []string + Workdir string + type Definition struct + Args []string + Command string + Desc string + Env map[string]string + Name string + func MustNewDefinition(name, command, desc string, env map[string]string) Definition + func NewDefinition(name, command, desc string, env map[string]string) (Definition, error) + type Outcome struct + Command string + CompletedAt time.Time + Duration time.Duration + ExitCode int + Ran bool + StartedAt time.Time + Stderr string + Stdout string + func (o Outcome) String() string + type SubprocessExecutor struct + func (e *SubprocessExecutor) Execute(ctx context.Context, argv []string, env map[string]string, workdir string) Outcome