@octaviaflow/core 3.1.0-beta.117 → 3.1.0-beta.118
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-MSRO4K25.js +3691 -0
- package/dist/chunk-MSRO4K25.js.map +1 -0
- package/dist/components/AssistantConversation/AssistantConversation.d.ts.map +1 -1
- package/dist/index.cjs +24 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/marketing.cjs +24 -10
- package/dist/marketing.cjs.map +1 -1
- package/dist/marketing.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/marketing.cjs
CHANGED
|
@@ -4136,7 +4136,7 @@ var STATE_LINE = {
|
|
|
4136
4136
|
thinking: "Thinking\u2026",
|
|
4137
4137
|
processing: "Working\u2026",
|
|
4138
4138
|
speaking: "Writing\u2026",
|
|
4139
|
-
done: "
|
|
4139
|
+
done: "",
|
|
4140
4140
|
stopped: "Stopped",
|
|
4141
4141
|
error: "Couldn't answer",
|
|
4142
4142
|
offline: "Offline"
|
|
@@ -4261,15 +4261,29 @@ function AssistantConversation({
|
|
|
4261
4261
|
messages.map(
|
|
4262
4262
|
(m) => m.role === "user" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatBubble, { variant: "user", hideAvatar: true, children: m.content }, m.id) : /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "ods-assistant__reply", children: [
|
|
4263
4263
|
m.steps && m.steps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatToolTrace, { calls: m.steps }),
|
|
4264
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatBubble, { variant: "bot", hideAvatar: true, children: m.content ?
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4264
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatBubble, { variant: "bot", hideAvatar: true, children: m.content ? (
|
|
4265
|
+
// Plain text keeps its line breaks; rendered content (markdown,
|
|
4266
|
+
// lists) is block content and lays out its own lines.
|
|
4267
|
+
typeof m.content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
4268
|
+
"span",
|
|
4269
|
+
{
|
|
4270
|
+
className: cn(
|
|
4271
|
+
"ods-assistant__text",
|
|
4272
|
+
m.streaming && "ods-assistant__text--streaming"
|
|
4273
|
+
),
|
|
4274
|
+
children: m.content
|
|
4275
|
+
}
|
|
4276
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
4277
|
+
"div",
|
|
4278
|
+
{
|
|
4279
|
+
className: cn(
|
|
4280
|
+
"ods-assistant__text",
|
|
4281
|
+
"ods-assistant__text--rich",
|
|
4282
|
+
m.streaming && "ods-assistant__text--streaming"
|
|
4283
|
+
),
|
|
4284
|
+
children: m.content
|
|
4285
|
+
}
|
|
4286
|
+
)
|
|
4273
4287
|
) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatThinking, { variant: "shimmer", label: m.status || "Thinking\u2026", size: "sm" }) }),
|
|
4274
4288
|
m.blocks && m.blocks.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "ods-assistant__blocks", children: m.blocks.map((b, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
4275
4289
|
Block,
|