Module block

Module block 

Source

FunctionsΒ§

handle_create_block πŸ”’
Phase E.3 β€” create a block inside a tab. Validates parent tab exists; otherwise emits Event::Error (non-fatal). On success: assigns a UUID, appends to the tab’s block_ids, inserts into state.blocks, emits Event::BlockCreated.
handle_delete_block πŸ”’
Phase E.3 β€” delete a block from a tab. Idempotent: deleting a missing tab or missing block is a silent no-op.
handle_move_block πŸ”’
Phase E.5.5 β€” move a block from src_tab_id to dst_tab_id at dst_index (clamped). Updates block.tab_id. Cross-tab moves AND intra-tab repositioning both go through this command (the caller specifies the destination index regardless).
handle_update_block_meta πŸ”’
Phase E.5.3 β€” pass-through for block meta updates. Same shape.