feat: add hot-pluggable language shell UI system

This commit is contained in:
冰朔 2026-08-10 12:50:28 +08:00
commit 43578222c2
15 changed files with 592 additions and 5 deletions

View file

@ -1,5 +1,16 @@
# Architecture
## Hot-pluggable language-shell UI
The language shell accepts a complete declarative UI package through
`src/lib/uiPluginSystem.ts`. Packages can replace layout, copy, and safe semantic visual tokens while the
host retains goal compilation, permission checks, execution, and receipt truth. The React host renderer is
`src/components/HotPluggableLanguageShell.tsx`; registered packages live under `ui-plugins/`.
Activation is validate-then-swap and preserves the previous valid package for rollback. Plugin packages do
not execute JavaScript and cannot request system-internal surfaces. Extending the host action bridge requires
a new reviewed contract version.
Tolaria is a personal knowledge and life management desktop app. It reads a vault of markdown files with YAML frontmatter and presents them in a four-panel UI inspired by Bear Notes.
## Design Principles