artifacts

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DirName                  = ".decsr"
	MemoryDirName            = "memory"    // .decsr/memory/
	MemoryDBFile             = "memory.db" // .decsr/memory.db (sqlite cache, gitignored)
	ProjectConfigFile        = "project.yaml"
	ModulePathFile           = "module_path"
	RequirementsFile         = "requirements.md"
	VisionFile               = "vision.md"
	VisionApprovedFile       = "vision.approved"
	MoscowFile               = "moscow.md"
	ArchitectureFile         = "architecture.md"
	ArchitectureApprovedFile = "architecture.approved"
	ImplementationPlanFile   = "implementation_plan.md"
	PlanApprovedFile         = "plan.approved"
	PromptsFile              = "prompts.md"
	PromptsApprovedFile      = "prompts.approved"
	PlanFile                 = "plan.json"
	RawCoderOutputFile       = "coder_output.md"
	ChangesFile              = "changes.md"
	TestCmdsFile             = "test_cmds.txt"
	TestReportFile           = "test_report.json"
	TesterRawOutputFile      = "tester_output.md"
	ReviewFile               = "review.md"
	UXReviewFile             = "ux_review.md"
	SecurityReviewFile       = "security_review.md"
	NiceToHaveFile           = "nice_to_have.md"
	SummaryFile              = "summary.md"
	RunLogFile               = "runlog.txt"
	TaskSpecFile             = "task_spec.json"
	TaskPlanFile             = "task_plan.md"
	ContextPackFile          = "context_pack.md"       // PM-compacted repository context, user-editable
	ContextPackApprovedFile  = "context_pack.approved" // marker written after the context pack gate
	ResearchReportFile       = "research_report.md"    // brown/fix Phase 0 codebase analysis
	RunStateFile             = "run_state.json"        // links the active run to its top-level bead (resume)
	SubTasksFile             = "sub_tasks.json"        // structured decomposition for resume
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Workspace

type Workspace struct {
	Root string
	Dir  string
}

Workspace represents the .decsr directory inside a repo root.

func EnsureWorkspace

func EnsureWorkspace(root string) (Workspace, error)

EnsureWorkspace creates the .decsr directory if missing.

func (Workspace) AppendRunLog

func (w Workspace) AppendRunLog(message string) error

AppendRunLog appends a single line with RFC3339 timestamp.

func (Workspace) CleanGeneratedArtifacts

func (w Workspace) CleanGeneratedArtifacts()

CleanGeneratedArtifacts removes all generated artifacts from the workspace, forcing the pipeline to regenerate everything from scratch.

func (Workspace) FileExists

func (w Workspace) FileExists(name string) bool

FileExists returns true if the artifact file exists and is non-empty.

func (Workspace) MemoryDBPath

func (w Workspace) MemoryDBPath() string

MemoryDBPath returns the absolute path of the SQLite memory index.

func (Workspace) MemoryDir

func (w Workspace) MemoryDir() string

MemoryDir returns the absolute path of the workspace memory directory.

func (Workspace) Path

func (w Workspace) Path(name string) string

Path returns a path to a known artifact file inside the workspace. Returns an empty string if name is empty.

func (Workspace) ReadFile

func (w Workspace) ReadFile(name string) ([]byte, error)

func (Workspace) ReadJSON

func (w Workspace) ReadJSON(name string, v any) error

func (Workspace) WriteFile

func (w Workspace) WriteFile(name string, data []byte) error

func (Workspace) WriteJSON

func (w Workspace) WriteJSON(name string, v any) error

Jump to

Keyboard shortcuts

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