Skip to main content

Module session_views

Module session_views 

Source
Expand description

Stable host projections shared by terminal and RPC session views.

Structs§

BranchView
One durable branch in the append-only session tree.
McpServerView
One bounded safe MCP server projection for terminal and RPC hosts.
SessionListItem
One bounded host-facing session catalog row.
SessionSnapshotPage
One bounded page of canonical durable records plus the authoritative tail.
SessionStateView
Compact mode-neutral state returned to automation clients.
SessionStatsView
Rebuildable transcript statistics returned by host queries.
SessionTreeView
Deterministic tree projection over one canonical snapshot.

Constants§

MAX_SNAPSHOT_PAGE_RECORDS
Maximum records returned by one RPC snapshot page.

Functions§

mcp_servers
Creates safe MCP health/catalog projections in canonical server and alias order.
session_list
Creates stable catalog projections without exposing adapter types.
session_tree
Projects the append-only branch graph for terminal and RPC consumers.
snapshot_page
Creates a bounded canonical replay page after an optional durable cursor.