> For the complete documentation index, see [llms.txt](https://dnotifier.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dnotifier.gitbook.io/product-docs/appendix/changelog/changelog-javascript.md).

# JavaScript SDK

Release notes for [@dnotifier-realtime/dnotifier](https://www.npmjs.com/package/@dnotifier-realtime/dnotifier).

{% hint style="info" %}
Install the latest version with `npm install @dnotifier-realtime/dnotifier`. Pin a specific version in `package.json` for reproducible builds.
{% endhint %}

Cross-SDK feature table: [Changelog](https://dnotifier.gitbook.io/product-docs/appendix/changelog.md).

***

## 1.1.33

### Listen / MCP / A2A checkpoint resume

* Remote invokes on a listening agent accept `sessionId`, `state`, `resume` / `mode`, and `fromCheckpointId`.
* The host resumes from that checkpoint (merging any provided `state`) and returns session / checkpoint ids on the result when available.

→ [Checkpoints, sessions & resume](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/checkpoints.md) · [Serve agents over MCP](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/mcp-server.md) · [A2A](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/a2a.md)

***

## 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](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/checkpoints.md) · [JavaScript examples](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/checkpoints/javascript-typescript.md)

***

## 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](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/middleware.md) · [JavaScript examples](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/middleware/javascript-typescript.md)

***

## 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](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/mcp-server.md)

### A2A capability

* `capabilities: { a2a: true }` on agents and workflows.
* Expose agents over the open Agent2Agent protocol (Agent Card + JSON-RPC).

→ [Agent-to-agent (A2A)](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/a2a.md)

### Capabilities

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

→ [Define an agent](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/define-agent.md)

***

## 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](https://dnotifier.gitbook.io/product-docs/ai/vector-stores.md)

***

## 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](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/tools-and-mcp.md) · [Local tool example](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/example-tool-agent.md) · [MCP example](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/example-mcp-agent.md)

### Multi-model providers

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

→ [Multi-model providers](https://dnotifier.gitbook.io/product-docs/ai/multi-models.md)

### 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](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/remote-agents.md)

***

## 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](https://dnotifier.gitbook.io/product-docs/workflows-and-agents/overview.md)

### Chat history

* `fetchChatHistory({ senderId, receiverIds })` — request history; response delivered via `onMessage`.
* Supports multi-receiver history queries for thread reconstruction.

→ [Chat history](https://dnotifier.gitbook.io/product-docs/chat/chat-history/javascript-typescript.md)

### Delete APIs

* `deleteChatHistoryMessage({ senderId, messageId })` — remove a stored chat message.
* `deleteAIHistoryMessage({ senderId, messageId })` — remove a stored AI history entry.

→ [Delete chat messages](https://dnotifier.gitbook.io/product-docs/chat/delete-messages/javascript-typescript.md)

### Messaging

* Large payloads automatically chunked and reassembled before `onMessage`.
* Applies to structured `send()` data including images and binary content.

→ [Large messages & chunking](https://dnotifier.gitbook.io/product-docs/realtime-communication/chunking.md)

***

## 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"`:

```js
import WebSocket from "ws";
```

→ [Node.js platform guide](https://dnotifier.gitbook.io/product-docs/platform-guides/nodejs.md)

***

## Related

* [Changelog](https://dnotifier.gitbook.io/product-docs/appendix/changelog.md)
* [Changelog — Dart SDK](https://dnotifier.gitbook.io/product-docs/appendix/changelog/changelog-dart.md)
* [Changelog — Python SDK](https://dnotifier.gitbook.io/product-docs/appendix/changelog/changelog-python.md)
* [Support & links](https://dnotifier.gitbook.io/product-docs/appendix/support.md)
