cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

func GenerateAgentConfigs added in v1.0.0

func GenerateAgentConfigs(cwd string) error

GenerateAgentConfigs creates configuration files for all supported coding agents

func GetRootCmd

func GetRootCmd() *cobra.Command

GetRootCmd returns the root command for documentation generation

func SearchJSON

func SearchJSON(projectRoot string, query string, limit int) ([]store.SearchResult, error)

SearchJSON returns results in JSON format for AI agents

func SetVersion

func SetVersion(v string)

Types

type AgentConfig added in v1.0.0

type AgentConfig struct {
	Name        string
	Description string
	Files       []AgentFile
	Directories []string
}

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

type FileResultJSON struct {
	Path    string `json:"path"`
	ModTime string `json:"mod_time"`
}

FileResultJSON is the full output struct for JSON mode

type HookAction added in v1.0.0

type HookAction struct {
	Type    string `json:"type"`
	Command string `json:"command"`
}

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

Jump to

Keyboard shortcuts

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