feat(desktop): sync knowledge, recordings and shared settings; play any recording

Knowledge documents travel as source-text chunks; each surface embeds them
with its own model, the server index is requested through embed-chunks, and
documents from the phone are stored without a file and indexed from their
chunks. Chunk text is now kept when local embedding fails, so reindexing no
longer needs the original file.

Recordings upload to the mobile storage contract (audio bucket under the
user's folder plus an audio_files row, 50 MiB cap, a Settings > Cloud
toggle) and are removed with their record. The history card gains a play
button that uses the local file or, for phone recordings, a signed URL.

Language (ko/en), system/light/dark theme, auto-polish and the active user
command follow the phone's user_settings with its revision rule; changes that
arrive from the phone reach the open window.
This commit is contained in:
Yun Chan 2026-09-27 14:44:56 +09:00
parent cee4ab9317
commit 9a8f7e6aa6
34 changed files with 1405 additions and 64 deletions

View file

@ -541,5 +541,10 @@
"cloudSync.browserPending": "Hãy hoàn tất đăng nhập trên trình duyệt.",
"cloudSync.signedOut": "Đã đăng xuất. Dữ liệu trên máy này vẫn được giữ nguyên.",
"cloudSync.done": "Đồng bộ xong (áp dụng {{count}})",
"cloudSync.doneWithErrors": "Đồng bộ xong ({{count}} áp dụng, {{errors}} lỗi — sẽ thử lại lần sau)"
"cloudSync.doneWithErrors": "Đồng bộ xong ({{count}} áp dụng, {{errors}} lỗi — sẽ thử lại lần sau)",
"history.playAudio": "Phát bản ghi",
"history.stopAudio": "Dừng phát",
"history.audioUnavailable": "Không có bản ghi để phát (bản ghi từ thiết bị khác phát được sau khi thiết bị đó đồng bộ)",
"cloudSync.audio": "Đồng bộ cả bản ghi âm",
"cloudSync.audioDesc": "Tải bản ghi lên để nghe trên điện thoại và web. Tệp lớn hơn 50MB chỉ lưu trên máy này."
}