agent

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentFile

func AgentFile(root, name string) string

AgentFile returns "<root>/.kiro/agents/<name>.json".

func AgentPromptFile

func AgentPromptFile(root, name string) string

AgentPromptFile returns "<root>/.kiro/agent-prompts/<name>.md".

func Generate

func Generate(opts GenerateOptions) error

Generate interactively creates a new .kiro agent config and prompt file.

func InitHook

func InitHook(opts InitHookOptions) error

InitHook interactively adds or removes kapm hook entries in .kiro/agents/*.json.

func Update

func Update(opts UpdateOptions) error

Update interactively updates an existing .kiro agent config.

Types

type GenerateOptions

type GenerateOptions struct {
	Root  string
	Force bool
	In    io.Reader
	Out   io.Writer
}

type InitHookOptions

type InitHookOptions struct {
	Root       string
	Remove     bool
	Executable string
	In         io.Reader
	Out        io.Writer
	Err        io.Writer
}

InitHookOptions configures an init-hook run.

type UpdateOptions

type UpdateOptions struct {
	Root string
	Name string
	In   io.Reader
	Out  io.Writer
}

UpdateOptions configures an interactive agent update run.

Jump to

Keyboard shortcuts

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