Documentation
¶
Overview ¶
Package config holds the commands that report and settle a project's setup: f10 config, f10 init, f10 flow, f10 agents and f10 doctor.
Index ¶
- Constants
- func AgentLineFor(m runplan.AgentMap, step, kind, settings string) agentLine
- func AgentsCommand() *cli.Command
- func Command() *cli.Command
- func CompleteFlow(ctx context.Context, cmd *cli.Command)
- func CompletingFlow(args []string) bool
- func DoctorCommand() *cli.Command
- func FlowCommand() *cli.Command
- func FlowFlag() cli.Flag
- func FlowFlags(cmd *cli.Command) (string, error)
- func InitCommand() *cli.Command
- func PageWidth(widest, limit int) int
- func PrintAgentMap(w io.Writer, m runplan.AgentMap, asJSON bool) error
- func RenderHuman(w io.Writer, v *View, limit int)
- func ScopedVerifyLine(eff *facts.Effective, prose facts.Field, base string, changed []string, ...) string
- func VerifyDiff(ctx context.Context, lay *layout.Layout) (string, []string, error)
- func VerifyLine(f facts.Field) string
- type View
Constants ¶
const ( PageMin = 60 PageMax = 100 )
const AgentReachNone = "no lever yet: runs inline on the task agent's profile"
AgentReachNone is the line for a step no lever reaches.
Variables ¶
This section is empty.
Functions ¶
func AgentLineFor ¶
func AgentsCommand ¶
func CompletingFlow ¶
func DoctorCommand ¶
func FlowCommand ¶
func InitCommand ¶
func PrintAgentMap ¶
PrintAgentMap prints the merged map, one key per line with its origin.
func RenderHuman ¶
RenderHuman prints the header and the field table; the origin column is the feature. limit is the terminal width, 0 when piped.
func ScopedVerifyLine ¶
func ScopedVerifyLine(eff *facts.Effective, prose facts.Field, base string, changed []string, diffErr error) string
ScopedVerifyLine is the frontmatter's verify list cut to what the diff calls for, with a declared prose heading beneath as the rules. An unreadable diff runs every command: a wrong skip costs more than a slow one.
func VerifyDiff ¶
VerifyDiff is every path the checked-out branch changes against its base: commits, staged and unstaged work, and untracked files, so a new file counts before it is committed. Local refs only, since the load runs it.
func VerifyLine ¶
VerifyLine is the verify the steps run, resolved once: its origin, the file it came from, then the commands or the judgment left to the model.
Types ¶
type View ¶
type View struct {
CheckoutRoot string `json:"checkoutRoot"`
StorageRoot string `json:"storageRoot"`
Instructions string `json:"instructions"` // source description, f10-load-project.sh wording
NestedIgnored string `json:"nestedIgnored,omitempty"`
Remote string `json:"remote,omitempty"`
PlansDir string `json:"plansDir"`
Plans []string `json:"plans,omitempty"`
Fields []facts.Field `json:"fields"`
Unrecognized []facts.Field `json:"unrecognized,omitempty"`
Layering string `json:"layering"`
Visibility string `json:"visibility"`
Storage string `json:"storage"`
TrackerKind facts.TrackerKind `json:"trackerKind,omitempty"`
IDPrefix string `json:"idPrefix,omitempty"`
IDPrefixOrigin facts.Origin `json:"idPrefixOrigin,omitzero"`
IDPrefixDerived bool `json:"idPrefixDerived,omitempty"`
PriorityLabels map[string]string `json:"priorityLabels,omitempty"` // host label to priority level, from tracker.priority
TrackerStatus map[string]string `json:"trackerStatus,omitempty"` // started and shipped to the tracker's words, from tracker.status
TitleTemplate string `json:"titleTemplate,omitempty"` // tracker.title, the template task titles are written through
Review facts.Review `json:"review,omitzero"` // the remote review's four facts, zero when none is declared
MergeMethod string `json:"mergeMethod,omitempty"`
Catchup string `json:"catchup"`
CatchupStacked string `json:"catchupStacked"`
Traces bool `json:"traces"`
Lore string `json:"lore"`
LoreGate string `json:"loreGate"`
StaleAfter facts.StaleAfter `json:"staleAfter,omitzero"`
DriverTimeout string `json:"driverTimeout"` // driver_timeout, as a Go duration
BundleMaxLines int `json:"bundleMaxLines"`
Flows map[string]flow.Flow `json:"flows"`
FlowByArea map[string]string `json:"flowByArea,omitempty"`
DriveEnv []string `json:"driveEnv,omitempty"`
Watch string `json:"watch"`
WatchCatchup bool `json:"watchCatchup"`
WatchCI bool `json:"watchCI"`
ReportBack bool `json:"reportBack"`
Debug bool `json:"debug"`
DebugCostly string `json:"debugCostly"`
UpkeepPaths []string `json:"upkeepPaths,omitempty"`
Verify []facts.VerifyDecl `json:"verify,omitempty"`
VerifyOrigin facts.Origin `json:"verifyOrigin,omitzero"`
Agents []runplan.AgentEntry `json:"agents,omitempty"` // the merged agents map, the user's file under the project's, each key with its origin
Paces []paceEntry `json:"paces,omitempty"` // every pace's keys, built-ins under the user's under the project's, each with its origin
Pace *paceEntry `json:"pace,omitempty"` // the default pace, when any layer names one
Ceiling []paceEntry `json:"ceiling,omitempty"` // the project's cap on every pace, a key per entry, except last
Facts []facts.Fact `json:"facts"` // every typed value with its origin
Problems []facts.Problem `json:"problems,omitempty"`
Roots []string `json:"roots,omitempty"` // F10_ROOTS; empty means -C takes paths only
}
A View is the one model both outputs render - the human table and --json marshal the same struct, so they cannot disagree.