@poolse/react 3.2.0-dev.0 → 3.2.0-dev.1

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to `@poolse/react` are documented here. Format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
5
5
  [semver](https://semver.org).
6
6
 
7
+ ## [3.2.0-dev.1] — 2026-11-04 (prerelease, npm tag `dev`)
8
+
9
+ ### Added
10
+
11
+ - `useMessageStreams` exposes the tool an agent is running as `stream.tool`.
12
+
7
13
  ## [3.2.0-dev.0] — 2026-11-04 (prerelease, npm tag `dev`)
8
14
 
9
15
  ### Added
package/dist/index.cjs CHANGED
@@ -891,7 +891,11 @@ function useMessageStreams(conversationId) {
891
891
  status: "streaming"
892
892
  };
893
893
  let next;
894
- if (evt.status === "delta") next = { ...base, text: base.text + (evt.delta ?? "") };
894
+ if (evt.status === "delta") {
895
+ const { tool: _done, ...rest } = base;
896
+ next = { ...rest, text: base.text + (evt.delta ?? "") };
897
+ } else if (evt.status === "tool")
898
+ next = { ...base, ...evt.tool ? { tool: evt.tool } : {} };
895
899
  else if (evt.status === "failed")
896
900
  next = { ...base, status: "failed", ...evt.error ? { error: evt.error } : {} };
897
901
  else