agents

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package agents writes specrig.md from the parts every stack shares, agents/1, with a stack's slots filled, and judges whether AGENTS.md brings it in.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreaRows

func AreaRows(areas []rules.Area) string

AreaRows are the area table's rows, by the paths each area decides.

func ModeRows

func ModeRows(cases []string) string

ModeRows are the mode table's rows, the cases' patterns in spec's.

func Reference

func Reference(what string) (string, error)

Reference is the line that brings specrig.md into AGENTS.md.

func References

func References(agents string) bool

References says whether AGENTS.md brings specrig.md in, stale or not.

func Render

func Render(part string, slots map[string]string) (string, error)

Render fills every slot of the part; a slot left unfilled, or a value for a slot no part has, is an error.

func SpecrigMd

func SpecrigMd(slots map[string]string, own []string) (string, error)

SpecrigMd is specrig.md whole: the parts in agents/1's order, then the stack's own sections.

func Unknown

func Unknown(slots map[string]string) []string

Unknown are the slots given that no part has.

func Verdict

func Verdict(agents *string) string

Verdict is agents/1's on a service's AGENTS.md, nil where there is none: absent, stale, unreferenced or ok.

Types

This section is empty.

Jump to

Keyboard shortcuts

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