langchain_agentx_stream_ui 0.1.8 → 0.2.0
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/{chunk-WPW3TQQF.js → chunk-2T26L3VT.js} +2 -2
- package/dist/{chunk-LBJFJF22.js → chunk-ZNXAQ4ZZ.js} +7 -1
- package/dist/chunk-ZNXAQ4ZZ.js.map +1 -0
- package/dist/default.css +16 -0
- package/dist/index.d.ts +10 -2
- package/dist/index.js +1011 -162
- package/dist/index.js.map +1 -1
- package/dist/multi-session.js +2 -2
- package/dist/virtual.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-LBJFJF22.js.map +0 -1
- /package/dist/{chunk-WPW3TQQF.js.map → chunk-2T26L3VT.js.map} +0 -0
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
useSessionStatus,
|
|
25
25
|
useSessionViewOptions,
|
|
26
26
|
useToolDisplayOptions
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZNXAQ4ZZ.js";
|
|
28
28
|
import {
|
|
29
29
|
createDefaultToolRegistry
|
|
30
30
|
} from "./chunk-7CLAU74Y.js";
|
|
@@ -1897,4 +1897,4 @@ export {
|
|
|
1897
1897
|
createActiveSessionBridge,
|
|
1898
1898
|
MultiAgentSession
|
|
1899
1899
|
};
|
|
1900
|
-
//# sourceMappingURL=chunk-
|
|
1900
|
+
//# sourceMappingURL=chunk-2T26L3VT.js.map
|
|
@@ -649,6 +649,9 @@ function appendStreamChunk(current, data) {
|
|
|
649
649
|
return (current ?? "") + streamChunk(data);
|
|
650
650
|
}
|
|
651
651
|
function handleStart(tree, event) {
|
|
652
|
+
if (tree.status === "done" || tree.status === "error") {
|
|
653
|
+
return;
|
|
654
|
+
}
|
|
652
655
|
tree.status = "running";
|
|
653
656
|
tree.meta.startedAt = eventTimeToMs(event.timestamp);
|
|
654
657
|
if (event.session_id) tree.meta.sessionId = event.session_id;
|
|
@@ -713,10 +716,12 @@ function handleFinish(tree, event, seq) {
|
|
|
713
716
|
appendFinishErrorNode(tree, event, data, seq);
|
|
714
717
|
finalizeRunningToolCalls(tree, endedAt, "failed");
|
|
715
718
|
finalizeStreamingNodes(tree);
|
|
719
|
+
tree.activeRoundId = null;
|
|
716
720
|
return;
|
|
717
721
|
}
|
|
718
722
|
finalizeRunningToolCalls(tree, endedAt, "done");
|
|
719
723
|
finalizeStreamingNodes(tree);
|
|
724
|
+
tree.activeRoundId = null;
|
|
720
725
|
tree.status = "done";
|
|
721
726
|
}
|
|
722
727
|
var TASK_DEBUG_EVENT_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -923,6 +928,7 @@ function handleReasoningEnd(tree, event) {
|
|
|
923
928
|
elapsedSeconds,
|
|
924
929
|
isCollapsible: true
|
|
925
930
|
};
|
|
931
|
+
tree.activeRoundId = null;
|
|
926
932
|
}
|
|
927
933
|
function upsertToolNode(tree, id, event, init, seq, mountMain) {
|
|
928
934
|
const data = event.data;
|
|
@@ -5557,4 +5563,4 @@ export {
|
|
|
5557
5563
|
VirtualTimeline,
|
|
5558
5564
|
SessionTimeline
|
|
5559
5565
|
};
|
|
5560
|
-
//# sourceMappingURL=chunk-
|
|
5566
|
+
//# sourceMappingURL=chunk-ZNXAQ4ZZ.js.map
|