Documentation
¶
Index ¶
- Constants
- type Workspace
- func (w Workspace) AppendRunLog(message string) error
- func (w Workspace) CleanGeneratedArtifacts()
- func (w Workspace) FileExists(name string) bool
- func (w Workspace) MemoryDBPath() string
- func (w Workspace) MemoryDir() string
- func (w Workspace) Path(name string) string
- func (w Workspace) ReadFile(name string) ([]byte, error)
- func (w Workspace) ReadJSON(name string, v any) error
- func (w Workspace) WriteFile(name string, data []byte) error
- func (w Workspace) WriteJSON(name string, v any) error
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 ¶
Workspace represents the .decsr directory inside a repo root.
func EnsureWorkspace ¶
EnsureWorkspace creates the .decsr directory if missing.
func (Workspace) AppendRunLog ¶
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 ¶
FileExists returns true if the artifact file exists and is non-empty.
func (Workspace) MemoryDBPath ¶
MemoryDBPath returns the absolute path of the SQLite memory index.
Click to show internal directories.
Click to hide internal directories.