@opentrace/opentrace 0.4.0-rc.649 → 0.4.0-rc.656
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/lib/{SidePanel-CuGhFGJi.cjs → SidePanel-C8fYuv1B.cjs} +12 -11
- package/dist/lib/{SidePanel-CuGhFGJi.cjs.map → SidePanel-C8fYuv1B.cjs.map} +1 -1
- package/dist/lib/{SidePanel-Dt3-GTyg.js → SidePanel-CmUm08MQ.js} +12 -11
- package/dist/lib/{SidePanel-Dt3-GTyg.js.map → SidePanel-CmUm08MQ.js.map} +1 -1
- package/dist/lib/app-components.cjs +1 -1
- package/dist/lib/app-components.js +1 -1
- package/dist/lib/app.cjs +1 -1
- package/dist/lib/app.js +1 -1
- package/dist/lib/src/appComponents/ChatPanel.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
|
+
const reactDom = require("react-dom");
|
|
4
5
|
const _commonjsHelpers = require("./_commonjsHelpers-cpYYNffD.cjs");
|
|
5
6
|
const v4$2 = require("./v4-DT1ViLGh.cjs");
|
|
6
7
|
const ChatTemplates = require("./ChatTemplates-A_lcy38z.cjs");
|
|
@@ -70785,22 +70786,22 @@ ${att.textContent}
|
|
|
70785
70786
|
setStreaming(false);
|
|
70786
70787
|
progress.setListener(null);
|
|
70787
70788
|
const hasUsage = usageAccum.inputTokens > 0 || usageAccum.outputTokens > 0;
|
|
70788
|
-
|
|
70789
|
-
|
|
70790
|
-
|
|
70791
|
-
|
|
70792
|
-
|
|
70789
|
+
reactDom.flushSync(() => {
|
|
70790
|
+
setMessages((prev) => {
|
|
70791
|
+
if (!hasUsage) return prev;
|
|
70792
|
+
const updated = [...prev];
|
|
70793
|
+
const last = updated[updated.length - 1];
|
|
70794
|
+
if (last?.role !== "assistant") return prev;
|
|
70793
70795
|
updated[updated.length - 1] = {
|
|
70794
70796
|
...last,
|
|
70795
70797
|
usage: usageAccum
|
|
70796
70798
|
};
|
|
70797
|
-
|
|
70798
|
-
|
|
70799
|
-
|
|
70800
|
-
}
|
|
70799
|
+
return updated;
|
|
70800
|
+
});
|
|
70801
|
+
});
|
|
70801
70802
|
if (!controller.signal.aborted) {
|
|
70802
70803
|
persistMessages(
|
|
70803
|
-
|
|
70804
|
+
messagesRef.current,
|
|
70804
70805
|
providerId,
|
|
70805
70806
|
modelId,
|
|
70806
70807
|
Array.from(chatFoundNodesRef.current)
|
|
@@ -79238,4 +79239,4 @@ exports.useGraph = useGraph;
|
|
|
79238
79239
|
exports.useGraphData = useGraphData;
|
|
79239
79240
|
exports.useGraphInteraction = useGraphInteraction;
|
|
79240
79241
|
exports.useGraphViewer = useGraphViewer;
|
|
79241
|
-
//# sourceMappingURL=SidePanel-
|
|
79242
|
+
//# sourceMappingURL=SidePanel-C8fYuv1B.cjs.map
|