blecsd-ai
Installation
SKILL.md
@blecsd/ai Package Skill
The @blecsd/ai package provides terminal UI widgets for building AI/LLM interfaces. It includes five major widgets for conversations, streaming markdown, token tracking, tool call visualization, and agent workflow displays. All widgets follow blECSd's functional ECS architecture.
Install: pnpm add @blecsd/ai
Peer dependency: blecsd >= 0.7.0
Import: import { conversation, streamingMarkdown, tokenTracker, toolUse, agentWorkflow } from '@blecsd/ai'
Architecture Rules
All blECSd rules apply: no classes, no this, no direct bitecs imports, functional only, early returns. See the blecsd-tui skill for core rules.
Each widget follows the namespace pattern: a frozen plain object of pure functions.
Widgets
1. Conversation Widget
Chat-style conversation thread with streaming support.