Log inGet started
What it does

dockLayout

Saves and loads the editor dock's split-and-tab arrangement. The live arrangement is read from the dock controller published by the dock service (EditorRegistry.dock()), serialized to JSON, and written to a layout file; loading reads it back and applies it live through the controller's one-shot restore. Layouts are stored under /zero/source/editor/layout/<name>.json, which is world content shared with collaborators and synced.

Exports

  • M.save(name?) -> boolean — snapshot the live dock arrangement to a named layout file (default "last"). Returns false when no dock is mounted or the layout is unavailable.
  • M.read(name?) -> string? — the saved layout's raw JSON, or nil if there is no such layout. Used to seed the dock at mount before the controller is published.
  • M.load(name?) -> boolean — restore a saved layout into the live dock, applied immediately. Returns false when no dock is mounted or no such layout exists.
  • M.list() -> {string} — saved layout names (the .json files under the layout dir, without the suffix).
  • M.DIR — the layout directory path.
  • M.DEFAULT — the default layout name ("last").

Usage

local Layout = require("modules.api.editor.dock_layout")
Layout.save()        -- snapshot the live arrangement to "last"
Layout.load()        -- restore "last" into the live dock
Layout.list()        -- { "last", "wide", ... }

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

This asset doesn't declare a schema or structured payload.

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

0items
This part has no composite children. See the Files segment for its leaf payloads.
This part has no leaf payloads.

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.