@nextclaw/ncp 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -897,6 +897,11 @@ interface NcpConversationStateManager {
897
897
  * Notifies subscribers after the update.
898
898
  */
899
899
  dispatch(event: NcpEndpointEvent): Promise<void>;
900
+ /**
901
+ * Applies multiple NCP events in order and notifies subscribers once after
902
+ * the batch finishes mutating state.
903
+ */
904
+ dispatchBatch(events: readonly NcpEndpointEvent[]): Promise<void>;
900
905
  /**
901
906
  * Subscribes to state changes. Listener is called after each dispatch that mutates state.
902
907
  * Returns an unsubscribe function.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/ncp",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "private": false,
5
5
  "description": "NextClaw Communication Protocol core abstractions and types.",
6
6
  "type": "module",