@codex-app-sdk/vue 0.19.4 → 0.19.5
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.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7847,7 +7847,7 @@ var dd = ["aria-busy", "aria-label"], fd = ["title"], pd = ["title"], md = /*#__
|
|
|
7847
7847
|
let n = e, r = t, i = o(() => n.entries.map((e) => ({
|
|
7848
7848
|
entry: e,
|
|
7849
7849
|
message: Ca(e.message)
|
|
7850
|
-
}))), a = o(() => n.turnId), s = o(() => i.value.some(({ message: e }) => e.role === "assistant" && eo(e))), c = o(() => [...i.value].reverse().find(({ message: e }) => e.role === "assistant" && e.streaming === !0)?.entry.index), u = o(() => n.active === !1 ? void 0 : [...i.value].reverse().find(({ message: e }) => e.role === "assistant" && e.streaming === !0 && (e.parts?.length ?? 0) > 0)?.entry.index), d = o(() => i.value.some(({ entry: e, message: t }) => t.role === "assistant" && (u.value === void 0 || e.index >= u.value) && (t.parts?.some((e) => e.type === "text" && e.phase === "final_answer" && e.content.trim().length > 0) ?? !1))), f = o(() => !d.value && (n.active ?? i.value.some(({ message: e }) => e.role === "assistant" && e.streaming === !0))), p = o(() => n.status), m = o(() => n.startedAt), h = o(() => n.durationMs), g = o(() => !f.value && !d.value && (p.value === "interrupted" || p.value === "failed")), _ = o(() => n.itemsView === void 0 && s.value && !f.value && !d.value && (p.value === void 0 || p.value === "completed")), v = o(() => i.value.find(({ message: e }) => e.role === "assistant" && (n.itemsView !== void 0 || T(e)))?.entry.index), y = o(() => n.itemsView === "summary" || i.value.some(({ message: e }) => e.type === "steer" && Va(e).length > 0 || e.role === "assistant" && Va(e).some((e) => (n.showToolBlocks || e.type !== "tool" && e.type !== "tool-group") && to(e, n.answeredClientRequestIds)))), x = o(() => !!(a.value && v.value !== void 0)), S = N(f.value && !d.value || g.value), C = N(!1), w = o(() => n.detailsLoading || S.value && n.itemsView === "summary" && !n.detailsError);
|
|
7850
|
+
}))), a = o(() => n.turnId), s = o(() => i.value.some(({ message: e }) => e.role === "assistant" && eo(e))), c = o(() => [...i.value].reverse().find(({ message: e }) => e.role === "assistant" && e.streaming === !0)?.entry.index), u = o(() => n.active === !1 ? void 0 : [...i.value].reverse().find(({ message: e }) => e.role === "assistant" && e.streaming === !0 && (e.parts?.length ?? 0) > 0)?.entry.index), d = o(() => i.value.some(({ entry: e, message: t }) => t.role === "assistant" && (u.value === void 0 || e.index >= u.value) && (t.parts?.some((e) => e.type === "text" && e.phase === "final_answer" && e.content.trim().length > 0) ?? !1))), f = o(() => !d.value && (n.active ?? i.value.some(({ message: e }) => e.role === "assistant" && e.streaming === !0))), p = o(() => n.status), m = o(() => n.startedAt), h = o(() => n.durationMs), g = o(() => !f.value && !d.value && (p.value === "interrupted" || p.value === "failed")), _ = o(() => n.itemsView === void 0 && s.value && !f.value && !d.value && (p.value === void 0 || p.value === "completed")), v = o(() => i.value.find(({ message: e }) => e.role === "assistant" && (n.itemsView !== void 0 || T(e)))?.entry.index), y = o(() => n.itemsView === "summary" || i.value.some(({ message: e }) => e.type === "steer" && Va(e).length > 0 || e.role === "assistant" && Va(e).some((e) => (n.showToolBlocks || e.type !== "tool" && e.type !== "tool-group") && to(e, n.answeredClientRequestIds)))), x = o(() => !!(a.value && v.value !== void 0)), S = N(f.value && !d.value || g.value), C = N(!1), w = o(() => !f.value && (n.detailsLoading || S.value && n.itemsView === "summary" && !n.detailsError));
|
|
7851
7851
|
W(d, (e, t) => {
|
|
7852
7852
|
e && !t && !C.value && (S.value = !1);
|
|
7853
7853
|
}), W([f, g], ([e, t]) => {
|
|
@@ -7856,7 +7856,7 @@ var dd = ["aria-busy", "aria-label"], fd = ["title"], pd = ["title"], md = /*#__
|
|
|
7856
7856
|
active: f,
|
|
7857
7857
|
completedWithoutFinal: _,
|
|
7858
7858
|
enabled: x,
|
|
7859
|
-
expanded: o(() => S.value && !w.value && (n.itemsView !== "summary" || !!n.detailsError)),
|
|
7859
|
+
expanded: o(() => S.value && !w.value && (f.value || n.itemsView !== "summary" || !!n.detailsError)),
|
|
7860
7860
|
finalStarted: d,
|
|
7861
7861
|
headerMessageIndex: v,
|
|
7862
7862
|
latestStreamingAssistantIndex: c,
|
|
@@ -7876,12 +7876,13 @@ var dd = ["aria-busy", "aria-label"], fd = ["title"], pd = ["title"], md = /*#__
|
|
|
7876
7876
|
C.value = !0, S.value = !S.value;
|
|
7877
7877
|
}
|
|
7878
7878
|
}), W([
|
|
7879
|
+
f,
|
|
7879
7880
|
S,
|
|
7880
7881
|
() => n.itemsView,
|
|
7881
7882
|
() => n.detailsLoading,
|
|
7882
7883
|
() => n.detailsError
|
|
7883
7884
|
], () => {
|
|
7884
|
-
S.value && n.itemsView === "summary" && !n.detailsLoading && !n.detailsError && n.turnId && r("loadTurnHistory", n.turnId);
|
|
7885
|
+
!f.value && S.value && n.itemsView === "summary" && !n.detailsLoading && !n.detailsError && n.turnId && r("loadTurnHistory", n.turnId);
|
|
7885
7886
|
}, { immediate: !0 });
|
|
7886
7887
|
function T(e) {
|
|
7887
7888
|
let t = Va(e).filter((e) => n.showToolBlocks || e.type !== "tool" && e.type !== "tool-group");
|
|
@@ -7889,7 +7890,7 @@ var dd = ["aria-busy", "aria-label"], fd = ["title"], pd = ["title"], md = /*#__
|
|
|
7889
7890
|
}
|
|
7890
7891
|
return (e, t) => (k(), l("div", kd, [I(e.$slots, "default", {}, void 0, !0)]));
|
|
7891
7892
|
}
|
|
7892
|
-
}), [["__scopeId", "data-v-
|
|
7893
|
+
}), [["__scopeId", "data-v-964be11a"]]), jd = ["aria-label", "title"], Md = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7893
7894
|
__name: "CodexScrollToBottom",
|
|
7894
7895
|
props: { label: { default: "Scroll to bottom" } },
|
|
7895
7896
|
emits: ["click"],
|