@takeshape/purchase-order-chat 1.61.1 → 1.63.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { r as o } from "./purchase-order-chat-wrapper-Dx5MotHH.js";
3
+ import { r as o } from "./purchase-order-chat-wrapper-CMOXLHX5.js";
4
4
  import { PurchaseOrderChat as c } from "./shadow.js";
5
5
  function n(r) {
6
6
  return /* @__PURE__ */ e(
@@ -22,7 +22,7 @@ function ji(t, e) {
22
22
  return i != null ? String(i) : "";
23
23
  });
24
24
  }
25
- const Gr = "__vite_c_css_pos_initial_4d48a0f21ada4581a77d5620e56016d9", bt = "__vite_c_css_pos_update_4d48a0f21ada4581a77d5620e56016d9", Ct = () => typeof window < "u" ? window[Gr] : void 0, Wi = (t) => {
25
+ const Gr = "__vite_c_css_pos_initial_5760f583c58d40af9dee51cdfad89390", bt = "__vite_c_css_pos_update_5760f583c58d40af9dee51cdfad89390", Ct = () => typeof window < "u" ? window[Gr] : void 0, Wi = (t) => {
26
26
  const [e, r] = R(() => Ct() || /* @__PURE__ */ new Map()), [n, i] = R(0);
27
27
  return F(() => {
28
28
  const s = (o) => {
@@ -4451,7 +4451,7 @@ async function Ds(t, e) {
4451
4451
  const m = r.find(
4452
4452
  (v) => v.toolCallId === u.toolCallId
4453
4453
  );
4454
- m && (m.output = u.output);
4454
+ m && (m.output = u.output, e?.onToolOutput?.(m));
4455
4455
  break;
4456
4456
  }
4457
4457
  case "error":
@@ -6887,7 +6887,8 @@ async function Ta(t, e, r, n, i, s) {
6887
6887
  r,
6888
6888
  p
6889
6889
  ), y = await Ds(T, {
6890
- onToolCall: s?.onToolCall
6890
+ onToolCall: s?.onToolCall,
6891
+ onToolOutput: s?.onToolOutput
6891
6892
  });
6892
6893
  if (c.push(...y.textParts), o.push(...y.toolCalls), y.finalMessage && l.push(y.finalMessage), y.errorMessage?.includes(ka)) {
6893
6894
  s?.logger?.debug(
@@ -8454,4 +8455,4 @@ export {
8454
8455
  ji as r,
8455
8456
  Hi as s
8456
8457
  };
8457
- //# sourceMappingURL=purchase-order-chat-wrapper-Dx5MotHH.js.map
8458
+ //# sourceMappingURL=purchase-order-chat-wrapper-CMOXLHX5.js.map