JavaScript SDK
Release notes for @dnotifier-realtime/dnotifier.
Cross-SDK feature table: Changelog.
1.1.32
Checkpoints, sessions & resume
Pass
sessionIdonrunAgent/runWorkflowto keep conversation and workflow state across turns.Resume, retry, or replay a run with
resume,mode, and optionalfromCheckpointId.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
middlewareondefineAgentorWorkflow.
→ 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.
A2A capability
capabilities: { a2a: true }on agents and workflows.Expose agents over the open Agent2Agent protocol (Agent Card + JSON-RPC).
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
serverConfigor 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.registerfor local tools;notifier.mcp.connectfor HTTP MCP servers.Tool agents via
defineAgent({ tools, instructions, permissions, observability }).Standalone
notifier.runAgent(agent, { input })for tool agents.Permission enforcement (
permissionEnforcement) andonAgentEventtelemetry.Workflow observability records tool-agent runs in the dashboard.
→ Tools & MCP agents · Local tool example · MCP example
Multi-model providers
Pass
providerandmodelonsendAIand agent defaults (OpenAI, Anthropic, Azure, Ollama, and more).
License
Package license set to proprietary (
UNLICENSED+LICENSE).
1.1.20
Remote agents
Register a remote agent by
receiverIdon a workflow and call it withctx.runAgentthe same way as a local agent.Requires WebSocket transport for request/reply across servers.
→ Remote agents
1.1.13
Workflows
DNotifier.defineAgent,DNotifier.Workflow, andDNotifier.runWorkflowfor multi-step AI pipelines.WorkflowContexthelpers:runAgent,sendAI,search, document CRUD,recordStep.Optional workflow observability when
observability: true.WorkflowErrorfor validation and runtime failures.
Chat history
fetchChatHistory({ senderId, receiverIds })— request history; response delivered viaonMessage.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.
Messaging
Large payloads automatically chunked and reassembled before
onMessage.Applies to structured
send()data including images and binary content.
1.1.12
Workflows (initial)
Early workflow and agent primitives:
defineAgent,Workflow,WorkflowRunner.authTokenavailable onDNotifierafter successfulconnect().
Chat history (initial)
fetchChatHistoryfor retrieving stored conversations between users.
Delete (initial)
deleteChatHistoryMessagefor per-message chat deletion.deleteAIHistoryMessagefor AI conversation cleanup.
Messaging (initial)
Automatic outbound chunking for large payloads.
Inbound reassembly before
onMessage.
Earlier highlights
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
Update
npm install @dnotifier-realtime/dnotifier@latestReplace any
sendWithOpenAIcalls withsendAIIf using workflows, register agents before
runWorkflow
Node.js WebSocket
Ensure WebSocketImpl is passed when using transport: "ws":
Related
Last updated