dsh-blue/blue--packages-core ↗★ 21

@dsh-blue/blue-core

Blue终端UI渲染核心与主题管理器 作为Blue架构的底层渲染器,适合处理终端生命周期、键盘分发与布局。

包名
@dsh-blue/blue-core
兼容性
待验证
Harness 依赖范围
^0.1.2-alpha.3
Cordis 依赖范围
^4.0.2
版本
0.2.0-alpha.1
许可证
MIT
最近更新
2026年9月28日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

@dsh-blue/blue-core

English | 中文

Blue's terminal renderer and the repository's only pi-tui adapter. It owns terminal startup/shutdown, raw mode, alternate screen, focus, keyboard dispatch, layout, themes, node validation/compilation, and visible width.

Core subscribes directly to ctx.bluePanes and ctx.blueOverlays. Pane/overlay render functions return renderer-neutral BlueUiNode values; core validates and compiles them into concrete components. There is no plugin host or bridge between the registry and renderer. Visible passive bottom panes stack by priority above the editor, while focusable panes retain tab selection.

Core also owns rich terminal rendering: the shared Markdown adapter enhances closed Mermaid fences, while structured chart nodes are adapted through the active semantic theme. Invalid, unsafe, over-quota, or over-wide input remains visible through width-contained source or text fallbacks.

The package also exposes low-level blueScreen, blueKeymap, blueTerminalInfo, blueComponents, and theme services for Blue's own TUI packages.