Skip to content

aeterna_layout@0.2.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 09:55
Immutable release. Only release title and notes can be modified.
8daafec

Added (0.2.0)

  • Self-tests (0.2) registered with aeterna_core: placement_math, import_validate (server), clamp_on_grow (client mock), preset_apply (eye) and grid_drag, export_import, export_copy, reset_from_menu (ped; reset_from_menu is destructive). While a self-test holds the editor, Done acts as Cancel and a snap pick is not saved. Written by Claude Code - Claude Opus 5.5 (agent engineer).
  • Clamp on size change: an element that grows (a re-add with a new w/h, a scale change, a screen size change reported by the page) is moved back on screen, also outside the editor. The clamped place is not saved, so a shrinking element returns to the saved place.
  • Presets: Config.presets (default, compact, centered; up to 8), validated at start, applied from a Preset select in the editor (session only: Done saves, Cancel undoes).
  • Grid: drawn while dragging; the toolbar's snap control is a select (Off and Config.snapSteps), kept in client KVP aeterna_layout:prefs:v1.
  • Export / import as text (aeterna-layout:1: + JSON), parsed and validated in Lua; a refused text changes nothing and shows the first error path. Export holds the saved places of registered elements only (at most Config.maxElements) and is refused with a message when the text would exceed 8192 bytes.
  • NUI messages editor:clamp, editor:presets, export:show, import:result; callbacks preset, snap, import, exportOpen, screen.
  • The editor stays open and ignores input while a core focus overlay pauses it.
  • Theme type tokens (--fs-1…--fs-4, --lh) and the theme preset (data-preset) in the page.
  • Locale keys for presets, the snap select, the menu panel and export / import.

Changed (0.2.0)

  • The aeterna_uikit menu entry opens a panel with Edit, Reset all (confirm, then saves at once) and Export / import (Config.menuPanel, default true). Upgrade note: Config.menuPanel = false keeps the 0.1 behaviour. aeterna_layout:cl:open takes an optional { mode = 'editor' | 'share' }, or { mode = 'arm' | 'reset', token }: Reset all from the panel runs only with the one-time token the server armed when the player pressed it, within 30 s and only while the confirm row is open.

Capabilities (oss.json)

capability declared
http []
commands []
registeredCommands ["aeterna_layout","+aeterna_layout_edit","-aeterna_layout_edit"]
convars {"read":[],"write":[]}
netEvents {"server":[],"client":["aeterna_layout:cl:open"]}
nui true
db {"tables":[],"ddl":false}
files {"write":[]}

Verify before you install

gh attestation verify <asset> --repo aeterna/nakara-oss --signer-workflow aeterna/nakara-oss/.github/workflows/release.yml
sha256sum -c SHA256SUMS