Expand description
Pure logic for zenith workspace scratch, zenith workspace candidate,
zenith workspace promote, zenith workspace bundle,
zenith workspace unbundle, and zenith workspace finalize.
Submodules:
Structs§
- Scratch
NewOutcome - Outcome of
scratch new: the created candidate id plus any non-fatalwarningsurfaced while transparently attaching adoc-id(e.g. the file was stamped but the initial history version could not be recorded).
Functions§
- bundle_
doc - Pack the session store for the document at
doc_pathintoout_path. - bundle_
doc_ in - Testable variant with an explicit store root.
- candidate_
set_ status - Transition
cand_id’s lifecycle status tostatus_strand return a confirmation line. - candidate_
set_ status_ in - Testable variant with an explicit store root.
- finalize
- Apply each rejected candidate’s cleanup-policy to the scratch store and return a human-readable or JSON report.
- finalize_
in - Testable variant with an explicit store root.
- promote
- Promote candidate
cand_idfrom the session store into the pageinto_pageof the deliverable document atdoc_path, and write the result back. - promote_
in - Testable variant with an explicit store root.
- scratch_
list - List all scratch candidates for the document at
doc_path. - scratch_
list_ in - Testable variant with an explicit store root.
- scratch_
new - Record the document bytes as a new scratch candidate.
- scratch_
new_ in - Testable variant with an explicit store root.
- scratch_
show - Show detail for the candidate with
cand_idin the document atdoc_path. - scratch_
show_ in - Testable variant with an explicit store root.
- unbundle_
doc - Restore a document’s session store from the
.zenithbundleatbundle_path. - unbundle_
doc_ in - Testable variant with an explicit store root.