@fencyai/react 0.1.205 → 0.1.206
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/agent-task/AgentTaskProgressVerbose.d.ts.map +1 -1
- package/dist/agent-task/data-types/ExploreMemoriesPlanning.d.ts +2 -0
- package/dist/agent-task/data-types/ExploreMemoriesPlanning.d.ts.map +1 -1
- package/dist/agent-task/translations.d.ts +0 -2
- package/dist/agent-task/translations.d.ts.map +1 -1
- package/dist/index.js +158 -169
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentTaskProgressVerbose.d.ts","sourceRoot":"","sources":["../../src/agent-task/AgentTaskProgressVerbose.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG/D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAgCrD,OAAO,KAAK,EACR,uCAAuC,EACvC,2BAA2B,EAC3B,+BAA+B,EAClC,MAAM,+BAA+B,CAAA;AAMtC,MAAM,WAAW,6BAA6B;IAC1C,iBAAiB,EAAE,gBAAgB,EAAE,CAAA;IACrC,0FAA0F;IAC1F,OAAO,EAAE,OAAO,CAAA;IAChB,oEAAoE;IACpE,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,CAAC,EAAE,6BAA6B,CAAA;IAChC,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3E,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACvE,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,C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CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5D;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAC3C,6BAA6B,CAikBhC,CAAA"}
|
|
@@ -10,6 +10,8 @@ export interface ExploreMemoriesPlanningProps {
|
|
|
10
10
|
data: PlanningData;
|
|
11
11
|
createdAt: string;
|
|
12
12
|
timestamp: string;
|
|
13
|
+
/** True when a later progress item exists (planning phase finished). */
|
|
14
|
+
completed?: boolean;
|
|
13
15
|
t: AgentTaskProgressTranslations;
|
|
14
16
|
onMemoryClick?: (payload: AgentTaskMemoryLinkClickPayload) => Promise<void>;
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExploreMemoriesPlanning.d.ts","sourceRoot":"","sources":["../../../src/agent-task/data-types/ExploreMemoriesPlanning.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAA;AAKpE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAA;AAGrF,OAAO,0BAA0B,CAAA;AAEjC,KAAK,YAAY,GAAG,OAAO,CACvB,kBAAkB,EAClB;IAAE,QAAQ,EAAE,iBAAiB,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,CACzD,CAAA;AAED,MAAM,WAAW,4BAA4B;IACzC,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,EAAE,6BAA6B,CAAA;IAChC,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9E;
|
|
1
|
+
{"version":3,"file":"ExploreMemoriesPlanning.d.ts","sourceRoot":"","sources":["../../../src/agent-task/data-types/ExploreMemoriesPlanning.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAA;AAKpE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAA;AAGrF,OAAO,0BAA0B,CAAA;AAEjC,KAAK,YAAY,GAAG,OAAO,CACvB,kBAAkB,EAClB;IAAE,QAAQ,EAAE,iBAAiB,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,CACzD,CAAA;AAED,MAAM,WAAW,4BAA4B;IACzC,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,wEAAwE;IACxE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,CAAC,EAAE,6BAA6B,CAAA;IAChC,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9E;AAgBD,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAiH1E,CAAA"}
|
|
@@ -95,8 +95,6 @@ export interface AgentTaskProgressTranslations {
|
|
|
95
95
|
exploreSetupSandboxPhrases: string[];
|
|
96
96
|
/** Header above the streamed planning/reasoning markdown block. */
|
|
97
97
|
explorePlanning: string;
|
|
98
|
-
/** Shimmer between technical reasoning and user plan. */
|
|
99
|
-
explorePlanningUserPlanPending: string;
|
|
100
98
|
/** Shimmering in-flight label, e.g. "Finding memories: '\{query\}'" */
|
|
101
99
|
exploreFindMemoriesQuery: string;
|
|
102
100
|
/** Static prefix before the quoted query once finished. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRo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AAyB,EAAE,MAAM,CAAA;IACjC,kFAAkF;IAClF,4BAA4B,EAAE,MAAM,CAAA;IACpC,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAC9C,iBAAiB,EACjB,6BAA6B,CA4PhC,CAAA;AAED,wBAAgB,gCAAgC,CAC5C,QAAQ,EAAE,iBAAiB,GAC5B,6BAA6B,CAE/B;AAED,wBAAgB,mBAAmB,CAC/B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GACxC,MAAM,CAKR;AAED,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EAAE,EAChB,OAAO,CAAC,EAAE,MAAM,GACjB,MAAM,CASR"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import { StreamEventManager as
|
|
3
|
-
import { StreamEventManager as
|
|
4
|
-
import Ue, { createContext as fe, useState as w, useRef as A, useEffect as H, useCallback as L, useContext as xe, useReducer as Qe, useMemo as
|
|
2
|
+
import { StreamEventManager as ze, StreamCacheManager as Be, toStreamData as Pe, taskReducer as Le, initialTaskStoreState as Ae, createAgentTaskFileDownloadLink as De, isTerminalAgentTaskEventData as We, agentTaskErrorFromEventData as $e, shouldAppendCompletedToProgress as Ne, getTerminalCreateAgentTaskResponse as He, createAgentTask as Ge, mapCreateAgentTaskParams as Oe, parseAgentTaskFileIdFromFencyFileHref as _e, parseAgentTaskMemoryFromFencyMemHref as qe } from "@fencyai/js";
|
|
3
|
+
import { StreamEventManager as $n } from "@fencyai/js";
|
|
4
|
+
import Ue, { createContext as fe, useState as w, useRef as A, useEffect as H, useCallback as L, useContext as xe, useReducer as Qe, useMemo as z, useLayoutEffect as je } from "react";
|
|
5
5
|
import { motion as v, useInView as Ke, AnimatePresence as Ve } from "motion/react";
|
|
6
6
|
import Xe from "react-markdown";
|
|
7
7
|
import { Prism as ke } from "react-syntax-highlighter";
|
|
@@ -9,7 +9,7 @@ import Ye from "remark-gfm";
|
|
|
9
9
|
import './assets/index.css';const Se = fe(
|
|
10
10
|
void 0
|
|
11
11
|
);
|
|
12
|
-
function
|
|
12
|
+
function Pn({
|
|
13
13
|
fency: e,
|
|
14
14
|
fetchCreateStreamClientToken: o,
|
|
15
15
|
children: t
|
|
@@ -25,8 +25,8 @@ function Ln({
|
|
|
25
25
|
});
|
|
26
26
|
}, [e]), H(() => {
|
|
27
27
|
if (!n) return;
|
|
28
|
-
x.current || (x.current = new
|
|
29
|
-
const c = new
|
|
28
|
+
x.current || (x.current = new ze(n));
|
|
29
|
+
const c = new Be(
|
|
30
30
|
n,
|
|
31
31
|
o
|
|
32
32
|
);
|
|
@@ -81,7 +81,7 @@ const Je = (e) => {
|
|
|
81
81
|
const l = {
|
|
82
82
|
onMessage: (p, u) => {
|
|
83
83
|
var h, x, b;
|
|
84
|
-
const g =
|
|
84
|
+
const g = Pe(p);
|
|
85
85
|
if (g)
|
|
86
86
|
switch (g.type) {
|
|
87
87
|
case "STREAM_TIMEOUT":
|
|
@@ -143,7 +143,7 @@ function Ze(e) {
|
|
|
143
143
|
}
|
|
144
144
|
return e instanceof Error ? e.message : typeof e == "string" ? e : "Unknown error during agent task creation";
|
|
145
145
|
}
|
|
146
|
-
const
|
|
146
|
+
const Ln = (e) => {
|
|
147
147
|
const o = be(), [t, n] = Qe(Le, Ae), i = A(/* @__PURE__ */ new Set()), a = A(/* @__PURE__ */ new Map()), l = A(/* @__PURE__ */ new Map()), d = L(
|
|
148
148
|
(y) => {
|
|
149
149
|
if (y)
|
|
@@ -250,7 +250,7 @@ const An = (e) => {
|
|
|
250
250
|
);
|
|
251
251
|
const S = (s == null ? void 0 : s.fetchAgentTaskFileDownloadClientToken) ?? e.fetchAgentTaskFileDownloadClientToken, M = await g();
|
|
252
252
|
if (M.type === "success") {
|
|
253
|
-
const W = (/* @__PURE__ */ new Date()).toISOString(),
|
|
253
|
+
const W = (/* @__PURE__ */ new Date()).toISOString(), B = {
|
|
254
254
|
taskKey: c,
|
|
255
255
|
streamId: M.stream.id,
|
|
256
256
|
triggeredAt: W,
|
|
@@ -261,8 +261,8 @@ const An = (e) => {
|
|
|
261
261
|
loading: !0,
|
|
262
262
|
loadingText: s == null ? void 0 : s.loadingText
|
|
263
263
|
};
|
|
264
|
-
n({ type: "TASK_PENDING", task:
|
|
265
|
-
...
|
|
264
|
+
n({ type: "TASK_PENDING", task: B }), (D = s == null ? void 0 : s.onTaskRegistered) == null || D.call(s, {
|
|
265
|
+
...B,
|
|
266
266
|
downloadFile: d(
|
|
267
267
|
S
|
|
268
268
|
)
|
|
@@ -291,10 +291,10 @@ const An = (e) => {
|
|
|
291
291
|
taskId: I.agentTask.id,
|
|
292
292
|
createdAt: I.agentTask.createdAt
|
|
293
293
|
}), await new Promise(
|
|
294
|
-
(
|
|
294
|
+
(P) => {
|
|
295
295
|
a.current.set(
|
|
296
296
|
I.agentTask.id,
|
|
297
|
-
|
|
297
|
+
P
|
|
298
298
|
);
|
|
299
299
|
}
|
|
300
300
|
);
|
|
@@ -347,13 +347,13 @@ const An = (e) => {
|
|
|
347
347
|
e.fetchCreateAgentTaskClientToken,
|
|
348
348
|
e.fetchAgentTaskFileDownloadClientToken
|
|
349
349
|
]
|
|
350
|
-
), x =
|
|
350
|
+
), x = z(() => t.tasks.map((y) => {
|
|
351
351
|
var s;
|
|
352
352
|
return {
|
|
353
353
|
...y,
|
|
354
354
|
downloadFile: (s = y.confirmedData) != null && s.taskId ? l.current.get(y.confirmedData.taskId) : void 0
|
|
355
355
|
};
|
|
356
|
-
}), [t.tasks]), b =
|
|
356
|
+
}), [t.tasks]), b = z(() => {
|
|
357
357
|
if (x.length !== 0)
|
|
358
358
|
return [...x].sort((y, s) => new Date(s.triggeredAt).getTime() - new Date(y.triggeredAt).getTime())[0];
|
|
359
359
|
}, [x]);
|
|
@@ -1089,7 +1089,7 @@ function ar({
|
|
|
1089
1089
|
theme: e,
|
|
1090
1090
|
children: o
|
|
1091
1091
|
}) {
|
|
1092
|
-
const t =
|
|
1092
|
+
const t = z(
|
|
1093
1093
|
() => ({
|
|
1094
1094
|
theme: e,
|
|
1095
1095
|
colors: e === "dark" ? ir : Te
|
|
@@ -1143,19 +1143,19 @@ const N = ({
|
|
|
1143
1143
|
})());
|
|
1144
1144
|
},
|
|
1145
1145
|
[t]
|
|
1146
|
-
), s =
|
|
1146
|
+
), s = z(() => ({
|
|
1147
1147
|
code(f) {
|
|
1148
|
-
const { children: S, className: M, node: D, ref: W, ...
|
|
1148
|
+
const { children: S, className: M, node: D, ref: W, ...B } = f, $ = /language-(\w+)/.exec(M || "");
|
|
1149
1149
|
return $ ? /* @__PURE__ */ r(
|
|
1150
1150
|
ke,
|
|
1151
1151
|
{
|
|
1152
|
-
...
|
|
1152
|
+
...B,
|
|
1153
1153
|
PreTag: "div",
|
|
1154
1154
|
children: String(S).replace(/\n$/, ""),
|
|
1155
1155
|
language: $[1],
|
|
1156
1156
|
style: i
|
|
1157
1157
|
}
|
|
1158
|
-
) : /* @__PURE__ */ r("code", { ...
|
|
1158
|
+
) : /* @__PURE__ */ r("code", { ...B, className: M, children: String(S) });
|
|
1159
1159
|
},
|
|
1160
1160
|
a(f) {
|
|
1161
1161
|
const { children: S, href: M, ...D } = f, W = M ? _e(M) : null;
|
|
@@ -1185,8 +1185,8 @@ const N = ({
|
|
|
1185
1185
|
children: S
|
|
1186
1186
|
}
|
|
1187
1187
|
) });
|
|
1188
|
-
const
|
|
1189
|
-
return
|
|
1188
|
+
const B = M ? qe(M) : null;
|
|
1189
|
+
return B != null ? t ? /* @__PURE__ */ r("span", { className: "fency-file-download-wrap", children: /* @__PURE__ */ r(
|
|
1190
1190
|
"button",
|
|
1191
1191
|
{
|
|
1192
1192
|
type: "button",
|
|
@@ -1194,8 +1194,8 @@ const N = ({
|
|
|
1194
1194
|
disabled: h,
|
|
1195
1195
|
onClick: () => y({
|
|
1196
1196
|
source: {
|
|
1197
|
-
memoryId:
|
|
1198
|
-
memoryTypeId:
|
|
1197
|
+
memoryId: B.memoryId,
|
|
1198
|
+
memoryTypeId: B.memoryTypeId ?? ""
|
|
1199
1199
|
}
|
|
1200
1200
|
}),
|
|
1201
1201
|
children: S
|
|
@@ -1382,7 +1382,6 @@ const N = ({
|
|
|
1382
1382
|
"Kwisatz-haderaching..."
|
|
1383
1383
|
],
|
|
1384
1384
|
explorePlanning: "Planning approach...",
|
|
1385
|
-
explorePlanningUserPlanPending: "Preparing your plan...",
|
|
1386
1385
|
exploreFindMemoriesQuery: "Finding memories: '{query}'",
|
|
1387
1386
|
exploreFindMemoriesPrefix: "Finding memories: ",
|
|
1388
1387
|
exploreSemanticSearchForEach: "Reading memories for '{query}'",
|
|
@@ -1506,7 +1505,6 @@ const N = ({
|
|
|
1506
1505
|
"Kwisatz-haderacher..."
|
|
1507
1506
|
],
|
|
1508
1507
|
explorePlanning: "Planlegger tilnærming...",
|
|
1509
|
-
explorePlanningUserPlanPending: "Forbereder planen...",
|
|
1510
1508
|
exploreFindMemoriesQuery: "Finner minner: '{query}'",
|
|
1511
1509
|
exploreFindMemoriesPrefix: "Finner minner: ",
|
|
1512
1510
|
exploreSemanticSearchForEach: "Leser minner for '{query}'",
|
|
@@ -1523,7 +1521,7 @@ function k(e, o) {
|
|
|
1523
1521
|
e
|
|
1524
1522
|
);
|
|
1525
1523
|
}
|
|
1526
|
-
function
|
|
1524
|
+
function j(e, o) {
|
|
1527
1525
|
const t = e.map((n) => `'${n}'`);
|
|
1528
1526
|
if (o != null && t.length >= 2) {
|
|
1529
1527
|
const n = t.pop();
|
|
@@ -1546,7 +1544,7 @@ function C({
|
|
|
1546
1544
|
shimmerColor: h,
|
|
1547
1545
|
direction: x = "fromBottom"
|
|
1548
1546
|
}) {
|
|
1549
|
-
const { colors: b } = T(), y = g ?? b.shimmerBase, s = h ?? b.shimmerHighlight, c = A(null), f = Ke(c, { once: d, margin: p }), S =
|
|
1547
|
+
const { colors: b } = T(), y = g ?? b.shimmerBase, s = h ?? b.shimmerHighlight, c = A(null), f = Ke(c, { once: d, margin: p }), S = z(() => e.length * u, [e, u]), M = !l || f, D = x === "fromBottom" ? "100% center" : "-100% center", W = x === "fromBottom" ? "0% center" : "200% center";
|
|
1550
1548
|
return /* @__PURE__ */ r(
|
|
1551
1549
|
v.span,
|
|
1552
1550
|
{
|
|
@@ -1592,8 +1590,8 @@ function C({
|
|
|
1592
1590
|
}
|
|
1593
1591
|
);
|
|
1594
1592
|
}
|
|
1595
|
-
const
|
|
1596
|
-
const { colors: a } = T(), [l, d] = w(!1), u = (e.memories ?? []).map((S) => S.memoryTitle), g = u.length > 0, h = g && u.length >
|
|
1593
|
+
const X = 5, q = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compactBelow: i = !1 }) => {
|
|
1594
|
+
const { colors: a } = T(), [l, d] = w(!1), u = (e.memories ?? []).map((S) => S.memoryTitle), g = u.length > 0, h = g && u.length > X, x = h && !l ? u.slice(0, X) : u, b = u.length - X, y = !h || l, s = `${n.searchingFor}'${e.queryDescription}'`, c = g ? `${n.searchingIn}${j(
|
|
1597
1595
|
x,
|
|
1598
1596
|
y ? n.and : void 0
|
|
1599
1597
|
)}` : "", f = g ? `${s}${c}` : `${n.searchingPrefix}${e.queryDescription}`;
|
|
@@ -2062,7 +2060,7 @@ const ie = ({
|
|
|
2062
2060
|
...c,
|
|
2063
2061
|
[s]: !c[s]
|
|
2064
2062
|
}));
|
|
2065
|
-
}, []), h =
|
|
2063
|
+
}, []), h = z(() => mr(a), [a]), x = d === 1 ? t.memoryChatChunkResultsInOneMemory : k(t.memoryChatChunkResultsInMemories, {
|
|
2066
2064
|
n: d
|
|
2067
2065
|
}), b = `${yr(l, t)} ${x}`, y = n ? { paddingBottom: "10px" } : { paddingBlock: "10px" };
|
|
2068
2066
|
return a.length === 0 ? /* @__PURE__ */ r("div", { style: y, children: /* @__PURE__ */ r(
|
|
@@ -2118,7 +2116,7 @@ const xr = ({
|
|
|
2118
2116
|
}) => {
|
|
2119
2117
|
const a = fr(e);
|
|
2120
2118
|
return e.items === void 0 ? /* @__PURE__ */ r(
|
|
2121
|
-
|
|
2119
|
+
q,
|
|
2122
2120
|
{
|
|
2123
2121
|
data: a,
|
|
2124
2122
|
isLatest: o,
|
|
@@ -2127,7 +2125,7 @@ const xr = ({
|
|
|
2127
2125
|
}
|
|
2128
2126
|
) : /* @__PURE__ */ m(R, { children: [
|
|
2129
2127
|
/* @__PURE__ */ r(
|
|
2130
|
-
|
|
2128
|
+
q,
|
|
2131
2129
|
{
|
|
2132
2130
|
data: a,
|
|
2133
2131
|
isLatest: !1,
|
|
@@ -2150,8 +2148,8 @@ const xr = ({
|
|
|
2150
2148
|
}
|
|
2151
2149
|
)
|
|
2152
2150
|
] });
|
|
2153
|
-
},
|
|
2154
|
-
const { colors: i } = T(), [a, l] = w(!1), d = e.titles, p = d.length > 0, u = p && d.length >
|
|
2151
|
+
}, Y = 5, kr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
|
|
2152
|
+
const { colors: i } = T(), [a, l] = w(!1), d = e.titles, p = d.length > 0, u = p && d.length > Y, g = u && !a ? d.slice(0, Y) : d, h = d.length - Y, x = !u || a, b = p ? `${n.findingMemoriesIn}${j(
|
|
2155
2153
|
g,
|
|
2156
2154
|
x ? n.and : void 0
|
|
2157
2155
|
)}` : n.findingMemories;
|
|
@@ -2229,8 +2227,8 @@ const xr = ({
|
|
|
2229
2227
|
}
|
|
2230
2228
|
)
|
|
2231
2229
|
] });
|
|
2232
|
-
},
|
|
2233
|
-
const { colors: t } = T(), [n, i] = w(!1), l = e.memories.map((y) => y.memoryTitle), d = l.length > 0, p = d && l.length >
|
|
2230
|
+
}, J = 5, Sr = ({ data: e, t: o }) => {
|
|
2231
|
+
const { colors: t } = T(), [n, i] = w(!1), l = e.memories.map((y) => y.memoryTitle), d = l.length > 0, p = d && l.length > J, u = p && !n ? l.slice(0, J) : l, g = l.length - J, h = !p || n, x = l.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, b = d ? `${x}${j(
|
|
2234
2232
|
u,
|
|
2235
2233
|
h ? o.and : void 0
|
|
2236
2234
|
)}` : o.memoriesFound;
|
|
@@ -2442,7 +2440,7 @@ const Me = ({ data: e, onSourceClick: o, t }) => {
|
|
|
2442
2440
|
]
|
|
2443
2441
|
}
|
|
2444
2442
|
);
|
|
2445
|
-
},
|
|
2443
|
+
}, _ = ({
|
|
2446
2444
|
color: e,
|
|
2447
2445
|
size: o = 32,
|
|
2448
2446
|
lineWidth: t = 2
|
|
@@ -2491,7 +2489,7 @@ function vr({
|
|
|
2491
2489
|
memory: e,
|
|
2492
2490
|
completed: o
|
|
2493
2491
|
}) {
|
|
2494
|
-
return e.error != null ? /* @__PURE__ */ r(
|
|
2492
|
+
return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
|
|
2495
2493
|
}
|
|
2496
2494
|
const de = 80;
|
|
2497
2495
|
function wr({
|
|
@@ -2724,7 +2722,7 @@ function Ir({
|
|
|
2724
2722
|
data: e,
|
|
2725
2723
|
t: o
|
|
2726
2724
|
}) {
|
|
2727
|
-
const { colors: t } = T(), [n, i] = w(!1), a =
|
|
2725
|
+
const { colors: t } = T(), [n, i] = w(!1), a = z(() => [...e.results ?? []].sort((g, h) => g.rank - h.rank), [e.results]), l = a.length, d = l === 1 ? o.googleResultFound : k(o.googleResultsFound, { n: l }), p = Ee(e, o);
|
|
2728
2726
|
return l === 0 ? /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
|
|
2729
2727
|
/* @__PURE__ */ r("span", { style: { color: t.textSecondary }, children: p }),
|
|
2730
2728
|
/* @__PURE__ */ r(
|
|
@@ -2846,13 +2844,13 @@ function Re(e, o) {
|
|
|
2846
2844
|
return null;
|
|
2847
2845
|
}
|
|
2848
2846
|
}
|
|
2849
|
-
function
|
|
2847
|
+
function zr(e) {
|
|
2850
2848
|
var o;
|
|
2851
2849
|
return e.error != null ? !0 : e.status != null ? !1 : (((o = e.summary) == null ? void 0 : o.length) ?? 0) > 0;
|
|
2852
2850
|
}
|
|
2853
|
-
const ue = 80, ae = 12, le = 1.4,
|
|
2851
|
+
const ue = 80, ae = 12, le = 1.4, Br = Math.ceil(
|
|
2854
2852
|
ae * le
|
|
2855
|
-
),
|
|
2853
|
+
), Pr = Math.ceil(
|
|
2856
2854
|
5 * ae * le
|
|
2857
2855
|
);
|
|
2858
2856
|
function Ie(e, o = 48) {
|
|
@@ -2864,10 +2862,10 @@ function Ie(e, o = 48) {
|
|
|
2864
2862
|
}
|
|
2865
2863
|
}
|
|
2866
2864
|
function Lr({ item: e }) {
|
|
2867
|
-
return e.error != null ? /* @__PURE__ */ r(
|
|
2865
|
+
return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 });
|
|
2868
2866
|
}
|
|
2869
2867
|
function Ar({ item: e }) {
|
|
2870
|
-
return e.error != null ? /* @__PURE__ */ r(
|
|
2868
|
+
return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
|
|
2871
2869
|
}
|
|
2872
2870
|
function Dr({
|
|
2873
2871
|
item: e,
|
|
@@ -2954,8 +2952,8 @@ function Dr({
|
|
|
2954
2952
|
{
|
|
2955
2953
|
ref: d,
|
|
2956
2954
|
style: {
|
|
2957
|
-
minHeight:
|
|
2958
|
-
maxHeight:
|
|
2955
|
+
minHeight: Br,
|
|
2956
|
+
maxHeight: Pr,
|
|
2959
2957
|
height: "auto",
|
|
2960
2958
|
overflowY: "auto",
|
|
2961
2959
|
overflowX: "hidden",
|
|
@@ -3154,12 +3152,12 @@ function Nr({
|
|
|
3154
3152
|
isLatest: o = !1,
|
|
3155
3153
|
t
|
|
3156
3154
|
}) {
|
|
3157
|
-
const { colors: n } = T(), [i, a] = w(!1), l = e.results ?? [], { successCount: d, errorCount: p } =
|
|
3155
|
+
const { colors: n } = T(), [i, a] = w(!1), l = e.results ?? [], { successCount: d, errorCount: p } = z(() => {
|
|
3158
3156
|
let s = 0, c = 0;
|
|
3159
3157
|
for (const f of l)
|
|
3160
3158
|
f.error != null ? c += 1 : s += 1;
|
|
3161
3159
|
return { successCount: s, errorCount: c };
|
|
3162
|
-
}, [l]), u = l.length, g = e.input.query, h = l.length > 0 && l.every((s) =>
|
|
3160
|
+
}, [l]), u = l.length, g = e.input.query, h = l.length > 0 && l.every((s) => zr(s)), x = o && !h ? u === 1 ? k(t.scrapingPage, { query: g }) : k(t.scrapingPages, { n: u, query: g }) : u === 1 ? t.scrapedPage : k(t.scrapedPages, { n: u }), b = k(t.scrapeOkCount, { n: d }), y = p > 0 ? `${x} - ${b}, ${k(t.scrapeFailedCount, { n: p })}` : `${x} - ${b}`;
|
|
3163
3161
|
return u === 0 ? /* @__PURE__ */ r("div", { style: { paddingBlock: "10px" }, children: /* @__PURE__ */ r(
|
|
3164
3162
|
"div",
|
|
3165
3163
|
{
|
|
@@ -3528,10 +3526,10 @@ const Hr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
|
|
|
3528
3526
|
children: /* @__PURE__ */ r("span", { style: { color: "#666" }, children: t })
|
|
3529
3527
|
}
|
|
3530
3528
|
) });
|
|
3531
|
-
},
|
|
3532
|
-
|
|
3529
|
+
}, K = 12, V = 1.45, jr = Math.ceil(
|
|
3530
|
+
K * V
|
|
3533
3531
|
), he = Math.ceil(
|
|
3534
|
-
5 *
|
|
3532
|
+
5 * K * V
|
|
3535
3533
|
), Fe = ({
|
|
3536
3534
|
text: e,
|
|
3537
3535
|
streaming: o = !1,
|
|
@@ -3586,8 +3584,8 @@ const Hr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
|
|
|
3586
3584
|
} : {},
|
|
3587
3585
|
height: "auto",
|
|
3588
3586
|
overflowX: "hidden",
|
|
3589
|
-
fontSize:
|
|
3590
|
-
lineHeight:
|
|
3587
|
+
fontSize: K,
|
|
3588
|
+
lineHeight: V,
|
|
3591
3589
|
whiteSpace: "pre-wrap",
|
|
3592
3590
|
wordBreak: "break-word",
|
|
3593
3591
|
color: i.textTertiary
|
|
@@ -3599,27 +3597,25 @@ const Hr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
|
|
|
3599
3597
|
)
|
|
3600
3598
|
] });
|
|
3601
3599
|
};
|
|
3602
|
-
function
|
|
3600
|
+
function Z(e) {
|
|
3603
3601
|
return e.text != null && e.text.length > 0;
|
|
3604
3602
|
}
|
|
3605
|
-
function
|
|
3603
|
+
function Q(e) {
|
|
3606
3604
|
return e.technicalReasoning != null && e.technicalReasoning.length > 0;
|
|
3607
3605
|
}
|
|
3608
3606
|
function Kr(e, o) {
|
|
3609
3607
|
const t = new Date(e).getTime(), n = new Date(o).getTime();
|
|
3610
3608
|
return Math.max(0, Math.round((n - t) / 1e3));
|
|
3611
3609
|
}
|
|
3612
|
-
|
|
3613
|
-
return _(e) ? 3 : e.reasoningCompleted === !0 ? 2 : (U(e), 1);
|
|
3614
|
-
}
|
|
3615
|
-
const Xr = ({
|
|
3610
|
+
const Vr = ({
|
|
3616
3611
|
data: e,
|
|
3617
3612
|
createdAt: o,
|
|
3618
3613
|
timestamp: t,
|
|
3619
|
-
|
|
3620
|
-
|
|
3614
|
+
completed: n = !1,
|
|
3615
|
+
t: i,
|
|
3616
|
+
onMemoryClick: a
|
|
3621
3617
|
}) => {
|
|
3622
|
-
const { colors:
|
|
3618
|
+
const { colors: l } = T(), d = e.reasoningCompleted === !0 || n || Z(e), p = !d, u = !Q(e) && !Z(e), [g, h] = w(!1), x = Q(e) && e.reasoningCompleted !== !0, b = u && p, y = Q(e) && !x, s = d ? Kr(o, t) : void 0;
|
|
3623
3619
|
return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
|
|
3624
3620
|
/* @__PURE__ */ m(
|
|
3625
3621
|
v.div,
|
|
@@ -3628,7 +3624,7 @@ const Xr = ({
|
|
|
3628
3624
|
display: "flex",
|
|
3629
3625
|
alignItems: "center",
|
|
3630
3626
|
gap: "10px",
|
|
3631
|
-
color:
|
|
3627
|
+
color: l.textSecondary,
|
|
3632
3628
|
marginBottom: "8px"
|
|
3633
3629
|
},
|
|
3634
3630
|
initial: { opacity: 0, y: -10 },
|
|
@@ -3645,28 +3641,28 @@ const Xr = ({
|
|
|
3645
3641
|
flexShrink: 0,
|
|
3646
3642
|
width: 32
|
|
3647
3643
|
},
|
|
3648
|
-
children:
|
|
3644
|
+
children: d ? /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" })
|
|
3649
3645
|
}
|
|
3650
3646
|
),
|
|
3651
|
-
b ? /* @__PURE__ */ r(C, { text:
|
|
3647
|
+
b ? /* @__PURE__ */ r(C, { text: i.explorePlanning, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: l.textSecondary }, children: i.explorePlanning })
|
|
3652
3648
|
]
|
|
3653
3649
|
}
|
|
3654
3650
|
),
|
|
3655
|
-
|
|
3651
|
+
Q(e) && /* @__PURE__ */ m("div", { style: { marginTop: 8 }, children: [
|
|
3656
3652
|
/* @__PURE__ */ r(
|
|
3657
3653
|
Fe,
|
|
3658
3654
|
{
|
|
3659
3655
|
text: e.technicalReasoning,
|
|
3660
|
-
streaming:
|
|
3661
|
-
collapsed: !
|
|
3662
|
-
label:
|
|
3656
|
+
streaming: x,
|
|
3657
|
+
collapsed: !x && !g,
|
|
3658
|
+
label: i.memorySearchQueryReasoningLabel
|
|
3663
3659
|
}
|
|
3664
3660
|
),
|
|
3665
3661
|
y && /* @__PURE__ */ r(
|
|
3666
3662
|
"button",
|
|
3667
3663
|
{
|
|
3668
3664
|
type: "button",
|
|
3669
|
-
onClick: () =>
|
|
3665
|
+
onClick: () => h((c) => !c),
|
|
3670
3666
|
style: {
|
|
3671
3667
|
alignSelf: "flex-start",
|
|
3672
3668
|
border: "none",
|
|
@@ -3675,26 +3671,18 @@ const Xr = ({
|
|
|
3675
3671
|
marginTop: 8,
|
|
3676
3672
|
cursor: "pointer",
|
|
3677
3673
|
fontSize: 12,
|
|
3678
|
-
color:
|
|
3674
|
+
color: l.textSecondary,
|
|
3679
3675
|
textDecoration: "underline"
|
|
3680
3676
|
},
|
|
3681
|
-
children:
|
|
3677
|
+
children: g ? i.memorySearchHideReasoning : i.memorySearchViewReasoning
|
|
3682
3678
|
}
|
|
3683
3679
|
)
|
|
3684
3680
|
] }),
|
|
3685
|
-
|
|
3686
|
-
C,
|
|
3687
|
-
{
|
|
3688
|
-
text: n.explorePlanningUserPlanPending,
|
|
3689
|
-
duration: 2.5,
|
|
3690
|
-
repeat: !0
|
|
3691
|
-
}
|
|
3692
|
-
) }),
|
|
3693
|
-
_(e) && /* @__PURE__ */ r("div", { style: { marginTop: p === 3 && !d ? 0 : 8 }, children: /* @__PURE__ */ r(
|
|
3681
|
+
Z(e) && /* @__PURE__ */ r("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ r(
|
|
3694
3682
|
N,
|
|
3695
3683
|
{
|
|
3696
3684
|
text: e.text,
|
|
3697
|
-
onMemoryClick:
|
|
3685
|
+
onMemoryClick: a
|
|
3698
3686
|
}
|
|
3699
3687
|
) }),
|
|
3700
3688
|
s !== void 0 && /* @__PURE__ */ r(
|
|
@@ -3702,15 +3690,15 @@ const Xr = ({
|
|
|
3702
3690
|
{
|
|
3703
3691
|
style: {
|
|
3704
3692
|
fontSize: "12px",
|
|
3705
|
-
color:
|
|
3693
|
+
color: l.textMuted,
|
|
3706
3694
|
marginTop: "4px",
|
|
3707
3695
|
fontStyle: "italic"
|
|
3708
3696
|
},
|
|
3709
|
-
children: k(
|
|
3697
|
+
children: k(i.tookSeconds, { n: s })
|
|
3710
3698
|
}
|
|
3711
3699
|
)
|
|
3712
3700
|
] });
|
|
3713
|
-
},
|
|
3701
|
+
}, Xr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
|
|
3714
3702
|
const { colors: i } = T(), a = e.fileCount === 1 ? n.exploreExportingOne : k(n.exploreExporting, { n: e.fileCount });
|
|
3715
3703
|
return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
|
|
3716
3704
|
/* @__PURE__ */ r(
|
|
@@ -3741,7 +3729,7 @@ const Xr = ({
|
|
|
3741
3729
|
}
|
|
3742
3730
|
)
|
|
3743
3731
|
] });
|
|
3744
|
-
},
|
|
3732
|
+
}, Yr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
|
|
3745
3733
|
const { colors: i } = T(), a = k(n.exploreFindMemoriesQuery, {
|
|
3746
3734
|
query: e.query
|
|
3747
3735
|
});
|
|
@@ -3776,8 +3764,8 @@ const Xr = ({
|
|
|
3776
3764
|
}
|
|
3777
3765
|
)
|
|
3778
3766
|
] });
|
|
3779
|
-
}, ee = 5,
|
|
3780
|
-
const { colors: t } = T(), [n, i] = w(!1), a = e.memories.map((b) => b.memoryTitle), l = a.length > 0, d = l && a.length > ee, p = d && !n ? a.slice(0, ee) : a, u = a.length - ee, g = !d || n, h = a.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, x = l ? `${h}${
|
|
3767
|
+
}, ee = 5, Jr = ({ data: e, t: o }) => {
|
|
3768
|
+
const { colors: t } = T(), [n, i] = w(!1), a = e.memories.map((b) => b.memoryTitle), l = a.length > 0, d = l && a.length > ee, p = d && !n ? a.slice(0, ee) : a, u = a.length - ee, g = !d || n, h = a.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, x = l ? `${h}${j(
|
|
3781
3769
|
p,
|
|
3782
3770
|
g ? o.and : void 0
|
|
3783
3771
|
)}` : o.memoriesFound;
|
|
@@ -3840,7 +3828,7 @@ const Xr = ({
|
|
|
3840
3828
|
}
|
|
3841
3829
|
) });
|
|
3842
3830
|
};
|
|
3843
|
-
function
|
|
3831
|
+
function Zr(e) {
|
|
3844
3832
|
return {
|
|
3845
3833
|
taskType: "MemoryChat",
|
|
3846
3834
|
eventType: "Search",
|
|
@@ -3848,10 +3836,10 @@ function en(e) {
|
|
|
3848
3836
|
...e.input.memories !== void 0 && e.input.memories.length > 0 ? { memories: e.input.memories } : {}
|
|
3849
3837
|
};
|
|
3850
3838
|
}
|
|
3851
|
-
const
|
|
3852
|
-
const a =
|
|
3839
|
+
const en = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, onSearchResultClick: i }) => {
|
|
3840
|
+
const a = Zr(e);
|
|
3853
3841
|
return e.items === void 0 ? /* @__PURE__ */ r(
|
|
3854
|
-
|
|
3842
|
+
q,
|
|
3855
3843
|
{
|
|
3856
3844
|
data: a,
|
|
3857
3845
|
isLatest: o,
|
|
@@ -3860,7 +3848,7 @@ const rn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, onSearchResul
|
|
|
3860
3848
|
}
|
|
3861
3849
|
) : /* @__PURE__ */ m(R, { children: [
|
|
3862
3850
|
/* @__PURE__ */ r(
|
|
3863
|
-
|
|
3851
|
+
q,
|
|
3864
3852
|
{
|
|
3865
3853
|
data: a,
|
|
3866
3854
|
isLatest: !1,
|
|
@@ -3884,14 +3872,14 @@ const rn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, onSearchResul
|
|
|
3884
3872
|
)
|
|
3885
3873
|
] });
|
|
3886
3874
|
};
|
|
3887
|
-
function
|
|
3875
|
+
function rn({
|
|
3888
3876
|
memory: e,
|
|
3889
3877
|
completed: o
|
|
3890
3878
|
}) {
|
|
3891
|
-
return e.error != null ? /* @__PURE__ */ r(
|
|
3879
|
+
return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.summary != null ? /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
|
|
3892
3880
|
}
|
|
3893
3881
|
const ye = 80;
|
|
3894
|
-
function
|
|
3882
|
+
function nn({
|
|
3895
3883
|
memory: e,
|
|
3896
3884
|
completed: o,
|
|
3897
3885
|
t
|
|
@@ -3926,7 +3914,7 @@ function on({
|
|
|
3926
3914
|
flexShrink: 0,
|
|
3927
3915
|
width: 32
|
|
3928
3916
|
},
|
|
3929
|
-
children: /* @__PURE__ */ r(
|
|
3917
|
+
children: /* @__PURE__ */ r(rn, { memory: e, completed: o })
|
|
3930
3918
|
}
|
|
3931
3919
|
),
|
|
3932
3920
|
/* @__PURE__ */ m(
|
|
@@ -3980,7 +3968,7 @@ function on({
|
|
|
3980
3968
|
}
|
|
3981
3969
|
);
|
|
3982
3970
|
}
|
|
3983
|
-
const
|
|
3971
|
+
const on = ({ data: e, completed: o, t }) => {
|
|
3984
3972
|
const { colors: n } = T();
|
|
3985
3973
|
return /* @__PURE__ */ m("div", { style: { paddingTop: "16px", paddingBottom: "10px" }, children: [
|
|
3986
3974
|
/* @__PURE__ */ r(
|
|
@@ -3996,7 +3984,7 @@ const tn = ({ data: e, completed: o, t }) => {
|
|
|
3996
3984
|
}
|
|
3997
3985
|
),
|
|
3998
3986
|
e.memories.map((i) => /* @__PURE__ */ r(
|
|
3999
|
-
|
|
3987
|
+
nn,
|
|
4000
3988
|
{
|
|
4001
3989
|
memory: i,
|
|
4002
3990
|
completed: o,
|
|
@@ -4005,7 +3993,7 @@ const tn = ({ data: e, completed: o, t }) => {
|
|
|
4005
3993
|
i.memoryId
|
|
4006
3994
|
))
|
|
4007
3995
|
] });
|
|
4008
|
-
},
|
|
3996
|
+
}, tn = ({
|
|
4009
3997
|
data: e,
|
|
4010
3998
|
isLatest: o = !1,
|
|
4011
3999
|
durationSeconds: t,
|
|
@@ -4041,7 +4029,7 @@ const tn = ({ data: e, completed: o, t }) => {
|
|
|
4041
4029
|
}
|
|
4042
4030
|
)
|
|
4043
4031
|
] });
|
|
4044
|
-
},
|
|
4032
|
+
}, an = ({ data: e, onSourceClick: o, t }) => /* @__PURE__ */ r(
|
|
4045
4033
|
Me,
|
|
4046
4034
|
{
|
|
4047
4035
|
data: {
|
|
@@ -4053,20 +4041,20 @@ const tn = ({ data: e, completed: o, t }) => {
|
|
|
4053
4041
|
t
|
|
4054
4042
|
}
|
|
4055
4043
|
);
|
|
4056
|
-
function
|
|
4057
|
-
return e.error != null ? /* @__PURE__ */ r(
|
|
4044
|
+
function ln({ item: e }) {
|
|
4045
|
+
return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
|
|
4058
4046
|
}
|
|
4059
|
-
function
|
|
4047
|
+
function sn(e, o) {
|
|
4060
4048
|
return k(o.searchingInMemoriesOfType, {
|
|
4061
4049
|
name: e.memoryTypeName
|
|
4062
4050
|
});
|
|
4063
4051
|
}
|
|
4064
|
-
function
|
|
4052
|
+
function cn({
|
|
4065
4053
|
item: e,
|
|
4066
4054
|
t: o,
|
|
4067
4055
|
showShimmerForPrimary: t
|
|
4068
4056
|
}) {
|
|
4069
|
-
const { colors: n } = T(), i = e.result != null, a = e.error != null, l =
|
|
4057
|
+
const { colors: n } = T(), i = e.result != null, a = e.error != null, l = sn(e, o);
|
|
4070
4058
|
return /* @__PURE__ */ m(
|
|
4071
4059
|
v.div,
|
|
4072
4060
|
{
|
|
@@ -4094,7 +4082,7 @@ function dn({
|
|
|
4094
4082
|
flexShrink: 0,
|
|
4095
4083
|
width: 32
|
|
4096
4084
|
},
|
|
4097
|
-
children: /* @__PURE__ */ r(
|
|
4085
|
+
children: /* @__PURE__ */ r(ln, { item: e })
|
|
4098
4086
|
}
|
|
4099
4087
|
),
|
|
4100
4088
|
/* @__PURE__ */ m(
|
|
@@ -4133,8 +4121,8 @@ function dn({
|
|
|
4133
4121
|
}
|
|
4134
4122
|
);
|
|
4135
4123
|
}
|
|
4136
|
-
const
|
|
4137
|
-
const { colors: i } = T(), a =
|
|
4124
|
+
const dn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
|
|
4125
|
+
const { colors: i } = T(), a = z(() => {
|
|
4138
4126
|
let l = -1;
|
|
4139
4127
|
return e.memoryTypes.forEach((d, p) => {
|
|
4140
4128
|
d.result == null && d.error == null && (l = p);
|
|
@@ -4142,7 +4130,7 @@ const pn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
|
|
|
4142
4130
|
}, [e.memoryTypes]);
|
|
4143
4131
|
return /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
|
|
4144
4132
|
o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(C, { text: n.searchingMemoryTypes, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((l, d) => /* @__PURE__ */ r(
|
|
4145
|
-
|
|
4133
|
+
cn,
|
|
4146
4134
|
{
|
|
4147
4135
|
item: l,
|
|
4148
4136
|
t: n,
|
|
@@ -4164,27 +4152,27 @@ const pn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
|
|
|
4164
4152
|
)
|
|
4165
4153
|
] });
|
|
4166
4154
|
};
|
|
4167
|
-
function
|
|
4155
|
+
function U(e) {
|
|
4168
4156
|
return e.queries != null && e.queries.length > 0;
|
|
4169
4157
|
}
|
|
4170
|
-
function
|
|
4158
|
+
function pn(e) {
|
|
4171
4159
|
const o = e.reasoning;
|
|
4172
|
-
return (o == null || o === "") && !
|
|
4160
|
+
return (o == null || o === "") && !U(e);
|
|
4173
4161
|
}
|
|
4174
|
-
function
|
|
4175
|
-
if (
|
|
4162
|
+
function un(e) {
|
|
4163
|
+
if (U(e)) return 3;
|
|
4176
4164
|
const o = e.reasoning;
|
|
4177
4165
|
return o == null || o === "" ? 1 : e.reasoningCompleted === !0 ? 2 : 1;
|
|
4178
4166
|
}
|
|
4179
|
-
function
|
|
4167
|
+
function mn({ phase: e }) {
|
|
4180
4168
|
return e === 3 ? /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
|
|
4181
4169
|
}
|
|
4182
|
-
function
|
|
4170
|
+
function gn({
|
|
4183
4171
|
item: e,
|
|
4184
4172
|
t: o,
|
|
4185
4173
|
isActiveRow: t
|
|
4186
4174
|
}) {
|
|
4187
|
-
const { colors: n } = T(), i =
|
|
4175
|
+
const { colors: n } = T(), i = pn(e), a = un(e), l = e.reasoning, d = l != null && l.length > 0, [p, u] = w(!1), g = i && t, h = a === 2 && t && !U(e), x = k(o.searchingInMemoriesOfType, {
|
|
4188
4176
|
name: e.memoryTypeName
|
|
4189
4177
|
}), b = !i && a === 3;
|
|
4190
4178
|
return /* @__PURE__ */ m(
|
|
@@ -4215,7 +4203,7 @@ function hn({
|
|
|
4215
4203
|
width: 32,
|
|
4216
4204
|
...b ? { paddingTop: 2 } : {}
|
|
4217
4205
|
},
|
|
4218
|
-
children: /* @__PURE__ */ r(
|
|
4206
|
+
children: /* @__PURE__ */ r(mn, { phase: i ? 1 : a })
|
|
4219
4207
|
}
|
|
4220
4208
|
),
|
|
4221
4209
|
/* @__PURE__ */ m(
|
|
@@ -4230,7 +4218,7 @@ function hn({
|
|
|
4230
4218
|
},
|
|
4231
4219
|
children: [
|
|
4232
4220
|
/* @__PURE__ */ r("span", { style: { fontSize: 13, fontWeight: 500, color: n.textPrimary }, children: g ? /* @__PURE__ */ r(C, { text: x, duration: 2.5, repeat: !0 }) : e.memoryTypeName }),
|
|
4233
|
-
a === 1 && d && !
|
|
4221
|
+
a === 1 && d && !U(e) && /* @__PURE__ */ r(
|
|
4234
4222
|
Fe,
|
|
4235
4223
|
{
|
|
4236
4224
|
text: l,
|
|
@@ -4308,8 +4296,8 @@ function hn({
|
|
|
4308
4296
|
"div",
|
|
4309
4297
|
{
|
|
4310
4298
|
style: {
|
|
4311
|
-
fontSize:
|
|
4312
|
-
lineHeight:
|
|
4299
|
+
fontSize: K,
|
|
4300
|
+
lineHeight: V,
|
|
4313
4301
|
whiteSpace: "pre-wrap",
|
|
4314
4302
|
wordBreak: "break-word",
|
|
4315
4303
|
color: n.textTertiary,
|
|
@@ -4329,16 +4317,16 @@ function hn({
|
|
|
4329
4317
|
}
|
|
4330
4318
|
);
|
|
4331
4319
|
}
|
|
4332
|
-
const
|
|
4333
|
-
const { colors: i } = T(), a =
|
|
4320
|
+
const hn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
|
|
4321
|
+
const { colors: i } = T(), a = z(() => {
|
|
4334
4322
|
let l = -1;
|
|
4335
4323
|
return e.memoryTypes.forEach((d, p) => {
|
|
4336
|
-
|
|
4324
|
+
U(d) || (l = p);
|
|
4337
4325
|
}), l;
|
|
4338
4326
|
}, [e.memoryTypes]);
|
|
4339
4327
|
return /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
|
|
4340
4328
|
o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(C, { text: n.memorySearchGeneratingQueries, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((l, d) => /* @__PURE__ */ r(
|
|
4341
|
-
|
|
4329
|
+
gn,
|
|
4342
4330
|
{
|
|
4343
4331
|
item: l,
|
|
4344
4332
|
t: n,
|
|
@@ -4360,10 +4348,10 @@ const yn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
|
|
|
4360
4348
|
)
|
|
4361
4349
|
] });
|
|
4362
4350
|
};
|
|
4363
|
-
function
|
|
4364
|
-
return e.some((n) => n.result == null && n.error == null) ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : e.some((n) => n.error != null) ? /* @__PURE__ */ r(
|
|
4351
|
+
function yn(e) {
|
|
4352
|
+
return e.some((n) => n.result == null && n.error == null) ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : e.some((n) => n.error != null) ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : /* @__PURE__ */ r(F, { size: 15, borderWidth: 2 });
|
|
4365
4353
|
}
|
|
4366
|
-
function
|
|
4354
|
+
function fn({
|
|
4367
4355
|
item: e,
|
|
4368
4356
|
t: o
|
|
4369
4357
|
}) {
|
|
@@ -4381,7 +4369,7 @@ function xn({
|
|
|
4381
4369
|
a
|
|
4382
4370
|
] });
|
|
4383
4371
|
}
|
|
4384
|
-
function
|
|
4372
|
+
function xn({
|
|
4385
4373
|
items: e,
|
|
4386
4374
|
queryRow: o,
|
|
4387
4375
|
onExploreQueryResultClick: t,
|
|
@@ -4549,7 +4537,7 @@ function kn({
|
|
|
4549
4537
|
}
|
|
4550
4538
|
);
|
|
4551
4539
|
}
|
|
4552
|
-
function
|
|
4540
|
+
function kn(e) {
|
|
4553
4541
|
const o = [], t = /* @__PURE__ */ new Map();
|
|
4554
4542
|
return e.forEach((n, i) => {
|
|
4555
4543
|
let a = t.get(n.memoryTypeId);
|
|
@@ -4560,7 +4548,7 @@ function Sn(e) {
|
|
|
4560
4548
|
}, t.set(n.memoryTypeId, a)), a.items.push({ item: n, flatIndex: i });
|
|
4561
4549
|
}), o.map((n) => t.get(n));
|
|
4562
4550
|
}
|
|
4563
|
-
function
|
|
4551
|
+
function Sn({
|
|
4564
4552
|
group: e,
|
|
4565
4553
|
t: o,
|
|
4566
4554
|
isLatest: t,
|
|
@@ -4599,7 +4587,7 @@ function bn({
|
|
|
4599
4587
|
width: 32,
|
|
4600
4588
|
...p ? {} : { paddingTop: 2 }
|
|
4601
4589
|
},
|
|
4602
|
-
children:
|
|
4590
|
+
children: yn(d)
|
|
4603
4591
|
}
|
|
4604
4592
|
),
|
|
4605
4593
|
/* @__PURE__ */ m(
|
|
@@ -4682,7 +4670,7 @@ function bn({
|
|
|
4682
4670
|
flexShrink: 0
|
|
4683
4671
|
},
|
|
4684
4672
|
children: [
|
|
4685
|
-
/* @__PURE__ */ r(
|
|
4673
|
+
/* @__PURE__ */ r(fn, { item: u, t: o }),
|
|
4686
4674
|
h && /* @__PURE__ */ r(
|
|
4687
4675
|
"button",
|
|
4688
4676
|
{
|
|
@@ -4708,7 +4696,7 @@ function bn({
|
|
|
4708
4696
|
}
|
|
4709
4697
|
),
|
|
4710
4698
|
h && y && /* @__PURE__ */ r(
|
|
4711
|
-
|
|
4699
|
+
xn,
|
|
4712
4700
|
{
|
|
4713
4701
|
items: s,
|
|
4714
4702
|
queryRow: u,
|
|
@@ -4728,7 +4716,7 @@ function bn({
|
|
|
4728
4716
|
}
|
|
4729
4717
|
);
|
|
4730
4718
|
}
|
|
4731
|
-
const
|
|
4719
|
+
const bn = ({
|
|
4732
4720
|
data: e,
|
|
4733
4721
|
isLatest: o = !1,
|
|
4734
4722
|
durationSeconds: t,
|
|
@@ -4742,8 +4730,8 @@ const Tn = ({
|
|
|
4742
4730
|
...h,
|
|
4743
4731
|
[g]: !h[g]
|
|
4744
4732
|
}));
|
|
4745
|
-
}, []), u =
|
|
4746
|
-
() =>
|
|
4733
|
+
}, []), u = z(
|
|
4734
|
+
() => kn(e.queries),
|
|
4747
4735
|
[e.queries]
|
|
4748
4736
|
);
|
|
4749
4737
|
return /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
|
|
@@ -4755,7 +4743,7 @@ const Tn = ({
|
|
|
4755
4743
|
repeat: !0
|
|
4756
4744
|
}
|
|
4757
4745
|
) : u.map((g) => /* @__PURE__ */ r(
|
|
4758
|
-
|
|
4746
|
+
Sn,
|
|
4759
4747
|
{
|
|
4760
4748
|
group: g,
|
|
4761
4749
|
t: i,
|
|
@@ -4779,7 +4767,7 @@ const Tn = ({
|
|
|
4779
4767
|
}
|
|
4780
4768
|
)
|
|
4781
4769
|
] });
|
|
4782
|
-
},
|
|
4770
|
+
}, Tn = ({ data: e, onSearchResultClick: o, t }) => {
|
|
4783
4771
|
const { colors: n } = T(), i = e.response.items, a = !!o, [l, d] = w(null);
|
|
4784
4772
|
return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
|
|
4785
4773
|
/* @__PURE__ */ r(
|
|
@@ -4967,7 +4955,7 @@ const Tn = ({
|
|
|
4967
4955
|
}
|
|
4968
4956
|
) });
|
|
4969
4957
|
};
|
|
4970
|
-
class
|
|
4958
|
+
class vn extends Ue.Component {
|
|
4971
4959
|
constructor(o) {
|
|
4972
4960
|
super(o), this.state = { hasError: !1 };
|
|
4973
4961
|
}
|
|
@@ -4986,7 +4974,7 @@ class wn extends Ue.Component {
|
|
|
4986
4974
|
return this.state.hasError ? null : this.props.children;
|
|
4987
4975
|
}
|
|
4988
4976
|
}
|
|
4989
|
-
const
|
|
4977
|
+
const wn = ({
|
|
4990
4978
|
progressViewItems: e,
|
|
4991
4979
|
loading: o,
|
|
4992
4980
|
error: t,
|
|
@@ -5107,7 +5095,7 @@ const Cn = ({
|
|
|
5107
5095
|
);
|
|
5108
5096
|
case "Search":
|
|
5109
5097
|
return /* @__PURE__ */ r(
|
|
5110
|
-
|
|
5098
|
+
q,
|
|
5111
5099
|
{
|
|
5112
5100
|
data: c,
|
|
5113
5101
|
isLatest: s.isLatest,
|
|
@@ -5206,7 +5194,7 @@ const Cn = ({
|
|
|
5206
5194
|
switch (c.eventType) {
|
|
5207
5195
|
case "GeneratingQueries":
|
|
5208
5196
|
return /* @__PURE__ */ r(
|
|
5209
|
-
|
|
5197
|
+
hn,
|
|
5210
5198
|
{
|
|
5211
5199
|
data: c,
|
|
5212
5200
|
isLatest: s.isLatest,
|
|
@@ -5216,7 +5204,7 @@ const Cn = ({
|
|
|
5216
5204
|
);
|
|
5217
5205
|
case "ExploreQueries":
|
|
5218
5206
|
return /* @__PURE__ */ r(
|
|
5219
|
-
|
|
5207
|
+
bn,
|
|
5220
5208
|
{
|
|
5221
5209
|
data: c,
|
|
5222
5210
|
isLatest: s.isLatest,
|
|
@@ -5227,7 +5215,7 @@ const Cn = ({
|
|
|
5227
5215
|
);
|
|
5228
5216
|
case "SearchMemoryTypes":
|
|
5229
5217
|
return /* @__PURE__ */ r(
|
|
5230
|
-
|
|
5218
|
+
dn,
|
|
5231
5219
|
{
|
|
5232
5220
|
data: c,
|
|
5233
5221
|
isLatest: s.isLatest,
|
|
@@ -5237,7 +5225,7 @@ const Cn = ({
|
|
|
5237
5225
|
);
|
|
5238
5226
|
case "Completed":
|
|
5239
5227
|
return /* @__PURE__ */ r(
|
|
5240
|
-
|
|
5228
|
+
Tn,
|
|
5241
5229
|
{
|
|
5242
5230
|
data: c,
|
|
5243
5231
|
onSearchResultClick: d,
|
|
@@ -5276,11 +5264,12 @@ const Cn = ({
|
|
|
5276
5264
|
);
|
|
5277
5265
|
case "Planning":
|
|
5278
5266
|
return /* @__PURE__ */ r(
|
|
5279
|
-
|
|
5267
|
+
Vr,
|
|
5280
5268
|
{
|
|
5281
5269
|
data: c,
|
|
5282
5270
|
createdAt: s.item.createdAt,
|
|
5283
5271
|
timestamp: s.item.timestamp,
|
|
5272
|
+
completed: s.completed,
|
|
5284
5273
|
t: i,
|
|
5285
5274
|
onMemoryClick: a
|
|
5286
5275
|
}
|
|
@@ -5289,7 +5278,7 @@ const Cn = ({
|
|
|
5289
5278
|
return null;
|
|
5290
5279
|
case "ExportingMemories":
|
|
5291
5280
|
return /* @__PURE__ */ r(
|
|
5292
|
-
|
|
5281
|
+
Xr,
|
|
5293
5282
|
{
|
|
5294
5283
|
data: c,
|
|
5295
5284
|
isLatest: s.isLatest,
|
|
@@ -5299,7 +5288,7 @@ const Cn = ({
|
|
|
5299
5288
|
);
|
|
5300
5289
|
case "FindMemories":
|
|
5301
5290
|
return /* @__PURE__ */ r(
|
|
5302
|
-
|
|
5291
|
+
Yr,
|
|
5303
5292
|
{
|
|
5304
5293
|
data: c,
|
|
5305
5294
|
isLatest: s.isLatest,
|
|
@@ -5308,10 +5297,10 @@ const Cn = ({
|
|
|
5308
5297
|
}
|
|
5309
5298
|
);
|
|
5310
5299
|
case "FindMemoriesResult":
|
|
5311
|
-
return /* @__PURE__ */ r(
|
|
5300
|
+
return /* @__PURE__ */ r(Jr, { data: c, t: i });
|
|
5312
5301
|
case "SemanticSearch":
|
|
5313
5302
|
return /* @__PURE__ */ r(
|
|
5314
|
-
|
|
5303
|
+
en,
|
|
5315
5304
|
{
|
|
5316
5305
|
data: c,
|
|
5317
5306
|
isLatest: s.isLatest,
|
|
@@ -5322,7 +5311,7 @@ const Cn = ({
|
|
|
5322
5311
|
);
|
|
5323
5312
|
case "SemanticSearchForEach":
|
|
5324
5313
|
return /* @__PURE__ */ r(
|
|
5325
|
-
|
|
5314
|
+
on,
|
|
5326
5315
|
{
|
|
5327
5316
|
data: c,
|
|
5328
5317
|
completed: s.completed,
|
|
@@ -5332,7 +5321,7 @@ const Cn = ({
|
|
|
5332
5321
|
);
|
|
5333
5322
|
case "RunCode":
|
|
5334
5323
|
return /* @__PURE__ */ r(
|
|
5335
|
-
|
|
5324
|
+
tn,
|
|
5336
5325
|
{
|
|
5337
5326
|
data: c,
|
|
5338
5327
|
isLatest: s.isLatest,
|
|
@@ -5352,7 +5341,7 @@ const Cn = ({
|
|
|
5352
5341
|
);
|
|
5353
5342
|
case "SourcesResult":
|
|
5354
5343
|
return /* @__PURE__ */ r(
|
|
5355
|
-
|
|
5344
|
+
an,
|
|
5356
5345
|
{
|
|
5357
5346
|
data: c,
|
|
5358
5347
|
onSourceClick: l,
|
|
@@ -5430,9 +5419,9 @@ const Cn = ({
|
|
|
5430
5419
|
(E) => E.item.data.taskType === "MemoryChat" && E.item.data.eventType === "ScrapeWebsites"
|
|
5431
5420
|
);
|
|
5432
5421
|
if (f.taskType === "ExploreMemories" && (f.eventType === "Thinking" || f.eventType === "ExportingMemories" || f.eventType === "FindSources")) {
|
|
5433
|
-
const
|
|
5422
|
+
const P = f.eventType;
|
|
5434
5423
|
return !e.slice(c + 1).some(
|
|
5435
|
-
(se) => se.item.data.taskType === "ExploreMemories" && se.item.data.eventType ===
|
|
5424
|
+
(se) => se.item.data.taskType === "ExploreMemories" && se.item.data.eventType === P
|
|
5436
5425
|
);
|
|
5437
5426
|
}
|
|
5438
5427
|
return !0;
|
|
@@ -5456,7 +5445,7 @@ const Cn = ({
|
|
|
5456
5445
|
ease: "easeOut"
|
|
5457
5446
|
},
|
|
5458
5447
|
children: /* @__PURE__ */ r(
|
|
5459
|
-
|
|
5448
|
+
vn,
|
|
5460
5449
|
{
|
|
5461
5450
|
progressItemId: s.item.progressItemId,
|
|
5462
5451
|
children: b(s)
|
|
@@ -5469,7 +5458,7 @@ const Cn = ({
|
|
|
5469
5458
|
]
|
|
5470
5459
|
}
|
|
5471
5460
|
);
|
|
5472
|
-
},
|
|
5461
|
+
}, Cn = ({ taskId: e, label: o, copiedLabel: t }) => {
|
|
5473
5462
|
const { colors: n } = T(), [i, a] = w(!1);
|
|
5474
5463
|
H(() => {
|
|
5475
5464
|
if (!i) return;
|
|
@@ -5503,7 +5492,7 @@ const Cn = ({
|
|
|
5503
5492
|
children: i ? t : o
|
|
5504
5493
|
}
|
|
5505
5494
|
);
|
|
5506
|
-
},
|
|
5495
|
+
}, An = ({
|
|
5507
5496
|
agentTask: e,
|
|
5508
5497
|
theme: o = "light",
|
|
5509
5498
|
language: t,
|
|
@@ -5525,7 +5514,7 @@ const Cn = ({
|
|
|
5525
5514
|
zIndex: 1
|
|
5526
5515
|
},
|
|
5527
5516
|
children: /* @__PURE__ */ r(
|
|
5528
|
-
|
|
5517
|
+
Cn,
|
|
5529
5518
|
{
|
|
5530
5519
|
taskId: g,
|
|
5531
5520
|
label: u.copyId,
|
|
@@ -5535,7 +5524,7 @@ const Cn = ({
|
|
|
5535
5524
|
}
|
|
5536
5525
|
) : null,
|
|
5537
5526
|
/* @__PURE__ */ r(
|
|
5538
|
-
|
|
5527
|
+
wn,
|
|
5539
5528
|
{
|
|
5540
5529
|
progressViewItems: d,
|
|
5541
5530
|
loading: e.loading,
|
|
@@ -5552,16 +5541,16 @@ const Cn = ({
|
|
|
5552
5541
|
] }) });
|
|
5553
5542
|
};
|
|
5554
5543
|
export {
|
|
5555
|
-
|
|
5544
|
+
An as AgentTaskProgress,
|
|
5556
5545
|
ar as AgentTaskThemeProvider,
|
|
5557
5546
|
F as Checkmark,
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5547
|
+
Pn as FencyProvider,
|
|
5548
|
+
Tn as MemorySearchCompletedResults,
|
|
5549
|
+
$n as StreamEventManager,
|
|
5550
|
+
_ as XMark,
|
|
5562
5551
|
ir as darkAgentTaskThemeColors,
|
|
5563
5552
|
we as getAgentTaskPrismStyle,
|
|
5564
5553
|
Te as lightAgentTaskThemeColors,
|
|
5565
5554
|
T as useAgentTaskTheme,
|
|
5566
|
-
|
|
5555
|
+
Ln as useAgentTasks
|
|
5567
5556
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fencyai/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.206",
|
|
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.
|
|
38
|
+
"@fencyai/js": "^0.1.206",
|
|
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.
|
|
55
|
+
"@fencyai/js": "^0.1.206",
|
|
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": "
|
|
62
|
+
"gitHead": "f043b335cc5eda0eaf92c7a86d39319337fcf9a9"
|
|
63
63
|
}
|