artifacts

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
	BusLogFile               = "runlog.jsonl" // event bus log, held open for the whole session
	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

func IsLiveLog added in v0.2.1

func IsLiveLog(name string) bool

IsLiveLog reports whether name is a log file the running process keeps open (the slog file and the event bus log). Workspace cleaning must never delete these: the open handle would keep writing to an unlinked inode and the run's log would be unrecoverable.

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