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架构的底层渲染器,适合处理终端生命周期、键盘分发与布局。

パッケージ
@dsh-blue/blue-core
互換性
未検証
Harness ピア範囲
^0.1.2-alpha.3
Cordis ピア範囲
^4.0.2
バージョン
0.2.0-alpha.1
ライセンス
MIT
最終更新
2026/09/28

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

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.