Documentation
¶
Index ¶
- func MergeSelectedProfiles(base *config.RepoConfig, selectedIDs []string, customPaths []string, ...) (*config.RepoConfig, error)
- func RunProfilePick(repoRoot string) (selected []string, customPaths []string, customRules []config.SourceRule, ...)
- type AgentTool
- type AgentToolFile
- type DetectedPattern
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeSelectedProfiles ¶
func MergeSelectedProfiles(base *config.RepoConfig, selectedIDs []string, customPaths []string, customRules []config.SourceRule) (*config.RepoConfig, error)
MergeSelectedProfiles merges built-in profile selections and optional custom markdown paths/rules into a copy of base. Empty selectedIDs leaves base unchanged (aside from custom additions).
func RunProfilePick ¶
func RunProfilePick(repoRoot string) (selected []string, customPaths []string, customRules []config.SourceRule, err error)
RunProfilePick runs the interactive profile multi-select and optional custom markdown wizard. It returns selected profile IDs (excluding custom), plus paths and rules contributed by the custom wizard.
Types ¶
type AgentTool ¶ added in v1.1.0
type AgentTool struct {
ID string
Label string
Description string
Detected bool
Evidence []string
Planned []string
}
AgentTool describes one agent/editor surface DevSpecs can prepare command files for. J01 detects and selects these; J02 owns actual file generation.
func DetectAgentTools ¶ added in v1.1.0
DetectAgentTools returns the known agent tooling surfaces, annotated with repo-local evidence where present.
func RunAgentToolPick ¶ added in v1.1.0
RunAgentToolPick lets interactive users review detected agent tooling. The caller decides whether to persist or generate anything for selected tools.
type AgentToolFile ¶ added in v1.1.0
type AgentToolFile struct {
ToolID string
ToolLabel string
Path string
Status string
Invocation string
}
AgentToolFile describes one generated adapter file.
func GenerateAgentToolFiles ¶ added in v1.1.0
func GenerateAgentToolFiles(repoRoot string, tools []AgentTool, force bool) ([]AgentToolFile, error)
GenerateAgentToolFiles writes deterministic adapter files for selected tools. Existing non-matching files are left untouched unless force is true.
type DetectedPattern ¶
DetectedPattern describes a filesystem-derived glob→kind proposal for one source directory.
func DetectPatterns ¶
func DetectPatterns(repoRoot, sourcePath string) []DetectedPattern
DetectPatterns scans a markdown source directory (repo-relative) up to two levels and returns proposed glob→kind mappings based on common naming conventions. The default kind is inferred from the directory name (e.g. "decisions" → decision).