Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

JavaScript SDK

Release notes for @dnotifier-realtime/dnotifier.

Install the latest version with npm install @dnotifier-realtime/dnotifier. Pin a specific version in package.json for reproducible builds.

Cross-SDK feature table: Changelog.


1.1.32

Checkpoints, sessions & resume

  • Pass sessionId on runAgent / runWorkflow to keep conversation and workflow state across turns.

  • Resume, retry, or replay a run with resume, mode, and optional fromCheckpointId.

  • Optional in-memory checkpointer for local tests; cloud storage when you pass a sessionId.

→ Checkpoints, sessions & resume · JavaScript examples


1.1.31

Middleware

  • Agent middleware: hooks around the full run and around model / tool steps (beforeAgent, afterAgent, beforeModel, afterModel, wrapModelCall, beforeTool, afterTool, wrapToolCall, onError).

  • Workflow middleware: hooks around entry (beforeWorkflow, afterWorkflow, onError, onComplete).

  • Register with middleware on defineAgent or Workflow.

→ Middleware · JavaScript examples


1.1.30

MCP server capability

  • capabilities: { mcpServer: true } on agents and workflows.

  • Listen so Claude, Cursor, and other MCP clients can discover and call your agent through DNotifier.

→ Serve agents over MCP

A2A capability

  • capabilities: { a2a: true } on agents and workflows.

  • Expose agents over the open Agent2Agent protocol (Agent Card + JSON-RPC).

→ Agent-to-agent (A2A)

Capabilities

  • Declare what an agent or workflow supports: mcpServer, a2a, tools, rag, memory, workflows, humanApproval, subagents.

→ Define an agent


1.1.29

Vector stores & embeddings

  • Choose knowledge-base storage and embedding model via serverConfig or per call (vectorStore / embedding).

  • Providers such as Postgres, Pinecone, and Ollama embeddings (see docs for the full list).

→ Vector stores and embeddings


1.1.23

Agent tools & MCP client

  • notifier.tools.register for local tools; notifier.mcp.connect for HTTP MCP servers.

  • Tool agents via defineAgent({ tools, instructions, permissions, observability }).

  • Standalone notifier.runAgent(agent, { input }) for tool agents.

  • Permission enforcement (permissionEnforcement) and onAgentEvent telemetry.

  • Workflow observability records tool-agent runs in the dashboard.

→ Tools & MCP agents · Local tool example · MCP example

Multi-model providers

  • Pass provider and model on sendAI and agent defaults (OpenAI, Anthropic, Azure, Ollama, and more).

→ Multi-model providers

License

  • Package license set to proprietary (UNLICENSED + LICENSE).


1.1.20

Remote agents

  • Register a remote agent by receiverId on a workflow and call it with ctx.runAgent the same way as a local agent.

  • Requires WebSocket transport for request/reply across servers.

→ Remote agents


1.1.13

Workflows

  • DNotifier.defineAgent, DNotifier.Workflow, and DNotifier.runWorkflow for multi-step AI pipelines.

  • WorkflowContext helpers: runAgent, sendAI, search, document CRUD, recordStep.

  • Optional workflow observability when observability: true.

  • WorkflowError for validation and runtime failures.

→ Workflows overview

Chat history

  • fetchChatHistory({ senderId, receiverIds }) — request history; response delivered via onMessage.

  • Supports multi-receiver history queries for thread reconstruction.

→ Chat history

Delete APIs

  • deleteChatHistoryMessage({ senderId, messageId }) — remove a stored chat message.

  • deleteAIHistoryMessage({ senderId, messageId }) — remove a stored AI history entry.

→ Delete chat messages

Messaging

  • Large payloads automatically chunked and reassembled before onMessage.

  • Applies to structured send() data including images and binary content.

→ Large messages & chunking


1.1.12

Workflows (initial)

  • Early workflow and agent primitives: defineAgent, Workflow, WorkflowRunner.

  • authToken available on DNotifier after successful connect().

Chat history (initial)

  • fetchChatHistory for retrieving stored conversations between users.

Delete (initial)

  • deleteChatHistoryMessage for per-message chat deletion.

  • deleteAIHistoryMessage for AI conversation cleanup.

Messaging (initial)

  • Automatic outbound chunking for large payloads.

  • Inbound reassembly before onMessage.


Earlier highlights

Version area
Features

AI pipeline

sendAI, fetchAIHistory, knowledge-base search, addDocument, session logs: true

Transports

WebSocket with WebSocketImpl injection; HTTP for RPC-style calls

Realtime

send, sendBinary, plan limits from auth

Deprecated

sendWithOpenAI — use sendAI


Upgrade notes

From pre-1.1.12

  1. Update npm install @dnotifier-realtime/dnotifier@latest

  2. Replace any sendWithOpenAI calls with sendAI

  3. If using workflows, register agents before runWorkflow

Node.js WebSocket

Ensure WebSocketImpl is passed when using transport: "ws":

→ Node.js platform guide


Last updated