Skip to main content

Module edit

Module edit 

Source
Expand description

TOML round-trip editing for sessions.

Converts NDJSON sessions to human-readable TOML for editing in $EDITOR, then parses changes back while preserving non-editable fields (id, version, timestamps).

Structs§

EditableCommand
Editable representation of a single command.
EditableSession
Editable representation of a session for TOML serialization.

Functions§

edit_session
Edit a session interactively using $EDITOR with TOML format.
launch_editor
Launch an editor with the given content and return the edited result.
session_to_toml
Convert a Session to a TOML string for editing.
toml_to_session
Parse a TOML string back into a Session, merging with the original.