feat: prepare GoodBuddy 0.8.0

This commit is contained in:
lofyer
2026-08-05 19:40:40 +08:00
parent 38ac2206f2
commit 39a457ded8
96 changed files with 14221 additions and 1027 deletions
+9 -3
View File
@@ -14,7 +14,8 @@ import {
type KnowledgeSnapshot,
type RuntimeSettings,
type RuntimeSettingsInput,
type RuntimeFileSelectionKind
type RuntimeFileSelectionKind,
type WindowCaptureOption
} from '../shared/contracts'
import { ipcChannels } from '../shared/ipc-channels'
import type {
@@ -450,9 +451,14 @@ const desktopApi: DesktopApi = {
ipcRenderer.invoke(
ipcChannels.contextCaptureScreen
) as Promise<ContextAttachment>,
captureWindow: () =>
listWindows: () =>
ipcRenderer.invoke(
ipcChannels.contextCaptureWindow
ipcChannels.contextListWindows
) as Promise<WindowCaptureOption[]>,
captureWindow: (sourceId) =>
ipcRenderer.invoke(
ipcChannels.contextCaptureWindow,
{ sourceId }
) as Promise<ContextAttachment>,
readClipboard: () =>
ipcRenderer.invoke(