initflow

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func DetectAgentTools(repoRoot string) []AgentTool

DetectAgentTools returns the known agent tooling surfaces, annotated with repo-local evidence where present.

func RunAgentToolPick added in v1.1.0

func RunAgentToolPick(repoRoot string) ([]AgentTool, error)

RunAgentToolPick lets interactive users review detected agent tooling. The caller decides whether to persist or generate anything for selected tools.

func SelectAgentTools added in v1.1.0

func SelectAgentTools(repoRoot string, selections []string, skip bool) ([]AgentTool, error)

SelectAgentTools resolves CLI-provided tooling selections. Empty selections mean "detected only"; "auto" also means detected only; "all" selects all.

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

type DetectedPattern struct {
	Label       string
	Match       string
	DefaultKind string
	FileCount   int
}

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).

Jump to

Keyboard shortcuts

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