layout

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package layout exports the compatibility on-disk layout for one persisted Compozy run.

Internal writers still use these constants, and the public package continues to expose them for callers that need the compatibility artifact names, even though run reading itself is now daemon-backed.

Index

Constants

View Source
const (
	// RunDBFileName is the basename of the per-run SQLite operational store.
	RunDBFileName = "run.db"
	// RunMetaFileName is the basename of the per-run metadata file written by
	// the journal and read by the public reader.
	RunMetaFileName = "run.json"
	// EventsLogFileName is the basename of the append-only event log inside
	// the run directory.
	EventsLogFileName = "events.jsonl"
	// RunResultFileName is the basename of the terminal run result document.
	RunResultFileName = "result.json"
	// JobsDirName is the basename of the subdirectory that holds per-job
	// artifacts (prompt, stdout, stderr).
	JobsDirName = "jobs"
	// TurnsDirName is the basename of the subdirectory that holds per-turn
	// transcript artifacts.
	TurnsDirName = "turns"
)

File and directory names that live under one run directory.

Variables

This section is empty.

Functions

func EventsLogPath

func EventsLogPath(runDir string) string

EventsLogPath returns the absolute path to the events log inside runDir.

func JobsDir

func JobsDir(runDir string) string

JobsDir returns the absolute path to the jobs subdirectory inside runDir.

func ResultPath

func ResultPath(runDir string) string

ResultPath returns the absolute path to the result file inside runDir.

func RunDBPath added in v0.2.0

func RunDBPath(runDir string) string

RunDBPath returns the absolute path to the run database file inside runDir.

func RunMetaPath

func RunMetaPath(runDir string) string

RunMetaPath returns the absolute path to the run metadata file inside runDir.

func TurnsDir

func TurnsDir(runDir string) string

TurnsDir returns the absolute path to the turns subdirectory inside runDir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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