@assistant-ui/react 0.11.26 → 0.11.28

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/package.json CHANGED
@@ -28,7 +28,7 @@
28
28
  "conversational-ui",
29
29
  "conversational-ai"
30
30
  ],
31
- "version": "0.11.26",
31
+ "version": "0.11.28",
32
32
  "license": "MIT",
33
33
  "type": "module",
34
34
  "exports": {
@@ -48,8 +48,8 @@
48
48
  ],
49
49
  "sideEffects": false,
50
50
  "dependencies": {
51
- "assistant-cloud": "^0.1.1",
52
- "@assistant-ui/tap": "^0.1.1",
51
+ "assistant-cloud": "^0.1.3",
52
+ "@assistant-ui/tap": "^0.1.2",
53
53
  "@radix-ui/primitive": "^1.1.3",
54
54
  "@radix-ui/react-compose-refs": "^1.1.2",
55
55
  "@radix-ui/react-context": "^1.1.2",
@@ -59,7 +59,7 @@
59
59
  "@radix-ui/react-use-callback-ref": "^1.1.1",
60
60
  "@radix-ui/react-use-escape-keydown": "^1.1.1",
61
61
  "@standard-schema/spec": "^1.0.0",
62
- "assistant-stream": "^0.2.33",
62
+ "assistant-stream": "^0.2.34",
63
63
  "json-schema": "^0.4.0",
64
64
  "nanoid": "5.1.6",
65
65
  "react-textarea-autosize": "^8.5.9",
@@ -84,7 +84,7 @@
84
84
  "@stryker-mutator/core": "^9.1.1",
85
85
  "@stryker-mutator/vitest-runner": "^9.1.1",
86
86
  "@types/json-schema": "^7.0.15",
87
- "@types/node": "^24.5.2",
87
+ "@types/node": "^24.6.2",
88
88
  "eslint": "^9",
89
89
  "eslint-config-next": "15.5.4",
90
90
  "tsx": "^4.20.6",
@@ -1,4 +1,4 @@
1
- import { resource } from "../../../../tap/dist/core/resource";
1
+ import { resource } from "@assistant-ui/tap";
2
2
  import { AttachmentClientApi } from "../../client/types/Attachment";
3
3
  import { tapApi } from "../../utils/tap-store";
4
4
  import { AttachmentRuntime } from "../runtime";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./getExternalStoreMessage";
9
9
  import { fromThreadMessageLike, ThreadMessageLike } from "./ThreadMessageLike";
10
10
  import { getAutoStatus, isAutoStatus } from "./auto-status";
11
- import { ToolCallMessagePart } from "../../../types";
11
+ import { ThreadMessage, ToolCallMessagePart } from "../../../types";
12
12
  import { ToolExecutionStatus } from "../assistant-transport/useToolInvocations";
13
13
 
14
14
  export namespace useExternalMessageConverter {
@@ -25,6 +25,7 @@ export namespace useExternalMessageConverter {
25
25
  result: any;
26
26
  artifact?: any;
27
27
  isError?: boolean;
28
+ messages?: readonly ThreadMessage[];
28
29
  };
29
30
 
30
31
  export type Metadata = {
@@ -70,7 +71,7 @@ const joinExternalMessages = (
70
71
  const toolCall = assistantMessage.content[
71
72
  toolCallIdx
72
73
  ]! as ToolCallMessagePart;
73
- if (output.toolName) {
74
+ if (output.toolName !== undefined) {
74
75
  if (toolCall.toolName !== output.toolName)
75
76
  throw new Error(
76
77
  `Tool call name ${output.toolCallId} ${output.toolName} does not match existing tool call ${toolCall.toolName}`,
@@ -87,6 +88,7 @@ const joinExternalMessages = (
87
88
  result: output.result,
88
89
  artifact: output.artifact,
89
90
  isError: output.isError,
91
+ messages: output.messages,
90
92
  };
91
93
  } else {
92
94
  throw new Error(