Skip to main content

Module envelope

Module envelope 

Source
Expand description

What a client and this server exchange.

Both enums are tagged on kind, which is added beside a message’s own fields rather than replacing anything, so a reader can tell what a message is without knowing its shape. The tag is the contract: adding a variant is compatible and renaming one is not.

Re-exportsΒ§

use forge_primitives::document::DocumentKind; πŸ”’
use forge_primitives::git_diff::LayerState; πŸ”’
use forge_primitives::ClientConfig; πŸ”’
use forge_primitives::SessionSlot; πŸ”’
use forge_workspace::DictateAxes; πŸ”’
use forge_workspace::env::git_diff::content::FileContent; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’
use super::wire::ReviewedThreadWire; πŸ”’
use crate::live::fleet_news; πŸ”’
use crate::Command; πŸ”’
use crate::SessionUpdate; πŸ”’

StructsΒ§

BrowserFileWire
One chosen file on the wire: its name and its bytes, base64.
ClientSettings
What the client draws with, from forge.toml by way of the server.
SeatFrameWire
One repaired frame: the number the seat minted for it, and the update itself in the same shape a live update carries.

EnumsΒ§

ClientMessage
What a client sends.
ServerMessage
What the server sends.
SettingsRefusal
Why a settings save was refused.
Subject
What a client can watch. A subscription names one of these and is answered with that subject’s snapshot.

FunctionsΒ§

board_detail πŸ”’
The updates whose whole effect is the board’s own snapshot.
seat_liveness πŸ”’
The seat events a board row’s stale mark is read from.