@multiplayer-app/ai-agent-react 0.1.0-beta.27 → 0.1.0-beta.29

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.
@@ -94698,9 +94698,9 @@ const a7 = (e, t) => {
94698
94698
  /* @__PURE__ */ T.jsx("div", { className: "mp-agent-tool-error", children: e.error })
94699
94699
  ] }) : /* @__PURE__ */ T.jsx("div", { className: "mp-agent-tool-simple-message", children: i });
94700
94700
  }, yHe = ({ call: e, messageId: t, chatId: n, onApprovalSent: r }) => {
94701
- const a = xt(), o = a.tools.get(e.name)?.label ?? e.name, s = a7(e, o), l = e.requiresConfirmation && e.approvalId && e.approved === void 0, u = e.requiresConfirmation && e.approvalId && e.approved !== void 0;
94701
+ const o = xt().tools.get(e.name)?.label ?? e.name, s = a7(e, o), l = e.requiresConfirmation && e.approvalId && e.approved === void 0, u = e.requiresConfirmation && e.approvalId && e.approved !== void 0;
94702
94702
  return /* @__PURE__ */ T.jsxs("div", { className: "mp-agent-tool-header", children: [
94703
- a.config.debug && /* @__PURE__ */ T.jsx("div", { className: "mp-agent-tool-simple-message", children: s }),
94703
+ /* @__PURE__ */ T.jsx("div", { className: "mp-agent-tool-simple-message", children: s }),
94704
94704
  l && /* @__PURE__ */ T.jsx(i7, { call: e, messageId: t, chatId: n, onApprovalSent: r }),
94705
94705
  u && /* @__PURE__ */ T.jsx("div", { className: "mp-agent-tool-approval-status-inline", children: e.approved ? /* @__PURE__ */ T.jsx("span", { className: "mp-agent-tool-approved", children: "✓ Approved" }) : /* @__PURE__ */ T.jsx("span", { className: "mp-agent-tool-denied", children: "✗ Denied" }) })
94706
94706
  ] });
@@ -94742,9 +94742,7 @@ const a7 = (e, t) => {
94742
94742
  /* @__PURE__ */ T.jsx("button", { className: "mp-agent-tool-deny-button", onClick: () => u(!1), disabled: o, children: o ? "Processing..." : "Deny" })
94743
94743
  ] });
94744
94744
  }, bHe = ({ call: e, contextKey: t, messageId: n, chatId: r }) => {
94745
- const a = xt(), i = Tt(() => a.getToolRenderer(e) ?? gHe, [a, e]), o = Te((d) => d.upsertChat), s = a.getToolRenderer(e);
94746
- a.config.debug;
94747
- const l = async () => {
94745
+ const a = xt(), i = Tt(() => a.getToolRenderer(e) ?? gHe, [a, e]), o = Te((d) => d.upsertChat), s = a.getToolRenderer(e), l = async () => {
94748
94746
  try {
94749
94747
  const d = await a.transport.getChat(r);
94750
94748
  o(d);