# UnifiedWriter v5.65.3 Development Menu Flattening

## Purpose

v5.65.3 keeps the v5.65.2 responsibility boundary and adjusts only the menu depth.

The top-level `Development` menu is already the EndUser-facing macro/script authoring surface.  Therefore an additional first-level `Macros` submenu is redundant and has been removed.

## Menu organization

### Development

`Development` now directly contains the EndUser macro/script commands:

- Macro diagnostics
- VBA code viewer
- Script engine
- VBA to JS translator

There is no `Development > Macros` first-level submenu.

### Help

Internal UnifiedWriter package-development diagnostics remain under `Help` during development builds.  These entries are temporary conveniences for the package development team and should be removed from product builds after the same information is covered by documentation, automated regression reports, or developer-only integration pages.

## View / read-only mode

In `mode: "view"` or `readOnly: true`, the menu pruning logic keeps only view-safe Development entries:

- Macro diagnostics
- VBA code viewer

Script execution and VBA-to-JS conversion remain edit-mode operations and are hidden or rejected by command guards.

## Contribution API impact

`writer.menu.development` now directly references macro command IDs instead of wrapping them in `writer.menu.macro`:

- `writer.macro.diagnostics`
- `writer.macro.codeViewer`
- `writer.macro.run`
- `writer.macro.translateVba`

This is a UI organization change only.  Command IDs, command dispatch, macro safety policy and Help-hosted internal diagnostics are unchanged.
