Σ SigmaUI 0.1 preview
SIGMAUI / DOCUMENTATION

Editing operation protocol

Operations are the supported framework interface for both manual editing and agents.

Versioned, reviewable batches

Transaction schema 1 binds project, document, base revision, permitted selection and operations. Layout tree version 1 stores kind, proportions, adaptive columns, collapse threshold and named responsive order. Validation rejects stale revisions, unknown IDs and unsupported shapes.

Framework operation reference

layout.set replaces validated layout intent. layout.setProportions changes an existing split and requires a total of 100. layout.setCollapse sets a threshold and complete slot order. slot.assign rearranges existing direct children and requires structural authority. semantic.set updates token choices or explicitly resets inheritance. Existing set, style, insert and history behavior remains available.

Protected data

IDs, type, versions, trusted bindings and host prices are outside editable properties. Hero CTA destinations and Checkout field identities are protected. Slot membership constraints apply to structural changes. Agent proposals cannot insert, remove or move nodes or register definitions.

Document CLI

Use --document for an explicitly selected JSON file or --page for a bounded document mapping in sigmaui.config.json. inspect, validate and preview are read-only. apply requires an exact expected revision, interactive human review, a cooperating-writer lock, byte comparison after review, a backup and atomic replacement.

sigmaui inspect --page home --project examples/framework
sigmaui inspect --document examples/framework/home.json --element hero-primary
sigmaui validate examples/framework/proposal.json --document examples/framework/home.json
sigmaui preview examples/framework/proposal.json --document examples/framework/home.json
sigmaui apply examples/framework/proposal.json --document examples/framework/home.json --expected-revision 0