Documentation
¶
Index ¶
- func Execute() error
- func GenerateAgentConfigs(cwd string) error
- func GetRootCmd() *cobra.Command
- func SearchJSON(projectRoot string, query string, limit int) ([]store.SearchResult, error)
- func SetVersion(v string)
- type AgentConfig
- type AgentFile
- type ClaudeSettings
- type FileResultCompactJSON
- type FileResultJSON
- type HookAction
- type SearchResultCompactJSON
- type SearchResultJSON
- type SettingsHooks
- type ToolHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAgentConfigs ¶ added in v1.0.0
GenerateAgentConfigs creates configuration files for all supported coding agents
func GetRootCmd ¶
GetRootCmd returns the root command for documentation generation
func SearchJSON ¶
SearchJSON returns results in JSON format for AI agents
func SetVersion ¶
func SetVersion(v string)
Types ¶
type AgentConfig ¶ added in v1.0.0
AgentConfig represents a coding agent configuration
func SupportedAgentConfigs ¶ added in v1.0.0
func SupportedAgentConfigs() []AgentConfig
SupportedAgentConfigs returns all supported coding agent configurations
type AgentFile ¶ added in v1.0.0
type AgentFile struct {
TemplateName string // Name in embedded templates
DestPath string // Destination path relative to project root
Description string // Human-readable description
}
AgentFile represents a file to be generated for an agent
type ClaudeSettings ¶ added in v1.0.0
type ClaudeSettings struct {
EnabledPlugins map[string]bool `json:"enabledPlugins,omitempty"`
Hooks *SettingsHooks `json:"hooks,omitempty"`
}
ClaudeSettings represents the .claude/settings.json structure
type FileResultCompactJSON ¶ added in v1.0.0
type FileResultCompactJSON struct {
Path string `json:"path"`
}
FileResultCompactJSON is the minimal output struct for compact mode
type FileResultJSON ¶ added in v1.0.0
FileResultJSON is the full output struct for JSON mode
type HookAction ¶ added in v1.0.0
HookAction represents an action within a hook
type SearchResultCompactJSON ¶
type SearchResultCompactJSON struct {
FilePath string `json:"file_path"`
StartLine int `json:"start_line"`
EndLine int `json:"end_line"`
Score float32 `json:"score"`
}
SearchResultCompactJSON is a minimal struct for compact JSON output (no content field)
type SearchResultJSON ¶
type SearchResultJSON struct {
FilePath string `json:"file_path"`
StartLine int `json:"start_line"`
EndLine int `json:"end_line"`
Score float32 `json:"score"`
Content string `json:"content"`
}
SearchResultJSON is a lightweight struct for JSON output (excludes vector, hash, updated_at)
type SettingsHooks ¶ added in v1.0.0
type SettingsHooks struct {
UserPromptSubmit []ToolHook `json:"UserPromptSubmit,omitempty"`
PreToolUse []ToolHook `json:"PreToolUse,omitempty"`
PostToolUse []ToolHook `json:"PostToolUse,omitempty"`
Stop []ToolHook `json:"Stop,omitempty"`
}
SettingsHooks contains hook configurations
type ToolHook ¶ added in v1.0.0
type ToolHook struct {
Matcher string `json:"matcher"`
Hooks []HookAction `json:"hooks"`
}
ToolHook represents a single tool hook configuration