@fencyai/react 0.1.220 → 0.1.221

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.
@@ -1 +1 @@
1
- {"version":3,"file":"AgentTaskProgress.d.ts","sourceRoot":"","sources":["../../src/agent-task/AgentTaskProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,KAA2C,MAAM,OAAO,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAG9C,OAAO,EAGH,KAAK,cAAc,EACtB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EACR,uCAAuC,EACvC,2BAA2B,EAC3B,+BAA+B,EAClC,MAAM,+BAA+B,CAAA;AAoDtC;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC,+CAA+C;IAC/C,SAAS,EAAE,SAAS,CAAA;IACpB,4FAA4F;IAC5F,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,qFAAqF;IACrF,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3E,kFAAkF;IAClF,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACvE,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7E,mEAAmE;IACnE,yBAAyB,CAAC,EAAE,CACxB,OAAO,EAAE,uCAAuC,KAC/C,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK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KAAK,CAAC,EAAE,CAC3C,6BAA6B,CA+tBhC,CAAA"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as n, Fragment as U } from "react/jsx-runtime";
2
- import { StreamEventManager as sn, StreamCacheManager as cn, toStreamData as dn, submitManualActionResult as je, ActionStatus as ee, AutoActionLedger as Be, contentKey as fe, REFRESH_CONTEXT_ACTION as un, dispatchAutoActionCall as pn, postAutoActionResult as mn, parseWithSchema as Me, taskReducer as gn, initialTaskStoreState as yn, createAgentTaskFileDownloadLink as hn, isTerminalAgentTaskEventData as fn, agentTaskErrorFromEventData as xn, shouldAppendCompletedToProgress as kn, getTerminalCreateAgentTaskResponse as Sn, createAgentTask as bn, mapCreateAgentTaskParams as vn, parseAgentTaskFileIdFromFencyFileHref as Tn, parseAgentTaskMemoryFromFencyMemHref as Cn } from "@fencyai/js";
2
+ import { StreamEventManager as sn, StreamCacheManager as cn, toStreamData as dn, submitManualActionResult as je, ActionStatus as ee, AutoActionLedger as De, contentKey as fe, REFRESH_CONTEXT_ACTION as un, dispatchAutoActionCall as pn, postAutoActionResult as mn, parseWithSchema as Me, taskReducer as gn, initialTaskStoreState as yn, createAgentTaskFileDownloadLink as hn, isTerminalAgentTaskEventData as fn, agentTaskErrorFromEventData as xn, shouldAppendCompletedToProgress as kn, getTerminalCreateAgentTaskResponse as Sn, createAgentTask as bn, mapCreateAgentTaskParams as vn, parseAgentTaskFileIdFromFencyFileHref as Tn, parseAgentTaskMemoryFromFencyMemHref as Cn } from "@fencyai/js";
3
3
  import { StreamEventManager as tr } from "@fencyai/js";
4
4
  import wn, { createContext as Ke, useState as L, useRef as N, useEffect as X, useCallback as O, useContext as Qe, useMemo as V, useReducer as Mn, useLayoutEffect as Rn } from "react";
5
5
  import { motion as R, useInView as En, AnimatePresence as In } from "motion/react";
@@ -161,7 +161,7 @@ class Ln {
161
161
  this.write(this.read().filter((r) => r.actionCallId !== t));
162
162
  }
163
163
  }
164
- async function Bn(e) {
164
+ async function Dn(e) {
165
165
  const t = [], r = [];
166
166
  for (const o of e.queue.list())
167
167
  try {
@@ -174,7 +174,7 @@ async function Bn(e) {
174
174
  clientToken: i,
175
175
  agentTaskId: o.agentTaskId,
176
176
  actionCallId: o.actionCallId,
177
- result: Dn(o)
177
+ result: Bn(o)
178
178
  });
179
179
  a.type === "success" ? (e.queue.remove(o.actionCallId), t.push({
180
180
  actionCallId: o.actionCallId,
@@ -194,7 +194,7 @@ async function Bn(e) {
194
194
  }
195
195
  return { delivered: t, failed: r };
196
196
  }
197
- function Dn(e) {
197
+ function Bn(e) {
198
198
  return e.status === ee.APPROVED && e.name && e.input ? {
199
199
  status: ee.APPROVED,
200
200
  name: e.name,
@@ -231,7 +231,7 @@ function $n(e) {
231
231
  context: u.current
232
232
  }, []), A = O(
233
233
  (S, P, E) => {
234
- P && i.current.set(S, P), a.current.has(S) || a.current.set(S, new Be(S)), l.current.set(S, {
234
+ P && i.current.set(S, P), a.current.has(S) || a.current.set(S, new De(S)), l.current.set(S, {
235
235
  actions: (E == null ? void 0 : E.actions) ?? d.current,
236
236
  context: (E == null ? void 0 : E.context) ?? u.current
237
237
  });
@@ -248,7 +248,7 @@ function $n(e) {
248
248
  );
249
249
  return;
250
250
  }
251
- const C = a.current.get(S) ?? new Be(S);
251
+ const C = a.current.get(S) ?? new De(S);
252
252
  a.current.set(S, C);
253
253
  const F = await fe(P.action, P.input), { auto: z, manual: I } = Wn(T(S).actions), j = P.action !== un && !!I[P.action] && !z[P.action];
254
254
  await pn(P, {
@@ -259,15 +259,15 @@ function $n(e) {
259
259
  refreshContext: T(S).context,
260
260
  post: async (Y, G) => {
261
261
  j && (G.status === ee.ERROR || G.status === ee.TIMEOUT) && (b.current.add(F), ae(b.current));
262
- const B = await mn({
262
+ const D = await mn({
263
263
  baseUrl: e.baseUrl,
264
264
  pk: e.pk,
265
265
  autoActionResultToken: E,
266
266
  actionCallId: Y,
267
267
  result: G
268
268
  });
269
- B.type === "error" && console.error(
270
- `[fency] Failed to post auto action result: ${B.message}`
269
+ D.type === "error" && console.error(
270
+ `[fency] Failed to post auto action result: ${D.message}`
271
271
  );
272
272
  }
273
273
  });
@@ -318,7 +318,7 @@ function $n(e) {
318
318
  var E;
319
319
  const S = y.current;
320
320
  if (!S) return;
321
- const P = await Bn({
321
+ const P = await Dn({
322
322
  queue: s.current,
323
323
  baseUrl: e.baseUrl,
324
324
  pk: e.pk,
@@ -409,25 +409,25 @@ function $n(e) {
409
409
  );
410
410
  return;
411
411
  }
412
- const P = new Set(S.map((B) => B.record.actionCallId));
412
+ const P = new Set(S.map((D) => D.record.actionCallId));
413
413
  let E = !1;
414
- if (r((B) => B.filter((q) => P.has(q.actionCallId)).some((q) => q.inFlight || q.decision != null) ? (E = !0, B) : B.map(
414
+ if (r((D) => D.filter((q) => P.has(q.actionCallId)).some((q) => q.inFlight || q.decision != null) ? (E = !0, D) : D.map(
415
415
  (q) => P.has(q.actionCallId) ? { ...q, inFlight: !0 } : q
416
416
  )), E) return;
417
417
  const C = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Set();
418
418
  let z = 0;
419
- for (const B of S) {
420
- const K = await v(B.record, B.approved);
419
+ for (const D of S) {
420
+ const K = await v(D.record, D.approved);
421
421
  if (!K.ok) {
422
- F.add(B.record.actionCallId), (I = g.current) == null || I.call(g, {
423
- actionCallId: B.record.actionCallId,
422
+ F.add(D.record.actionCallId), (I = g.current) == null || I.call(g, {
423
+ actionCallId: D.record.actionCallId,
424
424
  message: K.message
425
425
  });
426
426
  continue;
427
427
  }
428
428
  s.current.add({
429
- agentTaskId: B.record.turnId,
430
- actionCallId: B.record.actionCallId,
429
+ agentTaskId: D.record.turnId,
430
+ actionCallId: D.record.actionCallId,
431
431
  status: K.result.status,
432
432
  name: K.result.name,
433
433
  input: K.result.input,
@@ -435,32 +435,32 @@ function $n(e) {
435
435
  });
436
436
  try {
437
437
  const q = await _(
438
- B.record.turnId,
439
- B.record.actionCallId
438
+ D.record.turnId,
439
+ D.record.actionCallId
440
440
  ), he = await je({
441
441
  baseUrl: e.baseUrl,
442
442
  pk: e.pk,
443
443
  clientToken: q,
444
- agentTaskId: B.record.turnId,
445
- actionCallId: B.record.actionCallId,
444
+ agentTaskId: D.record.turnId,
445
+ actionCallId: D.record.actionCallId,
446
446
  result: K.result
447
447
  });
448
- he.type === "success" ? (s.current.remove(B.record.actionCallId), C.set(
449
- B.record.actionCallId,
450
- B.approved ? "approved" : "cancelled"
451
- ), B.approved && (z += 1)) : (he.retryable || s.current.remove(B.record.actionCallId), F.add(B.record.actionCallId), (j = g.current) == null || j.call(g, {
452
- actionCallId: B.record.actionCallId,
448
+ he.type === "success" ? (s.current.remove(D.record.actionCallId), C.set(
449
+ D.record.actionCallId,
450
+ D.approved ? "approved" : "cancelled"
451
+ ), D.approved && (z += 1)) : (he.retryable || s.current.remove(D.record.actionCallId), F.add(D.record.actionCallId), (j = g.current) == null || j.call(g, {
452
+ actionCallId: D.record.actionCallId,
453
453
  message: he.message
454
454
  }));
455
455
  } catch (q) {
456
- F.add(B.record.actionCallId), (Y = g.current) == null || Y.call(g, {
457
- actionCallId: B.record.actionCallId,
456
+ F.add(D.record.actionCallId), (Y = g.current) == null || Y.call(g, {
457
+ actionCallId: D.record.actionCallId,
458
458
  message: q instanceof Error ? q.message : String(q)
459
459
  });
460
460
  }
461
461
  }
462
462
  r(
463
- (B) => B.map((K) => {
463
+ (D) => D.map((K) => {
464
464
  const q = C.get(K.actionCallId);
465
465
  return q ? { ...K, inFlight: !1, decision: q } : F.has(K.actionCallId) ? { ...K, inFlight: !1 } : K;
466
466
  })
@@ -792,14 +792,14 @@ const Xo = (e) => {
792
792
  context: I.context
793
793
  } : void 0
794
794
  );
795
- const B = d(
795
+ const D = d(
796
796
  $
797
797
  ), K = c(
798
798
  $
799
799
  );
800
- return B && l.current.set(
800
+ return D && l.current.set(
801
801
  G.agentTask.id,
802
- B
802
+ D
803
803
  ), K && s.current.set(
804
804
  G.agentTask.id,
805
805
  K
@@ -827,17 +827,17 @@ const Xo = (e) => {
827
827
  error: G.error
828
828
  };
829
829
  {
830
- const B = {
830
+ const D = {
831
831
  message: "No response received",
832
832
  code: "UnknownError"
833
833
  };
834
834
  return o({
835
835
  type: "TASK_API_ERROR",
836
836
  taskKey: W,
837
- error: B
837
+ error: D
838
838
  }), {
839
839
  type: "error",
840
- error: B
840
+ error: D
841
841
  };
842
842
  }
843
843
  }
@@ -2304,7 +2304,7 @@ function pe(e, t) {
2304
2304
  }
2305
2305
  return r.join(", ");
2306
2306
  }
2307
- function D({
2307
+ function B({
2308
2308
  text: e,
2309
2309
  duration: t = 2,
2310
2310
  delay: r = 0,
@@ -2382,7 +2382,7 @@ const ke = 5, oe = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o, compa
2382
2382
  initial: { opacity: 0, y: -10 },
2383
2383
  animate: { opacity: 1, y: 0 },
2384
2384
  transition: { duration: 0.3, delay: 0 },
2385
- children: t && !r && !g ? /* @__PURE__ */ n(D, { text: h, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ p(U, { children: [
2385
+ children: t && !r && !g ? /* @__PURE__ */ n(B, { text: h, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ p(U, { children: [
2386
2386
  /* @__PURE__ */ n("span", { style: { color: a.textSecondary }, children: u ? /* @__PURE__ */ p(U, { children: [
2387
2387
  o.searchingFor,
2388
2388
  /* @__PURE__ */ p("span", { style: { fontWeight: 600 }, children: [
@@ -2971,7 +2971,7 @@ const yt = ({
2971
2971
  initial: { opacity: 0, y: -10 },
2972
2972
  animate: { opacity: 1, y: 0 },
2973
2973
  transition: { duration: 0.3, delay: 0 },
2974
- children: t && !r && !d ? /* @__PURE__ */ n(D, { text: y, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ p(U, { children: [
2974
+ children: t && !r && !d ? /* @__PURE__ */ n(B, { text: y, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ p(U, { children: [
2975
2975
  /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: y }),
2976
2976
  d && !a && /* @__PURE__ */ p(U, { children: [
2977
2977
  " ",
@@ -3098,7 +3098,7 @@ const yt = ({
3098
3098
  ] })
3099
3099
  }
3100
3100
  ) });
3101
- }, De = ({ isLatest: e = !1, durationSeconds: t, t: r }) => {
3101
+ }, Be = ({ isLatest: e = !1, durationSeconds: t, t: r }) => {
3102
3102
  const { colors: o } = M(), i = r.addingSources;
3103
3103
  return /* @__PURE__ */ p("div", { style: { paddingBlock: "16px" }, children: [
3104
3104
  /* @__PURE__ */ n(
@@ -3113,7 +3113,7 @@ const yt = ({
3113
3113
  initial: { opacity: 0, y: -10 },
3114
3114
  animate: { opacity: 1, y: 0 },
3115
3115
  transition: { duration: 0.3, delay: 0 },
3116
- children: e && !t ? /* @__PURE__ */ n(D, { text: i, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: o.textSecondary }, children: i })
3116
+ children: e && !t ? /* @__PURE__ */ n(B, { text: i, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: o.textSecondary }, children: i })
3117
3117
  }
3118
3118
  ),
3119
3119
  t !== void 0 && /* @__PURE__ */ n(
@@ -3509,7 +3509,7 @@ function wt({
3509
3509
  initial: { opacity: 0, y: -10 },
3510
3510
  animate: { opacity: 1, y: 0 },
3511
3511
  transition: { duration: 0.3, delay: 0 },
3512
- children: t && !r ? /* @__PURE__ */ n(D, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
3512
+ children: t && !r ? /* @__PURE__ */ n(B, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
3513
3513
  }
3514
3514
  ),
3515
3515
  r !== void 0 && /* @__PURE__ */ n(
@@ -3745,7 +3745,7 @@ function Lt({
3745
3745
  children: an(e.url)
3746
3746
  }
3747
3747
  ),
3748
- !a && d != null && /* @__PURE__ */ n("div", { style: { fontSize: 12, color: o.textTertiary, minHeight: 18 }, children: r ? /* @__PURE__ */ n(D, { text: d, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: o.textTertiary }, children: d }) }),
3748
+ !a && d != null && /* @__PURE__ */ n("div", { style: { fontSize: 12, color: o.textTertiary, minHeight: 18 }, children: r ? /* @__PURE__ */ n(B, { text: d, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: o.textTertiary }, children: d }) }),
3749
3749
  a && /* @__PURE__ */ n(
3750
3750
  "div",
3751
3751
  {
@@ -3783,7 +3783,7 @@ function Lt({
3783
3783
  }
3784
3784
  );
3785
3785
  }
3786
- function Bt({
3786
+ function Dt({
3787
3787
  item: e,
3788
3788
  t
3789
3789
  }) {
@@ -3923,7 +3923,7 @@ function $e(e, t, r) {
3923
3923
  }
3924
3924
  );
3925
3925
  }
3926
- function Dt({
3926
+ function Bt({
3927
3927
  data: e,
3928
3928
  isLatest: t,
3929
3929
  durationSeconds: r,
@@ -3938,7 +3938,7 @@ function Dt({
3938
3938
  initial: { opacity: 0, y: -10 },
3939
3939
  animate: { opacity: 1, y: 0 },
3940
3940
  transition: { duration: 0.3, delay: 0 },
3941
- children: t && !r ? /* @__PURE__ */ n(D, { text: c, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: c })
3941
+ children: t && !r ? /* @__PURE__ */ n(B, { text: c, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: c })
3942
3942
  }
3943
3943
  ),
3944
3944
  r !== void 0 && /* @__PURE__ */ n(
@@ -3991,7 +3991,7 @@ function zt({
3991
3991
  gap: "6px 12px",
3992
3992
  minWidth: 0
3993
3993
  },
3994
- children: t && !g ? /* @__PURE__ */ n(D, { text: b, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n(
3994
+ children: t && !g ? /* @__PURE__ */ n(B, { text: b, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n(
3995
3995
  "span",
3996
3996
  {
3997
3997
  style: {
@@ -4058,11 +4058,11 @@ function zt({
4058
4058
  ]
4059
4059
  }
4060
4060
  ),
4061
- i && $e(l, o, (T) => /* @__PURE__ */ n(Bt, { item: T, t: r }))
4061
+ i && $e(l, o, (T) => /* @__PURE__ */ n(Dt, { item: T, t: r }))
4062
4062
  ] });
4063
4063
  }
4064
4064
  const Nt = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => e.results === void 0 ? /* @__PURE__ */ n(
4065
- Dt,
4065
+ Bt,
4066
4066
  {
4067
4067
  data: e,
4068
4068
  isLatest: t,
@@ -4091,7 +4091,7 @@ const Nt = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => e.result
4091
4091
  initial: { opacity: 0, y: -10 },
4092
4092
  animate: { opacity: 1, y: 0 },
4093
4093
  transition: { duration: 0.3, delay: 0 },
4094
- children: r && !o ? /* @__PURE__ */ n(D, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: t.textSecondary }, children: a })
4094
+ children: r && !o ? /* @__PURE__ */ n(B, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: t.textSecondary }, children: a })
4095
4095
  }
4096
4096
  ),
4097
4097
  o !== void 0 && /* @__PURE__ */ n(
@@ -4123,7 +4123,7 @@ const Nt = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => e.result
4123
4123
  animate: { opacity: 1, y: 0 },
4124
4124
  transition: { duration: 0.3, delay: 0 },
4125
4125
  children: t && !r ? /* @__PURE__ */ n(
4126
- D,
4126
+ B,
4127
4127
  {
4128
4128
  text: i,
4129
4129
  duration: 2.5,
@@ -4165,7 +4165,7 @@ const Nt = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => e.result
4165
4165
  animate: { opacity: 1, y: 0 },
4166
4166
  transition: { duration: 0.3, delay: 0 },
4167
4167
  children: t && !r ? /* @__PURE__ */ n(
4168
- D,
4168
+ B,
4169
4169
  {
4170
4170
  text: i,
4171
4171
  duration: 2.5,
@@ -4207,7 +4207,7 @@ const Nt = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => e.result
4207
4207
  animate: { opacity: 1, y: 0 },
4208
4208
  transition: { duration: 0.3, delay: 0 },
4209
4209
  children: t && !r ? /* @__PURE__ */ n(
4210
- D,
4210
+ B,
4211
4211
  {
4212
4212
  text: i,
4213
4213
  duration: 2.5,
@@ -4249,7 +4249,7 @@ const Nt = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => e.result
4249
4249
  animate: { opacity: 1, y: 0 },
4250
4250
  transition: { duration: 0.3, delay: 0 },
4251
4251
  children: t && !r ? /* @__PURE__ */ n(
4252
- D,
4252
+ B,
4253
4253
  {
4254
4254
  text: i,
4255
4255
  duration: 2.5,
@@ -4291,7 +4291,7 @@ const Nt = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => e.result
4291
4291
  animate: { opacity: 1, y: 0 },
4292
4292
  transition: { duration: 0.3, delay: 0 },
4293
4293
  children: t && !r ? /* @__PURE__ */ n(
4294
- D,
4294
+ B,
4295
4295
  {
4296
4296
  text: i,
4297
4297
  duration: 2.5,
@@ -4456,7 +4456,7 @@ const Kt = ({
4456
4456
  children: s ? /* @__PURE__ */ n(J, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ n("span", { className: "explore-memory-loader" })
4457
4457
  }
4458
4458
  ),
4459
- y ? /* @__PURE__ */ n(D, { text: i.explorePlanning, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: l.textSecondary }, children: i.explorePlanning })
4459
+ y ? /* @__PURE__ */ n(B, { text: i.explorePlanning, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: l.textSecondary }, children: i.explorePlanning })
4460
4460
  ]
4461
4461
  }
4462
4462
  ),
@@ -4532,7 +4532,7 @@ const Vt = ({ isLatest: e = !1, durationSeconds: t, t: r }) => {
4532
4532
  initial: { opacity: 0, y: -10 },
4533
4533
  animate: { opacity: 1, y: 0 },
4534
4534
  transition: { duration: 0.3, delay: 0 },
4535
- children: i ? /* @__PURE__ */ n(D, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: o.textSecondary }, children: a })
4535
+ children: i ? /* @__PURE__ */ n(B, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: o.textSecondary }, children: a })
4536
4536
  }
4537
4537
  ),
4538
4538
  t !== void 0 && /* @__PURE__ */ n(
@@ -4563,7 +4563,7 @@ const Vt = ({ isLatest: e = !1, durationSeconds: t, t: r }) => {
4563
4563
  initial: { opacity: 0, y: -10 },
4564
4564
  animate: { opacity: 1, y: 0 },
4565
4565
  transition: { duration: 0.3, delay: 0 },
4566
- children: t && !r ? /* @__PURE__ */ n(D, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
4566
+ children: t && !r ? /* @__PURE__ */ n(B, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
4567
4567
  }
4568
4568
  ),
4569
4569
  r !== void 0 && /* @__PURE__ */ n(
@@ -4591,7 +4591,7 @@ const Vt = ({ isLatest: e = !1, durationSeconds: t, t: r }) => {
4591
4591
  initial: { opacity: 0, y: -10 },
4592
4592
  animate: { opacity: 1, y: 0 },
4593
4593
  transition: { duration: 0.3, delay: 0 },
4594
- children: t && !r ? /* @__PURE__ */ n(D, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ p("span", { style: { color: i.textSecondary }, children: [
4594
+ children: t && !r ? /* @__PURE__ */ n(B, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ p("span", { style: { color: i.textSecondary }, children: [
4595
4595
  o.exploreFindMemoriesPrefix,
4596
4596
  /* @__PURE__ */ p("span", { style: { fontWeight: 600 }, children: [
4597
4597
  "'",
@@ -4868,7 +4868,7 @@ const ro = ({
4868
4868
  initial: { opacity: 0, y: -10 },
4869
4869
  animate: { opacity: 1, y: 0 },
4870
4870
  transition: { duration: 0.3, delay: 0 },
4871
- children: d ? /* @__PURE__ */ n(D, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
4871
+ children: d ? /* @__PURE__ */ n(B, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
4872
4872
  }
4873
4873
  ),
4874
4874
  se(e) && /* @__PURE__ */ p("div", { style: { marginTop: 0 }, children: [
@@ -4940,7 +4940,7 @@ const io = ({
4940
4940
  initial: { opacity: 0, y: -10 },
4941
4941
  animate: { opacity: 1, y: 0 },
4942
4942
  transition: { duration: 0.3, delay: 0 },
4943
- children: d ? /* @__PURE__ */ n(D, { text: y, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: a.textSecondary }, children: y })
4943
+ children: d ? /* @__PURE__ */ n(B, { text: y, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: a.textSecondary }, children: y })
4944
4944
  }
4945
4945
  ),
4946
4946
  ce(e) && /* @__PURE__ */ p("div", { style: { marginTop: 0 }, children: [
@@ -5061,7 +5061,7 @@ const so = ({ data: e, completed: t, durationSeconds: r, t: o }) => {
5061
5061
  initial: { opacity: 0, y: -10 },
5062
5062
  animate: { opacity: 1, y: 0 },
5063
5063
  transition: { duration: 0.3 },
5064
- children: d ? /* @__PURE__ */ n(D, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
5064
+ children: d ? /* @__PURE__ */ n(B, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
5065
5065
  }
5066
5066
  ),
5067
5067
  l.map((u) => /* @__PURE__ */ n(
@@ -5099,7 +5099,7 @@ const so = ({ data: e, completed: t, durationSeconds: r, t: o }) => {
5099
5099
  initial: { opacity: 0, y: -10 },
5100
5100
  animate: { opacity: 1, y: 0 },
5101
5101
  transition: { duration: 0.3, delay: 0 },
5102
- children: t && !r ? /* @__PURE__ */ n(D, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
5102
+ children: t && !r ? /* @__PURE__ */ n(B, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: a })
5103
5103
  }
5104
5104
  ) });
5105
5105
  };
@@ -5173,7 +5173,7 @@ function Oe({
5173
5173
  children: /* @__PURE__ */ n("div", { className: "explore-memory-loader", "aria-hidden": !0 })
5174
5174
  }
5175
5175
  ),
5176
- /* @__PURE__ */ n(D, { text: o, duration: 2.5, repeat: !0 })
5176
+ /* @__PURE__ */ n(B, { text: o, duration: 2.5, repeat: !0 })
5177
5177
  ]
5178
5178
  }
5179
5179
  ) });
@@ -5315,7 +5315,7 @@ const go = ({
5315
5315
  initial: { opacity: 0, y: -10 },
5316
5316
  animate: { opacity: 1, y: 0 },
5317
5317
  transition: { duration: 0.3, delay: 0 },
5318
- children: d ? /* @__PURE__ */ n(D, { text: y, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: a.textSecondary }, children: y })
5318
+ children: d ? /* @__PURE__ */ n(B, { text: y, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: a.textSecondary }, children: y })
5319
5319
  }
5320
5320
  ),
5321
5321
  de(e) && /* @__PURE__ */ p("div", { style: { marginTop: 0 }, children: [
@@ -5407,7 +5407,7 @@ const fo = ({
5407
5407
  children: g && t ? /* @__PURE__ */ n("div", { className: "explore-memory-loader", "aria-hidden": !0 }) : f ? /* @__PURE__ */ n(te, { size: 15, lineWidth: 2 }) : /* @__PURE__ */ n(J, { size: 15, borderWidth: 2 })
5408
5408
  }
5409
5409
  ),
5410
- g && t && !r ? /* @__PURE__ */ n(D, { text: y, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: y })
5410
+ g && t && !r ? /* @__PURE__ */ n(B, { text: y, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: i.textSecondary }, children: y })
5411
5411
  ]
5412
5412
  }
5413
5413
  ),
@@ -5508,7 +5508,7 @@ const xo = ({ data: e, isLatest: t = !1, durationSeconds: r, completed: o = !1,
5508
5508
  children: u ? /* @__PURE__ */ n("div", { className: "explore-memory-loader", "aria-hidden": !0 }) : /* @__PURE__ */ n(J, { size: 15, borderWidth: 2 })
5509
5509
  }
5510
5510
  ),
5511
- u ? /* @__PURE__ */ n(D, { text: d, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: a.textSecondary }, children: d })
5511
+ u ? /* @__PURE__ */ n(B, { text: d, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: a.textSecondary }, children: d })
5512
5512
  ]
5513
5513
  }
5514
5514
  ),
@@ -5624,7 +5624,7 @@ function Ue({ name: e, t }) {
5624
5624
  children: /* @__PURE__ */ n("div", { className: "explore-memory-loader", "aria-hidden": !0 })
5625
5625
  }
5626
5626
  ),
5627
- /* @__PURE__ */ n(D, { text: o, duration: 2.5, repeat: !0 })
5627
+ /* @__PURE__ */ n(B, { text: o, duration: 2.5, repeat: !0 })
5628
5628
  ]
5629
5629
  }
5630
5630
  ) });
@@ -5749,7 +5749,7 @@ function To({
5749
5749
  children: s ? /* @__PURE__ */ n("div", { className: "explore-memory-loader", "aria-hidden": !0 }) : null
5750
5750
  }
5751
5751
  ),
5752
- s ? /* @__PURE__ */ n(D, { text: l, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: a.textSecondary }, children: l })
5752
+ s ? /* @__PURE__ */ n(B, { text: l, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ n("span", { style: { color: a.textSecondary }, children: l })
5753
5753
  ]
5754
5754
  }
5755
5755
  ),
@@ -5857,7 +5857,7 @@ function Ro({
5857
5857
  flex: 1
5858
5858
  },
5859
5859
  children: [
5860
- /* @__PURE__ */ n("span", { style: { fontSize: 13, fontWeight: 500, color: o.textPrimary }, children: !i && !a && r ? /* @__PURE__ */ n(D, { text: l, duration: 2.5, repeat: !0 }) : l }),
5860
+ /* @__PURE__ */ n("span", { style: { fontSize: 13, fontWeight: 500, color: o.textPrimary }, children: !i && !a && r ? /* @__PURE__ */ n(B, { text: l, duration: 2.5, repeat: !0 }) : l }),
5861
5861
  i && /* @__PURE__ */ n("span", { style: { fontSize: 12, color: o.textSecondary }, children: e.result.numberOfChunks === 1 ? x(
5862
5862
  t.memorySearchTypeResultSummaryOne,
5863
5863
  {
@@ -5890,7 +5890,7 @@ const Eo = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => {
5890
5890
  }), l;
5891
5891
  }, [e.memoryTypes]);
5892
5892
  return /* @__PURE__ */ p("div", { style: { paddingBlock: "10px" }, children: [
5893
- t && !r && e.memoryTypes.length === 0 ? /* @__PURE__ */ n(D, { text: o.searchingMemoryTypes, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((l, s) => /* @__PURE__ */ n(
5893
+ t && !r && e.memoryTypes.length === 0 ? /* @__PURE__ */ n(B, { text: o.searchingMemoryTypes, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((l, s) => /* @__PURE__ */ n(
5894
5894
  Ro,
5895
5895
  {
5896
5896
  item: l,
@@ -5978,7 +5978,7 @@ function Fo({
5978
5978
  flex: 1
5979
5979
  },
5980
5980
  children: [
5981
- /* @__PURE__ */ n("span", { style: { fontSize: 13, fontWeight: 500, color: o.textPrimary }, children: u ? /* @__PURE__ */ n(D, { text: f, duration: 2.5, repeat: !0 }) : e.memoryTypeName }),
5981
+ /* @__PURE__ */ n("span", { style: { fontSize: 13, fontWeight: 500, color: o.textPrimary }, children: u ? /* @__PURE__ */ n(B, { text: f, duration: 2.5, repeat: !0 }) : e.memoryTypeName }),
5982
5982
  a === 1 && s && !re(e) && /* @__PURE__ */ n(
5983
5983
  ie,
5984
5984
  {
@@ -5988,7 +5988,7 @@ function Fo({
5988
5988
  }
5989
5989
  ),
5990
5990
  a === 2 && g && /* @__PURE__ */ n("div", { style: { fontSize: 12 }, children: /* @__PURE__ */ n(
5991
- D,
5991
+ B,
5992
5992
  {
5993
5993
  text: t.memorySearchGeneratingQueriesPending,
5994
5994
  duration: 2.5,
@@ -6086,7 +6086,7 @@ const Lo = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => {
6086
6086
  }), l;
6087
6087
  }, [e.memoryTypes]);
6088
6088
  return /* @__PURE__ */ p("div", { style: { paddingBlock: "10px" }, children: [
6089
- t && !r && e.memoryTypes.length === 0 ? /* @__PURE__ */ n(D, { text: o.memorySearchGeneratingQueries, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((l, s) => /* @__PURE__ */ n(
6089
+ t && !r && e.memoryTypes.length === 0 ? /* @__PURE__ */ n(B, { text: o.memorySearchGeneratingQueries, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((l, s) => /* @__PURE__ */ n(
6090
6090
  Fo,
6091
6091
  {
6092
6092
  item: l,
@@ -6109,10 +6109,10 @@ const Lo = ({ data: e, isLatest: t = !1, durationSeconds: r, t: o }) => {
6109
6109
  )
6110
6110
  ] });
6111
6111
  };
6112
- function Bo(e) {
6112
+ function Do(e) {
6113
6113
  return e.some((o) => o.result == null && o.error == null) ? /* @__PURE__ */ n("span", { className: "explore-memory-loader" }) : e.some((o) => o.error != null) ? /* @__PURE__ */ n(te, { size: 15, lineWidth: 2 }) : /* @__PURE__ */ n(J, { size: 15, borderWidth: 2 });
6114
6114
  }
6115
- function Do({
6115
+ function Bo({
6116
6116
  item: e,
6117
6117
  t
6118
6118
  }) {
@@ -6120,7 +6120,7 @@ function Do({
6120
6120
  if (e.error != null)
6121
6121
  return /* @__PURE__ */ n("span", { style: { fontSize: 12, color: r.textError, whiteSpace: "nowrap" }, children: e.error });
6122
6122
  if (e.result == null)
6123
- return /* @__PURE__ */ n("span", { style: { flexShrink: 0, fontSize: 12 }, children: /* @__PURE__ */ n(D, { text: t.searching, duration: 2.5, repeat: !0 }) });
6123
+ return /* @__PURE__ */ n("span", { style: { flexShrink: 0, fontSize: 12 }, children: /* @__PURE__ */ n(B, { text: t.searching, duration: 2.5, repeat: !0 }) });
6124
6124
  const o = e.result, i = o.numberOfChunks === 1 ? t.chunkFound : x(t.chunksFound, { n: o.numberOfChunks }), a = x(t.scoreLabel, {
6125
6125
  n: o.highestChunkScore.toFixed(2)
6126
6126
  });
@@ -6348,7 +6348,7 @@ function Ho({
6348
6348
  width: 32,
6349
6349
  ...c ? {} : { paddingTop: 2 }
6350
6350
  },
6351
- children: Bo(s)
6351
+ children: Do(s)
6352
6352
  }
6353
6353
  ),
6354
6354
  /* @__PURE__ */ p(
@@ -6411,7 +6411,7 @@ function Ho({
6411
6411
  minWidth: 0
6412
6412
  },
6413
6413
  children: y ? /* @__PURE__ */ n(
6414
- D,
6414
+ B,
6415
6415
  {
6416
6416
  text: d.query,
6417
6417
  duration: 2.5,
@@ -6431,7 +6431,7 @@ function Ho({
6431
6431
  flexShrink: 0
6432
6432
  },
6433
6433
  children: [
6434
- /* @__PURE__ */ n(Do, { item: d, t }),
6434
+ /* @__PURE__ */ n(Bo, { item: d, t }),
6435
6435
  g && /* @__PURE__ */ n(
6436
6436
  "button",
6437
6437
  {
@@ -6497,7 +6497,7 @@ const $o = ({
6497
6497
  );
6498
6498
  return /* @__PURE__ */ p("div", { style: { paddingBlock: "10px" }, children: [
6499
6499
  t && !r && e.queries.length === 0 ? /* @__PURE__ */ n(
6500
- D,
6500
+ B,
6501
6501
  {
6502
6502
  text: i.memorySearchExploringQueries,
6503
6503
  duration: 2.5,
@@ -6735,7 +6735,7 @@ const $o = ({
6735
6735
  }, [e.length]);
6736
6736
  const T = (h) => {
6737
6737
  const m = h.item.data;
6738
- if (m.taskType === "StreamingChatCompletion" && m.eventType === "Text")
6738
+ if ((m.taskType === "StreamingChatCompletion" || m.taskType === "AnalyzeDocument") && m.eventType === "Text")
6739
6739
  return /* @__PURE__ */ n(
6740
6740
  Z,
6741
6741
  {
@@ -6859,7 +6859,7 @@ const $o = ({
6859
6859
  );
6860
6860
  case "FindSources":
6861
6861
  return /* @__PURE__ */ n(
6862
- De,
6862
+ Be,
6863
6863
  {
6864
6864
  data: m,
6865
6865
  isLatest: h.isLatest,
@@ -7117,7 +7117,7 @@ const $o = ({
7117
7117
  );
7118
7118
  case "FindSources":
7119
7119
  return /* @__PURE__ */ n(
7120
- De,
7120
+ Be,
7121
7121
  {
7122
7122
  data: { taskType: "MemoryChat", eventType: "FindSources" },
7123
7123
  isLatest: h.isLatest,
@@ -7242,7 +7242,7 @@ const $o = ({
7242
7242
  };
7243
7243
  if (e.length === 0)
7244
7244
  return r ? /* @__PURE__ */ n("div", { style: { width: "fit-content" }, children: /* @__PURE__ */ n(ne, { message: r.message }) }) : t ? /* @__PURE__ */ n("div", { style: { width: "fit-content", paddingBlock: "16px" }, children: /* @__PURE__ */ n(
7245
- D,
7245
+ B,
7246
7246
  {
7247
7247
  text: o ?? i.processingYourTask,
7248
7248
  duration: 1.5,
@@ -7380,7 +7380,7 @@ const $o = ({
7380
7380
  components: s
7381
7381
  }) => {
7382
7382
  var f;
7383
- const c = Zn(e), d = (e.params.type === "MemoryChat" || e.params.type === "MemorySearch") && "language" in e.params ? e.params.language ?? "en" : r ?? "en", u = at(d), g = (f = e.confirmedData) == null ? void 0 : f.taskId;
7383
+ const c = Zn(e), d = (e.params.type === "MemoryChat" || e.params.type === "MemorySearch" || e.params.type === "AnalyzeDocument") && "language" in e.params ? e.params.language ?? "en" : r ?? "en", u = at(d), g = (f = e.confirmedData) == null ? void 0 : f.taskId;
7384
7384
  return /* @__PURE__ */ n(ot, { theme: t, children: /* @__PURE__ */ p("div", { style: { position: "relative" }, children: [
7385
7385
  g ? /* @__PURE__ */ n(
7386
7386
  "div",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fencyai/react",
3
- "version": "0.1.220",
3
+ "version": "0.1.221",
4
4
  "description": "React components and hooks for the Fency AI platform",
5
5
  "author": "staklau <steinaageklaussen@gmail.com>",
6
6
  "homepage": "",
@@ -35,7 +35,7 @@
35
35
  "docs": "npx -y serve etc/docs"
36
36
  },
37
37
  "devDependencies": {
38
- "@fencyai/js": "^0.1.220",
38
+ "@fencyai/js": "^0.1.221",
39
39
  "@microsoft/api-documenter": "^7.30.0",
40
40
  "@testing-library/react": "^16.3.2",
41
41
  "@types/jest": "^30.0.0",
@@ -52,12 +52,12 @@
52
52
  "vite-plugin-lib-inject-css": "^2.1.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "@fencyai/js": "^0.1.220",
55
+ "@fencyai/js": "^0.1.221",
56
56
  "motion": "^11.15.0 || ^12.0.0",
57
57
  "react": ">=16.8.0",
58
58
  "react-markdown": "^10.1.0",
59
59
  "react-syntax-highlighter": "^16.1.0",
60
60
  "remark-gfm": "^4.0.1"
61
61
  },
62
- "gitHead": "6c5bfaed2ffaa84e117ea656cfe12b6089a407fc"
62
+ "gitHead": "a3889d96ce6bf4616a2226029cb6b1cfb17a966b"
63
63
  }