@nextclaw/ncp 0.4.5 → 0.5.0

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 +6 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -223,6 +223,7 @@ type NcpError = {
223
223
  type NcpSessionStatus = "idle" | "running";
224
224
  type NcpSessionSummary = {
225
225
  sessionId: string;
226
+ agentId?: string;
226
227
  messageCount: number;
227
228
  updatedAt: string;
228
229
  status?: NcpSessionStatus;
@@ -897,6 +898,11 @@ interface NcpConversationStateManager {
897
898
  * Notifies subscribers after the update.
898
899
  */
899
900
  dispatch(event: NcpEndpointEvent): Promise<void>;
901
+ /**
902
+ * Applies multiple NCP events in order and notifies subscribers once after
903
+ * the batch finishes mutating state.
904
+ */
905
+ dispatchBatch(events: readonly NcpEndpointEvent[]): Promise<void>;
900
906
  /**
901
907
  * Subscribes to state changes. Listener is called after each dispatch that mutates state.
902
908
  * Returns an unsubscribe function.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/ncp",
3
- "version": "0.4.5",
3
+ "version": "0.5.0",
4
4
  "private": false,
5
5
  "description": "NextClaw Communication Protocol core abstractions and types.",
6
6
  "type": "module",