report

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MarkerStart = "<!-- DARK-FACTORY-REPORT"
	MarkerEnd   = "DARK-FACTORY-REPORT -->"
)

Variables

This section is empty.

Functions

func Suffix

func Suffix() string

Suffix returns the markdown text that dark-factory appends to every prompt. It instructs the AI agent to output a structured completion report.

Types

type CompletionReport

type CompletionReport struct {
	Status   string   `json:"status"`   // "success", "partial", "failed"
	Summary  string   `json:"summary"`  // one-line description of what was done
	Blockers []string `json:"blockers"` // why it's not success (empty on success)
}

CompletionReport is the structured output the AI agent must produce at the end of every prompt execution.

func ParseFromLog

func ParseFromLog(logFile string) (*CompletionReport, error)

ParseFromLog reads the last N bytes of a log file and extracts the CompletionReport. Returns nil if no report found (graceful — old prompts won't have one).

Jump to

Keyboard shortcuts

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