@multiplayer-app/ai-agent-react 0.1.0-beta.80 → 0.1.0-beta.83

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.
@@ -34414,6 +34414,7 @@ const T_e = Zd(null), C_e = ({ children: e }) => {
34414
34414
  path: L,
34415
34415
  auth: P,
34416
34416
  transports: ["websocket", "polling"],
34417
+ withCredentials: !0,
34417
34418
  ...Object.keys(x).length > 0 && { extraHeaders: x }
34418
34419
  });
34419
34420
  t.setSocketClient(j), u(j);
@@ -35033,6 +35034,7 @@ const q3 = (e) => {
35033
35034
  async function V_e(e, t, n, r) {
35034
35035
  const a = await fetch(r.presignedUrlEndpoint, {
35035
35036
  method: "POST",
35037
+ credentials: "include",
35036
35038
  headers: {
35037
35039
  "Content-Type": "application/json",
35038
35040
  ...r.getAuthHeaders?.() || {}
@@ -35078,12 +35080,7 @@ async function G_e(e, t, n) {
35078
35080
  };
35079
35081
  try {
35080
35082
  n.onProgress?.({ ...a, status: "uploading", progress: 0 });
35081
- const { url: i, key: o } = await V_e(
35082
- e,
35083
- n.chatId,
35084
- n.userId,
35085
- t
35086
- );
35083
+ const { url: i, key: o } = await V_e(e, n.chatId, n.userId, t);
35087
35084
  return await j_e(e, i, (s) => {
35088
35085
  n.onProgress?.({
35089
35086
  ...a,
@@ -35115,13 +35112,9 @@ async function G_e(e, t, n) {
35115
35112
  }
35116
35113
  }
35117
35114
  async function W_e(e, t, n) {
35118
- const r = await Promise.allSettled(
35119
- e.map((o) => G_e(o, t, n))
35120
- ), a = [], i = [];
35115
+ const r = await Promise.allSettled(e.map((o) => G_e(o, t, n))), a = [], i = [];
35121
35116
  if (r.forEach((o, s) => {
35122
- o.status === "fulfilled" ? a.push(o.value) : i.push(
35123
- new Error(`Failed to process ${e[s].name}: ${o.reason}`)
35124
- );
35117
+ o.status === "fulfilled" ? a.push(o.value) : i.push(new Error(`Failed to process ${e[s].name}: ${o.reason}`));
35125
35118
  }), i.length > 0 && a.length === 0)
35126
35119
  throw i[0];
35127
35120
  return i.length > 0 && console.warn("Some files failed to upload:", i), a;