npm.io
0.0.427 • Published 1 month ago

@tutti-os/workbench-snapshot

Licence
—
Version
0.0.427
Deps
0
Size
105 kB
Vulns
0
Weekly
0

@tutti-os/workbench-snapshot

Framework-neutral workbench snapshot contract helpers for Tutti workbench surfaces.

The package exports stable TypeScript types, normalization helpers, validation helpers, and the published JSON schema at:

@tutti-os/workbench-snapshot/schema.json

Snapshots may include an additive layoutBasis containing the surface size and layout constraints used to produce persisted frames. Workbench hosts use that basis to restore window and space frames relative to a different surface. They may also include an additive lockedLayout for a Mission Control layout that must continue to reflow its node set across subsequent surface resizes. Snapshots written before this field existed remain valid schema-version-1 snapshots and restore through the host's conservative legacy bounds policy.