Plugins that need their own UI and richer themes should not force breaking
contract changes later, so the full shape is published now (uiApi 2.0,
bridgeApi 1.0) and every entry is marked stable or experimental:
- docs/plugin-architecture.md: plugin-owned views (sidebar, vm.tab,
settings, dialog) and the bridge methods (§5.6), the finer theme
contract with slot catalogue, layers, layout and icons (§5.1), and the
contract evolution rules (§6.3).
- ui-contract.ts and the new bridgeContract.ts list stable and
experimental entries; the build fails if a stable entry is not emitted
or an emitted entry is still experimental, and writes
bridge-contract.json next to ui-contract.json.
- internal/plugin/contract.go mirrors them as catalogs (contribution
points, slots with accepted content, view locations, layers, layout,
icons, bridge methods and events) and derives HostFeatures; tests keep
Go and TypeScript identical and require every contributes field to be
catalogued.
- Manifests gain views, theme layout and engines.bridgeApi. Unknown
slots, locations, layout values and icon names are rejected;
experimental use, unknown fields and missing engines ranges are doctor
warnings. Declared-but-unrendered entries (vmCards, statusItems,
settingsPages, vmTemplates, runtimeSources, runtimes, uiScripts,
diagnostics, theme icons and brandMark, panels outside
settings.plugin) are now marked experimental.
- The panel bridge resolves methods through the catalog, adds hello and
refuses experimental methods; panels get theme.changed and
locale.changed events; the Sidecar handshake and the Go SDK carry
uiApi, bridgeApi and features.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove backdrop-filter from software-composited overlays/dialogs under WebviewGpuIsDisabled: true, preload license text before mounting the modal, fix short-viewport double scrollbars and narrow-screen row wrapping, restore keyboard focus on modal close, wire RTL direction to Radix menus, add ArrowUp/ArrowDown support and signature-based layout measurement in Segmented, and harden CRITICAL-3/CRITICAL-4 static guards.
Scope `.menu` and `.tooltip` enter animations to their open data-state
selectors and explicitly set `animation: none` on `[data-state="closed"]`
so Radix Presence unmounts closing menus immediately instead of replaying
`menu-in` for 160ms when `data-menubar-switch` is removed during a sibling
switch. Also keep `data-menubar-switch` active across the switch frame,
narrow `onPointerDownOutside` to sibling menu buttons so clicks in the gap
still dismiss, fix `prefers-reduced-motion` close animations (adding
`fade-out` for closing toasts), and add a static guard in `test-i18n.mjs`.
Market page
- Card grid that fills the width; cards show only icon, name,
publisher (trust mark by color and icon), version and the action.
- Paints from cache via the new PeekPluginMarket binding, then revalidates;
cards reveal 24 at a time as the feed scrolls.
- Category chips come from the index (MarketBrowseResult.kinds) instead of
a fixed list; the alpha toggle and source badge are gone.
- Installed/Market is a segmented control; refresh now shows feedback.
- WordmarkLoader writes the Reims-Go wordmark stroke by stroke while the
market loads (static pulse under reduced motion).
Install and enable
- reims:plugin-install events drive a progress bar on the card.
- After install, a dialog offers to enable the plugin and lists what it can
do in plain words (PluginInfo.risks / MarketCatalogItem.risks, derived
from tier, permissions and contributions in risks.go).
- Enabling a plugin that provides UI languages switches to the first one
unless the current language is among them (PluginInfo.locales).
Trust
- A package installed from the project's own index, fetched over HTTPS in
this session, inherits the index's trust level when its SHA-256 matches.
Third-party indexes (REIMS_GO_PLUGIN_MARKET_URL) cannot vouch and show
every entry as community.
- Trust no longer waives review: official packages get the same scan,
high-risk approval and L3 hash check as any other; only builtin and
bundled plugins are pre-approved.
First launch
- When the OS language is not covered by zh-CN/en-US, the folder screen
looks up a matching pack once (SuggestLanguagePack) and offers to install
it; Continue installs and enables it so the UI follows the OS language.
Before setup the market keeps its index in memory only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>