Skip to content
Developer Preview

SessionFoldView

The fold as a consumer may READ it.

An ALLOWLIST (Pick), not Omit of the mutator names. Omit never checks its keys against the type, so every future public SessionFold method would land on this barrel-exported “read-only” view silently — and the contract already plans one: seedFromSnapshot, a mutator that would feed the fold past apply’s turn routing and discard latch. Pick constrains its keys to keyof SessionFold, so both drift directions are compile errors. This is the same conversion FoldItems made one layer down.

Source

clients/sdk-ts/src/facade/session.ts:131

{
"kind": "Type alias",
"canonicalPath": "SessionFoldView"
}