feat(view): expose record timeline embedding facade#10
Merged
Conversation
Add a narrow fmtview::view entry point that accepts backend-neutral record timelines while keeping crossterm lifecycle and rendering details private. Re-export the complete source vocabulary so downstream applications only need the fmtview dependency. Split stable snapshot viewing from live follow refresh without losing bounded tail-first history. Backward structure navigation now loads older timeline batches before reporting that no previous structure exists. Document the embedding contract and cover snapshot, follow, lazy navigation, downstream compilation, and terminal cleanup behavior.
Separate initial tail anchoring from follow state and arm bounded older preload only after backward navigation intent. Remove the misleading public notice option, which rendered ordinary embedder text as an error.
fix(view): keep snapshots anchored at the lazy tail
siriusctrl
marked this pull request as ready for review
July 22, 2026 10:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fmtview::viewembedding facade around backend-neutralRecordTimelinesourcesfmtviewpackageWhy
Fiasco and other applications need to inspect committed record timelines without depending directly on
fmtview-coreor reimplementing terminal lifecycle. Snapshot inspection must open at the committed tail and load history lazily, while live inspection needs the existing attached/detached/paused follow behavior.Public contract
The facade fixes the view to JSONL and re-exports the complete timeline source vocabulary.
ViewOptions::default()is a stable snapshot;follow = trueenables refresh and follow controls.Validation
cargo fmt --all --checkcargo test --workspace --all-targets --lockedfmtviewcargo clippy --workspace --all-targets --locked -- -D warningsRUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps --lockedcargo package -p fmtview-core --list --allow-dirtycargo package -p fmtview --list --allow-dirtycargo publish -p fmtview-core --dry-run --locked --allow-dirtyscriptPTY smoke of the built embedding example usingr,j,r,qtarget/fmtview-embedding-pty/pty.logandchecks.txtin the implementation worktreePackaging note
The root
fmtviewpublish dry-run reaches tarball verification and then resolves the already-published crates.iofmtview-core 0.6.0, which does not contain this PR's new snapshot constructor. This PR intentionally does not change versions or publish. Perdocs/releasing.md, the release that includes this change must bump both packages, publish the matchingfmtview-corefirst, wait for registry availability, and then run the rootfmtviewdry-run.