Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
Merge shared main baseline for stacked download DCO checks
Dashb2511af555ee
diff --cc apps/desktop/src/preload/preload.tsindex 99ae166aa0,eae807a9aa..69ed20eb88--- a/apps/desktop/src/preload/preload.ts+++ b/apps/desktop/src/preload/preload.ts@@@ -1,16 -1,9 +1,18 @@@+ import type { CompanionImportApi, CompanionImportSelection } from '@cindy/maker-shared/companion-import';+ import { TASK_MIGRATION_LOCAL_CHANNEL } from '@cindy/device-link';import type { WorktreeRecycleAction, WorktreeRecycleStatus } from '../shared/worktreeRecycle';-import { FAVORITE_HOST_READY, FAVORITE_HOST_REQUEST, FAVORITE_HOST_REPLY, FAVORITE_HOST_CHANGED, type ModelFavoritesHostApi } from '../shared/modelFavoritesSync';+import {+ FAVORITE_HOST_READY,+ FAVORITE_HOST_REQUEST,+ FAVORITE_HOST_REPLY,+ FAVORITE_HOST_CHANGED,+ type ModelFavoritesHostApi,+} from '../shared/modelFavoritesSync';import { invokeOpenPath } from './openPath';-import { COPY_PNG_TO_CLIPBOARD_CHANNEL, type CopyPngToClipboardParams } from '../shared/pngClipboard';+import {+ COPY_PNG_TO_CLIPBOARD_CHANNEL,+ type CopyPngToClipboardParams,+} from '../shared/pngClipboard';import type { ByokStatus } from '../shared/modelAccess.js';import type { LocalPluginOauthRequest, LocalPluginSecretRequest } from '../shared/pluginOauth';import { REMOTE_VIEWER } from '../shared/remoteDesktopViewer';@@@ -1047,23 -1031,23 +1050,29 @@@ type CindyMediaPreferenceKind =contextBridge.exposeInMainWorld('electronAPI', {modelFavoritesHost: {ready: () => ipcRenderer.send(FAVORITE_HOST_READY),- changed: stamp => ipcRenderer.send(FAVORITE_HOST_CHANGED, stamp),- reply: reply => ipcRenderer.send(FAVORITE_HOST_REPLY, reply),- onRequest: listener => {- const receive = (_event: Electron.IpcRendererEvent, request: Parameters<typeof listener>[0]) => listener(request);+ changed: (stamp) => ipcRenderer.send(FAVORITE_HOST_CHANGED, stamp),+ reply: (reply) => ipcRenderer.send(FAVORITE_HOST_REPLY, reply),+ onRequest: (listener) => {+ const receive = (+ _event: Electron.IpcRendererEvent,+ request: Parameters<typeof listener>[0],+ ) => listener(request);ipcRenderer.on(FAVORITE_HOST_REQUEST, receive);- return () => { ipcRenderer.removeListener(FAVORITE_HOST_REQUEST, receive); };+ return () => {+ ipcRenderer.removeListener(FAVORITE_HOST_REQUEST, receive);+ };},} satisfies ModelFavoritesHostApi,+ companionImport: {+ sources: () => ipcRenderer.invoke('companion-import', 'sources'),+ preview: (sourceId: string) => ipcRenderer.invoke('companion-import', 'preview', sourceId),+ start: (selection: CompanionImportSelection) => ipcRenderer.invoke('companion-import', 'start', selection),+ status: (requestId: string) => ipcRenderer.invoke('companion-import', 'status', requestId),+ } satisfies CompanionImportApi,routines: {list: (botId: string) => ipcRenderer.invoke('routines:list', botId),- save: (botId: string, input: RoutineInput, id?: string) => ipcRenderer.invoke('routines:save', botId, input, id),+ save: (botId: string, input: RoutineInput, id?: string) =>+ ipcRenderer.invoke('routines:save', botId, input, id),remove: (botId: string, id: string) => ipcRenderer.invoke('routines:remove', botId, id),runNow: (botId: string, id: string) => ipcRenderer.invoke('routines:run-now', botId, id),history: (botId: string, id: string) => ipcRenderer.invoke('routines:history', botId, id),