@agent-wasm/chat-core
v0.1.0
Published
Framework-free chat domain types and session registry for agent-wasm.
Readme
@agent-wasm/chat-core
The dependency-free chat domain shared by @agent-wasm/react
(the chat UI) and the agent packages (@agent-wasm/code, …).
No React, no runtime — just types, pure tool-call encoders, and a session
registry, so agent packages stay framework-free and the dependency graph stays
acyclic.
npm install @agent-wasm/chat-coreAPI
- Conversation types —
AgentHarness,ChatMessage,ChatToolCall,ChatElicitation,ConversationState, and theConversationAdapterinterface that the chat UI renders and each agent implements. - Tool-call encoders —
claudeToolUseToToolCall,buildUnifiedPatch,ensurePatchHeaders,truncateToolOutput. agentSessionRegistry— a pub/sub registry of live CLI agent sessions (ActiveAgentSession,AgentSessionRegistry).- Chat preferences —
CHAT_MODEL_OPTIONS,readChatModel/writeChatModel,readChatEffort/writeChatEffort, and friends.
License
MIT
