Skip to main content

Module serialize

Module serialize 

Source
Expand description

Markdown + YAML frontmatter serialization for issues.

See parse_issue / serialize_issue for the on-disk format.

Functions§

content_hash
Compute a content hash used for optimistic concurrency (same idea as the edit tool’s expected_hash). Uses the std default hasher for zero deps.
issue_filename
Filename for an issue: zero-padded 4-digit id + slugified title.
issues_dir
Walk up from start looking for a .oxicode/ directory. Returns the path to <root>/.oxicode/issues. If no .oxicode/ exists, returns <start>/.oxicode/issues (lazily created on first write).
parse_issue
Parse a markdown-with-frontmatter file into an Issue.
serialize_issue
Serialize an issue back to the markdown-with-frontmatter form.