');
+ html.push("");
inCodeBlock = true;
}
continue;
}
if (inCodeBlock) {
- html.push(line + '\n');
+ html.push(line + "\n");
continue;
}
// Basic list support
if (/^[*+-]\s/.test(line)) {
if (!inList) {
- html.push('');
+ html.push("");
inList = true;
}
html.push(`- ${line.substring(2)}
`);
- } else if (inList && line.trim() === '') {
- html.push('
');
+ } else if (inList && line.trim() === "") {
+ html.push("
");
inList = false;
} else {
if (inList) {
- html.push('');
+ html.push("");
inList = false;
}
// Basic formatting
const formatted = line
- .replace(/\*\*(.+?)\*\*/g, '$1')
- .replace(/\*(.+?)\*/g, '$1')
- .replace(/`(.+?)`/g, '$1');
+ .replace(/\*\*(.+?)\*\*/g, "$1")
+ .replace(/\*(.+?)\*/g, "$1")
+ .replace(/`(.+?)`/g, "$1");
if (line.trim()) {
html.push(`${formatted}
`);
@@ -229,9 +229,9 @@ export class StreamingMarkdownService {
}
}
- if (inList) html.push('');
- if (inCodeBlock) html.push('
');
+ if (inList) html.push("");
+ if (inCodeBlock) html.push("");
- return html.join('');
+ return html.join("");
}
}
\ No newline at end of file
diff --git a/Services/StreamingService.ts b/Services/StreamingService.ts
index 32ba790..efb1878 100644
--- a/Services/StreamingService.ts
+++ b/Services/StreamingService.ts
@@ -1,5 +1,5 @@
import type { AIFunctionCall } from "AIClasses/AIFunctionCall";
-import { Copy } from "Enums/Copy";
+import { Selector } from "Enums/Selector";
export interface StreamChunk {
content: string;
@@ -71,7 +71,7 @@ export class StreamingService {
// Don't log abort errors as they're intentional
if (error instanceof Error && error.name === 'AbortError') {
yield {
- content: Copy.ApiRequestAborted,
+ content: Selector.ApiRequestAborted,
isComplete: true
};
} else {
diff --git a/Stores/conversationStore.ts b/Stores/conversationStore.ts
index 8327225..b2cb020 100644
--- a/Stores/conversationStore.ts
+++ b/Stores/conversationStore.ts
@@ -4,21 +4,25 @@ import type { Conversation } from 'Conversations/Conversation';
interface ConversationStoreState {
shouldReset: boolean;
conversationToLoad: { conversation: Conversation; filePath: string } | null;
+ shouldDeactivateEditMode: boolean;
}
function createConversationStore() {
const { subscribe, set, update } = writable