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

@dsh-blue/blue-core

Blue terminal UI core: the tree's only @earendil-works/pi-tui adapter, owning terminal lifecycle and the blueScreen/blueKeymap/blueTerminalInfo/blueComponents services plus the blue-theme-dark/light/ocean/paper/auto/custom palette entries 作为Blue架构的底层渲染器,适合处理终端生命周期、键盘分发与布局。

Package
@dsh-blue/blue-core
Compatibility
Unverified
Harness peer range
^0.1.2-alpha.3
Cordis peer range
^4.0.2
Version
0.2.0-alpha.1
License
MIT
Last updated
Sep 28, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full 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.