Runtime bundles and localization
ElowenUiRuntime.api accepts PluginApiRequestInit. For a JSON write, call runtime.api(path, { method: 'PATCH', json: value }); the host serializes the value, sets application/json, preserves other request options and headers, and uses its existing authentication, deadlines and restart recovery. JSON writes without a method default to POST. Omitting json preserves raw RequestInit behavior, including FormData uploads and ordinary GET reads; the types exclude supplying both json and body. Responses remain unknown and the consumer must validate its own domain response. Serialization does not authorize a request or replay an unconfirmed write. The cronjob schedule preview is a real JSON consumer after migration.
The bundled MCP register uses host utils.interpolate(template, values) for row labels, tool counts, reconnect summaries and removal confirmations. Its runtime declaration uses ElowenUiRuntime['utils']['interpolate'], which UI API 55 publishes; the registration itself requires UI API 58 (plugins/mcp/web-src/index.tsx:18, plugins/mcp/elowen-plugin.json:52), so the bundle names the later API its own members need. Each template receives all values in one call; unknown placeholders remain literal and inserted values are not reparsed. The helper performs no I/O. Older hosts reject the bundle through the existing version gate; there is no local interpolation fallback.
Runtime plugin web bundles
The host caches installed platform presentation at ['platform-metadata', locale] with a 60-second stale time through usePlatformMetadata; the typed /plugins/platforms DTO is available to ordinary accounts independently of a browser bundle or administrator plugin detail. This is host metadata, not a plugin runtime member. Loading, failure and successful empty results remain distinct, with no cross-locale placeholder. Existing plugin lifecycle events, stream reconnect, settled enable/disable/uninstall/restore operations, successful config writes and checked updates invalidate all locale variants through the shared QueryClient. Account linked-identity rows consume this projection together with canonical CLI settings. Settings availableLinks, not metadata availability, is the authoritative list of editable canonical platform IDs. A row requires matching metadata with identity title, help and placeholder; chip labels also come from metadata and never expose raw IDs. Preserve projection ordering rather than maintaining a core platform roster.
Surface names use this same locale-keyed projection: host translations for api, subagent, web, cli and internal, then the installed platform's localized label, then its recorded id. Icon titles, dashboard activity and pulse rows, and conversation filters share useSurfaceLabel; pending or failed metadata never removes a row or icon. cron is not a host-named surface: scheduled work is named by its plugin metadata, while unnamed historical ids remain literal.
Values live only in CliSettings.platformLinks. Account autosave submits { platformLinks: { [platform]: value } } for dirty members only, using an empty string to clear a link; clean members are not resent, preserving concurrent bootstrap links. Existing settings revision validation, adopted conflict snapshots, retained local drafts and explicit retry remain unchanged. A structured HTTP 409 platform_link_conflict uses the generic localized account message; revision conflicts are not treated as identity ownership conflicts. Loading/error/retry states use the shared state components without editable placeholder rows. Connectors retain their independent rendering seam even when settings or metadata are pending or failed. Rows use the existing linked-account row, property group, drawer and shared controls, with no platform-specific editor or styles.
The fake-daemon discovery projection mirrors manifest metadata, locale fallback, deduplication and platform-id order without requiring a browser entry. It models adapter liveness through its existing enable override, since it runs no adapters. Its existing CLI-settings handler applies sparse map changes and revision conflicts with readback, rather than echoing a whole replacement. Focused Hono tests exercise these handlers through app.request without a server or external service; browser acceptance remains a separate gate.
API 73 publishes typed API URL construction, replace-aware navigation, reactive location, retained host queries, shared grid/Markdown components and explicit atomic drafts through the existing runtime. The authoritative browser contracts and migration rules are in the browser author guide and settings. Todo, Skills and Editor now own their domain requests and response types through authenticated runtime.api; their private host clients/hooks are removed. Core keeps its actual Project Git/history, raw icon and Subagent consumers. Email attachment links and Sites versioned preview images now pass their encoded plugin-relative route to runtime.apiUrl; the host alone composes the same-origin BFF prefix. Their source registrations require API 73, and manifests and generated bundles must match that floor. Pair regenerated dependent plugin artifacts with the host cut; the mount ceiling alone does not reject an old bundle that calls a removed member.
Human-facing plugin state registers once through ctx.registerSurfaceFact(surface, resolve): panelVisibility, navBadge, brainStatus, projectIndicators or readiness. The surface selects the existing callback and response shape in src/plugins/surfaceFacts.ts; resolveSurfaceFacts retains account grants, web-admin classification, provider order and Project timeouts. Visibility and badges remain unique per plugin, and readiness remains instance-wide. A panelVisibility resolver may return its panel selection or a Promise of it; the host awaits it before listing panels and hides that plugin's account and Project panels if it throws or rejects. A navBadge resolver may likewise return its count or a Promise of it; the listing awaits it, and a value that is neither null nor a finite number is logged as plugin.nav_badge_failed and drops only that badge. Use local database or config reads only, never external requests, because every listing waits for the probe. The OneDrive plugin awaits its local Microsoft identity lookup and returns { project: [] } when linked is false, or null to keep the declared panels when linked. An absent resolver or a null result leaves all declared panels visible. For example, Changelog registers navBadge for each account's unread count. Missing registration yields no fact, and each surface retains its own failure behavior. The call arrived with shared API 10 and core 0.29.99; every bundled manifest now declares requiresSharedApi 14. Browser slots and listing responses are unchanged.
Plugin UI is discovered from the authenticated /api/plugins/ui listing. The listing supplies the plugin name, compatibility version, navigation and settings registrations, localized strings, bundle URL, CSS URL, and optional layout and presentation declarations. web.presentation: "overlay" keeps the normal /p/<plugin> navigation address but mounts the page through the same PageOverlay used by Settings and Account. Shell navigation updates that address in place so the current page stays mounted beneath the modal; on a hard load the canonical plugin page stays empty while the shell mounts the same modal.
UI API 69 extends this same page seam with web.userPages: exact non-root relative routes with separate entry, optional css, required requiresApiVersion and optional English strings. A callback such as mail/callback can remain available to authenticated, plugin-granted users while the main bundle stays web.adminOnly. These entries expose no menus, panels, slots, layout or overlay presentation. The ordinary listing is unchanged; /api/plugins/ui?plugin=msteams&page=mail%2Fcallback&lang=cs returns an array containing only the declared page, or an empty array when it is absent. Missing authentication returns 401 even during setup and missing paired selectors 400. A missing or revoked plugin grant returns an empty targeted listing, just like an absent page, while assets still return 403; the host therefore shows its existing not-granted explanation and offers plugin management only to administrators. Assets retain the existing hash URL family with ?page=mail%2Fcallback; an unknown page or stale hash returns 404, and a selector never authorizes main administrator assets. Page preparation uses the existing per-file stat/byte/hash cache and registry lifecycle, with no added background work or persistence.
For unadvertised paths such as callbacks, the host resolves the exact page before loading a bundle. Main routes already advertised by the authorized shell's nav/settings metadata remain mounted while targeted discovery is pending: pluginMainRouteIsDeclared in web/lib/pluginNav.ts is shared by the canonical page and overlay consumers. This keeps the Chatbot deck's live search, selected record and scroller intact across section navigation without borrowing another exact page's query data. An unadvertised callback never borrows a main bundle or overlay while discovery is pending. The host applies the existing pluginUiMayMount version gate and keeps registration, pending-load and localized-query caches separate for root and each page. Register through __elowenRegisterPluginUi(plugin, registration, page) and read hooks.usePluginStrings(plugin, page). Locale overrides live at web.userPages[route].strings in each plugin locale file and merge only with that page's English strings. Without the page argument both APIs retain their main-bundle behavior. A declared user page cannot fall through to a main registration or its overlay. Teams mail connection callbacks are the intended consumer; plugin-owned OAuth state and authorization remain outside this browser seam.
web/lib/pluginUi.tsx loads an approved bundle at runtime with a same-origin module script. It does not use a static bundler import because the URL is runtime data. The host installs window.ElowenUiRuntime, which provides the host React and JSX runtimes, curated components, hooks, authenticated API access, utilities, and SPA navigation. The bundle registers pages and settings through window.__elowenRegisterPluginUi.
Plugin source bundles are built by scripts/build-plugins-web.mjs. A plugin with web-src/index.tsx, index.ts, index.jsx, or index.js is bundled to its web/index.js and receives generated CSS. Plugins without web-src/ keep their checked-in bundle. The root npm run build runs this step before copying plugin files into the distribution, and only then minifies the copied dist/plugins/<name>/web/*.js for the browser, so CSS generation scans the readable bundle; the source-tree web/ output stays unminified. The shared elowen-plugin-ui-kit/build helper owns browser emit settings through an explicit inline esbuild tsconfig, independent of the core or plugin checkout's compiler configuration. It emits ES2022 ESM with automatic JSX and host React shims; ESM is inherently strict, so it does not inject ambient alwaysStrict directives into CommonJS shims. Both the bundled Terminal UI and registry browser UIs use this helper, and build errors propagate to their drift gates.
Plugin code must use elowen-plugin-ui-kit and must not import web/. The host UI API version is the one PLUGIN_UI_API_VERSION declares in packages/plugin-ui-kit/index.js, mirrored by the host in web/lib/pluginUi.tsx and enforced in lockstep by the web typecheck. Each member in packages/plugin-ui-kit/index.d.ts is annotated with the API number that added it. The host checks the declared version before loading a bundle, catches bundle failures with PluginErrorBoundary, and shows an explicit unavailable or incompatible state. Plugin pages use document or workbench layout as declared by the manifest; a workbench application fills the window through hooks.useFillHeight (see full-height application pages). A page reached directly receives host framing unless the registration lists the section's id in ownsPageFrame.
API 30 adds hooks.useInvalidatePluginUi(), which returns a callback refetching the plugin listing the main navigation is built from, so the count a plugin's registerSurfaceFact('navBadge', fn) probe reports moves right after the plugin's own change; with the listing unmounted it only marks it stale. API 26 adds hooks.useInvalidateConversationLinks(), which returns a callback invalidating the host's canonical conversation-link queries in both mine and all scopes. It uses the shared QueryClient once; if neither query is mounted, it only marks cached data stale and makes no request. The Cronjob plugin uses it after schedule changes without depending on a private host query key. The same coordinated API cut removes host useCronJobs, useSaveCronJob, useDeleteCronJob, utils.isValidSchedule, and the cron methods on utils.elowenClient; Cronjob owns their replacement queries, mutations and schedule validation. No plugin mounted means no Cronjob browser behavior, and older bundles using the removed members must be updated before this host API is published.
API 27 publishes the telemetry rail grid (RailSection, RailList, RailRow, RailDot) and ShimmerText, described under "Bounded shared UI". RailMeter and RailSectionHead were published too until API 45 withdrew them unused. The bundled MCP, Subagent and Terminal sections and the registry Todo and LSP sections require it.
API 28 publishes the checklist on that grid (TaskList, TaskRow), described under "Bounded shared UI". It only adds. The registry Todo plugin's rail section and card require it; a Todo bundle built for API 27 keeps rendering its own rows.
API 65 publishes RailMenu, MarkStrip and HoverCard plus utils.formatSpeed and utils.apiErrorMessage, described under "Published telemetry primitives". They exist because a rail row is a thing with its own controls — a stop button, a mark that names its model, a brief behind a name — which a menu of actions cannot carry. The bundled Subagent rail is the consumer; a bundle built for an older API keeps rendering its own rows.
API 67 publishes utils.workflowElapsedSeconds, the run elapsed the workflow inspectors show, so the bundled Subagent rail's workflow row counts the same clock instead of deriving its own.
API 66 adds RailRow's note, the row's second line under the name. A row that carries a status note then keeps the name whole and gives the note a line of its own, and the caller insets the note so that it sits under the name. The bundled Subagent rail is the consumer; a bundle built for an older API keeps rendering its own rows.
Plugin registrations can contribute pages, Account sections, User panels, Project panels, and settings sections. The plugin owns its domain state and authenticated plugin API. The host provides shared localization, query infrastructure, autosave contracts, navigation, overlays, and UI primitives.
Sandbox registers through the public PluginUiRegistration and types its Project contribution with PluginProjectRowsHook, PluginProjectRowStatus and PluginProjectRowAction; its browser runtime declares only the members it consumes and retains AssertPublished for local component names. plugins/sandbox/web-src/environmentPresentation.ts owns the seven environment states used by both the register and ProjectEnvironmentSettings: icon name/component, tone, drawer color class and busy flag. This lookup adds no reads or subscriptions and preserves the existing classes, including danger as text-destructive. Before a register mutation, Sandbox requires the current generation from its existing usage map. A confirmation surviving a 401/403 usage refetch reports the existing localized Project-access refusal without persisting an intent or sending a mutation when that generation is absent. The drawer consumes the required runtime projection from the current project overview directly, including an explicit null runtime name or readiness; it does not synthesize an older response. Without a Sandbox contribution, the host adds no environment state or lifecycle actions.
Three runtime members replace local copies a plugin would otherwise carry, so a plugin UI should use them instead of bundling its own:
ElowenUiRuntime.C.ConfirmDialogfor any destructive or discarding confirmation. It renders in place inside the host overlay stack with the host focus return and backdrop rules; a plugin-local confirm modal would diverge from both.utils.formatBytes(bytes, locale?)for a human-readable size with the host's binary units, so byte labels agree across the host and plugins. Pass the app locale for localized digits, such as1,5 GBin Czech and Slovak; omission keeps the compact English rendering. Sandbox resource cards and history share this helper.utils.renderMarkdown(source)for sanitized HTML from Markdown. It is the same parser and sanitizer the host uses for chat and assets; a plugin that injects its result needs no parser or sanitizer of its own.
The registry editor plugin is the reference consumer of all three: its discard and delete confirmations, its binary preview and status bar sizes, and its Markdown preview.
utils.localDateTime(timestamp, locale?, seconds?) is the UI API 44 formatter for ISO 8601 timestamps in the viewer's local time zone; core API and host-store timestamps are ISO 8601 UTC. Pass the application's locale from hooks.useTranslation() and false as the third argument for minute precision: utils.localDateTime(date.toISOString(), locale, false). Seconds default to enabled; an unparseable string is returned unchanged. Numeric timestamps must be converted to ISO by the caller, which also owns its empty and invalid-value labels. The formatter performs no network request or subscription. Without a formatter call there is no formatting work; hosts lacking API 44 do not supply this utility. Teams identity timestamps, OneDrive mirror status and Sandbox snapshots use this existing host boundary.
utils.paginateItems(items, page, pageSize) returns the clamped page and its visible items with the same rule the host registers use. The bundled MCP server register is its consumer. An older host without it leaves the name absent, so a bundle that needs it must require a host that ships it.
Remote CLI pairing and downloads
Pairing, the install command and device revocation are core browser surfaces, not a plugin page: see "Account > Computers" in docs/modules/web/accounts.md.
The paired target's process adapter is shared by the core executor and the Sandbox runner through createLocalProcessSession(startOperation, request, signal?) from elowen-plugin-shared/localExecution. It reconstructs stdout, stderr, cwd, stdin and the final exit from the canonical process results. Sandbox metadata, account leases and turn admission remain with each control owner. The daemon passes a request closure over the admitted socket, so releasing the parent turn does not redirect or end an admitted background process; disconnect or replacement still terminalizes that process with its original typed loss. Cancelling aborts that same request and waits for its exit or failure. A process-stdin rejection with code process_not_found means the executor has already removed the exited process: the adapter ignores only that late-input race for both writes and EOF, and closed retains the actual exit result. This lets consumers such as Terminal background processes close stdin without an error listener for an already exited process. All other stdin failures still reach the write/end callback and emit the Writable's error event; consumers that supply input must handle those events, as with a local child.
Internationalization
Core web copy is stored in the locale dictionaries under web/lib/i18n/dictionaries/. LanguageProvider in web/lib/i18n/context.tsx exposes the active locale and dictionary through useTranslation. The locale is mirrored to a cookie so the server can render the first response in the selected language, and to local storage for client persistence. The daemon also stores the account locale in the locale user setting. The web client synchronizes that setting through /auth/me/locale, while daemon-generated alert and push text reads the stored value directly rather than the browser cookie. Use dictionary keys and interpolate; do not hard-code user-facing strings in feature components.
Plugin strings come from the plugin UI listing. The manifest is the canonical English source for the plugin label, description, navigation and web.strings; i18n/cs.json and i18n/sk.json contain the corresponding overrides. A plugin with a manifest label also supplies a top-level label in each override. The host merges manifest English with the active locale's web.strings and exposes the result to the bundle. Manifest string keys are checked by contract and language validation tests.
Sandbox's local plugins/sandbox/web-src/runtime.ts narrows its hook to
usePluginStrings('sandbox'). SandboxStrings combines the manifest's known web.strings keys
with string-indexed lookup; the host's existing Proxy returns strings, including empty strings while
loading. localizedError keeps dynamic error_<code> lookup optional and requires the manifest's
errorFallback. environmentRequest.ts derives its dispatch input from that function's second
parameter, so the Project row menu and environment drawer pass the same dictionary without a new
fallback, translation fetch or error policy. This is local bundle typing, not a new host UI API.
Development, build, and tests
web/next.config.ts keeps Turbopack's root at web/, which makes Next emit .next/standalone/server.js where scripts/build-web-bundle.mjs expects it. Values from src/ or packages/ therefore never bundle into the browser: shared rules reach the web as byte-identical mirrors in web/lib/, pinned by tests/contract/webMirrorContracts.test.ts (see components). Typecheck and Vitest resolve cross-root imports anyway, so only npm run build:web proves the boundary.
Install root and web dependencies independently:
npm ci
npm ci --prefix web
Run the daemon and web development server in separate terminals:
npm run serve
npm --prefix web run dev
Build the web artifact from the repository root:
npm run build:web
For a direct Next.js build:
npm --prefix web run build
The web package scripts also provide:
npm --prefix web test
npm --prefix web run e2e:smoke
npm --prefix web run e2e
npm --prefix web run typecheck:e2e
The fake daemon's web/tests/e2e/fake-daemon/pluginMetadata.ts owns lazy, process-cached manifest and complete locale discovery from bundled plugins followed by E2E_PLUGIN_DIRS. Call pluginMetadata() to obtain ordered candidates, including duplicate directory names across roots. handlers/pluginRegistry.ts selects the first readable manifest for settings and projects only label, description, the identity glyph, user-config label and field translations. realPlugins.ts independently selects the first usable in-directory browser bundle and applies the full browser locale data; an earlier manifest without a built bundle must not hide a later usable bundle. Missing or malformed JSON files are skipped, absent locale directories remain undefined for settings, and browser UI stays opt-in through seed.realPlugins(). Discovery costs one manifest/locale read per candidate per process; asset hashing and loading remain with the browser projection. web/tests/lib/pluginMetadata.test.ts characterizes root precedence, locale projections and the shared cache without starting the E2E servers.
The browser gate runner (scripts/tests/web-e2e-ui/run.mjs) validates E2E_PLUGIN_DIRS as the same colon-separated list of roots: whitespace is trimmed and empty entries are ignored. Every listed root must exist, and a list without any roots is refused. E2E_PLUGIN_DIRS takes precedence over E2E_REGISTRY_PLUGIN_DIRS; the original value is forwarded unchanged to the harness. --dry-run --no-build validates this input without building or starting servers; tests/contract/webE2eUiRunner.int.test.ts covers the gate's list validation.
Plugin-settings acceptance uses requiredPluginSectionHref from web/tests/e2e/fixtures/pluginSettingsContract.ts to resolve contributed-section addresses through the host's pluginNav functions and manifest placement. Delayed API fixtures hold all initial reads until the test releases them, then switch to the retry phase explicitly; development remounts do not count as user retries. Error assertions are scoped to the owning form or section because the shell also owns an assertive live region. collectPluginErrors accepts cancellation only for opt-in read methods, paths and exact queries with net::ERR_ABORTED; Sandbox's abort-aware desktop overview and read-only usage batch POST also assert successful replacement snapshots and the batch request's project ids. Other transport failures and every unexpected HTTP error still fail acceptance.
Use focused Vitest tests for changed components and libraries. For routing, authentication, streaming, responsive behavior, or plugin loading, run the relevant Playwright coverage as well. Before handing off a web change, run the focused tests, npm run build:web, and any affected contract or language checks. For a broader repository check, npm run check covers lint, dead-code, dependency, daemon typecheck, and language validation; it does not replace the web build or web test suite.
Owning code
web/lib/pluginUi.tsx: loads approved bundles, installswindow.ElowenUiRuntimeand publishes the components, hooks and utilities.web/lib/pluginChatUi.tsx: renders the chat plugin slots, including the chat dock host.web/lib/i18n/context.tsxandweb/lib/i18n/dictionaries/: core locale context and dictionaries (cs,sk,en).scripts/build-plugins-web.mjsandpackages/plugin-ui-kit/build.js: the browser bundle build forplugins/*/web-src/.packages/plugin-ui-kit/index.d.ts: the public UI API contract and version.web/tests/lib/pluginUi.test.tsandweb/tests/lib/pluginMetadata.test.ts: contract tests for the runtime surface and plugin metadata.web/tests/e2e/fake-daemon/pluginMetadata.ts: manifest and locale discovery for end-to-end tests.
Published UI timestamp helpers
ElowenUiRuntime.utils now types the functions already published by the host: compactElapsed(ms: number): string and parseTs(iso?: string | null): number | null. Minimal use: const at = runtime.utils.parseTs(reply.createdAt); return at === null ? null : runtime.utils.compactElapsed(Date.now() - at);
compactElapsed uses the host's single-unit seconds/minutes/hours/days ladder and clamps negative elapsed time to zero seconds. parseTs parses ISO 8601 timestamps and returns null for absent or invalid input. These are local pure helpers with no requests, timers or registration cost. The host publishes them through ensurePluginUiRuntime; an unused helper has no effect. BrowserAccount replyAge is a real existing consumer. After the first containing core release its declarations may require both functions, but the null branch for an invalid timestamp remains. No runtime implementation or UI API version changes in this producer cut.
Plugin cards in Settings
web/modules/settings/PluginsSection.tsx keeps one module-local PluginCardFrame shell that every card on the page composes: the installed PluginCard, the registry MarketplaceCard of the Available view and the RemovedCard of a soft-removed bundled plugin. Supply name, glyph (the manifest's optional identity glyph, typed string | undefined), title, version, the optional source, description, dependencies, counts (tools, skills, platforms), the caller's lead, trail and optional details, plus busy, running, note, onOpen, openLabel and onContextMenu. The frame is a CardGridItem marked data-plugin-card, exposes busy state through aria-busy and a dimmed card, draws the PluginIcon for that declared glyph with a running dot, the name with PluginVersion, DependencyPills and the ProvidesBadges counts, and wraps the trail under the identity on a narrow card. PluginHero passes detail.glyph to the same PluginIcon, and Access rows resolve plugin.glyph through pluginLucideIcon; no surface derives a mark from the plugin name, and an absent glyph renders the neutral puzzle. With onOpen the card surface opens the plugin for the pointer and the name becomes the keyboard's one open control; every other control stops its click from reaching the surface. MarketplaceCard supplies registry identity, the install button and queued-operation progress; RemovedCard supplies the localized installed identity and the Restore button, which stays disabled while pending and restores the plugin disabled. Callers own the action handlers and disabled semantics; the frame adds no requests, lifecycle policy or plugin-facing UI API.
Plugin-owned browser clients
Todo, Skills and Editor own their REST clients, wire DTOs and query/mutation hooks in their plugins.
They use authenticated runtime.api(path, { method, json }) without a copied BFF prefix and the
published native hooks.useQuery, hooks.useMutation and hooks.useQueryClient over the host's
single QueryClient. The runtime publishes no private task/skill or Editor file/Git hooks and no
compatibility aliases. A plugin must not create another cache or reconstruct authentication.
Skills' web-src/skillData.ts owns explicit SkillOwner = number | 'instance' | null selection.
Null serializes as owner=me; numeric and instance owners stay in the encoded query, outside the
create/edit body. For example, its local client sends:
await runtime().api('/plugins/skills?owner=me', {
method: 'POST',
json: { name: 'report-guide', description: 'Use for reports.', content: 'Check the source.' },
});
The plugin retains ['plugin-skills'], name-plus-owner optimistic updates, snapshot rollback and
settled refresh. Its editor keeps revision-checked PATCH and atomic owner-transfer POST. Server
authorization remains authoritative; selecting an owner grants nothing.
Todo's web-src/taskData.ts keeps ['session-tasks', sessionId], owner-clear normalization,
optimistic rollback and per-session refresh. Null sessions park reads and remove write controls.
Cards and rails render their supplied pushed rows instead of fetching the viewer's task list.
Editor owns its five Git reads in web-src/editor/gitData.ts, retaining the existing keys and tree
mutation invalidation. Null Project and System views park these reads; a refusal stays an error,
not an empty clean checkout. Core still owns Project metadata, Git summary/history, environment
state, raw Project icons and Subagent APIs.
No mounted consumer means no plugin-domain read; constructing a mutation hook makes no write. These hooks add no timer or model request. Ship matching core and plugin artifacts and verify their content-hash reload together: UI API 73's minimum-version mount check cannot stop an older installed bundle from calling a removed member. The stable section anchor remains unchanged.
Published page filter fields
PageFilterField is a type exported by elowen-plugin-ui-kit. Minimal use is import type { PageFilterField } from 'elowen-plugin-ui-kit'. Every field has id, label, control and optional hint; active: true also requires activeLabel and onReset, while active: false forbids those properties. This keeps active-chip and reset information paired with the active state. Core PageFilters and PageToolbar consume the published union directly; MemoryView, MarkdownAssetEditor and PluginsSection use it for their existing filter rows. A consumer needing the active subtype uses Extract<PageFilterField, { active: true }>. The former local PageFilters definition/export is removed. It is declaration-only, adds no runtime work or UI API version, and unused consumers have no effect. Registry/licensing adopters remain tied to their actual containing release and caller cut.
Changelog plugin presentation
Changelog declares complete authenticated API patterns through provides.apiRoutes and registerApiRoute: user-level GET entries, GET entries/:entryId, POST seen and GET asset/:version/:file, plus admin-only GET readers and POST unread/:entryId. Detail, readers and reset select one audience card by stable entryId, not release version. The plugin-owned persistence contract is the architecture source for audience projection, exact DTOs, receipt storage, migration and reset concurrency; the API reference lists the routes. Handlers read the host's once-decoded req.params with an empty req.path. Missing parameters, malformed escapes and undeclared suffixes return 404 before any handler runs. Asset handlers retain their plain-segment allowlist, raster-image extension allowlist and directory containment validation after decoding, and require a visible Markdown image reference. Responses are private/no-store.
ChangelogPage consumes GET entries?lang=<locale>&audience=<audience> as { audiences: [{ id, unread }], entries: EntrySummary[] }. The server supplies authorized switches and unread card counts, including empty audiences, in user/admin/developer order. All admitted readers see user news; every authenticated human may also see developer news, and only authenticated administrators may see admin news. Each summary identifies its stable entryId, audience and revision; the listing contains metadata only. Expanded cards fetch their localized detail with the same audience, including plugin-filtered bodies, referenced-image fingerprints and resetGeneration. Unknown locales or wholly absent translations use English. Deep links use /p/changelog?entry=<entryId>&audience=<audience>#<itemId>; guide-related reads never acknowledge viewing.
On the first successful listing of each audience during a visit, the newest card by calendar date opens even if already read, alongside all unread cards and any deep-linked card. Pinned display order does not change which card is newest. Later refreshes and audience switches preserve manual toggles. An audience with no entries renders the shared EmptyState.
Only a successfully loaded expanded body becoming visible in the selected audience triggers POST seen with { entryId, audience, revision, resetGeneration }. Durable success returns {} and refreshes reading state and navigation counts; failure remains visible and retryable. Reading one card never clears another day or audience. The administrator readers report and reset concern only the selected card/audience; reset invalidates its receipts and rejects older in-flight acknowledgements through the generation token. Open mode exposes only user news with false unread flags and no persistence. When the plugin is unavailable, its registered routes and navigation contribution are absent.
The bundled What's new page receives only applicable content from Changelog's
per-account API. Plugin-scoped sections carry installed-plugin identity from
host.stores().pluginsRead.list(), the same discovery catalog as Settings.
PluginItem uses the host's sanitized Markdown, the browser DOM parser to
extract the section title, and the existing shadcn-backed muted Badge beside
it. The pill shows only the plugin's localized name, never an icon: plugin icon.svg
files are colored app tiles that some plugins lack, and a monochrome mask flattens a tile
into a solid square, so icons made the pills inconsistent. UI API 54 still publishes
components.AdaptiveBrandMark for other consumers. Changelog declares requiresApiVersion: 55 so an older host
refuses the bundle before mounting. Untagged content has no pill; an unavailable
plugin item never reaches this renderer. Details load only when an entry opens.
Locale and secret configuration owners
src/shared/locale.ts owns LOCALES, Locale, DEFAULT_LOCALE and validation; web/lib/i18n/locale.ts is its importless byte-identical browser mirror. isLocale accepts only cs/sk/en. LanguageProvider consumes this policy directly; serverPrefetch.readLocale calls sanitizeLocale on the parsed cookie. Missing/invalid choices yield English. The public i18n index keeps the live Locale type and client helpers, without re-exporting the unused default value. Value consumers import the pure owner. Account reconciliation still uses /auth/me/locale; validation itself performs no request.
Plugin detail and instance/account configuration responses retain masked config, secretsSet and revision fields, plus secretsUnreadable when a stored secret cannot be decrypted; those routes still answer and can replace or clear it. Core materializes declared PluginSecretVault values before applyConfigPatch/maskedConfigView. Blank/absent fields preserve secrets, null clears them, stale revisions return masked conflicts, and revisionless account writes retry concurrent changes. Vault/JSON revisions commit atomically; failure requests no restart. See encrypted configuration. Plugin listing and detail add credentials: { keys, corrupt } for Settings → Access; the corrupt keys come from the vault's corruption index, never from a decrypting read (see Access section).
Registry runtime consumers
Registry browser bundles import AutoSaveStatusProps and UseAutoSaveStatus type-only from elowen-plugin-ui-kit. The host owns their implementation; no registry forwarding module is required. BrowserAccount consumes the existing utils.formatBytes(bytes, locale), parseTs and compactElapsed contracts, reading locale once from the published hooks.useTranslation() provider; it never infers the language from document or navigator state, and a provider locale change re-renders the panel. Byte sizes use the shared 1024 ladder through TB, localized decimal digits and no grouping; nonpositive or nonfinite sizes display 0 B. The Browser runtime requires these published helpers and omits a reply age only for an invalid timestamp.
Plugin registration loading is owned by usePluginUiRegistrations in web/lib/pluginUi.tsx. The single-entry hook delegates to the same engine and retains injected loading for production-equivalent tests. Bundle identity includes plugin name, JavaScript URL and CSS URL. Identity changes synchronously withdraw the previous registration; abandoned loads cannot publish a late result. Listing strings remain locale-specific without reloading an unchanged bundle. The registration projection retains its identity while its listing entries and current load are unchanged; refetched metadata still updates the projection. The rail takeover hook memoizes its claims from that projection and readiness, so streamed text cannot rebuild footer card arrays or rerender the model picker. Changed bundles, withdrawn slots and incompatible registrations still withdraw claims immediately. Boolean slot discovery uses the narrow pluginSlotEntries helper; operationDock retains its object contract and desktop-only policy.
Registry plugin tests use a neutral ModelIcon glyph when they only need icon presence. Production model branding remains owned by the core; no production icon API exists solely for a test fixture.