Skip to content

v0.9.4

Choose a tag to compare

@github-actions github-actions released this 10 Oct 17:48
· 73 commits to main since this release

Render the json-render specs an AG-UI agent streams, with the new ngx-json-render/ag-ui entry point.

AG-UI is the event protocol CopilotKit, LangGraph and others speak between an agent and its frontend. A spec now travels on it as an activity with activityType: "json-render-spec": ACTIVITY_SNAPSHOT.content is a whole spec, and ACTIVITY_DELTA.patch is RFC 6902 patches against it, the same patches a JSONL stream is made of.

What's new

  • injectAgentUI({ agent }) listens to any @ag-ui/client agent and gives the signals injectUIStream gives: spec, isStreaming, error, issues, plus surfaces when one run builds several specs. The app keeps running the agent; each spec is checked when the run ends (validate, catalog, renderLimits, onComplete).
  • Deltas apply through the renderer's immutable patch engine, so elements a delta does not touch keep their identity and are not re-rendered. applyAgUiEvent(surfaces, event) is the same fold as a pure function.
  • jsonRenderActivityRenderer() registers json-render activities with CopilotKit Angular's renderActivityMessages; it draws with the registry from provideJsonRender.
  • No new peer: the entry point accepts any agent and event of the right shape and never imports @ag-ui/*.

The README section From an AG-UI agent covers the client, CopilotKit and a server route that turns the model's output into activity events.

Upgrading

npm i ngx-json-render@0.9.4. Nothing changes for existing code. The Material catalog's ^0.8.0 || ^0.9.0 peer covers this release, so no catalog update is needed.

0.9.3 was bumped but never published; its only change, a README edit, ships in this release.

Full Changelog: v0.9.2...v0.9.4