@cc2agui/core
v0.1.0
Published
Map Claude Code stream-json records to AG-UI events
Downloads
116
Maintainers
Readme
@cc2agui/core
The mapper behind cc2agui: feed it Claude Code
stream-json records, receive AG-UI events. Platform-neutral
— no node:* imports, nothing beyond web standards — so it runs in Node, browsers and workers alike.
npm install @cc2agui/coreimport { createMapper } from "@cc2agui/core";
const mapper = createMapper();
for (const line of lines) {
for (const event of mapper.feedLine(line)) send(event);
}
for (const event of mapper.end()) send(event);The full API, the options, the record-to-event mapping table and the escape-hatch semantics are documented in the repository README.
MIT licensed.
