@kite-copilot/chat-panel 0.2.29 → 0.2.32
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/auto.cjs +1 -7
- package/dist/auto.js +1 -1
- package/dist/{chunk-DGU3KTFD.js → chunk-5NNBNZBS.js} +1 -7
- package/dist/embed.global.js +5 -5
- package/dist/index.cjs +1 -7
- package/dist/index.js +1 -1
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/auto.cjs
CHANGED
|
@@ -2087,9 +2087,6 @@ function ChatPanel({
|
|
|
2087
2087
|
};
|
|
2088
2088
|
setMessages((prev) => [...prev, escalationMessage]);
|
|
2089
2089
|
} else if (eventType === "token") {
|
|
2090
|
-
if (process.env.NODE_ENV === "development") {
|
|
2091
|
-
console.debug("[SSE] Token delta:", data.delta?.length || 0, "chars");
|
|
2092
|
-
}
|
|
2093
2090
|
}
|
|
2094
2091
|
} catch (parseError) {
|
|
2095
2092
|
console.error("Failed to parse SSE event:", parseError);
|
|
@@ -2958,10 +2955,7 @@ ${userText}`
|
|
|
2958
2955
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `flex justify-end ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "max-w-[260px] rounded-2xl rounded-br-md bg-gray-900 px-3.5 py-2.5 text-sm text-white shadow-sm", children: message.content }) }, message.id);
|
|
2959
2956
|
}
|
|
2960
2957
|
if (message.role === "agent") {
|
|
2961
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `flex justify-start ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime9.
|
|
2962
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "text-xs text-blue-600 font-medium mb-1", children: "Support Agent" }),
|
|
2963
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "whitespace-pre-wrap leading-relaxed", children: renderMarkdown(message.content || "") })
|
|
2964
|
-
] }) }, message.id);
|
|
2958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `flex justify-start ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "max-w-[260px] rounded-2xl rounded-bl-md bg-blue-500 px-3.5 py-2.5 text-sm text-white shadow-sm", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "whitespace-pre-wrap leading-relaxed", children: renderMarkdown(message.content || "") }) }) }, message.id);
|
|
2965
2959
|
}
|
|
2966
2960
|
if (message.kind === "searchSummary") {
|
|
2967
2961
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
package/dist/auto.js
CHANGED
|
@@ -2086,9 +2086,6 @@ function ChatPanel({
|
|
|
2086
2086
|
};
|
|
2087
2087
|
setMessages((prev) => [...prev, escalationMessage]);
|
|
2088
2088
|
} else if (eventType === "token") {
|
|
2089
|
-
if (process.env.NODE_ENV === "development") {
|
|
2090
|
-
console.debug("[SSE] Token delta:", data.delta?.length || 0, "chars");
|
|
2091
|
-
}
|
|
2092
2089
|
}
|
|
2093
2090
|
} catch (parseError) {
|
|
2094
2091
|
console.error("Failed to parse SSE event:", parseError);
|
|
@@ -2957,10 +2954,7 @@ ${userText}`
|
|
|
2957
2954
|
return /* @__PURE__ */ jsx9("div", { className: `flex justify-end ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ jsx9("div", { className: "max-w-[260px] rounded-2xl rounded-br-md bg-gray-900 px-3.5 py-2.5 text-sm text-white shadow-sm", children: message.content }) }, message.id);
|
|
2958
2955
|
}
|
|
2959
2956
|
if (message.role === "agent") {
|
|
2960
|
-
return /* @__PURE__ */ jsx9("div", { className: `flex justify-start ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */
|
|
2961
|
-
/* @__PURE__ */ jsx9("div", { className: "text-xs text-blue-600 font-medium mb-1", children: "Support Agent" }),
|
|
2962
|
-
/* @__PURE__ */ jsx9("div", { className: "whitespace-pre-wrap leading-relaxed", children: renderMarkdown(message.content || "") })
|
|
2963
|
-
] }) }, message.id);
|
|
2957
|
+
return /* @__PURE__ */ jsx9("div", { className: `flex justify-start ${isRoleChange ? "mt-3" : ""}`, children: /* @__PURE__ */ jsx9("div", { className: "max-w-[260px] rounded-2xl rounded-bl-md bg-blue-500 px-3.5 py-2.5 text-sm text-white shadow-sm", children: /* @__PURE__ */ jsx9("div", { className: "whitespace-pre-wrap leading-relaxed", children: renderMarkdown(message.content || "") }) }) }, message.id);
|
|
2964
2958
|
}
|
|
2965
2959
|
if (message.kind === "searchSummary") {
|
|
2966
2960
|
return /* @__PURE__ */ jsx9(
|