ai 5.0.0-beta.22 → 5.0.0-beta.23

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
@@ -1,5 +1,11 @@
1
1
  # ai
2
2
 
3
+ ## 5.0.0-beta.23
4
+
5
+ ### Patch Changes
6
+
7
+ - 89ba235: fix (ui): support tool names with dash
8
+
3
9
  ## 5.0.0-beta.22
4
10
 
5
11
  ### Patch Changes
package/dist/bin/ai.js CHANGED
@@ -720,7 +720,7 @@ function isToolUIPart(part) {
720
720
  return part.type.startsWith("tool-");
721
721
  }
722
722
  function getToolName(part) {
723
- return part.type.split("-")[1];
723
+ return part.type.split("-").slice(1).join("-");
724
724
  }
725
725
 
726
726
  // src/ui/process-ui-message-stream.ts