@brainst0rm/shared
v0.14.3
Published
Shared types, errors, and logging for the Brainstorm ecosystem
Maintainers
Readme
@brainst0rm/shared
Foundation types, errors, and logging shared across all Brainstorm packages.
Key Exports
TaskProfile— Classified task descriptor (complexity, category, tokens)ModelEntry— Model with pricing, capabilities, providerAgentProfile— Agent configuration (role, tools, prompt)TurnContext— Per-turn state for agent self-awarenessAgentEvent— Union type for all agent loop eventsformatTurnContext()— Compact one-liner for context injectionBrainstormError— Typed error hierarchylogger— Pino logger instance
Usage
import {
type TaskProfile,
type ModelEntry,
formatTurnContext,
} from "@brainst0rm/shared";