cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 33 Imported by: ? 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

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

View Source
var Version = "0.0.0-dev"

Version is set via -ldflags at build time.

Functions

func Execute

func Execute() error

Execute runs the root command and returns any error.

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.

Directories

Path Synopsis
Package main is the CLI entry point for the aether colony system.
Package main is the CLI entry point for the aether colony system.

Jump to

Keyboard shortcuts

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