glitchgrab 1.65.1 → 1.65.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +78 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -75
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3210,6 +3210,7 @@ function AssistSheet({
|
|
|
3210
3210
|
setShowChats(false);
|
|
3211
3211
|
setViewingChat(null);
|
|
3212
3212
|
resumeAskRef.current = (last == null ? void 0 : last.role) === "user";
|
|
3213
|
+
seedPendingRef.current = false;
|
|
3213
3214
|
}
|
|
3214
3215
|
useEffect2(() => {
|
|
3215
3216
|
if (!resumeAskRef.current) return;
|
|
@@ -3243,6 +3244,79 @@ function AssistSheet({
|
|
|
3243
3244
|
const otherChats = savedChats.filter((c) => c.id !== chatIdRef.current);
|
|
3244
3245
|
const resumable = (_a = otherChats.find((c) => c.status === "open" && c.messages.length > 0)) != null ? _a : null;
|
|
3245
3246
|
const empty = (phase === "chat" || phase === "type") && messages.length === 0 && !busy;
|
|
3247
|
+
const resumeCard = resumable ? /* @__PURE__ */ jsxs3(
|
|
3248
|
+
"div",
|
|
3249
|
+
{
|
|
3250
|
+
"data-gg-resume-chat": "",
|
|
3251
|
+
style: {
|
|
3252
|
+
display: "flex",
|
|
3253
|
+
flexDirection: "column",
|
|
3254
|
+
gap: "8px",
|
|
3255
|
+
padding: "10px 12px",
|
|
3256
|
+
borderRadius: "10px",
|
|
3257
|
+
border: `1px solid ${t.accent}55`,
|
|
3258
|
+
backgroundColor: t.bgSecondary,
|
|
3259
|
+
minWidth: 0
|
|
3260
|
+
},
|
|
3261
|
+
children: [
|
|
3262
|
+
/* @__PURE__ */ jsxs3("span", { style: { fontSize: "11.5px", color: t.textMuted }, children: [
|
|
3263
|
+
"Pick up where you left off \xB7 ",
|
|
3264
|
+
chatAge(resumable.updatedAt)
|
|
3265
|
+
] }),
|
|
3266
|
+
/* @__PURE__ */ jsx3(
|
|
3267
|
+
"span",
|
|
3268
|
+
{
|
|
3269
|
+
style: {
|
|
3270
|
+
fontSize: "13px",
|
|
3271
|
+
lineHeight: 1.45,
|
|
3272
|
+
overflowWrap: "anywhere"
|
|
3273
|
+
},
|
|
3274
|
+
children: resumable.title
|
|
3275
|
+
}
|
|
3276
|
+
),
|
|
3277
|
+
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", gap: "8px", flexWrap: "wrap" }, children: [
|
|
3278
|
+
/* @__PURE__ */ jsx3(
|
|
3279
|
+
"button",
|
|
3280
|
+
{
|
|
3281
|
+
type: "button",
|
|
3282
|
+
"data-gg-resume-continue": "",
|
|
3283
|
+
onClick: () => resumeChat(resumable),
|
|
3284
|
+
style: {
|
|
3285
|
+
border: "none",
|
|
3286
|
+
borderRadius: "999px",
|
|
3287
|
+
backgroundColor: t.accent,
|
|
3288
|
+
color: t.accentText,
|
|
3289
|
+
padding: "7px 13px",
|
|
3290
|
+
fontSize: "12px",
|
|
3291
|
+
fontWeight: 600,
|
|
3292
|
+
fontFamily: "inherit",
|
|
3293
|
+
cursor: "pointer"
|
|
3294
|
+
},
|
|
3295
|
+
children: "Continue this chat"
|
|
3296
|
+
}
|
|
3297
|
+
),
|
|
3298
|
+
/* @__PURE__ */ jsx3(
|
|
3299
|
+
"button",
|
|
3300
|
+
{
|
|
3301
|
+
type: "button",
|
|
3302
|
+
onClick: () => setShowChats(true),
|
|
3303
|
+
style: {
|
|
3304
|
+
border: `1px solid ${t.inputBorder}`,
|
|
3305
|
+
borderRadius: "999px",
|
|
3306
|
+
background: "transparent",
|
|
3307
|
+
color: t.textMuted,
|
|
3308
|
+
padding: "7px 13px",
|
|
3309
|
+
fontSize: "12px",
|
|
3310
|
+
fontFamily: "inherit",
|
|
3311
|
+
cursor: "pointer"
|
|
3312
|
+
},
|
|
3313
|
+
children: "All chats"
|
|
3314
|
+
}
|
|
3315
|
+
)
|
|
3316
|
+
] })
|
|
3317
|
+
]
|
|
3318
|
+
}
|
|
3319
|
+
) : null;
|
|
3246
3320
|
function renderChatList() {
|
|
3247
3321
|
return /* @__PURE__ */ jsxs3("div", { "data-gg-chat-list": "", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
|
|
3248
3322
|
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
@@ -3636,6 +3710,7 @@ function AssistSheet({
|
|
|
3636
3710
|
},
|
|
3637
3711
|
children: /* @__PURE__ */ jsxs3("div", { style: { display: showChats ? "none" : "contents" }, children: [
|
|
3638
3712
|
phase === "severity" && /* @__PURE__ */ jsxs3("div", { style: { display: "flex", flexDirection: "column", gap: "12px" }, children: [
|
|
3713
|
+
resumeCard,
|
|
3639
3714
|
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
3640
3715
|
/* @__PURE__ */ jsx3(Avatar, { who: "assistant", theme: t }),
|
|
3641
3716
|
/* @__PURE__ */ jsx3(
|
|
@@ -3809,79 +3884,7 @@ function AssistSheet({
|
|
|
3809
3884
|
)
|
|
3810
3885
|
] }),
|
|
3811
3886
|
empty && /* @__PURE__ */ jsxs3("div", { style: { display: "flex", flexDirection: "column", gap: "12px" }, children: [
|
|
3812
|
-
|
|
3813
|
-
"div",
|
|
3814
|
-
{
|
|
3815
|
-
"data-gg-resume-chat": "",
|
|
3816
|
-
style: {
|
|
3817
|
-
display: "flex",
|
|
3818
|
-
flexDirection: "column",
|
|
3819
|
-
gap: "8px",
|
|
3820
|
-
padding: "10px 12px",
|
|
3821
|
-
borderRadius: "10px",
|
|
3822
|
-
border: `1px solid ${t.accent}55`,
|
|
3823
|
-
backgroundColor: t.bgSecondary,
|
|
3824
|
-
minWidth: 0
|
|
3825
|
-
},
|
|
3826
|
-
children: [
|
|
3827
|
-
/* @__PURE__ */ jsxs3("span", { style: { fontSize: "11.5px", color: t.textMuted }, children: [
|
|
3828
|
-
"Pick up where you left off \xB7 ",
|
|
3829
|
-
chatAge(resumable.updatedAt)
|
|
3830
|
-
] }),
|
|
3831
|
-
/* @__PURE__ */ jsx3(
|
|
3832
|
-
"span",
|
|
3833
|
-
{
|
|
3834
|
-
style: {
|
|
3835
|
-
fontSize: "13px",
|
|
3836
|
-
lineHeight: 1.45,
|
|
3837
|
-
overflowWrap: "anywhere"
|
|
3838
|
-
},
|
|
3839
|
-
children: resumable.title
|
|
3840
|
-
}
|
|
3841
|
-
),
|
|
3842
|
-
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", gap: "8px", flexWrap: "wrap" }, children: [
|
|
3843
|
-
/* @__PURE__ */ jsx3(
|
|
3844
|
-
"button",
|
|
3845
|
-
{
|
|
3846
|
-
type: "button",
|
|
3847
|
-
"data-gg-resume-continue": "",
|
|
3848
|
-
onClick: () => resumeChat(resumable),
|
|
3849
|
-
style: {
|
|
3850
|
-
border: "none",
|
|
3851
|
-
borderRadius: "999px",
|
|
3852
|
-
backgroundColor: t.accent,
|
|
3853
|
-
color: t.accentText,
|
|
3854
|
-
padding: "7px 13px",
|
|
3855
|
-
fontSize: "12px",
|
|
3856
|
-
fontWeight: 600,
|
|
3857
|
-
fontFamily: "inherit",
|
|
3858
|
-
cursor: "pointer"
|
|
3859
|
-
},
|
|
3860
|
-
children: "Continue this chat"
|
|
3861
|
-
}
|
|
3862
|
-
),
|
|
3863
|
-
/* @__PURE__ */ jsx3(
|
|
3864
|
-
"button",
|
|
3865
|
-
{
|
|
3866
|
-
type: "button",
|
|
3867
|
-
onClick: () => setShowChats(true),
|
|
3868
|
-
style: {
|
|
3869
|
-
border: `1px solid ${t.inputBorder}`,
|
|
3870
|
-
borderRadius: "999px",
|
|
3871
|
-
background: "transparent",
|
|
3872
|
-
color: t.textMuted,
|
|
3873
|
-
padding: "7px 13px",
|
|
3874
|
-
fontSize: "12px",
|
|
3875
|
-
fontFamily: "inherit",
|
|
3876
|
-
cursor: "pointer"
|
|
3877
|
-
},
|
|
3878
|
-
children: "All chats"
|
|
3879
|
-
}
|
|
3880
|
-
)
|
|
3881
|
-
] })
|
|
3882
|
-
]
|
|
3883
|
-
}
|
|
3884
|
-
),
|
|
3887
|
+
resumeCard,
|
|
3885
3888
|
phase !== "type" && /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
3886
3889
|
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
3887
3890
|
/* @__PURE__ */ jsx3(Avatar, { who: "assistant", theme: t }),
|
|
@@ -6646,8 +6649,8 @@ function ReportDialog({
|
|
|
6646
6649
|
}
|
|
6647
6650
|
};
|
|
6648
6651
|
useEffect4(() => {
|
|
6649
|
-
setSimilarIssues(null);
|
|
6650
|
-
setPickedSimilar(null);
|
|
6652
|
+
if (similarIssues !== null) setSimilarIssues(null);
|
|
6653
|
+
if (pickedSimilar !== null) setPickedSimilar(null);
|
|
6651
6654
|
}, [description]);
|
|
6652
6655
|
const handleSubmit = async (opts) => {
|
|
6653
6656
|
var _a2, _b, _c;
|