glitchgrab 1.62.5 → 1.63.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/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/dist/server.js.map +1 -1
- package/dist/server.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -924,7 +924,7 @@ async function enhanceTextOrThrow(text, token, baseUrl, screenshot, context, ide
|
|
|
924
924
|
}
|
|
925
925
|
throw new Error(unavailable);
|
|
926
926
|
}
|
|
927
|
-
async function findSimilarIssues(description, token, baseUrl, identity, files) {
|
|
927
|
+
async function findSimilarIssues(description, token, baseUrl, identity, files, conversationId) {
|
|
928
928
|
var _a;
|
|
929
929
|
try {
|
|
930
930
|
const url = `${baseUrl != null ? baseUrl : DEFAULT_BASE_URL}/api/v1/reports/similar`;
|
|
@@ -937,6 +937,7 @@ async function findSimilarIssues(description, token, baseUrl, identity, files) {
|
|
|
937
937
|
body: JSON.stringify({
|
|
938
938
|
text: description,
|
|
939
939
|
...(files == null ? void 0 : files.length) ? { files } : {},
|
|
940
|
+
...conversationId ? { conversationId } : {},
|
|
940
941
|
...signedFields(identity)
|
|
941
942
|
})
|
|
942
943
|
});
|
|
@@ -6615,8 +6616,10 @@ function ReportDialog({
|
|
|
6615
6616
|
setIsSubmitting(true);
|
|
6616
6617
|
setCheckingSimilar(true);
|
|
6617
6618
|
const matches = await Promise.race([
|
|
6618
|
-
// A PDF still being read is left out rather than waited for.
|
|
6619
|
-
|
|
6619
|
+
// A PDF still being read is left out rather than waited for. A draft
|
|
6620
|
+
// from the sheet names its chat, so an issue the reporter already
|
|
6621
|
+
// turned down there is not offered again (#697).
|
|
6622
|
+
(aiConversationId ? findSimilarIssues2(description.trim(), similarFiles.length ? similarFiles : void 0, aiConversationId) : similarFiles.length ? findSimilarIssues2(description.trim(), similarFiles) : findSimilarIssues2(description.trim())).catch(() => null),
|
|
6620
6623
|
new Promise((resolve) => setTimeout(() => resolve(null), SIMILAR_WAIT_MS))
|
|
6621
6624
|
]);
|
|
6622
6625
|
setCheckingSimilar(false);
|
|
@@ -10926,7 +10929,7 @@ function GlitchgrabProviderInner({
|
|
|
10926
10929
|
[token, baseUrl, session]
|
|
10927
10930
|
);
|
|
10928
10931
|
const findSimilar = (0, import_react6.useCallback)(
|
|
10929
|
-
(description, files) => findSimilarIssues(description, token, baseUrl, identity, files),
|
|
10932
|
+
(description, files, conversationId) => findSimilarIssues(description, token, baseUrl, identity, files, conversationId),
|
|
10930
10933
|
[token, baseUrl, identity]
|
|
10931
10934
|
);
|
|
10932
10935
|
const readFile = (0, import_react6.useCallback)(
|