context

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config, repoRoot string) *Generator

func (*Generator) Generate

func (g *Generator) Generate(opts Options) (string, error)

func (*Generator) GenerateJSON

func (g *Generator) GenerateJSON(opts Options) (JSONOutput, error)

type JSONOutput

type JSONOutput struct {
	Project   string        `json:"project,omitempty"`
	RepoRoot  string        `json:"repo_root"`
	Agent     bool          `json:"agent"`
	Task      string        `json:"task,omitempty"`
	Files     []string      `json:"files,omitempty"`
	About     string        `json:"about,omitempty"`
	MaxTokens int           `json:"max_tokens,omitempty"`
	Sections  []JSONSection `json:"sections"`
	Markdown  string        `json:"markdown"`
}

type JSONSection

type JSONSection struct {
	Title string `json:"title"`
	Body  string `json:"body"`
}

type Options

type Options struct {
	Agent     bool
	Task      string
	About     string
	MaxTokens int
}

Jump to

Keyboard shortcuts

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