Documentation
¶
Overview ¶
Package cmd implements the Aether CLI commands using Cobra.
Package cmd implements the Aether CLI commands using Cobra.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "0.0.0-dev"
Version is set via -ldflags at build time.
Functions ¶
func ExitWithError ¶
func ExitWithError(err error)
ExitWithError prints the error to stderr and exits with code 1.
Types ¶
type AntipatternFinding ¶
type AntipatternFinding struct {
Pattern string `json:"pattern"`
File string `json:"file"`
Line int `json:"line,omitempty"`
Count int `json:"count,omitempty"`
Message string `json:"message"`
}
AntipatternFinding represents a single finding from the antipattern scanner.
type ContextCapsuleOutput ¶
type ContextCapsuleOutput struct {
Exists bool `json:"exists"`
State string `json:"state"`
NextAction string `json:"next_action"`
WordCount int `json:"word_count"`
PromptSection string `json:"prompt_section"`
Goal string `json:"goal"`
Phase int `json:"phase"`
TotalPhases int `json:"total_phases"`
PhaseName string `json:"phase_name"`
}
ContextCapsuleOutput is the typed output for context-capsule (DIFF-02). The shell version uses jq string interpolation; this uses typed structs with JSON marshaling.
type ErrorPattern ¶
type ErrorPattern struct {
Name string `json:"name"`
Description string `json:"description"`
Severity string `json:"severity"`
FirstSeen string `json:"first_seen"`
LastSeen string `json:"last_seen"`
Occurrences int `json:"occurrences"`
Projects []string `json:"projects"`
Resolved bool `json:"resolved"`
}
ErrorPattern represents a single error pattern in error-patterns.json.
type ErrorPatternsFile ¶
type ErrorPatternsFile struct {
Version float64 `json:"version"`
Patterns []ErrorPattern `json:"patterns"`
}
ErrorPatternsFile represents the error-patterns.json file structure.
type GraveEntry ¶
type GraveEntry struct {
Agent string `json:"agent"`
Reason string `json:"reason"`
Phase string `json:"phase,omitempty"`
Created string `json:"created_at"`
}
GraveEntry represents a failed agent record stored in graveyard.json.
type PRContextOutput ¶
type PRContextOutput struct {
Schema string `json:"schema"`
GeneratedAt string `json:"generated_at"`
Branch string `json:"branch"`
CacheStatus map[string]string `json:"cache_status"`
Queen map[string]interface{} `json:"queen"`
Signals map[string]interface{} `json:"signals"`
Hive map[string]interface{} `json:"hive"`
ColonyState map[string]interface{} `json:"colony_state"`
Blockers map[string]interface{} `json:"blockers"`
Decisions map[string]interface{} `json:"decisions"`
Midden map[string]interface{} `json:"midden"`
PromptSection string `json:"prompt_section"`
CharCount int `json:"char_count"`
Budget int `json:"budget"`
TrimmedSections []string `json:"trimmed_sections"`
Warnings []string `json:"warnings"`
FallbacksUsed []string `json:"fallbacks_used"`
}
PRContextOutput is the typed output for pr-context (CMD-17). It assembles comprehensive context from 10+ sources for CI agents and worker spawning.
type PendingDecision ¶
type PendingDecision struct {
ID string `json:"id"`
Type string `json:"type,omitempty"`
Description string `json:"description"`
Phase *int `json:"phase,omitempty"`
Source string `json:"source,omitempty"`
Resolution string `json:"resolution,omitempty"`
Resolved bool `json:"resolved"`
CreatedAt string `json:"created_at"`
ResolvedAt string `json:"resolved_at,omitempty"`
}
PendingDecision represents a pending decision that needs resolution.
type PendingDecisionFile ¶
type PendingDecisionFile struct {
Decisions []PendingDecision `json:"decisions"`
}
PendingDecisionFile is the JSON structure for pending-decisions.json.
type Suggestion ¶
type Suggestion struct {
ID string `json:"id"`
Type string `json:"type"`
Content string `json:"content"`
Reason string `json:"reason"`
Priority string `json:"priority"`
Hash string `json:"hash,omitempty"`
}
Suggestion represents a single pheromone suggestion produced by analysis.
type SuggestionsFile ¶
type SuggestionsFile struct {
Suggestions []Suggestion `json:"suggestions"`
}
SuggestionsFile represents the top-level suggestions.json structure.
Source Files
¶
- alias_cmds.go
- autofix.go
- autopilot.go
- binary_download.go
- build_flow_cmds.go
- chamber.go
- changelog.go
- clash.go
- colony_cmds.go
- completion.go
- context.go
- context_update.go
- council.go
- curation_cmds.go
- deprecated_cmds.go
- emoji_audit.go
- error_cmds.go
- eventbus.go
- exchange.go
- flag_cmds.go
- flags.go
- generate_cmds.go
- graph_consolidation_cmds.go
- grave.go
- helpers.go
- history.go
- hive.go
- immune.go
- init_cmd.go
- init_research.go
- install_cmd.go
- instinct.go
- internal_cmds.go
- learning.go
- learning_cmds.go
- maintenance.go
- memory_details.go
- midden_cmds.go
- normalize_args.go
- pending_decision.go
- phase.go
- pheromone_mgmt.go
- pheromone_write.go
- pheromones_read.go
- queen.go
- registry.go
- root.go
- security_cmds.go
- session.go
- session_cmds.go
- setup_cmd.go
- skills.go
- spawn.go
- state_cmds.go
- state_extra.go
- status.go
- suggest.go
- survey.go
- swarm.go
- swarm_display.go
- trust.go
- update_cmd.go
- verify_claims.go
- version.go
- view_state.go
- worktree_merge.go