dto

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SkillModeStatic       = "static"
	SkillModePersonalized = "personalized"
)

Skills generation modes

View Source
const (
	InstallScopeGlobal  = "global"
	InstallScopeProject = "project"
)

Skills install scopes

Variables

View Source
var ValidHookPresets = map[string]bool{
	"linting":                true,
	"security-guardrails":    true,
	"convention-enforcement": true,
	"all":                    true,
}

ValidHookPresets enumerates the preset names accepted by the hooks command.

View Source
var ValidTargets = map[string]bool{
	"claude":      true,
	"codex":       true,
	"antigravity": true,
}

ValidTargets maps valid target ecosystem names.

View Source
var ValidWorkflowTargets = map[string]bool{
	"claude":      true,
	"antigravity": true,
}

ValidWorkflowTargets maps valid workflow target ecosystem names.

Functions

This section is empty.

Types

type GenerationResult

type GenerationResult struct {
	OutputPath     string
	GeneratedFiles []string
	Model          string
	TokensIn       int
	TokensOut      int
}

GenerationResult represents the result of an LLM-based context generation

type HookConfig added in v1.19.0

type HookConfig struct {
	Category   string // "hooks"
	Preset     string // "linting" | "security-guardrails" | "convention-enforcement" | "all"
	Locale     string // "en" or "es"
	OutputPath string
	Install    string // install scope: "global", "project", or "" (custom output)
}

HookConfig holds configuration for generating Claude Code hook bundles.

Hooks are Claude Code-specific: there is no equivalent feature in Antigravity or Codex, so HookConfig has no Target field. Likewise, hooks are catalog-driven (no LLM personalization), so there is no Mode, Model, or ProjectContext field.

func (*HookConfig) Validate added in v1.19.0

func (hc *HookConfig) Validate() error

Validate validates the hook configuration.

type ProjectConfig

type ProjectConfig struct {
	Name         string
	Description  string
	Language     string
	Type         string
	Architecture string
	OutputPath   string
	Model        string
	Locale       string
	Mode         string // "analyze" for scanned projects, empty for generate
	Capabilities []string
	Metadata     map[string]string
}

ProjectConfig holds configuration for generating a project

func (*ProjectConfig) Validate

func (pc *ProjectConfig) Validate() error

Validate validates the project configuration

type ProjectInfo

type ProjectInfo struct {
	ID           string
	Name         string
	Language     string
	Type         string
	Architecture string
	OutputPath   string
	Capabilities []string
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

ProjectInfo represents information about a generated project

type ProjectListResult

type ProjectListResult struct {
	Projects []ProjectInfo
	Total    int
}

ProjectListResult represents the result of listing projects

type SkillsConfig

type SkillsConfig struct {
	Category       string // "architecture" or "workflow"
	Preset         string // "clean", "neutral", "conventional-commit", "all", etc.
	Mode           string // "static" or "personalized"
	Locale         string // "en" or "es"
	Target         string // target ecosystem: "claude", "codex", "antigravity"
	Model          string
	OutputPath     string
	ProjectContext string // project context for personalized mode
	Install        string // install scope: "global", "project", or "" (custom output)
}

SkillsConfig holds configuration for generating reusable Agent Skills

func (*SkillsConfig) Validate

func (sc *SkillsConfig) Validate() error

Validate validates the skills configuration

type SpecConfig

type SpecConfig struct {
	ProjectName     string
	FromContextPath string // path to existing output directory (contains AGENTS.md and context/)
	OutputPath      string
	Model           string
	Locale          string
}

SpecConfig holds configuration for generating SDD specifications

func (*SpecConfig) Validate

func (sc *SpecConfig) Validate() error

Validate validates the spec configuration

type WorkflowConfig added in v1.13.0

type WorkflowConfig struct {
	Category       string // "workflows"
	Preset         string // "spec-driven-change", "bug-fix", "release-cycle", "all"
	Mode           string // "static" or "personalized"
	Target         string // target ecosystem: "claude" or "antigravity"
	Locale         string // "en" or "es"
	Model          string // LLM model (personalized mode only)
	OutputPath     string
	ProjectContext string // project description (personalized mode only)
	Install        string // "global", "project", or "" (custom)
}

WorkflowConfig holds configuration for generating workflows.

func (*WorkflowConfig) Validate added in v1.13.0

func (wc *WorkflowConfig) Validate() error

Validate validates the workflow configuration.

Jump to

Keyboard shortcuts

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