specs

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 7 Imported by: 0

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

func List(dir string) ([]Spec, error)

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.

Jump to

Keyboard shortcuts

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