Import
import {
acceptAgUiEvent,
acceptNativeEvent,
assertEventSchemaValidator,
createAgUiParser,
createEventParser,
parseAgUiEvent,
} from "veryfront/events";Examples
Validate one event with an injected JSON Schema validator.
import { createEventParser } from "veryfront/events";
import { createZodAdapter } from "@veryfront/ext-schema-zod";
const parser = createEventParser(createZodAdapter());
export function parseEvent(rawEvent: unknown) {
const event = parser.parseEvent(rawEvent);
console.log(event.type, event.data);
return event;
}Exports
Components
Functions
Types
Deep imports
These import paths group focused functionality under this module. Each is a separate barrel; import only what you need.
veryfront/events/ag-ui
Public AG-UI interoperability helpers. This entry point exposes the pinned AG-UI 1.0 parser, pure/stateful normalization helpers, and the schema-validated native-profile dispatcher used by API and Studio integration. Durable persistence belongs to API receipt checkpoints. Lower-level family helpers and generated read-frame constructors stay internal while the profile contracts settle.
import { acceptAgUiEvent, createAgUiParser, parseAgUiEvent } from "veryfront/events/ag-ui";Components
Functions
Types
veryfront/events/canonical-v1
Explicit canonical-v1 read contracts. Existing pilot event parsers are unchanged.
import {
decodeDescendantCursorV1,
parseDescendantRunReadPageV1,
parseEventDiscoveryV1,
} from "veryfront/events/canonical-v1";