@versini/sassysaint 8.98.3 → 8.99.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/chunks/{AboutChangelog.BHeQDyAS.js → AboutChangelog.Lsbr0lUh.js} +3 -3
- package/dist/chunks/{AboutEntry.BDM1BS3O.js → AboutEntry.C-uC4MBB.js} +5 -5
- package/dist/chunks/{App.BxJv91RA.js → App.lHXZIn8I.js} +2308 -2226
- package/dist/chunks/{Chart.B-IDcETZ.js → Chart.ClOH2fiY.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Djc2iCyr.js → ChatBubbleAssistant.BV6sVx6a.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.9bZol1ui.js → ChatBubbleUser.Dij7uJwm.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BUuLmcsH.js → ChatHistoryTable.BFfmfdjX.js} +50 -40
- package/dist/chunks/{HistoryEntry.DjynRTSp.js → HistoryEntry.BkOQP3CV.js} +58 -57
- package/dist/chunks/{ProfileEntry.1nrfOO15.js → ProfileEntry.DuvmIHnj.js} +2 -2
- package/dist/chunks/{SettingsEntry.BDMnQae8.js → SettingsEntry.Cu-T81W1.js} +3 -3
- package/dist/chunks/{UsageEntry.DcbByq10.js → UsageEntry.XYX0KDAl.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.DKGWrLjO.js → UserMemoriesPanel.Cm0Gz7iM.js} +19 -19
- package/dist/chunks/{index.CrHmVTY1.js → index.5-5jxYfs.js} +1 -5
- package/dist/chunks/{index.B-pjzlNv.js → index.B-J4ZnaE.js} +1 -1
- package/dist/chunks/{index.BmYZaJLx.js → index.B5oy8JDL.js} +1 -1
- package/dist/chunks/{index.CHHjG7lM.js → index.BTGZYTuA.js} +2 -2
- package/dist/chunks/{index.Uudz8gOx.js → index.CDxR_BoA.js} +205 -175
- package/dist/chunks/{index.B4rJXgrc.js → index.CfH88Vnf.js} +1 -1
- package/dist/chunks/{index.D8Bfm5ps.js → index.D5nCT2P4.js} +1 -1
- package/dist/chunks/{index.CrNmEf0v.js → index.DvsI9f9_.js} +3 -3
- package/dist/chunks/{index.s2xRQ0x6.js → index.ttYr-nJ-.js} +1 -1
- package/dist/chunks/{useMarkdown.REEuvxRM.js → useMarkdown.Df5zZY4U.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as I } from "react/jsx-runtime";
|
|
2
|
-
import { L as E, j as f, Button as P, n as Se, useLocalStorage as
|
|
3
|
-
import { Panel as se, Toggle as O, CancelButton as ae, ConfirmationPanel as te, ResponsiveTooltip as _ } from "./App.
|
|
4
|
-
import {
|
|
2
|
+
import { L as E, j as f, Button as P, n as Se, useLocalStorage as W, LOCAL_STORAGE_PREFIX as Z, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Te, e$1 as l, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ke, useUserMemories as ve, useExpiredMemories as De, useDeleteMemory as be, useDeleteAllActiveMemories as Ee, useDeleteAllExpiredMemories as Me, useUpdateMemory as Re, useRestoreMemory as Ie, ButtonIcon as L, IconEdit as Le, IconDelete as ee, IconRestore as Oe } from "./index.5-5jxYfs.js";
|
|
3
|
+
import { Panel as se, Toggle as O, CancelButton as ae, ConfirmationPanel as te, ResponsiveTooltip as _ } from "./App.lHXZIn8I.js";
|
|
4
|
+
import { j as re, D as ie, F as D, L as s, Y as z, G as ne, H as oe } from "./index.CDxR_BoA.js";
|
|
5
5
|
import A from "clsx";
|
|
6
6
|
import { useState as y, useEffect as _e, useRef as le } from "react";
|
|
7
|
-
import { TextArea as ze } from "./index.
|
|
7
|
+
import { TextArea as ze } from "./index.ttYr-nJ-.js";
|
|
8
8
|
const Pe = ({
|
|
9
9
|
open: C,
|
|
10
10
|
onOpenChange: b,
|
|
@@ -183,10 +183,10 @@ const Pe = ({
|
|
|
183
183
|
onOpenChange: b,
|
|
184
184
|
user: c
|
|
185
185
|
}) => {
|
|
186
|
-
const { getAccessToken: n } = Se(), [M] = y(void 0), [m, p] = y("active"), [R, h] =
|
|
186
|
+
const { getAccessToken: n } = Se(), [M] = y(void 0), [m, p] = y("active"), [R, h] = W({
|
|
187
187
|
key: Z + Te,
|
|
188
188
|
initialValue: l.DESC
|
|
189
|
-
}), [N, S] =
|
|
189
|
+
}), [N, S] = W({
|
|
190
190
|
key: Z + ke,
|
|
191
191
|
initialValue: "createdAt"
|
|
192
192
|
}), [u, T] = y(R || l.DESC), [o, k] = y(
|
|
@@ -198,14 +198,14 @@ const Pe = ({
|
|
|
198
198
|
enabled: C && m === "active"
|
|
199
199
|
}), {
|
|
200
200
|
data: g,
|
|
201
|
-
isLoading:
|
|
202
|
-
isError:
|
|
201
|
+
isLoading: $,
|
|
202
|
+
isError: H
|
|
203
203
|
} = De({
|
|
204
204
|
user: c,
|
|
205
205
|
query: M,
|
|
206
206
|
getAccessToken: n,
|
|
207
207
|
enabled: C && m === "expired"
|
|
208
|
-
}), B = be({ getAccessToken: n }), j = Ee({ getAccessToken: n }), X = Me({ getAccessToken: n }), F = Re({ getAccessToken: n }), V = Ie({ getAccessToken: n }), [ce, Y] = y(!1), w = le(null), [de,
|
|
208
|
+
}), B = be({ getAccessToken: n }), j = Ee({ getAccessToken: n }), X = Me({ getAccessToken: n }), F = Re({ getAccessToken: n }), V = Ie({ getAccessToken: n }), [ce, Y] = y(!1), w = le(null), [de, J] = y(!1), [me, G] = y(!1), x = le(null), K = (t, i, a, d) => {
|
|
209
209
|
w.current = { id: t, text: i, description: a, createdAt: d }, Y(!0);
|
|
210
210
|
}, xe = () => {
|
|
211
211
|
w.current && B.mutate({ user: c, memoryId: w.current.id });
|
|
@@ -237,10 +237,10 @@ const Pe = ({
|
|
|
237
237
|
}
|
|
238
238
|
);
|
|
239
239
|
}, ue = () => {
|
|
240
|
-
c &&
|
|
240
|
+
c && J(!0);
|
|
241
241
|
}, ge = () => {
|
|
242
242
|
c && (m === "active" ? j.mutate({ user: c }) : X.mutate({ user: c }));
|
|
243
|
-
},
|
|
243
|
+
}, Q = (t) => {
|
|
244
244
|
const i = `${t.total} memor${t.total === 1 ? "y" : "ies"}`, a = t.totalTokenUsage ? ` (~${t.totalTokenUsage} tokens)` : "";
|
|
245
245
|
return i + a;
|
|
246
246
|
};
|
|
@@ -297,7 +297,7 @@ const Pe = ({
|
|
|
297
297
|
te,
|
|
298
298
|
{
|
|
299
299
|
showConfirmation: de,
|
|
300
|
-
setShowConfirmation:
|
|
300
|
+
setShowConfirmation: J,
|
|
301
301
|
action: ge,
|
|
302
302
|
customStrings: {
|
|
303
303
|
title: m === "active" ? "Delete all active memories" : "Delete all expired memories",
|
|
@@ -374,7 +374,7 @@ const Pe = ({
|
|
|
374
374
|
stickyFooter: !0,
|
|
375
375
|
compact: !0,
|
|
376
376
|
mode: "alt-system",
|
|
377
|
-
caption:
|
|
377
|
+
caption: Q(v),
|
|
378
378
|
children: [
|
|
379
379
|
/* @__PURE__ */ e(ie, { children: /* @__PURE__ */ r(D, { children: [
|
|
380
380
|
/* @__PURE__ */ e(s, { className: "sr-only", children: "Row" }),
|
|
@@ -522,7 +522,7 @@ const Pe = ({
|
|
|
522
522
|
variant: "primary",
|
|
523
523
|
iconClassName: "text-red-700 dark:text-red-500",
|
|
524
524
|
disabled: B.isPending,
|
|
525
|
-
onClick: () =>
|
|
525
|
+
onClick: () => K(
|
|
526
526
|
t.memoryId,
|
|
527
527
|
t.text,
|
|
528
528
|
t.description,
|
|
@@ -539,14 +539,14 @@ const Pe = ({
|
|
|
539
539
|
}
|
|
540
540
|
)
|
|
541
541
|
] }, t.memoryId)) }),
|
|
542
|
-
/* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(s, { colSpan: 5, children:
|
|
542
|
+
/* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(s, { colSpan: 5, children: Q(v) }) }) })
|
|
543
543
|
]
|
|
544
544
|
}
|
|
545
545
|
) : /* @__PURE__ */ e("p", { className: "m-0 italic opacity-70", children: "No memories stored." }))
|
|
546
546
|
] }) : /* @__PURE__ */ r(I, { children: [
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
547
|
+
$ && /* @__PURE__ */ e("p", { className: "m-0", children: "Loading expired memories..." }),
|
|
548
|
+
H && /* @__PURE__ */ e("p", { className: "m-0 text-red-500", children: "Failed to load expired memories." }),
|
|
549
|
+
!$ && !H && (g && g.items.length > 0 ? /* @__PURE__ */ r(re, { stickyHeader: !0, stickyFooter: !0, compact: !0, mode: "alt-system", children: [
|
|
550
550
|
/* @__PURE__ */ e(ie, { children: /* @__PURE__ */ r(D, { children: [
|
|
551
551
|
/* @__PURE__ */ e(s, { className: "sr-only", children: "Row" }),
|
|
552
552
|
/* @__PURE__ */ e(s, { children: "Memory" }),
|
|
@@ -687,7 +687,7 @@ const Pe = ({
|
|
|
687
687
|
variant: "primary",
|
|
688
688
|
iconClassName: "text-red-700 dark:text-red-500",
|
|
689
689
|
disabled: B.isPending,
|
|
690
|
-
onClick: () =>
|
|
690
|
+
onClick: () => K(
|
|
691
691
|
t.memoryId,
|
|
692
692
|
t.text,
|
|
693
693
|
t.description,
|
|
@@ -4548,15 +4548,11 @@ const zi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4548
4548
|
keywordMatchAll: $keywordMatchAll) {
|
|
4549
4549
|
timestamp
|
|
4550
4550
|
id
|
|
4551
|
-
model
|
|
4552
4551
|
summary
|
|
4553
4552
|
tokenUsage
|
|
4554
4553
|
favoriteChat
|
|
4555
4554
|
similarityScore
|
|
4556
4555
|
keywordMatch
|
|
4557
|
-
messages {
|
|
4558
|
-
content
|
|
4559
|
-
}
|
|
4560
4556
|
}
|
|
4561
4557
|
}`,
|
|
4562
4558
|
GET_CHATS_STATS: `query GetChatsStats($user: String!) {
|
|
@@ -7848,7 +7844,7 @@ const tc = "ASK! ME! ANYTHING!", rc = "Log in with a password", sc = "Log in wit
|
|
|
7848
7844
|
] });
|
|
7849
7845
|
}, Ec = new URL(document.location.href).searchParams, Fr = !!Ec.get("debug") || !1, Sc = nn(() => import(
|
|
7850
7846
|
/* webpackChunkName: "LazyApp" */
|
|
7851
|
-
"./App.
|
|
7847
|
+
"./App.lHXZIn8I.js"
|
|
7852
7848
|
).then((e) => e.App)), wc = new Dn(), Br = ({
|
|
7853
7849
|
isComponent: e,
|
|
7854
7850
|
headerHeight: t
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as h, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { ButtonIcon as E, IconCopied as C, IconCopy as I } from "./index.
|
|
2
|
+
import { ButtonIcon as E, IconCopied as C, IconCopy as I } from "./index.5-5jxYfs.js";
|
|
3
3
|
import { useState as N, useEffect as $ } from "react";
|
|
4
4
|
import t from "clsx";
|
|
5
5
|
/*!
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.
|
|
1
|
+
import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.Df5zZY4U.js";
|
|
2
2
|
import { longestStreak as qe } from "./index.Cyw5OC0t.js";
|
|
3
3
|
function ne(e, n) {
|
|
4
4
|
const t = String(e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.
|
|
2
|
-
import { toText as Ca } from "./index.
|
|
1
|
+
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.Df5zZY4U.js";
|
|
2
|
+
import { toText as Ca } from "./index.D5nCT2P4.js";
|
|
3
3
|
const Gt = /[#.]/g;
|
|
4
4
|
function qa(r, e) {
|
|
5
5
|
const t = r || "", a = {};
|