Documentation
¶
Overview ¶
Package specs enumerates Markdown specifications mounted into the loop system prompt via the --specs flag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spec ¶
type Spec struct {
// Path is the absolute filesystem path of the spec.
Path string
// Rel is the path relative to the user-supplied specs directory; this is
// what we surface in prompts because it is shorter and stable.
Rel string
// Bytes is the raw file size on disk.
Bytes int64
}
Spec describes a single Markdown spec file.
func List ¶
List walks dir recursively and returns every `.md` / `.markdown` file in deterministic (alphabetical) order. dir is empty or unset returns (nil, nil) so callers can treat "no specs" as a non-error.
Hidden directories (those starting with `.`) are skipped to avoid leaking `.git`, `.ralph`, and similar internal state into the prompt.
Click to show internal directories.
Click to hide internal directories.