Expand description
Job directory management for agent-exec v0.1.
Resolution order for the jobs root:
--rootCLI flagAGENT_EXEC_ROOTenvironment variable$XDG_DATA_HOME/agent-exec/jobs~/.local/share/agent-exec/jobs
Structs§
- Ambiguous
JobId - Sentinel error type when a job ID prefix matches multiple job directories.
Used by callers to emit
error.code = "ambiguous_job_id"instead ofinternal_error. - Invalid
JobState - Sentinel error type for invalid job state transitions.
Used by callers to emit
error.code = "invalid_state"instead ofinternal_error. - JobDir
- Handle to a specific job’s directory.
- JobNot
Found - Sentinel error type to distinguish “job not found” from other I/O errors.
Used by callers to emit
error.code = "job_not_found"instead ofinternal_error. - Tail
Metrics - Metrics returned by
JobDir::read_tail_metrics.
Functions§
- resolve_
root - Resolve the jobs root directory following the priority chain.