waybetter/crates/waybetter-host/src
CRT 205ee82296 host: plugins, custom CSS, feature flags, settings and open_panel are host commands
run_app now keeps and serves what every app's panel and page need, with the same caller checks
as the rest (commands::SHELL: shell_only first; testkit::assert_host_guards covers them):

- app.rs: PageState (the plugin store in app data `plugins`, the feature flags, ShellSettings)
  managed by the host; commands plugins_list, plugin_set_enabled, plugins_open_folder,
  custom_css_get/set, features_get/set, settings_get/set (moved from wayBetter for X). The app
  reads the state through app::page(), gets a loaded document's scripts from app::page_scripts()
  (flags, links, custom CSS, plugins) and writes through set_features/set_settings/set_custom_css
  (a backup import). AppConfig takes the app's PluginHost (AppConfig::new(site, title, plugins))
  and an optional home_url. SiteHooks::navigation_started and new_window_mode default to the
  owner's link settings.
- settings.rs (pure, tested): ShellSettings { homeUrl, externalLinks, siteLinks, restoreTabs }
  with its input form (missing fields take the defaults; `xLinks`, the name wayBetter for X used,
  is read as siteLinks), links_script ({ site: mode }), feature validation and features_script.
- commands::SITE + open_panel: a tab on the site's origin asks the shell to open the app's panel
  (site_tab_only first). testkit: assert_site_only(command, site) checks that every capability
  granting a site command is a tab capability limited to the site's URLs; assert_host_commands and
  assert_host_guards include the site commands.
- shell frame backupModel: a settings section that still says xLinks compares as siteLinks.
2026-09-30 14:28:52 +07:00
..
media host: gallery folders and the opt-in clipboard history 2026-09-29 11:13:01 +07:00
plugins host: palette commands and developer mode watcher 2026-09-29 11:02:07 +07:00
store host: store module: install links, allow-list, signed multi-app catalog, staging and installs 2026-09-29 11:05:25 +07:00
alerts.rs host: keyword alerts and native notifications 2026-09-29 11:05:49 +07:00
app.rs host: plugins, custom CSS, feature flags, settings and open_panel are host commands 2026-09-30 14:28:52 +07:00
backup.rs host: settings backup envelope and encrypted folder sync 2026-09-29 10:58:15 +07:00
bridge.rs host: the tab bridge ships from waybetter-host; create-waybetter uses it 2026-09-29 11:22:54 +07:00
commands.rs host: plugins, custom CSS, feature flags, settings and open_panel are host commands 2026-09-30 14:28:52 +07:00
devmode.rs host: palette commands and developer mode watcher 2026-09-29 11:02:07 +07:00
fonts.rs host: self-hosted Google Fonts (gfonts) and the font cache (fonts) 2026-09-29 11:15:10 +07:00
gfonts.rs host: self-hosted Google Fonts (gfonts) and the font cache (fonts) 2026-09-29 11:15:10 +07:00
host.rs fix(shell): coordinate startup cover and tab stills 2026-09-30 12:25:46 +07:00
hotfix.rs Extract the wayBetter framework core from wayBetter for X 2026-09-28 03:01:33 +07:00
i18n.rs host: run_app — the window, shell, tab webviews and generic commands for every app 2026-09-29 11:51:24 +07:00
layout.rs fix(shell): coordinate startup cover and tab stills 2026-09-30 12:25:46 +07:00
lib.rs host: plugins, custom CSS, feature flags, settings and open_panel are host commands 2026-09-30 14:28:52 +07:00
media.rs host: gallery folders and the opt-in clipboard history 2026-09-29 11:13:01 +07:00
plugins.rs host: palette commands and developer mode watcher 2026-09-29 11:02:07 +07:00
policy.rs Extract the wayBetter framework core from wayBetter for X 2026-09-28 03:01:33 +07:00
profiles.rs Extract the wayBetter framework core from wayBetter for X 2026-09-28 03:01:33 +07:00
settings.rs host: plugins, custom CSS, feature flags, settings and open_panel are host commands 2026-09-30 14:28:52 +07:00
site.rs Extract the wayBetter framework core from wayBetter for X 2026-09-28 03:01:33 +07:00
sync.rs host: settings backup envelope and encrypted folder sync 2026-09-29 10:58:15 +07:00
tabs.rs host: plugins, custom CSS, feature flags, settings and open_panel are host commands 2026-09-30 14:28:52 +07:00
testkit.rs host: plugins, custom CSS, feature flags, settings and open_panel are host commands 2026-09-30 14:28:52 +07:00
theme.rs runtime + host: the theme engine (theme documents, choice catalog, page runtime, fonts; native theme state) 2026-09-29 13:07:59 +07:00
update.rs Extract the wayBetter framework core from wayBetter for X 2026-09-28 03:01:33 +07:00
updater.rs host: updater (signed native updates and the hotfix channel) 2026-09-29 11:17:54 +07:00
workspaces.rs host: saved workspaces validation 2026-09-29 10:59:20 +07:00