@arbidocs/react 0.3.134 → 0.3.136
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.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1142,8 +1142,11 @@ function ChatView({ workspaceId, theme, labels }) {
|
|
|
1142
1142
|
docIds: selectedDocs,
|
|
1143
1143
|
previousResponseId,
|
|
1144
1144
|
onToken: (t) => setStreaming((prev) => prev + t),
|
|
1145
|
-
|
|
1146
|
-
|
|
1145
|
+
onOutputItemDone: (ev) => {
|
|
1146
|
+
const item = ev.item;
|
|
1147
|
+
if (item.type === "function_call" || item.type === "reasoning") {
|
|
1148
|
+
setAgentStatus(item.arbi?.focus || item.arbi?.label || "");
|
|
1149
|
+
}
|
|
1147
1150
|
}
|
|
1148
1151
|
},
|
|
1149
1152
|
{
|
|
@@ -1656,7 +1659,10 @@ function useAiTask() {
|
|
|
1656
1659
|
bufferRef.current += c;
|
|
1657
1660
|
setText(bufferRef.current);
|
|
1658
1661
|
},
|
|
1659
|
-
|
|
1662
|
+
onOutputItemDone: (ev) => {
|
|
1663
|
+
const t = ev.item.type;
|
|
1664
|
+
if (t === "function_call" || t === "reasoning") setStepCount((n) => n + 1);
|
|
1665
|
+
},
|
|
1660
1666
|
onArtifact: (a) => {
|
|
1661
1667
|
artifactsRef.current.set(a.doc_ext_id, a);
|
|
1662
1668
|
setArtifacts([...artifactsRef.current.values()]);
|