feat(chat): add local-first conversation workspace

This commit is contained in:
2026-08-13 15:55:15 +08:00
parent d1d50d722c
commit 8991f78f9f
43 changed files with 5450 additions and 592 deletions
+8
View File
@@ -0,0 +1,8 @@
export const fullscreenEditorCharacterThreshold = 600;
export const fullscreenEditorLineThreshold = 8;
export function shouldOpenFullscreenEditor(value: unknown) {
const text = String(value ?? "");
const lineCount = text ? text.split(/\r?\n/).length : 0;
return text.length >= fullscreenEditorCharacterThreshold || lineCount >= fullscreenEditorLineThreshold;
}