config

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 32 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

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

View Source
const (
	PageMin = 60
	PageMax = 100
)
View Source
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 AgentLineFor(m runplan.AgentMap, step, kind, settings string) agentLine

func AgentsCommand

func AgentsCommand() *cli.Command

func Command

func Command() *cli.Command

func CompleteFlow

func CompleteFlow(ctx context.Context, cmd *cli.Command)

func CompletingFlow

func CompletingFlow(args []string) bool

func DoctorCommand

func DoctorCommand() *cli.Command

func FlowCommand

func FlowCommand() *cli.Command

func FlowFlag

func FlowFlag() cli.Flag

func FlowFlags

func FlowFlags(cmd *cli.Command) (string, error)

func InitCommand

func InitCommand() *cli.Command

func PageWidth

func PageWidth(widest, limit int) int

func PrintAgentMap

func PrintAgentMap(w io.Writer, m runplan.AgentMap, asJSON bool) error

PrintAgentMap prints the merged map, one key per line with its origin.

func RenderHuman

func RenderHuman(w io.Writer, v *View, limit int)

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

func VerifyDiff(ctx context.Context, lay *layout.Layout) (string, []string, error)

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

func VerifyLine(f facts.Field) string

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.

Jump to

Keyboard shortcuts

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