waybetter/packages/runtime/tests
CRT 639943200f runtime: the site runtime's composition (siteRuntime, pageStrings, panelButton, commandReport)
What every app's page runtime entry did by hand (moved from wayBetter for X's inject/entry.tsx):

- siteRuntime.ts: pageInvoke (the IPC bridge read at call time), createFeatureFlags (parts that
  install on enable and dispose on disable, the flags native code delivers, a deck column's
  overrides on top of them, recorded at once and applied when <html> exists) and
  installSiteRuntime (the runtime object with the members native code calls, the plugin API views,
  developer-mode errors, its window names, the queued native deliveries, the command report).
- pageStrings.ts: the page's language (English built in, deliveries checked as data, the
  bundled-plugin namespace rule).
- panelButton.ts: the way into the panel from the page (the site's own navigation entry when the
  adapter mounts one, else a floating button that hides under the site's overlays and sits above
  its bottom bar).
- commandReport.ts: the palette command report and developer-mode start errors.
- tests/siteRuntime.test.ts.
2026-09-30 07:28:54 +00:00
..
column.test.ts runtime column: set the column attributes on scan (config delivered at document start has no <html> yet), no scrollbar in columns, unread only above both the read items and what is on screen, a hidden 1 px webview counts as off screen 2026-09-28 16:42:21 +00:00
commands.test.ts runtime: plugin commands for the command palette (api.commands / scope.commands: register, list, run, owner = the starting plugin, removed on stop, caps, in-page shortcuts); host: start/stop scripts own and drop a plugin's commands; dev_start_script with sourceURL + devError for live reload; devErrors (file:line from a start failure) 2026-09-28 18:35:44 +00:00
devErrors.test.ts runtime: plugin commands for the command palette (api.commands / scope.commands: register, list, run, owner = the starting plugin, removed on stop, caps, in-page shortcuts); host: start/stop scripts own and drop a plugin's commands; dev_start_script with sourceURL + devError for live reload; devErrors (file:line from a start failure) 2026-09-28 18:35:44 +00:00
hubs.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
i18n.test.ts locales: the panel's words (wb.*), 51 languages 2026-09-30 07:03:09 +00:00
linkRouting.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
pageLang.test.ts pageLang: report X's language even when installed before <html> exists or before the IPC bridge 2026-09-29 04:01:53 +00:00
paneNav.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
permissions.test.ts Plugin permissions and app installs: @permissions header, per-plugin API views, validated install/remove 2026-09-28 18:08:52 +00:00
pluginApi.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
siteRuntime.test.ts runtime: the site runtime's composition (siteRuntime, pageStrings, panelButton, commandReport) 2026-09-30 07:28:54 +00:00
styles.test.ts runtime: styles for created roots are constructed sheets (CSP-proof) 2026-09-28 21:09:14 +00:00
themeEngine.test.ts runtime + host: the theme engine (theme documents, choice catalog, page runtime, fonts; native theme state) 2026-09-29 06:07:59 +00:00
themeTokens.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
ui.test.ts runtime: plugin UI kit (api.ui: toast, alert, confirm, prompt, dialog, modal) and theme API (api.theme, --wb-* vars); theme JSON Schema; waybetter 0.2.0 2026-09-28 14:47:09 +00:00