@axiom-lattice/react-sdk 2.1.56 → 2.1.57
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1735,7 +1735,13 @@ function AgentThreadProvider({
|
|
|
1735
1735
|
}
|
|
1736
1736
|
let interrupt;
|
|
1737
1737
|
if (chunk.type === "interrupt") {
|
|
1738
|
-
|
|
1738
|
+
const rawChunk = chunk;
|
|
1739
|
+
interrupt = {
|
|
1740
|
+
type: "interrupt",
|
|
1741
|
+
id: rawChunk.id,
|
|
1742
|
+
role: "ai",
|
|
1743
|
+
value: rawChunk.data?.content || rawChunk.data
|
|
1744
|
+
};
|
|
1739
1745
|
} else if (anyChunk.type === "queue_status") {
|
|
1740
1746
|
return;
|
|
1741
1747
|
} else {
|
|
@@ -1759,7 +1765,8 @@ function AgentThreadProvider({
|
|
|
1759
1765
|
...prev,
|
|
1760
1766
|
todos: todos || prev.todos,
|
|
1761
1767
|
messages: updatedMessages,
|
|
1762
|
-
isLoading: true
|
|
1768
|
+
isLoading: true,
|
|
1769
|
+
interrupts: interrupt ? [interrupt] : void 0
|
|
1763
1770
|
}));
|
|
1764
1771
|
},
|
|
1765
1772
|
[]
|