Navigation
ELOWEN · Documentation

Last updated: October 27, 2026

Browse documentation · Browser bundle and runtime
Developer reference

Browser bundle and runtime

UI API 70 publishes components.ResizablePanels, the draggable split for a page that is an application with panes side by side, and types two existing members in the kit: components.Pager (PagerProps) and hooks.useFillHeight. A full-height page declares web.layout: "workbench" (plus web.wordmark: false when it owns its bottom edge) and gives its frame the inline height useFillHeight measures; the split fills that frame:

const frame = React.useRef<HTMLDivElement>(null);
const height = runtime.hooks.useFillHeight(frame);
const mobile = runtime.hooks.useMobileViewport();
return (
  <div ref={frame} className="min-h-0 overflow-hidden" style={height === undefined ? undefined : { height }}>
    {mobile === undefined ? null : (
      <C.ResizablePanels storageKey="email:panes" activePaneId={mobile ? currentPane : undefined} panes={[
        { id: 'email-folders', defaultSize: 240, minSize: 200, separatorLabel: s.folderPaneWidth, children: <Sidebar /> },
        { id: 'email-messages', defaultSize: 380, minSize: 280, separatorLabel: s.messageListWidth, children: <MessageList /> },
        { id: 'email-conversation', minSize: 360, children: <Conversation /> },
      ]} />
    )}
  </div>
);

A number is pixels and a string without a unit a percentage of the split. defaultSize is where a pane opens and where a double-click on its separator returns it (omit it on the pane that takes the rest); separatorLabel, the localized name of the separator after a pane, is required on every pane but the last. The host owns the drag, the arrow keys, the reset, the separator's look and the remembered layout (browser-local, under storageKey); pane ids must be unique on the page, and renaming one forgets the stored layout. Where the panes do not fit side by side (a phone, or a frame narrower than their minimums), pass activePaneId instead of rendering one pane on its own: the split then shows only that pane while the others stay mounted, inert and zero-wide, so a draft in a hidden pane survives the switch, and the side-by-side widths come back as the reader left them when you unset it. Decide when the panes fit in your page (the email page compares its frame width with the panes' minimums); the split does not measure that for you. Details and limits: shared resizable panes and full-height application pages.

UI API 69 adds explicit ordinary-user pages to the existing browser page seam. Use a separate bundle for an authenticated callback when the main UI is administrator-only:

{
  "web": {
    "entry": "web/index.js",
    "css": "web/index.css",
    "adminOnly": true,
    "userPages": [{
      "route": "mail/callback",
      "entry": "web/mail-callback.js",
      "css": "web/mail-callback.css",
      "requiresApiVersion": 69,
      "strings": { "title": "Mailbox connected" }
    }]
  }
}

Routes are exact non-root relative paths: no wildcard, parameters, query, hash, empty or dot segments. Entries must stay within the plugin and cannot reuse main JS or CSS paths. User pages do not accept navigation, panels, slots, layout or presentation declarations. Build their entries separately with the existing UI-kit build helper; it does not inject registration. The callback registers only its exact page through window.__elowenRegisterPluginUi('msteams', { requiresApiVersion: 69, pages: { 'mail/callback': Callback } }, 'mail/callback'). Use runtime.hooks.usePluginStrings('msteams', 'mail/callback'); locale overrides belong at web.userPages["mail/callback"].strings in i18n/cs.json, i18n/sk.json and other plugin locales. Only page-local strings merge with the English manifest strings. Omitting the page argument keeps existing main registrations and string hooks unchanged.

The existing checkPluginLanguages validator in scripts/plugin-language-fields.mjs, also used by core's language CLI, checks this exact namespace against each page's manifest strings in every required locale. It rejects missing or whitespace-only values, orphan routes or string keys and page override members other than strings. Main web.strings cannot satisfy a page's missing translation. Page translations preserve the exact set of {placeholder} tokens, including {s}, just as plugin alert templates do; token order and repetition do not matter. For example, a Teams callback title containing {mailbox} must retain that token in Czech and Slovak. Validation reads only manifests and locale files, adds no runtime work and requires no page translations when no page strings are declared.

The host opens /p/msteams/mail/callback as an ordinary framed page, never the main bundle's overlay. It requests /api/plugins/ui?plugin=msteams&page=mail%2Fcallback&lang=cs and receives an array containing only that page's assets, API version and localized strings, with empty navigation/panel/slot lists. The unfiltered listing does not advertise these pages. Hash assets stay at /api/plugins/msteams/web/<hash>.js?page=mail%2Fcallback (and the equivalent CSS URL). An actual authenticated principal and the existing plugin grant are required for discovery and assets, including during setup. Administrator-only main assets remain forbidden with a forged page selector. Unknown targets and missing/revoked grants return an empty targeted listing; grant-denied assets still return 403, and unknown/stale assets return 404. The host shows its existing not-granted state, with plugin management offered only to administrators. Root/page registrations, loads and locale caches are separate; a missing scoped registration is a load failure, not a root fallback. A main nav/settings route already advertised by the authorized shell stays mounted during a pending targeted lookup, preserving live component state across section navigation (for example Chatbot's deck search and open record). An unadvertised callback waits for its exact discovery without borrowing the main overlay or any previous page's data. The same version gate and stat/byte/hash cache apply. OAuth state, code exchange and destination routing remain the plugin's responsibility, not a new host authentication framework.

UI API 66 adds RailRow.note, the row's second line under the name: the lead and the figure column stay on the first line, the note runs one line deep beneath the name, and the caller insets it so it sits under the name rather than under whatever the label carries before it. A bundle calling it declares requiresApiVersion: 66 in its manifest and browser registration.

UI API 65 publishes components.RailMenu, components.MarkStrip and components.HoverCard plus utils.formatSpeed and utils.apiErrorMessage. RailMenu is the rail's popover — a panel of rail rows opened by the caller's own trigger, so the collapsed rail's instrument keeps its shape and its accessible name while the panel holds rows that carry their own buttons. MarkStrip is a row of small marks that each name themselves on hover. HoverCard opens after 600 ms of pointer rest, bounds and scrolls its body and never moves focus. utils.formatSpeed is the ONE rendering of a measured generation rate (tokens per second) and utils.apiErrorMessage the host's error shaping. The bundled Subagent rail is the consumer of all three components and of both helpers.

UI API 64 publishes components.ConnectionStatus, the one presentation of a connection's separate transport and model retry lanes: it counts down only a fresh locally owned schedule and says unknown or stale observations as such. The same API requires desktop ticket expiresAt and an AbortSignal in both ticket callbacks.

UI API 63 publishes components.TerminalSurface, the shared xterm screen, together with the dock additions that let a source draw its own window: PluginDockOperation.icon and .caption, PluginOperationDockSource.view and hooks.useOperationDock().open(id, plugin, { show: true }). Mount the surface for one session with its sessionKey, the plugin route that mints a one-shot ticket and the plugin's WebSocket path; it owns the terminal, the socket, the resume offsets, the copy/paste keys and the appearance settings. A window that ENDS a session calls components.TerminalSurface.release(sessionKey) (its own X, or an acknowledgement of an exited row); one that merely minimizes does not, which is what keeps the shell alive while the reader looks elsewhere. The full prop contract, the states, the frame protocol and the caps are in the terminal surface, and the dock's view rules in the operation dock. A bundle calling any of them requires UI API 63 in both its manifest and browser registration. Dock and Project card-action icons use the host's closed, case-sensitive lucide names, for example Terminal, not terminal; unknown names render the puzzle fallback. The Terminal plugin omits the optional dock caption, keeping the project in the bubble tooltip and accessible name through the operation title. Its own bare window retains Modal.title for accessibility without a visible caption. A token-bordered, rounded frame surrounds the padded terminal surface; two shared ghost icon buttons with white minus and X glyphs float 8px inside its top-right corner on every width, without adding clearance to the even 16px terminal padding. They have no circular outline or resting background; shared hover, keyboard focus and hit targets remain intact. While the surface connects or reconnects, core renders a centered spinner and, once retry progress exists, the shared connection status with its retry action; plugins do not import or copy that block.

UI API 62 publishes utils.projectName(project) alongside components.ProjectIcon. Use this pair for every Project name and icon, including dropdown options and selected summaries. Computer Projects use the paired device's computer.label and the laptop glyph; host and managed Projects retain their slug and stored icon or folder glyph. PluginUiProject.computer describes the existing /projects projection. Pass the complete Project to the icon, never a reconstructed slug-only row. Both helpers are synchronous; only an existing stored icon triggers the shared cached image read. The Editor's administrator picker is a consumer. Sites resolves its Project ids through the existing shared hooks.useProjects() catalog before rendering this pair; a Project outside that account's catalog has no identity row, including on a shared Site. The host query cache shares the single catalog read. Text-only clients use core's packages/plugin-shared/projectChoice.mjs.

A bundle calling projectName requires UI API 62 in both its manifest and browser registration. Older hosts refuse mounting it through the existing version gate.

UI API 74

Require 74 in both the manifest and browser registration when using these additions. They extend the existing runtime, not a second drag library or browser cache:

  • components.SortableList with hooks.useSortableItem provides the Projects list/grid gesture: mouse and touch hold the handle for 400 ms within 8 px; keyboard uses that same handle.
  • components.SortableBoard, SortableBoardItems and hooks.useSortableBoardContainer / useSortableBoardItem provide sortable columns and cards in one context. Spread itemProps on the mouse surface, and handleProps with its ref on the touch/keyboard handle. A held card still opens its ContextMenu; a held handle moves it. Render the live children(arrangement) and a plain renderOverlay presentation. Apply the final move optimistically and roll the host cache back on failure. onItemMove(move, onSettled) must call onSettled after success or rollback; Kanban supplies it to the native mutation options. The board retains its cross-column preview across asynchronous cache updates so the destination grip keeps keyboard focus. Snapshot removal invalidates the drag and its eventual drop, discarding both preview and overlay without calling the move callback. Card tiles can attach their node ref directly through the typed CardGridItemProps.ref, which targets the painted surface. For filtered cards provide visible itemIds plus the column's full order; announcements and returned moves use that full order.
  • components.AvatarStack draws the existing overlapping account avatars: <C.AvatarStack users={members} max={5} overflowLabel={s.moreMembers} />. Without a cap it draws all faces; without an overflow label the count chip is decorative.
  • components.Badge now has BadgeProps: existing state tones, outline, and categorical label-1 through label-6 over the existing chart palette. Label ink is skin-adjusted for contrast; these choices are labels, not success/failure states.
  • components.ContextMenu has ContextMenuProps and the complete action/submenu/divider/edit grammar. For inline rename pass { label, edit: { value, onCommit } }; a successful promise resolves true to close, while false keeps the draft after the caller reports the error.

Projects and the registry Kanban board consume these seams. They add no network reads or persistent state: the feature owns data, authorization, loading/empty/error views and saving. Board parts outside their provider and invalid item-order references throw instead of drawing a nonfunctional drag target. Older hosts refuse bundles requiring API 74 before mounting. See shared sortable, label tones and avatar stacks.

UI API 73

Use runtime.apiUrl(path) when a browser primitive needs the URL of an authenticated API resource, for example <img src={runtime.apiUrl(attachmentPath)}>. The input is a slash-prefixed, API-relative path, without a copied BFF prefix. The request engine uses the same composer: native URL parsing normalizes same-origin dot segments and preserves query and hash. Empty, relative, absolute-URL and foreign-origin inputs throw, including //evil.example/x and the backslash form /\evil.example/x. The browser sends its same-origin session cookie; the BFF keeps the daemon bearer credential server-side. URL construction grants no access and performs no request. Email's attachment URL helper and Teams' profile-photo and app-package download consumers use this seam. Teams' people DTO retains an API-relative path with its AAD segment encoded once; the browser adds the host prefix without re-encoding it. Daemon-produced non-API paths such as /hooks/chatbot/..., bundle URLs and CSS assets remain outside this helper.

runtime.navigate(href, { replace: true }) replaces the current history entry for query-state synchronization or an in-app OAuth return. Without options, ordinary page navigation pushes; plugin overlays keep the backing tree mounted through native history, replacing within the same overlay and pushing when opening another. Explicit replace also passes through that overlay helper, rather than unmounting the page underneath. Cronjob's AutomationPage uses replace while consuming a run link or changing a selected job. Teams' mail callback uses the same member for its successful return and its error-return action. It clears callback parameters immediately through native history replacement, shares one exchange promise across StrictMode replay and navigates only from the active observer; final routing stays with the host.

Call hooks.useLocation() at component top level and derive route selections from its { pathname, search, hash, query } on every render, not from an initial state copy. search is the serialized query without a leading question mark; query is its string map. Next owns pathname/search; hash follows the initial document, popstate, hashchange and host navigation. The hook is synchronous, with no loading or query-error state. Cronjob's AutomationPage preserves unrelated query parameters and hash when rebuilding a replacement href. OAuth callbacks still scrub sensitive query parameters synchronously before asynchronous work; reactive location is not a substitute for that scrub.

A bundle using apiUrl, replace navigation, useLocation or these published typed contracts declares requiresApiVersion: 73 in both its manifest and browser registration. An older host does not promise these contracts and refuses the newer requirement. Import types from the kit, not private host declarations. The query projections below expose optional data and error, isLoading, isError and refetch(). A missing value before a read or while disabled is not a successful empty result; render loading, loaded-empty and error states separately.

hooks.useMe(enabled?) reads { user?: PluginUiMe }, including the account id, username, optional name and administrator flag. Disabling it prevents a new read, not cache reuse; a loaded response may have no user. Cronjob's account-specific controls consume it and must not treat a loading or failed read as a new identity.

hooks.useUsers(enabled?) reads PluginUiUser[] (id, username and optional name/avatar). A successful empty array is distinct from loading or failure. Teams' people workspace uses the catalog for account mapping; the hook adds no account-management authority.

hooks.usePluginDetail(name) reads a plugin's config editor detail, masked config and optional revision; null disables the read. Chatbot's shared settings and Teams' settings use it. No data is not an empty valid config: wait for loading, expose errors with retry, and keep persistence and revision handling with the shared config editor.

hooks.useBrainModels() reads selectable { provider, model }[]. Cronjob's creation dialog uses it. An empty successful catalog means no choices; loading and error must not select a made-up default. The catalog is not permission to run a model.

hooks.useNotificationDestinations() reads { value, id, platform, kind, label, group?, subtitle? }[], where kind is channel, thread, chat or person. Cronjob's AutomationPage consumes the host's cached destination listing. Show a successful empty catalog separately from loading/error; selection neither authenticates delivery nor creates a destination.

hooks.useProjectEnvironmentState(id) reads { environment: { state } }, with state unprovisioned, starting, running, stopped, failed, deleting or deleted. A null id disables the read; absent data is not stopped. Editor's ProjectGitPanel uses it for managed Projects and owns loading/error presentation. The hook performs no provisioning or start action.

hooks.useQuery(options) is the host's React Query hook with the library's native generic options/result types. Skills' catalog reader owns its query key, validator, enabled condition and loaded-empty presentation; loading and error stay in the query result. Reuse this cache, rather than constructing a plugin-local QueryClient.

hooks.useMutation(options) retains native mutation variables, result and error types. Todo's task mutations use its pending/success/error lifecycle; idle is not success and there is no automatic empty-result UI. Plugins own their domain request and invalidate after success.

hooks.useQueryClient() returns that same native QueryClient synchronously, with no loading/empty/error wrapper. Todo's mutations use it to update or invalidate their own account/conversation query keys; obtaining it performs no network request.

utils.DEFAULT_RANGE is the shared seven-day DateRange (from and to are null). Stats uses it for initial and reset selection. It is synchronous data, not a loaded usage result; the range's consumer still handles its own loading, empty and failed reads.

utils.isStoredRange(raw) synchronously validates a stored date-range string and returns a boolean, false for malformed input. Stats uses it with persistent state. There is no loading or error result and no storage write; use the caller's default for rejected persisted input.

utils.openBrainSessionWindow(sessionId) opens the canonical chat URL in an isolated new tab (noopener,noreferrer). Chatbot's conversation and feedback registers consume it. It returns void, not loaded conversation data or a promise of popup success; absent session ids must not create an action. The destination keeps normal authorization and loading/error states.

utils.TODO_PREVIEW_ITEMS supplies the shared preview size; TodoCard uses it instead of a second constant. It is synchronous and carries no read, loading or failure state.

utils.todoPreviewItems(items, limit) projects the bounded preview of status-bearing rows, keeping open work before completed work. TodoCard consumes it with the shared limit. Empty input yields no rows; it performs no fetch and cannot turn an unavailable task read into a successful empty list.

utils.editorTheme() returns 'elowen-oled' or 'elowen-paper' from the current host color scheme. Editor's panes consume it synchronously; it has no loading/error/empty wrapper and does not fetch a theme.

utils.defineEditorThemes(monaco) registers those two host themes through the supplied editor.defineTheme(name, theme) callback. Editor's panes pass it to Monaco's beforeMount. It returns void with no query state; exceptions from the supplied editor are not a successful theme load. The helper accepts the minimal structural theme writer described by ElowenUiRuntime; its theme payload is the base/inherit/rules/colors subset written by the host palettes and is assignable to Monaco's native IStandaloneThemeData. Core and plugin runtime declarations derive this one contract instead of duplicating an unknown-valued writer.

components.EntityList accepts required children and div HTML attributes. Cronjob's job register uses it as the list container; the caller chooses loading, empty and error content, and the component performs no read.

components.EntityRow accepts required children, optional selected, busy and interactive, plus div HTML attributes. Cronjob supplies job rows and their actions. busy is presentation, not a request or error handler; empty/error/loading branches stay with the caller.

components.WorkspaceMetric accepts label: string, value: ReactNode and optional icon: LucideIcon. Teams' workspace supplies its people/mapping metrics. Pass an explicit unavailable value when a read is pending or failed, never an invented successful zero; the component itself has no data lifecycle.

components.ControlSurfaceState accepts required children, optional tone: 'default' | 'danger' and className. Cronjob's history uses it around LoadingState and an error/retry block; callers likewise supply EmptyState for a loaded-empty result. It is a shared frame, not a query or a silent fallback.

API 73 also publishes components.MasterDetailGrid, the existing responsive workspace grid, and components.MarkdownPreview({ source, className }), backed by the host sanitized Markdown parser; the caller owns layout and loading/error/empty presentation. Stats draws its loaded register in MasterDetailGrid. Stats and Skills mark successful workspace reads with the published StatusDot beside a visible readiness word, never during loading or failure; Stats requires API 73 and the StatusDot-only Skills change requires at least API 57. Raw HTML uses SandboxedHtml instead. Explicit atomic config drafts are documented in settings.

The same cut removes private Todo, Skills and Editor clients, hooks and domain types from the host runtime. Those plugins own requests and response validation through authenticated runtime.api and the host's single query cache; there is no compatibility client. No mounted consumer means no domain read, and constructing a mutation hook makes no write. Todo parks null-session reads and removes write controls while rendering pushed card/rail rows. Skills keeps explicit owner addressing and revision-aware saves. Editor parks null-Project/System Git reads and preserves errors rather than inventing a clean tree. None of these clients adds a timer or model request. Release matching plugin bundles with the API 73 host: a minimum-version mount check cannot protect an older bundle from a removed member. The explicit chatRailCards registration and its lossless fallback rules are described with the browser contributions below.

Context menus (API 71)

UI API 71 publishes components.ContextMenuTrigger (ContextMenuTriggerProps, ContextMenuPoint in the kit) and extends the item grammar the two host menus share. A target opens the same rows from its kebab (components.ActionMenu) and from a right-click, the Menu key or Shift+F10, or a touch long press (components.ContextMenu, positioned at a point the bundle holds in state):

const [menu, setMenu] = React.useState<{ x: number; y: number; items: MenuEntry[] } | null>(null);
return <>
  <C.ContextMenuTrigger onOpen={(point) => setMenu({ ...point, items: cardMenu(card) })}>
    <C.CardGridItem>…</C.CardGridItem>
  </C.ContextMenuTrigger>
  {menu ? <C.ContextMenu state={menu} onClose={() => setMenu(null)} label={s.messageActions} /> : null}
</>;

The trigger renders no element; its single child must spread unknown props onto a DOM element, as the host components do. It opens under the pointer, under the focused element's bottom-left for the keys, and under the finger after a 500 ms resting touch or pen press (iOS included); moving or scrolling cancels the press, its release click is swallowed, and Android's own long-press menu never opens a second time. Text fields, selected text and events from a portal inside the child keep the browser's behaviour, an inner trigger wins over an enclosing one and disabled turns it off. A control inside whose own hold is another gesture (a drag handle) stops its pointerdown and contextmenu. Do not add onContextMenu, key or timer handlers of your own.

ContextMenu entries are { label, icon?, onClick, danger?, disabled?, checked? }, a submenu { label, icon?, disabled?, items } or 'divider'; a chosen action runs after the menu closed, with focus back on the element that held it, so an action may open a dialog directly. ActionMenu items are { id?, label, icon?, tone?, disabled?, checked?, onSelect, onAfterClose? }, a submenu { id?, label, icon?, disabled?, items } or 'divider'. checked (true or false) draws a toggle row (menuitemcheckbox, a trailing check); left out, the row is a plain action. Submenus open on hover, click or ArrowRight and flip at the viewport edge. Both components stay ComponentType<never> in the kit: declare one entry type in the bundle and map it to the kebab (onClick to onAfterClose, danger to tone: 'danger'). A bundle using any of this sets requiresApiVersion: 71.

Browser bundle contract

UI API 61 exposes components.ResourceHistoryModal with ResourceHistoryModalProps. Use it for a resource ring's stored history: pass the initial metric, description, close callback and a useHistory hook returning validated data, loading/error state, retention bounds and retry. An optional scope slot holds your Project picker. The host owns the range picker, coloured inline metric checkbox pills, empty/error states and chart; keep authorization, account-scoped query keys and polling inside your hook. Sandbox is the plugin consumer. Closing the frame unmounts its reader. A host without API 61 refuses a bundle requiring this component.

For a single-choice mode or filter, use components.Segmented with options, value, onChange and aria-label. Each option supports a decorative icon or iconContent, count and disabled. The host renders a bordered control well and a raised active pill using the current skin's opaque sidebar-accent/sidebar-accent-foreground pair, matching the active navigation row without hover. Only enabled inactive options receive a faint accent hover wash. Labels remain whole and the track scrolls horizontally by default, with native touch swipe, hidden scrollbar, selected-option reveal and keyboard radio semantics. Do not wrap or shrink its options in plugin CSS. variant="line" is reserved for distinct record-section navigation; collection-view filters use the default presentation. Existing runtime Segmented consumers inherit the change without rebuilding or a new API version, including Stats scope and grouping controls.

Scrollbars need no code: the host shows a scroller's thumb only while the user scrolls it, moves the pointer over it, or rests on or drags its bar, and fades it out about a second after that, on every page including plugin pages. Do not style scrollbar-color or ::-webkit-scrollbar* in plugin CSS; a plugin rule overrides that one rule for its scroller. scrollbar-gutter: stable is fine where rows must not move when the thumb appears. Touch screens keep their native overlay bars.

UI API 57 publishes exact ChoiceFieldProps, ProjectFilterPillsProps, SelectionSummaryProps and SummaryChipProps from the kit. Managed selections have one summary card; the unused summary/chip variant="line" is removed. Registry browser tests load the selected candidate's actual choice, project-filter and summary components rather than copying retired presentation branches. UI API 57 also published components.DataTableSelectCell; it is withdrawn again (no bundle ever named it, and the host's Memory register, its one caller, now draws cards). A register with bulk selection draws cards, ticks them with CardSelectCheckbox and clears them through SelectionActionBar (API 25), as MCP's does.

Every single-choice field uses the anchored Select surface, regardless of catalog length; ChoiceField.picker and ProjectFilterPills.variant no longer exist. Editor renders <C.ProjectFilterPills value={projectId ?? 'all'} onChange={setProject} includeAll={false} />. The host prepares the project catalog through its existing query and omits the filter when fewer than two choices exist. Callers own selected values and persistence; no additional requests or storage are introduced. Update consumers in the same release as the host because a maximum API version check cannot protect a bundle that still passes a removed property.

Catalog groups

components.MarkdownAssetEditor groups the current page with the existing ownership.scopes predicates, labels and icons. Skills supplies personal, instance, bundled and plugin scopes; personal entries start open, the others closed. Without scopes, custom agent definitions start open and built-ins closed. Do not call instance-wide definitions personal. Scope filters need not be exhaustive: unmatched entries retain their source group. Empty groups are omitted, and search or explicit scope/source filters reveal matches. The component preserves its pager, forms, bulk actions and caller-owned permissions.

For MCP's default-ordered register the equivalent composition is <C.SettingsGroup title={s.scopePersonal} icon={UserCog} collapsible defaultOpen>{cards}</C.SettingsGroup>; its instance group uses defaultOpen={false}. Do not pass storageKey: list expansion lasts only for the mount. The composition performs no requests or persistence and does nothing without a mounted catalog. This changes presentation only and adds no runtime members.

UI API 58 publishes components.SettingsValue, SettingsState, SettingsList, SettingsItem and SliderWithReading beside SettingsGroup, SettingsRow and StatusDot: the content primitives of every window and of the Project drawer, identical to Settings. A web.project, web.user or web.settings panel returns SettingsGroups (never its own page wrapper), each holding SettingsRows with a description and a right-aligned control, or a SettingsList of SettingsItems for records; a read-only value is SettingsValue and an empty or failed read is SettingsState. State is a StatusDot plus a word; colour means state only. PropertyGroup, PropertyRow and DetailBlock are no longer published. They need no requests and set requiresApiVersion: 58. Details: seam catalog, UI API 58. Inside the Project and User drawers the host draws these same components in its compact drawer presentation (a group's title above one hairline-divided box, labels in one column with the value after them, list items and states as lines of that box); a panel passes the same props and needs no change or check of its own.

UI API 59 publishes hooks.useProjectCommits(id, { limit, anchor, enabled }): the Project's commit log read in ANCHORED pages of the host's own query cache. The result is react-query's infinite query — data.pages of { commits, hasMore, anchor }, hasNextPage, isFetchingNextPage, fetchNextPage() and refetch() — so a panel can unfold a history in place and ask for the next page as the end of the list comes into view. anchor is the commit the WHOLE walk starts from and the caller names it (the head a hooks.useProjectGit snapshot reported), because every page, including a first page re-read after a failure, is asked for from that same commit: that is what stops a reload from shifting the window onto a newer history and showing one commit twice. null lets the daemon anchor at the current HEAD, for a caller with no snapshot. The read carries no new request shape or polling; one call is one page. A bundle using it declares requiresApiVersion: 59 in its manifest and its registration, since an older host has no such hook to call.

UI API 56 publishes utils.uploadProjectFile(file, { projectId, directory }, { signal, onProgress }). For example, Editor passes its selected relative Project directory and renders durable byte progress with the existing host Progress component. The helper returns a stored { name, path, relative } or { failed: true, reason?, cancelled? }. It opens /api/brain/uploads/sessions, streams Blob parts, recovers from dropped connections using the server's offset and commits the verified size. Part retries use the host's authenticated finite request policy; only validated durable byte progress renews an episode, and open/commit are never retried. See upload ownership. Abort the signal to cancel and discard staging. There are no file type or total size limits; occupied names gain suffixes. Accounts must hold current Project write access, rechecked at part and commit; directories cannot leave the Project. Open sessions expire after idle time and are lost on restart. Without a call it performs no work; memory is bounded by the part and guest chunk, with no inference cost.

The implementation stays in web/lib/projectUploads.ts inside the Next bundle root. Chat calls it directly with { sessionId }, retaining its conversation-owned attachment layout, and plugins call the host runtime rather than importing web/ or bundling a copy. UI-kit imports are type-only.

The current browser runtime contract is API 73, the value of PLUGIN_UI_API_VERSION in packages/plugin-ui-kit/index.d.ts and web/lib/pluginUi.tsx. The runtime publishes no LiveTail component and no generic mcpServers config editor; the terminal and MCP plugins own their live management surfaces. The host exposes the runtime as window.ElowenUiRuntime. It also defines window.__elowenRegisterPluginUi(plugin, registration) (web/lib/pluginUi.tsx), which the bundle calls to register its components.

A bundle declares requiresApiVersion in the registration object. It loads when that requirement is no newer than the host runtime. API 26 deliberately removes the cron-specific browser hooks and schedule parser: Cronjob owns its own requests and validates schedules through its server preview. The maximum-version check does not shield an older bundle from removals on a newer host; update installed bundles in the same release. API 72 is such a removal: it withdraws DataTable, DataTableRow, DataTableCell, DataTableSortCell and DataTableChevronCell. A register draws one CardGrid card per record (layout="list"), ticks entries with CardSelectCheckbox and pages with Pager; a bundle that still names a table component keeps mounting on API 72 and fails inside its own surface.

API 68 publishes components.SandboxedHtml for static untrusted HTML, for example an email preview: <SandboxedHtml html={message.html} title={message.subject} />. Place it in a scrolling region (a drawer body, a page): the frame grows to its document's height, follows later changes such as a resize or an opened <details>, and never scrolls vertically itself. allowRemoteImages defaults to false: only data: images (including inlined CID parts) load. Opting in permits HTTPS images, not other remote resources. The caller owns the per-message opt-in, loading/error/empty states and the localized accessible title.

The message renders as light paper whatever the skin or the device's dark mode: the mail's prefers-color-scheme rules are evaluated as on a light device and its color-scheme declarations are dropped, so its colours stay as designed for a white page. A sheet rewritten this way keeps every < that would start </ as the CSS escape \3c , so text the mail hid behind CSS escapes cannot close its <style> element and become unsanitized markup.

The frame shares the app's origin so the host can read its height, but allows neither scripts nor forms. It shares its CSP builder with interactive views, but receives no script nonce or bridge. A detached native document parser preserves full-document html/body attributes and styling without a browsing context or resource requests before CSP. Incoming metadata/base elements (CSP alone cannot stop meta refresh), all templates with their contents and nested frames are removed; declarative shadow roots and srcdoc frames are not static preview content. Remaining links open new tabs with noopener noreferrer and no pings and never navigate the preview; a link target other than http:, https:, mailto: or tel: is removed, leaving the text. Rendering costs one parse and one iframe reload when HTML or image permission changes, plus one layout read when the document's size changes, with no polling or model work. Without a mounted consumer it does nothing. Details and limits: docs/modules/web/components.md.

API 70 publishes components.TokenList, the host's free-form token editor, typed by TokenListProps: one chip per token above an add field, for open lists such as recipients. Minimal use: <TokenList label={s.to} value={to} onChange={setTo} validate={(token) => isAddress(token) ? null : s.invalidAddress} />. Enter, a comma outside a {…} glob, blur and a multi-line paste commit the draft, trimmed and deduplicated; a single-line paste keeps its commas, so split a pasted list in onChange with your own parser. validate returns your localized reason a token is invalid, or null; it runs for every chip on each render and must be cheap and pure. An invalid token is still committed and stays in value, drawn in the danger tone with the reason in its screen-reader text and hover title, so the person can see and remove it; whether it blocks an action is yours to decide. Core has no address or other domain rule. Pass mono only when the tokens are code (paths, globs, ids). Each chip's remove control is the host's compact icon button, a 44px square on a touch screen whether or not the list sits in a SettingsRow, so leave its size alone; a disabled <fieldset> around the list locks the add field and every remove control. The host directory Browse action is not part of the plugin contract. The component makes no request. Email's composer is the consumer; a bundle using it declares requiresApiVersion: 70 in its manifest and its registration.

API 70 publishes components.RichTextEditor, the formatted-text field for a plugin's own composer: <RichTextEditor label={s.body} defaultValue={draft.html} onChange={setBody} />. It reports RichTextValue { html, text }: closed HTML (paragraphs, line breaks, bold, italic, http, https and mailto links, bulleted and numbered lists) together with its plain-text alternative, once after defaultValue is parsed and after every change; both are empty strings for an empty body. defaultValue is read once on mount, so remount with a new key to reset it. disabled, autoFocus and className (the outer frame's sizing) are optional. The caller owns the label, drafts, sending and confirmation. The editor engine is a separate chunk that loads the first time the field renders. Type the member with RichTextEditorProps and RichTextValue from the UI kit; behaviour and limits are in the bounded shared UI.

The API after 69 publishes the two attachment previews the host already draws, so a bundle stops carrying copies. components.ImageLightbox (ImageLightboxProps: src, description, onClose) is the full-size picture view of chat and Guides. components.PdfPreview (PdfPreviewProps: src, title) is the one PDF view, promoted from Editor: <PdfPreview src={/api/plugins/email/api/${messagePath}/attachments/${part}} title={filename} /> inside a parent of bounded height, for example a Modal with size="lg", presentation="center" and ModalBody fill. It fetches the same-origin src with the cookie session, frames the bytes only as application/pdf (never as HTML or SVG, which would run in the app's origin from a blob URL), shows the host's spinner and failure state, and revokes its object URL when src changes or it unmounts. The caller owns size admission and phone presentation: without a browser PDF viewer (Chrome on Android, navigator.pdfViewerEnabled false) the framed bytes are saved as a download instead of shown. For a picture attachment served as application/octet-stream, fetch the bytes, wrap them in a Blob of an allowed picture type (PNG, JPEG, GIF, WebP; never SVG), pass its object URL as src and revoke it in onClose. A bundle using either declares the new API in its manifest and registration. Details: docs/modules/web/components.md, "Shared image lightbox" and "Shared PDF preview".

The runtime provides:

  • apiVersion.
  • The host's react, reactDom, and jsxRuntime instances.
  • Curated components, including shared layout, dialog, icon, project, and autosave components. API 19 publishes SectionDeck and DeckNavigation with their typed DeckNavGroup, DeckNavItem, and DeckNavMatch records. API 22 publishes Textarea. API 24 publishes CardGrid and CardGridItem, the host's card register: layout="list" is one full-width card per row, for entries read as a line (a name and the sentence saying what it is for), with the name as the one open control. A plugin's short register draws the same cards as the built-in ones instead of a table approximating them. API 25 publishes SelectionActionBar and CardSelectCheckbox, the floating bulk-action bar and the per-card select checkbox extracted from the memory register, so a plugin's card register ticks and clears the same selection: the count line, the action buttons and the X clear button in one bar, with activation that never opens the entry underneath. API 27 publishes the chat rail grid: RailSection, RailList, RailRow, RailDot and ShimmerText (see docs/WEB.md, "Bounded shared UI"). API 28 publishes the checklist TaskList and its row TaskRow (see docs/WEB.md), so a plugin's task list draws the host's rows, menu and strings. Plugin pages get the host's closing instance-name wordmark automatically: the shell renders it after every page, so a bundle renders none of its own.
  • Curated hooks, including useAutoSaveStatus, usePluginConfigDraft, and useToast. useToast returns the same object for old bundles using either { toast } or feedback.toast(...). API 29 adds promise and dismissKey (typed in the kit as PluginToast); bundles narrow them as optional on older hosts and feature-detect them. Promise feedback propagates the operation result and rejection. Supply curated localized text, not exception strings. Omit success feedback where the UI already confirms the action. The host's usePluginConfigDraft already raises the trailing "changes saved" confirmation, so consumers of that draft must not announce the same save a second time.
  • Curated pure utils. API 21 requires a viewer locale for buildUsageSummary, so a plugin cannot render English-only figures. API 31 publishes the shared workflowLabel and workflowCounts utilities. API 34 publishes utils.uncollectedChildResult(run) and utils.railProcessVisible(process). The bundled Subagent and Terminal rails require API 34 and filter their supplied rows through these helpers before rendering either density. Running children and pending result deliveries stay visible; only running detached processes qualify. Terminal foreground handles remain in the snapshot for their tool calls but do not own rail space. Missing rows produce no section; without either plugin its rail slot is absent. Each predicate is constant-time, filtering is linear, and neither helper performs I/O or changes the snapshot. Hosts below API 34 refuse requiring bundles before mount. API 73 requires utils.cardTasks(cards, cardId): the opaque id is explicit, with no Todo default. The existing utils.cardTasksAddressable(rows) remains an all-or-nothing id guard. Projection preserves labels, owner, unresolved blockers and measured times without parsing glued text or fetching a domain route. A missing card yields no rows; missing handles refuse interactive takeover, not historical content. Plugins retain such rows read-only without inventing ids or issuing mutations. Claimed rails receive already-projected TaskRailData, not a reconstructed session task store. Work is linear in the supplied cards and rows, with no network request. The host normalizes cards at the emit boundary; the rail payload is internal host data, not another untrusted wire boundary.
  • API 23 publishes two utils a plugin surface should not carry its own copy of. utils.formatUsd(value, locale, decimals = 2) is the ONE localized USD rendering: a null amount means nothing reported a price and renders an em dash, never $0.00, so an unpriced bucket is never presented as free. The host renders every usage figure at 4 decimals and passes that explicitly; 2 is the default for a bundle's own amount. utils.impersonateUser(userId, landing?) hands the reader into another account's own session through the host's identity transition, the same elowen:auth-transition protocol every account-scoped surface on the page listens for, including the host's in-flight guard, which refuses a second transition while one is running. It resolves once the new identity is the one in the cookie, and rejects with the reason core gave, such as forbidden, having rolled the transition back first. The optional landing is where the shell opens as the new account, such as "/account?cat=cli"; without one it goes to /dash. It must be a path in THIS app, and the host decides that, not the caller: an absolute URL, a protocol-relative one, a relative one, a javascript: string, anything containing a backslash, and anything that normalises to a leading // are all refused before the switch starts, with landing must be a path in this app. Pass the path a reader should arrive on, not a URL you assembled from host state. Do not re-declare the transition event, its storage key or the request around it in a bundle; do not offer a stop-impersonation control from a plugin, since the host shell owns leaving an impersonated session. And do not print a price with your own Intl.NumberFormat call, which is how an unpriced amount becomes $0.00.
  • Authenticated same-origin api(path, init).
  • API URL construction through apiUrl(path) and SPA navigate(href, options?) as described above.
  • API 68 startConversation({ draft }): Promise<string> creates a conversation in the account's default Project and opens /chat with the exact text ready to edit, without sending. For example, Email's reply-with-agent action calls await runtime.startConversation({ draft: localizedInstruction + '\n' + emailReference }). Use the host method rather than calling /brain/start, navigating first or storing text in a URL. The mounted BrainChatProvider owns creation, session-local unsent text and focus. Switching conversations restores their own drafts; route changes keep them, but reloading or changing accounts does not persist them. The returned string is the confirmed session id. A refused or superseded creation rejects without navigating or seeding a different conversation; show the failure through your existing localized error state. No call means no work. Calling has the normal conversation creation and stream cost, but no inference cost. Declare requiresApiVersion: 68 in both manifest and bundle registration.

A plugin page whose manifest sets presentation: "overlay" opens as a page overlay, and its components receive surface: "deck". An overlay plugin with peer sections composes the same frame as Settings and Account from the published components. The host bounds the modal body; SectionDeck fills it and owns the one vertical content scroller. Do not wrap the deck in another scrolling or shrink-preventing container.

const { SectionDeck, DeckNavigation } = window.ElowenUiRuntime!.components;

function ChatbotDeck() {
  const [active, setActive] = React.useState("bots");
  const groups = [{
    id: "chatbots",
    items: [
      { id: "bots", label: "Bots", icon: Bot, current: active === "bots", onActivate: () => setActive("bots") },
      { id: "statistics", label: "Statistics", icon: ChartNoAxesColumn, current: active === "statistics", onActivate: () => setActive("statistics") }
    ]
  }];

  return (
    <SectionDeck
      testId="chatbot-deck"
      contentLabel={groups[0].items.find((item) => item.current)!.label}
      navigation={(layout, className) => (
        <DeckNavigation
          label="Chatbot sections"
          groups={groups}
          layout={layout}
          testId="chatbot-navigation"
          emptyLabel="No sections"
          className={className}
        />
      )}
    >
      {active === "bots" ? <Bots /> : <Statistics />}
    </SectionDeck>
  );
}

A bundle using these API 19 components sets both manifest web.requiresApiVersion: 19 and registration requiresApiVersion: 19. New bundles should target the current contract, API 73.

Build browser sources with the elowen-plugin-ui-kit package and the plugin web build command. The bundle must use the host React instance and must not ship another React, query client, or import from the host web/ application. If the prebuilt host CSS does not contain a utility the plugin needs, ship css in the manifest. The host serves bundle and stylesheet URLs with content hashes.

Design tokens live in web/app/styles/tokens.css and are mirrored for plugins in packages/plugin-ui-kit/theme.css; a contract test enforces the mirror. A plugin stylesheet is compiled against the mirror, so never rename or remove a token — add beside it. A renamed token silently paints the stale fallback instead of the host's live value.

Typography comes from the same tokens and nowhere else. Use the role classes (text-page-title, text-section-title, text-card-title, text-ui, text-meta, text-small, text-figure, text-body) or var(--text-<role>) in a stylesheet; each role carries its size, line height and weight, so a bundle reads at the size of the Settings window and needs no font-medium. Do not write Tailwind's text-xs, text-sm, text-base or text-lg, an arbitrary text-[13px], a raw font-size or a font-family. Use font-mono only for real code: code blocks, paths, hashes, ids, log output and command lines; numbers stay sans with tabular-nums. Nothing is smaller than text-small (12px). The 11px text-caption and 10px text-tiny were retired in October 2026; a bundle built before then keeps the kit's old fallback size until it is rebuilt. A plugin that needs a size the roles do not give asks for a new role in the host's tokens.css rather than inventing one. web/tests/styles/typeScaleGuard.test.ts holds the bundled plugins to this.

Text links have one look, the host's: the surrounding text colour, always underlined, the brand colour on hover. Put the host class inline-link on an <a> or a <Link>, and inline-links on a container of rendered Markdown so every anchor in it gets the look. Do not write underline, underline-offset-*, hover:underline or a text-primary link colour of your own. The classes live in the host stylesheet, so they need no UI API version; on an older host they do nothing and the link renders as plain text.

A text ACTION is not a link (owner, 13 Oct 2026): it is C.Button with variant="ghost" — no underline, quiet at rest, the accent wash on hover — and size="sm" where it sits inside a line or a row. Retry buttons, disclosure toggles, Show all, Choose icon and Map repository are the controls the host and the registry plugins draw this way. Never put .inline-link on a <button>.

Register UI components like this:

window.__elowenRegisterPluginUi?.("my-plugin", {
  requiresApiVersion: 66,
  pages: { "": RootPage },
  account: { connection: ConnectionPanel },
  user: { details: UserPanel },
  project: { status: ProjectPanel },
  settings: { settings: SettingsPanel }
});

The registration object accepts operationDock, pages, account, accountChip, user, userStatus, project, projectRows, projectEditIcon, dashboardMetrics, chatPickers, chatCards, chatRailSections, chatRailCards, chatDock, historyBranches, settings, and ownsPageFrame. Page keys are slash-joined route patterns; "" is the root page. Page components receive plugin name, captured params, remaining path segments, surface, and optional save-state reporting. An account section is placed in the Account menu by its manifest entry's order (see the manifest guide); the registration only supplies its component. User and Project panels receive the selected host DTO and a panel id. The one chatDock component receives the conversation's Project, its session, the live narration and the pending-input notice.

operationDock is a PluginOperationDockSource that lists the plugin's long-running operations in the background operations dock. It implements list, get, acknowledge and decodeEvent for the event kind named by eventKind. The host owns account filtering, query lifetime and the event stream, and the plugin validates its own wire rows.

These contribution slots are real runtime seams, not plugin-name switches. projectRows receives the bounded Project projection. dashboardMetrics receives the dashboard's documented metric props. chatPickers are local browser choosers keyed by command and do not create a model turn. chatCards render opaque BrainCard ids before the read-only generic StaticCard, drawing the card the daemon pushed for the session on screen rather than rebuilding it from a route. chatRailSections render expanded and compact variants while the host owns rail geometry and SSE; in all three, sessionId is the conversation the plugin's routes may act on and is null while a delegated child or a read-only transcript is shown; an expanded section draws its head and rows with the published rail grid (API 27) rather than its own markup. historyBranches render a branch below a conversation row inside a named branch region, while the host owns pagination, grouping, search, and authorization. Contributions return standalone semantic list/disclosure content, not table-row or table-cell fragments. The parent/items/expanded/toggle/open props remain unchanged; the generic fallback uses the same list-compatible mount. Cronjob's matching renderer is Cronjob 0.6.49 and requires core 0.30.7; update core and Cronjob together before using the new list host. There is no table/list compatibility flag or legacy renderer. Their open(target) callback uses session:<percent-encoded-id>:<0|1>; Cronjob encodes its run's session id with encodeURIComponent and sets 1 only for a continuable run. Subagent uses session:<percent-encoded-id> without a flag. Both views of the unified core list decode these targets once through parseBrainSessionTarget in web/lib/pluginChatUi.tsx, with no I/O; malformed or non-session targets do not navigate. Normal history branches preserve the continuation flag. A target without a flag, as Subagent sends, opens a read-only delegated transcript. Daemon authorization remains authoritative. An absent renderer keeps the existing generic navigation. chatDock is mounted once per chat surface for the conversation on screen, independent of the loaded turns. A missing or failed optional slot is omitted or uses its stated generic fallback; it is never represented by a successful empty component.

API 73 makes rail takeover explicit: register chatRailCards: { [sectionId]: [cardId] } beside the same registration's actual chatCards and chatRailSections components. The host's single useRailTakeovers resolver validates the declaration and the shared mount ceiling; a co-registered rail alone claims nothing. The card leaves the transcript only when an eligible owner claims it, the visible rail owns live work, every projected row is addressable and the card has no body that the rail would discard. Multiple declared owners each receive their section's projection. An absent or malformed declaration, pending or failed bundle load, incompatibility, missing card/section components, rows without ids, or a rail not owning live work retains the transcript. Todo declares chatRailCards: { todo: ['todos'] }. Closing the rail returns the card there. A claimed live-work card stays in transcript placement even when an old snapshot persisted pinned: true; an unclaimed card keeps its ordinary pinned placement. No producer-name heuristic, background migration, route read or polling is involved.

Owner-stamped status groups travel unchanged through status hydration, snapshots and live updates. The rail selects only the registered plugin owner's groups and passes their opaque data to its sections; plugins own domain validation and presentation. Body-only status remains visible. Each contributed section keeps the host's error boundary and compatibility gate; missing or failed registration never becomes an empty successful replacement for transcript content.

Register conversationLinks with { access: 'core' } and its required asynchronous conversationLinks(input) method to contribute metadata for core-authorized conversation ids. Declare the provider's run platform in both provides.platforms and provides.sessionLifecycle.runPlatforms, and register its adapter. Core uses only the unique declared, registered, exclusively owned run platform in that same registry generation; neither a plugin name nor the first adapter selects it.

Core rechecks the actual control owner's live account grant, job visibility and transcript ownership in src/api/routes/brainConversationLinks.ts. The editor destination is /p/<encoded-owner>?job=<encoded-job-id>; plugin-supplied URLs are ignored. runSessionId may name only the requester's own user conversation and remains continuable. runChannelId is an opaque channel id within that provider's run platform: core builds the session id and permits its owner or administrator oversight to open it read-only. A supplied full channel session id never grants access.

The registry Cronjob is a consumer; core fixes no package name. Absent/incomplete/non-core controls, missing grants, absent run adapters and ambiguous platform ownership answer unavailable. A failed read answers error; an empty successful read stays available. The mandatory historyBranch: { plugin, key } | null descriptor uses the actual owner and key: 'schedules' for available responses and provider errors. It is null when unavailable or registry loading fails, and carries no transcript authority. The core sub-agent branch retains its independent status. This is one display-only read per listing, linear in registered platforms and returned links; no job, schedule or transcript is mutated. The old cron control is removed; retention uses registerSessionLifecycle.

A settings component is mounted in the settings deck and can also be served as a standalone plugin page. Add its id to ownsPageFrame only when the bundle renders the complete page frame and owns its own save indicator.