@invergent/agent-chat-react 2.17.6 → 2.17.7

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.cjs CHANGED
@@ -5181,7 +5181,7 @@ function MemoryToolBlock({ tc }) {
5181
5181
  args.content && /* @__PURE__ */ jsxRuntime.jsx(MemoryEntry, { content: args.content, label: "New", variant: "added" })
5182
5182
  ] }),
5183
5183
  action === "remove" && args.old_text && /* @__PURE__ */ jsxRuntime.jsx(MemoryEntry, { content: args.old_text, variant: "removed" }),
5184
- result?.error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded bg-red-500/10 px-2 py-1 text-xs text-red-500", children: result.error })
5184
+ result?.error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded bg-red-500/10 px-2 py-1 text-xs text-red-500", children: typeof result.error === "string" ? result.error : JSON.stringify(result.error) })
5185
5185
  ] })
5186
5186
  }
5187
5187
  )