@assistant-ui/react 0.11.25 → 0.11.27

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.25",
31
+ "version": "0.11.27",
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";
@@ -42,6 +42,7 @@ export type ThreadMessageLike = {
42
42
  readonly result?: any | undefined;
43
43
  readonly isError?: boolean | undefined;
44
44
  readonly parentId?: string | undefined;
45
+ readonly messages?: readonly ThreadMessage[] | undefined;
45
46
  }
46
47
  )[];
47
48
  readonly id?: string | undefined;
@@ -122,11 +123,12 @@ export const fromThreadMessageLike = (
122
123
  return sanitizeImageContent(part);
123
124
 
124
125
  case "tool-call": {
125
- const { parentId, ...basePart } = part;
126
+ const { parentId, messages, ...basePart } = part;
126
127
  const commonProps = {
127
128
  ...basePart,
128
129
  toolCallId: part.toolCallId ?? "tool-" + generateId(),
129
130
  ...(parentId !== undefined && { parentId }),
131
+ ...(messages !== undefined && { messages }),
130
132
  };
131
133
 
132
134
  if (part.args) {