Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion crates/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,12 +644,22 @@ impl Client {
/// Fetch up to `max_bytes` of the most recent PTY-log tail — bounded, for
/// rendering a compact screen preview without pulling the full replay cap.
pub async fn pty_replay_tail(&self, id: &str, max_bytes: usize) -> Result<PtyReplayResult> {
self.pty_replay_range(id, max_bytes, None).await
}
/// Fetch a bounded PTY-log range ending before `before_offset` (or at the
/// current tail when omitted). Returns absolute offsets for backward paging.
pub async fn pty_replay_range(
&self,
id: &str,
max_bytes: usize,
before_offset: Option<u64>,
) -> Result<PtyReplayResult> {
self.request(
ipc_method::SESSION_PTY_REPLAY,
&construct_protocol::PtyReplayParams {
session_id: id.to_string(),
max_bytes: Some(max_bytes),
before_offset: None,
before_offset,
},
)
.await
Expand Down
1 change: 1 addition & 0 deletions crates/mcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ reqwest.workspace = true
tokio-tungstenite.workspace = true
futures.workspace = true
image.workspace = true
vt100.workspace = true
Loading
Loading